Files
summercms/modules/boardwalk/dist/assets/index-C3qtJyIU.js
Jakub Zych 849a9ffe3f fix(10.1): WR-02 disable plugin stylesheets on screens that are not controller views
The router now drives stylesheet activation after every confirmed
navigation: the list, create and record routes enable their controller's
links, and settings, login, not-found and a controller whose schema has
not arrived yet enable none. Rebuilt the embedded admin dist.
2026-09-29 09:47:52 +02:00

5 lines
300 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Si(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ne={},Gn=[],Bt=()=>{},uu=()=>!1,Do=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qo=e=>e.startsWith("onUpdate:"),Ye=Object.assign,Ei=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$f=Object.prototype.hasOwnProperty,Re=(e,t)=>$f.call(e,t),ge=Array.isArray,Yn=e=>Hr(e)==="[object Map]",cu=e=>Hr(e)==="[object Set]",xa=e=>Hr(e)==="[object Date]",xe=e=>typeof e=="function",Ve=e=>typeof e=="string",pt=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",du=e=>(Pe(e)||xe(e))&&xe(e.then)&&xe(e.catch),fu=Object.prototype.toString,Hr=e=>fu.call(e),Of=e=>Hr(e).slice(8,-1),pu=e=>Hr(e)==="[object Object]",Fo=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Er=Si(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Pf=/-\w/g,Ze=Bo(e=>e.replace(Pf,t=>t.slice(1).toUpperCase())),Tf=/\B([A-Z])/g,kn=Bo(e=>e.replace(Tf,"-$1").toLowerCase()),No=Bo(e=>e.charAt(0).toUpperCase()+e.slice(1)),co=Bo(e=>e?`on${No(e)}`:""),Dt=(e,t)=>!Object.is(e,t),fo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},hu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ai=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rf=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let wa;const Lo=()=>wa||(wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ir(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ve(r)?qf(r):ir(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ve(e)||Pe(e))return e}const Mf=/;(?![^(]*\))/g,If=/:([^]+)/,Df=/\/\*[^]*?\*\//g;function qf(e){const t={};return e.replace(Df,"").split(Mf).forEach(n=>{if(n){const r=n.split(If);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function we(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const r=we(e[n]);r&&(t+=r+" ")}else if(Pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ht(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ve(t)&&(e.class=we(t)),n&&(e.style=ir(n)),e}const Ff="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bf=Si(Ff);function mu(e){return!!e||e===""}function Nf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$i(e[r],t[r]);return n}function $i(e,t){if(e===t)return!0;let n=xa(e),r=xa(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=pt(e),r=pt(t),n||r)return e===t;if(n=ge(e),r=ge(t),n||r)return n&&r?Nf(e,t):!1;if(n=Pe(e),r=Pe(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!$i(e[i],t[i]))return!1}}return String(e)===String(t)}const gu=e=>!!(e&&e.__v_isRef===!0),q=e=>Ve(e)?e:e==null?"":ge(e)||Pe(e)&&(e.toString===fu||!xe(e.toString))?gu(e)?q(e.value):JSON.stringify(e,vu,2):String(e),vu=(e,t)=>gu(t)?vu(e,t.value):Yn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[ys(r,s)+" =>"]=o,n),{})}:cu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ys(n))}:pt(t)?ys(t):Pe(t)&&!ge(t)&&!pu(t)?String(t):t,ys=(e,t="")=>{var n;return pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Xe;class yu{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&&Xe&&(Xe.active?(this.parent=Xe,this.index=(Xe.scopes||(Xe.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=Xe;try{return Xe=this,t()}finally{Xe=n}}}on(){++this._on===1&&(this.prevScope=Xe,Xe=this)}off(){if(this._on>0&&--this._on===0){if(Xe===this)Xe=this.prevScope;else{let t=Xe;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 o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function bu(e){return new yu(e)}function Oi(){return Xe}function _u(e,t=!1){Xe&&Xe.cleanups.push(e)}let je;const bs=new WeakSet;class xu{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,Xe&&(Xe.active?Xe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,bs.has(this)&&(bs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ku(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ka(this),Cu(this);const t=je,n=xt;je=this,xt=!0;try{return this.fn()}finally{Su(this),je=t,xt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ri(t);this.deps=this.depsTail=void 0,ka(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hs(this)&&this.run()}get dirty(){return Hs(this)}}let wu=0,Ar,$r;function ku(e,t=!1){if(e.flags|=8,t){e.next=$r,$r=e;return}e.next=Ar,Ar=e}function Pi(){wu++}function Ti(){if(--wu>0)return;if($r){let t=$r;for($r=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ar;){let t=Ar;for(Ar=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 Cu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Su(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Ri(r),Lf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Eu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Eu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dr)||(e.globalVersion=Dr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hs(e))))return;e.flags|=2;const t=e.dep,n=je,r=xt;je=e,xt=!0;try{Cu(e);const o=e.fn(e._value);(t.version===0||Dt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{je=n,xt=r,Su(e),e.flags&=-3}}function Ri(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Ri(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Lf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xt=!0;const Au=[];function tn(){Au.push(xt),xt=!1}function nn(){const e=Au.pop();xt=e===void 0?!0:e}function ka(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=je;je=void 0;try{t()}finally{je=n}}}let Dr=0;class jf{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 jo{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(!je||!xt||je===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==je)n=this.activeLink=new jf(je,this),je.deps?(n.prevDep=je.depsTail,je.depsTail.nextDep=n,je.depsTail=n):je.deps=je.depsTail=n,$u(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=je.depsTail,n.nextDep=void 0,je.depsTail.nextDep=n,je.depsTail=n,je.deps===n&&(je.deps=r)}return n}trigger(t){this.version++,Dr++,this.notify(t)}notify(t){Pi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ti()}}}function $u(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)$u(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const mo=new WeakMap,Tn=Symbol(""),Ws=Symbol(""),qr=Symbol("");function tt(e,t,n){if(xt&&je){let r=mo.get(e);r||mo.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new jo),o.map=r,o.key=n),o.track()}}function Jt(e,t,n,r,o,s){const i=mo.get(e);if(!i){Dr++;return}const a=l=>{l&&l.trigger()};if(Pi(),t==="clear")i.forEach(a);else{const l=ge(e),c=l&&Fo(n);if(l&&n==="length"){const u=Number(r);i.forEach((d,f)=>{(f==="length"||f===qr||!pt(f)&&f>=u)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(qr)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Tn)),Yn(e)&&a(i.get(Ws)));break;case"delete":l||(a(i.get(Tn)),Yn(e)&&a(i.get(Ws)));break;case"set":Yn(e)&&a(i.get(Tn));break}}Ti()}function Vf(e,t){const n=mo.get(e);return n&&n.get(t)}function Fn(e){const t=Oe(e);return t===e?t:(tt(t,"iterate",qr),dt(e)?t:t.map(wt))}function Vo(e){return tt(e=Oe(e),"iterate",qr),e}function Mt(e,t){return rn(e)?er(Rn(e)?wt(t):t):wt(t)}const zf={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,e=>Mt(this,e))},concat(...e){return Fn(this).concat(...e.map(t=>ge(t)?Fn(t):t))},entries(){return _s(this,"entries",e=>(e[1]=Mt(this,e[1]),e))},every(e,t){return Kt(this,"every",e,t,void 0,arguments)},filter(e,t){return Kt(this,"filter",e,t,n=>n.map(r=>Mt(this,r)),arguments)},find(e,t){return Kt(this,"find",e,t,n=>Mt(this,n),arguments)},findIndex(e,t){return Kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kt(this,"findLast",e,t,n=>Mt(this,n),arguments)},findLastIndex(e,t){return Kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return xs(this,"includes",e)},indexOf(...e){return xs(this,"indexOf",e)},join(e){return Fn(this).join(e)},lastIndexOf(...e){return xs(this,"lastIndexOf",e)},map(e,t){return Kt(this,"map",e,t,void 0,arguments)},pop(){return hr(this,"pop")},push(...e){return hr(this,"push",e)},reduce(e,...t){return Ca(this,"reduce",e,t)},reduceRight(e,...t){return Ca(this,"reduceRight",e,t)},shift(){return hr(this,"shift")},some(e,t){return Kt(this,"some",e,t,void 0,arguments)},splice(...e){return hr(this,"splice",e)},toReversed(){return Fn(this).toReversed()},toSorted(e){return Fn(this).toSorted(e)},toSpliced(...e){return Fn(this).toSpliced(...e)},unshift(...e){return hr(this,"unshift",e)},values(){return _s(this,"values",e=>Mt(this,e))}};function _s(e,t,n){const r=Vo(e),o=r[t]();return r!==e&&!dt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const Uf=Array.prototype;function Kt(e,t,n,r,o,s){const i=Vo(e),a=i!==e&&!dt(e),l=i[t];if(l!==Uf[t]){const d=l.apply(e,s);return a?wt(d):d}let c=n;i!==e&&(a?c=function(d,f){return n.call(this,Mt(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=l.call(i,c,r);return a&&o?o(u):u}function Ca(e,t,n,r){const o=Vo(e),s=o!==e&&!dt(e);let i=n,a=!1;o!==e&&(s?(a=r.length===0,i=function(c,u,d){return a&&(a=!1,c=Mt(e,c)),n.call(this,c,Mt(e,u),d,e)}):n.length>3&&(i=function(c,u,d){return n.call(this,c,u,d,e)}));const l=o[t](i,...r);return a?Mt(e,l):l}function xs(e,t,n){const r=Oe(e);tt(r,"iterate",qr);const o=r[t](...n);return(o===-1||o===!1)&&Ho(n[0])?(n[0]=Oe(n[0]),r[t](...n)):o}function hr(e,t,n=[]){tn(),Pi();const r=Oe(e)[t].apply(e,n);return Ti(),nn(),r}const Hf=Si("__proto__,__v_isRef,__isVue"),Ou=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pt));function Wf(e){pt(e)||(e=String(e));const t=Oe(this);return tt(t,"has",e),t.hasOwnProperty(e)}class Pu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?qu:Du:s?Iu:Mu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ge(t);if(!o){let l;if(i&&(l=zf[n]))return l;if(n==="hasOwnProperty")return Wf}const a=Reflect.get(t,n,Ge(t)?t:r);if((pt(n)?Ou.has(n):Hf(n))||(o||tt(t,"get",n),s))return a;if(Ge(a)){const l=i&&Fo(n)?a:a.value;return o&&Pe(l)?Nt(l):l}return Pe(a)?o?Nt(a):Dn(a):a}}class Tu extends Pu{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=ge(t)&&Fo(n);if(!this._isShallow){const c=rn(s);if(!dt(r)&&!rn(r)&&(s=Oe(s),r=Oe(r)),!i&&Ge(s)&&!Ge(r))return c||(s.value=r),!0}const a=i?Number(n)<t.length:Re(t,n),l=Reflect.set(t,n,r,Ge(t)?t:o);return t===Oe(o)&&(a?Dt(r,s)&&Jt(t,"set",n,r):Jt(t,"add",n,r)),l}deleteProperty(t,n){const r=Re(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Jt(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!pt(n)||!Ou.has(n))&&tt(t,"has",n),r}ownKeys(t){return tt(t,"iterate",ge(t)?"length":Tn),Reflect.ownKeys(t)}}class Ru extends Pu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Kf=new Tu,Gf=new Ru,Yf=new Tu(!0),Xf=new Ru(!0),Ks=e=>e,Jr=e=>Reflect.getPrototypeOf(e);function Jf(e,t,n){return function(...r){const o=this.__v_raw,s=Oe(o),i=Yn(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?Ks:t?er:wt;return!t&&tt(s,"iterate",l?Ws:Tn),Ye(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function Qr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qf(e,t){const n={get(o){const s=this.__v_raw,i=Oe(s),a=Oe(o);e||(Dt(o,a)&&tt(i,"get",o),tt(i,"get",a));const{has:l}=Jr(i),c=t?Ks:e?er:wt;if(l.call(i,o))return c(s.get(o));if(l.call(i,a))return c(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&tt(Oe(o),"iterate",Tn),o.size},has(o){const s=this.__v_raw,i=Oe(s),a=Oe(o);return e||(Dt(o,a)&&tt(i,"has",o),tt(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=Oe(a),c=t?Ks:e?er:wt;return!e&&tt(l,"iterate",Tn),a.forEach((u,d)=>o.call(s,c(u),c(d),i))}};return Ye(n,e?{add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear")}:{add(o){const s=Oe(this),i=Jr(s),a=Oe(o),l=!t&&!dt(o)&&!rn(o)?a:o;return i.has.call(s,l)||Dt(o,l)&&i.has.call(s,o)||Dt(a,l)&&i.has.call(s,a)||(s.add(l),Jt(s,"add",l,l)),this},set(o,s){!t&&!dt(s)&&!rn(s)&&(s=Oe(s));const i=Oe(this),{has:a,get:l}=Jr(i);let c=a.call(i,o);c||(o=Oe(o),c=a.call(i,o));const u=l.call(i,o);return i.set(o,s),c?Dt(s,u)&&Jt(i,"set",o,s):Jt(i,"add",o,s),this},delete(o){const s=Oe(this),{has:i,get:a}=Jr(s);let l=i.call(s,o);l||(o=Oe(o),l=i.call(s,o)),a&&a.call(s,o);const c=s.delete(o);return l&&Jt(s,"delete",o,void 0),c},clear(){const o=Oe(this),s=o.size!==0,i=o.clear();return s&&Jt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Jf(o,e,t)}),n}function zo(e,t){const n=Qf(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Re(n,o)&&o in r?n:r,o,s)}const Zf={get:zo(!1,!1)},ep={get:zo(!1,!0)},tp={get:zo(!0,!1)},np={get:zo(!0,!0)},Mu=new WeakMap,Iu=new WeakMap,Du=new WeakMap,qu=new WeakMap;function rp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dn(e){return rn(e)?e:Uo(e,!1,Kf,Zf,Mu)}function Fu(e){return Uo(e,!1,Yf,ep,Iu)}function Nt(e){return Uo(e,!0,Gf,tp,Du)}function Bn(e){return Uo(e,!0,Xf,np,qu)}function Uo(e,t,n,r,o){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const i=rp(Of(e));if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Rn(e){return rn(e)?Rn(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function dt(e){return!!(e&&e.__v_isShallow)}function Ho(e){return e?!!e.__v_raw:!1}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function Bu(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&hu(e,"__v_skip",!0),e}const wt=e=>Pe(e)?Dn(e):e,er=e=>Pe(e)?Nt(e):e;function Ge(e){return e?e.__v_isRef===!0:!1}function I(e){return Nu(e,!1)}function Wo(e){return Nu(e,!0)}function Nu(e,t){return Ge(e)?e:new op(e,t)}class op{constructor(t,n){this.dep=new jo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Oe(t),this._value=n?t:wt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||dt(t)||rn(t);t=r?t:Oe(t),Dt(t,n)&&(this._rawValue=t,this._value=r?t:wt(t),this.dep.trigger())}}function sp(e){e.dep&&e.dep.trigger()}function h(e){return Ge(e)?e.value:e}function ft(e){return xe(e)?e():h(e)}const ip={get:(e,t,n)=>t==="__v_raw"?e:h(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ge(o)&&!Ge(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Lu(e){return Rn(e)?e:new Proxy(e,ip)}class ap{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new jo,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function lp(e){return new ap(e)}function ar(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=ju(e,n);return t}class up{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=pt(n)?n:String(n),this._raw=Oe(t);let o=!0,s=t;if(!ge(t)||pt(this._key)||!Fo(this._key))do o=!Ho(s)||dt(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=h(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ge(this._raw[this._key])){const n=this._object[this._key];if(Ge(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Vf(this._raw,this._key)}}class cp{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function dp(e,t,n){return Ge(e)?e:xe(e)?new cp(e):Pe(e)&&arguments.length>1?ju(e,t,n):I(e)}function ju(e,t,n){return new up(e,t,n)}class fp{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new jo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Dr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&je!==this)return ku(this,!0),!0}get value(){const t=this.dep.track();return Eu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pp(e,t,n=!1){let r,o;return xe(e)?r=e:(r=e.get,o=e.set),new fp(r,o,n)}const Zr={},go=new WeakMap;let On;function hp(e,t=!1,n=On){if(n){let r=go.get(n);r||go.set(n,r=[]),r.push(e)}}function mp(e,t,n=Ne){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,c=k=>o?k:dt(k)||o===!1||o===0?Qt(k,1):Qt(k);let u,d,f,p,m=!1,v=!1;if(Ge(e)?(d=()=>e.value,m=dt(e)):Rn(e)?(d=()=>c(e),m=!0):ge(e)?(v=!0,m=e.some(k=>Rn(k)||dt(k)),d=()=>e.map(k=>{if(Ge(k))return k.value;if(Rn(k))return c(k);if(xe(k))return l?l(k,2):k()})):xe(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){tn();try{f()}finally{nn()}}const k=On;On=u;try{return l?l(e,3,[p]):e(p)}finally{On=k}}:d=Bt,t&&o){const k=d,B=o===!0?1/0:o;d=()=>Qt(k(),B)}const b=Oi(),_=()=>{u.stop(),b&&b.active&&Ei(b.effects,u)};if(s&&t){const k=t;t=(...B)=>{k(...B),_()}}let w=v?new Array(e.length).fill(Zr):Zr;const C=k=>{if(!(!(u.flags&1)||!u.dirty&&!k))if(t){const B=u.run();if(o||m||(v?B.some((W,D)=>Dt(W,w[D])):Dt(B,w))){f&&f();const W=On;On=u;try{const D=[B,w===Zr?void 0:v&&w[0]===Zr?[]:w,p];w=B,l?l(t,3,D):t(...D)}finally{On=W}}}else u.run()};return a&&a(C),u=new xu(d),u.scheduler=i?()=>i(C,!1):C,p=k=>hp(k,!1,u),f=u.onStop=()=>{const k=go.get(u);if(k){if(l)l(k,4);else for(const B of k)B();go.delete(u)}},t?r?C(!0):w=u.run():i?i(C.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Qt(e,t=1/0,n){if(t<=0||!Pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ge(e))Qt(e.value,t,n);else if(ge(e))for(let r=0;r<e.length;r++)Qt(e[r],t,n);else if(cu(e)||Yn(e))e.forEach(r=>{Qt(r,t,n)});else if(pu(e)){for(const r in e)Qt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Qt(e[r],t,n)}return e}function Wr(e,t,n,r){try{return r?e(...r):e()}catch(o){Ko(o,t,n)}}function vt(e,t,n,r){if(xe(e)){const o=Wr(e,t,n,r);return o&&du(o)&&o.catch(s=>{Ko(s,t,n)}),o}if(ge(e)){const o=[];for(let s=0;s<e.length;s++)o.push(vt(e[s],t,n,r));return o}}function Ko(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ne;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(s){tn(),Wr(s,null,10,[e,l,c]),nn();return}}gp(e,n,o,r,i)}function gp(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const st=[];let Tt=-1;const Xn=[];let gn=null,Vn=0;const Vu=Promise.resolve();let vo=null;function He(e){const t=vo||Vu;return e?t.then(this?e.bind(this):e):t}function vp(e){let t=Tt+1,n=st.length;for(;t<n;){const r=t+n>>>1,o=st[r],s=Fr(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function Mi(e){if(!(e.flags&1)){const t=Fr(e),n=st[st.length-1];!n||!(e.flags&2)&&t>=Fr(n)?st.push(e):st.splice(vp(t),0,e),e.flags|=1,zu()}}function zu(){vo||(vo=Vu.then(Hu))}function yp(e){ge(e)?Xn.push(...e):gn&&e.id===-1?gn.splice(Vn+1,0,e):e.flags&1||(Xn.push(e),e.flags|=1),zu()}function Sa(e,t,n=Tt+1){for(;n<st.length;n++){const r=st[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;st.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Uu(e){if(Xn.length){const t=[...new Set(Xn)].sort((n,r)=>Fr(n)-Fr(r));if(Xn.length=0,gn){gn.push(...t);return}for(gn=t,Vn=0;Vn<gn.length;Vn++){const n=gn[Vn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gn=null,Vn=0}}const Fr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Hu(e){try{for(Tt=0;Tt<st.length;Tt++){const t=st[Tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Wr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Tt<st.length;Tt++){const t=st[Tt];t&&(t.flags&=-2)}Tt=-1,st.length=0,Uu(),vo=null,(st.length||Xn.length)&&Hu()}}let Qe=null,Wu=null;function yo(e){const t=Qe;return Qe=e,Wu=e&&e.type.__scopeId||null,t}function J(e,t=Qe,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&xo(-1);const s=yo(t);let i;try{i=e(...o)}finally{yo(s),r._d&&xo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Gs(e,t){if(Qe===null)return e;const n=Qo(Qe),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,l=Ne]=t[o];s&&(xe(s)&&(s={mounted:s,updated:s}),s.deep&&Qt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Sn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(tn(),vt(l,n,8,[e.el,a,e,t]),nn())}}function qt(e,t){if(nt){let n=nt.provides;const r=nt.parent&&nt.parent.provides;r===n&&(n=nt.provides=Object.create(r)),n[e]=t}}function Ke(e,t,n=!1){const r=Ut();if(r||Qn){let o=Qn?Qn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&xe(t)?t.call(r&&r.proxy):t}}const bp=Symbol.for("v-scx"),_p=()=>Ke(bp);function Lt(e,t){return Go(e,null,t)}function Ku(e,t){return Go(e,null,{flush:"post"})}function Le(e,t,n){return Go(e,t,n)}function Go(e,t,n=Ne){const{immediate:r,deep:o,flush:s,once:i}=n,a=Ye({},n),l=t&&r||!t&&s!=="post";let c;if(jr){if(s==="sync"){const p=_p();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Bt,p.resume=Bt,p.pause=Bt,p}}const u=nt;a.call=(p,m,v)=>vt(p,u,m,v);let d=!1;s==="post"?a.scheduler=p=>{ot(p,u&&u.suspense)}:s!=="sync"&&(d=!0,a.scheduler=(p,m)=>{m?p():Mi(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=mp(e,t,a);return jr&&(c?c.push(f):l&&f()),f}function xp(e,t,n){const r=this.proxy,o=Ve(e)?e.includes(".")?Gu(r,e):()=>r[e]:e.bind(r,r);let s;xe(t)?s=t:(s=t.handler,n=t);const i=Kr(this),a=Go(o,s.bind(r),n);return i(),a}function Gu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const pn=new WeakMap,Yu=Symbol("_vte"),wp=e=>e.__isTeleport,Pn=e=>e&&(e.disabled||e.disabled===""),kp=e=>e&&(e.defer||e.defer===""),Ea=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Aa=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ys=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},Cp={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:v,createComment:b,parentNode:_}}=c,w=Pn(t.props);let{dynamicChildren:C}=t;const k=(D,T,$)=>{D.shapeFlag&16&&u(D.children,T,$,o,s,i,a,l)},B=(D=t)=>{const T=Pn(D.props),$=D.target=Ys(D.props,m),R=Xs($,D,v,p);$&&(i!=="svg"&&Ea($)?i="svg":i!=="mathml"&&Aa($)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add($),T||(k(D,$,R),wr(D,!1)))},W=D=>{const T=()=>{if(pn.get(D)===T){if(pn.delete(D),Pn(D.props)){const $=_(D.el)||n;k(D,$,D.anchor),wr(D,!0)}B(D)}};pn.set(D,T),ot(T,s)};if(e==null){const D=t.el=v(""),T=t.anchor=v("");if(p(D,n,r),p(T,n,r),kp(t.props)||s&&s.pendingBranch){W(t);return}w&&(k(t,n,T),wr(t,!0)),B()}else{t.el=e.el;const D=t.anchor=e.anchor,T=pn.get(e);if(T){T.flags|=8,pn.delete(e),W(t);return}t.targetStart=e.targetStart;const $=t.target=e.target,R=t.targetAnchor=e.targetAnchor,oe=Pn(e.props),L=oe?n:$,ae=oe?D:R;if(i==="svg"||Ea($)?i="svg":(i==="mathml"||Aa($))&&(i="mathml"),C?(f(e.dynamicChildren,C,L,o,s,i,a),Fi(e,t,!0)):l||d(e,t,L,ae,o,s,i,a,!1),w)oe?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):eo(t,n,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ye=t.target=Ys(t.props,m);ye&&eo(t,ye,null,c,0)}else oe&&eo(t,$,R,c,1);wr(t,w)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=s||!Pn(f),m=pn.get(e);if(m&&(m.flags|=8,pn.delete(e)),d&&(o(c),o(u)),s&&o(l),!m&&i&16)for(let v=0;v<a.length;v++){const b=a[v];r(b,t,n,p,!!b.dynamicChildren)}},move:eo,hydrate:Sp};function eo(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,d=s===2;if(d&&r(i,t,n),!pn.has(e)&&(!d||Pn(u))&&l&16)for(let f=0;f<c.length;f++)o(c[f],t,n,2);d&&r(a,t,n)}function Sp(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},d){function f(b,_){let w=_;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,b._lpa=t.targetAnchor&&i(t.targetAnchor);break}}w=i(w)}}function p(b,_){_.anchor=d(i(b),_,a(b),n,r,o,s)}const m=t.target=Ys(t.props,l),v=Pn(t.props);if(m){const b=m._lpa||m.firstChild;t.shapeFlag&16&&(v?(p(e,t),f(m,b),t.targetAnchor||Xs(m,t,u,c,a(e)===m?e:null)):(t.anchor=i(e),f(m,b),t.targetAnchor||Xs(m,t,u,c),d(b&&i(b),t,m,n,r,o,s))),wr(t,v)}else v&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Ep=Cp;function wr(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Xs(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[Yu]=i,e&&(r(s,e,o),r(i,e,o)),i}const Rt=Symbol("_leaveCb"),mr=Symbol("_enterCb");function Ap(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return St(()=>{e.isMounted=!0}),yt(()=>{e.isUnmounting=!0}),e}const mt=[Function,Array],$p={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mt,onEnter:mt,onAfterEnter:mt,onEnterCancelled:mt,onBeforeLeave:mt,onLeave:mt,onAfterLeave:mt,onLeaveCancelled:mt,onBeforeAppear:mt,onAppear:mt,onAfterAppear:mt,onAppearCancelled:mt};function Op(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Js(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:b,onAppear:_,onAfterAppear:w,onAppearCancelled:C}=t,k=String(e.key),B=Op(n,e),W=($,R)=>{$&&vt($,r,9,R)},D=($,R)=>{const oe=R[1];W($,R),ge($)?$.every(L=>L.length<=1)&&oe():$.length<=1&&oe()},T={mode:i,persisted:a,beforeEnter($){let R=l;if(!n.isMounted)if(s)R=b||l;else return;$[Rt]&&$[Rt](!0);const oe=B[k];oe&&zn(e,oe)&&oe.el[Rt]&&oe.el[Rt](),W(R,[$])},enter($){if(B[k]===e)return;let R=c,oe=u,L=d;if(!n.isMounted)if(s)R=_||c,oe=w||u,L=C||d;else return;let ae=!1;$[mr]=F=>{ae||(ae=!0,F?W(L,[$]):W(oe,[$]),T.delayedLeave&&T.delayedLeave(),$[mr]=void 0)};const ye=$[mr].bind(null,!1);R?D(R,[$,ye]):ye()},leave($,R){const oe=String(e.key);if($[mr]&&$[mr](!0),n.isUnmounting)return R();W(f,[$]);let L=!1;$[Rt]=ye=>{L||(L=!0,R(),ye?W(v,[$]):W(m,[$]),$[Rt]=void 0,B[oe]===e&&delete B[oe])};const ae=$[Rt].bind(null,!1);B[oe]=e,p?D(p,[$,ae]):ae()},clone($){return Js($,t,n,r)}};return T}function Br(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Br(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 Xu(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===me?(i.patchFlag&128&&o++,r=r.concat(Xu(i.children,t,a))):(t||i.type!==kt)&&r.push(a!=null?bn(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Z(e,t){return xe(e)?Ye({name:e.name},t,{setup:e}):e}function Pp(){const e=Ut();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ju(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $a(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const bo=new WeakMap;function Or(e,t,n,r,o=!1){if(ge(e)){e.forEach((v,b)=>Or(v,t&&(ge(t)?t[b]:t),n,r,o));return}if(Jn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Or(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?Qo(r.component):r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ne?a.refs={}:a.refs,d=a.setupState,f=Oe(d),p=d===Ne?uu:v=>$a(u,v)?!1:Re(f,v),m=(v,b)=>!(b&&$a(u,b));if(c!=null&&c!==l){if(Oa(t),Ve(c))u[c]=null,p(c)&&(d[c]=null);else if(Ge(c)){const v=t;m(c,v.k)&&(c.value=null),v.k&&(u[v.k]=null)}}if(xe(l))Wr(l,a,12,[i,u]);else{const v=Ve(l),b=Ge(l);if(v||b){const _=()=>{if(e.f){const w=v?p(l)?d[l]:u[l]:m()||!e.k?l.value:u[e.k];if(o)ge(w)&&Ei(w,s);else if(ge(w))w.includes(s)||w.push(s);else if(v)u[l]=[s],p(l)&&(d[l]=u[l]);else{const C=[s];m(l,e.k)&&(l.value=C),e.k&&(u[e.k]=C)}}else v?(u[l]=i,p(l)&&(d[l]=i)):b&&(m(l,e.k)&&(l.value=i),e.k&&(u[e.k]=i))};if(i){const w=()=>{_(),bo.delete(e)};w.id=-1,bo.set(e,w),ot(w,n)}else Oa(e),_()}}}function Oa(e){const t=bo.get(e);t&&(t.flags|=8,bo.delete(e))}Lo().requestIdleCallback;Lo().cancelIdleCallback;const Jn=e=>!!e.type.__asyncLoader,Qu=e=>e.type.__isKeepAlive;function Zu(e,t){tc(e,"a",t)}function ec(e,t){tc(e,"da",t)}function tc(e,t,n=nt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Yo(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Qu(o.parent.vnode)&&Tp(r,t,n,o),o=o.parent}}function Tp(e,t,n,r){const o=Yo(t,e,r,!0);lr(()=>{Ei(r[t],o)},n)}function Yo(e,t,n=nt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{tn();const a=Kr(n),l=vt(t,n,e,i);return a(),nn(),l});return r?o.unshift(s):o.push(s),s}}const an=e=>(t,n=nt)=>{(!jr||e==="sp")&&Yo(e,(...r)=>t(...r),n)},Rp=an("bm"),St=an("m"),Mp=an("bu"),Ii=an("u"),yt=an("bum"),lr=an("um"),Ip=an("sp"),Dp=an("rtg"),qp=an("rtc");function Fp(e,t=nt){Yo("ec",e,t)}const Bp="components",nc=Symbol.for("v-ndc");function yn(e){return Ve(e)?Np(Bp,e,!1)||e:e||nc}function Np(e,t,n=!0,r=!1){const o=Qe||nt;if(o){const s=o.type;{const a=xh(s,!1);if(a&&(a===t||a===Ze(t)||a===No(Ze(t))))return s}const i=Pa(o[e]||s[e],t)||Pa(o.appContext[e],t);return!i&&r?s:i}}function Pa(e,t){return e&&(e[t]||e[Ze(t)]||e[No(Ze(t))])}function De(e,t,n,r){let o;const s=n,i=ge(e);if(i||Ve(e)){const a=i&&Rn(e);let l=!1,c=!1;a&&(l=!dt(e),c=rn(e),e=Vo(e)),o=new Array(e.length);for(let u=0,d=e.length;u<d;u++)o[u]=t(l?c?er(wt(e[u])):wt(e[u]):e[u],u,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(Pe(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];o[l]=t(e[u],u,l,s)}}else o=[];return o}function be(e,t,n={},r,o){if(Qe.ce||Qe.parent&&Jn(Qe.parent)&&Qe.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),g(),X(me,null,[Y("slot",n,r&&r())],c?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),g();const i=s&&rc(s(n)),a=n.key||i&&i.key,l=X(me,{key:(a&&!pt(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function rc(e){return e.some(t=>Lr(t)?!(t.type===kt||t.type===me&&!rc(t.children)):!0)?e:null}const Qs=e=>e?kc(e)?Qo(e):Qs(e.parent):null,Pr=Ye(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=>Qs(e.parent),$root:e=>Qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ic(e),$forceUpdate:e=>e.f||(e.f=()=>{Mi(e.update)}),$nextTick:e=>e.n||(e.n=He.bind(e.proxy)),$watch:e=>xp.bind(e)}),ws=(e,t)=>e!==Ne&&!e.__isScriptSetup&&Re(e,t),Lp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const f=i[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ws(r,t))return i[t]=1,r[t];if(o!==Ne&&Re(o,t))return i[t]=2,o[t];if(Re(s,t))return i[t]=3,s[t];if(n!==Ne&&Re(n,t))return i[t]=4,n[t];ei&&(i[t]=0)}}const c=Pr[t];let u,d;if(c)return t==="$attrs"&&tt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ne&&Re(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Re(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return ws(o,t)?(o[t]=n,!0):r!==Ne&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:i}},a){let l;return!!(n[a]||e!==Ne&&a[0]!=="$"&&Re(e,a)||ws(t,a)||Re(s,a)||Re(r,a)||Re(Pr,a)||Re(o.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zs(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function oc(e,t){const n=Zs(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?ge(o)||xe(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}let ei=!0;function jp(e){const t=ic(e),n=e.proxy,r=e.ctx;ei=!1,t.beforeCreate&&Ta(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:v,deactivated:b,beforeDestroy:_,beforeUnmount:w,destroyed:C,unmounted:k,render:B,renderTracked:W,renderTriggered:D,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:oe,components:L,directives:ae,filters:ye}=t;if(c&&Vp(c,r,null),i)for(const ne in i){const ce=i[ne];xe(ce)&&(r[ne]=ce.bind(n))}if(o){const ne=o.call(n,n);Pe(ne)&&(e.data=Dn(ne))}if(ei=!0,s)for(const ne in s){const ce=s[ne],M=xe(ce)?ce.bind(n,n):xe(ce.get)?ce.get.bind(n,n):Bt,N=!xe(ce)&&xe(ce.set)?ce.set.bind(n):Bt,Q=E({get:M,set:N});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>Q.value,set:pe=>Q.value=pe})}if(a)for(const ne in a)sc(a[ne],r,n,ne);if(l){const ne=xe(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ce=>{qt(ce,ne[ce])})}u&&Ta(u,e,"c");function re(ne,ce){ge(ce)?ce.forEach(M=>ne(M.bind(n))):ce&&ne(ce.bind(n))}if(re(Rp,d),re(St,f),re(Mp,p),re(Ii,m),re(Zu,v),re(ec,b),re(Fp,T),re(qp,W),re(Dp,D),re(yt,w),re(lr,k),re(Ip,$),ge(R))if(R.length){const ne=e.exposed||(e.exposed={});R.forEach(ce=>{Object.defineProperty(ne,ce,{get:()=>n[ce],set:M=>n[ce]=M,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Bt&&(e.render=B),oe!=null&&(e.inheritAttrs=oe),L&&(e.components=L),ae&&(e.directives=ae),$&&Ju(e)}function Vp(e,t,n=Bt){ge(e)&&(e=ti(e));for(const r in e){const o=e[r];let s;Pe(o)?"default"in o?s=Ke(o.from||r,o.default,!0):s=Ke(o.from||r):s=Ke(o),Ge(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Ta(e,t,n){vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function sc(e,t,n,r){let o=r.includes(".")?Gu(n,r):()=>n[r];if(Ve(e)){const s=t[e];xe(s)&&Le(o,s)}else if(xe(e))Le(o,e.bind(n));else if(Pe(e))if(ge(e))e.forEach(s=>sc(s,t,n,r));else{const s=xe(e.handler)?e.handler.bind(n):t[e.handler];xe(s)&&Le(o,s,e)}}function ic(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>_o(l,c,i,!0)),_o(l,t,i)),Pe(t)&&s.set(t,l),l}function _o(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&_o(e,s,n,!0),o&&o.forEach(i=>_o(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=zp[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const zp={data:Ra,props:Ma,emits:Ma,methods:kr,computed:kr,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:kr,directives:kr,watch:Hp,provide:Ra,inject:Up};function Ra(e,t){return t?e?function(){return Ye(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function Up(e,t){return kr(ti(e),ti(t))}function ti(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function kr(e,t){return e?Ye(Object.create(null),e,t):t}function Ma(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ye(Object.create(null),Zs(e),Zs(t??{})):t}function Hp(e,t){if(!e)return t;if(!t)return e;const n=Ye(Object.create(null),e);for(const r in t)n[r]=rt(e[r],t[r]);return n}function ac(){return{app:null,config:{isNativeTag:uu,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 Wp=0;function Kp(e,t){return function(r,o=null){xe(r)||(r=Ye({},r)),o!=null&&!Pe(o)&&(o=null);const s=ac(),i=new WeakSet,a=[];let l=!1;const c=s.app={_uid:Wp++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:kh,get config(){return s.config},set config(u){},use(u,...d){return i.has(u)||(u&&xe(u.install)?(i.add(u),u.install(c,...d)):xe(u)&&(i.add(u),u(c,...d))),c},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),c},component(u,d){return d?(s.components[u]=d,c):s.components[u]},directive(u,d){return d?(s.directives[u]=d,c):s.directives[u]},mount(u,d,f){if(!l){const p=c._ceVNode||Y(r,o);return p.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),l=!0,c._container=u,u.__vue_app__=c,Qo(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(vt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return s.provides[u]=d,c},runWithContext(u){const d=Qn;Qn=c;try{return u()}finally{Qn=d}}};return c}}let Qn=null;const Gp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ze(t)}Modifiers`]||e[`${kn(t)}Modifiers`];function Yp(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ne;let o=n;const s=t.startsWith("update:"),i=s&&Gp(r,t.slice(7));i&&(i.trim&&(o=n.map(u=>Ve(u)?u.trim():u)),i.number&&(o=n.map(Ai)));let a,l=r[a=co(t)]||r[a=co(Ze(t))];!l&&s&&(l=r[a=co(kn(t))]),l&&vt(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vt(c,e,6,o)}}const Xp=new WeakMap;function lc(e,t,n=!1){const r=n?Xp:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!xe(e)){const l=c=>{const u=lc(c,t,!0);u&&(a=!0,Ye(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Pe(e)&&r.set(e,null),null):(ge(s)?s.forEach(l=>i[l]=null):Ye(i,s),Pe(e)&&r.set(e,i),i)}function Xo(e,t){return!e||!Do(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,kn(t))||Re(e,t))}function Ia(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:v}=e,b=yo(e);let _,w;try{if(n.shapeFlag&4){const k=o||r,B=k;_=It(c.call(B,k,u,d,p,f,m)),w=a}else{const k=t;_=It(k.length>1?k(d,{attrs:a,slots:i,emit:l}):k(d,null)),w=t.props?a:Jp(a)}}catch(k){Tr.length=0,Ko(k,e,1),_=Y(kt)}let C=_;if(w&&v!==!1){const k=Object.keys(w),{shapeFlag:B}=C;k.length&&B&7&&(s&&k.some(qo)&&(w=Qp(w,s)),C=bn(C,w,!1,!0))}return n.dirs&&(C=bn(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Br(C,n.transition),_=C,yo(b),_}const Jp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Do(n))&&((t||(t={}))[n]=e[n]);return t},Qp=(e,t)=>{const n={};for(const r in e)(!qo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Zp(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Da(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(uc(i,r,f)&&!Xo(c,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Da(r,i,c):!0:!!i;return!1}function Da(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(uc(t,e,s)&&!Xo(n,s))return!0}return!1}function uc(e,t,n){const r=e[n],o=t[n];return n==="style"&&Pe(r)&&Pe(o)?!$i(r,o):r!==o}function eh({vnode:e,parent:t,suspense:n},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=r,e=o),o===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const cc={},dc=()=>Object.create(cc),fc=e=>Object.getPrototypeOf(e)===cc;function th(e,t,n,r=!1){const o={},s=dc();e.propsDefaults=Object.create(null),pc(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Fu(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function nh(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Oe(o),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Xo(e.emitsOptions,f))continue;const p=t[f];if(l)if(Re(s,f))p!==s[f]&&(s[f]=p,c=!0);else{const m=Ze(f);o[m]=ni(l,a,m,p,e,!1)}else p!==s[f]&&(s[f]=p,c=!0)}}}else{pc(e,t,o,s)&&(c=!0);let u;for(const d in a)(!t||!Re(t,d)&&((u=kn(d))===d||!Re(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(o[d]=ni(l,a,d,void 0,e,!0)):delete o[d]);if(s!==a)for(const d in s)(!t||!Re(t,d))&&(delete s[d],c=!0)}c&&Jt(e.attrs,"set","")}function pc(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Er(l))continue;const c=t[l];let u;o&&Re(o,u=Ze(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Xo(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(s){const l=Oe(n),c=a||Ne;for(let u=0;u<s.length;u++){const d=s[u];n[d]=ni(o,l,d,c[d],e,!Re(c,d))}}return i}function ni(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=Re(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&xe(l)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=Kr(o);r=c[n]=l.call(null,t),u()}}else r=l;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===kn(n))&&(r=!0))}return r}const rh=new WeakMap;function hc(e,t,n=!1){const r=n?rh:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!xe(e)){const u=d=>{l=!0;const[f,p]=hc(d,t,!0);Ye(i,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return Pe(e)&&r.set(e,Gn),Gn;if(ge(s))for(let u=0;u<s.length;u++){const d=Ze(s[u]);qa(d)&&(i[d]=Ne)}else if(s)for(const u in s){const d=Ze(u);if(qa(d)){const f=s[u],p=i[d]=ge(f)||xe(f)?{type:f}:Ye({},f),m=p.type;let v=!1,b=!0;if(ge(m))for(let _=0;_<m.length;++_){const w=m[_],C=xe(w)&&w.name;if(C==="Boolean"){v=!0;break}else C==="String"&&(b=!1)}else v=xe(m)&&m.name==="Boolean";p[0]=v,p[1]=b,(v||Re(p,"default"))&&a.push(d)}}const c=[i,a];return Pe(e)&&r.set(e,c),c}function qa(e){return e[0]!=="$"&&!Er(e)}const Di=e=>e==="_"||e==="_ctx"||e==="$stable",qi=e=>ge(e)?e.map(It):[It(e)],oh=(e,t,n)=>{if(t._n)return t;const r=J((...o)=>qi(t(...o)),n);return r._c=!1,r},mc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Di(o))continue;const s=e[o];if(xe(s))t[o]=oh(o,s,r);else if(s!=null){const i=qi(s);t[o]=()=>i}}},gc=(e,t)=>{const n=qi(t);e.slots.default=()=>n},vc=(e,t,n)=>{for(const r in t)(n||!Di(r))&&(e[r]=t[r])},sh=(e,t,n)=>{const r=e.slots=dc();if(e.vnode.shapeFlag&32){const o=t._;o?(vc(r,t,n),n&&hu(r,"_",o,!0)):mc(t,r)}else t&&gc(e,t)},ih=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Ne;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:vc(o,t,n):(s=!t.$stable,mc(t,o)),i=t}else t&&(gc(e,t),i={default:1});if(s)for(const a in o)!Di(a)&&i[a]==null&&delete o[a]},ot=dh;function ah(e){return lh(e)}function lh(e,t){const n=Lo();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Bt,insertStaticContent:m}=e,v=(y,x,S,z=null,H=null,j=null,se=void 0,te=null,ee=!!x.dynamicChildren)=>{if(y===x)return;y&&!zn(y,x)&&(z=P(y),pe(y,H,j,!0),y=null),x.patchFlag===-2&&(ee=!1,x.dynamicChildren=null);const{type:G,ref:ve,shapeFlag:ue}=x;switch(G){case Jo:b(y,x,S,z);break;case kt:_(y,x,S,z);break;case Cs:y==null&&w(x,S,z,se);break;case me:L(y,x,S,z,H,j,se,te,ee);break;default:ue&1?B(y,x,S,z,H,j,se,te,ee):ue&6?ae(y,x,S,z,H,j,se,te,ee):(ue&64||ue&128)&&G.process(y,x,S,z,H,j,se,te,ee,ie)}ve!=null&&H?Or(ve,y&&y.ref,j,x||y,!x):ve==null&&y&&y.ref!=null&&Or(y.ref,null,j,y,!0)},b=(y,x,S,z)=>{if(y==null)r(x.el=a(x.children),S,z);else{const H=x.el=y.el;x.children!==y.children&&c(H,x.children)}},_=(y,x,S,z)=>{y==null?r(x.el=l(x.children||""),S,z):x.el=y.el},w=(y,x,S,z)=>{[y.el,y.anchor]=m(y.children,x,S,z,y.el,y.anchor)},C=({el:y,anchor:x},S,z)=>{let H;for(;y&&y!==x;)H=f(y),r(y,S,z),y=H;r(x,S,z)},k=({el:y,anchor:x})=>{let S;for(;y&&y!==x;)S=f(y),o(y),y=S;o(x)},B=(y,x,S,z,H,j,se,te,ee)=>{if(x.type==="svg"?se="svg":x.type==="math"&&(se="mathml"),y==null)W(x,S,z,H,j,se,te,ee);else{const G=y.el&&y.el._isVueCE?y.el:null;try{G&&G._beginPatch(),$(y,x,H,j,se,te,ee)}finally{G&&G._endPatch()}}},W=(y,x,S,z,H,j,se,te)=>{let ee,G;const{props:ve,shapeFlag:ue,transition:he,dirs:_e}=y;if(ee=y.el=i(y.type,j,ve&&ve.is,ve),ue&8?u(ee,y.children):ue&16&&T(y.children,ee,null,z,H,ks(y,j),se,te),_e&&Sn(y,null,z,"created"),D(ee,y,y.scopeId,se,z),ve){for(const Fe in ve)Fe!=="value"&&!Er(Fe)&&s(ee,Fe,null,ve[Fe],j,z);"value"in ve&&s(ee,"value",null,ve.value,j),(G=ve.onVnodeBeforeMount)&&Ot(G,z,y)}_e&&Sn(y,null,z,"beforeMount");const $e=uh(H,he);$e&&he.beforeEnter(ee),r(ee,x,S),((G=ve&&ve.onVnodeMounted)||$e||_e)&&ot(()=>{G&&Ot(G,z,y),$e&&he.enter(ee),_e&&Sn(y,null,z,"mounted")},H)},D=(y,x,S,z,H)=>{if(S&&p(y,S),z)for(let j=0;j<z.length;j++)p(y,z[j]);if(H){let j=H.subTree;if(x===j||_c(j.type)&&(j.ssContent===x||j.ssFallback===x)){const se=H.vnode;D(y,se,se.scopeId,se.slotScopeIds,H.parent)}}},T=(y,x,S,z,H,j,se,te,ee=0)=>{for(let G=ee;G<y.length;G++){const ve=y[G]=te?Xt(y[G]):It(y[G]);v(null,ve,x,S,z,H,j,se,te)}},$=(y,x,S,z,H,j,se)=>{const te=x.el=y.el;let{patchFlag:ee,dynamicChildren:G,dirs:ve}=x;ee|=y.patchFlag&16;const ue=y.props||Ne,he=x.props||Ne;let _e;if(S&&En(S,!1),(_e=he.onVnodeBeforeUpdate)&&Ot(_e,S,x,y),ve&&Sn(x,y,S,"beforeUpdate"),S&&En(S,!0),(ue.innerHTML&&he.innerHTML==null||ue.textContent&&he.textContent==null)&&u(te,""),G?R(y.dynamicChildren,G,te,S,z,ks(x,H),j):se||ce(y,x,te,null,S,z,ks(x,H),j,!1),ee>0){if(ee&16)oe(te,ue,he,S,H);else if(ee&2&&ue.class!==he.class&&s(te,"class",null,he.class,H),ee&4&&s(te,"style",ue.style,he.style,H),ee&8){const $e=x.dynamicProps;for(let Fe=0;Fe<$e.length;Fe++){const Ie=$e[Fe],We=ue[Ie],Je=he[Ie];(Je!==We||Ie==="value")&&s(te,Ie,We,Je,H,S)}}ee&1&&y.children!==x.children&&u(te,x.children)}else!se&&G==null&&oe(te,ue,he,S,H);((_e=he.onVnodeUpdated)||ve)&&ot(()=>{_e&&Ot(_e,S,x,y),ve&&Sn(x,y,S,"updated")},z)},R=(y,x,S,z,H,j,se)=>{for(let te=0;te<x.length;te++){const ee=y[te],G=x[te],ve=ee.el&&(ee.type===me||!zn(ee,G)||ee.shapeFlag&198)?d(ee.el):S;v(ee,G,ve,null,z,H,j,se,!0)}},oe=(y,x,S,z,H)=>{if(x!==S){if(x!==Ne)for(const j in x)!Er(j)&&!(j in S)&&s(y,j,x[j],null,H,z);for(const j in S){if(Er(j))continue;const se=S[j],te=x[j];se!==te&&j!=="value"&&s(y,j,te,se,H,z)}"value"in S&&s(y,"value",x.value,S.value,H)}},L=(y,x,S,z,H,j,se,te,ee)=>{const G=x.el=y?y.el:a(""),ve=x.anchor=y?y.anchor:a("");let{patchFlag:ue,dynamicChildren:he,slotScopeIds:_e}=x;_e&&(te=te?te.concat(_e):_e),y==null?(r(G,S,z),r(ve,S,z),T(x.children||[],S,ve,H,j,se,te,ee)):ue>0&&ue&64&&he&&y.dynamicChildren&&y.dynamicChildren.length===he.length?(R(y.dynamicChildren,he,S,H,j,se,te),(x.key!=null||H&&x===H.subTree)&&Fi(y,x,!0)):ce(y,x,S,ve,H,j,se,te,ee)},ae=(y,x,S,z,H,j,se,te,ee)=>{x.slotScopeIds=te,y==null?x.shapeFlag&512?H.ctx.activate(x,S,z,se,ee):ye(x,S,z,H,j,se,ee):F(y,x,ee)},ye=(y,x,S,z,H,j,se)=>{const te=y.component=gh(y,z,H);if(Qu(y)&&(te.ctx.renderer=ie),vh(te,!1,se),te.asyncDep){if(H&&H.registerDep(te,re,se),!y.el){const ee=te.subTree=Y(kt);_(null,ee,x,S),y.placeholder=ee.el}}else re(te,y,x,S,H,j,se)},F=(y,x,S)=>{const z=x.component=y.component;if(Zp(y,x,S))if(z.asyncDep&&!z.asyncResolved){ne(z,x,S);return}else z.next=x,z.update();else x.el=y.el,z.vnode=x},re=(y,x,S,z,H,j,se)=>{const te=()=>{if(y.isMounted){let{next:ue,bu:he,u:_e,parent:$e,vnode:Fe}=y;{const At=yc(y);if(At){ue&&(ue.el=Fe.el,ne(y,ue,se)),At.asyncDep.then(()=>{ot(()=>{y.isUnmounted||G()},H)});return}}let Ie=ue,We;En(y,!1),ue?(ue.el=Fe.el,ne(y,ue,se)):ue=Fe,he&&fo(he),(We=ue.props&&ue.props.onVnodeBeforeUpdate)&&Ot(We,$e,ue,Fe),En(y,!0);const Je=Ia(y),Et=y.subTree;y.subTree=Je,v(Et,Je,d(Et.el),P(Et),y,H,j),ue.el=Je.el,Ie===null&&eh(y,Je.el),_e&&ot(_e,H),(We=ue.props&&ue.props.onVnodeUpdated)&&ot(()=>Ot(We,$e,ue,Fe),H)}else{let ue;const{el:he,props:_e}=x,{bm:$e,m:Fe,parent:Ie,root:We,type:Je}=y,Et=Jn(x);En(y,!1),$e&&fo($e),!Et&&(ue=_e&&_e.onVnodeBeforeMount)&&Ot(ue,Ie,x),En(y,!0);{We.ce&&We.ce._hasShadowRoot()&&We.ce._injectChildStyle(Je,y.parent?y.parent.type:void 0);const At=y.subTree=Ia(y);v(null,At,S,z,y,H,j),x.el=At.el}if(Fe&&ot(Fe,H),!Et&&(ue=_e&&_e.onVnodeMounted)){const At=x;ot(()=>Ot(ue,Ie,At),H)}(x.shapeFlag&256||Ie&&Jn(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&y.a&&ot(y.a,H),y.isMounted=!0,x=S=z=null}};y.scope.on();const ee=y.effect=new xu(te);y.scope.off();const G=y.update=ee.run.bind(ee),ve=y.job=ee.runIfDirty.bind(ee);ve.i=y,ve.id=y.uid,ee.scheduler=()=>Mi(ve),En(y,!0),G()},ne=(y,x,S)=>{x.component=y;const z=y.vnode.props;y.vnode=x,y.next=null,nh(y,x.props,z,S),ih(y,x.children,S),tn(),Sa(y),nn()},ce=(y,x,S,z,H,j,se,te,ee=!1)=>{const G=y&&y.children,ve=y?y.shapeFlag:0,ue=x.children,{patchFlag:he,shapeFlag:_e}=x;if(he>0){if(he&128){N(G,ue,S,z,H,j,se,te,ee);return}else if(he&256){M(G,ue,S,z,H,j,se,te,ee);return}}_e&8?(ve&16&&fe(G,H,j),ue!==G&&u(S,ue)):ve&16?_e&16?N(G,ue,S,z,H,j,se,te,ee):fe(G,H,j,!0):(ve&8&&u(S,""),_e&16&&T(ue,S,z,H,j,se,te,ee))},M=(y,x,S,z,H,j,se,te,ee)=>{y=y||Gn,x=x||Gn;const G=y.length,ve=x.length,ue=Math.min(G,ve);let he;for(he=0;he<ue;he++){const _e=x[he]=ee?Xt(x[he]):It(x[he]);v(y[he],_e,S,null,H,j,se,te,ee)}G>ve?fe(y,H,j,!0,!1,ue):T(x,S,z,H,j,se,te,ee,ue)},N=(y,x,S,z,H,j,se,te,ee)=>{let G=0;const ve=x.length;let ue=y.length-1,he=ve-1;for(;G<=ue&&G<=he;){const _e=y[G],$e=x[G]=ee?Xt(x[G]):It(x[G]);if(zn(_e,$e))v(_e,$e,S,null,H,j,se,te,ee);else break;G++}for(;G<=ue&&G<=he;){const _e=y[ue],$e=x[he]=ee?Xt(x[he]):It(x[he]);if(zn(_e,$e))v(_e,$e,S,null,H,j,se,te,ee);else break;ue--,he--}if(G>ue){if(G<=he){const _e=he+1,$e=_e<ve?x[_e].el:z;for(;G<=he;)v(null,x[G]=ee?Xt(x[G]):It(x[G]),S,$e,H,j,se,te,ee),G++}}else if(G>he)for(;G<=ue;)pe(y[G],H,j,!0),G++;else{const _e=G,$e=G,Fe=new Map;for(G=$e;G<=he;G++){const lt=x[G]=ee?Xt(x[G]):It(x[G]);lt.key!=null&&Fe.set(lt.key,G)}let Ie,We=0;const Je=he-$e+1;let Et=!1,At=0;const pr=new Array(Je);for(G=0;G<Je;G++)pr[G]=0;for(G=_e;G<=ue;G++){const lt=y[G];if(We>=Je){pe(lt,H,j,!0);continue}let $t;if(lt.key!=null)$t=Fe.get(lt.key);else for(Ie=$e;Ie<=he;Ie++)if(pr[Ie-$e]===0&&zn(lt,x[Ie])){$t=Ie;break}$t===void 0?pe(lt,H,j,!0):(pr[$t-$e]=G+1,$t>=At?At=$t:Et=!0,v(lt,x[$t],S,null,H,j,se,te,ee),We++)}const ya=Et?ch(pr):Gn;for(Ie=ya.length-1,G=Je-1;G>=0;G--){const lt=$e+G,$t=x[lt],ba=x[lt+1],_a=lt+1<ve?ba.el||bc(ba):z;pr[G]===0?v(null,$t,S,_a,H,j,se,te,ee):Et&&(Ie<0||G!==ya[Ie]?Q($t,S,_a,2):Ie--)}}},Q=(y,x,S,z,H=null)=>{const{el:j,type:se,transition:te,children:ee,shapeFlag:G}=y;if(G&6){Q(y.component.subTree,x,S,z);return}if(G&128){y.suspense.move(x,S,z);return}if(G&64){se.move(y,x,S,ie);return}if(se===me){r(j,x,S);for(let ue=0;ue<ee.length;ue++)Q(ee[ue],x,S,z);r(y.anchor,x,S);return}if(se===Cs){C(y,x,S);return}if(z!==2&&G&1&&te)if(z===0)te.persisted&&!j[Rt]?r(j,x,S):(te.beforeEnter(j),r(j,x,S),ot(()=>te.enter(j),H));else{const{leave:ue,delayLeave:he,afterLeave:_e}=te,$e=()=>{y.ctx.isUnmounted?o(j):r(j,x,S)},Fe=()=>{const Ie=j._isLeaving||!!j[Rt];j._isLeaving&&j[Rt](!0),te.persisted&&!Ie?$e():ue(j,()=>{$e(),_e&&_e()})};he?he(j,$e,Fe):Fe()}else r(j,x,S)},pe=(y,x,S,z=!1,H=!1)=>{const{type:j,props:se,ref:te,children:ee,dynamicChildren:G,shapeFlag:ve,patchFlag:ue,dirs:he,cacheIndex:_e,memo:$e}=y;if(ue===-2&&(H=!1),te!=null&&(tn(),Or(te,null,S,y,!0),nn()),_e!=null&&(x.renderCache[_e]=void 0),ve&256){x.ctx.deactivate(y);return}const Fe=ve&1&&he,Ie=!Jn(y);let We;if(Ie&&(We=se&&se.onVnodeBeforeUnmount)&&Ot(We,x,y),ve&6)le(y.component,S,z);else{if(ve&128){y.suspense.unmount(S,z);return}Fe&&Sn(y,null,x,"beforeUnmount"),ve&64?y.type.remove(y,x,S,ie,z):G&&!G.hasOnce&&(j!==me||ue>0&&ue&64)?fe(G,x,S,!1,!0):(j===me&&ue&384||!H&&ve&16)&&fe(ee,x,S),z&&ke(y)}const Je=$e!=null&&_e==null;(Ie&&(We=se&&se.onVnodeUnmounted)||Fe||Je)&&ot(()=>{We&&Ot(We,x,y),Fe&&Sn(y,null,x,"unmounted"),Je&&(y.el=null)},S)},ke=y=>{const{type:x,el:S,anchor:z,transition:H}=y;if(x===me){Se(S,z);return}if(x===Cs){k(y);return}const j=()=>{o(S),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(y.shapeFlag&1&&H&&!H.persisted){const{leave:se,delayLeave:te}=H,ee=()=>se(S,j);te?te(y.el,j,ee):ee()}else j()},Se=(y,x)=>{let S;for(;y!==x;)S=f(y),o(y),y=S;o(x)},le=(y,x,S)=>{const{bum:z,scope:H,job:j,subTree:se,um:te,m:ee,a:G}=y;Fa(ee),Fa(G),z&&fo(z),H.stop(),j&&(j.flags|=8,pe(se,y,x,S)),te&&ot(te,x),ot(()=>{y.isUnmounted=!0},x)},fe=(y,x,S,z=!1,H=!1,j=0)=>{for(let se=j;se<y.length;se++)pe(y[se],x,S,z,H)},P=y=>{if(y.shapeFlag&6)return P(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const x=f(y.anchor||y.el),S=x&&x[Yu];return S?f(S):x};let V=!1;const K=(y,x,S)=>{let z;y==null?x._vnode&&(pe(x._vnode,null,null,!0),z=x._vnode.component):v(x._vnode||null,y,x,null,null,null,S),x._vnode=y,V||(V=!0,Sa(z),Uu(),V=!1)},ie={p:v,um:pe,m:Q,r:ke,mt:ye,mc:T,pc:ce,pbc:R,n:P,o:e};return{render:K,hydrate:void 0,createApp:Kp(K)}}function ks({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 En({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function uh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(e,t,n=!1){const r=e.children,o=t.children;if(ge(r)&&ge(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Xt(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&Fi(i,a)),a.type===Jo&&(a.patchFlag===-1&&(a=o[s]=Xt(a)),a.el=i.el),a.type===kt&&!a.el&&(a.el=i.el)}}function ch(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function yc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yc(t)}function Fa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function bc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?bc(t.subTree):null}const _c=e=>e.__isSuspense;function dh(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):yp(e)}const me=Symbol.for("v-fgt"),Jo=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),Cs=Symbol.for("v-stc"),Tr=[];let ct=null;function g(e=!1){Tr.push(ct=e?null:[])}function fh(){Tr.pop(),ct=Tr[Tr.length-1]||null}let Nr=1;function xo(e,t=!1){Nr+=e,e<0&&ct&&t&&(ct.hasOnce=!0)}function xc(e){return e.dynamicChildren=Nr>0?ct||Gn:null,fh(),Nr>0&&ct&&ct.push(e),e}function A(e,t,n,r,o,s){return xc(O(e,t,n,r,o,s,!0))}function X(e,t,n,r,o){return xc(Y(e,t,n,r,o,!0))}function Lr(e){return e?e.__v_isVNode===!0:!1}function zn(e,t){return e.type===t.type&&e.key===t.key}const wc=({key:e})=>e??null,po=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Ge(e)||xe(e)?{i:Qe,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,o=null,s=e===me?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wc(t),ref:t&&po(t),scopeId:Wu,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Qe};return a?(Bi(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ve(n)?8:16),Nr>0&&!i&&ct&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&ct.push(l),l}const Y=ph;function ph(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===nc)&&(e=kt),Lr(e)){const a=bn(e,t,!0);return n&&Bi(a,n),Nr>0&&!s&&ct&&(a.shapeFlag&6?ct[ct.indexOf(e)]=a:ct.push(a)),a.patchFlag=-2,a}if(wh(e)&&(e=e.__vccOpts),t){t=bt(t);let{class:a,style:l}=t;a&&!Ve(a)&&(t.class=we(a)),Pe(l)&&(Ho(l)&&!ge(l)&&(l=Ye({},l)),t.style=ir(l))}const i=Ve(e)?1:_c(e)?128:wp(e)?64:Pe(e)?4:xe(e)?2:0;return O(e,t,n,r,o,i,s,!0)}function bt(e){return e?Ho(e)||fc(e)?Ye({},e):e:null}function bn(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?ze(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&wc(c),ref:t&&t.ref?n&&s?ge(s)?s.concat(po(t)):[s,po(t)]:po(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bn(e.ssContent),ssFallback:e.ssFallback&&bn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Br(u,l.clone(u)),u}function Ee(e=" ",t=0){return Y(Jo,null,e,t)}function de(e="",t=!1){return t?(g(),X(kt,null,e)):Y(kt,null,e)}function It(e){return e==null||typeof e=="boolean"?Y(kt):ge(e)?Y(me,null,e.slice()):Lr(e)?Xt(e):Y(Jo,null,String(e))}function Xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bn(e)}function Bi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Bi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!fc(t)?t._ctx=Qe:o===3&&Qe&&(Qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:Qe},n=32):(t=String(t),r&64?(n=16,t=[Ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function ze(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=we([t.class,r.class]));else if(o==="style")t.style=ir([t.style,r.style]);else if(Do(o)){const s=t[o],i=r[o];i&&s!==i&&!(ge(s)&&s.includes(i))?t[o]=s?[].concat(s,i):i:i==null&&s==null&&!qo(o)&&(t[o]=i)}else o!==""&&(t[o]=r[o])}return t}function Ot(e,t,n,r=null){vt(e,t,7,[n,r])}const hh=ac();let mh=0;function gh(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||hh,s={uid:mh++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new yu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hc(r,o),emitsOptions:lc(r,o),emit:null,emitted:null,propsDefaults:Ne,inheritAttrs:r.inheritAttrs,ctx:Ne,data:Ne,props:Ne,attrs:Ne,slots:Ne,refs:Ne,setupState:Ne,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Yp.bind(null,s),e.ce&&e.ce(s),s}let nt=null;const Ut=()=>nt||Qe;let wo,ri;{const e=Lo(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};wo=t("__VUE_INSTANCE_SETTERS__",n=>nt=n),ri=t("__VUE_SSR_SETTERS__",n=>jr=n)}const Kr=e=>{const t=nt;return wo(e),e.scope.on(),()=>{e.scope.off(),wo(t)}},Ba=()=>{nt&&nt.scope.off(),wo(null)};function kc(e){return e.vnode.shapeFlag&4}let jr=!1;function vh(e,t=!1,n=!1){t&&ri(t);const{props:r,children:o}=e.vnode,s=kc(e);th(e,r,s,t),sh(e,o,n||t);const i=s?yh(e,t):void 0;return t&&ri(!1),i}function yh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lp);const{setup:r}=n;if(r){tn();const o=e.setupContext=r.length>1?_h(e):null,s=Kr(e),i=Wr(r,e,0,[e.props,o]),a=du(i);if(nn(),s(),(a||e.sp)&&!Jn(e)&&Ju(e),a){if(i.then(Ba,Ba),t)return i.then(l=>{Na(e,l)}).catch(l=>{Ko(l,e,0)});e.asyncDep=i}else Na(e,i)}else Cc(e)}function Na(e,t,n){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Lu(t)),Cc(e)}function Cc(e,t,n){const r=e.type;e.render||(e.render=r.render||Bt);{const o=Kr(e);tn();try{jp(e)}finally{nn(),o()}}}const bh={get(e,t){return tt(e,"get",""),e[t]}};function _h(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,bh),slots:e.slots,emit:e.emit,expose:t}}function Qo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lu(Bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pr)return Pr[n](e)},has(t,n){return n in t||n in Pr}})):e.proxy}function xh(e,t=!0){return xe(e)?e.displayName||e.name:e.name||t&&e.__name}function wh(e){return xe(e)&&"__vccOpts"in e}const E=(e,t)=>pp(e,t,jr);function gt(e,t,n){try{xo(-1);const r=arguments.length;return r===2?Pe(t)&&!ge(t)?Lr(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Lr(n)&&(n=[n]),Y(e,t,n))}finally{xo(1)}}const kh="3.5.35";let oi;const La=typeof window<"u"&&window.trustedTypes;if(La)try{oi=La.createPolicy("vue",{createHTML:e=>e})}catch{}const Sc=oi?e=>oi.createHTML(e):e=>e,Ch="http://www.w3.org/2000/svg",Sh="http://www.w3.org/1998/Math/MathML",Yt=typeof document<"u"?document:null,ja=Yt&&Yt.createElement("template"),Eh={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 o=t==="svg"?Yt.createElementNS(Ch,e):t==="mathml"?Yt.createElementNS(Sh,e):n?Yt.createElement(e,{is:n}):Yt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Yt.createTextNode(e),createComment:e=>Yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ja.innerHTML=Sc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=ja.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dn="transition",gr="animation",tr=Symbol("_vtc"),Ec={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ah=Ye({},$p,Ec),An=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},Va=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function $h(e){const t={};for(const L in e)L in Ec||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Oh(o),v=m&&m[0],b=m&&m[1],{onBeforeEnter:_,onEnter:w,onEnterCancelled:C,onLeave:k,onLeaveCancelled:B,onBeforeAppear:W=_,onAppear:D=w,onAppearCancelled:T=C}=t,$=(L,ae,ye,F)=>{L._enterCancelled=F,hn(L,ae?u:a),hn(L,ae?c:i),ye&&ye()},R=(L,ae)=>{L._isLeaving=!1,hn(L,d),hn(L,p),hn(L,f),ae&&ae()},oe=L=>(ae,ye)=>{const F=L?D:w,re=()=>$(ae,L,ye);An(F,[ae,re]),za(()=>{hn(ae,L?l:s),Pt(ae,L?u:a),Va(F)||Ua(ae,r,v,re)})};return Ye(t,{onBeforeEnter(L){An(_,[L]),Pt(L,s),Pt(L,i)},onBeforeAppear(L){An(W,[L]),Pt(L,l),Pt(L,c)},onEnter:oe(!1),onAppear:oe(!0),onLeave(L,ae){L._isLeaving=!0;const ye=()=>R(L,ae);Pt(L,d),L._enterCancelled?(Pt(L,f),si(L)):(si(L),Pt(L,f)),za(()=>{L._isLeaving&&(hn(L,d),Pt(L,p),Va(k)||Ua(L,r,b,ye))}),An(k,[L,ye])},onEnterCancelled(L){$(L,!1,void 0,!0),An(C,[L])},onAppearCancelled(L){$(L,!0,void 0,!0),An(T,[L])},onLeaveCancelled(L){R(L),An(B,[L])}})}function Oh(e){if(e==null)return null;if(Pe(e))return[Ss(e.enter),Ss(e.leave)];{const t=Ss(e);return[t,t]}}function Ss(e){return Rf(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tr]||(e[tr]=new Set)).add(t)}function hn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tr];n&&(n.delete(t),n.size||(e[tr]=void 0))}function za(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ph=0;function Ua(e,t,n,r){const o=e._endId=++Ph,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=Ac(e,t);if(!i)return r();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),s()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,f)}function Ac(e,t){const n=window.getComputedStyle(e),r=m=>(n[m]||"").split(", "),o=r(`${dn}Delay`),s=r(`${dn}Duration`),i=Ha(o,s),a=r(`${gr}Delay`),l=r(`${gr}Duration`),c=Ha(a,l);let u=null,d=0,f=0;t===dn?i>0&&(u=dn,d=i,f=s.length):t===gr?c>0&&(u=gr,d=c,f=l.length):(d=Math.max(i,c),u=d>0?i>c?dn:gr:null,f=u?u===dn?s.length:l.length:0);const p=u===dn&&/\b(?:transform|all)(?:,|$)/.test(r(`${dn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ha(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Wa(n)+Wa(e[r])))}function Wa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function si(e){return(e?e.ownerDocument:document).body.offsetHeight}function Th(e,t,n){const r=e[tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ko=Symbol("_vod"),$c=Symbol("_vsh"),Rh={name:"show",beforeMount(e,{value:t},{transition:n}){e[ko]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),vr(e,!0),r.enter(e)):r.leave(e,()=>{vr(e,!1)}):vr(e,t))},beforeUnmount(e,{value:t}){vr(e,t)}};function vr(e,t){e.style.display=t?e[ko]:"none",e[$c]=!t}const Mh=Symbol(""),Ih=/(?:^|;)\s*display\s*:/;function Dh(e,t,n){const r=e.style,o=Ve(n);let s=!1;if(n&&!o){if(t)if(Ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Cr(r,a,"")}else for(const i in t)n[i]==null&&Cr(r,i,"");for(const i in n){i==="display"&&(s=!0);const a=n[i];a!=null?Fh(e,i,!Ve(t)&&t?t[i]:void 0,a)||Cr(r,i,a):Cr(r,i,"")}}else if(o){if(t!==n){const i=r[Mh];i&&(n+=";"+i),r.cssText=n,s=Ih.test(n)}}else t&&e.removeAttribute("style");ko in e&&(e[ko]=s?r.display:"",e[$c]&&(r.display="none"))}const Ka=/\s*!important$/;function Cr(e,t,n){if(ge(n))n.forEach(r=>Cr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=qh(e,t);Ka.test(n)?e.setProperty(kn(r),n.replace(Ka,""),"important"):e[r]=n}}const Ga=["Webkit","Moz","ms"],Es={};function qh(e,t){const n=Es[t];if(n)return n;let r=Ze(t);if(r!=="filter"&&r in e)return Es[t]=r;r=No(r);for(let o=0;o<Ga.length;o++){const s=Ga[o]+r;if(s in e)return Es[t]=s}return t}function Fh(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Ve(r)&&n===r}const Ya="http://www.w3.org/1999/xlink";function Xa(e,t,n,r,o,s=Bf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ya,t.slice(6,t.length)):e.setAttributeNS(Ya,t,n):n==null||s&&!mu(n)?e.removeAttribute(t):e.setAttribute(t,s?"":pt(n)?String(n):n)}function Ja(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Sc(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=mu(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Un(e,t,n,r){e.addEventListener(t,n,r)}function Bh(e,t,n,r){e.removeEventListener(t,n,r)}const Qa=Symbol("_vei");function Nh(e,t,n,r,o=null){const s=e[Qa]||(e[Qa]={}),i=s[t];if(r&&i)i.value=r;else{const[a,l]=Lh(t);if(r){const c=s[t]=zh(r,o);Un(e,a,c,l)}else i&&(Bh(e,a,i,l),s[t]=void 0)}}const Za=/(?:Once|Passive|Capture)$/;function Lh(e){let t;if(Za.test(e)){t={};let r;for(;r=e.match(Za);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):kn(e.slice(2)),t]}let As=0;const jh=Promise.resolve(),Vh=()=>As||(jh.then(()=>As=0),As=Date.now());function zh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const o=n.value;if(ge(o)){const s=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{s.call(r),r._stopped=!0};const i=o.slice(),a=[r];for(let l=0;l<i.length&&!r._stopped;l++){const c=i[l];c&&vt(c,t,5,a)}}else vt(o,t,5,[r])};return n.value=e,n.attached=Vh(),n}const el=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uh=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?Th(e,r,i):t==="style"?Dh(e,n,r):Do(t)?qo(t)||Nh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hh(e,t,r,i))?(Ja(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Xa(e,t,r,i,s,t!=="value")):e._isVueCE&&(Wh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ja(e,Ze(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Xa(e,t,r,i))};function Hh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&el(t)&&xe(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return el(t)&&Ve(n)?!1:t in e}function Wh(e,t){const n=e._def.props;if(!n)return!1;const r=Ze(t);return Array.isArray(n)?n.some(o=>Ze(o)===r):Object.keys(n).some(o=>Ze(o)===r)}const Oc=new WeakMap,Pc=new WeakMap,Co=Symbol("_moveCb"),tl=Symbol("_enterCb"),Kh=e=>(delete e.props.mode,e),Gh=Kh({name:"TransitionGroup",props:Ye({},Ah,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ut(),r=Ap();let o,s;return Ii(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Zh(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(Xh),o.forEach(Jh);const a=o.filter(Qh);si(n.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;Pt(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Co]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[Co]=null,hn(c,i))};c.addEventListener("transitionend",d)}),o=[]}),()=>{const i=Oe(e),a=$h(i);let l=i.tag||me;if(o=[],s)for(let c=0;c<s.length;c++){const u=s[c];u.el&&u.el instanceof Element&&(o.push(u),Br(u,Js(u,a,r,n)),Oc.set(u,Tc(u.el)))}s=t.default?Xu(t.default()):[];for(let c=0;c<s.length;c++){const u=s[c];u.key!=null&&Br(u,Js(u,a,r,n))}return Y(l,null,s)}}}),Yh=Gh;function Xh(e){const t=e.el;t[Co]&&t[Co](),t[tl]&&t[tl]()}function Jh(e){Pc.set(e,Tc(e.el))}function Qh(e){const t=Oc.get(e),n=Pc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el,i=s.style,a=s.getBoundingClientRect();let l=1,c=1;return s.offsetWidth&&(l=a.width/s.offsetWidth),s.offsetHeight&&(c=a.height/s.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),i.transform=i.webkitTransform=`translate(${r/l}px,${o/c}px)`,i.transitionDuration="0s",e}}function Tc(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Zh(e,t,n){const r=e.cloneNode(),o=e[tr];o&&o.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=Ac(r);return s.removeChild(r),i}const nl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>fo(t,n):t};function em(e){e.target.composing=!0}function rl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $s=Symbol("_assign");function ol(e,t,n){return t&&(e=e.trim()),n&&(e=Ai(e)),e}const sl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[$s]=nl(o);const s=r||o.props&&o.props.type==="number";Un(e,t?"change":"input",i=>{i.target.composing||e[$s](ol(e.value,n,s))}),(n||s)&&Un(e,"change",()=>{e.value=ol(e.value,n,s)}),t||(Un(e,"compositionstart",em),Un(e,"compositionend",rl),Un(e,"change",rl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[$s]=nl(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Ai(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l)}},tm=["ctrl","shift","alt","meta"],nm={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)=>tm.some(n=>e[`${n}Key`]&&!t.includes(n))},jt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...s)=>{for(let i=0;i<t.length;i++){const a=nm[t[i]];if(a&&a(o,t))return}return e(o,...s)}))},rm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const s=kn(o.key);if(t.some(i=>i===s||rm[i]===s))return e(o)}))},om=Ye({patchProp:Uh},Eh);let il;function sm(){return il||(il=ah(om))}const im=((...e)=>{const t=sm().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=lm(r);if(!o)return;const s=t._component;!xe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,am(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function am(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lm(e){return Ve(e)?document.querySelector(e):e}const Hn=typeof document<"u";function Mc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function um(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Mc(e.default)}const Te=Object.assign;function Os(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ct(o)?o.map(e):e(o)}return n}const Rr=()=>{},Ct=Array.isArray;function al(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Ic=Symbol("");function nr(e,t){return Te(new Error,{type:e,[Ic]:!0},t)}function Gt(e,t){return e instanceof Error&&Ic in e&&(t==null||!!(e.type&t))}const Ni=Symbol(""),ll=Symbol(""),Zo=Symbol(""),Li=Symbol(""),ii=Symbol("");function Gr(){return Ke(Zo)}function Ht(e){return Ke(Li)}const Dc=/#/g,cm=/&/g,dm=/\//g,fm=/=/g,pm=/\?/g,qc=/\+/g,hm=/%5B/g,mm=/%5D/g,Fc=/%5E/g,gm=/%60/g,Bc=/%7B/g,vm=/%7C/g,Nc=/%7D/g,ym=/%20/g;function ji(e){return e==null?"":encodeURI(""+e).replace(vm,"|").replace(hm,"[").replace(mm,"]")}function bm(e){return ji(e).replace(Bc,"{").replace(Nc,"}").replace(Fc,"^")}function ai(e){return ji(e).replace(qc,"%2B").replace(ym,"+").replace(Dc,"%23").replace(cm,"%26").replace(gm,"`").replace(Bc,"{").replace(Nc,"}").replace(Fc,"^")}function _m(e){return ai(e).replace(fm,"%3D")}function xm(e){return ji(e).replace(Dc,"%23").replace(pm,"%3F")}function wm(e){return xm(e).replace(dm,"%2F")}function So(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const km=/\/$/,Cm=e=>e.replace(km,"");function Ps(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),s=t.slice(l,a>0?a:t.length),o=e(s.slice(1))),a>=0&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=$m(r??t,n),{fullPath:r+s+i,path:r,query:o,hash:So(i)}}function Sm(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ul(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Em(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&rr(t.matched[r],n.matched[o])&&Lc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Lc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Am(e[n],t[n]))return!1;return!0}function Am(e,t){return Ct(e)?cl(e,t):Ct(t)?cl(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function cl(e,t){return Ct(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function $m(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const fn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function Om(e){if(!e)if(Hn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cm(e)}const Pm=/^[^#]+#/;function Tm(e,t){return e.replace(Pm,"#")+t}function Rm(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 es=()=>({left:window.scrollX,top:window.scrollY});function Mm(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Rm(o,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 dl(e,t){return(history.state?history.state.position-t:-1)+e}const li=new Map;function Im(e,t){li.set(e,t)}function Dm(e){const t=li.get(e);return li.delete(e),t}function qm(e){return typeof e=="string"||e&&typeof e=="object"}function jc(e){return typeof e=="string"||typeof e=="symbol"}function Fm(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 o=n[r].replace(qc," "),s=o.indexOf("="),i=So(s<0?o:o.slice(0,s)),a=s<0?null:So(o.slice(s+1));if(i in t){let l=t[i];Ct(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function fl(e){let t="";for(let n in e){const r=e[n];if(n=_m(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ct(r)?r.map(o=>o&&ai(o)):[r&&ai(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Bm(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ct(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function yr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Vc(e,t,n){const r=e.value;if(!r)return;let o=r;const s=()=>{o[t].delete(n)};lr(s),ec(s),Zu(()=>{const i=e.value;i&&(o=i),o[t].add(n)}),o[t].add(n)}function Nm(e){Vc(Ke(Ni,{}),"leaveGuards",e)}function Lm(e){Vc(Ke(Ni,{}),"updateGuards",e)}function vn(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(nr(4,{from:n,to:t})):f instanceof Error?l(f):qm(f)?l(nr(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=s(()=>e.call(r&&r.instances[o],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Ts(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Mc(l)){const c=(l.__vccOpts||l)[t];c&&s.push(vn(c,n,r,i,a,o))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=um(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&vn(f,n,r,i,a,o)()}))}}return s}function jm(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const a=t.matched[i];a&&(e.matched.find(c=>rr(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>rr(c,l))||o.push(l))}return[n,r,o]}let Vm=()=>location.protocol+"//"+location.host;function zc(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let i=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),ul(a,"")}return ul(n,e)+r+o}function zm(e,t,n,r){let o=[],s=[],i=null;const a=({state:f})=>{const p=zc(e,location),m=n.value,v=t.value;let b=0;if(f){if(n.value=p,t.value=f,i&&i===m){i=null;return}b=v?f.position-v.position:0}else r(p);o.forEach(_=>{_(n.value,m,{delta:b,type:"pop",direction:b?b>0?"forward":"back":""})})};function l(){i=n.value}function c(f){o.push(f);const p=()=>{const m=o.indexOf(f);m>-1&&o.splice(m,1)};return s.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Te({},f.state,{scroll:es()}),"")}}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:d}}function pl(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?es():null}}function Um(e){const{history:t,location:n}=window,r={value:zc(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Vm()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function i(l,c){s(l,Te({},t.state,pl(o.value.back,l,o.value.forward,!0),c,{position:o.value.position}),!0),r.value=l}function a(l,c){const u=Te({},o.value,t.state,{forward:l,scroll:es()});s(u.current,u,!0),s(l,Te({},pl(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function Hm(e){e=Om(e);const t=Um(e),n=zm(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Te({location:"",base:e,go:r,createHref:Tm.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}const Wm={type:0,value:""},Km=/[a-zA-Z0-9_]/;function Gm(e){if(!e)return[[]];if(e==="/")return[[Wm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function d(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;)switch(l=e[a++],n){case 0:l==="\\"?(r=n,n=4):l==="/"?(c&&d(),i()):l===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:Km.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),o}const hl="[^/]+?",Ym={sensitive:!1,strict:!1,start:!0,end:!0},Xm=/[.+*?^${}()[\]/\\]/g;function Jm(e,t){const n=Te({},Ym,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(o+="/"),o+=f.value.replace(Xm,"\\$&"),p+=40;else if(f.type===1){const{value:m,repeatable:v,optional:b,regexp:_}=f;s.push({name:m,repeatable:v,optional:b});const w=_||hl;if(w!==hl){p+=10;try{new RegExp(`(${w})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${m}" (${w}): `+k.message)}}let C=v?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(C=b&&c.length<2?`(?:/${C})`:"/"+C),b&&(C+="?"),o+=C,p+=20,b&&(p+=-8),v&&(p+=-20),w===".*"&&(p+=-50)}u.push(p)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function a(c){const u=c.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",m=s[f-1];d[m.name]=p&&m.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:m,repeatable:v,optional:b}=p,_=m in c?c[m]:"";if(Ct(_)&&!v)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const w=Ct(_)?_.join("/"):_;if(!w)if(b)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=w}}return u||"/"}return{re:i,score:r,keys:s,parse:a,stringify:l}}function Qm(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 Uc(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const s=Qm(r[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-r.length)===1){if(ml(r))return 1;if(ml(o))return-1}return o.length-r.length}function ml(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Zm={strict:!1,end:!0,sensitive:!1};function eg(e,t,n){const r=Jm(Gm(e.path),n),o=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function tg(e,t){const n=[],r=new Map;t=al(Zm,t);function o(d){return r.get(d)}function s(d,f,p){const m=!p,v=vl(d);v.aliasOf=p&&p.record;const b=al(t,d),_=[v];if("alias"in d){const k=typeof d.alias=="string"?[d.alias]:d.alias;for(const B of k)_.push(vl(Te({},v,{components:p?p.record.components:v.components,path:B,aliasOf:p?p.record:v})))}let w,C;for(const k of _){const{path:B}=k;if(f&&B[0]!=="/"){const W=f.record.path,D=W[W.length-1]==="/"?"":"/";k.path=f.record.path+(B&&D+B)}if(w=eg(k,f,b),p?p.alias.push(w):(C=C||w,C!==w&&C.alias.push(w),m&&d.name&&!yl(w)&&i(d.name)),Hc(w)&&l(w),v.children){const W=v.children;for(let D=0;D<W.length;D++)s(W[D],w,p&&p.children[D])}p=p||w}return C?()=>{i(C)}:Rr}function i(d){if(jc(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){const f=og(d,n);n.splice(f,0,d),d.record.name&&!yl(d)&&r.set(d.record.name,d)}function c(d,f){let p,m={},v,b;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw nr(1,{location:d});b=p.record.name,m=Te(gl(f.params,p.keys.filter(C=>!C.optional).concat(p.parent?p.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&gl(d.params,p.keys.map(C=>C.name))),v=p.stringify(m)}else if(d.path!=null)v=d.path,p=n.find(C=>C.re.test(v)),p&&(m=p.parse(v),b=p.record.name,p.keys.forEach(C=>{C.optional&&!m[C.name]&&delete m[C.name]}));else{if(p=f.name?r.get(f.name):n.find(C=>C.re.test(f.path)),!p)throw nr(1,{location:d,currentLocation:f});b=p.record.name,m=Te({},f.params,d.params),v=p.stringify(m)}const _=[];let w=p;for(;w;)_.unshift(w.record),w=w.parent;return{name:b,path:v,params:m,matched:_,meta:rg(_)}}e.forEach(d=>s(d));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function gl(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function vl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ng(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 ng(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 yl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rg(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function og(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;Uc(e,t[s])<0?r=s:n=s+1}const o=sg(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function sg(e){let t=e;for(;t=t.parent;)if(Hc(t)&&Uc(e,t)===0)return t}function Hc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bl(e){const t=Ke(Zo),n=Ke(Li),r=E(()=>{const l=h(e.to);return t.resolve(l)}),o=E(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(rr.bind(null,u));if(f>-1)return f;const p=_l(l[c-2]);return c>1&&_l(u)===p&&d[d.length-1].path!==p?d.findIndex(rr.bind(null,l[c-2])):f}),s=E(()=>o.value>-1&&lg(n.params,r.value.params)),i=E(()=>o.value>-1&&o.value===n.matched.length-1&&Lc(n.params,r.value.params));function a(l={}){if(ag(l)){const c=t[h(e.replace)?"replace":"push"](h(e.to)).catch(Rr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}function ig(e){return e.length===1?e[0]:e}const on=Z({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:bl,setup(e,{slots:t}){const n=Dn(bl(e)),{options:r}=Ke(Zo),o=E(()=>({[xl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[xl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&ig(t.default(n));return e.custom?s:gt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}});function ag(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 lg(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ct(o)||o.length!==r.length||r.some((s,i)=>s.valueOf()!==o[i].valueOf()))return!1}return!0}function _l(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xl=(e,t,n)=>e??t??n,ug=Z({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ke(ii),o=E(()=>e.route||r.value),s=Ke(ll,0),i=E(()=>{let c=h(s);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=E(()=>o.value.matched[i.value]);qt(ll,E(()=>i.value+1)),qt(Ni,a),qt(ii,o);const l=I();return Le(()=>[l.value,a.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!rr(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return wl(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,b=gt(f,Te({},m,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return wl(n.default,{Component:b,route:c})||b}}});function wl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ui=ug;function cg(e){const t=tg(e.routes,e),n=e.parseQuery||Fm,r=e.stringifyQuery||fl,o=e.history,s=yr(),i=yr(),a=yr(),l=Wo(fn);let c=fn;Hn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Os.bind(null,P=>""+P),d=Os.bind(null,wm),f=Os.bind(null,So);function p(P,V){let K,ie;return jc(P)?(K=t.getRecordMatcher(P),ie=V):ie=P,t.addRoute(ie,K)}function m(P){const V=t.getRecordMatcher(P);V&&t.removeRoute(V)}function v(){return t.getRoutes().map(P=>P.record)}function b(P){return!!t.getRecordMatcher(P)}function _(P,V){if(V=Te({},V||l.value),typeof P=="string"){const S=Ps(n,P,V.path),z=t.resolve({path:S.path},V),H=o.createHref(S.fullPath);return Te(S,z,{params:f(z.params),redirectedFrom:void 0,href:H})}let K;if(P.path!=null)K=Te({},P,{path:Ps(n,P.path,V.path).path});else{const S=Te({},P.params);for(const z in S)S[z]==null&&delete S[z];K=Te({},P,{params:d(S)}),V.params=d(V.params)}const ie=t.resolve(K,V),Ae=P.hash||"";ie.params=u(f(ie.params));const y=Sm(r,Te({},P,{hash:bm(Ae),path:ie.path})),x=o.createHref(y);return Te({fullPath:y,hash:Ae,query:r===fl?Bm(P.query):P.query||{}},ie,{redirectedFrom:void 0,href:x})}function w(P){return typeof P=="string"?Ps(n,P,l.value.path):Te({},P)}function C(P,V){if(c!==P)return nr(8,{from:V,to:P})}function k(P){return D(P)}function B(P){return k(Te(w(P),{replace:!0}))}function W(P,V){const K=P.matched[P.matched.length-1];if(K&&K.redirect){const{redirect:ie}=K;let Ae=typeof ie=="function"?ie(P,V):ie;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=w(Ae):{path:Ae},Ae.params={}),Te({query:P.query,hash:P.hash,params:Ae.path!=null?{}:P.params},Ae)}}function D(P,V){const K=c=_(P),ie=l.value,Ae=P.state,y=P.force,x=P.replace===!0,S=W(K,ie);if(S)return D(Te(w(S),{state:typeof S=="object"?Te({},Ae,S.state):Ae,force:y,replace:x}),V||K);const z=K;z.redirectedFrom=V;let H;return!y&&Em(r,ie,K)&&(H=nr(16,{to:z,from:ie}),Q(ie,ie,!0,!1)),(H?Promise.resolve(H):R(z,ie)).catch(j=>Gt(j)?Gt(j,2)?j:N(j):ce(j,z,ie)).then(j=>{if(j){if(Gt(j,2))return D(Te({replace:x},w(j.to),{state:typeof j.to=="object"?Te({},Ae,j.to.state):Ae,force:y}),V||z)}else j=L(z,ie,!0,x,Ae);return oe(z,ie,j),j})}function T(P,V){const K=C(P,V);return K?Promise.reject(K):Promise.resolve()}function $(P){const V=Se.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(P):P()}function R(P,V){let K;const[ie,Ae,y]=jm(P,V);K=Ts(ie.reverse(),"beforeRouteLeave",P,V);for(const S of ie)S.leaveGuards.forEach(z=>{K.push(vn(z,P,V))});const x=T.bind(null,P,V);return K.push(x),fe(K).then(()=>{K=[];for(const S of s.list())K.push(vn(S,P,V));return K.push(x),fe(K)}).then(()=>{K=Ts(Ae,"beforeRouteUpdate",P,V);for(const S of Ae)S.updateGuards.forEach(z=>{K.push(vn(z,P,V))});return K.push(x),fe(K)}).then(()=>{K=[];for(const S of y)if(S.beforeEnter)if(Ct(S.beforeEnter))for(const z of S.beforeEnter)K.push(vn(z,P,V));else K.push(vn(S.beforeEnter,P,V));return K.push(x),fe(K)}).then(()=>(P.matched.forEach(S=>S.enterCallbacks={}),K=Ts(y,"beforeRouteEnter",P,V,$),K.push(x),fe(K))).then(()=>{K=[];for(const S of i.list())K.push(vn(S,P,V));return K.push(x),fe(K)}).catch(S=>Gt(S,8)?S:Promise.reject(S))}function oe(P,V,K){a.list().forEach(ie=>$(()=>ie(P,V,K)))}function L(P,V,K,ie,Ae){const y=C(P,V);if(y)return y;const x=V===fn,S=Hn?history.state:{};K&&(ie||x?o.replace(P.fullPath,Te({scroll:x&&S&&S.scroll},Ae)):o.push(P.fullPath,Ae)),l.value=P,Q(P,V,K,x),N()}let ae;function ye(){ae||(ae=o.listen((P,V,K)=>{if(!le.listening)return;const ie=_(P),Ae=W(ie,le.currentRoute.value);if(Ae){D(Te(Ae,{replace:!0,force:!0}),ie).catch(Rr);return}c=ie;const y=l.value;Hn&&Im(dl(y.fullPath,K.delta),es()),R(ie,y).catch(x=>Gt(x,12)?x:Gt(x,2)?(D(Te(w(x.to),{force:!0}),ie).then(S=>{Gt(S,20)&&!K.delta&&K.type==="pop"&&o.go(-1,!1)}).catch(Rr),Promise.reject()):(K.delta&&o.go(-K.delta,!1),ce(x,ie,y))).then(x=>{x=x||L(ie,y,!1),x&&(K.delta&&!Gt(x,8)?o.go(-K.delta,!1):K.type==="pop"&&Gt(x,20)&&o.go(-1,!1)),oe(ie,y,x)}).catch(Rr)}))}let F=yr(),re=yr(),ne;function ce(P,V,K){N(P);const ie=re.list();return ie.length?ie.forEach(Ae=>Ae(P,V,K)):console.error(P),Promise.reject(P)}function M(){return ne&&l.value!==fn?Promise.resolve():new Promise((P,V)=>{F.add([P,V])})}function N(P){return ne||(ne=!P,ye(),F.list().forEach(([V,K])=>P?K(P):V()),F.reset()),P}function Q(P,V,K,ie){const{scrollBehavior:Ae}=e;if(!Hn||!Ae)return Promise.resolve();const y=!K&&Dm(dl(P.fullPath,0))||(ie||!K)&&history.state&&history.state.scroll||null;return He().then(()=>Ae(P,V,y)).then(x=>x&&Mm(x)).catch(x=>ce(x,P,V))}const pe=P=>o.go(P);let ke;const Se=new Set,le={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:v,resolve:_,options:e,push:k,replace:B,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:re.add,isReady:M,install(P){P.component("RouterLink",on),P.component("RouterView",ui),P.config.globalProperties.$router=le,Object.defineProperty(P.config.globalProperties,"$route",{enumerable:!0,get:()=>h(l)}),Hn&&!ke&&l.value===fn&&(ke=!0,k(o.location).catch(ie=>{}));const V={};for(const ie in fn)Object.defineProperty(V,ie,{get:()=>l.value[ie],enumerable:!0});P.provide(Zo,le),P.provide(Li,Fu(V)),P.provide(ii,l);const K=P.unmount;Se.add(P),P.unmount=function(){Se.delete(P),Se.size<1&&(c=fn,ae&&ae(),ae=null,l.value=fn,ke=!1,ne=!1),K()}}};function fe(P){return P.reduce((V,K)=>V.then(()=>$(K)),Promise.resolve())}return le}const kl=e=>e==="";const dg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Cl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const fg=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const pg=e=>{const t=fg(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Nn={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 hg=Symbol("lucide-icons");function mg(){return Ke(hg,{})}const gg=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:o,"stroke-width":s,size:i,color:a,...l},{slots:c})=>{const{size:u,color:d,strokeWidth:f=2,absoluteStrokeWidth:p=!1,class:m=""}=mg(),v=E(()=>{const b=kl(n)||kl(r)||n===!0||r===!0||p===!0,_=o||s||f||Nn["stroke-width"];return b?Number(_)*24/Number(i??u??Nn.width):_});return gt("svg",{...Nn,...l,width:i??u??Nn.width,height:i??u??Nn.height,stroke:a??d??Nn.stroke,"stroke-width":v.value,class:dg("lucide",m,...e?[`lucide-${Cl(pg(e))}-icon`,`lucide-${Cl(e)}`]:["lucide-icon"])},[...t.map(b=>gt(...b)),...c.default?[c.default()]:[]])};const Ce=(e,t)=>(n,{slots:r,attrs:o})=>gt(gg,{...o,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0);const vg=[["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"}]],yg=Ce("archive",vg);const bg=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Wc=Ce("arrow-down",bg);const _g=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Vi=Ce("arrow-left",_g);const xg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],wg=Ce("arrow-right",xg);const kg=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Kc=Ce("arrow-up-right",kg);const Cg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Gc=Ce("arrow-up",Cg);const Sg=[["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"}]],Eg=Ce("cassette-tape",Sg);const Ag=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],or=Ce("check",Ag);const $g=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ts=Ce("chevron-down",$g);const Og=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zi=Ce("chevron-left",Og);const Pg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ns=Ce("chevron-right",Pg);const Tg=[["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"}]],ur=Ce("circle-alert",Tg);const Rg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mg=Ce("circle",Rg);const Ig=[["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"}]],Dg=Ce("disc-3",Ig);const qg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Fg=Ce("disc",qg);const Bg=[["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"}]],Ng=Ce("image",Bg);const Lg=[["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"}]],jg=Ce("library",Lg);const Vg=[["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"}]],zg=Ce("list",Vg);const Ug=[["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"}]],Yc=Ce("log-out",Ug);const Hg=[["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"}]],Wg=Ce("mic-vocal",Hg);const Kg=[["path",{d:"M5 12h14",key:"1ays0h"}]],Xc=Ce("minus",Kg);const Gg=[["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"}]],Yg=Ce("palette",Gg);const Xg=[["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"}]],Jc=Ce("panel-left-close",Xg);const Jg=[["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"}]],Qc=Ce("panel-left-open",Jg);const Qg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zc=Ce("plus",Qg);const Zg=[["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"}]],ed=Ce("puzzle",Zg);const ev=[["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"}]],td=Ce("search-x",ev);const tv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rs=Ce("search",tv);const nv=[["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"}]],nd=Ce("settings",nv);const rv=[["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"}]],ov=Ce("shield-check",rv);const sv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],iv=Ce("square",sv);const av=[["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"}]],Ui=Ce("sun",av);const lv=[["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"}]],uv=Ce("tags",lv);const cv=[["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"}]],Hi=Ce("trash-2",cv);const dv=[["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"}]],rd=Ce("user-minus",dv);const fv=[["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"}]],od=Ce("user-plus",fv);const pv=[["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"}]],hv=Ce("user",pv);const mv=[["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"}]],gv=Ce("users-round",mv);const vv=[["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"}]],yv=Ce("users",vv);const bv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],os=Ce("x",bv),_v=/\{[^{}]+\}/g,xv=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function wv(){return Math.random().toString(36).slice(2,11)}function kv(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:o,bodySerializer:s,pathSerializer:i,headers:a,requestInitExt:l=void 0,...c}={...e};l=xv()?l:void 0,t=Al(t);const u=[];async function d(f,p){const{baseUrl:m,fetch:v=r,Request:b=n,headers:_,params:w={},parseAs:C="json",querySerializer:k,bodySerializer:B=s??Sv,pathSerializer:W,body:D,middleware:T=[],...$}=p||{};let R=t;m&&(R=Al(m)??t);let oe=typeof o=="function"?o:Sl(o);k&&(oe=typeof k=="function"?k:Sl({...typeof o=="object"?o:{},...k}));const L=W||i||Cv,ae=D===void 0?void 0:B(D,El(a,_,w.header)),ye=El(ae===void 0||ae instanceof FormData?{}:{"Content-Type":"application/json"},a,_,w.header),F=[...u,...T],re={redirect:"follow",...c,...$,body:ae,headers:ye};let ne,ce,M=new b(Ev(f,{baseUrl:R,params:w,querySerializer:oe,pathSerializer:L}),re),N;for(const ke in $)ke in M||(M[ke]=$[ke]);if(F.length){ne=wv(),ce=Object.freeze({baseUrl:R,fetch:v,parseAs:C,querySerializer:oe,bodySerializer:B,pathSerializer:L});for(const ke of F)if(ke&&typeof ke=="object"&&typeof ke.onRequest=="function"){const Se=await ke.onRequest({request:M,schemaPath:f,params:w,options:ce,id:ne});if(Se)if(Se instanceof b)M=Se;else if(Se instanceof Response){N=Se;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!N){try{N=await v(M,l)}catch(ke){let Se=ke;if(F.length)for(let le=F.length-1;le>=0;le--){const fe=F[le];if(fe&&typeof fe=="object"&&typeof fe.onError=="function"){const P=await fe.onError({request:M,error:Se,schemaPath:f,params:w,options:ce,id:ne});if(P){if(P instanceof Response){Se=void 0,N=P;break}if(P instanceof Error){Se=P;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(Se)throw Se}if(F.length)for(let ke=F.length-1;ke>=0;ke--){const Se=F[ke];if(Se&&typeof Se=="object"&&typeof Se.onResponse=="function"){const le=await Se.onResponse({request:M,response:N,schemaPath:f,params:w,options:ce,id:ne});if(le){if(!(le instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");N=le}}}}const Q=N.headers.get("Content-Length");if(N.status===204||M.method==="HEAD"||Q==="0"&&!N.headers.get("Transfer-Encoding")?.includes("chunked"))return N.ok?{data:void 0,response:N}:{error:void 0,response:N};if(N.ok)return{data:await(async()=>{if(C==="stream")return N.body;if(C==="json"&&!Q){const Se=await N.text();return Se?JSON.parse(Se):void 0}return await N[C]()})(),response:N};let pe=await N.text();try{pe=JSON.parse(pe)}catch{}return{error:pe,response:N}}return{request(f,p,m){return d(p,{...m,method:f.toUpperCase()})},GET(f,p){return d(f,{...p,method:"GET"})},PUT(f,p){return d(f,{...p,method:"PUT"})},POST(f,p){return d(f,{...p,method:"POST"})},DELETE(f,p){return d(f,{...p,method:"DELETE"})},OPTIONS(f,p){return d(f,{...p,method:"OPTIONS"})},HEAD(f,p){return d(f,{...p,method:"HEAD"})},PATCH(f,p){return d(f,{...p,method:"PATCH"})},TRACE(f,p){return d(f,{...p,method:"TRACE"})},use(...f){for(const p of f)if(p){if(typeof p!="object"||!("onRequest"in p||"onResponse"in p||"onError"in p))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(p)}},eject(...f){for(const p of f){const m=u.indexOf(p);m!==-1&&u.splice(m,1)}}}}function ss(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 sd(e,t,n){if(!t||typeof t!="object")return"";const r=[],o={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const a in t)r.push(a,n.allowReserved===!0?t[a]:encodeURIComponent(t[a]));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 a=n.style==="deepObject"?`${e}[${i}]`:i;r.push(ss(a,t[i],n))}const s=r.join(o);return n.style==="label"||n.style==="matrix"?`${o}${s}`:s}function id(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const s={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",i=(n.allowReserved===!0?t:t.map(a=>encodeURIComponent(a))).join(s);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]||"&",o=[];for(const s of t)n.style==="simple"||n.style==="label"?o.push(n.allowReserved===!0?s:encodeURIComponent(s)):o.push(ss(e,s,n));return n.style==="label"||n.style==="matrix"?`${r}${o.join(r)}`:o.join(r)}function Sl(e){return function(n){const r=[];if(n&&typeof n=="object")for(const o in n){const s=n[o];if(s!=null){if(Array.isArray(s)){if(s.length===0)continue;r.push(id(o,s,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof s=="object"){r.push(sd(o,s,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}r.push(ss(o,s,e))}}return r.join("&")}}function Cv(e,t){let n=e;for(const r of e.match(_v)??[]){let o=r.substring(1,r.length-1),s=!1,i="simple";if(o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(i="label",o=o.substring(1)):o.startsWith(";")&&(i="matrix",o=o.substring(1)),!t||t[o]===void 0||t[o]===null)continue;const a=t[o];if(Array.isArray(a)){n=n.replace(r,id(o,a,{style:i,explode:s}));continue}if(typeof a=="object"){n=n.replace(r,sd(o,a,{style:i,explode:s}));continue}if(i==="matrix"){n=n.replace(r,`;${ss(o,a)}`);continue}n=n.replace(r,i==="label"?`.${encodeURIComponent(a)}`:encodeURIComponent(a))}return n}function Sv(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 Ev(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 El(...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[o,s]of r)if(s===null)t.delete(o);else if(Array.isArray(s))for(const i of s)t.append(o,i);else s!==void 0&&t.set(o,s)}return t}function Al(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const $l="/backend",Av="__SUMMER_ADMIN_BASE__";function $v(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===Av||!t.startsWith("/"))return $l;const n=t.replace(/\/+$/,"");return n===""?$l:n}const Ol=$v(),Wi={base:Ol,api:`${Ol}/api/v1`},Ov="XMLHttpRequest";let ci=null,ad=null,br=null;const Rs=new WeakMap;function Pv(e){ci=e}function Tv(e){ad=e}function Rv(e){return new URL(e.url,"http://local").pathname}function Pl(e){const t=Rv(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function ld(){return br||(br=(async()=>{try{const{data:e,response:t}=await Me.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return ad?.(typeof n=="number"?n:null),!0}catch{return!1}finally{br=null}})(),br)}const Mv={onRequest({request:e}){return e.headers.set("X-Requested-With",Ov),Pl(e)||Rs.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||Pl(e))return t;const n=Rs.get(e);if(Rs.delete(e),!n||!await ld())return ci?.(),t;const r=await globalThis.fetch(n);return r.status===401&&ci?.(),r}},Me=kv({baseUrl:Wi.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Me.use(Mv);const Ki=I({}),Gi=I(typeof document>"u"?"pl":document.documentElement.lang||"pl"),ud=Nt(Gi);function Iv(e,t){Ki.value=e,t&&(Gi.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function Dv(){const{data:e,response:t}=await Me.GET("/lang");!t.ok||!e||Iv(e.data,e.meta.locale)}function Tl(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 di(e,t={}){if(e==="")return e;const n=[];for(const[o,s]of Object.entries(t)){const i=o.replace(/^:/,"");if(i==="")continue;const a=String(s);n.push([`:${Tl(i)}`,Tl(a)]),n.push([`:${i.toUpperCase()}`,a.toUpperCase()]),n.push([`:${i}`,a])}n.sort((o,s)=>s[0].length-o[0].length);let r=e;for(const[o,s]of n)r=r.split(o).join(s);return r}const Rl=new Map;function qv(e,t=Gi.value){let n=Rl.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}Rl.set(t,n)}return n?n.select(e):"other"}function Be(e,t,n={}){if(!e)return"";if(t===void 0)return di(e.other??"",n);const r=e[qv(t)]??e.other??"";return di(r,{count:t,...n})}function U(e,t={}){const n=Ki.value[e]?.other;return n===void 0?e:di(n,t)}function Yi(e,t,n={}){const r=Ki.value[e];return r?Be(r,t,n):e}const Ml={archive:yg,"arrow-down":Wc,"arrow-left":Vi,"arrow-right":wg,"arrow-up":Gc,"arrow-up-right":Kc,"cassette-tape":Eg,check:or,"chevron-down":ts,"chevron-left":zi,"chevron-right":ns,circle:Mg,"circle-alert":ur,disc:Fg,"disc-3":Dg,image:Ng,library:jg,list:zg,"log-out":Yc,"mic-vocal":Wg,minus:Xc,palette:Yg,"panel-left-close":Jc,"panel-left-open":Qc,plus:Zc,puzzle:ed,search:rs,"search-x":td,settings:nd,"shield-check":ov,sun:Ui,tags:uv,"trash-2":Hi,user:hv,"user-minus":rd,"user-plus":od,users:yv,"users-round":gv,x:os},Fv={"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"},Il=iv;function Ms(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function is(e){if(!e)return Il;const t=e.trim();return Ms(Ml,t)??Ms(Ml,Ms(Fv,t)??"")??Il}const Bv=/^[A-Za-z0-9_-]+$/;function as(e){const t=e.split(".");if(t.length!==3||!t.every(s=>Bv.test(s)))return null;const[n,r,o]=t;return{vendor:n,plugin:r,controller:o}}function _n(e){const t=as(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function Xi(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function Ji(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return as(n)?n:null}function Dl(e){const t=as(e);return t?`${t.vendor}.${t.plugin}`:null}const Eo=I([]);async function cd(){const{data:e,response:t}=await Me.GET("/navigation");return Eo.value=t.ok&&e?e.data:[],Eo.value}function Nv(e){Eo.value=e}const Ao=E(()=>Eo.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 Qi(e){for(const t of e.sideMenu){const n=_n(t.controller);if(n)return n}return _n(e.controller)}function ls(e,t){const n=`${e}.${t}`;return Ao.value.find(r=>Dl(r.controller)===n||r.sideMenu.some(o=>Dl(o.controller)===n))??null}function Lv(){for(const e of Ao.value){const t=Qi(e);if(t)return t}return null}const sr=I([]),jv=E(()=>sr.value.length>0);async function dd(){const{data:e,response:t}=await Me.GET("/settings");return sr.value=t.ok&&e?e.data:[],sr.value}function Vv(e){sr.value=e}function fi(e){return sr.value.find(t=>t.code===e)??null}const ql=E(()=>{const e=sr.value.map((n,r)=>({entry:n,index:r})).sort((n,r)=>n.entry.order-r.entry.order||n.index-r.index).map(({entry:n})=>n),t=[];for(const n of e){let r=t.find(o=>o.category===n.category);r||(r={category:n.category,entries:[]},t.push(r)),r.entries.push(n)}return t}),fd="summer-admin.sidebar",zv="(max-width: 1099px)",us=I(!1),Mr=I(!1),Uv=E(()=>Mr.value||us.value);function pd(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function Hv(){try{return pd()?.getItem(fd)==="true"}catch{return!1}}function hd(e){us.value=e;try{pd()?.setItem(fd,e?"true":"false")}catch{}}function Wv(){if(us.value=Hv(),typeof window>"u"||typeof window.matchMedia!="function")return Mr.value=!1,()=>{};const e=window.matchMedia(zv);Mr.value=e.matches;const t=n=>{Mr.value=n.matches};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function md(){return{collapsed:Uv,narrow:Nt(Mr),manual:Nt(us),setCollapsed:hd,watchViewport:Wv}}const Kv=["id","aria-label"],Gv={class:"px-2.5 pt-1 pb-2 text-[14px] font-bold","aria-hidden":"true"},Yv=Z({__name:"SectionFlyout",props:{entry:{},id:{}},emits:["escape","leave","navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=Ht(),i=I(null),a=E(()=>Ji(s.path)),l=E(()=>r.entry.sideMenu.flatMap(p=>{const m=_n(p.controller);return m?[{item:p,to:m,icon:is(p.icon),current:a.value===p.controller}]:[]}));function c(){return[...i.value?.querySelectorAll('[role="menuitem"]')??[]]}async function u(){await He(),c()[0]?.focus()}function d(p){return!!p&&!!i.value?.contains(p)}function f(p){const m=c(),v=m.indexOf(document.activeElement);switch(p.key){case"ArrowDown":p.preventDefault(),m[(v+1)%m.length]?.focus();break;case"ArrowUp":p.preventDefault(),m[(v-1+m.length)%m.length]?.focus();break;case"Home":p.preventDefault(),m[0]?.focus();break;case"End":p.preventDefault(),m[m.length-1]?.focus();break;case"Escape":p.preventDefault(),o("escape");break;case"Tab":o("leave");break}}return t({focusFirst:u,contains:d}),(p,m)=>(g(),A("div",{id:e.id,ref_key:"root",ref:i,role:"menu","data-section-flyout":"","aria-label":e.entry.label,class:"fixed top-3 left-[calc(var(--spacing-rail)+8px)] z-40 flex w-[230px] flex-col gap-0.5 rounded-[14px] border border-border bg-surface p-2 text-text shadow-pop",onKeydown:f},[O("span",Gv,q(e.entry.label),1),(g(!0),A(me,null,De(l.value,v=>(g(),X(h(on),{key:v.item.code,to:v.to,role:"menuitem",tabindex:"-1","aria-current":v.current?"page":void 0,class:we([v.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-[38px] items-center gap-3 rounded-tab px-2.5 no-underline transition-colors duration-150 ease-out"]),onClick:m[0]||(m[0]=b=>o("navigate"))},{default:J(()=>[(g(),X(yn(v.icon),{size:18,"aria-hidden":"true"})),O("span",null,q(v.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],40,Kv))}}),Xv=["aria-label"],Jv={class:"mb-3.5 flex size-10 items-center justify-center rounded-inner bg-accent-soft",title:"SummerCMS"},Qv=["aria-label","title"],Zv=200,ey=Z({__name:"PluginRail",setup(e){const t=Ht(),{collapsed:n,narrow:r,setCollapsed:o}=md(),s=E(()=>ls(String(t.params.vendor??""),String(t.params.plugin??""))),i=E(()=>t.path==="/settings"||t.path.startsWith("/settings/")),a=E(()=>Ao.value.map(T=>({entry:T,to:Qi(T)??"/",icon:is(T.icon),current:s.value?.code===T.code}))),l=I(null),c=I(null),u=E(()=>Ao.value.find(T=>T.code===l.value)??null),d=new Map;let f=null,p=!1;function m(T){return`section-flyout-${T}`}function v(T,$){const R=$?.$el;R instanceof HTMLElement?d.set(T,R):d.delete(T)}function b(){f!==null&&(clearTimeout(f),f=null)}function _(){b(),l.value=null}function w(){b(),f=setTimeout(()=>{f=null;const T=document.activeElement,$=l.value;$!==null&&(d.get($)===T||c.value?.contains(T))||(l.value=null)},Zv)}function C(T){n.value&&(b(),l.value=T)}function k(T){p||C(T)}async function B(T,$){n.value&&(T.key==="Enter"||T.key==="ArrowDown"?(T.preventDefault(),C($),await He(),await c.value?.focusFirst()):T.key==="Escape"&&l.value!==null&&(T.preventDefault(),_()))}function W(){const T=l.value;_(),T!==null&&(p=!0,d.get(T)?.focus(),p=!1)}function D(){o(!1),He(()=>document.querySelector("[data-sidebar-collapse]")?.focus())}return Le(n,T=>{T||_()}),yt(b),(T,$)=>(g(),A("nav",{"aria-label":h(U)("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"},[O("span",Jv,[Y(h(Ui),{size:22,class:"text-accent","aria-hidden":"true"})]),(g(!0),A(me,null,De(a.value,R=>(g(),X(h(on),{key:R.entry.code,ref_for:!0,ref:oe=>v(R.entry.code,oe),to:R.to,"data-rail-item":R.entry.code,"aria-current":R.current?"page":void 0,"aria-haspopup":h(n)?"menu":void 0,"aria-expanded":h(n)?l.value===R.entry.code?"true":"false":void 0,"aria-controls":h(n)&&l.value===R.entry.code?m(R.entry.code):void 0,class:we([R.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 transition-colors duration-150 ease-out"]),onMouseenter:oe=>C(R.entry.code),onMouseleave:w,onFocus:oe=>k(R.entry.code),onBlur:w,onKeydown:oe=>B(oe,R.entry.code)},{default:J(()=>[(g(),X(yn(R.icon),{size:20,"aria-hidden":"true"})),O("span",null,q(R.entry.label),1)]),_:2},1032,["to","data-rail-item","aria-current","aria-haspopup","aria-expanded","aria-controls","class","onMouseenter","onFocus","onKeydown"]))),128)),h(n)&&u.value?(g(),X(Yv,{key:0,id:m(u.value.code),ref_key:"flyout",ref:c,entry:u.value,onMouseenter:b,onMouseleave:w,onFocusin:b,onFocusout:w,onEscape:W,onLeave:w,onNavigate:_},null,8,["id","entry"])):de("",!0),$[0]||($[0]=O("span",{class:"flex-1","aria-hidden":"true"},null,-1)),h(n)&&!h(r)?(g(),A("button",{key:1,type:"button","data-sidebar-expand":"","aria-label":h(U)("backend::lang.nav.expand"),title:h(U)("backend::lang.nav.expand"),class:"mb-1 flex size-10 items-center justify-center rounded-inner text-side-text transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:D},[Y(h(Qc),{size:20,"aria-hidden":"true"})],8,Qv)):de("",!0),h(jv)?(g(),X(h(on),{key:2,to:"/settings","data-rail-settings":"","aria-current":i.value?"page":void 0,class:we([i.value?"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 transition-colors duration-150 ease-out"])},{default:J(()=>[Y(h(nd),{size:20,"aria-hidden":"true"}),O("span",null,q(h(U)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):de("",!0)],8,Xv))}}),ty=["aria-label"],ny={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},ry={class:"truncate text-[16px] font-bold"},oy=["aria-label","title"],sy=Z({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=Ht(),r=E(()=>Ji(n.path)),o=E(()=>t.entry.sideMenu.flatMap(i=>{const a=_n(i.controller);return a?[{item:i,to:a,icon:is(i.icon),current:r.value===i.controller}]:[]}));function s(){hd(!0),He(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(i,a)=>(g(),A("aside",{"aria-label":h(U)("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"},[O("div",ny,[O("span",ry,q(e.entry.label),1),O("button",{type:"button","data-sidebar-collapse":"","aria-label":h(U)("backend::lang.nav.collapse"),title:h(U)("backend::lang.nav.collapse"),class:"flex size-[30px] shrink-0 items-center justify-center rounded-tab text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",onClick:s},[Y(h(Jc),{size:18,"aria-hidden":"true"})],8,oy)]),(g(!0),A(me,null,De(o.value,l=>(g(),X(h(on),{key:l.item.code,to:l.to,"aria-current":l.current?"page":void 0,class:we([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 transition-colors duration-150 ease-out"])},{default:J(()=>[(g(),X(yn(l.icon),{size:18,"aria-hidden":"true"})),O("span",null,q(l.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,ty))}}),Zi=I(""),Fl=Nt(Zi);function iy(e){Zi.value=e}function ay(){Zi.value=""}const ly=["aria-label"],uy={class:"flex min-w-0 items-center gap-2"},cy=["aria-current"],dy=Z({__name:"Breadcrumbs",setup(e){const t=Ht(),n=E(()=>{if(t.name==="settings"||t.name==="settings-form"){const a=[{label:U("backend::lang.nav.settings"),to:"/settings"}],l=t.name==="settings-form"?fi(String(t.params.code??"")):null;return l&&a.push({label:l.label}),a}const r=ls(String(t.params.vendor??""),String(t.params.plugin??""));if(!r)return[];const o=[{label:r.label,to:Qi(r)??void 0}],s=Ji(t.path),i=r.sideMenu.find(a=>a.controller===s)??null;return i&&o.push({label:i.label,to:_n(i.controller)??void 0}),(t.name==="record"||t.name==="create")&&Fl.value!==""&&o.push({label:Fl.value}),o});return(r,o)=>(g(),A("nav",{"aria-label":h(U)("backend::lang.nav.breadcrumbs"),class:"min-w-0"},[O("ol",uy,[(g(!0),A(me,null,De(n.value,(s,i)=>(g(),A("li",{key:i,"data-crumb":"",class:"flex min-w-0 items-center gap-2"},[i>0?(g(),X(h(ns),{key:0,size:14,class:"shrink-0 text-muted","aria-hidden":"true"})):de("",!0),i===n.value.length-1||!s.to?(g(),A("span",{key:1,"aria-current":i===n.value.length-1?"page":void 0,class:we([i===n.value.length-1?"font-semibold text-text":"text-muted","truncate"])},q(s.label),11,cy)):(g(),X(h(on),{key:2,to:s.to,class:"truncate text-muted no-underline transition-colors duration-150 ease-out hover:text-text"},{default:J(()=>[Ee(q(s.label),1)]),_:2},1032,["to"]))]))),128))])],8,ly))}});function Wt(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const a=Ke(r,i);if(a||a===null)return a;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(qt(r,i),i)]}function et(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function gd(e,t,n){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(o)}function fy(e){return e==null}function py(e,t){var n;const r=Wo();return Lt(()=>{r.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),Nt(r)}function vd(e,t){return Oi()?(_u(e,t),!0):!1}function hy(e){let t=!1,n;const r=bu(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const ln=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const my=e=>typeof e<"u",gy=Object.prototype.toString,vy=e=>gy.call(e)==="[object Object]",Bl=yy();function yy(){var e,t,n;return ln&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function Is(e){return Array.isArray(e)?e:[e]}function by(e){return Ut()}function yd(e){if(!ln)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...s)=>(t+=1,r||(r=bu(!0),n=r.run(()=>e(...s))),vd(o),n))}function _y(e,t=1e4){return lp((n,r)=>{let o=ft(e),s;const i=()=>setTimeout(()=>{o=ft(e),r()},ft(t));return vd(()=>{clearTimeout(s)}),{get(){return n(),o},set(a){o=a,r(),clearTimeout(s),s=i()}}})}function xy(e,t){by()&&yt(e,t)}function wy(e,t,n){return Le(e,t,{...n,immediate:!0})}const ea=ln?window:void 0;function cr(e){var t;const n=ft(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function $o(...e){const t=(r,o,s,i)=>(r.addEventListener(o,s,i),()=>r.removeEventListener(o,s,i)),n=E(()=>{const r=Is(ft(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return wy(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(s=>cr(s)))!==null&&r!==void 0?r:[ea].filter(s=>s!=null),Is(ft(n.value?e[1]:e[0])),Is(h(n.value?e[2]:e[1])),ft(n.value?e[3]:e[2])]},([r,o,s,i],a,l)=>{if(!r?.length||!o?.length||!s?.length)return;const c=vy(i)?{...i}:i,u=r.flatMap(d=>o.flatMap(f=>s.map(p=>t(d,f,p,c))));l(()=>{u.forEach(d=>d())})},{flush:"post"})}function ky(){const e=Wo(!1),t=Ut();return t&&St(()=>{e.value=!0},t),e}function Cy(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Sy(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=ea,eventName:s="keydown",passive:i=!1,dedupe:a=!1}=r,l=Cy(t);return $o(o,s,u=>{u.repeat&&ft(a)||l(u)&&n(u)},i)}function Ey(e){return JSON.parse(JSON.stringify(e))}function cs(e,t,n,r={}){var o,s;const{clone:i=!1,passive:a=!1,eventName:l,deep:c=!1,defaultValue:u,shouldEmit:d}=r,f=Ut(),p=n||f?.emit||(f==null||(o=f.$emit)===null||o===void 0?void 0:o.bind(f))||(f==null||(s=f.proxy)===null||s===void 0||(s=s.$emit)===null||s===void 0?void 0:s.bind(f?.proxy));let m=l;t||(t="modelValue"),m=m||`update:${t.toString()}`;const v=w=>i?typeof i=="function"?i(w):Ey(w):w,b=()=>my(e[t])?v(e[t]):u,_=w=>{d?d(w)&&p(m,w):p(m,w)};if(a){const w=I(b());let C=!1;return Le(()=>e[t],k=>{C||(C=!0,w.value=v(k),He(()=>C=!1))}),Le(w,k=>{!C&&(k!==e[t]||c)&&_(k)},{deep:c}),w}else return E({get(){return b()},set(w){_(w)}})}function ta(e){return e?e.flatMap(t=>t.type===me?ta(t.children):[t]):[]}const Ay=["INPUT","TEXTAREA"];function Nl(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Ay.includes(t.nodeName))return null;const{arrowKeyOptions:o="both",attributeName:s="[data-reka-collection-item]",itemsArray:i=[],loop:a=!0,dir:l="ltr",preventScroll:c=!0,focus:u=!1}=r,[d,f,p,m,v,b]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],_=p||m,w=d||f;if(!v&&!b&&(!_&&!w||o==="vertical"&&w||o==="horizontal"&&_))return null;const C=n?Array.from(n.querySelectorAll(s)):i;if(!C.length)return null;c&&e.preventDefault();let k=null;return w||_?k=bd(C,t,{goForward:_?m:l==="ltr"?d:f,loop:a}):v?k=C.at(0)||null:b&&(k=C.at(-1)||null),u&&k?.focus(),k}function bd(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;const o=e.indexOf(t);let s;if(o===-1?s=n.goForward?0:e.length-1:s=n.goForward?o+1:o-1,!n.loop&&(s<0||s>=e.length))return null;const i=(s+e.length)%e.length,a=e[i];return a?a.hasAttribute("disabled")&&a.getAttribute("disabled")!=="false"?bd(e,a,n,r):a:null}const[na]=Wt("ConfigProvider");function Ds(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function pi(e,t,n=".",r){if(!Ds(t))return pi(e,{},n,r);const o={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Ds(i)&&Ds(o[s])?o[s]=pi(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function $y(e){return(...t)=>t.reduce((n,r)=>pi(n,r,"",e),{})}const Oy=$y(),Py=yd(()=>{const e=I(new Map),t=I(),n=E(()=>{for(const i of e.value.values())if(i)return!0;return!1}),r=na({scrollBody:I(!0)});let o=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Bl&&o?.(),t.value=void 0};return Le(n,(i,a)=>{if(!ln)return;if(!i){a&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,c={padding:l,margin:0},u=r.scrollBody?.value?typeof r.scrollBody.value=="object"?Oy({padding:r.scrollBody.value.padding===!0?l:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?l:r.scrollBody.value.margin},c):c:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Bl&&(o=$o(document,"touchmove",d=>Ty(d),{passive:!1})),He(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function _d(e){const t=Math.random().toString(36).substring(2,7),n=Py();n.value.set(t,e??!1);const r=E({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return xy(()=>{n.value.delete(t)}),r}function xd(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:xd(n)}}function Ty(e){const t=e||window.event,n=t.target;return n instanceof Element&&xd(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function ra(e){const t=na({dir:I("ltr")});return E(()=>e?.value||t.dir?.value||"ltr")}function dr(e){const t=Ut(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(o=>{r[co(Ze(o))]=(...s)=>e(o,...s)}),r}let qs=0;function Ry(){Lt(e=>{if(!ln)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Ll()),document.body.insertAdjacentElement("beforeend",t[1]??Ll()),qs++,e(()=>{qs===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),qs--})})}function Ll(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function qe(){const e=Ut(),t=I(),n=E(()=>r());Ii(()=>{n.value!==r()&&sp(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:cr(t)}const o=Object.assign({},e.exposed),s={};for(const a in e.props)Object.defineProperty(s,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(o).length>0)for(const a in o)Object.defineProperty(s,a,{enumerable:!0,configurable:!0,get:()=>o[a]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function i(a){if(t.value=a,!!a&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.hasOwn(a,"$el"))){const l=a.$.exposed,c=Object.assign({},s);for(const u in l)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>l[u]});e.exposed=c}}return{forwardRef:i,currentRef:t,currentElement:n}}function My(e){const t=Ut(),n=Object.keys(t?.type.props??{}).reduce((o,s)=>{const i=(t?.type.props[s]).default;return i!==void 0&&(o[s]=i),o},{}),r=dp(e);return E(()=>{const o={},s=t?.vnode.props??{};return Object.keys(s).forEach(i=>{o[Ze(i)]=s[i]}),Object.keys({...n,...o}).reduce((i,a)=>(r.value[a]!==void 0&&(i[a]=r.value[a]),i),{})})}function Yr(e,t){const n=My(e),r=t?dr(t):{};return E(()=>({...n.value,...r}))}var Iy=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ln=new WeakMap,to=new WeakMap,no={},Fs=0,wd=function(e){return e&&(e.host||wd(e.parentNode))},Dy=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wd(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qy=function(e,t,n,r){var o=Dy(t,Array.isArray(e)?e:[e]);no[n]||(no[n]=new WeakMap);var s=no[n],i=[],a=new Set,l=new Set(o),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",v=(Ln.get(f)||0)+1,b=(s.get(f)||0)+1;Ln.set(f,v),s.set(f,b),i.push(f),v===1&&m&&to.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",f,_)}})};return u(t),a.clear(),Fs++,function(){i.forEach(function(d){var f=Ln.get(d)-1,p=s.get(d)-1;Ln.set(d,f),s.set(d,p),f||(to.has(d)||d.removeAttribute(r),to.delete(d)),p||d.removeAttribute(n)}),Fs--,Fs||(Ln=new WeakMap,Ln=new WeakMap,to=new WeakMap,no={})}},Fy=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Iy(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),qy(r,o,n,"aria-hidden")):function(){return null}};function kd(e){let t;Le(()=>cr(e),n=>{let r=!1;try{r=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!r?t=Fy(n):t&&t()}),lr(()=>{t&&t()})}function Oo(e,t="reka"){let n;const r=na({useId:void 0});return r.useId?n=r.useId():n=Pp?.(),t?`${t}-${n}`:n}function By(e){const t=I(),n=E(()=>t.value?.width??0),r=E(()=>t.value?.height??0);return St(()=>{const o=cr(e);if(o){t.value={width:o.offsetWidth,height:o.offsetHeight};const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else l=o.offsetWidth,c=o.offsetHeight;t.value={width:l,height:c}});return s.observe(o,{box:"border-box"}),()=>s.unobserve(o)}else t.value=void 0}),{width:n,height:r}}function Ny(e,t){const n=I(e);function r(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=r(s)}}}function Ly(e){const t=_y("",1e3);return{search:t,handleTypeaheadSearch:(o,s)=>{t.value=t.value+o;{const i=et(),a=s.map(f=>({...f,textValue:f.value?.textValue??f.ref.textContent?.trim()??""})),l=a.find(f=>f.ref===i),c=a.map(f=>f.textValue),u=Vy(c,t.value,l?.textValue),d=a.find(f=>f.textValue===u);return d&&d.ref.focus(),d?.ref}},resetTypeahead:()=>{t.value=""}}}function jy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Vy(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=jy(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function zy(e,t){const n=I({}),r=I("none"),o=I(e),s=e.value?"mounted":"unmounted";let i;const a=t.value?.ownerDocument.defaultView??ea,{state:l,dispatch:c}=Ny(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=b=>{if(ln){const _=new CustomEvent(b,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(_)}};Le(e,async(b,_)=>{const w=_!==b;if(await He(),w){const C=r.value,k=ro(t.value);b?(c("MOUNT"),u("enter"),k==="none"&&u("after-enter")):k==="none"||k==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):_&&C!==k?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=b=>{const _=ro(t.value),w=_.includes(CSS.escape(b.animationName)),C=l.value==="mounted"?"enter":"leave";if(b.target===t.value&&w&&(u(`after-${C}`),c("ANIMATION_END"),!o.value)){const k=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=k)})}b.target===t.value&&_==="none"&&c("ANIMATION_END")},f=b=>{b.target===t.value&&(r.value=ro(t.value))},p=Le(t,(b,_)=>{b?(n.value=getComputedStyle(b),b.addEventListener("animationstart",f),b.addEventListener("animationcancel",d),b.addEventListener("animationend",d)):(c("ANIMATION_END"),i!==void 0&&a?.clearTimeout(i),_?.removeEventListener("animationstart",f),_?.removeEventListener("animationcancel",d),_?.removeEventListener("animationend",d))},{immediate:!0}),m=Le(l,()=>{const b=ro(t.value);r.value=l.value==="mounted"?b:"none"});return lr(()=>{p(),m()}),{isPresent:E(()=>["mounted","unmountSuspended"].includes(l.value))}}function ro(e){return e&&getComputedStyle(e).animationName||"none"}var oa=Z({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:o}=ar(e),s=I(),{isPresent:i}=zy(r,s);n({present:i});let a=t.default({present:i.value});a=ta(a||[]);const l=Ut();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
`)].join(`
`))}return()=>o.value||r.value||i.value?gt(t.default({present:i.value})[0],{ref:c=>{const u=cr(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?s.value=u.firstElementChild:s.value=u),u}}):null}});const hi=Z({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=ta(n.default()),o=r.findIndex(l=>l.type!==kt);if(o===-1)return r;const s=r[o];delete s.props?.ref;const i=s.props?ze(t,s.props):t,a=bn({...s,props:{}},i);return r.length===1?a:(r[o]=a,r)}}}),Uy=["area","img","input"],_t=Z({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&Uy.includes(r)?()=>gt(r,t):r!=="template"?()=>gt(e.as,t,{default:n.default}):()=>gt(hi,t,{default:n.default})}});function jl(){const e=I(),t=E(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:cr(e));return{primitiveElement:e,currentElement:t}}const[un,Hy]=Wt("DialogRoot");var Wy=Z({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=cs(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=I(),i=I(),{modal:a}=ar(n);return Hy({open:o,modal:a,openModal:()=>{o.value=!0},onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(l,c)=>be(l.$slots,"default",{open:h(o),close:()=>o.value=!1})}}),Cd=Wy,Ky=Z({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;qe();const n=un();return(r,o)=>(g(),X(h(_t),ze(t,{type:r.as==="button"?"button":void 0,onClick:o[0]||(o[0]=s=>h(n).onOpenChange(!1))}),{default:J(()=>[be(r.$slots,"default")]),_:3},16,["type"]))}}),mi=Ky;const Gy="dismissableLayer.pointerDownOutside",Yy="dismissableLayer.focusOutside";function Sd(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||o.indexOf(r)<o.indexOf(n)))}function Xy(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,o=I(!1),s=I(()=>{});return Lt(i=>{if(!ln||!ft(n))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if(Sd(t.value,u)){o.value=!1;return}if(c.target&&!o.value){let p=function(){gd(Gy,e,f)};var d=p;const f={originalEvent:c};c.pointerType==="touch"?(r.removeEventListener("click",s.value),s.value=p,r.addEventListener("click",s.value,{once:!0})):p()}else r.removeEventListener("click",s.value);o.value=!1}},l=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);i(()=>{window.clearTimeout(l),r.removeEventListener("pointerdown",a),r.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{ft(n)&&(o.value=!0)}}}function Jy(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,o=I(!1);return Lt(s=>{if(!ln||!ft(n))return;const i=async a=>{if(!t?.value)return;await He(),await He();const l=a.target;!t.value||!l||Sd(t.value,l)||a.target&&!o.value&&gd(Yy,e,{originalEvent:a})};r.addEventListener("focusin",i),s(()=>r.removeEventListener("focusin",i))}),{onFocusCapture:()=>{ft(n)&&(o.value=!0)},onBlurCapture:()=>{ft(n)&&(o.value=!1)}}}const ut=Dn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var Qy=Z({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:o,currentElement:s}=qe(),i=E(()=>s.value?.ownerDocument??globalThis.document),a=E(()=>ut.layersRoot),l=E(()=>s.value?Array.from(a.value).indexOf(s.value):-1),c=E(()=>ut.layersWithOutsidePointerEventsDisabled.size>0),u=E(()=>{const p=Array.from(a.value),[m]=[...ut.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(m);return l.value>=v}),d=Xy(async p=>{const m=[...ut.branches].some(v=>v?.contains(p.target));!u.value||m||(r("pointerDownOutside",p),r("interactOutside",p),await He(),p.defaultPrevented||r("dismiss"))},s),f=Jy(p=>{[...ut.branches].some(v=>v?.contains(p.target))||(r("focusOutside",p),r("interactOutside",p),p.defaultPrevented||r("dismiss"))},s);return Sy("Escape",p=>{l.value===a.value.size-1&&(r("escapeKeyDown",p),p.defaultPrevented||r("dismiss"))}),Le([s,()=>n.disableOutsidePointerEvents],([p,m],v,b)=>{p&&(m&&(ut.layersWithOutsidePointerEventsDisabled.size===0&&(ut.originalBodyPointerEvents=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),ut.layersWithOutsidePointerEventsDisabled.add(p),b(()=>{ut.layersWithOutsidePointerEventsDisabled.delete(p),ut.layersWithOutsidePointerEventsDisabled.size===0&&!fy(ut.originalBodyPointerEvents)&&(i.value.body.style.pointerEvents=ut.originalBodyPointerEvents)})),a.value.add(p))},{immediate:!0}),Lt(p=>{p(()=>{s.value&&(a.value.delete(s.value),ut.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(p,m)=>(g(),X(h(_t),{ref:h(o),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:ir({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:h(f).onFocusCapture,onBlurCapture:h(f).onBlurCapture,onPointerdownCapture:h(d).onPointerDownCapture},{default:J(()=>[be(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ed=Qy;const Zy=hy(()=>I([]));function eb(){const e=Zy();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Vl(e.value,t),e.value.unshift(t)},remove(t){e.value=Vl(e.value,t),e.value[0]?.resume()}}}function Vl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}const Bs="focusScope.autoFocusOnMount",Ns="focusScope.autoFocusOnUnmount",zl={bubbles:!1,cancelable:!0};function tb(e,{select:t=!1}={}){const n=et();for(const r of e)if(mn(r,{select:t}),et()!==n)return!0}function nb(e){const t=Ad(e),n=Ul(t,e),r=Ul(t.reverse(),e);return[n,r]}function Ad(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ul(e,t){for(const n of e)if(!rb(n,{upTo:t}))return n}function rb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ob(e){return e instanceof HTMLInputElement&&"select"in e}function mn(e,{select:t=!1}={}){if(e&&e.focus){const n=et();e.focus({preventScroll:!0}),e!==n&&ob(e)&&t&&e.select()}}var sb=Z({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:o,currentElement:s}=qe(),i=I(null),a=eb(),l=Dn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Lt(u=>{if(!ln)return;const d=s.value;if(!n.trapped)return;function f(b){if(l.paused||!d)return;const _=b.target;d.contains(_)?i.value=_:mn(i.value,{select:!0})}function p(b){if(l.paused||!d)return;const _=b.relatedTarget;_!==null&&(d.contains(_)||mn(i.value,{select:!0}))}function m(b){const _=i.value;if(_===null||!b.some(k=>k.removedNodes.length>0))return;d.contains(_)||mn(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const v=new MutationObserver(m);d&&v.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),v.disconnect()})}),Lt(async u=>{const d=s.value;if(await He(),!d)return;a.add(l);const f=et();if(!d.contains(f)){const m=new CustomEvent(Bs,zl);d.addEventListener(Bs,v=>r("mountAutoFocus",v)),d.dispatchEvent(m),m.defaultPrevented||(tb(Ad(d),{select:!0}),et()===f&&mn(d))}u(()=>{d.removeEventListener(Bs,b=>r("mountAutoFocus",b));const m=new CustomEvent(Ns,zl),v=b=>{r("unmountAutoFocus",b)};d.addEventListener(Ns,v),d.dispatchEvent(m),d.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{m.defaultPrevented||mn(f??document.body,{select:!0}),d.removeEventListener(Ns,v),a.remove(l),d.removeAttribute("data-focus-scope-unmounting")},0)})});function c(u){if(!n.loop&&!n.trapped||l.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,f=et();if(d&&f){const p=u.currentTarget,[m,v]=nb(p);m&&v?!u.shiftKey&&f===v?(u.preventDefault(),n.loop&&mn(m,{select:!0})):u.shiftKey&&f===m&&(u.preventDefault(),n.loop&&mn(v,{select:!0})):f===p&&u.preventDefault()}}return(u,d)=>(g(),X(h(_t),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:J(()=>[be(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),$d=sb;const ib="menu.itemSelect",gi=["Enter"," "],ab=["ArrowDown","PageUp","Home"],Od=["ArrowUp","PageDown","End"],lb=[...ab,...Od];[...gi],[...gi];function Pd(e){return e?"open":"closed"}function ub(e){const t=et();for(const n of e)if(n===t||(n.focus(),et()!==t))return}function cb(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,l=t[s].y,c=t[i].x,u=t[i].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function db(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return cb(n,t)}function Po(e){return e.pointerType==="mouse"}var fb=Z({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=un(),{forwardRef:s,currentElement:i}=qe();return o.titleId||=Oo(void 0,"reka-dialog-title"),o.descriptionId||=Oo(void 0,"reka-dialog-description"),St(()=>{o.contentElement=i,et()!==document.body&&(o.triggerElement.value=et())}),(a,l)=>(g(),X(h($d),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>r("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>r("closeAutoFocus",c))},{default:J(()=>[Y(h(Ed),ze({id:h(o).contentId,ref:h(s),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":h(o).descriptionId,"aria-labelledby":h(o).titleId,"data-state":h(Pd)(h(o).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>h(o).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>r("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>r("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>r("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>r("pointerDownOutside",c))}),{default:J(()=>[be(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Td=fb,pb=Z({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=un(),s=dr(r),{forwardRef:i,currentElement:a}=qe();return kd(a),(l,c)=>(g(),X(Td,ze({...n,...h(s)},{ref:h(i),"trap-focus":h(o).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),h(o).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:J(()=>[be(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),hb=pb,mb=Z({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=dr(t);qe();const s=un(),i=I(!1),a=I(!1);return(l,c)=>(g(),X(Td,ze({...n,...h(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(i.value||h(s).triggerElement.value?.focus(),u.preventDefault()),i.value=!1,a.value=!1}),onInteractOutside:c[1]||(c[1]=u=>{u.defaultPrevented||(i.value=!0,u.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const d=u.target;h(s).triggerElement.value?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.value&&u.preventDefault()})}),{default:J(()=>[be(l.$slots,"default")]),_:3},16))}}),gb=mb,vb=Z({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=un(),s=dr(r),{forwardRef:i}=qe();return(a,l)=>(g(),X(h(oa),{present:a.forceMount||h(o).open.value},{default:J(()=>[h(o).modal.value?(g(),X(hb,ze({key:0,ref:h(i)},{...n,...h(s),...a.$attrs}),{default:J(()=>[be(a.$slots,"default")]),_:3},16)):(g(),X(gb,ze({key:1,ref:h(i)},{...n,...h(s),...a.$attrs}),{default:J(()=>[be(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Rd=vb,yb=Z({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;qe();const n=un();return(r,o)=>(g(),X(h(_t),ze(t,{id:h(n).descriptionId}),{default:J(()=>[be(r.$slots,"default")]),_:3},16,["id"]))}}),Md=yb,bb=Z({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=un();return _d(!0),qe(),(n,r)=>(g(),X(h(_t),{as:n.as,"as-child":n.asChild,"data-state":h(t).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:r[0]||(r[0]=jt(()=>{},["left","self","prevent"]))},{default:J(()=>[be(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),_b=bb,xb=Z({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=un(),{forwardRef:n}=qe();return(r,o)=>h(t)?.modal.value?(g(),X(h(oa),{key:0,present:r.forceMount||h(t).open.value},{default:J(()=>[Y(_b,ze(r.$attrs,{ref:h(n),as:r.as,"as-child":r.asChild}),{default:J(()=>[be(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):de("v-if",!0)}}),Id=xb,wb=Z({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=ky();return(n,r)=>h(t)||n.forceMount?(g(),X(Ep,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[be(n.$slots,"default")],8,["to","disabled","defer"])):de("v-if",!0)}}),sa=wb,kb=Z({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(g(),X(h(sa),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),Cb=kb,Sb=Z({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=un();return qe(),(r,o)=>(g(),X(h(_t),ze(t,{id:h(n).titleId}),{default:J(()=>[be(r.$slots,"default")]),_:3},16,["id"]))}}),Dd=Sb;const[Eb,Ab]=Wt("AlertDialogContent");var $b=Z({__name:"AlertDialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=dr(t);qe();const s=I();return Ab({onCancelElementChange:i=>{s.value=i}}),(i,a)=>(g(),X(h(Rd),ze({...n,...h(o)},{role:"alertdialog",onPointerDownOutside:a[0]||(a[0]=jt(()=>{},["prevent"])),onInteractOutside:a[1]||(a[1]=jt(()=>{},["prevent"])),onOpenAutoFocus:a[2]||(a[2]=()=>{He(()=>{s.value?.focus({preventScroll:!0})})})}),{default:J(()=>[be(i.$slots,"default")]),_:3},16))}}),Ob=$b,Pb=Z({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Eb(),{forwardRef:r,currentElement:o}=qe();return St(()=>{n.onCancelElementChange(o.value)}),(s,i)=>(g(),X(h(mi),ze(t,{ref:h(r)}),{default:J(()=>[be(s.$slots,"default")]),_:3},16))}}),Tb=Pb,Rb=Z({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return qe(),(n,r)=>(g(),X(h(Md),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),Mb=Rb,Ib=Z({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return qe(),(n,r)=>(g(),X(h(Id),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),Db=Ib,qb=Z({__name:"AlertDialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(g(),X(h(sa),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),Fb=qb,Bb=Z({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const o=Yr(e,t);return qe(),(s,i)=>(g(),X(h(Cd),ze(h(o),{modal:!0}),{default:J(a=>[be(s.$slots,"default",ht(bt(a)))]),_:3},16))}}),Nb=Bb,Lb=Z({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return qe(),(n,r)=>(g(),X(h(Dd),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),jb=Lb;const Hl="data-reka-collection-item";function qd(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let o;n?(o={collectionRef:I(),itemMap:I(new Map)},qt(r,o)):o=Ke(r);const s=(u=!1)=>{const d=o.collectionRef.value;if(!d)return[];const f=Array.from(d.querySelectorAll(`[${Hl}]`)),m=Array.from(o.itemMap.value.values()).sort((v,b)=>f.indexOf(v.ref)-f.indexOf(b.ref));return u?m:m.filter(v=>v.ref.dataset.disabled!=="")},i=Z({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:d,attrs:f}){const{primitiveElement:p,currentElement:m}=jl();return Le(m,()=>{o.collectionRef.value=m.value}),()=>gt(hi,{ref:p,...f},d)}}),a=Z({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:d,attrs:f}){const{primitiveElement:p,currentElement:m}=jl();return Lt(v=>{if(m.value){const b=Bu(m.value);o.itemMap.value.set(b,{ref:m.value,value:u.value}),v(()=>o.itemMap.value.delete(b))}}),()=>gt(hi,{...f,[Hl]:"",ref:p},d)}}),l=E(()=>Array.from(o.itemMap.value.values())),c=E(()=>o.itemMap.value.size);return{getItems:s,reactiveItems:l,itemMapSize:c,CollectionSlot:i,CollectionItem:a}}const Vb="rovingFocusGroup.onEntryFocus",zb={bubbles:!1,cancelable:!0};function Ub(e,t=!1){const n=et();for(const r of e)if(r===n||(r.focus({preventScroll:t}),et()!==n))return}const[Fd,Hb]=Wt("PopperRoot");var Wb=Z({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=I();return Hb({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>be(n.$slots,"default")}}),Kb=Wb,Gb=Z({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:r}=qe(),o=Fd();return Ku(()=>{o.onAnchorChange(t.reference??r.value)}),(s,i)=>(g(),X(h(_t),{ref:h(n),as:s.as,"as-child":s.asChild},{default:J(()=>[be(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Yb=Gb;function Xb(e){return e!==null}function Jb(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=vi(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+a/2,p=(o.arrow?.y??0)+l/2;let m="",v="";return c==="bottom"?(m=i?d:`${f}px`,v=`${-l}px`):c==="top"?(m=i?d:`${f}px`,v=`${r.floating.height+l}px`):c==="right"?(m=`${-l}px`,v=i?d:`${p}px`):c==="left"&&(m=`${r.floating.width+l}px`,v=i?d:`${p}px`),{data:{x:m,y:v}}}}}function vi(e){const[t,n="center"]=e.split("-");return[t,n]}const Qb=["top","right","bottom","left"],xn=Math.min,Zt=Math.max,To=Math.round,oo=Math.floor,en=e=>({x:e,y:e}),Zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Bd(e,t,n){return Zt(e,xn(t,n))}function sn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function ia(e){return e==="x"?"y":"x"}function aa(e){return e==="y"?"height":"width"}function Ft(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function la(e){return ia(Ft(e))}function e_(e,t,n){n===void 0&&(n=!1);const r=fr(e),o=la(e),s=aa(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ro(i)),[i,Ro(i)]}function t_(e){const t=Ro(e);return[yi(e),t,yi(t)]}function yi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Wl=["left","right"],Kl=["right","left"],n_=["top","bottom"],r_=["bottom","top"];function o_(e,t,n){switch(e){case"top":case"bottom":return n?t?Kl:Wl:t?Wl:Kl;case"left":case"right":return t?n_:r_;default:return[]}}function s_(e,t,n,r){const o=fr(e);let s=o_(wn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(yi)))),s}function Ro(e){const t=wn(e);return Zb[t]+e.slice(t.length)}function i_(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Nd(e){return typeof e!="number"?i_(e):{top:e,right:e,bottom:e,left:e}}function Mo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gl(e,t,n){let{reference:r,floating:o}=e;const s=Ft(t),i=la(t),a=aa(i),l=wn(t),c=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}const m=fr(t);return m&&(p[i]+=f*(m==="end"?1:-1)*(n&&c?-1:1)),p}async function a_(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=sn(t,e),m=Nd(p),b=a[f?d==="floating"?"reference":"floating":d],_=Mo(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(C))&&await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1},B=Mo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:l}):w);return{top:(_.top-B.top+m.top)/k.y,bottom:(B.bottom-_.bottom+m.bottom)/k.y,left:(_.left-B.left+m.left)/k.x,right:(B.right-_.right+m.right)/k.x}}const l_=50,u_=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:a_},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Gl(c,r,l),f=r,p=0;const m={};for(let v=0;v<s.length;v++){const b=s[v];if(!b)continue;const{name:_,fn:w}=b,{x:C,y:k,data:B,reset:W}=await w({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=C??u,d=k??d,m[_]={...m[_],...B},W&&p<l_&&(p++,typeof W=="object"&&(W.placement&&(f=W.placement),W.rects&&(c=W.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):W.rects),{x:u,y:d}=Gl(c,f,l)),v=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}},c_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=sn(e,t)||{};if(c==null)return{};const d=Nd(u),f={x:n,y:r},p=la(o),m=aa(p),v=await i.getDimensions(c),b=p==="y",_=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",k=s.reference[m]+s.reference[p]-f[p]-s.floating[m],B=f[p]-s.reference[p],W=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let D=W?W[C]:0;(!D||!await(i.isElement==null?void 0:i.isElement(W)))&&(D=a.floating[C]||s.floating[m]);const T=k/2-B/2,$=D/2-v[m]/2-1,R=xn(d[_],$),oe=xn(d[w],$),L=D-v[m]-oe,ae=D/2-v[m]/2+T,ye=Bd(R,ae,L),F=!l.arrow&&fr(o)!=null&&ae!==ye&&s.reference[m]/2-(ae<R?R:oe)-v[m]/2<0,re=F?ae<R?ae-R:ae-L:0;return{[p]:f[p]+re,data:{[p]:ye,centerOffset:ae-ye-re,...F&&{alignmentOffset:re}},reset:F}}}),d_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...b}=sn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=wn(o),w=Ft(a),C=wn(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),B=f||(C||!v?[Ro(a)]:t_(a)),W=m!=="none";!f&&W&&B.push(...s_(a,v,m,k));const D=[a,...B],T=await l.detectOverflow(t,b),$=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&$.push(T[_]),d){const ye=e_(o,i,k);$.push(T[ye[0]],T[ye[1]])}if(R=[...R,{placement:o,overflows:$}],!$.every(ye=>ye<=0)){var oe,L;const ye=(((oe=s.flip)==null?void 0:oe.index)||0)+1,F=D[ye];if(F&&(!(d==="alignment"?w!==Ft(F):!1)||R.every(ce=>Ft(ce.placement)===w?ce.overflows[0]>0:!0)))return{data:{index:ye,overflows:R},reset:{placement:F}};let re=(L=R.filter(ne=>ne.overflows[0]<=0).sort((ne,ce)=>ne.overflows[1]-ce.overflows[1])[0])==null?void 0:L.placement;if(!re)switch(p){case"bestFit":{var ae;const ne=(ae=R.filter(ce=>{if(W){const M=Ft(ce.placement);return M===w||M==="y"}return!0}).map(ce=>[ce.placement,ce.overflows.filter(M=>M>0).reduce((M,N)=>M+N,0)]).sort((ce,M)=>ce[1]-M[1])[0])==null?void 0:ae[0];ne&&(re=ne);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Yl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xl(e){return Qb.some(t=>e[t]>=0)}const f_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=sn(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Yl(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Xl(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Yl(i,n.floating);return{data:{escapedOffsets:a,escaped:Xl(a)}}}default:return{}}}}},Ld=new Set(["left","top"]);async function p_(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=wn(n),a=fr(n),l=Ft(n)==="y",c=Ld.has(i)?-1:1,u=s&&l?-1:1,d=sn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const h_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await p_(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},m_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x:C,y:k}=w;return{x:C,y:k}}},...c}=sn(e,t),u={x:n,y:r},d=await s.detectOverflow(t,c),f=Ft(o),p=ia(f);let m=u[p],v=u[f];const b=(w,C)=>Bd(C+d[w==="y"?"top":"left"],C,C-d[w==="y"?"bottom":"right"]);i&&(m=b(p,m)),a&&(v=b(f,v));const _=l.fn({...t,[p]:m,[f]:v});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:i,[f]:a}}}}}},g_=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:s,placement:i,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=sn(e,t),f={x:o,y:s},p=Ft(i),m=ia(p);let v=f[m],b=f[p];const _=sn(c,t),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:(n=_.mainAxis)!=null?n:0,crossAxis:(r=_.crossAxis)!=null?r:0};if(u){const B=m==="y"?"height":"width",W=a.reference[m]-a.floating[B]+w.mainAxis,D=a.reference[m]+a.reference[B]-w.mainAxis;v<W?v=W:v>D&&(v=D)}if(d){var C,k;const B=m==="y"?"width":"height",W=Ld.has(wn(i)),D=a.reference[p]-a.floating[B]+(W&&((C=l.offset)==null?void 0:C[p])||0)+(W?0:w.crossAxis),T=a.reference[p]+a.reference[B]+(W?0:((k=l.offset)==null?void 0:k[p])||0)-(W?w.crossAxis:0);b<D?b=D:b>T&&(b=T)}return{[m]:v,[p]:b}}}},v_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...a}=sn(e,t),l=await o.detectOverflow(t,a),c=wn(n),u=fr(n),d=Ft(n)==="y",{width:f,height:p}=r.floating;let m,v;c==="top"||c==="bottom"?(m=c,v=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=c,m=u==="end"?"top":"bottom");const b=p-l.top-l.bottom,_=f-l.left-l.right,w=xn(p-l[m],b),C=xn(f-l[v],_),k=t.middlewareData.shift,B=!k;let W=w,D=C;k!=null&&k.enabled.x&&(D=_),k!=null&&k.enabled.y&&(W=b),B&&!u&&(d?D=f-2*Zt(l.left,l.right):W=p-2*Zt(l.top,l.bottom)),await i({...t,availableWidth:D,availableHeight:W});const T=await o.getDimensions(s.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function ds(){return typeof window<"u"}function qn(e){return ua(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cn(e){var t;return(t=(ua(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ua(e){return ds()?e instanceof Node||e instanceof at(e).Node:!1}function Vt(e){return ds()?e instanceof Element||e instanceof at(e).Element:!1}function Cn(e){return ds()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function Jl(e){return!ds()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}function fs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function y_(e){return/^(table|td|th)$/.test(qn(e))}function ps(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const b_=/transform|translate|scale|rotate|perspective|filter/,__=/paint|layout|strict|content/,$n=e=>!!e&&e!=="none";let Ls;function ca(e){const t=Vt(e)?zt(e):e;return $n(t.transform)||$n(t.translate)||$n(t.scale)||$n(t.rotate)||$n(t.perspective)||!da()&&($n(t.backdropFilter)||$n(t.filter))||b_.test(t.willChange||"")||__.test(t.contain||"")}function x_(e){let t=Mn(e);for(;Cn(t)&&!Vr(t);){if(ca(t))return t;if(ps(t))return null;t=Mn(t)}return null}function da(){return Ls==null&&(Ls=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ls}function Vr(e){return/^(html|body|#document)$/.test(qn(e))}function zt(e){return at(e).getComputedStyle(e)}function hs(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(qn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jl(e)&&e.host||cn(e);return Jl(t)?t.host:t}function jd(e){const t=Mn(e);return Vr(t)?(e.ownerDocument||e).body:Cn(t)&&fs(t)?t:jd(t)}function zr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jd(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=at(o);if(s){const a=bi(i);return t.concat(i,i.visualViewport||[],fs(o)?o:[],a&&n?zr(a):[])}else return t.concat(o,zr(o,[],n))}function bi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vd(e){const t=zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Cn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=To(n)!==s||To(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function fa(e){return Vt(e)?e:e.contextElement}function Zn(e){const t=fa(e);if(!Cn(t))return en(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Vd(t);let i=(s?To(n.width):n.width)/r,a=(s?To(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const w_=en(0);function zd(e){const t=at(e);return!da()||!t.visualViewport?w_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k_(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===at(e)}function In(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=fa(e);let i=en(1);t&&(r?Vt(r)&&(i=Zn(r)):i=Zn(e));const a=k_(s,n,r)?zd(s):en(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s&&r){const f=at(s),p=Vt(r)?at(r):r;let m=f,v=bi(m);for(;v&&p!==m;){const b=Zn(v),_=v.getBoundingClientRect(),w=zt(v),C=_.left+(v.clientLeft+parseFloat(w.paddingLeft))*b.x,k=_.top+(v.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=C,c+=k,m=at(v),v=bi(m)}}return Mo({width:u,height:d,x:l,y:c})}function ms(e,t){const n=hs(e).scrollLeft;return t?t.left+n:In(cn(e)).left+n}function Ud(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ms(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function C_(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=cn(r),a=t?ps(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=en(1);const u=en(0),d=Cn(r);if((d||!s)&&((qn(r)!=="body"||fs(i))&&(l=hs(r)),d)){const p=In(r);c=Zn(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=i&&!d&&!s?Ud(i,l):en(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function S_(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function E_(e){const t=hs(e),n=e.ownerDocument.body,r=Zt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Zt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+ms(e);const i=-t.scrollTop;return zt(n).direction==="rtl"&&(s+=Zt(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const A_=25;function $_(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=at(e),s=cn(e),i=o.visualViewport;let a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(i){const f=!da()||t==="fixed";r?f||(c=-i.offsetLeft,u=-i.offsetTop):(a=i.width,l=i.height,f&&(c=i.offsetLeft,u=i.offsetTop))}if(ms(s)<=0){const f=s.ownerDocument,p=f.body,m=getComputedStyle(p),v=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(s.clientWidth-p.clientWidth-v),_=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;_<=A_&&(a-=_)}return{width:a,height:l,x:c,y:u}}function O_(e,t){const n=In(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Zn(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function Ql(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=$_(e,n,t);else if(t==="document")r=E_(cn(e));else if(Vt(t))r=O_(t,n);else{const o=zd(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mo(r)}function P_(e,t){const n=t.get(e);if(n)return n;let r=zr(e,[],!1).filter(a=>Vt(a)&&qn(a)!=="body"),o=null;const s=zt(e).position==="fixed";let i=s?Mn(e):e;for(;Vt(i)&&!Vr(i);){const a=zt(i),l=ca(i),c=o?o.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==i):o=a,i=Mn(i)}return t.set(e,r),r}function T_(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ps(t)?[]:P_(t,this._c):[].concat(n),r],a=Ql(t,i[0],o);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let f=1;f<i.length;f++){const p=Ql(t,i[f],o);l=Zt(p.top,l),c=xn(p.right,c),u=xn(p.bottom,u),d=Zt(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function R_(e){const{width:t,height:n}=Vd(e);return{width:t,height:n}}function M_(e,t,n){const r=Cn(t),o=cn(t),s=n==="fixed",i=In(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=en(0);if((r||!s)&&((qn(t)!=="body"||fs(o))&&(a=hs(t)),r)){const f=In(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&o&&(l.x=ms(o));const c=o&&!r&&!s?Ud(o,a):en(0),u=i.left+a.scrollLeft-l.x-c.x,d=i.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function js(e){return zt(e).position==="static"}function Zl(e,t){if(!Cn(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cn(e)===n&&(n=n.ownerDocument.body),n}function Hd(e,t){const n=at(e);if(ps(e))return n;if(!Cn(e)){let o=Mn(e);for(;o&&!Vr(o);){if(Vt(o)&&!js(o))return o;o=Mn(o)}return n}let r=Zl(e,t);for(;r&&y_(r)&&js(r);)r=Zl(r,t);return r&&Vr(r)&&js(r)&&!ca(r)?n:r||x_(e)||n}const I_=async function(e){const t=this.getOffsetParent||Hd,n=this.getDimensions,r=await n(e.floating);return{reference:M_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function D_(e){return zt(e).direction==="rtl"}const q_={convertOffsetParentRelativeRectToViewportRelativeRect:C_,getDocumentElement:cn,getClippingRect:T_,getOffsetParent:Hd,getElementRects:I_,getClientRects:S_,getDimensions:R_,getScale:Zn,isElement:Vt,isRTL:D_};function Wd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function F_(e,t,n){let r=null,o;const s=cn(e);function i(){var u;clearTimeout(o),(u=r)==null||u.disconnect(),r=null}function a(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:p,top:m,width:v,height:b}=f;if(u||t(),!v||!b)return;const _=oo(m),w=oo(s.clientWidth-(p+v)),C=oo(s.clientHeight-(m+b)),k=oo(p),W={rootMargin:-_+"px "+-w+"px "+-C+"px "+-k+"px",threshold:Zt(0,xn(1,d))||1};let D=!0;function T($){const R=$[0].intersectionRatio;if(!Wd(f,e.getBoundingClientRect()))return a();if(R!==d){if(!D)return a();R?a(!1,R):o=setTimeout(()=>{a(!1,1e-7)},1e3)}D=!1}try{r=new IntersectionObserver(T,{...W,root:s.ownerDocument})}catch{r=new IntersectionObserver(T,W)}r.observe(e)}const l=at(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),i()}}function B_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=fa(e),u=o||s?[...c?zr(c):[],...t?zr(t):[]]:[];u.forEach(_=>{o&&_.addEventListener("scroll",n),s&&_.addEventListener("resize",n)});const d=c&&a?F_(c,n,s):null;let f=-1,p=null;i&&(p=new ResizeObserver(_=>{let[w]=_;w&&w.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let m,v=l?In(e):null;l&&b();function b(){const _=In(e);v&&!Wd(v,_)&&n(),v=_,m=requestAnimationFrame(b)}return n(),()=>{var _;u.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),d?.(),(_=p)==null||_.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const N_=h_,L_=m_,eu=d_,j_=v_,V_=f_,z_=c_,U_=g_,H_=(e,t,n)=>{const r=new Map,o=n??{},s={...q_,...o.platform,_c:r};return u_(e,t,{...o,platform:s})};function W_(e){return e!=null&&typeof e=="object"&&"$el"in e}function _i(e){if(W_(e)){const t=e.$el;return ua(t)&&qn(t)==="#comment"?null:t}return e}function Wn(e){return typeof e=="function"?e():h(e)}function K_(e){return{name:"arrow",options:e,fn(t){const n=_i(Wn(e.element));return n==null?{}:z_({element:n,padding:e.padding}).fn(t)}}}function Kd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tu(e,t){const n=Kd(e);return Math.round(t*n)/n}function G_(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=E(()=>{var D;return(D=Wn(n.open))!=null?D:!0}),s=E(()=>Wn(n.middleware)),i=E(()=>{var D;return(D=Wn(n.placement))!=null?D:"bottom"}),a=E(()=>{var D;return(D=Wn(n.strategy))!=null?D:"absolute"}),l=E(()=>{var D;return(D=Wn(n.transform))!=null?D:!0}),c=E(()=>_i(e.value)),u=E(()=>_i(t.value)),d=I(0),f=I(0),p=I(a.value),m=I(i.value),v=Wo({}),b=I(!1),_=E(()=>{const D={position:p.value,left:"0",top:"0"};if(!u.value)return D;const T=tu(u.value,d.value),$=tu(u.value,f.value);return l.value?{...D,transform:"translate("+T+"px, "+$+"px)",...Kd(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:T+"px",top:$+"px"}});let w;function C(){if(c.value==null||u.value==null)return;const D=o.value;H_(c.value,u.value,{middleware:s.value,placement:i.value,strategy:a.value}).then(T=>{d.value=T.x,f.value=T.y,p.value=T.strategy,m.value=T.placement,v.value=T.middlewareData,b.value=D!==!1})}function k(){typeof w=="function"&&(w(),w=void 0)}function B(){if(k(),r===void 0){C();return}if(c.value!=null&&u.value!=null){w=r(c.value,u.value,C);return}}function W(){o.value||(b.value=!1)}return Le([s,i,a,o],C,{flush:"sync"}),Le([c,u],B,{flush:"sync"}),Le(o,W,{flush:"sync"}),Oi()&&_u(k),{x:Bn(d),y:Bn(f),strategy:Bn(p),placement:Bn(m),middlewareData:Bn(v),isPositioned:Bn(b),floatingStyles:_,update:C}}const Gd={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[GC,Y_]=Wt("PopperContent");var X_=Z({inheritAttrs:!1,__name:"PopperContent",props:oc({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Gd}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,o=Fd(),{forwardRef:s,currentElement:i}=qe(),a=I(),l=I(),{width:c,height:u}=By(l),d=E(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=E(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=E(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=E(()=>({padding:f.value,boundary:p.value.filter(Xb),altBoundary:p.value.length>0})),v=E(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),b=py(()=>[N_({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&eu({...m.value,...v.value}),n.avoidCollisions&&L_({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?U_():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&eu({...m.value,...v.value}),j_({...m.value,apply:({elements:L,rects:ae,availableWidth:ye,availableHeight:F})=>{const{width:re,height:ne}=ae.reference,ce=L.floating.style;ce.setProperty("--reka-popper-available-width",`${ye}px`),ce.setProperty("--reka-popper-available-height",`${F}px`),ce.setProperty("--reka-popper-anchor-width",`${re}px`),ce.setProperty("--reka-popper-anchor-height",`${ne}px`)}}),l.value&&K_({element:l.value,padding:n.arrowPadding}),Jb({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&V_({strategy:"referenceHidden",...m.value})]),_=E(()=>n.reference??o.anchor.value),{floatingStyles:w,placement:C,isPositioned:k,middlewareData:B}=G_(_,a,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...L)=>B_(...L,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:b}),W=E(()=>vi(C.value)[0]),D=E(()=>vi(C.value)[1]);Ku(()=>{k.value&&r("placed")});const T=E(()=>{const L=B.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&L}),$=I("");Lt(()=>{i.value&&($.value=window.getComputedStyle(i.value).zIndex)});const R=E(()=>B.value.arrow?.x??0),oe=E(()=>B.value.arrow?.y??0);return Y_({placedSide:W,onArrowChange:L=>l.value=L,arrowX:R,arrowY:oe,shouldHideArrow:T}),(L,ae)=>(g(),A("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:ir({...h(w),transform:h(k)?h(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$.value,"--reka-popper-transform-origin":[h(B).transformOrigin?.x,h(B).transformOrigin?.y].join(" "),...h(B).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[Y(h(_t),ze({ref:h(s)},L.$attrs,{"as-child":n.asChild,as:L.as,"data-side":W.value,"data-align":D.value,style:{animation:h(k)?void 0:"none"}}),{default:J(()=>[be(L.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),J_=X_;const[YC,Q_]=Wt("RovingFocusGroup");var Z_=Z({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,o=n,{loop:s,orientation:i,dir:a}=ar(r),l=ra(a),c=cs(r,"currentTabStopId",o,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=I(!1),d=I(!1),f=I(0),{getItems:p,CollectionSlot:m}=qd({isProvider:!0});function v(_){const w=!d.value;if(_.currentTarget&&_.target===_.currentTarget&&w&&!u.value){const C=new CustomEvent(Vb,zb);if(_.currentTarget.dispatchEvent(C),o("entryFocus",C),!C.defaultPrevented){const k=p().map($=>$.ref).filter($=>$.dataset.disabled!==""),B=k.find($=>$.getAttribute("data-active")===""),W=k.find($=>$.getAttribute("data-highlighted")===""),D=k.find($=>$.id===c.value),T=[B,W,D,...k].filter(Boolean);Ub(T,r.preventScrollOnEntryFocus)}}d.value=!1}function b(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Q_({loop:s,dir:l,orientation:i,currentTabStopId:c,onItemFocus:_=>{c.value=_},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(_,w)=>(g(),X(h(m),null,{default:J(()=>[Y(h(_t),{tabindex:u.value||f.value===0?-1:0,"data-orientation":h(i),as:_.as,"as-child":_.asChild,dir:h(l),style:{outline:"none"},onMousedown:w[0]||(w[0]=C=>d.value=!0),onMouseup:b,onFocus:v,onBlur:w[1]||(w[1]=C=>u.value=!1)},{default:J(()=>[be(_.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),e1=Z_,t1=Z({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(g(),X(h(Yb),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),n1=t1;function r1(){const e=I(!1);return St(()=>{$o("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),$o(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const o1=yd(r1),[gs,s1]=Wt(["MenuRoot","MenuSub"],"MenuContext"),[pa,i1]=Wt("MenuRoot");var a1=Z({__name:"MenuRoot",props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:o,dir:s}=ar(n),i=ra(s),a=cs(n,"open",r),l=I(),c=o1();return s1({open:a,onOpenChange:u=>{a.value=u},content:l,onContentChange:u=>{l.value=u}}),i1({onClose:()=>{a.value=!1},isUsingKeyboardRef:c,dir:i,modal:o}),(u,d)=>(g(),X(h(Kb),null,{default:J(()=>[be(u.$slots,"default")]),_:3}))}}),l1=a1;const[Yd,u1]=Wt("MenuContent");var c1=Z({__name:"MenuContentImpl",props:oc({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Gd}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,r=t,o=gs(),s=pa(),{trapFocus:i,disableOutsidePointerEvents:a,loop:l}=ar(n);Ry(),_d(a.value);const c=I(""),u=I(0),d=I(0),f=I(null),p=I("right"),m=I(0),v=I(null),b=I(),{forwardRef:_,currentElement:w}=qe(),{handleTypeaheadSearch:C}=Ly(),k=I();function B(F){const re=Nl(F,k.value||et(),w.value,{loop:l.value,arrowKeyOptions:"vertical",dir:s?.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});re&&(k.value=re,re.scrollIntoView({block:"nearest"}))}function W(){k.value&&k.value.click()}const D=I(),T=I();Le(k,F=>{T.value&&(F===void 0||F!==T.value.trigger.value)&&(T.value.onOpenChange(!1),T.value=void 0)}),Le(w,F=>{o.onContentChange(F)}),lr(()=>{window.clearTimeout(u.value)});function $(F){return p.value===f.value?.side&&db(F,f.value?.area)}async function R(F){r("openAutoFocus",F),!F.defaultPrevented&&(F.preventDefault(),w.value?.focus({preventScroll:!0}))}function oe(F){if(F.defaultPrevented)return;const re=F.target,ne=re.closest("[data-reka-menu-content]")===F.currentTarget,ce=["input","textarea"].includes(re.tagName.toLowerCase()),M=F.ctrlKey||F.altKey||F.metaKey,N=F.key.length===1,Q=Nl(F,et(),w.value,{loop:l.value,arrowKeyOptions:"vertical",dir:s?.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(Q)return Q?.focus();if(F.code==="Space")return;const pe=b.value?.getItems()??[];if(ne&&(F.key==="Tab"&&F.preventDefault(),!M&&N&&!ce&&C(F.key,pe)),F.target!==w.value||!lb.includes(F.key))return;F.preventDefault();const ke=[...pe.map(Se=>Se.ref)];Od.includes(F.key)&&ke.reverse(),ub(ke)}function L(F){F?.currentTarget?.contains?.(F.target)||(window.clearTimeout(u.value),c.value="")}function ae(F){if(!Po(F))return;const re=F.target,ne=m.value!==F.clientX;if(F?.currentTarget?.contains(re)&&ne){const ce=F.clientX>m.value?"right":"left";p.value=ce,m.value=F.clientX}}function ye(F){Po(F)&&D.value&&D.value.focus()}return u1({onItemEnter:F=>!!$(F),onItemLeave:F=>$(F)?!0:(["INPUT","TEXTAREA"].includes(et()?.tagName||"")||w.value?.focus(),v.value=null,!1),onTriggerLeave:F=>!!$(F),searchRef:c,highlightedElement:k,onKeydownNavigation:B,onKeydownEnter:W,filterElement:D,onFilterElementChange:F=>{D.value=F},activeSubmenuContext:T,pointerGraceTimerRef:d,onPointerGraceIntentChange:F=>{f.value=F}}),(F,re)=>(g(),X(h($d),{"as-child":"",trapped:h(i),onMountAutoFocus:R,onUnmountAutoFocus:re[7]||(re[7]=ne=>r("closeAutoFocus",ne))},{default:J(()=>[Y(h(Ed),{"as-child":"","disable-outside-pointer-events":h(a),onEscapeKeyDown:re[2]||(re[2]=ne=>r("escapeKeyDown",ne)),onPointerDownOutside:re[3]||(re[3]=ne=>r("pointerDownOutside",ne)),onFocusOutside:re[4]||(re[4]=ne=>r("focusOutside",ne)),onInteractOutside:re[5]||(re[5]=ne=>r("interactOutside",ne)),onDismiss:re[6]||(re[6]=ne=>r("dismiss"))},{default:J(()=>[Y(h(e1),{ref_key:"rovingFocusGroupRef",ref:b,"current-tab-stop-id":v.value,"onUpdate:currentTabStopId":re[0]||(re[0]=ne=>v.value=ne),"as-child":"",orientation:"vertical",dir:h(s).dir.value,loop:h(l),onEntryFocus:re[1]||(re[1]=ne=>{r("entryFocus",ne),h(s).isUsingKeyboardRef.value||ne.preventDefault()})},{default:J(()=>[Y(h(J_),{ref:h(_),role:"menu",as:F.as,"as-child":F.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":h(Pd)(h(o).open.value),dir:h(s).dir.value,side:F.side,"side-offset":F.sideOffset,align:F.align,"align-offset":F.alignOffset,"avoid-collisions":F.avoidCollisions,"collision-boundary":F.collisionBoundary,"collision-padding":F.collisionPadding,"arrow-padding":F.arrowPadding,"prioritize-position":F.prioritizePosition,"position-strategy":F.positionStrategy,"update-position-strategy":F.updatePositionStrategy,sticky:F.sticky,"hide-when-detached":F.hideWhenDetached,reference:F.reference,onKeydown:oe,onBlur:L,onPointermove:ae,onPointerenter:ye},{default:J(()=>[be(F.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","position-strategy","update-position-strategy","sticky","hide-when-detached","reference"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Xd=c1,d1=Z({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Yd(),{forwardRef:r,currentElement:o}=qe(),{CollectionItem:s}=qd(),i=I(!1),a=E(()=>i.value||o.value!=null&&n.highlightedElement.value===o.value);async function l(u){if(!(u.defaultPrevented||!Po(u))){if(t.disabled)n.onItemLeave(u);else if(!n.onItemEnter(u)){const f=u.currentTarget;n.highlightedElement.value=f,["INPUT","TEXTAREA"].includes(et()?.tagName||"")||f.focus({preventScroll:!0})}}}async function c(u){if(await He(),u.defaultPrevented||!Po(u)||n.highlightedElement.value!==o.value)return;!n.onItemLeave(u)&&n.highlightedElement.value===o.value&&(n.highlightedElement.value=void 0)}return(u,d)=>(g(),X(h(s),{value:{textValue:u.textValue}},{default:J(()=>[Y(h(_t),ze({ref:h(r),role:"menuitem",tabindex:"-1"},u.$attrs,{as:u.as,"as-child":u.asChild,"aria-disabled":u.disabled||void 0,"data-disabled":u.disabled?"":void 0,"data-highlighted":a.value?"":void 0,onPointermove:l,onPointerleave:c,onFocus:d[0]||(d[0]=async f=>{await He(),!(f.defaultPrevented||u.disabled)&&(i.value=!0,h(n).highlightedElement.value=f.currentTarget)}),onBlur:d[1]||(d[1]=async f=>{await He(),!f.defaultPrevented&&(i.value=!1)})}),{default:J(()=>[be(u.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),f1=d1,p1=Z({__name:"MenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:o,currentElement:s}=qe(),i=pa(),a=Yd(),l=I(!1);async function c(){const u=s.value;if(!n.disabled&&u){const d=new CustomEvent(ib,{bubbles:!0,cancelable:!0});r("select",d),await He(),d.defaultPrevented?l.value=!1:i.onClose()}}return(u,d)=>(g(),X(f1,ze(n,{ref:h(o),onClick:c,onPointerdown:d[0]||(d[0]=()=>{l.value=!0}),onPointerup:d[1]||(d[1]=async f=>{await He(),!f.defaultPrevented&&(l.value||f.currentTarget?.click())}),onKeydown:d[2]||(d[2]=async f=>{const p=h(a).searchRef.value!=="";u.disabled||p&&f.key===" "||h(gi).includes(f.key)&&(f.currentTarget?.click(),f.preventDefault())})}),{default:J(()=>[be(u.$slots,"default")]),_:3},16))}}),h1=p1,m1=Z({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=Yr(n,r),s=gs(),{forwardRef:i,currentElement:a}=qe();return kd(a),(l,c)=>(g(),X(Xd,ze(h(o),{ref:h(i),"trap-focus":h(s).open.value,"disable-outside-pointer-events":h(s).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=u=>h(s).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=jt(u=>r("focusOutside",u),["prevent"]))}),{default:J(()=>[be(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),g1=m1,v1=Z({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const o=Yr(e,t),s=gs();return(i,a)=>(g(),X(Xd,ze(h(o),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:a[0]||(a[0]=l=>h(s).onOpenChange(!1))}),{default:J(()=>[be(i.$slots,"default")]),_:3},16))}}),y1=v1,b1=Z({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const o=Yr(e,t),s=gs(),i=pa();return(a,l)=>(g(),X(h(oa),{present:a.forceMount||h(s).open.value},{default:J(()=>[h(i).modal.value?(g(),X(g1,ht(ze({key:0},{...a.$attrs,...h(o)})),{default:J(()=>[be(a.$slots,"default")]),_:3},16)):(g(),X(y1,ht(ze({key:1},{...a.$attrs,...h(o)})),{default:J(()=>[be(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),_1=b1,x1=Z({__name:"MenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(g(),X(h(sa),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),w1=x1,k1=Z({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(g(),X(h(_t),ze(t,{role:"separator","aria-orientation":"horizontal"}),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),C1=k1;const[Jd,S1]=Wt("DropdownMenuRoot");var E1=Z({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;qe();const o=cs(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=I(),{modal:i,dir:a}=ar(n),l=ra(a);return S1({open:o,onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},triggerId:"",triggerElement:s,contentId:"",modal:i,dir:l}),(c,u)=>(g(),X(h(l1),{open:h(o),"onUpdate:open":u[0]||(u[0]=d=>Ge(o)?o.value=d:null),dir:h(l),modal:h(i)},{default:J(()=>[be(c.$slots,"default",{open:h(o)})]),_:3},8,["open","dir","modal"]))}}),A1=E1,$1=Z({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const o=Yr(e,t);qe();const s=Jd(),i=I(!1);function a(l){l.defaultPrevented||(i.value||setTimeout(()=>{s.triggerElement.value?.focus()},0),i.value=!1,l.preventDefault())}return s.contentId||=Oo(void 0,"reka-dropdown-menu-content"),(l,c)=>(g(),X(h(_1),ze(h(o),{id:h(s).contentId,"aria-labelledby":h(s)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:a,onInteractOutside:c[0]||(c[0]=u=>{if(u.defaultPrevented)return;const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,p=d.button===2||f;(!h(s).modal.value||p)&&(i.value=!0),h(s).triggerElement.value?.contains(u.target)&&u.preventDefault()})}),{default:J(()=>[be(l.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),O1=$1,P1=Z({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=dr(t);return qe(),(s,i)=>(g(),X(h(h1),ht(bt({...n,...h(o)})),{default:J(()=>[be(s.$slots,"default")]),_:3},16))}}),T1=P1,R1=Z({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(g(),X(h(w1),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),M1=R1,I1=Z({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return qe(),(n,r)=>(g(),X(h(C1),ht(bt(t)),{default:J(()=>[be(n.$slots,"default")]),_:3},16))}}),D1=I1,q1=Z({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Jd(),{forwardRef:r,currentElement:o}=qe();return St(()=>{n.triggerElement=o}),n.triggerId||=Oo(void 0,"reka-dropdown-menu-trigger"),(s,i)=>(g(),X(h(n1),{"as-child":""},{default:J(()=>[Y(h(_t),{id:h(n).triggerId,ref:h(r),type:s.as==="button"?"button":void 0,"as-child":t.asChild,as:s.as,"aria-haspopup":"menu","aria-expanded":h(n).open.value,"aria-controls":h(n).open.value?h(n).contentId:void 0,"data-disabled":s.disabled?"":void 0,disabled:s.disabled,"data-state":h(n).open.value?"open":"closed",onClick:i[0]||(i[0]=async a=>{!s.disabled&&a.button===0&&a.ctrlKey===!1&&(h(n)?.onOpenToggle(),await He(),h(n).open.value&&a.preventDefault())}),onKeydown:i[1]||(i[1]=Rc(a=>{s.disabled||(["Enter"," "].includes(a.key)&&h(n).onOpenToggle(),a.key==="ArrowDown"&&h(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())},["enter","space","arrow-down"]))},{default:J(()=>[be(s.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),F1=q1;const Io=I(null),Qd=I(null);let Ir=null;function Zd(e){ef(),Qd.value=e,!(e===null||e<=0)&&(Ir=setTimeout(()=>{Ir=null,ld()},e*800))}function ef(){Ir!==null&&(clearTimeout(Ir),Ir=null)}Tv(Zd);const Kn=Nt(Io);async function B1(e,t){const{data:n,response:r}=await Me.POST("/auth/login",{body:{login:e,password:t}});return!r.ok||!n?!1:(Zd(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function tf(){const{data:e,response:t}=await Me.GET("/auth/me");return Io.value=t.ok&&e?e.data:null,Io.value}function nf(){ef(),Io.value=null,Qd.value=null}async function N1(e){try{await Me.POST("/auth/logout")}catch{}finally{nf(),Nv([]),Vv([])}e&&await e.replace({name:"login"}).catch(()=>{})}const L1={class:"flex size-[34px] shrink-0 items-center justify-center rounded-full bg-accent text-[13px] font-bold text-on-accent","aria-hidden":"true","data-user-initials":""},j1={class:"flex flex-col leading-tight max-[1099px]:hidden","data-user-identity":""},V1={class:"font-semibold"},z1={key:0,class:"text-[12px] text-muted","data-user-role":""},U1={class:"flex items-center gap-3 px-2 py-2"},H1={class:"flex size-10 shrink-0 items-center justify-center rounded-full bg-accent text-[14px] font-bold text-on-accent","aria-hidden":"true"},W1={class:"flex min-w-0 flex-col leading-tight"},K1={class:"truncate font-bold"},G1={class:"truncate text-[13px] text-muted"},Y1=Z({__name:"UserMenu",setup(e){const t=Gr(),n=E(()=>{const i=Kn.value;if(!i)return"";const a=`${i.first_name} ${i.last_name}`.trim();return a===""?i.login:a}),r=E(()=>{const i=Kn.value;if(!i)return"";const a=[i.first_name,i.last_name].map(l=>l.trim()).filter(Boolean);return a.length>0?a.slice(0,2).map(l=>l.charAt(0).toUpperCase()).join(""):i.login.slice(0,2).toUpperCase()}),o=E(()=>Kn.value?.role?.name??"");async function s(){await N1(t)}return(i,a)=>(g(),X(h(A1),{modal:!1},{default:J(()=>[Y(h(F1),{"data-user-menu":"",disabled:!h(Kn),"aria-label":`${h(U)("backend::lang.nav.user_menu")}: ${n.value}`,class:"flex h-input items-center gap-2.5 rounded-inner px-2 text-left transition-colors duration-150 ease-out hover:bg-hover"},{default:J(()=>[O("span",L1,q(r.value),1),O("span",j1,[O("span",V1,q(n.value),1),o.value?(g(),A("span",z1,q(o.value),1)):de("",!0)]),Y(h(ts),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled","aria-label"]),Y(h(M1),null,{default:J(()=>[Y(h(O1),{"data-user-menu-content":"",align:"end","side-offset":8,class:"z-50 flex w-[280px] flex-col rounded-[14px] border border-border bg-surface p-2 text-text shadow-menu"},{default:J(()=>[O("div",U1,[O("span",H1,q(r.value),1),O("span",W1,[O("span",K1,q(n.value),1),O("span",G1,q(h(Kn)?.email),1)])]),Y(h(D1),{class:"my-1 h-px bg-border"}),Y(h(T1),{"data-action":"logout",class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:s},{default:J(()=>[Y(h(Yc),{size:18,"aria-hidden":"true"}),O("span",null,q(h(U)("backend::lang.auth.logout")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}}),X1=4e3,Ur=I([]),xi=new Map;let J1=1;const Q1=Nt(Ur);function Ue(e,t="success"){const n=J1++;return Ur.value=[{id:n,text:e,tone:t},...Ur.value],xi.set(n,setTimeout(()=>rf(n),X1)),n}function rf(e){const t=xi.get(e);t!==void 0&&(clearTimeout(t),xi.delete(e)),Ur.value=Ur.value.filter(n=>n.id!==e)}const Z1=["role","data-tone"],e0={class:"font-medium"},t0=["aria-label","onClick"],n0=Z({__name:"Toast",setup(e){return(t,n)=>(g(),X(Yh,{tag:"div",name:"toast",class:"pointer-events-none fixed inset-x-0 bottom-[88px] z-50 flex flex-col items-center gap-2 px-4"},{default:J(()=>[(g(!0),A(me,null,De(h(Q1),r=>(g(),A("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"},[O("span",{class:we([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"?(g(),X(h(ur),{key:0,size:16})):(g(),X(h(or),{key:1,size:16}))],2),O("span",e0,q(r.text),1),O("button",{type:"button","aria-label":h(U)("backend::lang.form.close"),class:"flex size-8 items-center justify-center rounded-pager text-[#c3cbda] transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:o=>h(rf)(r.id)},[Y(h(os),{size:16,"aria-hidden":"true"})],8,t0)],8,Z1))),128))]),_:1}))}}),r0={class:"flex min-h-screen bg-bg text-text"},o0={class:"flex min-w-0 flex-1 flex-col"},s0={class:"flex h-header shrink-0 items-center justify-between gap-4 border-b border-border bg-surface pr-6 pl-8"},i0={class:"min-w-0 flex-1 px-8 py-7"},a0=Z({__name:"AppShell",setup(e){const t=Ht(),{collapsed:n,watchViewport:r}=md(),o=r();yt(o);const s=E(()=>ls(String(t.params.vendor??""),String(t.params.plugin??"")));return(i,a)=>(g(),A("div",r0,[Y(ey),s.value&&!h(n)?(g(),X(sy,{key:0,entry:s.value},null,8,["entry"])):de("",!0),O("div",o0,[O("header",s0,[Y(dy),Y(Y1)]),O("main",i0,[be(i.$slots,"default")])]),Y(n0)]))}}),l0=Z({__name:"App",setup(e){const t=Ht(),n=E(()=>t.meta.shell===!0);return(r,o)=>n.value?(g(),X(a0,{key:0},{default:J(()=>[Y(h(ui),null,{default:J(({Component:s,route:i})=>[(g(),X(yn(s),{key:i.path}))]),_:1})]),_:1})):(g(),X(h(ui),{key:1}))}}),u0="data-summer-controller",Vs=new Map,wi=new Map;function of(){return`${Wi.base}/assets/`}function sf(e){if(!e.startsWith(of())||e.includes("\\"))return!1;for(const n of e){const r=n.codePointAt(0)??0;if(r<=32||r===127)return!1}return!(e.split(/[?#]/,1)[0]??"").split("/").some(n=>{const r=n.toLowerCase().replaceAll("%2e",".");return r==="."||r===".."})}function c0(e){if(!sf(e))return Promise.reject(new Error(`plugin script outside ${of()}: ${e}`));const t=Vs.get(e);if(t)return t;const n=new Promise((r,o)=>{const s=document.createElement("script");s.type="module",s.addEventListener("load",()=>r(),{once:!0}),s.addEventListener("error",()=>{Vs.delete(e),s.remove(),o(new Error(`plugin script failed to load: ${e}`))},{once:!0}),s.src=e,document.head.appendChild(s)});return Vs.set(e,n),n}function d0(e,t){for(const n of t){const r=`${e}
${n}`;if(!sf(n)||wi.has(r))continue;const o=document.createElement("link");o.rel="stylesheet",o.setAttribute(u0,e),o.href=n,wi.set(r,{owner:e,link:o}),document.head.appendChild(o)}}function af(e){for(const{owner:t,link:n}of wi.values())n.disabled=t!==e}async function lf(e,t){d0(e,t?.styles??[]),af(e);const n=t?.scripts??[],r=await Promise.allSettled(n.map(o=>c0(o)));return n.filter((o,s)=>r[s]?.status==="rejected")}const f0={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},p0={class:"flex w-full max-w-[400px] flex-col gap-6"},h0={class:"flex items-center justify-center gap-3"},m0={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},g0={class:"text-[22px] font-bold tracking-[-0.02em]"},v0={class:"flex flex-col gap-1.5"},y0={class:"font-semibold"},b0={class:"flex flex-col gap-1.5"},_0={class:"font-semibold"},x0=["aria-invalid"],w0={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},k0=["disabled"],C0=Z({__name:"LoginView",setup(e){const t=Ht(),n=Gr(),r=I(""),o=I(""),s=I(!1),i=I(!1);async function a(){if(!i.value){i.value=!0,s.value=!1;try{if(!await B1(r.value.trim(),o.value)||!await tf()){s.value=!0;return}o.value="",await Promise.all([cd(),dd().catch(()=>[])]),await n.replace(Af(t.query.redirect)??"/")}finally{i.value=!1}}}return(l,c)=>(g(),A("main",f0,[O("div",p0,[O("div",h0,[O("span",m0,[Y(h(Ui),{size:20,class:"text-accent","aria-hidden":"true"})]),c[2]||(c[2]=O("span",{class:"text-[18px] font-bold text-white"},[Ee("Summer"),O("span",{class:"text-accent"},"CMS")],-1))]),O("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:jt(a,["prevent"])},[O("h1",g0,q(h(U)("backend::lang.auth.title")),1),O("label",v0,[O("span",y0,q(h(U)("backend::lang.auth.login")),1),Gs(O("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),name:"login",type:"text",autocomplete:"username",required:"",class:"h-input rounded-control border border-[#d2d8e2] bg-white px-3.5"},null,512),[[sl,r.value]])]),O("label",b0,[O("span",_0,q(h(U)("backend::lang.auth.password")),1),Gs(O("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":s.value?"true":void 0,class:we([s.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,x0),[[sl,o.value]])]),s.value?(g(),A("div",w0,[Y(h(ur),{size:18,"aria-hidden":"true"}),O("span",null,q(h(U)("backend::lang.auth.invalid")),1)])):de("",!0),O("button",{type:"submit",disabled:i.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},q(h(U)("backend::lang.auth.submit")),9,k0)],32)])]))}}),S0=/^filter\[(.+)\]$/,E0=/^[1-9]\d*$/;function jn(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function nu(e){return E0.test(e)?Number(e):void 0}function A0(e){const t={},n=jn(e.search).trim();n!==""&&(t.search=n);const r=jn(e.sort).trim();if(r!==""){t.sort=r;const a=jn(e.dir);t.dir=a==="desc"?"desc":"asc"}const o=nu(jn(e.page));o!==void 0&&(t.page=o);const s=nu(jn(e.per_page));s!==void 0&&(t.per_page=s);const i={};for(const a of Object.keys(e).sort()){const l=S0.exec(a)?.[1],c=jn(e[a]);l&&c!==""&&(i[l]=c)}return Object.keys(i).length>0&&(t.filter=i),t}function uf(e){const t={};e.search&&(t.search=e.search),e.sort&&(t.sort=e.sort,t.dir=e.dir==="desc"?"desc":"asc"),e.page!==void 0&&e.page>1&&(t.page=String(e.page)),e.per_page!==void 0&&(t.per_page=String(e.per_page));for(const n of Object.keys(e.filter??{}).sort()){const r=e.filter?.[n];r!==void 0&&r!==""&&(t[`filter[${n}]`]=r)}return t}function $0(e){return JSON.stringify(uf(e))}const O0=/^\d+$/;function cf(e,t,n){const r=as(t),o=_n(t);if(!r||!o)return"/";const i=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(u=>u!==""),a=[r.vendor,r.plugin,r.controller];if(!a.every((u,d)=>i[d]?.toLowerCase()===u.toLowerCase()))return o;const c=i.slice(a.length);if(c.length===0)return o;if(c.length===1&&c[0]==="create")return`${o}/create`;if(c.length===2&&c[0]==="update"){const u=c[1]===":id"?String(n??""):c[1]??"";return O0.test(u)?`${o}/${u}`:o}return o}const P0={key:0,"data-switch":"true",class:"inline-flex h-6 items-center gap-1 rounded-pill bg-ok-bg px-2.5 text-[12px] font-semibold text-ok-text"},T0={key:1,"data-switch":"false",class:"inline-flex h-6 items-center rounded-pill border border-border-strong px-2.5 text-[12px] font-semibold text-muted"},R0={key:1,class:"text-muted","data-empty":""},M0={key:2,class:"text-[13px] text-muted tabular-nums"},zs=Z({__name:"CellValue",props:{column:{},value:{}},setup(e){const t=e;function n(c){return c==null||c===""}function r(c){return n(c)?"":Array.isArray(c)?c.map(r).filter(u=>u!=="").join(", "):typeof c=="boolean"?U(c?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof c=="object"?"":String(c)}function o(c){return String(c).padStart(2,"0")}function s(c){if(typeof c!="string"&&typeof c!="number")return"";const u=new Date(c);return Number.isNaN(u.getTime())?String(c):`${u.getFullYear()}-${o(u.getMonth()+1)}-${o(u.getDate())} ${o(u.getHours())}:${o(u.getMinutes())}`}function i(c){return typeof c=="string"?c!==""&&c!=="0"&&c.toLowerCase()!=="false":!!c}const a=E(()=>t.column.type==="switch"?"switch":t.column.type==="datetime"?"datetime":"text"),l=E(()=>a.value==="datetime"?s(t.value):r(t.value));return(c,u)=>a.value==="switch"&&!n(e.value)?(g(),A(me,{key:0},[i(e.value)?(g(),A("span",P0,[Y(h(Kc),{size:14,"aria-hidden":"true"}),Ee(q(h(U)("backend::lang.list.column_switch_true")),1)])):(g(),A("span",T0,q(h(U)("backend::lang.list.column_switch_false")),1))],64)):l.value===""?(g(),A("span",R0,"—")):a.value==="datetime"?(g(),A("span",M0,q(l.value),1)):(g(),A(me,{key:3},[Ee(q(l.value),1)],64))}}),I0={class:"overflow-x-auto"},D0={class:"sticky top-0 z-10"},q0={class:"h-row-head border-y border-border bg-subtle"},F0={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},B0=["aria-checked","aria-label","disabled"],N0=["aria-sort"],L0=["data-sort","onClick"],j0=["aria-busy"],V0={key:0,class:"pl-5"},z0={key:1},U0=["colspan"],H0={class:"text-muted"},W0=["aria-selected","onClick"],K0={key:0,"data-select":"",class:"pl-5"},G0=["aria-checked","aria-label","onClick"],Y0={key:0,class:"flex items-center gap-3"},X0={"data-avatar":"",class:"flex size-[30px] shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold text-text","aria-hidden":"true"},df=Z({__name:"DataTable",props:{columns:{},rows:{},loading:{type:Boolean,default:!1},rowLink:{type:Function,default:void 0},selectable:{type:Boolean,default:!1},selected:{default:()=>[]},sortable:{type:Boolean,default:!1},sort:{default:null},variant:{default:"list"}},emits:["update:selected","sort"],setup(e,{emit:t}){const n=e,r=t,o=Gr();function s(T){const $=T.id;return typeof $=="number"||typeof $=="string"?$:null}function i(T,$){const R=s(T);return R===null?`row-${$}`:String(R)}function a(T){return n.rowLink?n.rowLink(T):null}function l(T,$){if(T.target?.closest("a, button, input, label, select"))return;const oe=a($);oe&&o.push(oe)}const c=E(()=>n.rows.map(s).filter(T=>T!==null)),u=E(()=>new Set(n.selected.map(String))),d=E(()=>{const T=c.value,$=T.filter(R=>u.value.has(String(R))).length;return $===0?"false":$===T.length?"true":"mixed"});function f(T){const $=s(T);return $!==null&&u.value.has(String($))}function p(){r("update:selected",d.value==="true"?[]:[...c.value])}function m(T){const $=s(T);$!==null&&(u.value.has(String($))?r("update:selected",n.selected.filter(R=>String(R)!==String($))):r("update:selected",[...n.selected,$]))}function v(T){if(n.sort?.column===T.key)return n.sort.dir==="desc"?"descending":"ascending"}function b(T){return n.sortable&&T.sortable}const _=E(()=>n.variant==="relation"),w=E(()=>_.value?"h-[56px]":"h-row"),C=E(()=>_.value?3:8);function k(T){return(typeof T=="string"||typeof T=="number"?String(T):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(R=>R.charAt(0).toUpperCase()).join("")}function B(T,$){return $===0?"font-semibold":_.value||T.relation?"text-muted":""}const W=E(()=>Math.max(n.columns.length+(n.selectable?1:0),1)),D=["w-3/5","w-2/5","w-1/2","w-3/4","w-1/3","w-2/3","w-1/2","w-2/5"];return(T,$)=>(g(),A("div",I0,[O("table",{class:we([_.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[O("thead",D0,[O("tr",q0,[e.selectable?(g(),A("th",F0,[O("button",{type:"button",role:"checkbox","aria-checked":d.value,"aria-label":h(U)("backend::lang.list.select_all"),disabled:e.loading||c.value.length===0,class:we([d.value==="false"?"border-border-strong bg-surface":"border-primary bg-primary text-on-primary","flex size-[18px] items-center justify-center rounded-checkbox border disabled:opacity-60"]),onClick:p},[d.value==="mixed"?(g(),X(h(Xc),{key:0,size:14,"aria-hidden":"true"})):d.value==="true"?(g(),X(h(or),{key:1,size:14,"aria-hidden":"true"})):de("",!0)],10,B0)])):de("",!0),(g(!0),A(me,null,De(e.columns,R=>(g(),A("th",{key:R.key,scope:"col","aria-sort":b(R)?v(R)??"none":void 0,class:we([v(R)?"text-text":"text-muted","px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[b(R)?(g(),A("button",{key:0,type:"button","data-sort":R.key,class:"inline-flex items-center gap-1 font-semibold",onClick:oe=>r("sort",R.key)},[Ee(q(R.label)+" ",1),v(R)==="ascending"?(g(),X(h(Gc),{key:0,size:14,"aria-hidden":"true"})):v(R)==="descending"?(g(),X(h(Wc),{key:1,size:14,"aria-hidden":"true"})):de("",!0)],8,L0)):(g(),A(me,{key:1},[Ee(q(R.label),1)],64))],10,N0))),128))])]),O("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(g(!0),A(me,{key:0},De(C.value,R=>(g(),A("tr",{key:`skeleton-${R}`,"data-skeleton":"",class:we([w.value,"border-b border-border"])},[e.selectable?(g(),A("td",V0,[...$[0]||($[0]=[O("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):de("",!0),(g(!0),A(me,null,De(e.columns,oe=>(g(),A("td",{key:oe.key,class:"px-3.5 first:pl-5 last:pr-5"},[O("span",{class:we([D[(R-1)%D.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128))],2))),128)):e.rows.length===0?(g(),A("tr",z0,[O("td",{colspan:W.value,class:"px-5 py-20 text-center"},[be(T.$slots,"empty",{},()=>[O("span",H0,q(h(U)("backend::lang.list.no_records")),1)])],8,U0)])):(g(!0),A(me,{key:2},De(e.rows,(R,oe)=>(g(),A("tr",{key:i(R,oe),class:we([[w.value,f(R)?"bg-sel":a(R)?"hover:bg-hover":"",a(R)?"cursor-pointer":""],"border-b border-border transition-colors duration-150 ease-out"]),"aria-selected":e.selectable?f(R)?"true":"false":void 0,onClick:L=>l(L,R)},[e.selectable?(g(),A("td",K0,[O("button",{type:"button",role:"checkbox","aria-checked":f(R)?"true":"false","aria-label":h(U)("backend::lang.list.select_row"),class:we([f(R)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:L=>m(R)},[f(R)?(g(),X(h(or),{key:0,size:14,"aria-hidden":"true"})):de("",!0)],10,G0)])):de("",!0),(g(!0),A(me,null,De(e.columns,(L,ae)=>(g(),A("td",{key:L.key,class:we([B(L,ae),"px-3.5 first:pl-5 last:pr-5"])},[_.value&&ae===0?(g(),A("span",Y0,[O("span",X0,q(k(R[L.key])),1),Y(zs,{column:L,value:R[L.key]},null,8,["column","value"])])):ae===0&&a(R)?(g(),X(h(on),{key:1,to:a(R),class:"text-text no-underline"},{default:J(()=>[Y(zs,{column:L,value:R[L.key]},null,8,["column","value"])]),_:2},1032,["to"])):(g(),X(zs,{key:2,column:L,value:R[L.key]},null,8,["column","value"]))],2))),128))],10,W0))),128))],8,j0)],2)]))}}),J0=["aria-label"],Q0={key:0,class:"flex flex-col gap-1 text-[13px]"},Z0={class:"font-semibold text-muted"},ex=["data-filter","value","onChange"],tx=["value"],nx={key:1,class:"flex flex-col gap-1 text-[13px]"},rx={class:"mb-1 font-semibold text-muted"},ox={class:"flex items-center gap-2"},sx=["data-filter","aria-label","value","onChange"],ix=["data-filter","aria-label","value","onChange"],ax={key:2,class:"flex flex-col gap-1 text-[13px]"},lx={class:"font-semibold text-muted"},ux=["data-filter","value","onChange"],cx=["value"],_r="",so="h-button rounded-control border border-border-strong bg-surface px-3 text-text",dx=Z({__name:"FilterBar",props:{filters:{},values:{},source:{}},emits:["update"],setup(e,{emit:t}){const n=e,r=t;function o(d){if(d.options&&d.options.length>0)return d.options.map(p=>({value:JSON.stringify(p.value),label:p.label}));const f=[];return d.trueValue!==void 0&&f.push({value:JSON.stringify(d.trueValue),label:U("backend::lang.list.column_switch_true")}),d.falseValue!==void 0&&f.push({value:JSON.stringify(d.falseValue),label:U("backend::lang.list.column_switch_false")}),f}const s=I({});async function i(d){const{data:f}=await Me.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...n.source,scope:d.name}}});s.value={...s.value,[d.name]:f?.data??[]}}St(()=>{for(const d of n.filters)d.type==="scope"&&i(d)});const a=Dn({});function l(){for(const d of n.filters){if(d.type!=="daterange")continue;const[f="",p=""]=(n.values[d.name]??"").split(".."),m=a[d.name];(!m||n.values[d.name]!==void 0||m.from!==""&&m.to!=="")&&(a[d.name]={from:f,to:p})}}Le(()=>n.values,l,{immediate:!0,deep:!0});function c(d,f,p){const m={...a[d.name]??{from:"",to:""},[f]:p};a[d.name]=m,m.from!==""&&m.to!==""?r("update",d.name,`${m.from}..${m.to}`):(m.from===""&&m.to===""||n.values[d.name]!==void 0)&&r("update",d.name,null)}function u(d,f){r("update",d.name,f===_r?null:f)}return(d,f)=>(g(),A("div",{role:"group","aria-label":h(U)("backend::lang.list.filters"),"data-filter-bar":"",class:"flex flex-wrap items-end gap-4 border-t border-border px-5 py-3.5"},[(g(!0),A(me,null,De(e.filters,p=>(g(),A(me,{key:p.name},[p.type==="switch"?(g(),A("label",Q0,[O("span",Z0,q(p.label||p.name),1),O("select",{"data-filter":p.name,value:e.values[p.name]??_r,class:we(so),onChange:m=>u(p,m.target.value)},[O("option",{value:_r},q(h(U)("backend::lang.list.filter_all")),1),(g(!0),A(me,null,De(o(p),m=>(g(),A("option",{key:m.value,value:m.value},q(m.label),9,tx))),128))],40,ex)])):p.type==="daterange"?(g(),A("fieldset",nx,[O("legend",rx,q(p.label||p.name),1),O("div",ox,[O("input",{type:"date","data-filter":`${p.name}-from`,"aria-label":h(U)("backend::lang.list.filter_from"),value:a[p.name]?.from??"",class:we(so),onChange:m=>c(p,"from",m.target.value)},null,40,sx),f[0]||(f[0]=O("span",{"aria-hidden":"true"},"–",-1)),O("input",{type:"date","data-filter":`${p.name}-to`,"aria-label":h(U)("backend::lang.list.filter_to"),value:a[p.name]?.to??"",class:we(so),onChange:m=>c(p,"to",m.target.value)},null,40,ix)])])):p.type==="scope"?(g(),A("label",ax,[O("span",lx,q(p.label||p.name),1),(g(),A("select",{key:`${p.name}-${s.value[p.name]?.length??-1}`,"data-filter":p.name,value:e.values[p.name]??_r,class:we(so),onChange:m=>u(p,m.target.value)},[O("option",{value:_r},q(h(U)("backend::lang.list.filter_all")),1),(g(!0),A(me,null,De(s.value[p.name]??[],m=>(g(),A("option",{key:m.value,value:m.value},q(m.label),9,cx))),128))],40,ux))])):de("",!0)],64))),128))],8,J0))}}),fx=["type","disabled"],it=Z({__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=E(()=>["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(o,s)=>e.to!==void 0?(g(),X(h(on),{key:0,to:e.to,class:we(r.value)},{default:J(()=>[e.icon?(g(),X(yn(e.icon),{key:0,size:16,"aria-hidden":"true"})):de("",!0),be(o.$slots,"default")]),_:3},8,["to","class"])):(g(),A("button",{key:1,type:e.type,disabled:e.disabled,class:we(r.value)},[e.icon?(g(),X(yn(e.icon),{key:0,size:16,"aria-hidden":"true"})):de("",!0),be(o.$slots,"default")],10,fx))}}),px={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},hx={key:0,class:"relative block w-[320px] max-w-full"},mx={class:"sr-only"},gx=["value","placeholder"],vx={key:1},yx={class:"flex items-center gap-2.5"},bx={key:0,"data-selected-pill":"",class:"inline-flex h-8 items-center gap-1.5 rounded-pill bg-sel px-3 text-[13px] font-semibold"},_x=Z({__name:"ListToolbar",props:{showSearch:{type:Boolean},search:{},searchPrompt:{},buttons:{},selectedCount:{},selectedLabel:{},deleteLabel:{},actions:{default:()=>[]},busyAction:{default:null}},emits:["update:search","delete","action"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>new Map(n.actions.map(s=>[s.name,s.label])));return(s,i)=>(g(),A("div",px,[e.showSearch?(g(),A("label",hx,[O("span",mx,q(h(U)("backend::lang.list.search")),1),Y(h(rs),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),O("input",{type:"search","data-list-search":"",value:e.search,placeholder:e.searchPrompt,class:"h-button w-full rounded-control border border-transparent bg-subtle pr-3.5 pl-10",onInput:i[0]||(i[0]=a=>r("update:search",a.target.value))},null,40,gx)])):(g(),A("span",vx)),O("div",yx,[e.selectedCount>0?(g(),A("span",bx,[Y(h(or),{size:14,"aria-hidden":"true"}),Ee(q(e.selectedLabel),1)])):de("",!0),(g(!0),A(me,null,De(e.buttons,a=>(g(),A(me,{key:a},[a==="delete"?(g(),X(it,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:h(Hi),disabled:e.selectedCount===0,onClick:i[1]||(i[1]=l=>r("delete"))},{default:J(()=>[Ee(q(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):o.value.has(a)?(g(),X(it,{key:1,variant:"outline",size:"md","data-action":a,disabled:e.busyAction===a,"aria-busy":e.busyAction===a?"true":void 0,onClick:l=>r("action",a)},{default:J(()=>[Ee(q(o.value.get(a)),1)]),_:2},1032,["data-action","disabled","aria-busy","onClick"])):de("",!0)],64))),128))])]))}}),xx={class:"flex flex-wrap items-center gap-x-6 gap-y-3 border-t border-border px-5 py-3.5 text-[13px] text-muted"},wx={"data-range":""},kx={key:0,class:"flex items-center gap-2"},Cx=["value"],Sx=["value"],Ex=["aria-label"],Ax=["disabled"],$x={key:0,"aria-hidden":"true",class:"px-1"},Ox=["data-page","aria-current","onClick"],Px=["disabled"],Us="inline-flex h-pager min-w-pager items-center justify-center gap-1 rounded-pager border border-border px-2.5 text-[13px] text-text disabled:cursor-not-allowed disabled:opacity-60 hover:bg-hover",ff=Z({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.meta?.total??0),s=E(()=>n.meta?.page??1),i=E(()=>Math.max(n.meta?.last_page??1,1)),a=E(()=>{const u=n.meta;if(!u||u.total===0)return Yi("backend::lang.list.results",0);const d=(u.page-1)*u.per_page+1,f=Math.min(u.page*u.per_page,u.total);return U("backend::lang.list.pagination_range",{from:d,to:f,total:u.total})}),l=E(()=>{const u=i.value,d=s.value,f=new Set([1,u,d-1,d,d+1].filter(v=>v>=1&&v<=u));d<=3&&[2,3].forEach(v=>v<=u&&f.add(v)),d>=u-2&&[u-1,u-2].forEach(v=>v>=1&&f.add(v));const p=[...f].sort((v,b)=>v-b),m=[];return p.forEach((v,b)=>{const _=p[b-1];_!==void 0&&v-_>1&&m.push(null),m.push(v)}),m});function c(u){const d=Number(u.target.value);Number.isFinite(d)&&d>0&&r("perPage",d)}return(u,d)=>(g(),A("footer",xx,[O("span",wx,q(e.loading?h(U)("backend::lang.list.loading"):a.value),1),e.perPageOptions.length>1?(g(),A("label",kx,[O("span",null,q(h(U)("backend::lang.list.records_per_page")),1),O("select",{"data-per-page":"",value:String(e.perPage),class:"h-pager rounded-pager border border-border-strong bg-surface px-2 text-text",onChange:c},[(g(!0),A(me,null,De(e.perPageOptions,f=>(g(),A("option",{key:f,value:String(f)},q(f),9,Sx))),128))],40,Cx)])):de("",!0),!e.loading&&o.value>0?(g(),A("nav",{key:1,"aria-label":h(U)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[O("button",{type:"button","data-page":"prev",class:we(Us),disabled:s.value<=1,onClick:d[0]||(d[0]=f=>r("page",s.value-1))},[Y(h(zi),{size:14,"aria-hidden":"true"}),Ee(q(h(U)("backend::lang.list.prev_page")),1)],8,Ax),(g(!0),A(me,null,De(l.value,(f,p)=>(g(),A(me,{key:f??`gap-${p}`},[f===null?(g(),A("span",$x,"…")):(g(),A("button",{key:1,type:"button","data-page":f,"aria-current":f===s.value?"page":void 0,class:we([Us,f===s.value?"border-transparent bg-sel font-bold":""]),onClick:m=>f!==s.value&&r("page",f)},q(f),11,Ox))],64))),128)),O("button",{type:"button","data-page":"next",class:we(Us),disabled:s.value>=i.value,onClick:d[1]||(d[1]=f=>r("page",s.value+1))},[Ee(q(h(U)("backend::lang.list.next_page")),1),Y(h(ns),{size:14,"aria-hidden":"true"})],8,Px)],8,Ex)):de("",!0)]))}}),Tx={role:"alert","data-extension-failure":"",class:"flex min-h-input items-center rounded-control border-[1.5px] border-dashed border-border-strong bg-subtle px-3.5 py-2.5 text-[13px] text-muted"},Rx={class:"flex min-w-0 items-start gap-2.5"},Mx={class:"min-w-0 [overflow-wrap:anywhere]"},ha=Z({__name:"ExtensionFailure",props:{text:{}},setup(e){return(t,n)=>(g(),A("div",Tx,[O("span",Rx,[Y(h(ur),{size:16,class:"mt-0.5 shrink-0 text-danger","aria-hidden":"true"}),O("span",Mx,q(e.text),1)])]))}}),Ix=new Set(["div","span","p","strong","em","b","i","u","s","small","mark","code","pre","br","hr","ul","ol","li","dl","dt","dd","h2","h3","h4","h5","h6","table","thead","tbody","tfoot","tr","th","td","caption","section","header","footer","figure","figcaption","blockquote","q","abbr","time","data","meter","progress","sup","sub","a","img"]),Dx=new Set(["script","style","template","iframe","object","embed","noscript","textarea","title","xmp","svg","math","form","input","button","select","link","meta","base"]),qx=32,Fx=2e3,Bx=new Set(["class","title","lang","dir","role"]),Nx={a:new Set(["href"]),img:new Set(["src","alt","width","height"]),td:new Set(["colspan","rowspan","scope"]),th:new Set(["colspan","rowspan","scope"]),time:new Set(["datetime"]),data:new Set(["value"]),meter:new Set(["value","min","max","low","high","optimum"]),progress:new Set(["value","max"])},Lx=/^(aria|data)-[a-z0-9_-]+$/;function jx(e,t){if(e==="")return!1;for(const n of e){const r=n.codePointAt(0)??0;if(r<=32||r===127)return!1}return e.startsWith("#")?t:e.startsWith("/")?e.length===1||e[1]!=="/"&&e[1]!=="\\":!1}function Vx(e,t,n){return Bx.has(t)||Nx[e]?.has(t)===!0||Lx.test(t)?e==="a"&&t==="href"||e==="img"&&t==="src"?jx(n,e==="a"):!0:!1}function zx(e,t){const n={};for(const[r,o]of Object.entries(t??{})){const s=r.toLowerCase();typeof o=="string"&&Vx(e,s,o)&&(n[s]=o)}return n}function ki(e,t,n){const r=[];for(const o of e??[]){if(n.left<=0)break;if(o.tag===void 0||o.tag===""){typeof o.text=="string"&&o.text!==""&&(n.left-=1,r.push(o.text));continue}const s=o.tag.toLowerCase();if(Dx.has(s))continue;if(!Ix.has(s)){r.push(...ki(o.children,t,n));continue}if(t+1>qx)continue;n.left-=1;const i=ki(o.children,t+1,n);r.push(gt(s,zx(s,o.attrs),i.length>0?i:void 0))}return r}function Ux(e){return ki(e,0,{left:Fx})}const Hx={key:1,"data-partial-loading":"","aria-busy":"true"},Wx=["data-partial","aria-busy"],pf=Z({__name:"PartialHost",props:{source:{},name:{},recordId:{default:null},variant:{},reloadKey:{default:0}},setup(e){const t=e,n=I(null),r=I(!1),o=I(!1);let s=0;const i=l=>Ux(l.nodes);i.props=["nodes"];async function a(){const l=++s;o.value=!0;let c=null;try{c=(await Me.GET("/{vendor}/{plugin}/{controller}/partials/{name}",{params:{path:{...t.source,name:t.name},query:t.recordId!=null?{id:t.recordId}:void 0}})).data?.data.nodes??null}catch{c=null}l===s&&(o.value=!1,r.value=c===null,n.value=c)}return Le(()=>t.reloadKey,()=>{a()}),a(),(l,c)=>r.value?(g(),X(ha,{key:0,"data-partial-failed":"",text:h(U)("backend::lang.extension.partial_failed")},null,8,["text"])):n.value===null?(g(),A("div",Hx,[O("div",{"data-partial-skeleton":"",class:we([e.variant==="header"?"h-[80px] w-full rounded-card":"h-[44px] w-full rounded-control","bg-skel"]),"aria-hidden":"true"},null,2)])):n.value.length>0?(g(),A("div",{key:2,class:"summer-partial","data-partial":e.variant,"aria-busy":o.value?"true":void 0},[Y(i,{nodes:n.value},null,8,["nodes"])],8,Wx)):de("",!0)}}),Kx={class:"flex gap-2.5"},ma=Z({__name:"ConfirmDialog",props:{open:{type:Boolean},message:{},title:{default:void 0},confirmLabel:{default:void 0},cancelLabel:{default:void 0},danger:{type:Boolean,default:!1}},emits:["update:open","confirm","cancel"],setup(e,{emit:t}){const n=t;function r(s){n("update:open",s),s||n("cancel")}function o(){n("confirm"),n("update:open",!1)}return(s,i)=>(g(),X(h(Nb),{open:e.open,"onUpdate:open":r},{default:J(()=>[Y(h(Fb),null,{default:J(()=>[Y(h(Db),{class:"fixed inset-0 z-40 bg-overlay"}),Y(h(Ob),{"data-confirm-dialog":"",class:"fixed top-1/2 left-1/2 z-50 flex w-[calc(100%-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-modal bg-surface p-6 text-text shadow-pop"},{default:J(()=>[Y(h(jb),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:J(()=>[Ee(q(e.title??h(U)("backend::lang.form.confirm")),1)]),_:1}),Y(h(Mb),{class:"text-muted"},{default:J(()=>[Ee(q(e.message),1)]),_:1}),O("div",Kx,[Y(h(Tb),{"data-action":"cancel",class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover"},{default:J(()=>[Ee(q(e.cancelLabel??h(U)("backend::lang.form.cancel")),1)]),_:1}),O("button",{type:"button","data-action":"confirm",class:we([e.danger?"bg-danger text-white":"bg-primary text-on-primary","inline-flex h-button flex-1 items-center justify-center rounded-control font-semibold hover:opacity-90"]),onClick:o},q(e.confirmLabel??h(U)("backend::lang.form.confirm")),3)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function ga(){const e=I(null);let t=null;function n(o){const s=t;t=null,e.value=null,s?.(o)}function r(o){return n(!1),e.value=o,new Promise(s=>{t=s})}return{request:e,ask:r,confirm:()=>n(!0),cancel:()=>n(!1)}}const Gx={class:"flex flex-col gap-5"},Yx={class:"flex flex-wrap items-end justify-between gap-4"},Xx={class:"flex flex-col"},Jx={class:"text-[26px] font-bold tracking-[-0.02em]"},Qx={key:0,"data-record-count":"",class:"text-muted"},Zx={key:0,class:"flex items-center gap-2.5"},ew={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},tw={key:2,role:"alert",class:"border-t border-border px-5 py-4 text-danger"},nw={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},rw={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},ow={class:"text-[17px] font-bold"},sw={class:"max-w-[420px] text-muted"},iw={key:1,"data-empty-list":"",class:"text-muted"},aw=300,lw=Z({__name:"ListView",setup(e){const t=Ht(),n=Gr(),r={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},o=Xi(r),s=_n(o)??"/",i=I(null),a=I([]),l=I(null),c=I(!0),u=I(!1),d=I(!1),f=E(()=>u.value||d.value),p=I([]),m=I(!1),v=I(0),b=ga(),_=E(()=>A0(t.query)),w=I(_.value.search??""),C=E(()=>i.value?.messages),k=E(()=>i.value?.title?i.value.title:ls(r.vendor,r.plugin)?.sideMenu.find(K=>K.controller===o)?.label??o),B=E(()=>l.value?Be(C.value?.recordCount,l.value.total):""),W=E(()=>i.value?.toolbarButtons??[]),D=E(()=>W.value.filter(V=>V==="create")),T=E(()=>i.value?.toolbarActions??[]),$=E(()=>W.value.filter(V=>V==="delete"||T.value.some(K=>K.name===V))),R=I(null),oe=E(()=>{const V=i.value?.perPageOptions??[];return V.length>0?V:[i.value?.recordsPerPage||20]}),L=E(()=>_.value.per_page??l.value?.per_page??i.value?.recordsPerPage??20),ae=E(()=>_.value.sort?{column:_.value.sort,dir:_.value.dir==="desc"?"desc":"asc"}:null);function ye(V){const K=i.value?.recordUrl,ie=V.id;return!K||typeof ie!="number"&&typeof ie!="string"?null:cf(K,o,ie)}function F(V){n.replace({path:t.path,query:uf(V)})}let re=0;async function ne(){const V=++re;c.value=!0,d.value=!1;const K=await Me.GET("/{vendor}/{plugin}/{controller}",{params:{path:r,query:_.value}});V===re&&(a.value=K.data?.data??[],l.value=K.data?.meta??null,d.value=!K.data,c.value=!1)}async function ce(){const V=await Me.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:r}});i.value=V.data?.data??null,u.value=!i.value,i.value&&lf(o,i.value.assets)}ce(),Le(()=>$0(_.value),()=>{p.value=[],w.value=_.value.search??"",ne()},{immediate:!0});let M=null;function N(V){w.value=V,M!==null&&clearTimeout(M),M=setTimeout(()=>{M=null;const K=V.trim();F({..._.value,search:K===""?void 0:K,page:void 0})},aw)}yt(()=>{M!==null&&clearTimeout(M)});function Q(){w.value="",F({..._.value,search:void 0,page:void 0})}function pe(V){const K=ae.value;K?.column!==V?F({..._.value,sort:V,dir:"asc",page:void 0}):K.dir==="asc"?F({..._.value,sort:V,dir:"desc",page:void 0}):F({..._.value,sort:void 0,dir:void 0,page:void 0})}function ke(V){F({..._.value,page:V})}function Se(V){F({..._.value,per_page:V,page:void 0})}function le(V,K){const ie={..._.value.filter??{}};K===null?delete ie[V]:ie[V]=K,F({..._.value,filter:ie,page:void 0})}async function fe(){const V=p.value.map(Number).filter(ie=>Number.isInteger(ie)&&ie>0);if(!(V.length===0||m.value||!await b.ask({message:Be(C.value?.deleteConfirm,V.length),confirmLabel:U("backend::lang.form.delete"),danger:!0}))){m.value=!0;try{const ie=await Me.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:r},body:{ids:V}});if(ie.data){Ue(Be(C.value?.deleted,ie.data.data.deleted)),p.value=[],await ne(),v.value+=1;return}Ue(ie.error?.error.message||U("backend::lang.list.delete_failed"),"danger")}catch{Ue(U("backend::lang.list.delete_failed"),"danger")}finally{m.value=!1}}}async function P(V){if(R.value===null){R.value=V;try{const K=await Me.POST("/{vendor}/{plugin}/{controller}/toolbar/{action}",{params:{path:{...r,action:V}},body:{}});if(K.data){K.data.data.message&&Ue(K.data.data.message),await ne(),v.value+=1;return}Ue(K.error?.error.message||U("backend::lang.extension.action_failed"),"danger")}catch{Ue(U("backend::lang.extension.action_failed"),"danger")}finally{R.value=null}}}return(V,K)=>(g(),A("section",Gx,[O("header",Yx,[O("div",Xx,[O("h1",Jx,q(k.value),1),B.value?(g(),A("p",Qx,q(B.value),1)):de("",!0)]),D.value.length>0?(g(),A("div",Zx,[(g(!0),A(me,null,De(D.value,ie=>(g(),X(it,{key:ie,"data-action":"create",variant:"primary",icon:h(Zc),to:`${h(s)}/create`},{default:J(()=>[Ee(q(h(Be)(C.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):de("",!0)]),i.value?.headerPartial?(g(),X(pf,{key:0,variant:"header",source:r,name:i.value.headerPartial,"reload-key":v.value},null,8,["name","reload-key"])):de("",!0),O("div",ew,[i.value?(g(),X(_x,{key:0,"show-search":i.value.showSearch,search:w.value,"search-prompt":h(Be)(C.value?.searchPrompt),buttons:$.value,"selected-count":p.value.length,"selected-label":h(Be)(C.value?.selected,p.value.length),"delete-label":h(Be)(C.value?.deleteSelected,p.value.length),actions:T.value,"busy-action":R.value,"onUpdate:search":N,onDelete:fe,onAction:P},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label","actions","busy-action"])):de("",!0),i.value&&i.value.filters.length>0?(g(),X(dx,{key:1,filters:i.value.filters,values:_.value.filter??{},source:r,onUpdate:le},null,8,["filters","values"])):de("",!0),f.value&&!c.value?(g(),A("p",tw,q(h(U)("backend::lang.list.load_failed")),1)):(g(),X(df,{key:3,columns:i.value?.columns??[],rows:a.value,loading:c.value||!i.value,"row-link":ye,selectable:i.value?.showCheckboxes??!1,selected:p.value,sortable:i.value?.showSorting??!1,sort:ae.value,"onUpdate:selected":K[0]||(K[0]=ie=>p.value=ie),onSort:pe},{empty:J(()=>[_.value.search?(g(),A("div",nw,[O("span",rw,[Y(h(td),{size:24,"aria-hidden":"true"})]),O("p",ow,q(h(Be)(C.value?.emptySearch,void 0,{term:_.value.search})),1),O("p",sw,q(h(Be)(C.value?.emptySearchHint,void 0,{term:_.value.search})),1),Y(it,{"data-action":"clear-search",onClick:Q},{default:J(()=>[Ee(q(h(U)("backend::lang.list.clear_search")),1)]),_:1})])):(g(),A("p",iw,q(h(Be)(C.value?.empty)||i.value?.noRecordsMessage||h(U)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort"])),Y(ff,{meta:l.value,loading:c.value||!i.value,"per-page-options":oe.value,"per-page":L.value,onPage:ke,onPerPage:Se},null,8,["meta","loading","per-page-options","per-page"])]),Y(ma,{open:h(b).request.value!==null,message:h(b).request.value?.message??"","confirm-label":h(b).request.value?.confirmLabel,danger:h(b).request.value?.danger,onConfirm:h(b).confirm,onCancel:h(b).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])]))}}),uw={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"},cw={class:"flex flex-col gap-1"},hf=Z({__name:"FormErrorBanner",props:{errors:{},fieldNames:{}},setup(e){const t=e,n=E(()=>Object.keys(t.errors).length),r=E(()=>Object.entries(t.errors).filter(([o])=>!t.fieldNames.includes(o)).flatMap(([,o])=>o));return(o,s)=>n.value>0?(g(),A("div",uw,[Y(h(ur),{size:20,class:"mt-px shrink-0","aria-hidden":"true"}),O("div",cw,[O("p",null,[O("strong",null,q(h(U)("backend::lang.form.error_title")),1),Ee(" "+q(h(Yi)("backend::lang.form.error_fields",n.value)),1)]),(g(!0),A(me,null,De(r.value,(i,a)=>(g(),A("p",{key:a,class:"text-[13px]"},q(i),1))),128))])])):de("",!0)}}),dw=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function va(e){const t={};for(const[n,r]of Object.entries(e.attributes??{})){const o=n.toLowerCase();!dw.has(o)||r===null||r===!1||(t[o]=r)}return t}function vs(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(" ")}function mf(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function gf(e,t){return typeof e=="number"?t?1:0:t}const fw={class:"flex min-w-0 flex-col"},pw=["for"],hw={key:0,class:"text-danger","aria-hidden":"true"},mw=["id"],gw=["id","name","checked","aria-invalid","aria-describedby"],vw=Z({__name:"CheckboxField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>mf(n.modelValue));function s(i){r("update:modelValue",gf(n.modelValue,i.target.checked))}return(i,a)=>(g(),A("div",{class:we([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[O("div",fw,[O("label",{for:e.controlId,class:"font-semibold"},[Ee(q(e.field.label||e.field.name),1),e.field.required?(g(),A("span",hw," *")):de("",!0)],8,pw),e.field.comment?(g(),A("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},q(e.field.comment),9,mw)):de("",!0)]),O("input",{id:e.controlId,type:"checkbox",name:e.field.name,checked:o.value,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"size-5 shrink-0 rounded-[6px] accent-primary",onChange:s},null,40,gw)],2))}}),yw={class:"relative"},bw=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],_w=["value"],io="empty",ao="placeholder",xw=Z({__name:"DropdownField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.field.options??[]);function s(c,u){return c==null||u===null||u===void 0?c===u||c==null&&u==null:String(c)===String(u)}const i=E(()=>{const c=o.value.findIndex(u=>s(u.value,n.modelValue));return c>=0?String(c):n.field.emptyOption!==void 0&&(n.modelValue===null||n.modelValue===void 0||n.modelValue==="")?io:ao}),a=E(()=>i.value===io||i.value===ao);function l(c){const u=c.target.value;if(u===io){r("update:modelValue",null);return}const d=o.value[Number(u)];d&&r("update:modelValue",d.value)}return(c,u)=>(g(),A("div",yw,[O("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:we([[h(vs)(e.invalid),a.value?"text-muted":""],"h-input appearance-none pr-10"]),onChange:l},[e.field.emptyOption!==void 0?(g(),A("option",{key:0,value:io,class:"text-muted"},q(e.field.emptyOption),1)):de("",!0),i.value===ao?(g(),A("option",{key:1,value:ao,disabled:""},q(h(U)("backend::lang.form.select_placeholder")),1)):de("",!0),(g(!0),A(me,null,De(o.value,(d,f)=>(g(),A("option",{key:f,value:String(f),class:"text-text"},q(d.label),9,_w))),128))],42,bw),Y(h(ts),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]))}}),ww=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],kw=Z({__name:"NumberField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),s=E(()=>va(n.field));function i(a){const l=a.target.value.trim();if(l===""){r("update:modelValue",null);return}const c=Number(l);r("update:modelValue",Number.isFinite(c)?c:null)}return(a,l)=>(g(),A("input",ze({id:e.controlId},s.value,{name:e.field.name,type:"number",inputmode:"decimal",value:o.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:[h(vs)(e.invalid),"h-input tabular-nums"],onInput:i}),null,16,ww))}}),Cw=["id","aria-labelledby","aria-describedby"],Sw=Z({__name:"PartialField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e;return(n,r)=>(g(),A("div",{id:e.controlId,role:"group","data-partial-field":"","aria-labelledby":t.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0},[e.source?(g(),X(pf,{key:0,variant:"field",source:e.source,name:t.field.path||t.field.name,"record-id":e.recordId??null},null,8,["source","name","record-id"])):(g(),X(ha,{key:1,"data-partial-failed":"",text:h(U)("backend::lang.extension.partial_failed")},null,8,["text"]))],8,Cw))}}),Ew={class:"flex items-start gap-3"},Aw={class:"flex min-w-0 flex-1 flex-col gap-1"},$w={class:"relative block"},Ow={class:"sr-only"},Pw=["value","placeholder"],Tw=["aria-label","aria-busy"],Rw=["data-candidate","aria-selected","onClick","onKeydown"],Mw={class:"flex size-8 shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold","aria-hidden":"true"},Iw={class:"flex min-w-0 flex-1 flex-col leading-tight"},Dw={class:"truncate font-semibold"},qw={key:0,class:"truncate text-[13px] text-muted"},Fw={key:0,role:"presentation",class:"px-1 py-3 text-[13px] text-muted"},Bw={key:1,role:"presentation","data-candidates-empty":"",class:"px-1 py-3 text-[13px] text-muted"},Nw=["aria-label"],Lw={"data-candidates-range":"",class:"flex-1"},jw=["aria-label","disabled"],Vw=["aria-label","disabled"],zw={class:"flex gap-2.5"},Uw=["disabled"],Hw=5,Ww=300,ru="inline-flex size-[34px] items-center justify-center rounded-tab border border-border text-text hover:bg-hover disabled:cursor-not-allowed disabled:opacity-60",Kw=Z({__name:"RelationPickerModal",props:{open:{type:Boolean},source:{},recordId:{},relation:{},schema:{}},emits:["update:open","linked","closed"],setup(e,{emit:t}){const n=e,r=t,o=I(""),s=I(1),i=I([]),a=I(null),l=I(!1),c=I(!1),u=I(new Set),d=I(null);let f=0,p=null;const m=E(()=>n.schema.manage.list.columns),v=E(()=>m.value[0]?.key??""),b=E(()=>m.value[1]?.key??""),_=E(()=>u.value.size),w=`relation-${n.relation}-candidates`,C=E(()=>{const M=a.value;if(!M||M.total===0)return"";const N=(M.page-1)*M.per_page+1,Q=Math.min(M.page*M.per_page,M.total);return U("backend::lang.relation.candidates_range",{from:N,to:Q,total:M.total})}),k=E(()=>Math.max(a.value?.last_page??1,1));function B(M){const N=M.id;return typeof N=="number"&&Number.isInteger(N)?N:typeof N=="string"&&/^\d+$/.test(N)?Number(N):null}function W(M,N){const Q=N===""?void 0:M[N];return typeof Q=="string"||typeof Q=="number"?String(Q):""}function D(M){return M.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(N=>N.charAt(0).toUpperCase()).join("")}async function T(){const M=++f;l.value=!0;try{const N=o.value.trim(),{data:Q}=await Me.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/candidates",{params:{path:{...n.source,id:n.recordId,name:n.relation},query:{search:N===""?void 0:N,page:s.value,per_page:Hw}}});if(M!==f)return;i.value=Q?.data??[],a.value=Q?.meta??null}catch{M===f&&(i.value=[],a.value=null)}finally{M===f&&(l.value=!1)}}function $(){p!==null&&(clearTimeout(p),p=null),f++,o.value="",s.value=1,i.value=[],a.value=null,l.value=!1,u.value=new Set}Le(()=>n.open,M=>{M?($(),T()):$()},{immediate:!0});function R(M){o.value=M.target.value,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,s.value=1,T()},Ww)}function oe(M){M<1||M>k.value||M===s.value||(s.value=M,T())}function L(M){const N=B(M);return N!==null&&u.value.has(N)}function ae(M){const N=B(M);if(N===null)return;const Q=new Set(u.value);Q.has(N)?Q.delete(N):Q.add(N),u.value=Q}function ye(M,N,Q){switch(M.key){case" ":case"Enter":M.preventDefault(),ae(N);break;case"ArrowDown":case"ArrowUp":{M.preventDefault();const pe=M.currentTarget.parentElement?.querySelectorAll('[role="option"]'),ke=M.key==="ArrowDown"?1:-1;pe?.[Math.min(Math.max(Q+ke,0),pe.length-1)]?.focus();break}}}function F(M){r("update:open",M)}async function re(){const M=[...u.value];if(!(c.value||M.length===0)){c.value=!0;try{const N=await Me.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/link",{params:{path:{...n.source,id:n.recordId,name:n.relation}},body:{ids:M}});if(N.data){F(!1),r("linked",N.data.data.linked??M.length);return}Ue(N.error?.error.message||U("backend::lang.form.error_generic"),"danger")}catch{Ue(U("backend::lang.form.error_generic"),"danger")}finally{c.value=!1}}}function ne(M){M.preventDefault(),d.value?.focus()}function ce(M){M.preventDefault(),r("closed")}return yt(()=>{p!==null&&clearTimeout(p)}),(M,N)=>(g(),X(h(Cd),{open:e.open,"onUpdate:open":F},{default:J(()=>[Y(h(Cb),null,{default:J(()=>[Y(h(Id),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),Y(h(Rd),{"data-relation-picker":"","data-dialog-content":"","aria-modal":"true",class:"fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100vh-32px)] w-[calc(100%-32px)] max-w-[560px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-modal bg-surface p-6 text-text shadow-pop",onOpenAutoFocus:ne,onCloseAutoFocus:ce},{default:J(()=>[O("div",Ew,[O("div",Aw,[Y(h(Dd),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:J(()=>[Ee(q(h(Be)(e.schema.messages.link)),1)]),_:1}),Y(h(Md),{class:"text-muted"},{default:J(()=>[Ee(q(h(Be)(e.schema.messages.linkHint)),1)]),_:1})]),Y(h(mi),{"data-action":"close","aria-label":h(U)("backend::lang.form.close"),class:"flex size-[34px] shrink-0 items-center justify-center rounded-tab bg-subtle text-muted hover:bg-hover hover:text-text"},{default:J(()=>[Y(h(os),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),O("label",$w,[O("span",Ow,q(h(U)("backend::lang.list.search")),1),Y(h(rs),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),O("input",{ref_key:"searchInput",ref:d,type:"search","data-candidate-search":"",value:o.value,placeholder:h(Be)(e.schema.messages.candidateSearch),"aria-controls":w,class:"h-input w-full rounded-control border border-border-strong bg-surface pr-3.5 pl-10",onInput:R},null,40,Pw)]),O("ul",{id:w,role:"listbox","aria-multiselectable":"true","aria-label":h(Be)(e.schema.messages.link),"aria-busy":l.value?"true":void 0,class:"flex min-h-0 flex-col gap-2 overflow-y-auto"},[(g(!0),A(me,null,De(i.value,(Q,pe)=>(g(),A("li",{key:B(Q)??`row-${pe}`,role:"option",tabindex:"0","data-candidate":B(Q)??void 0,"aria-selected":L(Q)?"true":"false",class:we([L(Q)?"border-[#e0b020] bg-sel":"border-border hover:bg-hover","flex h-[54px] cursor-pointer items-center gap-3 rounded-inner border px-3 transition-colors duration-150 ease-out"]),onClick:ke=>ae(Q),onKeydown:ke=>ye(ke,Q,pe)},[O("span",Mw,q(D(W(Q,v.value))),1),O("span",Iw,[O("span",Dw,q(W(Q,v.value)),1),b.value?(g(),A("span",qw,q(W(Q,b.value)),1)):de("",!0)]),O("span",{class:we([L(Q)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] shrink-0 items-center justify-center rounded-checkbox border"]),"aria-hidden":"true"},[L(Q)?(g(),X(h(or),{key:0,size:14})):de("",!0)],2)],42,Rw))),128)),l.value&&i.value.length===0?(g(),A("li",Fw,q(h(U)("backend::lang.list.loading")),1)):!l.value&&i.value.length===0?(g(),A("li",Bw,q(h(U)("backend::lang.relation.no_candidates")),1)):de("",!0)],8,Tw),a.value&&a.value.total>0?(g(),A("nav",{key:0,"aria-label":h(U)("backend::lang.list.pagination"),class:"flex items-center gap-2 text-[13px] text-muted"},[O("span",Lw,q(C.value),1),O("button",{type:"button","data-page":"prev","aria-label":h(U)("backend::lang.list.prev_page"),class:we(ru),disabled:l.value||s.value<=1,onClick:N[0]||(N[0]=Q=>oe(s.value-1))},[Y(h(zi),{size:16,"aria-hidden":"true"})],8,jw),O("button",{type:"button","data-page":"next","aria-label":h(U)("backend::lang.list.next_page"),class:we(ru),disabled:l.value||s.value>=k.value,onClick:N[1]||(N[1]=Q=>oe(s.value+1))},[Y(h(ns),{size:16,"aria-hidden":"true"})],8,Vw)],8,Nw)):de("",!0),O("div",zw,[Y(h(mi),{"data-action":"cancel",class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover"},{default:J(()=>[Ee(q(h(U)("backend::lang.form.cancel")),1)]),_:1}),O("button",{type:"button","data-action":"confirm-link",disabled:c.value||_.value===0,class:"inline-flex h-button flex-1 items-center justify-center rounded-control bg-primary font-semibold text-on-primary hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",onClick:re},q(h(U)("backend::lang.relation.add_count",{count:_.value})),9,Uw)])]),_:1})]),_:1})]),_:1},8,["open"]))}}),Gw=["id","data-relation-name","aria-labelledby","aria-describedby"],Yw={class:"flex flex-wrap items-center gap-3"},Xw={class:"flex min-w-0 flex-1 flex-col"},Jw=["id"],Qw=["id"],Zw={key:0,class:"relative block w-[220px] max-w-full"},ek={class:"sr-only"},tk=["value","placeholder"],nk={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},rk={key:1,class:"overflow-hidden rounded-inner border border-border"},ok={"data-relation-empty":"",class:"text-muted"},sk=300,ik=Z({__name:"RelationManager",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=E(()=>t.field.relation||t.field.name),r=E(()=>t.source!=null&&typeof t.recordId=="number"),o=I(null),s=I([]),i=I(null),a=I(!0),l=I(!1),c=I(""),u=I(1),d=I(null),f=I([]),p=I(!1),m=I(!1);let v=null;const b=ga();let _=0,w=null;const C=E(()=>o.value?.view.list.columns??[]),k=E(()=>o.value?.view.toolbarButtons??[]),B=E(()=>o.value?.messages),W=E(()=>`${t.controlId}-heading`),D=E(()=>`${t.controlId}-comment`);function T(){return{...t.source,id:t.recordId,name:n.value}}async function $(){const{data:N}=await Me.GET("/{vendor}/{plugin}/{controller}/schema/relation/{name}",{params:{path:{...t.source,name:n.value}}});o.value=N?.data??null}async function R(){const N=++_;a.value=!0,l.value=!1;try{const Q=c.value.trim(),pe={page:u.value};Q!==""&&(pe.search=Q),d.value&&(pe.sort=d.value.column,pe.dir=d.value.dir);const{data:ke}=await Me.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}",{params:{path:T(),query:pe}});if(N!==_)return;s.value=ke?.data??[],i.value=ke?.meta??null,l.value=!ke}catch{N===_&&(s.value=[],i.value=null,l.value=!0)}finally{N===_&&(a.value=!1)}}async function oe(){if(r.value){try{await $()}catch{o.value=null}if(!o.value){a.value=!1,l.value=!0;return}await R()}}function L(N){c.value=N.target.value,w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,u.value=1,f.value=[],R()},sk)}function ae(N){u.value=N,f.value=[],R()}function ye(N){const Q=d.value;Q?.column!==N?d.value={column:N,dir:"asc"}:Q.dir==="asc"?d.value={column:N,dir:"desc"}:d.value=null,u.value=1,f.value=[],R()}function F(){return f.value.map(Number).filter(N=>Number.isInteger(N)&&N>0)}async function re(){const N=F();if(!(p.value||N.length===0||!o.value||!await b.ask({message:Be(B.value?.unlinkConfirm,N.length),confirmLabel:Be(B.value?.unlinkSelected),danger:!0}))){p.value=!0;try{const pe=await Me.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/unlink",{params:{path:T()},body:{ids:N}});if(pe.data){f.value=[],Ue(Be(B.value?.unlinked,pe.data.data.removed??N.length)),await R();return}Ue(pe.error?.error.message||U("backend::lang.form.error_generic"),"danger")}catch{Ue(U("backend::lang.form.error_generic"),"danger")}finally{p.value=!1}}}async function ne(N){Ue(Be(B.value?.linked,N)),f.value=[],await R()}function ce(){v?.focus()}function M(N){const Q=N?.$el;v=Q instanceof HTMLElement?Q:null}return yt(()=>{w!==null&&clearTimeout(w)}),oe(),(N,Q)=>r.value?(g(),A("section",{key:0,id:e.controlId,"data-relation-manager":"","data-relation-name":n.value,"aria-labelledby":W.value,"aria-describedby":e.field.comment?D.value:void 0,tabindex:"-1",class:"flex flex-col gap-4"},[O("header",Yw,[O("div",Xw,[O("h2",{id:W.value,class:"text-[17px] font-bold tracking-[-0.01em]"},q(o.value?.label||e.field.label||n.value),9,Jw),e.field.comment?(g(),A("p",{key:0,id:D.value,class:"text-[13px] text-muted"},q(e.field.comment),9,Qw)):de("",!0)]),o.value?.view.showSearch?(g(),A("label",Zw,[O("span",ek,q(h(U)("backend::lang.list.search")),1),Y(h(rs),{size:16,class:"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted","aria-hidden":"true"}),O("input",{type:"search","data-relation-search":"",value:c.value,placeholder:h(U)("backend::lang.list.search_prompt"),class:"h-[38px] w-full rounded-control border border-transparent bg-subtle pr-3 pl-9",onInput:L,onKeydown:Q[0]||(Q[0]=Rc(jt(()=>{},["prevent"]),["enter"]))},null,40,tk)])):de("",!0),(g(!0),A(me,null,De(k.value,pe=>(g(),A(me,{key:pe},[pe==="unlink"?(g(),X(it,{key:0,"data-action":"unlink",size:"sm",variant:"danger",icon:h(rd),disabled:p.value||f.value.length===0,onClick:re},{default:J(()=>[Ee(q(h(Be)(B.value?.unlinkSelected)),1)]),_:1},8,["icon","disabled"])):pe==="link"?(g(),X(it,{key:1,ref_for:!0,ref:M,"data-action":"link",size:"sm",variant:"primary",icon:h(od),disabled:p.value||!o.value,"aria-haspopup":"dialog",onClick:Q[1]||(Q[1]=ke=>m.value=!0)},{default:J(()=>[Ee(q(h(Be)(B.value?.link)),1)]),_:1},8,["icon","disabled"])):de("",!0)],64))),128))]),l.value&&!a.value?(g(),A("p",nk,q(h(U)("backend::lang.relation.load_failed")),1)):(g(),A("div",rk,[Y(df,{selected:f.value,"onUpdate:selected":Q[2]||(Q[2]=pe=>f.value=pe),variant:"relation",columns:C.value,rows:s.value,loading:a.value,selectable:k.value.includes("unlink"),sortable:!0,sort:d.value,onSort:ye},{empty:J(()=>[O("span",ok,q(h(Be)(B.value?.empty)),1)]),_:1},8,["selected","columns","rows","loading","selectable","sort"]),i.value&&i.value.last_page>1?(g(),X(ff,{key:0,meta:i.value,loading:a.value,"per-page-options":[],"per-page":i.value.per_page,onPage:ae},null,8,["meta","loading","per-page"])):de("",!0)])),o.value&&k.value.includes("link")?(g(),X(Kw,{key:2,open:m.value,"onUpdate:open":Q[3]||(Q[3]=pe=>m.value=pe),source:e.source,"record-id":e.recordId,relation:n.value,schema:o.value,onLinked:ne,onClosed:ce},null,8,["open","source","record-id","relation","schema"])):de("",!0),Y(ma,{open:h(b).request.value!==null,message:h(b).request.value?.message??"","confirm-label":h(b).request.value?.confirmLabel,danger:h(b).request.value?.danger,onConfirm:h(b).confirm,onCancel:h(b).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])],8,Gw)):de("",!0)}}),ak=["id","aria-describedby"],lk=["data-relation"],uk={class:"flex size-[22px] items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},ck={class:"font-semibold"},dk=["aria-label","onClick"],fk=["id","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby","value","placeholder"],pk={key:1,class:"relative"},hk=["id","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby","value","placeholder"],mk=["id"],gk=["id","data-value","aria-selected","onMousedown"],vk={key:0,role:"presentation",class:"px-3 py-2 text-[13px] text-muted"},yk={key:1,role:"presentation",class:"px-3 py-2 text-[13px] text-muted"},bk={key:2,role:"presentation",class:"p-1"},_k=20,xk=300,wk=Z({__name:"RelationField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.field.readOnly?"readonly":n.field.multiple?"multiple":"single"),s=E(()=>`${n.controlId}-listbox`),i=I({});Le(()=>n.labels,M=>{const N={...i.value};for(const Q of M??[])N[Q.value]=Q.label;i.value=N},{immediate:!0});function a(M){return typeof M=="number"&&Number.isInteger(M)?M:typeof M=="string"&&/^\d+$/.test(M)?Number(M):null}const l=E(()=>a(n.modelValue)),c=E(()=>Array.isArray(n.modelValue)?n.modelValue.map(a).filter(M=>M!==null):[]);function u(M){return i.value[M]??String(M)}function d(M){return M.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(N=>N.charAt(0).toUpperCase()).join("")}const f=E(()=>{const M=n.labels?.[0]?.label;return M||(n.field.emptyOption??"—")}),p=I(!1),m=I(""),v=I([]),b=I(0),_=I(0),w=I(!1),C=I(-1);let k=0,B=null;const W=E(()=>b.value<_.value);async function D(M,N){const Q=n.source;if(!Q){v.value=[];return}const pe=++k;w.value=!0;try{const ke=m.value.trim(),{data:Se}=await Me.GET("/{vendor}/{plugin}/{controller}/fields/{field}/options",{params:{path:{...Q,field:n.field.name},query:{search:ke===""?void 0:ke,page:M,per_page:_k}}});if(pe!==k)return;const le=Se?.data??[],fe={...i.value};for(const P of le)fe[P.value]=P.label;i.value=fe,v.value=N?[...v.value,...le]:le,b.value=Se?.meta.page??M,_.value=Se?.meta.last_page??M}catch{pe===k&&!N&&(v.value=[])}finally{pe===k&&(w.value=!1)}}const T=E(()=>{const M=[];o.value==="single"&&n.field.emptyOption!==void 0&&M.push({key:"empty",label:n.field.emptyOption,value:null,muted:!0});const N=new Set(c.value);for(const Q of v.value)o.value==="multiple"&&N.has(Q.value)||M.push({key:`option-${Q.value}`,label:Q.label,value:Q.value,muted:!1});return M});function $(M){return`${s.value}-${M}`}function R(){p.value||(p.value=!0,C.value=-1,D(1,!1))}function oe(){p.value=!1,m.value="",C.value=-1,B!==null&&(clearTimeout(B),B=null)}function L(M){m.value=M.target.value,p.value=!0,C.value=-1,B!==null&&clearTimeout(B),B=setTimeout(()=>{B=null,D(1,!1)},xk)}function ae(){W.value&&!w.value&&D(b.value+1,!0)}function ye(M){const N=M.target;N.scrollTop+N.clientHeight>=N.scrollHeight-24&&ae()}function F(M){o.value==="multiple"?M.value!==null&&!c.value.includes(M.value)&&r("update:modelValue",[...c.value,M.value]):r("update:modelValue",M.value),oe()}function re(M){r("update:modelValue",c.value.filter(N=>N!==M))}function ne(M){switch(M.key){case"ArrowDown":M.preventDefault(),p.value?C.value=Math.min(C.value+1,T.value.length-1):R();break;case"ArrowUp":M.preventDefault(),C.value=Math.max(C.value-1,0);break;case"Enter":if(p.value){M.preventDefault();const N=T.value[C.value];N&&F(N)}break;case"Escape":p.value&&(M.preventDefault(),oe());break;case"Backspace":o.value==="multiple"&&m.value===""&&c.value.length>0&&re(c.value[c.value.length-1]);break}}const ce=E(()=>l.value!==null?u(l.value):n.field.emptyOption??"");return yt(()=>{B!==null&&clearTimeout(B)}),(M,N)=>o.value==="readonly"?(g(),A("div",{key:0,id:e.controlId,"data-relation-readonly":"","aria-describedby":e.describedBy||void 0,class:we([e.labels?.[0]?.label?"text-text":"text-muted","flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5"])},q(f.value),11,ak)):(g(),A("div",{key:1,class:"relative","data-relation":o.value},[o.value==="multiple"?(g(),A("div",{key:0,class:we([e.invalid?"border-danger":"border-border-strong","flex min-h-input flex-wrap items-center gap-1.5 rounded-control border bg-surface p-1.5"])},[(g(!0),A(me,null,De(c.value,Q=>(g(),A("span",{key:Q,"data-chip":"",class:"inline-flex h-[30px] items-center gap-1.5 rounded-pill bg-subtle pr-1 pl-1"},[O("span",uk,q(d(u(Q))),1),O("span",ck,q(u(Q)),1),O("button",{type:"button","aria-label":h(U)("backend::lang.form.remove_item",{name:u(Q)}),class:"flex size-6 items-center justify-center rounded-full text-muted hover:bg-hover hover:text-text",onClick:pe=>re(Q)},[Y(h(os),{size:14,"aria-hidden":"true"})],8,dk)]))),128)),O("input",{id:e.controlId,type:"text",role:"combobox",autocomplete:"off","aria-expanded":p.value?"true":"false","aria-controls":s.value,"aria-autocomplete":"list","aria-activedescendant":p.value&&C.value>=0?$(C.value):void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,value:m.value,placeholder:h(U)("backend::lang.form.add_item"),class:"h-[30px] min-w-[120px] flex-1 border-0 bg-transparent px-2 focus-visible:shadow-none",onClick:R,onInput:L,onKeydown:ne,onBlur:oe},null,40,fk)],2)):(g(),A("div",pk,[O("input",{id:e.controlId,type:"text",role:"combobox",autocomplete:"off","aria-expanded":p.value?"true":"false","aria-controls":s.value,"aria-autocomplete":"list","aria-activedescendant":p.value&&C.value>=0?$(C.value):void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,value:p.value?m.value:ce.value,placeholder:p.value&&ce.value||h(U)("backend::lang.form.select_placeholder"),class:we([[e.invalid?"border-danger":"border-border-strong",!p.value&&l.value===null?"text-muted":"text-text"],"h-input w-full rounded-control border bg-surface pr-10 pl-3.5"]),onClick:R,onInput:L,onKeydown:ne,onBlur:oe},null,42,hk),Y(h(ts),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})])),Gs(O("ul",{id:s.value,role:"listbox",class:"absolute inset-x-0 top-full z-20 mt-1 max-h-64 overflow-y-auto rounded-inner border border-border bg-surface p-1 shadow-menu",onScroll:ye},[(g(!0),A(me,null,De(T.value,(Q,pe)=>(g(),A("li",{id:$(pe),key:Q.key,role:"option","data-value":Q.value??"empty","aria-selected":o.value==="single"&&Q.value===l.value?"true":"false",class:we([[Q.muted?"text-muted":"text-text",pe===C.value?"bg-hover":""],"flex h-10 cursor-pointer items-center rounded-control px-3 hover:bg-hover"]),onMousedown:jt(ke=>F(Q),["prevent"])},q(Q.label),43,gk))),128)),w.value?(g(),A("li",vk,q(h(U)("backend::lang.form.loading_options")),1)):T.value.filter(Q=>Q.value!==null).length===0?(g(),A("li",yk,q(h(U)("backend::lang.form.no_options")),1)):de("",!0),W.value&&!w.value?(g(),A("li",bk,[O("button",{type:"button","data-action":"more-options",class:"h-8 w-full rounded-control text-[13px] font-semibold text-muted hover:bg-hover hover:text-text",onMousedown:jt(ae,["prevent"])},q(h(U)("backend::lang.form.more_options")),33)])):de("",!0)],40,mk),[[Rh,p.value]])],8,lk))}}),kk={class:"flex min-w-0 flex-col"},Ck=["for"],Sk={key:0,class:"text-danger","aria-hidden":"true"},Ek=["id"],Ak=["id","aria-checked","aria-invalid","aria-describedby"],$k=Z({__name:"SwitchField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>mf(n.modelValue));function s(){r("update:modelValue",gf(n.modelValue,!o.value))}return(i,a)=>(g(),A("div",{class:we([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[O("div",kk,[O("label",{for:e.controlId,class:"font-semibold"},[Ee(q(e.field.label||e.field.name),1),e.field.required?(g(),A("span",Sk," *")):de("",!0)],8,Ck),e.field.comment?(g(),A("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},q(e.field.comment),9,Ek)):de("",!0)]),O("button",{id:e.controlId,type:"button",role:"switch","aria-checked":o.value?"true":"false","aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:we([o.value?"bg-primary":"bg-border-strong","relative h-[26px] w-11 shrink-0 rounded-pill transition-colors duration-150 ease-out"]),onClick:s},[O("span",{class:we([o.value?"translate-x-[18px] bg-on-primary":"translate-x-0 bg-white","absolute top-[3px] left-[3px] size-5 rounded-full shadow-tab transition-transform duration-150 ease-out"]),"aria-hidden":"true"},null,2)],10,Ak)],2))}}),Ok=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Pk=Z({__name:"TextField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),s=E(()=>va(n.field));return(i,a)=>(g(),A("input",ze({id:e.controlId},s.value,{name:e.field.name,type:"text",value:o.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:[h(vs)(e.invalid),"h-input"],onInput:a[0]||(a[0]=l=>r("update:modelValue",l.target.value))}),null,16,Ok))}}),Tk=["id","name","rows","value","required","aria-required","aria-invalid","aria-describedby"],Rk=Z({__name:"TextareaField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o={tiny:2,small:4,large:8,huge:12,giant:18},s=E(()=>o[n.field.size??""]??5),i=E(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),a=E(()=>va(n.field));return(l,c)=>(g(),A("textarea",ze({id:e.controlId},a.value,{name:e.field.name,rows:s.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:[h(vs)(e.invalid),"min-h-input resize-y py-2.5"],onInput:c[0]||(c[0]=u=>r("update:modelValue",u.target.value))}),null,16,Tk))}}),Mk=["id","aria-describedby"],Ik={key:0},Dk={class:"font-mono text-text"},qk={key:1},Fk={class:"font-mono text-text"},lo="\0",Bk=Z({__name:"UnsupportedField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=E(()=>{const[o="",s=""]=U("backend::lang.form.unsupported_field",{type:lo}).split(lo);return{before:o,after:s}}),r=E(()=>U("backend::lang.form.unsupported_field",{type:lo}).includes(lo));return(o,s)=>(g(),A("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"},[Y(h(ed),{size:16,"aria-hidden":"true"}),r.value?(g(),A("span",Ik,[Ee(q(n.value.before),1),O("code",Dk,q(t.field.type),1),Ee(q(n.value.after),1)])):(g(),A("span",qk,[Ee(q(h(U)("backend::lang.form.unsupported_field"))+" ",1),O("code",Fk,q(t.field.type),1)]))],8,Mk))}}),vf=Symbol("summer.form.values"),yf=Symbol("summer.form.patch"),bf=Symbol("summer.form.locale"),_f=Symbol("summer.form.assets"),ou="summer-action",Nk=5e3,Lk=["id","aria-labelledby","aria-describedby","aria-busy"],jk={key:0,"data-widget-skeleton":"",class:"h-[42px] w-[160px] rounded-control bg-skel","aria-hidden":"true"},Vk=Z({__name:"WidgetField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=Ke(vf,null),r=Ke(yf,()=>{}),o=Ke(bf,null),s=Ke(_f,()=>Promise.resolve([])),i=I("loading"),a=I(null);let l=null,c=!1,u=!1;function d(){const C=n?.value??{},k={};for(const B of t.field.fill??[])C[B]!==void 0&&(k[B]=C[B]);return k}const f=E(()=>JSON.stringify(d())),p=E(()=>o?.value||ud.value);function m(C){let k;return{promise:new Promise((W,D)=>{k=setTimeout(()=>D(new Error("widget element was not defined in time")),C)}),cancel:()=>clearTimeout(k)}}async function v(C){const k=await s();if(customElements.get(C))return;if(k.length>0)throw new Error(`plugin script failed: ${k.join(", ")}`);const B=m(Nk);try{await Promise.race([customElements.whenDefined(C),B.promise])}finally{B.cancel()}}function b(C){Ue(C||U("backend::lang.extension.action_failed"),"danger"),l?.setAttribute("state","error")}async function _(){const C=t.source;if(!(!l||c||!C)){c=!0,l.setAttribute("busy",""),l.removeAttribute("state");try{const k=await Me.POST("/{vendor}/{plugin}/{controller}/widgets/{field}",{params:{path:{...C,field:t.field.name}},body:{record_id:t.recordId??void 0,values:d()}});if(k.data){const B=k.data.data.fill??{};for(const W of t.field.fill??[])Object.hasOwn(B,W)&&r(W,B[W]);k.data.data.message&&Ue(k.data.data.message)}else b(k.error?.error.message)}catch{b()}finally{c=!1,l?.removeAttribute("busy")}}}function w(){_()}return St(async()=>{const C=t.field.widget??"";try{if(C===""||!t.source)throw new Error("widget field without a tag or controller");if(await v(C),u||!a.value)return;const k=document.createElement(C);k.setAttribute("record-id",t.recordId==null?"":String(t.recordId)),k.setAttribute("field-name",t.field.name),k.setAttribute("locale",p.value),k.setAttribute("fill-values",f.value),k.setAttribute("label",t.field.actionLabel||t.field.label||t.field.name),k.setAttribute("busy-label",U("backend::lang.extension.busy")),k.addEventListener(ou,w),a.value.append(k),l=k,i.value="ready"}catch{u||(i.value="failed")}}),Le(f,C=>l?.setAttribute("fill-values",C)),Le(p,C=>l?.setAttribute("locale",C)),yt(()=>{u=!0,l?.removeEventListener(ou,w),l=null}),(C,k)=>i.value==="failed"?(g(),X(ha,{key:0,id:e.controlId,"data-widget-failed":"","aria-describedby":e.describedBy||void 0,text:h(U)("backend::lang.extension.widget_failed")},null,8,["id","aria-describedby","text"])):(g(),A("div",{key:1,id:e.controlId,role:"group","data-widget-host":"","aria-labelledby":e.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0,"aria-busy":i.value==="loading"?"true":void 0,class:"flex min-h-input items-center"},[i.value==="loading"?(g(),A("span",jk)):de("",!0),O("div",{ref_key:"mountPoint",ref:a,class:"contents"},null,512)],8,Lk))}}),Xr="relation-manager",xf=new Map([["text",Pk],["textarea",Rk],["number",kw],["dropdown",xw],["switch",$k],["checkbox",vw],["relation",wk],[Xr,ik],["widget",Vk],["partial",Sw]]),zk=new Set(["switch","checkbox",Xr]),Uk=new Set([Xr]),Hk=new Set([Xr,"widget","partial"]),Wk=new Set(["widget","partial"]);function Kk(e){return xf.get(e)??Bk}function Gk(e){return xf.has(e)&&!Hk.has(e)}function Yk(e){return Uk.has(e)}function Xk(e){return zk.has(e)}function Jk(e){return Wk.has(e)}const Qk=Z({__name:"FieldRenderer",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>Kk(n.field.type));return(s,i)=>(g(),X(yn(o.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,"record-id":e.recordId,"onUpdate:modelValue":i[0]||(i[0]=a=>r("update:modelValue",a))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]))}}),Zk=["data-field"],eC=["id"],tC={key:0,class:"text-danger","aria-hidden":"true"},nC=["for"],rC={key:0,class:"text-danger","aria-hidden":"true"},oC=["id"],sC=["id"],iC=Z({__name:"FormField",props:{field:{},modelValue:{},errors:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>`${n.idPrefix??"field"}-${n.field.name}`),s=E(()=>o.value),i=E(()=>`${o.value}-comment`),a=E(()=>`${o.value}-error`),l=E(()=>(n.errors?.length??0)>0),c=E(()=>Xk(n.field.type)),u=E(()=>Jk(n.field.type)),d=E(()=>!c.value&&!!n.field.comment),f=E(()=>[d.value||c.value&&n.field.comment?i.value:"",l.value?a.value:""].filter(Boolean).join(" "));return(p,m)=>(g(),A("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[u.value&&e.field.label?(g(),A("span",{key:0,id:`${s.value}-label`,class:"font-semibold"},[Ee(q(e.field.label),1),e.field.required?(g(),A("span",tC," *")):de("",!0)],8,eC)):!c.value&&!u.value?(g(),A("label",{key:1,for:s.value,class:"font-semibold"},[Ee(q(e.field.label||e.field.name),1),e.field.required?(g(),A("span",rC," *")):de("",!0)],8,nC)):de("",!0),Y(Qk,{field:e.field,"model-value":e.modelValue,"control-id":s.value,invalid:l.value,"described-by":f.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":m[0]||(m[0]=v=>r("update:modelValue",v))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),d.value?(g(),A("p",{key:2,id:i.value,class:"text-[13px] text-muted"},q(e.field.comment),9,oC)):de("",!0),l.value?(g(),A("div",{key:3,id:a.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(g(!0),A(me,null,De(e.errors,(v,b)=>(g(),A("p",{key:b,class:"flex items-center gap-1.5"},[Y(h(ur),{size:14,class:"shrink-0","aria-hidden":"true"}),O("span",null,q(v),1)]))),128))],8,sC)):de("",!0)],8,Zk))}}),aC={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},wf=Z({__name:"FormGrid",props:{fields:{},values:{},errors:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update"],setup(e,{emit:t}){const n=t;function r(o){if(o.type===Xr)return"col-span-full";switch(o.span){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(o,s)=>(g(),A("div",aC,[(g(!0),A(me,null,De(e.fields,i=>(g(),X(iC,{key:i.name,class:we(r(i)),field:i,"model-value":e.values[i.name],errors:e.errors[i.name],labels:e.labels?.[i.name],source:e.source,"record-id":e.recordId,"id-prefix":e.idPrefix,"onUpdate:modelValue":a=>n("update",i.name,a)},null,8,["class","field","model-value","errors","labels","source","record-id","id-prefix","onUpdate:modelValue"]))),128))]))}}),Sr="default";function uo(e){return e.tab?`tab:${e.tab}`:Sr}function Ci(e,t){return`${e}-tab-${t}`}function kf(e,t){return`${e}-panel-${t}`}function Cf(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 ho(e,t){const n={};for(const r of e){if(r.readOnly||!Gk(r.type))continue;const o=t[r.name];o!==void 0&&(n[r.name]=o)}return n}function lC(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 Sf(e){const t={};for(const[n,r]of Object.entries(e??{})){const o=Array.isArray(r)?r.filter(s=>typeof s=="string"&&s!==""):typeof r=="string"&&r!==""?[r]:[];o.length>0&&(t[n]=o)}return t}function su(e){return JSON.stringify(Object.keys(e).sort().map(t=>[t,e[t]]))}function Ef(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 uC={role:"tablist",class:"inline-flex gap-1 rounded-inner border border-border bg-subtle p-1"},cC=["id","data-tab","aria-selected","aria-controls","tabindex","onClick","onKeydown"],dC=["aria-label"],fC=Z({__name:"FormTabs",props:{tabs:{},modelValue:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function o(s,i){const a=s.key==="ArrowRight"?1:s.key==="ArrowLeft"?-1:0;if(a===0)return;s.preventDefault();const l=(i+a+n.tabs.length)%n.tabs.length,c=n.tabs[l];c&&(r("update:modelValue",c.key),document.getElementById(Ci(n.idPrefix,l))?.focus())}return(s,i)=>(g(),A("div",uC,[(g(!0),A(me,null,De(e.tabs,(a,l)=>(g(),A("button",{id:h(Ci)(e.idPrefix,l),key:a.key,type:"button",role:"tab","data-tab":a.key,"aria-selected":a.key===e.modelValue?"true":"false","aria-controls":h(kf)(e.idPrefix,l),tabindex:a.key===e.modelValue?0:-1,class:we([a.key===e.modelValue?"bg-surface text-text shadow-tab":"text-muted hover:text-text","inline-flex h-[34px] items-center gap-2 rounded-tab px-4 font-semibold transition-colors duration-150 ease-out"]),onClick:c=>r("update:modelValue",a.key),onKeydown:c=>o(c,l)},[Ee(q(a.label)+" ",1),a.errors>0?(g(),A("span",{key:0,"data-tab-errors":"","aria-label":h(Yi)("backend::lang.form.tab_errors",a.errors),class:"inline-flex h-5 min-w-5 items-center justify-center rounded-pill bg-danger px-1.5 text-[11px] font-bold text-white"},q(a.errors),9,dC)):de("",!0)],42,cC))),128))]))}}),pC={class:"flex w-full flex-col gap-5 pb-24"},hC={class:"flex flex-wrap items-center gap-4"},mC={class:"flex min-w-0 flex-1 flex-col"},gC={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},vC={key:0,class:"text-muted"},yC={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},bC=["id","role","aria-labelledby"],_C={class:"fixed inset-x-0 bottom-0 z-30 flex items-center gap-2.5 border-t border-border bg-surface px-8 py-3.5"},xC={class:"ml-auto flex items-center gap-2.5"},xr="field",iu=Z({__name:"FormView",setup(e){const t=Ht(),n=Gr(),r={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},o=Xi(r),s=_n(o)??"/",i=t.name==="create"?"create":"update",a=i==="update"?Number(t.params.id):null,l=I(null),c=I({}),u=I({}),d=I({}),f=I(!0),p=I(!1),m=I(!1),v=I(""),b=I(Sr),_=ga();let w=!1,C=Promise.resolve([]);const k=E(()=>(l.value?.fields??[]).filter(le=>Cf(le,i)&&(i==="update"||!Yk(le.type)))),B=E(()=>k.value.map(le=>le.name)),W=E(()=>{if(!k.value.some(fe=>fe.tab))return[];const le=[];for(const fe of k.value){const P=uo(fe);let V=le.find(K=>K.key===P);V||(V={key:P,label:fe.tab||U("backend::lang.form.tab_default"),errors:0},P===Sr?le.unshift(V):le.push(V)),d.value[fe.name]&&(V.errors+=1)}return le}),D=E(()=>Math.max(W.value.findIndex(le=>le.key===b.value),0)),T=E(()=>{if(W.value.length===0)return k.value;const le=W.value[D.value]?.key??Sr;return k.value.filter(fe=>uo(fe)===le)}),$=E(()=>{const le=l.value?.fields.find(P=>P.type==="text"),fe=le?c.value[le.name]:void 0;return typeof fe=="string"||typeof fe=="number"?String(fe).trim():""}),R=E(()=>{if(i==="update"&&$.value!=="")return $.value;const le=i==="create"?l.value?.messages.create:l.value?.messages.update;return Be(le,void 0,{name:$.value})}),oe=E(()=>i==="update"?Be(l.value?.messages.update,void 0,{name:$.value}):""),L=E(()=>!f.value&&su(ho(k.value,c.value))!==v.value);function ae(le){le&&(c.value={...le.data},u.value=le.meta.labels??{}),v.value=su(ho(k.value,c.value))}async function ye(){f.value=!0,p.value=!1;const le={path:r},[fe,P]=await Promise.all([Me.GET("/{vendor}/{plugin}/{controller}/schema/form",{params:le}),a!==null?Me.GET("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:a}}}):Promise.resolve(null)]);l.value=fe.data?.data??null,p.value=!fe.data||P!==null&&!P.data,l.value&&(C=lf(o,l.value.assets)),l.value&&i==="create"&&(c.value=lC(k.value)),ae(P?.data),b.value=W.value[0]?.key??Sr,f.value=!1}function F(le,fe){if(c.value={...c.value,[le]:fe},d.value[le]){const P={...d.value};delete P[le],d.value=P}}qt(vf,E(()=>c.value)),qt(yf,F),qt(bf,E(()=>l.value?.meta.locale||ud.value)),qt(_f,()=>C);async function re(le){d.value=Sf(le?.details);const fe=k.value.filter(V=>d.value[V.name]),P=fe.find(V=>uo(V)===b.value)??fe[0];P&&(W.value.length>0&&(b.value=uo(P)),await He(),Ef(xr,P.name))}function ne(le,fe){const P=l.value?.redirects,V=(P?.[i]?.[le]||P?.default)??"";return cf(V,o,typeof fe=="number"||typeof fe=="string"?fe:null)}async function ce(){if(m.value||!l.value)return null;m.value=!0;try{const le=ho(k.value,c.value),fe=a===null?await Me.POST("/{vendor}/{plugin}/{controller}",{params:{path:r},body:le}):await Me.PUT("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:a}},body:le});return fe.data?(d.value={},ae(fe.data),Ue(Be(l.value.messages.saved,void 0,{name:$.value})),fe.data):(fe.response.status===422?await re(fe.error?.error):Ue(fe.error?.error.message||U("backend::lang.form.error_generic"),"danger"),null)}catch{return Ue(U("backend::lang.form.error_generic"),"danger"),null}finally{m.value=!1}}async function M(le){w=!0;try{await n.push(le)}finally{w=!1}}async function N(){const le=await ce();le&&i==="create"&&await M(ne("redirect",le.data.id))}async function Q(){const le=await ce();le&&await M(ne("redirectClose",le.data.id))}async function pe(){if(!(a===null||m.value||!l.value||!await _.ask({message:Be(l.value.messages.deleteConfirm,void 0,{name:$.value}),confirmLabel:U("backend::lang.form.delete"),danger:!0}))){m.value=!0;try{const fe=await Me.DELETE("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:a}}});if(fe.data){Ue(Be(l.value.messages.deleted,void 0,{name:$.value})),await M(s);return}Ue(fe.error?.error.message||U("backend::lang.form.error_generic"),"danger")}catch{Ue(U("backend::lang.form.error_generic"),"danger")}finally{m.value=!1}}}async function ke(){return w||!L.value?!0:_.ask({message:U("backend::lang.form.unsaved_confirm"),confirmLabel:U("backend::lang.form.discard"),danger:!0})}Nm(ke),Lm(ke);function Se(le){L.value&&(le.preventDefault(),le.returnValue="")}return St(()=>window.addEventListener("beforeunload",Se)),yt(()=>window.removeEventListener("beforeunload",Se)),Lt(()=>iy(f.value?"":R.value)),yt(ay),ye(),(le,fe)=>(g(),A("section",pC,[O("header",hC,[Y(it,{variant:"outline","data-action":"back",to:h(s),"aria-label":h(U)("backend::lang.form.return_to_list"),class:"size-10! px-0!"},{default:J(()=>[Y(h(Vi),{size:18,"aria-hidden":"true"})]),_:1},8,["to","aria-label"]),O("div",mC,[O("h1",gC,q(f.value?"":R.value),1),oe.value?(g(),A("p",vC,q(oe.value),1)):de("",!0)]),W.value.length>0?(g(),X(fC,{key:0,modelValue:b.value,"onUpdate:modelValue":fe[0]||(fe[0]=P=>b.value=P),tabs:W.value,"id-prefix":xr},null,8,["modelValue","tabs"])):de("",!0)]),p.value&&!f.value?(g(),A("p",yC,q(h(U)("backend::lang.form.load_failed")),1)):l.value?(g(),A(me,{key:1},[Y(hf,{errors:d.value,"field-names":B.value},null,8,["errors","field-names"]),O("form",{id:W.value.length>0?h(kf)(xr,D.value):void 0,role:W.value.length>0?"tabpanel":void 0,"aria-labelledby":W.value.length>0?h(Ci)(xr,D.value):void 0,class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:jt(N,["prevent"])},[Y(wf,{fields:T.value,values:c.value,errors:d.value,labels:u.value,source:r,"record-id":h(a),"id-prefix":xr,onUpdate:F},null,8,["fields","values","errors","labels","record-id"])],40,bC)],64)):de("",!0),O("footer",_C,[h(i)==="update"?(g(),X(it,{key:0,variant:"danger","data-action":"delete",icon:h(Hi),disabled:m.value||f.value||!l.value,onClick:pe},{default:J(()=>[Ee(q(h(U)("backend::lang.form.delete")),1)]),_:1},8,["icon","disabled"])):de("",!0),O("div",xC,[Y(it,{variant:"ghost","data-action":"cancel",to:h(s)},{default:J(()=>[Ee(q(h(U)("backend::lang.form.cancel")),1)]),_:1},8,["to"]),Y(it,{variant:"outline","data-action":"save-close",disabled:m.value||f.value||!l.value,onClick:Q},{default:J(()=>[Ee(q(h(U)("backend::lang.form.save_and_close")),1)]),_:1},8,["disabled"]),Y(it,{variant:"primary","data-action":"save",disabled:m.value||f.value||!l.value,onClick:N},{default:J(()=>[Ee(q(m.value?h(U)("backend::lang.form.saving"):h(U)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]),Y(ma,{open:h(_).request.value!==null,message:h(_).request.value?.message??"","confirm-label":h(_).request.value?.confirmLabel,danger:h(_).request.value?.danger,onConfirm:h(_).confirm,onCancel:h(_).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])]))}}),wC={class:"flex w-full flex-col gap-5 pb-24"},kC={class:"flex items-center gap-4"},CC={class:"flex min-w-0 flex-col"},SC={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},EC={key:0,class:"text-muted"},AC={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},$C={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"},au="setting",OC=Z({__name:"SettingsFormView",setup(e){const t=Ht(),n=String(t.params.code??""),r=I(null),o=I({}),s=I({}),i=I(!0),a=I(!1),l=I(!1),c=E(()=>(r.value?.fields??[]).filter(b=>Cf(b,"update"))),u=E(()=>c.value.map(b=>b.name)),d=E(()=>fi(n)?.label||r.value?.name||n),f=E(()=>fi(n)?.description??"");async function p(){const b={path:{code:n}},[_,w]=await Promise.all([Me.GET("/settings/{code}/schema",{params:b}),Me.GET("/settings/{code}",{params:b})]);r.value=_.data?.data??null,o.value={...w.data?.data.data??{}},a.value=!_.data||!w.data,i.value=!1}function m(b,_){if(o.value={...o.value,[b]:_},s.value[b]){const w={...s.value};delete w[b],s.value=w}}async function v(){if(!(l.value||!r.value)){l.value=!0;try{const b=await Me.PUT("/settings/{code}",{params:{path:{code:n}},body:ho(c.value,o.value)});if(b.data){s.value={},o.value={...b.data.data.data},Ue(U("backend::lang.settings.saved"));return}if(b.response.status===422){s.value=Sf(b.error?.error.details);const _=c.value.find(w=>s.value[w.name]);await He(),_&&Ef(au,_.name);return}Ue(b.error?.error.message||U("backend::lang.form.error_generic"),"danger")}catch{Ue(U("backend::lang.form.error_generic"),"danger")}finally{l.value=!1}}}return p(),(b,_)=>(g(),A("section",wC,[O("header",kC,[Y(it,{variant:"outline","data-action":"back",to:"/settings","aria-label":h(U)("backend::lang.settings.back"),class:"size-10! px-0!"},{default:J(()=>[Y(h(Vi),{size:18,"aria-hidden":"true"})]),_:1},8,["aria-label"]),O("div",CC,[O("h1",SC,q(d.value),1),f.value?(g(),A("p",EC,q(f.value),1)):de("",!0)])]),a.value&&!i.value?(g(),A("p",AC,q(h(U)("backend::lang.form.load_failed")),1)):r.value?(g(),A(me,{key:1},[Y(hf,{errors:s.value,"field-names":u.value},null,8,["errors","field-names"]),O("form",{class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:jt(v,["prevent"])},[Y(wf,{fields:c.value,values:o.value,errors:s.value,source:null,"id-prefix":au,onUpdate:m},null,8,["fields","values","errors"])],32)],64)):de("",!0),O("footer",$C,[Y(it,{variant:"ghost",to:"/settings"},{default:J(()=>[Ee(q(h(U)("backend::lang.form.cancel")),1)]),_:1}),Y(it,{variant:"primary","data-action":"save",disabled:l.value||i.value||!r.value,onClick:v},{default:J(()=>[Ee(q(l.value?h(U)("backend::lang.form.saving"):h(U)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]))}}),PC={class:"flex flex-col gap-5"},TC={class:"text-[26px] font-bold tracking-[-0.02em]"},RC={key:0,class:"text-muted"},MC={key:0,class:"text-[13px] font-semibold tracking-[0.02em] text-muted uppercase"},IC={class:"grid grid-cols-1 gap-3 min-[900px]:grid-cols-2"},DC={class:"flex size-10 shrink-0 items-center justify-center rounded-inner bg-subtle text-muted"},qC={class:"flex min-w-0 flex-col"},FC={class:"font-semibold"},BC={key:0,class:"text-[13px] text-muted"},NC=Z({__name:"SettingsIndexView",setup(e){return(t,n)=>(g(),A("section",PC,[O("header",null,[O("h1",TC,q(h(U)("backend::lang.settings.title")),1)]),h(ql).length===0?(g(),A("p",RC,q(h(U)("backend::lang.settings.empty")),1)):de("",!0),(g(!0),A(me,null,De(h(ql),r=>(g(),A("section",{key:r.category,"data-settings-group":"",class:"flex flex-col gap-3"},[r.category?(g(),A("h2",MC,q(r.category),1)):de("",!0),O("div",IC,[(g(!0),A(me,null,De(r.entries,o=>(g(),X(h(on),{key:o.code,to:`/settings/${encodeURIComponent(o.code)}`,"data-settings":o.code,class:"flex items-start gap-3.5 rounded-card border border-border bg-surface p-5 text-text no-underline shadow-card hover:bg-hover"},{default:J(()=>[O("span",DC,[(g(),X(yn(h(is)(o.icon)),{size:20,"aria-hidden":"true"}))]),O("span",qC,[O("span",FC,q(o.label),1),o.description?(g(),A("span",BC,q(o.description),1)):de("",!0)])]),_:2},1032,["to","data-settings"]))),128))])]))),128))]))}}),LC={class:"flex flex-col items-center gap-2 py-20 text-center"},jC={class:"text-[17px] font-bold"},lu=Z({__name:"NotFoundView",props:{home:{type:Boolean}},setup(e){return(t,n)=>(g(),A("section",LC,[O("h1",jC,q(e.home?h(U)("backend::lang.nav.empty"):h(U)("backend::lang.page.not_found")),1)]))}});function Af(e){return typeof e!="string"||e.length===0||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")?null:e}const VC=new Set(["list","create","record"]);function zC(e){if(typeof e.name!="string"||!VC.has(e.name))return"";const{vendor:t,plugin:n,controller:r}=e.params;return typeof t!="string"||typeof n!="string"||typeof r!="string"?"":Xi({vendor:t,plugin:n,controller:r})}function UC(e=Hm(Wi.base)){const t=cg({history:e,routes:[{path:"/login",name:"login",component:C0,meta:{public:!0}},{path:"/",name:"home",component:lu,props:{home:!0},meta:{shell:!0},beforeEnter:()=>Lv()??!0},{path:"/settings",name:"settings",component:NC,meta:{shell:!0}},{path:"/settings/:code",name:"settings-form",component:OC,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller",name:"list",component:lw,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/create",name:"create",component:iu,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/:id(\\d+)",name:"record",component:iu,meta:{shell:!0}},{path:"/:pathMatch(.*)*",name:"not-found",component:lu,meta:{shell:!0}}]});return t.beforeEach(n=>{const r=Kn.value!==null;return n.meta.public?r&&n.name==="login"?Af(n.query.redirect)??"/":!0:r?!0:{name:"login",query:{redirect:n.fullPath}}}),t.afterEach((n,r,o)=>{o||af(zC(n))}),t}const HC="(prefers-color-scheme: dark)";function WC(e=window){const t=e.document.documentElement;if(typeof e.matchMedia!="function")return t.classList.remove("dark"),()=>{};const n=e.matchMedia(HC),r=s=>{t.classList.toggle("dark",s)};r(n.matches);const o=s=>r(s.matches);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}async function KC(){WC(),await Dv().catch(()=>{}),await tf().catch(()=>null)&&await Promise.all([cd().catch(()=>[]),dd().catch(()=>[])]);const t=UC();Pv(()=>{nf();const r=t.currentRoute.value;r.name!=="login"&&t.push({name:"login",query:{redirect:r.fullPath}})});const n=im(l0);n.use(t),await t.isReady(),n.mount("#app")}KC();