@vuebro/runtime 1.1.67 → 1.1.69
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/README.md +1 -1
- package/dist/.vite/manifest.json +1 -1
- package/dist/assets/{NotFoundView-kX-psOb7.js → NotFoundView-B0Op1zef.js} +1 -1
- package/dist/assets/{PageView-B0S8ELO6.js → PageView-DLjPOkg3.js} +1 -1
- package/dist/assets/{RootView-CUp_urPg.js → RootView-BmjG65AE.js} +1 -1
- package/dist/assets/index-ILEeH0w3.js +11 -0
- package/dist/assets/{shared-D0i9xbrj.js → shared-BtXX9D0Q.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +35 -26
- package/dist/assets/index-BQzHiAbK.js +0 -11
- package/eslint.config.ts +0 -35
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# runtime
|
|
1
|
+
# runtime
|
package/dist/.vite/manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_shared-
|
|
1
|
+
{"_shared-BtXX9D0Q.js":{"file":"assets/shared-BtXX9D0Q.js","name":"shared"},"_unocss-B_Rh5TB7.js":{"file":"assets/unocss-B_Rh5TB7.js","name":"unocss","isDynamicEntry":true},"index.html":{"file":"assets/index-ILEeH0w3.js","name":"index","src":"index.html","isEntry":true,"imports":["_unocss-B_Rh5TB7.js","_shared-BtXX9D0Q.js"],"dynamicImports":["_unocss-B_Rh5TB7.js","src/views/PageView.vue","src/views/RootView.vue","src/views/NotFoundView.vue"],"css":["assets/index-vGiKZPT9.css"]},"src/views/NotFoundView.vue":{"file":"assets/NotFoundView-B0Op1zef.js","name":"NotFoundView","src":"src/views/NotFoundView.vue","isDynamicEntry":true,"imports":["index.html","_unocss-B_Rh5TB7.js","_shared-BtXX9D0Q.js"]},"src/views/PageView.vue":{"file":"assets/PageView-DLjPOkg3.js","name":"PageView","src":"src/views/PageView.vue","isDynamicEntry":true,"imports":["_shared-BtXX9D0Q.js","index.html","_unocss-B_Rh5TB7.js"]},"src/views/RootView.vue":{"file":"assets/RootView-BmjG65AE.js","name":"RootView","src":"src/views/RootView.vue","isDynamicEntry":true,"imports":["_shared-BtXX9D0Q.js","index.html","_unocss-B_Rh5TB7.js"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.22.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.3.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.3.4.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as d,ref as c,onBeforeUnmount as a,watchEffect as p,createElementBlock as f,openBlock as u,Fragment as m,createVNode as y,createElementVNode as o,unref as h,withCtx as A}from"vue";import{j as v}from"./index-
|
|
1
|
+
import{defineComponent as d,ref as c,onBeforeUnmount as a,watchEffect as p,createElementBlock as f,openBlock as u,Fragment as m,createVNode as y,createElementVNode as o,unref as h,withCtx as A}from"vue";import{j as v}from"./index-ILEeH0w3.js";import"./unocss-B_Rh5TB7.js";import"./shared-BtXX9D0Q.js";import"vue-router";import"@vuebro/loader-sfc";function l(n,e){const t=n.type,r=t==="html"?"htmlAttrs":t==="body"?"bodyAttrs":t;if(typeof r!="string"||!(r in e))return;const i=n.props||{};if(n.children){const s="children";i.children=Array.isArray(n.children)?n.children[0][s]:n[s]}Array.isArray(e[r])?e[r].push(i):r==="title"?e.title=i.children:e[r]=i}function N(n){const e={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const t of n)if(typeof t.type=="symbol"&&Array.isArray(t.children))for(const r of t.children)l(r,e);else l(t,e);return e}const b=d({name:"Head",setup(n,{slots:e}){const t=c({}),r=v(t);return a(()=>{r.dispose()}),()=>(p(()=>{e.default&&r.patch(N(e.default()))}),null)}}),w=d({__name:"NotFoundView",setup(n){return(e,t)=>(u(),f(m,null,[y(h(b),null,{default:A(()=>[...t[0]||(t[0]=[o("title",null,"Page Not Found",-1)])]),_:1}),t[1]||(t[1]=o("div",{class:"absolute inset-0 grid place-items-center"},[o("div",{class:"text-center"},[o("div",{class:"text-9xl"},"404"),o("p",null,"Oops. Nothing here...")])],-1))],64))}});export{w as default};
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-BtXX9D0Q.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-ILEeH0w3.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 +1 @@
|
|
|
1
|
-
import{defineComponent as i,computed as a,createBlock as r,openBlock as t,Suspense as l,withCtx as m,createElementBlock as p,createCommentVNode as d,unref as o,normalizeClass as u,resolveDynamicComponent as c}from"vue";import{p as _,u as f}from"./shared-
|
|
1
|
+
import{defineComponent as i,computed as a,createBlock as r,openBlock as t,Suspense as l,withCtx as m,createElementBlock as p,createCommentVNode as d,unref as o,normalizeClass as u,resolveDynamicComponent as c}from"vue";import{p as _,u as f}from"./shared-BtXX9D0Q.js";import{m as v,r as k}from"./index-ILEeH0w3.js";import"./unocss-B_Rh5TB7.js";import"vue-router";import"@vuebro/loader-sfc";const C=["id"],D=i({__name:"RootView",setup(x){const[e]=_.value,s=a(()=>e&&v(e));return(B,n)=>(t(),r(l,null,{default:m(()=>[o(e)?.enabled?(t(),p("div",{key:0,id:o(e)?.id??o(f)(),class:u(o(e)?.class),"un-cloak":""},[(t(),r(c(s.value),{pid:o(e)?.id,onVnodeMounted:n[0]||(n[0]=V=>o(k)(o(e)))},null,8,["pid"]))],10,C)):d("",!0)]),_:1}))}});export{D as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-DLjPOkg3.js","./shared-BtXX9D0Q.js","./unocss-B_Rh5TB7.js","./RootView-BmjG65AE.js","./NotFoundView-B0Op1zef.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-BtXX9D0Q.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,theme:!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-DLjPOkg3.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:n,path:""}],component:()=>U(()=>import("./RootView-BmjG65AE.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:o.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),A.addRoute({component:()=>U(()=>import("./NotFoundView-B0Op1zef.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.69");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};
|
|
@@ -5,4 +5,4 @@ import{computed as Lt,isReactive as vn,reactive as ke,watch as vt}from"vue";cons
|
|
|
5
5
|
|| ${O} === "boolean" || ${c} === null`).assign(C,(0,d._)`[${c}]`)}}}function g({gen:t,parentData:i,parentDataProperty:y},n){t.if((0,d._)`${i} !== undefined`,()=>t.assign((0,d._)`${i}[${y}]`,n))}function v(t,i,y,n=a.Correct){const c=n===a.Correct?d.operators.EQ:d.operators.NEQ;let w;switch(t){case"null":return(0,d._)`${i} ${c} null`;case"array":w=(0,d._)`Array.isArray(${i})`;break;case"object":w=(0,d._)`${i} && typeof ${i} == "object" && !Array.isArray(${i})`;break;case"integer":w=O((0,d._)`!(${i} % 1) && !isNaN(${i})`);break;case"number":w=O();break;default:return(0,d._)`typeof ${i} ${c} ${t}`}return n===a.Correct?w:(0,d.not)(w);function O(C=d.nil){return(0,d.and)((0,d._)`typeof ${i} == "number"`,C,y?(0,d._)`isFinite(${i})`:d.nil)}}re.checkDataType=v;function f(t,i,y,n){if(t.length===1)return v(t[0],i,y,n);let c;const w=(0,b.toHash)(t);if(w.array&&w.object){const O=(0,d._)`typeof ${i} != "object"`;c=w.null?O:(0,d._)`!${i} || ${O}`,delete w.null,delete w.array,delete w.object}else c=d.nil;w.number&&delete w.integer;for(const O in w)c=(0,d.and)(c,v(O,i,y,n));return c}re.checkDataTypes=f;const _={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:i})=>typeof t=="string"?(0,d._)`{type: ${t}}`:(0,d._)`{type: ${i}}`};function s(t){const i=o(t);(0,E.reportError)(i,_)}re.reportTypeError=s;function o(t){const{gen:i,data:y,schema:n}=t,c=(0,b.schemaRefOrVal)(t,n,"type");return{gen:i,keyword:"type",data:y,schema:n.type,schemaCode:c,schemaValue:c,parentSchema:n,params:{},it:t}}return re}var Re={},sr;function wn(){if(sr)return Re;sr=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.assignDefaults=void 0;const e=J(),r=Q();function E(b,a){const{properties:h,items:l}=b.schema;if(a==="object"&&h)for(const m in h)d(b,m,h[m].default);else a==="array"&&Array.isArray(l)&&l.forEach((m,$)=>d(b,$,m.default))}Re.assignDefaults=E;function d(b,a,h){const{gen:l,compositeRule:m,data:$,opts:p}=b;if(h===void 0)return;const P=(0,e._)`${$}${(0,e.getProperty)(a)}`;if(m){(0,r.checkStrictMode)(b,`default is ignored for: ${P}`);return}let g=(0,e._)`${P} === undefined`;p.useDefaults==="empty"&&(g=(0,e._)`${g} || ${P} === null || ${P} === ""`),l.if(g,(0,e._)`${P} = ${(0,e.stringify)(h)}`)}return Re}var ce={},Y={},ar;function le(){if(ar)return Y;ar=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.validateUnion=Y.validateArray=Y.usePattern=Y.callValidateCode=Y.schemaProperties=Y.allSchemaProperties=Y.noPropertyInData=Y.propertyInData=Y.isOwnProperty=Y.hasPropFunc=Y.reportMissingProp=Y.checkMissingProp=Y.checkReportMissingProp=void 0;const e=J(),r=Q(),E=ve(),d=Q();function b(t,i){const{gen:y,data:n,it:c}=t;y.if(p(y,n,i,c.opts.ownProperties),()=>{t.setParams({missingProperty:(0,e._)`${i}`},!0),t.error()})}Y.checkReportMissingProp=b;function a({gen:t,data:i,it:{opts:y}},n,c){return(0,e.or)(...n.map(w=>(0,e.and)(p(t,i,w,y.ownProperties),(0,e._)`${c} = ${w}`)))}Y.checkMissingProp=a;function h(t,i){t.setParams({missingProperty:i},!0),t.error()}Y.reportMissingProp=h;function l(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Y.hasPropFunc=l;function m(t,i,y){return(0,e._)`${l(t)}.call(${i}, ${y})`}Y.isOwnProperty=m;function $(t,i,y,n){const c=(0,e._)`${i}${(0,e.getProperty)(y)} !== undefined`;return n?(0,e._)`${c} && ${m(t,i,y)}`:c}Y.propertyInData=$;function p(t,i,y,n){const c=(0,e._)`${i}${(0,e.getProperty)(y)} === undefined`;return n?(0,e.or)(c,(0,e.not)(m(t,i,y))):c}Y.noPropertyInData=p;function P(t){return t?Object.keys(t).filter(i=>i!=="__proto__"):[]}Y.allSchemaProperties=P;function g(t,i){return P(i).filter(y=>!(0,r.alwaysValidSchema)(t,i[y]))}Y.schemaProperties=g;function v({schemaCode:t,data:i,it:{gen:y,topSchemaRef:n,schemaPath:c,errorPath:w},it:O},C,M,V){const L=V?(0,e._)`${t}, ${i}, ${n}${c}`:i,K=[[E.default.instancePath,(0,e.strConcat)(E.default.instancePath,w)],[E.default.parentData,O.parentData],[E.default.parentDataProperty,O.parentDataProperty],[E.default.rootData,E.default.rootData]];O.opts.dynamicRef&&K.push([E.default.dynamicAnchors,E.default.dynamicAnchors]);const B=(0,e._)`${L}, ${y.object(...K)}`;return M!==e.nil?(0,e._)`${C}.call(${M}, ${B})`:(0,e._)`${C}(${B})`}Y.callValidateCode=v;const f=(0,e._)`new RegExp`;function _({gen:t,it:{opts:i}},y){const n=i.unicodeRegExp?"u":"",{regExp:c}=i.code,w=c(y,n);return t.scopeValue("pattern",{key:w.toString(),ref:w,code:(0,e._)`${c.code==="new RegExp"?f:(0,d.useFunc)(t,c)}(${y}, ${n})`})}Y.usePattern=_;function s(t){const{gen:i,data:y,keyword:n,it:c}=t,w=i.name("valid");if(c.allErrors){const C=i.let("valid",!0);return O(()=>i.assign(C,!1)),C}return i.var(w,!0),O(()=>i.break()),w;function O(C){const M=i.const("len",(0,e._)`${y}.length`);i.forRange("i",0,M,V=>{t.subschema({keyword:n,dataProp:V,dataPropType:r.Type.Num},w),i.if((0,e.not)(w),C)})}}Y.validateArray=s;function o(t){const{gen:i,schema:y,keyword:n,it:c}=t;if(!Array.isArray(y))throw new Error("ajv implementation error");if(y.some(M=>(0,r.alwaysValidSchema)(c,M))&&!c.opts.unevaluated)return;const O=i.let("valid",!1),C=i.name("_valid");i.block(()=>y.forEach((M,V)=>{const L=t.subschema({keyword:n,schemaProp:V,compositeRule:!0},C);i.assign(O,(0,e._)`${O} || ${C}`),t.mergeValidEvaluated(L,C)||i.if((0,e.not)(O))})),t.result(O,()=>t.reset(),()=>t.error(!0))}return Y.validateUnion=o,Y}var ir;function bn(){if(ir)return ce;ir=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.validateKeywordUsage=ce.validSchemaType=ce.funcKeywordCode=ce.macroKeywordCode=void 0;const e=J(),r=ve(),E=le(),d=_t();function b(g,v){const{gen:f,keyword:_,schema:s,parentSchema:o,it:t}=g,i=v.macro.call(t.self,s,o,t),y=$(f,_,i);t.opts.validateSchema!==!1&&t.self.validateSchema(i,!0);const n=f.name("valid");g.subschema({schema:i,schemaPath:e.nil,errSchemaPath:`${t.errSchemaPath}/${_}`,topSchemaRef:y,compositeRule:!0},n),g.pass(n,()=>g.error(!0))}ce.macroKeywordCode=b;function a(g,v){var f;const{gen:_,keyword:s,schema:o,parentSchema:t,$data:i,it:y}=g;m(y,v);const n=!i&&v.compile?v.compile.call(y.self,o,t,y):v.validate,c=$(_,s,n),w=_.let("valid");g.block$data(w,O),g.ok((f=v.valid)!==null&&f!==void 0?f:w);function O(){if(v.errors===!1)V(),v.modifying&&h(g),L(()=>g.error());else{const K=v.async?C():M();v.modifying&&h(g),L(()=>l(g,K))}}function C(){const K=_.let("ruleErrs",null);return _.try(()=>V((0,e._)`await `),B=>_.assign(w,!1).if((0,e._)`${B} instanceof ${y.ValidationError}`,()=>_.assign(K,(0,e._)`${B}.errors`),()=>_.throw(B))),K}function M(){const K=(0,e._)`${c}.errors`;return _.assign(K,null),V(e.nil),K}function V(K=v.async?(0,e._)`await `:e.nil){const B=y.opts.passContext?r.default.this:r.default.self,x=!("compile"in v&&!i||v.schema===!1);_.assign(w,(0,e._)`${K}${(0,E.callValidateCode)(g,c,B,x)}`,v.modifying)}function L(K){var B;_.if((0,e.not)((B=v.valid)!==null&&B!==void 0?B:w),K)}}ce.funcKeywordCode=a;function h(g){const{gen:v,data:f,it:_}=g;v.if(_.parentData,()=>v.assign(f,(0,e._)`${_.parentData}[${_.parentDataProperty}]`))}function l(g,v){const{gen:f}=g;f.if((0,e._)`Array.isArray(${v})`,()=>{f.assign(r.default.vErrors,(0,e._)`${r.default.vErrors} === null ? ${v} : ${r.default.vErrors}.concat(${v})`).assign(r.default.errors,(0,e._)`${r.default.vErrors}.length`),(0,d.extendErrors)(g)},()=>g.error())}function m({schemaEnv:g},v){if(v.async&&!g.$async)throw new Error("async keyword in sync schema")}function $(g,v,f){if(f===void 0)throw new Error(`keyword "${v}" failed to compile`);return g.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,e.stringify)(f)})}function p(g,v,f=!1){return!v.length||v.some(_=>_==="array"?Array.isArray(g):_==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==_||f&&typeof g>"u")}ce.validSchemaType=p;function P({schema:g,opts:v,self:f,errSchemaPath:_},s,o){if(Array.isArray(s.keyword)?!s.keyword.includes(o):s.keyword!==o)throw new Error("ajv implementation error");const t=s.dependencies;if(t?.some(i=>!Object.prototype.hasOwnProperty.call(g,i)))throw new Error(`parent schema must have dependencies of ${o}: ${t.join(",")}`);if(s.validateSchema&&!s.validateSchema(g[o])){const y=`keyword "${o}" value is invalid at path "${_}": `+f.errorsText(s.validateSchema.errors);if(v.validateSchema==="log")f.logger.error(y);else throw new Error(y)}}return ce.validateKeywordUsage=P,ce}var me={},or;function En(){if(or)return me;or=1,Object.defineProperty(me,"__esModule",{value:!0}),me.extendSubschemaMode=me.extendSubschemaData=me.getSubschema=void 0;const e=J(),r=Q();function E(a,{keyword:h,schemaProp:l,schema:m,schemaPath:$,errSchemaPath:p,topSchemaRef:P}){if(h!==void 0&&m!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(h!==void 0){const g=a.schema[h];return l===void 0?{schema:g,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(h)}`,errSchemaPath:`${a.errSchemaPath}/${h}`}:{schema:g[l],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(h)}${(0,e.getProperty)(l)}`,errSchemaPath:`${a.errSchemaPath}/${h}/${(0,r.escapeFragment)(l)}`}}if(m!==void 0){if($===void 0||p===void 0||P===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:m,schemaPath:$,topSchemaRef:P,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}me.getSubschema=E;function d(a,h,{dataProp:l,dataPropType:m,data:$,dataTypes:p,propertyName:P}){if($!==void 0&&l!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=h;if(l!==void 0){const{errorPath:f,dataPathArr:_,opts:s}=h,o=g.let("data",(0,e._)`${h.data}${(0,e.getProperty)(l)}`,!0);v(o),a.errorPath=(0,e.str)`${f}${(0,r.getErrorPath)(l,m,s.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${l}`,a.dataPathArr=[..._,a.parentDataProperty]}if($!==void 0){const f=$ instanceof e.Name?$:g.let("data",$,!0);v(f),P!==void 0&&(a.propertyName=P)}p&&(a.dataTypes=p);function v(f){a.data=f,a.dataLevel=h.dataLevel+1,a.dataTypes=[],h.definedProperties=new Set,a.parentData=h.data,a.dataNames=[...h.dataNames,f]}}me.extendSubschemaData=d;function b(a,{jtdDiscriminator:h,jtdMetadata:l,compositeRule:m,createErrors:$,allErrors:p}){m!==void 0&&(a.compositeRule=m),$!==void 0&&(a.createErrors=$),p!==void 0&&(a.allErrors=p),a.jtdDiscriminator=h,a.jtdMetadata=l}return me.extendSubschemaMode=b,me}var ne={},It,ur;function dn(){return ur||(ur=1,It=function e(r,E){if(r===E)return!0;if(r&&E&&typeof r=="object"&&typeof E=="object"){if(r.constructor!==E.constructor)return!1;var d,b,a;if(Array.isArray(r)){if(d=r.length,d!=E.length)return!1;for(b=d;b--!==0;)if(!e(r[b],E[b]))return!1;return!0}if(r.constructor===RegExp)return r.source===E.source&&r.flags===E.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===E.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===E.toString();if(a=Object.keys(r),d=a.length,d!==Object.keys(E).length)return!1;for(b=d;b--!==0;)if(!Object.prototype.hasOwnProperty.call(E,a[b]))return!1;for(b=d;b--!==0;){var h=a[b];if(!e(r[h],E[h]))return!1}return!0}return r!==r&&E!==E}),It}var Tt={exports:{}},cr;function Sn(){if(cr)return Tt.exports;cr=1;var e=Tt.exports=function(d,b,a){typeof b=="function"&&(a=b,b={}),a=b.cb||a;var h=typeof a=="function"?a:a.pre||function(){},l=a.post||function(){};r(b,h,l,d,"",d)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(d,b,a,h,l,m,$,p,P,g){if(h&&typeof h=="object"&&!Array.isArray(h)){b(h,l,m,$,p,P,g);for(var v in h){var f=h[v];if(Array.isArray(f)){if(v in e.arrayKeywords)for(var _=0;_<f.length;_++)r(d,b,a,f[_],l+"/"+v+"/"+_,m,l,v,h,_)}else if(v in e.propsKeywords){if(f&&typeof f=="object")for(var s in f)r(d,b,a,f[s],l+"/"+v+"/"+E(s),m,l,v,h,s)}else(v in e.keywords||d.allKeys&&!(v in e.skipKeywords))&&r(d,b,a,f,l+"/"+v,m,l,v,h)}a(h,l,m,$,p,P,g)}}function E(d){return d.replace(/~/g,"~0").replace(/\//g,"~1")}return Tt.exports}var lr;function $t(){if(lr)return ne;lr=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.getSchemaRefs=ne.resolveUrl=ne.normalizeId=ne._getFullPath=ne.getFullPath=ne.inlineRef=void 0;const e=Q(),r=dn(),E=Sn(),d=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function b(_,s=!0){return typeof _=="boolean"?!0:s===!0?!h(_):s?l(_)<=s:!1}ne.inlineRef=b;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(_){for(const s in _){if(a.has(s))return!0;const o=_[s];if(Array.isArray(o)&&o.some(h)||typeof o=="object"&&h(o))return!0}return!1}function l(_){let s=0;for(const o in _){if(o==="$ref")return 1/0;if(s++,!d.has(o)&&(typeof _[o]=="object"&&(0,e.eachItem)(_[o],t=>s+=l(t)),s===1/0))return 1/0}return s}function m(_,s="",o){o!==!1&&(s=P(s));const t=_.parse(s);return $(_,t)}ne.getFullPath=m;function $(_,s){return _.serialize(s).split("#")[0]+"#"}ne._getFullPath=$;const p=/#\/?$/;function P(_){return _?_.replace(p,""):""}ne.normalizeId=P;function g(_,s,o){return o=P(o),_.resolve(s,o)}ne.resolveUrl=g;const v=/^[a-z_][-a-z0-9._]*$/i;function f(_,s){if(typeof _=="boolean")return{};const{schemaId:o,uriResolver:t}=this.opts,i=P(_[o]||s),y={"":i},n=m(t,i,!1),c={},w=new Set;return E(_,{allKeys:!0},(M,V,L,K)=>{if(K===void 0)return;const B=n+V;let x=y[K];typeof M[o]=="string"&&(x=de.call(this,M[o])),fe.call(this,M.$anchor),fe.call(this,M.$dynamicAnchor),y[V]=x;function de(Z){const ye=this.opts.uriResolver.resolve;if(Z=P(x?ye(x,Z):Z),w.has(Z))throw C(Z);w.add(Z);let D=this.refs[Z];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?O(M,D.schema,Z):Z!==P(B)&&(Z[0]==="#"?(O(M,c[Z],Z),c[Z]=M):this.refs[Z]=B),Z}function fe(Z){if(typeof Z=="string"){if(!v.test(Z))throw new Error(`invalid anchor "${Z}"`);de.call(this,`#${Z}`)}}}),c;function O(M,V,L){if(V!==void 0&&!r(M,V))throw C(L)}function C(M){return new Error(`reference "${M}" resolves to more than one schema`)}}return ne.getSchemaRefs=f,ne}var dr;function wt(){if(dr)return he;dr=1,Object.defineProperty(he,"__esModule",{value:!0}),he.getData=he.KeywordCxt=he.validateFunctionCode=void 0;const e=$n(),r=gt(),E=ln(),d=gt(),b=wn(),a=bn(),h=En(),l=J(),m=ve(),$=$t(),p=Q(),P=_t();function g(j){if(n(j)&&(w(j),y(j))){s(j);return}v(j,()=>(0,e.topBoolOrEmptySchema)(j))}he.validateFunctionCode=g;function v({gen:j,validateName:N,schema:I,schemaEnv:A,opts:F},G){F.code.es5?j.func(N,(0,l._)`${m.default.data}, ${m.default.valCxt}`,A.$async,()=>{j.code((0,l._)`"use strict"; ${t(I,F)}`),_(j,F),j.code(G)}):j.func(N,(0,l._)`${m.default.data}, ${f(F)}`,A.$async,()=>j.code(t(I,F)).code(G))}function f(j){return(0,l._)`{${m.default.instancePath}="", ${m.default.parentData}, ${m.default.parentDataProperty}, ${m.default.rootData}=${m.default.data}${j.dynamicRef?(0,l._)`, ${m.default.dynamicAnchors}={}`:l.nil}}={}`}function _(j,N){j.if(m.default.valCxt,()=>{j.var(m.default.instancePath,(0,l._)`${m.default.valCxt}.${m.default.instancePath}`),j.var(m.default.parentData,(0,l._)`${m.default.valCxt}.${m.default.parentData}`),j.var(m.default.parentDataProperty,(0,l._)`${m.default.valCxt}.${m.default.parentDataProperty}`),j.var(m.default.rootData,(0,l._)`${m.default.valCxt}.${m.default.rootData}`),N.dynamicRef&&j.var(m.default.dynamicAnchors,(0,l._)`${m.default.valCxt}.${m.default.dynamicAnchors}`)},()=>{j.var(m.default.instancePath,(0,l._)`""`),j.var(m.default.parentData,(0,l._)`undefined`),j.var(m.default.parentDataProperty,(0,l._)`undefined`),j.var(m.default.rootData,m.default.data),N.dynamicRef&&j.var(m.default.dynamicAnchors,(0,l._)`{}`)})}function s(j){const{schema:N,opts:I,gen:A}=j;v(j,()=>{I.$comment&&N.$comment&&K(j),M(j),A.let(m.default.vErrors,null),A.let(m.default.errors,0),I.unevaluated&&o(j),O(j),B(j)})}function o(j){const{gen:N,validateName:I}=j;j.evaluated=N.const("evaluated",(0,l._)`${I}.evaluated`),N.if((0,l._)`${j.evaluated}.dynamicProps`,()=>N.assign((0,l._)`${j.evaluated}.props`,(0,l._)`undefined`)),N.if((0,l._)`${j.evaluated}.dynamicItems`,()=>N.assign((0,l._)`${j.evaluated}.items`,(0,l._)`undefined`))}function t(j,N){const I=typeof j=="object"&&j[N.schemaId];return I&&(N.code.source||N.code.process)?(0,l._)`/*# sourceURL=${I} */`:l.nil}function i(j,N){if(n(j)&&(w(j),y(j))){c(j,N);return}(0,e.boolOrEmptySchema)(j,N)}function y({schema:j,self:N}){if(typeof j=="boolean")return!j;for(const I in j)if(N.RULES.all[I])return!0;return!1}function n(j){return typeof j.schema!="boolean"}function c(j,N){const{schema:I,gen:A,opts:F}=j;F.$comment&&I.$comment&&K(j),V(j),L(j);const G=A.const("_errs",m.default.errors);O(j,G),A.var(N,(0,l._)`${G} === ${m.default.errors}`)}function w(j){(0,p.checkUnknownRules)(j),C(j)}function O(j,N){if(j.opts.jtd)return de(j,[],!1,N);const I=(0,r.getSchemaTypes)(j.schema),A=(0,r.coerceAndCheckDataType)(j,I);de(j,I,!A,N)}function C(j){const{schema:N,errSchemaPath:I,opts:A,self:F}=j;N.$ref&&A.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(N,F.RULES)&&F.logger.warn(`$ref: keywords ignored in schema at path "${I}"`)}function M(j){const{schema:N,opts:I}=j;N.default!==void 0&&I.useDefaults&&I.strictSchema&&(0,p.checkStrictMode)(j,"default is ignored in the schema root")}function V(j){const N=j.schema[j.opts.schemaId];N&&(j.baseId=(0,$.resolveUrl)(j.opts.uriResolver,j.baseId,N))}function L(j){if(j.schema.$async&&!j.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:j,schemaEnv:N,schema:I,errSchemaPath:A,opts:F}){const G=I.$comment;if(F.$comment===!0)j.code((0,l._)`${m.default.self}.logger.log(${G})`);else if(typeof F.$comment=="function"){const ee=(0,l.str)`${A}/$comment`,ue=j.scopeValue("root",{ref:N.root});j.code((0,l._)`${m.default.self}.opts.$comment(${G}, ${ee}, ${ue}.schema)`)}}function B(j){const{gen:N,schemaEnv:I,validateName:A,ValidationError:F,opts:G}=j;I.$async?N.if((0,l._)`${m.default.errors} === 0`,()=>N.return(m.default.data),()=>N.throw((0,l._)`new ${F}(${m.default.vErrors})`)):(N.assign((0,l._)`${A}.errors`,m.default.vErrors),G.unevaluated&&x(j),N.return((0,l._)`${m.default.errors} === 0`))}function x({gen:j,evaluated:N,props:I,items:A}){I instanceof l.Name&&j.assign((0,l._)`${N}.props`,I),A instanceof l.Name&&j.assign((0,l._)`${N}.items`,A)}function de(j,N,I,A){const{gen:F,schema:G,data:ee,allErrors:ue,opts:se,self:ae}=j,{RULES:te}=ae;if(G.$ref&&(se.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(G,te))){F.block(()=>U(j,"$ref",te.all.$ref.definition));return}se.jtd||Z(j,N),F.block(()=>{for(const oe of te.rules)be(oe);be(te.post)});function be(oe){(0,E.shouldUseGroup)(G,oe)&&(oe.type?(F.if((0,d.checkDataType)(oe.type,ee,se.strictNumbers)),fe(j,oe),N.length===1&&N[0]===oe.type&&I&&(F.else(),(0,d.reportTypeError)(j)),F.endIf()):fe(j,oe),ue||F.if((0,l._)`${m.default.errors} === ${A||0}`))}}function fe(j,N){const{gen:I,schema:A,opts:{useDefaults:F}}=j;F&&(0,b.assignDefaults)(j,N.type),I.block(()=>{for(const G of N.rules)(0,E.shouldUseRule)(A,G)&&U(j,G.keyword,G.definition,N.type)})}function Z(j,N){j.schemaEnv.meta||!j.opts.strictTypes||(ye(j,N),j.opts.allowUnionTypes||D(j,N),R(j,j.dataTypes))}function ye(j,N){if(N.length){if(!j.dataTypes.length){j.dataTypes=N;return}N.forEach(I=>{k(j.dataTypes,I)||S(j,`type "${I}" not allowed by context "${j.dataTypes.join(",")}"`)}),u(j,N)}}function D(j,N){N.length>1&&!(N.length===2&&N.includes("null"))&&S(j,"use allowUnionTypes to allow union type keyword")}function R(j,N){const I=j.self.RULES.all;for(const A in I){const F=I[A];if(typeof F=="object"&&(0,E.shouldUseRule)(j.schema,F)){const{type:G}=F.definition;G.length&&!G.some(ee=>T(N,ee))&&S(j,`missing type "${G.join(",")}" for keyword "${A}"`)}}}function T(j,N){return j.includes(N)||N==="number"&&j.includes("integer")}function k(j,N){return j.includes(N)||N==="integer"&&j.includes("number")}function u(j,N){const I=[];for(const A of j.dataTypes)k(N,A)?I.push(A):N.includes("integer")&&A==="number"&&I.push("integer");j.dataTypes=I}function S(j,N){const I=j.schemaEnv.baseId+j.errSchemaPath;N+=` at "${I}" (strictTypes)`,(0,p.checkStrictMode)(j,N,j.opts.strictTypes)}class q{constructor(N,I,A){if((0,a.validateKeywordUsage)(N,I,A),this.gen=N.gen,this.allErrors=N.allErrors,this.keyword=A,this.data=N.data,this.schema=N.schema[A],this.$data=I.$data&&N.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(N,this.schema,A,this.$data),this.schemaType=I.schemaType,this.parentSchema=N.schema,this.params={},this.it=N,this.def=I,this.$data)this.schemaCode=N.gen.const("vSchema",W(this.$data,N));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,I.schemaType,I.allowUndefined))throw new Error(`${A} value must be ${JSON.stringify(I.schemaType)}`);("code"in I?I.trackErrors:I.errors!==!1)&&(this.errsCount=N.gen.const("_errs",m.default.errors))}result(N,I,A){this.failResult((0,l.not)(N),I,A)}failResult(N,I,A){this.gen.if(N),A?A():this.error(),I?(this.gen.else(),I(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(N,I){this.failResult((0,l.not)(N),void 0,I)}fail(N){if(N===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(N),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(N){if(!this.$data)return this.fail(N);const{schemaCode:I}=this;this.fail((0,l._)`${I} !== undefined && (${(0,l.or)(this.invalid$data(),N)})`)}error(N,I,A){if(I){this.setParams(I),this._error(N,A),this.setParams({});return}this._error(N,A)}_error(N,I){(N?P.reportExtraError:P.reportError)(this,this.def.error,I)}$dataError(){(0,P.reportError)(this,this.def.$dataError||P.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,P.resetErrorsCount)(this.gen,this.errsCount)}ok(N){this.allErrors||this.gen.if(N)}setParams(N,I){I?Object.assign(this.params,N):this.params=N}block$data(N,I,A=l.nil){this.gen.block(()=>{this.check$data(N,A),I()})}check$data(N=l.nil,I=l.nil){if(!this.$data)return;const{gen:A,schemaCode:F,schemaType:G,def:ee}=this;A.if((0,l.or)((0,l._)`${F} === undefined`,I)),N!==l.nil&&A.assign(N,!0),(G.length||ee.validateSchema)&&(A.elseIf(this.invalid$data()),this.$dataError(),N!==l.nil&&A.assign(N,!1)),A.else()}invalid$data(){const{gen:N,schemaCode:I,schemaType:A,def:F,it:G}=this;return(0,l.or)(ee(),ue());function ee(){if(A.length){if(!(I instanceof l.Name))throw new Error("ajv implementation error");const se=Array.isArray(A)?A:[A];return(0,l._)`${(0,d.checkDataTypes)(se,I,G.opts.strictNumbers,d.DataType.Wrong)}`}return l.nil}function ue(){if(F.validateSchema){const se=N.scopeValue("validate$data",{ref:F.validateSchema});return(0,l._)`!${se}(${I})`}return l.nil}}subschema(N,I){const A=(0,h.getSubschema)(this.it,N);(0,h.extendSubschemaData)(A,this.it,N),(0,h.extendSubschemaMode)(A,N);const F={...this.it,...A,items:void 0,props:void 0};return i(F,I),F}mergeEvaluated(N,I){const{it:A,gen:F}=this;A.opts.unevaluated&&(A.props!==!0&&N.props!==void 0&&(A.props=p.mergeEvaluated.props(F,N.props,A.props,I)),A.items!==!0&&N.items!==void 0&&(A.items=p.mergeEvaluated.items(F,N.items,A.items,I)))}mergeValidEvaluated(N,I){const{it:A,gen:F}=this;if(A.opts.unevaluated&&(A.props!==!0||A.items!==!0))return F.if(I,()=>this.mergeEvaluated(N,l.Name)),!0}}he.KeywordCxt=q;function U(j,N,I,A){const F=new q(j,I,N);"code"in I?I.code(F,A):F.$data&&I.validate?(0,a.funcKeywordCode)(F,I):"macro"in I?(0,a.macroKeywordCode)(F,I):(I.compile||I.validate)&&(0,a.funcKeywordCode)(F,I)}const z=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W(j,{dataLevel:N,dataNames:I,dataPathArr:A}){let F,G;if(j==="")return m.default.rootData;if(j[0]==="/"){if(!z.test(j))throw new Error(`Invalid JSON-pointer: ${j}`);F=j,G=m.default.rootData}else{const ae=X.exec(j);if(!ae)throw new Error(`Invalid JSON-pointer: ${j}`);const te=+ae[1];if(F=ae[2],F==="#"){if(te>=N)throw new Error(se("property/index",te));return A[N-te]}if(te>N)throw new Error(se("data",te));if(G=I[N-te],!F)return G}let ee=G;const ue=F.split("/");for(const ae of ue)ae&&(G=(0,l._)`${G}${(0,l.getProperty)((0,p.unescapeJsonPointer)(ae))}`,ee=(0,l._)`${ee} && ${G}`);return ee;function se(ae,te){return`Cannot access ${ae} ${te} levels up, current level is ${N}`}}return he.getData=W,he}var Te={},fr;function Vt(){if(fr)return Te;fr=1,Object.defineProperty(Te,"__esModule",{value:!0});class e extends Error{constructor(E){super("validation failed"),this.errors=E,this.ajv=this.validation=!0}}return Te.default=e,Te}var Ce={},hr;function bt(){if(hr)return Ce;hr=1,Object.defineProperty(Ce,"__esModule",{value:!0});const e=$t();class r extends Error{constructor(d,b,a,h){super(h||`can't resolve reference ${a} from id ${b}`),this.missingRef=(0,e.resolveUrl)(d,b,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(d,this.missingRef))}}return Ce.default=r,Ce}var ie={},pr;function Ut(){if(pr)return ie;pr=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.resolveSchema=ie.getCompilingSchema=ie.resolveRef=ie.compileSchema=ie.SchemaEnv=void 0;const e=J(),r=Vt(),E=ve(),d=$t(),b=Q(),a=wt();class h{constructor(o){var t;this.refs={},this.dynamicAnchors={};let i;typeof o.schema=="object"&&(i=o.schema),this.schema=o.schema,this.schemaId=o.schemaId,this.root=o.root||this,this.baseId=(t=o.baseId)!==null&&t!==void 0?t:(0,d.normalizeId)(i?.[o.schemaId||"$id"]),this.schemaPath=o.schemaPath,this.localRefs=o.localRefs,this.meta=o.meta,this.$async=i?.$async,this.refs={}}}ie.SchemaEnv=h;function l(s){const o=p.call(this,s);if(o)return o;const t=(0,d.getFullPath)(this.opts.uriResolver,s.root.baseId),{es5:i,lines:y}=this.opts.code,{ownProperties:n}=this.opts,c=new e.CodeGen(this.scope,{es5:i,lines:y,ownProperties:n});let w;s.$async&&(w=c.scopeValue("Error",{ref:r.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const O=c.scopeName("validate");s.validateName=O;const C={gen:c,allErrors:this.opts.allErrors,data:E.default.data,parentData:E.default.parentData,parentDataProperty:E.default.parentDataProperty,dataNames:[E.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:s.schema,code:(0,e.stringify)(s.schema)}:{ref:s.schema}),validateName:O,ValidationError:w,schema:s.schema,schemaEnv:s,rootId:t,baseId:s.baseId||t,schemaPath:e.nil,errSchemaPath:s.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let M;try{this._compilations.add(s),(0,a.validateFunctionCode)(C),c.optimize(this.opts.code.optimize);const V=c.toString();M=`${c.scopeRefs(E.default.scope)}return ${V}`,this.opts.code.process&&(M=this.opts.code.process(M,s));const K=new Function(`${E.default.self}`,`${E.default.scope}`,M)(this,this.scope.get());if(this.scope.value(O,{ref:K}),K.errors=null,K.schema=s.schema,K.schemaEnv=s,s.$async&&(K.$async=!0),this.opts.code.source===!0&&(K.source={validateName:O,validateCode:V,scopeValues:c._values}),this.opts.unevaluated){const{props:B,items:x}=C;K.evaluated={props:B instanceof e.Name?void 0:B,items:x instanceof e.Name?void 0:x,dynamicProps:B instanceof e.Name,dynamicItems:x instanceof e.Name},K.source&&(K.source.evaluated=(0,e.stringify)(K.evaluated))}return s.validate=K,s}catch(V){throw delete s.validate,delete s.validateName,M&&this.logger.error("Error compiling schema, function code:",M),V}finally{this._compilations.delete(s)}}ie.compileSchema=l;function m(s,o,t){var i;t=(0,d.resolveUrl)(this.opts.uriResolver,o,t);const y=s.refs[t];if(y)return y;let n=g.call(this,s,t);if(n===void 0){const c=(i=s.localRefs)===null||i===void 0?void 0:i[t],{schemaId:w}=this.opts;c&&(n=new h({schema:c,schemaId:w,root:s,baseId:o}))}if(n!==void 0)return s.refs[t]=$.call(this,n)}ie.resolveRef=m;function $(s){return(0,d.inlineRef)(s.schema,this.opts.inlineRefs)?s.schema:s.validate?s:l.call(this,s)}function p(s){for(const o of this._compilations)if(P(o,s))return o}ie.getCompilingSchema=p;function P(s,o){return s.schema===o.schema&&s.root===o.root&&s.baseId===o.baseId}function g(s,o){let t;for(;typeof(t=this.refs[o])=="string";)o=t;return t||this.schemas[o]||v.call(this,s,o)}function v(s,o){const t=this.opts.uriResolver.parse(o),i=(0,d._getFullPath)(this.opts.uriResolver,t);let y=(0,d.getFullPath)(this.opts.uriResolver,s.baseId,void 0);if(Object.keys(s.schema).length>0&&i===y)return _.call(this,t,s);const n=(0,d.normalizeId)(i),c=this.refs[n]||this.schemas[n];if(typeof c=="string"){const w=v.call(this,s,c);return typeof w?.schema!="object"?void 0:_.call(this,t,w)}if(typeof c?.schema=="object"){if(c.validate||l.call(this,c),n===(0,d.normalizeId)(o)){const{schema:w}=c,{schemaId:O}=this.opts,C=w[O];return C&&(y=(0,d.resolveUrl)(this.opts.uriResolver,y,C)),new h({schema:w,schemaId:O,root:s,baseId:y})}return _.call(this,t,c)}}ie.resolveSchema=v;const f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _(s,{baseId:o,schema:t,root:i}){var y;if(((y=s.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(const w of s.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const O=t[(0,b.unescapeFragment)(w)];if(O===void 0)return;t=O;const C=typeof t=="object"&&t[this.opts.schemaId];!f.has(w)&&C&&(o=(0,d.resolveUrl)(this.opts.uriResolver,o,C))}let n;if(typeof t!="boolean"&&t.$ref&&!(0,b.schemaHasRulesButRef)(t,this.RULES)){const w=(0,d.resolveUrl)(this.opts.uriResolver,o,t.$ref);n=v.call(this,i,w)}const{schemaId:c}=this.opts;if(n=n||new h({schema:t,schemaId:c,root:i,baseId:o}),n.schema!==n.root.schema)return n}return ie}const Pn="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",jn="Meta-schema for $data reference (JSON AnySchema extension proposal)",Rn="object",Nn=["$data"],On={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},kn=!1,qn={$id:Pn,description:jn,type:Rn,required:Nn,properties:On,additionalProperties:kn};var De={},Ne={exports:{}},Ct,mr;function fn(){if(mr)return Ct;mr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function E(g){let v="",f=0,_=0;for(_=0;_<g.length;_++)if(f=g[_].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";v+=g[_];break}for(_+=1;_<g.length;_++){if(f=g[_].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";v+=g[_]}return v}const d=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function b(g){return g.length=0,!0}function a(g,v,f){if(g.length){const _=E(g);if(_!=="")v.push(_);else return f.error=!0,!1;g.length=0}return!0}function h(g){let v=0;const f={error:!1,address:"",zone:""},_=[],s=[];let o=!1,t=!1,i=a;for(let y=0;y<g.length;y++){const n=g[y];if(!(n==="["||n==="]"))if(n===":"){if(o===!0&&(t=!0),!i(s,_,f))break;if(++v>7){f.error=!0;break}y>0&&g[y-1]===":"&&(o=!0),_.push(":");continue}else if(n==="%"){if(!i(s,_,f))break;i=b}else{s.push(n);continue}}return s.length&&(i===b?f.zone=s.join(""):t?_.push(s.join("")):_.push(E(s))),f.address=_.join(""),f}function l(g){if(m(g,":")<2)return{host:g,isIPV6:!1};const v=h(g);if(v.error)return{host:g,isIPV6:!1};{let f=v.address,_=v.address;return v.zone&&(f+="%"+v.zone,_+="%25"+v.zone),{host:f,isIPV6:!0,escapedHost:_}}}function m(g,v){let f=0;for(let _=0;_<g.length;_++)g[_]===v&&f++;return f}function $(g){let v=g;const f=[];let _=-1,s=0;for(;s=v.length;){if(s===1){if(v===".")break;if(v==="/"){f.push("/");break}else{f.push(v);break}}else if(s===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){f.push("/");break}}else if(s===3&&v==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),f.length!==0&&f.pop();continue}}if((_=v.indexOf("/",1))===-1){f.push(v);break}else f.push(v.slice(0,_)),v=v.slice(_)}return f.join("")}function p(g,v){const f=v!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=f(g.scheme)),g.userinfo!==void 0&&(g.userinfo=f(g.userinfo)),g.host!==void 0&&(g.host=f(g.host)),g.path!==void 0&&(g.path=f(g.path)),g.query!==void 0&&(g.query=f(g.query)),g.fragment!==void 0&&(g.fragment=f(g.fragment)),g}function P(g){const v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let f=unescape(g.host);if(!r(f)){const _=l(f);_.isIPV6===!0?f=`[${_.escapedHost}]`:f=g.host}v.push(f)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}return Ct={nonSimpleDomain:d,recomposeAuthority:P,normalizeComponentEncoding:p,removeDotSegments:$,isIPv4:r,isUUID:e,normalizeIPv6:l,stringArrayToHexStripped:E},Ct}var Dt,yr;function In(){if(yr)return Dt;yr=1;const{isUUID:e}=fn(),r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,E=["http","https","ws","wss","urn","urn:uuid"];function d(n){return E.indexOf(n)!==-1}function b(n){return n.secure===!0?!0:n.secure===!1?!1:n.scheme?n.scheme.length===3&&(n.scheme[0]==="w"||n.scheme[0]==="W")&&(n.scheme[1]==="s"||n.scheme[1]==="S")&&(n.scheme[2]==="s"||n.scheme[2]==="S"):!1}function a(n){return n.host||(n.error=n.error||"HTTP URIs must have a host."),n}function h(n){const c=String(n.scheme).toLowerCase()==="https";return(n.port===(c?443:80)||n.port==="")&&(n.port=void 0),n.path||(n.path="/"),n}function l(n){return n.secure=b(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n}function m(n){if((n.port===(b(n)?443:80)||n.port==="")&&(n.port=void 0),typeof n.secure=="boolean"&&(n.scheme=n.secure?"wss":"ws",n.secure=void 0),n.resourceName){const[c,w]=n.resourceName.split("?");n.path=c&&c!=="/"?c:void 0,n.query=w,n.resourceName=void 0}return n.fragment=void 0,n}function $(n,c){if(!n.path)return n.error="URN can not be parsed",n;const w=n.path.match(r);if(w){const O=c.scheme||n.scheme||"urn";n.nid=w[1].toLowerCase(),n.nss=w[2];const C=`${O}:${c.nid||n.nid}`,M=y(C);n.path=void 0,M&&(n=M.parse(n,c))}else n.error=n.error||"URN can not be parsed.";return n}function p(n,c){if(n.nid===void 0)throw new Error("URN without nid cannot be serialized");const w=c.scheme||n.scheme||"urn",O=n.nid.toLowerCase(),C=`${w}:${c.nid||O}`,M=y(C);M&&(n=M.serialize(n,c));const V=n,L=n.nss;return V.path=`${O||c.nid}:${L}`,c.skipEscape=!0,V}function P(n,c){const w=n;return w.uuid=w.nss,w.nss=void 0,!c.tolerant&&(!w.uuid||!e(w.uuid))&&(w.error=w.error||"UUID is not valid."),w}function g(n){const c=n;return c.nss=(n.uuid||"").toLowerCase(),c}const v={scheme:"http",domainHost:!0,parse:a,serialize:h},f={scheme:"https",domainHost:v.domainHost,parse:a,serialize:h},_={scheme:"ws",domainHost:!0,parse:l,serialize:m},s={scheme:"wss",domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},i={http:v,https:f,ws:_,wss:s,urn:{scheme:"urn",parse:$,serialize:p,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:P,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(i,null);function y(n){return n&&(i[n]||i[n.toLowerCase()])||void 0}return Dt={wsIsSecure:b,SCHEMES:i,isValidSchemeName:d,getSchemeHandler:y},Dt}var gr;function Tn(){if(gr)return Ne.exports;gr=1;const{normalizeIPv6:e,removeDotSegments:r,recomposeAuthority:E,normalizeComponentEncoding:d,isIPv4:b,nonSimpleDomain:a}=fn(),{SCHEMES:h,getSchemeHandler:l}=In();function m(s,o){return typeof s=="string"?s=g(f(s,o),o):typeof s=="object"&&(s=f(g(s,o),o)),s}function $(s,o,t){const i=t?Object.assign({scheme:"null"},t):{scheme:"null"},y=p(f(s,i),f(o,i),i,!0);return i.skipEscape=!0,g(y,i)}function p(s,o,t,i){const y={};return i||(s=f(g(s,t),t),o=f(g(o,t),t)),t=t||{},!t.tolerant&&o.scheme?(y.scheme=o.scheme,y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=r(o.path||""),y.query=o.query):(o.userinfo!==void 0||o.host!==void 0||o.port!==void 0?(y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=r(o.path||""),y.query=o.query):(o.path?(o.path[0]==="/"?y.path=r(o.path):((s.userinfo!==void 0||s.host!==void 0||s.port!==void 0)&&!s.path?y.path="/"+o.path:s.path?y.path=s.path.slice(0,s.path.lastIndexOf("/")+1)+o.path:y.path=o.path,y.path=r(y.path)),y.query=o.query):(y.path=s.path,o.query!==void 0?y.query=o.query:y.query=s.query),y.userinfo=s.userinfo,y.host=s.host,y.port=s.port),y.scheme=s.scheme),y.fragment=o.fragment,y}function P(s,o,t){return typeof s=="string"?(s=unescape(s),s=g(d(f(s,t),!0),{...t,skipEscape:!0})):typeof s=="object"&&(s=g(d(s,!0),{...t,skipEscape:!0})),typeof o=="string"?(o=unescape(o),o=g(d(f(o,t),!0),{...t,skipEscape:!0})):typeof o=="object"&&(o=g(d(o,!0),{...t,skipEscape:!0})),s.toLowerCase()===o.toLowerCase()}function g(s,o){const t={host:s.host,scheme:s.scheme,userinfo:s.userinfo,port:s.port,path:s.path,query:s.query,nid:s.nid,nss:s.nss,uuid:s.uuid,fragment:s.fragment,reference:s.reference,resourceName:s.resourceName,secure:s.secure,error:""},i=Object.assign({},o),y=[],n=l(i.scheme||t.scheme);n&&n.serialize&&n.serialize(t,i),t.path!==void 0&&(i.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),i.reference!=="suffix"&&t.scheme&&y.push(t.scheme,":");const c=E(t);if(c!==void 0&&(i.reference!=="suffix"&&y.push("//"),y.push(c),t.path&&t.path[0]!=="/"&&y.push("/")),t.path!==void 0){let w=t.path;!i.absolutePath&&(!n||!n.absolutePath)&&(w=r(w)),c===void 0&&w[0]==="/"&&w[1]==="/"&&(w="/%2F"+w.slice(2)),y.push(w)}return t.query!==void 0&&y.push("?",t.query),t.fragment!==void 0&&y.push("#",t.fragment),y.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function f(s,o){const t=Object.assign({},o),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let y=!1;t.reference==="suffix"&&(t.scheme?s=t.scheme+":"+s:s="//"+s);const n=s.match(v);if(n){if(i.scheme=n[1],i.userinfo=n[3],i.host=n[4],i.port=parseInt(n[5],10),i.path=n[6]||"",i.query=n[7],i.fragment=n[8],isNaN(i.port)&&(i.port=n[5]),i.host)if(b(i.host)===!1){const O=e(i.host);i.host=O.host.toLowerCase(),y=O.isIPV6}else y=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==i.reference&&(i.error=i.error||"URI is not a "+t.reference+" reference.");const c=l(t.scheme||i.scheme);if(!t.unicodeSupport&&(!c||!c.unicodeSupport)&&i.host&&(t.domainHost||c&&c.domainHost)&&y===!1&&a(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to ASCII: "+w}(!c||c&&!c.skipNormalize)&&(s.indexOf("%")!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),c&&c.parse&&c.parse(i,t)}else i.error=i.error||"URI can not be parsed.";return i}const _={SCHEMES:h,normalize:m,resolve:$,resolveComponent:p,equal:P,serialize:g,parse:f};return Ne.exports=_,Ne.exports.default=_,Ne.exports.fastUri=_,Ne.exports}var vr;function Cn(){if(vr)return De;vr=1,Object.defineProperty(De,"__esModule",{value:!0});const e=Tn();return e.code='require("ajv/dist/runtime/uri").default',De.default=e,De}var _r;function Dn(){return _r||(_r=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var r=wt();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var E=J();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return E._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return E.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return E.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return E.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return E.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return E.CodeGen}});const d=Vt(),b=bt(),a=cn(),h=Ut(),l=J(),m=$t(),$=gt(),p=Q(),P=qn,g=Cn(),v=(D,R)=>new RegExp(D,R);v.code="new RegExp";const f=["removeAdditional","useDefaults","coerceTypes"],_=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),s={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},o={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},t=200;function i(D){var R,T,k,u,S,q,U,z,X,W,j,N,I,A,F,G,ee,ue,se,ae,te,be,oe,St,Pt;const je=D.strict,jt=(R=D.code)===null||R===void 0?void 0:R.optimize,zt=jt===!0||jt===void 0?1:jt||0,Kt=(k=(T=D.code)===null||T===void 0?void 0:T.regExp)!==null&&k!==void 0?k:v,gn=(u=D.uriResolver)!==null&&u!==void 0?u:g.default;return{strictSchema:(q=(S=D.strictSchema)!==null&&S!==void 0?S:je)!==null&&q!==void 0?q:!0,strictNumbers:(z=(U=D.strictNumbers)!==null&&U!==void 0?U:je)!==null&&z!==void 0?z:!0,strictTypes:(W=(X=D.strictTypes)!==null&&X!==void 0?X:je)!==null&&W!==void 0?W:"log",strictTuples:(N=(j=D.strictTuples)!==null&&j!==void 0?j:je)!==null&&N!==void 0?N:"log",strictRequired:(A=(I=D.strictRequired)!==null&&I!==void 0?I:je)!==null&&A!==void 0?A:!1,code:D.code?{...D.code,optimize:zt,regExp:Kt}:{optimize:zt,regExp:Kt},loopRequired:(F=D.loopRequired)!==null&&F!==void 0?F:t,loopEnum:(G=D.loopEnum)!==null&&G!==void 0?G:t,meta:(ee=D.meta)!==null&&ee!==void 0?ee:!0,messages:(ue=D.messages)!==null&&ue!==void 0?ue:!0,inlineRefs:(se=D.inlineRefs)!==null&&se!==void 0?se:!0,schemaId:(ae=D.schemaId)!==null&&ae!==void 0?ae:"$id",addUsedSchema:(te=D.addUsedSchema)!==null&&te!==void 0?te:!0,validateSchema:(be=D.validateSchema)!==null&&be!==void 0?be:!0,validateFormats:(oe=D.validateFormats)!==null&&oe!==void 0?oe:!0,unicodeRegExp:(St=D.unicodeRegExp)!==null&&St!==void 0?St:!0,int32range:(Pt=D.int32range)!==null&&Pt!==void 0?Pt:!0,uriResolver:gn}}class y{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...i(R)};const{es5:T,lines:k}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:_,es5:T,lines:k}),this.logger=L(R.logger);const u=R.validateFormats;R.validateFormats=!1,this.RULES=(0,a.getRules)(),n.call(this,s,R,"NOT SUPPORTED"),n.call(this,o,R,"DEPRECATED","warn"),this._metaOpts=M.call(this),R.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&C.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),w.call(this),R.validateFormats=u}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:T,schemaId:k}=this.opts;let u=P;k==="id"&&(u={...P},u.id=u.$id,delete u.$id),T&&R&&this.addMetaSchema(u,u[k],!1)}defaultMeta(){const{meta:R,schemaId:T}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[T]||R:void 0}validate(R,T){let k;if(typeof R=="string"){if(k=this.getSchema(R),!k)throw new Error(`no schema with key or ref "${R}"`)}else k=this.compile(R);const u=k(T);return"$async"in k||(this.errors=k.errors),u}compile(R,T){const k=this._addSchema(R,T);return k.validate||this._compileSchemaEnv(k)}compileAsync(R,T){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return u.call(this,R,T);async function u(W,j){await S.call(this,W.$schema);const N=this._addSchema(W,j);return N.validate||q.call(this,N)}async function S(W){W&&!this.getSchema(W)&&await u.call(this,{$ref:W},!0)}async function q(W){try{return this._compileSchemaEnv(W)}catch(j){if(!(j instanceof b.default))throw j;return U.call(this,j),await z.call(this,j.missingSchema),q.call(this,W)}}function U({missingSchema:W,missingRef:j}){if(this.refs[W])throw new Error(`AnySchema ${W} is loaded but ${j} cannot be resolved`)}async function z(W){const j=await X.call(this,W);this.refs[W]||await S.call(this,j.$schema),this.refs[W]||this.addSchema(j,W,T)}async function X(W){const j=this._loading[W];if(j)return j;try{return await(this._loading[W]=k(W))}finally{delete this._loading[W]}}}addSchema(R,T,k,u=this.opts.validateSchema){if(Array.isArray(R)){for(const q of R)this.addSchema(q,void 0,k,u);return this}let S;if(typeof R=="object"){const{schemaId:q}=this.opts;if(S=R[q],S!==void 0&&typeof S!="string")throw new Error(`schema ${q} must be string`)}return T=(0,m.normalizeId)(T||S),this._checkUnique(T),this.schemas[T]=this._addSchema(R,k,T,u,!0),this}addMetaSchema(R,T,k=this.opts.validateSchema){return this.addSchema(R,T,!0,k),this}validateSchema(R,T){if(typeof R=="boolean")return!0;let k;if(k=R.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const u=this.validate(k,R);if(!u&&T){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return u}getSchema(R){let T;for(;typeof(T=c.call(this,R))=="string";)R=T;if(T===void 0){const{schemaId:k}=this.opts,u=new h.SchemaEnv({schema:{},schemaId:k});if(T=h.resolveSchema.call(this,u,R),!T)return;this.refs[R]=T}return T.validate||this._compileSchemaEnv(T)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const T=c.call(this,R);return typeof T=="object"&&this._cache.delete(T.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const T=R;this._cache.delete(T);let k=R[this.opts.schemaId];return k&&(k=(0,m.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const T of R)this.addKeyword(T);return this}addKeyword(R,T){let k;if(typeof R=="string")k=R,typeof T=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),T.keyword=k);else if(typeof R=="object"&&T===void 0){if(T=R,k=T.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,k,T),!T)return(0,p.eachItem)(k,S=>x.call(this,S)),this;fe.call(this,T);const u={...T,type:(0,$.getJSONTypes)(T.type),schemaType:(0,$.getJSONTypes)(T.schemaType)};return(0,p.eachItem)(k,u.type.length===0?S=>x.call(this,S,u):S=>u.type.forEach(q=>x.call(this,S,u,q))),this}getKeyword(R){const T=this.RULES.all[R];return typeof T=="object"?T.definition:!!T}removeKeyword(R){const{RULES:T}=this;delete T.keywords[R],delete T.all[R];for(const k of T.rules){const u=k.rules.findIndex(S=>S.keyword===R);u>=0&&k.rules.splice(u,1)}return this}addFormat(R,T){return typeof T=="string"&&(T=new RegExp(T)),this.formats[R]=T,this}errorsText(R=this.errors,{separator:T=", ",dataVar:k="data"}={}){return!R||R.length===0?"No errors":R.map(u=>`${k}${u.instancePath} ${u.message}`).reduce((u,S)=>u+T+S)}$dataMetaSchema(R,T){const k=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const u of T){const S=u.split("/").slice(1);let q=R;for(const U of S)q=q[U];for(const U in k){const z=k[U];if(typeof z!="object")continue;const{$data:X}=z.definition,W=q[U];X&&W&&(q[U]=ye(W))}}return R}_removeAllSchemas(R,T){for(const k in R){const u=R[k];(!T||T.test(k))&&(typeof u=="string"?delete R[k]:u&&!u.meta&&(this._cache.delete(u.schema),delete R[k]))}}_addSchema(R,T,k,u=this.opts.validateSchema,S=this.opts.addUsedSchema){let q;const{schemaId:U}=this.opts;if(typeof R=="object")q=R[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let z=this._cache.get(R);if(z!==void 0)return z;k=(0,m.normalizeId)(q||k);const X=m.getSchemaRefs.call(this,R,k);return z=new h.SchemaEnv({schema:R,schemaId:U,meta:T,baseId:k,localRefs:X}),this._cache.set(z.schema,z),S&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=z),u&&this.validateSchema(R,!0),z}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):h.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const T=this.opts;this.opts=this._metaOpts;try{h.compileSchema.call(this,R)}finally{this.opts=T}}}y.ValidationError=d.default,y.MissingRefError=b.default,e.default=y;function n(D,R,T,k="error"){for(const u in D){const S=u;S in R&&this.logger[k](`${T}: option ${u}. ${D[S]}`)}}function c(D){return D=(0,m.normalizeId)(D),this.schemas[D]||this.refs[D]}function w(){const D=this.opts.schemas;if(D)if(Array.isArray(D))this.addSchema(D);else for(const R in D)this.addSchema(D[R],R)}function O(){for(const D in this.opts.formats){const R=this.opts.formats[D];R&&this.addFormat(D,R)}}function C(D){if(Array.isArray(D)){this.addVocabulary(D);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in D){const T=D[R];T.keyword||(T.keyword=R),this.addKeyword(T)}}function M(){const D={...this.opts};for(const R of f)delete D[R];return D}const V={log(){},warn(){},error(){}};function L(D){if(D===!1)return V;if(D===void 0)return console;if(D.log&&D.warn&&D.error)return D;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function B(D,R){const{RULES:T}=this;if((0,p.eachItem)(D,k=>{if(T.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!K.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function x(D,R,T){var k;const u=R?.post;if(T&&u)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let q=u?S.post:S.rules.find(({type:z})=>z===T);if(q||(q={type:T,rules:[]},S.rules.push(q)),S.keywords[D]=!0,!R)return;const U={keyword:D,definition:{...R,type:(0,$.getJSONTypes)(R.type),schemaType:(0,$.getJSONTypes)(R.schemaType)}};R.before?de.call(this,q,U,R.before):q.rules.push(U),S.all[D]=U,(k=R.implements)===null||k===void 0||k.forEach(z=>this.addKeyword(z))}function de(D,R,T){const k=D.rules.findIndex(u=>u.keyword===T);k>=0?D.rules.splice(k,0,R):(D.rules.push(R),this.logger.warn(`rule ${T} is not defined`))}function fe(D){let{metaSchema:R}=D;R!==void 0&&(D.$data&&this.opts.$data&&(R=ye(R)),D.validateSchema=this.compile(R,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ye(D){return{anyOf:[D,Z]}}})(Rt)),Rt}var Ae={},Me={},Ve={},$r;function An(){if($r)return Ve;$r=1,Object.defineProperty(Ve,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Ve.default=e,Ve}var ge={},wr;function Mn(){if(wr)return ge;wr=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.callRef=ge.getValidate=void 0;const e=bt(),r=le(),E=J(),d=ve(),b=Ut(),a=Q(),h={keyword:"$ref",schemaType:"string",code($){const{gen:p,schema:P,it:g}=$,{baseId:v,schemaEnv:f,validateName:_,opts:s,self:o}=g,{root:t}=f;if((P==="#"||P==="#/")&&v===t.baseId)return y();const i=b.resolveRef.call(o,t,v,P);if(i===void 0)throw new e.default(g.opts.uriResolver,v,P);if(i instanceof b.SchemaEnv)return n(i);return c(i);function y(){if(f===t)return m($,_,f,f.$async);const w=p.scopeValue("root",{ref:t});return m($,(0,E._)`${w}.validate`,t,t.$async)}function n(w){const O=l($,w);m($,O,w,w.$async)}function c(w){const O=p.scopeValue("schema",s.code.source===!0?{ref:w,code:(0,E.stringify)(w)}:{ref:w}),C=p.name("valid"),M=$.subschema({schema:w,dataTypes:[],schemaPath:E.nil,topSchemaRef:O,errSchemaPath:P},C);$.mergeEvaluated(M),$.ok(C)}}};function l($,p){const{gen:P}=$;return p.validate?P.scopeValue("validate",{ref:p.validate}):(0,E._)`${P.scopeValue("wrapper",{ref:p})}.validate`}ge.getValidate=l;function m($,p,P,g){const{gen:v,it:f}=$,{allErrors:_,schemaEnv:s,opts:o}=f,t=o.passContext?d.default.this:E.nil;g?i():y();function i(){if(!s.$async)throw new Error("async schema referenced by sync schema");const w=v.let("valid");v.try(()=>{v.code((0,E._)`await ${(0,r.callValidateCode)($,p,t)}`),c(p),_||v.assign(w,!0)},O=>{v.if((0,E._)`!(${O} instanceof ${f.ValidationError})`,()=>v.throw(O)),n(O),_||v.assign(w,!1)}),$.ok(w)}function y(){$.result((0,r.callValidateCode)($,p,t),()=>c(p),()=>n(p))}function n(w){const O=(0,E._)`${w}.errors`;v.assign(d.default.vErrors,(0,E._)`${d.default.vErrors} === null ? ${O} : ${d.default.vErrors}.concat(${O})`),v.assign(d.default.errors,(0,E._)`${d.default.vErrors}.length`)}function c(w){var O;if(!f.opts.unevaluated)return;const C=(O=P?.validate)===null||O===void 0?void 0:O.evaluated;if(f.props!==!0)if(C&&!C.dynamicProps)C.props!==void 0&&(f.props=a.mergeEvaluated.props(v,C.props,f.props));else{const M=v.var("props",(0,E._)`${w}.evaluated.props`);f.props=a.mergeEvaluated.props(v,M,f.props,E.Name)}if(f.items!==!0)if(C&&!C.dynamicItems)C.items!==void 0&&(f.items=a.mergeEvaluated.items(v,C.items,f.items));else{const M=v.var("items",(0,E._)`${w}.evaluated.items`);f.items=a.mergeEvaluated.items(v,M,f.items,E.Name)}}}return ge.callRef=m,ge.default=h,ge}var br;function Vn(){if(br)return Me;br=1,Object.defineProperty(Me,"__esModule",{value:!0});const e=An(),r=Mn(),E=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,r.default];return Me.default=E,Me}var Ue={},Fe={},Er;function Un(){if(Er)return Fe;Er=1,Object.defineProperty(Fe,"__esModule",{value:!0});const e=J(),r=e.operators,E={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},d={message:({keyword:a,schemaCode:h})=>(0,e.str)`must be ${E[a].okStr} ${h}`,params:({keyword:a,schemaCode:h})=>(0,e._)`{comparison: ${E[a].okStr}, limit: ${h}}`},b={keyword:Object.keys(E),type:"number",schemaType:"number",$data:!0,error:d,code(a){const{keyword:h,data:l,schemaCode:m}=a;a.fail$data((0,e._)`${l} ${E[h].fail} ${m} || isNaN(${l})`)}};return Fe.default=b,Fe}var ze={},Sr;function Fn(){if(Sr)return ze;Sr=1,Object.defineProperty(ze,"__esModule",{value:!0});const e=J(),E={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:d})=>(0,e.str)`must be multiple of ${d}`,params:({schemaCode:d})=>(0,e._)`{multipleOf: ${d}}`},code(d){const{gen:b,data:a,schemaCode:h,it:l}=d,m=l.opts.multipleOfPrecision,$=b.let("res"),p=m?(0,e._)`Math.abs(Math.round(${$}) - ${$}) > 1e-${m}`:(0,e._)`${$} !== parseInt(${$})`;d.fail$data((0,e._)`(${h} === 0 || (${$} = ${a}/${h}, ${p}))`)}};return ze.default=E,ze}var Ke={},Le={},Pr;function zn(){if(Pr)return Le;Pr=1,Object.defineProperty(Le,"__esModule",{value:!0});function e(r){const E=r.length;let d=0,b=0,a;for(;b<E;)d++,a=r.charCodeAt(b++),a>=55296&&a<=56319&&b<E&&(a=r.charCodeAt(b),(a&64512)===56320&&b++);return d}return Le.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Le}var jr;function Kn(){if(jr)return Ke;jr=1,Object.defineProperty(Ke,"__esModule",{value:!0});const e=J(),r=Q(),E=zn(),b={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:h}){const l=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${l} than ${h} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:h,data:l,schemaCode:m,it:$}=a,p=h==="maxLength"?e.operators.GT:e.operators.LT,P=$.opts.unicode===!1?(0,e._)`${l}.length`:(0,e._)`${(0,r.useFunc)(a.gen,E.default)}(${l})`;a.fail$data((0,e._)`${P} ${p} ${m}`)}};return Ke.default=b,Ke}var He={},Rr;function Ln(){if(Rr)return He;Rr=1,Object.defineProperty(He,"__esModule",{value:!0});const e=le(),r=J(),d={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:b})=>(0,r.str)`must match pattern "${b}"`,params:({schemaCode:b})=>(0,r._)`{pattern: ${b}}`},code(b){const{data:a,$data:h,schema:l,schemaCode:m,it:$}=b,p=$.opts.unicodeRegExp?"u":"",P=h?(0,r._)`(new RegExp(${m}, ${p}))`:(0,e.usePattern)(b,l);b.fail$data((0,r._)`!${P}.test(${a})`)}};return He.default=d,He}var Ge={},Nr;function Hn(){if(Nr)return Ge;Nr=1,Object.defineProperty(Ge,"__esModule",{value:!0});const e=J(),E={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:d,schemaCode:b}){const a=d==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${b} properties`},params:({schemaCode:d})=>(0,e._)`{limit: ${d}}`},code(d){const{keyword:b,data:a,schemaCode:h}=d,l=b==="maxProperties"?e.operators.GT:e.operators.LT;d.fail$data((0,e._)`Object.keys(${a}).length ${l} ${h}`)}};return Ge.default=E,Ge}var Je={},Or;function Gn(){if(Or)return Je;Or=1,Object.defineProperty(Je,"__esModule",{value:!0});const e=le(),r=J(),E=Q(),b={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,r.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,r._)`{missingProperty: ${a}}`},code(a){const{gen:h,schema:l,schemaCode:m,data:$,$data:p,it:P}=a,{opts:g}=P;if(!p&&l.length===0)return;const v=l.length>=g.loopRequired;if(P.allErrors?f():_(),g.strictRequired){const t=a.parentSchema.properties,{definedProperties:i}=a.it;for(const y of l)if(t?.[y]===void 0&&!i.has(y)){const n=P.schemaEnv.baseId+P.errSchemaPath,c=`required property "${y}" is not defined at "${n}" (strictRequired)`;(0,E.checkStrictMode)(P,c,P.opts.strictRequired)}}function f(){if(v||p)a.block$data(r.nil,s);else for(const t of l)(0,e.checkReportMissingProp)(a,t)}function _(){const t=h.let("missing");if(v||p){const i=h.let("valid",!0);a.block$data(i,()=>o(t,i)),a.ok(i)}else h.if((0,e.checkMissingProp)(a,l,t)),(0,e.reportMissingProp)(a,t),h.else()}function s(){h.forOf("prop",m,t=>{a.setParams({missingProperty:t}),h.if((0,e.noPropertyInData)(h,$,t,g.ownProperties),()=>a.error())})}function o(t,i){a.setParams({missingProperty:t}),h.forOf(t,m,()=>{h.assign(i,(0,e.propertyInData)(h,$,t,g.ownProperties)),h.if((0,r.not)(i),()=>{a.error(),h.break()})},r.nil)}}};return Je.default=b,Je}var We={},kr;function Jn(){if(kr)return We;kr=1,Object.defineProperty(We,"__esModule",{value:!0});const e=J(),E={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:d,schemaCode:b}){const a=d==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${b} items`},params:({schemaCode:d})=>(0,e._)`{limit: ${d}}`},code(d){const{keyword:b,data:a,schemaCode:h}=d,l=b==="maxItems"?e.operators.GT:e.operators.LT;d.fail$data((0,e._)`${a}.length ${l} ${h}`)}};return We.default=E,We}var Be={},Qe={},qr;function Ft(){if(qr)return Qe;qr=1,Object.defineProperty(Qe,"__esModule",{value:!0});const e=dn();return e.code='require("ajv/dist/runtime/equal").default',Qe.default=e,Qe}var Ir;function Wn(){if(Ir)return Be;Ir=1,Object.defineProperty(Be,"__esModule",{value:!0});const e=gt(),r=J(),E=Q(),d=Ft(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:h,j:l}})=>(0,r.str)`must NOT have duplicate items (items ## ${l} and ${h} are identical)`,params:({params:{i:h,j:l}})=>(0,r._)`{i: ${h}, j: ${l}}`},code(h){const{gen:l,data:m,$data:$,schema:p,parentSchema:P,schemaCode:g,it:v}=h;if(!$&&!p)return;const f=l.let("valid"),_=P.items?(0,e.getSchemaTypes)(P.items):[];h.block$data(f,s,(0,r._)`${g} === false`),h.ok(f);function s(){const y=l.let("i",(0,r._)`${m}.length`),n=l.let("j");h.setParams({i:y,j:n}),l.assign(f,!0),l.if((0,r._)`${y} > 1`,()=>(o()?t:i)(y,n))}function o(){return _.length>0&&!_.some(y=>y==="object"||y==="array")}function t(y,n){const c=l.name("item"),w=(0,e.checkDataTypes)(_,c,v.opts.strictNumbers,e.DataType.Wrong),O=l.const("indices",(0,r._)`{}`);l.for((0,r._)`;${y}--;`,()=>{l.let(c,(0,r._)`${m}[${y}]`),l.if(w,(0,r._)`continue`),_.length>1&&l.if((0,r._)`typeof ${c} == "string"`,(0,r._)`${c} += "_"`),l.if((0,r._)`typeof ${O}[${c}] == "number"`,()=>{l.assign(n,(0,r._)`${O}[${c}]`),h.error(),l.assign(f,!1).break()}).code((0,r._)`${O}[${c}] = ${y}`)})}function i(y,n){const c=(0,E.useFunc)(l,d.default),w=l.name("outer");l.label(w).for((0,r._)`;${y}--;`,()=>l.for((0,r._)`${n} = ${y}; ${n}--;`,()=>l.if((0,r._)`${c}(${m}[${y}], ${m}[${n}])`,()=>{h.error(),l.assign(f,!1).break(w)})))}}};return Be.default=a,Be}var Xe={},Tr;function Bn(){if(Tr)return Xe;Tr=1,Object.defineProperty(Xe,"__esModule",{value:!0});const e=J(),r=Q(),E=Ft(),b={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:h,data:l,$data:m,schemaCode:$,schema:p}=a;m||p&&typeof p=="object"?a.fail$data((0,e._)`!${(0,r.useFunc)(h,E.default)}(${l}, ${$})`):a.fail((0,e._)`${p} !== ${l}`)}};return Xe.default=b,Xe}var Ye={},Cr;function Qn(){if(Cr)return Ye;Cr=1,Object.defineProperty(Ye,"__esModule",{value:!0});const e=J(),r=Q(),E=Ft(),b={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:h,data:l,$data:m,schema:$,schemaCode:p,it:P}=a;if(!m&&$.length===0)throw new Error("enum must have non-empty array");const g=$.length>=P.opts.loopEnum;let v;const f=()=>v??(v=(0,r.useFunc)(h,E.default));let _;if(g||m)_=h.let("valid"),a.block$data(_,s);else{if(!Array.isArray($))throw new Error("ajv implementation error");const t=h.const("vSchema",p);_=(0,e.or)(...$.map((i,y)=>o(t,y)))}a.pass(_);function s(){h.assign(_,!1),h.forOf("v",p,t=>h.if((0,e._)`${f()}(${l}, ${t})`,()=>h.assign(_,!0).break()))}function o(t,i){const y=$[i];return typeof y=="object"&&y!==null?(0,e._)`${f()}(${l}, ${t}[${i}])`:(0,e._)`${l} === ${y}`}}};return Ye.default=b,Ye}var Dr;function Xn(){if(Dr)return Ue;Dr=1,Object.defineProperty(Ue,"__esModule",{value:!0});const e=Un(),r=Fn(),E=Kn(),d=Ln(),b=Hn(),a=Gn(),h=Jn(),l=Wn(),m=Bn(),$=Qn(),p=[e.default,r.default,E.default,d.default,b.default,a.default,h.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},m.default,$.default];return Ue.default=p,Ue}var Ze={},Ee={},Ar;function hn(){if(Ar)return Ee;Ar=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.validateAdditionalItems=void 0;const e=J(),r=Q(),d={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:h,it:l}=a,{items:m}=h;if(!Array.isArray(m)){(0,r.checkStrictMode)(l,'"additionalItems" is ignored when "items" is not an array of schemas');return}b(a,m)}};function b(a,h){const{gen:l,schema:m,data:$,keyword:p,it:P}=a;P.items=!0;const g=l.const("len",(0,e._)`${$}.length`);if(m===!1)a.setParams({len:h.length}),a.pass((0,e._)`${g} <= ${h.length}`);else if(typeof m=="object"&&!(0,r.alwaysValidSchema)(P,m)){const f=l.var("valid",(0,e._)`${g} <= ${h.length}`);l.if((0,e.not)(f),()=>v(f)),a.ok(f)}function v(f){l.forRange("i",h.length,g,_=>{a.subschema({keyword:p,dataProp:_,dataPropType:r.Type.Num},f),P.allErrors||l.if((0,e.not)(f),()=>l.break())})}}return Ee.validateAdditionalItems=b,Ee.default=d,Ee}var xe={},Se={},Mr;function pn(){if(Mr)return Se;Mr=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.validateTuple=void 0;const e=J(),r=Q(),E=le(),d={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:h,it:l}=a;if(Array.isArray(h))return b(a,"additionalItems",h);l.items=!0,!(0,r.alwaysValidSchema)(l,h)&&a.ok((0,E.validateArray)(a))}};function b(a,h,l=a.schema){const{gen:m,parentSchema:$,data:p,keyword:P,it:g}=a;_($),g.opts.unevaluated&&l.length&&g.items!==!0&&(g.items=r.mergeEvaluated.items(m,l.length,g.items));const v=m.name("valid"),f=m.const("len",(0,e._)`${p}.length`);l.forEach((s,o)=>{(0,r.alwaysValidSchema)(g,s)||(m.if((0,e._)`${f} > ${o}`,()=>a.subschema({keyword:P,schemaProp:o,dataProp:o},v)),a.ok(v))});function _(s){const{opts:o,errSchemaPath:t}=g,i=l.length,y=i===s.minItems&&(i===s.maxItems||s[h]===!1);if(o.strictTuples&&!y){const n=`"${P}" is ${i}-tuple, but minItems or maxItems/${h} are not specified or different at path "${t}"`;(0,r.checkStrictMode)(g,n,o.strictTuples)}}}return Se.validateTuple=b,Se.default=d,Se}var Vr;function Yn(){if(Vr)return xe;Vr=1,Object.defineProperty(xe,"__esModule",{value:!0});const e=pn(),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:E=>(0,e.validateTuple)(E,"items")};return xe.default=r,xe}var et={},Ur;function Zn(){if(Ur)return et;Ur=1,Object.defineProperty(et,"__esModule",{value:!0});const e=J(),r=Q(),E=le(),d=hn(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:h}})=>(0,e.str)`must NOT have more than ${h} items`,params:({params:{len:h}})=>(0,e._)`{limit: ${h}}`},code(h){const{schema:l,parentSchema:m,it:$}=h,{prefixItems:p}=m;$.items=!0,!(0,r.alwaysValidSchema)($,l)&&(p?(0,d.validateAdditionalItems)(h,p):h.ok((0,E.validateArray)(h)))}};return et.default=a,et}var tt={},Fr;function xn(){if(Fr)return tt;Fr=1,Object.defineProperty(tt,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:b,max:a}})=>a===void 0?(0,e.str)`must contain at least ${b} valid item(s)`:(0,e.str)`must contain at least ${b} and no more than ${a} valid item(s)`,params:({params:{min:b,max:a}})=>a===void 0?(0,e._)`{minContains: ${b}}`:(0,e._)`{minContains: ${b}, maxContains: ${a}}`},code(b){const{gen:a,schema:h,parentSchema:l,data:m,it:$}=b;let p,P;const{minContains:g,maxContains:v}=l;$.opts.next?(p=g===void 0?1:g,P=v):p=1;const f=a.const("len",(0,e._)`${m}.length`);if(b.setParams({min:p,max:P}),P===void 0&&p===0){(0,r.checkStrictMode)($,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(P!==void 0&&p>P){(0,r.checkStrictMode)($,'"minContains" > "maxContains" is always invalid'),b.fail();return}if((0,r.alwaysValidSchema)($,h)){let i=(0,e._)`${f} >= ${p}`;P!==void 0&&(i=(0,e._)`${i} && ${f} <= ${P}`),b.pass(i);return}$.items=!0;const _=a.name("valid");P===void 0&&p===1?o(_,()=>a.if(_,()=>a.break())):p===0?(a.let(_,!0),P!==void 0&&a.if((0,e._)`${m}.length > 0`,s)):(a.let(_,!1),s()),b.result(_,()=>b.reset());function s(){const i=a.name("_valid"),y=a.let("count",0);o(i,()=>a.if(i,()=>t(y)))}function o(i,y){a.forRange("i",0,f,n=>{b.subschema({keyword:"contains",dataProp:n,dataPropType:r.Type.Num,compositeRule:!0},i),y()})}function t(i){a.code((0,e._)`${i}++`),P===void 0?a.if((0,e._)`${i} >= ${p}`,()=>a.assign(_,!0).break()):(a.if((0,e._)`${i} > ${P}`,()=>a.assign(_,!1).break()),p===1?a.assign(_,!0):a.if((0,e._)`${i} >= ${p}`,()=>a.assign(_,!0)))}}};return tt.default=d,tt}var At={},zr;function es(){return zr||(zr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const r=J(),E=Q(),d=le();e.error={message:({params:{property:m,depsCount:$,deps:p}})=>{const P=$===1?"property":"properties";return(0,r.str)`must have ${P} ${p} when property ${m} is present`},params:({params:{property:m,depsCount:$,deps:p,missingProperty:P}})=>(0,r._)`{property: ${m},
|
|
6
6
|
missingProperty: ${P},
|
|
7
7
|
depsCount: ${$},
|
|
8
|
-
deps: ${p}}`};const b={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(m){const[$,p]=a(m);h(m,$),l(m,p)}};function a({schema:m}){const $={},p={};for(const P in m){if(P==="__proto__")continue;const g=Array.isArray(m[P])?$:p;g[P]=m[P]}return[$,p]}function h(m,$=m.schema){const{gen:p,data:P,it:g}=m;if(Object.keys($).length===0)return;const v=p.let("missing");for(const f in $){const _=$[f];if(_.length===0)continue;const s=(0,d.propertyInData)(p,P,f,g.opts.ownProperties);m.setParams({property:f,depsCount:_.length,deps:_.join(", ")}),g.allErrors?p.if(s,()=>{for(const o of _)(0,d.checkReportMissingProp)(m,o)}):(p.if((0,r._)`${s} && (${(0,d.checkMissingProp)(m,_,v)})`),(0,d.reportMissingProp)(m,v),p.else())}}e.validatePropertyDeps=h;function l(m,$=m.schema){const{gen:p,data:P,keyword:g,it:v}=m,f=p.name("valid");for(const _ in $)(0,E.alwaysValidSchema)(v,$[_])||(p.if((0,d.propertyInData)(p,P,_,v.opts.ownProperties),()=>{const s=m.subschema({keyword:g,schemaProp:_},f);m.mergeValidEvaluated(s,f)},()=>p.var(f,!0)),m.ok(f))}e.validateSchemaDeps=l,e.default=b})(At)),At}var rt={},Kr;function ts(){if(Kr)return rt;Kr=1,Object.defineProperty(rt,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:b})=>(0,e._)`{propertyName: ${b.propertyName}}`},code(b){const{gen:a,schema:h,data:l,it:m}=b;if((0,r.alwaysValidSchema)(m,h))return;const $=a.name("valid");a.forIn("key",l,p=>{b.setParams({propertyName:p}),b.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},$),a.if((0,e.not)($),()=>{b.error(!0),m.allErrors||a.break()})}),b.ok($)}};return rt.default=d,rt}var nt={},Lr;function mn(){if(Lr)return nt;Lr=1,Object.defineProperty(nt,"__esModule",{value:!0});const e=le(),r=J(),E=ve(),d=Q(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:h})=>(0,r._)`{additionalProperty: ${h.additionalProperty}}`},code(h){const{gen:l,schema:m,parentSchema:$,data:p,errsCount:P,it:g}=h;if(!P)throw new Error("ajv implementation error");const{allErrors:v,opts:f}=g;if(g.props=!0,f.removeAdditional!=="all"&&(0,d.alwaysValidSchema)(g,m))return;const _=(0,e.allSchemaProperties)($.properties),s=(0,e.allSchemaProperties)($.patternProperties);o(),h.ok((0,r._)`${P} === ${E.default.errors}`);function o(){l.forIn("key",p,c=>{!_.length&&!s.length?y(c):l.if(t(c),()=>y(c))})}function t(c){let w;if(_.length>8){const O=(0,d.schemaRefOrVal)(g,$.properties,"properties");w=(0,e.isOwnProperty)(l,O,c)}else _.length?w=(0,r.or)(..._.map(O=>(0,r._)`${c} === ${O}`)):w=r.nil;return s.length&&(w=(0,r.or)(w,...s.map(O=>(0,r._)`${(0,e.usePattern)(h,O)}.test(${c})`))),(0,r.not)(w)}function i(c){l.code((0,r._)`delete ${p}[${c}]`)}function y(c){if(f.removeAdditional==="all"||f.removeAdditional&&m===!1){i(c);return}if(m===!1){h.setParams({additionalProperty:c}),h.error(),v||l.break();return}if(typeof m=="object"&&!(0,d.alwaysValidSchema)(g,m)){const w=l.name("valid");f.removeAdditional==="failing"?(n(c,w,!1),l.if((0,r.not)(w),()=>{h.reset(),i(c)})):(n(c,w),v||l.if((0,r.not)(w),()=>l.break()))}}function n(c,w,O){const C={keyword:"additionalProperties",dataProp:c,dataPropType:d.Type.Str};O===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),h.subschema(C,w)}}};return nt.default=a,nt}var st={},Hr;function rs(){if(Hr)return st;Hr=1,Object.defineProperty(st,"__esModule",{value:!0});const e=wt(),r=le(),E=Q(),d=mn(),b={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:h,schema:l,parentSchema:m,data:$,it:p}=a;p.opts.removeAdditional==="all"&&m.additionalProperties===void 0&&d.default.code(new e.KeywordCxt(p,d.default,"additionalProperties"));const P=(0,r.allSchemaProperties)(l);for(const s of P)p.definedProperties.add(s);p.opts.unevaluated&&P.length&&p.props!==!0&&(p.props=E.mergeEvaluated.props(h,(0,E.toHash)(P),p.props));const g=P.filter(s=>!(0,E.alwaysValidSchema)(p,l[s]));if(g.length===0)return;const v=h.name("valid");for(const s of g)f(s)?_(s):(h.if((0,r.propertyInData)(h,$,s,p.opts.ownProperties)),_(s),p.allErrors||h.else().var(v,!0),h.endIf()),a.it.definedProperties.add(s),a.ok(v);function f(s){return p.opts.useDefaults&&!p.compositeRule&&l[s].default!==void 0}function _(s){a.subschema({keyword:"properties",schemaProp:s,dataProp:s},v)}}};return st.default=b,st}var at={},Gr;function ns(){if(Gr)return at;Gr=1,Object.defineProperty(at,"__esModule",{value:!0});const e=le(),r=J(),E=Q(),d=Q(),b={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:h,schema:l,data:m,parentSchema:$,it:p}=a,{opts:P}=p,g=(0,e.allSchemaProperties)(l),v=g.filter(y=>(0,E.alwaysValidSchema)(p,l[y]));if(g.length===0||v.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const f=P.strictSchema&&!P.allowMatchingProperties&&$.properties,_=h.name("valid");p.props!==!0&&!(p.props instanceof r.Name)&&(p.props=(0,d.evaluatedPropsToName)(h,p.props));const{props:s}=p;o();function o(){for(const y of g)f&&t(y),p.allErrors?i(y):(h.var(_,!0),i(y),h.if(_))}function t(y){for(const n in f)new RegExp(y).test(n)&&(0,E.checkStrictMode)(p,`property ${n} matches pattern ${y} (use allowMatchingProperties)`)}function i(y){h.forIn("key",m,n=>{h.if((0,r._)`${(0,e.usePattern)(a,y)}.test(${n})`,()=>{const c=v.includes(y);c||a.subschema({keyword:"patternProperties",schemaProp:y,dataProp:n,dataPropType:d.Type.Str},_),p.opts.unevaluated&&s!==!0?h.assign((0,r._)`${s}[${n}]`,!0):!c&&!p.allErrors&&h.if((0,r.not)(_),()=>h.break())})})}}};return at.default=b,at}var it={},Jr;function ss(){if(Jr)return it;Jr=1,Object.defineProperty(it,"__esModule",{value:!0});const e=Q(),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(E){const{gen:d,schema:b,it:a}=E;if((0,e.alwaysValidSchema)(a,b)){E.fail();return}const h=d.name("valid");E.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},h),E.failResult(h,()=>E.reset(),()=>E.error())},error:{message:"must NOT be valid"}};return it.default=r,it}var ot={},Wr;function as(){if(Wr)return ot;Wr=1,Object.defineProperty(ot,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:le().validateUnion,error:{message:"must match a schema in anyOf"}};return ot.default=r,ot}var ut={},Br;function is(){if(Br)return ut;Br=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:b})=>(0,e._)`{passingSchemas: ${b.passing}}`},code(b){const{gen:a,schema:h,parentSchema:l,it:m}=b;if(!Array.isArray(h))throw new Error("ajv implementation error");if(m.opts.discriminator&&l.discriminator)return;const $=h,p=a.let("valid",!1),P=a.let("passing",null),g=a.name("_valid");b.setParams({passing:P}),a.block(v),b.result(p,()=>b.reset(),()=>b.error(!0));function v(){$.forEach((f,_)=>{let s;(0,r.alwaysValidSchema)(m,f)?a.var(g,!0):s=b.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},g),_>0&&a.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(P,(0,e._)`[${P}, ${_}]`).else(),a.if(g,()=>{a.assign(p,!0),a.assign(P,_),s&&b.mergeEvaluated(s,e.Name)})})}}};return ut.default=d,ut}var ct={},Qr;function os(){if(Qr)return ct;Qr=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=Q(),r={keyword:"allOf",schemaType:"array",code(E){const{gen:d,schema:b,it:a}=E;if(!Array.isArray(b))throw new Error("ajv implementation error");const h=d.name("valid");b.forEach((l,m)=>{if((0,e.alwaysValidSchema)(a,l))return;const $=E.subschema({keyword:"allOf",schemaProp:m},h);E.ok(h),E.mergeEvaluated($)})}};return ct.default=r,ct}var lt={},Xr;function us(){if(Xr)return lt;Xr=1,Object.defineProperty(lt,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:h,parentSchema:l,it:m}=a;l.then===void 0&&l.else===void 0&&(0,r.checkStrictMode)(m,'"if" without "then" and "else" is ignored');const $=b(m,"then"),p=b(m,"else");if(!$&&!p)return;const P=h.let("valid",!0),g=h.name("_valid");if(v(),a.reset(),$&&p){const _=h.let("ifClause");a.setParams({ifClause:_}),h.if(g,f("then",_),f("else",_))}else $?h.if(g,f("then")):h.if((0,e.not)(g),f("else"));a.pass(P,()=>a.error(!0));function v(){const _=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);a.mergeEvaluated(_)}function f(_,s){return()=>{const o=a.subschema({keyword:_},g);h.assign(P,g),a.mergeValidEvaluated(o,P),s?h.assign(s,(0,e._)`${_}`):a.setParams({ifClause:_})}}}};function b(a,h){const l=a.schema[h];return l!==void 0&&!(0,r.alwaysValidSchema)(a,l)}return lt.default=d,lt}var dt={},Yr;function cs(){if(Yr)return dt;Yr=1,Object.defineProperty(dt,"__esModule",{value:!0});const e=Q(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:E,parentSchema:d,it:b}){d.if===void 0&&(0,e.checkStrictMode)(b,`"${E}" without "if" is ignored`)}};return dt.default=r,dt}var Zr;function ls(){if(Zr)return Ze;Zr=1,Object.defineProperty(Ze,"__esModule",{value:!0});const e=hn(),r=Yn(),E=pn(),d=Zn(),b=xn(),a=es(),h=ts(),l=mn(),m=rs(),$=ns(),p=ss(),P=as(),g=is(),v=os(),f=us(),_=cs();function s(o=!1){const t=[p.default,P.default,g.default,v.default,f.default,_.default,h.default,l.default,a.default,m.default,$.default];return o?t.push(r.default,d.default):t.push(e.default,E.default),t.push(b.default),t}return Ze.default=s,Ze}var ft={},ht={},xr;function ds(){if(xr)return ht;xr=1,Object.defineProperty(ht,"__esModule",{value:!0});const e=J(),E={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:d})=>(0,e.str)`must match format "${d}"`,params:({schemaCode:d})=>(0,e._)`{format: ${d}}`},code(d,b){const{gen:a,data:h,$data:l,schema:m,schemaCode:$,it:p}=d,{opts:P,errSchemaPath:g,schemaEnv:v,self:f}=p;if(!P.validateFormats)return;l?_():s();function _(){const o=a.scopeValue("formats",{ref:f.formats,code:P.code.formats}),t=a.const("fDef",(0,e._)`${o}[${$}]`),i=a.let("fType"),y=a.let("format");a.if((0,e._)`typeof ${t} == "object" && !(${t} instanceof RegExp)`,()=>a.assign(i,(0,e._)`${t}.type || "string"`).assign(y,(0,e._)`${t}.validate`),()=>a.assign(i,(0,e._)`"string"`).assign(y,t)),d.fail$data((0,e.or)(n(),c()));function n(){return P.strictSchema===!1?e.nil:(0,e._)`${$} && !${y}`}function c(){const w=v.$async?(0,e._)`(${t}.async ? await ${y}(${h}) : ${y}(${h}))`:(0,e._)`${y}(${h})`,O=(0,e._)`(typeof ${y} == "function" ? ${w} : ${y}.test(${h}))`;return(0,e._)`${y} && ${y} !== true && ${i} === ${b} && !${O}`}}function s(){const o=f.formats[m];if(!o){n();return}if(o===!0)return;const[t,i,y]=c(o);t===b&&d.pass(w());function n(){if(P.strictSchema===!1){f.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${m}" ignored in schema at path "${g}"`}}function c(O){const C=O instanceof RegExp?(0,e.regexpCode)(O):P.code.formats?(0,e._)`${P.code.formats}${(0,e.getProperty)(m)}`:void 0,M=a.scopeValue("formats",{key:m,ref:O,code:C});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${M}.validate`]:["string",O,M]}function w(){if(typeof o=="object"&&!(o instanceof RegExp)&&o.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${y}(${h})`}return typeof i=="function"?(0,e._)`${y}(${h})`:(0,e._)`${y}.test(${h})`}}}};return ht.default=E,ht}var en;function fs(){if(en)return ft;en=1,Object.defineProperty(ft,"__esModule",{value:!0});const r=[ds().default];return ft.default=r,ft}var we={},tn;function hs(){return tn||(tn=1,Object.defineProperty(we,"__esModule",{value:!0}),we.contentVocabulary=we.metadataVocabulary=void 0,we.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],we.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),we}var rn;function ps(){if(rn)return Ae;rn=1,Object.defineProperty(Ae,"__esModule",{value:!0});const e=Vn(),r=Xn(),E=ls(),d=fs(),b=hs(),a=[e.default,r.default,(0,E.default)(),d.default,b.metadataVocabulary,b.contentVocabulary];return Ae.default=a,Ae}var pt={},Oe={},nn;function ms(){if(nn)return Oe;nn=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.DiscrError=void 0;var e;return(function(r){r.Tag="tag",r.Mapping="mapping"})(e||(Oe.DiscrError=e={})),Oe}var sn;function ys(){if(sn)return pt;sn=1,Object.defineProperty(pt,"__esModule",{value:!0});const e=J(),r=ms(),E=Ut(),d=bt(),b=Q(),h={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:l,tagName:m}})=>l===r.DiscrError.Tag?`tag "${m}" must be string`:`value of tag "${m}" must be in oneOf`,params:({params:{discrError:l,tag:m,tagName:$}})=>(0,e._)`{error: ${l}, tag: ${$}, tagValue: ${m}}`},code(l){const{gen:m,data:$,schema:p,parentSchema:P,it:g}=l,{oneOf:v}=P;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=p.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(p.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const _=m.let("valid",!1),s=m.const("tag",(0,e._)`${$}${(0,e.getProperty)(f)}`);m.if((0,e._)`typeof ${s} == "string"`,()=>o(),()=>l.error(!1,{discrError:r.DiscrError.Tag,tag:s,tagName:f})),l.ok(_);function o(){const y=i();m.if(!1);for(const n in y)m.elseIf((0,e._)`${s} === ${n}`),m.assign(_,t(y[n]));m.else(),l.error(!1,{discrError:r.DiscrError.Mapping,tag:s,tagName:f}),m.endIf()}function t(y){const n=m.name("valid"),c=l.subschema({keyword:"oneOf",schemaProp:y},n);return l.mergeEvaluated(c,e.Name),n}function i(){var y;const n={},c=O(P);let w=!0;for(let V=0;V<v.length;V++){let L=v[V];if(L?.$ref&&!(0,b.schemaHasRulesButRef)(L,g.self.RULES)){const B=L.$ref;if(L=E.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,B),L instanceof E.SchemaEnv&&(L=L.schema),L===void 0)throw new d.default(g.opts.uriResolver,g.baseId,B)}const K=(y=L?.properties)===null||y===void 0?void 0:y[f];if(typeof K!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);w=w&&(c||O(L)),C(K,V)}if(!w)throw new Error(`discriminator: "${f}" must be required`);return n;function O({required:V}){return Array.isArray(V)&&V.includes(f)}function C(V,L){if(V.const)M(V.const,L);else if(V.enum)for(const K of V.enum)M(K,L);else throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function M(V,L){if(typeof V!="string"||V in n)throw new Error(`discriminator: "${f}" values must be unique strings`);n[V]=L}}}};return pt.default=h,pt}const gs="http://json-schema.org/draft-07/schema#",vs="http://json-schema.org/draft-07/schema#",_s="Core schema meta-schema",$s={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ws=["object","boolean"],bs={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Es={$schema:gs,$id:vs,title:_s,definitions:$s,type:ws,properties:bs,default:!0};var an;function Ss(){return an||(an=1,(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=r.Ajv=void 0;const E=Dn(),d=ps(),b=ys(),a=Es,h=["/properties"],l="http://json-schema.org/draft-07/schema";class m extends E.default{_addVocabularies(){super._addVocabularies(),d.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(b.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(a,h):a;this.addMetaSchema(f,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.Ajv=m,e.exports=r=m,e.exports.Ajv=m,Object.defineProperty(r,"__esModule",{value:!0}),r.default=m;var $=wt();Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return $.KeywordCxt}});var p=J();Object.defineProperty(r,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var P=Vt();Object.defineProperty(r,"ValidationError",{enumerable:!0,get:function(){return P.default}});var g=bt();Object.defineProperty(r,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(qe,qe.exports)),qe.exports}var Ps=Ss();const js=un(Ps);var mt={exports:{}},on;function Rs(){return on||(on=1,(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});const E={},d={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:p=>{var P;const g=(P=p?.max)!==null&&P!==void 0?P:2;return()=>Math.floor(Math.random()*g)},seq:p=>{var P;const g=(P=p?.name)!==null&&P!==void 0?P:"";return E[g]||(E[g]=0),()=>E[g]++}},b=Object.assign(a,{DEFAULTS:d});function a(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(p,P,g){if(!g.opts.useDefaults||g.compositeRule)return()=>!0;const v={};for(const _ in p)v[_]=h(p[_]);const f=g.opts.useDefaults==="empty";return _=>{for(const s in p)(_[s]===void 0||f&&(_[s]===null||_[s]===""))&&(_[s]=v[s]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function h(p){return typeof p=="object"?l(p):m(p)}function l({func:p,args:P}){const g=d[p];return $(p,g),g(P)}function m(p=""){const P=d[p];return $(p,P),P()}function $(p,P){if(!P)throw new Error(`invalid "dynamicDefaults" keyword property value: ${p}`)}r.default=b,e.exports=b})(mt,mt.exports)),mt.exports}var Ns=Rs();const yn=un(Ns),Os={$id:"urn:jsonschema:credentials",additionalProperties:{properties:{accessKeyId:{default:null,nullable:!0,type:"string"},Bucket:{default:null,nullable:!0,type:"string"},endpoint:{default:null,nullable:!0,type:"string"},region:{default:null,nullable:!0,type:"string"},secretAccessKey:{default:null,nullable:!0,type:"string"}},type:"object"},type:"object"},ks={$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},qs={$id:"urn:jsonschema:feed",additionalProperties:!1,properties:{feed_url:{type:"string"},home_page_url:{type:"string"},items:{default:[],items:{additionalProperties:!1,dynamicDefaults:{date_published:"datetime",id:"uuid"},properties:{attachments:{default:[],items:{additionalProperties:!1,properties:{mime_type:{default:"",type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},content_html:{default:"",type:"string"},date_published:{type:"string"},id:{type:"string"},title:{default:"",type:"string"},url:{type:"string"}},type:"object"},type:"array"},title:{default:"",type:"string"},version:{default:"https://jsonfeed.org/version/1",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],type:"string"}},type:"object"},Is={$id:"urn:jsonschema:fonts",items:{type:"string"},type:"array"},Ts={$id:"urn:jsonschema:importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},description:"The Imports field",type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},description:"The Scopes field",type:"object"}},title:"JSON schema for Import Maps files",type:"object"},Cs={$id:"urn:jsonschema:log",additionalProperties:!1,properties:{messages:{default:[],items:{additionalProperties:!1,properties:{content:{default:"[]",items:{additionalProperties:!1,properties:{text:{default:"",type:"string"},type:{default:"text",type:"string"}},type:"object"},type:"array"},role:{default:"user",type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"},Ds={$id:"urn:jsonschema:page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{changefreq:{default:null,enum:["always","hourly","daily","weekly","monthly","yearly","never",null],nullable:!0,type:"string"},children:{default:[],items:{type:"object"},type:"array"},class:{default:["prose","max-w-none"],description:"Классы",items:{type:"string"},type:"array"},description:{default:null,nullable:!0,type:"string"},enabled:{default:!0,type:"boolean"},flat:{default:!0,type:"boolean"},header:{type:"string"},icon:{type:"string"},id:{type:"string"},images:{default:[],items:{properties:{alt:{type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},keywords:{default:[],items:{type:"string"},type:"array"},lastmod:{default:null,nullable:!0,type:"string"},loc:{default:null,nullable:!0,type:"string"},name:{default:null,nullable:!0,type:"string"},priority:{default:null,maximum:1,minimum:0,nullable:!0,type:"number"},type:{default:null,enum:["article","book","profile","website","music.song","music.album","music.playlist","music.radio_station","video.movie","video.episode","video.tv_show","video.other",null],nullable:!0,type:"string"}},type:"object"},Et=!0,As=()=>{const e=URL.createObjectURL(new Blob),r=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),r};yn.DEFAULTS.uuid=()=>As;const Ms={get(){return this.children.filter(({enabled:e})=>e)}},Vs={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},Us={get(){return this.$siblings[this.$index+1]}},Fs={get(){return this.$siblings[this.$index-1]}},zs={get(){return this.siblings.filter(({enabled:e})=>e)}},Pe=new js({code:{esm:!0},coerceTypes:!0,keywords:[yn()],removeAdditional:!0,schemas:[Os,ks,Ds,Ts,qs,Is,Cs],useDefaults:!0}),ta=async e=>(await fetch(e)).text(),Ks=ke({}),Ls=ke([]),ra=e=>Object.fromEntries(e.map(r=>[r.toLowerCase().replaceAll(" ","_"),r])),Hs={get(){return this.icon&&`i-${this.icon}`}},Gs=ke({}),Mt=ke([]),Js={get(){const e=this.branch.slice(1);return e.some(({name:r})=>!r)?void 0:e.map(({name:r})=>r).join("/").replaceAll(" ","_")}},Ws={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},Bs={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};Pe.getSchema("urn:jsonschema:credentials");const Qs=Pe.getSchema("urn:jsonschema:data"),Xs=Pe.getSchema("urn:jsonschema:feed"),Ys=Pe.getSchema("urn:jsonschema:fonts"),Zs=Pe.getSchema("urn:jsonschema:importmap");Pe.getSchema("urn:jsonschema:log");const{nodes:xs,nodesMap:na}=_n(Mt);vt(Ks,async e=>{await Xs?.(e)},{immediate:Et});vt(Ls,async e=>{await Ys?.(e)},{immediate:Et});vt(Gs,async e=>{await Zs?.(e)},{immediate:Et});vt(xs,async e=>{await Qs?.(e)?e.forEach(r=>{Object.defineProperties(r,{$children:Ms,$index:Vs,$next:Us,$prev:Fs,$siblings:zs,i:Hs,path:Js,title:Ws,to:Bs})}):(Mt.length=0,Mt.push({}))},{immediate:Et});export{na as a,ra as b,ta as c,Ls as f,un as g,Mt as n,xs as p,As as u};
|
|
8
|
+
deps: ${p}}`};const b={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(m){const[$,p]=a(m);h(m,$),l(m,p)}};function a({schema:m}){const $={},p={};for(const P in m){if(P==="__proto__")continue;const g=Array.isArray(m[P])?$:p;g[P]=m[P]}return[$,p]}function h(m,$=m.schema){const{gen:p,data:P,it:g}=m;if(Object.keys($).length===0)return;const v=p.let("missing");for(const f in $){const _=$[f];if(_.length===0)continue;const s=(0,d.propertyInData)(p,P,f,g.opts.ownProperties);m.setParams({property:f,depsCount:_.length,deps:_.join(", ")}),g.allErrors?p.if(s,()=>{for(const o of _)(0,d.checkReportMissingProp)(m,o)}):(p.if((0,r._)`${s} && (${(0,d.checkMissingProp)(m,_,v)})`),(0,d.reportMissingProp)(m,v),p.else())}}e.validatePropertyDeps=h;function l(m,$=m.schema){const{gen:p,data:P,keyword:g,it:v}=m,f=p.name("valid");for(const _ in $)(0,E.alwaysValidSchema)(v,$[_])||(p.if((0,d.propertyInData)(p,P,_,v.opts.ownProperties),()=>{const s=m.subschema({keyword:g,schemaProp:_},f);m.mergeValidEvaluated(s,f)},()=>p.var(f,!0)),m.ok(f))}e.validateSchemaDeps=l,e.default=b})(At)),At}var rt={},Kr;function ts(){if(Kr)return rt;Kr=1,Object.defineProperty(rt,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:b})=>(0,e._)`{propertyName: ${b.propertyName}}`},code(b){const{gen:a,schema:h,data:l,it:m}=b;if((0,r.alwaysValidSchema)(m,h))return;const $=a.name("valid");a.forIn("key",l,p=>{b.setParams({propertyName:p}),b.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},$),a.if((0,e.not)($),()=>{b.error(!0),m.allErrors||a.break()})}),b.ok($)}};return rt.default=d,rt}var nt={},Lr;function mn(){if(Lr)return nt;Lr=1,Object.defineProperty(nt,"__esModule",{value:!0});const e=le(),r=J(),E=ve(),d=Q(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:h})=>(0,r._)`{additionalProperty: ${h.additionalProperty}}`},code(h){const{gen:l,schema:m,parentSchema:$,data:p,errsCount:P,it:g}=h;if(!P)throw new Error("ajv implementation error");const{allErrors:v,opts:f}=g;if(g.props=!0,f.removeAdditional!=="all"&&(0,d.alwaysValidSchema)(g,m))return;const _=(0,e.allSchemaProperties)($.properties),s=(0,e.allSchemaProperties)($.patternProperties);o(),h.ok((0,r._)`${P} === ${E.default.errors}`);function o(){l.forIn("key",p,c=>{!_.length&&!s.length?y(c):l.if(t(c),()=>y(c))})}function t(c){let w;if(_.length>8){const O=(0,d.schemaRefOrVal)(g,$.properties,"properties");w=(0,e.isOwnProperty)(l,O,c)}else _.length?w=(0,r.or)(..._.map(O=>(0,r._)`${c} === ${O}`)):w=r.nil;return s.length&&(w=(0,r.or)(w,...s.map(O=>(0,r._)`${(0,e.usePattern)(h,O)}.test(${c})`))),(0,r.not)(w)}function i(c){l.code((0,r._)`delete ${p}[${c}]`)}function y(c){if(f.removeAdditional==="all"||f.removeAdditional&&m===!1){i(c);return}if(m===!1){h.setParams({additionalProperty:c}),h.error(),v||l.break();return}if(typeof m=="object"&&!(0,d.alwaysValidSchema)(g,m)){const w=l.name("valid");f.removeAdditional==="failing"?(n(c,w,!1),l.if((0,r.not)(w),()=>{h.reset(),i(c)})):(n(c,w),v||l.if((0,r.not)(w),()=>l.break()))}}function n(c,w,O){const C={keyword:"additionalProperties",dataProp:c,dataPropType:d.Type.Str};O===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),h.subschema(C,w)}}};return nt.default=a,nt}var st={},Hr;function rs(){if(Hr)return st;Hr=1,Object.defineProperty(st,"__esModule",{value:!0});const e=wt(),r=le(),E=Q(),d=mn(),b={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:h,schema:l,parentSchema:m,data:$,it:p}=a;p.opts.removeAdditional==="all"&&m.additionalProperties===void 0&&d.default.code(new e.KeywordCxt(p,d.default,"additionalProperties"));const P=(0,r.allSchemaProperties)(l);for(const s of P)p.definedProperties.add(s);p.opts.unevaluated&&P.length&&p.props!==!0&&(p.props=E.mergeEvaluated.props(h,(0,E.toHash)(P),p.props));const g=P.filter(s=>!(0,E.alwaysValidSchema)(p,l[s]));if(g.length===0)return;const v=h.name("valid");for(const s of g)f(s)?_(s):(h.if((0,r.propertyInData)(h,$,s,p.opts.ownProperties)),_(s),p.allErrors||h.else().var(v,!0),h.endIf()),a.it.definedProperties.add(s),a.ok(v);function f(s){return p.opts.useDefaults&&!p.compositeRule&&l[s].default!==void 0}function _(s){a.subschema({keyword:"properties",schemaProp:s,dataProp:s},v)}}};return st.default=b,st}var at={},Gr;function ns(){if(Gr)return at;Gr=1,Object.defineProperty(at,"__esModule",{value:!0});const e=le(),r=J(),E=Q(),d=Q(),b={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:h,schema:l,data:m,parentSchema:$,it:p}=a,{opts:P}=p,g=(0,e.allSchemaProperties)(l),v=g.filter(y=>(0,E.alwaysValidSchema)(p,l[y]));if(g.length===0||v.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const f=P.strictSchema&&!P.allowMatchingProperties&&$.properties,_=h.name("valid");p.props!==!0&&!(p.props instanceof r.Name)&&(p.props=(0,d.evaluatedPropsToName)(h,p.props));const{props:s}=p;o();function o(){for(const y of g)f&&t(y),p.allErrors?i(y):(h.var(_,!0),i(y),h.if(_))}function t(y){for(const n in f)new RegExp(y).test(n)&&(0,E.checkStrictMode)(p,`property ${n} matches pattern ${y} (use allowMatchingProperties)`)}function i(y){h.forIn("key",m,n=>{h.if((0,r._)`${(0,e.usePattern)(a,y)}.test(${n})`,()=>{const c=v.includes(y);c||a.subschema({keyword:"patternProperties",schemaProp:y,dataProp:n,dataPropType:d.Type.Str},_),p.opts.unevaluated&&s!==!0?h.assign((0,r._)`${s}[${n}]`,!0):!c&&!p.allErrors&&h.if((0,r.not)(_),()=>h.break())})})}}};return at.default=b,at}var it={},Jr;function ss(){if(Jr)return it;Jr=1,Object.defineProperty(it,"__esModule",{value:!0});const e=Q(),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(E){const{gen:d,schema:b,it:a}=E;if((0,e.alwaysValidSchema)(a,b)){E.fail();return}const h=d.name("valid");E.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},h),E.failResult(h,()=>E.reset(),()=>E.error())},error:{message:"must NOT be valid"}};return it.default=r,it}var ot={},Wr;function as(){if(Wr)return ot;Wr=1,Object.defineProperty(ot,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:le().validateUnion,error:{message:"must match a schema in anyOf"}};return ot.default=r,ot}var ut={},Br;function is(){if(Br)return ut;Br=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:b})=>(0,e._)`{passingSchemas: ${b.passing}}`},code(b){const{gen:a,schema:h,parentSchema:l,it:m}=b;if(!Array.isArray(h))throw new Error("ajv implementation error");if(m.opts.discriminator&&l.discriminator)return;const $=h,p=a.let("valid",!1),P=a.let("passing",null),g=a.name("_valid");b.setParams({passing:P}),a.block(v),b.result(p,()=>b.reset(),()=>b.error(!0));function v(){$.forEach((f,_)=>{let s;(0,r.alwaysValidSchema)(m,f)?a.var(g,!0):s=b.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},g),_>0&&a.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(P,(0,e._)`[${P}, ${_}]`).else(),a.if(g,()=>{a.assign(p,!0),a.assign(P,_),s&&b.mergeEvaluated(s,e.Name)})})}}};return ut.default=d,ut}var ct={},Qr;function os(){if(Qr)return ct;Qr=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=Q(),r={keyword:"allOf",schemaType:"array",code(E){const{gen:d,schema:b,it:a}=E;if(!Array.isArray(b))throw new Error("ajv implementation error");const h=d.name("valid");b.forEach((l,m)=>{if((0,e.alwaysValidSchema)(a,l))return;const $=E.subschema({keyword:"allOf",schemaProp:m},h);E.ok(h),E.mergeEvaluated($)})}};return ct.default=r,ct}var lt={},Xr;function us(){if(Xr)return lt;Xr=1,Object.defineProperty(lt,"__esModule",{value:!0});const e=J(),r=Q(),d={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:h,parentSchema:l,it:m}=a;l.then===void 0&&l.else===void 0&&(0,r.checkStrictMode)(m,'"if" without "then" and "else" is ignored');const $=b(m,"then"),p=b(m,"else");if(!$&&!p)return;const P=h.let("valid",!0),g=h.name("_valid");if(v(),a.reset(),$&&p){const _=h.let("ifClause");a.setParams({ifClause:_}),h.if(g,f("then",_),f("else",_))}else $?h.if(g,f("then")):h.if((0,e.not)(g),f("else"));a.pass(P,()=>a.error(!0));function v(){const _=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);a.mergeEvaluated(_)}function f(_,s){return()=>{const o=a.subschema({keyword:_},g);h.assign(P,g),a.mergeValidEvaluated(o,P),s?h.assign(s,(0,e._)`${_}`):a.setParams({ifClause:_})}}}};function b(a,h){const l=a.schema[h];return l!==void 0&&!(0,r.alwaysValidSchema)(a,l)}return lt.default=d,lt}var dt={},Yr;function cs(){if(Yr)return dt;Yr=1,Object.defineProperty(dt,"__esModule",{value:!0});const e=Q(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:E,parentSchema:d,it:b}){d.if===void 0&&(0,e.checkStrictMode)(b,`"${E}" without "if" is ignored`)}};return dt.default=r,dt}var Zr;function ls(){if(Zr)return Ze;Zr=1,Object.defineProperty(Ze,"__esModule",{value:!0});const e=hn(),r=Yn(),E=pn(),d=Zn(),b=xn(),a=es(),h=ts(),l=mn(),m=rs(),$=ns(),p=ss(),P=as(),g=is(),v=os(),f=us(),_=cs();function s(o=!1){const t=[p.default,P.default,g.default,v.default,f.default,_.default,h.default,l.default,a.default,m.default,$.default];return o?t.push(r.default,d.default):t.push(e.default,E.default),t.push(b.default),t}return Ze.default=s,Ze}var ft={},ht={},xr;function ds(){if(xr)return ht;xr=1,Object.defineProperty(ht,"__esModule",{value:!0});const e=J(),E={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:d})=>(0,e.str)`must match format "${d}"`,params:({schemaCode:d})=>(0,e._)`{format: ${d}}`},code(d,b){const{gen:a,data:h,$data:l,schema:m,schemaCode:$,it:p}=d,{opts:P,errSchemaPath:g,schemaEnv:v,self:f}=p;if(!P.validateFormats)return;l?_():s();function _(){const o=a.scopeValue("formats",{ref:f.formats,code:P.code.formats}),t=a.const("fDef",(0,e._)`${o}[${$}]`),i=a.let("fType"),y=a.let("format");a.if((0,e._)`typeof ${t} == "object" && !(${t} instanceof RegExp)`,()=>a.assign(i,(0,e._)`${t}.type || "string"`).assign(y,(0,e._)`${t}.validate`),()=>a.assign(i,(0,e._)`"string"`).assign(y,t)),d.fail$data((0,e.or)(n(),c()));function n(){return P.strictSchema===!1?e.nil:(0,e._)`${$} && !${y}`}function c(){const w=v.$async?(0,e._)`(${t}.async ? await ${y}(${h}) : ${y}(${h}))`:(0,e._)`${y}(${h})`,O=(0,e._)`(typeof ${y} == "function" ? ${w} : ${y}.test(${h}))`;return(0,e._)`${y} && ${y} !== true && ${i} === ${b} && !${O}`}}function s(){const o=f.formats[m];if(!o){n();return}if(o===!0)return;const[t,i,y]=c(o);t===b&&d.pass(w());function n(){if(P.strictSchema===!1){f.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${m}" ignored in schema at path "${g}"`}}function c(O){const C=O instanceof RegExp?(0,e.regexpCode)(O):P.code.formats?(0,e._)`${P.code.formats}${(0,e.getProperty)(m)}`:void 0,M=a.scopeValue("formats",{key:m,ref:O,code:C});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${M}.validate`]:["string",O,M]}function w(){if(typeof o=="object"&&!(o instanceof RegExp)&&o.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${y}(${h})`}return typeof i=="function"?(0,e._)`${y}(${h})`:(0,e._)`${y}.test(${h})`}}}};return ht.default=E,ht}var en;function fs(){if(en)return ft;en=1,Object.defineProperty(ft,"__esModule",{value:!0});const r=[ds().default];return ft.default=r,ft}var we={},tn;function hs(){return tn||(tn=1,Object.defineProperty(we,"__esModule",{value:!0}),we.contentVocabulary=we.metadataVocabulary=void 0,we.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],we.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),we}var rn;function ps(){if(rn)return Ae;rn=1,Object.defineProperty(Ae,"__esModule",{value:!0});const e=Vn(),r=Xn(),E=ls(),d=fs(),b=hs(),a=[e.default,r.default,(0,E.default)(),d.default,b.metadataVocabulary,b.contentVocabulary];return Ae.default=a,Ae}var pt={},Oe={},nn;function ms(){if(nn)return Oe;nn=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.DiscrError=void 0;var e;return(function(r){r.Tag="tag",r.Mapping="mapping"})(e||(Oe.DiscrError=e={})),Oe}var sn;function ys(){if(sn)return pt;sn=1,Object.defineProperty(pt,"__esModule",{value:!0});const e=J(),r=ms(),E=Ut(),d=bt(),b=Q(),h={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:l,tagName:m}})=>l===r.DiscrError.Tag?`tag "${m}" must be string`:`value of tag "${m}" must be in oneOf`,params:({params:{discrError:l,tag:m,tagName:$}})=>(0,e._)`{error: ${l}, tag: ${$}, tagValue: ${m}}`},code(l){const{gen:m,data:$,schema:p,parentSchema:P,it:g}=l,{oneOf:v}=P;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=p.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(p.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const _=m.let("valid",!1),s=m.const("tag",(0,e._)`${$}${(0,e.getProperty)(f)}`);m.if((0,e._)`typeof ${s} == "string"`,()=>o(),()=>l.error(!1,{discrError:r.DiscrError.Tag,tag:s,tagName:f})),l.ok(_);function o(){const y=i();m.if(!1);for(const n in y)m.elseIf((0,e._)`${s} === ${n}`),m.assign(_,t(y[n]));m.else(),l.error(!1,{discrError:r.DiscrError.Mapping,tag:s,tagName:f}),m.endIf()}function t(y){const n=m.name("valid"),c=l.subschema({keyword:"oneOf",schemaProp:y},n);return l.mergeEvaluated(c,e.Name),n}function i(){var y;const n={},c=O(P);let w=!0;for(let V=0;V<v.length;V++){let L=v[V];if(L?.$ref&&!(0,b.schemaHasRulesButRef)(L,g.self.RULES)){const B=L.$ref;if(L=E.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,B),L instanceof E.SchemaEnv&&(L=L.schema),L===void 0)throw new d.default(g.opts.uriResolver,g.baseId,B)}const K=(y=L?.properties)===null||y===void 0?void 0:y[f];if(typeof K!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);w=w&&(c||O(L)),C(K,V)}if(!w)throw new Error(`discriminator: "${f}" must be required`);return n;function O({required:V}){return Array.isArray(V)&&V.includes(f)}function C(V,L){if(V.const)M(V.const,L);else if(V.enum)for(const K of V.enum)M(K,L);else throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function M(V,L){if(typeof V!="string"||V in n)throw new Error(`discriminator: "${f}" values must be unique strings`);n[V]=L}}}};return pt.default=h,pt}const gs="http://json-schema.org/draft-07/schema#",vs="http://json-schema.org/draft-07/schema#",_s="Core schema meta-schema",$s={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ws=["object","boolean"],bs={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Es={$schema:gs,$id:vs,title:_s,definitions:$s,type:ws,properties:bs,default:!0};var an;function Ss(){return an||(an=1,(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=r.Ajv=void 0;const E=Dn(),d=ps(),b=ys(),a=Es,h=["/properties"],l="http://json-schema.org/draft-07/schema";class m extends E.default{_addVocabularies(){super._addVocabularies(),d.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(b.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(a,h):a;this.addMetaSchema(f,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.Ajv=m,e.exports=r=m,e.exports.Ajv=m,Object.defineProperty(r,"__esModule",{value:!0}),r.default=m;var $=wt();Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return $.KeywordCxt}});var p=J();Object.defineProperty(r,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var P=Vt();Object.defineProperty(r,"ValidationError",{enumerable:!0,get:function(){return P.default}});var g=bt();Object.defineProperty(r,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(qe,qe.exports)),qe.exports}var Ps=Ss();const js=un(Ps);var mt={exports:{}},on;function Rs(){return on||(on=1,(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});const E={},d={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:p=>{var P;const g=(P=p?.max)!==null&&P!==void 0?P:2;return()=>Math.floor(Math.random()*g)},seq:p=>{var P;const g=(P=p?.name)!==null&&P!==void 0?P:"";return E[g]||(E[g]=0),()=>E[g]++}},b=Object.assign(a,{DEFAULTS:d});function a(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(p,P,g){if(!g.opts.useDefaults||g.compositeRule)return()=>!0;const v={};for(const _ in p)v[_]=h(p[_]);const f=g.opts.useDefaults==="empty";return _=>{for(const s in p)(_[s]===void 0||f&&(_[s]===null||_[s]===""))&&(_[s]=v[s]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function h(p){return typeof p=="object"?l(p):m(p)}function l({func:p,args:P}){const g=d[p];return $(p,g),g(P)}function m(p=""){const P=d[p];return $(p,P),P()}function $(p,P){if(!P)throw new Error(`invalid "dynamicDefaults" keyword property value: ${p}`)}r.default=b,e.exports=b})(mt,mt.exports)),mt.exports}var Ns=Rs();const yn=un(Ns),Os={$id:"urn:jsonschema:credentials",additionalProperties:{properties:{accessKeyId:{default:null,nullable:!0,type:"string"},Bucket:{default:null,nullable:!0,type:"string"},endpoint:{default:null,nullable:!0,type:"string"},region:{default:null,nullable:!0,type:"string"},secretAccessKey:{default:null,nullable:!0,type:"string"}},type:"object"},type:"object"},ks={$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},qs={$id:"urn:jsonschema:feed",additionalProperties:!1,properties:{feed_url:{type:"string"},home_page_url:{type:"string"},items:{default:[],items:{additionalProperties:!1,dynamicDefaults:{date_published:"datetime",id:"uuid"},properties:{attachments:{default:[],items:{additionalProperties:!1,properties:{mime_type:{default:"",type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},content_html:{default:"",type:"string"},date_published:{type:"string"},id:{type:"string"},title:{default:"",type:"string"},url:{type:"string"}},type:"object"},type:"array"},title:{default:"",type:"string"},version:{default:"https://jsonfeed.org/version/1",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],type:"string"}},type:"object"},Is={$id:"urn:jsonschema:fonts",items:{type:"string"},type:"array"},Ts={$id:"urn:jsonschema:importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},description:"The Imports field",type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},description:"The Scopes field",type:"object"}},title:"JSON schema for Import Maps files",type:"object"},Cs={$id:"urn:jsonschema:log",additionalProperties:!1,properties:{messages:{default:[],items:{additionalProperties:!1,properties:{content:{default:"[]",items:{additionalProperties:!1,properties:{text:{default:"",type:"string"},type:{default:"text",type:"string"}},type:"object"},type:"array"},role:{default:"user",type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"},Ds={$id:"urn:jsonschema:page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{changefreq:{default:null,enum:["always","hourly","daily","weekly","monthly","yearly","never",null],nullable:!0,type:"string"},children:{default:[],items:{type:"object"},type:"array"},class:{default:["prose","max-w-none"],description:"Классы",items:{type:"string"},type:"array"},description:{default:null,nullable:!0,type:"string"},enabled:{default:!0,type:"boolean"},flat:{default:!0,type:"boolean"},header:{type:"string"},icon:{type:"string"},id:{type:"string"},images:{default:[],items:{properties:{alt:{type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},keywords:{default:[],items:{type:"string"},type:"array"},lastmod:{default:null,nullable:!0,type:"string"},loc:{default:null,nullable:!0,type:"string"},name:{default:null,nullable:!0,type:"string"},priority:{default:null,maximum:1,minimum:0,nullable:!0,type:"number"},type:{default:null,enum:["article","book","profile","website","music.song","music.album","music.playlist","music.radio_station","video.movie","video.episode","video.tv_show","video.other",null],nullable:!0,type:"string"}},type:"object"},Et=!0,As=()=>{const e=URL.createObjectURL(new Blob),r=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),r};yn.DEFAULTS.uuid=()=>As;const Ms={get(){return this.children.filter(({enabled:e})=>e)}},Vs={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},Us={get(){return this.$siblings[this.$index+1]}},Fs={get(){return this.$siblings[this.$index-1]}},zs={get(){return this.siblings.filter(({enabled:e})=>e)}},Pe=new js({code:{esm:!0},coerceTypes:!0,keywords:[yn()],removeAdditional:!0,schemas:[Os,ks,Ds,Ts,qs,Is,Cs],useDefaults:!0}),Ks=ke({}),Ls=ke([]),ta=e=>Object.fromEntries(e.map(r=>[r.toLowerCase().replaceAll(" ","_"),r])),Hs={get(){return this.icon&&`i-${this.icon}`}},Gs=ke({}),Mt=ke([]),Js={get(){const e=this.branch.slice(1);return e.some(({name:r})=>!r)?void 0:e.map(({name:r})=>r).join("/").replaceAll(" ","_")}},Ws={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},Bs={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};Pe.getSchema("urn:jsonschema:credentials");const Qs=Pe.getSchema("urn:jsonschema:data"),Xs=Pe.getSchema("urn:jsonschema:feed"),Ys=Pe.getSchema("urn:jsonschema:fonts"),Zs=Pe.getSchema("urn:jsonschema:importmap");Pe.getSchema("urn:jsonschema:log");const{nodes:xs,nodesMap:ra}=_n(Mt);vt(Ks,async e=>{await Xs?.(e)},{immediate:Et});vt(Ls,async e=>{await Ys?.(e)},{immediate:Et});vt(Gs,async e=>{await Zs?.(e)},{immediate:Et});vt(xs,async e=>{await Qs?.(e)?e.forEach(r=>{Object.defineProperties(r,{$children:Ms,$index:Vs,$next:Us,$prev:Fs,$siblings:zs,i:Hs,path:Js,title:Ws,to:Bs})}):(Mt.length=0,Mt.push({}))},{immediate:Et});export{ra as a,ta as b,Ls as f,un as g,Mt as n,xs as p,As as u};
|
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-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-ILEeH0w3.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/unocss-B_Rh5TB7.js">
|
|
11
|
-
<link rel="modulepreload" crossorigin href="./assets/shared-
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/shared-BtXX9D0Q.js">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="./assets/index-vGiKZPT9.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/package.json
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuebro/runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.69",
|
|
4
|
+
"description": "@vuebro/runtime",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"vuebro",
|
|
7
|
+
"runtime"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/vuebro/runtime#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/vuebro/runtime/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/vuebro/runtime.git"
|
|
16
|
+
},
|
|
17
|
+
"license": "AGPL-3.0-or-later",
|
|
18
|
+
"author": "jbruwes",
|
|
4
19
|
"type": "module",
|
|
5
20
|
"scripts": {
|
|
21
|
+
"build": "vue-tsc && vite build",
|
|
6
22
|
"lint": "eslint .",
|
|
7
|
-
"lint:fix": "eslint . --fix"
|
|
8
|
-
"build": "vue-tsc && vite build"
|
|
23
|
+
"lint:fix": "eslint . --fix"
|
|
9
24
|
},
|
|
10
25
|
"dependencies": {
|
|
11
26
|
"@iconify/vue": "^5.0.0",
|
|
@@ -22,44 +37,38 @@
|
|
|
22
37
|
"@vuebro/shared": "^1.1.32",
|
|
23
38
|
"@vueuse/core": "^13.9.0",
|
|
24
39
|
"consola": "^3.4.2",
|
|
25
|
-
"globals": "^16.4.0",
|
|
26
40
|
"vue": "^3.5.22",
|
|
27
41
|
"vue-router": "^4.6.3"
|
|
28
42
|
},
|
|
29
43
|
"devDependencies": {
|
|
30
|
-
"@eslint/js": "^9.
|
|
44
|
+
"@eslint/js": "^9.38.0",
|
|
45
|
+
"@eslint/json": "^0.13.2",
|
|
46
|
+
"@eslint/markdown": "^7.4.0",
|
|
47
|
+
"@prettier/plugin-pug": "^3.4.2",
|
|
31
48
|
"@tsconfig/strictest": "^2.0.6",
|
|
32
|
-
"@types/node": "^24.
|
|
49
|
+
"@types/node": "^24.8.1",
|
|
33
50
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
51
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
52
|
+
"@vue/language-plugin-pug": "^3.1.1",
|
|
34
53
|
"@vue/tsconfig": "^0.8.1",
|
|
35
|
-
"eslint": "^9.37.0",
|
|
36
54
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
37
55
|
"eslint-config-prettier": "^10.1.8",
|
|
38
56
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
57
|
+
"eslint-plugin-de-morgan": "^2.0.0",
|
|
58
|
+
"eslint-plugin-depend": "^1.3.1",
|
|
39
59
|
"eslint-plugin-import-x": "^4.16.1",
|
|
60
|
+
"eslint-plugin-jsdoc": "^61.1.4",
|
|
61
|
+
"eslint-plugin-package-json": "^0.57.0",
|
|
40
62
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
41
63
|
"eslint-plugin-prettier": "^5.5.4",
|
|
42
|
-
"eslint-plugin-
|
|
64
|
+
"eslint-plugin-regexp": "^2.10.0",
|
|
65
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
43
66
|
"jiti": "^2.6.1",
|
|
44
|
-
"
|
|
67
|
+
"prettier-plugin-packagejson": "^2.5.19",
|
|
68
|
+
"prettier-plugin-tailwindcss": "^0.7.1",
|
|
69
|
+
"tsc-alias": "^1.8.16",
|
|
45
70
|
"vite": "^7.1.10",
|
|
46
71
|
"vite-plugin-static-copy": "^3.1.4",
|
|
47
|
-
"vue-eslint-parser": "^10.2.0",
|
|
48
72
|
"vue-tsc": "^3.1.1"
|
|
49
|
-
}
|
|
50
|
-
"repository": {
|
|
51
|
-
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/vuebro/runtime.git"
|
|
53
|
-
},
|
|
54
|
-
"keywords": [
|
|
55
|
-
"vuebro",
|
|
56
|
-
"runtime"
|
|
57
|
-
],
|
|
58
|
-
"author": "jbruwes",
|
|
59
|
-
"license": "AGPL",
|
|
60
|
-
"bugs": {
|
|
61
|
-
"url": "https://github.com/vuebro/runtime/issues"
|
|
62
|
-
},
|
|
63
|
-
"homepage": "https://github.com/vuebro/runtime#readme",
|
|
64
|
-
"description": "@vuebro/runtime"
|
|
73
|
+
}
|
|
65
74
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-B0S8ELO6.js","./shared-D0i9xbrj.js","./unocss-B_Rh5TB7.js","./RootView-CUp_urPg.js","./NotFoundView-kX-psOb7.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,c as Tn}from"./shared-D0i9xbrj.js";import{useRoute as Fn,createRouter as jn,createWebHistory as In}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)}})();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 On={run:e=>e()},An=()=>On,wt=typeof console.createTask<"u"?console.createTask:An;function Pn(e,t){const n=t.shift(),s=wt(n);return e.reduce((o,r)=>o.then(()=>s.run(()=>r(...t))),Promise.resolve())}function Mn(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 Ln{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(Pn,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Mn,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 En(){return new Ln}const Hn=new Set(["link","style","script","noscript"]),Dn=new Set(["title","titleTemplate","script","style","noscript"]),Me=new Set(["base","meta","link","style","script","noscript"]),Rn=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),zn=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Nn=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Vn=new Set(["templateParams","htmlAttrs","bodyAttrs"]),xe=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Un=["name","property","http-equiv"],Wn=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(zn.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 Un)if(t[s]!==void 0){const o=t[s],r=o.includes(":"),i=Wn.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(Dn.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 qn(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]=qn(n,s);return}if(Nn.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 Bn(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&&Hn.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 Gn(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(Bn(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},Kn={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}},Qn=/@import/,L=e=>e===""||e===!0;function Jn(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Kn[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&&Qn.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 Zn(e={}){const t=En();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:Gn(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=Jn(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||(Vn.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(Rn.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 Xn(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 Zn({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Yn(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"])},eo={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 to(e){return eo[e]||$(e)}function no(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=to(o),f=r===null?"_null":typeof r=="object"?no(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 oo={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)}}},so=(e,t)=>D(t)?K(t):t,Tt="usehead";function ro(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):io(n,e,t)}function io(e,t,n={}){const s=O(!1);let o;return ln(()=>{const i=s.value?{}:J(t,so);o?o.patch(i):o=e.push(i,n)}),ht()&&(un(()=>{o.dispose()}),fn(()=>{s.value=!0}),pn(()=>{s.value=!1})),o}function co(e={},t={}){(t.head||Ft()).use(oo);const{title:s,titleTemplate:o,...r}=e;return jt({title:s,titleTemplate:o,_flatMeta:r},t)}function ao(e={}){const t=Xn({domOptions:{render:Yn(()=>Ct(t),n=>setTimeout(n,0))},...e});return t.install=ro(t),t}function cr(e){return dn()?(hn(e),!0):!1}function lo(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 ar=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const lr=e=>e!=null,uo=Object.prototype.toString,ur=e=>uo.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 fo(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 po(...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 fr(e){return Array.isArray(e)?e:[e]}function ho(e){return ht()}function pr(e,t=200,n={}){return It(fo(t,n),e)}function dr(e,t=200,n=!1,s=!0,o=!1){return It(po(t,n,s,o),e)}function hr(e,t=!0,n){ho()?gt(e,n):t?e():_e(e)}function gr(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 go(e){return(...t)=>t.reduce((n,s)=>we(n,s,""),{})}const mo=go();function yo(e){return Object.prototype.toString.call(e)==="[object Object]"}function wo(e){return!(!yo(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=mo({...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&&wo(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 bo(e={}){return new x(e)}class vo{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 Co(e={}){return bo({reporters:e.reporters||[new vo({})],prompt(n,s={}){return s.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const $t=Co(),ko=Object.freeze({left:0,top:0,width:16,height:16}),Y=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ot=Object.freeze({...ko,...Y}),_o=Object.freeze({...Ot,body:"",hidden:!1}),xo=Object.freeze({width:null,height:null}),At=Object.freeze({...xo,...Y});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 Ue(e,t){const n=So(e,t);for(const s in _o)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 To(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 Fo(e,t){if(e.icons[t])return We(e,t,[]);const n=To(e,[t])[t];return n?We(e,t,n):null}const jo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Io=/^-?[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(jo);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=Io.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 $o(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 Oo(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Ao(e,t,n){const s=$o(e);return Oo(s.defs,t+s.content+n)}const Se=e=>e==="unset"||e==="undefined"||e==="none";function Po(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=Ao(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 Mo(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" ')),Mo(t)}function Lo(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 Eo=/\swidth\s*=\s*["']([\w.]+)["']/,Ho=/\sheight\s*=\s*["']([\w.]+)["']/,ae=/<svg\s+/;function Do(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",Eo),o("height",Ho)]}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]=Do(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 Ro(){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 zo(){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=Ro(),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 No(){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=zo()(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 Vo=No();const Mt=kn(Vo),Uo=Mt("@iconify-loader:custom");async function Qe(e,t,n,s){let o;Uo(`${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?Lo(o):o,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),o)}}const Wo=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=Fo(e,i),o){Wo(`${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}=Po(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 qo(){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"],Bo=3;function Go(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=qo(),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=Bo;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 Ko(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 Qo=Go(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?Dt(t,n):n?await Ko(n):Et}),Xe={presets:[en({preflights:{reset:!0}}),tn(),Qo({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 Jo(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=Jo(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 Zo(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 Xo(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=Zo(e);for(const o in s){const r=s[o];r&&(t(o,Xo(e,o,r)),n.push(o))}return n}const Yo={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,Yo))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 es(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]=es(e,t))}function Ut(e,t){return Vt(t)?Nt(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function ts(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 ns(e,t){const n=N(e,!0,z);if(!n)return!1;const s=P(n.provider,n.prefix);return t?ts(s,n.name,t):(s.missing.add(n.name),!0)}function os(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)=>{ns(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 ss(e){return!!oe(e)}function rs(e){const t=oe(e);return t&&{...M,...t}}const qt=Object.freeze({width:null,height:null}),Bt=Object.freeze({...qt,...te}),is=/(-?[0-9.]*[0-9]+[0-9.]*)/g,cs=/^-?[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(is);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=cs.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 as(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 ls(e,t){return e?"<defs>"+e+"</defs>"+t:t}function us(e,t,n){const s=as(e);return ls(s.defs,t+s.content+n)}const fs=e=>e==="unset"||e==="undefined"||e==="none";function ps(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=us(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)=>{fs(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 ds=/\sid="(\S+)"/g,hs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let gs=0;function ms(e,t=hs){const n=[];let s;for(;s=ds.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+(gs++).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 ys(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 ws(e,t){const n=Te(t);return n===null?!1:(Fe[e]=n,!0)}function je(e){return Fe[e]}const bs=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let nt=bs();function vs(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 Cs(e){return e===404}const ks=(e,t,n)=>{const s=[],o=vs(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 _s(e){if(typeof e=="string"){const t=je(e);if(t)return t.path}return"/"}const xs=(e,t,n)=>{if(!nt){n("abort",424);return}let s=_s(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(Cs(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)})},Ss={prepare:ks,send:xs};function Ts(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 Fs(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 js=0;function Is(e,t,n){const s=js++,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 $s(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 Os={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function As(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={...Os,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function o(c,f,a){const u=As(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 Ps(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 Ms(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=Ps(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 Ls(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Fs(e)}))}function Es(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(),Ls(e)}function rt(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Hs(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}=Es(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=>{Ms(n,u,d=>{H(e,u.icons,d)})})}))}const Qt=(e,t)=>{const n=$s(e,!0,Wt()),s=Ts(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&&Hs(f,a)}),t?Is(t,s,r):st},Ds=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 Rs(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 zs=/[\s,]+/;function Ns(e,t){t.split(zs).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Vs(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 Us(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 Ws(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function qs(e){return"data:image/svg+xml,"+Ws(e)}function Bs(e){return'url("'+qs(e)+'")'}const it={...Bt,inline:!1},Gs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ks={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=Rs(it,t),s={...Gs},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"&&Ns(n,g);break;case"color":r.color=g;break;case"rotate":typeof g=="string"?n[h]=Vs(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=ps(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=ms(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=Us(u,{...a,width:d+"",height:p+""});return s.style={...r,"--svg":Bs(m),width:lt(a.width),height:lt(a.height),...Ks,...l?ke:Jt,...c},$e("span",s)};Wt(!0);ys("",Ss);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"||!os(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;ws(n,o)||console.error(s)}catch{console.error(s)}}}}const Qs={...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(Qs,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 Js=yt({__name:"App",setup(e){const t=Fn(),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=ss(i.icon)?rs(i.icon):await Ds(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"}]}),co({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:Zs}=new URL(document.baseURI),ft=O(!0),ne=new Map,Xs=()=>{let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),reject:t,resolve:e}},A=jn({history:In(Zs),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]),mr=({id:e=_n()})=>(ne.set(e,Xs()),vn(async()=>$n(`./pages/${e}.vue`,{scriptOptions:{inlineTemplate:!0}}))),yr=({id:e}={})=>{e&&ne.get(e)?.resolve(void 0)},Ys=({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(Js),er={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(ao());const tr=(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:er}),o!==void 0){const c=s?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");A.addRoute({...c&&s?{alias:c}:{undefined:void 0},children:[{component:()=>U(()=>import("./PageView-B0S8ELO6.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:n,path:""}],component:()=>U(()=>import("./RootView-CUp_urPg.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:o.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),A.addRoute({component:()=>U(()=>import("./NotFoundView-kX-psOb7.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({customFetch:Tn,fonts:Sn(Pe)})),await rn({defaults:Xe,ready:async t=>{const{toggleObserver:n}=t;return Ys(t),await tr,G.provide("pages",lo(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.67");export{X as a,cr as b,hr as c,ur as d,pr as e,dt as f,ft as g,$t as h,ar as i,jt as j,mr as m,lr as n,ne as p,yr as r,pt as s,fr as t,dr as u,gr as w};
|
package/eslint.config.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ConfigWithExtendsArray } from "@eslint/config-helpers";
|
|
2
|
-
|
|
3
|
-
import eslint from "@eslint/js";
|
|
4
|
-
import gitignore from "eslint-config-flat-gitignore";
|
|
5
|
-
import { flatConfigs } from "eslint-plugin-import-x";
|
|
6
|
-
import perfectionist from "eslint-plugin-perfectionist";
|
|
7
|
-
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
8
|
-
import pluginVue from "eslint-plugin-vue";
|
|
9
|
-
import { defineConfig } from "eslint/config";
|
|
10
|
-
import globals from "globals";
|
|
11
|
-
import { configs, parser } from "typescript-eslint";
|
|
12
|
-
import vueParser from "vue-eslint-parser";
|
|
13
|
-
|
|
14
|
-
export default defineConfig(
|
|
15
|
-
gitignore(),
|
|
16
|
-
{
|
|
17
|
-
languageOptions: {
|
|
18
|
-
globals: globals.browser,
|
|
19
|
-
parser: vueParser,
|
|
20
|
-
parserOptions: {
|
|
21
|
-
extraFileExtensions: [".vue"],
|
|
22
|
-
parser,
|
|
23
|
-
projectService: true,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
eslint.configs.recommended,
|
|
28
|
-
flatConfigs.recommended as ConfigWithExtendsArray,
|
|
29
|
-
flatConfigs.typescript as ConfigWithExtendsArray,
|
|
30
|
-
configs.strictTypeChecked,
|
|
31
|
-
configs.stylisticTypeChecked,
|
|
32
|
-
pluginVue.configs["flat/recommended"],
|
|
33
|
-
perfectionist.configs["recommended-natural"],
|
|
34
|
-
eslintPluginPrettierRecommended,
|
|
35
|
-
);
|