- The SPA loads the backend::lang bundle before /auth/me, sets the document language from meta.locale and renders plural messages with Intl.PluralRules; interpolate mirrors phrasebook for :name/:Name/:NAME - Create and record routes; mapWinterUrl maps recordUrl and redirects onto the controller's list, create and record routes only - List rows open their record; FormView loads the form schema and the record, shows context-allowed fields in the span grid, saves values keyed by field name and toasts the resolved saved message - A 422 puts each message under its field (aria-invalid, aria-describedby), shows the plural banner, focuses the first invalid field in schema order and clears a field's error on change - The D-05 registry maps text, textarea, number and dropdown; any other type renders the unsupported-field box with the type in DM Mono - The admin OpenAPI document declares the write request bodies (AdminRecord, AdminIDsRequest) and the list filter query as a deepObject, so the typed client can send them - New backend::lang form.load_failed key; boardwalk/dist rebuilt
2 lines
135 KiB
JavaScript
2 lines
135 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Yr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Ut=[],ht=()=>{},qo=()=>!1,Qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jn=e=>e.startsWith("onUpdate:"),Ae=Object.assign,Xr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ml=Object.prototype.hasOwnProperty,oe=(e,t)=>Ml.call(e,t),B=Array.isArray,Ht=e=>En(e)==="[object Map]",Bo=e=>En(e)==="[object Set]",Cs=e=>En(e)==="[object Date]",z=e=>typeof e=="function",ye=e=>typeof e=="string",tt=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",zo=e=>(ce(e)||z(e))&&z(e.then)&&z(e.catch),Ko=Object.prototype.toString,En=e=>Ko.call(e),Ol=e=>En(e).slice(8,-1),Wo=e=>En(e)==="[object Object]",Zr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,on=Yr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Il=/-\w/g,Ve=Yn(e=>e.replace(Il,t=>t.slice(1).toUpperCase())),jl=/\B([A-Z])/g,It=Yn(e=>e.replace(jl,"-$1").toLowerCase()),Xn=Yn(e=>e.charAt(0).toUpperCase()+e.slice(1)),hr=Yn(e=>e?`on${Xn(e)}`:""),dt=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Go=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},es=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $s;const Zn=()=>$s||($s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ts(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ye(r)?Vl(r):ts(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ye(e)||ce(e))return e}const Nl=/;(?![^(]*\))/g,Fl=/:([^]+)/,Ll=/\/\*[^]*?\*\//g;function Vl(e){const t={};return e.replace(Ll,"").split(Nl).forEach(n=>{if(n){const r=n.split(Fl);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Be(e){let t="";if(ye(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Be(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Dl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ul=Yr(Dl);function Qo(e){return!!e||e===""}function Hl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ns(e[r],t[r]);return n}function ns(e,t){if(e===t)return!0;let n=Cs(e),r=Cs(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=tt(e),r=tt(t),n||r)return e===t;if(n=B(e),r=B(t),n||r)return n&&r?Hl(e,t):!1;if(n=ce(e),r=ce(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!ns(e[i],t[i]))return!1}}return String(e)===String(t)}const Jo=e=>!!(e&&e.__v_isRef===!0),K=e=>ye(e)?e:e==null?"":B(e)||ce(e)&&(e.toString===Ko||!z(e.toString))?Jo(e)?K(e.value):JSON.stringify(e,Yo,2):String(e),Yo=(e,t)=>Jo(t)?Yo(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[pr(r,o)+" =>"]=s,n),{})}:Bo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>pr(n))}:tt(t)?pr(t):ce(t)&&!B(t)&&!Wo(t)?String(t):t,pr=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let $e;class ql{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&&$e&&($e.active?(this.parent=$e,this.index=($e.scopes||($e.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=$e;try{return $e=this,t()}finally{$e=n}}}on(){++this._on===1&&(this.prevScope=$e,$e=this)}off(){if(this._on>0&&--this._on===0){if($e===this)$e=this.prevScope;else{let t=$e;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 n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Bl(){return $e}let me;const mr=new WeakSet;class Xo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$e&&($e.active?$e.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,mr.has(this)&&(mr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ei(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ts(this),ti(this);const t=me,n=Ze;me=this,Ze=!0;try{return this.fn()}finally{ni(this),me=t,Ze=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)os(t);this.deps=this.depsTail=void 0,Ts(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?mr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pr(this)&&this.run()}get dirty(){return Pr(this)}}let Zo=0,ln,cn;function ei(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=ln,ln=e}function rs(){Zo++}function ss(){if(--Zo>0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ln;){let t=ln;for(ln=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ti(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ni(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),os(r),zl(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Pr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ri(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ri(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===mn)||(e.globalVersion=mn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Pr(e))))return;e.flags|=2;const t=e.dep,n=me,r=Ze;me=e,Ze=!0;try{ti(e);const s=e.fn(e._value);(t.version===0||dt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,Ze=r,ni(e),e.flags&=-3}}function os(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)os(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const si=[];function _t(){si.push(Ze),Ze=!1}function xt(){const e=si.pop();Ze=e===void 0?!0:e}function Ts(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let mn=0;class Kl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class is{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(!me||!Ze||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new Kl(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,oi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,mn++,this.notify(t)}notify(t){rs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ss()}}}function oi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)oi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Mr=new WeakMap,Mt=Symbol(""),Or=Symbol(""),gn=Symbol("");function Me(e,t,n){if(Ze&&me){let r=Mr.get(e);r||Mr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new is),s.map=r,s.key=n),s.track()}}function vt(e,t,n,r,s,o){const i=Mr.get(e);if(!i){mn++;return}const l=c=>{c&&c.trigger()};if(rs(),t==="clear")i.forEach(l);else{const c=B(e),u=c&&Zr(n);if(c&&n==="length"){const a=Number(r);i.forEach((d,p)=>{(p==="length"||p===gn||!tt(p)&&p>=a)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(gn)),t){case"add":c?u&&l(i.get("length")):(l(i.get(Mt)),Ht(e)&&l(i.get(Or)));break;case"delete":c||(l(i.get(Mt)),Ht(e)&&l(i.get(Or)));break;case"set":Ht(e)&&l(i.get(Mt));break}}ss()}function Nt(e){const t=se(e);return t===e?t:(Me(t,"iterate",gn),Ye(e)?t:t.map(nt))}function er(e){return Me(e=se(e),"iterate",gn),e}function ut(e,t){return wt(e)?Kt(Ot(e)?nt(t):t):nt(t)}const Wl={__proto__:null,[Symbol.iterator](){return gr(this,Symbol.iterator,e=>ut(this,e))},concat(...e){return Nt(this).concat(...e.map(t=>B(t)?Nt(t):t))},entries(){return gr(this,"entries",e=>(e[1]=ut(this,e[1]),e))},every(e,t){return pt(this,"every",e,t,void 0,arguments)},filter(e,t){return pt(this,"filter",e,t,n=>n.map(r=>ut(this,r)),arguments)},find(e,t){return pt(this,"find",e,t,n=>ut(this,n),arguments)},findIndex(e,t){return pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pt(this,"findLast",e,t,n=>ut(this,n),arguments)},findLastIndex(e,t){return pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return yr(this,"includes",e)},indexOf(...e){return yr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return yr(this,"lastIndexOf",e)},map(e,t){return pt(this,"map",e,t,void 0,arguments)},pop(){return Xt(this,"pop")},push(...e){return Xt(this,"push",e)},reduce(e,...t){return As(this,"reduce",e,t)},reduceRight(e,...t){return As(this,"reduceRight",e,t)},shift(){return Xt(this,"shift")},some(e,t){return pt(this,"some",e,t,void 0,arguments)},splice(...e){return Xt(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return Xt(this,"unshift",e)},values(){return gr(this,"values",e=>ut(this,e))}};function gr(e,t,n){const r=er(e),s=r[t]();return r!==e&&!Ye(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Gl=Array.prototype;function pt(e,t,n,r,s,o){const i=er(e),l=i!==e&&!Ye(e),c=i[t];if(c!==Gl[t]){const d=c.apply(e,o);return l?nt(d):d}let u=n;i!==e&&(l?u=function(d,p){return n.call(this,ut(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const a=c.call(i,u,r);return l&&s?s(a):a}function As(e,t,n,r){const s=er(e),o=s!==e&&!Ye(e);let i=n,l=!1;s!==e&&(o?(l=r.length===0,i=function(u,a,d){return l&&(l=!1,u=ut(e,u)),n.call(this,u,ut(e,a),d,e)}):n.length>3&&(i=function(u,a,d){return n.call(this,u,a,d,e)}));const c=s[t](i,...r);return l?ut(e,c):c}function yr(e,t,n){const r=se(e);Me(r,"iterate",gn);const s=r[t](...n);return(s===-1||s===!1)&&as(n[0])?(n[0]=se(n[0]),r[t](...n)):s}function Xt(e,t,n=[]){_t(),rs();const r=se(e)[t].apply(e,n);return ss(),xt(),r}const Ql=Yr("__proto__,__v_isRef,__isVue"),ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function Jl(e){tt(e)||(e=String(e));const t=se(this);return Me(t,"has",e),t.hasOwnProperty(e)}class li{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?ic:fi:o?ui:ai).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=B(t);if(!s){let c;if(i&&(c=Wl[n]))return c;if(n==="hasOwnProperty")return Jl}const l=Reflect.get(t,n,je(t)?t:r);if((tt(n)?ii.has(n):Ql(n))||(s||Me(t,"get",n),o))return l;if(je(l)){const c=i&&Zr(n)?l:l.value;return s&&ce(c)?yn(c):c}return ce(l)?s?yn(l):tr(l):l}}class ci extends li{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=B(t)&&Zr(n);if(!this._isShallow){const u=wt(o);if(!Ye(r)&&!wt(r)&&(o=se(o),r=se(r)),!i&&je(o)&&!je(r))return u||(o.value=r),!0}const l=i?Number(n)<t.length:oe(t,n),c=Reflect.set(t,n,r,je(t)?t:s);return t===se(s)&&(l?dt(r,o)&&vt(t,"set",n,r):vt(t,"add",n,r)),c}deleteProperty(t,n){const r=oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&vt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!tt(n)||!ii.has(n))&&Me(t,"has",n),r}ownKeys(t){return Me(t,"iterate",B(t)?"length":Mt),Reflect.ownKeys(t)}}class Yl extends li{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Xl=new ci,Zl=new Yl,ec=new ci(!0);const Ir=e=>e,An=e=>Reflect.getPrototypeOf(e);function tc(e,t,n){return function(...r){const s=this.__v_raw,o=se(s),i=Ht(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...r),a=n?Ir:t?Kt:nt;return!t&&Me(o,"iterate",c?Or:Mt),Ae(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[a(d[0]),a(d[1])]:a(d),done:p}}})}}function Pn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nc(e,t){const n={get(s){const o=this.__v_raw,i=se(o),l=se(s);e||(dt(s,l)&&Me(i,"get",s),Me(i,"get",l));const{has:c}=An(i),u=t?Ir:e?Kt:nt;if(c.call(i,s))return u(o.get(s));if(c.call(i,l))return u(o.get(l));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Me(se(s),"iterate",Mt),s.size},has(s){const o=this.__v_raw,i=se(o),l=se(s);return e||(dt(s,l)&&Me(i,"has",s),Me(i,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const i=this,l=i.__v_raw,c=se(l),u=t?Ir:e?Kt:nt;return!e&&Me(c,"iterate",Mt),l.forEach((a,d)=>s.call(o,u(a),u(d),i))}};return Ae(n,e?{add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear")}:{add(s){const o=se(this),i=An(o),l=se(s),c=!t&&!Ye(s)&&!wt(s)?l:s;return i.has.call(o,c)||dt(s,c)&&i.has.call(o,s)||dt(l,c)&&i.has.call(o,l)||(o.add(c),vt(o,"add",c,c)),this},set(s,o){!t&&!Ye(o)&&!wt(o)&&(o=se(o));const i=se(this),{has:l,get:c}=An(i);let u=l.call(i,s);u||(s=se(s),u=l.call(i,s));const a=c.call(i,s);return i.set(s,o),u?dt(o,a)&&vt(i,"set",s,o):vt(i,"add",s,o),this},delete(s){const o=se(this),{has:i,get:l}=An(o);let c=i.call(o,s);c||(s=se(s),c=i.call(o,s)),l&&l.call(o,s);const u=o.delete(s);return c&&vt(o,"delete",s,void 0),u},clear(){const s=se(this),o=s.size!==0,i=s.clear();return o&&vt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=tc(s,e,t)}),n}function ls(e,t){const n=nc(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,o)}const rc={get:ls(!1,!1)},sc={get:ls(!1,!0)},oc={get:ls(!0,!1)};const ai=new WeakMap,ui=new WeakMap,fi=new WeakMap,ic=new WeakMap;function lc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tr(e){return wt(e)?e:cs(e,!1,Xl,rc,ai)}function di(e){return cs(e,!1,ec,sc,ui)}function yn(e){return cs(e,!0,Zl,oc,fi)}function cs(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const i=lc(Ol(e));if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Ot(e){return wt(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function Ye(e){return!!(e&&e.__v_isShallow)}function as(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function cc(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&Go(e,"__v_skip",!0),e}const nt=e=>ce(e)?tr(e):e,Kt=e=>ce(e)?yn(e):e;function je(e){return e?e.__v_isRef===!0:!1}function ge(e){return hi(e,!1)}function ac(e){return hi(e,!0)}function hi(e,t){return je(e)?e:new uc(e,t)}class uc{constructor(t,n){this.dep=new is,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:nt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ye(t)||wt(t);t=r?t:se(t),dt(t,n)&&(this._rawValue=t,this._value=r?t:nt(t),this.dep.trigger())}}function V(e){return je(e)?e.value:e}const fc={get:(e,t,n)=>t==="__v_raw"?e:V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return je(s)&&!je(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function pi(e){return Ot(e)?e:new Proxy(e,fc)}class dc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new is(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=mn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return ei(this,!0),!0}get value(){const t=this.dep.track();return ri(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hc(e,t,n=!1){let r,s;return z(e)?r=e:(r=e.get,s=e.set),new dc(r,s,n)}const Mn={},Dn=new WeakMap;let Pt;function pc(e,t=!1,n=Pt){if(n){let r=Dn.get(n);r||Dn.set(n,r=[]),r.push(e)}}function mc(e,t,n=he){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:l,call:c}=n,u=M=>s?M:Ye(M)||s===!1||s===0?bt(M,1):bt(M);let a,d,p,m,S=!1,w=!1;if(je(e)?(d=()=>e.value,S=Ye(e)):Ot(e)?(d=()=>u(e),S=!0):B(e)?(w=!0,S=e.some(M=>Ot(M)||Ye(M)),d=()=>e.map(M=>{if(je(M))return M.value;if(Ot(M))return u(M);if(z(M))return c?c(M,2):M()})):z(e)?t?d=c?()=>c(e,2):e:d=()=>{if(p){_t();try{p()}finally{xt()}}const M=Pt;Pt=a;try{return c?c(e,3,[m]):e(m)}finally{Pt=M}}:d=ht,t&&s){const M=d,ee=s===!0?1/0:s;d=()=>bt(M(),ee)}const j=Bl(),I=()=>{a.stop(),j&&j.active&&Xr(j.effects,a)};if(o&&t){const M=t;t=(...ee)=>{M(...ee),I()}}let C=w?new Array(e.length).fill(Mn):Mn;const P=M=>{if(!(!(a.flags&1)||!a.dirty&&!M))if(t){const ee=a.run();if(s||S||(w?ee.some((_e,ie)=>dt(_e,C[ie])):dt(ee,C))){p&&p();const _e=Pt;Pt=a;try{const ie=[ee,C===Mn?void 0:w&&C[0]===Mn?[]:C,m];C=ee,c?c(t,3,ie):t(...ie)}finally{Pt=_e}}}else a.run()};return l&&l(P),a=new Xo(d),a.scheduler=i?()=>i(P,!1):P,m=M=>pc(M,!1,a),p=a.onStop=()=>{const M=Dn.get(a);if(M){if(c)c(M,4);else for(const ee of M)ee();Dn.delete(a)}},t?r?P(!0):C=a.run():i?i(P.bind(null,!0),!0):a.run(),I.pause=a.pause.bind(a),I.resume=a.resume.bind(a),I.stop=I,I}function bt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,je(e))bt(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)bt(e[r],t,n);else if(Bo(e)||Ht(e))e.forEach(r=>{bt(r,t,n)});else if(Wo(e)){for(const r in e)bt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&bt(e[r],t,n)}return e}function Rn(e,t,n,r){try{return r?e(...r):e()}catch(s){nr(s,t,n)}}function rt(e,t,n,r){if(z(e)){const s=Rn(e,t,n,r);return s&&zo(s)&&s.catch(o=>{nr(o,t,n)}),s}if(B(e)){const s=[];for(let o=0;o<e.length;o++)s.push(rt(e[o],t,n,r));return s}}function nr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,c,u)===!1)return}l=l.parent}if(o){_t(),Rn(o,null,10,[e,c,u]),xt();return}}gc(e,n,s,r,i)}function gc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Le=[];let at=-1;const qt=[];let Ct=null,Lt=0;const mi=Promise.resolve();let Un=null;function us(e){const t=Un||mi;return e?t.then(this?e.bind(this):e):t}function yc(e){let t=at+1,n=Le.length;for(;t<n;){const r=t+n>>>1,s=Le[r],o=vn(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function fs(e){if(!(e.flags&1)){const t=vn(e),n=Le[Le.length-1];!n||!(e.flags&2)&&t>=vn(n)?Le.push(e):Le.splice(yc(t),0,e),e.flags|=1,gi()}}function gi(){Un||(Un=mi.then(vi))}function vc(e){B(e)?qt.push(...e):Ct&&e.id===-1?Ct.splice(Lt+1,0,e):e.flags&1||(qt.push(e),e.flags|=1),gi()}function Ps(e,t,n=at+1){for(;n<Le.length;n++){const r=Le[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Le.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function yi(e){if(qt.length){const t=[...new Set(qt)].sort((n,r)=>vn(n)-vn(r));if(qt.length=0,Ct){Ct.push(...t);return}for(Ct=t,Lt=0;Lt<Ct.length;Lt++){const n=Ct[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ct=null,Lt=0}}const vn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vi(e){try{for(at=0;at<Le.length;at++){const t=Le[at];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Rn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;at<Le.length;at++){const t=Le[at];t&&(t.flags&=-2)}at=-1,Le.length=0,yi(),Un=null,(Le.length||qt.length)&&vi()}}let Te=null,bi=null;function Hn(e){const t=Te;return Te=e,bi=e&&e.type.__scopeId||null,t}function St(e,t=Te,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&zn(-1);const o=Hn(t);let i;try{i=e(...s)}finally{Hn(o),r._d&&zn(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ms(e,t){if(Te===null)return e;const n=lr(Te),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,l,c=he]=t[s];o&&(z(o)&&(o={mounted:o,updated:o}),o.deep&&bt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function Tt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];o&&(l.oldValue=o[i].value);let c=l.dir[r];c&&(_t(),rt(c,n,8,[e.el,l,e,t]),xt())}}function Fn(e,t){if(Ie){let n=Ie.provides;const r=Ie.parent&&Ie.parent.provides;r===n&&(n=Ie.provides=Object.create(r)),n[e]=t}}function Xe(e,t,n=!1){const r=ga();if(r||zt){let s=zt?zt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&z(t)?t.call(r&&r.proxy):t}}const bc=Symbol.for("v-scx"),_c=()=>Xe(bc);function an(e,t,n){return _i(e,t,n)}function _i(e,t,n=he){const{immediate:r,deep:s,flush:o,once:i}=n,l=Ae({},n),c=t&&r||!t&&o!=="post";let u;if(xn){if(o==="sync"){const m=_c();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ht,m.resume=ht,m.pause=ht,m}}const a=Ie;l.call=(m,S,w)=>rt(m,a,S,w);let d=!1;o==="post"?l.scheduler=m=>{qe(m,a&&a.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(m,S)=>{S?m():fs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,a&&(m.id=a.uid,m.i=a))};const p=mc(e,t,l);return xn&&(u?u.push(p):c&&p()),p}function xc(e,t,n){const r=this.proxy,s=ye(e)?e.includes(".")?xi(r,e):()=>r[e]:e.bind(r,r);let o;z(t)?o=t:(o=t.handler,n=t);const i=Cn(this),l=_i(s,o.bind(r),n);return i(),l}function xi(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const wc=Symbol("_vte"),Sc=e=>e.__isTeleport,vr=Symbol("_leaveCb");function ds(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ds(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 be(e,t){return z(e)?Ae({name:e.name},t,{setup:e}):e}function wi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Os(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const qn=new WeakMap;function un(e,t,n,r,s=!1){if(B(e)){e.forEach((w,j)=>un(w,t&&(B(t)?t[j]:t),n,r,s));return}if(Bt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&un(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?lr(r.component):r.el,i=s?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===he?l.refs={}:l.refs,d=l.setupState,p=se(d),m=d===he?qo:w=>Os(a,w)?!1:oe(p,w),S=(w,j)=>!(j&&Os(a,j));if(u!=null&&u!==c){if(Is(t),ye(u))a[u]=null,m(u)&&(d[u]=null);else if(je(u)){const w=t;S(u,w.k)&&(u.value=null),w.k&&(a[w.k]=null)}}if(z(c))Rn(c,l,12,[i,a]);else{const w=ye(c),j=je(c);if(w||j){const I=()=>{if(e.f){const C=w?m(c)?d[c]:a[c]:S()||!e.k?c.value:a[e.k];if(s)B(C)&&Xr(C,o);else if(B(C))C.includes(o)||C.push(o);else if(w)a[c]=[o],m(c)&&(d[c]=a[c]);else{const P=[o];S(c,e.k)&&(c.value=P),e.k&&(a[e.k]=P)}}else w?(a[c]=i,m(c)&&(d[c]=i)):j&&(S(c,e.k)&&(c.value=i),e.k&&(a[e.k]=i))};if(i){const C=()=>{I(),qn.delete(e)};C.id=-1,qn.set(e,C),qe(C,n)}else Is(e),I()}}}function Is(e){const t=qn.get(e);t&&(t.flags|=8,qn.delete(e))}Zn().requestIdleCallback;Zn().cancelIdleCallback;const Bt=e=>!!e.type.__asyncLoader,Si=e=>e.type.__isKeepAlive;function kc(e,t){ki(e,"a",t)}function Ec(e,t){ki(e,"da",t)}function ki(e,t,n=Ie){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(rr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Si(s.parent.vnode)&&Rc(r,t,n,s),s=s.parent}}function Rc(e,t,n,r){const s=rr(t,e,r,!0);Ei(()=>{Xr(r[t],s)},n)}function rr(e,t,n=Ie,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{_t();const l=Cn(n),c=rt(t,n,e,i);return l(),xt(),c});return r?s.unshift(o):s.push(o),o}}const Et=e=>(t,n=Ie)=>{(!xn||e==="sp")&&rr(e,(...r)=>t(...r),n)},Cc=Et("bm"),$c=Et("m"),Tc=Et("bu"),Ac=Et("u"),Pc=Et("bum"),Ei=Et("um"),Mc=Et("sp"),Oc=Et("rtg"),Ic=Et("rtc");function jc(e,t=Ie){rr("ec",e,t)}const Nc="components",Ri=Symbol.for("v-ndc");function Wt(e){return ye(e)?Fc(Nc,e,!1)||e:e||Ri}function Fc(e,t,n=!0,r=!1){const s=Te||Ie;if(s){const o=s.type;{const l=xa(o,!1);if(l&&(l===t||l===Ve(t)||l===Xn(Ve(t))))return o}const i=js(s[e]||o[e],t)||js(s.appContext[e],t);return!i&&r?o:i}}function js(e,t){return e&&(e[t]||e[Ve(t)]||e[Xn(Ve(t))])}function Qe(e,t,n,r){let s;const o=n,i=B(e);if(i||ye(e)){const l=i&&Ot(e);let c=!1,u=!1;l&&(c=!Ye(e),u=wt(e),e=er(e)),s=new Array(e.length);for(let a=0,d=e.length;a<d;a++)s[a]=t(c?u?Kt(nt(e[a])):nt(e[a]):e[a],a,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o)}else if(ce(e))if(e[Symbol.iterator])s=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);s=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const a=l[c];s[c]=t(e[a],a,c,o)}}else s=[];return s}function jr(e,t,n={},r,s){if(Te.ce||Te.parent&&Bt(Te.parent)&&Te.parent.ce){const u=Object.keys(n).length>0;return R(),we(fe,null,[ne("slot",n,r)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),R();const i=o&&Ci(o(n)),l=n.key||i&&i.key,c=we(fe,{key:(l&&!tt(l)?l:`_${t}`)+(!i&&r?"_fb":"")},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Ci(e){return e.some(t=>_n(t)?!(t.type===kt||t.type===fe&&!Ci(t.children)):!0)?e:null}const Nr=e=>e?Wi(e)?lr(e):Nr(e.parent):null,fn=Ae(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=>Nr(e.parent),$root:e=>Nr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ti(e),$forceUpdate:e=>e.f||(e.f=()=>{fs(e.update)}),$nextTick:e=>e.n||(e.n=us.bind(e.proxy)),$watch:e=>xc.bind(e)}),br=(e,t)=>e!==he&&!e.__isScriptSetup&&oe(e,t),Lc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(br(r,t))return i[t]=1,r[t];if(s!==he&&oe(s,t))return i[t]=2,s[t];if(oe(o,t))return i[t]=3,o[t];if(n!==he&&oe(n,t))return i[t]=4,n[t];Fr&&(i[t]=0)}}const u=fn[t];let a,d;if(u)return t==="$attrs"&&Me(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==he&&oe(n,t))return i[t]=4,n[t];if(d=c.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return br(s,t)?(s[t]=n,!0):r!==he&&oe(r,t)?(r[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},l){let c;return!!(n[l]||e!==he&&l[0]!=="$"&&oe(e,l)||br(t,l)||oe(o,l)||oe(r,l)||oe(fn,l)||oe(s.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ns(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fr=!0;function Vc(e){const t=Ti(e),n=e.proxy,r=e.ctx;Fr=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:d,mounted:p,beforeUpdate:m,updated:S,activated:w,deactivated:j,beforeDestroy:I,beforeUnmount:C,destroyed:P,unmounted:M,render:ee,renderTracked:_e,renderTriggered:ie,errorCaptured:De,serverPrefetch:Ue,expose:Pe,inheritAttrs:He,components:Ge,directives:Ee,filters:Q}=t;if(u&&Dc(u,r,null),i)for(const J in i){const Y=i[J];z(Y)&&(r[J]=Y.bind(n))}if(s){const J=s.call(n,n);ce(J)&&(e.data=tr(J))}if(Fr=!0,o)for(const J in o){const Y=o[J],Se=z(Y)?Y.bind(n,n):z(Y.get)?Y.get.bind(n,n):ht,ae=!z(Y)&&z(Y.set)?Y.set.bind(n):ht,ze=L({get:Se,set:ae});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>ze.value,set:ke=>ze.value=ke})}if(l)for(const J in l)$i(l[J],r,n,J);if(c){const J=z(c)?c.call(n):c;Reflect.ownKeys(J).forEach(Y=>{Fn(Y,J[Y])})}a&&Fs(a,e,"c");function X(J,Y){B(Y)?Y.forEach(Se=>J(Se.bind(n))):Y&&J(Y.bind(n))}if(X(Cc,d),X($c,p),X(Tc,m),X(Ac,S),X(kc,w),X(Ec,j),X(jc,De),X(Ic,_e),X(Oc,ie),X(Pc,C),X(Ei,M),X(Mc,Ue),B(Pe))if(Pe.length){const J=e.exposed||(e.exposed={});Pe.forEach(Y=>{Object.defineProperty(J,Y,{get:()=>n[Y],set:Se=>n[Y]=Se,enumerable:!0})})}else e.exposed||(e.exposed={});ee&&e.render===ht&&(e.render=ee),He!=null&&(e.inheritAttrs=He),Ge&&(e.components=Ge),Ee&&(e.directives=Ee),Ue&&wi(e)}function Dc(e,t,n=ht){B(e)&&(e=Lr(e));for(const r in e){const s=e[r];let o;ce(s)?"default"in s?o=Xe(s.from||r,s.default,!0):o=Xe(s.from||r):o=Xe(s),je(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Fs(e,t,n){rt(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $i(e,t,n,r){let s=r.includes(".")?xi(n,r):()=>n[r];if(ye(e)){const o=t[e];z(o)&&an(s,o)}else if(z(e))an(s,e.bind(n));else if(ce(e))if(B(e))e.forEach(o=>$i(o,t,n,r));else{const o=z(e.handler)?e.handler.bind(n):t[e.handler];z(o)&&an(s,o,e)}}function Ti(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>Bn(c,u,i,!0)),Bn(c,t,i)),ce(t)&&o.set(t,c),c}function Bn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Bn(e,o,n,!0),s&&s.forEach(i=>Bn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=Uc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Uc={data:Ls,props:Vs,emits:Vs,methods:nn,computed:nn,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:nn,directives:nn,watch:qc,provide:Ls,inject:Hc};function Ls(e,t){return t?e?function(){return Ae(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Hc(e,t){return nn(Lr(e),Lr(t))}function Lr(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fe(e,t){return e?[...new Set([].concat(e,t))]:t}function nn(e,t){return e?Ae(Object.create(null),e,t):t}function Vs(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:Ae(Object.create(null),Ns(e),Ns(t??{})):t}function qc(e,t){if(!e)return t;if(!t)return e;const n=Ae(Object.create(null),e);for(const r in t)n[r]=Fe(e[r],t[r]);return n}function Ai(){return{app:null,config:{isNativeTag:qo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bc=0;function zc(e,t){return function(r,s=null){z(r)||(r=Ae({},r)),s!=null&&!ce(s)&&(s=null);const o=Ai(),i=new WeakSet,l=[];let c=!1;const u=o.app={_uid:Bc++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Sa,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&z(a.install)?(i.add(a),a.install(u,...d)):z(a)&&(i.add(a),a(u,...d))),u},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),u},component(a,d){return d?(o.components[a]=d,u):o.components[a]},directive(a,d){return d?(o.directives[a]=d,u):o.directives[a]},mount(a,d,p){if(!c){const m=u._ceVNode||ne(r,s);return m.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(m,a,p),c=!0,u._container=a,a.__vue_app__=u,lr(m.component)}},onUnmount(a){l.push(a)},unmount(){c&&(rt(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(a,d){return o.provides[a]=d,u},runWithContext(a){const d=zt;zt=u;try{return a()}finally{zt=d}}};return u}}let zt=null;const Kc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${It(t)}Modifiers`];function Wc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const o=t.startsWith("update:"),i=o&&Kc(r,t.slice(7));i&&(i.trim&&(s=n.map(a=>ye(a)?a.trim():a)),i.number&&(s=n.map(es)));let l,c=r[l=hr(t)]||r[l=hr(Ve(t))];!c&&o&&(c=r[l=hr(It(t))]),c&&rt(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,rt(u,e,6,s)}}const Gc=new WeakMap;function Pi(e,t,n=!1){const r=n?Gc:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!z(e)){const c=u=>{const a=Pi(u,t,!0);a&&(l=!0,Ae(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ce(e)&&r.set(e,null),null):(B(o)?o.forEach(c=>i[c]=null):Ae(i,o),ce(e)&&r.set(e,i),i)}function sr(e,t){return!e||!Qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,It(t))||oe(e,t))}function Ds(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:a,props:d,data:p,setupState:m,ctx:S,inheritAttrs:w}=e,j=Hn(e);let I,C;try{if(n.shapeFlag&4){const M=s||r,ee=M;I=ft(u.call(ee,M,a,d,m,p,S)),C=l}else{const M=t;I=ft(M.length>1?M(d,{attrs:l,slots:i,emit:c}):M(d,null)),C=t.props?l:Qc(l)}}catch(M){dn.length=0,nr(M,e,1),I=ne(kt)}let P=I;if(C&&w!==!1){const M=Object.keys(C),{shapeFlag:ee}=P;M.length&&ee&7&&(o&&M.some(Jn)&&(C=Jc(C,o)),P=Gt(P,C,!1,!0))}return n.dirs&&(P=Gt(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&ds(P,n.transition),I=P,Hn(j),I}const Qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Qn(n))&&((t||(t={}))[n]=e[n]);return t},Jc=(e,t)=>{const n={};for(const r in e)(!Jn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Yc(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Us(r,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;d<a.length;d++){const p=a[d];if(Mi(i,r,p)&&!sr(u,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===i?!1:r?i?Us(r,i,u):!0:!!i;return!1}function Us(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(Mi(t,e,o)&&!sr(n,o))return!0}return!1}function Mi(e,t,n){const r=e[n],s=t[n];return n==="style"&&ce(r)&&ce(s)?!ns(r,s):r!==s}function Xc({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const Oi={},Ii=()=>Object.create(Oi),ji=e=>Object.getPrototypeOf(e)===Oi;function Zc(e,t,n,r=!1){const s={},o=Ii();e.propsDefaults=Object.create(null),Ni(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:di(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ea(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=se(s),[c]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d<a.length;d++){let p=a[d];if(sr(e.emitsOptions,p))continue;const m=t[p];if(c)if(oe(o,p))m!==o[p]&&(o[p]=m,u=!0);else{const S=Ve(p);s[S]=Vr(c,l,S,m,e,!1)}else m!==o[p]&&(o[p]=m,u=!0)}}}else{Ni(e,t,s,o)&&(u=!0);let a;for(const d in l)(!t||!oe(t,d)&&((a=It(d))===d||!oe(t,a)))&&(c?n&&(n[d]!==void 0||n[a]!==void 0)&&(s[d]=Vr(c,l,d,void 0,e,!0)):delete s[d]);if(o!==l)for(const d in o)(!t||!oe(t,d))&&(delete o[d],u=!0)}u&&vt(e.attrs,"set","")}function Ni(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(on(c))continue;const u=t[c];let a;s&&oe(s,a=Ve(c))?!o||!o.includes(a)?n[a]=u:(l||(l={}))[a]=u:sr(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,i=!0)}if(o){const c=se(n),u=l||he;for(let a=0;a<o.length;a++){const d=o[a];n[d]=Vr(s,c,d,u[d],e,!oe(u,d))}}return i}function Vr(e,t,n,r,s,o){const i=e[n];if(i!=null){const l=oe(i,"default");if(l&&r===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&z(c)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const a=Cn(s);r=u[n]=c.call(null,t),a()}}else r=c;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!l?r=!1:i[1]&&(r===""||r===It(n))&&(r=!0))}return r}const ta=new WeakMap;function Fi(e,t,n=!1){const r=n?ta:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},l=[];let c=!1;if(!z(e)){const a=d=>{c=!0;const[p,m]=Fi(d,t,!0);Ae(i,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return ce(e)&&r.set(e,Ut),Ut;if(B(o))for(let a=0;a<o.length;a++){const d=Ve(o[a]);Hs(d)&&(i[d]=he)}else if(o)for(const a in o){const d=Ve(a);if(Hs(d)){const p=o[a],m=i[d]=B(p)||z(p)?{type:p}:Ae({},p),S=m.type;let w=!1,j=!0;if(B(S))for(let I=0;I<S.length;++I){const C=S[I],P=z(C)&&C.name;if(P==="Boolean"){w=!0;break}else P==="String"&&(j=!1)}else w=z(S)&&S.name==="Boolean";m[0]=w,m[1]=j,(w||oe(m,"default"))&&l.push(d)}}const u=[i,l];return ce(e)&&r.set(e,u),u}function Hs(e){return e[0]!=="$"&&!on(e)}const hs=e=>e==="_"||e==="_ctx"||e==="$stable",ps=e=>B(e)?e.map(ft):[ft(e)],na=(e,t,n)=>{if(t._n)return t;const r=St((...s)=>ps(t(...s)),n);return r._c=!1,r},Li=(e,t,n)=>{const r=e._ctx;for(const s in e){if(hs(s))continue;const o=e[s];if(z(o))t[s]=na(s,o,r);else if(o!=null){const i=ps(o);t[s]=()=>i}}},Vi=(e,t)=>{const n=ps(t);e.slots.default=()=>n},Di=(e,t,n)=>{for(const r in t)(n||!hs(r))&&(e[r]=t[r])},ra=(e,t,n)=>{const r=e.slots=Ii();if(e.vnode.shapeFlag&32){const s=t._;s?(Di(r,t,n),n&&Go(r,"_",s,!0)):Li(t,r)}else t&&Vi(e,t)},sa=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=he;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Di(s,t,n):(o=!t.$stable,Li(t,s)),i=t}else t&&(Vi(e,t),i={default:1});if(o)for(const l in s)!hs(l)&&i[l]==null&&delete s[l]},qe=aa;function oa(e){return ia(e)}function ia(e,t){const n=Zn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:d,nextSibling:p,setScopeId:m=ht,insertStaticContent:S}=e,w=(f,h,g,b=null,_=null,v=null,$=void 0,E=null,k=!!h.dynamicChildren)=>{if(f===h)return;f&&!Zt(f,h)&&(b=y(f),ke(f,_,v,!0),f=null),h.patchFlag===-2&&(k=!1,h.dynamicChildren=null);const{type:x,ref:H,shapeFlag:A}=h;switch(x){case or:j(f,h,g,b);break;case kt:I(f,h,g,b);break;case xr:f==null&&C(h,g,b,$);break;case fe:Ge(f,h,g,b,_,v,$,E,k);break;default:A&1?ee(f,h,g,b,_,v,$,E,k):A&6?Ee(f,h,g,b,_,v,$,E,k):(A&64||A&128)&&x.process(f,h,g,b,_,v,$,E,k,D)}H!=null&&_?un(H,f&&f.ref,v,h||f,!h):H==null&&f&&f.ref!=null&&un(f.ref,null,v,f,!0)},j=(f,h,g,b)=>{if(f==null)r(h.el=l(h.children),g,b);else{const _=h.el=f.el;h.children!==f.children&&u(_,h.children)}},I=(f,h,g,b)=>{f==null?r(h.el=c(h.children||""),g,b):h.el=f.el},C=(f,h,g,b)=>{[f.el,f.anchor]=S(f.children,h,g,b,f.el,f.anchor)},P=({el:f,anchor:h},g,b)=>{let _;for(;f&&f!==h;)_=p(f),r(f,g,b),f=_;r(h,g,b)},M=({el:f,anchor:h})=>{let g;for(;f&&f!==h;)g=p(f),s(f),f=g;s(h)},ee=(f,h,g,b,_,v,$,E,k)=>{if(h.type==="svg"?$="svg":h.type==="math"&&($="mathml"),f==null)_e(h,g,b,_,v,$,E,k);else{const x=f.el&&f.el._isVueCE?f.el:null;try{x&&x._beginPatch(),Ue(f,h,_,v,$,E,k)}finally{x&&x._endPatch()}}},_e=(f,h,g,b,_,v,$,E)=>{let k,x;const{props:H,shapeFlag:A,transition:U,dirs:q}=f;if(k=f.el=i(f.type,v,H&&H.is,H),A&8?a(k,f.children):A&16&&De(f.children,k,null,b,_,_r(f,v),$,E),q&&Tt(f,null,b,"created"),ie(k,f,f.scopeId,$,b),H){for(const de in H)de!=="value"&&!on(de)&&o(k,de,null,H[de],v,b);"value"in H&&o(k,"value",null,H.value,v),(x=H.onVnodeBeforeMount)&&ct(x,b,f)}q&&Tt(f,null,b,"beforeMount");const te=la(_,U);te&&U.beforeEnter(k),r(k,h,g),((x=H&&H.onVnodeMounted)||te||q)&&qe(()=>{x&&ct(x,b,f),te&&U.enter(k),q&&Tt(f,null,b,"mounted")},_)},ie=(f,h,g,b,_)=>{if(g&&m(f,g),b)for(let v=0;v<b.length;v++)m(f,b[v]);if(_){let v=_.subTree;if(h===v||Bi(v.type)&&(v.ssContent===h||v.ssFallback===h)){const $=_.vnode;ie(f,$,$.scopeId,$.slotScopeIds,_.parent)}}},De=(f,h,g,b,_,v,$,E,k=0)=>{for(let x=k;x<f.length;x++){const H=f[x]=E?yt(f[x]):ft(f[x]);w(null,H,h,g,b,_,v,$,E)}},Ue=(f,h,g,b,_,v,$)=>{const E=h.el=f.el;let{patchFlag:k,dynamicChildren:x,dirs:H}=h;k|=f.patchFlag&16;const A=f.props||he,U=h.props||he;let q;if(g&&At(g,!1),(q=U.onVnodeBeforeUpdate)&&ct(q,g,h,f),H&&Tt(h,f,g,"beforeUpdate"),g&&At(g,!0),(A.innerHTML&&U.innerHTML==null||A.textContent&&U.textContent==null)&&a(E,""),x?Pe(f.dynamicChildren,x,E,g,b,_r(h,_),v):$||Y(f,h,E,null,g,b,_r(h,_),v,!1),k>0){if(k&16)He(E,A,U,g,_);else if(k&2&&A.class!==U.class&&o(E,"class",null,U.class,_),k&4&&o(E,"style",A.style,U.style,_),k&8){const te=h.dynamicProps;for(let de=0;de<te.length;de++){const ue=te[de],xe=A[ue],Ce=U[ue];(Ce!==xe||ue==="value")&&o(E,ue,xe,Ce,_,g)}}k&1&&f.children!==h.children&&a(E,h.children)}else!$&&x==null&&He(E,A,U,g,_);((q=U.onVnodeUpdated)||H)&&qe(()=>{q&&ct(q,g,h,f),H&&Tt(h,f,g,"updated")},b)},Pe=(f,h,g,b,_,v,$)=>{for(let E=0;E<h.length;E++){const k=f[E],x=h[E],H=k.el&&(k.type===fe||!Zt(k,x)||k.shapeFlag&198)?d(k.el):g;w(k,x,H,null,b,_,v,$,!0)}},He=(f,h,g,b,_)=>{if(h!==g){if(h!==he)for(const v in h)!on(v)&&!(v in g)&&o(f,v,h[v],null,_,b);for(const v in g){if(on(v))continue;const $=g[v],E=h[v];$!==E&&v!=="value"&&o(f,v,E,$,_,b)}"value"in g&&o(f,"value",h.value,g.value,_)}},Ge=(f,h,g,b,_,v,$,E,k)=>{const x=h.el=f?f.el:l(""),H=h.anchor=f?f.anchor:l("");let{patchFlag:A,dynamicChildren:U,slotScopeIds:q}=h;q&&(E=E?E.concat(q):q),f==null?(r(x,g,b),r(H,g,b),De(h.children||[],g,H,_,v,$,E,k)):A>0&&A&64&&U&&f.dynamicChildren&&f.dynamicChildren.length===U.length?(Pe(f.dynamicChildren,U,g,_,v,$,E),(h.key!=null||_&&h===_.subTree)&&Ui(f,h,!0)):Y(f,h,g,H,_,v,$,E,k)},Ee=(f,h,g,b,_,v,$,E,k)=>{h.slotScopeIds=E,f==null?h.shapeFlag&512?_.ctx.activate(h,g,b,$,k):Q(h,g,b,_,v,$,k):G(f,h,k)},Q=(f,h,g,b,_,v,$)=>{const E=f.component=ma(f,b,_);if(Si(f)&&(E.ctx.renderer=D),ya(E,!1,$),E.asyncDep){if(_&&_.registerDep(E,X,$),!f.el){const k=E.subTree=ne(kt);I(null,k,h,g),f.placeholder=k.el}}else X(E,f,h,g,_,v,$)},G=(f,h,g)=>{const b=h.component=f.component;if(Yc(f,h,g))if(b.asyncDep&&!b.asyncResolved){J(b,h,g);return}else b.next=h,b.update();else h.el=f.el,b.vnode=h},X=(f,h,g,b,_,v,$)=>{const E=()=>{if(f.isMounted){let{next:A,bu:U,u:q,parent:te,vnode:de}=f;{const it=Hi(f);if(it){A&&(A.el=de.el,J(f,A,$)),it.asyncDep.then(()=>{qe(()=>{f.isUnmounted||x()},_)});return}}let ue=A,xe;At(f,!1),A?(A.el=de.el,J(f,A,$)):A=de,U&&Nn(U),(xe=A.props&&A.props.onVnodeBeforeUpdate)&&ct(xe,te,A,de),At(f,!0);const Ce=Ds(f),ot=f.subTree;f.subTree=Ce,w(ot,Ce,d(ot.el),y(ot),f,_,v),A.el=Ce.el,ue===null&&Xc(f,Ce.el),q&&qe(q,_),(xe=A.props&&A.props.onVnodeUpdated)&&qe(()=>ct(xe,te,A,de),_)}else{let A;const{el:U,props:q}=h,{bm:te,m:de,parent:ue,root:xe,type:Ce}=f,ot=Bt(h);At(f,!1),te&&Nn(te),!ot&&(A=q&&q.onVnodeBeforeMount)&&ct(A,ue,h),At(f,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(Ce,f.parent?f.parent.type:void 0);const it=f.subTree=Ds(f);w(null,it,g,b,f,_,v),h.el=it.el}if(de&&qe(de,_),!ot&&(A=q&&q.onVnodeMounted)){const it=h;qe(()=>ct(A,ue,it),_)}(h.shapeFlag&256||ue&&Bt(ue.vnode)&&ue.vnode.shapeFlag&256)&&f.a&&qe(f.a,_),f.isMounted=!0,h=g=b=null}};f.scope.on();const k=f.effect=new Xo(E);f.scope.off();const x=f.update=k.run.bind(k),H=f.job=k.runIfDirty.bind(k);H.i=f,H.id=f.uid,k.scheduler=()=>fs(H),At(f,!0),x()},J=(f,h,g)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,ea(f,h.props,b,g),sa(f,h.children,g),_t(),Ps(f),xt()},Y=(f,h,g,b,_,v,$,E,k=!1)=>{const x=f&&f.children,H=f?f.shapeFlag:0,A=h.children,{patchFlag:U,shapeFlag:q}=h;if(U>0){if(U&128){ae(x,A,g,b,_,v,$,E,k);return}else if(U&256){Se(x,A,g,b,_,v,$,E,k);return}}q&8?(H&16&&Re(x,_,v),A!==x&&a(g,A)):H&16?q&16?ae(x,A,g,b,_,v,$,E,k):Re(x,_,v,!0):(H&8&&a(g,""),q&16&&De(A,g,b,_,v,$,E,k))},Se=(f,h,g,b,_,v,$,E,k)=>{f=f||Ut,h=h||Ut;const x=f.length,H=h.length,A=Math.min(x,H);let U;for(U=0;U<A;U++){const q=h[U]=k?yt(h[U]):ft(h[U]);w(f[U],q,g,null,_,v,$,E,k)}x>H?Re(f,_,v,!0,!1,A):De(h,g,b,_,v,$,E,k,A)},ae=(f,h,g,b,_,v,$,E,k)=>{let x=0;const H=h.length;let A=f.length-1,U=H-1;for(;x<=A&&x<=U;){const q=f[x],te=h[x]=k?yt(h[x]):ft(h[x]);if(Zt(q,te))w(q,te,g,null,_,v,$,E,k);else break;x++}for(;x<=A&&x<=U;){const q=f[A],te=h[U]=k?yt(h[U]):ft(h[U]);if(Zt(q,te))w(q,te,g,null,_,v,$,E,k);else break;A--,U--}if(x>A){if(x<=U){const q=U+1,te=q<H?h[q].el:b;for(;x<=U;)w(null,h[x]=k?yt(h[x]):ft(h[x]),g,te,_,v,$,E,k),x++}}else if(x>U)for(;x<=A;)ke(f[x],_,v,!0),x++;else{const q=x,te=x,de=new Map;for(x=te;x<=U;x++){const Ke=h[x]=k?yt(h[x]):ft(h[x]);Ke.key!=null&&de.set(Ke.key,x)}let ue,xe=0;const Ce=U-te+1;let ot=!1,it=0;const Yt=new Array(Ce);for(x=0;x<Ce;x++)Yt[x]=0;for(x=q;x<=A;x++){const Ke=f[x];if(xe>=Ce){ke(Ke,_,v,!0);continue}let lt;if(Ke.key!=null)lt=de.get(Ke.key);else for(ue=te;ue<=U;ue++)if(Yt[ue-te]===0&&Zt(Ke,h[ue])){lt=ue;break}lt===void 0?ke(Ke,_,v,!0):(Yt[lt-te]=x+1,lt>=it?it=lt:ot=!0,w(Ke,h[lt],g,null,_,v,$,E,k),xe++)}const ks=ot?ca(Yt):Ut;for(ue=ks.length-1,x=Ce-1;x>=0;x--){const Ke=te+x,lt=h[Ke],Es=h[Ke+1],Rs=Ke+1<H?Es.el||qi(Es):b;Yt[x]===0?w(null,lt,g,Rs,_,v,$,E,k):ot&&(ue<0||x!==ks[ue]?ze(lt,g,Rs,2):ue--)}}},ze=(f,h,g,b,_=null)=>{const{el:v,type:$,transition:E,children:k,shapeFlag:x}=f;if(x&6){ze(f.component.subTree,h,g,b);return}if(x&128){f.suspense.move(h,g,b);return}if(x&64){$.move(f,h,g,D);return}if($===fe){r(v,h,g);for(let A=0;A<k.length;A++)ze(k[A],h,g,b);r(f.anchor,h,g);return}if($===xr){P(f,h,g);return}if(b!==2&&x&1&&E)if(b===0)E.persisted&&!v[vr]?r(v,h,g):(E.beforeEnter(v),r(v,h,g),qe(()=>E.enter(v),_));else{const{leave:A,delayLeave:U,afterLeave:q}=E,te=()=>{f.ctx.isUnmounted?s(v):r(v,h,g)},de=()=>{const ue=v._isLeaving||!!v[vr];v._isLeaving&&v[vr](!0),E.persisted&&!ue?te():A(v,()=>{te(),q&&q()})};U?U(v,te,de):de()}else r(v,h,g)},ke=(f,h,g,b=!1,_=!1)=>{const{type:v,props:$,ref:E,children:k,dynamicChildren:x,shapeFlag:H,patchFlag:A,dirs:U,cacheIndex:q,memo:te}=f;if(A===-2&&(_=!1),E!=null&&(_t(),un(E,null,g,f,!0),xt()),q!=null&&(h.renderCache[q]=void 0),H&256){h.ctx.deactivate(f);return}const de=H&1&&U,ue=!Bt(f);let xe;if(ue&&(xe=$&&$.onVnodeBeforeUnmount)&&ct(xe,h,f),H&6)Ne(f.component,g,b);else{if(H&128){f.suspense.unmount(g,b);return}de&&Tt(f,null,h,"beforeUnmount"),H&64?f.type.remove(f,h,g,D,b):x&&!x.hasOnce&&(v!==fe||A>0&&A&64)?Re(x,h,g,!1,!0):(v===fe&&A&384||!_&&H&16)&&Re(k,h,g),b&&ve(f)}const Ce=te!=null&&q==null;(ue&&(xe=$&&$.onVnodeUnmounted)||de||Ce)&&qe(()=>{xe&&ct(xe,h,f),de&&Tt(f,null,h,"unmounted"),Ce&&(f.el=null)},g)},ve=f=>{const{type:h,el:g,anchor:b,transition:_}=f;if(h===fe){pe(g,b);return}if(h===xr){M(f);return}const v=()=>{s(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(f.shapeFlag&1&&_&&!_.persisted){const{leave:$,delayLeave:E}=_,k=()=>$(g,v);E?E(f.el,v,k):k()}else v()},pe=(f,h)=>{let g;for(;f!==h;)g=p(f),s(f),f=g;s(h)},Ne=(f,h,g)=>{const{bum:b,scope:_,job:v,subTree:$,um:E,m:k,a:x}=f;qs(k),qs(x),b&&Nn(b),_.stop(),v&&(v.flags|=8,ke($,f,h,g)),E&&qe(E,h),qe(()=>{f.isUnmounted=!0},h)},Re=(f,h,g,b=!1,_=!1,v=0)=>{for(let $=v;$<f.length;$++)ke(f[$],h,g,b,_)},y=f=>{if(f.shapeFlag&6)return y(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),g=h&&h[wc];return g?p(g):h};let O=!1;const T=(f,h,g)=>{let b;f==null?h._vnode&&(ke(h._vnode,null,null,!0),b=h._vnode.component):w(h._vnode||null,f,h,null,null,null,g),h._vnode=f,O||(O=!0,Ps(b),yi(),O=!1)},D={p:w,um:ke,m:ze,r:ve,mt:Q,mc:De,pc:Y,pbc:Pe,n:y,o:e};return{render:T,hydrate:void 0,createApp:zc(T)}}function _r({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function At({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function la(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ui(e,t,n=!1){const r=e.children,s=t.children;if(B(r)&&B(s))for(let o=0;o<r.length;o++){const i=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=yt(s[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Ui(i,l)),l.type===or&&(l.patchFlag===-1&&(l=s[o]=yt(l)),l.el=i.el),l.type===kt&&!l.el&&(l.el=i.el)}}function ca(e){const t=e.slice(),n=[0];let r,s,o,i,l;const c=e.length;for(r=0;r<c;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<u?o=l+1:i=l;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Hi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hi(t)}function qs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function qi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?qi(t.subTree):null}const Bi=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):vc(e)}const fe=Symbol.for("v-fgt"),or=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),xr=Symbol.for("v-stc"),dn=[];let We=null;function R(e=!1){dn.push(We=e?null:[])}function ua(){dn.pop(),We=dn[dn.length-1]||null}let bn=1;function zn(e,t=!1){bn+=e,e<0&&We&&t&&(We.hasOnce=!0)}function zi(e){return e.dynamicChildren=bn>0?We||Ut:null,ua(),bn>0&&We&&We.push(e),e}function F(e,t,n,r,s,o){return zi(N(e,t,n,r,s,o,!0))}function we(e,t,n,r,s){return zi(ne(e,t,n,r,s,!0))}function _n(e){return e?e.__v_isVNode===!0:!1}function Zt(e,t){return e.type===t.type&&e.key===t.key}const Ki=({key:e})=>e??null,Ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||je(e)||z(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,s=null,o=e===fe?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&Ln(t),scopeId:bi,slotScopeIds:null,children:n,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:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Te};return l?(ms(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ye(n)?8:16),bn>0&&!i&&We&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&We.push(c),c}const ne=fa;function fa(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Ri)&&(e=kt),_n(e)){const l=Gt(e,t,!0);return n&&ms(l,n),bn>0&&!o&&We&&(l.shapeFlag&6?We[We.indexOf(e)]=l:We.push(l)),l.patchFlag=-2,l}if(wa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:l,style:c}=t;l&&!ye(l)&&(t.class=Be(l)),ce(c)&&(as(c)&&!B(c)&&(c=Ae({},c)),t.style=ts(c))}const i=ye(e)?1:Bi(e)?128:Sc(e)?64:ce(e)?4:z(e)?2:0;return N(e,t,n,r,s,i,o,!0)}function da(e){return e?as(e)||ji(e)?Ae({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?ir(s||{},t):s,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ki(u),ref:t&&t.ref?n&&o?B(o)?o.concat(Ln(t)):[o,Ln(t)]:Ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==fe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ds(a,c.clone(a)),a}function et(e=" ",t=0){return ne(or,null,e,t)}function Oe(e="",t=!1){return t?(R(),we(kt,null,e)):ne(kt,null,e)}function ft(e){return e==null||typeof e=="boolean"?ne(kt):B(e)?ne(fe,null,e.slice()):_n(e)?yt(e):ne(or,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function ms(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ms(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!ji(t)?t._ctx=Te:s===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else z(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),r&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function ir(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Be([t.class,r.class]));else if(s==="style")t.style=ts([t.style,r.style]);else if(Qn(s)){const o=t[s],i=r[s];i&&o!==i&&!(B(o)&&o.includes(i))?t[s]=o?[].concat(o,i):i:i==null&&o==null&&!Jn(s)&&(t[s]=i)}else s!==""&&(t[s]=r[s])}return t}function ct(e,t,n,r=null){rt(e,t,7,[n,r])}const ha=Ai();let pa=0;function ma(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ha,o={uid:pa++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ql(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fi(r,s),emitsOptions:Pi(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Wc.bind(null,o),e.ce&&e.ce(o),o}let Ie=null;const ga=()=>Ie||Te;let Kn,Dr;{const e=Zn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Kn=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Dr=t("__VUE_SSR_SETTERS__",n=>xn=n)}const Cn=e=>{const t=Ie;return Kn(e),e.scope.on(),()=>{e.scope.off(),Kn(t)}},Bs=()=>{Ie&&Ie.scope.off(),Kn(null)};function Wi(e){return e.vnode.shapeFlag&4}let xn=!1;function ya(e,t=!1,n=!1){t&&Dr(t);const{props:r,children:s}=e.vnode,o=Wi(e);Zc(e,r,o,t),ra(e,s,n||t);const i=o?va(e,t):void 0;return t&&Dr(!1),i}function va(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lc);const{setup:r}=n;if(r){_t();const s=e.setupContext=r.length>1?_a(e):null,o=Cn(e),i=Rn(r,e,0,[e.props,s]),l=zo(i);if(xt(),o(),(l||e.sp)&&!Bt(e)&&wi(e),l){if(i.then(Bs,Bs),t)return i.then(c=>{zs(e,c)}).catch(c=>{nr(c,e,0)});e.asyncDep=i}else zs(e,i)}else Gi(e)}function zs(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=pi(t)),Gi(e)}function Gi(e,t,n){const r=e.type;e.render||(e.render=r.render||ht);{const s=Cn(e);_t();try{Vc(e)}finally{xt(),s()}}}const ba={get(e,t){return Me(e,"get",""),e[t]}};function _a(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ba),slots:e.slots,emit:e.emit,expose:t}}function lr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pi(cc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fn)return fn[n](e)},has(t,n){return n in t||n in fn}})):e.proxy}function xa(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function wa(e){return z(e)&&"__vccOpts"in e}const L=(e,t)=>hc(e,t,xn);function wn(e,t,n){try{zn(-1);const r=arguments.length;return r===2?ce(t)&&!B(t)?_n(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_n(n)&&(n=[n]),ne(e,t,n))}finally{zn(1)}}const Sa="3.5.35";let Ur;const Ks=typeof window<"u"&&window.trustedTypes;if(Ks)try{Ur=Ks.createPolicy("vue",{createHTML:e=>e})}catch{}const Qi=Ur?e=>Ur.createHTML(e):e=>e,ka="http://www.w3.org/2000/svg",Ea="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,Ws=gt&>.createElement("template"),Ra={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?gt.createElementNS(ka,e):t==="mathml"?gt.createElementNS(Ea,e):n?gt.createElement(e,{is:n}):gt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ws.innerHTML=Qi(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=Ws.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ca=Symbol("_vtc");function $a(e,t,n){const r=e[Ca];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Gs=Symbol("_vod"),Ta=Symbol("_vsh"),Aa=Symbol(""),Pa=/(?:^|;)\s*display\s*:/;function Ma(e,t,n){const r=e.style,s=ye(n);let o=!1;if(n&&!s){if(t)if(ye(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&rn(r,l,"")}else for(const i in t)n[i]==null&&rn(r,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Ia(e,i,!ye(t)&&t?t[i]:void 0,l)||rn(r,i,l):rn(r,i,"")}}else if(s){if(t!==n){const i=r[Aa];i&&(n+=";"+i),r.cssText=n,o=Pa.test(n)}}else t&&e.removeAttribute("style");Gs in e&&(e[Gs]=o?r.display:"",e[Ta]&&(r.display="none"))}const Qs=/\s*!important$/;function rn(e,t,n){if(B(n))n.forEach(r=>rn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Oa(e,t);Qs.test(n)?e.setProperty(It(r),n.replace(Qs,""),"important"):e[r]=n}}const Js=["Webkit","Moz","ms"],wr={};function Oa(e,t){const n=wr[t];if(n)return n;let r=Ve(t);if(r!=="filter"&&r in e)return wr[t]=r;r=Xn(r);for(let s=0;s<Js.length;s++){const o=Js[s]+r;if(o in e)return wr[t]=o}return t}function Ia(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ye(r)&&n===r}const Ys="http://www.w3.org/1999/xlink";function Xs(e,t,n,r,s,o=Ul(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ys,t.slice(6,t.length)):e.setAttributeNS(Ys,t,n):n==null||o&&!Qo(n)?e.removeAttribute(t):e.setAttribute(t,o?"":tt(n)?String(n):n)}function Zs(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Qi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Qo(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Vt(e,t,n,r){e.addEventListener(t,n,r)}function ja(e,t,n,r){e.removeEventListener(t,n,r)}const eo=Symbol("_vei");function Na(e,t,n,r,s=null){const o=e[eo]||(e[eo]={}),i=o[t];if(r&&i)i.value=r;else{const[l,c]=Fa(t);if(r){const u=o[t]=Da(r,s);Vt(e,l,u,c)}else i&&(ja(e,l,i,c),o[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function Fa(e){let t;if(to.test(e)){t={};let r;for(;r=e.match(to);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):It(e.slice(2)),t]}let Sr=0;const La=Promise.resolve(),Va=()=>Sr||(La.then(()=>Sr=0),Sr=Date.now());function Da(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(B(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const i=s.slice(),l=[r];for(let c=0;c<i.length&&!r._stopped;c++){const u=i[c];u&&rt(u,t,5,l)}}else rt(s,t,5,[r])};return n.value=e,n.attached=Va(),n}const no=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ua=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?$a(e,r,i):t==="style"?Ma(e,n,r):Qn(t)?Jn(t)||Na(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ha(e,t,r,i))?(Zs(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Xs(e,t,r,i,o,t!=="value")):e._isVueCE&&(qa(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(r)))?Zs(e,Ve(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Xs(e,t,r,i))};function Ha(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&no(t)&&z(n));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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return no(t)&&ye(n)?!1:t in e}function qa(e,t){const n=e._def.props;if(!n)return!1;const r=Ve(t);return Array.isArray(n)?n.some(s=>Ve(s)===r):Object.keys(n).some(s=>Ve(s)===r)}const ro=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Nn(t,n):t};function Ba(e){e.target.composing=!0}function so(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kr=Symbol("_assign");function oo(e,t,n){return t&&(e=e.trim()),n&&(e=es(e)),e}const io={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[kr]=ro(s);const o=r||s.props&&s.props.type==="number";Vt(e,t?"change":"input",i=>{i.target.composing||e[kr](oo(e.value,n,o))}),(n||o)&&Vt(e,"change",()=>{e.value=oo(e.value,n,o)}),t||(Vt(e,"compositionstart",Ba),Vt(e,"compositionend",so),Vt(e,"change",so))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[kr]=ro(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?es(e.value):e.value,c=t??"";if(l===c)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c)}},za=["ctrl","shift","alt","meta"],Ka={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)=>za.some(n=>e[`${n}Key`]&&!t.includes(n))},Ji=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i<t.length;i++){const l=Ka[t[i]];if(l&&l(s,t))return}return e(s,...o)}))},Wa=Ae({patchProp:Ua},Ra);let lo;function Ga(){return lo||(lo=oa(Wa))}const Qa=((...e)=>{const t=Ga().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Ya(r);if(!s)return;const o=t._component;!z(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Ja(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Ja(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ya(e){return ye(e)?document.querySelector(e):e}const Dt=typeof document<"u";function Yi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xa(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Yi(e.default)}const re=Object.assign;function Er(e,t){const n={};for(const r in t){const s=t[r];n[r]=st(s)?s.map(e):e(s)}return n}const hn=()=>{},st=Array.isArray;function co(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Xi=Symbol("");function Qt(e,t){return re(new Error,{type:e,[Xi]:!0},t)}function mt(e,t){return e instanceof Error&&Xi in e&&(t==null||!!(e.type&t))}const Za=Symbol(""),ao=Symbol(""),cr=Symbol(""),gs=Symbol(""),Hr=Symbol("");function ys(){return Xe(cr)}function jt(e){return Xe(gs)}const Zi=/#/g,eu=/&/g,tu=/\//g,nu=/=/g,ru=/\?/g,el=/\+/g,su=/%5B/g,ou=/%5D/g,tl=/%5E/g,iu=/%60/g,nl=/%7B/g,lu=/%7C/g,rl=/%7D/g,cu=/%20/g;function vs(e){return e==null?"":encodeURI(""+e).replace(lu,"|").replace(su,"[").replace(ou,"]")}function au(e){return vs(e).replace(nl,"{").replace(rl,"}").replace(tl,"^")}function qr(e){return vs(e).replace(el,"%2B").replace(cu,"+").replace(Zi,"%23").replace(eu,"%26").replace(iu,"`").replace(nl,"{").replace(rl,"}").replace(tl,"^")}function uu(e){return qr(e).replace(nu,"%3D")}function fu(e){return vs(e).replace(Zi,"%23").replace(ru,"%3F")}function du(e){return fu(e).replace(tu,"%2F")}function Wn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const hu=/\/$/,pu=e=>e.replace(hu,"");function Rr(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(r=t.slice(0,c),o=t.slice(c,l>0?l:t.length),s=e(o.slice(1))),l>=0&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=vu(r??t,n),{fullPath:r+o+i,path:r,query:s,hash:Wn(i)}}function mu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function uo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Jt(t.matched[r],n.matched[s])&&sl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!yu(e[n],t[n]))return!1;return!0}function yu(e,t){return st(e)?fo(e,t):st(t)?fo(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function fo(e,t){return st(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function vu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Rt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function bu(e){if(!e)if(Dt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pu(e)}const _u=/^[^#]+#/;function xu(e,t){return e.replace(_u,"#")+t}function wu(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ar=()=>({left:window.scrollX,top:window.scrollY});function Su(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=wu(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ho(e,t){return(history.state?history.state.position-t:-1)+e}const Br=new Map;function ku(e,t){Br.set(e,t)}function Eu(e){const t=Br.get(e);return Br.delete(e),t}function Ru(e){return typeof e=="string"||e&&typeof e=="object"}function ol(e){return typeof e=="string"||typeof e=="symbol"}function Cu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(el," "),o=s.indexOf("="),i=Wn(o<0?s:s.slice(0,o)),l=o<0?null:Wn(s.slice(o+1));if(i in t){let c=t[i];st(c)||(c=t[i]=[c]),c.push(l)}else t[i]=l}return t}function po(e){let t="";for(let n in e){const r=e[n];if(n=uu(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(st(r)?r.map(s=>s&&qr(s)):[r&&qr(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function $u(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=st(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function en(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $t(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(Qt(4,{from:n,to:t})):p instanceof Error?c(p):Ru(p)?c(Qt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),l())},a=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(a);e.length<3&&(d=d.then(u)),d.catch(p=>c(p))})}function Cr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Yi(c)){const u=(c.__vccOpts||c)[t];u&&o.push($t(u,n,r,i,l,s))}else{let u=c();o.push(()=>u.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Xa(a)?a.default:a;i.mods[l]=a,i.components[l]=d;const p=(d.__vccOpts||d)[t];return p&&$t(p,n,r,i,l,s)()}))}}return o}function Tu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(u=>Jt(u,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>Jt(u,c))||s.push(c))}return[n,r,s]}let Au=()=>location.protocol+"//"+location.host;function il(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),uo(l,"")}return uo(n,e)+r+s}function Pu(e,t,n,r){let s=[],o=[],i=null;const l=({state:p})=>{const m=il(e,location),S=n.value,w=t.value;let j=0;if(p){if(n.value=m,t.value=p,i&&i===S){i=null;return}j=w?p.position-w.position:0}else r(m);s.forEach(I=>{I(n.value,S,{delta:j,type:"pop",direction:j?j>0?"forward":"back":""})})};function c(){i=n.value}function u(p){s.push(p);const m=()=>{const S=s.indexOf(p);S>-1&&s.splice(S,1)};return o.push(m),m}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(re({},p.state,{scroll:ar()}),"")}}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:u,destroy:d}}function mo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ar():null}}function Mu(e){const{history:t,location:n}=window,r={value:il(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:Au()+e+c;try{t[a?"replaceState":"pushState"](u,"",p),s.value=u}catch(m){console.error(m),n[a?"replace":"assign"](p)}}function i(c,u){o(c,re({},t.state,mo(s.value.back,c,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=c}function l(c,u){const a=re({},s.value,t.state,{forward:c,scroll:ar()});o(a.current,a,!0),o(c,re({},mo(r.value,c,null),{position:a.position+1},u),!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Ou(e){e=bu(e);const t=Mu(e),n=Pu(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=re({location:"",base:e,go:r,createHref:xu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}const Iu={type:0,value:""},ju=/[a-zA-Z0-9_]/;function Nu(e){if(!e)return[[]];if(e==="/")return[[Iu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;)switch(c=e[l++],n){case 0:c==="\\"?(r=n,n=4):c==="/"?(u&&d(),i()):c===":"?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:c==="("?n=2:ju.test(c)?p():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=3:a+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),s}const go="[^/]+?",Fu={sensitive:!1,strict:!1,start:!0,end:!0},Lu=/[.+*?^${}()[\]/\\]/g;function Vu(e,t){const n=re({},Fu,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;d<u.length;d++){const p=u[d];let m=40+(n.sensitive?.25:0);if(p.type===0)d||(s+="/"),s+=p.value.replace(Lu,"\\$&"),m+=40;else if(p.type===1){const{value:S,repeatable:w,optional:j,regexp:I}=p;o.push({name:S,repeatable:w,optional:j});const C=I||go;if(C!==go){m+=10;try{new RegExp(`(${C})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${S}" (${C}): `+M.message)}}let P=w?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;d||(P=j&&u.length<2?`(?:/${P})`:"/"+P),j&&(P+="?"),s+=P,m+=20,j&&(m+=-8),w&&(m+=-20),C===".*"&&(m+=-50)}a.push(m)}r.push(a)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function l(u){const a=u.match(i),d={};if(!a)return null;for(let p=1;p<a.length;p++){const m=a[p]||"",S=o[p-1];d[S.name]=m&&S.repeatable?m.split("/"):m}return d}function c(u){let a="",d=!1;for(const p of e){(!d||!a.endsWith("/"))&&(a+="/"),d=!1;for(const m of p)if(m.type===0)a+=m.value;else if(m.type===1){const{value:S,repeatable:w,optional:j}=m,I=S in u?u[S]:"";if(st(I)&&!w)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const C=st(I)?I.join("/"):I;if(!C)if(j)p.length<2&&(a.endsWith("/")?a=a.slice(0,-1):d=!0);else throw new Error(`Missing required param "${S}"`);a+=C}}return a||"/"}return{re:i,score:r,keys:o,parse:l,stringify:c}}function Du(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ll(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=Du(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(yo(r))return 1;if(yo(s))return-1}return s.length-r.length}function yo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Uu={strict:!1,end:!0,sensitive:!1};function Hu(e,t,n){const r=Vu(Nu(e.path),n),s=re(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function qu(e,t){const n=[],r=new Map;t=co(Uu,t);function s(d){return r.get(d)}function o(d,p,m){const S=!m,w=bo(d);w.aliasOf=m&&m.record;const j=co(t,d),I=[w];if("alias"in d){const M=typeof d.alias=="string"?[d.alias]:d.alias;for(const ee of M)I.push(bo(re({},w,{components:m?m.record.components:w.components,path:ee,aliasOf:m?m.record:w})))}let C,P;for(const M of I){const{path:ee}=M;if(p&&ee[0]!=="/"){const _e=p.record.path,ie=_e[_e.length-1]==="/"?"":"/";M.path=p.record.path+(ee&&ie+ee)}if(C=Hu(M,p,j),m?m.alias.push(C):(P=P||C,P!==C&&P.alias.push(C),S&&d.name&&!_o(C)&&i(d.name)),cl(C)&&c(C),w.children){const _e=w.children;for(let ie=0;ie<_e.length;ie++)o(_e[ie],C,m&&m.children[ie])}m=m||C}return P?()=>{i(P)}:hn}function i(d){if(ol(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const p=Ku(d,n);n.splice(p,0,d),d.record.name&&!_o(d)&&r.set(d.record.name,d)}function u(d,p){let m,S={},w,j;if("name"in d&&d.name){if(m=r.get(d.name),!m)throw Qt(1,{location:d});j=m.record.name,S=re(vo(p.params,m.keys.filter(P=>!P.optional).concat(m.parent?m.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),d.params&&vo(d.params,m.keys.map(P=>P.name))),w=m.stringify(S)}else if(d.path!=null)w=d.path,m=n.find(P=>P.re.test(w)),m&&(S=m.parse(w),j=m.record.name,m.keys.forEach(P=>{P.optional&&!S[P.name]&&delete S[P.name]}));else{if(m=p.name?r.get(p.name):n.find(P=>P.re.test(p.path)),!m)throw Qt(1,{location:d,currentLocation:p});j=m.record.name,S=re({},p.params,d.params),w=m.stringify(S)}const I=[];let C=m;for(;C;)I.unshift(C.record),C=C.parent;return{name:j,path:w,params:S,matched:I,meta:zu(I)}}e.forEach(d=>o(d));function a(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:s}}function vo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Bu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Bu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function _o(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zu(e){return e.reduce((t,n)=>re(t,n.meta),{})}function Ku(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;ll(e,t[o])<0?r=o:n=o+1}const s=Wu(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Wu(e){let t=e;for(;t=t.parent;)if(cl(t)&&ll(e,t)===0)return t}function cl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xo(e){const t=Xe(cr),n=Xe(gs),r=L(()=>{const c=V(e.to);return t.resolve(c)}),s=L(()=>{const{matched:c}=r.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const p=d.findIndex(Jt.bind(null,a));if(p>-1)return p;const m=wo(c[u-2]);return u>1&&wo(a)===m&&d[d.length-1].path!==m?d.findIndex(Jt.bind(null,c[u-2])):p}),o=L(()=>s.value>-1&&Ju(n.params,r.value.params)),i=L(()=>s.value>-1&&s.value===n.matched.length-1&&sl(n.params,r.value.params));function l(c={}){if(Qu(c)){const u=t[V(e.replace)?"replace":"push"](V(e.to)).catch(hn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}function Gu(e){return e.length===1?e[0]:e}const $n=be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:xo,setup(e,{slots:t}){const n=tr(xo(e)),{options:r}=Xe(cr),s=L(()=>({[So(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[So(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Gu(t.default(n));return e.custom?o:wn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}});function Qu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ju(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!st(s)||s.length!==r.length||r.some((o,i)=>o.valueOf()!==s[i].valueOf()))return!1}return!0}function wo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const So=(e,t,n)=>e??t??n,Yu=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Xe(Hr),s=L(()=>e.route||r.value),o=Xe(ao,0),i=L(()=>{let u=V(o);const{matched:a}=s.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=L(()=>s.value.matched[i.value]);Fn(ao,L(()=>i.value+1)),Fn(Za,l),Fn(Hr,s);const c=ge();return an(()=>[c.value,l.value,e.name],([u,a,d],[p,m,S])=>{a&&(a.instances[d]=u,m&&m!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!Jt(a,m)||!p)&&(a.enterCallbacks[d]||[]).forEach(w=>w(u))},{flush:"post"}),()=>{const u=s.value,a=e.name,d=l.value,p=d&&d.components[a];if(!p)return ko(n.default,{Component:p,route:u});const m=d.props[a],S=m?m===!0?u.params:typeof m=="function"?m(u):m:null,j=wn(p,re({},S,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return ko(n.default,{Component:j,route:u})||j}}});function ko(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zr=Yu;function Xu(e){const t=qu(e.routes,e),n=e.parseQuery||Cu,r=e.stringifyQuery||po,s=e.history,o=en(),i=en(),l=en(),c=ac(Rt);let u=Rt;Dt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Er.bind(null,y=>""+y),d=Er.bind(null,du),p=Er.bind(null,Wn);function m(y,O){let T,D;return ol(y)?(T=t.getRecordMatcher(y),D=O):D=y,t.addRoute(D,T)}function S(y){const O=t.getRecordMatcher(y);O&&t.removeRoute(O)}function w(){return t.getRoutes().map(y=>y.record)}function j(y){return!!t.getRecordMatcher(y)}function I(y,O){if(O=re({},O||c.value),typeof y=="string"){const g=Rr(n,y,O.path),b=t.resolve({path:g.path},O),_=s.createHref(g.fullPath);return re(g,b,{params:p(b.params),redirectedFrom:void 0,href:_})}let T;if(y.path!=null)T=re({},y,{path:Rr(n,y.path,O.path).path});else{const g=re({},y.params);for(const b in g)g[b]==null&&delete g[b];T=re({},y,{params:d(g)}),O.params=d(O.params)}const D=t.resolve(T,O),Z=y.hash||"";D.params=a(p(D.params));const f=mu(r,re({},y,{hash:au(Z),path:D.path})),h=s.createHref(f);return re({fullPath:f,hash:Z,query:r===po?$u(y.query):y.query||{}},D,{redirectedFrom:void 0,href:h})}function C(y){return typeof y=="string"?Rr(n,y,c.value.path):re({},y)}function P(y,O){if(u!==y)return Qt(8,{from:O,to:y})}function M(y){return ie(y)}function ee(y){return M(re(C(y),{replace:!0}))}function _e(y,O){const T=y.matched[y.matched.length-1];if(T&&T.redirect){const{redirect:D}=T;let Z=typeof D=="function"?D(y,O):D;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=C(Z):{path:Z},Z.params={}),re({query:y.query,hash:y.hash,params:Z.path!=null?{}:y.params},Z)}}function ie(y,O){const T=u=I(y),D=c.value,Z=y.state,f=y.force,h=y.replace===!0,g=_e(T,D);if(g)return ie(re(C(g),{state:typeof g=="object"?re({},Z,g.state):Z,force:f,replace:h}),O||T);const b=T;b.redirectedFrom=O;let _;return!f&&gu(r,D,T)&&(_=Qt(16,{to:b,from:D}),ze(D,D,!0,!1)),(_?Promise.resolve(_):Pe(b,D)).catch(v=>mt(v)?mt(v,2)?v:ae(v):Y(v,b,D)).then(v=>{if(v){if(mt(v,2))return ie(re({replace:h},C(v.to),{state:typeof v.to=="object"?re({},Z,v.to.state):Z,force:f}),O||b)}else v=Ge(b,D,!0,h,Z);return He(b,D,v),v})}function De(y,O){const T=P(y,O);return T?Promise.reject(T):Promise.resolve()}function Ue(y){const O=pe.values().next().value;return O&&typeof O.runWithContext=="function"?O.runWithContext(y):y()}function Pe(y,O){let T;const[D,Z,f]=Tu(y,O);T=Cr(D.reverse(),"beforeRouteLeave",y,O);for(const g of D)g.leaveGuards.forEach(b=>{T.push($t(b,y,O))});const h=De.bind(null,y,O);return T.push(h),Re(T).then(()=>{T=[];for(const g of o.list())T.push($t(g,y,O));return T.push(h),Re(T)}).then(()=>{T=Cr(Z,"beforeRouteUpdate",y,O);for(const g of Z)g.updateGuards.forEach(b=>{T.push($t(b,y,O))});return T.push(h),Re(T)}).then(()=>{T=[];for(const g of f)if(g.beforeEnter)if(st(g.beforeEnter))for(const b of g.beforeEnter)T.push($t(b,y,O));else T.push($t(g.beforeEnter,y,O));return T.push(h),Re(T)}).then(()=>(y.matched.forEach(g=>g.enterCallbacks={}),T=Cr(f,"beforeRouteEnter",y,O,Ue),T.push(h),Re(T))).then(()=>{T=[];for(const g of i.list())T.push($t(g,y,O));return T.push(h),Re(T)}).catch(g=>mt(g,8)?g:Promise.reject(g))}function He(y,O,T){l.list().forEach(D=>Ue(()=>D(y,O,T)))}function Ge(y,O,T,D,Z){const f=P(y,O);if(f)return f;const h=O===Rt,g=Dt?history.state:{};T&&(D||h?s.replace(y.fullPath,re({scroll:h&&g&&g.scroll},Z)):s.push(y.fullPath,Z)),c.value=y,ze(y,O,T,h),ae()}let Ee;function Q(){Ee||(Ee=s.listen((y,O,T)=>{if(!Ne.listening)return;const D=I(y),Z=_e(D,Ne.currentRoute.value);if(Z){ie(re(Z,{replace:!0,force:!0}),D).catch(hn);return}u=D;const f=c.value;Dt&&ku(ho(f.fullPath,T.delta),ar()),Pe(D,f).catch(h=>mt(h,12)?h:mt(h,2)?(ie(re(C(h.to),{force:!0}),D).then(g=>{mt(g,20)&&!T.delta&&T.type==="pop"&&s.go(-1,!1)}).catch(hn),Promise.reject()):(T.delta&&s.go(-T.delta,!1),Y(h,D,f))).then(h=>{h=h||Ge(D,f,!1),h&&(T.delta&&!mt(h,8)?s.go(-T.delta,!1):T.type==="pop"&&mt(h,20)&&s.go(-1,!1)),He(D,f,h)}).catch(hn)}))}let G=en(),X=en(),J;function Y(y,O,T){ae(y);const D=X.list();return D.length?D.forEach(Z=>Z(y,O,T)):console.error(y),Promise.reject(y)}function Se(){return J&&c.value!==Rt?Promise.resolve():new Promise((y,O)=>{G.add([y,O])})}function ae(y){return J||(J=!y,Q(),G.list().forEach(([O,T])=>y?T(y):O()),G.reset()),y}function ze(y,O,T,D){const{scrollBehavior:Z}=e;if(!Dt||!Z)return Promise.resolve();const f=!T&&Eu(ho(y.fullPath,0))||(D||!T)&&history.state&&history.state.scroll||null;return us().then(()=>Z(y,O,f)).then(h=>h&&Su(h)).catch(h=>Y(h,y,O))}const ke=y=>s.go(y);let ve;const pe=new Set,Ne={currentRoute:c,listening:!0,addRoute:m,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:j,getRoutes:w,resolve:I,options:e,push:M,replace:ee,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:X.add,isReady:Se,install(y){y.component("RouterLink",$n),y.component("RouterView",zr),y.config.globalProperties.$router=Ne,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>V(c)}),Dt&&!ve&&c.value===Rt&&(ve=!0,M(s.location).catch(D=>{}));const O={};for(const D in Rt)Object.defineProperty(O,D,{get:()=>c.value[D],enumerable:!0});y.provide(cr,Ne),y.provide(gs,di(O)),y.provide(Hr,c);const T=y.unmount;pe.add(y),y.unmount=function(){pe.delete(y),pe.size<1&&(u=Rt,Ee&&Ee(),Ee=null,c.value=Rt,ve=!1,J=!1),T()}}};function Re(y){return y.reduce((O,T)=>O.then(()=>Ue(T)),Promise.resolve())}return Ne}const Eo=e=>e==="";const Zu=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Ro=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ef=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const tf=e=>{const t=ef(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ft={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const nf=Symbol("lucide-icons");function rf(){return Xe(nf,{})}const sf=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:s,"stroke-width":o,size:i,color:l,...c},{slots:u})=>{const{size:a,color:d,strokeWidth:p=2,absoluteStrokeWidth:m=!1,class:S=""}=rf(),w=L(()=>{const j=Eo(n)||Eo(r)||n===!0||r===!0||m===!0,I=s||o||p||Ft["stroke-width"];return j?Number(I)*24/Number(i??a??Ft.width):I});return wn("svg",{...Ft,...c,width:i??a??Ft.width,height:i??a??Ft.height,stroke:l??d??Ft.stroke,"stroke-width":w.value,class:Zu("lucide",S,...e?[`lucide-${Ro(tf(e))}-icon`,`lucide-${Ro(e)}`]:["lucide-icon"])},[...t.map(j=>wn(...j)),...u.default?[u.default()]:[]])};const W=(e,t)=>(n,{slots:r,attrs:s})=>wn(sf,{...s,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0);const of=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],lf=W("archive",of);const cf=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],af=W("arrow-down",cf);const uf=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ff=W("arrow-left",uf);const df=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],hf=W("arrow-right",df);const pf=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],mf=W("arrow-up-right",pf);const gf=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],yf=W("arrow-up",gf);const vf=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["circle",{cx:"8",cy:"10",r:"2",key:"1xl4ub"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"10",r:"2",key:"r14t7q"}],["path",{d:"m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3",key:"l01ucn"}]],bf=W("cassette-tape",vf);const _f=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],al=W("check",_f);const xf=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ul=W("chevron-down",xf);const wf=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Sf=W("chevron-left",wf);const kf=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fl=W("chevron-right",kf);const Ef=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Tn=W("circle-alert",Ef);const Rf=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Cf=W("circle",Rf);const $f=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]],Tf=W("disc-3",$f);const Af=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Pf=W("disc",Af);const Mf=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Of=W("image",Mf);const If=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],jf=W("library",If);const Nf=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Ff=W("list",Nf);const Lf=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Vf=W("log-out",Lf);const Df=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],Uf=W("mic-vocal",Df);const Hf=[["path",{d:"M5 12h14",key:"1ays0h"}]],qf=W("minus",Hf);const Bf=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],zf=W("palette",Bf);const Kf=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Wf=W("panel-left-close",Kf);const Gf=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Qf=W("panel-left-open",Gf);const Jf=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Yf=W("plus",Jf);const Xf=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],dl=W("puzzle",Xf);const Zf=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ed=W("search-x",Zf);const td=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nd=W("search",td);const rd=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sd=W("settings",rd);const od=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],id=W("shield-check",od);const ld=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],cd=W("square",ld);const ad=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],bs=W("sun",ad);const ud=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],fd=W("tags",ud);const dd=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hd=W("trash-2",dd);const pd=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],md=W("user-minus",pd);const gd=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],yd=W("user-plus",gd);const vd=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],bd=W("user",vd);const _d=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],xd=W("users-round",_d);const wd=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Sd=W("users",wd);const kd=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hl=W("x",kd),Ed=/\{[^{}]+\}/g,Rd=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function Cd(){return Math.random().toString(36).slice(2,11)}function $d(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:s,bodySerializer:o,pathSerializer:i,headers:l,requestInitExt:c=void 0,...u}={...e};c=Rd()?c:void 0,t=To(t);const a=[];async function d(p,m){const{baseUrl:S,fetch:w=r,Request:j=n,headers:I,params:C={},parseAs:P="json",querySerializer:M,bodySerializer:ee=o??Ad,pathSerializer:_e,body:ie,middleware:De=[],...Ue}=m||{};let Pe=t;S&&(Pe=To(S)??t);let He=typeof s=="function"?s:Co(s);M&&(He=typeof M=="function"?M:Co({...typeof s=="object"?s:{},...M}));const Ge=_e||i||Td,Ee=ie===void 0?void 0:ee(ie,$o(l,I,C.header)),Q=$o(Ee===void 0||Ee instanceof FormData?{}:{"Content-Type":"application/json"},l,I,C.header),G=[...a,...De],X={redirect:"follow",...u,...Ue,body:Ee,headers:Q};let J,Y,Se=new j(Pd(p,{baseUrl:Pe,params:C,querySerializer:He,pathSerializer:Ge}),X),ae;for(const ve in Ue)ve in Se||(Se[ve]=Ue[ve]);if(G.length){J=Cd(),Y=Object.freeze({baseUrl:Pe,fetch:w,parseAs:P,querySerializer:He,bodySerializer:ee,pathSerializer:Ge});for(const ve of G)if(ve&&typeof ve=="object"&&typeof ve.onRequest=="function"){const pe=await ve.onRequest({request:Se,schemaPath:p,params:C,options:Y,id:J});if(pe)if(pe instanceof j)Se=pe;else if(pe instanceof Response){ae=pe;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!ae){try{ae=await w(Se,c)}catch(ve){let pe=ve;if(G.length)for(let Ne=G.length-1;Ne>=0;Ne--){const Re=G[Ne];if(Re&&typeof Re=="object"&&typeof Re.onError=="function"){const y=await Re.onError({request:Se,error:pe,schemaPath:p,params:C,options:Y,id:J});if(y){if(y instanceof Response){pe=void 0,ae=y;break}if(y instanceof Error){pe=y;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(pe)throw pe}if(G.length)for(let ve=G.length-1;ve>=0;ve--){const pe=G[ve];if(pe&&typeof pe=="object"&&typeof pe.onResponse=="function"){const Ne=await pe.onResponse({request:Se,response:ae,schemaPath:p,params:C,options:Y,id:J});if(Ne){if(!(Ne instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");ae=Ne}}}}const ze=ae.headers.get("Content-Length");if(ae.status===204||Se.method==="HEAD"||ze==="0"&&!ae.headers.get("Transfer-Encoding")?.includes("chunked"))return ae.ok?{data:void 0,response:ae}:{error:void 0,response:ae};if(ae.ok)return{data:await(async()=>{if(P==="stream")return ae.body;if(P==="json"&&!ze){const pe=await ae.text();return pe?JSON.parse(pe):void 0}return await ae[P]()})(),response:ae};let ke=await ae.text();try{ke=JSON.parse(ke)}catch{}return{error:ke,response:ae}}return{request(p,m,S){return d(m,{...S,method:p.toUpperCase()})},GET(p,m){return d(p,{...m,method:"GET"})},PUT(p,m){return d(p,{...m,method:"PUT"})},POST(p,m){return d(p,{...m,method:"POST"})},DELETE(p,m){return d(p,{...m,method:"DELETE"})},OPTIONS(p,m){return d(p,{...m,method:"OPTIONS"})},HEAD(p,m){return d(p,{...m,method:"HEAD"})},PATCH(p,m){return d(p,{...m,method:"PATCH"})},TRACE(p,m){return d(p,{...m,method:"TRACE"})},use(...p){for(const m of p)if(m){if(typeof m!="object"||!("onRequest"in m||"onResponse"in m||"onError"in m))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");a.push(m)}},eject(...p){for(const m of p){const S=a.indexOf(m);S!==-1&&a.splice(S,1)}}}}function ur(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function pl(e,t,n){if(!t||typeof t!="object")return"";const r=[],s={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const l in t)r.push(l,n.allowReserved===!0?t[l]:encodeURIComponent(t[l]));const i=r.join(",");switch(n.style){case"form":return`${e}=${i}`;case"label":return`.${i}`;case"matrix":return`;${e}=${i}`;default:return i}}for(const i in t){const l=n.style==="deepObject"?`${e}[${i}]`:i;r.push(ur(l,t[i],n))}const o=r.join(s);return n.style==="label"||n.style==="matrix"?`${s}${o}`:o}function ml(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const o={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",i=(n.allowReserved===!0?t:t.map(l=>encodeURIComponent(l))).join(o);switch(n.style){case"simple":return i;case"label":return`.${i}`;case"matrix":return`;${e}=${i}`;default:return`${e}=${i}`}}const r={simple:",",label:".",matrix:";"}[n.style]||"&",s=[];for(const o of t)n.style==="simple"||n.style==="label"?s.push(n.allowReserved===!0?o:encodeURIComponent(o)):s.push(ur(e,o,n));return n.style==="label"||n.style==="matrix"?`${r}${s.join(r)}`:s.join(r)}function Co(e){return function(n){const r=[];if(n&&typeof n=="object")for(const s in n){const o=n[s];if(o!=null){if(Array.isArray(o)){if(o.length===0)continue;r.push(ml(s,o,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof o=="object"){r.push(pl(s,o,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}r.push(ur(s,o,e))}}return r.join("&")}}function Td(e,t){let n=e;for(const r of e.match(Ed)??[]){let s=r.substring(1,r.length-1),o=!1,i="simple";if(s.endsWith("*")&&(o=!0,s=s.substring(0,s.length-1)),s.startsWith(".")?(i="label",s=s.substring(1)):s.startsWith(";")&&(i="matrix",s=s.substring(1)),!t||t[s]===void 0||t[s]===null)continue;const l=t[s];if(Array.isArray(l)){n=n.replace(r,ml(s,l,{style:i,explode:o}));continue}if(typeof l=="object"){n=n.replace(r,pl(s,l,{style:i,explode:o}));continue}if(i==="matrix"){n=n.replace(r,`;${ur(s,l)}`);continue}n=n.replace(r,i==="label"?`.${encodeURIComponent(l)}`:encodeURIComponent(l))}return n}function Ad(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function Pd(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith("?")&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function $o(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const r=n instanceof Headers?n.entries():Object.entries(n);for(const[s,o]of r)if(o===null)t.delete(s);else if(Array.isArray(o))for(const i of o)t.append(s,i);else o!==void 0&&t.set(s,o)}return t}function To(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Ao="/backend",Md="__SUMMER_ADMIN_BASE__";function Od(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===Md||!t.startsWith("/"))return Ao;const n=t.replace(/\/+$/,"");return n===""?Ao:n}const Po=Od(),gl={base:Po,api:`${Po}/api/v1`},Id="XMLHttpRequest";let Kr=null,yl=null,tn=null;const $r=new WeakMap;function jd(e){Kr=e}function Nd(e){yl=e}function Fd(e){return new URL(e.url,"http://local").pathname}function Mo(e){const t=Fd(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function vl(){return tn||(tn=(async()=>{try{const{data:e,response:t}=await Je.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return yl?.(typeof n=="number"?n:null),!0}catch{return!1}finally{tn=null}})(),tn)}const Ld={onRequest({request:e}){return e.headers.set("X-Requested-With",Id),Mo(e)||$r.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||Mo(e))return t;const n=$r.get(e);if($r.delete(e),!n||!await vl())return Kr?.(),t;const r=await globalThis.fetch(n);return r.status===401&&Kr?.(),r}},Je=$d({baseUrl:gl.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Je.use(Ld);const _s=ge({}),bl=ge(typeof document>"u"?"pl":document.documentElement.lang||"pl");function Vd(e,t){_s.value=e,t&&(bl.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function Dd(){const{data:e,response:t}=await Je.GET("/lang");!t.ok||!e||Vd(e.data,e.meta.locale)}function Oo(e){const t=e.codePointAt(0);if(t===void 0)return e;const n=String.fromCodePoint(t);return n.toUpperCase()+e.slice(n.length)}function Wr(e,t={}){if(e==="")return e;const n=[];for(const[s,o]of Object.entries(t)){const i=s.replace(/^:/,"");if(i==="")continue;const l=String(o);n.push([`:${Oo(i)}`,Oo(l)]),n.push([`:${i.toUpperCase()}`,l.toUpperCase()]),n.push([`:${i}`,l])}n.sort((s,o)=>o[0].length-s[0].length);let r=e;for(const[s,o]of n)r=r.split(s).join(o);return r}const Io=new Map;function Ud(e,t=bl.value){let n=Io.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}Io.set(t,n)}return n?n.select(e):"other"}function Vn(e,t,n={}){if(!e)return"";if(t===void 0)return Wr(e.other??"",n);const r=e[Ud(t)]??e.other??"";return Wr(r,{count:t,...n})}function le(e,t={}){const n=_s.value[e]?.other;return n===void 0?e:Wr(n,t)}function Hd(e,t,n={}){const r=_s.value[e];return r?Vn(r,t,n):e}const jo={archive:lf,"arrow-down":af,"arrow-left":ff,"arrow-right":hf,"arrow-up":yf,"arrow-up-right":mf,"cassette-tape":bf,check:al,"chevron-down":ul,"chevron-left":Sf,"chevron-right":fl,circle:Cf,"circle-alert":Tn,disc:Pf,"disc-3":Tf,image:Of,library:jf,list:Ff,"log-out":Vf,"mic-vocal":Uf,minus:qf,palette:zf,"panel-left-close":Wf,"panel-left-open":Qf,plus:Yf,puzzle:dl,search:nd,"search-x":ed,settings:sd,"shield-check":id,sun:bs,tags:fd,"trash-2":hd,user:bd,"user-minus":md,"user-plus":yd,users:Sd,"users-round":xd,x:hl},qd={"icon-archive":"archive","icon-circle":"circle","icon-list-ul":"list","icon-tags":"tags","icon-user":"user","icon-search":"search","icon-cog":"settings","icon-users":"users"},No=cd;function _l(e){if(!e)return No;const t=e.trim();return jo[t]??jo[qd[t]??""]??No}const Bd=/^[A-Za-z0-9_-]+$/;function fr(e){const t=e.split(".");if(t.length!==3||!t.every(o=>Bd.test(o)))return null;const[n,r,s]=t;return{vendor:n,plugin:r,controller:s}}function Sn(e){const t=fr(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function Gr(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function xl(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return fr(n)?n:null}function Fo(e){const t=fr(e);return t?`${t.vendor}.${t.plugin}`:null}const Qr=ge([]);async function wl(){const{data:e,response:t}=await Je.GET("/navigation");return Qr.value=t.ok&&e?e.data:[],Qr.value}const xs=L(()=>Qr.value.filter(e=>e.sideMenu.length>0).map((e,t)=>({entry:e,index:t})).sort((e,t)=>e.entry.order-t.entry.order||e.index-t.index).map(({entry:e})=>e));function Sl(e){for(const t of e.sideMenu){const n=Sn(t.controller);if(n)return n}return Sn(e.controller)}function ws(e,t){const n=`${e}.${t}`;return xs.value.find(r=>Fo(r.controller)===n||r.sideMenu.some(s=>Fo(s.controller)===n))??null}function zd(){for(const e of xs.value){const t=Sl(e);if(t)return t}return null}const Kd=["aria-label"],Wd={class:"mb-3.5 flex size-10 items-center justify-center rounded-inner bg-accent-soft",title:"SummerCMS"},Gd=be({__name:"PluginRail",setup(e){const t=jt(),n=L(()=>ws(String(t.params.vendor??""),String(t.params.plugin??""))),r=L(()=>xs.value.map(s=>({entry:s,to:Sl(s)??"/",icon:_l(s.icon),current:n.value?.code===s.code})));return(s,o)=>(R(),F("nav",{"aria-label":V(le)("backend::lang.nav.plugins"),class:"flex w-rail shrink-0 flex-col items-center gap-1.5 border-r border-side-border bg-side pt-3.5 pb-3"},[N("span",Wd,[ne(V(bs),{size:22,class:"text-accent","aria-hidden":"true"})]),(R(!0),F(fe,null,Qe(r.value,i=>(R(),we(V($n),{key:i.entry.code,to:i.to,"aria-current":i.current?"page":void 0,class:Be([i.current?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[68px] flex-col items-center gap-1 rounded-inner px-1.5 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline"])},{default:St(()=>[(R(),we(Wt(i.icon),{size:20,"aria-hidden":"true"})),N("span",null,K(i.entry.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,Kd))}}),Qd=["aria-label"],Jd={class:"mb-3.5 flex h-10 items-center px-2"},Yd={class:"text-[16px] font-bold"},Xd=be({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=jt(),r=L(()=>xl(n.path)),s=L(()=>t.entry.sideMenu.flatMap(o=>{const i=Sn(o.controller);return i?[{item:o,to:i,icon:_l(o.icon),current:r.value===o.controller}]:[]}));return(o,i)=>(R(),F("aside",{"aria-label":V(le)("backend::lang.nav.sections"),class:"flex w-panel shrink-0 flex-col gap-0.5 border-r border-border bg-surface px-3 py-3.5"},[N("div",Jd,[N("span",Yd,K(e.entry.label),1)]),(R(!0),F(fe,null,Qe(s.value,l=>(R(),we(V($n),{key:l.item.code,to:l.to,"aria-current":l.current?"page":void 0,class:Be([l.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline"])},{default:St(()=>[(R(),we(Wt(l.icon),{size:18,"aria-hidden":"true"})),N("span",null,K(l.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,Qd))}}),Zd=4e3,kn=ge([]),Jr=new Map;let eh=1;const th=yn(kn);function Tr(e,t="success"){const n=eh++;return kn.value=[...kn.value,{id:n,text:e,tone:t}],Jr.set(n,setTimeout(()=>kl(n),Zd)),n}function kl(e){const t=Jr.get(e);t!==void 0&&(clearTimeout(t),Jr.delete(e)),kn.value=kn.value.filter(n=>n.id!==e)}const nh={class:"pointer-events-none fixed inset-x-0 bottom-[88px] z-50 flex flex-col items-center gap-2 px-4"},rh=["role","data-tone"],sh={class:"font-medium"},oh=["aria-label","onClick"],ih=be({__name:"Toast",setup(e){return(t,n)=>(R(),F("div",nh,[(R(!0),F(fe,null,Qe(V(th),r=>(R(),F("div",{key:r.id,role:r.tone==="danger"?"alert":"status","data-tone":r.tone,class:"pointer-events-auto flex max-w-[560px] items-center gap-3 rounded-[14px] bg-[#1d2740] py-3 pr-2.5 pl-3.5 text-white shadow-toast"},[N("span",{class:Be([r.tone==="danger"?"bg-[#f58a8a] text-[#1d2740]":"bg-accent text-on-accent","flex size-[26px] shrink-0 items-center justify-center rounded-full"]),"aria-hidden":"true"},[r.tone==="danger"?(R(),we(V(Tn),{key:0,size:16})):(R(),we(V(al),{key:1,size:16}))],2),N("span",sh,K(r.text),1),N("button",{type:"button","aria-label":V(le)("backend::lang.form.close"),class:"flex size-8 items-center justify-center rounded-pager text-[#c3cbda] hover:bg-side-hover hover:text-white",onClick:s=>V(kl)(r.id)},[ne(V(hl),{size:16,"aria-hidden":"true"})],8,oh)],8,rh))),128))]))}}),Gn=ge(null),El=ge(null);let pn=null;function Rl(e){Cl(),El.value=e,!(e===null||e<=0)&&(pn=setTimeout(()=>{pn=null,vl()},e*800))}function Cl(){pn!==null&&(clearTimeout(pn),pn=null)}Nd(Rl);const sn=yn(Gn);async function lh(e,t){const{data:n,response:r}=await Je.POST("/auth/login",{body:{login:e,password:t}});return!r.ok||!n?!1:(Rl(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function $l(){const{data:e,response:t}=await Je.GET("/auth/me");return Gn.value=t.ok&&e?e.data:null,Gn.value}function ch(){Cl(),Gn.value=null,El.value=null}const ah={class:"flex min-h-screen bg-bg text-text"},uh={class:"flex min-w-0 flex-1 flex-col"},fh={class:"flex h-header shrink-0 items-center justify-between border-b border-border bg-surface pr-6 pl-8"},dh=["aria-label"],hh={class:"font-semibold","aria-current":"page"},ph={key:0,class:"flex h-input items-center gap-2.5 rounded-inner px-2"},mh={class:"flex size-[34px] items-center justify-center rounded-full bg-accent text-[13px] font-bold text-on-accent","aria-hidden":"true"},gh={class:"flex flex-col leading-tight"},yh={class:"font-semibold"},vh={key:0,class:"text-[12px] text-muted"},bh={class:"min-w-0 flex-1 px-8 py-7"},_h=be({__name:"AppShell",setup(e){const t=jt(),n=L(()=>ws(String(t.params.vendor??""),String(t.params.plugin??""))),r=L(()=>{const i=xl(t.path);return n.value?.sideMenu.find(l=>l.controller===i)??null}),s=L(()=>{const i=sn.value;if(!i)return"";const l=`${i.first_name} ${i.last_name}`.trim();return l===""?i.login:l}),o=L(()=>s.value.split(/\s+/).filter(Boolean).slice(0,2).map(i=>i.charAt(0).toUpperCase()).join(""));return(i,l)=>(R(),F("div",ah,[ne(Gd),n.value?(R(),we(Xd,{key:0,entry:n.value},null,8,["entry"])):Oe("",!0),N("div",uh,[N("header",fh,[N("nav",{"aria-label":V(le)("backend::lang.nav.breadcrumbs"),class:"flex items-center gap-2"},[n.value?(R(),F(fe,{key:0},[N("span",{class:Be(r.value?"text-muted":"font-semibold")},K(n.value.label),3),r.value?(R(),F(fe,{key:0},[ne(V(fl),{size:14,class:"text-muted","aria-hidden":"true"}),N("span",hh,K(r.value.label),1)],64)):Oe("",!0)],64)):Oe("",!0)],8,dh),V(sn)?(R(),F("div",ph,[N("span",mh,K(o.value),1),N("span",gh,[N("span",yh,K(s.value),1),V(sn).role?(R(),F("span",vh,K(V(sn).role.name),1)):Oe("",!0)])])):Oe("",!0)]),N("main",bh,[jr(i.$slots,"default")])]),ne(ih)]))}}),xh=be({__name:"App",setup(e){const t=jt(),n=L(()=>t.meta.shell===!0);return(r,s)=>n.value?(R(),we(_h,{key:0},{default:St(()=>[ne(V(zr),null,{default:St(({Component:o,route:i})=>[(R(),we(Wt(o),{key:i.path}))]),_:1})]),_:1})):(R(),we(V(zr),{key:1}))}}),wh={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},Sh={class:"flex w-full max-w-[400px] flex-col gap-6"},kh={class:"flex items-center justify-center gap-3"},Eh={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},Rh={class:"text-[22px] font-bold tracking-[-0.02em]"},Ch={class:"flex flex-col gap-1.5"},$h={class:"font-semibold"},Th={class:"flex flex-col gap-1.5"},Ah={class:"font-semibold"},Ph=["aria-invalid"],Mh={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},Oh=["disabled"],Ih=be({__name:"LoginView",setup(e){const t=jt(),n=ys(),r=ge(""),s=ge(""),o=ge(!1),i=ge(!1);async function l(){if(!i.value){i.value=!0,o.value=!1;try{if(!await lh(r.value.trim(),s.value)||!await $l()){o.value=!0;return}s.value="",await wl(),await n.replace(Pl(t.query.redirect)??"/")}finally{i.value=!1}}}return(c,u)=>(R(),F("main",wh,[N("div",Sh,[N("div",kh,[N("span",Eh,[ne(V(bs),{size:20,class:"text-accent","aria-hidden":"true"})]),u[2]||(u[2]=N("span",{class:"text-[18px] font-bold text-white"},[et("Summer"),N("span",{class:"text-accent"},"CMS")],-1))]),N("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:Ji(l,["prevent"])},[N("h1",Rh,K(V(le)("backend::lang.auth.title")),1),N("label",Ch,[N("span",$h,K(V(le)("backend::lang.auth.login")),1),Ms(N("input",{"onUpdate:modelValue":u[0]||(u[0]=a=>r.value=a),name:"login",type:"text",autocomplete:"username",required:"",class:"h-input rounded-control border border-[#d2d8e2] bg-white px-3.5"},null,512),[[io,r.value]])]),N("label",Th,[N("span",Ah,K(V(le)("backend::lang.auth.password")),1),Ms(N("input",{"onUpdate:modelValue":u[1]||(u[1]=a=>s.value=a),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":o.value?"true":void 0,class:Be([o.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,Ph),[[io,s.value]])]),o.value?(R(),F("div",Mh,[ne(V(Tn),{size:18,"aria-hidden":"true"}),N("span",null,K(V(le)("backend::lang.auth.invalid")),1)])):Oe("",!0),N("button",{type:"submit",disabled:i.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},K(V(le)("backend::lang.auth.submit")),9,Oh)],32)])]))}}),jh=/^\d+$/;function Tl(e,t,n){const r=fr(t),s=Sn(t);if(!r||!s)return"/";const i=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(a=>a!==""),l=[r.vendor,r.plugin,r.controller];if(!l.every((a,d)=>i[d]?.toLowerCase()===a.toLowerCase()))return s;const u=i.slice(l.length);if(u.length===0)return s;if(u.length===1&&u[0]==="create")return`${s}/create`;if(u.length===2&&u[0]==="update"){const a=u[1]===":id"?String(n??""):u[1]??"";return jh.test(a)?`${s}/${a}`:s}return s}const Nh={class:"overflow-x-auto"},Fh={class:"w-full min-w-[640px] border-collapse text-left"},Lh={class:"h-row-head border-y border-border bg-subtle"},Vh=["aria-busy"],Dh={key:1},Uh=["colspan"],Hh=["onClick"],qh=be({__name:"DataTable",props:{columns:{},rows:{},loading:{type:Boolean},emptyText:{},rowLink:{type:Function}},setup(e){const t=e,n=ys();function r(c){return t.rowLink?t.rowLink(c):null}function s(c,u){if(c.target?.closest("a, button, input, label"))return;const d=r(u);d&&n.push(d)}function o(c,u){return i(c[u.key])}function i(c){if(c==null||c==="")return"—";if(Array.isArray(c)){const u=c.map(i).filter(a=>a!=="—");return u.length===0?"—":u.join(", ")}return typeof c=="boolean"?le(c?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof c=="object"?"—":String(c)}function l(c,u){const a=c.id;return typeof a=="number"||typeof a=="string"?String(a):`row-${u}`}return(c,u)=>(R(),F("div",Nh,[N("table",Fh,[N("thead",null,[N("tr",Lh,[(R(!0),F(fe,null,Qe(e.columns,a=>(R(),F("th",{key:a.key,scope:"col",class:"px-3.5 text-[12px] font-semibold text-muted first:pl-5 last:pr-5"},K(a.label),1))),128))])]),N("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(R(),F(fe,{key:0},Qe(8,a=>N("tr",{key:`skeleton-${a}`,class:"h-row border-b border-border"},[(R(!0),F(fe,null,Qe(e.columns,d=>(R(),F("td",{key:d.key,class:"px-3.5 first:pl-5 last:pr-5"},[...u[0]||(u[0]=[N("span",{class:"block h-3 w-3/5 rounded-[6px] bg-skel"},null,-1)])]))),128))])),64)):e.rows.length===0?(R(),F("tr",Dh,[N("td",{colspan:Math.max(e.columns.length,1),class:"px-5 py-20 text-center text-muted"},K(e.emptyText??V(le)("backend::lang.list.no_records")),9,Uh)])):(R(!0),F(fe,{key:2},Qe(e.rows,(a,d)=>(R(),F("tr",{key:l(a,d),class:Be([r(a)?"cursor-pointer hover:bg-hover":"","h-row border-b border-border"]),onClick:p=>s(p,a)},[(R(!0),F(fe,null,Qe(e.columns,(p,m)=>(R(),F("td",{key:p.key,class:Be([m===0?"font-semibold":"text-muted","px-3.5 first:pl-5 last:pr-5"])},[m===0&&r(a)?(R(),we(V($n),{key:0,to:r(a),class:"text-text no-underline"},{default:St(()=>[et(K(o(a,p)),1)]),_:2},1032,["to"])):(R(),F(fe,{key:1},[et(K(o(a,p)),1)],64))],2))),128))],10,Hh))),128))],8,Vh)])]))}}),Bh={class:"flex flex-col gap-5"},zh={class:"text-[26px] font-bold tracking-[-0.02em]"},Kh={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},Wh={key:0,role:"alert",class:"px-5 py-4 text-danger"},Gh={class:"border-t border-border px-5 py-3.5 text-[13px] text-muted"},Qh=be({__name:"ListView",setup(e){const t=jt(),n=L(()=>({vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")})),r=ge(null),s=ge([]),o=ge(null),i=ge(!0),l=ge(!1),c=L(()=>{if(r.value?.title)return r.value.title;const m=Gr(n.value);return ws(n.value.vendor,n.value.plugin)?.sideMenu.find(w=>w.controller===m)?.label??m}),u=L(()=>{const m=o.value;if(!m||m.total===0)return le("backend::lang.list.no_results");const S=(m.page-1)*m.per_page+1,w=Math.min(m.page*m.per_page,m.total);return le("backend::lang.list.pagination_range",{from:S,to:w,total:m.total})});function a(m){const S=r.value?.recordUrl,w=m.id;return!S||typeof w!="number"&&typeof w!="string"?null:Tl(S,Gr(n.value),w)}let d=0;async function p(){const m=++d;i.value=!0,l.value=!1;const S={path:n.value},[w,j]=await Promise.all([Je.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:S}),Je.GET("/{vendor}/{plugin}/{controller}",{params:S})]);m===d&&(r.value=w.data?.data??null,s.value=j.data?.data??[],o.value=j.data?.meta??null,l.value=!w.data||!j.data,i.value=!1)}return an(n,p,{immediate:!0,deep:!0}),(m,S)=>(R(),F("section",Bh,[N("header",null,[N("h1",zh,K(c.value),1)]),N("div",Kh,[l.value&&!i.value?(R(),F("p",Wh,K(V(le)("backend::lang.list.load_failed")),1)):(R(),we(qh,{key:1,columns:r.value?.columns??[],rows:s.value,loading:i.value,"empty-text":r.value?.noRecordsMessage,"row-link":a},null,8,["columns","rows","loading","empty-text"])),N("footer",Gh,K(i.value?V(le)("backend::lang.list.loading"):u.value),1)])]))}}),Jh={key:0,role:"alert","data-error-banner":"",class:"flex items-start gap-3 rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},Yh={class:"flex flex-col gap-1"},Xh=be({__name:"FormErrorBanner",props:{errors:{},fieldNames:{}},setup(e){const t=e,n=L(()=>Object.keys(t.errors).length),r=L(()=>Object.entries(t.errors).filter(([s])=>!t.fieldNames.includes(s)).flatMap(([,s])=>s));return(s,o)=>n.value>0?(R(),F("div",Jh,[ne(V(Tn),{size:20,class:"mt-px shrink-0","aria-hidden":"true"}),N("div",Yh,[N("p",null,[N("strong",null,K(V(le)("backend::lang.form.error_title")),1),et(" "+K(V(Hd)("backend::lang.form.error_fields",n.value)),1)]),(R(!0),F(fe,null,Qe(r.value,(i,l)=>(R(),F("p",{key:l,class:"text-[13px]"},K(i),1))),128))])])):Oe("",!0)}}),Zh={class:"relative"},ep=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],tp=["value"],On="empty",In="placeholder",np=be({__name:"DropdownField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L(()=>n.field.options??[]);function o(u,a){return u==null||a===null||a===void 0?u===a||u==null&&a==null:String(u)===String(a)}const i=L(()=>{const u=s.value.findIndex(a=>o(a.value,n.modelValue));return u>=0?String(u):n.field.emptyOption!==void 0&&(n.modelValue===null||n.modelValue===void 0||n.modelValue==="")?On:In}),l=L(()=>i.value===On||i.value===In);function c(u){const a=u.target.value;if(a===On){r("update:modelValue",null);return}const d=s.value[Number(a)];d&&r("update:modelValue",d.value)}return(u,a)=>(R(),F("div",Zh,[N("select",{id:e.controlId,name:e.field.name,value:i.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:Be([[V(dr)(e.invalid),l.value?"text-muted":""],"h-input appearance-none pr-10"]),onChange:c},[e.field.emptyOption!==void 0?(R(),F("option",{key:0,value:On,class:"text-muted"},K(e.field.emptyOption),1)):i.value===In?(R(),F("option",{key:1,value:In,disabled:""},K(V(le)("backend::lang.form.select_placeholder")),1)):Oe("",!0),(R(!0),F(fe,null,Qe(s.value,(d,p)=>(R(),F("option",{key:p,value:String(p),class:"text-text"},K(d.label),9,tp))),128))],42,ep),ne(V(ul),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]))}}),rp=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],sp=be({__name:"NumberField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),o=L(()=>Ss(n.field));function i(l){const c=l.target.value.trim();if(c===""){r("update:modelValue",null);return}const u=Number(c);r("update:modelValue",Number.isFinite(u)?u:null)}return(l,c)=>(R(),F("input",ir({id:e.controlId},o.value,{name:e.field.name,type:"number",inputmode:"decimal",value:s.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[V(dr)(e.invalid),"h-input tabular-nums"],onInput:i}),null,16,rp))}}),op=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],ip=be({__name:"TextField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),o=L(()=>Ss(n.field));return(i,l)=>(R(),F("input",ir({id:e.controlId},o.value,{name:e.field.name,type:"text",value:s.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[V(dr)(e.invalid),"h-input"],onInput:l[0]||(l[0]=c=>r("update:modelValue",c.target.value))}),null,16,op))}}),lp=["id","name","rows","value","required","aria-required","aria-invalid","aria-describedby"],cp=be({__name:"TextareaField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s={tiny:2,small:4,large:8,huge:12,giant:18},o=L(()=>s[n.field.size??""]??5),i=L(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),l=L(()=>Ss(n.field));return(c,u)=>(R(),F("textarea",ir({id:e.controlId},l.value,{name:e.field.name,rows:o.value,value:i.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[V(dr)(e.invalid),"min-h-input resize-y py-2.5"],onInput:u[0]||(u[0]=a=>r("update:modelValue",a.target.value))}),null,16,lp))}}),ap=["id","aria-describedby"],up={key:0},fp={class:"font-mono text-text"},dp={key:1},hp={class:"font-mono text-text"},jn="\0",pp=be({__name:"UnsupportedField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{}},setup(e){const t=e,n=L(()=>{const[s="",o=""]=le("backend::lang.form.unsupported_field",{type:jn}).split(jn);return{before:s,after:o}}),r=L(()=>le("backend::lang.form.unsupported_field",{type:jn}).includes(jn));return(s,o)=>(R(),F("div",{id:e.controlId,"data-unsupported-field":"","aria-describedby":e.describedBy||void 0,class:"flex min-h-input items-center gap-2.5 rounded-control border-[1.5px] border-dashed border-border-strong bg-subtle px-3.5 text-[13px] text-muted"},[ne(V(dl),{size:16,"aria-hidden":"true"}),r.value?(R(),F("span",up,[et(K(n.value.before),1),N("code",fp,K(t.field.type),1),et(K(n.value.after),1)])):(R(),F("span",dp,[et(K(V(le)("backend::lang.form.unsupported_field"))+" ",1),N("code",hp,K(t.field.type),1)]))],8,ap))}}),Al=new Map([["text",ip],["textarea",cp],["number",sp],["dropdown",np]]),mp=new Set;function gp(e){return Al.get(e)??pp}function yp(e){return Al.has(e)}function vp(e){return mp.has(e)}const bp=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function Ss(e){const t={};for(const[n,r]of Object.entries(e.attributes??{})){const s=n.toLowerCase();!bp.has(s)||r===null||r===!1||(t[s]=r)}return t}function dr(e){return["w-full rounded-control border bg-surface px-3.5 text-text transition-colors duration-150 ease-out",e?"border-danger":"border-border-strong"].join(" ")}const _p=be({__name:"FieldRenderer",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L(()=>gp(n.field.type));return(o,i)=>(R(),we(Wt(s.value),{field:e.field,"model-value":e.modelValue,"control-id":e.controlId,invalid:e.invalid,"described-by":e.describedBy,labels:e.labels,source:e.source,"onUpdate:modelValue":i[0]||(i[0]=l=>r("update:modelValue",l))},null,8,["field","model-value","control-id","invalid","described-by","labels","source"]))}}),xp=["data-field"],wp=["for"],Sp={key:0,class:"text-danger","aria-hidden":"true"},kp=["id"],Ep=["id"],Rp=be({__name:"FormField",props:{field:{},modelValue:{},errors:{},labels:{},source:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=L(()=>`${n.idPrefix??"field"}-${n.field.name}`),o=L(()=>s.value),i=L(()=>`${s.value}-comment`),l=L(()=>`${s.value}-error`),c=L(()=>(n.errors?.length??0)>0),u=L(()=>vp(n.field.type)),a=L(()=>!u.value&&!!n.field.comment),d=L(()=>[a.value||u.value&&n.field.comment?i.value:"",c.value?l.value:""].filter(Boolean).join(" "));return(p,m)=>(R(),F("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[u.value?Oe("",!0):(R(),F("label",{key:0,for:o.value,class:"font-semibold"},[et(K(e.field.label||e.field.name),1),e.field.required?(R(),F("span",Sp," *")):Oe("",!0)],8,wp)),ne(_p,{field:e.field,"model-value":e.modelValue,"control-id":o.value,invalid:c.value,"described-by":d.value,labels:e.labels,source:e.source,"onUpdate:modelValue":m[0]||(m[0]=S=>r("update:modelValue",S))},null,8,["field","model-value","control-id","invalid","described-by","labels","source"]),a.value?(R(),F("p",{key:1,id:i.value,class:"text-[13px] text-muted"},K(e.field.comment),9,kp)):Oe("",!0),c.value?(R(),F("div",{key:2,id:l.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(R(!0),F(fe,null,Qe(e.errors,(S,w)=>(R(),F("p",{key:w,class:"flex items-center gap-1.5"},[ne(V(Tn),{size:14,class:"shrink-0","aria-hidden":"true"}),N("span",null,K(S),1)]))),128))],8,Ep)):Oe("",!0)],8,xp))}}),Cp={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},$p=be({__name:"FormGrid",props:{fields:{},values:{},errors:{},labels:{},source:{},idPrefix:{}},emits:["update"],setup(e,{emit:t}){const n=t;function r(s){switch(s){case"left":return"min-[600px]:col-start-1";case"right":return"min-[600px]:col-start-2";case"auto":case"row":return"";default:return"col-span-full"}}return(s,o)=>(R(),F("div",Cp,[(R(!0),F(fe,null,Qe(e.fields,i=>(R(),we(Rp,{key:i.name,class:Be(r(i.span)),field:i,"model-value":e.values[i.name],errors:e.errors[i.name],labels:e.labels?.[i.name],source:e.source,"id-prefix":e.idPrefix,"onUpdate:modelValue":l=>n("update",i.name,l)},null,8,["class","field","model-value","errors","labels","source","id-prefix","onUpdate:modelValue"]))),128))]))}});function Tp(e,t){const n=e.context;if(n==null)return!0;const r=Array.isArray(n)?n:[n];return r.length===0||r.includes(t)}function Ar(e,t){const n={};for(const r of e){if(r.readOnly||!yp(r.type))continue;const s=t[r.name];s!==void 0&&(n[r.name]=s)}return n}function Ap(e){const t={};for(const n of e)n.default!==void 0?t[n.name]=n.default:n.type==="switch"||n.type==="checkbox"?t[n.name]=!1:n.type==="relation"&&n.multiple&&(t[n.name]=[]);return t}function Pp(e){const t={};for(const[n,r]of Object.entries(e??{})){const s=Array.isArray(r)?r.filter(o=>typeof o=="string"&&o!==""):typeof r=="string"&&r!==""?[r]:[];s.length>0&&(t[n]=s)}return t}function Lo(e){return JSON.stringify(Object.keys(e).sort().map(t=>[t,e[t]]))}function Mp(e,t){const n=document.getElementById(`${e}-${t}`);return n?(n.matches("input, select, textarea, button, [tabindex]")||n.setAttribute("tabindex","-1"),n.focus(),!0):!1}const Op=["type","disabled"],Vo=be({__name:"Button",props:{variant:{default:"outline"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},icon:{default:void 0},to:{default:void 0}},setup(e){const t=e,n={primary:"bg-primary text-on-primary hover:opacity-90",outline:"border border-border-strong bg-surface text-text hover:bg-hover",ghost:"text-muted hover:bg-hover hover:text-text",danger:"border border-danger bg-surface text-danger hover:bg-danger-soft"},r=L(()=>["inline-flex shrink-0 items-center justify-center gap-2 rounded-control px-4 font-semibold whitespace-nowrap no-underline transition-colors duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-60",t.size==="sm"?"h-[38px]":"h-button",n[t.variant]]);return(s,o)=>e.to!==void 0?(R(),we(V($n),{key:0,to:e.to,class:Be(r.value)},{default:St(()=>[e.icon?(R(),we(Wt(e.icon),{key:0,size:16,"aria-hidden":"true"})):Oe("",!0),jr(s.$slots,"default")]),_:3},8,["to","class"])):(R(),F("button",{key:1,type:e.type,disabled:e.disabled,class:Be(r.value)},[e.icon?(R(),we(Wt(e.icon),{key:0,size:16,"aria-hidden":"true"})):Oe("",!0),jr(s.$slots,"default")],10,Op))}}),Ip={class:"mx-auto flex w-full max-w-[980px] flex-col gap-5 pb-24"},jp={class:"flex items-center gap-4"},Np={class:"flex min-w-0 flex-col"},Fp={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},Lp={key:0,class:"text-muted"},Vp={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},Dp={class:"fixed inset-x-0 bottom-0 z-30 flex items-center justify-end gap-2.5 border-t border-border bg-surface px-8 py-3.5"},Do="field",Uo=be({__name:"FormView",setup(e,{expose:t}){const n=jt(),r=ys(),s={vendor:String(n.params.vendor??""),plugin:String(n.params.plugin??""),controller:String(n.params.controller??"")},o=Gr(s),i=Sn(o)??"/",l=n.name==="create"?"create":"update",c=l==="update"?Number(n.params.id):null,u=ge(null),a=ge({}),d=ge({}),p=ge({}),m=ge(!0),S=ge(!1),w=ge(!1),j=ge(""),I=L(()=>(u.value?.fields??[]).filter(Q=>Tp(Q,l))),C=L(()=>I.value.map(Q=>Q.name)),P=L(()=>{const Q=u.value?.fields.find(X=>X.type==="text"),G=Q?a.value[Q.name]:void 0;return typeof G=="string"||typeof G=="number"?String(G).trim():""}),M=L(()=>{if(l==="update"&&P.value!=="")return P.value;const Q=l==="create"?u.value?.messages.create:u.value?.messages.update;return Vn(Q,void 0,{name:P.value})}),ee=L(()=>l==="update"?Vn(u.value?.messages.update,void 0,{name:P.value}):""),_e=L(()=>Lo(Ar(I.value,a.value))!==j.value);function ie(Q){Q&&(a.value={...Q.data},d.value=Q.meta.labels??{}),j.value=Lo(Ar(I.value,a.value))}async function De(){m.value=!0,S.value=!1;const Q={path:s},[G,X]=await Promise.all([Je.GET("/{vendor}/{plugin}/{controller}/schema/form",{params:Q}),c!==null?Je.GET("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...s,id:c}}}):Promise.resolve(null)]);u.value=G.data?.data??null,S.value=!G.data||X!==null&&!X.data,u.value&&l==="create"&&(a.value=Ap(I.value)),ie(X?.data),m.value=!1}function Ue(Q,G){if(a.value={...a.value,[Q]:G},p.value[Q]){const X={...p.value};delete X[Q],p.value=X}}async function Pe(Q){p.value=Pp(Q?.details),await us();const G=I.value.find(X=>p.value[X.name]);G&&Mp(Do,G.name)}function He(Q,G){const X=u.value?.redirects,J=(X?.[l]?.[Q]||X?.default)??"";return Tl(J,o,typeof G=="number"||typeof G=="string"?G:null)}async function Ge(){if(w.value||!u.value)return null;w.value=!0;try{const Q=Ar(I.value,a.value),G=c===null?await Je.POST("/{vendor}/{plugin}/{controller}",{params:{path:s},body:Q}):await Je.PUT("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...s,id:c}},body:Q});return G.data?(p.value={},ie(G.data),Tr(Vn(u.value.messages.saved,void 0,{name:P.value})),G.data):(G.response.status===422?await Pe(G.error?.error):Tr(G.error?.error.message||le("backend::lang.form.error_generic"),"danger"),null)}catch{return Tr(le("backend::lang.form.error_generic"),"danger"),null}finally{w.value=!1}}async function Ee(){const Q=await Ge();Q&&l==="create"&&await r.push(He("redirect",Q.data.id))}return t({dirty:_e}),De(),(Q,G)=>(R(),F("section",Ip,[N("header",jp,[N("div",Np,[N("h1",Fp,K(m.value?"":M.value),1),ee.value?(R(),F("p",Lp,K(ee.value),1)):Oe("",!0)])]),S.value&&!m.value?(R(),F("p",Vp,K(V(le)("backend::lang.form.load_failed")),1)):u.value?(R(),F(fe,{key:1},[ne(Xh,{errors:p.value,"field-names":C.value},null,8,["errors","field-names"]),N("form",{class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:Ji(Ee,["prevent"])},[ne($p,{fields:I.value,values:a.value,errors:p.value,labels:d.value,source:s,"id-prefix":Do,onUpdate:Ue},null,8,["fields","values","errors","labels"])],32)],64)):Oe("",!0),N("footer",Dp,[ne(Vo,{variant:"ghost",to:V(i)},{default:St(()=>[et(K(V(le)("backend::lang.form.cancel")),1)]),_:1},8,["to"]),ne(Vo,{variant:"primary",disabled:w.value||m.value||!u.value,"data-action":"save",onClick:Ee},{default:St(()=>[et(K(w.value?V(le)("backend::lang.form.saving"):V(le)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]))}}),Up={class:"flex flex-col items-center gap-2 py-20 text-center"},Hp={class:"text-[17px] font-bold"},Ho=be({__name:"NotFoundView",props:{home:{type:Boolean}},setup(e){return(t,n)=>(R(),F("section",Up,[N("h1",Hp,K(e.home?V(le)("backend::lang.nav.empty"):V(le)("backend::lang.page.not_found")),1)]))}});function Pl(e){return typeof e!="string"||e.length===0||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")?null:e}function qp(e=Ou(gl.base)){const t=Xu({history:e,routes:[{path:"/login",name:"login",component:Ih,meta:{public:!0}},{path:"/",name:"home",component:Ho,props:{home:!0},meta:{shell:!0},beforeEnter:()=>zd()??!0},{path:"/:vendor/:plugin/:controller",name:"list",component:Qh,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/create",name:"create",component:Uo,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/:id(\\d+)",name:"record",component:Uo,meta:{shell:!0}},{path:"/:pathMatch(.*)*",name:"not-found",component:Ho,meta:{shell:!0}}]});return t.beforeEach(n=>{const r=sn.value!==null;return n.meta.public?r&&n.name==="login"?Pl(n.query.redirect)??"/":!0:r?!0:{name:"login",query:{redirect:n.fullPath}}}),t}async function Bp(){await Dd().catch(()=>{}),await $l().catch(()=>null)&&await wl().catch(()=>[]);const t=qp();jd(()=>{ch();const r=t.currentRoute.value;r.name!=="login"&&t.push({name:"login",query:{redirect:r.fullPath}})});const n=Qa(xh);n.use(t),await t.isReady(),n.mount("#app")}Bp();
|