services/resources/index.868de8fa.js
2023-07-30 16:45:34 +02:00

180 lines
178 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function Ri(e,t){const n=Object.create(null),s=e.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const ec="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tc=Ri(ec);function ko(e){return!!e||e===""}function Es(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ve(s)?ic(s):Es(s);if(i)for(const r in i)t[r]=i[r]}return t}else{if(ve(e))return e;if(de(e))return e}}const nc=/;(?![^(]*\))/g,sc=/:(.+)/;function ic(e){const t={};return e.split(nc).forEach(n=>{if(n){const s=n.split(sc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ge(e){let t="";if(ve(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const s=ge(e[n]);s&&(t+=s+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const xe=e=>ve(e)?e:e==null?"":q(e)||de(e)&&(e.toString===Ao||!H(e.toString))?JSON.stringify(e,Oo,2):String(e),Oo=(e,t)=>t&&t.__v_isRef?Oo(e,t.value):rn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i])=>(n[`${s} =>`]=i,n),{})}:Eo(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!q(t)&&!Io(t)?String(t):t,oe={},sn=[],Ge=()=>{},rc=()=>!1,oc=/^on[^a-z]/,Ts=e=>oc.test(e),Bi=e=>e.startsWith("onUpdate:"),Me=Object.assign,Fi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lc=Object.prototype.hasOwnProperty,z=(e,t)=>lc.call(e,t),q=Array.isArray,rn=e=>As(e)==="[object Map]",Eo=e=>As(e)==="[object Set]",H=e=>typeof e=="function",ve=e=>typeof e=="string",xi=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",To=e=>de(e)&&H(e.then)&&H(e.catch),Ao=Object.prototype.toString,As=e=>Ao.call(e),ac=e=>As(e).slice(8,-1),Io=e=>As(e)==="[object Object]",Ki=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cc=/-(\w)/g,ot=Is(e=>e.replace(cc,(t,n)=>n?n.toUpperCase():"")),fc=/\B([A-Z])/g,Jt=Is(e=>e.replace(fc,"-$1").toLowerCase()),Ns=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),si=Is(e=>e?`on${Ns(e)}`:""),Fn=(e,t)=>!Object.is(e,t),ii=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ys=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},uc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Pr;const hc=()=>Pr||(Pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let tt;class dc{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}}}function pc(e,t=tt){t&&t.active&&t.effects.push(e)}const Ui=e=>{const t=new Set(e);return t.w=0,t.n=0,t},No=e=>(e.w&It)>0,$o=e=>(e.n&It)>0,mc=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=It},gc=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const i=t[s];No(i)&&!$o(i)?i.delete(e):t[n++]=i,i.w&=~It,i.n&=~It}t.length=n}},_i=new WeakMap;let Nn=0,It=1;const wi=30;let Je;const Ut=Symbol(""),vi=Symbol("");class qi{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,pc(this,s)}run(){if(!this.active)return this.fn();let t=Je,n=Et;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Je,Je=this,Et=!0,It=1<<++Nn,Nn<=wi?mc(this):Mr(this),this.fn()}finally{Nn<=wi&&gc(this),It=1<<--Nn,Je=this.parent,Et=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Je===this?this.deferStop=!0:this.active&&(Mr(this),this.onStop&&this.onStop(),this.active=!1)}}function Mr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Et=!0;const Co=[];function mn(){Co.push(Et),Et=!1}function gn(){const e=Co.pop();Et=e===void 0?!0:e}function Ke(e,t,n){if(Et&&Je){let s=_i.get(e);s||_i.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Ui()),Lo(i)}}function Lo(e,t){let n=!1;Nn<=wi?$o(e)||(e.n|=It,n=!No(e)):n=!e.has(Je),n&&(e.add(Je),Je.deps.push(e))}function mt(e,t,n,s,i,r){const o=_i.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&q(e))o.forEach((a,c)=>{(c==="length"||c>=s)&&l.push(a)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":q(e)?Ki(n)&&l.push(o.get("length")):(l.push(o.get(Ut)),rn(e)&&l.push(o.get(vi)));break;case"delete":q(e)||(l.push(o.get(Ut)),rn(e)&&l.push(o.get(vi)));break;case"set":rn(e)&&l.push(o.get(Ut));break}if(l.length===1)l[0]&&Si(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);Si(Ui(a))}}function Si(e,t){const n=q(e)?e:[...e];for(const s of n)s.computed&&Dr(s);for(const s of n)s.computed||Dr(s)}function Dr(e,t){(e!==Je||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const yc=Ri("__proto__,__v_isRef,__isVue"),Po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xi)),bc=Vi(),_c=Vi(!1,!0),wc=Vi(!0),jr=vc();function vc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Z(this);for(let r=0,o=this.length;r<o;r++)Ke(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(Z)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){mn();const s=Z(this)[t].apply(this,n);return gn(),s}}),e}function Vi(e=!1,t=!1){return function(s,i,r){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&r===(e?t?Rc:Bo:t?Ro:jo).get(s))return s;const o=q(s);if(!e&&o&&z(jr,i))return Reflect.get(jr,i,r);const l=Reflect.get(s,i,r);return(xi(i)?Po.has(i):yc(i))||(e||Ke(s,"get",i),t)?l:Ie(l)?o&&Ki(i)?l:l.value:de(l)?e?Fo(l):Ji(l):l}}const Sc=Mo(),kc=Mo(!0);function Mo(e=!1){return function(n,s,i,r){let o=n[s];if(fn(o)&&Ie(o)&&!Ie(i))return!1;if(!e&&(!bs(i)&&!fn(i)&&(o=Z(o),i=Z(i)),!q(n)&&Ie(o)&&!Ie(i)))return o.value=i,!0;const l=q(n)&&Ki(s)?Number(s)<n.length:z(n,s),a=Reflect.set(n,s,i,r);return n===Z(r)&&(l?Fn(i,o)&&mt(n,"set",s,i):mt(n,"add",s,i)),a}}function Oc(e,t){const n=z(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&mt(e,"delete",t,void 0),s}function Ec(e,t){const n=Reflect.has(e,t);return(!xi(t)||!Po.has(t))&&Ke(e,"has",t),n}function Tc(e){return Ke(e,"iterate",q(e)?"length":Ut),Reflect.ownKeys(e)}const Do={get:bc,set:Sc,deleteProperty:Oc,has:Ec,ownKeys:Tc},Ac={get:wc,set(e,t){return!0},deleteProperty(e,t){return!0}},Ic=Me({},Do,{get:_c,set:kc}),Hi=e=>e,$s=e=>Reflect.getPrototypeOf(e);function ss(e,t,n=!1,s=!1){e=e.__v_raw;const i=Z(e),r=Z(t);n||(t!==r&&Ke(i,"get",t),Ke(i,"get",r));const{has:o}=$s(i),l=s?Hi:n?zi:xn;if(o.call(i,t))return l(e.get(t));if(o.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function is(e,t=!1){const n=this.__v_raw,s=Z(n),i=Z(e);return t||(e!==i&&Ke(s,"has",e),Ke(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function rs(e,t=!1){return e=e.__v_raw,!t&&Ke(Z(e),"iterate",Ut),Reflect.get(e,"size",e)}function Rr(e){e=Z(e);const t=Z(this);return $s(t).has.call(t,e)||(t.add(e),mt(t,"add",e,e)),this}function Br(e,t){t=Z(t);const n=Z(this),{has:s,get:i}=$s(n);let r=s.call(n,e);r||(e=Z(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?Fn(t,o)&&mt(n,"set",e,t):mt(n,"add",e,t),this}function Fr(e){const t=Z(this),{has:n,get:s}=$s(t);let i=n.call(t,e);i||(e=Z(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&&mt(t,"delete",e,void 0),r}function xr(){const e=Z(this),t=e.size!==0,n=e.clear();return t&&mt(e,"clear",void 0,void 0),n}function os(e,t){return function(s,i){const r=this,o=r.__v_raw,l=Z(o),a=t?Hi:e?zi:xn;return!e&&Ke(l,"iterate",Ut),o.forEach((c,h)=>s.call(i,a(c),a(h),r))}}function ls(e,t,n){return function(...s){const i=this.__v_raw,r=Z(i),o=rn(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=i[e](...s),h=n?Hi:t?zi:xn;return!t&&Ke(r,"iterate",a?vi:Ut),{next(){const{value:d,done:y}=c.next();return y?{value:d,done:y}:{value:l?[h(d[0]),h(d[1])]:h(d),done:y}},[Symbol.iterator](){return this}}}}function vt(e){return function(...t){return e==="delete"?!1:this}}function Nc(){const e={get(r){return ss(this,r)},get size(){return rs(this)},has:is,add:Rr,set:Br,delete:Fr,clear:xr,forEach:os(!1,!1)},t={get(r){return ss(this,r,!1,!0)},get size(){return rs(this)},has:is,add:Rr,set:Br,delete:Fr,clear:xr,forEach:os(!1,!0)},n={get(r){return ss(this,r,!0)},get size(){return rs(this,!0)},has(r){return is.call(this,r,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:os(!0,!1)},s={get(r){return ss(this,r,!0,!0)},get size(){return rs(this,!0)},has(r){return is.call(this,r,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:os(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ls(r,!1,!1),n[r]=ls(r,!0,!1),t[r]=ls(r,!1,!0),s[r]=ls(r,!0,!0)}),[e,n,t,s]}const[$c,Cc,Lc,Pc]=Nc();function Wi(e,t){const n=t?e?Pc:Lc:e?Cc:$c;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(z(n,i)&&i in s?n:s,i,r)}const Mc={get:Wi(!1,!1)},Dc={get:Wi(!1,!0)},jc={get:Wi(!0,!1)},jo=new WeakMap,Ro=new WeakMap,Bo=new WeakMap,Rc=new WeakMap;function Bc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fc(e){return e.__v_skip||!Object.isExtensible(e)?0:Bc(ac(e))}function Ji(e){return fn(e)?e:Yi(e,!1,Do,Mc,jo)}function xc(e){return Yi(e,!1,Ic,Dc,Ro)}function Fo(e){return Yi(e,!0,Ac,jc,Bo)}function Yi(e,t,n,s,i){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=Fc(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function on(e){return fn(e)?on(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function bs(e){return!!(e&&e.__v_isShallow)}function xo(e){return on(e)||fn(e)}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}function Ko(e){return ys(e,"__v_skip",!0),e}const xn=e=>de(e)?Ji(e):e,zi=e=>de(e)?Fo(e):e;function Uo(e){Et&&Je&&(e=Z(e),Lo(e.dep||(e.dep=Ui())))}function qo(e,t){e=Z(e),e.dep&&Si(e.dep)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function ri(e){return Kc(e,!1)}function Kc(e,t){return Ie(e)?e:new Uc(e,t)}class Uc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Z(t),this._value=n?t:xn(t)}get value(){return Uo(this),this._value}set value(t){const n=this.__v_isShallow||bs(t)||fn(t);t=n?t:Z(t),Fn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),qo(this))}}function qc(e){return Ie(e)?e.value:e}const Vc={get:(e,t,n)=>qc(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Ie(i)&&!Ie(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Vo(e){return on(e)?e:new Proxy(e,Vc)}var Ho;class Hc{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Ho]=!1,this._dirty=!0,this.effect=new qi(t,()=>{this._dirty||(this._dirty=!0,qo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=Z(this);return Uo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Ho="__v_isReadonly";function Wc(e,t,n=!1){let s,i;const r=H(e);return r?(s=e,i=Ge):(s=e.get,i=e.set),new Hc(s,i,r||!i,n)}function Tt(e,t,n,s){let i;try{i=s?e(...s):e()}catch(r){Wn(r,t,n)}return i}function Qe(e,t,n,s){if(H(e)){const r=Tt(e,t,n,s);return r&&To(r)&&r.catch(o=>{Wn(o,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,s));return i}function Wn(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,l=n;for(;r;){const c=r.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,o,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){Tt(a,null,10,[e,o,l]);return}}Jc(e,n,i,s)}function Jc(e,t,n,s=!0){console.error(e)}let Kn=!1,ki=!1;const Ae=[];let it=0;const ln=[];let dt=null,Ft=0;const Wo=Promise.resolve();let Gi=null;function Yc(e){const t=Gi||Wo;return e?t.then(this?e.bind(this):e):t}function zc(e){let t=it+1,n=Ae.length;for(;t<n;){const s=t+n>>>1;Un(Ae[s])<e?t=s+1:n=s}return t}function Cs(e){(!Ae.length||!Ae.includes(e,Kn&&e.allowRecurse?it+1:it))&&(e.id==null?Ae.push(e):Ae.splice(zc(e.id),0,e),Jo())}function Jo(){!Kn&&!ki&&(ki=!0,Gi=Wo.then(zo))}function Gc(e){const t=Ae.indexOf(e);t>it&&Ae.splice(t,1)}function Qc(e){q(e)?ln.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Ft+1:Ft))&&ln.push(e),Jo()}function Kr(e,t=Kn?it+1:0){for(;t<Ae.length;t++){const n=Ae[t];n&&n.pre&&(Ae.splice(t,1),t--,n())}}function Yo(e){if(ln.length){const t=[...new Set(ln)];if(ln.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,s)=>Un(n)-Un(s)),Ft=0;Ft<dt.length;Ft++)dt[Ft]();dt=null,Ft=0}}const Un=e=>e.id==null?1/0:e.id,Xc=(e,t)=>{const n=Un(e)-Un(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zo(e){ki=!1,Kn=!0,Ae.sort(Xc);const t=Ge;try{for(it=0;it<Ae.length;it++){const n=Ae[it];n&&n.active!==!1&&Tt(n,null,14)}}finally{it=0,Ae.length=0,Yo(),Kn=!1,Gi=null,(Ae.length||ln.length)&&zo()}}function Zc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const h=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:y}=s[h]||oe;y&&(i=n.map(b=>b.trim())),d&&(i=n.map(uc))}let l,a=s[l=si(t)]||s[l=si(ot(t))];!a&&r&&(a=s[l=si(Jt(t))]),a&&Qe(a,e,6,i);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function Go(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!H(e)){const a=c=>{const h=Go(c,t,!0);h&&(l=!0,Me(o,h))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(de(e)&&s.set(e,null),null):(q(r)?r.forEach(a=>o[a]=null):Me(o,r),de(e)&&s.set(e,o),o)}function Ls(e,t){return!e||!Ts(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Jt(t))||z(e,t))}let Re=null,Ps=null;function _s(e){const t=Re;return Re=e,Ps=e&&e.type.__scopeId||null,t}function ef(e){Ps=e}function tf(){Ps=null}function Qi(e,t=Re,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Qr(-1);const r=_s(t);let o;try{o=e(...i)}finally{_s(r),s._d&&Qr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function oi(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:l,attrs:a,emit:c,render:h,renderCache:d,data:y,setupState:b,ctx:S,inheritAttrs:m}=e;let w,k;const A=_s(e);try{if(n.shapeFlag&4){const M=i||s;w=st(h.call(M,M,d,r,b,y,S)),k=a}else{const M=t;w=st(M.length>1?M(r,{attrs:a,slots:l,emit:c}):M(r,null)),k=t.props?a:nf(a)}}catch(M){jn.length=0,Wn(M,e,1),w=he(Nt)}let C=w;if(k&&m!==!1){const M=Object.keys(k),{shapeFlag:R}=C;M.length&&R&7&&(o&&M.some(Bi)&&(k=sf(k,o)),C=un(C,k))}return n.dirs&&(C=un(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),w=C,_s(A),w}const nf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ts(n))&&((t||(t={}))[n]=e[n]);return t},sf=(e,t)=>{const n={};for(const s in e)(!Bi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function rf(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ur(s,o,c):!!o;if(a&8){const h=t.dynamicProps;for(let d=0;d<h.length;d++){const y=h[d];if(o[y]!==s[y]&&!Ls(c,y))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ur(s,o,c):!0:!!o;return!1}function Ur(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!Ls(n,r))return!0}return!1}function of({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const lf=e=>e.__isSuspense;function af(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Qc(e)}function cf(e,t){if(ke){let n=ke.provides;const s=ke.parent&&ke.parent.provides;s===n&&(n=ke.provides=Object.create(s)),n[e]=t}}function li(e,t,n=!1){const s=ke||Re;if(s){const i=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&H(t)?t.call(s.proxy):t}}const qr={};function ai(e,t,n){return Qo(e,t,n)}function Qo(e,t,{immediate:n,deep:s,flush:i,onTrack:r,onTrigger:o}=oe){const l=ke;let a,c=!1,h=!1;if(Ie(e)?(a=()=>e.value,c=bs(e)):on(e)?(a=()=>e,s=!0):q(e)?(h=!0,c=e.some(k=>on(k)||bs(k)),a=()=>e.map(k=>{if(Ie(k))return k.value;if(on(k))return en(k);if(H(k))return Tt(k,l,2)})):H(e)?t?a=()=>Tt(e,l,2):a=()=>{if(!(l&&l.isUnmounted))return d&&d(),Qe(e,l,3,[y])}:a=Ge,t&&s){const k=a;a=()=>en(k())}let d,y=k=>{d=w.onStop=()=>{Tt(k,l,4)}};if(dn)return y=Ge,t?n&&Qe(t,l,3,[a(),h?[]:void 0,y]):a(),Ge;let b=h?[]:qr;const S=()=>{if(!!w.active)if(t){const k=w.run();(s||c||(h?k.some((A,C)=>Fn(A,b[C])):Fn(k,b)))&&(d&&d(),Qe(t,l,3,[k,b===qr?void 0:b,y]),b=k)}else w.run()};S.allowRecurse=!!t;let m;i==="sync"?m=S:i==="post"?m=()=>je(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),m=()=>Cs(S));const w=new qi(a,m);return t?n?S():b=w.run():i==="post"?je(w.run.bind(w),l&&l.suspense):w.run(),()=>{w.stop(),l&&l.scope&&Fi(l.scope.effects,w)}}function ff(e,t,n){const s=this.proxy,i=ve(e)?e.includes(".")?Xo(s,e):()=>s[e]:e.bind(s,s);let r;H(t)?r=t:(r=t.handler,n=t);const o=ke;hn(this);const l=Qo(i,r.bind(s),n);return o?hn(o):qt(),l}function Xo(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function en(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ie(e))en(e.value,t);else if(q(e))for(let n=0;n<e.length;n++)en(e[n],t);else if(Eo(e)||rn(e))e.forEach(n=>{en(n,t)});else if(Io(e))for(const n in e)en(e[n],t);return e}function uf(e){return H(e)?{setup:e,name:e.name}:e}const Mn=e=>!!e.type.__asyncLoader;function hf(e){H(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:i=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,h=0;const d=()=>(h++,a=null,y()),y=()=>{let b;return a||(b=a=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),l)return new Promise((m,w)=>{l(S,()=>m(d()),()=>w(S),h+1)});throw S}).then(S=>b!==a&&a?a:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),c=S,S)))};return uf({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return c},setup(){const b=ke;if(c)return()=>ci(c,b);const S=A=>{a=null,Wn(A,b,13,!s)};if(o&&b.suspense||dn)return y().then(A=>()=>ci(A,b)).catch(A=>(S(A),()=>s?he(s,{error:A}):null));const m=ri(!1),w=ri(),k=ri(!!i);return i&&setTimeout(()=>{k.value=!1},i),r!=null&&setTimeout(()=>{if(!m.value&&!w.value){const A=new Error(`Async component timed out after ${r}ms.`);S(A),w.value=A}},r),y().then(()=>{m.value=!0,b.parent&&Xi(b.parent.vnode)&&Cs(b.parent.update)}).catch(A=>{S(A),w.value=A}),()=>{if(m.value&&c)return ci(c,b);if(w.value&&s)return he(s,{error:w.value});if(n&&!k.value)return he(n)}}})}function ci(e,{vnode:{ref:t,props:n,children:s,shapeFlag:i},parent:r}){const o=he(e,n,s);return o.ref=t,o}const Xi=e=>e.type.__isKeepAlive;function df(e,t){Zo(e,"a",t)}function pf(e,t){Zo(e,"da",t)}function Zo(e,t,n=ke){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ms(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Xi(i.parent.vnode)&&mf(s,t,n,i),i=i.parent}}function mf(e,t,n,s){const i=Ms(t,e,s,!0);el(()=>{Fi(s[t],i)},n)}function Ms(e,t,n=ke,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;mn(),hn(n);const l=Qe(t,n,e,o);return qt(),gn(),l});return s?i.unshift(r):i.push(r),r}}const yt=e=>(t,n=ke)=>(!dn||e==="sp")&&Ms(e,(...s)=>t(...s),n),gf=yt("bm"),yf=yt("m"),bf=yt("bu"),_f=yt("u"),wf=yt("bum"),el=yt("um"),vf=yt("sp"),Sf=yt("rtg"),kf=yt("rtc");function Of(e,t=ke){Ms("ec",e,t)}function Dt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let a=l.dir[s];a&&(mn(),Qe(a,n,8,[e.el,l,e,t]),gn())}}const Zi="components";function nt(e,t){return nl(Zi,e,!0,t)||e}const tl=Symbol();function Ef(e){return ve(e)?nl(Zi,e,!1)||e:e||tl}function nl(e,t,n=!0,s=!1){const i=Re||ke;if(i){const r=i.type;if(e===Zi){const l=eu(r,!1);if(l&&(l===t||l===ot(t)||l===Ns(ot(t))))return r}const o=Vr(i[e]||r[e],t)||Vr(i.appContext[e],t);return!o&&s?r:o}}function Vr(e,t){return e&&(e[t]||e[ot(t)]||e[Ns(ot(t))])}function $n(e,t,n,s){let i;const r=n&&n[s];if(q(e)||ve(e)){i=new Array(e.length);for(let o=0,l=e.length;o<l;o++)i[o]=t(e[o],o,void 0,r&&r[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(de(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,r&&r[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[s]=i),i}function Dn(e,t,n={},s,i){if(Re.isCE||Re.parent&&Mn(Re.parent)&&Re.parent.isCE)return he("slot",t==="default"?null:{name:t},s&&s());let r=e[t];r&&r._c&&(r._d=!1),U();const o=r&&sl(r(n)),l=kt(Te,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function sl(e){return e.some(t=>Ss(t)?!(t.type===Nt||t.type===Te&&!sl(t.children)):!0)?e:null}const Oi=e=>e?pl(e)?ir(e)||e.proxy:Oi(e.parent):null,ws=Me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Oi(e.parent),$root:e=>Oi(e.root),$emit:e=>e.emit,$options:e=>er(e),$forceUpdate:e=>e.f||(e.f=()=>Cs(e.update)),$nextTick:e=>e.n||(e.n=Yc.bind(e.proxy)),$watch:e=>ff.bind(e)}),Tf={get({_:e},t){const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(s!==oe&&z(s,t))return o[t]=1,s[t];if(i!==oe&&z(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&z(c,t))return o[t]=3,r[t];if(n!==oe&&z(n,t))return o[t]=4,n[t];Ei&&(o[t]=0)}}const h=ws[t];let d,y;if(h)return t==="$attrs"&&Ke(e,"get",t),h(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==oe&&z(n,t))return o[t]=4,n[t];if(y=a.config.globalProperties,z(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return i!==oe&&z(i,t)?(i[t]=n,!0):s!==oe&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let l;return!!n[o]||e!==oe&&z(e,o)||t!==oe&&z(t,o)||(l=r[0])&&z(l,o)||z(s,o)||z(ws,o)||z(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ei=!0;function Af(e){const t=er(e),n=e.proxy,s=e.ctx;Ei=!1,t.beforeCreate&&Hr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:c,created:h,beforeMount:d,mounted:y,beforeUpdate:b,updated:S,activated:m,deactivated:w,beforeDestroy:k,beforeUnmount:A,destroyed:C,unmounted:M,render:R,renderTracked:D,renderTriggered:X,errorCaptured:re,serverPrefetch:_e,expose:Oe,inheritAttrs:me,components:bt,directives:lt,filters:Be}=t;if(c&&If(c,s,null,e.appContext.config.unwrapInjectedRef),o)for(const ce in o){const ee=o[ce];H(ee)&&(s[ce]=ee.bind(n))}if(i){const ce=i.call(n,n);de(ce)&&(e.data=Ji(ce))}if(Ei=!0,r)for(const ce in r){const ee=r[ce],at=H(ee)?ee.bind(n,n):H(ee.get)?ee.get.bind(n,n):Ge,Yt=!H(ee)&&H(ee.set)?ee.set.bind(n):Ge,ct=nu({get:at,set:Yt});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Ue=>ct.value=Ue})}if(l)for(const ce in l)il(l[ce],s,n,ce);if(a){const ce=H(a)?a.call(n):a;Reflect.ownKeys(ce).forEach(ee=>{cf(ee,ce[ee])})}h&&Hr(h,e,"c");function Ee(ce,ee){q(ee)?ee.forEach(at=>ce(at.bind(n))):ee&&ce(ee.bind(n))}if(Ee(gf,d),Ee(yf,y),Ee(bf,b),Ee(_f,S),Ee(df,m),Ee(pf,w),Ee(Of,re),Ee(kf,D),Ee(Sf,X),Ee(wf,A),Ee(el,M),Ee(vf,_e),q(Oe))if(Oe.length){const ce=e.exposed||(e.exposed={});Oe.forEach(ee=>{Object.defineProperty(ce,ee,{get:()=>n[ee],set:at=>n[ee]=at})})}else e.exposed||(e.exposed={});R&&e.render===Ge&&(e.render=R),me!=null&&(e.inheritAttrs=me),bt&&(e.components=bt),lt&&(e.directives=lt)}function If(e,t,n=Ge,s=!1){q(e)&&(e=Ti(e));for(const i in e){const r=e[i];let o;de(r)?"default"in r?o=li(r.from||i,r.default,!0):o=li(r.from||i):o=li(r),Ie(o)&&s?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[i]=o}}function Hr(e,t,n){Qe(q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function il(e,t,n,s){const i=s.includes(".")?Xo(n,s):()=>n[s];if(ve(e)){const r=t[e];H(r)&&ai(i,r)}else if(H(e))ai(i,e.bind(n));else if(de(e))if(q(e))e.forEach(r=>il(r,t,n,s));else{const r=H(e.handler)?e.handler.bind(n):t[e.handler];H(r)&&ai(i,r,e)}}function er(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(c=>vs(a,c,o,!0)),vs(a,t,o)),de(t)&&r.set(t,a),a}function vs(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&vs(e,r,n,!0),i&&i.forEach(o=>vs(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Nf[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Nf={data:Wr,props:Rt,emits:Rt,methods:Rt,computed:Rt,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:Rt,directives:Rt,watch:Cf,provide:Wr,inject:$f};function Wr(e,t){return t?e?function(){return Me(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function $f(e,t){return Rt(Ti(e),Ti(t))}function Ti(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ce(e,t){return e?[...new Set([].concat(e,t))]:t}function Rt(e,t){return e?Me(Me(Object.create(null),e),t):t}function Cf(e,t){if(!e)return t;if(!t)return e;const n=Me(Object.create(null),e);for(const s in t)n[s]=Ce(e[s],t[s]);return n}function Lf(e,t,n,s=!1){const i={},r={};ys(r,Ds,1),e.propsDefaults=Object.create(null),rl(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:xc(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Pf(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=Z(i),[a]=e.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const h=e.vnode.dynamicProps;for(let d=0;d<h.length;d++){let y=h[d];if(Ls(e.emitsOptions,y))continue;const b=t[y];if(a)if(z(r,y))b!==r[y]&&(r[y]=b,c=!0);else{const S=ot(y);i[S]=Ai(a,l,S,b,e,!1)}else b!==r[y]&&(r[y]=b,c=!0)}}}else{rl(e,t,i,r)&&(c=!0);let h;for(const d in l)(!t||!z(t,d)&&((h=Jt(d))===d||!z(t,h)))&&(a?n&&(n[d]!==void 0||n[h]!==void 0)&&(i[d]=Ai(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!z(t,d)&&!0)&&(delete r[d],c=!0)}c&&mt(e,"set","$attrs")}function rl(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(hs(a))continue;const c=t[a];let h;i&&z(i,h=ot(a))?!r||!r.includes(h)?n[h]=c:(l||(l={}))[h]=c:Ls(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,o=!0)}if(r){const a=Z(n),c=l||oe;for(let h=0;h<r.length;h++){const d=r[h];n[d]=Ai(i,a,d,c[d],e,!z(c,d))}}return o}function Ai(e,t,n,s,i,r){const o=e[n];if(o!=null){const l=z(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&H(a)){const{propsDefaults:c}=i;n in c?s=c[n]:(hn(i),s=c[n]=a.call(null,t),qt())}else s=a}o[0]&&(r&&!l?s=!1:o[1]&&(s===""||s===Jt(n))&&(s=!0))}return s}function ol(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},l=[];let a=!1;if(!H(e)){const h=d=>{a=!0;const[y,b]=ol(d,t,!0);Me(o,y),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!r&&!a)return de(e)&&s.set(e,sn),sn;if(q(r))for(let h=0;h<r.length;h++){const d=ot(r[h]);Jr(d)&&(o[d]=oe)}else if(r)for(const h in r){const d=ot(h);if(Jr(d)){const y=r[h],b=o[d]=q(y)||H(y)?{type:y}:y;if(b){const S=Gr(Boolean,b.type),m=Gr(String,b.type);b[0]=S>-1,b[1]=m<0||S<m,(S>-1||z(b,"default"))&&l.push(d)}}}const c=[o,l];return de(e)&&s.set(e,c),c}function Jr(e){return e[0]!=="$"}function Yr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function zr(e,t){return Yr(e)===Yr(t)}function Gr(e,t){return q(t)?t.findIndex(n=>zr(n,e)):H(t)&&zr(t,e)?0:-1}const ll=e=>e[0]==="_"||e==="$stable",tr=e=>q(e)?e.map(st):[st(e)],Mf=(e,t,n)=>{if(t._n)return t;const s=Qi((...i)=>tr(t(...i)),n);return s._c=!1,s},al=(e,t,n)=>{const s=e._ctx;for(const i in e){if(ll(i))continue;const r=e[i];if(H(r))t[i]=Mf(i,r,s);else if(r!=null){const o=tr(r);t[i]=()=>o}}},cl=(e,t)=>{const n=tr(t);e.slots.default=()=>n},Df=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Z(t),ys(t,"_",n)):al(t,e.slots={})}else e.slots={},t&&cl(e,t);ys(e.slots,Ds,1)},jf=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=oe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Me(i,t),!n&&l===1&&delete i._):(r=!t.$stable,al(t,i)),o=t}else t&&(cl(e,t),o={default:1});if(r)for(const l in i)!ll(l)&&!(l in o)&&delete i[l]};function fl(){return{app:null,config:{isNativeTag:rc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Rf=0;function Bf(e,t){return function(s,i=null){H(s)||(s=Object.assign({},s)),i!=null&&!de(i)&&(i=null);const r=fl(),o=new Set;let l=!1;const a=r.app={_uid:Rf++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:iu,get config(){return r.config},set config(c){},use(c,...h){return o.has(c)||(c&&H(c.install)?(o.add(c),c.install(a,...h)):H(c)&&(o.add(c),c(a,...h))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,h){return h?(r.components[c]=h,a):r.components[c]},directive(c,h){return h?(r.directives[c]=h,a):r.directives[c]},mount(c,h,d){if(!l){const y=he(s,i);return y.appContext=r,h&&t?t(y,c):e(y,c,d),l=!0,a._container=c,c.__vue_app__=a,ir(y.component)||y.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,h){return r.provides[c]=h,a}};return a}}function Ii(e,t,n,s,i=!1){if(q(e)){e.forEach((y,b)=>Ii(y,t&&(q(t)?t[b]:t),n,s,i));return}if(Mn(s)&&!i)return;const r=s.shapeFlag&4?ir(s.component)||s.component.proxy:s.el,o=i?null:r,{i:l,r:a}=e,c=t&&t.r,h=l.refs===oe?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ve(c)?(h[c]=null,z(d,c)&&(d[c]=null)):Ie(c)&&(c.value=null)),H(a))Tt(a,l,12,[o,h]);else{const y=ve(a),b=Ie(a);if(y||b){const S=()=>{if(e.f){const m=y?z(d,a)?d[a]:h[a]:a.value;i?q(m)&&Fi(m,r):q(m)?m.includes(r)||m.push(r):y?(h[a]=[r],z(d,a)&&(d[a]=h[a])):(a.value=[r],e.k&&(h[e.k]=a.value))}else y?(h[a]=o,z(d,a)&&(d[a]=o)):b&&(a.value=o,e.k&&(h[e.k]=o))};o?(S.id=-1,je(S,n)):S()}}}const je=af;function Ff(e){return xf(e)}function xf(e,t){const n=hc();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:h,parentNode:d,nextSibling:y,setScopeId:b=Ge,insertStaticContent:S}=e,m=(u,g,v,E=null,O=null,N=null,L=!1,I=null,$=!!g.dynamicChildren)=>{if(u===g)return;u&&!An(u,g)&&(E=$t(u),Ue(u,O,N,!0),u=null),g.patchFlag===-2&&($=!1,g.dynamicChildren=null);const{type:T,ref:B,shapeFlag:P}=g;switch(T){case nr:w(u,g,v,E);break;case Nt:k(u,g,v,E);break;case fi:u==null&&A(g,v,E,L);break;case Te:bt(u,g,v,E,O,N,L,I,$);break;default:P&1?R(u,g,v,E,O,N,L,I,$):P&6?lt(u,g,v,E,O,N,L,I,$):(P&64||P&128)&&T.process(u,g,v,E,O,N,L,I,$,ft)}B!=null&&O&&Ii(B,u&&u.ref,N,g||u,!g)},w=(u,g,v,E)=>{if(u==null)s(g.el=l(g.children),v,E);else{const O=g.el=u.el;g.children!==u.children&&c(O,g.children)}},k=(u,g,v,E)=>{u==null?s(g.el=a(g.children||""),v,E):g.el=u.el},A=(u,g,v,E)=>{[u.el,u.anchor]=S(u.children,g,v,E,u.el,u.anchor)},C=({el:u,anchor:g},v,E)=>{let O;for(;u&&u!==g;)O=y(u),s(u,v,E),u=O;s(g,v,E)},M=({el:u,anchor:g})=>{let v;for(;u&&u!==g;)v=y(u),i(u),u=v;i(g)},R=(u,g,v,E,O,N,L,I,$)=>{L=L||g.type==="svg",u==null?D(g,v,E,O,N,L,I,$):_e(u,g,O,N,L,I,$)},D=(u,g,v,E,O,N,L,I)=>{let $,T;const{type:B,props:P,shapeFlag:F,transition:K,dirs:W}=u;if($=u.el=o(u.type,N,P&&P.is,P),F&8?h($,u.children):F&16&&re(u.children,$,null,E,O,N&&B!=="foreignObject",L,I),W&&Dt(u,null,E,"created"),P){for(const Q in P)Q!=="value"&&!hs(Q)&&r($,Q,null,P[Q],N,u.children,E,O,Ne);"value"in P&&r($,"value",null,P.value),(T=P.onVnodeBeforeMount)&&et(T,E,u)}X($,u,u.scopeId,L,E),W&&Dt(u,null,E,"beforeMount");const ne=(!O||O&&!O.pendingBranch)&&K&&!K.persisted;ne&&K.beforeEnter($),s($,g,v),((T=P&&P.onVnodeMounted)||ne||W)&&je(()=>{T&&et(T,E,u),ne&&K.enter($),W&&Dt(u,null,E,"mounted")},O)},X=(u,g,v,E,O)=>{if(v&&b(u,v),E)for(let N=0;N<E.length;N++)b(u,E[N]);if(O){let N=O.subTree;if(g===N){const L=O.vnode;X(u,L,L.scopeId,L.slotScopeIds,O.parent)}}},re=(u,g,v,E,O,N,L,I,$=0)=>{for(let T=$;T<u.length;T++){const B=u[T]=I?St(u[T]):st(u[T]);m(null,B,g,v,E,O,N,L,I)}},_e=(u,g,v,E,O,N,L)=>{const I=g.el=u.el;let{patchFlag:$,dynamicChildren:T,dirs:B}=g;$|=u.patchFlag&16;const P=u.props||oe,F=g.props||oe;let K;v&&jt(v,!1),(K=F.onVnodeBeforeUpdate)&&et(K,v,g,u),B&&Dt(g,u,v,"beforeUpdate"),v&&jt(v,!0);const W=O&&g.type!=="foreignObject";if(T?Oe(u.dynamicChildren,T,I,v,E,W,N):L||ee(u,g,I,null,v,E,W,N,!1),$>0){if($&16)me(I,g,P,F,v,E,O);else if($&2&&P.class!==F.class&&r(I,"class",null,F.class,O),$&4&&r(I,"style",P.style,F.style,O),$&8){const ne=g.dynamicProps;for(let Q=0;Q<ne.length;Q++){const pe=ne[Q],De=P[pe],ut=F[pe];(ut!==De||pe==="value")&&r(I,pe,De,ut,O,u.children,v,E,Ne)}}$&1&&u.children!==g.children&&h(I,g.children)}else!L&&T==null&&me(I,g,P,F,v,E,O);((K=F.onVnodeUpdated)||B)&&je(()=>{K&&et(K,v,g,u),B&&Dt(g,u,v,"updated")},E)},Oe=(u,g,v,E,O,N,L)=>{for(let I=0;I<g.length;I++){const $=u[I],T=g[I],B=$.el&&($.type===Te||!An($,T)||$.shapeFlag&70)?d($.el):v;m($,T,B,null,E,O,N,L,!0)}},me=(u,g,v,E,O,N,L)=>{if(v!==E){if(v!==oe)for(const I in v)!hs(I)&&!(I in E)&&r(u,I,v[I],null,L,g.children,O,N,Ne);for(const I in E){if(hs(I))continue;const $=E[I],T=v[I];$!==T&&I!=="value"&&r(u,I,T,$,L,g.children,O,N,Ne)}"value"in E&&r(u,"value",v.value,E.value)}},bt=(u,g,v,E,O,N,L,I,$)=>{const T=g.el=u?u.el:l(""),B=g.anchor=u?u.anchor:l("");let{patchFlag:P,dynamicChildren:F,slotScopeIds:K}=g;K&&(I=I?I.concat(K):K),u==null?(s(T,v,E),s(B,v,E),re(g.children,v,B,O,N,L,I,$)):P>0&&P&64&&F&&u.dynamicChildren?(Oe(u.dynamicChildren,F,v,O,N,L,I),(g.key!=null||O&&g===O.subTree)&&ul(u,g,!0)):ee(u,g,v,B,O,N,L,I,$)},lt=(u,g,v,E,O,N,L,I,$)=>{g.slotScopeIds=I,u==null?g.shapeFlag&512?O.ctx.activate(g,v,E,L,$):Be(g,v,E,O,N,L,$):Gn(u,g,$)},Be=(u,g,v,E,O,N,L)=>{const I=u.component=zf(u,E,O);if(Xi(u)&&(I.ctx.renderer=ft),Gf(I),I.asyncDep){if(O&&O.registerDep(I,Ee),!u.el){const $=I.subTree=he(Nt);k(null,$,g,v)}return}Ee(I,u,g,v,O,N,L)},Gn=(u,g,v)=>{const E=g.component=u.component;if(rf(u,g,v))if(E.asyncDep&&!E.asyncResolved){ce(E,g,v);return}else E.next=g,Gc(E.update),E.update();else g.el=u.el,E.vnode=g},Ee=(u,g,v,E,O,N,L)=>{const I=()=>{if(u.isMounted){let{next:B,bu:P,u:F,parent:K,vnode:W}=u,ne=B,Q;jt(u,!1),B?(B.el=W.el,ce(u,B,L)):B=W,P&&ii(P),(Q=B.props&&B.props.onVnodeBeforeUpdate)&&et(Q,K,B,W),jt(u,!0);const pe=oi(u),De=u.subTree;u.subTree=pe,m(De,pe,d(De.el),$t(De),u,O,N),B.el=pe.el,ne===null&&of(u,pe.el),F&&je(F,O),(Q=B.props&&B.props.onVnodeUpdated)&&je(()=>et(Q,K,B,W),O)}else{let B;const{el:P,props:F}=g,{bm:K,m:W,parent:ne}=u,Q=Mn(g);if(jt(u,!1),K&&ii(K),!Q&&(B=F&&F.onVnodeBeforeMount)&&et(B,ne,g),jt(u,!0),P&&zt){const pe=()=>{u.subTree=oi(u),zt(P,u.subTree,u,O,null)};Q?g.type.__asyncLoader().then(()=>!u.isUnmounted&&pe()):pe()}else{const pe=u.subTree=oi(u);m(null,pe,v,E,u,O,N),g.el=pe.el}if(W&&je(W,O),!Q&&(B=F&&F.onVnodeMounted)){const pe=g;je(()=>et(B,ne,pe),O)}(g.shapeFlag&256||ne&&Mn(ne.vnode)&&ne.vnode.shapeFlag&256)&&u.a&&je(u.a,O),u.isMounted=!0,g=v=E=null}},$=u.effect=new qi(I,()=>Cs(T),u.scope),T=u.update=()=>$.run();T.id=u.uid,jt(u,!0),T()},ce=(u,g,v)=>{g.component=u;const E=u.vnode.props;u.vnode=g,u.next=null,Pf(u,g.props,E,v),jf(u,g.children,v),mn(),Kr(),gn()},ee=(u,g,v,E,O,N,L,I,$=!1)=>{const T=u&&u.children,B=u?u.shapeFlag:0,P=g.children,{patchFlag:F,shapeFlag:K}=g;if(F>0){if(F&128){Yt(T,P,v,E,O,N,L,I,$);return}else if(F&256){at(T,P,v,E,O,N,L,I,$);return}}K&8?(B&16&&Ne(T,O,N),P!==T&&h(v,P)):B&16?K&16?Yt(T,P,v,E,O,N,L,I,$):Ne(T,O,N,!0):(B&8&&h(v,""),K&16&&re(P,v,E,O,N,L,I,$))},at=(u,g,v,E,O,N,L,I,$)=>{u=u||sn,g=g||sn;const T=u.length,B=g.length,P=Math.min(T,B);let F;for(F=0;F<P;F++){const K=g[F]=$?St(g[F]):st(g[F]);m(u[F],K,v,null,O,N,L,I,$)}T>B?Ne(u,O,N,!0,!1,P):re(g,v,E,O,N,L,I,$,P)},Yt=(u,g,v,E,O,N,L,I,$)=>{let T=0;const B=g.length;let P=u.length-1,F=B-1;for(;T<=P&&T<=F;){const K=u[T],W=g[T]=$?St(g[T]):st(g[T]);if(An(K,W))m(K,W,v,null,O,N,L,I,$);else break;T++}for(;T<=P&&T<=F;){const K=u[P],W=g[F]=$?St(g[F]):st(g[F]);if(An(K,W))m(K,W,v,null,O,N,L,I,$);else break;P--,F--}if(T>P){if(T<=F){const K=F+1,W=K<B?g[K].el:E;for(;T<=F;)m(null,g[T]=$?St(g[T]):st(g[T]),v,W,O,N,L,I,$),T++}}else if(T>F)for(;T<=P;)Ue(u[T],O,N,!0),T++;else{const K=T,W=T,ne=new Map;for(T=W;T<=F;T++){const $e=g[T]=$?St(g[T]):st(g[T]);$e.key!=null&&ne.set($e.key,T)}let Q,pe=0;const De=F-W+1;let ut=!1,kn=0;const wt=new Array(De);for(T=0;T<De;T++)wt[T]=0;for(T=K;T<=P;T++){const $e=u[T];if(pe>=De){Ue($e,O,N,!0);continue}let Se;if($e.key!=null)Se=ne.get($e.key);else for(Q=W;Q<=F;Q++)if(wt[Q-W]===0&&An($e,g[Q])){Se=Q;break}Se===void 0?Ue($e,O,N,!0):(wt[Se-W]=T+1,Se>=kn?kn=Se:ut=!0,m($e,g[Se],v,null,O,N,L,I,$),pe++)}const Xn=ut?Kf(wt):sn;for(Q=Xn.length-1,T=De-1;T>=0;T--){const $e=W+T,Se=g[$e],Lt=$e+1<B?g[$e+1].el:E;wt[T]===0?m(null,Se,v,Lt,O,N,L,I,$):ut&&(Q<0||T!==Xn[Q]?ct(Se,v,Lt,2):Q--)}}},ct=(u,g,v,E,O=null)=>{const{el:N,type:L,transition:I,children:$,shapeFlag:T}=u;if(T&6){ct(u.component.subTree,g,v,E);return}if(T&128){u.suspense.move(g,v,E);return}if(T&64){L.move(u,g,v,ft);return}if(L===Te){s(N,g,v);for(let P=0;P<$.length;P++)ct($[P],g,v,E);s(u.anchor,g,v);return}if(L===fi){C(u,g,v);return}if(E!==2&&T&1&&I)if(E===0)I.beforeEnter(N),s(N,g,v),je(()=>I.enter(N),O);else{const{leave:P,delayLeave:F,afterLeave:K}=I,W=()=>s(N,g,v),ne=()=>{P(N,()=>{W(),K&&K()})};F?F(N,W,ne):ne()}else s(N,g,v)},Ue=(u,g,v,E=!1,O=!1)=>{const{type:N,props:L,ref:I,children:$,dynamicChildren:T,shapeFlag:B,patchFlag:P,dirs:F}=u;if(I!=null&&Ii(I,null,v,u,!0),B&256){g.ctx.deactivate(u);return}const K=B&1&&F,W=!Mn(u);let ne;if(W&&(ne=L&&L.onVnodeBeforeUnmount)&&et(ne,g,u),B&6)Ws(u.component,v,E);else{if(B&128){u.suspense.unmount(v,E);return}K&&Dt(u,null,g,"beforeUnmount"),B&64?u.type.remove(u,g,v,O,ft,E):T&&(N!==Te||P>0&&P&64)?Ne(T,g,v,!1,!0):(N===Te&&P&384||!O&&B&16)&&Ne($,g,v),E&&te(u)}(W&&(ne=L&&L.onVnodeUnmounted)||K)&&je(()=>{ne&&et(ne,g,u),K&&Dt(u,null,g,"unmounted")},v)},te=u=>{const{type:g,el:v,anchor:E,transition:O}=u;if(g===Te){Qn(v,E);return}if(g===fi){M(u);return}const N=()=>{i(v),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(u.shapeFlag&1&&O&&!O.persisted){const{leave:L,delayLeave:I}=O,$=()=>L(v,N);I?I(u.el,N,$):$()}else N()},Qn=(u,g)=>{let v;for(;u!==g;)v=y(u),i(u),u=v;i(g)},Ws=(u,g,v)=>{const{bum:E,scope:O,update:N,subTree:L,um:I}=u;E&&ii(E),O.stop(),N&&(N.active=!1,Ue(L,u,g,v)),I&&je(I,g),je(()=>{u.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Ne=(u,g,v,E=!1,O=!1,N=0)=>{for(let L=N;L<u.length;L++)Ue(u[L],g,v,E,O)},$t=u=>u.shapeFlag&6?$t(u.component.subTree):u.shapeFlag&128?u.suspense.next():y(u.anchor||u.el),_t=(u,g,v)=>{u==null?g._vnode&&Ue(g._vnode,null,null,!0):m(g._vnode||null,u,g,null,null,null,v),Kr(),Yo(),g._vnode=u},ft={p:m,um:Ue,m:ct,r:te,mt:Be,mc:re,pc:ee,pbc:Oe,n:$t,o:e};let Ct,zt;return t&&([Ct,zt]=t(ft)),{render:_t,hydrate:Ct,createApp:Bf(_t,Ct)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ul(e,t,n=!1){const s=e.children,i=t.children;if(q(s)&&q(i))for(let r=0;r<s.length;r++){const o=s[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=St(i[r]),l.el=o.el),n||ul(o,l))}}function Kf(e){const t=e.slice(),n=[0];let s,i,r,o,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(i=n[n.length-1],e[i]<c){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)l=r+o>>1,e[n[l]]<c?r=l+1:o=l;c<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}const Uf=e=>e.__isTeleport,Te=Symbol(void 0),nr=Symbol(void 0),Nt=Symbol(void 0),fi=Symbol(void 0),jn=[];let ze=null;function U(e=!1){jn.push(ze=e?null:[])}function qf(){jn.pop(),ze=jn[jn.length-1]||null}let qn=1;function Qr(e){qn+=e}function hl(e){return e.dynamicChildren=qn>0?ze||sn:null,qf(),qn>0&&ze&&ze.push(e),e}function J(e,t,n,s,i,r){return hl(x(e,t,n,s,i,r,!0))}function kt(e,t,n,s,i){return hl(he(e,t,n,s,i,!0))}function Ss(e){return e?e.__v_isVNode===!0:!1}function An(e,t){return e.type===t.type&&e.key===t.key}const Ds="__vInternal",dl=({key:e})=>e!=null?e:null,ds=({ref:e,ref_key:t,ref_for:n})=>e!=null?ve(e)||Ie(e)||H(e)?{i:Re,r:e,k:t,f:!!n}:e:null;function x(e,t=null,n=null,s=0,i=null,r=e===Te?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dl(t),ref:t&&ds(t),scopeId:Ps,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(sr(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ve(n)?8:16),qn>0&&!o&&ze&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ze.push(a),a}const he=Vf;function Vf(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===tl)&&(e=Nt),Ss(e)){const l=un(e,t,!0);return n&&sr(l,n),qn>0&&!r&&ze&&(l.shapeFlag&6?ze[ze.indexOf(e)]=l:ze.push(l)),l.patchFlag|=-2,l}if(tu(e)&&(e=e.__vccOpts),t){t=Hf(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=ge(l)),de(a)&&(xo(a)&&!q(a)&&(a=Me({},a)),t.style=Es(a))}const o=ve(e)?1:lf(e)?128:Uf(e)?64:de(e)?4:H(e)?2:0;return x(e,t,n,s,i,o,r,!0)}function Hf(e){return e?xo(e)||Ds in e?Me({},e):e:null}function un(e,t,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=e,l=t?Wf(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&dl(l),ref:t&&t.ref?n&&i?q(i)?i.concat(ds(t)):[i,ds(t)]:ds(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&un(e.ssContent),ssFallback:e.ssFallback&&un(e.ssFallback),el:e.el,anchor:e.anchor}}function Vt(e=" ",t=0){return he(nr,null,e,t)}function le(e="",t=!1){return t?(U(),kt(Nt,null,e)):he(Nt,null,e)}function st(e){return e==null||typeof e=="boolean"?he(Nt):q(e)?he(Te,null,e.slice()):typeof e=="object"?St(e):he(nr,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:un(e)}function sr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),sr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ds in t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),s&64?(n=16,t=[Vt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wf(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=ge([t.class,s.class]));else if(i==="style")t.style=Es([t.style,s.style]);else if(Ts(i)){const r=t[i],o=s[i];o&&r!==o&&!(q(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function et(e,t,n,s=null){Qe(e,t,7,[n,s])}const Jf=fl();let Yf=0;function zf(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Jf,r={uid:Yf++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new dc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ol(s,i),emitsOptions:Go(s,i),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:s.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Zc.bind(null,r),e.ce&&e.ce(r),r}let ke=null;const hn=e=>{ke=e,e.scope.on()},qt=()=>{ke&&ke.scope.off(),ke=null};function pl(e){return e.vnode.shapeFlag&4}let dn=!1;function Gf(e,t=!1){dn=t;const{props:n,children:s}=e.vnode,i=pl(e);Lf(e,n,i,t),Df(e,s);const r=i?Qf(e,t):void 0;return dn=!1,r}function Qf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ko(new Proxy(e.ctx,Tf));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?Zf(e):null;hn(e),mn();const r=Tt(s,e,0,[e.props,i]);if(gn(),qt(),To(r)){if(r.then(qt,qt),t)return r.then(o=>{Xr(e,o,t)}).catch(o=>{Wn(o,e,0)});e.asyncDep=r}else Xr(e,r,t)}else ml(e,t)}function Xr(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Vo(t)),ml(e,n)}let Zr;function ml(e,t,n){const s=e.type;if(!e.render){if(!t&&Zr&&!s.render){const i=s.template||er(e).template;if(i){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,c=Me(Me({isCustomElement:r,delimiters:l},o),a);s.render=Zr(i,c)}}e.render=s.render||Ge}hn(e),mn(),Af(e),gn(),qt()}function Xf(e){return new Proxy(e.attrs,{get(t,n){return Ke(e,"get","$attrs"),t[n]}})}function Zf(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Xf(e))},slots:e.slots,emit:e.emit,expose:t}}function ir(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vo(Ko(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ws)return ws[n](e)}}))}function eu(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function tu(e){return H(e)&&"__vccOpts"in e}const nu=(e,t)=>Wc(e,t,dn);function su(e,t,n){const s=arguments.length;return s===2?de(t)&&!q(t)?Ss(t)?he(e,null,[t]):he(e,t):he(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ss(n)&&(n=[n]),he(e,t,n))}const iu="3.2.41",ru="http://www.w3.org/2000/svg",xt=typeof document<"u"?document:null,eo=xt&&xt.createElement("template"),ou={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t?xt.createElementNS(ru,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{eo.innerHTML=s?`<svg>${e}</svg>`:e;const l=eo.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function lu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function au(e,t,n){const s=e.style,i=ve(n);if(n&&!i){for(const r in n)Ni(s,r,n[r]);if(t&&!ve(t))for(const r in t)n[r]==null&&Ni(s,r,"")}else{const r=s.display;i?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const to=/\s*!important$/;function Ni(e,t,n){if(q(n))n.forEach(s=>Ni(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=cu(e,t);to.test(n)?e.setProperty(Jt(s),n.replace(to,""),"important"):e[s]=n}}const no=["Webkit","Moz","ms"],ui={};function cu(e,t){const n=ui[t];if(n)return n;let s=ot(t);if(s!=="filter"&&s in e)return ui[t]=s;s=Ns(s);for(let i=0;i<no.length;i++){const r=no[i]+s;if(r in e)return ui[t]=r}return t}const so="http://www.w3.org/1999/xlink";function fu(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(so,t.slice(6,t.length)):e.setAttributeNS(so,t,n);else{const r=tc(t);n==null||r&&!ko(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function uu(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n==null?"":n;(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ko(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function hu(e,t,n,s){e.addEventListener(t,n,s)}function du(e,t,n,s){e.removeEventListener(t,n,s)}function pu(e,t,n,s,i=null){const r=e._vei||(e._vei={}),o=r[t];if(s&&o)o.value=s;else{const[l,a]=mu(t);if(s){const c=r[t]=bu(s,i);hu(e,l,c,a)}else o&&(du(e,l,o,a),r[t]=void 0)}}const io=/(?:Once|Passive|Capture)$/;function mu(e){let t;if(io.test(e)){t={};let s;for(;s=e.match(io);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jt(e.slice(2)),t]}let hi=0;const gu=Promise.resolve(),yu=()=>hi||(gu.then(()=>hi=0),hi=Date.now());function bu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Qe(_u(s,n.value),t,5,[s])};return n.value=e,n.attached=yu(),n}function _u(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const ro=/^on[a-z]/,wu=(e,t,n,s,i=!1,r,o,l,a)=>{t==="class"?lu(e,s,i):t==="style"?au(e,n,s):Ts(t)?Bi(t)||pu(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vu(e,t,s,i))?uu(e,t,s,r,o,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fu(e,t,s,i))};function vu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&ro.test(t)&&H(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ro.test(t)&&ve(n)?!1:t in e}const Su=["ctrl","shift","alt","meta"],ku={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Su.some(n=>e[`${n}Key`]&&!t.includes(n))},$i=(e,t)=>(n,...s)=>{for(let i=0;i<t.length;i++){const r=ku[t[i]];if(r&&r(n,t))return}return e(n,...s)},Ou={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},oo=(e,t)=>n=>{if(!("key"in n))return;const s=Jt(n.key);if(t.some(i=>i===s||Ou[i]===s))return e(n)},Eu=Me({patchProp:wu},ou);let lo;function Tu(){return lo||(lo=Ff(Eu))}const Au=(...e)=>{const t=Tu().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=Iu(s);if(!i)return;const r=t._component;!H(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Iu(e){return ve(e)?document.querySelector(e):e}const rr=Symbol.for("yaml.alias"),Ci=Symbol.for("yaml.document"),At=Symbol.for("yaml.map"),gl=Symbol.for("yaml.pair"),gt=Symbol.for("yaml.scalar"),yn=Symbol.for("yaml.seq"),He=Symbol.for("yaml.node.type"),bn=e=>!!e&&typeof e=="object"&&e[He]===rr,or=e=>!!e&&typeof e=="object"&&e[He]===Ci,_n=e=>!!e&&typeof e=="object"&&e[He]===At,be=e=>!!e&&typeof e=="object"&&e[He]===gl,ae=e=>!!e&&typeof e=="object"&&e[He]===gt,Jn=e=>!!e&&typeof e=="object"&&e[He]===yn;function ye(e){if(e&&typeof e=="object")switch(e[He]){case At:case yn:return!0}return!1}function we(e){if(e&&typeof e=="object")switch(e[He]){case rr:case At:case gt:case yn:return!0}return!1}const Nu=e=>(ae(e)||ye(e))&&!!e.anchor;class lr{constructor(t){Object.defineProperty(this,He,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Bt=Symbol("break visit"),$u=Symbol("skip children"),Rn=Symbol("remove node");function Ht(e,t){const n=Cu(t);or(e)?tn(null,e.contents,n,Object.freeze([e]))===Rn&&(e.contents=null):tn(null,e,n,Object.freeze([]))}Ht.BREAK=Bt;Ht.SKIP=$u;Ht.REMOVE=Rn;function tn(e,t,n,s){const i=Lu(e,t,n,s);if(we(i)||be(i))return Pu(e,s,i),tn(e,i,n,s);if(typeof i!="symbol"){if(ye(t)){s=Object.freeze(s.concat(t));for(let r=0;r<t.items.length;++r){const o=tn(r,t.items[r],n,s);if(typeof o=="number")r=o-1;else{if(o===Bt)return Bt;o===Rn&&(t.items.splice(r,1),r-=1)}}}else if(be(t)){s=Object.freeze(s.concat(t));const r=tn("key",t.key,n,s);if(r===Bt)return Bt;r===Rn&&(t.key=null);const o=tn("value",t.value,n,s);if(o===Bt)return Bt;o===Rn&&(t.value=null)}}return i}function Cu(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Lu(e,t,n,s){var i,r,o,l,a;if(typeof n=="function")return n(e,t,s);if(_n(t))return(i=n.Map)==null?void 0:i.call(n,e,t,s);if(Jn(t))return(r=n.Seq)==null?void 0:r.call(n,e,t,s);if(be(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,s);if(ae(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,s);if(bn(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,s)}function Pu(e,t,n){const s=t[t.length-1];if(ye(s))s.items[e]=n;else if(be(s))e==="key"?s.key=n:s.value=n;else if(or(s))s.contents=n;else{const i=bn(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const Mu={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Du=e=>e.replace(/[!,[\]{}]/g,t=>Mu[t]);class Le{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Le.defaultYaml,t),this.tags=Object.assign({},Le.defaultTags,n)}clone(){const t=new Le(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Le(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Le.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Le.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Le.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Le.defaultTags),this.atNextDocument=!1);const s=t.trim().split(/[ \t]+/),i=s.shift();switch(i){case"%TAG":{if(s.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[r,o]=s;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[r]=s;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return n(6,`Unsupported YAML version ${r}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,s,i]=t.match(/^(.*!)([^!]*)$/);i||n(`The ${t} tag has no suffix`);const r=this.tags[s];return r?r+decodeURIComponent(i):s==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,s]of Object.entries(this.tags))if(t.startsWith(s))return n+Du(t.substring(s.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let i;if(t&&s.length>0&&we(t.contents)){const r={};Ht(t.contents,(o,l)=>{we(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of s)r==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(l=>l.startsWith(o)))&&n.push(`%TAG ${r} ${o}`);return n.join(`
`)}}Le.defaultYaml={explicit:!1,version:"1.2"};Le.defaultTags={"!!":"tag:yaml.org,2002:"};function yl(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function bl(e){const t=new Set;return Ht(e,{Value(n,s){s.anchor&&t.add(s.anchor)}}),t}function _l(e,t){for(let n=1;;++n){const s=`${e}${n}`;if(!t.has(s))return s}}function ju(e,t){const n=[],s=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=bl(e));const o=_l(t,i);return i.add(o),o},setAnchors:()=>{for(const r of n){const o=s.get(r);if(typeof o=="object"&&o.anchor&&(ae(o.node)||ye(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},sourceObjects:s}}class ar extends lr{constructor(t){super(rr),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Ht(t,{Node:(s,i)=>{if(i===this)return Ht.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:s,doc:i,maxAliasCount:r}=n,o=this.resolve(i);if(!o){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}const l=s.get(o);if(!l||l.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(r>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=ps(i,o,s)),l.count*l.aliasCount>r)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(t,n,s){const i=`*${this.source}`;if(t){if(yl(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(t.implicitKey)return`${i} `}return i}}function ps(e,t,n){if(bn(t)){const s=t.resolve(e),i=n&&s&&n.get(s);return i?i.count*i.aliasCount:0}else if(ye(t)){let s=0;for(const i of t.items){const r=ps(e,i,n);r>s&&(s=r)}return s}else if(be(t)){const s=ps(e,t.key,n),i=ps(e,t.value,n);return Math.max(s,i)}return 1}function rt(e,t,n){if(Array.isArray(e))return e.map((s,i)=>rt(s,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!Nu(e))return e.toJSON(t,n);const s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=r=>{s.res=r,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}const wl=e=>!e||typeof e!="function"&&typeof e!="object";class V extends lr{constructor(t){super(gt),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:rt(this.value,t,n)}toString(){return String(this.value)}}V.BLOCK_FOLDED="BLOCK_FOLDED";V.BLOCK_LITERAL="BLOCK_LITERAL";V.PLAIN="PLAIN";V.QUOTE_DOUBLE="QUOTE_DOUBLE";V.QUOTE_SINGLE="QUOTE_SINGLE";const Ru="tag:yaml.org,2002:";function Bu(e,t,n){var s;if(t){const i=n.filter(o=>o.tag===t),r=(s=i.find(o=>!o.format))!=null?s:i[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,e))&&!i.format})}function Vn(e,t,n){var d,y;if(or(e)&&(e=e.contents),we(e))return e;if(be(e)){const b=(y=(d=n.schema[At]).createNode)==null?void 0:y.call(d,n.schema,null,n);return b.items.push(e),b}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:s,onAnchor:i,onTagObj:r,schema:o,sourceObjects:l}=n;let a;if(s&&e&&typeof e=="object"){if(a=l.get(e),a)return a.anchor||(a.anchor=i(e)),new ar(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=Ru+t.slice(2));let c=Bu(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const b=new V(e);return a&&(a.node=b),b}c=e instanceof Map?o[At]:Symbol.iterator in Object(e)?o[yn]:o[At]}r&&(r(c),delete n.onTagObj);const h=c!=null&&c.createNode?c.createNode(n.schema,e,n):new V(e);return t&&(h.tag=t),a&&(a.node=h),h}function ks(e,t,n){let s=n;for(let i=t.length-1;i>=0;--i){const r=t[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=s,s=o}else s=new Map([[r,s]])}return Vn(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Cn=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class js extends lr{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(s=>we(s)||be(s)?s.clone(t):s),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Cn(t))this.add(n);else{const[s,...i]=t,r=this.get(s,!0);if(ye(r))r.addIn(i,n);else if(r===void 0&&this.schema)this.set(s,ks(this.schema,i,n));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}}deleteIn(t){const[n,...s]=t;if(s.length===0)return this.delete(n);const i=this.get(n,!0);if(ye(i))return i.deleteIn(s);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}getIn(t,n){const[s,...i]=t,r=this.get(s,!0);return i.length===0?!n&&ae(r)?r.value:r:ye(r)?r.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!be(n))return!1;const s=n.value;return s==null||t&&ae(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(t){const[n,...s]=t;if(s.length===0)return this.has(n);const i=this.get(n,!0);return ye(i)?i.hasIn(s):!1}setIn(t,n){const[s,...i]=t;if(i.length===0)this.set(s,n);else{const r=this.get(s,!0);if(ye(r))r.setIn(i,n);else if(r===void 0&&this.schema)this.set(s,ks(this.schema,i,n));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}}}js.maxFlowStringSingleLineLength=60;const Fu=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function pt(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Ot=(e,t,n)=>e.endsWith(`
`)?pt(n,t):n.includes(`
`)?`
`+pt(n,t):(e.endsWith(" ")?"":" ")+n,vl="flow",Li="block",ms="quoted";function Rs(e,t,n="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return e;const a=Math.max(1+r,1+i-t.length);if(e.length<=a)return e;const c=[],h={};let d=i-t.length;typeof s=="number"&&(s>i-Math.max(2,r)?c.push(0):d=i-s);let y,b,S=!1,m=-1,w=-1,k=-1;n===Li&&(m=ao(e,m),m!==-1&&(d=m+a));for(let C;C=e[m+=1];){if(n===ms&&C==="\\"){switch(w=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}k=m}if(C===`
`)n===Li&&(m=ao(e,m)),d=m+a,y=void 0;else{if(C===" "&&b&&b!==" "&&b!==`
`&&b!==" "){const M=e[m+1];M&&M!==" "&&M!==`
`&&M!==" "&&(y=m)}if(m>=d)if(y)c.push(y),d=y+a,y=void 0;else if(n===ms){for(;b===" "||b===" ";)b=C,C=e[m+=1],S=!0;const M=m>k+1?m-2:w-1;if(h[M])return e;c.push(M),h[M]=!0,d=M+a,y=void 0}else S=!0}b=C}if(S&&l&&l(),c.length===0)return e;o&&o();let A=e.slice(0,c[0]);for(let C=0;C<c.length;++C){const M=c[C],R=c[C+1]||e.length;M===0?A=`
${t}${e.slice(0,R)}`:(n===ms&&h[M]&&(A+=`${e[M]}\\`),A+=`
${t}${e.slice(M+1,R)}`)}return A}function ao(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
`);n=e[t+1]}return t}const Bs=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Fs=e=>/^(%|---|\.\.\.)/m.test(e);function xu(e,t,n){if(!t||t<0)return!1;const s=t-n,i=e.length;if(i<=s)return!1;for(let r=0,o=0;r<i;++r)if(e[r]===`
`){if(r-o>s)return!0;if(o=r+1,i-o<=s)return!1}return!0}function Bn(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:s}=t,i=t.options.doubleQuotedMinMultiLineLength,r=t.indent||(Fs(e)?" ":"");let o="",l=0;for(let a=0,c=n[a];c;c=n[++a])if(c===" "&&n[a+1]==="\\"&&n[a+2]==="n"&&(o+=n.slice(l,a)+"\\ ",a+=1,l=a,c="\\"),c==="\\")switch(n[a+1]){case"u":{o+=n.slice(l,a);const h=n.substr(a+2,4);switch(h){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:h.substr(0,2)==="00"?o+="\\x"+h.substr(2):o+=n.substr(a,6)}a+=5,l=a+1}break;case"n":if(s||n[a+2]==='"'||n.length<i)a+=1;else{for(o+=n.slice(l,a)+`
`;n[a+2]==="\\"&&n[a+3]==="n"&&n[a+4]!=='"';)o+=`
`,a+=2;o+=r,n[a+2]===" "&&(o+="\\"),a+=1,l=a+1}break;default:a+=1}return o=l?o+n.slice(l):n,s?o:Rs(o,r,ms,Bs(t,!1))}function Pi(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
`)||/[ \t]\n|\n[ \t]/.test(e))return Bn(e,t);const n=t.indent||(Fs(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return t.implicitKey?s:Rs(s,n,vl,Bs(t,!1))}function nn(e,t){const{singleQuote:n}=t.options;let s;if(n===!1)s=Bn;else{const i=e.includes('"'),r=e.includes("'");i&&!r?s=Pi:r&&!i?s=Bn:s=n?Pi:Bn}return s(e,t)}function gs({comment:e,type:t,value:n},s,i,r){const{blockQuote:o,commentString:l,lineWidth:a}=s.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return nn(n,s);const c=s.indent||(s.forceBlockIndent||Fs(n)?" ":""),h=o==="literal"?!0:o==="folded"||t===V.BLOCK_FOLDED?!1:t===V.BLOCK_LITERAL?!0:!xu(n,a,c.length);if(!n)return h?`|
`:`>
`;let d,y;for(y=n.length;y>0;--y){const D=n[y-1];if(D!==`
`&&D!==" "&&D!==" ")break}let b=n.substring(y);const S=b.indexOf(`
`);S===-1?d="-":n===b||S!==b.length-1?(d="+",r&&r()):d="",b&&(n=n.slice(0,-b.length),b[b.length-1]===`
`&&(b=b.slice(0,-1)),b=b.replace(/\n+(?!\n|$)/g,`$&${c}`));let m=!1,w,k=-1;for(w=0;w<n.length;++w){const D=n[w];if(D===" ")m=!0;else if(D===`
`)k=w;else break}let A=n.substring(0,k<w?k+1:w);A&&(n=n.substring(A.length),A=A.replace(/\n+/g,`$&${c}`));let M=(h?"|":">")+(m?c?"2":"1":"")+d;if(e&&(M+=" "+l(e.replace(/ ?[\r\n]+/g," ")),i&&i()),h)return n=n.replace(/\n+/g,`$&${c}`),`${M}
${c}${A}${n}${b}`;n=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const R=Rs(`${A}${n}${b}`,c,Li,Bs(s,!0));return`${M}
${c}${R}`}function Ku(e,t,n,s){const{type:i,value:r}=e,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:h}=t;if(l&&/[\n[\]{},]/.test(r)||h&&/[[\]{},]/.test(r))return nn(r,t);if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||h||!r.includes(`
`)?nn(r,t):gs(e,t,n,s);if(!l&&!h&&i!==V.PLAIN&&r.includes(`
`))return gs(e,t,n,s);if(Fs(r)){if(a==="")return t.forceBlockIndent=!0,gs(e,t,n,s);if(l&&a===c)return nn(r,t)}const d=r.replace(/\n+/g,`$&
${a}`);if(o){const y=m=>{var w;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((w=m.test)==null?void 0:w.test(d))},{compat:b,tags:S}=t.doc.schema;if(S.some(y)||(b==null?void 0:b.some(y)))return nn(r,t)}return l?d:Rs(d,a,vl,Bs(t,!1))}function cr(e,t,n,s){const{implicitKey:i,inFlow:r}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==V.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=V.QUOTE_DOUBLE);const a=h=>{switch(h){case V.BLOCK_FOLDED:case V.BLOCK_LITERAL:return i||r?nn(o.value,t):gs(o,t,n,s);case V.QUOTE_DOUBLE:return Bn(o.value,t);case V.QUOTE_SINGLE:return Pi(o.value,t);case V.PLAIN:return Ku(o,t,n,s);default:return null}};let c=a(l);if(c===null){const{defaultKeyType:h,defaultStringType:d}=t.options,y=i&&h||d;if(c=a(y),c===null)throw new Error(`Unsupported default string type ${y}`)}return c}function Sl(e,t){const n=Object.assign({blockQuote:!0,commentString:Fu,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let s;switch(n.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:s,options:n}}function Uu(e,t){var i,r,o,l;if(t.tag){const a=e.filter(c=>c.tag===t.tag);if(a.length>0)return(i=a.find(c=>c.format===t.format))!=null?i:a[0]}let n,s;if(ae(t)){s=t.value;const a=e.filter(c=>{var h;return(h=c.identify)==null?void 0:h.call(c,s)});n=(r=a.find(c=>c.format===t.format))!=null?r:a.find(c=>!c.format)}else s=t,n=e.find(a=>a.nodeClass&&s instanceof a.nodeClass);if(!n){const a=(l=(o=s==null?void 0:s.constructor)==null?void 0:o.name)!=null?l:typeof s;throw new Error(`Tag not resolved for ${a} value`)}return n}function qu(e,t,{anchors:n,doc:s}){if(!s.directives)return"";const i=[],r=(ae(e)||ye(e))&&e.anchor;r&&yl(r)&&(n.add(r),i.push(`&${r}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(s.directives.tagString(o)),i.join(" ")}function Wt(e,t,n,s){var a,c;if(be(e))return e.toString(t,n,s);if(bn(e)){if(t.doc.directives)return e.toString(t);if((a=t.resolvedAliases)!=null&&a.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const r=we(e)?e:t.doc.createNode(e,{onTagObj:h=>i=h});i||(i=Uu(t.doc.schema.tags,r));const o=qu(r,i,t);o.length>0&&(t.indentAtStart=((c=t.indentAtStart)!=null?c:0)+o.length+1);const l=typeof i.stringify=="function"?i.stringify(r,t,n,s):ae(r)?cr(r,t,n,s):r.toString(t,n,s);return o?ae(r)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
${t.indent}${l}`:l}function Vu({key:e,value:t},n,s,i){var X,re;const{allNullValues:r,doc:o,indent:l,indentStep:a,options:{commentString:c,indentSeq:h,simpleKeys:d}}=n;let y=we(e)&&e.comment||null;if(d){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(ye(e)){const _e="With simple keys, collection cannot be used as a key value";throw new Error(_e)}}let b=!d&&(!e||y&&t==null&&!n.inFlow||ye(e)||(ae(e)?e.type===V.BLOCK_FOLDED||e.type===V.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!b&&(d||!r),indent:l+a});let S=!1,m=!1,w=Wt(e,n,()=>S=!0,()=>m=!0);if(!b&&!n.inFlow&&w.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");b=!0}if(n.inFlow){if(r||t==null)return S&&s&&s(),w===""?"?":b?`? ${w}`:w}else if(r&&!d||t==null&&b)return w=`? ${w}`,y&&!S?w+=Ot(w,n.indent,c(y)):m&&i&&i(),w;S&&(y=null),b?(y&&(w+=Ot(w,n.indent,c(y))),w=`? ${w}
${l}:`):(w=`${w}:`,y&&(w+=Ot(w,n.indent,c(y))));let k,A,C;we(t)?(k=!!t.spaceBefore,A=t.commentBefore,C=t.comment):(k=!1,A=null,C=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!b&&!y&&ae(t)&&(n.indentAtStart=w.length+1),m=!1,!h&&a.length>=2&&!n.inFlow&&!b&&Jn(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let M=!1;const R=Wt(t,n,()=>M=!0,()=>m=!0);let D=" ";if(y||k||A){if(D=k?`
`:"",A){const _e=c(A);D+=`
${pt(_e,n.indent)}`}R===""&&!n.inFlow?D===`
`&&(D=`
`):D+=`
${n.indent}`}else if(!b&&ye(t)){const _e=R[0],Oe=R.indexOf(`
`),me=Oe!==-1,bt=(re=(X=n.inFlow)!=null?X:t.flow)!=null?re:t.items.length===0;if(me||!bt){let lt=!1;if(me&&(_e==="&"||_e==="!")){let Be=R.indexOf(" ");_e==="&"&&Be!==-1&&Be<Oe&&R[Be+1]==="!"&&(Be=R.indexOf(" ",Be+1)),(Be===-1||Oe<Be)&&(lt=!0)}lt||(D=`
${n.indent}`)}}else(R===""||R[0]===`
`)&&(D="");return w+=D+R,n.inFlow?M&&s&&s():C&&!M?w+=Ot(w,n.indent,c(C)):m&&i&&i(),w}function kl(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const co="<<";function Ol(e,t,{key:n,value:s}){if((e==null?void 0:e.doc.schema.merge)&&Hu(n))if(s=bn(s)?s.resolve(e.doc):s,Jn(s))for(const i of s.items)di(e,t,i);else if(Array.isArray(s))for(const i of s)di(e,t,i);else di(e,t,s);else{const i=rt(n,"",e);if(t instanceof Map)t.set(i,rt(s,i,e));else if(t instanceof Set)t.add(i);else{const r=Wu(n,i,e),o=rt(s,r,e);r in t?Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[r]=o}}return t}const Hu=e=>e===co||ae(e)&&e.value===co&&(!e.type||e.type===V.PLAIN);function di(e,t,n){const s=e&&bn(n)?n.resolve(e.doc):n;if(!_n(s))throw new Error("Merge sources must be maps or map aliases");const i=s.toJSON(null,e,Map);for(const[r,o]of i)t instanceof Map?t.has(r)||t.set(r,o):t instanceof Set?t.add(r):Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function Wu(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(we(e)&&n&&n.doc){const s=Sl(n.doc,{});s.anchors=new Set;for(const r of n.anchors.keys())s.anchors.add(r.anchor);s.inFlow=!0,s.inStringifyKey=!0;const i=e.toString(s);if(!n.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),kl(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function fr(e,t,n){const s=Vn(e,void 0,n),i=Vn(t,void 0,n);return new Pe(s,i)}class Pe{constructor(t,n=null){Object.defineProperty(this,He,{value:gl}),this.key=t,this.value=n}clone(t){let{key:n,value:s}=this;return we(n)&&(n=n.clone(t)),we(s)&&(s=s.clone(t)),new Pe(n,s)}toJSON(t,n){const s=n!=null&&n.mapAsMap?new Map:{};return Ol(n,s,this)}toString(t,n,s){return t!=null&&t.doc?Vu(this,t,n,s):JSON.stringify(this)}}function El(e,t,n){var r;return(((r=t.inFlow)!=null?r:e.flow)?Yu:Ju)(e,t,n)}function Ju({comment:e,items:t},n,{blockItemPrefix:s,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){const{indent:a,options:{commentString:c}}=n,h=Object.assign({},n,{indent:r,type:null});let d=!1;const y=[];for(let S=0;S<t.length;++S){const m=t[S];let w=null;if(we(m))!d&&m.spaceBefore&&y.push(""),Os(n,y,m.commentBefore,d),m.comment&&(w=m.comment);else if(be(m)){const A=we(m.key)?m.key:null;A&&(!d&&A.spaceBefore&&y.push(""),Os(n,y,A.commentBefore,d))}d=!1;let k=Wt(m,h,()=>w=null,()=>d=!0);w&&(k+=Ot(k,r,c(w))),d&&w&&(d=!1),y.push(s+k)}let b;if(y.length===0)b=i.start+i.end;else{b=y[0];for(let S=1;S<y.length;++S){const m=y[S];b+=m?`
${a}${m}`:`
`}}return e?(b+=`
`+pt(c(e),a),l&&l()):d&&o&&o(),b}function Yu({comment:e,items:t},n,{flowChars:s,itemIndent:i,onComment:r}){const{indent:o,indentStep:l,flowCollectionPadding:a,options:{commentString:c}}=n;i+=l;const h=Object.assign({},n,{indent:i,inFlow:!0,type:null});let d=!1,y=0;const b=[];for(let k=0;k<t.length;++k){const A=t[k];let C=null;if(we(A))A.spaceBefore&&b.push(""),Os(n,b,A.commentBefore,!1),A.comment&&(C=A.comment);else if(be(A)){const R=we(A.key)?A.key:null;R&&(R.spaceBefore&&b.push(""),Os(n,b,R.commentBefore,!1),R.comment&&(d=!0));const D=we(A.value)?A.value:null;D?(D.comment&&(C=D.comment),D.commentBefore&&(d=!0)):A.value==null&&R&&R.comment&&(C=R.comment)}C&&(d=!0);let M=Wt(A,h,()=>C=null);k<t.length-1&&(M+=","),C&&(M+=Ot(M,i,c(C))),!d&&(b.length>y||M.includes(`
`))&&(d=!0),b.push(M),y=b.length}let S;const{start:m,end:w}=s;if(b.length===0)S=m+w;else if(d||(d=b.reduce((A,C)=>A+C.length+2,2)>js.maxFlowStringSingleLineLength),d){S=m;for(const k of b)S+=k?`
${l}${o}${k}`:`
`;S+=`
${o}${w}`}else S=`${m}${a}${b.join(" ")}${a}${w}`;return e&&(S+=Ot(S,o,c(e)),r&&r()),S}function Os({indent:e,options:{commentString:t}},n,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){const r=pt(t(s),e);n.push(r.trimStart())}}function Kt(e,t){const n=ae(t)?t.value:t;for(const s of e)if(be(s)&&(s.key===t||s.key===n||ae(s.key)&&s.key.value===n))return s}class Ye extends js{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(At,t),this.items=[]}add(t,n){var o;let s;be(t)?s=t:!t||typeof t!="object"||!("key"in t)?s=new Pe(t,t==null?void 0:t.value):s=new Pe(t.key,t.value);const i=Kt(this.items,s.key),r=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!n)throw new Error(`Key ${s.key} already set`);ae(i.value)&&wl(s.value)?i.value.value=s.value:i.value=s.value}else if(r){const l=this.items.findIndex(a=>r(s,a)<0);l===-1?this.items.push(s):this.items.splice(l,0,s)}else this.items.push(s)}delete(t){const n=Kt(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var r;const s=Kt(this.items,t),i=s==null?void 0:s.value;return(r=!n&&ae(i)?i.value:i)!=null?r:void 0}has(t){return!!Kt(this.items,t)}set(t,n){this.add(new Pe(t,n),!0)}toJSON(t,n,s){const i=s?new s:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const r of this.items)Ol(n,i,r);return i}toString(t,n,s){if(!t)return JSON.stringify(this);for(const i of this.items)if(!be(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),El(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:s,onComment:n})}}function zu(e,t,n){const{keepUndefined:s,replacer:i}=n,r=new Ye(e),o=(l,a)=>{if(typeof i=="function")a=i.call(t,l,a);else if(Array.isArray(i)&&!i.includes(l))return;(a!==void 0||s)&&r.items.push(fr(l,a,n))};if(t instanceof Map)for(const[l,a]of t)o(l,a);else if(t&&typeof t=="object")for(const l of Object.keys(t))o(l,t[l]);return typeof e.sortMapEntries=="function"&&r.items.sort(e.sortMapEntries),r}const wn={collection:"map",createNode:zu,default:!0,nodeClass:Ye,tag:"tag:yaml.org,2002:map",resolve(e,t){return _n(e)||t("Expected a mapping for this tag"),e}};class vn extends js{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(yn,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=as(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const s=as(t);if(typeof s!="number")return;const i=this.items[s];return!n&&ae(i)?i.value:i}has(t){const n=as(t);return typeof n=="number"&&n<this.items.length}set(t,n){const s=as(t);if(typeof s!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[s];ae(i)&&wl(n)?i.value=n:this.items[s]=n}toJSON(t,n){const s=[];n!=null&&n.onCreate&&n.onCreate(s);let i=0;for(const r of this.items)s.push(rt(r,String(i++),n));return s}toString(t,n,s){return t?El(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:s,onComment:n}):JSON.stringify(this)}}function as(e){let t=ae(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Gu(e,t,n){const{replacer:s}=n,i=new vn(e);if(t&&Symbol.iterator in Object(t)){let r=0;for(let o of t){if(typeof s=="function"){const l=t instanceof Set?o:String(r++);o=s.call(t,l,o)}i.items.push(Vn(o,void 0,n))}}return i}const Sn={collection:"seq",createNode:Gu,default:!0,nodeClass:vn,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Jn(e)||t("Expected a sequence for this tag"),e}},xs={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,s){return t=Object.assign({actualString:!0},t),cr(e,t,n,s)}},Ks={identify:e=>e==null,createNode:()=>new V(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new V(null),stringify:({source:e},t)=>typeof e=="string"&&Ks.test.test(e)?e:t.options.nullStr},ur={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new V(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&ur.test.test(e)){const s=e[0]==="t"||e[0]==="T";if(t===s)return e}return t?n.options.trueStr:n.options.falseStr}};function Xe({format:e,minFractionDigits:t,tag:n,value:s}){if(typeof s=="bigint")return String(s);const i=typeof s=="number"?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(s);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let l=t-(r.length-o-1);for(;l-- >0;)r+="0"}return r}const Tl={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Xe},Al={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Xe(e)}},Il={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new V(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Xe},Us=e=>typeof e=="bigint"||Number.isInteger(e),hr=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function Nl(e,t,n){const{value:s}=e;return Us(s)&&s>=0?n+s.toString(t):Xe(e)}const $l={identify:e=>Us(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>hr(e,2,8,n),stringify:e=>Nl(e,8,"0o")},Cl={identify:Us,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>hr(e,0,10,n),stringify:Xe},Ll={identify:e=>Us(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>hr(e,2,16,n),stringify:e=>Nl(e,16,"0x")},Qu=[wn,Sn,xs,Ks,ur,$l,Cl,Ll,Tl,Al,Il];function fo(e){return typeof e=="bigint"||Number.isInteger(e)}const cs=({value:e})=>JSON.stringify(e),Xu=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:cs},{identify:e=>e==null,createNode:()=>new V(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:cs},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:cs},{identify:fo,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>fo(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:cs}],Zu={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},eh=[wn,Sn].concat(Xu,Zu),dr={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),s=new Uint8Array(n.length);for(let i=0;i<n.length;++i)s[i]=n.charCodeAt(i);return s}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},s,i,r){const o=n;let l;if(typeof Buffer=="function")l=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<o.length;++c)a+=String.fromCharCode(o[c]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=V.BLOCK_LITERAL),t!==V.QUOTE_DOUBLE){const a=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),c=Math.ceil(l.length/a),h=new Array(c);for(let d=0,y=0;d<c;++d,y+=a)h[d]=l.substr(y,a);l=h.join(t===V.BLOCK_LITERAL?`
`:" ")}return cr({comment:e,type:t,value:l},s,i,r)}};function Pl(e,t){var n;if(Jn(e))for(let s=0;s<e.items.length;++s){let i=e.items[s];if(!be(i)){if(_n(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const r=i.items[0]||new Pe(new V(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
${r.key.commentBefore}`:i.commentBefore),i.comment){const o=(n=r.value)!=null?n:r.key;o.comment=o.comment?`${i.comment}
${o.comment}`:i.comment}i=r}e.items[s]=be(i)?i:new Pe(i)}}else t("Expected a sequence for this tag");return e}function Ml(e,t,n){const{replacer:s}=n,i=new vn(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof s=="function"&&(o=s.call(t,String(r++),o));let l,a;if(Array.isArray(o))if(o.length===2)l=o[0],a=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],a=o[l];else throw new TypeError(`Expected { key: value } tuple: ${o}`)}else l=o;i.items.push(fr(l,a,n))}return i}const pr={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pl,createNode:Ml};class an extends vn{constructor(){super(),this.add=Ye.prototype.add.bind(this),this.delete=Ye.prototype.delete.bind(this),this.get=Ye.prototype.get.bind(this),this.has=Ye.prototype.has.bind(this),this.set=Ye.prototype.set.bind(this),this.tag=an.tag}toJSON(t,n){if(!n)return super.toJSON(t);const s=new Map;n!=null&&n.onCreate&&n.onCreate(s);for(const i of this.items){let r,o;if(be(i)?(r=rt(i.key,"",n),o=rt(i.value,r,n)):r=rt(i,"",n),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,o)}return s}}an.tag="tag:yaml.org,2002:omap";const mr={collection:"seq",identify:e=>e instanceof Map,nodeClass:an,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Pl(e,t),s=[];for(const{key:i}of n.items)ae(i)&&(s.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):s.push(i.value));return Object.assign(new an,n)},createNode(e,t,n){const s=Ml(e,t,n),i=new an;return i.items=s.items,i}};function Dl({value:e,source:t},n){return t&&(e?jl:Rl).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const jl={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new V(!0),stringify:Dl},Rl={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new V(!1),stringify:Dl},th={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Xe},nh={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Xe(e)}},sh={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new V(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const s=e.substring(n+1).replace(/_/g,"");s[s.length-1]==="0"&&(t.minFractionDigits=s.length)}return t},stringify:Xe},Yn=e=>typeof e=="bigint"||Number.isInteger(e);function qs(e,t,n,{intAsBigInt:s}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const o=BigInt(e);return i==="-"?BigInt(-1)*o:o}const r=parseInt(e,n);return i==="-"?-1*r:r}function gr(e,t,n){const{value:s}=e;if(Yn(s)){const i=s.toString(t);return s<0?"-"+n+i.substr(1):n+i}return Xe(e)}const ih={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>qs(e,2,2,n),stringify:e=>gr(e,2,"0b")},rh={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>qs(e,1,8,n),stringify:e=>gr(e,8,"0")},oh={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>qs(e,0,10,n),stringify:Xe},lh={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>qs(e,2,16,n),stringify:e=>gr(e,16,"0x")};class cn extends Ye{constructor(t){super(t),this.tag=cn.tag}add(t){let n;be(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Pe(t.key,null):n=new Pe(t,null),Kt(this.items,n.key)||this.items.push(n)}get(t,n){const s=Kt(this.items,t);return!n&&be(s)?ae(s.key)?s.key.value:s.key:s}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const s=Kt(this.items,t);s&&!n?this.items.splice(this.items.indexOf(s),1):!s&&n&&this.items.push(new Pe(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,s){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,s);throw new Error("Set items must all have null values")}}cn.tag="tag:yaml.org,2002:set";const yr={collection:"map",identify:e=>e instanceof Set,nodeClass:cn,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(_n(e)){if(e.hasAllNullValues(!0))return Object.assign(new cn,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:s}=n,i=new cn(e);if(t&&Symbol.iterator in Object(t))for(let r of t)typeof s=="function"&&(r=s.call(t,r,r)),i.items.push(fr(r,null,n));return i}};function br(e,t){const n=e[0],s=n==="-"||n==="+"?e.substring(1):e,i=o=>t?BigInt(o):Number(o),r=s.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return n==="-"?i(-1)*r:r}function Bl(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return Xe(e);let s="";t<0&&(s="-",t*=n(-1));const i=n(60),r=[t%i];return t<60?r.unshift(0):(t=(t-r[0])/i,r.unshift(t%i),t>=60&&(t=(t-r[0])/i,r.unshift(t))),s+r.map(o=>o<10?"0"+String(o):String(o)).join(":").replace(/000000\d*$/,"")}const Fl={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>br(e,n),stringify:Bl},xl={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>br(e,!1),stringify:Bl},Vs={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Vs.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,s,i,r,o,l]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,s-1,i,r||0,o||0,l||0,a);const h=t[8];if(h&&h!=="Z"){let d=br(h,!1);Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},uo=[wn,Sn,xs,Ks,jl,Rl,ih,rh,oh,lh,th,nh,sh,dr,mr,pr,yr,Fl,xl,Vs],ho=new Map([["core",Qu],["failsafe",[wn,Sn,xs]],["json",eh],["yaml11",uo],["yaml-1.1",uo]]),po={binary:dr,bool:ur,float:Il,floatExp:Al,floatNaN:Tl,floatTime:xl,int:Cl,intHex:Ll,intOct:$l,intTime:Fl,map:wn,null:Ks,omap:mr,pairs:pr,seq:Sn,set:yr,timestamp:Vs},ah={"tag:yaml.org,2002:binary":dr,"tag:yaml.org,2002:omap":mr,"tag:yaml.org,2002:pairs":pr,"tag:yaml.org,2002:set":yr,"tag:yaml.org,2002:timestamp":Vs};function pi(e,t){let n=ho.get(t);if(!n)if(Array.isArray(e))n=[];else{const s=Array.from(ho.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${s} or define customTags array`)}if(Array.isArray(e))for(const s of e)n=n.concat(s);else typeof e=="function"&&(n=e(n.slice()));return n.map(s=>{if(typeof s!="string")return s;const i=po[s];if(i)return i;const r=Object.keys(po).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${s}"; use one of ${r}`)})}const ch=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class _r{constructor({compat:t,customTags:n,merge:s,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(t)?pi(t,"compat"):t?pi(null,t):null,this.merge=!!s,this.name=typeof r=="string"&&r||"core",this.knownTags=i?ah:{},this.tags=pi(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,At,{value:wn}),Object.defineProperty(this,gt,{value:xs}),Object.defineProperty(this,yn,{value:Sn}),this.sortMapEntries=typeof o=="function"?o:o===!0?ch:null}clone(){const t=Object.create(_r.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function fh(e,t){var a;const n=[];let s=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(n.push(c),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");const i=Sl(e,t),{commentString:r}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const c=r(e.commentBefore);n.unshift(pt(c,""))}let o=!1,l=null;if(e.contents){if(we(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){const d=r(e.contents.commentBefore);n.push(pt(d,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}const c=l?void 0:()=>o=!0;let h=Wt(e.contents,i,()=>l=null,c);l&&(h+=Ot(h,"",r(l))),(h[0]==="|"||h[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${h}`:n.push(h)}else n.push(Wt(e.contents,i));if((a=e.directives)!=null&&a.docEnd)if(e.comment){const c=r(e.comment);c.includes(`
`)?(n.push("..."),n.push(pt(c,""))):n.push(`... ${c}`)}else n.push("...");else{let c=e.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||l)&&n[n.length-1]!==""&&n.push(""),n.push(pt(r(c),"")))}return n.join(`
`)+`
`}function Ln(e,t,n,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let i=0,r=s.length;i<r;++i){const o=s[i],l=Ln(e,s,String(i),o);l===void 0?delete s[i]:l!==o&&(s[i]=l)}else if(s instanceof Map)for(const i of Array.from(s.keys())){const r=s.get(i),o=Ln(e,s,i,r);o===void 0?s.delete(i):o!==r&&s.set(i,o)}else if(s instanceof Set)for(const i of Array.from(s)){const r=Ln(e,s,i,i);r===void 0?s.delete(i):r!==i&&(s.delete(i),s.add(r))}else for(const[i,r]of Object.entries(s)){const o=Ln(e,s,i,r);o===void 0?delete s[i]:o!==r&&(s[i]=o)}return e.call(t,n,s)}class Hs{constructor(t,n,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,He,{value:Ci});let i=null;typeof n=="function"||Array.isArray(n)?i=n:s===void 0&&n&&(s=n,n=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},s);this.options=r;let{version:o}=r;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Le({version:o}),this.setSchema(o,s),t===void 0?this.contents=null:this.contents=this.createNode(t,i,s)}clone(){const t=Object.create(Hs.prototype,{[He]:{value:Ci}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=we(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Xt(this.contents)&&this.contents.add(t)}addIn(t,n){Xt(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const s=bl(this);t.anchor=!n||s.has(n)?_l(n||"a",s):n}return new ar(t.anchor)}createNode(t,n,s){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const w=A=>typeof A=="number"||A instanceof String||A instanceof Number,k=n.filter(w).map(String);k.length>0&&(n=n.concat(k)),i=n}else s===void 0&&n&&(s=n,n=void 0);const{aliasDuplicateObjects:r,anchorPrefix:o,flow:l,keepUndefined:a,onTagObj:c,tag:h}=s!=null?s:{},{onAnchor:d,setAnchors:y,sourceObjects:b}=ju(this,o||"a"),S={aliasDuplicateObjects:r!=null?r:!0,keepUndefined:a!=null?a:!1,onAnchor:d,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:b},m=Vn(t,h,S);return l&&ye(m)&&(m.flow=!0),y(),m}createPair(t,n,s={}){const i=this.createNode(t,null,s),r=this.createNode(n,null,s);return new Pe(i,r)}delete(t){return Xt(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Cn(t)?this.contents==null?!1:(this.contents=null,!0):Xt(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return ye(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Cn(t)?!n&&ae(this.contents)?this.contents.value:this.contents:ye(this.contents)?this.contents.getIn(t,n):void 0}has(t){return ye(this.contents)?this.contents.has(t):!1}hasIn(t){return Cn(t)?this.contents!==void 0:ye(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ks(this.schema,[t],n):Xt(this.contents)&&this.contents.set(t,n)}setIn(t,n){Cn(t)?this.contents=n:this.contents==null?this.contents=ks(this.schema,Array.from(t),n):Xt(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let s;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Le({version:"1.1"}),s={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Le({version:t}),s={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(s)this.schema=new _r(Object.assign(s,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:s,maxAliasCount:i,onAnchor:r,reviver:o}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100,stringify:Wt},a=rt(this.contents,n!=null?n:"",l);if(typeof r=="function")for(const{count:c,res:h}of l.anchors.values())r(h,c);return typeof o=="function"?Ln(o,{"":a},"",a):a}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return fh(this,t)}}function Xt(e){if(ye(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Kl extends Error{constructor(t,n,s,i){super(),this.name=t,this.code=s,this.message=i,this.pos=n}}class Pn extends Kl{constructor(t,n,s){super("YAMLParseError",t,n,s)}}class uh extends Kl{constructor(t,n,s){super("YAMLWarning",t,n,s)}}const mo=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:s,col:i}=n.linePos[0];n.message+=` at line ${s}, column ${i}`;let r=i-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){const l=Math.min(r-39,o.length-79);o="\u2026"+o.substring(l),r-=l-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),s>1&&/^ *$/.test(o.substring(0,r))){let l=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);l.length>80&&(l=l.substring(0,79)+`\u2026
`),o=l+o}if(/[^ ]/.test(o)){let l=1;const a=n.linePos[1];a&&a.line===s&&a.col>i&&(l=Math.max(1,Math.min(a.col-i,80-r)));const c=" ".repeat(r)+"^".repeat(l);n.message+=`:
${o}
${c}
`}};function pn(e,{flow:t,indicator:n,next:s,offset:i,onError:r,startOnNewline:o}){let l=!1,a=o,c=o,h="",d="",y=!1,b=!1,S=!1,m=null,w=null,k=null,A=null,C=null;for(const D of e)switch(S&&(D.type!=="space"&&D.type!=="newline"&&D.type!=="comma"&&r(D.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S=!1),D.type){case"space":!t&&a&&n!=="doc-start"&&D.source[0]===" "&&r(D,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||r(D,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const X=D.source.substring(1)||" ";h?h+=d+X:h=X,d="",a=!1;break}case"newline":a?h?h+=D.source:l=!0:d+=D.source,a=!0,y=!0,(m||w)&&(b=!0),c=!0;break;case"anchor":m&&r(D,"MULTIPLE_ANCHORS","A node can have at most one anchor"),D.source.endsWith(":")&&r(D.offset+D.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=D,C===null&&(C=D.offset),a=!1,c=!1,S=!0;break;case"tag":{w&&r(D,"MULTIPLE_TAGS","A node can have at most one tag"),w=D,C===null&&(C=D.offset),a=!1,c=!1,S=!0;break}case n:(m||w)&&r(D,"BAD_PROP_ORDER",`Anchors and tags must be after the ${D.source} indicator`),A&&r(D,"UNEXPECTED_TOKEN",`Unexpected ${D.source} in ${t!=null?t:"collection"}`),A=D,a=!1,c=!1;break;case"comma":if(t){k&&r(D,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),k=D,a=!1,c=!1;break}default:r(D,"UNEXPECTED_TOKEN",`Unexpected ${D.type} token`),a=!1,c=!1}const M=e[e.length-1],R=M?M.offset+M.source.length:i;return S&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&r(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:k,found:A,spaceBefore:l,comment:h,hasNewline:y,hasNewlineAfterProp:b,anchor:m,tag:w,end:R,start:C!=null?C:R}}function Hn(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Hn(t.key)||Hn(t.value))return!0}return!1;default:return!0}}function Mi(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const s=t.end[0];s.indent===e&&(s.source==="]"||s.source==="}")&&Hn(t)&&n(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Ul(e,t,n){const{uniqueKeys:s}=e.options;if(s===!1)return!1;const i=typeof s=="function"?s:(r,o)=>r===o||ae(r)&&ae(o)&&r.value===o.value&&!(r.value==="<<"&&e.schema.merge);return t.some(r=>i(r.key,n))}const go="All mapping items must start at the same column";function hh({composeNode:e,composeEmptyNode:t},n,s,i){var a;const r=new Ye(n.schema);n.atRoot&&(n.atRoot=!1);let o=s.offset,l=null;for(const c of s.items){const{start:h,key:d,sep:y,value:b}=c,S=pn(h,{indicator:"explicit-key-ind",next:d!=null?d:y==null?void 0:y[0],offset:o,onError:i,startOnNewline:!0}),m=!S.found;if(m){if(d&&(d.type==="block-seq"?i(o,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==s.indent&&i(o,"BAD_INDENT",go)),!S.anchor&&!S.tag&&!y){l=S.end,S.comment&&(r.comment?r.comment+=`
`+S.comment:r.comment=S.comment);continue}(S.hasNewlineAfterProp||Hn(d))&&i(d!=null?d:h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((a=S.found)==null?void 0:a.indent)!==s.indent&&i(o,"BAD_INDENT",go);const w=S.end,k=d?e(n,d,S,i):t(n,w,h,null,S,i);n.schema.compat&&Mi(s.indent,d,i),Ul(n,r.items,k)&&i(w,"DUPLICATE_KEY","Map keys must be unique");const A=pn(y!=null?y:[],{indicator:"map-value-ind",next:b,offset:k.range[2],onError:i,startOnNewline:!d||d.type==="block-scalar"});if(o=A.end,A.found){m&&((b==null?void 0:b.type)==="block-map"&&!A.hasNewline&&i(o,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&S.start<A.found.offset-1024&&i(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const C=b?e(n,b,A,i):t(n,o,y,null,A,i);n.schema.compat&&Mi(s.indent,b,i),o=C.range[2];const M=new Pe(k,C);n.options.keepSourceTokens&&(M.srcToken=c),r.items.push(M)}else{m&&i(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),A.comment&&(k.comment?k.comment+=`
`+A.comment:k.comment=A.comment);const C=new Pe(k);n.options.keepSourceTokens&&(C.srcToken=c),r.items.push(C)}}return l&&l<o&&i(l,"IMPOSSIBLE","Map comment with trailing content"),r.range=[s.offset,o,l!=null?l:o],r}function dh({composeNode:e,composeEmptyNode:t},n,s,i){const r=new vn(n.schema);n.atRoot&&(n.atRoot=!1);let o=s.offset,l=null;for(const{start:a,value:c}of s.items){const h=pn(a,{indicator:"seq-item-ind",next:c,offset:o,onError:i,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||c)c&&c.type==="block-seq"?i(h.end,"BAD_INDENT","All sequence items must start at the same column"):i(o,"MISSING_CHAR","Sequence item without - indicator");else{l=h.end,h.comment&&(r.comment=h.comment);continue}const d=c?e(n,c,h,i):t(n,h.end,a,null,h,i);n.schema.compat&&Mi(s.indent,c,i),o=d.range[2],r.items.push(d)}return r.range=[s.offset,o,l!=null?l:o],r}function zn(e,t,n,s){let i="";if(e){let r=!1,o="";for(const l of e){const{source:a,type:c}=l;switch(c){case"space":r=!0;break;case"comment":{n&&!r&&s(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=a.substring(1)||" ";i?i+=o+h:i=h,o="";break}case"newline":i&&(o+=a),r=!0;break;default:s(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=a.length}}return{comment:i,offset:t}}const mi="Block collections are not allowed within flow collections",gi=e=>e&&(e.type==="block-map"||e.type==="block-seq");function ph({composeNode:e,composeEmptyNode:t},n,s,i){var S;const r=s.start.source==="{",o=r?"flow map":"flow sequence",l=r?new Ye(n.schema):new vn(n.schema);l.flow=!0;const a=n.atRoot;a&&(n.atRoot=!1);let c=s.offset+s.start.source.length;for(let m=0;m<s.items.length;++m){const w=s.items[m],{start:k,key:A,sep:C,value:M}=w,R=pn(k,{flow:o,indicator:"explicit-key-ind",next:A!=null?A:C==null?void 0:C[0],offset:c,onError:i,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!C&&!M){m===0&&R.comma?i(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):m<s.items.length-1&&i(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),R.comment&&(l.comment?l.comment+=`
`+R.comment:l.comment=R.comment),c=R.end;continue}!r&&n.options.strict&&Hn(A)&&i(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)R.comma&&i(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(R.comma||i(R.start,"MISSING_CHAR",`Missing , between ${o} items`),R.comment){let D="";e:for(const X of k)switch(X.type){case"comma":case"space":break;case"comment":D=X.source.substring(1);break e;default:break e}if(D){let X=l.items[l.items.length-1];be(X)&&(X=(S=X.value)!=null?S:X.key),X.comment?X.comment+=`
`+D:X.comment=D,R.comment=R.comment.substring(D.length+1)}}if(!r&&!C&&!R.found){const D=M?e(n,M,R,i):t(n,R.end,C,null,R,i);l.items.push(D),c=D.range[2],gi(M)&&i(D.range,"BLOCK_IN_FLOW",mi)}else{const D=R.end,X=A?e(n,A,R,i):t(n,D,k,null,R,i);gi(A)&&i(X.range,"BLOCK_IN_FLOW",mi);const re=pn(C!=null?C:[],{flow:o,indicator:"map-value-ind",next:M,offset:X.range[2],onError:i,startOnNewline:!1});if(re.found){if(!r&&!R.found&&n.options.strict){if(C)for(const me of C){if(me===re.found)break;if(me.type==="newline"){i(me,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<re.found.offset-1024&&i(re.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else M&&("source"in M&&M.source&&M.source[0]===":"?i(M,"MISSING_CHAR",`Missing space after : in ${o}`):i(re.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const _e=M?e(n,M,re,i):re.found?t(n,re.end,C,null,re,i):null;_e?gi(M)&&i(_e.range,"BLOCK_IN_FLOW",mi):re.comment&&(X.comment?X.comment+=`
`+re.comment:X.comment=re.comment);const Oe=new Pe(X,_e);if(n.options.keepSourceTokens&&(Oe.srcToken=w),r){const me=l;Ul(n,me.items,X)&&i(D,"DUPLICATE_KEY","Map keys must be unique"),me.items.push(Oe)}else{const me=new Ye(n.schema);me.flow=!0,me.items.push(Oe),l.items.push(me)}c=_e?_e.range[2]:re.end}}const h=r?"}":"]",[d,...y]=s.end;let b=c;if(d&&d.source===h)b=d.offset+d.source.length;else{const m=o[0].toUpperCase()+o.substring(1),w=a?`${m} must end with a ${h}`:`${m} in block collection must be sufficiently indented and end with a ${h}`;i(c,a?"MISSING_CHAR":"BAD_INDENT",w),d&&d.source.length!==1&&y.unshift(d)}if(y.length>0){const m=zn(y,b,n.options.strict,i);m.comment&&(l.comment?l.comment+=`
`+m.comment:l.comment=m.comment),l.range=[s.offset,b,m.offset]}else l.range=[s.offset,b,b];return l}function mh(e,t,n,s,i){let r;switch(n.type){case"block-map":{r=hh(e,t,n,i);break}case"block-seq":{r=dh(e,t,n,i);break}case"flow-collection":{r=ph(e,t,n,i);break}}if(!s)return r;const o=t.directives.tagName(s.source,y=>i(s,"TAG_RESOLVE_FAILED",y));if(!o)return r;const l=r.constructor;if(o==="!"||o===l.tagName)return r.tag=l.tagName,r;const a=_n(r)?"map":"seq";let c=t.schema.tags.find(y=>y.collection===a&&y.tag===o);if(!c){const y=t.schema.knownTags[o];if(y&&y.collection===a)t.schema.tags.push(Object.assign({},y,{default:!1})),c=y;else return i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),r.tag=o,r}const h=c.resolve(r,y=>i(s,"TAG_RESOLVE_FAILED",y),t.options),d=we(h)?h:new V(h);return d.range=r.range,d.tag=o,c!=null&&c.format&&(d.format=c.format),d}function gh(e,t,n){const s=e.offset,i=yh(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const r=i.mode===">"?V.BLOCK_FOLDED:V.BLOCK_LITERAL,o=e.source?bh(e.source):[];let l=o.length;for(let m=o.length-1;m>=0;--m){const w=o[m][1];if(w===""||w==="\r")l=m;else break}if(l===0){const m=i.chomp==="+"&&o.length>0?`
`.repeat(Math.max(1,o.length-1)):"";let w=s+i.length;return e.source&&(w+=e.source.length),{value:m,type:r,comment:i.comment,range:[s,w,w]}}let a=e.indent+i.indent,c=e.offset+i.length,h=0;for(let m=0;m<l;++m){const[w,k]=o[m];if(k===""||k==="\r")i.indent===0&&w.length>a&&(a=w.length);else{if(w.length<a){const A="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(c+w.length,"MISSING_CHAR",A)}i.indent===0&&(a=w.length),h=m;break}c+=w.length+k.length+1}for(let m=o.length-1;m>=l;--m)o[m][0].length>a&&(l=m+1);let d="",y="",b=!1;for(let m=0;m<h;++m)d+=o[m][0].slice(a)+`
`;for(let m=h;m<l;++m){let[w,k]=o[m];c+=w.length+k.length+1;const A=k[k.length-1]==="\r";if(A&&(k=k.slice(0,-1)),k&&w.length<a){const M=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-k.length-(A?2:1),"BAD_INDENT",M),w=""}r===V.BLOCK_LITERAL?(d+=y+w.slice(a)+k,y=`
`):w.length>a||k[0]===" "?(y===" "?y=`
`:!b&&y===`
`&&(y=`
`),d+=y+w.slice(a)+k,y=`
`,b=!0):k===""?y===`
`?d+=`
`:y=`
`:(d+=y+k,y=" ",b=!1)}switch(i.chomp){case"-":break;case"+":for(let m=l;m<o.length;++m)d+=`
`+o[m][0].slice(a);d[d.length-1]!==`
`&&(d+=`
`);break;default:d+=`
`}const S=s+i.length+e.source.length;return{value:d,type:r,comment:i.comment,range:[s,S,S]}}function yh({offset:e,props:t},n,s){if(t[0].type!=="block-scalar-header")return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],r=i[0];let o=0,l="",a=-1;for(let y=1;y<i.length;++y){const b=i[y];if(!l&&(b==="-"||b==="+"))l=b;else{const S=Number(b);!o&&S?o=S:a===-1&&(a=e+y)}}a!==-1&&s(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,h="",d=i.length;for(let y=1;y<t.length;++y){const b=t[y];switch(b.type){case"space":c=!0;case"newline":d+=b.source.length;break;case"comment":n&&!c&&s(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=b.source.length,h=b.source.substring(1);break;case"error":s(b,"UNEXPECTED_TOKEN",b.message),d+=b.source.length;break;default:{const S=`Unexpected token in block scalar header: ${b.type}`;s(b,"UNEXPECTED_TOKEN",S);const m=b.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:r,indent:o,chomp:l,comment:h,length:d}}function bh(e){const t=e.split(/\n( *)/),n=t[0],s=n.match(/^( *)/),r=[s!=null&&s[1]?[s[1],n.slice(s[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)r.push([t[o],t[o+1]]);return r}function _h(e,t,n){const{offset:s,type:i,source:r,end:o}=e;let l,a;const c=(y,b,S)=>n(s+y,b,S);switch(i){case"scalar":l=V.PLAIN,a=wh(r,c);break;case"single-quoted-scalar":l=V.QUOTE_SINGLE,a=vh(r,c);break;case"double-quoted-scalar":l=V.QUOTE_DOUBLE,a=Sh(r,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[s,s+r.length,s+r.length]}}const h=s+r.length,d=zn(o,h,t,n);return{value:a,type:l,comment:d.comment,range:[s,h,d.offset]}}function wh(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),ql(e)}function vh(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),ql(e.slice(1,-1)).replace(/''/g,"'")}function ql(e){var a;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=t.exec(e);if(!s)return e;let i=s[1],r=" ",o=t.lastIndex;for(n.lastIndex=o;s=n.exec(e);)s[1]===""?r===`
`?i+=r:r=`
`:(i+=r+s[1],r=" "),o=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,s=l.exec(e),i+r+((a=s==null?void 0:s[1])!=null?a:"")}function Sh(e,t){let n="";for(let s=1;s<e.length-1;++s){const i=e[s];if(!(i==="\r"&&e[s+1]===`
`))if(i===`
`){const{fold:r,offset:o}=kh(e,s);n+=r,s=o}else if(i==="\\"){let r=e[++s];const o=Oh[r];if(o)n+=o;else if(r===`
`)for(r=e[s+1];r===" "||r===" ";)r=e[++s+1];else if(r==="\r"&&e[s+1]===`
`)for(r=e[++s+1];r===" "||r===" ";)r=e[++s+1];else if(r==="x"||r==="u"||r==="U"){const l={x:2,u:4,U:8}[r];n+=Eh(e,s+1,l,t),s+=l}else{const l=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(i===" "||i===" "){const r=s;let o=e[s+1];for(;o===" "||o===" ";)o=e[++s+1];o!==`
`&&!(o==="\r"&&e[s+2]===`
`)&&(n+=s>r?e.slice(r,s+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function kh(e,t){let n="",s=e[t+1];for(;(s===" "||s===" "||s===`
`||s==="\r")&&!(s==="\r"&&e[t+2]!==`
`);)s===`
`&&(n+=`
`),t+=1,s=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Oh={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Eh(e,t,n,s){const i=e.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const l=e.substr(t-2,n+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(o)}function Vl(e,t,n,s){const{value:i,type:r,comment:o,range:l}=t.type==="block-scalar"?gh(t,e.options.strict,s):_h(t,e.options.strict,s),a=n?e.directives.tagName(n.source,d=>s(n,"TAG_RESOLVE_FAILED",d)):null,c=n&&a?Th(e.schema,i,a,n,s):t.type==="scalar"?Ah(e,i,t,s):e.schema[gt];let h;try{const d=c.resolve(i,y=>s(n!=null?n:t,"TAG_RESOLVE_FAILED",y),e.options);h=ae(d)?d:new V(d)}catch(d){const y=d instanceof Error?d.message:String(d);s(n!=null?n:t,"TAG_RESOLVE_FAILED",y),h=new V(i)}return h.range=l,h.source=i,r&&(h.type=r),a&&(h.tag=a),c.format&&(h.format=c.format),o&&(h.comment=o),h}function Th(e,t,n,s,i){var l;if(n==="!")return e[gt];const r=[];for(const a of e.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)r.push(a);else return a;for(const a of r)if((l=a.test)!=null&&l.test(t))return a;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[gt])}function Ah({directives:e,schema:t},n,s,i){var o;const r=t.tags.find(l=>{var a;return l.default&&((a=l.test)==null?void 0:a.test(n))})||t[gt];if(t.compat){const l=(o=t.compat.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))}))!=null?o:t[gt];if(r.tag!==l.tag){const a=e.tagString(r.tag),c=e.tagString(l.tag),h=`Value may be parsed as either ${a} or ${c}`;i(s,"TAG_RESOLVE_FAILED",h,!0)}}return r}function Ih(e,t,n){if(t){n===null&&(n=t.length);for(let s=n-1;s>=0;--s){let i=t[s];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++s];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++s];break}}return e}const Nh={composeNode:Hl,composeEmptyNode:wr};function Hl(e,t,n,s){const{spaceBefore:i,comment:r,anchor:o,tag:l}=n;let a,c=!0;switch(t.type){case"alias":a=$h(e,t,s),(o||l)&&s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":a=Vl(e,t,l,s),o&&(a.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=mh(Nh,e,t,l,s),o&&(a.anchor=o.source.substring(1));break;default:{const h=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",h),a=wr(e,t.offset,void 0,null,n,s),c=!1}}return o&&a.anchor===""&&s(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(a.spaceBefore=!0),r&&(t.type==="scalar"&&t.source===""?a.comment=r:a.commentBefore=r),e.options.keepSourceTokens&&c&&(a.srcToken=t),a}function wr(e,t,n,s,{spaceBefore:i,comment:r,anchor:o,tag:l,end:a},c){const h={type:"scalar",offset:Ih(t,n,s),indent:-1,source:""},d=Vl(e,h,l,c);return o&&(d.anchor=o.source.substring(1),d.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(d.spaceBefore=!0),r&&(d.comment=r,d.range[2]=a),d}function $h({options:e},{offset:t,source:n,end:s},i){const r=new ar(n.substring(1));r.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,l=zn(s,o,e.strict,i);return r.range=[t,o,l.offset],l.comment&&(r.comment=l.comment),r}function Ch(e,t,{offset:n,start:s,value:i,end:r},o){const l=Object.assign({_directives:t},e),a=new Hs(void 0,l),c={atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},h=pn(s,{indicator:"doc-start",next:i!=null?i:r==null?void 0:r[0],offset:n,onError:o,startOnNewline:!0});h.found&&(a.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!h.hasNewline&&o(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=i?Hl(c,i,h,o):wr(c,h.end,s,null,h,o);const d=a.contents.range[2],y=zn(r,d,!1,o);return y.comment&&(a.comment=y.comment),a.range=[n,d,y.offset],a}function In(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function yo(e){var i;let t="",n=!1,s=!1;for(let r=0;r<e.length;++r){const o=e[r];switch(o[0]){case"#":t+=(t===""?"":s?`
`:`
`)+(o.substring(1)||" "),n=!0,s=!1;break;case"%":((i=e[r+1])==null?void 0:i[0])!=="#"&&(r+=1),n=!1;break;default:n||(s=!0),n=!1}}return{comment:t,afterEmptyLine:s}}class Lh{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,s,i,r)=>{const o=In(n);r?this.warnings.push(new uh(o,s,i)):this.errors.push(new Pn(o,s,i))},this.directives=new Le({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:s,afterEmptyLine:i}=yo(this.prelude);if(s){const r=t.contents;if(n)t.comment=t.comment?`${t.comment}
${s}`:s;else if(i||t.directives.docStart||!r)t.commentBefore=s;else if(ye(r)&&!r.flow&&r.items.length>0){let o=r.items[0];be(o)&&(o=o.key);const l=o.commentBefore;o.commentBefore=l?`${s}
${l}`:s}else{const o=r.commentBefore;r.commentBefore=o?`${s}
${o}`:s}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:yo(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,s=-1){for(const i of t)yield*this.next(i);yield*this.end(n,s)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,s,i)=>{const r=In(t);r[0]+=n,this.onError(r,"BAD_DIRECTIVE",s,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Ch(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,s=new Pn(In(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new Pn(In(t),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const n=zn(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Pn(In(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const s=Object.assign({_directives:this.directives},this.options),i=new Hs(void 0,s);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const Wl="\uFEFF",Jl="",Yl="",Di="";function Ph(e){switch(e){case Wl:return"byte-order-mark";case Jl:return"doc-mode";case Yl:return"flow-error-end";case Di:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Ve(e){switch(e){case void 0:case" ":case`
`:case"\r":case" ":return!0;default:return!1}}const bo="0123456789ABCDEFabcdef".split(""),Mh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),yi=",[]{}".split(""),Dh=` ,[]{}
\r `.split(""),bi=e=>!e||Dh.includes(e);class jh{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var i;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let s=(i=this.next)!=null?i:"stream";for(;s&&(n||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
`?!0:n==="\r"?this.buffer[t+1]===`
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let s=0;for(;n===" ";)n=this.buffer[++s+t];if(n==="\r"){const i=this.buffer[s+t+1];if(i===`
`||!i&&!this.atEnd)return t+s+1}return n===`
`||s>=this.indentNext||!n&&!this.atEnd?t+s:-1}if(n==="-"||n==="."){const s=this.buffer.substr(t,3);if((s==="---"||s==="...")&&Ve(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Wl&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const s=t.indexOf("#");if(s!==-1){const r=t[s-1];(r===" "||r===" ")&&(n=s-1)}for(;;){const r=t[n-1];if(r===" "||r===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Jl,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Ve(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Ve(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ve(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ve(n)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(bi),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,s=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=s=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&i[0]!=="#"||s===0&&(i.startsWith("---")||i.startsWith("..."))&&Ve(i[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Yl,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(bi),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Ve(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let r=0;for(;this.buffer[n-1-r]==="\\";)r+=1;if(r%2===0)break;n=this.buffer.indexOf('"',n+1)}const s=this.buffer.substring(0,n);let i=s.indexOf(`
`,this.pos);if(i!==-1){for(;i!==-1;){const r=this.continueScalar(i+1);if(r===-1)break;i=s.indexOf(`
`,r)}i!==-1&&(n=i-(s[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ve(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,s;e:for(let i=this.pos;s=this.buffer[i];++i)switch(s){case" ":n+=1;break;case`
`:t=i,n=0;break;case"\r":{const r=this.buffer[i+1];if(!r&&!this.atEnd)return this.setNext("block-scalar");if(r===`
`)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
`,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let i=t-1,r=this.buffer[i];r==="\r"&&(r=this.buffer[--i]);const o=i;for(;r===" "||r===" ";)r=this.buffer[--i];if(r===`
`&&i>=this.pos&&i+1+n>o)t=i;else break}while(!0);return yield Di,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,s=this.pos-1,i;for(;i=this.buffer[++s];)if(i===":"){const r=this.buffer[s+1];if(Ve(r)||t&&r===",")break;n=s}else if(Ve(i)){let r=this.buffer[s+1];if(i==="\r"&&(r===`
`?(s+=1,i=`
`,r=this.buffer[s+1]):n=s),r==="#"||t&&yi.includes(r))break;if(i===`
`){const o=this.continueScalar(s+1);if(o===-1)break;s=Math.max(s,o-2)}}else{if(t&&yi.includes(i))break;n=s}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Di,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const s=this.buffer.slice(this.pos,t);return s?(yield s,this.pos+=s.length,s.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(bi))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Ve(n)||t&&yi.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ve(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Mh.includes(n))n=this.buffer[++t];else if(n==="%"&&bo.includes(this.buffer[t+1])&&bo.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,s;do s=this.buffer[++n];while(s===" "||t&&s===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,s=this.buffer[n];for(;!t(s);)s=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Rh{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,s=this.lineStarts.length;for(;n<s;){const r=n+s>>1;this.lineStarts[r]<t?n=r+1:s=r}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function We(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function _o(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function zl(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function fs(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return(t=n.sep)!=null?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Zt(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function wo(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!We(t.start,"explicit-key-ind")&&!We(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,zl(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Bh{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new jh,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(t,n))yield*this.next(s);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=Ph(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const s=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const s=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in s?s.indent:0:n.type==="flow-collection"&&s.type==="document"&&(n.indent=0),n.type==="flow-collection"&&wo(n),s.type){case"document":s.value=n;break;case"block-scalar":s.props.push(n);break;case"block-map":{const i=s.items[s.items.length-1];if(i.value){s.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!We(i.start,"explicit-key-ind");return}break}case"block-seq":{const i=s.items[s.items.length-1];i.value?s.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=s.items[s.items.length-1];!i||i.value?s.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&_o(i.start)===-1&&(n.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<n.indent))&&(s.type==="document"?s.end=i.start:s.items.push({start:i.start}),n.items.splice(-1,1))}}else{const s="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:s}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{_o(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=fs(this.peek(2)),s=Zt(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const r={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var s;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0,r=Array.isArray(i)?i[i.length-1]:void 0;(r==null?void 0:r.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],r=(s=i==null?void 0:i.value)==null?void 0:s.end;if(Array.isArray(r)){Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent&&n.sep;let r=[];if(i&&n.sep&&!n.value){const o=[];for(let l=0;l<n.sep.length;++l){const a=n.sep[l];switch(a.type){case"newline":o.push(l);break;case"space":break;case"comment":a.indent>t.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(r.push(this.sourceToken),t.items.push({start:r}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!We(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):i||n.value?(r.push(this.sourceToken),t.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(We(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(We(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(zl(n.key)&&!We(n.sep,"newline")){const o=Zt(n.start),l=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:l,sep:a}]})}else r.length>0?n.sep=n.sep.concat(r,this.sourceToken):n.sep.push(this.sourceToken);else if(We(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=Zt(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:r,key:null,sep:[this.sourceToken]}):We(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||n.value?(t.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(t);if(o){i&&o.type!=="block-seq"&&We(n.start,"explicit-key-ind")&&t.items.push({start:r}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var s;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0,r=Array.isArray(i)?i[i.length-1]:void 0;(r==null?void 0:r.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],r=(s=i==null?void 0:i.value)==null?void 0:s.end;if(Array.isArray(r)){Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||We(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const s=this.startBlockValue(t);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===t.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const i=fs(s),r=Zt(i);wo(t);const o=t.end.splice(1,t.end.length);o.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=fs(t),s=Zt(n);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s}]}}case"map-value-ind":{this.onKeyLine=!0;const n=fs(t),s=Zt(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Fh(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Rh||null,prettyErrors:t}}function xh(e,t={}){const{lineCounter:n,prettyErrors:s}=Fh(t),i=new Bh(n==null?void 0:n.addNewLine),r=new Lh(t);let o=null;for(const l of r.compose(i.parse(e),!0,e.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new Pn(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&n&&(o.errors.forEach(mo(e,n)),o.warnings.forEach(mo(e,n))),o}function vo(e,t,n){let s;typeof t=="function"?s=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=xh(e,n);if(!i)return null;if(i.warnings.forEach(r=>kl(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:s},n))}var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ji={exports:{}};(function(e,t){var n=200,s="__lodash_hash_undefined__",i=800,r=16,o=9007199254740991,l="[object Arguments]",a="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",y="[object Error]",b="[object Function]",S="[object GeneratorFunction]",m="[object Map]",w="[object Number]",k="[object Null]",A="[object Object]",C="[object Proxy]",M="[object RegExp]",R="[object Set]",D="[object String]",X="[object Undefined]",re="[object WeakMap]",_e="[object ArrayBuffer]",Oe="[object DataView]",me="[object Float32Array]",bt="[object Float64Array]",lt="[object Int8Array]",Be="[object Int16Array]",Gn="[object Int32Array]",Ee="[object Uint8Array]",ce="[object Uint8ClampedArray]",ee="[object Uint16Array]",at="[object Uint32Array]",Yt=/[\\^$.*+?()[\]{}|]/g,ct=/^\[object .+?Constructor\]$/,Ue=/^(?:0|[1-9]\d*)$/,te={};te[me]=te[bt]=te[lt]=te[Be]=te[Gn]=te[Ee]=te[ce]=te[ee]=te[at]=!0,te[l]=te[a]=te[_e]=te[h]=te[Oe]=te[d]=te[y]=te[b]=te[m]=te[w]=te[A]=te[M]=te[R]=te[D]=te[re]=!1;var Qn=typeof us=="object"&&us&&us.Object===Object&&us,Ws=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Qn||Ws||Function("return this")(),$t=t&&!t.nodeType&&t,_t=$t&&!0&&e&&!e.nodeType&&e,ft=_t&&_t.exports===$t,Ct=ft&&Qn.process,zt=function(){try{var f=_t&&_t.require&&_t.require("util").types;return f||Ct&&Ct.binding&&Ct.binding("util")}catch{}}(),u=zt&&zt.isTypedArray;function g(f,p,_){switch(_.length){case 0:return f.call(p);case 1:return f.call(p,_[0]);case 2:return f.call(p,_[0],_[1]);case 3:return f.call(p,_[0],_[1],_[2])}return f.apply(p,_)}function v(f,p){for(var _=-1,j=Array(f);++_<f;)j[_]=p(_);return j}function E(f){return function(p){return f(p)}}function O(f,p){return f==null?void 0:f[p]}function N(f,p){return function(_){return f(p(_))}}var L=Array.prototype,I=Function.prototype,$=Object.prototype,T=Ne["__core-js_shared__"],B=I.toString,P=$.hasOwnProperty,F=function(){var f=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),K=$.toString,W=B.call(Object),ne=RegExp("^"+B.call(P).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=ft?Ne.Buffer:void 0,pe=Ne.Symbol,De=Ne.Uint8Array,ut=Q?Q.allocUnsafe:void 0,kn=N(Object.getPrototypeOf,Object),wt=Object.create,Xn=$.propertyIsEnumerable,$e=L.splice,Se=pe?pe.toStringTag:void 0,Lt=function(){try{var f=zs(Object,"defineProperty");return f({},"",{}),f}catch{}}(),Xl=Q?Q.isBuffer:void 0,vr=Math.max,Zl=Date.now,Sr=zs(Ne,"Map"),On=zs(Object,"create"),ea=function(){function f(){}return function(p){if(!Mt(p))return{};if(wt)return wt(p);f.prototype=p;var _=new f;return f.prototype=void 0,_}}();function Pt(f){var p=-1,_=f==null?0:f.length;for(this.clear();++p<_;){var j=f[p];this.set(j[0],j[1])}}function ta(){this.__data__=On?On(null):{},this.size=0}function na(f){var p=this.has(f)&&delete this.__data__[f];return this.size-=p?1:0,p}function sa(f){var p=this.__data__;if(On){var _=p[f];return _===s?void 0:_}return P.call(p,f)?p[f]:void 0}function ia(f){var p=this.__data__;return On?p[f]!==void 0:P.call(p,f)}function ra(f,p){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=On&&p===void 0?s:p,this}Pt.prototype.clear=ta,Pt.prototype.delete=na,Pt.prototype.get=sa,Pt.prototype.has=ia,Pt.prototype.set=ra;function ht(f){var p=-1,_=f==null?0:f.length;for(this.clear();++p<_;){var j=f[p];this.set(j[0],j[1])}}function oa(){this.__data__=[],this.size=0}function la(f){var p=this.__data__,_=Zn(p,f);if(_<0)return!1;var j=p.length-1;return _==j?p.pop():$e.call(p,_,1),--this.size,!0}function aa(f){var p=this.__data__,_=Zn(p,f);return _<0?void 0:p[_][1]}function ca(f){return Zn(this.__data__,f)>-1}function fa(f,p){var _=this.__data__,j=Zn(_,f);return j<0?(++this.size,_.push([f,p])):_[j][1]=p,this}ht.prototype.clear=oa,ht.prototype.delete=la,ht.prototype.get=aa,ht.prototype.has=ca,ht.prototype.set=fa;function Gt(f){var p=-1,_=f==null?0:f.length;for(this.clear();++p<_;){var j=f[p];this.set(j[0],j[1])}}function ua(){this.size=0,this.__data__={hash:new Pt,map:new(Sr||ht),string:new Pt}}function ha(f){var p=ts(this,f).delete(f);return this.size-=p?1:0,p}function da(f){return ts(this,f).get(f)}function pa(f){return ts(this,f).has(f)}function ma(f,p){var _=ts(this,f),j=_.size;return _.set(f,p),this.size+=_.size==j?0:1,this}Gt.prototype.clear=ua,Gt.prototype.delete=ha,Gt.prototype.get=da,Gt.prototype.has=pa,Gt.prototype.set=ma;function Qt(f){var p=this.__data__=new ht(f);this.size=p.size}function ga(){this.__data__=new ht,this.size=0}function ya(f){var p=this.__data__,_=p.delete(f);return this.size=p.size,_}function ba(f){return this.__data__.get(f)}function _a(f){return this.__data__.has(f)}function wa(f,p){var _=this.__data__;if(_ instanceof ht){var j=_.__data__;if(!Sr||j.length<n-1)return j.push([f,p]),this.size=++_.size,this;_=this.__data__=new Gt(j)}return _.set(f,p),this.size=_.size,this}Qt.prototype.clear=ga,Qt.prototype.delete=ya,Qt.prototype.get=ba,Qt.prototype.has=_a,Qt.prototype.set=wa;function va(f,p){var _=Xs(f),j=!_&&Qs(f),G=!_&&!j&&Ar(f),se=!_&&!j&&!G&&Nr(f),fe=_||j||G||se,Y=fe?v(f.length,String):[],ue=Y.length;for(var qe in f)(p||P.call(f,qe))&&!(fe&&(qe=="length"||G&&(qe=="offset"||qe=="parent")||se&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||Er(qe,ue)))&&Y.push(qe);return Y}function Js(f,p,_){(_!==void 0&&!ns(f[p],_)||_===void 0&&!(p in f))&&Ys(f,p,_)}function Sa(f,p,_){var j=f[p];(!(P.call(f,p)&&ns(j,_))||_===void 0&&!(p in f))&&Ys(f,p,_)}function Zn(f,p){for(var _=f.length;_--;)if(ns(f[_][0],p))return _;return-1}function Ys(f,p,_){p=="__proto__"&&Lt?Lt(f,p,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[p]=_}var ka=ja();function es(f){return f==null?f===void 0?X:k:Se&&Se in Object(f)?Ra(f):qa(f)}function kr(f){return En(f)&&es(f)==l}function Oa(f){if(!Mt(f)||Ka(f))return!1;var p=ei(f)?ne:ct;return p.test(Ja(f))}function Ea(f){return En(f)&&Ir(f.length)&&!!te[es(f)]}function Ta(f){if(!Mt(f))return Ua(f);var p=Tr(f),_=[];for(var j in f)j=="constructor"&&(p||!P.call(f,j))||_.push(j);return _}function Or(f,p,_,j,G){f!==p&&ka(p,function(se,fe){if(G||(G=new Qt),Mt(se))Aa(f,p,fe,_,Or,j,G);else{var Y=j?j(Gs(f,fe),se,fe+"",f,p,G):void 0;Y===void 0&&(Y=se),Js(f,fe,Y)}},$r)}function Aa(f,p,_,j,G,se,fe){var Y=Gs(f,_),ue=Gs(p,_),qe=fe.get(ue);if(qe){Js(f,_,qe);return}var Fe=se?se(Y,ue,_+"",f,p,fe):void 0,Tn=Fe===void 0;if(Tn){var ti=Xs(ue),ni=!ti&&Ar(ue),Lr=!ti&&!ni&&Nr(ue);Fe=ue,ti||ni||Lr?Xs(Y)?Fe=Y:Ya(Y)?Fe=Pa(Y):ni?(Tn=!1,Fe=$a(ue,!0)):Lr?(Tn=!1,Fe=La(ue,!0)):Fe=[]:za(ue)||Qs(ue)?(Fe=Y,Qs(Y)?Fe=Ga(Y):(!Mt(Y)||ei(Y))&&(Fe=Ba(ue))):Tn=!1}Tn&&(fe.set(ue,Fe),G(Fe,ue,j,se,fe),fe.delete(ue)),Js(f,_,Fe)}function Ia(f,p){return Ha(Va(f,p,Cr),f+"")}var Na=Lt?function(f,p){return Lt(f,"toString",{configurable:!0,enumerable:!1,value:Xa(p),writable:!0})}:Cr;function $a(f,p){if(p)return f.slice();var _=f.length,j=ut?ut(_):new f.constructor(_);return f.copy(j),j}function Ca(f){var p=new f.constructor(f.byteLength);return new De(p).set(new De(f)),p}function La(f,p){var _=p?Ca(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}function Pa(f,p){var _=-1,j=f.length;for(p||(p=Array(j));++_<j;)p[_]=f[_];return p}function Ma(f,p,_,j){var G=!_;_||(_={});for(var se=-1,fe=p.length;++se<fe;){var Y=p[se],ue=j?j(_[Y],f[Y],Y,_,f):void 0;ue===void 0&&(ue=f[Y]),G?Ys(_,Y,ue):Sa(_,Y,ue)}return _}function Da(f){return Ia(function(p,_){var j=-1,G=_.length,se=G>1?_[G-1]:void 0,fe=G>2?_[2]:void 0;for(se=f.length>3&&typeof se=="function"?(G--,se):void 0,fe&&Fa(_[0],_[1],fe)&&(se=G<3?void 0:se,G=1),p=Object(p);++j<G;){var Y=_[j];Y&&f(p,Y,j,se)}return p})}function ja(f){return function(p,_,j){for(var G=-1,se=Object(p),fe=j(p),Y=fe.length;Y--;){var ue=fe[f?Y:++G];if(_(se[ue],ue,se)===!1)break}return p}}function ts(f,p){var _=f.__data__;return xa(p)?_[typeof p=="string"?"string":"hash"]:_.map}function zs(f,p){var _=O(f,p);return Oa(_)?_:void 0}function Ra(f){var p=P.call(f,Se),_=f[Se];try{f[Se]=void 0;var j=!0}catch{}var G=K.call(f);return j&&(p?f[Se]=_:delete f[Se]),G}function Ba(f){return typeof f.constructor=="function"&&!Tr(f)?ea(kn(f)):{}}function Er(f,p){var _=typeof f;return p=p==null?o:p,!!p&&(_=="number"||_!="symbol"&&Ue.test(f))&&f>-1&&f%1==0&&f<p}function Fa(f,p,_){if(!Mt(_))return!1;var j=typeof p;return(j=="number"?Zs(_)&&Er(p,_.length):j=="string"&&p in _)?ns(_[p],f):!1}function xa(f){var p=typeof f;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?f!=="__proto__":f===null}function Ka(f){return!!F&&F in f}function Tr(f){var p=f&&f.constructor,_=typeof p=="function"&&p.prototype||$;return f===_}function Ua(f){var p=[];if(f!=null)for(var _ in Object(f))p.push(_);return p}function qa(f){return K.call(f)}function Va(f,p,_){return p=vr(p===void 0?f.length-1:p,0),function(){for(var j=arguments,G=-1,se=vr(j.length-p,0),fe=Array(se);++G<se;)fe[G]=j[p+G];G=-1;for(var Y=Array(p+1);++G<p;)Y[G]=j[G];return Y[p]=_(fe),g(f,this,Y)}}function Gs(f,p){if(!(p==="constructor"&&typeof f[p]=="function")&&p!="__proto__")return f[p]}var Ha=Wa(Na);function Wa(f){var p=0,_=0;return function(){var j=Zl(),G=r-(j-_);if(_=j,G>0){if(++p>=i)return arguments[0]}else p=0;return f.apply(void 0,arguments)}}function Ja(f){if(f!=null){try{return B.call(f)}catch{}try{return f+""}catch{}}return""}function ns(f,p){return f===p||f!==f&&p!==p}var Qs=kr(function(){return arguments}())?kr:function(f){return En(f)&&P.call(f,"callee")&&!Xn.call(f,"callee")},Xs=Array.isArray;function Zs(f){return f!=null&&Ir(f.length)&&!ei(f)}function Ya(f){return En(f)&&Zs(f)}var Ar=Xl||Za;function ei(f){if(!Mt(f))return!1;var p=es(f);return p==b||p==S||p==c||p==C}function Ir(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=o}function Mt(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function En(f){return f!=null&&typeof f=="object"}function za(f){if(!En(f)||es(f)!=A)return!1;var p=kn(f);if(p===null)return!0;var _=P.call(p,"constructor")&&p.constructor;return typeof _=="function"&&_ instanceof _&&B.call(_)==W}var Nr=u?E(u):Ea;function Ga(f){return Ma(f,$r(f))}function $r(f){return Zs(f)?va(f,!0):Ta(f)}var Qa=Da(function(f,p,_){Or(f,p,_)});function Xa(f){return function(){return f}}function Cr(f){return f}function Za(){return!1}e.exports=Qa})(ji,ji.exports);const Kh=ji.exports,Ze=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Uh={name:"Navbar",props:{open:{type:Boolean,default:!1},links:Array},computed:{showMenu:function(){return this.open&&this.isSmallScreen()}},methods:{isSmallScreen:function(){return window.matchMedia("screen and (max-width: 1023px)").matches}}},qh={key:0,class:"container-fluid"},Vh={class:"navbar",role:"navigation","aria-label":"main navigation"},Hh={class:"container"},Wh={class:"navbar-brand"},Jh=x("span",{"aria-hidden":"true"},null,-1),Yh=x("span",{"aria-hidden":"true"},null,-1),zh=x("span",{"aria-hidden":"true"},null,-1),Gh=[Jh,Yh,zh],Qh={class:"navbar-start"},Xh=["href","target"],Zh={class:"navbar-end"};function ed(e,t,n,s,i,r){return n.links?(U(),J("div",qh,[x("nav",Vh,[x("div",Hh,[x("div",Wh,[x("a",{role:"button","aria-label":"menu","aria-expanded":"false",class:ge(["navbar-burger",{"is-active":r.showMenu}]),onClick:t[0]||(t[0]=o=>e.$emit("navbar-toggle"))},Gh,2)]),x("div",{class:ge(["navbar-menu",{"is-active":r.showMenu}])},[x("div",Qh,[(U(!0),J(Te,null,$n(n.links,(o,l)=>(U(),J("a",{class:"navbar-item",rel:"noreferrer",key:l,href:o.url,target:o.target},[o.icon?(U(),J("i",{key:0,class:ge(["fa-fw",o.icon,{"mr-2":o.name}])},null,2)):le("",!0),Vt(" "+xe(o.name),1)],8,Xh))),128))]),x("div",Zh,[Dn(e.$slots,"default")])],2)])])])):le("",!0)}const td=Ze(Uh,[["render",ed]]);const nd={name:"GetStarted"},sd=e=>(ef("data-v-02f41afd"),e=e(),tf(),e),id=sd(()=>x("div",{class:"m-6 has-text-centered py-6"},[x("p",{class:"is-size-5 mb-0"},"No configured service found!"),x("p",null,"Check out the documentation to start building your Homer dashboard."),x("p",null,[x("a",{class:"button is-primary mt-5 has-text-weight-bold",href:"https://github.com/bastienwirtz/homer/blob/main/docs/configuration.md#configuration",target:"_blank"}," Get started ")])],-1)),rd=[id];function od(e,t,n,s,i,r){return U(),J("article",null,rd)}const ld=Ze(nd,[["render",od],["__scopeId","data-v-02f41afd"]]),ad={name:"ConnectivityChecker",data:function(){return{offline:!1}},created:function(){/t=\d+/.test(window.location.href)&&window.history.replaceState({},document.title,window.location.pathname);let e=this;this.checkOffline(),document.addEventListener("visibilitychange",function(){document.visibilityState=="visible"&&e.checkOffline()},!1),window.addEventListener("online",function(){e.checkOffline()},!1),window.addEventListener("offline",function(){this.offline=!0},!1)},methods:{checkOffline:function(){if(!navigator.onLine){this.offline=!0;return}let e=this;const t=window.location.pathname.replace(/\/+$/,""),n=`${window.location.origin}${t}/index.html?t=${new Date().valueOf()}`;return fetch(n,{method:"HEAD",cache:"no-store",redirect:"manual"}).then(function(s){(s.type==="opaqueredirect"&&!s.ok||[401,403].indexOf(s.status)!=-1)&&(window.location.href=n),e.offline=!s.ok}).catch(function(){e.offline=!0}).finally(function(){e.$emit("network-status-update",e.offline)})}}},cd={key:0,class:"offline-message"},fd=x("i",{class:"far fa-dizzy"},null,-1),ud=x("i",{class:"fas fa-redo-alt"},null,-1),hd=[ud];function dd(e,t,n,s,i,r){return e.offline?(U(),J("div",cd,[fd,x("h1",null,[Vt(" You're offline friend. "),x("span",{onClick:t[0]||(t[0]=(...o)=>r.checkOffline&&r.checkOffline(...o))},hd)])])):le("",!0)}const pd=Ze(ad,[["render",dd]]),md="modulepreload",gd=function(e,t){return new URL(e,t).href},So={},ie=function(t,n,s){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=gd(r,s),r in So)return;So[r]=!0;const o=r.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!s)for(let h=i.length-1;h>=0;h--){const d=i[h];if(d.href===r&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":md,o||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),o)return new Promise((h,d)=>{c.addEventListener("load",h),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},yd=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})};const bd={name:"Generic",props:{item:Object},computed:{mediaClass:function(){return{media:!0,"no-subtitle":!this.item.subtitle}}}},_d=["href","target"],wd={class:"card-content"},vd={key:0,class:"media-left"},Sd={class:"image is-48x48"},kd=["src","alt"],Od={key:1,class:"media-left"},Ed={class:"image is-48x48"},Td={class:"media-content"},Ad={class:"title is-4"},Id={key:0,class:"subtitle is-6"},Nd={class:"tag-text"};function $d(e,t,n,s,i,r){return U(),J("div",null,[x("div",{class:ge(["card",n.item.class]),style:Es(`background-color:${n.item.background};`)},[x("a",{href:n.item.url,target:n.item.target,rel:"noreferrer"},[x("div",wd,[x("div",{class:ge(r.mediaClass)},[Dn(e.$slots,"icon",{},()=>[n.item.logo?(U(),J("div",vd,[x("figure",Sd,[x("img",{src:n.item.logo,alt:`${n.item.name} logo`},null,8,kd)])])):le("",!0),n.item.icon?(U(),J("div",Od,[x("figure",Ed,[x("i",{style:{"font-size":"35px"},class:ge(["fa-fw",n.item.icon])},null,2)])])):le("",!0)],!0),x("div",Td,[Dn(e.$slots,"content",{},()=>[x("p",Ad,xe(n.item.name),1),n.item.subtitle?(U(),J("p",Id,xe(n.item.subtitle),1)):le("",!0)],!0)]),Dn(e.$slots,"indicator",{class:"indicator"},void 0,!0)],2),n.item.tag?(U(),J("div",{key:0,class:ge(["tag",n.item.tagstyle])},[x("strong",Nd,"#"+xe(n.item.tag),1)],2)):le("",!0)])],8,_d)],6)])}const Gl=Ze(bd,[["render",$d],["__scopeId","data-v-981ee25a"]]),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Gl},Symbol.toStringTag,{value:"Module"})),Ld={name:"Service",props:{item:Object,proxy:Object},computed:{component(){const e=this.item.type||"Generic";return e==="Generic"?Gl:hf(()=>yd(Object.assign({"./services/AdGuardHome.vue":()=>ie(()=>import("./AdGuardHome.1d0e702b.js"),["./AdGuardHome.1d0e702b.js","./service.541fc1e6.js","./AdGuardHome.58ee6c83.css"],import.meta.url),"./services/CopyToClipboard.vue":()=>ie(()=>import("./CopyToClipboard.b3bb62c3.js"),["./CopyToClipboard.b3bb62c3.js","./service.541fc1e6.js","./CopyToClipboard.a17573c3.css"],import.meta.url),"./services/Emby.vue":()=>ie(()=>import("./Emby.774b2d69.js"),["./Emby.774b2d69.js","./service.541fc1e6.js","./Emby.1c49ce56.css"],import.meta.url),"./services/Generic.vue":()=>ie(()=>Promise.resolve().then(()=>Cd),void 0,import.meta.url),"./services/Healthchecks.vue":()=>ie(()=>import("./Healthchecks.52385485.js"),["./Healthchecks.52385485.js","./service.541fc1e6.js","./Healthchecks.c88f2822.css"],import.meta.url),"./services/Lidarr.vue":()=>ie(()=>import("./Lidarr.14af5f72.js"),["./Lidarr.14af5f72.js","./service.541fc1e6.js","./Lidarr.f62c6a04.css"],import.meta.url),"./services/Mealie.vue":()=>ie(()=>import("./Mealie.7d08fd6d.js"),["./Mealie.7d08fd6d.js","./service.541fc1e6.js"],import.meta.url),"./services/Medusa.vue":()=>ie(()=>import("./Medusa.c8786ae6.js"),["./Medusa.c8786ae6.js","./service.541fc1e6.js","./Medusa.e73e6d80.css"],import.meta.url),"./services/OctoPrint.vue":()=>ie(()=>import("./OctoPrint.78837a04.js"),["./OctoPrint.78837a04.js","./service.541fc1e6.js","./OctoPrint.4b446c51.css"],import.meta.url),"./services/OpenWeather.vue":()=>ie(()=>import("./OpenWeather.ef672564.js"),["./OpenWeather.ef672564.js","./OpenWeather.c3a274b3.css"],import.meta.url),"./services/PaperlessNG.vue":()=>ie(()=>import("./PaperlessNG.e5ae8f5d.js"),["./PaperlessNG.e5ae8f5d.js","./service.541fc1e6.js"],import.meta.url),"./services/PiHole.vue":()=>ie(()=>import("./PiHole.05678db2.js"),["./PiHole.05678db2.js","./service.541fc1e6.js","./PiHole.eb737172.css"],import.meta.url),"./services/Ping.vue":()=>ie(()=>import("./Ping.97b4391d.js"),["./Ping.97b4391d.js","./service.541fc1e6.js","./Ping.f54b6bba.css"],import.meta.url),"./services/Portainer.vue":()=>ie(()=>import("./Portainer.2f776cbf.js"),["./Portainer.2f776cbf.js","./service.541fc1e6.js","./Portainer.8fec3428.css"],import.meta.url),"./services/Prometheus.vue":()=>ie(()=>import("./Prometheus.c72d7c41.js"),["./Prometheus.c72d7c41.js","./service.541fc1e6.js","./Prometheus.33bec39c.css"],import.meta.url),"./services/Prowlarr.vue":()=>ie(()=>import("./Prowlarr.87d4f896.js"),["./Prowlarr.87d4f896.js","./service.541fc1e6.js","./Prowlarr.2c1ae3fa.css"],import.meta.url),"./services/Proxmox.vue":()=>ie(()=>import("./Proxmox.5626d857.js"),["./Proxmox.5626d857.js","./service.541fc1e6.js","./Proxmox.04b227e5.css"],import.meta.url),"./services/Radarr.vue":()=>ie(()=>import("./Radarr.edc85f6c.js"),["./Radarr.edc85f6c.js","./service.541fc1e6.js","./Radarr.eb9f7ff0.css"],import.meta.url),"./services/Rtorrent.vue":()=>ie(()=>import("./Rtorrent.071d65d7.js"),["./Rtorrent.071d65d7.js","./Rtorrent.a1b7781a.css"],import.meta.url),"./services/SABnzbd.vue":()=>ie(()=>import("./SABnzbd.556c2ce6.js"),["./SABnzbd.556c2ce6.js","./service.541fc1e6.js","./SABnzbd.f94c9543.css"],import.meta.url),"./services/Sonarr.vue":()=>ie(()=>import("./Sonarr.f6e010b1.js"),["./Sonarr.f6e010b1.js","./service.541fc1e6.js","./Sonarr.1dfb8d14.css"],import.meta.url),"./services/SpeedtestTracker.vue":()=>ie(()=>import("./SpeedtestTracker.2eb3df74.js"),["./SpeedtestTracker.2eb3df74.js","./service.541fc1e6.js"],import.meta.url),"./services/Tautulli.vue":()=>ie(()=>import("./Tautulli.8e62748f.js"),["./Tautulli.8e62748f.js","./service.541fc1e6.js","./Tautulli.d3f86925.css"],import.meta.url),"./services/Tdarr.vue":()=>ie(()=>import("./Tdarr.411225c5.js"),["./Tdarr.411225c5.js","./service.541fc1e6.js","./Tdarr.beb4fb95.css"],import.meta.url),"./services/UptimeKuma.vue":()=>ie(()=>import("./UptimeKuma.5195bf2a.js"),["./UptimeKuma.5195bf2a.js","./service.541fc1e6.js","./UptimeKuma.29705488.css"],import.meta.url),"./services/WUD.vue":()=>ie(()=>import("./WUD.cf7de712.js"),["./WUD.cf7de712.js","./service.541fc1e6.js","./WUD.5673736c.css"],import.meta.url),"./services/qBittorrent.vue":()=>ie(()=>import("./qBittorrent.70f91624.js"),["./qBittorrent.70f91624.js","./service.541fc1e6.js","./qBittorrent.dc942469.css"],import.meta.url)}),`./services/${e}.vue`))}}};function Pd(e,t,n,s,i,r){return U(),kt(Ef(r.component),{item:n.item,proxy:n.proxy},null,8,["item","proxy"])}const Md=Ze(Ld,[["render",Pd]]),Dd={name:"Message",props:{item:Object},data:function(){return{message:{}}},created:async function(){this.message=Object.assign({},this.item),await this.getMessage()},computed:{show:function(){return this.message.title||this.message.content}},watch:{item:function(e){this.message=Object.assign({},e)}},methods:{getMessage:async function(){if(!!this.item){if(this.item.url){let e=await this.downloadMessage(this.item.url);this.item.mapping&&(e=this.mapRemoteMessage(e));const t=this.message;for(const n of["title","style","content","icon"])n in e&&e[n]!==null&&(t[n]=e[n]);this.message={...t}}this.item.refreshInterval&&setTimeout(this.getMessage,this.item.refreshInterval)}},downloadMessage:function(e){return fetch(e).then(function(t){if(t.status==200)return t.json()})},mapRemoteMessage:function(e){let t={};for(const n in this.item.mapping)e[this.item.mapping[n]]&&(t[n]=e[this.item.mapping[n]]);return t}}},jd={key:0,class:"message-header"},Rd=["innerHTML"];function Bd(e,t,n,s,i,r){return r.show?(U(),J("article",{key:0,class:ge(["message",e.message.style])},[e.message.title||e.message.icon?(U(),J("div",jd,[x("p",null,[e.message.icon?(U(),J("i",{key:0,class:ge(`fa-fw ${e.message.icon}`)},null,2)):le("",!0),Vt(" "+xe(e.message.title),1)])])):le("",!0),e.message.content?(U(),J("div",{key:1,class:"message-body",innerHTML:e.message.content},null,8,Rd)):le("",!0)],2)):le("",!0)}const Fd=Ze(Dd,[["render",Bd]]),xd={name:"SearchInput",props:{value:String,hotkey:{type:String,default:"/"}},mounted(){this._keyListener=function(t){t.key===this.hotkey&&(t.preventDefault(),this.focus()),t.key==="Escape"&&this.cancel()},document.addEventListener("keydown",this._keyListener.bind(this));const e=new URLSearchParams(window.location.search).get("search");e&&(this.$refs.search.value=e,this.search(e),this.focus())},methods:{open:function(e=null){!this.$refs.search.value||this.$emit("search-open",e)},focus:function(){this.$emit("search-focus"),this.$nextTick(()=>{this.$refs.search.focus()})},setSearchURL:function(e){const t=new URL(window.location);e===""?t.searchParams.delete("search"):t.searchParams.set("search",e),window.history.replaceState("search",null,t)},cancel:function(){this.setSearchURL(""),this.$refs.search.value="",this.$refs.search.blur(),this.$emit("search-cancel")},search:function(e){this.setSearchURL(e),this.$emit("input",e.toLowerCase())}},beforeUnmount(){document.removeEventListener("keydown",this._keyListener)}},Kd={class:"search-bar"},Ud=x("label",{for:"search",class:"search-label"},null,-1),qd=["value"];function Vd(e,t,n,s,i,r){return U(),J("div",Kd,[Ud,x("input",{type:"text",ref:"search",value:n.value,onInput:t[0]||(t[0]=o=>r.search(o.target.value)),onKeyup:[t[1]||(t[1]=oo($i(o=>r.open(),["exact"]),["enter"])),t[2]||(t[2]=oo($i(o=>r.open("_blank"),["alt"]),["enter"]))]},null,40,qd)])}const Hd=Ze(xd,[["render",Vd]]),Wd={name:"SettingToggle",props:{name:String,icon:String,iconAlt:String,defaultValue:Boolean},data:function(){return{secondaryIcon:null,value:!0}},created:function(){this.secondaryIcon=this.iconAlt||this.icon,this.name in localStorage?this.value=JSON.parse(localStorage[this.name]):this.value=this.defaultValue,this.$emit("updated",this.value)},methods:{toggleSetting:function(){this.value=!this.value,localStorage[this.name]=this.value,this.$emit("updated",this.value)}}};function Jd(e,t,n,s,i,r){return U(),J("a",{onClick:t[0]||(t[0]=$i(o=>r.toggleSetting(),["prevent"])),class:"navbar-item is-inline-block-mobile"},[x("span",null,[x("i",{class:ge(["fas","fa-fw",e.value?n.icon:e.secondaryIcon])},null,2)]),Dn(e.$slots,"default")])}const Yd=Ze(Wd,[["render",Jd]]),zd={name:"Darkmode",props:{defaultValue:String},data:function(){return{isDark:null,faClasses:null,titles:null,mode:null}},created:function(){if(this.faClasses=["fas fa-adjust","fas fa-circle","far fa-circle"],this.titles=["Auto-switch","Light theme","Dark theme"],this.mode=0,"overrideDark"in localStorage)this.mode=JSON.parse(localStorage.overrideDark)?2:1;else switch(this.defaultValue){case"light":this.mode=1;break;case"dark":this.mode=2;break;default:this.mode=0}this.isDark=this.getIsDark(),this.$emit("updated",this.isDark),this.watchIsDark()},methods:{toggleTheme:function(){switch(this.mode=(this.mode+1)%3,this.mode){case 0:localStorage.removeItem("overrideDark");break;case 1:localStorage.overrideDark=!1;break;case 2:localStorage.overrideDark=!0;break}this.isDark=this.getIsDark(),this.$emit("updated",this.isDark)},getIsDark:function(){return[matchMedia("(prefers-color-scheme: dark)").matches,!1,!0][this.mode]},watchIsDark:function(){matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{this.isDark=this.getIsDark(),this.$emit("updated",this.isDark)})}}},Gd=["title"];function Qd(e,t,n,s,i,r){return U(),J("a",{onClick:t[0]||(t[0]=o=>r.toggleTheme()),"aria-label":"Toggle dark mode",class:"navbar-item is-inline-block-mobile"},[x("i",{class:ge([`${e.faClasses[e.mode]}`,"fa-fw"]),title:`${e.titles[e.mode]}`},null,10,Gd)])}const Xd=Ze(zd,[["render",Qd]]),Zd={name:"DynamicTheme",props:{themes:Object},methods:{getVars:function(e){let t=[];for(const n in e){let s=`${e[n]}`;s?n=="background-image"&&(s=`url(${e[n]})`):s="initial",t.push(`--${n}: ${s}`)}return t.join(";")}}};function ep(e,t,n,s,i,r){const o=nt("DynamicStyle");return U(),kt(o,null,{default:Qi(()=>[Vt(" :root, body #app.is-light { "+xe(r.getVars(n.themes.light))+" } @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) { :root, body #app { "+xe(r.getVars(n.themes.light))+" } } body #app.is-dark { "+xe(r.getVars(n.themes.dark))+" } @media (prefers-color-scheme: dark) { :root, body #app { "+xe(r.getVars(n.themes.dark))+" } } ",1)]),_:1})}const tp=Ze(Zd,[["render",ep]]),np=`---
# Default configuration
title: "Dashboard"
subtitle: "Homer"
header: true
footer: '<p>Created with <span class="has-text-danger">\u2764\uFE0F</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it.
columns: 3
connectivityCheck: true
defaults:
# columns, list
layout: columns
# auto, light, dark
colorTheme: auto
theme: default
colors:
light:
highlight-primary: "#3367d6"
highlight-secondary: "#4285f4"
highlight-hover: "#5a95f5"
background: "#f5f5f5"
card-background: "#ffffff"
text: "#363636"
text-header: "#ffffff"
text-title: "#303030"
text-subtitle: "#424242"
card-shadow: rgba(0, 0, 0, 0.1)
link: "#3273dc"
link-hover: "#363636"
background-image: ""
dark:
highlight-primary: "#3367d6"
highlight-secondary: "#4285f4"
highlight-hover: "#5a95f5"
background: "#131313"
card-background: "#2b2b2b"
text: "#eaeaea"
text-header: "#ffffff"
text-title: "#fafafa"
text-subtitle: "#f5f5f5"
card-shadow: rgba(0, 0, 0, 0.4)
link: "#3273dc"
link-hover: "#ffdd57"
background-image: ""
message: ~
links: []
services: []
proxy: ~`,sp={name:"App",components:{Navbar:td,GetStarted:ld,ConnectivityChecker:pd,Service:Md,Message:Fd,SearchInput:Hd,SettingToggle:Yd,DarkMode:Xd,DynamicTheme:tp},data:function(){return{loaded:!1,currentPage:null,configNotFound:!1,config:null,services:null,offline:!1,filter:"",vlayout:!0,isDark:null,showMenu:!1}},computed:{configurationNeeded:function(){return this.loaded&&!this.services||this.configNotFound}},created:async function(){this.buildDashboard(),window.onhashchange=this.buildDashboard,this.loaded=!0},methods:{searchHotkey(){if(this.config.hotkey&&this.config.hotkey.search)return this.config.hotkey.search},buildDashboard:async function(){const e=vo(np);let t;try{if(t=await this.getConfig(),this.currentPage=window.location.hash.substring(1)||"default",this.currentPage!=="default"){let n=await this.getConfig(`assets/${this.currentPage}.yml`);t=Object.assign(t,n)}}catch(n){console.log(n),t=this.handleErrors("\u26A0\uFE0F Error loading configuration",n)}if(this.config=Kh(e,t),this.services=this.config.services,document.title=this.config.documentTitle||`${this.config.title} | ${this.config.subtitle}`,this.config.stylesheet){let n="";for(const s of this.config.stylesheet)n+=`@import "${s}";`;this.createStylesheet(n)}},getConfig:function(e="assets/config.yml"){return fetch(e).then(t=>{if(t.status==404||t.redirected)return this.configNotFound=!0,{};if(!t.ok)throw Error(`${t.statusText}: ${t.body}`);const n=this;return t.text().then(s=>vo(s)).then(function(s){return s.externalConfig?n.getConfig(s.externalConfig):s})})},matchesFilter:function(e){var n;const t=(n=this.filter)==null?void 0:n.toLowerCase();return e.name.toLowerCase().includes(t)||e.subtitle&&e.subtitle.toLowerCase().includes(t)||e.tag&&e.tag.toLowerCase().includes(t)||e.keywords&&e.keywords.toLowerCase().includes(t)},navigateToFirstService:function(e){try{const t=this.services[0].items[0];window.open(t.url,e||t.target||"_self")}catch{console.warning("fail to open service")}},filterServices:function(e){if(console.log(e),this.filter=e,!e){this.services=this.config.services;return}const t=[];for(const n of this.config.services)for(const s of n.items)this.matchesFilter(s)&&t.push(s);this.services=[{name:e,icon:"fas fa-search",items:t}]},handleErrors:function(e,t){return{message:{title:e,style:"is-danger",content:t}}},createStylesheet:function(e){let t=document.createElement("style");t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}}},ip={id:"bighead"},rp={key:0,class:"first-line"},op={class:"container"},lp={class:"logo"},ap={href:"#"},cp=["src"],fp={class:"headline"},up={id:"main-section",class:"section"},hp={class:"container"},dp={key:2},pp={key:0,class:"columns is-multiline"},mp={key:1,class:"group-logo media-left"},gp={class:"image is-48x48"},yp=["src","alt"],bp={key:1,class:"columns is-multiline layout-vertical"},_p={key:0,class:"group-title"},wp={key:1,class:"group-logo media-left"},vp={class:"image is-48x48"},Sp=["src","alt"],kp={class:"footer"},Op={class:"container"},Ep=["innerHTML"];function Tp(e,t,n,s,i,r){const o=nt("DynamicTheme"),l=nt("DarkMode"),a=nt("SettingToggle"),c=nt("SearchInput"),h=nt("Navbar"),d=nt("ConnectivityChecker"),y=nt("GetStarted"),b=nt("Message"),S=nt("Service");return e.config?(U(),J("div",{key:0,id:"app",class:ge([`theme-${e.config.theme}`,`page-${e.currentPage}`,e.isDark?"is-dark":"is-light",e.config.footer?"":"no-footer"])},[he(o,{themes:e.config.colors},null,8,["themes"]),x("div",ip,[e.config.header?(U(),J("section",rp,[x("div",op,[x("div",lp,[x("a",ap,[e.config.logo?(U(),J("img",{key:0,src:e.config.logo,alt:"dashboard logo"},null,8,cp)):le("",!0)]),e.config.icon?(U(),J("i",{key:0,class:ge(e.config.icon)},null,2)):le("",!0)]),x("div",{class:ge(["dashboard-title",{"no-logo":!e.config.icon||!e.config.logo}])},[x("span",fp,xe(e.config.subtitle),1),x("h1",null,xe(e.config.title),1)],2)])])):le("",!0),he(h,{open:e.showMenu,links:e.config.links,onNavbarToggle:t[6]||(t[6]=m=>e.showMenu=!e.showMenu)},{default:Qi(()=>[he(l,{onUpdated:t[0]||(t[0]=m=>e.isDark=m),defaultValue:this.config.defaults.colorTheme},null,8,["defaultValue"]),he(a,{onUpdated:t[1]||(t[1]=m=>e.vlayout=m),name:"vlayout",icon:"fa-list",iconAlt:"fa-columns",defaultValue:this.config.defaults.layout=="columns"},null,8,["defaultValue"]),he(c,{class:"navbar-item is-inline-block-mobile",hotkey:r.searchHotkey(),onInput:t[2]||(t[2]=m=>{var w;return r.filterServices((w=m.target)==null?void 0:w.value)}),onSearchFocus:t[3]||(t[3]=m=>e.showMenu=!0),onSearchOpen:t[4]||(t[4]=m=>{var w;return r.navigateToFirstService((w=m==null?void 0:m.target)==null?void 0:w.value)}),onSearchCancel:t[5]||(t[5]=m=>r.filterServices())},null,8,["hotkey"])]),_:1},8,["open","links"])]),x("section",up,[x("div",hp,[e.config.connectivityCheck?(U(),kt(d,{key:0,onNetworkStatusUpdate:t[7]||(t[7]=m=>e.offline=m)})):le("",!0),r.configurationNeeded?(U(),kt(y,{key:1})):le("",!0),e.offline?le("",!0):(U(),J("div",dp,[he(b,{item:e.config.message},null,8,["item"]),!e.vlayout||e.filter?(U(),J("div",pp,[(U(!0),J(Te,null,$n(e.services,(m,w)=>(U(),J(Te,null,[m.name?(U(),J("h2",{class:"column is-full group-title",key:`header-${w}`},[m.icon?(U(),J("i",{key:0,class:ge(["fa-fw",m.icon])},null,2)):m.logo?(U(),J("div",mp,[x("figure",gp,[x("img",{src:m.logo,alt:`${m.name} logo`},null,8,yp)])])):le("",!0),Vt(" "+xe(m.name),1)])):le("",!0),(U(!0),J(Te,null,$n(m.items,(k,A)=>(U(),kt(S,{key:`service-${w}-${A}`,item:k,proxy:e.config.proxy,class:ge(["column",`is-${12/e.config.columns}`])},null,8,["item","proxy","class"]))),128))],64))),256))])):le("",!0),!e.filter&&e.vlayout?(U(),J("div",bp,[(U(!0),J(Te,null,$n(e.services,(m,w)=>(U(),J("div",{class:ge(["column",`is-${12/e.config.columns}`]),key:w},[m.name?(U(),J("h2",_p,[m.icon?(U(),J("i",{key:0,class:ge(["fa-fw",m.icon])},null,2)):m.logo?(U(),J("div",wp,[x("figure",vp,[x("img",{src:m.logo,alt:`${m.name} logo`},null,8,Sp)])])):le("",!0),Vt(" "+xe(m.name),1)])):le("",!0),(U(!0),J(Te,null,$n(m.items,(k,A)=>(U(),kt(S,{key:A,item:k,proxy:e.config.proxy},null,8,["item","proxy"]))),128))],2))),128))])):le("",!0)]))])]),x("footer",kp,[x("div",Op,[e.config.footer?(U(),J("div",{key:0,class:"content has-text-centered",innerHTML:e.config.footer},null,8,Ep)):le("",!0)])])],2)):le("",!0)}const Ap=Ze(sp,[["render",Tp]]);const Ql=Au(Ap);Ql.component("DynamicStyle",(e,t)=>su("style",{},t.slots));Ql.mount("#app-mount");export{Te as F,Gl as G,Ze as _,x as a,J as b,kt as c,Vt as d,le as e,tf as f,ge as n,U as o,ef as p,nt as r,xe as t,Qi as w};