@vuebro/runtime 1.1.79 → 1.1.81

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/dist/index.html CHANGED
@@ -6,9 +6,9 @@
6
6
  <base href="" />
7
7
  <link rel="preload" crossorigin href="./index.json" as="fetch" />
8
8
  <link rel="preload" crossorigin href="./fonts.json" as="fetch" />
9
- <script type="module" crossorigin src="./assets/index-CiUiJoLT.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/unocss-B_Rh5TB7.js">
11
- <link rel="modulepreload" crossorigin href="./assets/shared-D_WSAg14.js">
9
+ <script type="module" crossorigin src="./assets/index-B6NwJWow.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/unocss-C5ejlI-Z.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/shared-DEqMO6gr.js">
12
12
  <link rel="stylesheet" crossorigin href="./assets/index-vGiKZPT9.css">
13
13
  </head>
14
14
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuebro/runtime",
3
- "version": "1.1.79",
3
+ "version": "1.1.81",
4
4
  "description": "@vuebro/runtime",
5
5
  "keywords": [
6
6
  "vuebro",
@@ -24,23 +24,23 @@
24
24
  "build": "vue-tsc && vite build",
25
25
  "lint": "eslint ."
26
26
  },
27
+ "prettier": "@vuebro/configs/prettierrc",
27
28
  "dependencies": {
28
29
  "@iconify/vue": "^5.0.0",
29
30
  "@unhead/vue": "^2.0.19",
30
- "@unocss/core": "^66.5.4",
31
- "@unocss/preset-web-fonts": "^66.5.4",
32
31
  "@unocss/runtime": "^66.5.4",
33
- "@vuebro/loader-sfc": "^2.3.7",
34
- "@vuebro/shared": "^1.1.36",
35
- "@vueuse/core": "^13.9.0",
32
+ "@vuebro/configs": "^1.1.32",
33
+ "@vuebro/loader-sfc": "^2.3.9",
34
+ "@vuebro/shared": "^1.1.38",
35
+ "@vueuse/core": "^14.0.0",
36
36
  "consola": "^3.4.2",
37
37
  "vue": "^3.5.22",
38
38
  "vue-router": "^4.6.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/node": "^24.9.0",
42
- "@vuebro/configs": "^1.1.7",
41
+ "@types/node": "^24.9.1",
43
42
  "eslint": "^9.38.0",
43
+ "unocss": "^66.5.4",
44
44
  "vite": "^7.1.11",
45
45
  "vite-plugin-static-copy": "^3.1.4"
46
46
  }
@@ -1 +0,0 @@
1
- import{computed as M,toValue as m,shallowRef as W,watch as j,reactive as K,getCurrentInstance as se,onMounted as re,unref as I,defineComponent as ue,ref as Q,onUnmounted as ie,createElementBlock as Z,openBlock as F,Fragment as ae,renderList as ce,normalizeClass as fe,createBlock as de,resolveDynamicComponent as ve}from"vue";import{u as P,p as pe}from"./shared-D_WSAg14.js";import{t as A,n as oe,a as H,b as z,c as me,i as he,w as be,d as ge,u as Ee,e as Me,f as x,p as X,m as we,r as _e,g as Se,s as ye,h as Oe}from"./index-CiUiJoLT.js";import{useRoute as Te,useRouter as Le}from"vue-router";import"./unocss-B_Rh5TB7.js";import"@vuebro/loader-sfc";const B=he?window:void 0;function C(t){var a;const c=m(t);return(a=c?.$el)!=null?a:c}function ee(...t){const a=[],c=()=>{a.forEach(n=>n()),a.length=0},w=(n,l,i,s)=>(n.addEventListener(l,i,s),()=>n.removeEventListener(l,i,s)),h=M(()=>{const n=A(m(t[0])).filter(l=>l!=null);return n.every(l=>typeof l!="string")?n:void 0}),f=be(()=>{var n,l;return[(l=(n=h.value)==null?void 0:n.map(i=>C(i)))!=null?l:[B].filter(i=>i!=null),A(m(h.value?t[1]:t[0])),A(I(h.value?t[2]:t[1])),m(h.value?t[3]:t[2])]},([n,l,i,s])=>{if(c(),!n?.length||!l?.length||!i?.length)return;const d=ge(s)?{...s}:s;a.push(...n.flatMap(r=>l.flatMap(u=>i.map(o=>w(r,u,o,d)))))},{flush:"post"}),v=()=>{f(),c()};return z(c),v}function ke(){const t=W(!1),a=se();return a&&re(()=>{t.value=!0},a),t}function ne(t){const a=ke();return M(()=>(a.value,!!t()))}function Ce(t,a,c={}){const{window:w=B,...h}=c;let f;const v=ne(()=>w&&"MutationObserver"in w),n=()=>{f&&(f.disconnect(),f=void 0)},l=M(()=>{const r=m(t),u=A(r).map(C).filter(oe);return new Set(u)}),i=j(l,r=>{n(),v.value&&r.size&&(f=new MutationObserver(a),r.forEach(u=>f.observe(u,h)))},{immediate:!0,flush:"post"}),s=()=>f?.takeRecords(),d=()=>{i(),n()};return z(d),{isSupported:v,stop:d,takeRecords:s}}function De(t,a,c={}){const{root:w,rootMargin:h="0px",threshold:f=0,window:v=B,immediate:n=!0}=c,l=ne(()=>v&&"IntersectionObserver"in v),i=M(()=>{const o=m(t);return A(o).map(C).filter(oe)});let s=H;const d=W(n),r=l.value?j(()=>[i.value,C(w),d.value],([o,p])=>{if(s(),!d.value||!o.length)return;const g=new IntersectionObserver(a,{root:C(p),rootMargin:h,threshold:f});o.forEach(y=>y&&g.observe(y)),s=()=>{g.disconnect(),s=H}},{immediate:n,flush:"post"}):H,u=()=>{s(),r(),d.value=!1};return z(u),{isSupported:l,isActive:d,pause(){s(),d.value=!1},resume(){d.value=!0},stop:u}}const te=1;function Re(t,a={}){const{throttle:c=0,idle:w=200,onStop:h=H,onScroll:f=H,offset:v={left:0,right:0,top:0,bottom:0},observe:n={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:s=B,onError:d=e=>{console.error(e)}}=a,r=typeof n=="boolean"?{mutation:n}:n,u=W(0),o=W(0),p=M({get(){return u.value},set(e){y(e,void 0)}}),g=M({get(){return o.value},set(e){y(void 0,e)}});function y(e,L){var b,D,R,$;if(!s)return;const E=m(t);if(!E)return;(R=E instanceof Document?s.document.body:E)==null||R.scrollTo({top:(b=m(L))!=null?b:g.value,left:(D=m(e))!=null?D:p.value,behavior:m(i)});const T=(($=E?.document)==null?void 0:$.documentElement)||E?.documentElement||E;p!=null&&(u.value=T.scrollLeft),g!=null&&(o.value=T.scrollTop)}const O=W(!1),_=K({left:!0,right:!1,top:!0,bottom:!1}),S=K({left:!1,right:!1,top:!1,bottom:!1}),Y=e=>{O.value&&(O.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,h(e))},le=Me(Y,c+w),V=e=>{var L;if(!s)return;const b=((L=e?.document)==null?void 0:L.documentElement)||e?.documentElement||C(e),{display:D,flexDirection:R,direction:$}=getComputedStyle(b),E=$==="rtl"?-1:1,T=b.scrollLeft;S.left=T<u.value,S.right=T>u.value;const U=Math.abs(T*E)<=(v.left||0),q=Math.abs(T*E)+b.clientWidth>=b.scrollWidth-(v.right||0)-te;D==="flex"&&R==="row-reverse"?(_.left=q,_.right=U):(_.left=U,_.right=q),u.value=T;let k=b.scrollTop;e===s.document&&!k&&(k=s.document.body.scrollTop),S.top=k<o.value,S.bottom=k>o.value;const G=Math.abs(k)<=(v.top||0),J=Math.abs(k)+b.clientHeight>=b.scrollHeight-(v.bottom||0)-te;D==="flex"&&R==="column-reverse"?(_.top=J,_.bottom=G):(_.top=G,_.bottom=J),o.value=k},N=e=>{var L;if(!s)return;const b=(L=e.target.documentElement)!=null?L:e.target;V(b),O.value=!0,le(e),f(e)};return ee(t,"scroll",c?Ee(N,c,!0,!1):N,l),me(()=>{try{const e=m(t);if(!e)return;V(e)}catch(e){d(e)}}),r?.mutation&&t!=null&&t!==s&&t!==document&&Ce(t,()=>{const e=m(t);e&&V(e)},{attributes:!0,childList:!0,subtree:!0}),ee(t,"scrollend",Y,l),{x:p,y:g,isScrolling:O,arrivedState:_,directions:S,measure(){const e=m(t);s&&e&&V(e)}}}const xe=["id","role"],Be=ue({__name:"PageView",setup(t){const a=Q([]),c=Te(),w=Le(),h=M(()=>x.value?.siblings??[]),f=[],v=M(()=>h.value.filter(({enabled:r})=>r)),n=()=>{f.forEach(r=>{r()}),f.length=0},l=M(()=>x.value===void 0||x.value.parent?.flat?v.value:[x.value]),i=M(()=>new Map(l.value.map(({id:r=P()})=>[r,!1]))),s=Q(new Map(i.value)),d=M(()=>{const[[r,u]=[]]=X;return X.clear(),r&&u&&X.set(r,u),Object.fromEntries(l.value.map(o=>[o.id,we(o)]))});return j(a,r=>{n(),setTimeout(()=>{r.forEach(u=>{const{stop:o}=De(u,([{isIntersecting:p,target:{id:g}={}}={}]=[])=>{s.value=new Map(i.value),g&&p!==void 0&&i.value.set(g,p)},{threshold:.1});f.push(o)})})},{deep:!0}),Re(window,{behavior:"smooth",onStop:()=>{if(!Se.value){const{scrollX:r,scrollY:u}=window,[o]=l.value,[p]=pe.value;if(p&&o){const{$children:[{id:g}={}]=[]}=p,y=!Math.floor(r)&&!Math.floor(u)&&o.id===g?p.id:[...i.value.entries()].find(([,O])=>O)?.[0]??[...s.value.entries()].find(([,O])=>O)?.[0]??o.id;y!==c.name&&(ye.value=!1,w.push({name:y}).catch(Oe.error))}}}}),ie(n),(r,u)=>(F(!0),Z(ae,null,ce(l.value,o=>(F(),Z("div",{id:o.id??I(P)(),key:o.id??I(P)(),ref_for:!0,ref_key:"refs",ref:a,class:fe(o.class),role:o.id===I(x)?.id?"main":"section","un-cloak":""},[(F(),de(ve(d.value[o.id]),{pid:o.id,onVnodeMounted:p=>I(_e)(o)},null,8,["pid","onVnodeMounted"]))],10,xe))),128))}});export{Be as default};
@@ -1,11 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-CPKMcCsh.js","./shared-D_WSAg14.js","./unocss-B_Rh5TB7.js","./RootView-D0rCgEJs.js","./NotFoundView-BeP2zP1s.js"])))=>i.map(i=>d[i]);
2
- import{d as Xt,w as Yt,_ as U,p as en,a as tn,b as nn,c as on,e as sn,i as rn}from"./unocss-B_Rh5TB7.js";import{toValue as K,isRef as D,hasInjectionContext as cn,inject as an,ref as O,watchEffect as ln,getCurrentInstance as ht,onBeforeUnmount as un,onDeactivated as fn,onActivated as pn,getCurrentScope as dn,onScopeDispose as hn,onMounted as gt,nextTick as _e,watch as Q,reactive as Ie,unref as mt,defineComponent as yt,shallowRef as gn,onUnmounted as mn,h as $e,computed as j,resolveComponent as yn,createBlock as Oe,openBlock as Ae,withCtx as wn,resolveDynamicComponent as bn,defineAsyncComponent as vn,createApp as Cn}from"vue";import{g as kn,p as de,a as he,u as _n,n as xn,f as Pe,b as Sn}from"./shared-D_WSAg14.js";import{useRoute as Tn,createRouter as Fn,createWebHistory as jn}from"vue-router";import In 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)}})();function ge(e,t={},n){for(const s in e){const o=e[s],r=n?`${n}:${s}`:s;typeof o=="object"&&o!==null?ge(o,t,r):typeof o=="function"&&(t[r]=o)}return t}const $n={run:e=>e()},On=()=>$n,wt=typeof console.createTask<"u"?console.createTask:On;function An(e,t){const n=t.shift(),s=wt(n);return e.reduce((o,r)=>o.then(()=>s.run(()=>r(...t))),Promise.resolve())}function Pn(e,t){const n=t.shift(),s=wt(n);return Promise.all(e.map(o=>s.run(()=>o(...t))))}function se(e,t){for(const n of[...e])n(t)}class Mn{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,s={}){if(!t||typeof n!="function")return()=>{};const o=t;let r;for(;this._deprecatedHooks[t];)r=this._deprecatedHooks[t],t=r.to;if(r&&!s.allowDeprecated){let i=r.message;i||(i=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let s,o=(...r)=>(typeof s=="function"&&s(),s=void 0,o=void 0,n(...r));return s=this.hook(t,o),s}removeHook(t,n){if(this._hooks[t]){const s=this._hooks[t].indexOf(n);s!==-1&&this._hooks[t].splice(s,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const s=this._hooks[t]||[];delete this._hooks[t];for(const o of s)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ge(t),s=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of s.splice(0,s.length))o()}}removeHooks(t){const n=ge(t);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(An,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Pn,t,...n)}callHookWith(t,n,...s){const o=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&se(this._before,o);const r=t(n in this._hooks?[...this._hooks[n]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&se(this._after,o)}):(this._after&&o&&se(this._after,o),r)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Ln(){return new Mn}const En=new Set(["link","style","script","noscript"]),Hn=new Set(["title","titleTemplate","script","style","noscript"]),Me=new Set(["base","meta","link","style","script","noscript"]),Dn=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Rn=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),zn=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Nn=new Set(["templateParams","htmlAttrs","bodyAttrs"]),xe=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Vn=["name","property","http-equiv"],Un=new Set(["viewport","description","keywords","robots"]);function bt(e){const t=e.split(":");return t.length?xe.has(t[1]):!1}function me(e){const{props:t,tag:n}=e;if(Rn.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 Vn)if(t[s]!==void 0){const o=t[s],r=o.includes(":"),i=Un.has(o),f=!(r||i)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${f}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Hn.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function Le(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 Wn(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(f=>f.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 vt(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]=Wn(n,s);return}if(zn.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 qn(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=vt({tag:e,props:{}},n);return s.key&&En.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 Bn(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(qn(o,i))}),s.flat()}const Ee=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,He={base:-10,title:10},Gn={critical:-8,high:-1,low:2},De={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}},Kn=/@import/,L=e=>e===""||e===!0;function Qn(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Gn[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:De;if(t.tag in He)n=He[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=De.meta[r])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?L(t.props.async)?n=o.script.async:t.props.src&&!L(t.props.defer)&&!L(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=o.script.sync:L(t.props.defer)&&t.props.src&&!L(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&Kn.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+s}function Re(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 Jn(e={}){const t=Ln();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=>Re(i,c),push(c,f){const a={...f||{}};delete a.head;const u=a._index??i._entryCount++,d={_i:u,input:c,options:a},p={_poll(l=!1){i.dirty=!0,!l&&r.add(u),t.callHook("entries:updated",i)},dispose(){s.delete(u)&&i.invalidate()},patch(l){(!a.mode||a.mode==="server"&&n||a.mode==="client"&&!n)&&(d.input=l,s.set(u,d),p._poll())}};return p.patch(c),p},async resolveTags(){const c={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",c);r.size;){const p=r.values().next().value;r.delete(p);const l=s.get(p);if(l){const m={tags:Bn(l.input,e.propResolvers||[]).map(h=>Object.assign(h,l.options)),entry:l};await t.callHook("entries:normalize",m),l._tags=m.tags.map((h,g)=>(h._w=Qn(i,h),h._p=(l._i<<10)+g,h._d=me(h),h))}}let f=!1;c.entries.flatMap(p=>(p._tags||[]).map(l=>({...l,props:{...l.props}}))).sort(Ee).reduce((p,l)=>{const m=String(l._d||l._p);if(!p.has(m))return p.set(m,l);const h=p.get(m);if((l?.tagDuplicateStrategy||(Nn.has(l.tag)?"merge":null)||(l.key&&l.key===h.key?"merge":null))==="merge"){const y={...h.props};Object.entries(l.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),p.set(m,{...l,props:y})}else l._p>>10===h._p>>10&&l.tag==="meta"&&bt(m)?(p.set(m,Object.assign([...Array.isArray(h)?h:[h],l],l)),f=!0):(l._w===h._w?l._p>h._p:l?._w<h?._w)&&p.set(m,l);return p},c.tagMap);const a=c.tagMap.get("title"),u=c.tagMap.get("titleTemplate");if(i._title=a?.textContent,u){const p=u?.textContent;if(i._titleTemplate=p,p){let l=typeof p=="function"?p(a?.textContent):p;typeof l=="string"&&!i.plugins.has("template-params")&&(l=l.replace("%s",a?.textContent||"")),a?l===null?c.tagMap.delete("title"):c.tagMap.set("title",{...a,textContent:l}):(u.tag="title",u.textContent=l)}}c.tags=Array.from(c.tagMap.values()),f&&(c.tags=c.tags.flat().sort(Ee)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const d=[];for(const p of c.tags){const{innerHTML:l,tag:m,props:h}=p;if(Dn.has(m)&&!(Object.keys(h).length===0&&!p.innerHTML&&!p.textContent)&&!(m==="meta"&&!h.content&&!h["http-equiv"]&&!h.charset)){if(m==="script"&&l){if(h.type?.endsWith("json")){const g=typeof l=="string"?l:JSON.stringify(l);p.innerHTML=g.replace(/</g,"\\u003C")}else typeof l=="string"&&(p.innerHTML=l.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));p._d=me(p)}d.push(p)}}return d},invalidate(){for(const c of s.values())r.add(c._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(c=>Re(i,c)),i.hooks.callHook("init",i),e.init?.forEach(c=>c&&i.push(c)),i}async function Ct(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(l=>{e.resolveTags().then(m=>{l(m.map(h=>{const g=r.get(h._d)||0,y={tag:h,id:(g?`${h._d}:${g}`:h._d)||Le(h),shouldRender:!0};return h._d&&bt(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 l of["body","head"]){const m=n[l]?.children;for(const h of m){const g=h.tagName.toLowerCase();if(!Me.has(g))continue;const y=vt({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=me(y)||Le(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 f(l,m,h){const g=`${l}:${m}`;c.sideEffects[g]=h,delete c.pendingSideEffects[g]}function a({id:l,$el:m,tag:h}){const g=h.tag.endsWith("Attrs");c.elMap.set(l,m),g||(h.textContent&&h.textContent!==m.textContent&&(m.textContent=h.textContent),h.innerHTML&&h.innerHTML!==m.innerHTML&&(m.innerHTML=h.innerHTML),f(l,"el",()=>{m?.remove(),c.elMap.delete(l)}));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 _=y.slice(0,-5);w.call(m,new Event(_.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&&f(l,`${v}:${b}`,()=>m.classList.remove(b)),!m.classList.contains(b)&&m.classList.add(b)}else if(y==="style"){if(!w)continue;for(const[b,_]of w)f(l,`${v}:${b}`,()=>{m.style.removeProperty(b)}),m.style.setProperty(b,_)}else w!==!1&&w!==null&&(m.getAttribute(y)!==w&&m.setAttribute(y,w===!0?"":String(w)),g&&f(l,v,()=>m.removeAttribute(y)))}}const u=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await i;for(const l of p){const{tag:m,shouldRender:h,id:g}=l;if(h){if(m.tag==="title"){n.title=m.textContent,f("title","",()=>n.title=c.title);continue}l.$el=l.$el||c.elMap.get(g),l.$el?a(l):Me.has(m.tag)&&u.push(l)}}for(const l of u){const m=l.tag.tagPosition||"head";l.$el=n.createElement(l.tag.tag),a(l),d[m]=d[m]||n.createDocumentFragment(),d[m].appendChild(l.$el)}for(const l of p)await e.hooks.callHook("dom:renderTag",l,n,f);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const l in c.pendingSideEffects)c.pendingSideEffects[l]();e._dom=c,await e.hooks.callHook("dom:rendered",{renders:p}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Zn(e={}){const t=e.domOptions?.render||Ct;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Jn({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Xn(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}const R={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"])},Yn={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"},kt={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:R.META.has(t.slice(0,n))||R.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function _t(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function ye(e){return Array.isArray(e)?e.map(ye):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[$(t),ye(n)]))}function xt(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 f=typeof c=="object"?xt(c,t):typeof c=="number"?c.toString():typeof c=="string"&&o?`${o}${c.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:c;return`${i}${s}${f}`}).join(n)}function ze(e,t){const n=_t(t),s=$(e),o=St(s);if(!xe.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 St(e){if(kt[e]?.metaKey==="http-equiv"||R.HTTP_EQUIV.has(e))return"http-equiv";const t=$(e),n=t.indexOf(":");return n===-1?"name":R.OG.has(t.slice(0,n))?"property":"name"}function eo(e){return Yn[e]||$(e)}function to(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:xt(ye(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:s})=>n===null?"":typeof n=="boolean"?s:void 0,...kt[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=[],f=[];for(const[a,u]of Object.entries(i)){const d=`${o}${a==="url"?"":`:${a}`}`,p=Z({[d]:u});(a==="url"?c:f).push(...p)}t.push(...c,...f)}else t.push(...typeof i=="string"?Z({[o]:i}):ze(o,i));continue}if(typeof r=="object"&&r)if(R.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",c=o.replace(/^(og|twitter)/,"").toLowerCase(),f=i==="twitter"?"name":"property";r.url&&t.push({[f]:`${i}:${c}`,content:r.url}),r.secureUrl&&t.push({[f]:`${i}:${c}:secure_url`,content:r.secureUrl});for(const[a,u]of Object.entries(r))a!=="url"&&a!=="secureUrl"&&t.push({[f]:`${i}:${c}:${a}`,content:u})}else xe.has($(o))?t.push(...ze(o,r)):n[o]=_t(r);else n[o]=r}const s=Object.entries(n).map(([o,r])=>{if(o==="charset")return{charset:r===null?"_null":r};const i=St(o),c=eo(o),f=r===null?"_null":typeof r=="object"?to(r,o):typeof r=="number"?r.toString():r;return i==="http-equiv"?{"http-equiv":c,content:f}:{[i]:c,content:f}});return[...t,...s].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const no={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)}}},oo=(e,t)=>D(t)?K(t):t,Tt="usehead";function so(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Tt,e)}}.install}function Ft(){if(cn()){const e=an(Tt);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 jt(e,t={}){const n=t.head||Ft();return n.ssr?n.push(e||{},t):ro(n,e,t)}function ro(e,t,n={}){const s=O(!1);let o;return ln(()=>{const i=s.value?{}:J(t,oo);o?o.patch(i):o=e.push(i,n)}),ht()&&(un(()=>{o.dispose()}),fn(()=>{s.value=!0}),pn(()=>{s.value=!1})),o}function io(e={},t={}){(t.head||Ft()).use(no);const{title:s,titleTemplate:o,...r}=e;return jt({title:s,titleTemplate:o,_flatMeta:r},t)}function co(e={}){const t=Zn({domOptions:{render:Xn(()=>Ct(t),n=>setTimeout(n,0))},...e});return t.install=so(t),t}function ir(e){return dn()?(hn(e),!0):!1}function ao(e){if(!D(e))return Ie(e);const t=new Proxy({},{get(n,s,o){return mt(Reflect.get(e.value,s,o))},set(n,s,o){return D(e.value[s])&&!D(o)?e.value[s].value=o:e.value[s]=o,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Ie(t)}const cr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ar=e=>e!=null,lo=Object.prototype.toString,lr=e=>lo.call(e)==="[object Object]",X=()=>{};function It(e,t){function n(...s){return new Promise((o,r)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(o).catch(r)})}return n}function uo(e,t={}){let n,s,o=X;const r=f=>{clearTimeout(f),o(),o=X};let i;return f=>{const a=K(e),u=K(t.maxWait);return n&&r(n),a<=0||u!==void 0&&u<=0?(s&&(r(s),s=void 0),Promise.resolve(f())):new Promise((d,p)=>{o=t.rejectOnCancel?p:d,i=f,u&&!s&&(s=setTimeout(()=>{n&&r(n),s=void 0,d(i())},u)),n=setTimeout(()=>{s&&r(s),s=void 0,d(f())},a)})}}function fo(...e){let t=0,n,s=!0,o=X,r,i,c,f,a;!D(e[0])&&typeof e[0]=="object"?{delay:i,trailing:c=!0,leading:f=!0,rejectOnCancel:a=!1}=e[0]:[i,c=!0,f=!0,a=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,o(),o=X)};return p=>{const l=K(i),m=Date.now()-t,h=()=>r=p();return u(),l<=0?(t=Date.now(),h()):(m>l&&(f||!s)?(t=Date.now(),h()):c&&(r=new Promise((g,y)=>{o=a?y:g,n=setTimeout(()=>{t=Date.now(),s=!0,g(h()),u()},Math.max(0,l-m))})),!f&&!n&&(n=setTimeout(()=>s=!0,l)),s=!1,r)}}function ur(e){return Array.isArray(e)?e:[e]}function po(e){return ht()}function fr(e,t=200,n={}){return It(uo(t,n),e)}function pr(e,t=200,n=!1,s=!0,o=!1){return It(fo(t,n,s,o),e)}function dr(e,t=!0,n){po()?gt(e,n):t?e():_e(e)}function hr(e,t,n){return Q(e,t,{...n,immediate:!0})}const S={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Ne={silent:{level:-1},fatal:{level:S.fatal},error:{level:S.error},warn:{level:S.warn},log:{level:S.log},info:{level:S.info},success:{level:S.success},fail:{level:S.fail},ready:{level:S.info},start:{level:S.info},box:{level:S.info},debug:{level:S.debug},trace:{level:S.trace},verbose:{level:S.verbose}};function re(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function we(e,t,n=".",s){if(!re(t))return we(e,{},n);const o=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(Array.isArray(i)&&Array.isArray(o[r])?o[r]=[...i,...o[r]]:re(i)&&re(o[r])?o[r]=we(i,o[r],(n?`${n}.`:"")+r.toString()):o[r]=i)}return o}function ho(e){return(...t)=>t.reduce((n,s)=>we(n,s,""),{})}const go=ho();function mo(e){return Object.prototype.toString.call(e)==="[object Object]"}function yo(e){return!(!mo(e)||!e.message&&!e.args||e.stack)}let ie=!1;const Ve=[];class x{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||Ne;this.options=go({...t,defaults:{...t.defaults},level:ce(t.level,n),reporters:[...t.reporters||[]]},{types:Ne,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const s in n){const o={type:s,...this.options.defaults,...n[s]};this[s]=this._wrapLogFn(o),this[s].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=ce(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new x({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[n].raw(String(s).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){ie=!0}resumeLogs(){ie=!1;const t=Ve.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const s in this.options.types)this[s]=n(s,this.options.types[s])||this[s],this[s].raw=this[s]}_wrapLogFn(t,n){return(...s)=>{if(ie){Ve.push([this,t,s,n]);return}return this._logFn(t,s,n)}}_logFn(t,n,s){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:ce(t.level,this.options.types)};!s&&n.length===1&&yo(n[0])?Object.assign(o,n[0]):o.args=[...n],o.message&&(o.args.unshift(o.message),delete o.message),o.additional&&(Array.isArray(o.additional)||(o.additional=o.additional.split(`
3
- `)),o.args.push(`
4
- `+o.additional.join(`
5
- `)),delete o.additional),o.type=typeof o.type=="string"?o.type.toLowerCase():"log",o.tag=typeof o.tag=="string"?o.tag:"";const r=(c=!1)=>{const f=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&f>0){const a=[...this._lastLog.object.args];f>1&&a.push(`(repeated ${f} times)`),this._log({...this._lastLog.object,args:a}),this._lastLog.count=1}c&&(this._lastLog.object=o,this._log(o))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&o.date?o.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=o.date,i<this.options.throttle)try{const c=JSON.stringify([o.type,o.tag,o.args]),f=this._lastLog.serialized===c;if(this._lastLog.serialized=c,f&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(r,this.options.throttle);return}}catch{}r(!0)}_log(t){for(const n of this.options.reporters)n.log(t,{options:this.options})}}function ce(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}x.prototype.add=x.prototype.addReporter;x.prototype.remove=x.prototype.removeReporter;x.prototype.clear=x.prototype.removeReporter;x.prototype.withScope=x.prototype.withTag;x.prototype.mock=x.prototype.mockTypes;x.prototype.pause=x.prototype.pauseLogs;x.prototype.resume=x.prototype.resumeLogs;function wo(e={}){return new x(e)}class bo{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const n=this._getLogFn(t.level),s=t.type==="log"?"":t.type,o=t.tag||"",i=`
6
- background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};
7
- border-radius: 0.5em;
8
- color: white;
9
- font-weight: bold;
10
- padding: 2px 0.5em;
11
- `,c=`%c${[o,s].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${c}%c ${t.args[0]}`,i,"",...t.args.slice(1)):n(c,i,...t.args)}}function vo(e={}){return wo({reporters:e.reporters||[new bo({})],prompt(n,s={}){return s.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const $t=vo(),Co=Object.freeze({left:0,top:0,width:16,height:16}),Y=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ot=Object.freeze({...Co,...Y}),ko=Object.freeze({...Ot,body:"",hidden:!1}),_o=Object.freeze({width:null,height:null}),At=Object.freeze({..._o,...Y});function xo(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=xo(e,t);for(const s in ko)s in Y?s in e&&!(s in n)&&(n[s]=Y[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function So(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,f=c&&r(c);f&&(o[i]=[c].concat(f))}return o[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function We(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 To(e,t){if(e.icons[t])return We(e,t,[]);const n=So(e,[t])[t];return n?We(e,t,n):null}const Fo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ee(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(Fo);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=jo.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 Io(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 $o(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Oo(e,t,n){const s=Io(e);return $o(s.defs,t+s.content+n)}const Se=e=>e==="unset"||e==="undefined"||e==="none";function Ao(e,t){const n={...Ot,...e},s={...At,...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=Oo(r,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,f=o.width,a=o.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?a:c,u=ee(d,f/a)):(u=i==="auto"?f:i,d=c===null?ee(u,a/f):c==="auto"?a:c);const p={},l=(h,g)=>{Se(g)||(p[h]=g.toString())};l("width",u),l("height",d);const m=[o.left,o.top,f,a];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:r}}function Po(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function qe(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" ')),Po(t)}function Mo(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()}const Lo=/\swidth\s*=\s*["']([\w.]+)["']/,Eo=/\sheight\s*=\s*["']([\w.]+)["']/,ae=/<svg\s+/;function Ho(e,t,n){const s=e.slice(0,e.indexOf(">")),o=(r,i)=>{const c=i.exec(s),f=c!=null,a=t[r];return!a&&!Se(a)&&(typeof n=="number"?n>0&&(t[r]=ee(c?.[1]??"1em",n)):c&&(t[r]=c[1])),f};return[o("width",Lo),o("height",Eo)]}async function Pt(e,t,n,s,o,r){const{scale:i,addXmlNs:c=!1}=s??{},{additionalProps:f={},iconCustomizer:a}=s?.customizations??{},u=await o?.()??{};await a?.(t,n,u),Object.keys(f).forEach(h=>{const g=f[h];g!=null&&(u[h]=g)}),r?.(u);const[d,p]=Ho(e,u,i);c&&(!e.includes("xmlns=")&&!u.xmlns&&(u.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!u["xmlns:xlink"]&&(u["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const l=Object.keys(u).map(h=>h==="width"&&d||h==="height"&&p?null:`${h}="${u[h]}"`).filter(h=>h!=null);if(l.length&&(e=e.replace(ae,`<svg ${l.join(" ")} `)),s){const{defaultStyle:h,defaultClass:g}=s;g&&!e.includes("class=")&&(e=e.replace(ae,`<svg class="${g}" `)),h&&!e.includes("style=")&&(e=e.replace(ae,`<svg style="${h}" `))}const m=s?.usedProps;return m&&(Object.keys(f).forEach(h=>{const g=u[h];g!=null&&(m[h]=g)}),typeof u.width<"u"&&u.width!==null&&(m.width=u.width),typeof u.height<"u"&&u.height!==null&&(m.height=u.height)),e}var V={exports:{}},le,Be;function Do(){if(Be)return le;Be=1;var e=1e3,t=e*60,n=t*60,s=n*24,o=s*7,r=s*365.25;le=function(u,d){d=d||{};var p=typeof u;if(p==="string"&&u.length>0)return i(u);if(p==="number"&&isFinite(u))return d.long?f(u):c(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var p=parseFloat(d[1]),l=(d[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return p*r;case"weeks":case"week":case"w":return p*o;case"days":case"day":case"d":return p*s;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function c(u){var d=Math.abs(u);return d>=s?Math.round(u/s)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function f(u){var d=Math.abs(u);return d>=s?a(u,d,s,"day"):d>=n?a(u,d,n,"hour"):d>=t?a(u,d,t,"minute"):d>=e?a(u,d,e,"second"):u+" ms"}function a(u,d,p,l){var m=d>=p*1.5;return Math.round(u/p)+" "+l+(m?"s":"")}return le}var ue,Ge;function Ro(){if(Ge)return ue;Ge=1;function e(t){s.debug=s,s.default=s,s.coerce=a,s.disable=c,s.enable=r,s.enabled=f,s.humanize=Do(),s.destroy=u,Object.keys(t).forEach(d=>{s[d]=t[d]}),s.names=[],s.skips=[],s.formatters={};function n(d){let p=0;for(let l=0;l<d.length;l++)p=(p<<5)-p+d.charCodeAt(l),p|=0;return s.colors[Math.abs(p)%s.colors.length]}s.selectColor=n;function s(d){let p,l=null,m,h;function g(...y){if(!g.enabled)return;const w=g,v=Number(new Date),b=v-(p||v);w.diff=b,w.prev=p,w.curr=v,p=v,y[0]=s.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let _=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(k,T)=>{if(k==="%%")return"%";_++;const F=s.formatters[T];if(typeof F=="function"){const I=y[_];k=F.call(w,I),y.splice(_,1),_--}return k}),s.formatArgs.call(w,y),(w.log||s.log).apply(w,y)}return g.namespace=d,g.useColors=s.useColors(),g.color=s.selectColor(d),g.extend=o,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(m!==s.namespaces&&(m=s.namespaces,h=s.enabled(d)),h),set:y=>{l=y}}),typeof s.init=="function"&&s.init(g),g}function o(d,p){const l=s(this.namespace+(typeof p>"u"?":":p)+d);return l.log=this.log,l}function r(d){s.save(d),s.namespaces=d,s.names=[],s.skips=[];const p=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const l of p)l[0]==="-"?s.skips.push(l.slice(1)):s.names.push(l)}function i(d,p){let l=0,m=0,h=-1,g=0;for(;l<d.length;)if(m<p.length&&(p[m]===d[l]||p[m]==="*"))p[m]==="*"?(h=m,g=l,m++):(l++,m++);else if(h!==-1)m=h+1,g++,l=g;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function c(){const d=[...s.names,...s.skips.map(p=>"-"+p)].join(",");return s.enable(""),d}function f(d){for(const p of s.skips)if(i(d,p))return!1;for(const p of s.names)if(i(d,p))return!0;return!1}function a(d){return d instanceof Error?d.stack||d.message:d}function u(){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 ue=e,ue}var Ke;function zo(){return Ke||(Ke=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 u="color: "+this.color;a.splice(1,0,u,"color: inherit");let d=0,p=0;a[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(d++,l==="%c"&&(p=d))}),a.splice(p,0,u)}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=Ro()(t);const{formatters:f}=e.exports;f.j=function(a){try{return JSON.stringify(a)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(V,V.exports)),V.exports}var No=zo();const Mt=kn(No),Vo=Mt("@iconify-loader:custom");async function Qe(e,t,n,s){let o;Vo(`${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 Pt(s?.customizations?.trimCustomSvg===!0?Mo(o):o,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),o)}}const Uo=Mt("@iconify-loader:icon");async function Lt(e,t,n,s){let o;const{customize:r}=s?.customizations??{};for(const i of n)if(o=To(e,i),o){Uo(`${t}:${i}`);let c={...At};typeof r=="function"&&(o=Object.assign({},o),c=r(c,o,`${t}:${i}`)??c);const{attributes:{width:f,height:a,...u},body:d}=Ao(o,c),p=s?.scale;return await Pt(`<svg >${d}</svg>`,t,i,s,()=>({...u}),l=>{const m=(h,g)=>{const y=l[h];let w;if(!Se(y)){if(y)return;typeof p=="number"?p&&(w=ee(g??"1em",p)):w=g}w?l[h]=w:delete l[h]};m("width",f),m("height",a)})}}const Et=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 Qe(()=>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 Lt(o,e,r,n)}}}else return await Qe(s,e,t,n)};var Je={};function Wo(){const e=typeof process<"u"&&process.stdout,t=e&&!!Je.VSCODE_CWD,n=e&&!!Je.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}const Ht=["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"],qo=3;function Bo(e){return Xt((t={})=>{const{scale:n=1,mode:s="auto",prefix:o="i-",warn:r=!1,iconifyCollectionsNames:i,collections:c,extraProperties:f={},customizations:a={},autoInstall:u=!1,collectionsNodeResolvePath:d,layer:p="icons",unit:l,processor:m}=t,h=Wo(),g={addXmlNs:!0,scale:n,customCollections:c,autoInstall:u,cwd:d,warn:void 0,customizations:{...a,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(w,v,b){await a.iconCustomizer?.(w,v,b),l&&(b.width||(b.width=`${n}${l}`),b.height||(b.height=`${n}${l}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:qe,parseIconWithLoader:Ze},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async w=>{let[v,b,_=s]=w;y=y||await e(t);const C={},k=await Ze(b,y,{...g,usedProps:C},i);if(!k){r&&!h.isESLint&&Yt(`failed to load icon "${v}"`);return}let T;const F=`url("data:image/svg+xml;utf8,${qe(k.svg)}")`;return _==="auto"&&(_=k.svg.includes("currentColor")?"mask":"bg"),_==="mask"?T={"--un-icon":F,"-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}:T={background:`${F} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...C},m?.(T,{...k,icon:k.name,mode:_}),T},{layer:p,prefix:o}]]}})}function Dt(e,t,n=new Map){function s(o){if(Ht.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 Et(o,r,i);if(c)return c;const f=await s(o);if(f){const a=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];c=await Lt(f,o,a,i)}return c}}async function Ze(e,t,n={},s=[]){let o="",r="",i;const c=new Set([...Ht,...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 f=e.split(/-/g);for(let a=qo;a>=1&&(o=f.slice(0,a).join("-"),!(!!c.has(o)&&(r=f.slice(a).join("-"),i=await t(o,r,n),i)));a--);}if(i)return{collection:o,name:r,svg:i}}async function Go(e){const{$fetch:t}=await U(async()=>{const{$fetch:n}=await import("./unocss-B_Rh5TB7.js").then(s=>s.f);return{$fetch:n}},[],import.meta.url);return Dt(t,e)}const Ko=Bo(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?Dt(t,n):n?await Go(n):Et}),Xe={presets:[en({preflights:{reset:!0}}),tn(),Ko({cdn:"https://cdn.jsdelivr.net/npm/"}),nn(),on()]},Rt=/^[a-z0-9]+(-[a-z0-9]+)*$/,N=(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(),f=o.pop(),a={provider:o.length>0?o[0]:s,prefix:f,name:c};return t&&!W(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&&!W(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:r};return t&&!W(c,n)?null:c}return null},W=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,zt=Object.freeze({left:0,top:0,width:16,height:16}),te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),M=Object.freeze({...zt,...te}),be=Object.freeze({...M,body:"",hidden:!1});function Qo(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 Ye(e,t){const n=Qo(e,t);for(const s in be)s in te?s in e&&!(s in n)&&(n[s]=te[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Jo(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,f=c&&r(c);f&&(o[i]=[c].concat(f))}return o[i]}return Object.keys(n).concat(Object.keys(s)).forEach(r),o}function Zo(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=Ye(s[c]||o[c],r)}return i(t),n.forEach(i),Ye(e,r)}function Nt(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=Jo(e);for(const o in s){const r=s[o];r&&(t(o,Zo(e,o,r)),n.push(o))}return n}const Xo={provider:"",aliases:{},not_found:{},...zt};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Vt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,Xo))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o||typeof r.body!="string"||!fe(r,be))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]||!fe(r,be))return null}return t}const et=Object.create(null);function Yo(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function P(e,t){const n=et[e]||(et[e]=Object.create(null));return n[t]||(n[t]=Yo(e,t))}function Ut(e,t){return Vt(t)?Nt(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function es(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let z=!1;function Wt(e){return typeof e=="boolean"&&(z=e),z}function oe(e){const t=typeof e=="string"?N(e,!0,z):e;if(t){const n=P(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function ts(e,t){const n=N(e,!0,z);if(!n)return!1;const s=P(n.provider,n.prefix);return t?es(s,n.name,t):(s.missing.add(n.name),!0)}function ns(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return Vt(e)&&(e.prefix="",Nt(e,(r,i)=>{ts(r,i)&&(o=!0)})),o}const n=e.prefix;if(!W({prefix:n,name:"a"}))return!1;const s=P(t,n);return!!Ut(s,e)}function os(e){return!!oe(e)}function ss(e){const t=oe(e);return t&&{...M,...t}}const qt=Object.freeze({width:null,height:null}),Bt=Object.freeze({...qt,...te}),rs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,is=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function tt(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(rs);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=is.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 cs(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 as(e,t){return e?"<defs>"+e+"</defs>"+t:t}function ls(e,t,n){const s=cs(e);return as(s.defs,t+s.content+n)}const us=e=>e==="unset"||e==="undefined"||e==="none";function fs(e,t){const n={...M,...e},s={...Bt,...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=ls(r,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,f=o.width,a=o.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?a:c,u=tt(d,f/a)):(u=i==="auto"?f:i,d=c===null?tt(u,a/f):c==="auto"?a:c);const p={},l=(h,g)=>{us(g)||(p[h]=g.toString())};l("width",u),l("height",d);const m=[o.left,o.top,f,a];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:r}}const ps=/\sid="(\S+)"/g,ds="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let hs=0;function gs(e,t=ds){const n=[];let s;for(;s=ps.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+(hs++).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 ve=Object.create(null);function ms(e,t){ve[e]=t}function Ce(e){return ve[e]||ve[""]}function Te(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 Fe=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],q=[];for(;E.length>0;)E.length===1||Math.random()>.5?q.push(E.shift()):q.push(E.pop());Fe[""]=Te({resources:["https://api.iconify.design"].concat(q)});function ys(e,t){const n=Te(t);return n===null?!1:(Fe[e]=n,!0)}function je(e){return Fe[e]}const ws=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let nt=ws();function bs(e,t){const n=je(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 vs(e){return e===404}const Cs=(e,t,n)=>{const s=[],o=bs(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((f,a)=>{c+=f.length+1,c>=o&&a>0&&(s.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=f.length),i.icons.push(f)}),s.push(i),s};function ks(e){if(typeof e=="string"){const t=je(e);if(t)return t.path}return"/"}const _s=(e,t,n)=>{if(!nt){n("abort",424);return}let s=ks(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),f=new URLSearchParams({icons:c});s+=r+".json?"+f.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;nt(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(vs(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)})},xs={prepare:Cs,send:_s};function Ss(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,f=n[r]||(n[r]=Object.create(null)),a=f[i]||(f[i]=P(r,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function Gt(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==t))})}function Ts(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(f=>{if(f.prefix!==o)return!0;const a=f.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||Gt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Fs=0;function js(e,t,n){const s=Fs++,o=Gt.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 Is(e,t=!0,n=!1){const s=[];return e.forEach(o=>{const r=typeof o=="string"?N(o,t,n):o;r&&s.push(r)}),s}var $s={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Os(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 k=Math.floor(Math.random()*C.length);i.push(C[k]),C=C.slice(0,k).concat(C.slice(k+1))}i=i.concat(C)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let f="pending",a=0,u,d=null,p=[],l=[];typeof s=="function"&&l.push(s);function m(){d&&(clearTimeout(d),d=null)}function h(){f==="pending"&&(f="aborted"),m(),p.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),p=[]}function g(C,k){k&&(l=[]),typeof C=="function"&&l.push(C)}function y(){return{startTime:c,payload:t,status:f,queriesSent:a,queriesPending:p.length,subscribe:g,abort:h}}function w(){f="failed",l.forEach(C=>{C(void 0,u)})}function v(){p.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),p=[]}function b(C,k,T){const F=k!=="success";switch(p=p.filter(I=>I!==C),f){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=T,w();return}if(F){u=T,p.length||(i.length?_():w());return}if(m(),v(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}f="completed",l.forEach(I=>{I(T)})}function _(){if(f!=="pending")return;m();const C=i.shift();if(C===void 0){if(p.length){d=setTimeout(()=>{m(),f==="pending"&&(v(),w())},e.timeout);return}w();return}const k={status:"pending",resource:C,callback:(T,F)=>{b(k,T,F)}};p.push(k),a++,d=setTimeout(_,e.rotate),n(C,t,k.callback)}return setTimeout(_),y}function Kt(e){const t={...$s,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function o(c,f,a){const u=Os(t,c,f,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function r(c){return n.find(f=>c(f))||null}return{query:o,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ot(){}const pe=Object.create(null);function As(e){if(!pe[e]){const t=je(e);if(!t)return;const n=Kt(t),s={config:t,redundancy:n};pe[e]=s}return pe[e]}function Ps(e,t,n){let s,o;if(typeof e=="string"){const r=Ce(e);if(!r)return n(void 0,424),ot;o=r.send;const i=As(e);i&&(s=i.redundancy)}else{const r=Te(e);if(r){s=Kt(r);const i=e.resources?e.resources[0]:"",c=Ce(i);c&&(o=c.send)}}return!s||!o?(n(void 0,424),ot):s.query(t,o,n)().abort}function st(){}function Ms(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Ts(e)}))}function Ls(e){const t=[],n=[];return e.forEach(s=>{(s.match(Rt)?t:n).push(s)}),{valid:t,invalid:n}}function H(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(!Ut(e,n).length){s();return}}catch(o){console.error(o)}s(),Ms(e)}function rt(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Es(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)){rt(e.loadIcons(o,s,n),u=>{H(e,o,u)});return}if(r){o.forEach(u=>{const d=r(u,s,n);rt(d,p=>{const l=p?{prefix:s,icons:{[u]:p}}:null;H(e,[u],l)})});return}const{valid:i,invalid:c}=Ls(o);if(c.length&&H(e,c,null),!i.length)return;const f=s.match(Rt)?Ce(n):null;if(!f){H(e,i,null);return}f.prepare(n,s,i).forEach(u=>{Ps(n,u,d=>{H(e,u.icons,d)})})}))}const Qt=(e,t)=>{const n=Is(e,!0,Wt()),s=Ss(n);if(!s.pending.length){let f=!0;return t&&setTimeout(()=>{f&&t(s.loaded,s.missing,s.pending,st)}),()=>{f=!1}}const o=Object.create(null),r=[];let i,c;return s.pending.forEach(f=>{const{provider:a,prefix:u}=f;if(u===c&&a===i)return;i=a,c=u,r.push(P(a,u));const d=o[a]||(o[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(f=>{const{provider:a,prefix:u,name:d}=f,p=P(a,u),l=p.pendingIcons||(p.pendingIcons=new Set);l.has(d)||(l.add(d),o[a][u].push(d))}),r.forEach(f=>{const a=o[f.provider][f.prefix];a.length&&Es(f,a)}),t?js(t,s,r):st},Hs=e=>new Promise((t,n)=>{const s=typeof e=="string"?N(e,!0):e;if(!s){n(e);return}Qt([s||e],o=>{if(o.length&&s){const r=oe(s);if(r){t({...M,...r});return}}n(e)})});function Ds(e,t){const n={...e};for(const s in t){const o=t[s],r=typeof o;s in qt?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const Rs=/[\s,]+/;function zs(e,t){t.split(Rs).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ns(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 Vs(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 Us(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ws(e){return"data:image/svg+xml,"+Us(e)}function qs(e){return'url("'+Ws(e)+'")'}const it={...Bt,inline:!1},Bs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Gs={display:"inline-block"},ke={backgroundColor:"currentColor"},Jt={backgroundColor:"transparent"},ct={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},at={webkitMask:ke,mask:ke,background:Jt};for(const e in at){const t=at[e];for(const n in ct)t[e+n]=ct[n]}const B={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";B[e+"-flip"]=t,B[e.slice(0,1)+"-flip"]=t,B[e+"Flip"]=t});function lt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const ut=(e,t)=>{const n=Ds(it,t),s={...Bs},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"&&zs(n,g);break;case"color":r.color=g;break;case"rotate":typeof g=="string"?n[h]=Ns(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=B[h];y?(g===!0||g==="true"||g===1)&&(n[y]=!0):it[h]===void 0&&(s[h]=g)}}}const f=fs(e,n),a=f.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=gs(f.body,g?()=>g+"ID"+h++:"iconifyVue"),$e("svg",s)}const{body:u,width:d,height:p}=e,l=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),m=Vs(u,{...a,width:d+"",height:p+""});return s.style={...r,"--svg":qs(m),width:lt(a.width),height:lt(a.height),...Gs,...l?ke:Jt,...c},$e("span",s)};Wt(!0);ms("",xs);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"||!ns(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;ys(n,o)||console.error(s)}catch{console.error(s)}}}}const Ks={...M,body:""};yt((e,{emit:t})=>{const n=O(null);function s(){n.value&&(n.value.abort?.(),n.value=null)}const o=O(!!e.ssr),r=O(""),i=gn(null);function c(){const a=e.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string")return r.value="",{data:a};let u;if(typeof a!="string"||(u=N(a,!1,!0))===null)return null;let d=oe(u);if(!d){const m=n.value;return(!m||m.name!==a)&&(d===null?n.value={name:a}:n.value={name:a,abort:Qt([u],f)}),null}s(),r.value!==a&&(r.value=a,_e(()=>{t("load",a)}));const p=e.customise;if(p){d=Object.assign({},d);const m=p(d.body,u.name,u.prefix,u.provider);typeof m=="string"&&(d.body=m)}const l=["iconify"];return u.prefix!==""&&l.push("iconify--"+u.prefix),u.provider!==""&&l.push("iconify--"+u.provider),{data:d,classes:l}}function f(){const a=c();a?a.data!==i.value?.data&&(i.value=a):i.value=null}return o.value?f():gt(()=>{o.value=!0,f()}),Q(()=>e.icon,f),mn(s),()=>{const a=i.value;if(!a)return ut(Ks,e);let u=e;return a.classes&&(u={...e,class:a.classes.join(" ")}),ut({...M,...a.data},u)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const Qs=yt({__name:"App",setup(e){const t=Tn(),n=j(()=>de.value.find(({id:i})=>i===t.name)),s=O(""),o=O(""),r=j(()=>n.value?.to&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`);return Q(n,async i=>{let c="/favicon.ico";if(i?.icon){const f=os(i.icon)?ss(i.icon):await Hs(i.icon);if(f){const{body:a,height:u,left:d,top:p,width:l}=f;c=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${d.toString()} ${p.toString()} ${l.toString()} ${u.toString()}">${a}</svg>`}}s.value=c}),jt({link:[[s,"icon","icon"],[r,"canonical"]].map(([i,c,f])=>({href:i,key:f,rel:c})),script:[{id:"application/ld+json",innerHTML:o,type:"application/ld+json"}]}),io({description:j(()=>n.value?.description),keywords:j(()=>n.value?.keywords.join()),ogDescription:j(()=>n.value?.description),ogImage:j(()=>n.value?.images.filter(({url:i})=>i).map(({alt:i="",url:c})=>({alt:i,url:`${window.location.origin}/${c}`}))??[]),ogTitle:j(()=>n.value?.title),ogType:j(()=>n.value?.type),ogUrl:r,title:j(()=>n.value?.title)}),Q(()=>n.value?.jsonld,async i=>{o.value=JSON.stringify(await i)||'{"@context":"https://schema.org"}'}),(i,c)=>{const f=yn("router-view");return Ae(),Oe(f,null,{default:wn(({Component:a})=>[(Ae(),Oe(bn(a),{id:mt(de)[0]?.id},null,8,["id"]))]),_:1})}}});let Zt;const{pathname:Js}=new URL(document.baseURI),ft=O(!0),ne=new Map,Zs=()=>{let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),reject:t,resolve:e}},A=Fn({history:jn(Js),routes:[],scrollBehavior:(e,t,n)=>Zt?.(e,t,n)}),pt=O(!0),dt=j(()=>A.currentRoute.value.path==="/"?he.value[A.currentRoute.value.name]?.$children[0]:he.value[A.currentRoute.value.name]),gr=({id:e=_n()})=>(ne.set(e,Zs()),vn(async()=>In(`./pages/${e}.vue`,{scriptOptions:{inlineTemplate:!0}}))),mr=({id:e}={})=>{e&&ne.get(e)?.resolve(void 0)},Xs=({extractAll:e,toggleObserver:t})=>{Zt=async({hash:n,name:s})=>{if(s){ft.value=!0,t(!1);const[{promise:o}={}]=ne.values();await o,await Promise.all([...ne.values()].map(({promise:i})=>i)),await e(),t(!0);const r=pt.value&&{behavior:"smooth",...n||dt.value?.parent?.flat&&dt.value.index?{el:n||`#${String(s)}`}:{left:0,top:0}};return ft.value=!1,pt.value=!0,r}else return!1}};A.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const G=Cn(Qs),Ys={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};G.use(co());const er=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();xn.push(t),await _e(),de.value.forEach(({id:n,loc:s,path:o},r,i)=>{if(Object.defineProperties(i[r],{jsonld:Ys}),o!==void 0){const c=s?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");A.addRoute({...c&&s?{alias:c}:{undefined:void 0},children:[{component:()=>U(()=>import("./PageView-CPKMcCsh.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:n,path:""}],component:()=>U(()=>import("./RootView-D0rCgEJs.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:o.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),A.addRoute({component:()=>U(()=>import("./NotFoundView-BeP2zP1s.js"),__vite__mapDeps([4,2,1]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json");Pe.push(...await(e.ok?e:new Response("[]")).json()),Xe.presets.push(sn({fonts:Sn(Pe)})),await rn({defaults:Xe,ready:async t=>{const{toggleObserver:n}=t;return Xs(t),await er,G.provide("pages",ao(he)),G.use(A),await A.isReady(),G.mount("#app"),n(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch($t.error);$t.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.1.79");export{X as a,ir as b,dr as c,lr as d,fr as e,dt as f,ft as g,$t as h,cr as i,jt as j,gr as m,ar as n,ne as p,mr as r,pt as s,ur as t,pr as u,hr as w};