(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();/** * @vue/shared v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function un(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ne={},Pt=[],Xe=()=>{},mi=()=>!1,Ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cs=e=>e.startsWith("onUpdate:"),xe=Object.assign,dn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},$o=Object.prototype.hasOwnProperty,X=(e,t)=>$o.call(e,t),F=Array.isArray,Ct=e=>is(e)==="[object Map]",Ut=e=>is(e)==="[object Set]",zn=e=>is(e)==="[object Date]",W=e=>typeof e=="function",de=e=>typeof e=="string",Qe=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",bi=e=>(te(e)||W(e))&&W(e.then)&&W(e.catch),vi=Object.prototype.toString,is=e=>vi.call(e),Oo=e=>is(e).slice(8,-1),yi=e=>is(e)==="[object Object]",pn=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),As=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Do=/-\w/g,Ne=As(e=>e.replace(Do,t=>t.slice(1).toUpperCase())),Ro=/\B([A-Z])/g,bt=As(e=>e.replace(Ro,"-$1").toLowerCase()),_i=As(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=As(e=>e?`on${_i(e)}`:""),Ye=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let In;const Os=()=>In||(In=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fn(e){if(F(e)){const t={};for(let s=0;s{if(s){const n=s.split(Io);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function $e(e){let t="";if(de(e))t=e;else if(F(e))for(let s=0;sht(s,t))}const ki=e=>!!(e&&e.__v_isRef===!0),m=e=>de(e)?e:e==null?"":F(e)||te(e)&&(e.toString===vi||!W(e.toString))?ki(e)?m(e.value):JSON.stringify(e,Ti,2):String(e),Ti=(e,t)=>ki(t)?Ti(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[Ls(n,o)+" =>"]=i,s),{})}:Ut(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ls(s))}:Qe(t)?Ls(t):te(t)&&!F(t)&&!yi(t)?String(t):t,Ls=(e,t="")=>{var s;return Qe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** * @vue/reactivity v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ve;class Fo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ve&&(ve.active?(this.parent=ve,this.index=(ve.scopes||(ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(ve===this)ve=this.prevScope;else{let t=ve;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(Wt){let t=Wt;for(Wt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Ci(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ai(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),bn(n),Ho(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xt)||(e.globalVersion=Xt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ys(e))))return;e.flags|=2;const t=e.dep,s=oe,n=Le;oe=e,Le=!0;try{Ci(e);const i=e.fn(e._value);(t.version===0||Ye(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{oe=s,Le=n,Ai(e),e.flags&=-3}}function bn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)bn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ho(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Le=!0;const Oi=[];function et(){Oi.push(Le),Le=!1}function tt(){const e=Oi.pop();Le=e===void 0?!0:e}function jn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=oe;oe=void 0;try{t()}finally{oe=s}}}let Xt=0;class Vo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!oe||!Le||oe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==oe)s=this.activeLink=new Vo(oe,this),oe.deps?(s.prevDep=oe.depsTail,oe.depsTail.nextDep=s,oe.depsTail=s):oe.deps=oe.depsTail=s,Di(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=oe.depsTail,s.nextDep=void 0,oe.depsTail.nextDep=s,oe.depsTail=s,oe.deps===s&&(oe.deps=n)}return s}trigger(t){this.version++,Xt++,this.notify(t)}notify(t){gn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{mn()}}}function Di(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Di(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Xs=new WeakMap,kt=Symbol(""),Qs=Symbol(""),Qt=Symbol("");function _e(e,t,s){if(Le&&oe){let n=Xs.get(e);n||Xs.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new vn),i.map=n,i.key=s),i.track()}}function at(e,t,s,n,i,o){const r=Xs.get(e);if(!r){Xt++;return}const a=l=>{l&&l.trigger()};if(gn(),t==="clear")r.forEach(a);else{const l=F(e),g=l&&pn(s);if(l&&s==="length"){const d=Number(n);r.forEach((b,E)=>{(E==="length"||E===Qt||!Qe(E)&&E>=d)&&a(b)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),g&&a(r.get(Qt)),t){case"add":l?g&&a(r.get("length")):(a(r.get(kt)),Ct(e)&&a(r.get(Qs)));break;case"delete":l||(a(r.get(kt)),Ct(e)&&a(r.get(Qs)));break;case"set":Ct(e)&&a(r.get(kt));break}}mn()}function St(e){const t=Y(e);return t===e?t:(_e(t,"iterate",Qt),Ue(e)?t:t.map(Fe))}function Ds(e){return _e(e=Y(e),"iterate",Qt),e}function Ze(e,t){return ut(e)?Dt(Tt(e)?Fe(t):t):Fe(t)}const Go={__proto__:null,[Symbol.iterator](){return Bs(this,Symbol.iterator,e=>Ze(this,e))},concat(...e){return St(this).concat(...e.map(t=>F(t)?St(t):t))},entries(){return Bs(this,"entries",e=>(e[1]=Ze(this,e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,s=>s.map(n=>Ze(this,n)),arguments)},find(e,t){return nt(this,"find",e,t,s=>Ze(this,s),arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,s=>Ze(this,s),arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return St(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return Un(this,"reduce",e,t)},reduceRight(e,...t){return Un(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return St(this).toReversed()},toSorted(e){return St(this).toSorted(e)},toSpliced(...e){return St(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return Bs(this,"values",e=>Ze(this,e))}};function Bs(e,t,s){const n=Ds(e),i=n[t]();return n!==e&&!Ue(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const Ko=Array.prototype;function nt(e,t,s,n,i,o){const r=Ds(e),a=r!==e&&!Ue(e),l=r[t];if(l!==Ko[t]){const b=l.apply(e,o);return a?Fe(b):b}let g=s;r!==e&&(a?g=function(b,E){return s.call(this,Ze(e,b),E,e)}:s.length>2&&(g=function(b,E){return s.call(this,b,E,e)}));const d=l.call(r,g,n);return a&&i?i(d):d}function Un(e,t,s,n){const i=Ds(e),o=i!==e&&!Ue(e);let r=s,a=!1;i!==e&&(o?(a=n.length===0,r=function(g,d,b){return a&&(a=!1,g=Ze(e,g)),s.call(this,g,Ze(e,d),b,e)}):s.length>3&&(r=function(g,d,b){return s.call(this,g,d,b,e)}));const l=i[t](r,...n);return a?Ze(e,l):l}function Hs(e,t,s){const n=Y(e);_e(n,"iterate",Qt);const i=n[t](...s);return(i===-1||i===!1)&&wn(s[0])?(s[0]=Y(s[0]),n[t](...s)):i}function Ft(e,t,s=[]){et(),gn();const n=Y(e)[t].apply(e,s);return mn(),tt(),n}const Wo=un("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function qo(e){Qe(e)||(e=String(e));const t=Y(this);return _e(t,"has",e),t.hasOwnProperty(e)}class zi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?ir:Mi:o?Ui:ji).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=F(t);if(!i){let l;if(r&&(l=Go[s]))return l;if(s==="hasOwnProperty")return qo}const a=Reflect.get(t,s,we(t)?t:n);if((Qe(s)?Ri.has(s):Wo(s))||(i||_e(t,"get",s),o))return a;if(we(a)){const l=r&&pn(s)?a:a.value;return i&&te(l)?tn(l):l}return te(a)?i?tn(a):es(a):a}}class Ii extends zi{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=F(t)&&pn(s);if(!this._isShallow){const g=ut(o);if(!Ue(n)&&!ut(n)&&(o=Y(o),n=Y(n)),!r&&we(o)&&!we(n))return g||(o.value=n),!0}const a=r?Number(s)e,us=e=>Reflect.getPrototypeOf(e);function Qo(e,t,s){return function(...n){const i=this.__v_raw,o=Y(i),r=Ct(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,g=i[e](...n),d=s?en:t?Dt:Fe;return!t&&_e(o,"iterate",l?Qs:kt),xe(Object.create(g),{next(){const{value:b,done:E}=g.next();return E?{value:b,done:E}:{value:a?[d(b[0]),d(b[1])]:d(b),done:E}}})}}function ds(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function er(e,t){const s={get(i){const o=this.__v_raw,r=Y(o),a=Y(i);e||(Ye(i,a)&&_e(r,"get",i),_e(r,"get",a));const{has:l}=us(r),g=t?en:e?Dt:Fe;if(l.call(r,i))return g(o.get(i));if(l.call(r,a))return g(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&_e(Y(i),"iterate",kt),i.size},has(i){const o=this.__v_raw,r=Y(o),a=Y(i);return e||(Ye(i,a)&&_e(r,"has",i),_e(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=Y(a),g=t?en:e?Dt:Fe;return!e&&_e(l,"iterate",kt),a.forEach((d,b)=>i.call(o,g(d),g(b),r))}};return xe(s,e?{add:ds("add"),set:ds("set"),delete:ds("delete"),clear:ds("clear")}:{add(i){const o=Y(this),r=us(o),a=Y(i),l=!t&&!Ue(i)&&!ut(i)?a:i;return r.has.call(o,l)||Ye(i,l)&&r.has.call(o,i)||Ye(a,l)&&r.has.call(o,a)||(o.add(l),at(o,"add",l,l)),this},set(i,o){!t&&!Ue(o)&&!ut(o)&&(o=Y(o));const r=Y(this),{has:a,get:l}=us(r);let g=a.call(r,i);g||(i=Y(i),g=a.call(r,i));const d=l.call(r,i);return r.set(i,o),g?Ye(o,d)&&at(r,"set",i,o):at(r,"add",i,o),this},delete(i){const o=Y(this),{has:r,get:a}=us(o);let l=r.call(o,i);l||(i=Y(i),l=r.call(o,i)),a&&a.call(o,i);const g=o.delete(i);return l&&at(o,"delete",i,void 0),g},clear(){const i=Y(this),o=i.size!==0,r=i.clear();return o&&at(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Qo(i,e,t)}),s}function yn(e,t){const s=er(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(X(s,i)&&i in n?s:n,i,o)}const tr={get:yn(!1,!1)},sr={get:yn(!1,!0)},nr={get:yn(!0,!1)};const ji=new WeakMap,Ui=new WeakMap,Mi=new WeakMap,ir=new WeakMap;function or(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function es(e){return ut(e)?e:_n(e,!1,Jo,tr,ji)}function rr(e){return _n(e,!1,Xo,sr,Ui)}function tn(e){return _n(e,!0,Yo,nr,Mi)}function _n(e,t,s,n,i){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=i.get(e);if(o)return o;const r=or(Oo(e));if(r===0)return e;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function Tt(e){return ut(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function Ue(e){return!!(e&&e.__v_isShallow)}function wn(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function ar(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&wi(e,"__v_skip",!0),e}const Fe=e=>te(e)?es(e):e,Dt=e=>te(e)?tn(e):e;function we(e){return e?e.__v_isRef===!0:!1}function V(e){return lr(e,!1)}function lr(e,t){return we(e)?e:new cr(e,t)}class cr{constructor(t,s){this.dep=new vn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Y(t),this._value=s?t:Fe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ue(t)||ut(t);t=n?t:Y(t),Ye(t,s)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function h(e){return we(e)?e.value:e}const ur={get:(e,t,s)=>t==="__v_raw"?e:h(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return we(i)&&!we(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ni(e){return Tt(e)?e:new Proxy(e,ur)}class dr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new vn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return Pi(this,!0),!0}get value(){const t=this.dep.track();return $i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pr(e,t,s=!1){let n,i;return W(e)?n=e:(n=e.get,i=e.set),new dr(n,i,s)}const ps={},vs=new WeakMap;let xt;function fr(e,t=!1,s=xt){if(s){let n=vs.get(s);n||vs.set(s,n=[]),n.push(e)}}function hr(e,t,s=ne){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,g=j=>i?j:Ue(j)||i===!1||i===0?lt(j,1):lt(j);let d,b,E,C,G=!1,k=!1;if(we(e)?(b=()=>e.value,G=Ue(e)):Tt(e)?(b=()=>g(e),G=!0):F(e)?(k=!0,G=e.some(j=>Tt(j)||Ue(j)),b=()=>e.map(j=>{if(we(j))return j.value;if(Tt(j))return g(j);if(W(j))return l?l(j,2):j()})):W(e)?t?b=l?()=>l(e,2):e:b=()=>{if(E){et();try{E()}finally{tt()}}const j=xt;xt=d;try{return l?l(e,3,[C]):e(C)}finally{xt=j}}:b=Xe,t&&i){const j=b,ce=i===!0?1/0:i;b=()=>lt(j(),ce)}const M=Bo(),z=()=>{d.stop(),M&&M.active&&dn(M.effects,d)};if(o&&t){const j=t;t=(...ce)=>{const Ee=j(...ce);return z(),Ee}}let K=k?new Array(e.length).fill(ps):ps;const Z=j=>{if(!(!(d.flags&1)||!d.dirty&&!j))if(t){const ce=d.run();if(j||i||G||(k?ce.some((Ee,Pe)=>Ye(Ee,K[Pe])):Ye(ce,K))){E&&E();const Ee=xt;xt=d;try{const Pe=[ce,K===ps?void 0:k&&K[0]===ps?[]:K,C];K=ce,l?l(t,3,Pe):t(...Pe)}finally{xt=Ee}}}else d.run()};return a&&a(Z),d=new Si(b),d.scheduler=r?()=>r(Z,!1):Z,C=j=>fr(j,!1,d),E=d.onStop=()=>{const j=vs.get(d);if(j){if(l)l(j,4);else for(const ce of j)ce();vs.delete(d)}},t?n?Z(!0):K=d.run():r?r(Z.bind(null,!0),!0):d.run(),z.pause=d.pause.bind(d),z.resume=d.resume.bind(d),z.stop=z,z}function lt(e,t=1/0,s){if(t<=0||!te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,we(e))lt(e.value,t,s);else if(F(e))for(let n=0;n{lt(n,t,s)});else if(yi(e)){for(const n in e)lt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&<(e[n],t,s)}return e}/** * @vue/runtime-core v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function os(e,t,s,n){try{return n?e(...n):e()}catch(i){Rs(i,t,s)}}function Be(e,t,s,n){if(W(e)){const i=os(e,t,s,n);return i&&bi(i)&&i.catch(o=>{Rs(o,t,s)}),i}if(F(e)){const i=[];for(let o=0;o>>1,i=Te[n],o=ts(i);o=ts(s)?Te.push(e):Te.splice(mr(t),0,e),e.flags|=1,Bi()}}function Bi(){ys||(ys=Li.then(Vi))}function br(e){F(e)?At.push(...e):ft&&e.id===-1?ft.splice(Et+1,0,e):e.flags&1||(At.push(e),e.flags|=1),Bi()}function Mn(e,t,s=qe+1){for(;sts(s)-ts(n));if(At.length=0,ft){ft.push(...t);return}for(ft=t,Et=0;Ete.id==null?e.flags&2?-1:1/0:e.id;function Vi(e){try{for(qe=0;qe{n._d&&Zn(-1);const o=_s(t);let r;try{r=e(...i)}finally{_s(o),n._d&&Zn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(je===null)return e;const s=Us(je),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&W(t)?t.call(n&&n.proxy):t}}const _r=Symbol.for("v-scx"),wr=()=>gs(_r);function Vs(e,t,s){return Ki(e,t,s)}function Ki(e,t,s=ne){const{immediate:n,deep:i,flush:o,once:r}=s,a=xe({},s),l=t&&n||!t&&o!=="post";let g;if(ns){if(o==="sync"){const C=wr();g=C.__watcherHandles||(C.__watcherHandles=[])}else if(!l){const C=()=>{};return C.stop=Xe,C.resume=Xe,C.pause=Xe,C}}const d=Se;a.call=(C,G,k)=>Be(C,d,G,k);let b=!1;o==="post"?a.scheduler=C=>{Ce(C,d&&d.suspense)}:o!=="sync"&&(b=!0,a.scheduler=(C,G)=>{G?C():xn(C)}),a.augmentJob=C=>{t&&(C.flags|=4),b&&(C.flags|=2,d&&(C.id=d.uid,C.i=d))};const E=hr(e,t,a);return ns&&(g?g.push(E):l&&E()),E}function xr(e,t,s){const n=this.proxy,i=de(e)?e.includes(".")?Wi(n,e):()=>n[e]:e.bind(n,n);let o;W(t)?o=t:(o=t.handler,s=t);const r=rs(this),a=Ki(i,o.bind(n),s);return r(),a}function Wi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Gs=Symbol("_leaveCb");function kn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Nn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ws=new WeakMap;function qt(e,t,s,n,i=!1){if(F(e)){e.forEach((k,M)=>qt(k,t&&(F(t)?t[M]:t),s,n,i));return}if(Zt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&qt(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Us(n.component):n.el,r=i?null:o,{i:a,r:l}=e,g=t&&t.r,d=a.refs===ne?a.refs={}:a.refs,b=a.setupState,E=Y(b),C=b===ne?mi:k=>Nn(d,k)?!1:X(E,k),G=(k,M)=>!(M&&Nn(d,M));if(g!=null&&g!==l){if(Ln(t),de(g))d[g]=null,C(g)&&(b[g]=null);else if(we(g)){const k=t;G(g,k.k)&&(g.value=null),k.k&&(d[k.k]=null)}}if(W(l)){et();try{os(l,a,12,[r,d])}finally{tt()}}else{const k=de(l),M=we(l);if(k||M){const z=()=>{if(e.f){const K=k?C(l)?b[l]:d[l]:G()||!e.k?l.value:d[e.k];if(i)F(K)&&dn(K,o);else if(F(K))K.includes(o)||K.push(o);else if(k)d[l]=[o],C(l)&&(b[l]=d[l]);else{const Z=[o];G(l,e.k)&&(l.value=Z),e.k&&(d[e.k]=Z)}}else k?(d[l]=r,C(l)&&(b[l]=r)):M&&(G(l,e.k)&&(l.value=r),e.k&&(d[e.k]=r))};if(r){const K=()=>{z(),ws.delete(e)};K.id=-1,ws.set(e,K),Ce(K,s)}else Ln(e),z()}}}function Ln(e){const t=ws.get(e);t&&(t.flags|=8,ws.delete(e))}Os().requestIdleCallback;Os().cancelIdleCallback;const Zt=e=>!!e.type.__asyncLoader,Zi=e=>e.type.__isKeepAlive;function Sr(e,t){Ji(e,"a",t)}function Er(e,t){Ji(e,"da",t)}function Ji(e,t,s=Se){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(zs(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Zi(i.parent.vnode)&&Pr(n,t,s,i),i=i.parent}}function Pr(e,t,s,n){const i=zs(t,e,n,!0);Tn(()=>{dn(n[t],i)},s)}function zs(e,t,s=Se,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{et();const a=rs(s),l=Be(t,s,e,r);return a(),tt(),l});return n?i.unshift(o):i.push(o),o}}const dt=e=>(t,s=Se)=>{(!ns||e==="sp")&&zs(e,(...n)=>t(...n),s)},Cr=dt("bm"),pt=dt("m"),Ar=dt("bu"),$r=dt("u"),Or=dt("bum"),Tn=dt("um"),Dr=dt("sp"),Rr=dt("rtg"),zr=dt("rtc");function Ir(e,t=Se){zs("ec",e,t)}const jr=Symbol.for("v-ndc");function Ae(e,t,s,n){let i;const o=s,r=F(e);if(r||de(e)){const a=r&&Tt(e);let l=!1,g=!1;a&&(l=!Ue(e),g=ut(e),e=Ds(e)),i=new Array(e.length);for(let d=0,b=e.length;dt(a,l,void 0,o));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,g=a.length;le?vo(e)?Us(e):sn(e.parent):null,Jt=xe(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=>sn(e.parent),$root:e=>sn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xi(e),$forceUpdate:e=>e.f||(e.f=()=>{xn(e.update)}),$nextTick:e=>e.n||(e.n=Fi.bind(e.proxy)),$watch:e=>xr.bind(e)}),Ks=(e,t)=>e!==ne&&!e.__isScriptSetup&&X(e,t),Ur={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const E=r[t];if(E!==void 0)switch(E){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(Ks(n,t))return r[t]=1,n[t];if(i!==ne&&X(i,t))return r[t]=2,i[t];if(X(o,t))return r[t]=3,o[t];if(s!==ne&&X(s,t))return r[t]=4,s[t];nn&&(r[t]=0)}}const g=Jt[t];let d,b;if(g)return t==="$attrs"&&_e(e.attrs,"get",""),g(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(s!==ne&&X(s,t))return r[t]=4,s[t];if(b=l.config.globalProperties,X(b,t))return b[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return Ks(i,t)?(i[t]=s,!0):n!==ne&&X(n,t)?(n[t]=s,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},a){let l;return!!(s[a]||e!==ne&&a[0]!=="$"&&X(e,a)||Ks(t,a)||X(o,a)||X(n,a)||X(Jt,a)||X(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:X(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Fn(e){return F(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let nn=!0;function Mr(e){const t=Xi(e),s=e.proxy,n=e.ctx;nn=!1,t.beforeCreate&&Bn(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:g,created:d,beforeMount:b,mounted:E,beforeUpdate:C,updated:G,activated:k,deactivated:M,beforeDestroy:z,beforeUnmount:K,destroyed:Z,unmounted:j,render:ce,renderTracked:Ee,renderTriggered:Pe,errorCaptured:ue,serverPrefetch:D,expose:I,inheritAttrs:A,components:N,directives:le,filters:st}=t;if(g&&Nr(g,n,null),r)for(const J in r){const ie=r[J];W(ie)&&(n[J]=ie.bind(s))}if(i){const J=i.call(s,s);te(J)&&(e.data=es(J))}if(nn=!0,o)for(const J in o){const ie=o[J],vt=W(ie)?ie.bind(s,s):W(ie.get)?ie.get.bind(s,s):Xe,ls=!W(ie)&&W(ie.set)?ie.set.bind(s):Xe,yt=ze({get:vt,set:ls});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>yt.value,set:He=>yt.value=He})}if(a)for(const J in a)Yi(a[J],n,s,J);if(l){const J=W(l)?l.call(s):l;Reflect.ownKeys(J).forEach(ie=>{yr(ie,J[ie])})}d&&Bn(d,e,"c");function he(J,ie){F(ie)?ie.forEach(vt=>J(vt.bind(s))):ie&&J(ie.bind(s))}if(he(Cr,b),he(pt,E),he(Ar,C),he($r,G),he(Sr,k),he(Er,M),he(Ir,ue),he(zr,Ee),he(Rr,Pe),he(Or,K),he(Tn,j),he(Dr,D),F(I))if(I.length){const J=e.exposed||(e.exposed={});I.forEach(ie=>{Object.defineProperty(J,ie,{get:()=>s[ie],set:vt=>s[ie]=vt,enumerable:!0})})}else e.exposed||(e.exposed={});ce&&e.render===Xe&&(e.render=ce),A!=null&&(e.inheritAttrs=A),N&&(e.components=N),le&&(e.directives=le),D&&qi(e)}function Nr(e,t,s=Xe){F(e)&&(e=on(e));for(const n in e){const i=e[n];let o;te(i)?"default"in i?o=gs(i.from||n,i.default,!0):o=gs(i.from||n):o=gs(i),we(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function Bn(e,t,s){Be(F(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Yi(e,t,s,n){let i=n.includes(".")?Wi(s,n):()=>s[n];if(de(e)){const o=t[e];W(o)&&Vs(i,o)}else if(W(e))Vs(i,e.bind(s));else if(te(e))if(F(e))e.forEach(o=>Yi(o,t,s,n));else{const o=W(e.handler)?e.handler.bind(s):t[e.handler];W(o)&&Vs(i,o,e)}}function Xi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(g=>xs(l,g,r,!0)),xs(l,t,r)),te(t)&&o.set(t,l),l}function xs(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&xs(e,o,s,!0),i&&i.forEach(r=>xs(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=Lr[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Lr={data:Hn,props:Vn,emits:Vn,methods:Ht,computed:Ht,beforeCreate:ke,created:ke,beforeMount:ke,mounted:ke,beforeUpdate:ke,updated:ke,beforeDestroy:ke,beforeUnmount:ke,destroyed:ke,unmounted:ke,activated:ke,deactivated:ke,errorCaptured:ke,serverPrefetch:ke,components:Ht,directives:Ht,watch:Br,provide:Hn,inject:Fr};function Hn(e,t){return t?e?function(){return xe(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Fr(e,t){return Ht(on(e),on(t))}function on(e){if(F(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${bt(t)}Modifiers`];function Kr(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ne;let i=s;const o=t.startsWith("update:"),r=o&&Gr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>de(d)?d.trim():d)),r.number&&(i=s.map($s)));let a,l=n[a=Ns(t)]||n[a=Ns(Ne(t))];!l&&o&&(l=n[a=Ns(bt(t))]),l&&Be(l,e,6,i);const g=n[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Be(g,e,6,i)}}const Wr=new WeakMap;function eo(e,t,s=!1){const n=s?Wr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!W(e)){const l=g=>{const d=eo(g,t,!0);d&&(a=!0,xe(r,d))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(te(e)&&n.set(e,null),null):(F(o)?o.forEach(l=>r[l]=null):xe(r,o),te(e)&&n.set(e,r),r)}function Is(e,t){return!e||!Ps(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,bt(t))||X(e,t))}function Gn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:g,renderCache:d,props:b,data:E,setupState:C,ctx:G,inheritAttrs:k}=e,M=_s(e);let z,K;try{if(s.shapeFlag&4){const j=i||n,ce=j;z=Je(g.call(ce,j,d,b,C,E,G)),K=a}else{const j=t;z=Je(j.length>1?j(b,{attrs:a,slots:r,emit:l}):j(b,null)),K=t.props?a:qr(a)}}catch(j){Yt.length=0,Rs(j,e,1),z=ee(gt)}let Z=z;if(K&&k!==!1){const j=Object.keys(K),{shapeFlag:ce}=Z;j.length&&ce&7&&(o&&j.some(Cs)&&(K=Zr(K,o)),Z=Rt(Z,K,!1,!0))}return s.dirs&&(Z=Rt(Z,null,!1,!0),Z.dirs=Z.dirs?Z.dirs.concat(s.dirs):s.dirs),s.transition&&kn(Z,s.transition),z=Z,_s(M),z}const qr=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ps(s))&&((t||(t={}))[s]=e[s]);return t},Zr=(e,t)=>{const s={};for(const n in e)(!Cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Jr(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Kn(n,r,g):!!r;if(l&8){const d=t.dynamicProps;for(let b=0;bObject.create(so),io=e=>Object.getPrototypeOf(e)===so;function Xr(e,t,s,n=!1){const i={},o=no();e.propsDefaults=Object.create(null),oo(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:rr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Qr(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Y(i),[l]=e.propsOptions;let g=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let b=0;b{l=!0;const[E,C]=ro(b,t,!0);xe(r,E),C&&a.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return te(e)&&n.set(e,Pt),Pt;if(F(o))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",En=e=>F(e)?e.map(Je):[Je(e)],ta=(e,t,s)=>{if(t._n)return t;const n=vr((...i)=>En(t(...i)),s);return n._c=!1,n},ao=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Sn(i))continue;const o=e[i];if(W(o))t[i]=ta(i,o,n);else if(o!=null){const r=En(o);t[i]=()=>r}}},lo=(e,t)=>{const s=En(t);e.slots.default=()=>s},co=(e,t,s)=>{for(const n in t)(s||!Sn(n))&&(e[n]=t[n])},sa=(e,t,s)=>{const n=e.slots=no();if(e.vnode.shapeFlag&32){const i=t._;i?(co(n,t,s),s&&wi(n,"_",i,!0)):ao(t,n)}else t&&lo(e,t)},na=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=ne;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:co(i,t,s):(o=!t.$stable,ao(t,i)),r=t}else t&&(lo(e,t),r={default:1});if(o)for(const a in i)!Sn(a)&&r[a]==null&&delete i[a]},Ce=la;function ia(e){return oa(e)}function oa(e,t){const s=Os();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:g,setElementText:d,parentNode:b,nextSibling:E,setScopeId:C=Xe,insertStaticContent:G}=e,k=(c,p,v,S=null,T=null,w=null,O=void 0,$=null,P=!!p.dynamicChildren)=>{if(c===p)return;c&&!Bt(c,p)&&(S=cs(c),He(c,T,w,!0),c=null),p.patchFlag===-2&&(P=!1,p.dynamicChildren=null);const{type:x,ref:L,shapeFlag:R}=p;switch(x){case js:M(c,p,v,S);break;case gt:z(c,p,v,S);break;case qs:c==null&&K(p,v,S,O);break;case re:N(c,p,v,S,T,w,O,$,P);break;default:R&1?ce(c,p,v,S,T,w,O,$,P):R&6?le(c,p,v,S,T,w,O,$,P):(R&64||R&128)&&x.process(c,p,v,S,T,w,O,$,P,Nt)}L!=null&&T?qt(L,c&&c.ref,w,p||c,!p):L==null&&c&&c.ref!=null&&qt(c.ref,null,w,c,!0)},M=(c,p,v,S)=>{if(c==null)n(p.el=a(p.children),v,S);else{const T=p.el=c.el;p.children!==c.children&&g(T,p.children)}},z=(c,p,v,S)=>{c==null?n(p.el=l(p.children||""),v,S):p.el=c.el},K=(c,p,v,S)=>{[c.el,c.anchor]=G(c.children,p,v,S,c.el,c.anchor)},Z=({el:c,anchor:p},v,S)=>{let T;for(;c&&c!==p;)T=E(c),n(c,v,S),c=T;n(p,v,S)},j=({el:c,anchor:p})=>{let v;for(;c&&c!==p;)v=E(c),i(c),c=v;i(p)},ce=(c,p,v,S,T,w,O,$,P)=>{if(p.type==="svg"?O="svg":p.type==="math"&&(O="mathml"),c==null)Ee(p,v,S,T,w,O,$,P);else{const x=c.el&&c.el._isVueCE?c.el:null;try{x&&x._beginPatch(),D(c,p,T,w,O,$,P)}finally{x&&x._endPatch()}}},Ee=(c,p,v,S,T,w,O,$)=>{let P,x;const{props:L,shapeFlag:R,transition:U,dirs:H}=c;if(P=c.el=r(c.type,w,L&&L.is,L),R&8?d(P,c.children):R&16&&ue(c.children,P,null,S,T,Ws(c,w),O,$),H&&_t(c,null,S,"created"),Pe(P,c,c.scopeId,O,S),L){for(const se in L)se!=="value"&&!Gt(se)&&o(P,se,null,L[se],w,S);"value"in L&&o(P,"value",null,L.value,w),(x=L.onVnodeBeforeMount)&&We(x,S,c)}H&&_t(c,null,S,"beforeMount");const q=ra(T,U);q&&U.beforeEnter(P),n(P,p,v),((x=L&&L.onVnodeMounted)||q||H)&&Ce(()=>{try{x&&We(x,S,c),q&&U.enter(P),H&&_t(c,null,S,"mounted")}finally{}},T)},Pe=(c,p,v,S,T)=>{if(v&&C(c,v),S)for(let w=0;w{for(let x=P;x{const $=p.el=c.el;let{patchFlag:P,dynamicChildren:x,dirs:L}=p;P|=c.patchFlag&16;const R=c.props||ne,U=p.props||ne;let H;if(v&&wt(v,!1),(H=U.onVnodeBeforeUpdate)&&We(H,v,p,c),L&&_t(p,c,v,"beforeUpdate"),v&&wt(v,!0),x&&(!c.dynamicChildren||c.dynamicChildren.length!==x.length)&&(P=0,O=!1,x=null),(R.innerHTML&&U.innerHTML==null||R.textContent&&U.textContent==null)&&d($,""),x?I(c.dynamicChildren,x,$,v,S,Ws(p,T),w):O||ie(c,p,$,null,v,S,Ws(p,T),w,!1),P>0){if(P&16)A($,R,U,v,T);else if(P&2&&R.class!==U.class&&o($,"class",null,U.class,T),P&4&&o($,"style",R.style,U.style,T),P&8){const q=p.dynamicProps;for(let se=0;se{H&&We(H,v,p,c),L&&_t(p,c,v,"updated")},S)},I=(c,p,v,S,T,w,O)=>{for(let $=0;${if(p!==v){if(p!==ne)for(const w in p)!Gt(w)&&!(w in v)&&o(c,w,p[w],null,T,S);for(const w in v){if(Gt(w))continue;const O=v[w],$=p[w];O!==$&&w!=="value"&&o(c,w,$,O,T,S)}"value"in v&&o(c,"value",p.value,v.value,T)}},N=(c,p,v,S,T,w,O,$,P)=>{const x=p.el=c?c.el:a(""),L=p.anchor=c?c.anchor:a("");let{patchFlag:R,dynamicChildren:U,slotScopeIds:H}=p;H&&($=$?$.concat(H):H),c==null?(n(x,v,S),n(L,v,S),ue(p.children||[],v,L,T,w,O,$,P)):R>0&&R&64&&U&&c.dynamicChildren&&c.dynamicChildren.length===U.length?(I(c.dynamicChildren,U,v,T,w,O,$),(p.key!=null||T&&p===T.subTree)&&uo(c,p,!0)):ie(c,p,v,L,T,w,O,$,P)},le=(c,p,v,S,T,w,O,$,P)=>{p.slotScopeIds=$,c==null?p.shapeFlag&512?T.ctx.activate(p,v,S,O,P):st(p,v,S,T,w,O,P):as(c,p,P)},st=(c,p,v,S,T,w,O)=>{const $=c.component=ga(c,S,T);if(Zi(c)&&($.ctx.renderer=Nt),ba($,!1,O),$.asyncDep){if(T&&T.registerDep($,he,O),!c.el){const P=$.subTree=ee(gt);z(null,P,p,v),c.placeholder=P.el}}else he($,c,p,v,T,w,O)},as=(c,p,v)=>{const S=p.component=c.component;if(Jr(c,p,v))if(S.asyncDep&&!S.asyncResolved){J(S,p,v);return}else S.next=p,S.update();else p.el=c.el,S.vnode=p},he=(c,p,v,S,T,w,O)=>{const $=()=>{if(c.isMounted){let{next:R,bu:U,u:H,parent:q,vnode:se}=c;{const Ge=po(c);if(Ge){R&&(R.el=se.el,J(c,R,O)),Ge.asyncDep.then(()=>{Ce(()=>{c.isUnmounted||x()},T)});return}}let Q=R,pe;wt(c,!1),R?(R.el=se.el,J(c,R,O)):R=se,U&&hs(U),(pe=R.props&&R.props.onVnodeBeforeUpdate)&&We(pe,q,R,se),wt(c,!0);const be=Gn(c),Ve=c.subTree;c.subTree=be,k(Ve,be,b(Ve.el),cs(Ve),c,T,w),R.el=be.el,Q===null&&Yr(c,be.el),H&&Ce(H,T),(pe=R.props&&R.props.onVnodeUpdated)&&Ce(()=>We(pe,q,R,se),T)}else{let R;const{el:U,props:H}=p,{bm:q,m:se,parent:Q,root:pe,type:be}=c,Ve=Zt(p);wt(c,!1),q&&hs(q),!Ve&&(R=H&&H.onVnodeBeforeMount)&&We(R,Q,p),wt(c,!0);{pe.ce&&pe.ce._hasShadowRoot()&&pe.ce._injectChildStyle(be,c.parent?c.parent.type:void 0);const Ge=c.subTree=Gn(c);k(null,Ge,v,S,c,T,w),p.el=Ge.el}if(se&&Ce(se,T),!Ve&&(R=H&&H.onVnodeMounted)){const Ge=p;Ce(()=>We(R,Q,Ge),T)}(p.shapeFlag&256||Q&&Zt(Q.vnode)&&Q.vnode.shapeFlag&256)&&c.a&&Ce(c.a,T),c.isMounted=!0,p=v=S=null}};c.scope.on();const P=c.effect=new Si($);c.scope.off();const x=c.update=P.run.bind(P),L=c.job=P.runIfDirty.bind(P);L.i=c,L.id=c.uid,P.scheduler=()=>xn(L),wt(c,!0),x()},J=(c,p,v)=>{p.component=c;const S=c.vnode.props;c.vnode=p,c.next=null,Qr(c,p.props,S,v),na(c,p.children,v),et(),Mn(c),tt()},ie=(c,p,v,S,T,w,O,$,P=!1)=>{const x=c&&c.children,L=c?c.shapeFlag:0,R=p.children,{patchFlag:U,shapeFlag:H}=p;if(U>0){if(U&128){ls(x,R,v,S,T,w,O,$,P);return}else if(U&256){vt(x,R,v,S,T,w,O,$,P);return}}H&8?(L&16&&Mt(x,T,w),R!==x&&d(v,R)):L&16?H&16?ls(x,R,v,S,T,w,O,$,P):Mt(x,T,w,!0):(L&8&&d(v,""),H&16&&ue(R,v,S,T,w,O,$,P))},vt=(c,p,v,S,T,w,O,$,P)=>{c=c||Pt,p=p||Pt;const x=c.length,L=p.length,R=Math.min(x,L);let U;for(U=0;UL?Mt(c,T,w,!0,!1,R):ue(p,v,S,T,w,O,$,P,R)},ls=(c,p,v,S,T,w,O,$,P)=>{let x=0;const L=p.length;let R=c.length-1,U=L-1;for(;x<=R&&x<=U;){const H=c[x],q=p[x]=P?rt(p[x]):Je(p[x]);if(Bt(H,q))k(H,q,v,null,T,w,O,$,P);else break;x++}for(;x<=R&&x<=U;){const H=c[R],q=p[U]=P?rt(p[U]):Je(p[U]);if(Bt(H,q))k(H,q,v,null,T,w,O,$,P);else break;R--,U--}if(x>R){if(x<=U){const H=U+1,q=HU)for(;x<=R;)He(c[x],T,w,!0),x++;else{const H=x,q=x,se=new Map;for(x=q;x<=U;x++){const Oe=p[x]=P?rt(p[x]):Je(p[x]);Oe.key!=null&&se.set(Oe.key,x)}let Q,pe=0;const be=U-q+1;let Ve=!1,Ge=0;const Lt=new Array(be);for(x=0;x=be){He(Oe,T,w,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(Q=q;Q<=U;Q++)if(Lt[Q-q]===0&&Bt(Oe,p[Q])){Ke=Q;break}Ke===void 0?He(Oe,T,w,!0):(Lt[Ke-q]=x+1,Ke>=Ge?Ge=Ke:Ve=!0,k(Oe,p[Ke],v,null,T,w,O,$,P),pe++)}const On=Ve?aa(Lt):Pt;for(Q=On.length-1,x=be-1;x>=0;x--){const Oe=q+x,Ke=p[Oe],Dn=p[Oe+1],Rn=Oe+1{const{el:w,type:O,transition:$,children:P,shapeFlag:x}=c;if(x&6){yt(c.component.subTree,p,v,S);return}if(x&128){c.suspense.move(p,v,S);return}if(x&64){O.move(c,p,v,Nt);return}if(O===re){n(w,p,v);for(let R=0;R$.enter(w),T));else{const{leave:R,delayLeave:U,afterLeave:H}=$,q=()=>{c.ctx.isUnmounted?i(w):n(w,p,v)},se=()=>{const Q=w._isLeaving||!!w[Gs];w._isLeaving&&w[Gs](!0),$.persisted&&!Q?q():R(w,()=>{q(),H&&H()})};U?U(w,q,se):se()}else n(w,p,v)},He=(c,p,v,S=!1,T=!1)=>{const{type:w,props:O,ref:$,children:P,dynamicChildren:x,shapeFlag:L,patchFlag:R,dirs:U,cacheIndex:H,memo:q}=c;if(R===-2&&(T=!1),$!=null&&(et(),qt($,null,v,c,!0),tt()),H!=null&&(p.renderCache[H]=void 0),L&256){p.ctx.deactivate(c);return}const se=L&1&&U,Q=!Zt(c);let pe;if(Q&&(pe=O&&O.onVnodeBeforeUnmount)&&We(pe,p,c),L&6)Ao(c.component,v,S);else{if(L&128){c.suspense.unmount(v,S);return}se&&_t(c,null,p,"beforeUnmount"),L&64?c.type.remove(c,p,v,Nt,S):x&&!x.hasOnce&&(w!==re||R>0&&R&64)?Mt(x,p,v,!1,!0):(w===re&&R&384||!T&&L&16)&&Mt(P,p,v),S&&An(c)}const be=q!=null&&H==null;(Q&&(pe=O&&O.onVnodeUnmounted)||se||be)&&Ce(()=>{pe&&We(pe,p,c),se&&_t(c,null,p,"unmounted"),be&&(c.el=null)},v)},An=c=>{const{type:p,el:v,anchor:S,transition:T}=c;if(p===re){Co(v,S);return}if(p===qs){j(c);return}const w=()=>{i(v),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(c.shapeFlag&1&&T&&!T.persisted){const{leave:O,delayLeave:$}=T,P=()=>O(v,w);$?$(c.el,w,P):P()}else w()},Co=(c,p)=>{let v;for(;c!==p;)v=E(c),i(c),c=v;i(p)},Ao=(c,p,v)=>{const{bum:S,scope:T,job:w,subTree:O,um:$,m:P,a:x}=c;qn(P),qn(x),S&&hs(S),T.stop(),w&&(w.flags|=8,He(O,c,p,v)),$&&Ce($,p),Ce(()=>{c.isUnmounted=!0},p)},Mt=(c,p,v,S=!1,T=!1,w=0)=>{for(let O=w;O{if(c.shapeFlag&6)return cs(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const p=E(c.anchor||c.el),v=p&&p[kr];return v?E(v):p};let Ms=!1;const $n=(c,p,v)=>{let S;c==null?p._vnode&&(He(p._vnode,null,null,!0),S=p._vnode.component):k(p._vnode||null,c,p,null,null,null,v),p._vnode=c,Ms||(Ms=!0,Mn(S),Hi(),Ms=!1)},Nt={p:k,um:He,m:yt,r:An,mt:st,mc:ue,pc:ie,pbc:I,n:cs,o:e};return{render:$n,hydrate:void 0,createApp:Vr($n)}}function Ws({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function wt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ra(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function uo(e,t,s=!1){const n=e.children,i=t.children;if(F(n)&&F(i))for(let o=0;o>1,e[s[a]]0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:po(t)}function qn(e){if(e)for(let t=0;te.__isSuspense;function la(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):br(e)}const re=Symbol.for("v-fgt"),js=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),qs=Symbol.for("v-stc"),Yt=[];let De=null;function y(e=!1){Yt.push(De=e?null:[])}function ca(){Yt.pop(),De=Yt[Yt.length-1]||null}let ss=1;function Zn(e,t=!1){ss+=e,e<0&&De&&t&&(De.hasOnce=!0)}function go(e){return e.dynamicChildren=ss>0?De||Pt:null,ca(),ss>0&&De&&De.push(e),e}function _(e,t,s,n,i,o){return go(u(e,t,s,n,i,o,!0))}function it(e,t,s,n,i){return go(ee(e,t,s,n,i,!0))}function mo(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}const bo=({key:e})=>e??null,ms=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||we(e)||W(e)?{i:je,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,i=null,o=e===re?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&ms(t),scopeId:Gi,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return a?(ks(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=de(s)?8:16),ss>0&&!r&&De&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&De.push(l),l}const ee=ua;function ua(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===jr)&&(e=gt),mo(e)){const a=Rt(e,t,!0);return s&&ks(a,s),ss>0&&!o&&De&&(a.shapeFlag&6?De[De.indexOf(e)]=a:De.push(a)),a.patchFlag=-2,a}if(wa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:a,style:l}=t;a&&!de(a)&&(t.class=$e(a)),te(l)&&(wn(l)&&!F(l)&&(l=xe({},l)),t.style=fn(l))}const r=de(e)?1:ho(e)?128:Tr(e)?64:te(e)?4:W(e)?2:0;return u(e,t,s,n,i,r,o,!0)}function da(e){return e?wn(e)||io(e)?xe({},e):e:null}function Rt(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,g=t?pa(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&bo(g),ref:t&&t.ref?s&&o?F(o)?o.concat(ms(t)):[o,ms(t)]:ms(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==re?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&kn(d,l.clone(d)),d}function Re(e=" ",t=0){return ee(js,null,e,t)}function B(e="",t=!1){return t?(y(),it(gt,null,e)):ee(gt,null,e)}function Je(e){return e==null||typeof e=="boolean"?ee(gt):F(e)?ee(re,null,e.slice()):mo(e)?rt(e):ee(js,null,String(e))}function rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function ks(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(F(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ks(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!io(t)?t._ctx=je:i===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(W(t)){if(n&65){ks(e,{default:t});return}t={default:t,_ctx:je},s=32}else t=String(t),n&64?(s=16,t=[Re(t)]):s=8;e.children=t,e.shapeFlag|=s}function pa(...e){const t={};for(let s=0;sSe||je;let Ts,an;{const e=Os(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Ts=t("__VUE_INSTANCE_SETTERS__",s=>Se=s),an=t("__VUE_SSR_SETTERS__",s=>ns=s)}const rs=e=>{const t=Se;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},Jn=()=>{Se&&Se.scope.off(),Ts(null)};function vo(e){return e.vnode.shapeFlag&4}let ns=!1;function ba(e,t=!1,s=!1){t&&an(t);const{props:n,children:i}=e.vnode,o=vo(e);Xr(e,n,o,t),sa(e,i,s||t);const r=o?va(e,t):void 0;return t&&an(!1),r}function va(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ur);const{setup:n}=s;if(n){et();const i=e.setupContext=n.length>1?_a(e):null,o=rs(e),r=os(n,e,0,[e.props,i]),a=bi(r);if(tt(),o(),(a||e.sp)&&!Zt(e)&&qi(e),a){if(r.then(Jn,Jn),t)return r.then(l=>{Yn(e,l)}).catch(l=>{Rs(l,e,0)});e.asyncDep=r}else Yn(e,r)}else yo(e)}function Yn(e,t,s){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=Ni(t)),yo(e)}function yo(e,t,s){const n=e.type;e.render||(e.render=n.render||Xe);{const i=rs(e);et();try{Mr(e)}finally{tt(),i()}}}const ya={get(e,t){return _e(e,"get",""),e[t]}};function _a(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ya),slots:e.slots,emit:e.emit,expose:t}}function Us(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ni(ar(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Jt)return Jt[s](e)},has(t,s){return s in t||s in Jt}})):e.proxy}function wa(e){return W(e)&&"__vccOpts"in e}const ze=(e,t)=>pr(e,t,ns),xa="3.5.39";/** * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ln;const Xn=typeof window<"u"&&window.trustedTypes;if(Xn)try{ln=Xn.createPolicy("vue",{createHTML:e=>e})}catch{}const _o=ln?e=>ln.createHTML(e):e=>e,ka="http://www.w3.org/2000/svg",Ta="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,Qn=ot&&ot.createElement("template"),Sa={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?ot.createElementNS(ka,e):t==="mathml"?ot.createElementNS(Ta,e):s?ot.createElement(e,{is:s}):ot.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Qn.innerHTML=_o(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=Qn.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ea=Symbol("_vtc");function Pa(e,t,s){const n=e[Ea];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ei=Symbol("_vod"),Ca=Symbol("_vsh"),Aa=Symbol(""),$a=/(?:^|;)\s*display\s*:/;function Oa(e,t,s){const n=e.style,i=de(s);let o=!1;if(s&&!i){if(t)if(de(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Vt(n,a,"")}else for(const r in t)s[r]==null&&Vt(n,r,"");for(const r in s){r==="display"&&(o=!0);const a=s[r];a!=null?Ra(e,r,!de(t)&&t?t[r]:void 0,a)||Vt(n,r,a):Vt(n,r,"")}}else if(i){if(t!==s){const r=n[Aa];r&&(s+=";"+r),n.cssText=s,o=$a.test(s)}}else t&&e.removeAttribute("style");ei in e&&(e[ei]=o?n.display:"",e[Ca]&&(n.display="none"))}const ti=/\s*!important$/;function Vt(e,t,s){if(F(s))s.forEach(n=>Vt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Da(e,t);ti.test(s)?e.setProperty(bt(n),s.replace(ti,""),"important"):e[n]=s}}const si=["Webkit","Moz","ms"],Zs={};function Da(e,t){const s=Zs[t];if(s)return s;let n=Ne(t);if(n!=="filter"&&n in e)return Zs[t]=n;n=_i(n);for(let i=0;iJs||(Na.then(()=>Js=0),Js=Date.now());function Fa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(F(i)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const r=i.slice(),a=[n];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ba=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?Pa(e,n,r):t==="style"?Oa(e,s,n):Ps(t)?Cs(t)||Ia(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ha(e,t,n,r))?(oi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ii(e,t,n,r,o,t!=="value")):e._isVueCE&&(Va(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!de(n)))?oi(e,Ne(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ii(e,t,n,r))};function Ha(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ai(t)&&W(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ai(t)&&de(s)?!1:t in e}function Va(e,t){const s=e._def.props;if(!s)return!1;const n=Ne(t);return Array.isArray(s)?s.some(i=>Ne(i)===n):Object.keys(s).some(i=>Ne(i)===n)}const mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?s=>hs(t,s):t};function Ga(e){e.target.composing=!0}function li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Me=Symbol("_assign");function ci(e,t,s){return t&&(e=e.trim()),s&&(e=$s(e)),e}const ye={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Me]=mt(i);const o=n||i.props&&i.props.type==="number";ct(e,t?"change":"input",r=>{r.target.composing||e[Me](ci(e.value,s,o))}),(s||o)&&ct(e,"change",()=>{e.value=ci(e.value,s,o)}),t||(ct(e,"compositionstart",Ga),ct(e,"compositionend",li),ct(e,"change",li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[Me]=mt(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,l=t??"";if(a===l)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l)}},Ka={deep:!0,created(e,t,s){e[Me]=mt(s),ct(e,"change",()=>{const n=e._modelValue,i=zt(e),o=e.checked,r=e[Me];if(F(n)){const a=hn(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const g=[...n];g.splice(a,1),r(g)}}else if(Ut(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(wo(e,o))})},mounted:ui,beforeUpdate(e,t,s){e[Me]=mt(s),ui(e,t,s)}};function ui(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(F(t))i=hn(t,n.props.value)>-1;else if(Ut(t))i=t.has(n.props.value);else{if(t===s)return;i=ht(t,wo(e,!0))}e.checked!==i&&(e.checked=i)}const Wa={created(e,{value:t},s){e.checked=ht(t,s.props.value),e[Me]=mt(s),ct(e,"change",()=>{e[Me](zt(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Me]=mt(n),t!==s&&(e.checked=ht(t,n.props.value))}},Ss={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Ut(t);ct(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?$s(zt(r)):zt(r));e[Me](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Fi(()=>{e._assigning=!1})}),e[Me]=mt(n)},mounted(e,{value:t}){di(e,t)},beforeUpdate(e,t,s){e[Me]=mt(s)},updated(e,{value:t}){e._assigning||di(e,t)}};function di(e,t){const s=e.multiple,n=F(t);if(!(s&&!n&&!Ut(t))){for(let i=0,o=e.options.length;iString(g)===String(a)):r.selected=hn(t,a)>-1}else r.selected=t.has(a);else if(ht(zt(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zt(e){return"_value"in e?e._value:e.value}function wo(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const qa={created(e,t,s){fs(e,t,s,null,"created")},mounted(e,t,s){fs(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){fs(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){fs(e,t,s,n,"updated")}};function Za(e,t){switch(e){case"SELECT":return Ss;case"TEXTAREA":return ye;default:switch(t){case"checkbox":return Ka;case"radio":return Wa;default:return ye}}}function fs(e,t,s,n,i){const r=Za(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}const Ja=["ctrl","shift","alt","meta"],Ya={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)=>Ja.some(s=>e[`${s}Key`]&&!t.includes(s))},Xa=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...o)=>{for(let r=0;r{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const o=bt(i.key);if(t.some(r=>r===o||Qa[r]===o))return e(i)}))},el=xe({patchProp:Ba},Sa);let pi;function tl(){return pi||(pi=ia(el))}const sl=((...e)=>{const t=tl().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=il(n);if(!i)return;const o=t._component;!W(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,nl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function nl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function il(e){return de(e)?document.querySelector(e):e}const ko="dh-panel-theme";function ol(){var e;try{const t=localStorage.getItem(ko);if(t==="dark"||t==="light")return t}catch{}return(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}const Ot=V(ol());function To(e){Ot.value=e,document.documentElement.classList.toggle("dark",e==="dark");try{localStorage.setItem(ko,e)}catch{}}function fi(){To(Ot.value==="dark"?"light":"dark")}To(Ot.value);const rl={apiServer:"API server",switchToLight:"Switch to light theme",switchToDark:"Switch to dark theme",theme:"Theme",signOut:"Sign out",loading:"Loading…",standardUserNote:"Signed in as a standard user — management sections need an admin role",footer:"DriverVault — car maintenance & service tracker."},al={overview:"Overview",users:"Users",orgs:"Organizations",server:"API Server",pocketbase:"PocketBase",webapp:"Web App",plugins:"Plugins",api:"API"},ll={title:"Sign in",subtitle:"Superadmin console for the DriverVault API Server.",email:"Email",password:"Password",submit:"Sign in",submitting:"Signing in…",invalid:"Invalid email or password.",failed:"Could not sign in.",authNote:"Authenticates against PocketBase through this server"},cl={title:"Status",unreachable:"unreachable",checking:"Checking…",apiServer:"API Server",pocketBase:"PocketBase",webApp:"Web App",thisProcess:"this process"},ul={create:"Create",save:"Save",cancel:"Cancel",edit:"Edit",delete:"Delete",rename:"Rename",empty:"—",name:"Name",email:"Email",role:"Role",organization:"Organization"},dl={title:"Users",allOrgs:"All organizations",yourOrg:"Your organization",newUser:"New user",password:"Password",passwordUnchanged:"Password (blank = unchanged)",passwordPlaceholder:"min 8 characters",orgNone:"— none —",you:"you",empty:"No users.",confirmDelete:"Delete {email}? This cannot be undone."},pl={title:"Organizations",subtitle:"Tenants users belong to",subtitleOwn:"Your organization",subtitleNone:"Create one to manage your own team",newOrg:"New organization",namePlaceholder:"Acme Fleet",empty:"No organizations yet.",createHint:"You have no organization yet. Create one to become its admin.",colId:"ID",confirmDelete:'Delete the organization "{name}"?',confirmDeleteOwn:'Delete your organization "{name}"? You will be removed from it and become a regular user.'},fl={title:"API Server",subtitle:"How this server identifies itself to the clients that connect to it",name:"Server name",nameHint:"Shown by clients that can be pointed at more than one DriverVault, such as the Web App's server switcher. Reported by /api/health.",saveApply:"Save & apply",persistedEnv:"persisted to .env",savedNotice:"Saved. The new name applies to the next request."},hl={title:"PocketBase",subtitle:"Database connection used by every endpoint",connected:"connected",noSuperuser:"no superuser",unreachable:"unreachable",baseUrl:"Base URL",superuserEmail:"Superuser email",superuserPassword:"Superuser password",passwordUnchanged:"unchanged",passwordNotSet:"not set",saveApply:"Save & apply",testConnection:"Test connection",persistedEnv:"persisted to .env",testOk:"Connection OK — superuser authenticated.",testReachableNoAuth:"PocketBase is reachable, but the service account did not authenticate.",testUnreachable:"PocketBase is not reachable at that address.",savedNotice:"Saved. The server is now using this PocketBase."},gl={title:"Web App",subtitle:"Address probed by the status check, and who may call this API from a browser",reachable:"reachable",unreachable:"unreachable",baseUrl:"Base URL",allowedOrigins:"Allowed origins",originsHint:"Comma separated, or {star} for any. Native mobile apps are not subject to CORS.",saveApply:"Save & apply",testConnection:"Test connection",persistedEnv:"persisted to .env",testOk:"Web App is reachable.",testFailed:"Web App did not answer its health check at that address.",savedNotice:"Saved. New origins apply to the next request."},ml={title:"Plugins",subtitle:"Third-party service integrations",categories:{vehicles:"Car manufacturers",chargers:"EV chargers",notifications:"Notifications","apis-external":"Other APIs","drives-external":"Remote drives","drives-local":"Local drives"},registerExternal:"Register external",cancelRegister:"Cancel",name:"Name",baseUrl:"Base URL",provider:"Provider",register:"Register",empty:"No plugins yet. Register an external one above, or compile a built-in connector.",builtin:"builtin",enabled:"enabled",disabled:"disabled",health:"Health",configure:"Configure",close:"Close",noConfig:"This plugin takes no configuration.",notSet:"Not set — let organizations and users choose",capabilities:"Capabilities",saved:"Saved.",checking:"Checking…",save:"Save",saveEnable:"Save & enable",disable:"Disable",remove:"Remove",builtinNote:"Built-in plugins can be disabled but not removed",confirmRemove:'Remove the external plugin "{name}"? Its saved config is deleted.'},bl={colEndpoint:"Endpoint",colDescription:"Description",authNone:"No auth",authBearer:"Bearer token",authManager:"Admin / superadmin",authSuperadmin:"Superadmin",authCharger:"Charger credentials",groupPublic:"Public",groupIdentity:"Identity",groupCars:"Cars",groupService:"Service records",groupTechnical:"Technical checks",groupParts:"Parts",groupFuel:"Fuel",groupCharging:"Charging",groupMaintenance:"Maintenance",groupDocuments:"Documents",groupReminders:"Reminders",groupAttachments:"Attachments",groupProviders:"Vehicle providers",groupIntegrations:"Integrations",groupOcpp:"OCPP",groupAccount:"Account",groupManagement:"Management",groupSuperadmin:"Superadmin"},vl={app:rl,sections:al,login:ll,status:cl,common:ul,users:dl,orgs:pl,server:fl,pocketbase:hl,webapp:gl,plugins:ml,api:bl},yl={apiServer:"Serwer API",switchToLight:"Przełącz na motyw jasny",switchToDark:"Przełącz na motyw ciemny",theme:"Motyw",signOut:"Wyloguj się",loading:"Ładowanie…",standardUserNote:"Zalogowano jako zwykły użytkownik — sekcje zarządzania wymagają roli administratora",footer:"DriverVault — rejestr serwisu i konserwacji samochodu."},_l={overview:"Przegląd",users:"Użytkownicy",orgs:"Organizacje",server:"Serwer API",pocketbase:"PocketBase",webapp:"Aplikacja webowa",plugins:"Wtyczki",api:"API"},wl={title:"Zaloguj się",subtitle:"Konsola superadministratora serwera API DriverVault.",email:"E-mail",password:"Hasło",submit:"Zaloguj się",submitting:"Logowanie…",invalid:"Nieprawidłowy e-mail lub hasło.",failed:"Nie udało się zalogować.",authNote:"Uwierzytelnia w PocketBase za pośrednictwem tego serwera"},xl={title:"Status",unreachable:"niedostępny",checking:"Sprawdzanie…",apiServer:"Serwer API",pocketBase:"PocketBase",webApp:"Aplikacja webowa",thisProcess:"ten proces"},kl={create:"Utwórz",save:"Zapisz",cancel:"Anuluj",edit:"Edytuj",delete:"Usuń",rename:"Zmień nazwę",empty:"—",name:"Nazwa",email:"E-mail",role:"Rola",organization:"Organizacja"},Tl={title:"Użytkownicy",allOrgs:"Wszystkie organizacje",yourOrg:"Twoja organizacja",newUser:"Nowy użytkownik",password:"Hasło",passwordUnchanged:"Hasło (puste = bez zmian)",passwordPlaceholder:"min. 8 znaków",orgNone:"— brak —",you:"Ty",empty:"Brak użytkowników.",confirmDelete:"Usunąć {email}? Tej operacji nie można cofnąć."},Sl={title:"Organizacje",subtitle:"Podmioty, do których należą użytkownicy",subtitleOwn:"Twoja organizacja",subtitleNone:"Utwórz ją, aby zarządzać własnym zespołem",newOrg:"Nowa organizacja",namePlaceholder:"Acme Fleet",empty:"Brak organizacji.",createHint:"Nie masz jeszcze organizacji. Utwórz ją, aby zostać jej administratorem.",colId:"ID",confirmDelete:"Usunąć organizację „{name}”?",confirmDeleteOwn:"Usunąć Twoją organizację „{name}”? Zostaniesz z niej usunięty i staniesz się zwykłym użytkownikiem."},El={title:"Serwer API",subtitle:"Jak ten serwer przedstawia się klientom, które się z nim łączą",name:"Nazwa serwera",nameHint:"Widoczna w klientach, które można skierować na więcej niż jeden DriverVault, na przykład w przełączniku serwerów aplikacji webowej. Zwracana przez /api/health.",saveApply:"Zapisz i zastosuj",persistedEnv:"zapisano w .env",savedNotice:"Zapisano. Nowa nazwa obowiązuje od następnego żądania."},Pl={title:"PocketBase",subtitle:"Połączenie z bazą danych używane przez każdy punkt końcowy",connected:"połączono",noSuperuser:"brak superużytkownika",unreachable:"niedostępny",baseUrl:"Adres bazowy",superuserEmail:"E-mail superużytkownika",superuserPassword:"Hasło superużytkownika",passwordUnchanged:"bez zmian",passwordNotSet:"nie ustawiono",saveApply:"Zapisz i zastosuj",testConnection:"Testuj połączenie",persistedEnv:"zapisano w .env",testOk:"Połączenie OK — superużytkownik uwierzytelniony.",testReachableNoAuth:"PocketBase jest dostępny, ale konto usługowe nie zostało uwierzytelnione.",testUnreachable:"PocketBase jest niedostępny pod tym adresem.",savedNotice:"Zapisano. Serwer korzysta teraz z tego PocketBase."},Cl={title:"Aplikacja webowa",subtitle:"Adres sprawdzany podczas kontroli statusu oraz kto może wywoływać to API z przeglądarki",reachable:"dostępna",unreachable:"niedostępna",baseUrl:"Adres bazowy",allowedOrigins:"Dozwolone źródła",originsHint:"Oddzielone przecinkami lub {star} dla dowolnego. Natywne aplikacje mobilne nie podlegają CORS.",saveApply:"Zapisz i zastosuj",testConnection:"Testuj połączenie",persistedEnv:"zapisano w .env",testOk:"Aplikacja webowa jest dostępna.",testFailed:"Aplikacja webowa nie odpowiedziała na kontrolę stanu pod tym adresem.",savedNotice:"Zapisano. Nowe źródła obowiązują od następnego żądania."},Al={title:"Wtyczki",subtitle:"Integracje z usługami zewnętrznymi",categories:{vehicles:"Producenci samochodów",chargers:"Ładowarki EV",notifications:"Powiadomienia","apis-external":"Pozostałe API","drives-external":"Dyski zdalne","drives-local":"Dyski lokalne"},registerExternal:"Zarejestruj zewnętrzną",cancelRegister:"Anuluj",name:"Nazwa",baseUrl:"Adres bazowy",provider:"Dostawca",register:"Zarejestruj",empty:"Brak wtyczek. Zarejestruj zewnętrzną powyżej lub skompiluj wbudowany łącznik.",builtin:"wbudowana",enabled:"włączona",disabled:"wyłączona",health:"Stan",configure:"Konfiguruj",close:"Zamknij",noConfig:"Ta wtyczka nie wymaga konfiguracji.",notSet:"Nie ustawiono — pozwól organizacjom i użytkownikom wybrać",capabilities:"Możliwości",saved:"Zapisano.",checking:"Sprawdzanie…",save:"Zapisz",saveEnable:"Zapisz i włącz",disable:"Wyłącz",remove:"Usuń",builtinNote:"Wtyczki wbudowane można wyłączyć, ale nie usunąć",confirmRemove:"Usunąć zewnętrzną wtyczkę „{name}”? Jej zapisana konfiguracja zostanie usunięta."},$l={colEndpoint:"Punkt końcowy",colDescription:"Opis",authNone:"Bez uwierzytelniania",authBearer:"Token Bearer",authManager:"Administrator / superadministrator",authSuperadmin:"Superadministrator",authCharger:"Dane logowania ładowarki",groupPublic:"Publiczne",groupIdentity:"Tożsamość",groupCars:"Samochody",groupService:"Wpisy serwisowe",groupTechnical:"Przeglądy techniczne",groupParts:"Części",groupFuel:"Paliwo",groupCharging:"Ładowanie",groupMaintenance:"Naprawy",groupDocuments:"Dokumenty",groupReminders:"Przypomnienia",groupAttachments:"Załączniki",groupProviders:"Dostawcy pojazdów",groupIntegrations:"Integracje",groupOcpp:"OCPP",groupAccount:"Konto",groupManagement:"Zarządzanie",groupSuperadmin:"Superadministrator"},Ol={app:yl,sections:_l,login:wl,status:xl,common:kl,users:Tl,orgs:Sl,server:El,pocketbase:Pl,webapp:Cl,plugins:Al,api:$l},Dl={apiServer:"API-server",switchToLight:"Skift til lyst tema",switchToDark:"Skift til mørkt tema",theme:"Tema",signOut:"Log ud",loading:"Indlæser…",standardUserNote:"Logget ind som almindelig bruger — administrationssektioner kræver en administratorrolle",footer:"DriverVault — bilservice- og vedligeholdelsesregister."},Rl={overview:"Oversigt",users:"Brugere",orgs:"Organisationer",server:"API-server",pocketbase:"PocketBase",webapp:"Webapp",plugins:"Plugins",api:"API"},zl={title:"Log ind",subtitle:"Superadmin-konsol til DriverVault API-serveren.",email:"E-mail",password:"Adgangskode",submit:"Log ind",submitting:"Logger ind…",invalid:"Ugyldig e-mail eller adgangskode.",failed:"Kunne ikke logge ind.",authNote:"Godkender mod PocketBase gennem denne server"},Il={title:"Status",unreachable:"utilgængelig",checking:"Tjekker…",apiServer:"API-server",pocketBase:"PocketBase",webApp:"Webapp",thisProcess:"denne proces"},jl={create:"Opret",save:"Gem",cancel:"Annuller",edit:"Rediger",delete:"Slet",rename:"Omdøb",empty:"—",name:"Navn",email:"E-mail",role:"Rolle",organization:"Organisation"},Ul={title:"Brugere",allOrgs:"Alle organisationer",yourOrg:"Din organisation",newUser:"Ny bruger",password:"Adgangskode",passwordUnchanged:"Adgangskode (tom = uændret)",passwordPlaceholder:"mindst 8 tegn",orgNone:"— ingen —",you:"dig",empty:"Ingen brugere.",confirmDelete:"Slet {email}? Dette kan ikke fortrydes."},Ml={title:"Organisationer",subtitle:"Enheder, som brugere tilhører",subtitleOwn:"Din organisation",subtitleNone:"Opret en for at administrere dit eget team",newOrg:"Ny organisation",namePlaceholder:"Acme Fleet",empty:"Ingen organisationer endnu.",createHint:"Du har endnu ingen organisation. Opret en for at blive dens administrator.",colId:"ID",confirmDelete:'Slet organisationen "{name}"?',confirmDeleteOwn:"Slet din organisation „{name}“? Du fjernes fra den og bliver en almindelig bruger."},Nl={title:"API-server",subtitle:"Hvordan denne server identificerer sig over for de klienter, der forbinder til den",name:"Servernavn",nameHint:"Vises af klienter, der kan pege på mere end én DriverVault, for eksempel webappens serverskifter. Returneres af /api/health.",saveApply:"Gem og anvend",persistedEnv:"gemt i .env",savedNotice:"Gemt. Det nye navn gælder fra næste anmodning."},Ll={title:"PocketBase",subtitle:"Databaseforbindelse brugt af hvert endpoint",connected:"forbundet",noSuperuser:"ingen superbruger",unreachable:"utilgængelig",baseUrl:"Basis-URL",superuserEmail:"Superbrugerens e-mail",superuserPassword:"Superbrugerens adgangskode",passwordUnchanged:"uændret",passwordNotSet:"ikke angivet",saveApply:"Gem og anvend",testConnection:"Test forbindelse",persistedEnv:"gemt i .env",testOk:"Forbindelse OK — superbruger godkendt.",testReachableNoAuth:"PocketBase er tilgængelig, men servicekontoen blev ikke godkendt.",testUnreachable:"PocketBase er ikke tilgængelig på den adresse.",savedNotice:"Gemt. Serveren bruger nu denne PocketBase."},Fl={title:"Webapp",subtitle:"Adressen, der tjekkes ved statuskontrol, og hvem der må kalde dette API fra en browser",reachable:"tilgængelig",unreachable:"utilgængelig",baseUrl:"Basis-URL",allowedOrigins:"Tilladte oprindelser",originsHint:"Kommasepareret, eller {star} for enhver. Native mobilapps er ikke underlagt CORS.",saveApply:"Gem og anvend",testConnection:"Test forbindelse",persistedEnv:"gemt i .env",testOk:"Webappen er tilgængelig.",testFailed:"Webappen svarede ikke på sit helbredstjek på den adresse.",savedNotice:"Gemt. Nye oprindelser gælder fra næste anmodning."},Bl={title:"Plugins",subtitle:"Integrationer med tredjepartstjenester",categories:{vehicles:"Bilproducenter",chargers:"EV-ladere",notifications:"Notifikationer","apis-external":"Øvrige API'er","drives-external":"Eksterne drev","drives-local":"Lokale drev"},registerExternal:"Registrér ekstern",cancelRegister:"Annuller",name:"Navn",baseUrl:"Basis-URL",provider:"Udbyder",register:"Registrér",empty:"Ingen plugins endnu. Registrér et eksternt ovenfor, eller kompilér et indbygget stik.",builtin:"indbygget",enabled:"aktiveret",disabled:"deaktiveret",health:"Helbred",configure:"Konfigurer",close:"Luk",noConfig:"Dette plugin kræver ingen konfiguration.",notSet:"Ikke angivet — lad organisationer og brugere vælge",capabilities:"Funktioner",saved:"Gemt.",checking:"Tjekker…",save:"Gem",saveEnable:"Gem og aktivér",disable:"Deaktiver",remove:"Fjern",builtinNote:"Indbyggede plugins kan deaktiveres, men ikke fjernes",confirmRemove:'Fjern det eksterne plugin "{name}"? Dets gemte konfiguration slettes.'},Hl={colEndpoint:"Endpoint",colDescription:"Beskrivelse",authNone:"Ingen godkendelse",authBearer:"Bearer-token",authManager:"Admin / superadmin",authSuperadmin:"Superadmin",authCharger:"Laderens loginoplysninger",groupPublic:"Offentlig",groupIdentity:"Identitet",groupCars:"Biler",groupService:"Serviceposter",groupTechnical:"Syn",groupParts:"Reservedele",groupFuel:"Brændstof",groupCharging:"Opladning",groupMaintenance:"Værksted",groupDocuments:"Dokumenter",groupReminders:"Påmindelser",groupAttachments:"Vedhæftede filer",groupProviders:"Køretøjsudbydere",groupIntegrations:"Integrationer",groupOcpp:"OCPP",groupAccount:"Konto",groupManagement:"Administration",groupSuperadmin:"Superadmin"},Vl={app:Dl,sections:Rl,login:zl,status:Il,common:jl,users:Ul,orgs:Ml,server:Nl,pocketbase:Ll,webapp:Fl,plugins:Bl,api:Hl},So="dh-panel-lang",Eo="en",It={en:vl,pl:Ol,da:Vl},Gl=Object.keys(It);function Kl(){try{const t=localStorage.getItem(So);if(t&&It[t])return t}catch{}const e=(navigator.language||"en").split("-")[0];return It[e]?e:Eo}const Pn=V(Kl());function Wl(e){if(It[e]){Pn.value=e;try{localStorage.setItem(So,e)}catch{}}}function hi(e,t){return t.split(".").reduce((s,n)=>s==null?void 0:s[n],e)}function ql(e,t){return t?e.replace(/\{(\w+)\}/g,(s,n)=>t[n]==null?s:String(t[n])):e}function Zl(e,t,s){let n="other";try{n=new Intl.PluralRules(s).select(t)}catch{n=t===1?"one":"other"}return e[n]??e.other??e.one}function f(e,t){const s=Pn.value;let n=hi(It[s],e);if(n==null&&(n=hi(It[Eo],e)),n==null)return e;if(typeof n=="object"){if((t==null?void 0:t.n)==null)return e;n=Zl(n,t.n,s)}return typeof n!="string"?e:ql(n,t)}function gi(e,t,s){const i=f(e,{...s,[t]:"\0"}),o=i.indexOf("\0");return o===-1?{before:i,after:""}:{before:i.slice(0,o),after:i.slice(o+1)}}const cn="dh-panel-token";function Jl(){try{return localStorage.getItem(cn)||""}catch{return""}}const jt=V(Jl()),me=V(null),Ie=ze(()=>{var e;return((e=me.value)==null?void 0:e.role)==="superadmin"}),bs=ze(()=>{var e,t;return((e=me.value)==null?void 0:e.role)==="admin"||((t=me.value)==null?void 0:t.role)==="superadmin"});function Po(e){jt.value=e;try{e?localStorage.setItem(cn,e):localStorage.removeItem(cn)}catch{}}class Yl extends Error{constructor(t,s,n){super(t),this.status=s,this.body=n}}function Xl(e,t){if(!e||typeof e!="object")return`HTTP ${t}`;if(e.error)return e.error;const s=Object.entries(e.data||{}).map(([n,i])=>`${n}: ${(i==null?void 0:i.message)||i}`).filter(Boolean);return s.length?s.join("; "):e.message||`HTTP ${t}`}async function ae(e,{method:t="GET",body:s,auth:n=!0}={}){const i={};s!==void 0&&(i["Content-Type"]="application/json"),n&&jt.value&&(i.Authorization=jt.value);const o=await fetch(e,{method:t,headers:i,body:s===void 0?void 0:JSON.stringify(s)}),r=await o.text();let a=null;try{a=r?JSON.parse(r):null}catch{a=null}if(!o.ok)throw o.status===401&&n&&Cn(),new Yl(Xl(a,o.status),o.status,a);return a}async function Ql(e,t){const s=await ae("/api/auth/login",{method:"POST",body:{email:e,password:t},auth:!1});return Po(s.token),await Es(),me.value}async function Es(){return me.value=await ae("/api/identity"),me.value}function Cn(){Po(""),me.value=null}async function ec(){if(!jt.value)return null;try{return await Es()}catch{return Cn(),null}}const tc={class:"inline-flex items-center gap-2.5 select-none"},sc={class:"h-full w-auto shrink-0",viewBox:"0 0 48 48",fill:"none","aria-hidden":"true"},nc={transform:"translate(7 0) skewX(-13)"},ic=["fill"],oc=["fill"],rc=["fill"],ac={key:0,class:"text-[1.35em] font-extrabold italic leading-none tracking-[-0.03em]"},lc={__name:"Logo",props:{iconOnly:{type:Boolean,default:!1},onDark:{type:Boolean,default:!1}},setup(e){return(t,s)=>(y(),_("span",tc,[(y(),_("svg",sc,[u("g",nc,[u("rect",{x:"9",y:"16",width:"6",height:"16",rx:"3",fill:e.onDark?"#60A5FA":"var(--brand-700)"},null,8,ic),u("rect",{x:"19",y:"12",width:"6",height:"24",rx:"3",fill:e.onDark?"#93C5FD":"var(--brand-500)"},null,8,oc),u("rect",{x:"29",y:"8",width:"6",height:"32",rx:"3",fill:e.onDark?"#ffffff":"var(--brand-400)"},null,8,rc)])])),e.iconOnly?B("",!0):(y(),_("span",ac,[u("span",{class:$e(e.onDark?"text-white":"text-strong")},"Driver",2),u("span",{class:$e(e.onDark?"text-brand-400":"text-brandtext")},"Vault",2)])),s[0]||(s[0]=u("span",{class:"sr-only"},"DriverVault",-1))]))}},cc={class:"mx-auto flex w-full max-w-sm flex-col gap-5 pt-24"},uc={class:"dh-card p-6"},dc={class:"text-lg font-bold tracking-[-0.02em] text-strong"},pc={class:"mt-1 mb-5 text-sm text-body"},fc={class:"dh-label",for:"login-email"},hc={class:"dh-label",for:"login-password"},gc={key:0,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},mc=["disabled"],bc={class:"eyebrow text-center"},vc={__name:"LoginView",emits:["authenticated"],setup(e,{emit:t}){const s=t,n=V(""),i=V(""),o=V(""),r=V(!1),a=ze(()=>n.value.trim()!==""&&i.value!==""&&!r.value);async function l(){if(a.value){o.value="",r.value=!0;try{const g=await Ql(n.value.trim(),i.value);s("authenticated",g)}catch(g){o.value=g.status===400||g.status===404?f("login.invalid"):g.message||f("login.failed"),i.value=""}finally{r.value=!1}}}return(g,d)=>(y(),_("div",cc,[u("div",uc,[u("h1",dc,m(h(f)("login.title")),1),u("p",pc,m(h(f)("login.subtitle")),1),u("form",{class:"flex flex-col gap-4",onSubmit:Xa(l,["prevent"])},[u("div",null,[u("label",fc,m(h(f)("login.email")),1),fe(u("input",{id:"login-email","onUpdate:modelValue":d[0]||(d[0]=b=>n.value=b),class:"dh-input",type:"email",autocomplete:"username",autofocus:"",placeholder:"you@example.com"},null,512),[[ye,n.value]])]),u("div",null,[u("label",hc,m(h(f)("login.password")),1),fe(u("input",{id:"login-password","onUpdate:modelValue":d[1]||(d[1]=b=>i.value=b),class:"dh-input",type:"password",autocomplete:"current-password",placeholder:"••••••••"},null,512),[[ye,i.value]])]),o.value?(y(),_("p",gc,m(o.value),1)):B("",!0),u("button",{class:"dh-btn w-full",type:"submit",disabled:!a.value},m(r.value?h(f)("login.submitting"):h(f)("login.submit")),9,mc)],32)]),u("p",bc,m(h(f)("login.authNote")),1)]))}},yc={class:"dh-card overflow-hidden"},_c={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},wc={class:"text-base font-bold tracking-[-0.02em] text-strong"},xc={key:0,class:"dh-pill bg-danger-soft text-danger"},kc={key:0,class:"px-5 py-4 text-sm text-danger"},Tc={key:1,class:"w-full text-left text-sm"},Sc={class:"px-5 py-3 font-medium text-strong"},Ec={class:"data px-5 py-3 text-xs text-muted"},Pc={class:"data px-5 py-3 text-right text-xs text-muted"},Cc={class:"px-5 py-3 text-right"},Ac={key:2,class:"px-5 py-4 text-sm text-muted"},$c={__name:"StatusCard",setup(e){const t=V(null),s=V("");let n=null;async function i(){try{t.value=await ae("/api/status",{auth:!1}),s.value=""}catch(a){t.value=null,s.value=a.message||f("status.unreachable")}}const o=ze(()=>{var a,l,g;return[{key:"apiServer",label:f("status.apiServer"),h:(a=t.value)==null?void 0:a.apiServer},{key:"pocketBase",label:f("status.pocketBase"),h:(l=t.value)==null?void 0:l.pocketBase},{key:"webApp",label:f("status.webApp"),h:(g=t.value)==null?void 0:g.webApp}]});pt(()=>{i(),n=setInterval(i,1e4)}),Tn(()=>clearInterval(n));const r=a=>a==="ok"?"bg-success-soft text-success":"bg-danger-soft text-danger";return(a,l)=>(y(),_("div",yc,[u("div",_c,[u("div",wc,m(h(f)("status.title")),1),s.value?(y(),_("span",xc,[l[0]||(l[0]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(m(h(f)("status.unreachable")),1)])):B("",!0)]),s.value?(y(),_("div",kc,m(s.value),1)):t.value?(y(),_("table",Tc,[u("tbody",null,[(y(!0),_(re,null,Ae(o.value,g=>(y(),_("tr",{key:g.key,class:"border-t border-subtle first:border-t-0"},[u("td",Sc,m(g.label),1),u("td",Ec,m(g.h.url||h(f)("status.thisProcess")),1),u("td",Pc,m(g.h.latencyMs!=null?g.h.latencyMs+"ms":h(f)("common.empty")),1),u("td",Cc,[u("span",{class:$e(["dh-pill",r(g.h.status)])},[l[1]||(l[1]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(m(g.h.status),1)],2)])]))),128))])])):(y(),_("div",Ac,m(h(f)("status.checking")),1))]))}},Oc={class:"dh-card overflow-hidden"},Dc={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Rc={class:"text-base font-bold tracking-[-0.02em] text-strong"},zc={class:"mt-0.5 text-xs text-muted"},Ic={class:"flex flex-col gap-4 px-5 py-4"},jc={class:"dh-label",for:"pb-url"},Uc={class:"grid gap-4 sm:grid-cols-2"},Mc={class:"dh-label",for:"pb-email"},Nc={class:"dh-label",for:"pb-password"},Lc=["placeholder"],Fc={key:0,class:"data text-xs text-muted"},Bc={key:1,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},Hc={key:2,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},Vc={class:"flex items-center gap-2"},Gc=["disabled"],Kc=["disabled"],Wc={class:"eyebrow"},qc={__name:"PocketBaseCard",setup(e){const t=V(null),s=V({url:"",adminEmail:"",adminPassword:""}),n=V(null),i=V(""),o=V(""),r=V(!1);async function a(){try{t.value=await ae("/api/admin/pb-config"),s.value={url:t.value.url,adminEmail:t.value.adminEmail,adminPassword:""},n.value=t.value.probe}catch(d){i.value=d.message}}pt(a);async function l(){i.value="",o.value="",r.value=!0;try{n.value=await ae("/api/admin/pb-config/test",{method:"POST",body:s.value}),o.value=n.value.superuser?f("pocketbase.testOk"):n.value.reachable?f("pocketbase.testReachableNoAuth"):f("pocketbase.testUnreachable")}catch(d){i.value=d.message}finally{r.value=!1}}async function g(){i.value="",o.value="",r.value=!0;try{const d=await ae("/api/admin/pb-config",{method:"PUT",body:s.value});t.value=d.config,n.value=d.config.probe,s.value.adminPassword="",o.value=d.warning||f("pocketbase.savedNotice")}catch(d){i.value=d.message}finally{r.value=!1}}return(d,b)=>{var E,C;return y(),_("div",Oc,[u("div",Dc,[u("div",null,[u("div",Rc,m(h(f)("pocketbase.title")),1),u("p",zc,m(h(f)("pocketbase.subtitle")),1)]),n.value?(y(),_("span",{key:0,class:$e(["dh-pill",n.value.superuser?"bg-success-soft text-success":n.value.reachable?"bg-warning-soft text-warning":"bg-danger-soft text-danger"])},[b[3]||(b[3]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(" "+m(n.value.superuser?h(f)("pocketbase.connected"):n.value.reachable?h(f)("pocketbase.noSuperuser"):h(f)("pocketbase.unreachable")),1)],2)):B("",!0)]),u("div",Ic,[u("div",null,[u("label",jc,m(h(f)("pocketbase.baseUrl")),1),fe(u("input",{id:"pb-url","onUpdate:modelValue":b[0]||(b[0]=G=>s.value.url=G),class:"dh-input",placeholder:"http://10.2.1.10:8027"},null,512),[[ye,s.value.url]])]),u("div",Uc,[u("div",null,[u("label",Mc,m(h(f)("pocketbase.superuserEmail")),1),fe(u("input",{id:"pb-email","onUpdate:modelValue":b[1]||(b[1]=G=>s.value.adminEmail=G),class:"dh-input",autocomplete:"off"},null,512),[[ye,s.value.adminEmail]])]),u("div",null,[u("label",Nc,m(h(f)("pocketbase.superuserPassword")),1),fe(u("input",{id:"pb-password","onUpdate:modelValue":b[2]||(b[2]=G=>s.value.adminPassword=G),class:"dh-input",type:"password",autocomplete:"new-password",placeholder:(E=t.value)!=null&&E.adminConfigured?h(f)("pocketbase.passwordUnchanged"):h(f)("pocketbase.passwordNotSet")},null,8,Lc),[[ye,s.value.adminPassword]])])]),(C=n.value)!=null&&C.detail?(y(),_("p",Fc,m(n.value.detail),1)):B("",!0),o.value?(y(),_("p",Bc,m(o.value),1)):B("",!0),i.value?(y(),_("p",Hc,m(i.value),1)):B("",!0),u("div",Vc,[u("button",{class:"dh-btn",disabled:r.value,onClick:g},m(h(f)("pocketbase.saveApply")),9,Gc),u("button",{class:"dh-btn-ghost",disabled:r.value,onClick:l},m(h(f)("pocketbase.testConnection")),9,Kc),b[4]||(b[4]=u("span",{class:"flex-1"},null,-1)),u("span",Wc,m(h(f)("pocketbase.persistedEnv")),1)])])])}}},Zc={class:"dh-card overflow-hidden"},Jc={class:"border-b border-subtle px-5 py-4"},Yc={class:"text-base font-bold tracking-[-0.02em] text-strong"},Xc={class:"mt-0.5 text-xs text-muted"},Qc={class:"flex flex-col gap-4 px-5 py-4"},eu={class:"dh-label",for:"server-name"},tu={class:"mt-1 text-xs text-muted"},su={key:0,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},nu={key:1,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},iu={class:"flex items-center gap-2"},ou=["disabled"],ru={class:"eyebrow"},au={__name:"ServerCard",setup(e){const t=V({name:""}),s=V(""),n=V(""),i=V(!1);async function o(){try{const a=await ae("/api/admin/server-config");t.value={name:a.name}}catch(a){s.value=a.message}}pt(o);async function r(){s.value="",n.value="",i.value=!0;try{const a=await ae("/api/admin/server-config",{method:"PUT",body:{name:t.value.name}});t.value={name:a.config.name},n.value=a.warning||f("server.savedNotice")}catch(a){s.value=a.message}finally{i.value=!1}}return(a,l)=>(y(),_("div",Zc,[u("div",Jc,[u("div",Yc,m(h(f)("server.title")),1),u("p",Xc,m(h(f)("server.subtitle")),1)]),u("div",Qc,[u("div",null,[u("label",eu,m(h(f)("server.name")),1),fe(u("input",{id:"server-name","onUpdate:modelValue":l[0]||(l[0]=g=>t.value.name=g),class:"dh-input",maxlength:"64",placeholder:"DriverVault API Server",onKeyup:xo(r,["enter"])},null,544),[[ye,t.value.name]]),u("p",tu,m(h(f)("server.nameHint")),1)]),n.value?(y(),_("p",su,m(n.value),1)):B("",!0),s.value?(y(),_("p",nu,m(s.value),1)):B("",!0),u("div",iu,[u("button",{class:"dh-btn",disabled:i.value,onClick:r},m(h(f)("server.saveApply")),9,ou),l[1]||(l[1]=u("span",{class:"flex-1"},null,-1)),u("span",ru,m(h(f)("server.persistedEnv")),1)])])]))}},lu={class:"dh-card overflow-hidden"},cu={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},uu={class:"text-base font-bold tracking-[-0.02em] text-strong"},du={class:"mt-0.5 text-xs text-muted"},pu={class:"flex flex-col gap-4 px-5 py-4"},fu={class:"dh-label",for:"web-url"},hu={class:"dh-label",for:"web-origins"},gu={class:"mt-1 text-xs text-muted"},mu={key:0,class:"data text-xs text-muted"},bu={key:1,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},vu={key:2,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},yu={class:"flex items-center gap-2"},_u=["disabled"],wu=["disabled"],xu={class:"eyebrow"},ku={__name:"WebAppCard",setup(e){const t=V(null),s=V({url:"",origins:""}),n=V(null),i=V(""),o=V(""),r=V(!1),a=E=>E.split(",").map(C=>C.trim()).filter(Boolean);function l(E){t.value=E,s.value={url:E.url,origins:(E.allowOrigins||[]).join(", ")},n.value=E.probe}async function g(){try{l(await ae("/api/admin/webapp-config"))}catch(E){i.value=E.message}}pt(g);async function d(){i.value="",o.value="",r.value=!0;try{n.value=await ae("/api/admin/webapp-config/test",{method:"POST",body:{url:s.value.url}}),o.value=n.value.status==="ok"?f("webapp.testOk"):f("webapp.testFailed")}catch(E){i.value=E.message}finally{r.value=!1}}async function b(){i.value="",o.value="",r.value=!0;try{const E=await ae("/api/admin/webapp-config",{method:"PUT",body:{url:s.value.url,allowOrigins:a(s.value.origins)}});l(E.config),o.value=E.warning||f("webapp.savedNotice")}catch(E){i.value=E.message}finally{r.value=!1}}return(E,C)=>{var G;return y(),_("div",lu,[u("div",cu,[u("div",null,[u("div",uu,m(h(f)("webapp.title")),1),u("p",du,m(h(f)("webapp.subtitle")),1)]),n.value?(y(),_("span",{key:0,class:$e(["dh-pill",n.value.status==="ok"?"bg-success-soft text-success":"bg-danger-soft text-danger"])},[C[2]||(C[2]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(" "+m(n.value.status==="ok"?h(f)("webapp.reachable"):h(f)("webapp.unreachable")),1)],2)):B("",!0)]),u("div",pu,[u("div",null,[u("label",fu,m(h(f)("webapp.baseUrl")),1),fe(u("input",{id:"web-url","onUpdate:modelValue":C[0]||(C[0]=k=>s.value.url=k),class:"dh-input",placeholder:"http://localhost:8090"},null,512),[[ye,s.value.url]])]),u("div",null,[u("label",hu,m(h(f)("webapp.allowedOrigins")),1),fe(u("input",{id:"web-origins","onUpdate:modelValue":C[1]||(C[1]=k=>s.value.origins=k),class:"dh-input",placeholder:"http://localhost:8090, https://app.example.com"},null,512),[[ye,s.value.origins]]),u("p",gu,[Re(m(h(gi)("webapp.originsHint","star").before),1),C[3]||(C[3]=u("span",{class:"data"},"*",-1)),Re(m(h(gi)("webapp.originsHint","star").after),1)])]),(G=n.value)!=null&&G.error?(y(),_("p",mu,m(n.value.error),1)):B("",!0),o.value?(y(),_("p",bu,m(o.value),1)):B("",!0),i.value?(y(),_("p",vu,m(i.value),1)):B("",!0),u("div",yu,[u("button",{class:"dh-btn",disabled:r.value,onClick:b},m(h(f)("webapp.saveApply")),9,_u),u("button",{class:"dh-btn-ghost",disabled:r.value,onClick:d},m(h(f)("webapp.testConnection")),9,wu),C[4]||(C[4]=u("span",{class:"flex-1"},null,-1)),u("span",xu,m(h(f)("webapp.persistedEnv")),1)])])])}}},Tu={class:"dh-card overflow-hidden"},Su={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Eu={class:"text-base font-bold tracking-[-0.02em] text-strong"},Pu={class:"mt-0.5 text-xs text-muted"},Cu={key:0,class:"border-b border-subtle bg-sunken px-5 py-4"},Au={class:"grid gap-3 sm:grid-cols-3"},$u={class:"dh-label"},Ou={class:"dh-label"},Du={class:"dh-label"},Ru=["disabled"],zu={key:1,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},Iu={key:2,class:"px-5 py-6 text-center text-sm text-muted"},ju={key:3,class:"flex flex-wrap gap-1.5 border-b border-subtle px-5 py-3"},Uu=["onClick"],Mu={class:"dh-pill bg-sunken text-muted"},Nu={class:"flex items-center gap-3 px-5 py-3"},Lu=["onClick"],Fu={class:"font-semibold text-strong"},Bu={class:"dh-pill bg-sunken text-muted"},Hu={key:0,class:"text-xs text-muted"},Vu=["disabled","onClick"],Gu=["disabled","onClick"],Ku={key:0,class:"bg-sunken px-5 py-4"},Wu={key:0,class:"data mb-3 text-xs text-muted"},qu={key:1,class:"grid gap-3 sm:grid-cols-2"},Zu={class:"dh-label"},Ju={key:0,class:"text-danger"},Yu={key:0,class:"flex flex-col gap-1.5 pt-1"},Xu=["checked","onChange"],Qu=["onUpdate:modelValue"],ed={key:0,value:""},td=["value"],sd=["onUpdate:modelValue","type","placeholder"],nd={key:3,class:"mt-1 text-xs text-muted"},id={key:2,class:"text-xs text-muted"},od={key:3,class:"mt-4"},rd={class:"eyebrow mb-1.5"},ad={class:"data flex flex-col gap-1 text-xs text-muted"},ld={class:"text-strong"},cd={key:0},ud={key:1},dd={key:4,class:"data mt-3 text-xs text-body"},pd={class:"mt-4 flex items-center gap-2"},fd=["disabled","onClick"],hd=["disabled","onClick"],gd=["disabled","onClick"],md={key:5,class:"eyebrow mt-2"},bd={__name:"PluginsCard",setup(e){const t=V([]),s=V(""),n=V(!1),i=V(null),o=es({}),r=es({}),a=V(!1),l=V({name:"",baseURL:"",provider:""}),g=V(""),d=["vehicles","chargers","notifications","apis-external","drives-external","drives-local"],b=D=>d.includes(D.category)?D.category:"apis-external",E=ze(()=>{var I;const D={};for(const A of t.value)(D[I=b(A)]||(D[I]=[])).push(A);return d.filter(A=>D[A]).map(A=>({id:A,label:f(`plugins.categories.${A}`),plugins:D[A]}))}),C=ze(()=>E.value.find(D=>D.id===g.value)||E.value[0]),G=ze(()=>{var D;return((D=C.value)==null?void 0:D.plugins)||[]});async function k(){try{const D=await ae("/api/admin/plugins");t.value=D.plugins||[],s.value=""}catch(D){s.value=D.message}}pt(k);function M(D){var A;if(i.value===D.name){i.value=null;return}const I={};for(const N of D.configFields||[])I[N.key]=((A=D.config)==null?void 0:A[N.key])??"";o[D.name]=I,i.value=D.name}function z(D,I){var A;return String(((A=o[D])==null?void 0:A[I])??"").split(",").map(N=>N.trim()).filter(Boolean)}function K(D,I,A){return z(D,I).includes(A)}function Z(D,I,A,N){var he;const le=new Set(z(D,I));N?le.add(A):le.delete(A);const st=t.value.find(J=>J.name===D),as=((he=((st==null?void 0:st.configFields)||[]).find(J=>J.key===I))==null?void 0:he.options)||[];o[D][I]=as.map(J=>J.value).filter(J=>le.has(J)).join(",")}async function j(D,I){n.value=!0,r[D.name]="";try{const A=await ae(`/api/admin/plugins/${encodeURIComponent(D.name)}`,{method:"PUT",body:{enabled:I,config:o[D.name]??{}}});r[D.name]=A.warning||f("plugins.saved"),await k()}catch(A){r[D.name]=A.message}finally{n.value=!1}}async function ce(D){n.value=!0,r[D.name]=f("plugins.checking");try{const I=await ae(`/api/admin/plugins/${encodeURIComponent(D.name)}/health`,{method:"POST"});r[D.name]=`${I.health.status}${I.health.detail?" — "+I.health.detail:""}`,await k()}catch(I){r[D.name]=I.message}finally{n.value=!1}}async function Ee(D){if(confirm(f("plugins.confirmRemove",{name:D.name}))){n.value=!0;try{await ae(`/api/admin/plugins/${encodeURIComponent(D.name)}`,{method:"DELETE"}),i.value===D.name&&(i.value=null),await k()}catch(I){r[D.name]=I.message}finally{n.value=!1}}}async function Pe(){n.value=!0,s.value="";try{await ae("/api/admin/plugins",{method:"POST",body:l.value}),l.value={name:"",baseURL:"",provider:""},a.value=!1,await k()}catch(D){s.value=D.message}finally{n.value=!1}}const ue=D=>D==="ok"?"bg-success-soft text-success":D==="degraded"?"bg-warning-soft text-warning":"bg-danger-soft text-danger";return(D,I)=>(y(),_("div",Tu,[u("div",Su,[u("div",null,[u("div",Eu,m(h(f)("plugins.title")),1),u("p",Pu,m(h(f)("plugins.subtitle")),1)]),u("button",{class:"dh-btn-ghost",onClick:I[0]||(I[0]=A=>a.value=!a.value)},m(a.value?h(f)("plugins.cancelRegister"):h(f)("plugins.registerExternal")),1)]),a.value?(y(),_("div",Cu,[u("div",Au,[u("div",null,[u("label",$u,m(h(f)("plugins.name")),1),fe(u("input",{"onUpdate:modelValue":I[1]||(I[1]=A=>l.value.name=A),class:"dh-input",placeholder:"acme-parts"},null,512),[[ye,l.value.name]])]),u("div",null,[u("label",Ou,m(h(f)("plugins.baseUrl")),1),fe(u("input",{"onUpdate:modelValue":I[2]||(I[2]=A=>l.value.baseURL=A),class:"dh-input",placeholder:"http://127.0.0.1:9100"},null,512),[[ye,l.value.baseURL]])]),u("div",null,[u("label",Du,m(h(f)("plugins.provider")),1),fe(u("input",{"onUpdate:modelValue":I[3]||(I[3]=A=>l.value.provider=A),class:"dh-input",placeholder:"ACME Corp"},null,512),[[ye,l.value.provider]])])]),u("button",{class:"dh-btn mt-3",disabled:n.value||!l.value.name||!l.value.baseURL,onClick:Pe},m(h(f)("plugins.register")),9,Ru)])):B("",!0),s.value?(y(),_("p",zu,m(s.value),1)):B("",!0),t.value.length?B("",!0):(y(),_("p",Iu,m(h(f)("plugins.empty")),1)),E.value.length>1?(y(),_("nav",ju,[(y(!0),_(re,null,Ae(E.value,A=>{var N;return y(),_("button",{key:A.id,class:$e(["dh-btn-ghost",((N=C.value)==null?void 0:N.id)===A.id?"border-accent text-brandtext":""]),onClick:le=>g.value=A.id},[Re(m(A.label)+" ",1),u("span",Mu,m(A.plugins.length),1)],10,Uu)}),128))])):B("",!0),(y(!0),_(re,null,Ae(G.value,A=>(y(),_("div",{key:A.name,class:"border-t border-subtle first:border-t-0"},[u("div",Nu,[u("button",{class:"flex flex-1 items-center gap-3 text-left",onClick:N=>M(A)},[u("span",Fu,m(A.name),1),u("span",Bu,m(A.kind||h(f)("plugins.builtin")),1),A.provider?(y(),_("span",Hu,m(A.provider),1)):B("",!0),A.health?(y(),_("span",{key:1,class:$e(["dh-pill",ue(A.health.status)])},[I[4]||(I[4]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(m(A.health.status),1)],2)):B("",!0)],8,Lu),u("span",{class:$e(["dh-pill",A.enabled?"bg-success-soft text-success":"bg-sunken text-muted"])},m(A.enabled?h(f)("plugins.enabled"):h(f)("plugins.disabled")),3),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:N=>ce(A)},m(h(f)("plugins.health")),9,Vu),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:N=>M(A)},m(i.value===A.name?h(f)("plugins.close"):h(f)("plugins.configure")),9,Gu)]),i.value===A.name?(y(),_("div",Ku,[A.baseURL?(y(),_("div",Wu,m(A.baseURL),1)):B("",!0),(A.configFields||[]).length?(y(),_("div",qu,[(y(!0),_(re,null,Ae(A.configFields,N=>(y(),_("div",{key:N.key},[u("label",Zu,[Re(m(N.label||N.key),1),N.required?(y(),_("span",Ju," *")):B("",!0)]),N.type==="multiselect"?(y(),_("div",Yu,[(y(!0),_(re,null,Ae(N.options||[],le=>(y(),_("label",{key:le.value,class:"flex items-center gap-2 text-sm text-body"},[u("input",{type:"checkbox",class:"dh-checkbox",checked:K(A.name,N.key,le.value),onChange:st=>Z(A.name,N.key,le.value,st.target.checked)},null,40,Xu),u("span",null,m(le.label||le.value),1)]))),128))])):N.type==="select"?fe((y(),_("select",{key:1,"onUpdate:modelValue":le=>o[A.name][N.key]=le,class:"dh-select"},[N.required?B("",!0):(y(),_("option",ed,m(h(f)("plugins.notSet")),1)),(y(!0),_(re,null,Ae(N.options||[],le=>(y(),_("option",{key:le.value,value:le.value},m(le.label||le.value),9,td))),128))],8,Qu)),[[Ss,o[A.name][N.key]]]):fe((y(),_("input",{key:2,"onUpdate:modelValue":le=>o[A.name][N.key]=le,class:"dh-input",type:N.type==="password"?"password":N.type==="number"?"number":"text",placeholder:N.default||"",autocomplete:"off"},null,8,sd)),[[qa,o[A.name][N.key]]]),N.help?(y(),_("p",nd,m(N.help),1)):B("",!0)]))),128))])):(y(),_("p",id,m(h(f)("plugins.noConfig")),1)),(A.capabilities||[]).length?(y(),_("div",od,[u("div",rd,m(h(f)("plugins.capabilities")),1),u("ul",ad,[(y(!0),_(re,null,Ae(A.capabilities,N=>(y(),_("li",{key:N.id},[u("span",ld,m(N.id),1),N.method||N.endpoint?(y(),_("span",cd," — "+m(N.method)+" "+m(N.endpoint),1)):B("",!0),N.description?(y(),_("span",ud," · "+m(N.description),1)):B("",!0)]))),128))])])):B("",!0),r[A.name]?(y(),_("p",dd,m(r[A.name]),1)):B("",!0),u("div",pd,[u("button",{class:"dh-btn",disabled:n.value,onClick:N=>j(A,!0)},m(A.enabled?h(f)("plugins.save"):h(f)("plugins.saveEnable")),9,fd),A.enabled?(y(),_("button",{key:0,class:"dh-btn-ghost",disabled:n.value,onClick:N=>j(A,!1)},m(h(f)("plugins.disable")),9,hd)):B("",!0),I[5]||(I[5]=u("span",{class:"flex-1"},null,-1)),A.kind==="external"?(y(),_("button",{key:1,class:"dh-btn-danger",disabled:n.value,onClick:N=>Ee(A)},m(h(f)("plugins.remove")),9,gd)):B("",!0)]),A.kind!=="external"?(y(),_("p",md,m(h(f)("plugins.builtinNote")),1)):B("",!0)])):B("",!0)]))),128))]))}},vd={class:"dh-card overflow-hidden"},yd={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},_d={class:"text-base font-bold tracking-[-0.02em] text-strong"},wd={class:"mt-0.5 text-xs text-muted"},xd={key:0,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},kd={key:1,class:"border-b border-subtle bg-sunken px-5 py-4"},Td={class:"grid gap-3 sm:grid-cols-2"},Sd={class:"dh-label"},Ed={class:"dh-label"},Pd={class:"dh-label"},Cd=["placeholder"],Ad={class:"dh-label"},$d=["value"],Od={key:0},Dd={class:"dh-label"},Rd={value:""},zd=["value"],Id={class:"mt-3 flex items-center gap-2"},jd=["disabled"],Ud=["disabled"],Md={key:2,class:"px-5 py-6 text-center text-sm text-muted"},Nd={key:3,class:"w-full text-left text-sm"},Ld={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},Fd={class:"data px-5 py-2.5 text-xs text-strong"},Bd={key:0,class:"eyebrow ml-1"},Hd={class:"px-5 py-2.5 text-body"},Vd={class:"px-5 py-2.5 text-body"},Gd={class:"px-5 py-2.5"},Kd={class:"px-5 py-2.5 text-right whitespace-nowrap"},Wd=["onClick"],qd=["disabled","onClick"],Zd={__name:"UsersCard",setup(e){const t=V([]),s=V([]),n=V(""),i=V(!1),o=V(null),r=V({}),a=ze(()=>Ie.value?["user","admin","superadmin"]:["user","admin"]);async function l(){try{const[k,M]=await Promise.all([ae("/api/users"),ae("/api/orgs")]);t.value=k.users||[],s.value=M.organizations||[],n.value=""}catch(k){n.value=k.message}}pt(l);function g(){var k;o.value="new",r.value={email:"",name:"",password:"",role:"user",organization:Ie.value?"":((k=me.value)==null?void 0:k.organization)||""}}function d(k){o.value=k.id,r.value={email:k.email,name:k.name||"",password:"",role:k.role,organization:k.organization||""}}function b(){o.value=null,n.value=""}async function E(){i.value=!0,n.value="";try{if(o.value==="new")await ae("/api/users",{method:"POST",body:r.value});else{const k={...r.value};k.password||delete k.password,await ae(`/api/users/${o.value}`,{method:"PATCH",body:k})}o.value=null,await l()}catch(k){n.value=k.message}finally{i.value=!1}}async function C(k){if(confirm(f("users.confirmDelete",{email:k.email}))){i.value=!0,n.value="";try{await ae(`/api/users/${k.id}`,{method:"DELETE"}),await l()}catch(M){n.value=M.message}finally{i.value=!1}}}const G=k=>k==="superadmin"?"bg-info-soft text-info":k==="admin"?"bg-warning-soft text-warning":"bg-sunken text-muted";return(k,M)=>(y(),_("div",vd,[u("div",yd,[u("div",null,[u("div",_d,m(h(f)("users.title")),1),u("p",wd,m(h(Ie)?h(f)("users.allOrgs"):h(f)("users.yourOrg")),1)]),u("button",{class:"dh-btn",onClick:g},m(h(f)("users.newUser")),1)]),n.value?(y(),_("p",xd,m(n.value),1)):B("",!0),o.value?(y(),_("div",kd,[u("div",Td,[u("div",null,[u("label",Sd,m(h(f)("common.email")),1),fe(u("input",{"onUpdate:modelValue":M[0]||(M[0]=z=>r.value.email=z),class:"dh-input",type:"email",autocomplete:"off"},null,512),[[ye,r.value.email]])]),u("div",null,[u("label",Ed,m(h(f)("common.name")),1),fe(u("input",{"onUpdate:modelValue":M[1]||(M[1]=z=>r.value.name=z),class:"dh-input",autocomplete:"off"},null,512),[[ye,r.value.name]])]),u("div",null,[u("label",Pd,m(o.value==="new"?h(f)("users.password"):h(f)("users.passwordUnchanged")),1),fe(u("input",{"onUpdate:modelValue":M[2]||(M[2]=z=>r.value.password=z),class:"dh-input",type:"password",autocomplete:"new-password",placeholder:h(f)("users.passwordPlaceholder")},null,8,Cd),[[ye,r.value.password]])]),u("div",null,[u("label",Ad,m(h(f)("common.role")),1),fe(u("select",{"onUpdate:modelValue":M[3]||(M[3]=z=>r.value.role=z),class:"dh-select"},[(y(!0),_(re,null,Ae(a.value,z=>(y(),_("option",{key:z,value:z},m(z),9,$d))),128))],512),[[Ss,r.value.role]])]),h(Ie)?(y(),_("div",Od,[u("label",Dd,m(h(f)("common.organization")),1),fe(u("select",{"onUpdate:modelValue":M[4]||(M[4]=z=>r.value.organization=z),class:"dh-select"},[u("option",Rd,m(h(f)("users.orgNone")),1),(y(!0),_(re,null,Ae(s.value,z=>(y(),_("option",{key:z.id,value:z.id},m(z.name),9,zd))),128))],512),[[Ss,r.value.organization]])])):B("",!0)]),u("div",Id,[u("button",{class:"dh-btn",disabled:i.value,onClick:E},m(o.value==="new"?h(f)("common.create"):h(f)("common.save")),9,jd),u("button",{class:"dh-btn-ghost",disabled:i.value,onClick:b},m(h(f)("common.cancel")),9,Ud)])])):B("",!0),t.value.length?(y(),_("table",Nd,[u("thead",null,[u("tr",Ld,[u("th",null,m(h(f)("common.email")),1),u("th",null,m(h(f)("common.name")),1),u("th",null,m(h(f)("common.organization")),1),u("th",null,m(h(f)("common.role")),1),M[5]||(M[5]=u("th",null,null,-1))])]),u("tbody",null,[(y(!0),_(re,null,Ae(t.value,z=>{var K,Z;return y(),_("tr",{key:z.id,class:"border-t border-subtle transition-colors hover:bg-sunken"},[u("td",Fd,[Re(m(z.email)+" ",1),z.id===((K=h(me))==null?void 0:K.id)?(y(),_("span",Bd,m(h(f)("users.you")),1)):B("",!0)]),u("td",Hd,m(z.name||h(f)("common.empty")),1),u("td",Vd,m(z.organizationName||h(f)("common.empty")),1),u("td",Gd,[u("span",{class:$e(["dh-pill",G(z.role)])},m(z.role),3)]),u("td",Kd,[u("button",{class:"dh-btn-ghost",onClick:j=>d(z)},m(h(f)("common.edit")),9,Wd),z.id!==((Z=h(me))==null?void 0:Z.id)?(y(),_("button",{key:0,class:"dh-btn-danger ml-1.5",disabled:i.value,onClick:j=>C(z)},m(h(f)("common.delete")),9,qd)):B("",!0)])])}),128))])])):(y(),_("p",Md,m(h(f)("users.empty")),1))]))}},Jd={class:"dh-card overflow-hidden"},Yd={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Xd={class:"text-base font-bold tracking-[-0.02em] text-strong"},Qd={class:"mt-0.5 text-xs text-muted"},ep={key:0,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},tp={key:1,class:"border-b border-subtle bg-sunken px-5 py-4"},sp={class:"dh-label"},np=["placeholder"],ip={class:"mt-3 flex items-center gap-2"},op=["disabled"],rp=["disabled"],ap={key:2,class:"px-5 py-6 text-center text-sm text-muted"},lp={key:3,class:"w-full text-left text-sm"},cp={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},up={class:"px-5 py-2.5 font-medium text-strong"},dp={class:"data px-5 py-2.5 text-xs text-muted"},pp={class:"px-5 py-2.5 text-right whitespace-nowrap"},fp=["onClick"],hp=["disabled","onClick"],gp={__name:"OrgsCard",setup(e){const t=V([]),s=V(""),n=V(!1),i=V(null),o=V(""),r=ze(()=>{var k;return((k=me.value)==null?void 0:k.organization)||""}),a=ze(()=>Ie.value||!r.value);function l(k){return Ie.value||k.id===r.value}async function g(){if(!bs.value){t.value=[];return}try{const k=await ae("/api/orgs");t.value=k.organizations||[],s.value=""}catch(k){s.value=k.message}}pt(g);function d(){i.value="new",o.value=""}function b(k){i.value=k.id,o.value=k.name}function E(){i.value=null,s.value=""}async function C(){n.value=!0,s.value="";try{i.value==="new"?(await ae("/api/orgs",{method:"POST",body:{name:o.value}}),Ie.value||await Es()):await ae(`/api/orgs/${i.value}`,{method:"PATCH",body:{name:o.value}}),i.value=null,await g()}catch(k){s.value=k.message}finally{n.value=!1}}async function G(k){const M=!Ie.value&&k.id===r.value;if(confirm(f(M?"orgs.confirmDeleteOwn":"orgs.confirmDelete",{name:k.name}))){n.value=!0,s.value="";try{await ae(`/api/orgs/${k.id}`,{method:"DELETE"}),M&&await Es(),await g()}catch(K){s.value=K.message}finally{n.value=!1}}}return(k,M)=>(y(),_("div",Jd,[u("div",Yd,[u("div",null,[u("div",Xd,m(h(Ie)?h(f)("orgs.title"):h(f)("common.organization")),1),u("p",Qd,m(h(Ie)?h(f)("orgs.subtitle"):r.value?h(f)("orgs.subtitleOwn"):h(f)("orgs.subtitleNone")),1)]),a.value?(y(),_("button",{key:0,class:"dh-btn",onClick:d},m(h(f)("orgs.newOrg")),1)):B("",!0)]),s.value?(y(),_("p",ep,m(s.value),1)):B("",!0),i.value?(y(),_("div",tp,[u("label",sp,m(h(f)("common.name")),1),fe(u("input",{"onUpdate:modelValue":M[0]||(M[0]=z=>o.value=z),class:"dh-input",placeholder:h(f)("orgs.namePlaceholder"),onKeyup:xo(C,["enter"])},null,40,np),[[ye,o.value]]),u("div",ip,[u("button",{class:"dh-btn",disabled:n.value||!o.value.trim(),onClick:C},m(i.value==="new"?h(f)("common.create"):h(f)("common.save")),9,op),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:E},m(h(f)("common.cancel")),9,rp)])])):B("",!0),t.value.length?(y(),_("table",lp,[u("thead",null,[u("tr",cp,[u("th",null,m(h(f)("common.name")),1),u("th",null,m(h(f)("orgs.colId")),1),M[1]||(M[1]=u("th",null,null,-1))])]),u("tbody",null,[(y(!0),_(re,null,Ae(t.value,z=>(y(),_("tr",{key:z.id,class:"border-t border-subtle transition-colors hover:bg-sunken"},[u("td",up,m(z.name),1),u("td",dp,m(z.id),1),u("td",pp,[l(z)?(y(),_(re,{key:0},[u("button",{class:"dh-btn-ghost",onClick:K=>b(z)},m(h(f)("common.rename")),9,fp),u("button",{class:"dh-btn-danger ml-1.5",disabled:n.value,onClick:K=>G(z)},m(h(f)("common.delete")),9,hp)],64)):B("",!0)])]))),128))])])):(y(),_("p",ap,m(a.value&&!h(Ie)?h(f)("orgs.createHint"):h(f)("orgs.empty")),1))]))}},mp={class:"dh-card overflow-hidden"},bp={class:"border-b border-subtle px-5 py-4"},vp={class:"flex items-center justify-between"},yp={class:"text-base font-bold tracking-[-0.02em] text-strong"},_p={class:"eyebrow"},wp={key:0,class:"mt-1.5 text-xs text-muted"},xp={class:"overflow-x-auto"},kp={class:"w-full text-left text-sm"},Tp={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},Sp={class:"data border-t border-subtle px-5 py-2.5 text-xs whitespace-nowrap"},Ep={class:"text-strong"},Pp={class:"border-t border-subtle px-5 py-2.5 text-body"},ge={__name:"EndpointTable",props:{title:String,auth:String,endpoints:Array,note:String},setup(e){const t={GET:"text-success",POST:"text-brandtext",PUT:"text-info",PATCH:"text-warning",DELETE:"text-danger"};return(s,n)=>(y(),_("div",mp,[u("div",bp,[u("div",vp,[u("div",yp,m(e.title),1),u("span",_p,m(e.auth),1)]),e.note?(y(),_("p",wp,m(e.note),1)):B("",!0)]),u("div",xp,[u("table",kp,[u("thead",null,[u("tr",Tp,[u("th",null,m(h(f)("api.colEndpoint")),1),u("th",null,m(h(f)("api.colDescription")),1)])]),u("tbody",null,[(y(!0),_(re,null,Ae(e.endpoints,i=>(y(),_("tr",{key:i.method+i.path,class:"transition-colors hover:bg-sunken"},[u("td",Sp,[u("span",{class:$e(["font-semibold",t[i.method]])},m(i.method),3),u("span",Ep,m(i.path),1)]),u("td",Pp,m(i.desc),1)]))),128))])])])]))}},Cp={class:"mx-auto flex max-w-[1368px] flex-col gap-6 px-6 pt-12 pb-16"},Ap={class:"flex items-center gap-3"},$p={class:"eyebrow mt-1.5"},Op={key:0,class:"data hidden text-xs text-muted sm:inline"},Dp={key:0},Rp={key:1,class:"dh-pill bg-info-soft text-info"},zp=["value","aria-label"],Ip=["value"],jp=["title"],Up={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75",class:"h-4 w-4"},Mp={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75",class:"h-4 w-4"},Np={key:0,class:"eyebrow py-16 text-center"},Lp={class:"flex flex-wrap gap-1.5"},Fp=["onClick"],Bp={key:8,class:"eyebrow text-center"},Hp={class:"eyebrow text-center"},Vp="{records} is any of service-records, technical-checks, maintenance, fuel-entries, charging-sessions, car-documents, parts.",Gp={__name:"App",setup(e){const t=V(!0),s=V("overview");pt(async()=>{await ec(),t.value=!1});const n=ze(()=>{const ue=[{id:"overview",label:f("sections.overview")}];return bs.value&&ue.push({id:"users",label:f("sections.users")}),(bs.value||me.value)&&ue.push({id:"orgs",label:f("sections.orgs")}),Ie.value&&ue.push({id:"server",label:f("sections.server")},{id:"pocketbase",label:f("sections.pocketbase")},{id:"webapp",label:f("sections.webapp")},{id:"plugins",label:f("sections.plugins")}),ue.push({id:"api",label:f("sections.api")}),ue}),i=ze(()=>Gl.map(ue=>{let D=ue;try{D=new Intl.DisplayNames([ue],{type:"language"}).of(ue)||ue}catch{}return{code:ue,label:D.charAt(0).toUpperCase()+D.slice(1)}}));function o(){Cn(),s.value="overview"}const r=[{method:"GET",path:"/api/health",desc:"Liveness probe (no auth)"},{method:"GET",path:"/healthz",desc:"The same probe under the conventional container path"},{method:"GET",path:"/api/status",desc:"Health of PocketBase + Web App"},{method:"POST",path:"/api/auth/login",desc:"Exchange email + password for a PocketBase token"},{method:"GET",path:"/api/auth/validate",desc:"Check whether a token is still valid"}],a=[{method:"GET",path:"/api/auth/me",desc:"Identity of the bearer token"},{method:"GET",path:"/api/identity",desc:"Identity incl. role + organization"}],l=[{method:"GET",path:"/api/cars",desc:"List owned + shared cars"},{method:"POST",path:"/api/cars",desc:"Create a car"},{method:"GET",path:"/api/cars/{id}",desc:"Fetch one car"},{method:"PATCH",path:"/api/cars/{id}",desc:"Update a car"},{method:"PUT",path:"/api/cars/{id}/view",desc:"Save the car's layout — hidden tabs/fields/columns and their order"},{method:"DELETE",path:"/api/cars/{id}",desc:"Delete a car (owner only)"},{method:"GET",path:"/api/cars/{id}/service-records",desc:"A car's service history"},{method:"GET",path:"/api/cars/{id}/technical-checks",desc:"A car's roadworthiness inspections"},{method:"GET",path:"/api/cars/{id}/parts",desc:"A car's parts catalog"},{method:"GET",path:"/api/cars/{id}/fuel-entries",desc:"A car's refuelings"},{method:"GET",path:"/api/cars/{id}/fuel-stats",desc:"Consumption + cost totals from the fuel log"},{method:"GET",path:"/api/cars/{id}/charging-sessions",desc:"A car's charging sessions"},{method:"GET",path:"/api/cars/{id}/charging-stats",desc:"Energy + cost totals from the charging log"},{method:"GET",path:"/api/cars/{id}/maintenance",desc:"A car's maintenance log"},{method:"GET",path:"/api/cars/{id}/documents",desc:"A car's documents"},{method:"GET",path:"/api/cars/{id}/reminders",desc:"A car's reminders"},{method:"GET",path:"/api/cars/{id}/provider",desc:"Live snapshot from the car's connected service"},{method:"POST",path:"/api/cars/{id}/provider",desc:"Link the car to a provider vehicle (an empty provider unlinks)"},{method:"POST",path:"/api/cars/{id}/provider/sync",desc:"Re-apply the provider's data to the car"},{method:"GET",path:"/api/cars/{id}/shares",desc:"Who a car is shared with (owner)"},{method:"POST",path:"/api/cars/{id}/shares",desc:"Share a car by email (owner)"},{method:"DELETE",path:"/api/cars/{id}/shares/{userId}",desc:"Revoke a share (owner)"}],g=[{method:"GET",path:"/api/service-records",desc:"List one car's service records (?car={id})"},{method:"POST",path:"/api/service-records",desc:"Log a service record"},{method:"GET",path:"/api/service-records/{id}",desc:"Fetch one record"},{method:"PATCH",path:"/api/service-records/{id}",desc:"Update a record"},{method:"DELETE",path:"/api/service-records/{id}",desc:"Delete a record"}],d=[{method:"GET",path:"/api/technical-checks",desc:"List one car's inspections (?car={id})"},{method:"POST",path:"/api/technical-checks",desc:"Log an inspection"},{method:"GET",path:"/api/technical-checks/{id}",desc:"Fetch one inspection"},{method:"PATCH",path:"/api/technical-checks/{id}",desc:"Update an inspection"},{method:"DELETE",path:"/api/technical-checks/{id}",desc:"Delete an inspection"}],b=[{method:"GET",path:"/api/parts",desc:"List one car's parts (?car={id})"},{method:"POST",path:"/api/parts",desc:"Add a part"},{method:"GET",path:"/api/parts/{id}",desc:"Fetch one part"},{method:"PATCH",path:"/api/parts/{id}",desc:"Update a part"},{method:"DELETE",path:"/api/parts/{id}",desc:"Delete a part"}],E=[{method:"GET",path:"/api/fuel-entries",desc:"List one car's refuelings (?car={id})"},{method:"POST",path:"/api/fuel-entries",desc:"Log a refueling"},{method:"GET",path:"/api/fuel-entries/{id}",desc:"Fetch one refueling"},{method:"PATCH",path:"/api/fuel-entries/{id}",desc:"Update a refueling"},{method:"DELETE",path:"/api/fuel-entries/{id}",desc:"Delete a refueling"}],C=[{method:"GET",path:"/api/charging-sessions",desc:"List one car's charging sessions (?car={id})"},{method:"POST",path:"/api/charging-sessions",desc:"Log a charging session"},{method:"GET",path:"/api/charging-sessions/{id}",desc:"Fetch one session"},{method:"PATCH",path:"/api/charging-sessions/{id}",desc:"Update a session"},{method:"DELETE",path:"/api/charging-sessions/{id}",desc:"Delete a session"}],G=[{method:"GET",path:"/api/maintenance",desc:"List one car's maintenance jobs (?car={id})"},{method:"POST",path:"/api/maintenance",desc:"Log a maintenance job"},{method:"GET",path:"/api/maintenance/{id}",desc:"Fetch one job"},{method:"PATCH",path:"/api/maintenance/{id}",desc:"Update a job"},{method:"DELETE",path:"/api/maintenance/{id}",desc:"Delete a job"}],k=[{method:"GET",path:"/api/car-documents",desc:"List one car's documents (?car={id})"},{method:"POST",path:"/api/car-documents",desc:"Add a document"},{method:"GET",path:"/api/car-documents/{id}",desc:"Fetch one document"},{method:"PATCH",path:"/api/car-documents/{id}",desc:"Update a document"},{method:"DELETE",path:"/api/car-documents/{id}",desc:"Delete a document"}],M=[{method:"GET",path:"/api/reminders",desc:"List one car's reminders (?car={id})"},{method:"POST",path:"/api/reminders",desc:"Create a reminder"},{method:"GET",path:"/api/reminders/{id}",desc:"Fetch one reminder"},{method:"PATCH",path:"/api/reminders/{id}",desc:"Update a reminder"},{method:"DELETE",path:"/api/reminders/{id}",desc:"Delete a reminder"},{method:"POST",path:"/api/reminders/{id}/complete",desc:"Mark done — a recurring reminder rolls forward from now"}],z=[{method:"POST",path:"/api/{records}/{id}/file",desc:"Attach a file, replacing any previous one (PDF or image, max 10 MB)"},{method:"GET",path:"/api/{records}/{id}/file",desc:"Download the attachment (car access re-checked on every request)"},{method:"DELETE",path:"/api/{records}/{id}/file",desc:"Detach and delete the file"}],K=[{method:"GET",path:"/api/vehicle-providers",desc:"Registered providers and whether the caller can use each one"},{method:"GET",path:"/api/vehicle-providers/{provider}/vehicles",desc:"Vehicles on the caller's provider account, as importable cars"},{method:"POST",path:"/api/vehicle-providers/{provider}/import",desc:"Create a car from a provider vehicle (409 if already imported)"}],Z=[{method:"GET",path:"/api/integrations/toyota",desc:"Resolved Toyota Connected settings (secrets masked)"},{method:"PUT",path:"/api/integrations/toyota",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/toyota/health",desc:"Live probe with the resolved credentials"},{method:"GET",path:"/api/integrations/toyota/vehicles",desc:"Raw MyToyota vehicle payload"},{method:"GET",path:"/api/integrations/anker-solix",desc:"Resolved Anker Solix settings (secrets masked)"},{method:"PUT",path:"/api/integrations/anker-solix",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/anker-solix/health",desc:"Live probe with the resolved credentials"},{method:"GET",path:"/api/integrations/anker-solix/chargers",desc:"EV chargers on the linked Anker account"},{method:"GET",path:"/api/integrations/anker-solix/chargers/{sn}/control",desc:"Control mode, token state and live session or Modbus snapshot for one charger"},{method:"POST",path:"/api/integrations/anker-solix/chargers/{sn}/control/token",desc:"(Re)issue the charger's control token"},{method:"DELETE",path:"/api/integrations/anker-solix/chargers/{sn}/control/token",desc:"Revoke the control token"},{method:"PUT",path:"/api/integrations/anker-solix/chargers/{sn}/control/address",desc:"Save the charger's local Modbus TCP address"},{method:"DELETE",path:"/api/integrations/anker-solix/chargers/{sn}/control/address",desc:"Forget the charger's local Modbus TCP address"},{method:"POST",path:"/api/integrations/anker-solix/chargers/{sn}/{action}",desc:"One control command. Over OCPP: start, stop, limit, clear-limit, availability, reset, unlock, trigger, config. Over Modbus TCP: start, stop, limit, boost, phase, timeout, status"},{method:"GET",path:"/api/integrations/greencell",desc:"Resolved Greencell settings (secrets masked)"},{method:"PUT",path:"/api/integrations/greencell",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/greencell/health",desc:"Live probe: connect to the broker and broadcast for devices"},{method:"GET",path:"/api/integrations/greencell/chargers",desc:"Greencell chargers answering on the configured MQTT broker"},{method:"GET",path:"/api/integrations/greencell/chargers/{sn}/state",desc:"Live EVSE state, access level, power and per-phase current/voltage"}],j=[{method:"GET",path:"/ocpp/{serial}",desc:"WebSocket the charger dials out to; OCPP Basic auth with the serial + its control token"}],ce=[{method:"GET",path:"/api/me",desc:"Current user profile"},{method:"PATCH",path:"/api/me",desc:"Update profile"},{method:"POST",path:"/api/me/password",desc:"Change password"},{method:"POST",path:"/api/me/avatar",desc:"Upload avatar"},{method:"GET",path:"/api/me/avatar",desc:"Fetch avatar"},{method:"DELETE",path:"/api/me/avatar",desc:"Remove avatar"},{method:"POST",path:"/api/me/verify/request",desc:"Request email verification"},{method:"GET",path:"/api/me/export",desc:"Export your data"},{method:"POST",path:"/api/me/import",desc:"Import data"},{method:"POST",path:"/api/me/delete",desc:"Request account deletion"},{method:"POST",path:"/api/me/delete/cancel",desc:"Cancel deletion request"},{method:"DELETE",path:"/api/me",desc:"Finalize account deletion"}],Ee=[{method:"GET",path:"/api/users",desc:"List users (scoped by role)"},{method:"POST",path:"/api/users",desc:"Create a user"},{method:"PATCH",path:"/api/users/{id}",desc:"Update email / name / role / org / password"},{method:"DELETE",path:"/api/users/{id}",desc:"Delete a user"},{method:"GET",path:"/api/orgs",desc:"List organizations"},{method:"POST",path:"/api/orgs",desc:"Create an organization (any user without one; creator becomes admin)"},{method:"PATCH",path:"/api/orgs/{id}",desc:"Rename an organization (own org; any as superadmin)"},{method:"DELETE",path:"/api/orgs/{id}",desc:"Delete an organization (own org; any as superadmin)"}],Pe=[{method:"GET",path:"/api/admin/pb-config",desc:"PocketBase connection + live probe"},{method:"POST",path:"/api/admin/pb-config/test",desc:"Probe a candidate connection"},{method:"PUT",path:"/api/admin/pb-config",desc:"Apply + persist a connection"},{method:"GET",path:"/api/admin/server-config",desc:"This server's display name"},{method:"PUT",path:"/api/admin/server-config",desc:"Rename this server (applied + persisted)"},{method:"GET",path:"/api/admin/webapp-config",desc:"Web App URL + CORS origins, with a live probe"},{method:"POST",path:"/api/admin/webapp-config/test",desc:"Probe a candidate Web App address"},{method:"PUT",path:"/api/admin/webapp-config",desc:"Apply + persist Web App settings"},{method:"GET",path:"/api/admin/plugins",desc:"List plugins (secrets masked)"},{method:"POST",path:"/api/admin/plugins",desc:"Register an external plugin"},{method:"GET",path:"/api/admin/plugins/{name}",desc:"Fetch one plugin"},{method:"PUT",path:"/api/admin/plugins/{name}",desc:"Enable/disable + configure"},{method:"DELETE",path:"/api/admin/plugins/{name}",desc:"Remove an external plugin"},{method:"POST",path:"/api/admin/plugins/{name}/health",desc:"Run a health check now"}];return(ue,D)=>(y(),_("div",Cp,[u("div",Ap,[ee(lc,{"on-dark":h(Ot)==="dark",class:"h-7"},null,8,["on-dark"]),u("span",$p,m(h(f)("app.apiServer")),1),D[4]||(D[4]=u("div",{class:"flex-1"},null,-1)),h(me)?(y(),_("span",Op,[Re(m(h(me).email),1),h(me).organizationName?(y(),_("span",Dp," · "+m(h(me).organizationName),1)):B("",!0)])):B("",!0),h(me)?(y(),_("span",Rp,m(h(me).role),1)):B("",!0),u("select",{class:"dh-select !w-auto !py-1 !text-xs",value:h(Pn),"aria-label":h(f)("sections.overview"),onChange:D[0]||(D[0]=I=>h(Wl)(I.target.value))},[(y(!0),_(re,null,Ae(i.value,I=>(y(),_("option",{key:I.code,value:I.code},m(I.label),9,Ip))),128))],40,zp),u("button",{class:"dh-btn-ghost",title:h(Ot)==="dark"?h(f)("app.switchToLight"):h(f)("app.switchToDark"),onClick:D[1]||(D[1]=(...I)=>h(fi)&&h(fi)(...I))},[h(Ot)==="dark"?(y(),_("svg",Up,[...D[2]||(D[2]=[u("circle",{cx:"12",cy:"12",r:"4"},null,-1),u("path",{"stroke-linecap":"round",d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"},null,-1)])])):(y(),_("svg",Mp,[...D[3]||(D[3]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"},null,-1)])])),Re(" "+m(h(f)("app.theme")),1)],8,jp),h(jt)?(y(),_("button",{key:2,class:"dh-btn-ghost",onClick:o},m(h(f)("app.signOut")),1)):B("",!0)]),t.value?(y(),_("p",Np,m(h(f)("app.loading")),1)):h(jt)?(y(),_(re,{key:2},[u("nav",Lp,[(y(!0),_(re,null,Ae(n.value,I=>(y(),_("button",{key:I.id,class:$e(["dh-btn-ghost",s.value===I.id?"border-accent text-brandtext":""]),onClick:A=>s.value=I.id},m(I.label),11,Fp))),128))]),s.value==="overview"?(y(),it($c,{key:0})):s.value==="users"?(y(),it(Zd,{key:1})):s.value==="orgs"?(y(),it(gp,{key:2})):s.value==="server"?(y(),it(au,{key:3})):s.value==="pocketbase"?(y(),it(qc,{key:4})):s.value==="webapp"?(y(),it(ku,{key:5})):s.value==="plugins"?(y(),it(bd,{key:6})):s.value==="api"?(y(),_(re,{key:7},[ee(ge,{title:h(f)("api.groupPublic"),auth:h(f)("api.authNone"),endpoints:r},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupIdentity"),auth:h(f)("api.authBearer"),endpoints:a},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupCars"),auth:h(f)("api.authBearer"),endpoints:l},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupService"),auth:h(f)("api.authBearer"),endpoints:g},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupTechnical"),auth:h(f)("api.authBearer"),endpoints:d},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupParts"),auth:h(f)("api.authBearer"),endpoints:b},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupFuel"),auth:h(f)("api.authBearer"),endpoints:E},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupCharging"),auth:h(f)("api.authBearer"),endpoints:C},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupMaintenance"),auth:h(f)("api.authBearer"),endpoints:G},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupDocuments"),auth:h(f)("api.authBearer"),endpoints:k},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupReminders"),auth:h(f)("api.authBearer"),endpoints:M},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupAttachments"),auth:h(f)("api.authBearer"),endpoints:z,note:Vp},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupProviders"),auth:h(f)("api.authBearer"),endpoints:K},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupIntegrations"),auth:h(f)("api.authBearer"),endpoints:Z},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupOcpp"),auth:h(f)("api.authCharger"),endpoints:j},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupAccount"),auth:h(f)("api.authBearer"),endpoints:ce},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupManagement"),auth:h(f)("api.authManager"),endpoints:Ee},null,8,["title","auth"]),ee(ge,{title:h(f)("api.groupSuperadmin"),auth:h(f)("api.authSuperadmin"),endpoints:Pe},null,8,["title","auth"])],64)):B("",!0),!h(bs)&&s.value==="overview"?(y(),_("p",Bp,m(h(f)("app.standardUserNote")),1)):B("",!0)],64)):(y(),it(vc,{key:1})),u("p",Hp,m(h(f)("app.footer")),1)]))}};sl(Gp).mount("#app");