@vuebro/runtime 1.2.13 → 1.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuebro/runtime",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.17",
|
|
4
4
|
"description": "Vue.js-based runtime for VueBro applications with dynamic loading, SEO optimization, and intersection observer tracking.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@unhead/vue": "^2.0.19",
|
|
39
39
|
"@unocss/runtime": "^66.5.6",
|
|
40
40
|
"@vuebro/loader-sfc": "^2.3.28",
|
|
41
|
-
"@vuebro/shared": "^1.2.
|
|
41
|
+
"@vuebro/shared": "^1.2.6",
|
|
42
42
|
"@vueuse/components": "^14.0.0",
|
|
43
43
|
"@vueuse/core": "^14.0.0",
|
|
44
44
|
"consola": "^3.4.2",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"vue-router": "^4.6.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/node": "^24.10.
|
|
52
|
-
"@vuebro/configs": "^1.1.
|
|
51
|
+
"@types/node": "^24.10.1",
|
|
52
|
+
"@vuebro/configs": "^1.1.79",
|
|
53
53
|
"eslint": "^9.39.1",
|
|
54
54
|
"unocss": "^66.5.6",
|
|
55
55
|
"vite": "^7.2.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{toValue as Qt,isRef as Jt,hasInjectionContext as Zt,inject as Xt,ref as j,watchEffect as it,getCurrentInstance as Yt,onBeforeUnmount as ct,onDeactivated as en,onActivated as tn,defineComponent as E,shallowRef as at,onMounted as nn,watch as se,onUnmounted as lt,h as $e,nextTick as on,computed as S,resolveComponent as sn,createBlock as z,openBlock as A,withCtx as Ce,resolveDynamicComponent as ke,unref as I,defineAsyncComponent as rn,createElementBlock as Z,Fragment as ut,createVNode as cn,createElementVNode as L,renderList as an,withDirectives as ln,normalizeClass as ft,Suspense as un,createCommentVNode as fn,createApp as dn}from"vue";import{d as pn,w as hn,_ as mn,p as gn,a as yn,b as wn,c as bn,e as vn,i as Cn,o as kn}from"./unocss-GGiNT3_V.js";import{g as xn,k as re,f as dt,n as O,u as _n,a as je,b as Sn,c as pt,t as In,d as Fn,e as Tn}from"./shared-BCoiXgLQ.js";import{useRoute as $n,createRouter as jn,createWebHistory as An}from"vue-router";import On 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 pe(e,t={},n){for(const s in e){const o=e[s],r=n?`${n}:${s}`:s;typeof o=="object"&&o!==null?pe(o,t,r):typeof o=="function"&&(t[r]=o)}return t}const Mn={run:e=>e()},En=()=>Mn,ht=typeof console.createTask<"u"?console.createTask:En;function Pn(e,t){const n=t.shift(),s=ht(n);return e.reduce((o,r)=>o.then(()=>s.run(()=>r(...t))),Promise.resolve())}function Ln(e,t){const n=t.shift(),s=ht(n);return Promise.all(e.map(o=>s.run(()=>o(...t))))}function ce(e,t){for(const n of[...e])n(t)}class Hn{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=pe(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=pe(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(Ln,t,...n)}callHookWith(t,n,...s){const o=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&ce(this._before,o);const r=t(n in this._hooks?[...this._hooks[n]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&ce(this._after,o)}):(this._after&&o&&ce(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 Dn(){return new Hn}const Nn=new Set(["link","style","script","noscript"]),Rn=new Set(["title","titleTemplate","script","style","noscript"]),Ae=new Set(["base","meta","link","style","script","noscript"]),zn=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Vn=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Un=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),qn=new Set(["templateParams","htmlAttrs","bodyAttrs"]),xe=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Wn=["name","property","http-equiv"],Bn=new Set(["viewport","description","keywords","robots"]);function mt(e){const t=e.split(":");return t.length?xe.has(t[1]):!1}function he(e){const{props:t,tag:n}=e;if(Vn.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 Wn)if(t[s]!==void 0){const o=t[s],r=o.includes(":"),i=Bn.has(o),p=!(r||i)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${p}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Rn.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function Oe(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 X(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=>X(r,t));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=X(o[i],t,i);return r}return o}function Gn(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(p=>p.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 gt(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]=Gn(n,s);return}if(Un.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 Kn(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=gt({tag:e,props:{}},n);return s.key&&Nn.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 Qn(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=X(e,n),Object.entries(e||{}).forEach(([o,r])=>{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(Kn(o,i))}),s.flat()}const Me=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ee={base:-10,title:10},Jn={critical:-8,high:-1,low:2},Pe={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},Zn=/@import/,H=e=>e===""||e===!0;function Xn(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Jn[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Pe;if(t.tag in Ee)n=Ee[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=Pe.meta[r])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?H(t.props.async)?n=o.script.async:t.props.src&&!H(t.props.defer)&&!H(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=o.script.sync:H(t.props.defer)&&t.props.src&&!H(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&Zn.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+s}function Le(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 Yn(e={}){const t=Dn();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=>Le(i,c),push(c,p){const a={...p||{}};delete a.head;const l=a._index??i._entryCount++,f={_i:l,input:c,options:a},d={_poll(u=!1){i.dirty=!0,!u&&r.add(l),t.callHook("entries:updated",i)},dispose(){s.delete(l)&&i.invalidate()},patch(u){(!a.mode||a.mode==="server"&&n||a.mode==="client"&&!n)&&(f.input=u,s.set(l,f),d._poll())}};return d.patch(c),d},async resolveTags(){const c={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",c);r.size;){const d=r.values().next().value;r.delete(d);const u=s.get(d);if(u){const g={tags:Qn(u.input,e.propResolvers||[]).map(h=>Object.assign(h,u.options)),entry:u};await t.callHook("entries:normalize",g),u._tags=g.tags.map((h,m)=>(h._w=Xn(i,h),h._p=(u._i<<10)+m,h._d=he(h),h))}}let p=!1;c.entries.flatMap(d=>(d._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(Me).reduce((d,u)=>{const g=String(u._d||u._p);if(!d.has(g))return d.set(g,u);const h=d.get(g);if((u?.tagDuplicateStrategy||(qn.has(u.tag)?"merge":null)||(u.key&&u.key===h.key?"merge":null))==="merge"){const y={...h.props};Object.entries(u.props).forEach(([w,v])=>y[w]=w==="style"?new Map([...h.props.style||new Map,...v]):w==="class"?new Set([...h.props.class||new Set,...v]):v),d.set(g,{...u,props:y})}else u._p>>10===h._p>>10&&u.tag==="meta"&&mt(g)?(d.set(g,Object.assign([...Array.isArray(h)?h:[h],u],u)),p=!0):(u._w===h._w?u._p>h._p:u?._w<h?._w)&&d.set(g,u);return d},c.tagMap);const a=c.tagMap.get("title"),l=c.tagMap.get("titleTemplate");if(i._title=a?.textContent,l){const d=l?.textContent;if(i._titleTemplate=d,d){let u=typeof d=="function"?d(a?.textContent):d;typeof u=="string"&&!i.plugins.has("template-params")&&(u=u.replace("%s",a?.textContent||"")),a?u===null?c.tagMap.delete("title"):c.tagMap.set("title",{...a,textContent:u}):(l.tag="title",l.textContent=u)}}c.tags=Array.from(c.tagMap.values()),p&&(c.tags=c.tags.flat().sort(Me)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const f=[];for(const d of c.tags){const{innerHTML:u,tag:g,props:h}=d;if(zn.has(g)&&!(Object.keys(h).length===0&&!d.innerHTML&&!d.textContent)&&!(g==="meta"&&!h.content&&!h["http-equiv"]&&!h.charset)){if(g==="script"&&u){if(h.type?.endsWith("json")){const m=typeof u=="string"?u:JSON.stringify(u);d.innerHTML=m.replace(/</g,"\\u003C")}else typeof u=="string"&&(d.innerHTML=u.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));d._d=he(d)}f.push(d)}}return f},invalidate(){for(const c of s.values())r.add(c._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(c=>Le(i,c)),i.hooks.callHook("init",i),e.init?.forEach(c=>c&&i.push(c)),i}async function yt(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const r=new Map,i=new Promise(u=>{e.resolveTags().then(g=>{u(g.map(h=>{const m=r.get(h._d)||0,y={tag:h,id:(m?`${h._d}:${m}`:h._d)||Oe(h),shouldRender:!0};return h._d&&mt(h._d)&&r.set(h._d,m+1),y}))})});let c=e._dom;if(!c){c={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const u of["body","head"]){const g=n[u]?.children;for(const h of g){const m=h.tagName.toLowerCase();if(!Ae.has(m))continue;const y=gt({tag:m,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=he(y)||Oe(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 p(u,g,h){const m=`${u}:${g}`;c.sideEffects[m]=h,delete c.pendingSideEffects[m]}function a({id:u,$el:g,tag:h}){const m=h.tag.endsWith("Attrs");c.elMap.set(u,g),m||(h.textContent&&h.textContent!==g.textContent&&(g.textContent=h.textContent),h.innerHTML&&h.innerHTML!==g.innerHTML&&(g.innerHTML=h.innerHTML),p(u,"el",()=>{g?.remove(),c.elMap.delete(u)}));for(const y in h.props){if(!Object.prototype.hasOwnProperty.call(h.props,y))continue;const w=h.props[y];if(y.startsWith("on")&&typeof w=="function"){const b=g?.dataset;if(b&&b[`${y}fired`]){const x=y.slice(0,-5);w.call(g,new Event(x.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:g).addEventListener(y.substring(2),w.bind(g)),g.setAttribute(`data-${y}`,""));continue}const v=`attr:${y}`;if(y==="class"){if(!w)continue;for(const b of w)m&&p(u,`${v}:${b}`,()=>g.classList.remove(b)),!g.classList.contains(b)&&g.classList.add(b)}else if(y==="style"){if(!w)continue;for(const[b,x]of w)p(u,`${v}:${b}`,()=>{g.style.removeProperty(b)}),g.style.setProperty(b,x)}else w!==!1&&w!==null&&(g.getAttribute(y)!==w&&g.setAttribute(y,w===!0?"":String(w)),m&&p(u,v,()=>g.removeAttribute(y)))}}const l=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const u of d){const{tag:g,shouldRender:h,id:m}=u;if(h){if(g.tag==="title"){n.title=g.textContent,p("title","",()=>n.title=c.title);continue}u.$el=u.$el||c.elMap.get(m),u.$el?a(u):Ae.has(g.tag)&&l.push(u)}}for(const u of l){const g=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),a(u),f[g]=f[g]||n.createDocumentFragment(),f[g].appendChild(u.$el)}for(const u of d)await e.hooks.callHook("dom:renderTag",u,n,p);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const u in c.pendingSideEffects)c.pendingSideEffects[u]();e._dom=c,await e.hooks.callHook("dom:rendered",{renders:d}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function eo(e={}){const t=e.domOptions?.render||yt;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Yn({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function to(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}const V={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"])},no={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"},wt={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:V.META.has(t.slice(0,n))||V.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function bt(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function me(e){return Array.isArray(e)?e.map(me):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[$(t),me(n)]))}function vt(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 p=typeof c=="object"?vt(c,t):typeof c=="number"?c.toString():typeof c=="string"&&o?`${o}${c.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:c;return`${i}${s}${p}`}).join(n)}function He(e,t){const n=bt(t),s=$(e),o=Ct(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 Y(r||{}).sort((i,c)=>(i[o]?.length||0)-(c[o]?.length||0))}function Ct(e){if(wt[e]?.metaKey==="http-equiv"||V.HTTP_EQUIV.has(e))return"http-equiv";const t=$(e),n=t.indexOf(":");return n===-1?"name":V.OG.has(t.slice(0,n))?"property":"name"}function oo(e){return no[e]||$(e)}function so(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:vt(me(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:s})=>n===null?"":typeof n=="boolean"?s:void 0,...wt[t]?.unpack})}function Y(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=[],p=[];for(const[a,l]of Object.entries(i)){const f=`${o}${a==="url"?"":`:${a}`}`,d=Y({[f]:l});(a==="url"?c:p).push(...d)}t.push(...c,...p)}else t.push(...typeof i=="string"?Y({[o]:i}):He(o,i));continue}if(typeof r=="object"&&r)if(V.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",c=o.replace(/^(og|twitter)/,"").toLowerCase(),p=i==="twitter"?"name":"property";r.url&&t.push({[p]:`${i}:${c}`,content:r.url}),r.secureUrl&&t.push({[p]:`${i}:${c}:secure_url`,content:r.secureUrl});for(const[a,l]of Object.entries(r))a!=="url"&&a!=="secureUrl"&&t.push({[p]:`${i}:${c}:${a}`,content:l})}else xe.has($(o))?t.push(...He(o,r)):n[o]=bt(r);else n[o]=r}const s=Object.entries(n).map(([o,r])=>{if(o==="charset")return{charset:r===null?"_null":r};const i=Ct(o),c=oo(o),p=r===null?"_null":typeof r=="object"?so(r,o):typeof r=="number"?r.toString():r;return i==="http-equiv"?{"http-equiv":c,content:p}:{[i]:c,content:p}});return[...t,...s].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const ro={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(Y(n.props).map(s=>({...n,tag:"meta",props:s}))),!1)).filter(Boolean).concat(...t)}}},io=(e,t)=>Jt(t)?Qt(t):t,kt="usehead";function co(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(kt,e)}}.install}function xt(){if(Zt()){const e=Xt(kt);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 _e(e,t={}){const n=t.head||xt();return n.ssr?n.push(e||{},t):ao(n,e,t)}function ao(e,t,n={}){const s=j(!1);let o;return it(()=>{const i=s.value?{}:X(t,io);o?o.patch(i):o=e.push(i,n)}),Yt()&&(ct(()=>{o.dispose()}),en(()=>{s.value=!0}),tn(()=>{s.value=!1})),o}function lo(e={},t={}){(t.head||xt()).use(ro);const{title:s,titleTemplate:o,...r}=e;return _e({title:s,titleTemplate:o,_flatMeta:r},t)}function uo(e={}){const t=eo({domOptions:{render:to(()=>yt(t),n=>setTimeout(n,0))},...e});return t.install=co(t),t}const fo=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_t=Object.freeze({...fo,...ee}),po=Object.freeze({..._t,body:"",hidden:!1}),ho=Object.freeze({width:null,height:null}),St=Object.freeze({...ho,...ee});function mo(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 De(e,t){const n=mo(e,t);for(const s in po)s in ee?s in e&&!(s in n)&&(n[s]=ee[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function go(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,p=c&&r(c);p&&(o[i]=[c].concat(p))}return o[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Ne(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=De(s[c]||o[c],r)}return i(t),n.forEach(i),De(e,r)}function yo(e,t){if(e.icons[t])return Ne(e,t,[]);const n=go(e,[t])[t];return n?Ne(e,t,n):null}const wo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,bo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function te(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(wo);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=bo.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function vo(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 Co(e,t){return e?"<defs>"+e+"</defs>"+t:t}function ko(e,t,n){const s=vo(e);return Co(s.defs,t+s.content+n)}const Se=e=>e==="unset"||e==="undefined"||e==="none";function It(e,t){const n={..._t,...e},s={...St,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(h=>{const m=[],y=h.hFlip,w=h.vFlip;let v=h.rotate;y?w?v+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):w&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.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,m.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,m.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)),m.length&&(r=ko(r,'<g transform="'+m.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,p=o.width,a=o.height;let l,f;i===null?(f=c===null?"1em":c==="auto"?a:c,l=te(f,p/a)):(l=i==="auto"?p:i,f=c===null?te(l,a/p):c==="auto"?a:c);const d={},u=(h,m)=>{Se(m)||(d[h]=m.toString())};u("width",l),u("height",f);const g=[o.left,o.top,p,a];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:r}}const xo=/\sid="(\S+)"/g,_o="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let So=0;function Io(e,t=_o){const n=[];let s;for(;s=xo.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(So++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function Fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Re(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" ')),Fo(t)}function To(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}function $o(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const jo=/\swidth\s*=\s*["']([\w.]+)["']/,Ao=/\sheight\s*=\s*["']([\w.]+)["']/,ae=/<svg\s+/;function Oo(e,t,n){const s=e.slice(0,e.indexOf(">")),o=(r,i)=>{const c=i.exec(s),p=c!=null,a=t[r];return!a&&!Se(a)&&(typeof n=="number"?n>0&&(t[r]=te(c?.[1]??"1em",n)):c&&(t[r]=c[1])),p};return[o("width",jo),o("height",Ao)]}async function Ft(e,t,n,s,o,r){const{scale:i,addXmlNs:c=!1}=s??{},{additionalProps:p={},iconCustomizer:a}=s?.customizations??{},l=await o?.()??{};await a?.(t,n,l),Object.keys(p).forEach(h=>{const m=p[h];m!=null&&(l[h]=m)}),r?.(l);const[f,d]=Oo(e,l,i);c&&(!e.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const u=Object.keys(l).map(h=>h==="width"&&f||h==="height"&&d?null:`${h}="${l[h]}"`).filter(h=>h!=null);if(u.length&&(e=e.replace(ae,`<svg ${u.join(" ")} `)),s){const{defaultStyle:h,defaultClass:m}=s;m&&!e.includes("class=")&&(e=e.replace(ae,`<svg class="${m}" `)),h&&!e.includes("style=")&&(e=e.replace(ae,`<svg style="${h}" `))}const g=s?.usedProps;return g&&(Object.keys(p).forEach(h=>{const m=l[h];m!=null&&(g[h]=m)}),typeof l.width<"u"&&l.width!==null&&(g.width=l.width),typeof l.height<"u"&&l.height!==null&&(g.height=l.height)),e}var W={exports:{}},le,ze;function Mo(){if(ze)return le;ze=1;var e=1e3,t=e*60,n=t*60,s=n*24,o=s*7,r=s*365.25;le=function(l,f){f=f||{};var d=typeof l;if(d==="string"&&l.length>0)return i(l);if(d==="number"&&isFinite(l))return f.long?p(l):c(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(f){var d=parseFloat(f[1]),u=(f[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return d*r;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function c(l){var f=Math.abs(l);return f>=s?Math.round(l/s)+"d":f>=n?Math.round(l/n)+"h":f>=t?Math.round(l/t)+"m":f>=e?Math.round(l/e)+"s":l+"ms"}function p(l){var f=Math.abs(l);return f>=s?a(l,f,s,"day"):f>=n?a(l,f,n,"hour"):f>=t?a(l,f,t,"minute"):f>=e?a(l,f,e,"second"):l+" ms"}function a(l,f,d,u){var g=f>=d*1.5;return Math.round(l/d)+" "+u+(g?"s":"")}return le}var ue,Ve;function Eo(){if(Ve)return ue;Ve=1;function e(t){s.debug=s,s.default=s,s.coerce=a,s.disable=c,s.enable=r,s.enabled=p,s.humanize=Mo(),s.destroy=l,Object.keys(t).forEach(f=>{s[f]=t[f]}),s.names=[],s.skips=[],s.formatters={};function n(f){let d=0;for(let u=0;u<f.length;u++)d=(d<<5)-d+f.charCodeAt(u),d|=0;return s.colors[Math.abs(d)%s.colors.length]}s.selectColor=n;function s(f){let d,u=null,g,h;function m(...y){if(!m.enabled)return;const w=m,v=Number(new Date),b=v-(d||v);w.diff=b,w.prev=d,w.curr=v,d=v,y[0]=s.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let x=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(k,_)=>{if(k==="%%")return"%";x++;const F=s.formatters[_];if(typeof F=="function"){const T=y[x];k=F.call(w,T),y.splice(x,1),x--}return k}),s.formatArgs.call(w,y),(w.log||s.log).apply(w,y)}return m.namespace=f,m.useColors=s.useColors(),m.color=s.selectColor(f),m.extend=o,m.destroy=s.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(g!==s.namespaces&&(g=s.namespaces,h=s.enabled(f)),h),set:y=>{u=y}}),typeof s.init=="function"&&s.init(m),m}function o(f,d){const u=s(this.namespace+(typeof d>"u"?":":d)+f);return u.log=this.log,u}function r(f){s.save(f),s.namespaces=f,s.names=[],s.skips=[];const d=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const u of d)u[0]==="-"?s.skips.push(u.slice(1)):s.names.push(u)}function i(f,d){let u=0,g=0,h=-1,m=0;for(;u<f.length;)if(g<d.length&&(d[g]===f[u]||d[g]==="*"))d[g]==="*"?(h=g,m=u,g++):(u++,g++);else if(h!==-1)g=h+1,m++,u=m;else return!1;for(;g<d.length&&d[g]==="*";)g++;return g===d.length}function c(){const f=[...s.names,...s.skips.map(d=>"-"+d)].join(",");return s.enable(""),f}function p(f){for(const d of s.skips)if(i(f,d))return!1;for(const d of s.names)if(i(f,d))return!0;return!1}function a(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}return ue=e,ue}var Ue;function Po(){return Ue||(Ue=1,(function(e,t){var n={};t.formatArgs=o,t.save=r,t.load=i,t.useColors=s,t.storage=c(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;a.splice(1,0,l,"color: inherit");let f=0,d=0;a[0].replace(/%[a-zA-Z%]/g,u=>{u!=="%%"&&(f++,u==="%c"&&(d=f))}),a.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function r(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function i(){let a;try{a=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=n.DEBUG),a}function c(){try{return localStorage}catch{}}e.exports=Eo()(t);const{formatters:p}=e.exports;p.j=function(a){try{return JSON.stringify(a)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(W,W.exports)),W.exports}var Lo=Po();const Tt=xn(Lo),Ho=Tt("@iconify-loader:custom");async function qe(e,t,n,s){let o;Ho(`${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 Ft(s?.customizations?.trimCustomSvg===!0?To(o):o,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),o)}}const Do=Tt("@iconify-loader:icon");async function $t(e,t,n,s){let o;const{customize:r}=s?.customizations??{};for(const i of n)if(o=yo(e,i),o){Do(`${t}:${i}`);let c={...St};typeof r=="function"&&(o=Object.assign({},o),c=r(c,o,`${t}:${i}`)??c);const{attributes:{width:p,height:a,...l},body:f}=It(o,c),d=s?.scale;return await Ft(`<svg >${f}</svg>`,t,i,s,()=>({...l}),u=>{const g=(h,m)=>{const y=u[h];let w;if(!Se(y)){if(y)return;typeof d=="number"?d&&(w=te(m??"1em",d)):w=m}w?u[h]=w:delete u[h]};g("width",p),g("height",a)})}}const jt=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 $t(o,e,r,n)}}}else return await qe(s,e,t,n)};var We={};function No(){const e=typeof process<"u"&&process.stdout,t=e&&!!We.VSCODE_CWD,n=e&&!!We.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}const At=["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"],Ro=3;function zo(e){return pn((t={})=>{const{scale:n=1,mode:s="auto",prefix:o="i-",warn:r=!1,iconifyCollectionsNames:i,collections:c,extraProperties:p={},customizations:a={},autoInstall:l=!1,collectionsNodeResolvePath:f,layer:d="icons",unit:u,processor:g}=t,h=No(),m={addXmlNs:!0,scale:n,customCollections:c,autoInstall:l,cwd:f,warn:void 0,customizations:{...a,additionalProps:{...p},trimCustomSvg:!0,async iconCustomizer(w,v,b){await a.iconCustomizer?.(w,v,b),u&&(b.width||(b.width=`${n}${u}`),b.height||(b.height=`${n}${u}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Re,parseIconWithLoader:Be},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async w=>{let[v,b,x=s]=w;y=y||await e(t);const C={},k=await Be(b,y,{...m,usedProps:C},i);if(!k){r&&!h.isESLint&&hn(`failed to load icon "${v}"`);return}let _;const F=`url("data:image/svg+xml;utf8,${Re(k.svg)}")`;return x==="auto"&&(x=k.svg.includes("currentColor")?"mask":"bg"),x==="mask"?_={"--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}:_={background:`${F} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...C},g?.(_,{...k,icon:k.name,mode:x}),_},{layer:d,prefix:o}]]}})}function Ot(e,t,n=new Map){function s(o){if(At.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 jt(o,r,i);if(c)return c;const p=await s(o);if(p){const a=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];c=await $t(p,o,a,i)}return c}}async function Be(e,t,n={},s=[]){let o="",r="",i;const c=new Set([...At,...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 p=e.split(/-/g);for(let a=Ro;a>=1&&(o=p.slice(0,a).join("-"),!(!!c.has(o)&&(r=p.slice(a).join("-"),i=await t(o,r,n),i)));a--);}if(i)return{collection:o,name:r,svg:i}}async function Vo(e){const{$fetch:t}=await mn(async()=>{const{$fetch:n}=await import("./unocss-GGiNT3_V.js").then(s=>s.f);return{$fetch:n}},[]);return Ot(t,e)}const Uo=zo(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?Ot(t,n):n?await Vo(n):jt}),qo=({attributifyOptions:e,iconsOptions:t={cdn:"https://cdn.jsdelivr.net/npm/"},tagifyOptions:n,typographyOptions:s,webFontsOptions:o,wind4Options:r={preflights:{reset:!0}}}={})=>[gn(e),Uo(t),yn(n),wn(s),bn(o),vn(r)],Mt=/^[a-z0-9]+(-[a-z0-9]+)*$/,q=(e,t,n,s="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),p=o.pop(),a={provider:o.length>0?o[0]:s,prefix:p,name:c};return t&&!B(a)?null:a}const r=o[0],i=r.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!B(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:r};return t&&!B(c,n)?null:c}return null},B=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Et=Object.freeze({left:0,top:0,width:16,height:16}),ne=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),P=Object.freeze({...Et,...ne}),ge=Object.freeze({...P,body:"",hidden:!1});function Wo(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 Ge(e,t){const n=Wo(e,t);for(const s in ge)s in ne?s in e&&!(s in n)&&(n[s]=ne[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Bo(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,p=c&&r(c);p&&(o[i]=[c].concat(p))}return o[i]}return Object.keys(n).concat(Object.keys(s)).forEach(r),o}function Go(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=Ge(s[c]||o[c],r)}return i(t),n.forEach(i),Ge(e,r)}function Pt(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=Bo(e);for(const o in s){const r=s[o];r&&(t(o,Go(e,o,r)),n.push(o))}return n}const Ko={provider:"",aliases:{},not_found:{},...Et};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Lt(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,Ko))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o||typeof r.body!="string"||!fe(r,ge))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,ge))return null}return t}const Ke=Object.create(null);function Qo(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function M(e,t){const n=Ke[e]||(Ke[e]=Object.create(null));return n[t]||(n[t]=Qo(e,t))}function Ht(e,t){return Lt(t)?Pt(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Jo(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let U=!1;function Dt(e){return typeof e=="boolean"&&(U=e),U}function ie(e){const t=typeof e=="string"?q(e,!0,U):e;if(t){const n=M(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Zo(e,t){const n=q(e,!0,U);if(!n)return!1;const s=M(n.provider,n.prefix);return t?Jo(s,n.name,t):(s.missing.add(n.name),!0)}function Xo(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),U&&!t&&!e.prefix){let o=!1;return Lt(e)&&(e.prefix="",Pt(e,(r,i)=>{Zo(r,i)&&(o=!0)})),o}const n=e.prefix;if(!B({prefix:n,name:"a"}))return!1;const s=M(t,n);return!!Ht(s,e)}function Yo(e){return!!ie(e)}function es(e){const t=ie(e);return t&&{...P,...t}}const Nt=Object.freeze({width:null,height:null}),Rt=Object.freeze({...Nt,...ne}),ts=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ns=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Qe(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(ts);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=ns.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 os(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 ss(e,t){return e?"<defs>"+e+"</defs>"+t:t}function rs(e,t,n){const s=os(e);return ss(s.defs,t+s.content+n)}const is=e=>e==="unset"||e==="undefined"||e==="none";function cs(e,t){const n={...P,...e},s={...Rt,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(h=>{const m=[],y=h.hFlip,w=h.vFlip;let v=h.rotate;y?w?v+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):w&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.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,m.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,m.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)),m.length&&(r=rs(r,'<g transform="'+m.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,p=o.width,a=o.height;let l,f;i===null?(f=c===null?"1em":c==="auto"?a:c,l=Qe(f,p/a)):(l=i==="auto"?p:i,f=c===null?Qe(l,a/p):c==="auto"?a:c);const d={},u=(h,m)=>{is(m)||(d[h]=m.toString())};u("width",l),u("height",f);const g=[o.left,o.top,p,a];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:r}}const as=/\sid="(\S+)"/g,ls="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let us=0;function fs(e,t=ls){const n=[];let s;for(;s=as.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+(us++).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 ye=Object.create(null);function ds(e,t){ye[e]=t}function we(e){return ye[e]||ye[""]}function Ie(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),D=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;D.length>0;)D.length===1||Math.random()>.5?G.push(D.shift()):G.push(D.pop());Fe[""]=Ie({resources:["https://api.iconify.design"].concat(G)});function ps(e,t){const n=Ie(t);return n===null?!1:(Fe[e]=n,!0)}function Te(e){return Fe[e]}const hs=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Je=hs();function ms(e,t){const n=Te(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 gs(e){return e===404}const ys=(e,t,n)=>{const s=[],o=ms(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((p,a)=>{c+=p.length+1,c>=o&&a>0&&(s.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=p.length),i.icons.push(p)}),s.push(i),s};function ws(e){if(typeof e=="string"){const t=Te(e);if(t)return t.path}return"/"}const bs=(e,t,n)=>{if(!Je){n("abort",424);return}let s=ws(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),p=new URLSearchParams({icons:c});s+=r+".json?"+p.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;Je(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(gs(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)})},vs={prepare:ys,send:bs};function Cs(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,p=n[r]||(n[r]=Object.create(null)),a=p[i]||(p[i]=M(r,i));let l;c in a.icons?l=t.loaded:i===""||a.missing.has(c)?l=t.missing:l=t.pending;const f={provider:r,prefix:i,name:c};l.push(f)}),t}function zt(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==t))})}function ks(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(p=>{if(p.prefix!==o)return!0;const a=p.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||zt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let xs=0;function _s(e,t,n){const s=xs++,o=zt.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 Ss(e,t=!0,n=!1){const s=[];return e.forEach(o=>{const r=typeof o=="string"?q(o,t,n):o;r&&s.push(r)}),s}var Is={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fs(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 p="pending",a=0,l,f=null,d=[],u=[];typeof s=="function"&&u.push(s);function g(){f&&(clearTimeout(f),f=null)}function h(){p==="pending"&&(p="aborted"),g(),d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function m(C,k){k&&(u=[]),typeof C=="function"&&u.push(C)}function y(){return{startTime:c,payload:t,status:p,queriesSent:a,queriesPending:d.length,subscribe:m,abort:h}}function w(){p="failed",u.forEach(C=>{C(void 0,l)})}function v(){d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function b(C,k,_){const F=k!=="success";switch(d=d.filter(T=>T!==C),p){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){l=_,w();return}if(F){l=_,d.length||(i.length?x():w());return}if(g(),v(),!e.random){const T=e.resources.indexOf(C.resource);T!==-1&&T!==e.index&&(e.index=T)}p="completed",u.forEach(T=>{T(_)})}function x(){if(p!=="pending")return;g();const C=i.shift();if(C===void 0){if(d.length){f=setTimeout(()=>{g(),p==="pending"&&(v(),w())},e.timeout);return}w();return}const k={status:"pending",resource:C,callback:(_,F)=>{b(k,_,F)}};d.push(k),a++,f=setTimeout(x,e.rotate),n(C,t,k.callback)}return setTimeout(x),y}function Vt(e){const t={...Is,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function o(c,p,a){const l=Fs(t,c,p,(f,d)=>{s(),a&&a(f,d)});return n.push(l),l}function r(c){return n.find(p=>c(p))||null}return{query:o,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function Ze(){}const de=Object.create(null);function Ts(e){if(!de[e]){const t=Te(e);if(!t)return;const n=Vt(t),s={config:t,redundancy:n};de[e]=s}return de[e]}function $s(e,t,n){let s,o;if(typeof e=="string"){const r=we(e);if(!r)return n(void 0,424),Ze;o=r.send;const i=Ts(e);i&&(s=i.redundancy)}else{const r=Ie(e);if(r){s=Vt(r);const i=e.resources?e.resources[0]:"",c=we(i);c&&(o=c.send)}}return!s||!o?(n(void 0,424),Ze):s.query(t,o,n)().abort}function Xe(){}function js(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ks(e)}))}function As(e){const t=[],n=[];return e.forEach(s=>{(s.match(Mt)?t:n).push(s)}),{valid:t,invalid:n}}function N(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(!Ht(e,n).length){s();return}}catch(o){console.error(o)}s(),js(e)}function Ye(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Os(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)){Ye(e.loadIcons(o,s,n),l=>{N(e,o,l)});return}if(r){o.forEach(l=>{const f=r(l,s,n);Ye(f,d=>{const u=d?{prefix:s,icons:{[l]:d}}:null;N(e,[l],u)})});return}const{valid:i,invalid:c}=As(o);if(c.length&&N(e,c,null),!i.length)return;const p=s.match(Mt)?we(n):null;if(!p){N(e,i,null);return}p.prepare(n,s,i).forEach(l=>{$s(n,l,f=>{N(e,l.icons,f)})})}))}const Ut=(e,t)=>{const n=Ss(e,!0,Dt()),s=Cs(n);if(!s.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(s.loaded,s.missing,s.pending,Xe)}),()=>{p=!1}}const o=Object.create(null),r=[];let i,c;return s.pending.forEach(p=>{const{provider:a,prefix:l}=p;if(l===c&&a===i)return;i=a,c=l,r.push(M(a,l));const f=o[a]||(o[a]=Object.create(null));f[l]||(f[l]=[])}),s.pending.forEach(p=>{const{provider:a,prefix:l,name:f}=p,d=M(a,l),u=d.pendingIcons||(d.pendingIcons=new Set);u.has(f)||(u.add(f),o[a][l].push(f))}),r.forEach(p=>{const a=o[p.provider][p.prefix];a.length&&Os(p,a)}),t?_s(t,s,r):Xe},Ms=e=>new Promise((t,n)=>{const s=typeof e=="string"?q(e,!0):e;if(!s){n(e);return}Ut([s||e],o=>{if(o.length&&s){const r=ie(s);if(r){t({...P,...r});return}}n(e)})});function Es(e,t){const n={...e};for(const s in t){const o=t[s],r=typeof o;s in Nt?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const Ps=/[\s,]+/;function Ls(e,t){t.split(Ps).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Hs(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 Ds(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 Ns(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Rs(e){return"data:image/svg+xml,"+Ns(e)}function zs(e){return'url("'+Rs(e)+'")'}const et={...Rt,inline:!1},Vs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Us={display:"inline-block"},be={backgroundColor:"currentColor"},qt={backgroundColor:"transparent"},tt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},nt={webkitMask:be,mask:be,background:qt};for(const e in nt){const t=nt[e];for(const n in tt)t[e+n]=tt[n]}const K={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";K[e+"-flip"]=t,K[e.slice(0,1)+"-flip"]=t,K[e+"Flip"]=t});function ot(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const st=(e,t)=>{const n=Es(et,t),s={...Vs},o=t.mode||"svg",r={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const m=t[h];if(m!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[h]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&Ls(n,m);break;case"color":r.color=m;break;case"rotate":typeof m=="string"?n[h]=Hs(m):typeof m=="number"&&(n[h]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete s["aria-hidden"];break;default:{const y=K[h];y?(m===!0||m==="true"||m===1)&&(n[y]=!0):et[h]===void 0&&(s[h]=m)}}}const p=cs(e,n),a=p.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...c},Object.assign(s,a);let h=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),s.innerHTML=fs(p.body,m?()=>m+"ID"+h++:"iconifyVue"),$e("svg",s)}const{body:l,width:f,height:d}=e,u=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),g=Ds(l,{...a,width:f+"",height:d+""});return s.style={...r,"--svg":zs(g),width:ot(a.width),height:ot(a.height),...Us,...u?be:qt,...c},$e("span",s)};Dt(!0);ds("",vs);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"||!Xo(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;ps(n,o)||console.error(s)}catch{console.error(s)}}}}const qs={...P,body:""};E((e,{emit:t})=>{const n=j(null);function s(){n.value&&(n.value.abort?.(),n.value=null)}const o=j(!!e.ssr),r=j(""),i=at(null);function c(){const a=e.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string")return r.value="",{data:a};let l;if(typeof a!="string"||(l=q(a,!1,!0))===null)return null;let f=ie(l);if(!f){const g=n.value;return(!g||g.name!==a)&&(f===null?n.value={name:a}:n.value={name:a,abort:Ut([l],p)}),null}s(),r.value!==a&&(r.value=a,on(()=>{t("load",a)}));const d=e.customise;if(d){f=Object.assign({},f);const g=d(f.body,l.name,l.prefix,l.provider);typeof g=="string"&&(f.body=g)}const u=["iconify"];return l.prefix!==""&&u.push("iconify--"+l.prefix),l.provider!==""&&u.push("iconify--"+l.provider),{data:f,classes:u}}function p(){const a=c();a?a.data!==i.value?.data&&(i.value=a):i.value=null}return o.value?p():nn(()=>{o.value=!0,p()}),se(()=>e.icon,p),lt(s),()=>{const a=i.value;if(!a)return st(qs,e);let l=e;return a.classes&&(l={...e,class:a.classes.join(" ")}),st({...P,...a.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const Ws=E({__name:"App",setup(e){const t=$n(),n=S(()=>re.value[t.name]),s=S(()=>n.value?.description),o=j(""),r=j(""),i=S(()=>n.value?.keywords.join()),c=S(()=>n.value?.images.filter(({url:f})=>f).map(({alt:f="",url:d})=>({alt:f,url:`${window.location.origin}/${d}`}))??[]),p=S(()=>n.value?.type),a=S(()=>n.value?.to&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`),l=S(()=>n.value?.title);return se(n,async f=>{if(f){let d="/favicon.ico";if(f.icon){const u=Yo(f.icon)?es(f.icon):await Ms(f.icon);if(u){const{attributes:g,body:h}=It(u,{height:16,width:16});d=`data:image/svg+xml,${encodeURIComponent($o(Io(h),g))}`}}o.value=d,r.value=JSON.stringify(await dt(`./pages/${f.id}.jsonld`)??{"@context":"https://schema.org"})}}),_e({link:[[o,"icon","icon"],[a,"canonical"]].map(([f,d,u])=>({href:f,key:u,rel:d})),script:[{id:"application/ld+json",innerHTML:r,type:"application/ld+json"}]}),lo({description:s,keywords:i,ogDescription:s,ogImage:c,ogTitle:l,ogType:p,ogUrl:a,title:l}),(f,d)=>{const u=sn("router-view");return A(),z(u,null,{default:Ce(({Component:g})=>[(A(),z(ke(g),{id:I(O)[0]?.id},null,8,["id"]))]),_:1})}}}),Q=new Map,Wt=e=>rn(async()=>On(`./pages/${e}.vue`,{scriptOptions:{inlineTemplate:!0}})),J=new Map,Bt=()=>{let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),reject:t,resolve:e}},Gt=Bt(),oe=j();j(!1);const R=S(()=>oe.value===O.value[0]?.id?O.value[0]?.$children[0]:re.value[oe.value]),Bs=S(()=>R.value===void 0||R.value.parent?.flat?R.value?.siblings??[]:[R.value]),ve=_n(Bs,({enabled:e})=>e);function rt(e,t){const n=e.type,s=n==="html"?"htmlAttrs":n==="body"?"bodyAttrs":n;if(typeof s!="string"||!(s in t))return;const o=e.props||{};if(e.children){const r="children";o.children=Array.isArray(e.children)?e.children[0][r]:e[r]}Array.isArray(t[s])?t[s].push(o):s==="title"?t.title=o.children:t[s]=o}function Gs(e){const t={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const n of e)if(typeof n.type=="symbol"&&Array.isArray(n.children))for(const s of n.children)rt(s,t);else rt(n,t);return t}const Ks=E({name:"Head",setup(e,{slots:t}){const n=j({}),s=_e(n);return ct(()=>{s.dispose()}),()=>(it(()=>{t.default&&s.patch(Gs(t.default()))}),null)}}),Qs=E({__name:"NotFoundView",setup(e){return(t,n)=>(A(),Z(ut,null,[cn(I(Ks),null,{default:Ce(()=>[...n[0]||(n[0]=[L("title",null,"Page Not Found",-1)])]),_:1}),n[1]||(n[1]=L("div",{class:"absolute inset-0 grid place-items-center"},[L("div",{class:"text-center"},[L("div",{class:"text-9xl"},"404"),L("p",null,"Oops. Nothing here...")])],-1))],64))}}),Js={mounted(e,t){typeof t.value=="function"?je(e,t.value):je(e,...t.value)}};function Zs(){let e=!1;const t=at(!1);return(n,s)=>{if(t.value=s.value,e)return;e=!0;const o=Sn(n,s.value);se(t,r=>o.value=r)}}Zs();const Xs=["id"],Ys=E({__name:"PageView",setup(e){const t=()=>{[Q,J].forEach(s=>{s.clear()})},n=S(()=>new Map(ve.value.map(({id:s})=>[s,Wt(s)])));return se(ve,s=>{t(),s.forEach(({id:o})=>{Q.set(o,!1),J.set(o,Bt())})},{immediate:!0}),lt(()=>{t()}),(s,o)=>(A(!0),Z(ut,null,an(n.value,([r,i])=>ln((A(),Z("div",{id:r,key:r,"un-cloak":"",class:ft(I(re)[r]?.class)},[(A(),z(ke(i),{id:r,onVnodeMounted:c=>I(J).get(r)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],10,Xs)),[[I(Js),[([{isIntersecting:c}={}])=>{I(Q).set(r,c)},{threshold:.1}]]])),128))}}),er=["id"],tr=E({__name:"RootView",setup(e){const[t]=O.value,n=S(()=>t&&Wt(t.id));return(s,o)=>(A(),z(un,null,{default:Ce(()=>[I(t)?.enabled?(A(),Z("div",{key:0,id:I(t).id,class:ft(I(t).class),"un-cloak":""},[(A(),z(ke(n.value),{id:I(t).id,onVnodeMounted:o[0]||(o[0]=r=>I(Gt).resolve(void 0))},null,8,["id"]))],10,er)):fn("",!0)]),_:1}))}}),[[nr={}],or]=(await Promise.all(["index","fonts"].map(e=>dt(`${e}.json`)))).map(e=>e??[]),Kt=dn(Ws),{pathname:sr}=new URL(document.baseURI);pt.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.2.13");In.push(nr);await Cn({defaults:{presets:qo({webFontsOptions:{customFetch:kn,fonts:Object.fromEntries(or.map(e=>[e.toLowerCase().replace(/ /g,"_"),e]))}})},ready:({extractAll:e,toggleObserver:t})=>{let n=!1;const s=jn({history:An(sr),routes:[...O.value.filter(({path:i})=>i!==void 0).map(i=>{const{id:c,loc:p,path:a}=i,l=p?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");return{...l&&{alias:l},children:[{component:Ys,name:c,path:""}],component:tr,path:a.replace(/^\/?/,"/").replace(/\/?$/,"/")}}),{component:Qs,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:i,name:c})=>{if(c)if(oe.value=c,n)n=!1;else{const{index:p,parent:{flat:a}={}}=R.value??{};return t(!0),await Gt.promise,await Promise.all([...J.values()].map(({promise:l})=>l)),await e(),t(!1),"requestIdleCallback"in window?await new Promise(l=>requestIdleCallback(l)):(await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>setTimeout(l))),{behavior:"smooth",...i||a&&p?{el:i||`#${String(c)}`}:{left:0,top:0}}}return!1}}),{x:o,y:r}=Tn(window,{onStop:()=>{const[i]=ve.value,[c]=O.value;if(c&&i){const{$children:[{id:p}={}]=[]}=c,a=!Math.floor(o.value)&&!Math.floor(r.value)&&i.id===p?c.id:[...Q.entries()].find(([,l])=>l)?.[0]??i.id;a!==oe.value&&(n=!0,s.push({name:a}).catch(pt.error))}}});return s.beforeEach(({path:i})=>i!==decodeURI(i)?decodeURI(i):void 0),Kt.use(s),!1},rootElement:()=>document.getElementById("app")??void 0});Kt.use(uo()).provide("pages",Fn(re)).mount("#app");
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{isRef as Pt,reactive as ve,unref as qn,computed as _e,toValue as ee,onMounted as Cn,nextTick as Zn,getCurrentScope as xn,onScopeDispose as es,watch as qe,getCurrentInstance as Mn,toRef as ts,readonly as rs,ref as ns,customRef as ss,shallowRef as Te}from"vue";import{o as os}from"./unocss-GGiNT3_V.js";function nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function is(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var a=function s(){var h=!1;try{h=this instanceof s}catch{}return h?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var h=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(a,s,h.get?h:{enumerable:!0,get:function(){return e[s]}})}),a}function jt(e,t){return xn()?(es(e,t),!0):!1}const Dn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const An=e=>e!=null,as=Object.prototype.toString,us=e=>as.call(e)==="[object Object]",ge=()=>{},cr=cs();function cs(){var e,t,a;return Dn&&((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((a=window)===null||a===void 0?void 0:a.navigator.userAgent))}function ls(...e){if(e.length!==1)return ts(...e);const t=e[0];return typeof t=="function"?rs(ss(()=>({get:t,set:ge}))):ns(t)}function Vn(e,t){function a(...s){return new Promise((h,n)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(h).catch(n)})}return a}function ds(e,t={}){let a,s,h=ge;const n=l=>{clearTimeout(l),h(),h=ge};let p;return l=>{const m=ee(e),f=ee(t.maxWait);return a&&n(a),m<=0||f!==void 0&&f<=0?(s&&(n(s),s=void 0),Promise.resolve(l())):new Promise((E,w)=>{h=t.rejectOnCancel?w:E,p=l,f&&!s&&(s=setTimeout(()=>{a&&n(a),s=void 0,E(p())},f)),a=setTimeout(()=>{s&&n(s),s=void 0,E(l())},m)})}}function fs(...e){let t=0,a,s=!0,h=ge,n,p,u,l,m;!Pt(e[0])&&typeof e[0]=="object"?{delay:p,trailing:u=!0,leading:l=!0,rejectOnCancel:m=!1}=e[0]:[p,u=!0,l=!0,m=!1]=e;const f=()=>{a&&(clearTimeout(a),a=void 0,h(),h=ge)};return w=>{const $=ee(p),v=Date.now()-t,b=()=>n=w();return f(),$<=0?(t=Date.now(),b()):(v>$?(t=Date.now(),(l||!s)&&b()):u&&(n=new Promise((o,d)=>{h=m?d:o,a=setTimeout(()=>{t=Date.now(),s=!0,o(b()),f()},Math.max(0,$-v))})),!l&&!a&&(a=setTimeout(()=>s=!0,$)),s=!1,n)}}function Ve(e){return Array.isArray(e)?e:[e]}function hs(e){return Mn()}function ps(e){return Pt(e)?ve(new Proxy({},{get(t,a,s){return qn(Reflect.get(e.value,a,s))},set(t,a,s){return Pt(e.value[a])&&!Pt(s)?e.value[a].value=s:e.value[a]=s,!0},deleteProperty(t,a){return Reflect.deleteProperty(e.value,a)},has(t,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):ve(e)}function ms(e,t=200,a={}){return Vn(ds(t,a),e)}function ys(e,t=200,a=!1,s=!0,h=!1){return Vn(fs(t,a,s,h),e)}function vs(e,t=!0,a){hs()?Cn(e,a):t?e():Zn(e)}function si(e,t){return _e(()=>ee(e).map(a=>ee(a)).filter(t))}function gs(e,t,a){return qe(e,t,{...a,immediate:!0})}const Nt=Dn?window:void 0;function Ie(e){var t;const a=ee(e);return(t=a?.$el)!==null&&t!==void 0?t:a}function xt(...e){const t=[],a=()=>{t.forEach(u=>u()),t.length=0},s=(u,l,m,f)=>(u.addEventListener(l,m,f),()=>u.removeEventListener(l,m,f)),h=_e(()=>{const u=Ve(ee(e[0])).filter(l=>l!=null);return u.every(l=>typeof l!="string")?u:void 0}),n=gs(()=>{var u,l;return[(u=(l=h.value)===null||l===void 0?void 0:l.map(m=>Ie(m)))!==null&&u!==void 0?u:[Nt].filter(m=>m!=null),Ve(ee(h.value?e[1]:e[0])),Ve(qn(h.value?e[2]:e[1])),ee(h.value?e[3]:e[2])]},([u,l,m,f])=>{if(a(),!u?.length||!l?.length||!m?.length)return;const E=us(f)?{...f}:f;t.push(...u.flatMap(w=>l.flatMap($=>m.map(v=>s(w,$,v,E)))))},{flush:"post"}),p=()=>{n(),a()};return jt(a),p}function _s(){const e=Te(!1),t=Mn();return t&&Cn(()=>{e.value=!0},t),e}function Ln(e){const t=_s();return _e(()=>(t.value,!!e()))}function $s(e,t,a={}){const{window:s=Nt,...h}=a;let n;const p=Ln(()=>s&&"MutationObserver"in s),u=()=>{n&&(n.disconnect(),n=void 0)},l=qe(_e(()=>{const E=Ve(ee(e)).map(Ie).filter(An);return new Set(E)}),E=>{u(),p.value&&E.size&&(n=new MutationObserver(t),E.forEach(w=>n.observe(w,h)))},{immediate:!0,flush:"post"}),m=()=>n?.takeRecords(),f=()=>{l(),u()};return jt(f),{isSupported:p,stop:f,takeRecords:m}}function oi(e,t,a={}){const{root:s,rootMargin:h="0px",threshold:n=0,window:p=Nt,immediate:u=!0}=a,l=Ln(()=>p&&"IntersectionObserver"in p),m=_e(()=>Ve(ee(e)).map(Ie).filter(An));let f=ge;const E=Te(u),w=l.value?qe(()=>[m.value,Ie(s),E.value],([v,b])=>{if(f(),!E.value||!v.length)return;const o=new IntersectionObserver(t,{root:Ie(b),rootMargin:h,threshold:n});v.forEach(d=>d&&o.observe(d)),f=()=>{o.disconnect(),f=ge}},{immediate:u,flush:"post"}):ge,$=()=>{f(),w(),E.value=!1};return jt($),{isSupported:l,isActive:E,pause(){f(),E.value=!1},resume(){E.value=!0},stop:$}}function At(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const lr=1;function ii(e,t={}){const{throttle:a=0,idle:s=200,onStop:h=ge,onScroll:n=ge,offset:p={left:0,right:0,top:0,bottom:0},observe:u={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:m="auto",window:f=Nt,onError:E=T=>{console.error(T)}}=t,w=typeof u=="boolean"?{mutation:u}:u,$=Te(0),v=Te(0),b=_e({get(){return $.value},set(T){d(T,void 0)}}),o=_e({get(){return v.value},set(T){d(void 0,T)}});function d(T,D){var V,K,U,H;if(!f)return;const X=ee(e);if(!X)return;(V=X instanceof Document?f.document.body:X)===null||V===void 0||V.scrollTo({top:(K=ee(D))!==null&&K!==void 0?K:o.value,left:(U=ee(T))!==null&&U!==void 0?U:b.value,behavior:ee(m)});const te=(X==null||(H=X.document)===null||H===void 0?void 0:H.documentElement)||X?.documentElement||X;b!=null&&($.value=te.scrollLeft),o!=null&&(v.value=te.scrollTop)}const r=Te(!1),c=ve({left:!0,right:!1,top:!0,bottom:!1}),_=ve({left:!1,right:!1,top:!1,bottom:!1}),i=T=>{r.value&&(r.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,h(T))},g=ms(i,a+s),S=T=>{var D;if(!f)return;const V=(T==null||(D=T.document)===null||D===void 0?void 0:D.documentElement)||T?.documentElement||Ie(T),{display:K,flexDirection:U,direction:H}=getComputedStyle(V),X=H==="rtl"?-1:1,te=V.scrollLeft;_.left=te<$.value,_.right=te>$.value;const fe=Math.abs(te*X)<=(p.left||0),Z=Math.abs(te*X)+V.clientWidth>=V.scrollWidth-(p.right||0)-lr;K==="flex"&&U==="row-reverse"?(c.left=Z,c.right=fe):(c.left=fe,c.right=Z),$.value=te;let ie=V.scrollTop;T===f.document&&!ie&&(ie=f.document.body.scrollTop),_.top=ie<v.value,_.bottom=ie>v.value;const M=Math.abs(ie)<=(p.top||0),R=Math.abs(ie)+V.clientHeight>=V.scrollHeight-(p.bottom||0)-lr;K==="flex"&&U==="column-reverse"?(c.top=R,c.bottom=M):(c.top=M,c.bottom=R),v.value=ie},N=T=>{var D;f&&(S((D=T.target.documentElement)!==null&&D!==void 0?D:T.target),r.value=!0,g(T),n(T))};return xt(e,"scroll",a?ys(N,a,!0,!1):N,l),vs(()=>{try{const T=ee(e);if(!T)return;S(T)}catch(T){E(T)}}),w?.mutation&&e!=null&&e!==f&&e!==document&&$s(e,()=>{const T=ee(e);T&&S(T)},{attributes:!0,childList:!0,subtree:!0}),xt(e,"scrollend",i,l),{x:b,y:o,isScrolling:r,arrivedState:c,directions:_,measure(){const T=ee(e);f&&T&&S(T)}}}function Fn(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const a=e.parentNode;return!a||a.tagName==="BODY"?!1:Fn(a)}}function ws(e){const t=e||window.event,a=t.target;return Fn(a)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Vt=new WeakMap;function ai(e,t=!1){const a=Te(t);let s=null,h="";qe(ls(e),u=>{const l=At(ee(u));if(l){const m=l;if(Vt.get(m)||Vt.set(m,m.style.overflow),m.style.overflow!=="hidden"&&(h=m.style.overflow),m.style.overflow==="hidden")return a.value=!0;if(a.value)return m.style.overflow="hidden"}},{immediate:!0});const n=()=>{const u=At(ee(e));!u||a.value||(cr&&(s=xt(u,"touchmove",l=>{ws(l)},{passive:!1})),u.style.overflow="hidden",a.value=!0)},p=()=>{const u=At(ee(e));!u||!a.value||(cr&&s?.(),u.style.overflow=h,Vt.delete(u),a.value=!1)};return jt(p),_e({get(){return a.value},set(u){u?n():p()}})}function bs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Lt={exports:{}};const Es={},Ss=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),Ps=is(Ss);var dr;function Os(){return dr||(dr=1,(function(e){(function(){var t,a=0,s=[],h;for(h=0;h<256;h++)s[h]=(h+256).toString(16).substr(1);l.BUFFER_SIZE=4096,l.bin=u,l.clearBuffer=function(){t=null,a=0},l.test=function(m){return typeof m=="string"?/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1};var n;typeof crypto<"u"?n=crypto:typeof window<"u"&&typeof window.msCrypto<"u"&&(n=window.msCrypto),typeof bs=="function"?(n=n||Ps,e.exports=l):typeof window<"u"&&(window.uuid=l),l.randomBytes=(function(){if(n){if(n.randomBytes)return n.randomBytes;if(n.getRandomValues)return typeof Uint8Array.prototype.slice!="function"?function(m){var f=new Uint8Array(m);return n.getRandomValues(f),Array.from(f)}:function(m){var f=new Uint8Array(m);return n.getRandomValues(f),f}}return function(m){var f,E=[];for(f=0;f<m;f++)E.push(Math.floor(Math.random()*256));return E}})();function p(m){return(!t||a+m>l.BUFFER_SIZE)&&(a=0,t=l.randomBytes(l.BUFFER_SIZE)),t.slice(a,a+=m)}function u(){var m=p(16);return m[6]=m[6]&15|64,m[8]=m[8]&63|128,m}function l(){var m=u();return s[m[0]]+s[m[1]]+s[m[2]]+s[m[3]]+"-"+s[m[4]]+s[m[5]]+"-"+s[m[6]]+s[m[7]]+"-"+s[m[8]]+s[m[9]]+"-"+s[m[10]]+s[m[11]]+s[m[12]]+s[m[13]]+s[m[14]]+s[m[15]]}})()})(Lt)),Lt.exports}var Rs=Os();const er=nr(Rs),fr=!0,hr=(e,t)=>[...e].reverse().map(a=>({node:a,parent:t,siblings:e})),js=(e,{branch:t="branch",children:a="children",id:s="id",index:h="index",next:n="next",parent:p="parent",prev:u="prev",siblings:l="siblings"}={})=>{const m={[t]:{get(){const v=[this];for(;v[0]?.[p];)v.unshift(v[0][p]);return v}},[h]:{get(){return this[l].findIndex(v=>this[s]===v[s])}},[n]:{get(){return this[l][this[h]+1]}},[u]:{get(){return this[l][this[h]-1]}}},f=function*(v){const b=hr(v);for(;b.length;){const{node:o,parent:d,siblings:r}=b.pop()??{};o&&(o[p]!==d&&Object.defineProperty(o,p,{configurable:fr,value:d}),o[l]!==r&&Object.defineProperty(o,l,{configurable:fr,value:r}),Object.keys(m).some(c=>!(c in o))&&Object.defineProperties(o,m),yield o,b.push(...hr(o[a]??[],o)))}},E=_e(()=>[...f(ps(e))]),w=_e(()=>Object.fromEntries(E.value.map(v=>[v[s],v]))),$=(v,b)=>{const o=w.value[v];if(o){const[d]=E.value,r=o[h],c=o[n],_=r+1,i=o[p],g=o[u],S=r-1,N=o[l];switch(b){case"add":{const T=er();return N.splice(_,0,{[s]:T}),T}case"addChild":{const T=er();return Array.isArray(o[a])||(o[a]=[]),o[a].unshift({[s]:T}),T}case"down":r<N.length-1&&N[r]&&N[_]&&([N[r],N[_]]=[N[_],N[r]]);break;case"left":if(i?.[p])return i[l].splice(i[h]+1,0,...N.splice(r,1)),i[s];break;case"remove":{const T=c?.[s]??g?.[s]??i?.[s]??d?.[s];return N.splice(r,1),T}case"right":if(g){const T=g[a]??[],D=g[s];return g[a]=[...T,...N.splice(r,1)],D}break;case"up":r&&N[r]&&N[S]&&([N[S],N[r]]=[N[r],N[S]]);break}}};return{add:v=>$(v,"add"),addChild:v=>$(v,"addChild"),down:v=>$(v,"down"),kvNodes:w,left:v=>$(v,"left"),nodes:E,remove:v=>$(v,"remove"),right:v=>$(v,"right"),up:v=>$(v,"up")}};var Fe={exports:{}},Ft={},$e={},Pe={},Ut={},zt={},Kt={},pr;function Ot(){return pr||(pr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class a extends t{constructor(r){if(super(),!e.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=a;class s extends t{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((c,_)=>`${c}${_}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((c,_)=>(_ instanceof a&&(c[_.str]=(c[_.str]||0)+1),c),{})}}e._Code=s,e.nil=new s("");function h(d,...r){const c=[d[0]];let _=0;for(;_<r.length;)u(c,r[_]),c.push(d[++_]);return new s(c)}e._=h;const n=new s("+");function p(d,...r){const c=[$(d[0])];let _=0;for(;_<r.length;)c.push(n),u(c,r[_]),c.push(n,$(d[++_]));return l(c),new s(c)}e.str=p;function u(d,r){r instanceof s?d.push(...r._items):r instanceof a?d.push(r):d.push(E(r))}e.addCodeArg=u;function l(d){let r=1;for(;r<d.length-1;){if(d[r]===n){const c=m(d[r-1],d[r+1]);if(c!==void 0){d.splice(r-1,3,c);continue}d[r++]="+"}r++}}function m(d,r){if(r==='""')return d;if(d==='""')return r;if(typeof d=="string")return r instanceof a||d[d.length-1]!=='"'?void 0:typeof r!="string"?`${d.slice(0,-1)}${r}"`:r[0]==='"'?d.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(d instanceof a))return`"${d}${r.slice(1)}`}function f(d,r){return r.emptyStr()?d:d.emptyStr()?r:p`${d}${r}`}e.strConcat=f;function E(d){return typeof d=="number"||typeof d=="boolean"||d===null?d:$(Array.isArray(d)?d.join(","):d)}function w(d){return new s($(d))}e.stringify=w;function $(d){return JSON.stringify(d).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=$;function v(d){return typeof d=="string"&&e.IDENTIFIER.test(d)?new s(`.${d}`):h`[${d}]`}e.getProperty=v;function b(d){if(typeof d=="string"&&e.IDENTIFIER.test(d))return new s(`${d}`);throw new Error(`CodeGen: invalid export name: ${d}, use explicit $id name mapping`)}e.getEsmExportName=b;function o(d){return new s(d.toString())}e.regexpCode=o})(Kt)),Kt}var Ht={},mr;function yr(){return mr||(mr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ot();class a extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var s;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(s||(e.UsedValueState=s={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class h{constructor({prefixes:m,parent:f}={}){this._names={},this._prefixes=m,this._parent=f}toName(m){return m instanceof t.Name?m:this.name(m)}name(m){return new t.Name(this._newName(m))}_newName(m){const f=this._names[m]||this._nameGroup(m);return`${m}${f.index++}`}_nameGroup(m){var f,E;if(!((E=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||E===void 0)&&E.has(m)||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}e.Scope=h;class n extends t.Name{constructor(m,f){super(f),this.prefix=m}setValue(m,{property:f,itemIndex:E}){this.value=m,this.scopePath=(0,t._)`.${new t.Name(f)}[${E}]`}}e.ValueScopeName=n;const p=(0,t._)`\n`;class u extends h{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts={...m,_n:m.lines?p:t.nil}}get(){return this._scope}name(m){return new n(m,this._newName(m))}value(m,f){var E;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const w=this.toName(m),{prefix:$}=w,v=(E=f.key)!==null&&E!==void 0?E:f.ref;let b=this._values[$];if(b){const r=b.get(v);if(r)return r}else b=this._values[$]=new Map;b.set(v,w);const o=this._scope[$]||(this._scope[$]=[]),d=o.length;return o[d]=f.ref,w.setValue(f,{property:$,itemIndex:d}),w}getValue(m,f){const E=this._values[m];if(E)return E.get(f)}scopeRefs(m,f=this._values){return this._reduceValues(f,E=>{if(E.scopePath===void 0)throw new Error(`CodeGen: name "${E}" has no value`);return(0,t._)`${m}${E.scopePath}`})}scopeCode(m=this._values,f,E){return this._reduceValues(m,w=>{if(w.value===void 0)throw new Error(`CodeGen: name "${w}" has no value`);return w.value.code},f,E)}_reduceValues(m,f,E={},w){let $=t.nil;for(const v in m){const b=m[v];if(!b)continue;const o=E[v]=E[v]||new Map;b.forEach(d=>{if(o.has(d))return;o.set(d,s.Started);let r=f(d);if(r){const c=this.opts.es5?e.varKinds.var:e.varKinds.const;$=(0,t._)`${$}${c} ${d} = ${r};${this.opts._n}`}else if(r=w?.(d))$=(0,t._)`${$}${r}${this.opts._n}`;else throw new a(d);o.set(d,s.Completed)})}return $}}e.ValueScope=u})(Ht)),Ht}var vr;function W(){return vr||(vr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Ot(),a=yr();var s=Ot();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return s.Name}});var h=yr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return h.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return h.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return h.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return h.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class n{optimizeNodes(){return this}optimizeNames(y,P){return this}}class p extends n{constructor(y,P,I){super(),this.varKind=y,this.name=P,this.rhs=I}render({es5:y,_n:P}){const I=y?a.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${I} ${this.name}${L};`+P}optimizeNames(y,P){if(y[this.name.str])return this.rhs&&(this.rhs=H(this.rhs,y,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class u extends n{constructor(y,P,I){super(),this.lhs=y,this.rhs=P,this.sideEffects=I}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,P){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=H(this.rhs,y,P),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return U(y,this.rhs)}}class l extends u{constructor(y,P,I,L){super(y,I,L),this.op=P}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class m extends n{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class f extends n{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class E extends n{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class w extends n{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,P){return this.code=H(this.code,y,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class $ extends n{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((P,I)=>P+I.render(y),"")}optimizeNodes(){const{nodes:y}=this;let P=y.length;for(;P--;){const I=y[P].optimizeNodes();Array.isArray(I)?y.splice(P,1,...I):I?y[P]=I:y.splice(P,1)}return y.length>0?this:void 0}optimizeNames(y,P){const{nodes:I}=this;let L=I.length;for(;L--;){const z=I[L];z.optimizeNames(y,P)||(X(y,z.names),I.splice(L,1))}return I.length>0?this:void 0}get names(){return this.nodes.reduce((y,P)=>K(y,P.names),{})}}class v extends ${render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class b extends ${}class o extends v{}o.kind="else";class d extends v{constructor(y,P){super(P),this.condition=y}render(y){let P=`if(${this.condition})`+super.render(y);return this.else&&(P+="else "+this.else.render(y)),P}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let P=this.else;if(P){const I=P.optimizeNodes();P=this.else=Array.isArray(I)?new o(I):I}if(P)return y===!1?P instanceof d?P:P.nodes:this.nodes.length?this:new d(te(y),P instanceof d?[P]:P.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,P){var I;if(this.else=(I=this.else)===null||I===void 0?void 0:I.optimizeNames(y,P),!!(super.optimizeNames(y,P)||this.else))return this.condition=H(this.condition,y,P),this}get names(){const y=super.names;return U(y,this.condition),this.else&&K(y,this.else.names),y}}d.kind="if";class r extends v{}r.kind="for";class c extends r{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,P){if(super.optimizeNames(y,P))return this.iteration=H(this.iteration,y,P),this}get names(){return K(super.names,this.iteration.names)}}class _ extends r{constructor(y,P,I,L){super(),this.varKind=y,this.name=P,this.from=I,this.to=L}render(y){const P=y.es5?a.varKinds.var:this.varKind,{name:I,from:L,to:z}=this;return`for(${P} ${I}=${L}; ${I}<${z}; ${I}++)`+super.render(y)}get names(){const y=U(super.names,this.from);return U(y,this.to)}}class i extends r{constructor(y,P,I,L){super(),this.loop=y,this.varKind=P,this.name=I,this.iterable=L}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,P){if(super.optimizeNames(y,P))return this.iterable=H(this.iterable,y,P),this}get names(){return K(super.names,this.iterable.names)}}class g extends v{constructor(y,P,I){super(),this.name=y,this.args=P,this.async=I}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}g.kind="func";class S extends ${render(y){return"return "+super.render(y)}}S.kind="return";class N extends v{render(y){let P="try"+super.render(y);return this.catch&&(P+=this.catch.render(y)),this.finally&&(P+=this.finally.render(y)),P}optimizeNodes(){var y,P;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(y,P){var I,L;return super.optimizeNames(y,P),(I=this.catch)===null||I===void 0||I.optimizeNames(y,P),(L=this.finally)===null||L===void 0||L.optimizeNames(y,P),this}get names(){const y=super.names;return this.catch&&K(y,this.catch.names),this.finally&&K(y,this.finally.names),y}}class T extends v{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}T.kind="catch";class D extends v{render(y){return"finally"+super.render(y)}}D.kind="finally";class V{constructor(y,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
|
|
2
|
-
`:""},this._extScope=y,this._scope=new a.Scope({parent:y}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,P){const I=this._extScope.value(y,P);return(this._values[I.prefix]||(this._values[I.prefix]=new Set)).add(I),I}getScopeValue(y,P){return this._extScope.getValue(y,P)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,P,I,L){const z=this._scope.toName(P);return I!==void 0&&L&&(this._constants[z.str]=I),this._leafNode(new p(y,z,I)),z}const(y,P,I){return this._def(a.varKinds.const,y,P,I)}let(y,P,I){return this._def(a.varKinds.let,y,P,I)}var(y,P,I){return this._def(a.varKinds.var,y,P,I)}assign(y,P,I){return this._leafNode(new u(y,P,I))}add(y,P){return this._leafNode(new l(y,e.operators.ADD,P))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new w(y)),this}object(...y){const P=["{"];for(const[I,L]of y)P.length>1&&P.push(","),P.push(I),(I!==L||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,L));return P.push("}"),new t._Code(P)}if(y,P,I){if(this._blockNode(new d(y)),P&&I)this.code(P).else().code(I).endIf();else if(P)this.code(P).endIf();else if(I)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new d(y))}else(){return this._elseNode(new o)}endIf(){return this._endBlockNode(d,o)}_for(y,P){return this._blockNode(y),P&&this.code(P).endFor(),this}for(y,P){return this._for(new c(y),P)}forRange(y,P,I,L,z=this.opts.es5?a.varKinds.var:a.varKinds.let){const Q=this._scope.toName(y);return this._for(new _(z,Q,P,I),()=>L(Q))}forOf(y,P,I,L=a.varKinds.const){const z=this._scope.toName(y);if(this.opts.es5){const Q=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${Q}.length`,B=>{this.var(z,(0,t._)`${Q}[${B}]`),I(z)})}return this._for(new i("of",L,z,P),()=>I(z))}forIn(y,P,I,L=this.opts.es5?a.varKinds.var:a.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${P})`,I);const z=this._scope.toName(y);return this._for(new i("in",L,z,P),()=>I(z))}endFor(){return this._endBlockNode(r)}label(y){return this._leafNode(new m(y))}break(y){return this._leafNode(new f(y))}return(y){const P=new S;if(this._blockNode(P),this.code(y),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(y,P,I){if(!P&&!I)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new N;if(this._blockNode(L),this.code(y),P){const z=this.name("e");this._currNode=L.catch=new T(z),P(z)}return I&&(this._currNode=L.finally=new D,this.code(I)),this._endBlockNode(T,D)}throw(y){return this._leafNode(new E(y))}block(y,P){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(P),this}endBlock(y){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const I=this._nodes.length-P;if(I<0||y!==void 0&&I!==y)throw new Error(`CodeGen: wrong number of nodes: ${I} vs ${y} expected`);return this._nodes.length=P,this}func(y,P=t.nil,I,L){return this._blockNode(new g(y,P,I)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,P){const I=this._currNode;if(I instanceof y||P&&I instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${y.kind}/${P.kind}`:y.kind}"`)}_elseNode(y){const P=this._currNode;if(!(P instanceof d))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const P=this._nodes;P[P.length-1]=y}}e.CodeGen=V;function K(k,y){for(const P in y)k[P]=(k[P]||0)+(y[P]||0);return k}function U(k,y){return y instanceof t._CodeOrName?K(k,y.names):k}function H(k,y,P){if(k instanceof t.Name)return I(k);if(!L(k))return k;return new t._Code(k._items.reduce((z,Q)=>(Q instanceof t.Name&&(Q=I(Q)),Q instanceof t._Code?z.push(...Q._items):z.push(Q),z),[]));function I(z){const Q=P[z.str];return Q===void 0||y[z.str]!==1?z:(delete y[z.str],Q)}function L(z){return z instanceof t._Code&&z._items.some(Q=>Q instanceof t.Name&&y[Q.str]===1&&P[Q.str]!==void 0)}}function X(k,y){for(const P in y)k[P]=(k[P]||0)-(y[P]||0)}function te(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${C(k)}`}e.not=te;const fe=R(e.operators.AND);function Z(...k){return k.reduce(fe)}e.and=Z;const ie=R(e.operators.OR);function M(...k){return k.reduce(ie)}e.or=M;function R(k){return(y,P)=>y===t.nil?P:P===t.nil?y:(0,t._)`${C(y)} ${k} ${C(P)}`}function C(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(zt)),zt}var G={},gr;function Y(){if(gr)return G;gr=1,Object.defineProperty(G,"__esModule",{value:!0}),G.checkStrictMode=G.getErrorPath=G.Type=G.useFunc=G.setEvaluated=G.evaluatedPropsToName=G.mergeEvaluated=G.eachItem=G.unescapeJsonPointer=G.escapeJsonPointer=G.escapeFragment=G.unescapeFragment=G.schemaRefOrVal=G.schemaHasRulesButRef=G.schemaHasRules=G.checkUnknownRules=G.alwaysValidSchema=G.toHash=void 0;const e=W(),t=Ot();function a(i){const g={};for(const S of i)g[S]=!0;return g}G.toHash=a;function s(i,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(h(i,g),!n(g,i.self.RULES.all))}G.alwaysValidSchema=s;function h(i,g=i.schema){const{opts:S,self:N}=i;if(!S.strictSchema||typeof g=="boolean")return;const T=N.RULES.keywords;for(const D in g)T[D]||_(i,`unknown keyword: "${D}"`)}G.checkUnknownRules=h;function n(i,g){if(typeof i=="boolean")return!i;for(const S in i)if(g[S])return!0;return!1}G.schemaHasRules=n;function p(i,g){if(typeof i=="boolean")return!i;for(const S in i)if(S!=="$ref"&&g.all[S])return!0;return!1}G.schemaHasRulesButRef=p;function u({topSchemaRef:i,schemaPath:g},S,N,T){if(!T){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${i}${g}${(0,e.getProperty)(N)}`}G.schemaRefOrVal=u;function l(i){return E(decodeURIComponent(i))}G.unescapeFragment=l;function m(i){return encodeURIComponent(f(i))}G.escapeFragment=m;function f(i){return typeof i=="number"?`${i}`:i.replace(/~/g,"~0").replace(/\//g,"~1")}G.escapeJsonPointer=f;function E(i){return i.replace(/~1/g,"/").replace(/~0/g,"~")}G.unescapeJsonPointer=E;function w(i,g){if(Array.isArray(i))for(const S of i)g(S);else g(i)}G.eachItem=w;function $({mergeNames:i,mergeToName:g,mergeValues:S,resultToName:N}){return(T,D,V,K)=>{const U=V===void 0?D:V instanceof e.Name?(D instanceof e.Name?i(T,D,V):g(T,D,V),V):D instanceof e.Name?(g(T,V,D),D):S(D,V);return K===e.Name&&!(U instanceof e.Name)?N(T,U):U}}G.mergeEvaluated={props:$({mergeNames:(i,g,S)=>i.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{i.if((0,e._)`${g} === true`,()=>i.assign(S,!0),()=>i.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(i,g,S)=>i.if((0,e._)`${S} !== true`,()=>{g===!0?i.assign(S,!0):(i.assign(S,(0,e._)`${S} || {}`),b(i,S,g))}),mergeValues:(i,g)=>i===!0?!0:{...i,...g},resultToName:v}),items:$({mergeNames:(i,g,S)=>i.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>i.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(i,g,S)=>i.if((0,e._)`${S} !== true`,()=>i.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(i,g)=>i===!0?!0:Math.max(i,g),resultToName:(i,g)=>i.var("items",g)})};function v(i,g){if(g===!0)return i.var("props",!0);const S=i.var("props",(0,e._)`{}`);return g!==void 0&&b(i,S,g),S}G.evaluatedPropsToName=v;function b(i,g,S){Object.keys(S).forEach(N=>i.assign((0,e._)`${g}${(0,e.getProperty)(N)}`,!0))}G.setEvaluated=b;const o={};function d(i,g){return i.scopeValue("func",{ref:g,code:o[g.code]||(o[g.code]=new t._Code(g.code))})}G.useFunc=d;var r;(function(i){i[i.Num=0]="Num",i[i.Str=1]="Str"})(r||(G.Type=r={}));function c(i,g,S){if(i instanceof e.Name){const N=g===r.Num;return S?N?(0,e._)`"[" + ${i} + "]"`:(0,e._)`"['" + ${i} + "']"`:N?(0,e._)`"/" + ${i}`:(0,e._)`"/" + ${i}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(i).toString():"/"+f(i)}G.getErrorPath=c;function _(i,g,S=i.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);i.self.logger.warn(g)}}return G.checkStrictMode=_,G}var Ue={},_r;function Se(){if(_r)return Ue;_r=1,Object.defineProperty(Ue,"__esModule",{value:!0});const e=W(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Ue.default=t,Ue}var $r;function kt(){return $r||($r=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=W(),a=Y(),s=Se();e.keywordError={message:({keyword:o})=>(0,t.str)`must pass "${o}" keyword validation`},e.keyword$DataError={message:({keyword:o,schemaType:d})=>d?(0,t.str)`"${o}" keyword must be ${d} ($data)`:(0,t.str)`"${o}" keyword is invalid ($data)`};function h(o,d=e.keywordError,r,c){const{it:_}=o,{gen:i,compositeRule:g,allErrors:S}=_,N=E(o,d,r);c??(g||S)?l(i,N):m(_,(0,t._)`[${N}]`)}e.reportError=h;function n(o,d=e.keywordError,r){const{it:c}=o,{gen:_,compositeRule:i,allErrors:g}=c,S=E(o,d,r);l(_,S),i||g||m(c,s.default.vErrors)}e.reportExtraError=n;function p(o,d){o.assign(s.default.errors,d),o.if((0,t._)`${s.default.vErrors} !== null`,()=>o.if(d,()=>o.assign((0,t._)`${s.default.vErrors}.length`,d),()=>o.assign(s.default.vErrors,null)))}e.resetErrorsCount=p;function u({gen:o,keyword:d,schemaValue:r,data:c,errsCount:_,it:i}){if(_===void 0)throw new Error("ajv implementation error");const g=o.name("err");o.forRange("i",_,s.default.errors,S=>{o.const(g,(0,t._)`${s.default.vErrors}[${S}]`),o.if((0,t._)`${g}.instancePath === undefined`,()=>o.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(s.default.instancePath,i.errorPath))),o.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${i.errSchemaPath}/${d}`),i.opts.verbose&&(o.assign((0,t._)`${g}.schema`,r),o.assign((0,t._)`${g}.data`,c))})}e.extendErrors=u;function l(o,d){const r=o.const("err",d);o.if((0,t._)`${s.default.vErrors} === null`,()=>o.assign(s.default.vErrors,(0,t._)`[${r}]`),(0,t._)`${s.default.vErrors}.push(${r})`),o.code((0,t._)`${s.default.errors}++`)}function m(o,d){const{gen:r,validateName:c,schemaEnv:_}=o;_.$async?r.throw((0,t._)`new ${o.ValidationError}(${d})`):(r.assign((0,t._)`${c}.errors`,d),r.return(!1))}const f={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function E(o,d,r){const{createErrors:c}=o.it;return c===!1?(0,t._)`{}`:w(o,d,r)}function w(o,d,r={}){const{gen:c,it:_}=o,i=[$(_,r),v(o,r)];return b(o,d,i),c.object(...i)}function $({errorPath:o},{instancePath:d}){const r=d?(0,t.str)`${o}${(0,a.getErrorPath)(d,a.Type.Str)}`:o;return[s.default.instancePath,(0,t.strConcat)(s.default.instancePath,r)]}function v({keyword:o,it:{errSchemaPath:d}},{schemaPath:r,parentSchema:c}){let _=c?d:(0,t.str)`${d}/${o}`;return r&&(_=(0,t.str)`${_}${(0,a.getErrorPath)(r,a.Type.Str)}`),[f.schemaPath,_]}function b(o,{params:d,message:r},c){const{keyword:_,data:i,schemaValue:g,it:S}=o,{opts:N,propertyName:T,topSchemaRef:D,schemaPath:V}=S;c.push([f.keyword,_],[f.params,typeof d=="function"?d(o):d||(0,t._)`{}`]),N.messages&&c.push([f.message,typeof r=="function"?r(o):r]),N.verbose&&c.push([f.schema,g],[f.parentSchema,(0,t._)`${D}${V}`],[s.default.data,i]),T&&c.push([f.propertyName,T])}})(Ut)),Ut}var wr;function Ns(){if(wr)return Pe;wr=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.boolOrEmptySchema=Pe.topBoolOrEmptySchema=void 0;const e=kt(),t=W(),a=Se(),s={message:"boolean schema is false"};function h(u){const{gen:l,schema:m,validateName:f}=u;m===!1?p(u,!1):typeof m=="object"&&m.$async===!0?l.return(a.default.data):(l.assign((0,t._)`${f}.errors`,null),l.return(!0))}Pe.topBoolOrEmptySchema=h;function n(u,l){const{gen:m,schema:f}=u;f===!1?(m.var(l,!1),p(u)):m.var(l,!0)}Pe.boolOrEmptySchema=n;function p(u,l){const{gen:m,data:f}=u,E={gen:m,keyword:"false schema",data:f,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:u};(0,e.reportError)(E,s,void 0,l)}return Pe}var se={},Oe={},br;function Un(){if(br)return Oe;br=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getRules=Oe.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function a(h){return typeof h=="string"&&t.has(h)}Oe.isJSONType=a;function s(){const h={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...h,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},h.number,h.string,h.array,h.object],post:{rules:[]},all:{},keywords:{}}}return Oe.getRules=s,Oe}var we={},Er;function zn(){if(Er)return we;Er=1,Object.defineProperty(we,"__esModule",{value:!0}),we.shouldUseRule=we.shouldUseGroup=we.schemaHasRulesForType=void 0;function e({schema:s,self:h},n){const p=h.RULES.types[n];return p&&p!==!0&&t(s,p)}we.schemaHasRulesForType=e;function t(s,h){return h.rules.some(n=>a(s,n))}we.shouldUseGroup=t;function a(s,h){var n;return s[h.keyword]!==void 0||((n=h.definition.implements)===null||n===void 0?void 0:n.some(p=>s[p]!==void 0))}return we.shouldUseRule=a,we}var Sr;function Rt(){if(Sr)return se;Sr=1,Object.defineProperty(se,"__esModule",{value:!0}),se.reportTypeError=se.checkDataTypes=se.checkDataType=se.coerceAndCheckDataType=se.getJSONTypes=se.getSchemaTypes=se.DataType=void 0;const e=Un(),t=zn(),a=kt(),s=W(),h=Y();var n;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(n||(se.DataType=n={}));function p(r){const c=u(r.type);if(c.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!c.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&c.push("null")}return c}se.getSchemaTypes=p;function u(r){const c=Array.isArray(r)?r:r?[r]:[];if(c.every(e.isJSONType))return c;throw new Error("type must be JSONType or JSONType[]: "+c.join(","))}se.getJSONTypes=u;function l(r,c){const{gen:_,data:i,opts:g}=r,S=f(c,g.coerceTypes),N=c.length>0&&!(S.length===0&&c.length===1&&(0,t.schemaHasRulesForType)(r,c[0]));if(N){const T=v(c,i,g.strictNumbers,n.Wrong);_.if(T,()=>{S.length?E(r,c,S):o(r)})}return N}se.coerceAndCheckDataType=l;const m=new Set(["string","number","integer","boolean","null"]);function f(r,c){return c?r.filter(_=>m.has(_)||c==="array"&&_==="array"):[]}function E(r,c,_){const{gen:i,data:g,opts:S}=r,N=i.let("dataType",(0,s._)`typeof ${g}`),T=i.let("coerced",(0,s._)`undefined`);S.coerceTypes==="array"&&i.if((0,s._)`${N} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>i.assign(g,(0,s._)`${g}[0]`).assign(N,(0,s._)`typeof ${g}`).if(v(c,g,S.strictNumbers),()=>i.assign(T,g))),i.if((0,s._)`${T} !== undefined`);for(const V of _)(m.has(V)||V==="array"&&S.coerceTypes==="array")&&D(V);i.else(),o(r),i.endIf(),i.if((0,s._)`${T} !== undefined`,()=>{i.assign(g,T),w(r,T)});function D(V){switch(V){case"string":i.elseIf((0,s._)`${N} == "number" || ${N} == "boolean"`).assign(T,(0,s._)`"" + ${g}`).elseIf((0,s._)`${g} === null`).assign(T,(0,s._)`""`);return;case"number":i.elseIf((0,s._)`${N} == "boolean" || ${g} === null
|
|
3
|
-
|| (${N} == "string" && ${g} && ${g} == +${g})`).assign(T,(0,s._)`+${g}`);return;case"integer":i.elseIf((0,s._)`${N} === "boolean" || ${g} === null
|
|
4
|
-
|| (${N} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(T,(0,s._)`+${g}`);return;case"boolean":i.elseIf((0,s._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(T,!1).elseIf((0,s._)`${g} === "true" || ${g} === 1`).assign(T,!0);return;case"null":i.elseIf((0,s._)`${g} === "" || ${g} === 0 || ${g} === false`),i.assign(T,null);return;case"array":i.elseIf((0,s._)`${N} === "string" || ${N} === "number"
|
|
5
|
-
|| ${N} === "boolean" || ${g} === null`).assign(T,(0,s._)`[${g}]`)}}}function w({gen:r,parentData:c,parentDataProperty:_},i){r.if((0,s._)`${c} !== undefined`,()=>r.assign((0,s._)`${c}[${_}]`,i))}function $(r,c,_,i=n.Correct){const g=i===n.Correct?s.operators.EQ:s.operators.NEQ;let S;switch(r){case"null":return(0,s._)`${c} ${g} null`;case"array":S=(0,s._)`Array.isArray(${c})`;break;case"object":S=(0,s._)`${c} && typeof ${c} == "object" && !Array.isArray(${c})`;break;case"integer":S=N((0,s._)`!(${c} % 1) && !isNaN(${c})`);break;case"number":S=N();break;default:return(0,s._)`typeof ${c} ${g} ${r}`}return i===n.Correct?S:(0,s.not)(S);function N(T=s.nil){return(0,s.and)((0,s._)`typeof ${c} == "number"`,T,_?(0,s._)`isFinite(${c})`:s.nil)}}se.checkDataType=$;function v(r,c,_,i){if(r.length===1)return $(r[0],c,_,i);let g;const S=(0,h.toHash)(r);if(S.array&&S.object){const N=(0,s._)`typeof ${c} != "object"`;g=S.null?N:(0,s._)`!${c} || ${N}`,delete S.null,delete S.array,delete S.object}else g=s.nil;S.number&&delete S.integer;for(const N in S)g=(0,s.and)(g,$(N,c,_,i));return g}se.checkDataTypes=v;const b={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:c})=>typeof r=="string"?(0,s._)`{type: ${r}}`:(0,s._)`{type: ${c}}`};function o(r){const c=d(r);(0,a.reportError)(c,b)}se.reportTypeError=o;function d(r){const{gen:c,data:_,schema:i}=r,g=(0,h.schemaRefOrVal)(r,i,"type");return{gen:c,keyword:"type",data:_,schema:i.type,schemaCode:g,schemaValue:g,parentSchema:i,params:{},it:r}}return se}var Me={},Pr;function ks(){if(Pr)return Me;Pr=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.assignDefaults=void 0;const e=W(),t=Y();function a(h,n){const{properties:p,items:u}=h.schema;if(n==="object"&&p)for(const l in p)s(h,l,p[l].default);else n==="array"&&Array.isArray(u)&&u.forEach((l,m)=>s(h,m,l.default))}Me.assignDefaults=a;function s(h,n,p){const{gen:u,compositeRule:l,data:m,opts:f}=h;if(p===void 0)return;const E=(0,e._)`${m}${(0,e.getProperty)(n)}`;if(l){(0,t.checkStrictMode)(h,`default is ignored for: ${E}`);return}let w=(0,e._)`${E} === undefined`;f.useDefaults==="empty"&&(w=(0,e._)`${w} || ${E} === null || ${E} === ""`),u.if(w,(0,e._)`${E} = ${(0,e.stringify)(p)}`)}return Me}var me={},x={},Or;function ye(){if(Or)return x;Or=1,Object.defineProperty(x,"__esModule",{value:!0}),x.validateUnion=x.validateArray=x.usePattern=x.callValidateCode=x.schemaProperties=x.allSchemaProperties=x.noPropertyInData=x.propertyInData=x.isOwnProperty=x.hasPropFunc=x.reportMissingProp=x.checkMissingProp=x.checkReportMissingProp=void 0;const e=W(),t=Y(),a=Se(),s=Y();function h(r,c){const{gen:_,data:i,it:g}=r;_.if(f(_,i,c,g.opts.ownProperties),()=>{r.setParams({missingProperty:(0,e._)`${c}`},!0),r.error()})}x.checkReportMissingProp=h;function n({gen:r,data:c,it:{opts:_}},i,g){return(0,e.or)(...i.map(S=>(0,e.and)(f(r,c,S,_.ownProperties),(0,e._)`${g} = ${S}`)))}x.checkMissingProp=n;function p(r,c){r.setParams({missingProperty:c},!0),r.error()}x.reportMissingProp=p;function u(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}x.hasPropFunc=u;function l(r,c,_){return(0,e._)`${u(r)}.call(${c}, ${_})`}x.isOwnProperty=l;function m(r,c,_,i){const g=(0,e._)`${c}${(0,e.getProperty)(_)} !== undefined`;return i?(0,e._)`${g} && ${l(r,c,_)}`:g}x.propertyInData=m;function f(r,c,_,i){const g=(0,e._)`${c}${(0,e.getProperty)(_)} === undefined`;return i?(0,e.or)(g,(0,e.not)(l(r,c,_))):g}x.noPropertyInData=f;function E(r){return r?Object.keys(r).filter(c=>c!=="__proto__"):[]}x.allSchemaProperties=E;function w(r,c){return E(c).filter(_=>!(0,t.alwaysValidSchema)(r,c[_]))}x.schemaProperties=w;function $({schemaCode:r,data:c,it:{gen:_,topSchemaRef:i,schemaPath:g,errorPath:S},it:N},T,D,V){const K=V?(0,e._)`${r}, ${c}, ${i}${g}`:c,U=[[a.default.instancePath,(0,e.strConcat)(a.default.instancePath,S)],[a.default.parentData,N.parentData],[a.default.parentDataProperty,N.parentDataProperty],[a.default.rootData,a.default.rootData]];N.opts.dynamicRef&&U.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const H=(0,e._)`${K}, ${_.object(...U)}`;return D!==e.nil?(0,e._)`${T}.call(${D}, ${H})`:(0,e._)`${T}(${H})`}x.callValidateCode=$;const v=(0,e._)`new RegExp`;function b({gen:r,it:{opts:c}},_){const i=c.unicodeRegExp?"u":"",{regExp:g}=c.code,S=g(_,i);return r.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?v:(0,s.useFunc)(r,g)}(${_}, ${i})`})}x.usePattern=b;function o(r){const{gen:c,data:_,keyword:i,it:g}=r,S=c.name("valid");if(g.allErrors){const T=c.let("valid",!0);return N(()=>c.assign(T,!1)),T}return c.var(S,!0),N(()=>c.break()),S;function N(T){const D=c.const("len",(0,e._)`${_}.length`);c.forRange("i",0,D,V=>{r.subschema({keyword:i,dataProp:V,dataPropType:t.Type.Num},S),c.if((0,e.not)(S),T)})}}x.validateArray=o;function d(r){const{gen:c,schema:_,keyword:i,it:g}=r;if(!Array.isArray(_))throw new Error("ajv implementation error");if(_.some(D=>(0,t.alwaysValidSchema)(g,D))&&!g.opts.unevaluated)return;const N=c.let("valid",!1),T=c.name("_valid");c.block(()=>_.forEach((D,V)=>{const K=r.subschema({keyword:i,schemaProp:V,compositeRule:!0},T);c.assign(N,(0,e._)`${N} || ${T}`),r.mergeValidEvaluated(K,T)||c.if((0,e.not)(N))})),r.result(N,()=>r.reset(),()=>r.error(!0))}return x.validateUnion=d,x}var Rr;function Ts(){if(Rr)return me;Rr=1,Object.defineProperty(me,"__esModule",{value:!0}),me.validateKeywordUsage=me.validSchemaType=me.funcKeywordCode=me.macroKeywordCode=void 0;const e=W(),t=Se(),a=ye(),s=kt();function h(w,$){const{gen:v,keyword:b,schema:o,parentSchema:d,it:r}=w,c=$.macro.call(r.self,o,d,r),_=m(v,b,c);r.opts.validateSchema!==!1&&r.self.validateSchema(c,!0);const i=v.name("valid");w.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${r.errSchemaPath}/${b}`,topSchemaRef:_,compositeRule:!0},i),w.pass(i,()=>w.error(!0))}me.macroKeywordCode=h;function n(w,$){var v;const{gen:b,keyword:o,schema:d,parentSchema:r,$data:c,it:_}=w;l(_,$);const i=!c&&$.compile?$.compile.call(_.self,d,r,_):$.validate,g=m(b,o,i),S=b.let("valid");w.block$data(S,N),w.ok((v=$.valid)!==null&&v!==void 0?v:S);function N(){if($.errors===!1)V(),$.modifying&&p(w),K(()=>w.error());else{const U=$.async?T():D();$.modifying&&p(w),K(()=>u(w,U))}}function T(){const U=b.let("ruleErrs",null);return b.try(()=>V((0,e._)`await `),H=>b.assign(S,!1).if((0,e._)`${H} instanceof ${_.ValidationError}`,()=>b.assign(U,(0,e._)`${H}.errors`),()=>b.throw(H))),U}function D(){const U=(0,e._)`${g}.errors`;return b.assign(U,null),V(e.nil),U}function V(U=$.async?(0,e._)`await `:e.nil){const H=_.opts.passContext?t.default.this:t.default.self,X=!("compile"in $&&!c||$.schema===!1);b.assign(S,(0,e._)`${U}${(0,a.callValidateCode)(w,g,H,X)}`,$.modifying)}function K(U){var H;b.if((0,e.not)((H=$.valid)!==null&&H!==void 0?H:S),U)}}me.funcKeywordCode=n;function p(w){const{gen:$,data:v,it:b}=w;$.if(b.parentData,()=>$.assign(v,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function u(w,$){const{gen:v}=w;v.if((0,e._)`Array.isArray(${$})`,()=>{v.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${$} : ${t.default.vErrors}.concat(${$})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,s.extendErrors)(w)},()=>w.error())}function l({schemaEnv:w},$){if($.async&&!w.$async)throw new Error("async keyword in sync schema")}function m(w,$,v){if(v===void 0)throw new Error(`keyword "${$}" failed to compile`);return w.scopeValue("keyword",typeof v=="function"?{ref:v}:{ref:v,code:(0,e.stringify)(v)})}function f(w,$,v=!1){return!$.length||$.some(b=>b==="array"?Array.isArray(w):b==="object"?w&&typeof w=="object"&&!Array.isArray(w):typeof w==b||v&&typeof w>"u")}me.validSchemaType=f;function E({schema:w,opts:$,self:v,errSchemaPath:b},o,d){if(Array.isArray(o.keyword)?!o.keyword.includes(d):o.keyword!==d)throw new Error("ajv implementation error");const r=o.dependencies;if(r?.some(c=>!Object.prototype.hasOwnProperty.call(w,c)))throw new Error(`parent schema must have dependencies of ${d}: ${r.join(",")}`);if(o.validateSchema&&!o.validateSchema(w[d])){const _=`keyword "${d}" value is invalid at path "${b}": `+v.errorsText(o.validateSchema.errors);if($.validateSchema==="log")v.logger.error(_);else throw new Error(_)}}return me.validateKeywordUsage=E,me}var be={},jr;function Is(){if(jr)return be;jr=1,Object.defineProperty(be,"__esModule",{value:!0}),be.extendSubschemaMode=be.extendSubschemaData=be.getSubschema=void 0;const e=W(),t=Y();function a(n,{keyword:p,schemaProp:u,schema:l,schemaPath:m,errSchemaPath:f,topSchemaRef:E}){if(p!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(p!==void 0){const w=n.schema[p];return u===void 0?{schema:w,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(p)}`,errSchemaPath:`${n.errSchemaPath}/${p}`}:{schema:w[u],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(p)}${(0,e.getProperty)(u)}`,errSchemaPath:`${n.errSchemaPath}/${p}/${(0,t.escapeFragment)(u)}`}}if(l!==void 0){if(m===void 0||f===void 0||E===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:m,topSchemaRef:E,errSchemaPath:f}}throw new Error('either "keyword" or "schema" must be passed')}be.getSubschema=a;function s(n,p,{dataProp:u,dataPropType:l,data:m,dataTypes:f,propertyName:E}){if(m!==void 0&&u!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:w}=p;if(u!==void 0){const{errorPath:v,dataPathArr:b,opts:o}=p,d=w.let("data",(0,e._)`${p.data}${(0,e.getProperty)(u)}`,!0);$(d),n.errorPath=(0,e.str)`${v}${(0,t.getErrorPath)(u,l,o.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${u}`,n.dataPathArr=[...b,n.parentDataProperty]}if(m!==void 0){const v=m instanceof e.Name?m:w.let("data",m,!0);$(v),E!==void 0&&(n.propertyName=E)}f&&(n.dataTypes=f);function $(v){n.data=v,n.dataLevel=p.dataLevel+1,n.dataTypes=[],p.definedProperties=new Set,n.parentData=p.data,n.dataNames=[...p.dataNames,v]}}be.extendSubschemaData=s;function h(n,{jtdDiscriminator:p,jtdMetadata:u,compositeRule:l,createErrors:m,allErrors:f}){l!==void 0&&(n.compositeRule=l),m!==void 0&&(n.createErrors=m),f!==void 0&&(n.allErrors=f),n.jtdDiscriminator=p,n.jtdMetadata=u}return be.extendSubschemaMode=h,be}var ae={},Gt,Nr;function Kn(){return Nr||(Nr=1,Gt=function e(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var s,h,n;if(Array.isArray(t)){if(s=t.length,s!=a.length)return!1;for(h=s;h--!==0;)if(!e(t[h],a[h]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if(n=Object.keys(t),s=n.length,s!==Object.keys(a).length)return!1;for(h=s;h--!==0;)if(!Object.prototype.hasOwnProperty.call(a,n[h]))return!1;for(h=s;h--!==0;){var p=n[h];if(!e(t[p],a[p]))return!1}return!0}return t!==t&&a!==a}),Gt}var Jt={exports:{}},kr;function qs(){if(kr)return Jt.exports;kr=1;var e=Jt.exports=function(s,h,n){typeof h=="function"&&(n=h,h={}),n=h.cb||n;var p=typeof n=="function"?n:n.pre||function(){},u=n.post||function(){};t(h,p,u,s,"",s)};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 t(s,h,n,p,u,l,m,f,E,w){if(p&&typeof p=="object"&&!Array.isArray(p)){h(p,u,l,m,f,E,w);for(var $ in p){var v=p[$];if(Array.isArray(v)){if($ in e.arrayKeywords)for(var b=0;b<v.length;b++)t(s,h,n,v[b],u+"/"+$+"/"+b,l,u,$,p,b)}else if($ in e.propsKeywords){if(v&&typeof v=="object")for(var o in v)t(s,h,n,v[o],u+"/"+$+"/"+a(o),l,u,$,p,o)}else($ in e.keywords||s.allKeys&&!($ in e.skipKeywords))&&t(s,h,n,v,u+"/"+$,l,u,$,p)}n(p,u,l,m,f,E,w)}}function a(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}return Jt.exports}var Tr;function Tt(){if(Tr)return ae;Tr=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.getSchemaRefs=ae.resolveUrl=ae.normalizeId=ae._getFullPath=ae.getFullPath=ae.inlineRef=void 0;const e=Y(),t=Kn(),a=qs(),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function h(b,o=!0){return typeof b=="boolean"?!0:o===!0?!p(b):o?u(b)<=o:!1}ae.inlineRef=h;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function p(b){for(const o in b){if(n.has(o))return!0;const d=b[o];if(Array.isArray(d)&&d.some(p)||typeof d=="object"&&p(d))return!0}return!1}function u(b){let o=0;for(const d in b){if(d==="$ref")return 1/0;if(o++,!s.has(d)&&(typeof b[d]=="object"&&(0,e.eachItem)(b[d],r=>o+=u(r)),o===1/0))return 1/0}return o}function l(b,o="",d){d!==!1&&(o=E(o));const r=b.parse(o);return m(b,r)}ae.getFullPath=l;function m(b,o){return b.serialize(o).split("#")[0]+"#"}ae._getFullPath=m;const f=/#\/?$/;function E(b){return b?b.replace(f,""):""}ae.normalizeId=E;function w(b,o,d){return d=E(d),b.resolve(o,d)}ae.resolveUrl=w;const $=/^[a-z_][-a-z0-9._]*$/i;function v(b,o){if(typeof b=="boolean")return{};const{schemaId:d,uriResolver:r}=this.opts,c=E(b[d]||o),_={"":c},i=l(r,c,!1),g={},S=new Set;return a(b,{allKeys:!0},(D,V,K,U)=>{if(U===void 0)return;const H=i+V;let X=_[U];typeof D[d]=="string"&&(X=te.call(this,D[d])),fe.call(this,D.$anchor),fe.call(this,D.$dynamicAnchor),_[V]=X;function te(Z){const ie=this.opts.uriResolver.resolve;if(Z=E(X?ie(X,Z):Z),S.has(Z))throw T(Z);S.add(Z);let M=this.refs[Z];return typeof M=="string"&&(M=this.refs[M]),typeof M=="object"?N(D,M.schema,Z):Z!==E(H)&&(Z[0]==="#"?(N(D,g[Z],Z),g[Z]=D):this.refs[Z]=H),Z}function fe(Z){if(typeof Z=="string"){if(!$.test(Z))throw new Error(`invalid anchor "${Z}"`);te.call(this,`#${Z}`)}}}),g;function N(D,V,K){if(V!==void 0&&!t(D,V))throw T(K)}function T(D){return new Error(`reference "${D}" resolves to more than one schema`)}}return ae.getSchemaRefs=v,ae}var Ir;function It(){if(Ir)return $e;Ir=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.getData=$e.KeywordCxt=$e.validateFunctionCode=void 0;const e=Ns(),t=Rt(),a=zn(),s=Rt(),h=ks(),n=Ts(),p=Is(),u=W(),l=Se(),m=Tt(),f=Y(),E=kt();function w(O){if(i(O)&&(S(O),_(O))){o(O);return}$(O,()=>(0,e.topBoolOrEmptySchema)(O))}$e.validateFunctionCode=w;function $({gen:O,validateName:j,schema:q,schemaEnv:A,opts:F},J){F.code.es5?O.func(j,(0,u._)`${l.default.data}, ${l.default.valCxt}`,A.$async,()=>{O.code((0,u._)`"use strict"; ${r(q,F)}`),b(O,F),O.code(J)}):O.func(j,(0,u._)`${l.default.data}, ${v(F)}`,A.$async,()=>O.code(r(q,F)).code(J))}function v(O){return(0,u._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${O.dynamicRef?(0,u._)`, ${l.default.dynamicAnchors}={}`:u.nil}}={}`}function b(O,j){O.if(l.default.valCxt,()=>{O.var(l.default.instancePath,(0,u._)`${l.default.valCxt}.${l.default.instancePath}`),O.var(l.default.parentData,(0,u._)`${l.default.valCxt}.${l.default.parentData}`),O.var(l.default.parentDataProperty,(0,u._)`${l.default.valCxt}.${l.default.parentDataProperty}`),O.var(l.default.rootData,(0,u._)`${l.default.valCxt}.${l.default.rootData}`),j.dynamicRef&&O.var(l.default.dynamicAnchors,(0,u._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{O.var(l.default.instancePath,(0,u._)`""`),O.var(l.default.parentData,(0,u._)`undefined`),O.var(l.default.parentDataProperty,(0,u._)`undefined`),O.var(l.default.rootData,l.default.data),j.dynamicRef&&O.var(l.default.dynamicAnchors,(0,u._)`{}`)})}function o(O){const{schema:j,opts:q,gen:A}=O;$(O,()=>{q.$comment&&j.$comment&&U(O),D(O),A.let(l.default.vErrors,null),A.let(l.default.errors,0),q.unevaluated&&d(O),N(O),H(O)})}function d(O){const{gen:j,validateName:q}=O;O.evaluated=j.const("evaluated",(0,u._)`${q}.evaluated`),j.if((0,u._)`${O.evaluated}.dynamicProps`,()=>j.assign((0,u._)`${O.evaluated}.props`,(0,u._)`undefined`)),j.if((0,u._)`${O.evaluated}.dynamicItems`,()=>j.assign((0,u._)`${O.evaluated}.items`,(0,u._)`undefined`))}function r(O,j){const q=typeof O=="object"&&O[j.schemaId];return q&&(j.code.source||j.code.process)?(0,u._)`/*# sourceURL=${q} */`:u.nil}function c(O,j){if(i(O)&&(S(O),_(O))){g(O,j);return}(0,e.boolOrEmptySchema)(O,j)}function _({schema:O,self:j}){if(typeof O=="boolean")return!O;for(const q in O)if(j.RULES.all[q])return!0;return!1}function i(O){return typeof O.schema!="boolean"}function g(O,j){const{schema:q,gen:A,opts:F}=O;F.$comment&&q.$comment&&U(O),V(O),K(O);const J=A.const("_errs",l.default.errors);N(O,J),A.var(j,(0,u._)`${J} === ${l.default.errors}`)}function S(O){(0,f.checkUnknownRules)(O),T(O)}function N(O,j){if(O.opts.jtd)return te(O,[],!1,j);const q=(0,t.getSchemaTypes)(O.schema),A=(0,t.coerceAndCheckDataType)(O,q);te(O,q,!A,j)}function T(O){const{schema:j,errSchemaPath:q,opts:A,self:F}=O;j.$ref&&A.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(j,F.RULES)&&F.logger.warn(`$ref: keywords ignored in schema at path "${q}"`)}function D(O){const{schema:j,opts:q}=O;j.default!==void 0&&q.useDefaults&&q.strictSchema&&(0,f.checkStrictMode)(O,"default is ignored in the schema root")}function V(O){const j=O.schema[O.opts.schemaId];j&&(O.baseId=(0,m.resolveUrl)(O.opts.uriResolver,O.baseId,j))}function K(O){if(O.schema.$async&&!O.schemaEnv.$async)throw new Error("async schema in sync schema")}function U({gen:O,schemaEnv:j,schema:q,errSchemaPath:A,opts:F}){const J=q.$comment;if(F.$comment===!0)O.code((0,u._)`${l.default.self}.logger.log(${J})`);else if(typeof F.$comment=="function"){const re=(0,u.str)`${A}/$comment`,pe=O.scopeValue("root",{ref:j.root});O.code((0,u._)`${l.default.self}.opts.$comment(${J}, ${re}, ${pe}.schema)`)}}function H(O){const{gen:j,schemaEnv:q,validateName:A,ValidationError:F,opts:J}=O;q.$async?j.if((0,u._)`${l.default.errors} === 0`,()=>j.return(l.default.data),()=>j.throw((0,u._)`new ${F}(${l.default.vErrors})`)):(j.assign((0,u._)`${A}.errors`,l.default.vErrors),J.unevaluated&&X(O),j.return((0,u._)`${l.default.errors} === 0`))}function X({gen:O,evaluated:j,props:q,items:A}){q instanceof u.Name&&O.assign((0,u._)`${j}.props`,q),A instanceof u.Name&&O.assign((0,u._)`${j}.items`,A)}function te(O,j,q,A){const{gen:F,schema:J,data:re,allErrors:pe,opts:ue,self:ce}=O,{RULES:ne}=ce;if(J.$ref&&(ue.ignoreKeywordsWithRef||!(0,f.schemaHasRulesButRef)(J,ne))){F.block(()=>L(O,"$ref",ne.all.$ref.definition));return}ue.jtd||Z(O,j),F.block(()=>{for(const he of ne.rules)je(he);je(ne.post)});function je(he){(0,a.shouldUseGroup)(J,he)&&(he.type?(F.if((0,s.checkDataType)(he.type,re,ue.strictNumbers)),fe(O,he),j.length===1&&j[0]===he.type&&q&&(F.else(),(0,s.reportTypeError)(O)),F.endIf()):fe(O,he),pe||F.if((0,u._)`${l.default.errors} === ${A||0}`))}}function fe(O,j){const{gen:q,schema:A,opts:{useDefaults:F}}=O;F&&(0,h.assignDefaults)(O,j.type),q.block(()=>{for(const J of j.rules)(0,a.shouldUseRule)(A,J)&&L(O,J.keyword,J.definition,j.type)})}function Z(O,j){O.schemaEnv.meta||!O.opts.strictTypes||(ie(O,j),O.opts.allowUnionTypes||M(O,j),R(O,O.dataTypes))}function ie(O,j){if(j.length){if(!O.dataTypes.length){O.dataTypes=j;return}j.forEach(q=>{k(O.dataTypes,q)||P(O,`type "${q}" not allowed by context "${O.dataTypes.join(",")}"`)}),y(O,j)}}function M(O,j){j.length>1&&!(j.length===2&&j.includes("null"))&&P(O,"use allowUnionTypes to allow union type keyword")}function R(O,j){const q=O.self.RULES.all;for(const A in q){const F=q[A];if(typeof F=="object"&&(0,a.shouldUseRule)(O.schema,F)){const{type:J}=F.definition;J.length&&!J.some(re=>C(j,re))&&P(O,`missing type "${J.join(",")}" for keyword "${A}"`)}}}function C(O,j){return O.includes(j)||j==="number"&&O.includes("integer")}function k(O,j){return O.includes(j)||j==="integer"&&O.includes("number")}function y(O,j){const q=[];for(const A of O.dataTypes)k(j,A)?q.push(A):j.includes("integer")&&A==="number"&&q.push("integer");O.dataTypes=q}function P(O,j){const q=O.schemaEnv.baseId+O.errSchemaPath;j+=` at "${q}" (strictTypes)`,(0,f.checkStrictMode)(O,j,O.opts.strictTypes)}class I{constructor(j,q,A){if((0,n.validateKeywordUsage)(j,q,A),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=A,this.data=j.data,this.schema=j.schema[A],this.$data=q.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(j,this.schema,A,this.$data),this.schemaType=q.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=q,this.$data)this.schemaCode=j.gen.const("vSchema",B(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,q.schemaType,q.allowUndefined))throw new Error(`${A} value must be ${JSON.stringify(q.schemaType)}`);("code"in q?q.trackErrors:q.errors!==!1)&&(this.errsCount=j.gen.const("_errs",l.default.errors))}result(j,q,A){this.failResult((0,u.not)(j),q,A)}failResult(j,q,A){this.gen.if(j),A?A():this.error(),q?(this.gen.else(),q(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,q){this.failResult((0,u.not)(j),void 0,q)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:q}=this;this.fail((0,u._)`${q} !== undefined && (${(0,u.or)(this.invalid$data(),j)})`)}error(j,q,A){if(q){this.setParams(q),this._error(j,A),this.setParams({});return}this._error(j,A)}_error(j,q){(j?E.reportExtraError:E.reportError)(this,this.def.error,q)}$dataError(){(0,E.reportError)(this,this.def.$dataError||E.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,E.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,q){q?Object.assign(this.params,j):this.params=j}block$data(j,q,A=u.nil){this.gen.block(()=>{this.check$data(j,A),q()})}check$data(j=u.nil,q=u.nil){if(!this.$data)return;const{gen:A,schemaCode:F,schemaType:J,def:re}=this;A.if((0,u.or)((0,u._)`${F} === undefined`,q)),j!==u.nil&&A.assign(j,!0),(J.length||re.validateSchema)&&(A.elseIf(this.invalid$data()),this.$dataError(),j!==u.nil&&A.assign(j,!1)),A.else()}invalid$data(){const{gen:j,schemaCode:q,schemaType:A,def:F,it:J}=this;return(0,u.or)(re(),pe());function re(){if(A.length){if(!(q instanceof u.Name))throw new Error("ajv implementation error");const ue=Array.isArray(A)?A:[A];return(0,u._)`${(0,s.checkDataTypes)(ue,q,J.opts.strictNumbers,s.DataType.Wrong)}`}return u.nil}function pe(){if(F.validateSchema){const ue=j.scopeValue("validate$data",{ref:F.validateSchema});return(0,u._)`!${ue}(${q})`}return u.nil}}subschema(j,q){const A=(0,p.getSubschema)(this.it,j);(0,p.extendSubschemaData)(A,this.it,j),(0,p.extendSubschemaMode)(A,j);const F={...this.it,...A,items:void 0,props:void 0};return c(F,q),F}mergeEvaluated(j,q){const{it:A,gen:F}=this;A.opts.unevaluated&&(A.props!==!0&&j.props!==void 0&&(A.props=f.mergeEvaluated.props(F,j.props,A.props,q)),A.items!==!0&&j.items!==void 0&&(A.items=f.mergeEvaluated.items(F,j.items,A.items,q)))}mergeValidEvaluated(j,q){const{it:A,gen:F}=this;if(A.opts.unevaluated&&(A.props!==!0||A.items!==!0))return F.if(q,()=>this.mergeEvaluated(j,u.Name)),!0}}$e.KeywordCxt=I;function L(O,j,q,A){const F=new I(O,q,j);"code"in q?q.code(F,A):F.$data&&q.validate?(0,n.funcKeywordCode)(F,q):"macro"in q?(0,n.macroKeywordCode)(F,q):(q.compile||q.validate)&&(0,n.funcKeywordCode)(F,q)}const z=/^\/(?:[^~]|~0|~1)*$/,Q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function B(O,{dataLevel:j,dataNames:q,dataPathArr:A}){let F,J;if(O==="")return l.default.rootData;if(O[0]==="/"){if(!z.test(O))throw new Error(`Invalid JSON-pointer: ${O}`);F=O,J=l.default.rootData}else{const ce=Q.exec(O);if(!ce)throw new Error(`Invalid JSON-pointer: ${O}`);const ne=+ce[1];if(F=ce[2],F==="#"){if(ne>=j)throw new Error(ue("property/index",ne));return A[j-ne]}if(ne>j)throw new Error(ue("data",ne));if(J=q[j-ne],!F)return J}let re=J;const pe=F.split("/");for(const ce of pe)ce&&(J=(0,u._)`${J}${(0,u.getProperty)((0,f.unescapeJsonPointer)(ce))}`,re=(0,u._)`${re} && ${J}`);return re;function ue(ce,ne){return`Cannot access ${ce} ${ne} levels up, current level is ${j}`}}return $e.getData=B,$e}var ze={},qr;function sr(){if(qr)return ze;qr=1,Object.defineProperty(ze,"__esModule",{value:!0});class e extends Error{constructor(a){super("validation failed"),this.errors=a,this.ajv=this.validation=!0}}return ze.default=e,ze}var Ke={},Cr;function qt(){if(Cr)return Ke;Cr=1,Object.defineProperty(Ke,"__esModule",{value:!0});const e=Tt();class t extends Error{constructor(s,h,n,p){super(p||`can't resolve reference ${n} from id ${h}`),this.missingRef=(0,e.resolveUrl)(s,h,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(s,this.missingRef))}}return Ke.default=t,Ke}var le={},Mr;function or(){if(Mr)return le;Mr=1,Object.defineProperty(le,"__esModule",{value:!0}),le.resolveSchema=le.getCompilingSchema=le.resolveRef=le.compileSchema=le.SchemaEnv=void 0;const e=W(),t=sr(),a=Se(),s=Tt(),h=Y(),n=It();class p{constructor(d){var r;this.refs={},this.dynamicAnchors={};let c;typeof d.schema=="object"&&(c=d.schema),this.schema=d.schema,this.schemaId=d.schemaId,this.root=d.root||this,this.baseId=(r=d.baseId)!==null&&r!==void 0?r:(0,s.normalizeId)(c?.[d.schemaId||"$id"]),this.schemaPath=d.schemaPath,this.localRefs=d.localRefs,this.meta=d.meta,this.$async=c?.$async,this.refs={}}}le.SchemaEnv=p;function u(o){const d=f.call(this,o);if(d)return d;const r=(0,s.getFullPath)(this.opts.uriResolver,o.root.baseId),{es5:c,lines:_}=this.opts.code,{ownProperties:i}=this.opts,g=new e.CodeGen(this.scope,{es5:c,lines:_,ownProperties:i});let S;o.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const N=g.scopeName("validate");o.validateName=N;const T={gen:g,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:o.schema,code:(0,e.stringify)(o.schema)}:{ref:o.schema}),validateName:N,ValidationError:S,schema:o.schema,schemaEnv:o,rootId:r,baseId:o.baseId||r,schemaPath:e.nil,errSchemaPath:o.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let D;try{this._compilations.add(o),(0,n.validateFunctionCode)(T),g.optimize(this.opts.code.optimize);const V=g.toString();D=`${g.scopeRefs(a.default.scope)}return ${V}`,this.opts.code.process&&(D=this.opts.code.process(D,o));const U=new Function(`${a.default.self}`,`${a.default.scope}`,D)(this,this.scope.get());if(this.scope.value(N,{ref:U}),U.errors=null,U.schema=o.schema,U.schemaEnv=o,o.$async&&(U.$async=!0),this.opts.code.source===!0&&(U.source={validateName:N,validateCode:V,scopeValues:g._values}),this.opts.unevaluated){const{props:H,items:X}=T;U.evaluated={props:H instanceof e.Name?void 0:H,items:X instanceof e.Name?void 0:X,dynamicProps:H instanceof e.Name,dynamicItems:X instanceof e.Name},U.source&&(U.source.evaluated=(0,e.stringify)(U.evaluated))}return o.validate=U,o}catch(V){throw delete o.validate,delete o.validateName,D&&this.logger.error("Error compiling schema, function code:",D),V}finally{this._compilations.delete(o)}}le.compileSchema=u;function l(o,d,r){var c;r=(0,s.resolveUrl)(this.opts.uriResolver,d,r);const _=o.refs[r];if(_)return _;let i=w.call(this,o,r);if(i===void 0){const g=(c=o.localRefs)===null||c===void 0?void 0:c[r],{schemaId:S}=this.opts;g&&(i=new p({schema:g,schemaId:S,root:o,baseId:d}))}if(i!==void 0)return o.refs[r]=m.call(this,i)}le.resolveRef=l;function m(o){return(0,s.inlineRef)(o.schema,this.opts.inlineRefs)?o.schema:o.validate?o:u.call(this,o)}function f(o){for(const d of this._compilations)if(E(d,o))return d}le.getCompilingSchema=f;function E(o,d){return o.schema===d.schema&&o.root===d.root&&o.baseId===d.baseId}function w(o,d){let r;for(;typeof(r=this.refs[d])=="string";)d=r;return r||this.schemas[d]||$.call(this,o,d)}function $(o,d){const r=this.opts.uriResolver.parse(d),c=(0,s._getFullPath)(this.opts.uriResolver,r);let _=(0,s.getFullPath)(this.opts.uriResolver,o.baseId,void 0);if(Object.keys(o.schema).length>0&&c===_)return b.call(this,r,o);const i=(0,s.normalizeId)(c),g=this.refs[i]||this.schemas[i];if(typeof g=="string"){const S=$.call(this,o,g);return typeof S?.schema!="object"?void 0:b.call(this,r,S)}if(typeof g?.schema=="object"){if(g.validate||u.call(this,g),i===(0,s.normalizeId)(d)){const{schema:S}=g,{schemaId:N}=this.opts,T=S[N];return T&&(_=(0,s.resolveUrl)(this.opts.uriResolver,_,T)),new p({schema:S,schemaId:N,root:o,baseId:_})}return b.call(this,r,g)}}le.resolveSchema=$;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(o,{baseId:d,schema:r,root:c}){var _;if(((_=o.fragment)===null||_===void 0?void 0:_[0])!=="/")return;for(const S of o.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const N=r[(0,h.unescapeFragment)(S)];if(N===void 0)return;r=N;const T=typeof r=="object"&&r[this.opts.schemaId];!v.has(S)&&T&&(d=(0,s.resolveUrl)(this.opts.uriResolver,d,T))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,h.schemaHasRulesButRef)(r,this.RULES)){const S=(0,s.resolveUrl)(this.opts.uriResolver,d,r.$ref);i=$.call(this,c,S)}const{schemaId:g}=this.opts;if(i=i||new p({schema:r,schemaId:g,root:c,baseId:d}),i.schema!==i.root.schema)return i}return le}const Cs="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Ms="Meta-schema for $data reference (JSON AnySchema extension proposal)",Ds="object",As=["$data"],Vs={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Ls=!1,Fs={$id:Cs,description:Ms,type:Ds,required:As,properties:Vs,additionalProperties:Ls};var He={},De={exports:{}},Wt,Dr;function Hn(){if(Dr)return Wt;Dr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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 a(w){let $="",v=0,b=0;for(b=0;b<w.length;b++)if(v=w[b].charCodeAt(0),v!==48){if(!(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102))return"";$+=w[b];break}for(b+=1;b<w.length;b++){if(v=w[b].charCodeAt(0),!(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102))return"";$+=w[b]}return $}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function h(w){return w.length=0,!0}function n(w,$,v){if(w.length){const b=a(w);if(b!=="")$.push(b);else return v.error=!0,!1;w.length=0}return!0}function p(w){let $=0;const v={error:!1,address:"",zone:""},b=[],o=[];let d=!1,r=!1,c=n;for(let _=0;_<w.length;_++){const i=w[_];if(!(i==="["||i==="]"))if(i===":"){if(d===!0&&(r=!0),!c(o,b,v))break;if(++$>7){v.error=!0;break}_>0&&w[_-1]===":"&&(d=!0),b.push(":");continue}else if(i==="%"){if(!c(o,b,v))break;c=h}else{o.push(i);continue}}return o.length&&(c===h?v.zone=o.join(""):r?b.push(o.join("")):b.push(a(o))),v.address=b.join(""),v}function u(w){if(l(w,":")<2)return{host:w,isIPV6:!1};const $=p(w);if($.error)return{host:w,isIPV6:!1};{let v=$.address,b=$.address;return $.zone&&(v+="%"+$.zone,b+="%25"+$.zone),{host:v,isIPV6:!0,escapedHost:b}}}function l(w,$){let v=0;for(let b=0;b<w.length;b++)w[b]===$&&v++;return v}function m(w){let $=w;const v=[];let b=-1,o=0;for(;o=$.length;){if(o===1){if($===".")break;if($==="/"){v.push("/");break}else{v.push($);break}}else if(o===2){if($[0]==="."){if($[1]===".")break;if($[1]==="/"){$=$.slice(2);continue}}else if($[0]==="/"&&($[1]==="."||$[1]==="/")){v.push("/");break}}else if(o===3&&$==="/.."){v.length!==0&&v.pop(),v.push("/");break}if($[0]==="."){if($[1]==="."){if($[2]==="/"){$=$.slice(3);continue}}else if($[1]==="/"){$=$.slice(2);continue}}else if($[0]==="/"&&$[1]==="."){if($[2]==="/"){$=$.slice(2);continue}else if($[2]==="."&&$[3]==="/"){$=$.slice(3),v.length!==0&&v.pop();continue}}if((b=$.indexOf("/",1))===-1){v.push($);break}else v.push($.slice(0,b)),$=$.slice(b)}return v.join("")}function f(w,$){const v=$!==!0?escape:unescape;return w.scheme!==void 0&&(w.scheme=v(w.scheme)),w.userinfo!==void 0&&(w.userinfo=v(w.userinfo)),w.host!==void 0&&(w.host=v(w.host)),w.path!==void 0&&(w.path=v(w.path)),w.query!==void 0&&(w.query=v(w.query)),w.fragment!==void 0&&(w.fragment=v(w.fragment)),w}function E(w){const $=[];if(w.userinfo!==void 0&&($.push(w.userinfo),$.push("@")),w.host!==void 0){let v=unescape(w.host);if(!t(v)){const b=u(v);b.isIPV6===!0?v=`[${b.escapedHost}]`:v=w.host}$.push(v)}return(typeof w.port=="number"||typeof w.port=="string")&&($.push(":"),$.push(String(w.port))),$.length?$.join(""):void 0}return Wt={nonSimpleDomain:s,recomposeAuthority:E,normalizeComponentEncoding:f,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:a},Wt}var Bt,Ar;function Us(){if(Ar)return Bt;Ar=1;const{isUUID:e}=Hn(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,a=["http","https","ws","wss","urn","urn:uuid"];function s(i){return a.indexOf(i)!==-1}function h(i){return i.secure===!0?!0:i.secure===!1?!1:i.scheme?i.scheme.length===3&&(i.scheme[0]==="w"||i.scheme[0]==="W")&&(i.scheme[1]==="s"||i.scheme[1]==="S")&&(i.scheme[2]==="s"||i.scheme[2]==="S"):!1}function n(i){return i.host||(i.error=i.error||"HTTP URIs must have a host."),i}function p(i){const g=String(i.scheme).toLowerCase()==="https";return(i.port===(g?443:80)||i.port==="")&&(i.port=void 0),i.path||(i.path="/"),i}function u(i){return i.secure=h(i),i.resourceName=(i.path||"/")+(i.query?"?"+i.query:""),i.path=void 0,i.query=void 0,i}function l(i){if((i.port===(h(i)?443:80)||i.port==="")&&(i.port=void 0),typeof i.secure=="boolean"&&(i.scheme=i.secure?"wss":"ws",i.secure=void 0),i.resourceName){const[g,S]=i.resourceName.split("?");i.path=g&&g!=="/"?g:void 0,i.query=S,i.resourceName=void 0}return i.fragment=void 0,i}function m(i,g){if(!i.path)return i.error="URN can not be parsed",i;const S=i.path.match(t);if(S){const N=g.scheme||i.scheme||"urn";i.nid=S[1].toLowerCase(),i.nss=S[2];const T=`${N}:${g.nid||i.nid}`,D=_(T);i.path=void 0,D&&(i=D.parse(i,g))}else i.error=i.error||"URN can not be parsed.";return i}function f(i,g){if(i.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||i.scheme||"urn",N=i.nid.toLowerCase(),T=`${S}:${g.nid||N}`,D=_(T);D&&(i=D.serialize(i,g));const V=i,K=i.nss;return V.path=`${N||g.nid}:${K}`,g.skipEscape=!0,V}function E(i,g){const S=i;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function w(i){const g=i;return g.nss=(i.uuid||"").toLowerCase(),g}const $={scheme:"http",domainHost:!0,parse:n,serialize:p},v={scheme:"https",domainHost:$.domainHost,parse:n,serialize:p},b={scheme:"ws",domainHost:!0,parse:u,serialize:l},o={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},c={http:$,https:v,ws:b,wss:o,urn:{scheme:"urn",parse:m,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:E,serialize:w,skipNormalize:!0}};Object.setPrototypeOf(c,null);function _(i){return i&&(c[i]||c[i.toLowerCase()])||void 0}return Bt={wsIsSecure:h,SCHEMES:c,isValidSchemeName:s,getSchemeHandler:_},Bt}var Vr;function zs(){if(Vr)return De.exports;Vr=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:a,normalizeComponentEncoding:s,isIPv4:h,nonSimpleDomain:n}=Hn(),{SCHEMES:p,getSchemeHandler:u}=Us();function l(o,d){return typeof o=="string"?o=w(v(o,d),d):typeof o=="object"&&(o=v(w(o,d),d)),o}function m(o,d,r){const c=r?Object.assign({scheme:"null"},r):{scheme:"null"},_=f(v(o,c),v(d,c),c,!0);return c.skipEscape=!0,w(_,c)}function f(o,d,r,c){const _={};return c||(o=v(w(o,r),r),d=v(w(d,r),r)),r=r||{},!r.tolerant&&d.scheme?(_.scheme=d.scheme,_.userinfo=d.userinfo,_.host=d.host,_.port=d.port,_.path=t(d.path||""),_.query=d.query):(d.userinfo!==void 0||d.host!==void 0||d.port!==void 0?(_.userinfo=d.userinfo,_.host=d.host,_.port=d.port,_.path=t(d.path||""),_.query=d.query):(d.path?(d.path[0]==="/"?_.path=t(d.path):((o.userinfo!==void 0||o.host!==void 0||o.port!==void 0)&&!o.path?_.path="/"+d.path:o.path?_.path=o.path.slice(0,o.path.lastIndexOf("/")+1)+d.path:_.path=d.path,_.path=t(_.path)),_.query=d.query):(_.path=o.path,d.query!==void 0?_.query=d.query:_.query=o.query),_.userinfo=o.userinfo,_.host=o.host,_.port=o.port),_.scheme=o.scheme),_.fragment=d.fragment,_}function E(o,d,r){return typeof o=="string"?(o=unescape(o),o=w(s(v(o,r),!0),{...r,skipEscape:!0})):typeof o=="object"&&(o=w(s(o,!0),{...r,skipEscape:!0})),typeof d=="string"?(d=unescape(d),d=w(s(v(d,r),!0),{...r,skipEscape:!0})):typeof d=="object"&&(d=w(s(d,!0),{...r,skipEscape:!0})),o.toLowerCase()===d.toLowerCase()}function w(o,d){const r={host:o.host,scheme:o.scheme,userinfo:o.userinfo,port:o.port,path:o.path,query:o.query,nid:o.nid,nss:o.nss,uuid:o.uuid,fragment:o.fragment,reference:o.reference,resourceName:o.resourceName,secure:o.secure,error:""},c=Object.assign({},d),_=[],i=u(c.scheme||r.scheme);i&&i.serialize&&i.serialize(r,c),r.path!==void 0&&(c.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),c.reference!=="suffix"&&r.scheme&&_.push(r.scheme,":");const g=a(r);if(g!==void 0&&(c.reference!=="suffix"&&_.push("//"),_.push(g),r.path&&r.path[0]!=="/"&&_.push("/")),r.path!==void 0){let S=r.path;!c.absolutePath&&(!i||!i.absolutePath)&&(S=t(S)),g===void 0&&S[0]==="/"&&S[1]==="/"&&(S="/%2F"+S.slice(2)),_.push(S)}return r.query!==void 0&&_.push("?",r.query),r.fragment!==void 0&&_.push("#",r.fragment),_.join("")}const $=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(o,d){const r=Object.assign({},d),c={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let _=!1;r.reference==="suffix"&&(r.scheme?o=r.scheme+":"+o:o="//"+o);const i=o.match($);if(i){if(c.scheme=i[1],c.userinfo=i[3],c.host=i[4],c.port=parseInt(i[5],10),c.path=i[6]||"",c.query=i[7],c.fragment=i[8],isNaN(c.port)&&(c.port=i[5]),c.host)if(h(c.host)===!1){const N=e(c.host);c.host=N.host.toLowerCase(),_=N.isIPV6}else _=!0;c.scheme===void 0&&c.userinfo===void 0&&c.host===void 0&&c.port===void 0&&c.query===void 0&&!c.path?c.reference="same-document":c.scheme===void 0?c.reference="relative":c.fragment===void 0?c.reference="absolute":c.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==c.reference&&(c.error=c.error||"URI is not a "+r.reference+" reference.");const g=u(r.scheme||c.scheme);if(!r.unicodeSupport&&(!g||!g.unicodeSupport)&&c.host&&(r.domainHost||g&&g.domainHost)&&_===!1&&n(c.host))try{c.host=URL.domainToASCII(c.host.toLowerCase())}catch(S){c.error=c.error||"Host's domain name can not be converted to ASCII: "+S}(!g||g&&!g.skipNormalize)&&(o.indexOf("%")!==-1&&(c.scheme!==void 0&&(c.scheme=unescape(c.scheme)),c.host!==void 0&&(c.host=unescape(c.host))),c.path&&(c.path=escape(unescape(c.path))),c.fragment&&(c.fragment=encodeURI(decodeURIComponent(c.fragment)))),g&&g.parse&&g.parse(c,r)}else c.error=c.error||"URI can not be parsed.";return c}const b={SCHEMES:p,normalize:l,resolve:m,resolveComponent:f,equal:E,serialize:w,parse:v};return De.exports=b,De.exports.default=b,De.exports.fastUri=b,De.exports}var Lr;function Ks(){if(Lr)return He;Lr=1,Object.defineProperty(He,"__esModule",{value:!0});const e=zs();return e.code='require("ajv/dist/runtime/uri").default',He.default=e,He}var Fr;function Hs(){return Fr||(Fr=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 t=It();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var a=W();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});const s=sr(),h=qt(),n=Un(),p=or(),u=W(),l=Tt(),m=Rt(),f=Y(),E=Fs,w=Ks(),$=(M,R)=>new RegExp(M,R);$.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),o={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."},d={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},r=200;function c(M){var R,C,k,y,P,I,L,z,Q,B,O,j,q,A,F,J,re,pe,ue,ce,ne,je,he,Ct,Mt;const Ce=M.strict,Dt=(R=M.code)===null||R===void 0?void 0:R.optimize,ar=Dt===!0||Dt===void 0?1:Dt||0,ur=(k=(C=M.code)===null||C===void 0?void 0:C.regExp)!==null&&k!==void 0?k:$,Qn=(y=M.uriResolver)!==null&&y!==void 0?y:w.default;return{strictSchema:(I=(P=M.strictSchema)!==null&&P!==void 0?P:Ce)!==null&&I!==void 0?I:!0,strictNumbers:(z=(L=M.strictNumbers)!==null&&L!==void 0?L:Ce)!==null&&z!==void 0?z:!0,strictTypes:(B=(Q=M.strictTypes)!==null&&Q!==void 0?Q:Ce)!==null&&B!==void 0?B:"log",strictTuples:(j=(O=M.strictTuples)!==null&&O!==void 0?O:Ce)!==null&&j!==void 0?j:"log",strictRequired:(A=(q=M.strictRequired)!==null&&q!==void 0?q:Ce)!==null&&A!==void 0?A:!1,code:M.code?{...M.code,optimize:ar,regExp:ur}:{optimize:ar,regExp:ur},loopRequired:(F=M.loopRequired)!==null&&F!==void 0?F:r,loopEnum:(J=M.loopEnum)!==null&&J!==void 0?J:r,meta:(re=M.meta)!==null&&re!==void 0?re:!0,messages:(pe=M.messages)!==null&&pe!==void 0?pe:!0,inlineRefs:(ue=M.inlineRefs)!==null&&ue!==void 0?ue:!0,schemaId:(ce=M.schemaId)!==null&&ce!==void 0?ce:"$id",addUsedSchema:(ne=M.addUsedSchema)!==null&&ne!==void 0?ne:!0,validateSchema:(je=M.validateSchema)!==null&&je!==void 0?je:!0,validateFormats:(he=M.validateFormats)!==null&&he!==void 0?he:!0,unicodeRegExp:(Ct=M.unicodeRegExp)!==null&&Ct!==void 0?Ct:!0,int32range:(Mt=M.int32range)!==null&&Mt!==void 0?Mt:!0,uriResolver:Qn}}class _{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...c(R)};const{es5:C,lines:k}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:b,es5:C,lines:k}),this.logger=K(R.logger);const y=R.validateFormats;R.validateFormats=!1,this.RULES=(0,n.getRules)(),i.call(this,o,R,"NOT SUPPORTED"),i.call(this,d,R,"DEPRECATED","warn"),this._metaOpts=D.call(this),R.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&T.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),S.call(this),R.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:C,schemaId:k}=this.opts;let y=E;k==="id"&&(y={...E},y.id=y.$id,delete y.$id),C&&R&&this.addMetaSchema(y,y[k],!1)}defaultMeta(){const{meta:R,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[C]||R:void 0}validate(R,C){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 y=k(C);return"$async"in k||(this.errors=k.errors),y}compile(R,C){const k=this._addSchema(R,C);return k.validate||this._compileSchemaEnv(k)}compileAsync(R,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return y.call(this,R,C);async function y(B,O){await P.call(this,B.$schema);const j=this._addSchema(B,O);return j.validate||I.call(this,j)}async function P(B){B&&!this.getSchema(B)&&await y.call(this,{$ref:B},!0)}async function I(B){try{return this._compileSchemaEnv(B)}catch(O){if(!(O instanceof h.default))throw O;return L.call(this,O),await z.call(this,O.missingSchema),I.call(this,B)}}function L({missingSchema:B,missingRef:O}){if(this.refs[B])throw new Error(`AnySchema ${B} is loaded but ${O} cannot be resolved`)}async function z(B){const O=await Q.call(this,B);this.refs[B]||await P.call(this,O.$schema),this.refs[B]||this.addSchema(O,B,C)}async function Q(B){const O=this._loading[B];if(O)return O;try{return await(this._loading[B]=k(B))}finally{delete this._loading[B]}}}addSchema(R,C,k,y=this.opts.validateSchema){if(Array.isArray(R)){for(const I of R)this.addSchema(I,void 0,k,y);return this}let P;if(typeof R=="object"){const{schemaId:I}=this.opts;if(P=R[I],P!==void 0&&typeof P!="string")throw new Error(`schema ${I} must be string`)}return C=(0,l.normalizeId)(C||P),this._checkUnique(C),this.schemas[C]=this._addSchema(R,k,C,y,!0),this}addMetaSchema(R,C,k=this.opts.validateSchema){return this.addSchema(R,C,!0,k),this}validateSchema(R,C){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 y=this.validate(k,R);if(!y&&C){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return y}getSchema(R){let C;for(;typeof(C=g.call(this,R))=="string";)R=C;if(C===void 0){const{schemaId:k}=this.opts,y=new p.SchemaEnv({schema:{},schemaId:k});if(C=p.resolveSchema.call(this,y,R),!C)return;this.refs[R]=C}return C.validate||this._compileSchemaEnv(C)}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 C=g.call(this,R);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const C=R;this._cache.delete(C);let k=R[this.opts.schemaId];return k&&(k=(0,l.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const C of R)this.addKeyword(C);return this}addKeyword(R,C){let k;if(typeof R=="string")k=R,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=k);else if(typeof R=="object"&&C===void 0){if(C=R,k=C.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(H.call(this,k,C),!C)return(0,f.eachItem)(k,P=>X.call(this,P)),this;fe.call(this,C);const y={...C,type:(0,m.getJSONTypes)(C.type),schemaType:(0,m.getJSONTypes)(C.schemaType)};return(0,f.eachItem)(k,y.type.length===0?P=>X.call(this,P,y):P=>y.type.forEach(I=>X.call(this,P,y,I))),this}getKeyword(R){const C=this.RULES.all[R];return typeof C=="object"?C.definition:!!C}removeKeyword(R){const{RULES:C}=this;delete C.keywords[R],delete C.all[R];for(const k of C.rules){const y=k.rules.findIndex(P=>P.keyword===R);y>=0&&k.rules.splice(y,1)}return this}addFormat(R,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[R]=C,this}errorsText(R=this.errors,{separator:C=", ",dataVar:k="data"}={}){return!R||R.length===0?"No errors":R.map(y=>`${k}${y.instancePath} ${y.message}`).reduce((y,P)=>y+C+P)}$dataMetaSchema(R,C){const k=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const y of C){const P=y.split("/").slice(1);let I=R;for(const L of P)I=I[L];for(const L in k){const z=k[L];if(typeof z!="object")continue;const{$data:Q}=z.definition,B=I[L];Q&&B&&(I[L]=ie(B))}}return R}_removeAllSchemas(R,C){for(const k in R){const y=R[k];(!C||C.test(k))&&(typeof y=="string"?delete R[k]:y&&!y.meta&&(this._cache.delete(y.schema),delete R[k]))}}_addSchema(R,C,k,y=this.opts.validateSchema,P=this.opts.addUsedSchema){let I;const{schemaId:L}=this.opts;if(typeof R=="object")I=R[L];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,l.normalizeId)(I||k);const Q=l.getSchemaRefs.call(this,R,k);return z=new p.SchemaEnv({schema:R,schemaId:L,meta:C,baseId:k,localRefs:Q}),this._cache.set(z.schema,z),P&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=z),y&&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):p.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const C=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,R)}finally{this.opts=C}}}_.ValidationError=s.default,_.MissingRefError=h.default,e.default=_;function i(M,R,C,k="error"){for(const y in M){const P=y;P in R&&this.logger[k](`${C}: option ${y}. ${M[P]}`)}}function g(M){return M=(0,l.normalizeId)(M),this.schemas[M]||this.refs[M]}function S(){const M=this.opts.schemas;if(M)if(Array.isArray(M))this.addSchema(M);else for(const R in M)this.addSchema(M[R],R)}function N(){for(const M in this.opts.formats){const R=this.opts.formats[M];R&&this.addFormat(M,R)}}function T(M){if(Array.isArray(M)){this.addVocabulary(M);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in M){const C=M[R];C.keyword||(C.keyword=R),this.addKeyword(C)}}function D(){const M={...this.opts};for(const R of v)delete M[R];return M}const V={log(){},warn(){},error(){}};function K(M){if(M===!1)return V;if(M===void 0)return console;if(M.log&&M.warn&&M.error)return M;throw new Error("logger must implement log, warn and error methods")}const U=/^[a-z_$][a-z0-9_$:-]*$/i;function H(M,R){const{RULES:C}=this;if((0,f.eachItem)(M,k=>{if(C.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!U.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(M,R,C){var k;const y=R?.post;if(C&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let I=y?P.post:P.rules.find(({type:z})=>z===C);if(I||(I={type:C,rules:[]},P.rules.push(I)),P.keywords[M]=!0,!R)return;const L={keyword:M,definition:{...R,type:(0,m.getJSONTypes)(R.type),schemaType:(0,m.getJSONTypes)(R.schemaType)}};R.before?te.call(this,I,L,R.before):I.rules.push(L),P.all[M]=L,(k=R.implements)===null||k===void 0||k.forEach(z=>this.addKeyword(z))}function te(M,R,C){const k=M.rules.findIndex(y=>y.keyword===C);k>=0?M.rules.splice(k,0,R):(M.rules.push(R),this.logger.warn(`rule ${C} is not defined`))}function fe(M){let{metaSchema:R}=M;R!==void 0&&(M.$data&&this.opts.$data&&(R=ie(R)),M.validateSchema=this.compile(R,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(M){return{anyOf:[M,Z]}}})(Ft)),Ft}var Ge={},Je={},We={},Ur;function Gs(){if(Ur)return We;Ur=1,Object.defineProperty(We,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return We.default=e,We}var Ee={},zr;function Js(){if(zr)return Ee;zr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.callRef=Ee.getValidate=void 0;const e=qt(),t=ye(),a=W(),s=Se(),h=or(),n=Y(),p={keyword:"$ref",schemaType:"string",code(m){const{gen:f,schema:E,it:w}=m,{baseId:$,schemaEnv:v,validateName:b,opts:o,self:d}=w,{root:r}=v;if((E==="#"||E==="#/")&&$===r.baseId)return _();const c=h.resolveRef.call(d,r,$,E);if(c===void 0)throw new e.default(w.opts.uriResolver,$,E);if(c instanceof h.SchemaEnv)return i(c);return g(c);function _(){if(v===r)return l(m,b,v,v.$async);const S=f.scopeValue("root",{ref:r});return l(m,(0,a._)`${S}.validate`,r,r.$async)}function i(S){const N=u(m,S);l(m,N,S,S.$async)}function g(S){const N=f.scopeValue("schema",o.code.source===!0?{ref:S,code:(0,a.stringify)(S)}:{ref:S}),T=f.name("valid"),D=m.subschema({schema:S,dataTypes:[],schemaPath:a.nil,topSchemaRef:N,errSchemaPath:E},T);m.mergeEvaluated(D),m.ok(T)}}};function u(m,f){const{gen:E}=m;return f.validate?E.scopeValue("validate",{ref:f.validate}):(0,a._)`${E.scopeValue("wrapper",{ref:f})}.validate`}Ee.getValidate=u;function l(m,f,E,w){const{gen:$,it:v}=m,{allErrors:b,schemaEnv:o,opts:d}=v,r=d.passContext?s.default.this:a.nil;w?c():_();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");const S=$.let("valid");$.try(()=>{$.code((0,a._)`await ${(0,t.callValidateCode)(m,f,r)}`),g(f),b||$.assign(S,!0)},N=>{$.if((0,a._)`!(${N} instanceof ${v.ValidationError})`,()=>$.throw(N)),i(N),b||$.assign(S,!1)}),m.ok(S)}function _(){m.result((0,t.callValidateCode)(m,f,r),()=>g(f),()=>i(f))}function i(S){const N=(0,a._)`${S}.errors`;$.assign(s.default.vErrors,(0,a._)`${s.default.vErrors} === null ? ${N} : ${s.default.vErrors}.concat(${N})`),$.assign(s.default.errors,(0,a._)`${s.default.vErrors}.length`)}function g(S){var N;if(!v.opts.unevaluated)return;const T=(N=E?.validate)===null||N===void 0?void 0:N.evaluated;if(v.props!==!0)if(T&&!T.dynamicProps)T.props!==void 0&&(v.props=n.mergeEvaluated.props($,T.props,v.props));else{const D=$.var("props",(0,a._)`${S}.evaluated.props`);v.props=n.mergeEvaluated.props($,D,v.props,a.Name)}if(v.items!==!0)if(T&&!T.dynamicItems)T.items!==void 0&&(v.items=n.mergeEvaluated.items($,T.items,v.items));else{const D=$.var("items",(0,a._)`${S}.evaluated.items`);v.items=n.mergeEvaluated.items($,D,v.items,a.Name)}}}return Ee.callRef=l,Ee.default=p,Ee}var Kr;function Ws(){if(Kr)return Je;Kr=1,Object.defineProperty(Je,"__esModule",{value:!0});const e=Gs(),t=Js(),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Je.default=a,Je}var Be={},Xe={},Hr;function Bs(){if(Hr)return Xe;Hr=1,Object.defineProperty(Xe,"__esModule",{value:!0});const e=W(),t=e.operators,a={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},s={message:({keyword:n,schemaCode:p})=>(0,e.str)`must be ${a[n].okStr} ${p}`,params:({keyword:n,schemaCode:p})=>(0,e._)`{comparison: ${a[n].okStr}, limit: ${p}}`},h={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:s,code(n){const{keyword:p,data:u,schemaCode:l}=n;n.fail$data((0,e._)`${u} ${a[p].fail} ${l} || isNaN(${u})`)}};return Xe.default=h,Xe}var Ye={},Gr;function Xs(){if(Gr)return Ye;Gr=1,Object.defineProperty(Ye,"__esModule",{value:!0});const e=W(),a={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must be multiple of ${s}`,params:({schemaCode:s})=>(0,e._)`{multipleOf: ${s}}`},code(s){const{gen:h,data:n,schemaCode:p,it:u}=s,l=u.opts.multipleOfPrecision,m=h.let("res"),f=l?(0,e._)`Math.abs(Math.round(${m}) - ${m}) > 1e-${l}`:(0,e._)`${m} !== parseInt(${m})`;s.fail$data((0,e._)`(${p} === 0 || (${m} = ${n}/${p}, ${f}))`)}};return Ye.default=a,Ye}var Qe={},Ze={},Jr;function Ys(){if(Jr)return Ze;Jr=1,Object.defineProperty(Ze,"__esModule",{value:!0});function e(t){const a=t.length;let s=0,h=0,n;for(;h<a;)s++,n=t.charCodeAt(h++),n>=55296&&n<=56319&&h<a&&(n=t.charCodeAt(h),(n&64512)===56320&&h++);return s}return Ze.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Ze}var Wr;function Qs(){if(Wr)return Qe;Wr=1,Object.defineProperty(Qe,"__esModule",{value:!0});const e=W(),t=Y(),a=Ys(),h={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:p}){const u=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${u} than ${p} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:p,data:u,schemaCode:l,it:m}=n,f=p==="maxLength"?e.operators.GT:e.operators.LT,E=m.opts.unicode===!1?(0,e._)`${u}.length`:(0,e._)`${(0,t.useFunc)(n.gen,a.default)}(${u})`;n.fail$data((0,e._)`${E} ${f} ${l}`)}};return Qe.default=h,Qe}var xe={},Br;function Zs(){if(Br)return xe;Br=1,Object.defineProperty(xe,"__esModule",{value:!0});const e=ye(),t=W(),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:h})=>(0,t.str)`must match pattern "${h}"`,params:({schemaCode:h})=>(0,t._)`{pattern: ${h}}`},code(h){const{data:n,$data:p,schema:u,schemaCode:l,it:m}=h,f=m.opts.unicodeRegExp?"u":"",E=p?(0,t._)`(new RegExp(${l}, ${f}))`:(0,e.usePattern)(h,u);h.fail$data((0,t._)`!${E}.test(${n})`)}};return xe.default=s,xe}var et={},Xr;function xs(){if(Xr)return et;Xr=1,Object.defineProperty(et,"__esModule",{value:!0});const e=W(),a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:h}){const n=s==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${h} properties`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:h,data:n,schemaCode:p}=s,u=h==="maxProperties"?e.operators.GT:e.operators.LT;s.fail$data((0,e._)`Object.keys(${n}).length ${u} ${p}`)}};return et.default=a,et}var tt={},Yr;function eo(){if(Yr)return tt;Yr=1,Object.defineProperty(tt,"__esModule",{value:!0});const e=ye(),t=W(),a=Y(),h={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:p,schema:u,schemaCode:l,data:m,$data:f,it:E}=n,{opts:w}=E;if(!f&&u.length===0)return;const $=u.length>=w.loopRequired;if(E.allErrors?v():b(),w.strictRequired){const r=n.parentSchema.properties,{definedProperties:c}=n.it;for(const _ of u)if(r?.[_]===void 0&&!c.has(_)){const i=E.schemaEnv.baseId+E.errSchemaPath,g=`required property "${_}" is not defined at "${i}" (strictRequired)`;(0,a.checkStrictMode)(E,g,E.opts.strictRequired)}}function v(){if($||f)n.block$data(t.nil,o);else for(const r of u)(0,e.checkReportMissingProp)(n,r)}function b(){const r=p.let("missing");if($||f){const c=p.let("valid",!0);n.block$data(c,()=>d(r,c)),n.ok(c)}else p.if((0,e.checkMissingProp)(n,u,r)),(0,e.reportMissingProp)(n,r),p.else()}function o(){p.forOf("prop",l,r=>{n.setParams({missingProperty:r}),p.if((0,e.noPropertyInData)(p,m,r,w.ownProperties),()=>n.error())})}function d(r,c){n.setParams({missingProperty:r}),p.forOf(r,l,()=>{p.assign(c,(0,e.propertyInData)(p,m,r,w.ownProperties)),p.if((0,t.not)(c),()=>{n.error(),p.break()})},t.nil)}}};return tt.default=h,tt}var rt={},Qr;function to(){if(Qr)return rt;Qr=1,Object.defineProperty(rt,"__esModule",{value:!0});const e=W(),a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:h}){const n=s==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${h} items`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:h,data:n,schemaCode:p}=s,u=h==="maxItems"?e.operators.GT:e.operators.LT;s.fail$data((0,e._)`${n}.length ${u} ${p}`)}};return rt.default=a,rt}var nt={},st={},Zr;function ir(){if(Zr)return st;Zr=1,Object.defineProperty(st,"__esModule",{value:!0});const e=Kn();return e.code='require("ajv/dist/runtime/equal").default',st.default=e,st}var xr;function ro(){if(xr)return nt;xr=1,Object.defineProperty(nt,"__esModule",{value:!0});const e=Rt(),t=W(),a=Y(),s=ir(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:p,j:u}})=>(0,t.str)`must NOT have duplicate items (items ## ${u} and ${p} are identical)`,params:({params:{i:p,j:u}})=>(0,t._)`{i: ${p}, j: ${u}}`},code(p){const{gen:u,data:l,$data:m,schema:f,parentSchema:E,schemaCode:w,it:$}=p;if(!m&&!f)return;const v=u.let("valid"),b=E.items?(0,e.getSchemaTypes)(E.items):[];p.block$data(v,o,(0,t._)`${w} === false`),p.ok(v);function o(){const _=u.let("i",(0,t._)`${l}.length`),i=u.let("j");p.setParams({i:_,j:i}),u.assign(v,!0),u.if((0,t._)`${_} > 1`,()=>(d()?r:c)(_,i))}function d(){return b.length>0&&!b.some(_=>_==="object"||_==="array")}function r(_,i){const g=u.name("item"),S=(0,e.checkDataTypes)(b,g,$.opts.strictNumbers,e.DataType.Wrong),N=u.const("indices",(0,t._)`{}`);u.for((0,t._)`;${_}--;`,()=>{u.let(g,(0,t._)`${l}[${_}]`),u.if(S,(0,t._)`continue`),b.length>1&&u.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),u.if((0,t._)`typeof ${N}[${g}] == "number"`,()=>{u.assign(i,(0,t._)`${N}[${g}]`),p.error(),u.assign(v,!1).break()}).code((0,t._)`${N}[${g}] = ${_}`)})}function c(_,i){const g=(0,a.useFunc)(u,s.default),S=u.name("outer");u.label(S).for((0,t._)`;${_}--;`,()=>u.for((0,t._)`${i} = ${_}; ${i}--;`,()=>u.if((0,t._)`${g}(${l}[${_}], ${l}[${i}])`,()=>{p.error(),u.assign(v,!1).break(S)})))}}};return nt.default=n,nt}var ot={},en;function no(){if(en)return ot;en=1,Object.defineProperty(ot,"__esModule",{value:!0});const e=W(),t=Y(),a=ir(),h={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:p,data:u,$data:l,schemaCode:m,schema:f}=n;l||f&&typeof f=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(p,a.default)}(${u}, ${m})`):n.fail((0,e._)`${f} !== ${u}`)}};return ot.default=h,ot}var it={},tn;function so(){if(tn)return it;tn=1,Object.defineProperty(it,"__esModule",{value:!0});const e=W(),t=Y(),a=ir(),h={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:p,data:u,$data:l,schema:m,schemaCode:f,it:E}=n;if(!l&&m.length===0)throw new Error("enum must have non-empty array");const w=m.length>=E.opts.loopEnum;let $;const v=()=>$??($=(0,t.useFunc)(p,a.default));let b;if(w||l)b=p.let("valid"),n.block$data(b,o);else{if(!Array.isArray(m))throw new Error("ajv implementation error");const r=p.const("vSchema",f);b=(0,e.or)(...m.map((c,_)=>d(r,_)))}n.pass(b);function o(){p.assign(b,!1),p.forOf("v",f,r=>p.if((0,e._)`${v()}(${u}, ${r})`,()=>p.assign(b,!0).break()))}function d(r,c){const _=m[c];return typeof _=="object"&&_!==null?(0,e._)`${v()}(${u}, ${r}[${c}])`:(0,e._)`${u} === ${_}`}}};return it.default=h,it}var rn;function oo(){if(rn)return Be;rn=1,Object.defineProperty(Be,"__esModule",{value:!0});const e=Bs(),t=Xs(),a=Qs(),s=Zs(),h=xs(),n=eo(),p=to(),u=ro(),l=no(),m=so(),f=[e.default,t.default,a.default,s.default,h.default,n.default,p.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,m.default];return Be.default=f,Be}var at={},Ne={},nn;function Gn(){if(nn)return Ne;nn=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.validateAdditionalItems=void 0;const e=W(),t=Y(),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:p,it:u}=n,{items:l}=p;if(!Array.isArray(l)){(0,t.checkStrictMode)(u,'"additionalItems" is ignored when "items" is not an array of schemas');return}h(n,l)}};function h(n,p){const{gen:u,schema:l,data:m,keyword:f,it:E}=n;E.items=!0;const w=u.const("len",(0,e._)`${m}.length`);if(l===!1)n.setParams({len:p.length}),n.pass((0,e._)`${w} <= ${p.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(E,l)){const v=u.var("valid",(0,e._)`${w} <= ${p.length}`);u.if((0,e.not)(v),()=>$(v)),n.ok(v)}function $(v){u.forRange("i",p.length,w,b=>{n.subschema({keyword:f,dataProp:b,dataPropType:t.Type.Num},v),E.allErrors||u.if((0,e.not)(v),()=>u.break())})}}return Ne.validateAdditionalItems=h,Ne.default=s,Ne}var ut={},ke={},sn;function Jn(){if(sn)return ke;sn=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.validateTuple=void 0;const e=W(),t=Y(),a=ye(),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:p,it:u}=n;if(Array.isArray(p))return h(n,"additionalItems",p);u.items=!0,!(0,t.alwaysValidSchema)(u,p)&&n.ok((0,a.validateArray)(n))}};function h(n,p,u=n.schema){const{gen:l,parentSchema:m,data:f,keyword:E,it:w}=n;b(m),w.opts.unevaluated&&u.length&&w.items!==!0&&(w.items=t.mergeEvaluated.items(l,u.length,w.items));const $=l.name("valid"),v=l.const("len",(0,e._)`${f}.length`);u.forEach((o,d)=>{(0,t.alwaysValidSchema)(w,o)||(l.if((0,e._)`${v} > ${d}`,()=>n.subschema({keyword:E,schemaProp:d,dataProp:d},$)),n.ok($))});function b(o){const{opts:d,errSchemaPath:r}=w,c=u.length,_=c===o.minItems&&(c===o.maxItems||o[p]===!1);if(d.strictTuples&&!_){const i=`"${E}" is ${c}-tuple, but minItems or maxItems/${p} are not specified or different at path "${r}"`;(0,t.checkStrictMode)(w,i,d.strictTuples)}}}return ke.validateTuple=h,ke.default=s,ke}var on;function io(){if(on)return ut;on=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=Jn(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:a=>(0,e.validateTuple)(a,"items")};return ut.default=t,ut}var ct={},an;function ao(){if(an)return ct;an=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=W(),t=Y(),a=ye(),s=Gn(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:p}})=>(0,e.str)`must NOT have more than ${p} items`,params:({params:{len:p}})=>(0,e._)`{limit: ${p}}`},code(p){const{schema:u,parentSchema:l,it:m}=p,{prefixItems:f}=l;m.items=!0,!(0,t.alwaysValidSchema)(m,u)&&(f?(0,s.validateAdditionalItems)(p,f):p.ok((0,a.validateArray)(p)))}};return ct.default=n,ct}var lt={},un;function uo(){if(un)return lt;un=1,Object.defineProperty(lt,"__esModule",{value:!0});const e=W(),t=Y(),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:h,max:n}})=>n===void 0?(0,e.str)`must contain at least ${h} valid item(s)`:(0,e.str)`must contain at least ${h} and no more than ${n} valid item(s)`,params:({params:{min:h,max:n}})=>n===void 0?(0,e._)`{minContains: ${h}}`:(0,e._)`{minContains: ${h}, maxContains: ${n}}`},code(h){const{gen:n,schema:p,parentSchema:u,data:l,it:m}=h;let f,E;const{minContains:w,maxContains:$}=u;m.opts.next?(f=w===void 0?1:w,E=$):f=1;const v=n.const("len",(0,e._)`${l}.length`);if(h.setParams({min:f,max:E}),E===void 0&&f===0){(0,t.checkStrictMode)(m,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(E!==void 0&&f>E){(0,t.checkStrictMode)(m,'"minContains" > "maxContains" is always invalid'),h.fail();return}if((0,t.alwaysValidSchema)(m,p)){let c=(0,e._)`${v} >= ${f}`;E!==void 0&&(c=(0,e._)`${c} && ${v} <= ${E}`),h.pass(c);return}m.items=!0;const b=n.name("valid");E===void 0&&f===1?d(b,()=>n.if(b,()=>n.break())):f===0?(n.let(b,!0),E!==void 0&&n.if((0,e._)`${l}.length > 0`,o)):(n.let(b,!1),o()),h.result(b,()=>h.reset());function o(){const c=n.name("_valid"),_=n.let("count",0);d(c,()=>n.if(c,()=>r(_)))}function d(c,_){n.forRange("i",0,v,i=>{h.subschema({keyword:"contains",dataProp:i,dataPropType:t.Type.Num,compositeRule:!0},c),_()})}function r(c){n.code((0,e._)`${c}++`),E===void 0?n.if((0,e._)`${c} >= ${f}`,()=>n.assign(b,!0).break()):(n.if((0,e._)`${c} > ${E}`,()=>n.assign(b,!1).break()),f===1?n.assign(b,!0):n.if((0,e._)`${c} >= ${f}`,()=>n.assign(b,!0)))}}};return lt.default=s,lt}var Xt={},cn;function co(){return cn||(cn=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=W(),a=Y(),s=ye();e.error={message:({params:{property:l,depsCount:m,deps:f}})=>{const E=m===1?"property":"properties";return(0,t.str)`must have ${E} ${f} when property ${l} is present`},params:({params:{property:l,depsCount:m,deps:f,missingProperty:E}})=>(0,t._)`{property: ${l},
|
|
6
|
-
missingProperty: ${E},
|
|
7
|
-
depsCount: ${m},
|
|
8
|
-
deps: ${f}}`};const h={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[m,f]=n(l);p(l,m),u(l,f)}};function n({schema:l}){const m={},f={};for(const E in l){if(E==="__proto__")continue;const w=Array.isArray(l[E])?m:f;w[E]=l[E]}return[m,f]}function p(l,m=l.schema){const{gen:f,data:E,it:w}=l;if(Object.keys(m).length===0)return;const $=f.let("missing");for(const v in m){const b=m[v];if(b.length===0)continue;const o=(0,s.propertyInData)(f,E,v,w.opts.ownProperties);l.setParams({property:v,depsCount:b.length,deps:b.join(", ")}),w.allErrors?f.if(o,()=>{for(const d of b)(0,s.checkReportMissingProp)(l,d)}):(f.if((0,t._)`${o} && (${(0,s.checkMissingProp)(l,b,$)})`),(0,s.reportMissingProp)(l,$),f.else())}}e.validatePropertyDeps=p;function u(l,m=l.schema){const{gen:f,data:E,keyword:w,it:$}=l,v=f.name("valid");for(const b in m)(0,a.alwaysValidSchema)($,m[b])||(f.if((0,s.propertyInData)(f,E,b,$.opts.ownProperties),()=>{const o=l.subschema({keyword:w,schemaProp:b},v);l.mergeValidEvaluated(o,v)},()=>f.var(v,!0)),l.ok(v))}e.validateSchemaDeps=u,e.default=h})(Xt)),Xt}var dt={},ln;function lo(){if(ln)return dt;ln=1,Object.defineProperty(dt,"__esModule",{value:!0});const e=W(),t=Y(),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:h})=>(0,e._)`{propertyName: ${h.propertyName}}`},code(h){const{gen:n,schema:p,data:u,it:l}=h;if((0,t.alwaysValidSchema)(l,p))return;const m=n.name("valid");n.forIn("key",u,f=>{h.setParams({propertyName:f}),h.subschema({keyword:"propertyNames",data:f,dataTypes:["string"],propertyName:f,compositeRule:!0},m),n.if((0,e.not)(m),()=>{h.error(!0),l.allErrors||n.break()})}),h.ok(m)}};return dt.default=s,dt}var ft={},dn;function Wn(){if(dn)return ft;dn=1,Object.defineProperty(ft,"__esModule",{value:!0});const e=ye(),t=W(),a=Se(),s=Y(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:p})=>(0,t._)`{additionalProperty: ${p.additionalProperty}}`},code(p){const{gen:u,schema:l,parentSchema:m,data:f,errsCount:E,it:w}=p;if(!E)throw new Error("ajv implementation error");const{allErrors:$,opts:v}=w;if(w.props=!0,v.removeAdditional!=="all"&&(0,s.alwaysValidSchema)(w,l))return;const b=(0,e.allSchemaProperties)(m.properties),o=(0,e.allSchemaProperties)(m.patternProperties);d(),p.ok((0,t._)`${E} === ${a.default.errors}`);function d(){u.forIn("key",f,g=>{!b.length&&!o.length?_(g):u.if(r(g),()=>_(g))})}function r(g){let S;if(b.length>8){const N=(0,s.schemaRefOrVal)(w,m.properties,"properties");S=(0,e.isOwnProperty)(u,N,g)}else b.length?S=(0,t.or)(...b.map(N=>(0,t._)`${g} === ${N}`)):S=t.nil;return o.length&&(S=(0,t.or)(S,...o.map(N=>(0,t._)`${(0,e.usePattern)(p,N)}.test(${g})`))),(0,t.not)(S)}function c(g){u.code((0,t._)`delete ${f}[${g}]`)}function _(g){if(v.removeAdditional==="all"||v.removeAdditional&&l===!1){c(g);return}if(l===!1){p.setParams({additionalProperty:g}),p.error(),$||u.break();return}if(typeof l=="object"&&!(0,s.alwaysValidSchema)(w,l)){const S=u.name("valid");v.removeAdditional==="failing"?(i(g,S,!1),u.if((0,t.not)(S),()=>{p.reset(),c(g)})):(i(g,S),$||u.if((0,t.not)(S),()=>u.break()))}}function i(g,S,N){const T={keyword:"additionalProperties",dataProp:g,dataPropType:s.Type.Str};N===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),p.subschema(T,S)}}};return ft.default=n,ft}var ht={},fn;function fo(){if(fn)return ht;fn=1,Object.defineProperty(ht,"__esModule",{value:!0});const e=It(),t=ye(),a=Y(),s=Wn(),h={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:p,schema:u,parentSchema:l,data:m,it:f}=n;f.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&s.default.code(new e.KeywordCxt(f,s.default,"additionalProperties"));const E=(0,t.allSchemaProperties)(u);for(const o of E)f.definedProperties.add(o);f.opts.unevaluated&&E.length&&f.props!==!0&&(f.props=a.mergeEvaluated.props(p,(0,a.toHash)(E),f.props));const w=E.filter(o=>!(0,a.alwaysValidSchema)(f,u[o]));if(w.length===0)return;const $=p.name("valid");for(const o of w)v(o)?b(o):(p.if((0,t.propertyInData)(p,m,o,f.opts.ownProperties)),b(o),f.allErrors||p.else().var($,!0),p.endIf()),n.it.definedProperties.add(o),n.ok($);function v(o){return f.opts.useDefaults&&!f.compositeRule&&u[o].default!==void 0}function b(o){n.subschema({keyword:"properties",schemaProp:o,dataProp:o},$)}}};return ht.default=h,ht}var pt={},hn;function ho(){if(hn)return pt;hn=1,Object.defineProperty(pt,"__esModule",{value:!0});const e=ye(),t=W(),a=Y(),s=Y(),h={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:p,schema:u,data:l,parentSchema:m,it:f}=n,{opts:E}=f,w=(0,e.allSchemaProperties)(u),$=w.filter(_=>(0,a.alwaysValidSchema)(f,u[_]));if(w.length===0||$.length===w.length&&(!f.opts.unevaluated||f.props===!0))return;const v=E.strictSchema&&!E.allowMatchingProperties&&m.properties,b=p.name("valid");f.props!==!0&&!(f.props instanceof t.Name)&&(f.props=(0,s.evaluatedPropsToName)(p,f.props));const{props:o}=f;d();function d(){for(const _ of w)v&&r(_),f.allErrors?c(_):(p.var(b,!0),c(_),p.if(b))}function r(_){for(const i in v)new RegExp(_).test(i)&&(0,a.checkStrictMode)(f,`property ${i} matches pattern ${_} (use allowMatchingProperties)`)}function c(_){p.forIn("key",l,i=>{p.if((0,t._)`${(0,e.usePattern)(n,_)}.test(${i})`,()=>{const g=$.includes(_);g||n.subschema({keyword:"patternProperties",schemaProp:_,dataProp:i,dataPropType:s.Type.Str},b),f.opts.unevaluated&&o!==!0?p.assign((0,t._)`${o}[${i}]`,!0):!g&&!f.allErrors&&p.if((0,t.not)(b),()=>p.break())})})}}};return pt.default=h,pt}var mt={},pn;function po(){if(pn)return mt;pn=1,Object.defineProperty(mt,"__esModule",{value:!0});const e=Y(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:s,schema:h,it:n}=a;if((0,e.alwaysValidSchema)(n,h)){a.fail();return}const p=s.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},p),a.failResult(p,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};return mt.default=t,mt}var yt={},mn;function mo(){if(mn)return yt;mn=1,Object.defineProperty(yt,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ye().validateUnion,error:{message:"must match a schema in anyOf"}};return yt.default=t,yt}var vt={},yn;function yo(){if(yn)return vt;yn=1,Object.defineProperty(vt,"__esModule",{value:!0});const e=W(),t=Y(),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:h})=>(0,e._)`{passingSchemas: ${h.passing}}`},code(h){const{gen:n,schema:p,parentSchema:u,it:l}=h;if(!Array.isArray(p))throw new Error("ajv implementation error");if(l.opts.discriminator&&u.discriminator)return;const m=p,f=n.let("valid",!1),E=n.let("passing",null),w=n.name("_valid");h.setParams({passing:E}),n.block($),h.result(f,()=>h.reset(),()=>h.error(!0));function $(){m.forEach((v,b)=>{let o;(0,t.alwaysValidSchema)(l,v)?n.var(w,!0):o=h.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},w),b>0&&n.if((0,e._)`${w} && ${f}`).assign(f,!1).assign(E,(0,e._)`[${E}, ${b}]`).else(),n.if(w,()=>{n.assign(f,!0),n.assign(E,b),o&&h.mergeEvaluated(o,e.Name)})})}}};return vt.default=s,vt}var gt={},vn;function vo(){if(vn)return gt;vn=1,Object.defineProperty(gt,"__esModule",{value:!0});const e=Y(),t={keyword:"allOf",schemaType:"array",code(a){const{gen:s,schema:h,it:n}=a;if(!Array.isArray(h))throw new Error("ajv implementation error");const p=s.name("valid");h.forEach((u,l)=>{if((0,e.alwaysValidSchema)(n,u))return;const m=a.subschema({keyword:"allOf",schemaProp:l},p);a.ok(p),a.mergeEvaluated(m)})}};return gt.default=t,gt}var _t={},gn;function go(){if(gn)return _t;gn=1,Object.defineProperty(_t,"__esModule",{value:!0});const e=W(),t=Y(),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:p,parentSchema:u,it:l}=n;u.then===void 0&&u.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const m=h(l,"then"),f=h(l,"else");if(!m&&!f)return;const E=p.let("valid",!0),w=p.name("_valid");if($(),n.reset(),m&&f){const b=p.let("ifClause");n.setParams({ifClause:b}),p.if(w,v("then",b),v("else",b))}else m?p.if(w,v("then")):p.if((0,e.not)(w),v("else"));n.pass(E,()=>n.error(!0));function $(){const b=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},w);n.mergeEvaluated(b)}function v(b,o){return()=>{const d=n.subschema({keyword:b},w);p.assign(E,w),n.mergeValidEvaluated(d,E),o?p.assign(o,(0,e._)`${b}`):n.setParams({ifClause:b})}}}};function h(n,p){const u=n.schema[p];return u!==void 0&&!(0,t.alwaysValidSchema)(n,u)}return _t.default=s,_t}var $t={},_n;function _o(){if(_n)return $t;_n=1,Object.defineProperty($t,"__esModule",{value:!0});const e=Y(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:s,it:h}){s.if===void 0&&(0,e.checkStrictMode)(h,`"${a}" without "if" is ignored`)}};return $t.default=t,$t}var $n;function $o(){if($n)return at;$n=1,Object.defineProperty(at,"__esModule",{value:!0});const e=Gn(),t=io(),a=Jn(),s=ao(),h=uo(),n=co(),p=lo(),u=Wn(),l=fo(),m=ho(),f=po(),E=mo(),w=yo(),$=vo(),v=go(),b=_o();function o(d=!1){const r=[f.default,E.default,w.default,$.default,v.default,b.default,p.default,u.default,n.default,l.default,m.default];return d?r.push(t.default,s.default):r.push(e.default,a.default),r.push(h.default),r}return at.default=o,at}var wt={},bt={},wn;function wo(){if(wn)return bt;wn=1,Object.defineProperty(bt,"__esModule",{value:!0});const e=W(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must match format "${s}"`,params:({schemaCode:s})=>(0,e._)`{format: ${s}}`},code(s,h){const{gen:n,data:p,$data:u,schema:l,schemaCode:m,it:f}=s,{opts:E,errSchemaPath:w,schemaEnv:$,self:v}=f;if(!E.validateFormats)return;u?b():o();function b(){const d=n.scopeValue("formats",{ref:v.formats,code:E.code.formats}),r=n.const("fDef",(0,e._)`${d}[${m}]`),c=n.let("fType"),_=n.let("format");n.if((0,e._)`typeof ${r} == "object" && !(${r} instanceof RegExp)`,()=>n.assign(c,(0,e._)`${r}.type || "string"`).assign(_,(0,e._)`${r}.validate`),()=>n.assign(c,(0,e._)`"string"`).assign(_,r)),s.fail$data((0,e.or)(i(),g()));function i(){return E.strictSchema===!1?e.nil:(0,e._)`${m} && !${_}`}function g(){const S=$.$async?(0,e._)`(${r}.async ? await ${_}(${p}) : ${_}(${p}))`:(0,e._)`${_}(${p})`,N=(0,e._)`(typeof ${_} == "function" ? ${S} : ${_}.test(${p}))`;return(0,e._)`${_} && ${_} !== true && ${c} === ${h} && !${N}`}}function o(){const d=v.formats[l];if(!d){i();return}if(d===!0)return;const[r,c,_]=g(d);r===h&&s.pass(S());function i(){if(E.strictSchema===!1){v.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${l}" ignored in schema at path "${w}"`}}function g(N){const T=N instanceof RegExp?(0,e.regexpCode)(N):E.code.formats?(0,e._)`${E.code.formats}${(0,e.getProperty)(l)}`:void 0,D=n.scopeValue("formats",{key:l,ref:N,code:T});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,e._)`${D}.validate`]:["string",N,D]}function S(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!$.$async)throw new Error("async format in sync schema");return(0,e._)`await ${_}(${p})`}return typeof c=="function"?(0,e._)`${_}(${p})`:(0,e._)`${_}.test(${p})`}}}};return bt.default=a,bt}var bn;function bo(){if(bn)return wt;bn=1,Object.defineProperty(wt,"__esModule",{value:!0});const t=[wo().default];return wt.default=t,wt}var Re={},En;function Eo(){return En||(En=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.contentVocabulary=Re.metadataVocabulary=void 0,Re.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Re.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Re}var Sn;function So(){if(Sn)return Ge;Sn=1,Object.defineProperty(Ge,"__esModule",{value:!0});const e=Ws(),t=oo(),a=$o(),s=bo(),h=Eo(),n=[e.default,t.default,(0,a.default)(),s.default,h.metadataVocabulary,h.contentVocabulary];return Ge.default=n,Ge}var Et={},Ae={},Pn;function Po(){if(Pn)return Ae;Pn=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ae.DiscrError=e={})),Ae}var On;function Oo(){if(On)return Et;On=1,Object.defineProperty(Et,"__esModule",{value:!0});const e=W(),t=Po(),a=or(),s=qt(),h=Y(),p={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:u,tagName:l}})=>u===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:u,tag:l,tagName:m}})=>(0,e._)`{error: ${u}, tag: ${m}, tagValue: ${l}}`},code(u){const{gen:l,data:m,schema:f,parentSchema:E,it:w}=u,{oneOf:$}=E;if(!w.opts.discriminator)throw new Error("discriminator: requires discriminator option");const v=f.propertyName;if(typeof v!="string")throw new Error("discriminator: requires propertyName");if(f.mapping)throw new Error("discriminator: mapping is not supported");if(!$)throw new Error("discriminator: requires oneOf keyword");const b=l.let("valid",!1),o=l.const("tag",(0,e._)`${m}${(0,e.getProperty)(v)}`);l.if((0,e._)`typeof ${o} == "string"`,()=>d(),()=>u.error(!1,{discrError:t.DiscrError.Tag,tag:o,tagName:v})),u.ok(b);function d(){const _=c();l.if(!1);for(const i in _)l.elseIf((0,e._)`${o} === ${i}`),l.assign(b,r(_[i]));l.else(),u.error(!1,{discrError:t.DiscrError.Mapping,tag:o,tagName:v}),l.endIf()}function r(_){const i=l.name("valid"),g=u.subschema({keyword:"oneOf",schemaProp:_},i);return u.mergeEvaluated(g,e.Name),i}function c(){var _;const i={},g=N(E);let S=!0;for(let V=0;V<$.length;V++){let K=$[V];if(K?.$ref&&!(0,h.schemaHasRulesButRef)(K,w.self.RULES)){const H=K.$ref;if(K=a.resolveRef.call(w.self,w.schemaEnv.root,w.baseId,H),K instanceof a.SchemaEnv&&(K=K.schema),K===void 0)throw new s.default(w.opts.uriResolver,w.baseId,H)}const U=(_=K?.properties)===null||_===void 0?void 0:_[v];if(typeof U!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);S=S&&(g||N(K)),T(U,V)}if(!S)throw new Error(`discriminator: "${v}" must be required`);return i;function N({required:V}){return Array.isArray(V)&&V.includes(v)}function T(V,K){if(V.const)D(V.const,K);else if(V.enum)for(const U of V.enum)D(U,K);else throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`)}function D(V,K){if(typeof V!="string"||V in i)throw new Error(`discriminator: "${v}" values must be unique strings`);i[V]=K}}}};return Et.default=p,Et}const Ro="http://json-schema.org/draft-07/schema#",jo="http://json-schema.org/draft-07/schema#",No="Core schema meta-schema",ko={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:[]}},To=["object","boolean"],Io={$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:"#"}},qo={$schema:Ro,$id:jo,title:No,definitions:ko,type:To,properties:Io,default:!0};var Rn;function Co(){return Rn||(Rn=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const a=Hs(),s=So(),h=Oo(),n=qo,p=["/properties"],u="http://json-schema.org/draft-07/schema";class l extends a.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(h.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(n,p):n;this.addMetaSchema(v,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var m=It();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var f=W();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var E=sr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return E.default}});var w=qt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return w.default}})})(Fe,Fe.exports)),Fe.exports}var Mo=Co();const Do=nr(Mo);var St={exports:{}},jn;function Ao(){return jn||(jn=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a={},s={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:f=>{var E;const w=(E=f?.max)!==null&&E!==void 0?E:2;return()=>Math.floor(Math.random()*w)},seq:f=>{var E;const w=(E=f?.name)!==null&&E!==void 0?E:"";return a[w]||(a[w]=0),()=>a[w]++}},h=Object.assign(n,{DEFAULTS:s});function n(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(f,E,w){if(!w.opts.useDefaults||w.compositeRule)return()=>!0;const $={};for(const b in f)$[b]=p(f[b]);const v=w.opts.useDefaults==="empty";return b=>{for(const o in f)(b[o]===void 0||v&&(b[o]===null||b[o]===""))&&(b[o]=$[o]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function p(f){return typeof f=="object"?u(f):l(f)}function u({func:f,args:E}){const w=s[f];return m(f,w),w(E)}function l(f=""){const E=s[f];return m(f,E),E()}function m(f,E){if(!E)throw new Error(`invalid "dynamicDefaults" keyword property value: ${f}`)}t.default=h,e.exports=h})(St,St.exports)),St.exports}var Vo=Ao();const Bn=nr(Vo),de={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Nn={silent:{level:-1},fatal:{level:de.fatal},error:{level:de.error},warn:{level:de.warn},log:{level:de.log},info:{level:de.info},success:{level:de.success},fail:{level:de.fail},ready:{level:de.info},start:{level:de.info},box:{level:de.info},debug:{level:de.debug},trace:{level:de.trace},verbose:{level:de.verbose}};function Yt(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 tr(e,t,a=".",s){if(!Yt(t))return tr(e,{},a);const h=Object.assign({},t);for(const n in e){if(n==="__proto__"||n==="constructor")continue;const p=e[n];p!=null&&(Array.isArray(p)&&Array.isArray(h[n])?h[n]=[...p,...h[n]]:Yt(p)&&Yt(h[n])?h[n]=tr(p,h[n],(a?`${a}.`:"")+n.toString()):h[n]=p)}return h}function Lo(e){return(...t)=>t.reduce((a,s)=>tr(a,s,""),{})}const Fo=Lo();function Uo(e){return Object.prototype.toString.call(e)==="[object Object]"}function zo(e){return!(!Uo(e)||!e.message&&!e.args||e.stack)}let Qt=!1;const kn=[];class oe{options;_lastLog;_mockFn;constructor(t={}){const a=t.types||Nn;this.options=Fo({...t,defaults:{...t.defaults},level:Zt(t.level,a),reporters:[...t.reporters||[]]},{types:Nn,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const s in a){const h={type:s,...this.options.defaults,...a[s]};this[s]=this._wrapLogFn(h),this[s].raw=this._wrapLogFn(h,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=Zt(t,this.options.types,this.options.level)}prompt(t,a){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,a)}create(t){const a=new oe({...this.options,...t});return this._mockFn&&a.mockTypes(this._mockFn),a}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 a=this.options.reporters.indexOf(t);if(a!==-1)return this.options.reporters.splice(a,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,a){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[a].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(){Qt=!0}resumeLogs(){Qt=!1;const t=kn.splice(0);for(const a of t)a[0]._logFn(a[1],a[2])}mockTypes(t){const a=t||this.options.mockFn;if(this._mockFn=a,typeof a=="function")for(const s in this.options.types)this[s]=a(s,this.options.types[s])||this[s],this[s].raw=this[s]}_wrapLogFn(t,a){return(...s)=>{if(Qt){kn.push([this,t,s,a]);return}return this._logFn(t,s,a)}}_logFn(t,a,s){if((t.level||0)>this.level)return!1;const h={date:new Date,args:[],...t,level:Zt(t.level,this.options.types)};!s&&a.length===1&&zo(a[0])?Object.assign(h,a[0]):h.args=[...a],h.message&&(h.args.unshift(h.message),delete h.message),h.additional&&(Array.isArray(h.additional)||(h.additional=h.additional.split(`
|
|
9
|
-
`)),h.args.push(`
|
|
10
|
-
`+h.additional.join(`
|
|
11
|
-
`)),delete h.additional),h.type=typeof h.type=="string"?h.type.toLowerCase():"log",h.tag=typeof h.tag=="string"?h.tag:"";const n=(u=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const m=[...this._lastLog.object.args];l>1&&m.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:m}),this._lastLog.count=1}u&&(this._lastLog.object=h,this._log(h))};clearTimeout(this._lastLog.timeout);const p=this._lastLog.time&&h.date?h.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=h.date,p<this.options.throttle)try{const u=JSON.stringify([h.type,h.tag,h.args]),l=this._lastLog.serialized===u;if(this._lastLog.serialized=u,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(n,this.options.throttle);return}}catch{}n(!0)}_log(t){for(const a of this.options.reporters)a.log(t,{options:this.options})}}function Zt(e,t={},a=3){return e===void 0?a:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:a}oe.prototype.add=oe.prototype.addReporter;oe.prototype.remove=oe.prototype.removeReporter;oe.prototype.clear=oe.prototype.removeReporter;oe.prototype.withScope=oe.prototype.withTag;oe.prototype.mock=oe.prototype.mockTypes;oe.prototype.pause=oe.prototype.pauseLogs;oe.prototype.resume=oe.prototype.resumeLogs;function Ko(e={}){return new oe(e)}class Ho{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 a=this._getLogFn(t.level),s=t.type==="log"?"":t.type,h=t.tag||"",p=`
|
|
12
|
-
background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};
|
|
13
|
-
border-radius: 0.5em;
|
|
14
|
-
color: white;
|
|
15
|
-
font-weight: bold;
|
|
16
|
-
padding: 2px 0.5em;
|
|
17
|
-
`,u=`%c${[h,s].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?a(`${u}%c ${t.args[0]}`,p,"",...t.args.slice(1)):a(u,p,...t.args)}}function Go(e={}){return Ko({reporters:e.reporters||[new Ho({})],prompt(a,s={}){return s.type==="confirm"?Promise.resolve(confirm(a)):Promise.resolve(prompt(a))},...e})}const Jo=Go(),Wo={$id:"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"},Bo={$id:"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"},Xo={$id:"fonts",items:{type:"string"},type:"array"},Yo={$id:"importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},type:"object"}},type:"object"},Qo={$id:"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",enum:["user","assistant","system"],type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"},Zo={$id:"nodes",items:{$ref:"page"},type:"array"},xo={$id:"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:{additionalProperties:!1,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"};Bn.DEFAULTS.uuid=()=>er;const Xn=[Wo,Zo,xo,Yo,Bo,Xo,Qo],ei=new Do({code:{esm:!0},coerceTypes:!0,keywords:[Bn()],removeAdditional:!0,schemas:Xn,useDefaults:!0}),Tn={credentials:ve({}),feed:ve({}),fonts:ve([]),importmap:ve({}),log:ve({})},Yn=!0,In={$children:{get(){return this.children.filter(({enabled:e})=>e)}},$index:{get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},$next:{get(){return this.$siblings[this.$index+1]}},$prev:{get(){return this.$siblings[this.$index-1]}},$siblings:{get(){return this.siblings.filter(({enabled:e})=>e)}},i:{get(){return this.icon&&`i-${this.icon}`}},path:{get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replace(/ /g,"_")}},title:{get(){return["",void 0].includes(this.header)?this.name??"":this.header}},to:{get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}}},Le=Object.fromEntries(Xn.map(({$id:e})=>[e,ei.getSchema(e)])),ui=async e=>{try{return await os(e)}catch(t){Jo.error(t)}},rr=ve([]);Le.credentials;Le.log;const{kvNodes:ci,nodes:ti}=js(rr);Object.keys(Tn).forEach(e=>{Le[e]&&qe(Tn[e],Le[e],{immediate:Yn})});qe(ti,async e=>{await Le.data?.(e)?e.forEach(t=>{Object.keys(In).some(a=>!(a in t))&&Object.defineProperties(t,In)}):(rr.length=0,rr.push({}))},{immediate:Yn});export{oi as a,ai as b,Jo as c,ps as d,ii as e,ui as f,nr as g,ci as k,ti as n,rr as t,si as u};
|