Files
summercms/boardwalk/dist/assets/index-BC0qEqbI.js
Jakub Zych f4e97cccad feat(10-04): search, link and unlink related records through the relation manager
- relation-manager registered in the field registry; renders only on an
  existing record, never on create, and is never part of the save body
- RelationManager: relation schema label and comment, debounced search,
  selectable linked list (DataTable relation variant), toolbar buttons in
  declared order, confirmed unlink with plural messages and toasts
- RelationPickerModal: Reka Dialog (aria-modal, focus trap, Esc) over the
  candidates endpoint five per page, selection kept across pages, Dodaj (N)
  POSTs link, focus returns to the opener
- admin OpenAPI documents search, sort, dir, page and per_page on the linked
  and candidate relation routes so the SPA sends them typed
- neutral acme.demo.widgets members fixtures and relation smoke tests
2026-09-27 17:18:14 +02:00

4 lines
224 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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function eo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ie={},mn=[],kt=()=>{},ua=()=>!1,Lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qr=e=>e.startsWith("onUpdate:"),Je=Object.assign,to=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fu=Object.prototype.hasOwnProperty,Oe=(e,t)=>Fu.call(e,t),de=Array.isArray,vn=e=>lr(e)==="[object Map]",ca=e=>lr(e)==="[object Set]",Lo=e=>lr(e)==="[object Date]",he=e=>typeof e=="function",Le=e=>typeof e=="string",ut=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",da=e=>(Ae(e)||he(e))&&he(e.then)&&he(e.catch),fa=Object.prototype.toString,lr=e=>fa.call(e),Lu=e=>lr(e).slice(8,-1),pa=e=>lr(e)==="[object Object]",Vr=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qn=eo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ur=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},qu=/-\w/g,We=Ur(e=>e.replace(qu,t=>t.slice(1).toUpperCase())),Vu=/\B([A-Z])/g,Kt=Ur(e=>e.replace(Vu,"-$1").toLowerCase()),zr=Ur(e=>e.charAt(0).toUpperCase()+e.slice(1)),$r=Ur(e=>e?`on${zr(e)}`:""),wt=(e,t)=>!Object.is(e,t),Sr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ha=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},no=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qo;const Hr=()=>qo||(qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ar(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Le(r)?Ku(r):ar(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Le(e)||Ae(e))return e}const Uu=/;(?![^(]*\))/g,zu=/:([^]+)/,Hu=/\/\*[^]*?\*\//g;function Ku(e){const t={};return e.replace(Hu,"").split(Uu).forEach(n=>{if(n){const r=n.split(zu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(Le(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(Ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $n(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Le(t)&&(e.class=me(t)),n&&(e.style=ar(n)),e}const Wu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gu=eo(Wu);function ma(e){return!!e||e===""}function Ju(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ro(e[r],t[r]);return n}function ro(e,t){if(e===t)return!0;let n=Lo(e),r=Lo(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ut(e),r=ut(t),n||r)return e===t;if(n=de(e),r=de(t),n||r)return n&&r?Ju(e,t):!1;if(n=Ae(e),r=Ae(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const l in e){const a=e.hasOwnProperty(l),i=t.hasOwnProperty(l);if(a&&!i||!a&&i||!ro(e[l],t[l]))return!1}}return String(e)===String(t)}const va=e=>!!(e&&e.__v_isRef===!0),P=e=>Le(e)?e:e==null?"":de(e)||Ae(e)&&(e.toString===fa||!he(e.toString))?va(e)?P(e.value):JSON.stringify(e,ga,2):String(e),ga=(e,t)=>va(t)?ga(e,t.value):vn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[us(r,o)+" =>"]=s,n),{})}:ca(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>us(n))}:ut(t)?us(t):Ae(t)&&!de(t)&&!pa(t)?String(t):t,us=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ve;class ya{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ve&&(Ve.active?(this.parent=Ve,this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,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=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){++this._on===1&&(this.prevScope=Ve,Ve=this)}off(){if(this._on>0&&--this._on===0){if(Ve===this)Ve=this.prevScope;else{let t=Ve;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ba(e){return new ya(e)}function _a(){return Ve}function Qu(e,t=!1){Ve&&Ve.cleanups.push(e)}let De;const cs=new WeakSet;class xa{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,Ve&&(Ve.active?Ve.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,cs.has(this)&&(cs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ka(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vo(this),Ea(this);const t=De,n=dt;De=this,dt=!0;try{return this.fn()}finally{$a(this),De=t,dt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lo(t);this.deps=this.depsTail=void 0,Vo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?cs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ts(this)&&this.run()}get dirty(){return Ts(this)}}let wa=0,Vn,Un;function ka(e,t=!1){if(e.flags|=8,t){e.next=Un,Un=e;return}e.next=Vn,Vn=e}function so(){wa++}function oo(){if(--wa>0)return;if(Un){let t=Un;for(Un=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vn;){let t=Vn;for(Vn=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 Ea(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $a(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),lo(r),Yu(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ts(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sa(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Sa(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qn)||(e.globalVersion=Qn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ts(e))))return;e.flags|=2;const t=e.dep,n=De,r=dt;De=e,dt=!0;try{Ea(e);const s=e.fn(e._value);(t.version===0||wt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{De=n,dt=r,$a(e),e.flags&=-3}}function lo(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)lo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let dt=!0;const Ca=[];function Mt(){Ca.push(dt),dt=!1}function It(){const e=Ca.pop();dt=e===void 0?!0:e}function Vo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=De;De=void 0;try{t()}finally{De=n}}}let Qn=0;class Xu{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 ao{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(!De||!dt||De===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==De)n=this.activeLink=new Xu(De,this),De.deps?(n.prevDep=De.depsTail,De.depsTail.nextDep=n,De.depsTail=n):De.deps=De.depsTail=n,Oa(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=De.depsTail,n.nextDep=void 0,De.depsTail.nextDep=n,De.depsTail=n,De.deps===n&&(De.deps=r)}return n}trigger(t){this.version++,Qn++,this.notify(t)}notify(t){so();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{oo()}}}function Oa(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)Oa(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ar=new WeakMap,Zt=Symbol(""),Rs=Symbol(""),Yn=Symbol("");function Xe(e,t,n){if(dt&&De){let r=Ar.get(e);r||Ar.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ao),s.map=r,s.key=n),s.track()}}function Pt(e,t,n,r,s,o){const l=Ar.get(e);if(!l){Qn++;return}const a=i=>{i&&i.trigger()};if(so(),t==="clear")l.forEach(a);else{const i=de(e),c=i&&Vr(n);if(i&&n==="length"){const u=Number(r);l.forEach((d,f)=>{(f==="length"||f===Yn||!ut(f)&&f>=u)&&a(d)})}else switch((n!==void 0||l.has(void 0))&&a(l.get(n)),c&&a(l.get(Yn)),t){case"add":i?c&&a(l.get("length")):(a(l.get(Zt)),vn(e)&&a(l.get(Rs)));break;case"delete":i||(a(l.get(Zt)),vn(e)&&a(l.get(Rs)));break;case"set":vn(e)&&a(l.get(Zt));break}}oo()}function Zu(e,t){const n=Ar.get(e);return n&&n.get(t)}function an(e){const t=Se(e);return t===e?t:(Xe(t,"iterate",Yn),it(e)?t:t.map(ft))}function Kr(e){return Xe(e=Se(e),"iterate",Yn),e}function _t(e,t){return Dt(e)?_n(en(e)?ft(t):t):ft(t)}const ec={__proto__:null,[Symbol.iterator](){return ds(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return an(this).concat(...e.map(t=>de(t)?an(t):t))},entries(){return ds(this,"entries",e=>(e[1]=_t(this,e[1]),e))},every(e,t){return St(this,"every",e,t,void 0,arguments)},filter(e,t){return St(this,"filter",e,t,n=>n.map(r=>_t(this,r)),arguments)},find(e,t){return St(this,"find",e,t,n=>_t(this,n),arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,n=>_t(this,n),arguments)},findLastIndex(e,t){return St(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return St(this,"forEach",e,t,void 0,arguments)},includes(...e){return fs(this,"includes",e)},indexOf(...e){return fs(this,"indexOf",e)},join(e){return an(this).join(e)},lastIndexOf(...e){return fs(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return An(this,"pop")},push(...e){return An(this,"push",e)},reduce(e,...t){return Uo(this,"reduce",e,t)},reduceRight(e,...t){return Uo(this,"reduceRight",e,t)},shift(){return An(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return An(this,"splice",e)},toReversed(){return an(this).toReversed()},toSorted(e){return an(this).toSorted(e)},toSpliced(...e){return an(this).toSpliced(...e)},unshift(...e){return An(this,"unshift",e)},values(){return ds(this,"values",e=>_t(this,e))}};function ds(e,t,n){const r=Kr(e),s=r[t]();return r!==e&&!it(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const tc=Array.prototype;function St(e,t,n,r,s,o){const l=Kr(e),a=l!==e&&!it(e),i=l[t];if(i!==tc[t]){const d=i.apply(e,o);return a?ft(d):d}let c=n;l!==e&&(a?c=function(d,f){return n.call(this,_t(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=i.call(l,c,r);return a&&s?s(u):u}function Uo(e,t,n,r){const s=Kr(e),o=s!==e&&!it(e);let l=n,a=!1;s!==e&&(o?(a=r.length===0,l=function(c,u,d){return a&&(a=!1,c=_t(e,c)),n.call(this,c,_t(e,u),d,e)}):n.length>3&&(l=function(c,u,d){return n.call(this,c,u,d,e)}));const i=s[t](l,...r);return a?_t(e,i):i}function fs(e,t,n){const r=Se(e);Xe(r,"iterate",Yn);const s=r[t](...n);return(s===-1||s===!1)&&Wr(n[0])?(n[0]=Se(n[0]),r[t](...n)):s}function An(e,t,n=[]){Mt(),so();const r=Se(e)[t].apply(e,n);return oo(),It(),r}const nc=eo("__proto__,__v_isRef,__isVue"),Aa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function rc(e){ut(e)||(e=String(e));const t=Se(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class Pa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?pc:Ia:o?Ma:Ra).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=de(t);if(!s){let i;if(l&&(i=ec[n]))return i;if(n==="hasOwnProperty")return rc}const a=Reflect.get(t,n,Ue(t)?t:r);if((ut(n)?Aa.has(n):nc(n))||(s||Xe(t,"get",n),o))return a;if(Ue(a)){const i=l&&Vr(n)?a:a.value;return s&&Ae(i)?Xn(i):i}return Ae(a)?s?Xn(a):sn(a):a}}class Ta extends Pa{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const l=de(t)&&Vr(n);if(!this._isShallow){const c=Dt(o);if(!it(r)&&!Dt(r)&&(o=Se(o),r=Se(r)),!l&&Ue(o)&&!Ue(r))return c||(o.value=r),!0}const a=l?Number(n)<t.length:Oe(t,n),i=Reflect.set(t,n,r,Ue(t)?t:s);return t===Se(s)&&(a?wt(r,o)&&Pt(t,"set",n,r):Pt(t,"add",n,r)),i}deleteProperty(t,n){const r=Oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Pt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ut(n)||!Aa.has(n))&&Xe(t,"has",n),r}ownKeys(t){return Xe(t,"iterate",de(t)?"length":Zt),Reflect.ownKeys(t)}}class sc extends Pa{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const oc=new Ta,lc=new sc,ac=new Ta(!0);const Ms=e=>e,pr=e=>Reflect.getPrototypeOf(e);function ic(e,t,n){return function(...r){const s=this.__v_raw,o=Se(s),l=vn(o),a=e==="entries"||e===Symbol.iterator&&l,i=e==="keys"&&l,c=s[e](...r),u=n?Ms:t?_n:ft;return!t&&Xe(o,"iterate",i?Rs:Zt),Je(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 hr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uc(e,t){const n={get(s){const o=this.__v_raw,l=Se(o),a=Se(s);e||(wt(s,a)&&Xe(l,"get",s),Xe(l,"get",a));const{has:i}=pr(l),c=t?Ms:e?_n:ft;if(i.call(l,s))return c(o.get(s));if(i.call(l,a))return c(o.get(a));o!==l&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Xe(Se(s),"iterate",Zt),s.size},has(s){const o=this.__v_raw,l=Se(o),a=Se(s);return e||(wt(s,a)&&Xe(l,"has",s),Xe(l,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const l=this,a=l.__v_raw,i=Se(a),c=t?Ms:e?_n:ft;return!e&&Xe(i,"iterate",Zt),a.forEach((u,d)=>s.call(o,c(u),c(d),l))}};return Je(n,e?{add:hr("add"),set:hr("set"),delete:hr("delete"),clear:hr("clear")}:{add(s){const o=Se(this),l=pr(o),a=Se(s),i=!t&&!it(s)&&!Dt(s)?a:s;return l.has.call(o,i)||wt(s,i)&&l.has.call(o,s)||wt(a,i)&&l.has.call(o,a)||(o.add(i),Pt(o,"add",i,i)),this},set(s,o){!t&&!it(o)&&!Dt(o)&&(o=Se(o));const l=Se(this),{has:a,get:i}=pr(l);let c=a.call(l,s);c||(s=Se(s),c=a.call(l,s));const u=i.call(l,s);return l.set(s,o),c?wt(o,u)&&Pt(l,"set",s,o):Pt(l,"add",s,o),this},delete(s){const o=Se(this),{has:l,get:a}=pr(o);let i=l.call(o,s);i||(s=Se(s),i=l.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return i&&Pt(o,"delete",s,void 0),c},clear(){const s=Se(this),o=s.size!==0,l=s.clear();return o&&Pt(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=ic(s,e,t)}),n}function io(e,t){const n=uc(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Oe(n,s)&&s in r?n:r,s,o)}const cc={get:io(!1,!1)},dc={get:io(!1,!0)},fc={get:io(!0,!1)};const Ra=new WeakMap,Ma=new WeakMap,Ia=new WeakMap,pc=new WeakMap;function hc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sn(e){return Dt(e)?e:uo(e,!1,oc,cc,Ra)}function Da(e){return uo(e,!1,ac,dc,Ma)}function Xn(e){return uo(e,!0,lc,fc,Ia)}function uo(e,t,n,r,s){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const l=hc(Lu(e));if(l===0)return e;const a=new Proxy(e,l===2?r:n);return s.set(e,a),a}function en(e){return Dt(e)?en(e.__v_raw):!!(e&&e.__v_isReactive)}function Dt(e){return!!(e&&e.__v_isReadonly)}function it(e){return!!(e&&e.__v_isShallow)}function Wr(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function mc(e){return!Oe(e,"__v_skip")&&Object.isExtensible(e)&&ha(e,"__v_skip",!0),e}const ft=e=>Ae(e)?sn(e):e,_n=e=>Ae(e)?Xn(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function V(e){return ja(e,!1)}function Na(e){return ja(e,!0)}function ja(e,t){return Ue(e)?e:new vc(e,t)}class vc{constructor(t,n){this.dep=new ao,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:ft(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||it(t)||Dt(t);t=r?t:Se(t),wt(t,n)&&(this._rawValue=t,this._value=r?t:ft(t),this.dep.trigger())}}function gc(e){e.dep&&e.dep.trigger()}function h(e){return Ue(e)?e.value:e}function Et(e){return he(e)?e():h(e)}const yc={get:(e,t,n)=>t==="__v_raw"?e:h(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ue(s)&&!Ue(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ba(e){return en(e)?e:new Proxy(e,yc)}function Fa(e){const t=de(e)?new Array(e.length):{};for(const n in e)t[n]=La(e,n);return t}class bc{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=ut(n)?n:String(n),this._raw=Se(t);let s=!0,o=t;if(!de(t)||ut(this._key)||!Vr(this._key))do s=!Wr(o)||it(o);while(s&&(o=o.__v_raw));this._shallow=s}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&&Ue(this._raw[this._key])){const n=this._object[this._key];if(Ue(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Zu(this._raw,this._key)}}class _c{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 xc(e,t,n){return Ue(e)?e:he(e)?new _c(e):Ae(e)&&arguments.length>1?La(e,t,n):V(e)}function La(e,t,n){return new bc(e,t,n)}class wc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ao(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&De!==this)return ka(this,!0),!0}get value(){const t=this.dep.track();return Sa(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function kc(e,t,n=!1){let r,s;return he(e)?r=e:(r=e.get,s=e.set),new wc(r,s,n)}const mr={},Pr=new WeakMap;let Yt;function Ec(e,t=!1,n=Yt){if(n){let r=Pr.get(n);r||Pr.set(n,r=[]),r.push(e)}}function $c(e,t,n=Ie){const{immediate:r,deep:s,once:o,scheduler:l,augmentJob:a,call:i}=n,c=D=>s?D:it(D)||s===!1||s===0?Tt(D,1):Tt(D);let u,d,f,p,y=!1,x=!1;if(Ue(e)?(d=()=>e.value,y=it(e)):en(e)?(d=()=>c(e),y=!0):de(e)?(x=!0,y=e.some(D=>en(D)||it(D)),d=()=>e.map(D=>{if(Ue(D))return D.value;if(en(D))return c(D);if(he(D))return i?i(D,2):D()})):he(e)?t?d=i?()=>i(e,2):e:d=()=>{if(f){Mt();try{f()}finally{It()}}const D=Yt;Yt=u;try{return i?i(e,3,[p]):e(p)}finally{Yt=D}}:d=kt,t&&s){const D=d,G=s===!0?1/0:s;d=()=>Tt(D(),G)}const _=_a(),S=()=>{u.stop(),_&&_.active&&to(_.effects,u)};if(o&&t){const D=t;t=(...G)=>{D(...G),S()}}let k=x?new Array(e.length).fill(mr):mr;const M=D=>{if(!(!(u.flags&1)||!u.dirty&&!D))if(t){const G=u.run();if(s||y||(x?G.some((be,Y)=>wt(be,k[Y])):wt(G,k))){f&&f();const be=Yt;Yt=u;try{const Y=[G,k===mr?void 0:x&&k[0]===mr?[]:k,p];k=G,i?i(t,3,Y):t(...Y)}finally{Yt=be}}}else u.run()};return a&&a(M),u=new xa(d),u.scheduler=l?()=>l(M,!1):M,p=D=>Ec(D,!1,u),f=u.onStop=()=>{const D=Pr.get(u);if(D){if(i)i(D,4);else for(const G of D)G();Pr.delete(u)}},t?r?M(!0):k=u.run():l?l(M.bind(null,!0),!0):u.run(),S.pause=u.pause.bind(u),S.resume=u.resume.bind(u),S.stop=S,S}function Tt(e,t=1/0,n){if(t<=0||!Ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ue(e))Tt(e.value,t,n);else if(de(e))for(let r=0;r<e.length;r++)Tt(e[r],t,n);else if(ca(e)||vn(e))e.forEach(r=>{Tt(r,t,n)});else if(pa(e)){for(const r in e)Tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tt(e[r],t,n)}return e}function ir(e,t,n,r){try{return r?e(...r):e()}catch(s){Gr(s,t,n)}}function pt(e,t,n,r){if(he(e)){const s=ir(e,t,n,r);return s&&da(s)&&s.catch(o=>{Gr(o,t,n)}),s}if(de(e)){const s=[];for(let o=0;o<e.length;o++)s.push(pt(e[o],t,n,r));return s}}function Gr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Ie;if(t){let a=t.parent;const i=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,i,c)===!1)return}a=a.parent}if(o){Mt(),ir(o,null,10,[e,i,c]),It();return}}Sc(e,n,s,r,l)}function Sc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const nt=[];let bt=-1;const gn=[];let Ut=null,fn=0;const qa=Promise.resolve();let Tr=null;function ct(e){const t=Tr||qa;return e?t.then(this?e.bind(this):e):t}function Cc(e){let t=bt+1,n=nt.length;for(;t<n;){const r=t+n>>>1,s=nt[r],o=Zn(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function co(e){if(!(e.flags&1)){const t=Zn(e),n=nt[nt.length-1];!n||!(e.flags&2)&&t>=Zn(n)?nt.push(e):nt.splice(Cc(t),0,e),e.flags|=1,Va()}}function Va(){Tr||(Tr=qa.then(za))}function Oc(e){de(e)?gn.push(...e):Ut&&e.id===-1?Ut.splice(fn+1,0,e):e.flags&1||(gn.push(e),e.flags|=1),Va()}function zo(e,t,n=bt+1){for(;n<nt.length;n++){const r=nt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;nt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ua(e){if(gn.length){const t=[...new Set(gn)].sort((n,r)=>Zn(n)-Zn(r));if(gn.length=0,Ut){Ut.push(...t);return}for(Ut=t,fn=0;fn<Ut.length;fn++){const n=Ut[fn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ut=null,fn=0}}const Zn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function za(e){try{for(bt=0;bt<nt.length;bt++){const t=nt[bt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ir(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bt<nt.length;bt++){const t=nt[bt];t&&(t.flags&=-2)}bt=-1,nt.length=0,Ua(),Tr=null,(nt.length||gn.length)&&za()}}let Ke=null,Ha=null;function Rr(e){const t=Ke;return Ke=e,Ha=e&&e.type.__scopeId||null,t}function ne(e,t=Ke,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Dr(-1);const o=Rr(t);let l;try{l=e(...s)}finally{Rr(o),r._d&&Dr(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Is(e,t){if(Ke===null)return e;const n=Xr(Ke),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,l,a,i=Ie]=t[s];o&&(he(o)&&(o={mounted:o,updated:o}),o.deep&&Tt(l),r.push({dir:o,instance:n,value:l,oldValue:void 0,arg:a,modifiers:i}))}return e}function Jt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let l=0;l<s.length;l++){const a=s[l];o&&(a.oldValue=o[l].value);let i=a.dir[r];i&&(Mt(),pt(i,n,8,[e.el,a,e,t]),It())}}function zn(e,t){if(Ze){let n=Ze.provides;const r=Ze.parent&&Ze.parent.provides;r===n&&(n=Ze.provides=Object.create(r)),n[e]=t}}function rt(e,t,n=!1){const r=Bt();if(r||bn){let s=bn?bn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&he(t)?t.call(r&&r.proxy):t}}const Ac=Symbol.for("v-scx"),Pc=()=>rt(Ac);function er(e,t){return fo(e,null,t)}function Ge(e,t,n){return fo(e,t,n)}function fo(e,t,n=Ie){const{immediate:r,deep:s,flush:o,once:l}=n,a=Je({},n),i=t&&r||!t&&o!=="post";let c;if(rr){if(o==="sync"){const p=Pc();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!i){const p=()=>{};return p.stop=kt,p.resume=kt,p.pause=kt,p}}const u=Ze;a.call=(p,y,x)=>pt(p,u,y,x);let d=!1;o==="post"?a.scheduler=p=>{tt(p,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,y)=>{y?p():co(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=$c(e,t,a);return rr&&(c?c.push(f):i&&f()),f}function Tc(e,t,n){const r=this.proxy,s=Le(e)?e.includes(".")?Ka(r,e):()=>r[e]:e.bind(r,r);let o;he(t)?o=t:(o=t.handler,n=t);const l=cr(this),a=fo(s,o.bind(r),n);return l(),a}function Ka(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const qt=new WeakMap,Wa=Symbol("_vte"),Rc=e=>e.__isTeleport,Xt=e=>e&&(e.disabled||e.disabled===""),Mc=e=>e&&(e.defer||e.defer===""),Ho=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ko=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ds=(e,t)=>{const n=e&&e.to;return Le(n)?t?t(n):null:n},Ic={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,l,a,i,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:y,createText:x,createComment:_,parentNode:S}}=c,k=Xt(t.props);let{dynamicChildren:M}=t;const D=(Y,H,X)=>{Y.shapeFlag&16&&u(Y.children,H,X,s,o,l,a,i)},G=(Y=t)=>{const H=Xt(Y.props),X=Y.target=Ds(Y.props,y),q=Ns(X,Y,x,p);X&&(l!=="svg"&&Ho(X)?l="svg":l!=="mathml"&&Ko(X)&&(l="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(X),H||(D(Y,X,q),Nn(Y,!1)))},be=Y=>{const H=()=>{if(qt.get(Y)===H){if(qt.delete(Y),Xt(Y.props)){const X=S(Y.el)||n;D(Y,X,Y.anchor),Nn(Y,!0)}G(Y)}};qt.set(Y,H),tt(H,o)};if(e==null){const Y=t.el=x(""),H=t.anchor=x("");if(p(Y,n,r),p(H,n,r),Mc(t.props)||o&&o.pendingBranch){be(t);return}k&&(D(t,n,H),Nn(t,!0)),G()}else{t.el=e.el;const Y=t.anchor=e.anchor,H=qt.get(e);if(H){H.flags|=8,qt.delete(e),be(t);return}t.targetStart=e.targetStart;const X=t.target=e.target,q=t.targetAnchor=e.targetAnchor,ye=Xt(e.props),ve=ye?n:X,Ee=ye?Y:q;if(l==="svg"||Ho(X)?l="svg":(l==="mathml"||Ko(X))&&(l="mathml"),M?(f(e.dynamicChildren,M,ve,s,o,l,a),vo(e,t,!0)):i||d(e,t,ve,Ee,s,o,l,a,!1),k)ye?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vr(t,n,Y,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Be=t.target=Ds(t.props,y);Be&&vr(t,Be,null,c,0)}else ye&&vr(t,X,q,c,1);Nn(t,k)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:l,children:a,anchor:i,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=o||!Xt(f),y=qt.get(e);if(y&&(y.flags|=8,qt.delete(e)),d&&(s(c),s(u)),o&&s(i),!y&&l&16)for(let x=0;x<a.length;x++){const _=a[x];r(_,t,n,p,!!_.dynamicChildren)}},move:vr,hydrate:Dc};function vr(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:i,children:c,props:u}=e,d=o===2;if(d&&r(l,t,n),!qt.has(e)&&(!d||Xt(u))&&i&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&r(a,t,n)}function Dc(e,t,n,r,s,o,{o:{nextSibling:l,parentNode:a,querySelector:i,insert:c,createText:u}},d){function f(_,S){let k=S;for(;k;){if(k&&k.nodeType===8){if(k.data==="teleport start anchor")t.targetStart=k;else if(k.data==="teleport anchor"){t.targetAnchor=k,_._lpa=t.targetAnchor&&l(t.targetAnchor);break}}k=l(k)}}function p(_,S){S.anchor=d(l(_),S,a(_),n,r,s,o)}const y=t.target=Ds(t.props,i),x=Xt(t.props);if(y){const _=y._lpa||y.firstChild;t.shapeFlag&16&&(x?(p(e,t),f(y,_),t.targetAnchor||Ns(y,t,u,c,a(e)===y?e:null)):(t.anchor=l(e),f(y,_),t.targetAnchor||Ns(y,t,u,c),d(_&&l(_),t,y,n,r,s,o))),Nn(t,x)}else x&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=l(e));return t.anchor&&l(t.anchor)}const Nc=Ic;function Nn(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Ns(e,t,n,r,s=null){const o=t.targetStart=n(""),l=t.targetAnchor=n("");return o[Wa]=l,e&&(r(o,e,s),r(l,e,s)),l}const ps=Symbol("_leaveCb");function po(e,t){e.shapeFlag&6&&e.component?(e.transition=t,po(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 re(e,t){return he(e)?Je({name:e.name},t,{setup:e}):e}function jc(){const e=Bt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ga(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Wo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mr=new WeakMap;function Hn(e,t,n,r,s=!1){if(de(e)){e.forEach((x,_)=>Hn(x,t&&(de(t)?t[_]:t),n,r,s));return}if(yn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Hn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Xr(r.component):r.el,l=s?null:o,{i:a,r:i}=e,c=t&&t.r,u=a.refs===Ie?a.refs={}:a.refs,d=a.setupState,f=Se(d),p=d===Ie?ua:x=>Wo(u,x)?!1:Oe(f,x),y=(x,_)=>!(_&&Wo(u,_));if(c!=null&&c!==i){if(Go(t),Le(c))u[c]=null,p(c)&&(d[c]=null);else if(Ue(c)){const x=t;y(c,x.k)&&(c.value=null),x.k&&(u[x.k]=null)}}if(he(i))ir(i,a,12,[l,u]);else{const x=Le(i),_=Ue(i);if(x||_){const S=()=>{if(e.f){const k=x?p(i)?d[i]:u[i]:y()||!e.k?i.value:u[e.k];if(s)de(k)&&to(k,o);else if(de(k))k.includes(o)||k.push(o);else if(x)u[i]=[o],p(i)&&(d[i]=u[i]);else{const M=[o];y(i,e.k)&&(i.value=M),e.k&&(u[e.k]=M)}}else x?(u[i]=l,p(i)&&(d[i]=l)):_&&(y(i,e.k)&&(i.value=l),e.k&&(u[e.k]=l))};if(l){const k=()=>{S(),Mr.delete(e)};k.id=-1,Mr.set(e,k),tt(k,n)}else Go(e),S()}}}function Go(e){const t=Mr.get(e);t&&(t.flags|=8,Mr.delete(e))}Hr().requestIdleCallback;Hr().cancelIdleCallback;const yn=e=>!!e.type.__asyncLoader,Ja=e=>e.type.__isKeepAlive;function Qa(e,t){Xa(e,"a",t)}function Ya(e,t){Xa(e,"da",t)}function Xa(e,t,n=Ze){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Jr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ja(s.parent.vnode)&&Bc(r,t,n,s),s=s.parent}}function Bc(e,t,n,r){const s=Jr(t,e,r,!0);ur(()=>{to(r[t],s)},n)}function Jr(e,t,n=Ze,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{Mt();const a=cr(n),i=pt(t,n,e,l);return a(),It(),i});return r?s.unshift(o):s.push(o),o}}const jt=e=>(t,n=Ze)=>{(!rr||e==="sp")&&Jr(e,(...r)=>t(...r),n)},Fc=jt("bm"),Sn=jt("m"),Lc=jt("bu"),Za=jt("u"),on=jt("bum"),ur=jt("um"),qc=jt("sp"),Vc=jt("rtg"),Uc=jt("rtc");function zc(e,t=Ze){Jr("ec",e,t)}const Hc="components",ei=Symbol.for("v-ndc");function tn(e){return Le(e)?Kc(Hc,e,!1)||e:e||ei}function Kc(e,t,n=!0,r=!1){const s=Ke||Ze;if(s){const o=s.type;{const a=Od(o,!1);if(a&&(a===t||a===We(t)||a===zr(We(t))))return o}const l=Jo(s[e]||o[e],t)||Jo(s.appContext[e],t);return!l&&r?o:l}}function Jo(e,t){return e&&(e[t]||e[We(t)]||e[zr(We(t))])}function Ne(e,t,n,r){let s;const o=n,l=de(e);if(l||Le(e)){const a=l&&en(e);let i=!1,c=!1;a&&(i=!it(e),c=Dt(e),e=Kr(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(i?c?_n(ft(e[u])):ft(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(Ae(e))if(e[Symbol.iterator])s=Array.from(e,(a,i)=>t(a,i,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let i=0,c=a.length;i<c;i++){const u=a[i];s[i]=t(e[u],u,i,o)}}else s=[];return s}function je(e,t,n={},r,s){if(Ke.ce||Ke.parent&&yn(Ke.parent)&&Ke.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),g(),ee(ue,null,[K("slot",n,r&&r())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),g();const l=o&&ti(o(n)),a=n.key||l&&l.key,i=ee(ue,{key:(a&&!ut(a)?a:`_${t}`)+(!l&&r?"_fb":"")},l||(r?r():[]),l&&e._===1?64:-2);return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),o&&o._c&&(o._d=!0),i}function ti(e){return e.some(t=>nr(t)?!(t.type===$t||t.type===ue&&!ti(t.children)):!0)?e:null}const js=e=>e?_i(e)?Xr(e):js(e.parent):null,Kn=Je(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=>js(e.parent),$root:e=>js(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ri(e),$forceUpdate:e=>e.f||(e.f=()=>{co(e.update)}),$nextTick:e=>e.n||(e.n=ct.bind(e.proxy)),$watch:e=>Tc.bind(e)}),hs=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Oe(e,t),Wc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:l,type:a,appContext:i}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(hs(r,t))return l[t]=1,r[t];if(s!==Ie&&Oe(s,t))return l[t]=2,s[t];if(Oe(o,t))return l[t]=3,o[t];if(n!==Ie&&Oe(n,t))return l[t]=4,n[t];Bs&&(l[t]=0)}}const c=Kn[t];let u,d;if(c)return t==="$attrs"&&Xe(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ie&&Oe(n,t))return l[t]=4,n[t];if(d=i.config.globalProperties,Oe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return hs(s,t)?(s[t]=n,!0):r!==Ie&&Oe(r,t)?(r[t]=n,!0):Oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:l}},a){let i;return!!(n[a]||e!==Ie&&a[0]!=="$"&&Oe(e,a)||hs(t,a)||Oe(o,a)||Oe(r,a)||Oe(Kn,a)||Oe(s.config.globalProperties,a)||(i=l.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qo(e){return de(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Bs=!0;function Gc(e){const t=ri(e),n=e.proxy,r=e.ctx;Bs=!1,t.beforeCreate&&Yo(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:l,watch:a,provide:i,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:y,activated:x,deactivated:_,beforeDestroy:S,beforeUnmount:k,destroyed:M,unmounted:D,render:G,renderTracked:be,renderTriggered:Y,errorCaptured:H,serverPrefetch:X,expose:q,inheritAttrs:ye,components:ve,directives:Ee,filters:Be}=t;if(c&&Jc(c,r,null),l)for(const pe in l){const ce=l[pe];he(ce)&&(r[pe]=ce.bind(n))}if(s){const pe=s.call(n,n);Ae(pe)&&(e.data=sn(pe))}if(Bs=!0,o)for(const pe in o){const ce=o[pe],O=he(ce)?ce.bind(n,n):he(ce.get)?ce.get.bind(n,n):kt,T=!he(ce)&&he(ce.set)?ce.set.bind(n):kt,F=C({get:O,set:T});Object.defineProperty(r,pe,{enumerable:!0,configurable:!0,get:()=>F.value,set:L=>F.value=L})}if(a)for(const pe in a)ni(a[pe],r,n,pe);if(i){const pe=he(i)?i.call(n):i;Reflect.ownKeys(pe).forEach(ce=>{zn(ce,pe[ce])})}u&&Yo(u,e,"c");function $e(pe,ce){de(ce)?ce.forEach(O=>pe(O.bind(n))):ce&&pe(ce.bind(n))}if($e(Fc,d),$e(Sn,f),$e(Lc,p),$e(Za,y),$e(Qa,x),$e(Ya,_),$e(zc,H),$e(Uc,be),$e(Vc,Y),$e(on,k),$e(ur,D),$e(qc,X),de(q))if(q.length){const pe=e.exposed||(e.exposed={});q.forEach(ce=>{Object.defineProperty(pe,ce,{get:()=>n[ce],set:O=>n[ce]=O,enumerable:!0})})}else e.exposed||(e.exposed={});G&&e.render===kt&&(e.render=G),ye!=null&&(e.inheritAttrs=ye),ve&&(e.components=ve),Ee&&(e.directives=Ee),X&&Ga(e)}function Jc(e,t,n=kt){de(e)&&(e=Fs(e));for(const r in e){const s=e[r];let o;Ae(s)?"default"in s?o=rt(s.from||r,s.default,!0):o=rt(s.from||r):o=rt(s),Ue(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function Yo(e,t,n){pt(de(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ni(e,t,n,r){let s=r.includes(".")?Ka(n,r):()=>n[r];if(Le(e)){const o=t[e];he(o)&&Ge(s,o)}else if(he(e))Ge(s,e.bind(n));else if(Ae(e))if(de(e))e.forEach(o=>ni(o,t,n,r));else{const o=he(e.handler)?e.handler.bind(n):t[e.handler];he(o)&&Ge(s,o,e)}}function ri(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,a=o.get(t);let i;return a?i=a:!s.length&&!n&&!r?i=t:(i={},s.length&&s.forEach(c=>Ir(i,c,l,!0)),Ir(i,t,l)),Ae(t)&&o.set(t,i),i}function Ir(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Ir(e,o,n,!0),s&&s.forEach(l=>Ir(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=Qc[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Qc={data:Xo,props:Zo,emits:Zo,methods:jn,computed:jn,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:jn,directives:jn,watch:Xc,provide:Xo,inject:Yc};function Xo(e,t){return t?e?function(){return Je(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function Yc(e,t){return jn(Fs(e),Fs(t))}function Fs(e){if(de(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function et(e,t){return e?[...new Set([].concat(e,t))]:t}function jn(e,t){return e?Je(Object.create(null),e,t):t}function Zo(e,t){return e?de(e)&&de(t)?[...new Set([...e,...t])]:Je(Object.create(null),Qo(e),Qo(t??{})):t}function Xc(e,t){if(!e)return t;if(!t)return e;const n=Je(Object.create(null),e);for(const r in t)n[r]=et(e[r],t[r]);return n}function si(){return{app:null,config:{isNativeTag:ua,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 Zc=0;function ed(e,t){return function(r,s=null){he(r)||(r=Je({},r)),s!=null&&!Ae(s)&&(s=null);const o=si(),l=new WeakSet,a=[];let i=!1;const c=o.app={_uid:Zc++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Pd,get config(){return o.config},set config(u){},use(u,...d){return l.has(u)||(u&&he(u.install)?(l.add(u),u.install(c,...d)):he(u)&&(l.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,f){if(!i){const p=c._ceVNode||K(r,s);return p.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),i=!0,c._container=u,u.__vue_app__=c,Xr(p.component)}},onUnmount(u){a.push(u)},unmount(){i&&(pt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=bn;bn=c;try{return u()}finally{bn=d}}};return c}}let bn=null;const td=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${We(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function nd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ie;let s=n;const o=t.startsWith("update:"),l=o&&td(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>Le(u)?u.trim():u)),l.number&&(s=n.map(no)));let a,i=r[a=$r(t)]||r[a=$r(We(t))];!i&&o&&(i=r[a=$r(Kt(t))]),i&&pt(i,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,pt(c,e,6,s)}}const rd=new WeakMap;function oi(e,t,n=!1){const r=n?rd:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let l={},a=!1;if(!he(e)){const i=c=>{const u=oi(c,t,!0);u&&(a=!0,Je(l,u))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!o&&!a?(Ae(e)&&r.set(e,null),null):(de(o)?o.forEach(i=>l[i]=null):Je(l,o),Ae(e)&&r.set(e,l),l)}function Qr(e,t){return!e||!Lr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,Kt(t))||Oe(e,t))}function el(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:l,attrs:a,emit:i,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:y,inheritAttrs:x}=e,_=Rr(e);let S,k;try{if(n.shapeFlag&4){const D=s||r,G=D;S=xt(c.call(G,D,u,d,p,f,y)),k=a}else{const D=t;S=xt(D.length>1?D(d,{attrs:a,slots:l,emit:i}):D(d,null)),k=t.props?a:sd(a)}}catch(D){Wn.length=0,Gr(D,e,1),S=K($t)}let M=S;if(k&&x!==!1){const D=Object.keys(k),{shapeFlag:G}=M;D.length&&G&7&&(o&&D.some(qr)&&(k=od(k,o)),M=nn(M,k,!1,!0))}return n.dirs&&(M=nn(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&po(M,n.transition),S=M,Rr(_),S}const sd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Lr(n))&&((t||(t={}))[n]=e[n]);return t},od=(e,t)=>{const n={};for(const r in e)(!qr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ld(e,t,n){const{props:r,children:s,component:o}=e,{props:l,children:a,patchFlag:i}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return r?tl(r,l,c):!!l;if(i&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(li(l,r,f)&&!Qr(c,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?tl(r,l,c):!0:!!l;return!1}function tl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(li(t,e,o)&&!Qr(n,o))return!0}return!1}function li(e,t,n){const r=e[n],s=t[n];return n==="style"&&Ae(r)&&Ae(s)?!ro(r,s):r!==s}function ad({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const ai={},ii=()=>Object.create(ai),ui=e=>Object.getPrototypeOf(e)===ai;function id(e,t,n,r=!1){const s={},o=ii();e.propsDefaults=Object.create(null),ci(e,t,s,o);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Da(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ud(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:l}}=e,a=Se(s),[i]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Qr(e.emitsOptions,f))continue;const p=t[f];if(i)if(Oe(o,f))p!==o[f]&&(o[f]=p,c=!0);else{const y=We(f);s[y]=Ls(i,a,y,p,e,!1)}else p!==o[f]&&(o[f]=p,c=!0)}}}else{ci(e,t,s,o)&&(c=!0);let u;for(const d in a)(!t||!Oe(t,d)&&((u=Kt(d))===d||!Oe(t,u)))&&(i?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=Ls(i,a,d,void 0,e,!0)):delete s[d]);if(o!==a)for(const d in o)(!t||!Oe(t,d))&&(delete o[d],c=!0)}c&&Pt(e.attrs,"set","")}function ci(e,t,n,r){const[s,o]=e.propsOptions;let l=!1,a;if(t)for(let i in t){if(qn(i))continue;const c=t[i];let u;s&&Oe(s,u=We(i))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Qr(e.emitsOptions,i)||(!(i in r)||c!==r[i])&&(r[i]=c,l=!0)}if(o){const i=Se(n),c=a||Ie;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Ls(s,i,d,c[d],e,!Oe(c,d))}}return l}function Ls(e,t,n,r,s,o){const l=e[n];if(l!=null){const a=Oe(l,"default");if(a&&r===void 0){const i=l.default;if(l.type!==Function&&!l.skipFactory&&he(i)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=cr(s);r=c[n]=i.call(null,t),u()}}else r=i;s.ce&&s.ce._setProp(n,r)}l[0]&&(o&&!a?r=!1:l[1]&&(r===""||r===Kt(n))&&(r=!0))}return r}const cd=new WeakMap;function di(e,t,n=!1){const r=n?cd:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,l={},a=[];let i=!1;if(!he(e)){const u=d=>{i=!0;const[f,p]=di(d,t,!0);Je(l,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(!o&&!i)return Ae(e)&&r.set(e,mn),mn;if(de(o))for(let u=0;u<o.length;u++){const d=We(o[u]);nl(d)&&(l[d]=Ie)}else if(o)for(const u in o){const d=We(u);if(nl(d)){const f=o[u],p=l[d]=de(f)||he(f)?{type:f}:Je({},f),y=p.type;let x=!1,_=!0;if(de(y))for(let S=0;S<y.length;++S){const k=y[S],M=he(k)&&k.name;if(M==="Boolean"){x=!0;break}else M==="String"&&(_=!1)}else x=he(y)&&y.name==="Boolean";p[0]=x,p[1]=_,(x||Oe(p,"default"))&&a.push(d)}}const c=[l,a];return Ae(e)&&r.set(e,c),c}function nl(e){return e[0]!=="$"&&!qn(e)}const ho=e=>e==="_"||e==="_ctx"||e==="$stable",mo=e=>de(e)?e.map(xt):[xt(e)],dd=(e,t,n)=>{if(t._n)return t;const r=ne((...s)=>mo(t(...s)),n);return r._c=!1,r},fi=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ho(s))continue;const o=e[s];if(he(o))t[s]=dd(s,o,r);else if(o!=null){const l=mo(o);t[s]=()=>l}}},pi=(e,t)=>{const n=mo(t);e.slots.default=()=>n},hi=(e,t,n)=>{for(const r in t)(n||!ho(r))&&(e[r]=t[r])},fd=(e,t,n)=>{const r=e.slots=ii();if(e.vnode.shapeFlag&32){const s=t._;s?(hi(r,t,n),n&&ha(r,"_",s,!0)):fi(t,r)}else t&&pi(e,t)},pd=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,l=Ie;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:hi(s,t,n):(o=!t.$stable,fi(t,s)),l=t}else t&&(pi(e,t),l={default:1});if(o)for(const a in s)!ho(a)&&l[a]==null&&delete s[a]},tt=yd;function hd(e){return md(e)}function md(e,t){const n=Hr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:l,createText:a,createComment:i,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=kt,insertStaticContent:y}=e,x=(m,v,b,R=null,I=null,A=null,W=void 0,z=null,U=!!v.dynamicChildren)=>{if(m===v)return;m&&!Pn(m,v)&&(R=$(m),L(m,I,A,!0),m=null),v.patchFlag===-2&&(U=!1,v.dynamicChildren=null);const{type:j,ref:ie,shapeFlag:Q}=v;switch(j){case Yr:_(m,v,b,R);break;case $t:S(m,v,b,R);break;case vs:m==null&&k(v,b,R,W);break;case ue:ve(m,v,b,R,I,A,W,z,U);break;default:Q&1?G(m,v,b,R,I,A,W,z,U):Q&6?Ee(m,v,b,R,I,A,W,z,U):(Q&64||Q&128)&&j.process(m,v,b,R,I,A,W,z,U,le)}ie!=null&&I?Hn(ie,m&&m.ref,A,v||m,!v):ie==null&&m&&m.ref!=null&&Hn(m.ref,null,A,m,!0)},_=(m,v,b,R)=>{if(m==null)r(v.el=a(v.children),b,R);else{const I=v.el=m.el;v.children!==m.children&&c(I,v.children)}},S=(m,v,b,R)=>{m==null?r(v.el=i(v.children||""),b,R):v.el=m.el},k=(m,v,b,R)=>{[m.el,m.anchor]=y(m.children,v,b,R,m.el,m.anchor)},M=({el:m,anchor:v},b,R)=>{let I;for(;m&&m!==v;)I=f(m),r(m,b,R),m=I;r(v,b,R)},D=({el:m,anchor:v})=>{let b;for(;m&&m!==v;)b=f(m),s(m),m=b;s(v)},G=(m,v,b,R,I,A,W,z,U)=>{if(v.type==="svg"?W="svg":v.type==="math"&&(W="mathml"),m==null)be(v,b,R,I,A,W,z,U);else{const j=m.el&&m.el._isVueCE?m.el:null;try{j&&j._beginPatch(),X(m,v,I,A,W,z,U)}finally{j&&j._endPatch()}}},be=(m,v,b,R,I,A,W,z)=>{let U,j;const{props:ie,shapeFlag:Q,transition:ae,dirs:fe}=m;if(U=m.el=l(m.type,A,ie&&ie.is,ie),Q&8?u(U,m.children):Q&16&&H(m.children,U,null,R,I,ms(m,A),W,z),fe&&Jt(m,null,R,"created"),Y(U,m,m.scopeId,W,R),ie){for(const Re in ie)Re!=="value"&&!qn(Re)&&o(U,Re,null,ie[Re],A,R);"value"in ie&&o(U,"value",null,ie.value,A),(j=ie.onVnodeBeforeMount)&&yt(j,R,m)}fe&&Jt(m,null,R,"beforeMount");const ke=vd(I,ae);ke&&ae.beforeEnter(U),r(U,v,b),((j=ie&&ie.onVnodeMounted)||ke||fe)&&tt(()=>{j&&yt(j,R,m),ke&&ae.enter(U),fe&&Jt(m,null,R,"mounted")},I)},Y=(m,v,b,R,I)=>{if(b&&p(m,b),R)for(let A=0;A<R.length;A++)p(m,R[A]);if(I){let A=I.subTree;if(v===A||gi(A.type)&&(A.ssContent===v||A.ssFallback===v)){const W=I.vnode;Y(m,W,W.scopeId,W.slotScopeIds,I.parent)}}},H=(m,v,b,R,I,A,W,z,U=0)=>{for(let j=U;j<m.length;j++){const ie=m[j]=z?At(m[j]):xt(m[j]);x(null,ie,v,b,R,I,A,W,z)}},X=(m,v,b,R,I,A,W)=>{const z=v.el=m.el;let{patchFlag:U,dynamicChildren:j,dirs:ie}=v;U|=m.patchFlag&16;const Q=m.props||Ie,ae=v.props||Ie;let fe;if(b&&Qt(b,!1),(fe=ae.onVnodeBeforeUpdate)&&yt(fe,b,v,m),ie&&Jt(v,m,b,"beforeUpdate"),b&&Qt(b,!0),(Q.innerHTML&&ae.innerHTML==null||Q.textContent&&ae.textContent==null)&&u(z,""),j?q(m.dynamicChildren,j,z,b,R,ms(v,I),A):W||ce(m,v,z,null,b,R,ms(v,I),A,!1),U>0){if(U&16)ye(z,Q,ae,b,I);else if(U&2&&Q.class!==ae.class&&o(z,"class",null,ae.class,I),U&4&&o(z,"style",Q.style,ae.style,I),U&8){const ke=v.dynamicProps;for(let Re=0;Re<ke.length;Re++){const Pe=ke[Re],qe=Q[Pe],He=ae[Pe];(He!==qe||Pe==="value")&&o(z,Pe,qe,He,I,b)}}U&1&&m.children!==v.children&&u(z,v.children)}else!W&&j==null&&ye(z,Q,ae,b,I);((fe=ae.onVnodeUpdated)||ie)&&tt(()=>{fe&&yt(fe,b,v,m),ie&&Jt(v,m,b,"updated")},R)},q=(m,v,b,R,I,A,W)=>{for(let z=0;z<v.length;z++){const U=m[z],j=v[z],ie=U.el&&(U.type===ue||!Pn(U,j)||U.shapeFlag&198)?d(U.el):b;x(U,j,ie,null,R,I,A,W,!0)}},ye=(m,v,b,R,I)=>{if(v!==b){if(v!==Ie)for(const A in v)!qn(A)&&!(A in b)&&o(m,A,v[A],null,I,R);for(const A in b){if(qn(A))continue;const W=b[A],z=v[A];W!==z&&A!=="value"&&o(m,A,z,W,I,R)}"value"in b&&o(m,"value",v.value,b.value,I)}},ve=(m,v,b,R,I,A,W,z,U)=>{const j=v.el=m?m.el:a(""),ie=v.anchor=m?m.anchor:a("");let{patchFlag:Q,dynamicChildren:ae,slotScopeIds:fe}=v;fe&&(z=z?z.concat(fe):fe),m==null?(r(j,b,R),r(ie,b,R),H(v.children||[],b,ie,I,A,W,z,U)):Q>0&&Q&64&&ae&&m.dynamicChildren&&m.dynamicChildren.length===ae.length?(q(m.dynamicChildren,ae,b,I,A,W,z),(v.key!=null||I&&v===I.subTree)&&vo(m,v,!0)):ce(m,v,b,ie,I,A,W,z,U)},Ee=(m,v,b,R,I,A,W,z,U)=>{v.slotScopeIds=z,m==null?v.shapeFlag&512?I.ctx.activate(v,b,R,W,U):Be(v,b,R,I,A,W,U):Te(m,v,U)},Be=(m,v,b,R,I,A,W)=>{const z=m.component=kd(m,R,I);if(Ja(m)&&(z.ctx.renderer=le),Ed(z,!1,W),z.asyncDep){if(I&&I.registerDep(z,$e,W),!m.el){const U=z.subTree=K($t);S(null,U,v,b),m.placeholder=U.el}}else $e(z,m,v,b,I,A,W)},Te=(m,v,b)=>{const R=v.component=m.component;if(ld(m,v,b))if(R.asyncDep&&!R.asyncResolved){pe(R,v,b);return}else R.next=v,R.update();else v.el=m.el,R.vnode=v},$e=(m,v,b,R,I,A,W)=>{const z=()=>{if(m.isMounted){let{next:Q,bu:ae,u:fe,parent:ke,vnode:Re}=m;{const vt=mi(m);if(vt){Q&&(Q.el=Re.el,pe(m,Q,W)),vt.asyncDep.then(()=>{tt(()=>{m.isUnmounted||j()},I)});return}}let Pe=Q,qe;Qt(m,!1),Q?(Q.el=Re.el,pe(m,Q,W)):Q=Re,ae&&Sr(ae),(qe=Q.props&&Q.props.onVnodeBeforeUpdate)&&yt(qe,ke,Q,Re),Qt(m,!0);const He=el(m),mt=m.subTree;m.subTree=He,x(mt,He,d(mt.el),$(mt),m,I,A),Q.el=He.el,Pe===null&&ad(m,He.el),fe&&tt(fe,I),(qe=Q.props&&Q.props.onVnodeUpdated)&&tt(()=>yt(qe,ke,Q,Re),I)}else{let Q;const{el:ae,props:fe}=v,{bm:ke,m:Re,parent:Pe,root:qe,type:He}=m,mt=yn(v);Qt(m,!1),ke&&Sr(ke),!mt&&(Q=fe&&fe.onVnodeBeforeMount)&&yt(Q,Pe,v),Qt(m,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(He,m.parent?m.parent.type:void 0);const vt=m.subTree=el(m);x(null,vt,b,R,m,I,A),v.el=vt.el}if(Re&&tt(Re,I),!mt&&(Q=fe&&fe.onVnodeMounted)){const vt=v;tt(()=>yt(Q,Pe,vt),I)}(v.shapeFlag&256||Pe&&yn(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&m.a&&tt(m.a,I),m.isMounted=!0,v=b=R=null}};m.scope.on();const U=m.effect=new xa(z);m.scope.off();const j=m.update=U.run.bind(U),ie=m.job=U.runIfDirty.bind(U);ie.i=m,ie.id=m.uid,U.scheduler=()=>co(ie),Qt(m,!0),j()},pe=(m,v,b)=>{v.component=m;const R=m.vnode.props;m.vnode=v,m.next=null,ud(m,v.props,R,b),pd(m,v.children,b),Mt(),zo(m),It()},ce=(m,v,b,R,I,A,W,z,U=!1)=>{const j=m&&m.children,ie=m?m.shapeFlag:0,Q=v.children,{patchFlag:ae,shapeFlag:fe}=v;if(ae>0){if(ae&128){T(j,Q,b,R,I,A,W,z,U);return}else if(ae&256){O(j,Q,b,R,I,A,W,z,U);return}}fe&8?(ie&16&&ge(j,I,A),Q!==j&&u(b,Q)):ie&16?fe&16?T(j,Q,b,R,I,A,W,z,U):ge(j,I,A,!0):(ie&8&&u(b,""),fe&16&&H(Q,b,R,I,A,W,z,U))},O=(m,v,b,R,I,A,W,z,U)=>{m=m||mn,v=v||mn;const j=m.length,ie=v.length,Q=Math.min(j,ie);let ae;for(ae=0;ae<Q;ae++){const fe=v[ae]=U?At(v[ae]):xt(v[ae]);x(m[ae],fe,b,null,I,A,W,z,U)}j>ie?ge(m,I,A,!0,!1,Q):H(v,b,R,I,A,W,z,U,Q)},T=(m,v,b,R,I,A,W,z,U)=>{let j=0;const ie=v.length;let Q=m.length-1,ae=ie-1;for(;j<=Q&&j<=ae;){const fe=m[j],ke=v[j]=U?At(v[j]):xt(v[j]);if(Pn(fe,ke))x(fe,ke,b,null,I,A,W,z,U);else break;j++}for(;j<=Q&&j<=ae;){const fe=m[Q],ke=v[ae]=U?At(v[ae]):xt(v[ae]);if(Pn(fe,ke))x(fe,ke,b,null,I,A,W,z,U);else break;Q--,ae--}if(j>Q){if(j<=ae){const fe=ae+1,ke=fe<ie?v[fe].el:R;for(;j<=ae;)x(null,v[j]=U?At(v[j]):xt(v[j]),b,ke,I,A,W,z,U),j++}}else if(j>ae)for(;j<=Q;)L(m[j],I,A,!0),j++;else{const fe=j,ke=j,Re=new Map;for(j=ke;j<=ae;j++){const st=v[j]=U?At(v[j]):xt(v[j]);st.key!=null&&Re.set(st.key,j)}let Pe,qe=0;const He=ae-ke+1;let mt=!1,vt=0;const On=new Array(He);for(j=0;j<He;j++)On[j]=0;for(j=fe;j<=Q;j++){const st=m[j];if(qe>=He){L(st,I,A,!0);continue}let gt;if(st.key!=null)gt=Re.get(st.key);else for(Pe=ke;Pe<=ae;Pe++)if(On[Pe-ke]===0&&Pn(st,v[Pe])){gt=Pe;break}gt===void 0?L(st,I,A,!0):(On[gt-ke]=j+1,gt>=vt?vt=gt:mt=!0,x(st,v[gt],b,null,I,A,W,z,U),qe++)}const jo=mt?gd(On):mn;for(Pe=jo.length-1,j=He-1;j>=0;j--){const st=ke+j,gt=v[st],Bo=v[st+1],Fo=st+1<ie?Bo.el||vi(Bo):R;On[j]===0?x(null,gt,b,Fo,I,A,W,z,U):mt&&(Pe<0||j!==jo[Pe]?F(gt,b,Fo,2):Pe--)}}},F=(m,v,b,R,I=null)=>{const{el:A,type:W,transition:z,children:U,shapeFlag:j}=m;if(j&6){F(m.component.subTree,v,b,R);return}if(j&128){m.suspense.move(v,b,R);return}if(j&64){W.move(m,v,b,le);return}if(W===ue){r(A,v,b);for(let Q=0;Q<U.length;Q++)F(U[Q],v,b,R);r(m.anchor,v,b);return}if(W===vs){M(m,v,b);return}if(R!==2&&j&1&&z)if(R===0)z.persisted&&!A[ps]?r(A,v,b):(z.beforeEnter(A),r(A,v,b),tt(()=>z.enter(A),I));else{const{leave:Q,delayLeave:ae,afterLeave:fe}=z,ke=()=>{m.ctx.isUnmounted?s(A):r(A,v,b)},Re=()=>{const Pe=A._isLeaving||!!A[ps];A._isLeaving&&A[ps](!0),z.persisted&&!Pe?ke():Q(A,()=>{ke(),fe&&fe()})};ae?ae(A,ke,Re):Re()}else r(A,v,b)},L=(m,v,b,R=!1,I=!1)=>{const{type:A,props:W,ref:z,children:U,dynamicChildren:j,shapeFlag:ie,patchFlag:Q,dirs:ae,cacheIndex:fe,memo:ke}=m;if(Q===-2&&(I=!1),z!=null&&(Mt(),Hn(z,null,b,m,!0),It()),fe!=null&&(v.renderCache[fe]=void 0),ie&256){v.ctx.deactivate(m);return}const Re=ie&1&&ae,Pe=!yn(m);let qe;if(Pe&&(qe=W&&W.onVnodeBeforeUnmount)&&yt(qe,v,m),ie&6)oe(m.component,b,R);else{if(ie&128){m.suspense.unmount(b,R);return}Re&&Jt(m,null,v,"beforeUnmount"),ie&64?m.type.remove(m,v,b,le,R):j&&!j.hasOnce&&(A!==ue||Q>0&&Q&64)?ge(j,v,b,!1,!0):(A===ue&&Q&384||!I&&ie&16)&&ge(U,v,b),R&&te(m)}const He=ke!=null&&fe==null;(Pe&&(qe=W&&W.onVnodeUnmounted)||Re||He)&&tt(()=>{qe&&yt(qe,v,m),Re&&Jt(m,null,v,"unmounted"),He&&(m.el=null)},b)},te=m=>{const{type:v,el:b,anchor:R,transition:I}=m;if(v===ue){N(b,R);return}if(v===vs){D(m);return}const A=()=>{s(b),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(m.shapeFlag&1&&I&&!I.persisted){const{leave:W,delayLeave:z}=I,U=()=>W(b,A);z?z(m.el,A,U):U()}else A()},N=(m,v)=>{let b;for(;m!==v;)b=f(m),s(m),m=b;s(v)},oe=(m,v,b)=>{const{bum:R,scope:I,job:A,subTree:W,um:z,m:U,a:j}=m;rl(U),rl(j),R&&Sr(R),I.stop(),A&&(A.flags|=8,L(W,m,v,b)),z&&tt(z,v),tt(()=>{m.isUnmounted=!0},v)},ge=(m,v,b,R=!1,I=!1,A=0)=>{for(let W=A;W<m.length;W++)L(m[W],v,b,R,I)},$=m=>{if(m.shapeFlag&6)return $(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const v=f(m.anchor||m.el),b=v&&v[Wa];return b?f(b):v};let Z=!1;const J=(m,v,b)=>{let R;m==null?v._vnode&&(L(v._vnode,null,null,!0),R=v._vnode.component):x(v._vnode||null,m,v,null,null,null,b),v._vnode=m,Z||(Z=!0,zo(R),Ua(),Z=!1)},le={p:x,um:L,m:F,r:te,mt:Be,mc:H,pc:ce,pbc:q,n:$,o:e};return{render:J,hydrate:void 0,createApp:ed(J)}}function ms({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 Qt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vo(e,t,n=!1){const r=e.children,s=t.children;if(de(r)&&de(s))for(let o=0;o<r.length;o++){const l=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=At(s[o]),a.el=l.el),!n&&a.patchFlag!==-2&&vo(l,a)),a.type===Yr&&(a.patchFlag===-1&&(a=s[o]=At(a)),a.el=l.el),a.type===$t&&!a.el&&(a.el=l.el)}}function gd(e){const t=e.slice(),n=[0];let r,s,o,l,a;const i=e.length;for(r=0;r<i;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,l=n.length-1;o<l;)a=o+l>>1,e[n[a]]<c?o=a+1:l=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function mi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mi(t)}function rl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function vi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?vi(t.subTree):null}const gi=e=>e.__isSuspense;function yd(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):Oc(e)}const ue=Symbol.for("v-fgt"),Yr=Symbol.for("v-txt"),$t=Symbol.for("v-cmt"),vs=Symbol.for("v-stc"),Wn=[];let at=null;function g(e=!1){Wn.push(at=e?null:[])}function bd(){Wn.pop(),at=Wn[Wn.length-1]||null}let tr=1;function Dr(e,t=!1){tr+=e,e<0&&at&&t&&(at.hasOnce=!0)}function yi(e){return e.dynamicChildren=tr>0?at||mn:null,bd(),tr>0&&at&&at.push(e),e}function w(e,t,n,r,s,o){return yi(E(e,t,n,r,s,o,!0))}function ee(e,t,n,r,s){return yi(K(e,t,n,r,s,!0))}function nr(e){return e?e.__v_isVNode===!0:!1}function Pn(e,t){return e.type===t.type&&e.key===t.key}const bi=({key:e})=>e??null,Cr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Ue(e)||he(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,r=0,s=null,o=e===ue?0:1,l=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bi(t),ref:t&&Cr(t),scopeId:Ha,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ke};return a?(go(i,n),o&128&&e.normalize(i)):n&&(i.shapeFlag|=Le(n)?8:16),tr>0&&!l&&at&&(i.patchFlag>0||o&6)&&i.patchFlag!==32&&at.push(i),i}const K=_d;function _d(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===ei)&&(e=$t),nr(e)){const a=nn(e,t,!0);return n&&go(a,n),tr>0&&!o&&at&&(a.shapeFlag&6?at[at.indexOf(e)]=a:at.push(a)),a.patchFlag=-2,a}if(Ad(e)&&(e=e.__vccOpts),t){t=ln(t);let{class:a,style:i}=t;a&&!Le(a)&&(t.class=me(a)),Ae(i)&&(Wr(i)&&!de(i)&&(i=Je({},i)),t.style=ar(i))}const l=Le(e)?1:gi(e)?128:Rc(e)?64:Ae(e)?4:he(e)?2:0;return E(e,t,n,r,s,l,o,!0)}function ln(e){return e?Wr(e)||ui(e)?Je({},e):e:null}function nn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:l,children:a,transition:i}=e,c=t?Qe(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&bi(c),ref:t&&t.ref?n&&o?de(o)?o.concat(Cr(t)):[o,Cr(t)]:Cr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&r&&po(u,i.clone(u)),u}function we(e=" ",t=0){return K(Yr,null,e,t)}function se(e="",t=!1){return t?(g(),ee($t,null,e)):K($t,null,e)}function xt(e){return e==null||typeof e=="boolean"?K($t):de(e)?K(ue,null,e.slice()):nr(e)?At(e):K(Yr,null,String(e))}function At(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nn(e)}function go(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(de(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),go(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!ui(t)?t._ctx=Ke:s===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:Ke},n=32):(t=String(t),r&64?(n=16,t=[we(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qe(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=me([t.class,r.class]));else if(s==="style")t.style=ar([t.style,r.style]);else if(Lr(s)){const o=t[s],l=r[s];l&&o!==l&&!(de(o)&&o.includes(l))?t[s]=o?[].concat(o,l):l:l==null&&o==null&&!qr(s)&&(t[s]=l)}else s!==""&&(t[s]=r[s])}return t}function yt(e,t,n,r=null){pt(e,t,7,[n,r])}const xd=si();let wd=0;function kd(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||xd,o={uid:wd++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ya(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:di(r,s),emitsOptions:oi(r,s),emit:null,emitted:null,propsDefaults:Ie,inheritAttrs:r.inheritAttrs,ctx:Ie,data:Ie,props:Ie,attrs:Ie,slots:Ie,refs:Ie,setupState:Ie,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=nd.bind(null,o),e.ce&&e.ce(o),o}let Ze=null;const Bt=()=>Ze||Ke;let Nr,qs;{const e=Hr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(l=>l(o)):s[0](o)}};Nr=t("__VUE_INSTANCE_SETTERS__",n=>Ze=n),qs=t("__VUE_SSR_SETTERS__",n=>rr=n)}const cr=e=>{const t=Ze;return Nr(e),e.scope.on(),()=>{e.scope.off(),Nr(t)}},sl=()=>{Ze&&Ze.scope.off(),Nr(null)};function _i(e){return e.vnode.shapeFlag&4}let rr=!1;function Ed(e,t=!1,n=!1){t&&qs(t);const{props:r,children:s}=e.vnode,o=_i(e);id(e,r,o,t),fd(e,s,n||t);const l=o?$d(e,t):void 0;return t&&qs(!1),l}function $d(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wc);const{setup:r}=n;if(r){Mt();const s=e.setupContext=r.length>1?Cd(e):null,o=cr(e),l=ir(r,e,0,[e.props,s]),a=da(l);if(It(),o(),(a||e.sp)&&!yn(e)&&Ga(e),a){if(l.then(sl,sl),t)return l.then(i=>{ol(e,i)}).catch(i=>{Gr(i,e,0)});e.asyncDep=l}else ol(e,l)}else xi(e)}function ol(e,t,n){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=Ba(t)),xi(e)}function xi(e,t,n){const r=e.type;e.render||(e.render=r.render||kt);{const s=cr(e);Mt();try{Gc(e)}finally{It(),s()}}}const Sd={get(e,t){return Xe(e,"get",""),e[t]}};function Cd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sd),slots:e.slots,emit:e.emit,expose:t}}function Xr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ba(mc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kn)return Kn[n](e)},has(t,n){return n in t||n in Kn}})):e.proxy}function Od(e,t=!0){return he(e)?e.displayName||e.name:e.name||t&&e.__name}function Ad(e){return he(e)&&"__vccOpts"in e}const C=(e,t)=>kc(e,t,rr);function Rt(e,t,n){try{Dr(-1);const r=arguments.length;return r===2?Ae(t)&&!de(t)?nr(t)?K(e,null,[t]):K(e,t):K(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&nr(n)&&(n=[n]),K(e,t,n))}finally{Dr(1)}}const Pd="3.5.35";let Vs;const ll=typeof window<"u"&&window.trustedTypes;if(ll)try{Vs=ll.createPolicy("vue",{createHTML:e=>e})}catch{}const wi=Vs?e=>Vs.createHTML(e):e=>e,Td="http://www.w3.org/2000/svg",Rd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,al=Ot&&Ot.createElement("template"),Md={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Ot.createElementNS(Td,e):t==="mathml"?Ot.createElementNS(Rd,e):n?Ot.createElement(e,{is:n}):Ot.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const l=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{al.innerHTML=wi(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=al.content;if(r==="svg"||r==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Id=Symbol("_vtc");function Dd(e,t,n){const r=e[Id];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jr=Symbol("_vod"),ki=Symbol("_vsh"),Nd={name:"show",beforeMount(e,{value:t},{transition:n}){e[jr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tn(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),Tn(e,!0),r.enter(e)):r.leave(e,()=>{Tn(e,!1)}):Tn(e,t))},beforeUnmount(e,{value:t}){Tn(e,t)}};function Tn(e,t){e.style.display=t?e[jr]:"none",e[ki]=!t}const jd=Symbol(""),Bd=/(?:^|;)\s*display\s*:/;function Fd(e,t,n){const r=e.style,s=Le(n);let o=!1;if(n&&!s){if(t)if(Le(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();n[a]==null&&Bn(r,a,"")}else for(const l in t)n[l]==null&&Bn(r,l,"");for(const l in n){l==="display"&&(o=!0);const a=n[l];a!=null?qd(e,l,!Le(t)&&t?t[l]:void 0,a)||Bn(r,l,a):Bn(r,l,"")}}else if(s){if(t!==n){const l=r[jd];l&&(n+=";"+l),r.cssText=n,o=Bd.test(n)}}else t&&e.removeAttribute("style");jr in e&&(e[jr]=o?r.display:"",e[ki]&&(r.display="none"))}const il=/\s*!important$/;function Bn(e,t,n){if(de(n))n.forEach(r=>Bn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ld(e,t);il.test(n)?e.setProperty(Kt(r),n.replace(il,""),"important"):e[r]=n}}const ul=["Webkit","Moz","ms"],gs={};function Ld(e,t){const n=gs[t];if(n)return n;let r=We(t);if(r!=="filter"&&r in e)return gs[t]=r;r=zr(r);for(let s=0;s<ul.length;s++){const o=ul[s]+r;if(o in e)return gs[t]=o}return t}function qd(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Le(r)&&n===r}const cl="http://www.w3.org/1999/xlink";function dl(e,t,n,r,s,o=Gu(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(cl,t.slice(6,t.length)):e.setAttributeNS(cl,t,n):n==null||o&&!ma(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ut(n)?String(n):n)}function fl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,i=n==null?e.type==="checkbox"?"on":"":String(n);(a!==i||!("_value"in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ma(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(s||t)}function pn(e,t,n,r){e.addEventListener(t,n,r)}function Vd(e,t,n,r){e.removeEventListener(t,n,r)}const pl=Symbol("_vei");function Ud(e,t,n,r,s=null){const o=e[pl]||(e[pl]={}),l=o[t];if(r&&l)l.value=r;else{const[a,i]=zd(t);if(r){const c=o[t]=Wd(r,s);pn(e,a,c,i)}else l&&(Vd(e,a,l,i),o[t]=void 0)}}const hl=/(?:Once|Passive|Capture)$/;function zd(e){let t;if(hl.test(e)){t={};let r;for(;r=e.match(hl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let ys=0;const Hd=Promise.resolve(),Kd=()=>ys||(Hd.then(()=>ys=0),ys=Date.now());function Wd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(de(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const l=s.slice(),a=[r];for(let i=0;i<l.length&&!r._stopped;i++){const c=l[i];c&&pt(c,t,5,a)}}else pt(s,t,5,[r])};return n.value=e,n.attached=Kd(),n}const ml=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gd=(e,t,n,r,s,o)=>{const l=s==="svg";t==="class"?Dd(e,r,l):t==="style"?Fd(e,n,r):Lr(t)?qr(t)||Ud(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jd(e,t,r,l))?(fl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&dl(e,t,r,l,o,t!=="value")):e._isVueCE&&(Qd(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(r)))?fl(e,We(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),dl(e,t,r,l))};function Jd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ml(t)&&he(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ml(t)&&Le(n)?!1:t in e}function Qd(e,t){const n=e._def.props;if(!n)return!1;const r=We(t);return Array.isArray(n)?n.some(s=>We(s)===r):Object.keys(n).some(s=>We(s)===r)}const vl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return de(t)?n=>Sr(t,n):t};function Yd(e){e.target.composing=!0}function gl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bs=Symbol("_assign");function yl(e,t,n){return t&&(e=e.trim()),n&&(e=no(e)),e}const bl={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[bs]=vl(s);const o=r||s.props&&s.props.type==="number";pn(e,t?"change":"input",l=>{l.target.composing||e[bs](yl(e.value,n,o))}),(n||o)&&pn(e,"change",()=>{e.value=yl(e.value,n,o)}),t||(pn(e,"compositionstart",Yd),pn(e,"compositionend",gl),pn(e,"change",gl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},l){if(e[bs]=vl(l),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?no(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===i)||(e.value=i)}},Xd=["ctrl","shift","alt","meta"],Zd={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)=>Xd.some(n=>e[`${n}Key`]&&!t.includes(n))},Nt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let l=0;l<t.length;l++){const a=Zd[t[l]];if(a&&a(s,t))return}return e(s,...o)}))},ef={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},tf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=Kt(s.key);if(t.some(l=>l===o||ef[l]===o))return e(s)}))},nf=Je({patchProp:Gd},Md);let _l;function rf(){return _l||(_l=hd(nf))}const sf=((...e)=>{const t=rf().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=lf(r);if(!s)return;const o=t._component;!he(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,of(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t});function of(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lf(e){return Le(e)?document.querySelector(e):e}const hn=typeof document<"u";function Ei(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function af(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ei(e.default)}const Ce=Object.assign;function _s(e,t){const n={};for(const r in t){const s=t[r];n[r]=ht(s)?s.map(e):e(s)}return n}const Gn=()=>{},ht=Array.isArray;function xl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const $i=Symbol("");function xn(e,t){return Ce(new Error,{type:e,[$i]:!0},t)}function Ct(e,t){return e instanceof Error&&$i in e&&(t==null||!!(e.type&t))}const yo=Symbol(""),wl=Symbol(""),Zr=Symbol(""),bo=Symbol(""),Us=Symbol("");function es(){return rt(Zr)}function Wt(e){return rt(bo)}const Si=/#/g,uf=/&/g,cf=/\//g,df=/=/g,ff=/\?/g,Ci=/\+/g,pf=/%5B/g,hf=/%5D/g,Oi=/%5E/g,mf=/%60/g,Ai=/%7B/g,vf=/%7C/g,Pi=/%7D/g,gf=/%20/g;function _o(e){return e==null?"":encodeURI(""+e).replace(vf,"|").replace(pf,"[").replace(hf,"]")}function yf(e){return _o(e).replace(Ai,"{").replace(Pi,"}").replace(Oi,"^")}function zs(e){return _o(e).replace(Ci,"%2B").replace(gf,"+").replace(Si,"%23").replace(uf,"%26").replace(mf,"`").replace(Ai,"{").replace(Pi,"}").replace(Oi,"^")}function bf(e){return zs(e).replace(df,"%3D")}function _f(e){return _o(e).replace(Si,"%23").replace(ff,"%3F")}function xf(e){return _f(e).replace(cf,"%2F")}function Br(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const wf=/\/$/,kf=e=>e.replace(wf,"");function xs(e,t,n="/"){let r,s={},o="",l="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(r=t.slice(0,i),o=t.slice(i,a>0?a:t.length),s=e(o.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=Cf(r??t,n),{fullPath:r+o+l,path:r,query:s,hash:Br(l)}}function Ef(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $f(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&wn(t.matched[r],n.matched[s])&&Ti(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ti(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sf(e[n],t[n]))return!1;return!0}function Sf(e,t){return ht(e)?El(e,t):ht(t)?El(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function El(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Cf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,l,a;for(l=0;l<r.length;l++)if(a=r[l],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(l).join("/")}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function Of(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),kf(e)}const Af=/^[^#]+#/;function Pf(e,t){return e.replace(Af,"#")+t}function Tf(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 ts=()=>({left:window.scrollX,top:window.scrollY});function Rf(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Tf(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $l(e,t){return(history.state?history.state.position-t:-1)+e}const Hs=new Map;function Mf(e,t){Hs.set(e,t)}function If(e){const t=Hs.get(e);return Hs.delete(e),t}function Df(e){return typeof e=="string"||e&&typeof e=="object"}function Ri(e){return typeof e=="string"||typeof e=="symbol"}function Nf(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Ci," "),o=s.indexOf("="),l=Br(o<0?s:s.slice(0,o)),a=o<0?null:Br(s.slice(o+1));if(l in t){let i=t[l];ht(i)||(i=t[l]=[i]),i.push(a)}else t[l]=a}return t}function Sl(e){let t="";for(let n in e){const r=e[n];if(n=bf(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ht(r)?r.map(s=>s&&zs(s)):[r&&zs(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function jf(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function Rn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mi(e,t,n){const r=e.value;if(!r)return;let s=r;const o=()=>{s[t].delete(n)};ur(o),Ya(o),Qa(()=>{const l=e.value;l&&(s=l),s[t].add(n)}),s[t].add(n)}function Bf(e){Mi(rt(yo,{}),"leaveGuards",e)}function Ff(e){Mi(rt(yo,{}),"updateGuards",e)}function zt(e,t,n,r,s,o=l=>l()){const l=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,i)=>{const c=f=>{f===!1?i(xn(4,{from:n,to:t})):f instanceof Error?i(f):Df(f)?i(xn(2,{from:t,to:f})):(l&&r.enterCallbacks[s]===l&&typeof f=="function"&&l.push(f),a())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>i(f))})}function ws(e,t,n,r,s=o=>o()){const o=[];for(const l of e)for(const a in l.components){let i=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Ei(i)){const c=(i.__vccOpts||i)[t];c&&o.push(zt(c,n,r,l,a,s))}else{let c=i();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const d=af(u)?u.default:u;l.mods[a]=u,l.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&zt(f,n,r,l,a,s)()}))}}return o}function Lf(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let l=0;l<o;l++){const a=t.matched[l];a&&(e.matched.find(c=>wn(c,a))?r.push(a):n.push(a));const i=e.matched[l];i&&(t.matched.find(c=>wn(c,i))||s.push(i))}return[n,r,s]}let qf=()=>location.protocol+"//"+location.host;function Ii(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),kl(a,"")}return kl(n,e)+r+s}function Vf(e,t,n,r){let s=[],o=[],l=null;const a=({state:f})=>{const p=Ii(e,location),y=n.value,x=t.value;let _=0;if(f){if(n.value=p,t.value=f,l&&l===y){l=null;return}_=x?f.position-x.position:0}else r(p);s.forEach(S=>{S(n.value,y,{delta:_,type:"pop",direction:_?_>0?"forward":"back":""})})};function i(){l=n.value}function c(f){s.push(f);const p=()=>{const y=s.indexOf(f);y>-1&&s.splice(y,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Ce({},f.state,{scroll:ts()}),"")}}function d(){for(const f of o)f();o=[],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:i,listen:c,destroy:d}}function Cl(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ts():null}}function Uf(e){const{history:t,location:n}=window,r={value:Ii(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(i,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+i:qf()+e+i;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function l(i,c){o(i,Ce({},t.state,Cl(s.value.back,i,s.value.forward,!0),c,{position:s.value.position}),!0),r.value=i}function a(i,c){const u=Ce({},s.value,t.state,{forward:i,scroll:ts()});o(u.current,u,!0),o(i,Ce({},Cl(r.value,i,null),{position:u.position+1},c),!1),r.value=i}return{location:r,state:s,push:a,replace:l}}function zf(e){e=Of(e);const t=Uf(e),n=Vf(e,t.state,t.location,t.replace);function r(o,l=!0){l||n.pauseListeners(),history.go(o)}const s=Ce({location:"",base:e,go:r,createHref:Pf.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}const Hf={type:0,value:""},Kf=/[a-zA-Z0-9_]/;function Wf(e){if(!e)return[[]];if(e==="/")return[[Hf]];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 s=[];let o;function l(){o&&s.push(o),o=[]}let a=0,i,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=i}for(;a<e.length;)switch(i=e[a++],n){case 0:i==="\\"?(r=n,n=4):i==="/"?(c&&d(),l()):i===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:i==="("?n=2:Kf.test(i)?f():(d(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&a--);break;case 2:i===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+i:n=3:u+=i;break;case 3:d(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&a--,u="";break;default:t("Unknown state");break}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),l(),s}const Ol="[^/]+?",Gf={sensitive:!1,strict:!1,start:!0,end:!0},Jf=/[.+*?^${}()[\]/\\]/g;function Qf(e,t){const n=Ce({},Gf,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(s+="/"),s+=f.value.replace(Jf,"\\$&"),p+=40;else if(f.type===1){const{value:y,repeatable:x,optional:_,regexp:S}=f;o.push({name:y,repeatable:x,optional:_});const k=S||Ol;if(k!==Ol){p+=10;try{new RegExp(`(${k})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${y}" (${k}): `+D.message)}}let M=x?`((?:${k})(?:/(?:${k}))*)`:`(${k})`;d||(M=_&&c.length<2?`(?:/${M})`:"/"+M),_&&(M+="?"),s+=M,p+=20,_&&(p+=-8),x&&(p+=-20),k===".*"&&(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||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const l=new RegExp(s,n.sensitive?"":"i");function a(c){const u=c.match(l),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",y=o[f-1];d[y.name]=p&&y.repeatable?p.split("/"):p}return d}function i(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:y,repeatable:x,optional:_}=p,S=y in c?c[y]:"";if(ht(S)&&!x)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const k=ht(S)?S.join("/"):S;if(!k)if(_)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${y}"`);u+=k}}return u||"/"}return{re:l,score:r,keys:o,parse:a,stringify:i}}function Yf(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 Di(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=Yf(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(Al(r))return 1;if(Al(s))return-1}return s.length-r.length}function Al(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Xf={strict:!1,end:!0,sensitive:!1};function Zf(e,t,n){const r=Qf(Wf(e.path),n),s=Ce(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function ep(e,t){const n=[],r=new Map;t=xl(Xf,t);function s(d){return r.get(d)}function o(d,f,p){const y=!p,x=Tl(d);x.aliasOf=p&&p.record;const _=xl(t,d),S=[x];if("alias"in d){const D=typeof d.alias=="string"?[d.alias]:d.alias;for(const G of D)S.push(Tl(Ce({},x,{components:p?p.record.components:x.components,path:G,aliasOf:p?p.record:x})))}let k,M;for(const D of S){const{path:G}=D;if(f&&G[0]!=="/"){const be=f.record.path,Y=be[be.length-1]==="/"?"":"/";D.path=f.record.path+(G&&Y+G)}if(k=Zf(D,f,_),p?p.alias.push(k):(M=M||k,M!==k&&M.alias.push(k),y&&d.name&&!Rl(k)&&l(d.name)),Ni(k)&&i(k),x.children){const be=x.children;for(let Y=0;Y<be.length;Y++)o(be[Y],k,p&&p.children[Y])}p=p||k}return M?()=>{l(M)}:Gn}function l(d){if(Ri(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return n}function i(d){const f=rp(d,n);n.splice(f,0,d),d.record.name&&!Rl(d)&&r.set(d.record.name,d)}function c(d,f){let p,y={},x,_;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw xn(1,{location:d});_=p.record.name,y=Ce(Pl(f.params,p.keys.filter(M=>!M.optional).concat(p.parent?p.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),d.params&&Pl(d.params,p.keys.map(M=>M.name))),x=p.stringify(y)}else if(d.path!=null)x=d.path,p=n.find(M=>M.re.test(x)),p&&(y=p.parse(x),_=p.record.name,p.keys.forEach(M=>{M.optional&&!y[M.name]&&delete y[M.name]}));else{if(p=f.name?r.get(f.name):n.find(M=>M.re.test(f.path)),!p)throw xn(1,{location:d,currentLocation:f});_=p.record.name,y=Ce({},f.params,d.params),x=p.stringify(y)}const S=[];let k=p;for(;k;)S.unshift(k.record),k=k.parent;return{name:_,path:x,params:y,matched:S,meta:np(S)}}e.forEach(d=>o(d));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:l,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Pl(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Tl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tp(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 tp(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 Rl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function np(e){return e.reduce((t,n)=>Ce(t,n.meta),{})}function rp(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Di(e,t[o])<0?r=o:n=o+1}const s=sp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function sp(e){let t=e;for(;t=t.parent;)if(Ni(t)&&Di(e,t)===0)return t}function Ni({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ml(e){const t=rt(Zr),n=rt(bo),r=C(()=>{const i=h(e.to);return t.resolve(i)}),s=C(()=>{const{matched:i}=r.value,{length:c}=i,u=i[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(wn.bind(null,u));if(f>-1)return f;const p=Il(i[c-2]);return c>1&&Il(u)===p&&d[d.length-1].path!==p?d.findIndex(wn.bind(null,i[c-2])):f}),o=C(()=>s.value>-1&&ap(n.params,r.value.params)),l=C(()=>s.value>-1&&s.value===n.matched.length-1&&Ti(n.params,r.value.params));function a(i={}){if(lp(i)){const c=t[h(e.replace)?"replace":"push"](h(e.to)).catch(Gn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:C(()=>r.value.href),isActive:o,isExactActive:l,navigate:a}}function op(e){return e.length===1?e[0]:e}const rn=re({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:Ml,setup(e,{slots:t}){const n=sn(Ml(e)),{options:r}=rt(Zr),s=C(()=>({[Dl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Dl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&op(t.default(n));return e.custom?o:Rt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}});function lp(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 ap(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ht(s)||s.length!==r.length||r.some((o,l)=>o.valueOf()!==s[l].valueOf()))return!1}return!0}function Il(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dl=(e,t,n)=>e??t??n,ip=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Us),s=C(()=>e.route||r.value),o=rt(wl,0),l=C(()=>{let c=h(o);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=C(()=>s.value.matched[l.value]);zn(wl,C(()=>l.value+1)),zn(yo,a),zn(Us,s);const i=V();return Ge(()=>[i.value,a.value,e.name],([c,u,d],[f,p,y])=>{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||!wn(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(x=>x(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Nl(n.default,{Component:f,route:c});const p=d.props[u],y=p?p===!0?c.params:typeof p=="function"?p(c):p:null,_=Rt(f,Ce({},y,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(d.instances[u]=null)},ref:i}));return Nl(n.default,{Component:_,route:c})||_}}});function Nl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ks=ip;function up(e){const t=ep(e.routes,e),n=e.parseQuery||Nf,r=e.stringifyQuery||Sl,s=e.history,o=Rn(),l=Rn(),a=Rn(),i=Na(Lt);let c=Lt;hn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=_s.bind(null,$=>""+$),d=_s.bind(null,xf),f=_s.bind(null,Br);function p($,Z){let J,le;return Ri($)?(J=t.getRecordMatcher($),le=Z):le=$,t.addRoute(le,J)}function y($){const Z=t.getRecordMatcher($);Z&&t.removeRoute(Z)}function x(){return t.getRoutes().map($=>$.record)}function _($){return!!t.getRecordMatcher($)}function S($,Z){if(Z=Ce({},Z||i.value),typeof $=="string"){const b=xs(n,$,Z.path),R=t.resolve({path:b.path},Z),I=s.createHref(b.fullPath);return Ce(b,R,{params:f(R.params),redirectedFrom:void 0,href:I})}let J;if($.path!=null)J=Ce({},$,{path:xs(n,$.path,Z.path).path});else{const b=Ce({},$.params);for(const R in b)b[R]==null&&delete b[R];J=Ce({},$,{params:d(b)}),Z.params=d(Z.params)}const le=t.resolve(J,Z),xe=$.hash||"";le.params=u(f(le.params));const m=Ef(r,Ce({},$,{hash:yf(xe),path:le.path})),v=s.createHref(m);return Ce({fullPath:m,hash:xe,query:r===Sl?jf($.query):$.query||{}},le,{redirectedFrom:void 0,href:v})}function k($){return typeof $=="string"?xs(n,$,i.value.path):Ce({},$)}function M($,Z){if(c!==$)return xn(8,{from:Z,to:$})}function D($){return Y($)}function G($){return D(Ce(k($),{replace:!0}))}function be($,Z){const J=$.matched[$.matched.length-1];if(J&&J.redirect){const{redirect:le}=J;let xe=typeof le=="function"?le($,Z):le;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=k(xe):{path:xe},xe.params={}),Ce({query:$.query,hash:$.hash,params:xe.path!=null?{}:$.params},xe)}}function Y($,Z){const J=c=S($),le=i.value,xe=$.state,m=$.force,v=$.replace===!0,b=be(J,le);if(b)return Y(Ce(k(b),{state:typeof b=="object"?Ce({},xe,b.state):xe,force:m,replace:v}),Z||J);const R=J;R.redirectedFrom=Z;let I;return!m&&$f(r,le,J)&&(I=xn(16,{to:R,from:le}),F(le,le,!0,!1)),(I?Promise.resolve(I):q(R,le)).catch(A=>Ct(A)?Ct(A,2)?A:T(A):ce(A,R,le)).then(A=>{if(A){if(Ct(A,2))return Y(Ce({replace:v},k(A.to),{state:typeof A.to=="object"?Ce({},xe,A.to.state):xe,force:m}),Z||R)}else A=ve(R,le,!0,v,xe);return ye(R,le,A),A})}function H($,Z){const J=M($,Z);return J?Promise.reject(J):Promise.resolve()}function X($){const Z=N.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext($):$()}function q($,Z){let J;const[le,xe,m]=Lf($,Z);J=ws(le.reverse(),"beforeRouteLeave",$,Z);for(const b of le)b.leaveGuards.forEach(R=>{J.push(zt(R,$,Z))});const v=H.bind(null,$,Z);return J.push(v),ge(J).then(()=>{J=[];for(const b of o.list())J.push(zt(b,$,Z));return J.push(v),ge(J)}).then(()=>{J=ws(xe,"beforeRouteUpdate",$,Z);for(const b of xe)b.updateGuards.forEach(R=>{J.push(zt(R,$,Z))});return J.push(v),ge(J)}).then(()=>{J=[];for(const b of m)if(b.beforeEnter)if(ht(b.beforeEnter))for(const R of b.beforeEnter)J.push(zt(R,$,Z));else J.push(zt(b.beforeEnter,$,Z));return J.push(v),ge(J)}).then(()=>($.matched.forEach(b=>b.enterCallbacks={}),J=ws(m,"beforeRouteEnter",$,Z,X),J.push(v),ge(J))).then(()=>{J=[];for(const b of l.list())J.push(zt(b,$,Z));return J.push(v),ge(J)}).catch(b=>Ct(b,8)?b:Promise.reject(b))}function ye($,Z,J){a.list().forEach(le=>X(()=>le($,Z,J)))}function ve($,Z,J,le,xe){const m=M($,Z);if(m)return m;const v=Z===Lt,b=hn?history.state:{};J&&(le||v?s.replace($.fullPath,Ce({scroll:v&&b&&b.scroll},xe)):s.push($.fullPath,xe)),i.value=$,F($,Z,J,v),T()}let Ee;function Be(){Ee||(Ee=s.listen(($,Z,J)=>{if(!oe.listening)return;const le=S($),xe=be(le,oe.currentRoute.value);if(xe){Y(Ce(xe,{replace:!0,force:!0}),le).catch(Gn);return}c=le;const m=i.value;hn&&Mf($l(m.fullPath,J.delta),ts()),q(le,m).catch(v=>Ct(v,12)?v:Ct(v,2)?(Y(Ce(k(v.to),{force:!0}),le).then(b=>{Ct(b,20)&&!J.delta&&J.type==="pop"&&s.go(-1,!1)}).catch(Gn),Promise.reject()):(J.delta&&s.go(-J.delta,!1),ce(v,le,m))).then(v=>{v=v||ve(le,m,!1),v&&(J.delta&&!Ct(v,8)?s.go(-J.delta,!1):J.type==="pop"&&Ct(v,20)&&s.go(-1,!1)),ye(le,m,v)}).catch(Gn)}))}let Te=Rn(),$e=Rn(),pe;function ce($,Z,J){T($);const le=$e.list();return le.length?le.forEach(xe=>xe($,Z,J)):console.error($),Promise.reject($)}function O(){return pe&&i.value!==Lt?Promise.resolve():new Promise(($,Z)=>{Te.add([$,Z])})}function T($){return pe||(pe=!$,Be(),Te.list().forEach(([Z,J])=>$?J($):Z()),Te.reset()),$}function F($,Z,J,le){const{scrollBehavior:xe}=e;if(!hn||!xe)return Promise.resolve();const m=!J&&If($l($.fullPath,0))||(le||!J)&&history.state&&history.state.scroll||null;return ct().then(()=>xe($,Z,m)).then(v=>v&&Rf(v)).catch(v=>ce(v,$,Z))}const L=$=>s.go($);let te;const N=new Set,oe={currentRoute:i,listening:!0,addRoute:p,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:x,resolve:S,options:e,push:D,replace:G,go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:o.add,beforeResolve:l.add,afterEach:a.add,onError:$e.add,isReady:O,install($){$.component("RouterLink",rn),$.component("RouterView",Ks),$.config.globalProperties.$router=oe,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>h(i)}),hn&&!te&&i.value===Lt&&(te=!0,D(s.location).catch(le=>{}));const Z={};for(const le in Lt)Object.defineProperty(Z,le,{get:()=>i.value[le],enumerable:!0});$.provide(Zr,oe),$.provide(bo,Da(Z)),$.provide(Us,i);const J=$.unmount;N.add($),$.unmount=function(){N.delete($),N.size<1&&(c=Lt,Ee&&Ee(),Ee=null,i.value=Lt,te=!1,pe=!1),J()}}};function ge($){return $.reduce((Z,J)=>Z.then(()=>X(J)),Promise.resolve())}return oe}const jl=e=>e==="";const cp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Bl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const fp=e=>{const t=dp(e);return t.charAt(0).toUpperCase()+t.slice(1)};var un={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 pp=Symbol("lucide-icons");function hp(){return rt(pp,{})}const mp=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:s,"stroke-width":o,size:l,color:a,...i},{slots:c})=>{const{size:u,color:d,strokeWidth:f=2,absoluteStrokeWidth:p=!1,class:y=""}=hp(),x=C(()=>{const _=jl(n)||jl(r)||n===!0||r===!0||p===!0,S=s||o||f||un["stroke-width"];return _?Number(S)*24/Number(l??u??un.width):S});return Rt("svg",{...un,...i,width:l??u??un.width,height:l??u??un.height,stroke:a??d??un.stroke,"stroke-width":x.value,class:cp("lucide",y,...e?[`lucide-${Bl(fp(e))}-icon`,`lucide-${Bl(e)}`]:["lucide-icon"])},[...t.map(_=>Rt(..._)),...c.default?[c.default()]:[]])};const _e=(e,t)=>(n,{slots:r,attrs:s})=>Rt(mp,{...s,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0);const vp=[["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"}]],gp=_e("archive",vp);const yp=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],ji=_e("arrow-down",yp);const bp=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xo=_e("arrow-left",bp);const _p=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],xp=_e("arrow-right",_p);const wp=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Bi=_e("arrow-up-right",wp);const kp=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Fi=_e("arrow-up",kp);const Ep=[["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"}]],$p=_e("cassette-tape",Ep);const Sp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kn=_e("check",Sp);const Cp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wo=_e("chevron-down",Cp);const Op=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ko=_e("chevron-left",Op);const Ap=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ns=_e("chevron-right",Ap);const Pp=[["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"}]],dr=_e("circle-alert",Pp);const Tp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Rp=_e("circle",Tp);const Mp=[["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"}]],Ip=_e("disc-3",Mp);const Dp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Np=_e("disc",Dp);const jp=[["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"}]],Bp=_e("image",jp);const Fp=[["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"}]],Lp=_e("library",Fp);const qp=[["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"}]],Vp=_e("list",qp);const Up=[["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"}]],zp=_e("log-out",Up);const Hp=[["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"}]],Kp=_e("mic-vocal",Hp);const Wp=[["path",{d:"M5 12h14",key:"1ays0h"}]],Li=_e("minus",Wp);const Gp=[["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"}]],Jp=_e("palette",Gp);const Qp=[["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"}]],Yp=_e("panel-left-close",Qp);const Xp=[["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"}]],Zp=_e("panel-left-open",Xp);const eh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qi=_e("plus",eh);const th=[["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"}]],Vi=_e("puzzle",th);const nh=[["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"}]],Ui=_e("search-x",nh);const rh=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rs=_e("search",rh);const sh=[["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"}]],zi=_e("settings",sh);const oh=[["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"}]],lh=_e("shield-check",oh);const ah=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ih=_e("square",ah);const uh=[["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"}]],Eo=_e("sun",uh);const ch=[["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"}]],dh=_e("tags",ch);const fh=[["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"}]],$o=_e("trash-2",fh);const ph=[["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"}]],Hi=_e("user-minus",ph);const hh=[["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"}]],Ki=_e("user-plus",hh);const mh=[["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"}]],vh=_e("user",mh);const gh=[["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"}]],yh=_e("users-round",gh);const bh=[["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"}]],_h=_e("users",bh);const xh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ss=_e("x",xh),wh=/\{[^{}]+\}/g,kh=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function Eh(){return Math.random().toString(36).slice(2,11)}function $h(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:s,bodySerializer:o,pathSerializer:l,headers:a,requestInitExt:i=void 0,...c}={...e};i=kh()?i:void 0,t=ql(t);const u=[];async function d(f,p){const{baseUrl:y,fetch:x=r,Request:_=n,headers:S,params:k={},parseAs:M="json",querySerializer:D,bodySerializer:G=o??Ch,pathSerializer:be,body:Y,middleware:H=[],...X}=p||{};let q=t;y&&(q=ql(y)??t);let ye=typeof s=="function"?s:Fl(s);D&&(ye=typeof D=="function"?D:Fl({...typeof s=="object"?s:{},...D}));const ve=be||l||Sh,Ee=Y===void 0?void 0:G(Y,Ll(a,S,k.header)),Be=Ll(Ee===void 0||Ee instanceof FormData?{}:{"Content-Type":"application/json"},a,S,k.header),Te=[...u,...H],$e={redirect:"follow",...c,...X,body:Ee,headers:Be};let pe,ce,O=new _(Oh(f,{baseUrl:q,params:k,querySerializer:ye,pathSerializer:ve}),$e),T;for(const te in X)te in O||(O[te]=X[te]);if(Te.length){pe=Eh(),ce=Object.freeze({baseUrl:q,fetch:x,parseAs:M,querySerializer:ye,bodySerializer:G,pathSerializer:ve});for(const te of Te)if(te&&typeof te=="object"&&typeof te.onRequest=="function"){const N=await te.onRequest({request:O,schemaPath:f,params:k,options:ce,id:pe});if(N)if(N instanceof _)O=N;else if(N instanceof Response){T=N;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!T){try{T=await x(O,i)}catch(te){let N=te;if(Te.length)for(let oe=Te.length-1;oe>=0;oe--){const ge=Te[oe];if(ge&&typeof ge=="object"&&typeof ge.onError=="function"){const $=await ge.onError({request:O,error:N,schemaPath:f,params:k,options:ce,id:pe});if($){if($ instanceof Response){N=void 0,T=$;break}if($ instanceof Error){N=$;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(N)throw N}if(Te.length)for(let te=Te.length-1;te>=0;te--){const N=Te[te];if(N&&typeof N=="object"&&typeof N.onResponse=="function"){const oe=await N.onResponse({request:O,response:T,schemaPath:f,params:k,options:ce,id:pe});if(oe){if(!(oe instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");T=oe}}}}const F=T.headers.get("Content-Length");if(T.status===204||O.method==="HEAD"||F==="0"&&!T.headers.get("Transfer-Encoding")?.includes("chunked"))return T.ok?{data:void 0,response:T}:{error:void 0,response:T};if(T.ok)return{data:await(async()=>{if(M==="stream")return T.body;if(M==="json"&&!F){const N=await T.text();return N?JSON.parse(N):void 0}return await T[M]()})(),response:T};let L=await T.text();try{L=JSON.parse(L)}catch{}return{error:L,response:T}}return{request(f,p,y){return d(p,{...y,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 y=u.indexOf(p);y!==-1&&u.splice(y,1)}}}}function os(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 Wi(e,t,n){if(!t||typeof t!="object")return"";const r=[],s={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const a in t)r.push(a,n.allowReserved===!0?t[a]:encodeURIComponent(t[a]));const l=r.join(",");switch(n.style){case"form":return`${e}=${l}`;case"label":return`.${l}`;case"matrix":return`;${e}=${l}`;default:return l}}for(const l in t){const a=n.style==="deepObject"?`${e}[${l}]`:l;r.push(os(a,t[l],n))}const o=r.join(s);return n.style==="label"||n.style==="matrix"?`${s}${o}`:o}function Gi(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const o={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",l=(n.allowReserved===!0?t:t.map(a=>encodeURIComponent(a))).join(o);switch(n.style){case"simple":return l;case"label":return`.${l}`;case"matrix":return`;${e}=${l}`;default:return`${e}=${l}`}}const r={simple:",",label:".",matrix:";"}[n.style]||"&",s=[];for(const o of t)n.style==="simple"||n.style==="label"?s.push(n.allowReserved===!0?o:encodeURIComponent(o)):s.push(os(e,o,n));return n.style==="label"||n.style==="matrix"?`${r}${s.join(r)}`:s.join(r)}function Fl(e){return function(n){const r=[];if(n&&typeof n=="object")for(const s in n){const o=n[s];if(o!=null){if(Array.isArray(o)){if(o.length===0)continue;r.push(Gi(s,o,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof o=="object"){r.push(Wi(s,o,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}r.push(os(s,o,e))}}return r.join("&")}}function Sh(e,t){let n=e;for(const r of e.match(wh)??[]){let s=r.substring(1,r.length-1),o=!1,l="simple";if(s.endsWith("*")&&(o=!0,s=s.substring(0,s.length-1)),s.startsWith(".")?(l="label",s=s.substring(1)):s.startsWith(";")&&(l="matrix",s=s.substring(1)),!t||t[s]===void 0||t[s]===null)continue;const a=t[s];if(Array.isArray(a)){n=n.replace(r,Gi(s,a,{style:l,explode:o}));continue}if(typeof a=="object"){n=n.replace(r,Wi(s,a,{style:l,explode:o}));continue}if(l==="matrix"){n=n.replace(r,`;${os(s,a)}`);continue}n=n.replace(r,l==="label"?`.${encodeURIComponent(a)}`:encodeURIComponent(a))}return n}function Ch(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 Oh(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 Ll(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const r=n instanceof Headers?n.entries():Object.entries(n);for(const[s,o]of r)if(o===null)t.delete(s);else if(Array.isArray(o))for(const l of o)t.append(s,l);else o!==void 0&&t.set(s,o)}return t}function ql(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Vl="/backend",Ah="__SUMMER_ADMIN_BASE__";function Ph(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===Ah||!t.startsWith("/"))return Vl;const n=t.replace(/\/+$/,"");return n===""?Vl:n}const Ul=Ph(),Ji={base:Ul,api:`${Ul}/api/v1`},Th="XMLHttpRequest";let Ws=null,Qi=null,Mn=null;const ks=new WeakMap;function Rh(e){Ws=e}function Mh(e){Qi=e}function Ih(e){return new URL(e.url,"http://local").pathname}function zl(e){const t=Ih(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function Yi(){return Mn||(Mn=(async()=>{try{const{data:e,response:t}=await Fe.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return Qi?.(typeof n=="number"?n:null),!0}catch{return!1}finally{Mn=null}})(),Mn)}const Dh={onRequest({request:e}){return e.headers.set("X-Requested-With",Th),zl(e)||ks.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||zl(e))return t;const n=ks.get(e);if(ks.delete(e),!n||!await Yi())return Ws?.(),t;const r=await globalThis.fetch(n);return r.status===401&&Ws?.(),r}},Fe=$h({baseUrl:Ji.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Fe.use(Dh);const So=V({}),Xi=V(typeof document>"u"?"pl":document.documentElement.lang||"pl");function Nh(e,t){So.value=e,t&&(Xi.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function jh(){const{data:e,response:t}=await Fe.GET("/lang");!t.ok||!e||Nh(e.data,e.meta.locale)}function Hl(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 Gs(e,t={}){if(e==="")return e;const n=[];for(const[s,o]of Object.entries(t)){const l=s.replace(/^:/,"");if(l==="")continue;const a=String(o);n.push([`:${Hl(l)}`,Hl(a)]),n.push([`:${l.toUpperCase()}`,a.toUpperCase()]),n.push([`:${l}`,a])}n.sort((s,o)=>o[0].length-s[0].length);let r=e;for(const[s,o]of n)r=r.split(s).join(o);return r}const Kl=new Map;function Bh(e,t=Xi.value){let n=Kl.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}Kl.set(t,n)}return n?n.select(e):"other"}function Me(e,t,n={}){if(!e)return"";if(t===void 0)return Gs(e.other??"",n);const r=e[Bh(t)]??e.other??"";return Gs(r,{count:t,...n})}function B(e,t={}){const n=So.value[e]?.other;return n===void 0?e:Gs(n,t)}function Co(e,t,n={}){const r=So.value[e];return r?Me(r,t,n):e}const Wl={archive:gp,"arrow-down":ji,"arrow-left":xo,"arrow-right":xp,"arrow-up":Fi,"arrow-up-right":Bi,"cassette-tape":$p,check:kn,"chevron-down":wo,"chevron-left":ko,"chevron-right":ns,circle:Rp,"circle-alert":dr,disc:Np,"disc-3":Ip,image:Bp,library:Lp,list:Vp,"log-out":zp,"mic-vocal":Kp,minus:Li,palette:Jp,"panel-left-close":Yp,"panel-left-open":Zp,plus:qi,puzzle:Vi,search:rs,"search-x":Ui,settings:zi,"shield-check":lh,sun:Eo,tags:dh,"trash-2":$o,user:vh,"user-minus":Hi,"user-plus":Ki,users:_h,"users-round":yh,x:ss},Fh={"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"},Gl=ih;function Oo(e){if(!e)return Gl;const t=e.trim();return Wl[t]??Wl[Fh[t]??""]??Gl}const Lh=/^[A-Za-z0-9_-]+$/;function ls(e){const t=e.split(".");if(t.length!==3||!t.every(o=>Lh.test(o)))return null;const[n,r,s]=t;return{vendor:n,plugin:r,controller:s}}function En(e){const t=ls(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function Zi(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function eu(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return ls(n)?n:null}function Jl(e){const t=ls(e);return t?`${t.vendor}.${t.plugin}`:null}const Js=V([]);async function tu(){const{data:e,response:t}=await Fe.GET("/navigation");return Js.value=t.ok&&e?e.data:[],Js.value}const Ao=C(()=>Js.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 nu(e){for(const t of e.sideMenu){const n=En(t.controller);if(n)return n}return En(e.controller)}function Po(e,t){const n=`${e}.${t}`;return Ao.value.find(r=>Jl(r.controller)===n||r.sideMenu.some(s=>Jl(s.controller)===n))??null}function qh(){for(const e of Ao.value){const t=nu(e);if(t)return t}return null}const sr=V([]),Vh=C(()=>sr.value.length>0);async function ru(){const{data:e,response:t}=await Fe.GET("/settings");return sr.value=t.ok&&e?e.data:[],sr.value}function Ql(e){return sr.value.find(t=>t.code===e)??null}const Yl=C(()=>{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(s=>s.category===n.category);r||(r={category:n.category,entries:[]},t.push(r)),r.entries.push(n)}return t}),Uh=["aria-label"],zh={class:"mb-3.5 flex size-10 items-center justify-center rounded-inner bg-accent-soft",title:"SummerCMS"},Hh=re({__name:"PluginRail",setup(e){const t=Wt(),n=C(()=>Po(String(t.params.vendor??""),String(t.params.plugin??""))),r=C(()=>t.path==="/settings"||t.path.startsWith("/settings/")),s=C(()=>Ao.value.map(o=>({entry:o,to:nu(o)??"/",icon:Oo(o.icon),current:n.value?.code===o.code})));return(o,l)=>(g(),w("nav",{"aria-label":h(B)("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"},[E("span",zh,[K(h(Eo),{size:22,class:"text-accent","aria-hidden":"true"})]),(g(!0),w(ue,null,Ne(s.value,a=>(g(),ee(h(rn),{key:a.entry.code,to:a.to,"aria-current":a.current?"page":void 0,class:me([a.current?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[68px] flex-col items-center gap-1 rounded-inner px-1.5 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline"])},{default:ne(()=>[(g(),ee(tn(a.icon),{size:20,"aria-hidden":"true"})),E("span",null,P(a.entry.label),1)]),_:2},1032,["to","aria-current","class"]))),128)),l[0]||(l[0]=E("span",{class:"flex-1","aria-hidden":"true"},null,-1)),h(Vh)?(g(),ee(h(rn),{key:0,to:"/settings","data-rail-settings":"","aria-current":r.value?"page":void 0,class:me([r.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"])},{default:ne(()=>[K(h(zi),{size:20,"aria-hidden":"true"}),E("span",null,P(h(B)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):se("",!0)],8,Uh))}}),Kh=["aria-label"],Wh={class:"mb-3.5 flex h-10 items-center px-2"},Gh={class:"text-[16px] font-bold"},Jh=re({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=Wt(),r=C(()=>eu(n.path)),s=C(()=>t.entry.sideMenu.flatMap(o=>{const l=En(o.controller);return l?[{item:o,to:l,icon:Oo(o.icon),current:r.value===o.controller}]:[]}));return(o,l)=>(g(),w("aside",{"aria-label":h(B)("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"},[E("div",Wh,[E("span",Gh,P(e.entry.label),1)]),(g(!0),w(ue,null,Ne(s.value,a=>(g(),ee(h(rn),{key:a.item.code,to:a.to,"aria-current":a.current?"page":void 0,class:me([a.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline"])},{default:ne(()=>[(g(),ee(tn(a.icon),{size:18,"aria-hidden":"true"})),E("span",null,P(a.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,Kh))}}),Qh=4e3,or=V([]),Qs=new Map;let Yh=1;const Xh=Xn(or);function ze(e,t="success"){const n=Yh++;return or.value=[...or.value,{id:n,text:e,tone:t}],Qs.set(n,setTimeout(()=>su(n),Qh)),n}function su(e){const t=Qs.get(e);t!==void 0&&(clearTimeout(t),Qs.delete(e)),or.value=or.value.filter(n=>n.id!==e)}const Zh={class:"pointer-events-none fixed inset-x-0 bottom-[88px] z-50 flex flex-col items-center gap-2 px-4"},em=["role","data-tone"],tm={class:"font-medium"},nm=["aria-label","onClick"],rm=re({__name:"Toast",setup(e){return(t,n)=>(g(),w("div",Zh,[(g(!0),w(ue,null,Ne(h(Xh),r=>(g(),w("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"},[E("span",{class:me([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(),ee(h(dr),{key:0,size:16})):(g(),ee(h(kn),{key:1,size:16}))],2),E("span",tm,P(r.text),1),E("button",{type:"button","aria-label":h(B)("backend::lang.form.close"),class:"flex size-8 items-center justify-center rounded-pager text-[#c3cbda] hover:bg-side-hover hover:text-white",onClick:s=>h(su)(r.id)},[K(h(ss),{size:16,"aria-hidden":"true"})],8,nm)],8,em))),128))]))}}),Fr=V(null),ou=V(null);let Jn=null;function lu(e){au(),ou.value=e,!(e===null||e<=0)&&(Jn=setTimeout(()=>{Jn=null,Yi()},e*800))}function au(){Jn!==null&&(clearTimeout(Jn),Jn=null)}Mh(lu);const Fn=Xn(Fr);async function sm(e,t){const{data:n,response:r}=await Fe.POST("/auth/login",{body:{login:e,password:t}});return!r.ok||!n?!1:(lu(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function iu(){const{data:e,response:t}=await Fe.GET("/auth/me");return Fr.value=t.ok&&e?e.data:null,Fr.value}function om(){au(),Fr.value=null,ou.value=null}const lm={class:"flex min-h-screen bg-bg text-text"},am={class:"flex min-w-0 flex-1 flex-col"},im={class:"flex h-header shrink-0 items-center justify-between border-b border-border bg-surface pr-6 pl-8"},um=["aria-label"],cm={key:0,class:"font-semibold"},dm={class:"font-semibold","aria-current":"page"},fm={key:0,class:"flex h-input items-center gap-2.5 rounded-inner px-2"},pm={class:"flex size-[34px] items-center justify-center rounded-full bg-accent text-[13px] font-bold text-on-accent","aria-hidden":"true"},hm={class:"flex flex-col leading-tight"},mm={class:"font-semibold"},vm={key:0,class:"text-[12px] text-muted"},gm={class:"min-w-0 flex-1 px-8 py-7"},ym=re({__name:"AppShell",setup(e){const t=Wt(),n=C(()=>Po(String(t.params.vendor??""),String(t.params.plugin??""))),r=C(()=>{const l=eu(t.path);return n.value?.sideMenu.find(a=>a.controller===l)??null}),s=C(()=>{const l=Fn.value;if(!l)return"";const a=`${l.first_name} ${l.last_name}`.trim();return a===""?l.login:a}),o=C(()=>s.value.split(/\s+/).filter(Boolean).slice(0,2).map(l=>l.charAt(0).toUpperCase()).join(""));return(l,a)=>(g(),w("div",lm,[K(Hh),n.value?(g(),ee(Jh,{key:0,entry:n.value},null,8,["entry"])):se("",!0),E("div",am,[E("header",im,[E("nav",{"aria-label":h(B)("backend::lang.nav.breadcrumbs"),class:"flex items-center gap-2"},[h(t).name==="settings"||h(t).name==="settings-form"?(g(),w("span",cm,P(h(B)("backend::lang.nav.settings")),1)):n.value?(g(),w(ue,{key:1},[E("span",{class:me(r.value?"text-muted":"font-semibold")},P(n.value.label),3),r.value?(g(),w(ue,{key:0},[K(h(ns),{size:14,class:"text-muted","aria-hidden":"true"}),E("span",dm,P(r.value.label),1)],64)):se("",!0)],64)):se("",!0)],8,um),h(Fn)?(g(),w("div",fm,[E("span",pm,P(o.value),1),E("span",hm,[E("span",mm,P(s.value),1),h(Fn).role?(g(),w("span",vm,P(h(Fn).role.name),1)):se("",!0)])])):se("",!0)]),E("main",gm,[je(l.$slots,"default")])]),K(rm)]))}}),bm=re({__name:"App",setup(e){const t=Wt(),n=C(()=>t.meta.shell===!0);return(r,s)=>n.value?(g(),ee(ym,{key:0},{default:ne(()=>[K(h(Ks),null,{default:ne(({Component:o,route:l})=>[(g(),ee(tn(o),{key:l.path}))]),_:1})]),_:1})):(g(),ee(h(Ks),{key:1}))}}),_m={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},xm={class:"flex w-full max-w-[400px] flex-col gap-6"},wm={class:"flex items-center justify-center gap-3"},km={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},Em={class:"text-[22px] font-bold tracking-[-0.02em]"},$m={class:"flex flex-col gap-1.5"},Sm={class:"font-semibold"},Cm={class:"flex flex-col gap-1.5"},Om={class:"font-semibold"},Am=["aria-invalid"],Pm={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},Tm=["disabled"],Rm=re({__name:"LoginView",setup(e){const t=Wt(),n=es(),r=V(""),s=V(""),o=V(!1),l=V(!1);async function a(){if(!l.value){l.value=!0,o.value=!1;try{if(!await sm(r.value.trim(),s.value)||!await iu()){o.value=!0;return}s.value="",await Promise.all([tu(),ru().catch(()=>[])]),await n.replace(Bu(t.query.redirect)??"/")}finally{l.value=!1}}}return(i,c)=>(g(),w("main",_m,[E("div",xm,[E("div",wm,[E("span",km,[K(h(Eo),{size:20,class:"text-accent","aria-hidden":"true"})]),c[2]||(c[2]=E("span",{class:"text-[18px] font-bold text-white"},[we("Summer"),E("span",{class:"text-accent"},"CMS")],-1))]),E("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:Nt(a,["prevent"])},[E("h1",Em,P(h(B)("backend::lang.auth.title")),1),E("label",$m,[E("span",Sm,P(h(B)("backend::lang.auth.login")),1),Is(E("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),[[bl,r.value]])]),E("label",Cm,[E("span",Om,P(h(B)("backend::lang.auth.password")),1),Is(E("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>s.value=u),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":o.value?"true":void 0,class:me([o.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,Am),[[bl,s.value]])]),o.value?(g(),w("div",Pm,[K(h(dr),{size:18,"aria-hidden":"true"}),E("span",null,P(h(B)("backend::lang.auth.invalid")),1)])):se("",!0),E("button",{type:"submit",disabled:l.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},P(h(B)("backend::lang.auth.submit")),9,Tm)],32)])]))}}),Mm=/^filter\[(.+)\]$/,Im=/^[1-9]\d*$/;function cn(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function Xl(e){return Im.test(e)?Number(e):void 0}function Dm(e){const t={},n=cn(e.search).trim();n!==""&&(t.search=n);const r=cn(e.sort).trim();if(r!==""){t.sort=r;const a=cn(e.dir);t.dir=a==="desc"?"desc":"asc"}const s=Xl(cn(e.page));s!==void 0&&(t.page=s);const o=Xl(cn(e.per_page));o!==void 0&&(t.per_page=o);const l={};for(const a of Object.keys(e).sort()){const i=Mm.exec(a)?.[1],c=cn(e[a]);i&&c!==""&&(l[i]=c)}return Object.keys(l).length>0&&(t.filter=l),t}function uu(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 Nm(e){return JSON.stringify(uu(e))}const jm=/^\d+$/;function cu(e,t,n){const r=ls(t),s=En(t);if(!r||!s)return"/";const l=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(u=>u!==""),a=[r.vendor,r.plugin,r.controller];if(!a.every((u,d)=>l[d]?.toLowerCase()===u.toLowerCase()))return s;const c=l.slice(a.length);if(c.length===0)return s;if(c.length===1&&c[0]==="create")return`${s}/create`;if(c.length===2&&c[0]==="update"){const u=c[1]===":id"?String(n??""):c[1]??"";return jm.test(u)?`${s}/${u}`:s}return s}const Bm={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"},Fm={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"},Lm={key:1,class:"text-muted","data-empty":""},qm={key:2,class:"text-[13px] text-muted tabular-nums"},Es=re({__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"?B(c?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof c=="object"?"":String(c)}function s(c){return String(c).padStart(2,"0")}function o(c){if(typeof c!="string"&&typeof c!="number")return"";const u=new Date(c);return Number.isNaN(u.getTime())?String(c):`${u.getFullYear()}-${s(u.getMonth()+1)}-${s(u.getDate())} ${s(u.getHours())}:${s(u.getMinutes())}`}function l(c){return typeof c=="string"?c!==""&&c!=="0"&&c.toLowerCase()!=="false":!!c}const a=C(()=>t.column.type==="switch"?"switch":t.column.type==="datetime"?"datetime":"text"),i=C(()=>a.value==="datetime"?o(t.value):r(t.value));return(c,u)=>a.value==="switch"&&!n(e.value)?(g(),w(ue,{key:0},[l(e.value)?(g(),w("span",Bm,[K(h(Bi),{size:14,"aria-hidden":"true"}),we(P(h(B)("backend::lang.list.column_switch_true")),1)])):(g(),w("span",Fm,P(h(B)("backend::lang.list.column_switch_false")),1))],64)):i.value===""?(g(),w("span",Lm,"—")):a.value==="datetime"?(g(),w("span",qm,P(i.value),1)):(g(),w(ue,{key:3},[we(P(i.value),1)],64))}}),Vm={class:"overflow-x-auto"},Um={class:"sticky top-0 z-10"},zm={class:"h-row-head border-y border-border bg-subtle"},Hm={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},Km=["aria-checked","aria-label","disabled"],Wm=["aria-sort"],Gm=["data-sort","onClick"],Jm=["aria-busy"],Qm={key:0,class:"pl-5"},Ym={key:1},Xm=["colspan"],Zm={class:"text-muted"},ev=["aria-selected","onClick"],tv={key:0,"data-select":"",class:"pl-5"},nv=["aria-checked","aria-label","onClick"],rv={key:0,class:"flex items-center gap-3"},sv={"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"},du=re({__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,s=es();function o(H){const X=H.id;return typeof X=="number"||typeof X=="string"?X:null}function l(H,X){const q=o(H);return q===null?`row-${X}`:String(q)}function a(H){return n.rowLink?n.rowLink(H):null}function i(H,X){if(H.target?.closest("a, button, input, label, select"))return;const ye=a(X);ye&&s.push(ye)}const c=C(()=>n.rows.map(o).filter(H=>H!==null)),u=C(()=>new Set(n.selected.map(String))),d=C(()=>{const H=c.value,X=H.filter(q=>u.value.has(String(q))).length;return X===0?"false":X===H.length?"true":"mixed"});function f(H){const X=o(H);return X!==null&&u.value.has(String(X))}function p(){r("update:selected",d.value==="true"?[]:[...c.value])}function y(H){const X=o(H);X!==null&&(u.value.has(String(X))?r("update:selected",n.selected.filter(q=>String(q)!==String(X))):r("update:selected",[...n.selected,X]))}function x(H){if(n.sort?.column===H.key)return n.sort.dir==="desc"?"descending":"ascending"}function _(H){return n.sortable&&H.sortable}const S=C(()=>n.variant==="relation"),k=C(()=>S.value?"h-[56px]":"h-row"),M=C(()=>S.value?3:8);function D(H){return(typeof H=="string"||typeof H=="number"?String(H):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(q=>q.charAt(0).toUpperCase()).join("")}function G(H,X){return X===0?"font-semibold":S.value||H.relation?"text-muted":""}const be=C(()=>Math.max(n.columns.length+(n.selectable?1:0),1)),Y=["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(H,X)=>(g(),w("div",Vm,[E("table",{class:me([S.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[E("thead",Um,[E("tr",zm,[e.selectable?(g(),w("th",Hm,[E("button",{type:"button",role:"checkbox","aria-checked":d.value,"aria-label":h(B)("backend::lang.list.select_all"),disabled:e.loading||c.value.length===0,class:me([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(),ee(h(Li),{key:0,size:14,"aria-hidden":"true"})):d.value==="true"?(g(),ee(h(kn),{key:1,size:14,"aria-hidden":"true"})):se("",!0)],10,Km)])):se("",!0),(g(!0),w(ue,null,Ne(e.columns,q=>(g(),w("th",{key:q.key,scope:"col","aria-sort":_(q)?x(q)??"none":void 0,class:me([x(q)?"text-text":"text-muted","px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[_(q)?(g(),w("button",{key:0,type:"button","data-sort":q.key,class:"inline-flex items-center gap-1 font-semibold",onClick:ye=>r("sort",q.key)},[we(P(q.label)+" ",1),x(q)==="ascending"?(g(),ee(h(Fi),{key:0,size:14,"aria-hidden":"true"})):x(q)==="descending"?(g(),ee(h(ji),{key:1,size:14,"aria-hidden":"true"})):se("",!0)],8,Gm)):(g(),w(ue,{key:1},[we(P(q.label),1)],64))],10,Wm))),128))])]),E("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(g(!0),w(ue,{key:0},Ne(M.value,q=>(g(),w("tr",{key:`skeleton-${q}`,"data-skeleton":"",class:me([k.value,"border-b border-border"])},[e.selectable?(g(),w("td",Qm,[...X[0]||(X[0]=[E("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):se("",!0),(g(!0),w(ue,null,Ne(e.columns,ye=>(g(),w("td",{key:ye.key,class:"px-3.5 first:pl-5 last:pr-5"},[E("span",{class:me([Y[(q-1)%Y.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128))],2))),128)):e.rows.length===0?(g(),w("tr",Ym,[E("td",{colspan:be.value,class:"px-5 py-20 text-center"},[je(H.$slots,"empty",{},()=>[E("span",Zm,P(h(B)("backend::lang.list.no_records")),1)])],8,Xm)])):(g(!0),w(ue,{key:2},Ne(e.rows,(q,ye)=>(g(),w("tr",{key:l(q,ye),class:me([[k.value,f(q)?"bg-sel":a(q)?"hover:bg-hover":"",a(q)?"cursor-pointer":""],"border-b border-border transition-colors duration-150 ease-out"]),"aria-selected":e.selectable?f(q)?"true":"false":void 0,onClick:ve=>i(ve,q)},[e.selectable?(g(),w("td",tv,[E("button",{type:"button",role:"checkbox","aria-checked":f(q)?"true":"false","aria-label":h(B)("backend::lang.list.select_row"),class:me([f(q)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:ve=>y(q)},[f(q)?(g(),ee(h(kn),{key:0,size:14,"aria-hidden":"true"})):se("",!0)],10,nv)])):se("",!0),(g(!0),w(ue,null,Ne(e.columns,(ve,Ee)=>(g(),w("td",{key:ve.key,class:me([G(ve,Ee),"px-3.5 first:pl-5 last:pr-5"])},[S.value&&Ee===0?(g(),w("span",rv,[E("span",sv,P(D(q[ve.key])),1),K(Es,{column:ve,value:q[ve.key]},null,8,["column","value"])])):Ee===0&&a(q)?(g(),ee(h(rn),{key:1,to:a(q),class:"text-text no-underline"},{default:ne(()=>[K(Es,{column:ve,value:q[ve.key]},null,8,["column","value"])]),_:2},1032,["to"])):(g(),ee(Es,{key:2,column:ve,value:q[ve.key]},null,8,["column","value"]))],2))),128))],10,ev))),128))],8,Jm)],2)]))}}),ov=["aria-label"],lv={key:0,class:"flex flex-col gap-1 text-[13px]"},av={class:"font-semibold text-muted"},iv=["data-filter","value","onChange"],uv=["value"],cv={key:1,class:"flex flex-col gap-1 text-[13px]"},dv={class:"mb-1 font-semibold text-muted"},fv={class:"flex items-center gap-2"},pv=["data-filter","aria-label","value","onChange"],hv=["data-filter","aria-label","value","onChange"],mv={key:2,class:"flex flex-col gap-1 text-[13px]"},vv={class:"font-semibold text-muted"},gv=["data-filter","value","onChange"],yv=["value"],In="",gr="h-button rounded-control border border-border-strong bg-surface px-3 text-text",bv=re({__name:"FilterBar",props:{filters:{},values:{},source:{}},emits:["update"],setup(e,{emit:t}){const n=e,r=t;function s(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:B("backend::lang.list.column_switch_true")}),d.falseValue!==void 0&&f.push({value:JSON.stringify(d.falseValue),label:B("backend::lang.list.column_switch_false")}),f}const o=V({});async function l(d){const{data:f}=await Fe.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...n.source,scope:d.name}}});o.value={...o.value,[d.name]:f?.data??[]}}Sn(()=>{for(const d of n.filters)d.type==="scope"&&l(d)});const a=sn({});function i(){for(const d of n.filters){if(d.type!=="daterange")continue;const[f="",p=""]=(n.values[d.name]??"").split(".."),y=a[d.name];(!y||n.values[d.name]!==void 0||y.from!==""&&y.to!=="")&&(a[d.name]={from:f,to:p})}}Ge(()=>n.values,i,{immediate:!0,deep:!0});function c(d,f,p){const y={...a[d.name]??{from:"",to:""},[f]:p};a[d.name]=y,y.from!==""&&y.to!==""?r("update",d.name,`${y.from}..${y.to}`):(y.from===""&&y.to===""||n.values[d.name]!==void 0)&&r("update",d.name,null)}function u(d,f){r("update",d.name,f===In?null:f)}return(d,f)=>(g(),w("div",{role:"group","aria-label":h(B)("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),w(ue,null,Ne(e.filters,p=>(g(),w(ue,{key:p.name},[p.type==="switch"?(g(),w("label",lv,[E("span",av,P(p.label||p.name),1),E("select",{"data-filter":p.name,value:e.values[p.name]??In,class:me(gr),onChange:y=>u(p,y.target.value)},[E("option",{value:In},P(h(B)("backend::lang.list.filter_all")),1),(g(!0),w(ue,null,Ne(s(p),y=>(g(),w("option",{key:y.value,value:y.value},P(y.label),9,uv))),128))],40,iv)])):p.type==="daterange"?(g(),w("fieldset",cv,[E("legend",dv,P(p.label||p.name),1),E("div",fv,[E("input",{type:"date","data-filter":`${p.name}-from`,"aria-label":h(B)("backend::lang.list.filter_from"),value:a[p.name]?.from??"",class:me(gr),onChange:y=>c(p,"from",y.target.value)},null,40,pv),f[0]||(f[0]=E("span",{"aria-hidden":"true"},"–",-1)),E("input",{type:"date","data-filter":`${p.name}-to`,"aria-label":h(B)("backend::lang.list.filter_to"),value:a[p.name]?.to??"",class:me(gr),onChange:y=>c(p,"to",y.target.value)},null,40,hv)])])):p.type==="scope"?(g(),w("label",mv,[E("span",vv,P(p.label||p.name),1),(g(),w("select",{key:`${p.name}-${o.value[p.name]?.length??-1}`,"data-filter":p.name,value:e.values[p.name]??In,class:me(gr),onChange:y=>u(p,y.target.value)},[E("option",{value:In},P(h(B)("backend::lang.list.filter_all")),1),(g(!0),w(ue,null,Ne(o.value[p.name]??[],y=>(g(),w("option",{key:y.value,value:y.value},P(y.label),9,yv))),128))],40,gv))])):se("",!0)],64))),128))],8,ov))}}),_v=["type","disabled"],lt=re({__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=C(()=>["inline-flex shrink-0 items-center justify-center gap-2 rounded-control px-4 font-semibold whitespace-nowrap no-underline transition-colors duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-60",t.size==="sm"?"h-[38px]":"h-button",n[t.variant]]);return(s,o)=>e.to!==void 0?(g(),ee(h(rn),{key:0,to:e.to,class:me(r.value)},{default:ne(()=>[e.icon?(g(),ee(tn(e.icon),{key:0,size:16,"aria-hidden":"true"})):se("",!0),je(s.$slots,"default")]),_:3},8,["to","class"])):(g(),w("button",{key:1,type:e.type,disabled:e.disabled,class:me(r.value)},[e.icon?(g(),ee(tn(e.icon),{key:0,size:16,"aria-hidden":"true"})):se("",!0),je(s.$slots,"default")],10,_v))}}),xv={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},wv={key:0,class:"relative block w-[320px] max-w-full"},kv={class:"sr-only"},Ev=["value","placeholder"],$v={key:1},Sv={class:"flex items-center gap-2.5"},Cv={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"},Ov=re({__name:"ListToolbar",props:{showSearch:{type:Boolean},search:{},searchPrompt:{},buttons:{},selectedCount:{},selectedLabel:{},deleteLabel:{}},emits:["update:search","delete"],setup(e,{emit:t}){const n=t;return(r,s)=>(g(),w("div",xv,[e.showSearch?(g(),w("label",wv,[E("span",kv,P(h(B)("backend::lang.list.search")),1),K(h(rs),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),E("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:s[0]||(s[0]=o=>n("update:search",o.target.value))},null,40,Ev)])):(g(),w("span",$v)),E("div",Sv,[e.selectedCount>0?(g(),w("span",Cv,[K(h(kn),{size:14,"aria-hidden":"true"}),we(P(e.selectedLabel),1)])):se("",!0),(g(!0),w(ue,null,Ne(e.buttons,o=>(g(),w(ue,{key:o},[o==="delete"?(g(),ee(lt,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:h($o),disabled:e.selectedCount===0,onClick:s[1]||(s[1]=l=>n("delete"))},{default:ne(()=>[we(P(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):se("",!0)],64))),128))])]))}}),Av={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"},Pv={"data-range":""},Tv={key:0,class:"flex items-center gap-2"},Rv=["value"],Mv=["value"],Iv=["aria-label"],Dv=["disabled"],Nv={key:0,"aria-hidden":"true",class:"px-1"},jv=["data-page","aria-current","onClick"],Bv=["disabled"],$s="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",fu=re({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const n=e,r=t,s=C(()=>n.meta?.total??0),o=C(()=>n.meta?.page??1),l=C(()=>Math.max(n.meta?.last_page??1,1)),a=C(()=>{const u=n.meta;if(!u||u.total===0)return Co("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 B("backend::lang.list.pagination_range",{from:d,to:f,total:u.total})}),i=C(()=>{const u=l.value,d=o.value,f=new Set([1,u,d-1,d,d+1].filter(x=>x>=1&&x<=u));d<=3&&[2,3].forEach(x=>x<=u&&f.add(x)),d>=u-2&&[u-1,u-2].forEach(x=>x>=1&&f.add(x));const p=[...f].sort((x,_)=>x-_),y=[];return p.forEach((x,_)=>{const S=p[_-1];S!==void 0&&x-S>1&&y.push(null),y.push(x)}),y});function c(u){const d=Number(u.target.value);Number.isFinite(d)&&d>0&&r("perPage",d)}return(u,d)=>(g(),w("footer",Av,[E("span",Pv,P(e.loading?h(B)("backend::lang.list.loading"):a.value),1),e.perPageOptions.length>1?(g(),w("label",Tv,[E("span",null,P(h(B)("backend::lang.list.records_per_page")),1),E("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),w(ue,null,Ne(e.perPageOptions,f=>(g(),w("option",{key:f,value:String(f)},P(f),9,Mv))),128))],40,Rv)])):se("",!0),!e.loading&&s.value>0?(g(),w("nav",{key:1,"aria-label":h(B)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[E("button",{type:"button","data-page":"prev",class:me($s),disabled:o.value<=1,onClick:d[0]||(d[0]=f=>r("page",o.value-1))},[K(h(ko),{size:14,"aria-hidden":"true"}),we(P(h(B)("backend::lang.list.prev_page")),1)],8,Dv),(g(!0),w(ue,null,Ne(i.value,(f,p)=>(g(),w(ue,{key:f??`gap-${p}`},[f===null?(g(),w("span",Nv,"…")):(g(),w("button",{key:1,type:"button","data-page":f,"aria-current":f===o.value?"page":void 0,class:me([$s,f===o.value?"border-transparent bg-sel font-bold":""]),onClick:y=>f!==o.value&&r("page",f)},P(f),11,jv))],64))),128)),E("button",{type:"button","data-page":"next",class:me($s),disabled:o.value>=l.value,onClick:d[1]||(d[1]=f=>r("page",o.value+1))},[we(P(h(B)("backend::lang.list.next_page")),1),K(h(ns),{size:14,"aria-hidden":"true"})],8,Bv)],8,Iv)):se("",!0)]))}});function To(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[l=>{const a=rt(r,l);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}\``}`)},l=>(zn(r,l),l)]}function Ht(){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 pu(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function Fv(e){return e==null}function Lv(e,t){return _a()?(Qu(e,t),!0):!1}function qv(e){let t=!1,n;const r=ba(!0);return((...s)=>(t||(n=r.run(()=>e(...s)),t=!0),n))}const Gt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vv=e=>typeof e<"u",Uv=Object.prototype.toString,zv=e=>Uv.call(e)==="[object Object]",Zl=Hv();function Hv(){var e,t,n;return Gt&&!!(!((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 Ss(e){return Array.isArray(e)?e:[e]}function Kv(e){return Bt()}function Wv(e){if(!Gt)return e;let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...o)=>(t+=1,r||(r=ba(!0),n=r.run(()=>e(...o))),Lv(s),n))}function Gv(e,t){Kv()&&on(e,t)}function Jv(e,t,n){return Ge(e,t,{...n,immediate:!0})}const Ro=Gt?window:void 0;function as(e){var t;const n=Et(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function hu(...e){const t=(r,s,o,l)=>(r.addEventListener(s,o,l),()=>r.removeEventListener(s,o,l)),n=C(()=>{const r=Ss(Et(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return Jv(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(o=>as(o)))!==null&&r!==void 0?r:[Ro].filter(o=>o!=null),Ss(Et(n.value?e[1]:e[0])),Ss(h(n.value?e[2]:e[1])),Et(n.value?e[3]:e[2])]},([r,s,o,l],a,i)=>{if(!r?.length||!s?.length||!o?.length)return;const c=zv(l)?{...l}:l,u=r.flatMap(d=>s.flatMap(f=>o.map(p=>t(d,f,p,c))));i(()=>{u.forEach(d=>d())})},{flush:"post"})}function Qv(){const e=Na(!1),t=Bt();return t&&Sn(()=>{e.value=!0},t),e}function Yv(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Xv(...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:s=Ro,eventName:o="keydown",passive:l=!1,dedupe:a=!1}=r,i=Yv(t);return hu(s,o,u=>{u.repeat&&Et(a)||i(u)&&n(u)},l)}function Zv(e){return JSON.parse(JSON.stringify(e))}function eg(e,t,n,r={}){var s,o;const{clone:l=!1,passive:a=!1,eventName:i,deep:c=!1,defaultValue:u,shouldEmit:d}=r,f=Bt(),p=n||f?.emit||(f==null||(s=f.$emit)===null||s===void 0?void 0:s.bind(f))||(f==null||(o=f.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(f?.proxy));let y=i;y=y||`update:${t.toString()}`;const x=k=>l?typeof l=="function"?l(k):Zv(k):k,_=()=>Vv(e[t])?x(e[t]):u,S=k=>{d?d(k)&&p(y,k):p(y,k)};if(a){const k=V(_());let M=!1;return Ge(()=>e[t],D=>{M||(M=!0,k.value=x(D),ct(()=>M=!1))}),Ge(k,D=>{!M&&(D!==e[t]||c)&&S(D)},{deep:c}),k}else return C({get(){return _()},set(k){S(k)}})}function Mo(e){return e?e.flatMap(t=>t.type===ue?Mo(t.children):[t]):[]}const[mu]=To("ConfigProvider");function Cs(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 Ys(e,t,n=".",r){if(!Cs(t))return Ys(e,{},n,r);const s={...t};for(const o of Object.keys(e)){if(o==="__proto__"||o==="constructor")continue;const l=e[o];l!=null&&(r&&r(s,o,l,n)||(Array.isArray(l)&&Array.isArray(s[o])?s[o]=[...l,...s[o]]:Cs(l)&&Cs(s[o])?s[o]=Ys(l,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=l))}return s}function tg(e){return(...t)=>t.reduce((n,r)=>Ys(n,r,"",e),{})}const ng=tg(),rg=Wv(()=>{const e=V(new Map),t=V(),n=C(()=>{for(const l of e.value.values())if(l)return!0;return!1}),r=mu({scrollBody:V(!0)});let s=null;const o=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Zl&&s?.(),t.value=void 0};return Ge(n,(l,a)=>{if(!Gt)return;if(!l){a&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);const i=window.innerWidth-document.documentElement.clientWidth,c={padding:i,margin:0},u=r.scrollBody?.value?typeof r.scrollBody.value=="object"?ng({padding:r.scrollBody.value.padding===!0?i:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?i:r.scrollBody.value.margin},c):c:{padding:0,margin:0};i>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",`${i}px`),document.body.style.overflow="hidden"),Zl&&(s=hu(document,"touchmove",d=>og(d),{passive:!1})),ct(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function sg(e){const t=Math.random().toString(36).substring(2,7),n=rg();n.value.set(t,e);const r=C({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return Gv(()=>{n.value.delete(t)}),r}function vu(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:vu(n)}}function og(e){const t=e||window.event,n=t.target;return n instanceof Element&&vu(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function fr(e){const t=Bt(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(s=>{r[$r(We(s))]=(...o)=>e(s,...o)}),r}function Ye(){const e=Bt(),t=V(),n=C(()=>r());Za(()=>{n.value!==r()&&gc(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:as(t)}const s=Object.assign({},e.exposed),o={};for(const a in e.props)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function l(a){if(t.value=a,!!a&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.hasOwn(a,"$el"))){const i=a.$.exposed,c=Object.assign({},o);for(const u in i)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>i[u]});e.exposed=c}}return{forwardRef:l,currentRef:t,currentElement:n}}function lg(e){const t=Bt(),n=Object.keys(t?.type.props??{}).reduce((s,o)=>{const l=(t?.type.props[o]).default;return l!==void 0&&(s[o]=l),s},{}),r=xc(e);return C(()=>{const s={},o=t?.vnode.props??{};return Object.keys(o).forEach(l=>{s[We(l)]=o[l]}),Object.keys({...n,...s}).reduce((l,a)=>(r.value[a]!==void 0&&(l[a]=r.value[a]),l),{})})}function ag(e,t){const n=lg(e),r=t?fr(t):{};return C(()=>({...n.value,...r}))}var ig=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dn=new WeakMap,yr=new WeakMap,br={},Os=0,gu=function(e){return e&&(e.host||gu(e.parentNode))},ug=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=gu(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})},cg=function(e,t,n,r){var s=ug(t,Array.isArray(e)?e:[e]);br[n]||(br[n]=new WeakMap);var o=br[n],l=[],a=new Set,i=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||i.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),y=p!==null&&p!=="false",x=(dn.get(f)||0)+1,_=(o.get(f)||0)+1;dn.set(f,x),o.set(f,_),l.push(f),x===1&&y&&yr.set(f,!0),_===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",f,S)}})};return u(t),a.clear(),Os++,function(){l.forEach(function(d){var f=dn.get(d)-1,p=o.get(d)-1;dn.set(d,f),o.set(d,p),f||(yr.has(d)||d.removeAttribute(r),yr.delete(d)),p||d.removeAttribute(n)}),Os--,Os||(dn=new WeakMap,dn=new WeakMap,yr=new WeakMap,br={})}},dg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=ig(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),cg(r,s,n,"aria-hidden")):function(){return null}};function fg(e){let t;Ge(()=>as(e),n=>{let r=!1;try{r=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!r?t=dg(n):t&&t()}),ur(()=>{t&&t()})}function ea(e,t="reka"){let n;const r=mu({useId:void 0});return r.useId?n=r.useId():n=jc?.(),t?`${t}-${n}`:n}function pg(e,t){const n=V(e);function r(o){return t[n.value][o]??n.value}return{state:n,dispatch:o=>{n.value=r(o)}}}function hg(e,t){const n=V({}),r=V("none"),s=V(e),o=e.value?"mounted":"unmounted";let l;const a=t.value?.ownerDocument.defaultView??Ro,{state:i,dispatch:c}=pg(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=_=>{if(Gt){const S=new CustomEvent(_,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(S)}};Ge(e,async(_,S)=>{const k=S!==_;if(await ct(),k){const M=r.value,D=_r(t.value);_?(c("MOUNT"),u("enter"),D==="none"&&u("after-enter")):D==="none"||D==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):S&&M!==D?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=_=>{const S=_r(t.value),k=S.includes(CSS.escape(_.animationName)),M=i.value==="mounted"?"enter":"leave";if(_.target===t.value&&k&&(u(`after-${M}`),c("ANIMATION_END"),!s.value)){const D=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",l=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=D)})}_.target===t.value&&S==="none"&&c("ANIMATION_END")},f=_=>{_.target===t.value&&(r.value=_r(t.value))},p=Ge(t,(_,S)=>{_?(n.value=getComputedStyle(_),_.addEventListener("animationstart",f),_.addEventListener("animationcancel",d),_.addEventListener("animationend",d)):(c("ANIMATION_END"),l!==void 0&&a?.clearTimeout(l),S?.removeEventListener("animationstart",f),S?.removeEventListener("animationcancel",d),S?.removeEventListener("animationend",d))},{immediate:!0}),y=Ge(i,()=>{const _=_r(t.value);r.value=i.value==="mounted"?_:"none"});return ur(()=>{p(),y()}),{isPresent:C(()=>["mounted","unmountSuspended"].includes(i.value))}}function _r(e){return e&&getComputedStyle(e).animationName||"none"}var yu=re({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:s}=Fa(e),o=V(),{isPresent:l}=hg(r,o);n({present:l});let a=t.default({present:l.value});a=Mo(a||[]);const i=Bt();if(a&&a?.length>1){const c=i?.parent?.type.name?`<${i.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()=>s.value||r.value||l.value?Rt(t.default({present:l.value})[0],{ref:c=>{const u=as(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?o.value=u.firstElementChild:o.value=u),u}}):null}});const mg=re({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=Mo(n.default()),s=r.findIndex(i=>i.type!==$t);if(s===-1)return r;const o=r[s];delete o.props?.ref;const l=o.props?Qe(t,o.props):t,a=nn({...o,props:{}},l);return r.length===1?a:(r[s]=a,r)}}}),vg=["area","img","input"],Cn=re({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"&&vg.includes(r)?()=>Rt(r,t):r!=="template"?()=>Rt(e.as,t,{default:n.default}):()=>Rt(mg,t,{default:n.default})}}),[Ft,gg]=To("DialogRoot");var yg=re({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,s=eg(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=V(),l=V(),{modal:a}=Fa(n);return gg({open:s,modal:a,openModal:()=>{s.value=!0},onOpenChange:i=>{s.value=i},onOpenToggle:()=>{s.value=!s.value},contentId:"",titleId:"",descriptionId:"",triggerElement:o,contentElement:l}),(i,c)=>je(i.$slots,"default",{open:h(s),close:()=>s.value=!1})}}),bu=yg,bg=re({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ye();const n=Ft();return(r,s)=>(g(),ee(h(Cn),Qe(t,{type:r.as==="button"?"button":void 0,onClick:s[0]||(s[0]=o=>h(n).onOpenChange(!1))}),{default:ne(()=>[je(r.$slots,"default")]),_:3},16,["type"]))}}),Xs=bg;const _g="dismissableLayer.pointerDownOutside",xg="dismissableLayer.focusOutside";function _u(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]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||s.indexOf(r)<s.indexOf(n)))}function wg(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,s=V(!1),o=V(()=>{});return er(l=>{if(!Gt||!Et(n))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if(_u(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let p=function(){pu(_g,e,f)};var d=p;const f={originalEvent:c};c.pointerType==="touch"?(r.removeEventListener("click",o.value),o.value=p,r.addEventListener("click",o.value,{once:!0})):p()}else r.removeEventListener("click",o.value);s.value=!1}},i=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);l(()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",a),r.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>{Et(n)&&(s.value=!0)}}}function kg(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,s=V(!1);return er(o=>{if(!Gt||!Et(n))return;const l=async a=>{if(!t?.value)return;await ct(),await ct();const i=a.target;!t.value||!i||_u(t.value,i)||a.target&&!s.value&&pu(xg,e,{originalEvent:a})};r.addEventListener("focusin",l),o(()=>r.removeEventListener("focusin",l))}),{onFocusCapture:()=>{Et(n)&&(s.value=!0)},onBlurCapture:()=>{Et(n)&&(s.value=!1)}}}const ot=sn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var Eg=re({__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:s,currentElement:o}=Ye(),l=C(()=>o.value?.ownerDocument??globalThis.document),a=C(()=>ot.layersRoot),i=C(()=>o.value?Array.from(a.value).indexOf(o.value):-1),c=C(()=>ot.layersWithOutsidePointerEventsDisabled.size>0),u=C(()=>{const p=Array.from(a.value),[y]=[...ot.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(y);return i.value>=x}),d=wg(async p=>{const y=[...ot.branches].some(x=>x?.contains(p.target));!u.value||y||(r("pointerDownOutside",p),r("interactOutside",p),await ct(),p.defaultPrevented||r("dismiss"))},o),f=kg(p=>{[...ot.branches].some(x=>x?.contains(p.target))||(r("focusOutside",p),r("interactOutside",p),p.defaultPrevented||r("dismiss"))},o);return Xv("Escape",p=>{i.value===a.value.size-1&&(r("escapeKeyDown",p),p.defaultPrevented||r("dismiss"))}),Ge([o,()=>n.disableOutsidePointerEvents],([p,y],x,_)=>{p&&(y&&(ot.layersWithOutsidePointerEventsDisabled.size===0&&(ot.originalBodyPointerEvents=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),ot.layersWithOutsidePointerEventsDisabled.add(p),_(()=>{ot.layersWithOutsidePointerEventsDisabled.delete(p),ot.layersWithOutsidePointerEventsDisabled.size===0&&!Fv(ot.originalBodyPointerEvents)&&(l.value.body.style.pointerEvents=ot.originalBodyPointerEvents)})),a.value.add(p))},{immediate:!0}),er(p=>{p(()=>{o.value&&(a.value.delete(o.value),ot.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(p,y)=>(g(),ee(h(Cn),{ref:h(s),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:ar({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:h(f).onFocusCapture,onBlurCapture:h(f).onBlurCapture,onPointerdownCapture:h(d).onPointerDownCapture},{default:ne(()=>[je(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),$g=Eg;const Sg=qv(()=>V([]));function Cg(){const e=Sg();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=ta(e.value,t),e.value.unshift(t)},remove(t){e.value=ta(e.value,t),e.value[0]?.resume()}}}function ta(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}const As="focusScope.autoFocusOnMount",Ps="focusScope.autoFocusOnUnmount",na={bubbles:!1,cancelable:!0};function Og(e,{select:t=!1}={}){const n=Ht();for(const r of e)if(Vt(r,{select:t}),Ht()!==n)return!0}function Ag(e){const t=xu(e),n=ra(t,e),r=ra(t.reverse(),e);return[n,r]}function xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ra(e,t){for(const n of e)if(!Pg(n,{upTo:t}))return n}function Pg(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 Tg(e){return e instanceof HTMLInputElement&&"select"in e}function Vt(e,{select:t=!1}={}){if(e&&e.focus){const n=Ht();e.focus({preventScroll:!0}),e!==n&&Tg(e)&&t&&e.select()}}var Rg=re({__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:s,currentElement:o}=Ye(),l=V(null),a=Cg(),i=sn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});er(u=>{if(!Gt)return;const d=o.value;if(!n.trapped)return;function f(_){if(i.paused||!d)return;const S=_.target;d.contains(S)?l.value=S:Vt(l.value,{select:!0})}function p(_){if(i.paused||!d)return;const S=_.relatedTarget;S!==null&&(d.contains(S)||Vt(l.value,{select:!0}))}function y(_){const S=l.value;if(S===null||!_.some(D=>D.removedNodes.length>0))return;d.contains(S)||Vt(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const x=new MutationObserver(y);d&&x.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),x.disconnect()})}),er(async u=>{const d=o.value;if(await ct(),!d)return;a.add(i);const f=Ht();if(!d.contains(f)){const y=new CustomEvent(As,na);d.addEventListener(As,x=>r("mountAutoFocus",x)),d.dispatchEvent(y),y.defaultPrevented||(Og(xu(d),{select:!0}),Ht()===f&&Vt(d))}u(()=>{d.removeEventListener(As,_=>r("mountAutoFocus",_));const y=new CustomEvent(Ps,na),x=_=>{r("unmountAutoFocus",_)};d.addEventListener(Ps,x),d.dispatchEvent(y),d.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{y.defaultPrevented||Vt(f??document.body,{select:!0}),d.removeEventListener(Ps,x),a.remove(i),d.removeAttribute("data-focus-scope-unmounting")},0)})});function c(u){if(!n.loop&&!n.trapped||i.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,f=Ht();if(d&&f){const p=u.currentTarget,[y,x]=Ag(p);y&&x?!u.shiftKey&&f===x?(u.preventDefault(),n.loop&&Vt(y,{select:!0})):u.shiftKey&&f===y&&(u.preventDefault(),n.loop&&Vt(x,{select:!0})):f===p&&u.preventDefault()}}return(u,d)=>(g(),ee(h(Cn),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:ne(()=>[je(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),Mg=Rg;function Ig(e){return e?"open":"closed"}var Dg=re({__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,s=Ft(),{forwardRef:o,currentElement:l}=Ye();return s.titleId||=ea(void 0,"reka-dialog-title"),s.descriptionId||=ea(void 0,"reka-dialog-description"),Sn(()=>{s.contentElement=l,Ht()!==document.body&&(s.triggerElement.value=Ht())}),(a,i)=>(g(),ee(h(Mg),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:i[5]||(i[5]=c=>r("openAutoFocus",c)),onUnmountAutoFocus:i[6]||(i[6]=c=>r("closeAutoFocus",c))},{default:ne(()=>[K(h($g),Qe({id:h(s).contentId,ref:h(o),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":h(s).descriptionId,"aria-labelledby":h(s).titleId,"data-state":h(Ig)(h(s).open.value)},a.$attrs,{onDismiss:i[0]||(i[0]=c=>h(s).onOpenChange(!1)),onEscapeKeyDown:i[1]||(i[1]=c=>r("escapeKeyDown",c)),onFocusOutside:i[2]||(i[2]=c=>r("focusOutside",c)),onInteractOutside:i[3]||(i[3]=c=>r("interactOutside",c)),onPointerDownOutside:i[4]||(i[4]=c=>r("pointerDownOutside",c))}),{default:ne(()=>[je(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),wu=Dg,Ng=re({__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,s=Ft(),o=fr(r),{forwardRef:l,currentElement:a}=Ye();return fg(a),(i,c)=>(g(),ee(wu,Qe({...n,...h(o)},{ref:h(l),"trap-focus":h(s).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),h(s).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:ne(()=>[je(i.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),jg=Ng,Bg=re({__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,s=fr(t);Ye();const o=Ft(),l=V(!1),a=V(!1);return(i,c)=>(g(),ee(wu,Qe({...n,...h(s)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(l.value||h(o).triggerElement.value?.focus(),u.preventDefault()),l.value=!1,a.value=!1}),onInteractOutside:c[1]||(c[1]=u=>{u.defaultPrevented||(l.value=!0,u.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const d=u.target;h(o).triggerElement.value?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.value&&u.preventDefault()})}),{default:ne(()=>[je(i.$slots,"default")]),_:3},16))}}),Fg=Bg,Lg=re({__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,s=Ft(),o=fr(r),{forwardRef:l}=Ye();return(a,i)=>(g(),ee(h(yu),{present:a.forceMount||h(s).open.value},{default:ne(()=>[h(s).modal.value?(g(),ee(jg,Qe({key:0,ref:h(l)},{...n,...h(o),...a.$attrs}),{default:ne(()=>[je(a.$slots,"default")]),_:3},16)):(g(),ee(Fg,Qe({key:1,ref:h(l)},{...n,...h(o),...a.$attrs}),{default:ne(()=>[je(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),ku=Lg,qg=re({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ye();const n=Ft();return(r,s)=>(g(),ee(h(Cn),Qe(t,{id:h(n).descriptionId}),{default:ne(()=>[je(r.$slots,"default")]),_:3},16,["id"]))}}),Eu=qg,Vg=re({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Ft();return sg(!0),Ye(),(n,r)=>(g(),ee(h(Cn),{as:n.as,"as-child":n.asChild,"data-state":h(t).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:r[0]||(r[0]=Nt(()=>{},["left","self","prevent"]))},{default:ne(()=>[je(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Ug=Vg,zg=re({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Ft(),{forwardRef:n}=Ye();return(r,s)=>h(t)?.modal.value?(g(),ee(h(yu),{key:0,present:r.forceMount||h(t).open.value},{default:ne(()=>[K(Ug,Qe(r.$attrs,{ref:h(n),as:r.as,"as-child":r.asChild}),{default:ne(()=>[je(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):se("v-if",!0)}}),$u=zg,Hg=re({__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=Qv();return(n,r)=>h(t)||n.forceMount?(g(),ee(Nc,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[je(n.$slots,"default")],8,["to","disabled","defer"])):se("v-if",!0)}}),Su=Hg,Kg=re({__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(),ee(h(Su),$n(ln(t)),{default:ne(()=>[je(n.$slots,"default")]),_:3},16))}}),Wg=Kg,Gg=re({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=Ft();return Ye(),(r,s)=>(g(),ee(h(Cn),Qe(t,{id:h(n).titleId}),{default:ne(()=>[je(r.$slots,"default")]),_:3},16,["id"]))}}),Cu=Gg;const[Jg,Qg]=To("AlertDialogContent");var Yg=re({__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,s=fr(t);Ye();const o=V();return Qg({onCancelElementChange:l=>{o.value=l}}),(l,a)=>(g(),ee(h(ku),Qe({...n,...h(s)},{role:"alertdialog",onPointerDownOutside:a[0]||(a[0]=Nt(()=>{},["prevent"])),onInteractOutside:a[1]||(a[1]=Nt(()=>{},["prevent"])),onOpenAutoFocus:a[2]||(a[2]=()=>{ct(()=>{o.value?.focus({preventScroll:!0})})})}),{default:ne(()=>[je(l.$slots,"default")]),_:3},16))}}),Xg=Yg,Zg=re({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Jg(),{forwardRef:r,currentElement:s}=Ye();return Sn(()=>{n.onCancelElementChange(s.value)}),(o,l)=>(g(),ee(h(Xs),Qe(t,{ref:h(r)}),{default:ne(()=>[je(o.$slots,"default")]),_:3},16))}}),ey=Zg,ty=re({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return Ye(),(n,r)=>(g(),ee(h(Eu),$n(ln(t)),{default:ne(()=>[je(n.$slots,"default")]),_:3},16))}}),ny=ty,ry=re({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ye(),(n,r)=>(g(),ee(h($u),$n(ln(t)),{default:ne(()=>[je(n.$slots,"default")]),_:3},16))}}),sy=ry,oy=re({__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(),ee(h(Su),$n(ln(t)),{default:ne(()=>[je(n.$slots,"default")]),_:3},16))}}),ly=oy,ay=re({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const s=ag(e,t);return Ye(),(o,l)=>(g(),ee(h(bu),Qe(h(s),{modal:!0}),{default:ne(a=>[je(o.$slots,"default",$n(ln(a)))]),_:3},16))}}),iy=ay,uy=re({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return Ye(),(n,r)=>(g(),ee(h(Cu),$n(ln(t)),{default:ne(()=>[je(n.$slots,"default")]),_:3},16))}}),cy=uy;const dy={class:"flex gap-2.5"},Io=re({__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(o){n("update:open",o),o||n("cancel")}function s(){n("confirm"),n("update:open",!1)}return(o,l)=>(g(),ee(h(iy),{open:e.open,"onUpdate:open":r},{default:ne(()=>[K(h(ly),null,{default:ne(()=>[K(h(sy),{class:"fixed inset-0 z-40 bg-overlay"}),K(h(Xg),{"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:ne(()=>[K(h(cy),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:ne(()=>[we(P(e.title??h(B)("backend::lang.form.confirm")),1)]),_:1}),K(h(ny),{class:"text-muted"},{default:ne(()=>[we(P(e.message),1)]),_:1}),E("div",dy,[K(h(ey),{"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:ne(()=>[we(P(e.cancelLabel??h(B)("backend::lang.form.cancel")),1)]),_:1}),E("button",{type:"button","data-action":"confirm",class:me([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:s},P(e.confirmLabel??h(B)("backend::lang.form.confirm")),3)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function Do(){const e=V(null);let t=null;function n(s){const o=t;t=null,e.value=null,o?.(s)}function r(s){return n(!1),e.value=s,new Promise(o=>{t=o})}return{request:e,ask:r,confirm:()=>n(!0),cancel:()=>n(!1)}}const fy={class:"flex flex-col gap-5"},py={class:"flex flex-wrap items-end justify-between gap-4"},hy={class:"flex flex-col"},my={class:"text-[26px] font-bold tracking-[-0.02em]"},vy={key:0,"data-record-count":"",class:"text-muted"},gy={key:0,class:"flex items-center gap-2.5"},yy={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},by={key:2,role:"alert",class:"border-t border-border px-5 py-4 text-danger"},_y={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},xy={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},wy={class:"text-[17px] font-bold"},ky={class:"max-w-[420px] text-muted"},Ey={key:1,"data-empty-list":"",class:"text-muted"},$y=300,Sy=re({__name:"ListView",setup(e){const t=Wt(),n=es(),r={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},s=Zi(r),o=En(s)??"/",l=V(null),a=V([]),i=V(null),c=V(!0),u=V(!1),d=V([]),f=V(!1),p=Do(),y=C(()=>Dm(t.query)),x=V(y.value.search??""),_=C(()=>l.value?.messages),S=C(()=>l.value?.title?l.value.title:Po(r.vendor,r.plugin)?.sideMenu.find(te=>te.controller===s)?.label??s),k=C(()=>i.value?Me(_.value?.recordCount,i.value.total):""),M=C(()=>l.value?.toolbarButtons??[]),D=C(()=>M.value.filter(L=>L==="create")),G=C(()=>M.value.filter(L=>L==="delete")),be=C(()=>{const L=l.value?.perPageOptions??[];return L.length>0?L:[l.value?.recordsPerPage||20]}),Y=C(()=>y.value.per_page??i.value?.per_page??l.value?.recordsPerPage??20),H=C(()=>y.value.sort?{column:y.value.sort,dir:y.value.dir==="desc"?"desc":"asc"}:null);function X(L){const te=l.value?.recordUrl,N=L.id;return!te||typeof N!="number"&&typeof N!="string"?null:cu(te,s,N)}function q(L){n.replace({path:t.path,query:uu(L)})}let ye=0;async function ve(){const L=++ye;c.value=!0,u.value=!1;const te=await Fe.GET("/{vendor}/{plugin}/{controller}",{params:{path:r,query:y.value}});L===ye&&(a.value=te.data?.data??[],i.value=te.data?.meta??null,u.value=!te.data,c.value=!1)}async function Ee(){const L=await Fe.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:r}});l.value=L.data?.data??null,l.value||(u.value=!0,c.value=!1)}Ee(),Ge(()=>Nm(y.value),()=>{d.value=[],x.value=y.value.search??"",ve()},{immediate:!0});let Be=null;function Te(L){x.value=L,Be!==null&&clearTimeout(Be),Be=setTimeout(()=>{Be=null;const te=L.trim();q({...y.value,search:te===""?void 0:te,page:void 0})},$y)}on(()=>{Be!==null&&clearTimeout(Be)});function $e(){x.value="",q({...y.value,search:void 0,page:void 0})}function pe(L){const te=H.value;te?.column!==L?q({...y.value,sort:L,dir:"asc",page:void 0}):te.dir==="asc"?q({...y.value,sort:L,dir:"desc",page:void 0}):q({...y.value,sort:void 0,dir:void 0,page:void 0})}function ce(L){q({...y.value,page:L})}function O(L){q({...y.value,per_page:L,page:void 0})}function T(L,te){const N={...y.value.filter??{}};te===null?delete N[L]:N[L]=te,q({...y.value,filter:N,page:void 0})}async function F(){const L=d.value.map(Number).filter(N=>Number.isInteger(N)&&N>0);if(!(L.length===0||f.value||!await p.ask({message:Me(_.value?.deleteConfirm,L.length),confirmLabel:B("backend::lang.form.delete"),danger:!0}))){f.value=!0;try{const N=await Fe.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:r},body:{ids:L}});if(N.data){ze(Me(_.value?.deleted,N.data.data.deleted)),d.value=[],await ve();return}ze(N.error?.error.message||B("backend::lang.list.delete_failed"),"danger")}catch{ze(B("backend::lang.list.delete_failed"),"danger")}finally{f.value=!1}}}return(L,te)=>(g(),w("section",fy,[E("header",py,[E("div",hy,[E("h1",my,P(S.value),1),k.value?(g(),w("p",vy,P(k.value),1)):se("",!0)]),D.value.length>0?(g(),w("div",gy,[(g(!0),w(ue,null,Ne(D.value,N=>(g(),ee(lt,{key:N,"data-action":"create",variant:"primary",icon:h(qi),to:`${h(o)}/create`},{default:ne(()=>[we(P(h(Me)(_.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):se("",!0)]),E("div",yy,[l.value?(g(),ee(Ov,{key:0,"show-search":l.value.showSearch,search:x.value,"search-prompt":h(Me)(_.value?.searchPrompt),buttons:G.value,"selected-count":d.value.length,"selected-label":h(Me)(_.value?.selected,d.value.length),"delete-label":h(Me)(_.value?.deleteSelected,d.value.length),"onUpdate:search":Te,onDelete:F},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label"])):se("",!0),l.value&&l.value.filters.length>0?(g(),ee(bv,{key:1,filters:l.value.filters,values:y.value.filter??{},source:r,onUpdate:T},null,8,["filters","values"])):se("",!0),u.value&&!c.value?(g(),w("p",by,P(h(B)("backend::lang.list.load_failed")),1)):(g(),ee(du,{key:3,columns:l.value?.columns??[],rows:a.value,loading:c.value||!l.value,"row-link":X,selectable:l.value?.showCheckboxes??!1,selected:d.value,sortable:l.value?.showSorting??!1,sort:H.value,"onUpdate:selected":te[0]||(te[0]=N=>d.value=N),onSort:pe},{empty:ne(()=>[y.value.search?(g(),w("div",_y,[E("span",xy,[K(h(Ui),{size:24,"aria-hidden":"true"})]),E("p",wy,P(h(Me)(_.value?.emptySearch,void 0,{term:y.value.search})),1),E("p",ky,P(h(Me)(_.value?.emptySearchHint,void 0,{term:y.value.search})),1),K(lt,{"data-action":"clear-search",onClick:$e},{default:ne(()=>[we(P(h(B)("backend::lang.list.clear_search")),1)]),_:1})])):(g(),w("p",Ey,P(h(Me)(_.value?.empty)||l.value?.noRecordsMessage||h(B)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort"])),K(fu,{meta:i.value,loading:c.value||!l.value,"per-page-options":be.value,"per-page":Y.value,onPage:ce,onPerPage:O},null,8,["meta","loading","per-page-options","per-page"])]),K(Io,{open:h(p).request.value!==null,message:h(p).request.value?.message??"","confirm-label":h(p).request.value?.confirmLabel,danger:h(p).request.value?.danger,onConfirm:h(p).confirm,onCancel:h(p).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])]))}}),Cy={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"},Oy={class:"flex flex-col gap-1"},Ou=re({__name:"FormErrorBanner",props:{errors:{},fieldNames:{}},setup(e){const t=e,n=C(()=>Object.keys(t.errors).length),r=C(()=>Object.entries(t.errors).filter(([s])=>!t.fieldNames.includes(s)).flatMap(([,s])=>s));return(s,o)=>n.value>0?(g(),w("div",Cy,[K(h(dr),{size:20,class:"mt-px shrink-0","aria-hidden":"true"}),E("div",Oy,[E("p",null,[E("strong",null,P(h(B)("backend::lang.form.error_title")),1),we(" "+P(h(Co)("backend::lang.form.error_fields",n.value)),1)]),(g(!0),w(ue,null,Ne(r.value,(l,a)=>(g(),w("p",{key:a,class:"text-[13px]"},P(l),1))),128))])])):se("",!0)}}),Ay={class:"flex min-w-0 flex-col"},Py=["for"],Ty={key:0,class:"text-danger","aria-hidden":"true"},Ry=["id"],My=["id","name","checked","aria-invalid","aria-describedby"],Iy=re({__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,s=C(()=>Tu(n.modelValue));function o(l){r("update:modelValue",Ru(n.modelValue,l.target.checked))}return(l,a)=>(g(),w("div",{class:me([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[E("div",Ay,[E("label",{for:e.controlId,class:"font-semibold"},[we(P(e.field.label||e.field.name),1),e.field.required?(g(),w("span",Ty," *")):se("",!0)],8,Py),e.field.comment?(g(),w("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},P(e.field.comment),9,Ry)):se("",!0)]),E("input",{id:e.controlId,type:"checkbox",name:e.field.name,checked:s.value,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"size-5 shrink-0 rounded-[6px] accent-primary",onChange:o},null,40,My)],2))}}),Dy={class:"relative"},Ny=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],jy=["value"],xr="empty",wr="placeholder",By=re({__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,s=C(()=>n.field.options??[]);function o(c,u){return c==null||u===null||u===void 0?c===u||c==null&&u==null:String(c)===String(u)}const l=C(()=>{const c=s.value.findIndex(u=>o(u.value,n.modelValue));return c>=0?String(c):n.field.emptyOption!==void 0&&(n.modelValue===null||n.modelValue===void 0||n.modelValue==="")?xr:wr}),a=C(()=>l.value===xr||l.value===wr);function i(c){const u=c.target.value;if(u===xr){r("update:modelValue",null);return}const d=s.value[Number(u)];d&&r("update:modelValue",d.value)}return(c,u)=>(g(),w("div",Dy,[E("select",{id:e.controlId,name:e.field.name,value:l.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:me([[h(is)(e.invalid),a.value?"text-muted":""],"h-input appearance-none pr-10"]),onChange:i},[e.field.emptyOption!==void 0?(g(),w("option",{key:0,value:xr,class:"text-muted"},P(e.field.emptyOption),1)):l.value===wr?(g(),w("option",{key:1,value:wr,disabled:""},P(h(B)("backend::lang.form.select_placeholder")),1)):se("",!0),(g(!0),w(ue,null,Ne(s.value,(d,f)=>(g(),w("option",{key:f,value:String(f),class:"text-text"},P(d.label),9,jy))),128))],42,Ny),K(h(wo),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]))}}),Fy=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Ly=re({__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,s=C(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),o=C(()=>No(n.field));function l(a){const i=a.target.value.trim();if(i===""){r("update:modelValue",null);return}const c=Number(i);r("update:modelValue",Number.isFinite(c)?c:null)}return(a,i)=>(g(),w("input",Qe({id:e.controlId},o.value,{name:e.field.name,type:"number",inputmode:"decimal",value:s.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[h(is)(e.invalid),"h-input tabular-nums"],onInput:l}),null,16,Fy))}}),qy={class:"flex items-start gap-3"},Vy={class:"flex min-w-0 flex-1 flex-col gap-1"},Uy={class:"relative block"},zy={class:"sr-only"},Hy=["value","placeholder"],Ky=["aria-label","aria-busy"],Wy=["data-candidate","aria-selected","onClick","onKeydown"],Gy={class:"flex size-8 shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold","aria-hidden":"true"},Jy={class:"flex min-w-0 flex-1 flex-col leading-tight"},Qy={class:"truncate font-semibold"},Yy={key:0,class:"truncate text-[13px] text-muted"},Xy={key:0,role:"presentation",class:"px-1 py-3 text-[13px] text-muted"},Zy={key:1,role:"presentation","data-candidates-empty":"",class:"px-1 py-3 text-[13px] text-muted"},eb=["aria-label"],tb={"data-candidates-range":"",class:"flex-1"},nb=["aria-label","disabled"],rb=["aria-label","disabled"],sb={class:"flex gap-2.5"},ob=["disabled"],lb=5,ab=300,sa="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",ib=re({__name:"RelationPickerModal",props:{open:{type:Boolean},source:{},recordId:{},relation:{},schema:{}},emits:["update:open","linked","closed"],setup(e,{emit:t}){const n=e,r=t,s=V(""),o=V(1),l=V([]),a=V(null),i=V(!1),c=V(!1),u=V(new Set),d=V(null);let f=0,p=null;const y=C(()=>n.schema.manage.list.columns),x=C(()=>y.value[0]?.key??""),_=C(()=>y.value[1]?.key??""),S=C(()=>u.value.size),k=`relation-${n.relation}-candidates`,M=C(()=>{const O=a.value;if(!O||O.total===0)return"";const T=(O.page-1)*O.per_page+1,F=Math.min(O.page*O.per_page,O.total);return B("backend::lang.relation.candidates_range",{from:T,to:F,total:O.total})}),D=C(()=>Math.max(a.value?.last_page??1,1));function G(O){const T=O.id;return typeof T=="number"&&Number.isInteger(T)?T:typeof T=="string"&&/^\d+$/.test(T)?Number(T):null}function be(O,T){const F=T===""?void 0:O[T];return typeof F=="string"||typeof F=="number"?String(F):""}function Y(O){return O.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(T=>T.charAt(0).toUpperCase()).join("")}async function H(){const O=++f;i.value=!0;try{const T=s.value.trim(),{data:F}=await Fe.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/candidates",{params:{path:{...n.source,id:n.recordId,name:n.relation},query:{search:T===""?void 0:T,page:o.value,per_page:lb}}});if(O!==f)return;l.value=F?.data??[],a.value=F?.meta??null}catch{O===f&&(l.value=[],a.value=null)}finally{O===f&&(i.value=!1)}}function X(){p!==null&&(clearTimeout(p),p=null),f++,s.value="",o.value=1,l.value=[],a.value=null,i.value=!1,u.value=new Set}Ge(()=>n.open,O=>{O?(X(),H()):X()},{immediate:!0});function q(O){s.value=O.target.value,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,o.value=1,H()},ab)}function ye(O){O<1||O>D.value||O===o.value||(o.value=O,H())}function ve(O){const T=G(O);return T!==null&&u.value.has(T)}function Ee(O){const T=G(O);if(T===null)return;const F=new Set(u.value);F.has(T)?F.delete(T):F.add(T),u.value=F}function Be(O,T,F){switch(O.key){case" ":case"Enter":O.preventDefault(),Ee(T);break;case"ArrowDown":case"ArrowUp":{O.preventDefault();const L=O.currentTarget.parentElement?.querySelectorAll('[role="option"]'),te=O.key==="ArrowDown"?1:-1;L?.[Math.min(Math.max(F+te,0),L.length-1)]?.focus();break}}}function Te(O){r("update:open",O)}async function $e(){const O=[...u.value];if(!(c.value||O.length===0)){c.value=!0;try{const T=await Fe.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/link",{params:{path:{...n.source,id:n.recordId,name:n.relation}},body:{ids:O}});if(T.data){Te(!1),r("linked",T.data.data.linked??O.length);return}ze(T.error?.error.message||B("backend::lang.form.error_generic"),"danger")}catch{ze(B("backend::lang.form.error_generic"),"danger")}finally{c.value=!1}}}function pe(O){O.preventDefault(),d.value?.focus()}function ce(O){O.preventDefault(),r("closed")}return on(()=>{p!==null&&clearTimeout(p)}),(O,T)=>(g(),ee(h(bu),{open:e.open,"onUpdate:open":Te},{default:ne(()=>[K(h(Wg),null,{default:ne(()=>[K(h($u),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),K(h(ku),{"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:pe,onCloseAutoFocus:ce},{default:ne(()=>[E("div",qy,[E("div",Vy,[K(h(Cu),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:ne(()=>[we(P(h(Me)(e.schema.messages.link)),1)]),_:1}),K(h(Eu),{class:"text-muted"},{default:ne(()=>[we(P(h(Me)(e.schema.messages.linkHint)),1)]),_:1})]),K(h(Xs),{"data-action":"close","aria-label":h(B)("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:ne(()=>[K(h(ss),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),E("label",Uy,[E("span",zy,P(h(B)("backend::lang.list.search")),1),K(h(rs),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),E("input",{ref_key:"searchInput",ref:d,type:"search","data-candidate-search":"",value:s.value,placeholder:h(Me)(e.schema.messages.candidateSearch),"aria-controls":k,class:"h-input w-full rounded-control border border-border-strong bg-surface pr-3.5 pl-10",onInput:q},null,40,Hy)]),E("ul",{id:k,role:"listbox","aria-multiselectable":"true","aria-label":h(Me)(e.schema.messages.link),"aria-busy":i.value?"true":void 0,class:"flex min-h-0 flex-col gap-2 overflow-y-auto"},[(g(!0),w(ue,null,Ne(l.value,(F,L)=>(g(),w("li",{key:G(F)??`row-${L}`,role:"option",tabindex:"0","data-candidate":G(F)??void 0,"aria-selected":ve(F)?"true":"false",class:me([ve(F)?"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:te=>Ee(F),onKeydown:te=>Be(te,F,L)},[E("span",Gy,P(Y(be(F,x.value))),1),E("span",Jy,[E("span",Qy,P(be(F,x.value)),1),_.value?(g(),w("span",Yy,P(be(F,_.value)),1)):se("",!0)]),E("span",{class:me([ve(F)?"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"},[ve(F)?(g(),ee(h(kn),{key:0,size:14})):se("",!0)],2)],42,Wy))),128)),i.value&&l.value.length===0?(g(),w("li",Xy,P(h(B)("backend::lang.list.loading")),1)):!i.value&&l.value.length===0?(g(),w("li",Zy,P(h(B)("backend::lang.relation.no_candidates")),1)):se("",!0)],8,Ky),a.value&&a.value.total>0?(g(),w("nav",{key:0,"aria-label":h(B)("backend::lang.list.pagination"),class:"flex items-center gap-2 text-[13px] text-muted"},[E("span",tb,P(M.value),1),E("button",{type:"button","data-page":"prev","aria-label":h(B)("backend::lang.list.prev_page"),class:me(sa),disabled:i.value||o.value<=1,onClick:T[0]||(T[0]=F=>ye(o.value-1))},[K(h(ko),{size:16,"aria-hidden":"true"})],8,nb),E("button",{type:"button","data-page":"next","aria-label":h(B)("backend::lang.list.next_page"),class:me(sa),disabled:i.value||o.value>=D.value,onClick:T[1]||(T[1]=F=>ye(o.value+1))},[K(h(ns),{size:16,"aria-hidden":"true"})],8,rb)],8,eb)):se("",!0),E("div",sb,[K(h(Xs),{"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:ne(()=>[we(P(h(B)("backend::lang.form.cancel")),1)]),_:1}),E("button",{type:"button","data-action":"confirm-link",disabled:c.value||S.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:$e},P(h(B)("backend::lang.relation.add_count",{count:S.value})),9,ob)])]),_:1})]),_:1})]),_:1},8,["open"]))}}),ub=["id","data-relation-name","aria-labelledby","aria-describedby"],cb={class:"flex flex-wrap items-center gap-3"},db={class:"flex min-w-0 flex-1 flex-col"},fb=["id"],pb=["id"],hb={key:0,class:"relative block w-[220px] max-w-full"},mb={class:"sr-only"},vb=["value","placeholder"],gb={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},yb={key:1,class:"overflow-hidden rounded-inner border border-border"},bb={"data-relation-empty":"",class:"text-muted"},_b=300,xb=re({__name:"RelationManager",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=C(()=>t.field.relation||t.field.name),r=C(()=>t.source!=null&&typeof t.recordId=="number"),s=V(null),o=V([]),l=V(null),a=V(!0),i=V(!1),c=V(""),u=V(1),d=V(null),f=V([]),p=V(!1),y=V(!1);let x=null;const _=Do();let S=0,k=null;const M=C(()=>s.value?.view.list.columns??[]),D=C(()=>s.value?.view.toolbarButtons??[]),G=C(()=>s.value?.messages),be=C(()=>`${t.controlId}-heading`),Y=C(()=>`${t.controlId}-comment`);function H(){return{...t.source,id:t.recordId,name:n.value}}async function X(){const{data:T}=await Fe.GET("/{vendor}/{plugin}/{controller}/schema/relation/{name}",{params:{path:{...t.source,name:n.value}}});s.value=T?.data??null}async function q(){const T=++S;a.value=!0,i.value=!1;try{const F=c.value.trim(),L={page:u.value};F!==""&&(L.search=F),d.value&&(L.sort=d.value.column,L.dir=d.value.dir);const{data:te}=await Fe.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}",{params:{path:H(),query:L}});if(T!==S)return;o.value=te?.data??[],l.value=te?.meta??null,i.value=!te}catch{T===S&&(o.value=[],l.value=null,i.value=!0)}finally{T===S&&(a.value=!1)}}async function ye(){if(r.value){try{await X()}catch{s.value=null}if(!s.value){a.value=!1,i.value=!0;return}await q()}}function ve(T){c.value=T.target.value,k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,u.value=1,f.value=[],q()},_b)}function Ee(T){u.value=T,f.value=[],q()}function Be(T){const F=d.value;F?.column!==T?d.value={column:T,dir:"asc"}:F.dir==="asc"?d.value={column:T,dir:"desc"}:d.value=null,u.value=1,f.value=[],q()}function Te(){return f.value.map(Number).filter(T=>Number.isInteger(T)&&T>0)}async function $e(){const T=Te();if(!(p.value||T.length===0||!s.value||!await _.ask({message:Me(G.value?.unlinkConfirm,T.length),confirmLabel:Me(G.value?.unlinkSelected),danger:!0}))){p.value=!0;try{const L=await Fe.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/unlink",{params:{path:H()},body:{ids:T}});if(L.data){f.value=[],ze(Me(G.value?.unlinked,L.data.data.removed??T.length)),await q();return}ze(L.error?.error.message||B("backend::lang.form.error_generic"),"danger")}catch{ze(B("backend::lang.form.error_generic"),"danger")}finally{p.value=!1}}}async function pe(T){ze(Me(G.value?.linked,T)),f.value=[],await q()}function ce(){x?.focus()}function O(T){const F=T?.$el;x=F instanceof HTMLElement?F:null}return on(()=>{k!==null&&clearTimeout(k)}),ye(),(T,F)=>r.value?(g(),w("section",{key:0,id:e.controlId,"data-relation-manager":"","data-relation-name":n.value,"aria-labelledby":be.value,"aria-describedby":e.field.comment?Y.value:void 0,tabindex:"-1",class:"flex flex-col gap-4"},[E("header",cb,[E("div",db,[E("h2",{id:be.value,class:"text-[17px] font-bold tracking-[-0.01em]"},P(s.value?.label||e.field.label||n.value),9,fb),e.field.comment?(g(),w("p",{key:0,id:Y.value,class:"text-[13px] text-muted"},P(e.field.comment),9,pb)):se("",!0)]),s.value?.view.showSearch?(g(),w("label",hb,[E("span",mb,P(h(B)("backend::lang.list.search")),1),K(h(rs),{size:16,class:"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted","aria-hidden":"true"}),E("input",{type:"search","data-relation-search":"",value:c.value,placeholder:h(B)("backend::lang.list.search_prompt"),class:"h-[38px] w-full rounded-control border border-transparent bg-subtle pr-3 pl-9",onInput:ve,onKeydown:F[0]||(F[0]=tf(Nt(()=>{},["prevent"]),["enter"]))},null,40,vb)])):se("",!0),(g(!0),w(ue,null,Ne(D.value,L=>(g(),w(ue,{key:L},[L==="unlink"?(g(),ee(lt,{key:0,"data-action":"unlink",size:"sm",variant:"danger",icon:h(Hi),disabled:p.value||f.value.length===0,onClick:$e},{default:ne(()=>[we(P(h(Me)(G.value?.unlinkSelected)),1)]),_:1},8,["icon","disabled"])):L==="link"?(g(),ee(lt,{key:1,ref_for:!0,ref:O,"data-action":"link",size:"sm",variant:"primary",icon:h(Ki),disabled:p.value||!s.value,"aria-haspopup":"dialog",onClick:F[1]||(F[1]=te=>y.value=!0)},{default:ne(()=>[we(P(h(Me)(G.value?.link)),1)]),_:1},8,["icon","disabled"])):se("",!0)],64))),128))]),i.value&&!a.value?(g(),w("p",gb,P(h(B)("backend::lang.relation.load_failed")),1)):(g(),w("div",yb,[K(du,{selected:f.value,"onUpdate:selected":F[2]||(F[2]=L=>f.value=L),variant:"relation",columns:M.value,rows:o.value,loading:a.value,selectable:D.value.includes("unlink"),sortable:!0,sort:d.value,onSort:Be},{empty:ne(()=>[E("span",bb,P(h(Me)(G.value?.empty)),1)]),_:1},8,["selected","columns","rows","loading","selectable","sort"]),l.value&&l.value.last_page>1?(g(),ee(fu,{key:0,meta:l.value,loading:a.value,"per-page-options":[],"per-page":l.value.per_page,onPage:Ee},null,8,["meta","loading","per-page"])):se("",!0)])),s.value&&D.value.includes("link")?(g(),ee(ib,{key:2,open:y.value,"onUpdate:open":F[3]||(F[3]=L=>y.value=L),source:e.source,"record-id":e.recordId,relation:n.value,schema:s.value,onLinked:pe,onClosed:ce},null,8,["open","source","record-id","relation","schema"])):se("",!0),K(Io,{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"])],8,ub)):se("",!0)}}),wb=["id","aria-describedby"],kb=["data-relation"],Eb={class:"flex size-[22px] items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},$b={class:"font-semibold"},Sb=["aria-label","onClick"],Cb=["id","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby","value","placeholder"],Ob={key:1,class:"relative"},Ab=["id","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby","value","placeholder"],Pb=["id"],Tb=["id","data-value","aria-selected","onMousedown"],Rb={key:0,role:"presentation",class:"px-3 py-2 text-[13px] text-muted"},Mb={key:1,role:"presentation",class:"px-3 py-2 text-[13px] text-muted"},Ib={key:2,role:"presentation",class:"p-1"},Db=20,Nb=300,jb=re({__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,s=C(()=>n.field.readOnly?"readonly":n.field.multiple?"multiple":"single"),o=C(()=>`${n.controlId}-listbox`),l=V({});Ge(()=>n.labels,O=>{const T={...l.value};for(const F of O??[])T[F.value]=F.label;l.value=T},{immediate:!0});function a(O){return typeof O=="number"&&Number.isInteger(O)?O:typeof O=="string"&&/^\d+$/.test(O)?Number(O):null}const i=C(()=>a(n.modelValue)),c=C(()=>Array.isArray(n.modelValue)?n.modelValue.map(a).filter(O=>O!==null):[]);function u(O){return l.value[O]??String(O)}function d(O){return O.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(T=>T.charAt(0).toUpperCase()).join("")}const f=C(()=>{const O=n.labels?.[0]?.label;return O||(n.field.emptyOption??"—")}),p=V(!1),y=V(""),x=V([]),_=V(0),S=V(0),k=V(!1),M=V(-1);let D=0,G=null;const be=C(()=>_.value<S.value);async function Y(O,T){const F=n.source;if(!F){x.value=[];return}const L=++D;k.value=!0;try{const te=y.value.trim(),{data:N}=await Fe.GET("/{vendor}/{plugin}/{controller}/fields/{field}/options",{params:{path:{...F,field:n.field.name},query:{search:te===""?void 0:te,page:O,per_page:Db}}});if(L!==D)return;const oe=N?.data??[],ge={...l.value};for(const $ of oe)ge[$.value]=$.label;l.value=ge,x.value=T?[...x.value,...oe]:oe,_.value=N?.meta.page??O,S.value=N?.meta.last_page??O}catch{L===D&&!T&&(x.value=[])}finally{L===D&&(k.value=!1)}}const H=C(()=>{const O=[];s.value==="single"&&n.field.emptyOption!==void 0&&O.push({key:"empty",label:n.field.emptyOption,value:null,muted:!0});const T=new Set(c.value);for(const F of x.value)s.value==="multiple"&&T.has(F.value)||O.push({key:`option-${F.value}`,label:F.label,value:F.value,muted:!1});return O});function X(O){return`${o.value}-${O}`}function q(){p.value||(p.value=!0,M.value=-1,Y(1,!1))}function ye(){p.value=!1,y.value="",M.value=-1,G!==null&&(clearTimeout(G),G=null)}function ve(O){y.value=O.target.value,p.value=!0,M.value=-1,G!==null&&clearTimeout(G),G=setTimeout(()=>{G=null,Y(1,!1)},Nb)}function Ee(){be.value&&!k.value&&Y(_.value+1,!0)}function Be(O){const T=O.target;T.scrollTop+T.clientHeight>=T.scrollHeight-24&&Ee()}function Te(O){s.value==="multiple"?O.value!==null&&!c.value.includes(O.value)&&r("update:modelValue",[...c.value,O.value]):r("update:modelValue",O.value),ye()}function $e(O){r("update:modelValue",c.value.filter(T=>T!==O))}function pe(O){switch(O.key){case"ArrowDown":O.preventDefault(),p.value?M.value=Math.min(M.value+1,H.value.length-1):q();break;case"ArrowUp":O.preventDefault(),M.value=Math.max(M.value-1,0);break;case"Enter":if(p.value){O.preventDefault();const T=H.value[M.value];T&&Te(T)}break;case"Escape":p.value&&(O.preventDefault(),ye());break;case"Backspace":s.value==="multiple"&&y.value===""&&c.value.length>0&&$e(c.value[c.value.length-1]);break}}const ce=C(()=>i.value!==null?u(i.value):n.field.emptyOption??"");return on(()=>{G!==null&&clearTimeout(G)}),(O,T)=>s.value==="readonly"?(g(),w("div",{key:0,id:e.controlId,"data-relation-readonly":"","aria-describedby":e.describedBy||void 0,class:me([e.labels?.[0]?.label?"text-text":"text-muted","flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5"])},P(f.value),11,wb)):(g(),w("div",{key:1,class:"relative","data-relation":s.value},[s.value==="multiple"?(g(),w("div",{key:0,class:me([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),w(ue,null,Ne(c.value,F=>(g(),w("span",{key:F,"data-chip":"",class:"inline-flex h-[30px] items-center gap-1.5 rounded-pill bg-subtle pr-1 pl-1"},[E("span",Eb,P(d(u(F))),1),E("span",$b,P(u(F)),1),E("button",{type:"button","aria-label":h(B)("backend::lang.form.remove_item",{name:u(F)}),class:"flex size-6 items-center justify-center rounded-full text-muted hover:bg-hover hover:text-text",onClick:L=>$e(F)},[K(h(ss),{size:14,"aria-hidden":"true"})],8,Sb)]))),128)),E("input",{id:e.controlId,type:"text",role:"combobox",autocomplete:"off","aria-expanded":p.value?"true":"false","aria-controls":o.value,"aria-autocomplete":"list","aria-activedescendant":p.value&&M.value>=0?X(M.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:y.value,placeholder:h(B)("backend::lang.form.add_item"),class:"h-[30px] min-w-[120px] flex-1 border-0 bg-transparent px-2 focus-visible:shadow-none",onClick:q,onInput:ve,onKeydown:pe,onBlur:ye},null,40,Cb)],2)):(g(),w("div",Ob,[E("input",{id:e.controlId,type:"text",role:"combobox",autocomplete:"off","aria-expanded":p.value?"true":"false","aria-controls":o.value,"aria-autocomplete":"list","aria-activedescendant":p.value&&M.value>=0?X(M.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?y.value:ce.value,placeholder:p.value&&ce.value||h(B)("backend::lang.form.select_placeholder"),class:me([[e.invalid?"border-danger":"border-border-strong",!p.value&&i.value===null?"text-muted":"text-text"],"h-input w-full rounded-control border bg-surface pr-10 pl-3.5"]),onClick:q,onInput:ve,onKeydown:pe,onBlur:ye},null,42,Ab),K(h(wo),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})])),Is(E("ul",{id:o.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:Be},[(g(!0),w(ue,null,Ne(H.value,(F,L)=>(g(),w("li",{id:X(L),key:F.key,role:"option","data-value":F.value??"empty","aria-selected":s.value==="single"&&F.value===i.value?"true":"false",class:me([[F.muted?"text-muted":"text-text",L===M.value?"bg-hover":""],"flex h-10 cursor-pointer items-center rounded-control px-3 hover:bg-hover"]),onMousedown:Nt(te=>Te(F),["prevent"])},P(F.label),43,Tb))),128)),k.value?(g(),w("li",Rb,P(h(B)("backend::lang.form.loading_options")),1)):H.value.filter(F=>F.value!==null).length===0?(g(),w("li",Mb,P(h(B)("backend::lang.form.no_options")),1)):se("",!0),be.value&&!k.value?(g(),w("li",Ib,[E("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:Nt(Ee,["prevent"])},P(h(B)("backend::lang.form.more_options")),33)])):se("",!0)],40,Pb),[[Nd,p.value]])],8,kb))}}),Bb={class:"flex min-w-0 flex-col"},Fb=["for"],Lb={key:0,class:"text-danger","aria-hidden":"true"},qb=["id"],Vb=["id","aria-checked","aria-invalid","aria-describedby"],Ub=re({__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,s=C(()=>Tu(n.modelValue));function o(){r("update:modelValue",Ru(n.modelValue,!s.value))}return(l,a)=>(g(),w("div",{class:me([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[E("div",Bb,[E("label",{for:e.controlId,class:"font-semibold"},[we(P(e.field.label||e.field.name),1),e.field.required?(g(),w("span",Lb," *")):se("",!0)],8,Fb),e.field.comment?(g(),w("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},P(e.field.comment),9,qb)):se("",!0)]),E("button",{id:e.controlId,type:"button",role:"switch","aria-checked":s.value?"true":"false","aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:me([s.value?"bg-primary":"bg-border-strong","relative h-[26px] w-11 shrink-0 rounded-pill transition-colors duration-150 ease-out"]),onClick:o},[E("span",{class:me([s.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,Vb)],2))}}),zb=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Hb=re({__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,s=C(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),o=C(()=>No(n.field));return(l,a)=>(g(),w("input",Qe({id:e.controlId},o.value,{name:e.field.name,type:"text",value:s.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[h(is)(e.invalid),"h-input"],onInput:a[0]||(a[0]=i=>r("update:modelValue",i.target.value))}),null,16,zb))}}),Kb=["id","name","rows","value","required","aria-required","aria-invalid","aria-describedby"],Wb=re({__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,s={tiny:2,small:4,large:8,huge:12,giant:18},o=C(()=>s[n.field.size??""]??5),l=C(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),a=C(()=>No(n.field));return(i,c)=>(g(),w("textarea",Qe({id:e.controlId},a.value,{name:e.field.name,rows:o.value,value:l.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(is)(e.invalid),"min-h-input resize-y py-2.5"],onInput:c[0]||(c[0]=u=>r("update:modelValue",u.target.value))}),null,16,Kb))}}),Gb=["id","aria-describedby"],Jb={key:0},Qb={class:"font-mono text-text"},Yb={key:1},Xb={class:"font-mono text-text"},kr="\0",Zb=re({__name:"UnsupportedField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=C(()=>{const[s="",o=""]=B("backend::lang.form.unsupported_field",{type:kr}).split(kr);return{before:s,after:o}}),r=C(()=>B("backend::lang.form.unsupported_field",{type:kr}).includes(kr));return(s,o)=>(g(),w("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"},[K(h(Vi),{size:16,"aria-hidden":"true"}),r.value?(g(),w("span",Jb,[we(P(n.value.before),1),E("code",Qb,P(t.field.type),1),we(P(n.value.after),1)])):(g(),w("span",Yb,[we(P(h(B)("backend::lang.form.unsupported_field"))+" ",1),E("code",Xb,P(t.field.type),1)]))],8,Gb))}}),Au=new Map([["text",Hb],["textarea",Wb],["number",Ly],["dropdown",By],["switch",Ub],["checkbox",Iy],["relation",jb],["relation-manager",xb]]),e1=new Set(["switch","checkbox","relation-manager"]),Pu=new Set(["relation-manager"]);function t1(e){return Au.get(e)??Zb}function n1(e){return Au.has(e)&&!Pu.has(e)}function r1(e){return Pu.has(e)}function s1(e){return e1.has(e)}const o1=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function No(e){const t={};for(const[n,r]of Object.entries(e.attributes??{})){const s=n.toLowerCase();!o1.has(s)||r===null||r===!1||(t[s]=r)}return t}function is(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 Tu(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function Ru(e,t){return typeof e=="number"?t?1:0:t}const l1=re({__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,s=C(()=>t1(n.field.type));return(o,l)=>(g(),ee(tn(s.value),{field:e.field,"model-value":e.modelValue,"control-id":e.controlId,invalid:e.invalid,"described-by":e.describedBy,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":l[0]||(l[0]=a=>r("update:modelValue",a))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]))}}),a1=["data-field"],i1=["for"],u1={key:0,class:"text-danger","aria-hidden":"true"},c1=["id"],d1=["id"],f1=re({__name:"FormField",props:{field:{},modelValue:{},errors:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=C(()=>`${n.idPrefix??"field"}-${n.field.name}`),o=C(()=>s.value),l=C(()=>`${s.value}-comment`),a=C(()=>`${s.value}-error`),i=C(()=>(n.errors?.length??0)>0),c=C(()=>s1(n.field.type)),u=C(()=>!c.value&&!!n.field.comment),d=C(()=>[u.value||c.value&&n.field.comment?l.value:"",i.value?a.value:""].filter(Boolean).join(" "));return(f,p)=>(g(),w("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[c.value?se("",!0):(g(),w("label",{key:0,for:o.value,class:"font-semibold"},[we(P(e.field.label||e.field.name),1),e.field.required?(g(),w("span",u1," *")):se("",!0)],8,i1)),K(l1,{field:e.field,"model-value":e.modelValue,"control-id":o.value,invalid:i.value,"described-by":d.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":p[0]||(p[0]=y=>r("update:modelValue",y))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),u.value?(g(),w("p",{key:1,id:l.value,class:"text-[13px] text-muted"},P(e.field.comment),9,c1)):se("",!0),i.value?(g(),w("div",{key:2,id:a.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(g(!0),w(ue,null,Ne(e.errors,(y,x)=>(g(),w("p",{key:x,class:"flex items-center gap-1.5"},[K(h(dr),{size:14,class:"shrink-0","aria-hidden":"true"}),E("span",null,P(y),1)]))),128))],8,d1)):se("",!0)],8,a1))}}),p1={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},Mu=re({__name:"FormGrid",props:{fields:{},values:{},errors:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update"],setup(e,{emit:t}){const n=t;function r(s){if(s.type==="relation-manager")return"col-span-full";switch(s.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(s,o)=>(g(),w("div",p1,[(g(!0),w(ue,null,Ne(e.fields,l=>(g(),ee(f1,{key:l.name,class:me(r(l)),field:l,"model-value":e.values[l.name],errors:e.errors[l.name],labels:e.labels?.[l.name],source:e.source,"record-id":e.recordId,"id-prefix":e.idPrefix,"onUpdate:modelValue":a=>n("update",l.name,a)},null,8,["class","field","model-value","errors","labels","source","record-id","id-prefix","onUpdate:modelValue"]))),128))]))}}),Ln="default";function Er(e){return e.tab?`tab:${e.tab}`:Ln}function Zs(e,t){return`${e}-tab-${t}`}function Iu(e,t){return`${e}-panel-${t}`}function Du(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 Or(e,t){const n={};for(const r of e){if(r.readOnly||!n1(r.type))continue;const s=t[r.name];s!==void 0&&(n[r.name]=s)}return n}function h1(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 Nu(e){const t={};for(const[n,r]of Object.entries(e??{})){const s=Array.isArray(r)?r.filter(o=>typeof o=="string"&&o!==""):typeof r=="string"&&r!==""?[r]:[];s.length>0&&(t[n]=s)}return t}function oa(e){return JSON.stringify(Object.keys(e).sort().map(t=>[t,e[t]]))}function ju(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 m1={role:"tablist",class:"inline-flex gap-1 rounded-inner border border-border bg-subtle p-1"},v1=["id","data-tab","aria-selected","aria-controls","tabindex","onClick","onKeydown"],g1=["aria-label"],y1=re({__name:"FormTabs",props:{tabs:{},modelValue:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function s(o,l){const a=o.key==="ArrowRight"?1:o.key==="ArrowLeft"?-1:0;if(a===0)return;o.preventDefault();const i=(l+a+n.tabs.length)%n.tabs.length,c=n.tabs[i];c&&(r("update:modelValue",c.key),document.getElementById(Zs(n.idPrefix,i))?.focus())}return(o,l)=>(g(),w("div",m1,[(g(!0),w(ue,null,Ne(e.tabs,(a,i)=>(g(),w("button",{id:h(Zs)(e.idPrefix,i),key:a.key,type:"button",role:"tab","data-tab":a.key,"aria-selected":a.key===e.modelValue?"true":"false","aria-controls":h(Iu)(e.idPrefix,i),tabindex:a.key===e.modelValue?0:-1,class:me([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=>s(c,i)},[we(P(a.label)+" ",1),a.errors>0?(g(),w("span",{key:0,"data-tab-errors":"","aria-label":h(Co)("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"},P(a.errors),9,g1)):se("",!0)],42,v1))),128))]))}}),b1={class:"mx-auto flex w-full max-w-[980px] flex-col gap-5 pb-24"},_1={class:"flex flex-wrap items-center gap-4"},x1={class:"flex min-w-0 flex-1 flex-col"},w1={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},k1={key:0,class:"text-muted"},E1={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},$1=["id","role","aria-labelledby"],S1={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"},C1={class:"ml-auto flex items-center gap-2.5"},Dn="field",la=re({__name:"FormView",setup(e){const t=Wt(),n=es(),r={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},s=Zi(r),o=En(s)??"/",l=t.name==="create"?"create":"update",a=l==="update"?Number(t.params.id):null,i=V(null),c=V({}),u=V({}),d=V({}),f=V(!0),p=V(!1),y=V(!1),x=V(""),_=V(Ln),S=Do();let k=!1;const M=C(()=>(i.value?.fields??[]).filter(N=>Du(N,l)&&(l==="update"||!r1(N.type)))),D=C(()=>M.value.map(N=>N.name)),G=C(()=>{if(!M.value.some(oe=>oe.tab))return[];const N=[];for(const oe of M.value){const ge=Er(oe);let $=N.find(Z=>Z.key===ge);$||($={key:ge,label:oe.tab||B("backend::lang.form.tab_default"),errors:0},ge===Ln?N.unshift($):N.push($)),d.value[oe.name]&&($.errors+=1)}return N}),be=C(()=>Math.max(G.value.findIndex(N=>N.key===_.value),0)),Y=C(()=>{if(G.value.length===0)return M.value;const N=G.value[be.value]?.key??Ln;return M.value.filter(oe=>Er(oe)===N)}),H=C(()=>{const N=i.value?.fields.find(ge=>ge.type==="text"),oe=N?c.value[N.name]:void 0;return typeof oe=="string"||typeof oe=="number"?String(oe).trim():""}),X=C(()=>{if(l==="update"&&H.value!=="")return H.value;const N=l==="create"?i.value?.messages.create:i.value?.messages.update;return Me(N,void 0,{name:H.value})}),q=C(()=>l==="update"?Me(i.value?.messages.update,void 0,{name:H.value}):""),ye=C(()=>!f.value&&oa(Or(M.value,c.value))!==x.value);function ve(N){N&&(c.value={...N.data},u.value=N.meta.labels??{}),x.value=oa(Or(M.value,c.value))}async function Ee(){f.value=!0,p.value=!1;const N={path:r},[oe,ge]=await Promise.all([Fe.GET("/{vendor}/{plugin}/{controller}/schema/form",{params:N}),a!==null?Fe.GET("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:a}}}):Promise.resolve(null)]);i.value=oe.data?.data??null,p.value=!oe.data||ge!==null&&!ge.data,i.value&&l==="create"&&(c.value=h1(M.value)),ve(ge?.data),_.value=G.value[0]?.key??Ln,f.value=!1}function Be(N,oe){if(c.value={...c.value,[N]:oe},d.value[N]){const ge={...d.value};delete ge[N],d.value=ge}}async function Te(N){d.value=Nu(N?.details);const oe=M.value.filter($=>d.value[$.name]),ge=oe.find($=>Er($)===_.value)??oe[0];ge&&(G.value.length>0&&(_.value=Er(ge)),await ct(),ju(Dn,ge.name))}function $e(N,oe){const ge=i.value?.redirects,$=(ge?.[l]?.[N]||ge?.default)??"";return cu($,s,typeof oe=="number"||typeof oe=="string"?oe:null)}async function pe(){if(y.value||!i.value)return null;y.value=!0;try{const N=Or(M.value,c.value),oe=a===null?await Fe.POST("/{vendor}/{plugin}/{controller}",{params:{path:r},body:N}):await Fe.PUT("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:a}},body:N});return oe.data?(d.value={},ve(oe.data),ze(Me(i.value.messages.saved,void 0,{name:H.value})),oe.data):(oe.response.status===422?await Te(oe.error?.error):ze(oe.error?.error.message||B("backend::lang.form.error_generic"),"danger"),null)}catch{return ze(B("backend::lang.form.error_generic"),"danger"),null}finally{y.value=!1}}async function ce(N){k=!0;try{await n.push(N)}finally{k=!1}}async function O(){const N=await pe();N&&l==="create"&&await ce($e("redirect",N.data.id))}async function T(){const N=await pe();N&&await ce($e("redirectClose",N.data.id))}async function F(){if(!(a===null||y.value||!i.value||!await S.ask({message:Me(i.value.messages.deleteConfirm,void 0,{name:H.value}),confirmLabel:B("backend::lang.form.delete"),danger:!0}))){y.value=!0;try{const oe=await Fe.DELETE("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:a}}});if(oe.data){ze(Me(i.value.messages.deleted,void 0,{name:H.value})),await ce(o);return}ze(oe.error?.error.message||B("backend::lang.form.error_generic"),"danger")}catch{ze(B("backend::lang.form.error_generic"),"danger")}finally{y.value=!1}}}async function L(){return k||!ye.value?!0:S.ask({message:B("backend::lang.form.unsaved_confirm"),confirmLabel:B("backend::lang.form.discard"),danger:!0})}Bf(L),Ff(L);function te(N){ye.value&&(N.preventDefault(),N.returnValue="")}return Sn(()=>window.addEventListener("beforeunload",te)),on(()=>window.removeEventListener("beforeunload",te)),Ee(),(N,oe)=>(g(),w("section",b1,[E("header",_1,[K(lt,{variant:"outline","data-action":"back",to:h(o),"aria-label":h(B)("backend::lang.form.return_to_list"),class:"size-10! px-0!"},{default:ne(()=>[K(h(xo),{size:18,"aria-hidden":"true"})]),_:1},8,["to","aria-label"]),E("div",x1,[E("h1",w1,P(f.value?"":X.value),1),q.value?(g(),w("p",k1,P(q.value),1)):se("",!0)]),G.value.length>0?(g(),ee(y1,{key:0,modelValue:_.value,"onUpdate:modelValue":oe[0]||(oe[0]=ge=>_.value=ge),tabs:G.value,"id-prefix":Dn},null,8,["modelValue","tabs"])):se("",!0)]),p.value&&!f.value?(g(),w("p",E1,P(h(B)("backend::lang.form.load_failed")),1)):i.value?(g(),w(ue,{key:1},[K(Ou,{errors:d.value,"field-names":D.value},null,8,["errors","field-names"]),E("form",{id:G.value.length>0?h(Iu)(Dn,be.value):void 0,role:G.value.length>0?"tabpanel":void 0,"aria-labelledby":G.value.length>0?h(Zs)(Dn,be.value):void 0,class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:Nt(O,["prevent"])},[K(Mu,{fields:Y.value,values:c.value,errors:d.value,labels:u.value,source:r,"record-id":h(a),"id-prefix":Dn,onUpdate:Be},null,8,["fields","values","errors","labels","record-id"])],40,$1)],64)):se("",!0),E("footer",S1,[h(l)==="update"?(g(),ee(lt,{key:0,variant:"danger","data-action":"delete",icon:h($o),disabled:y.value||f.value||!i.value,onClick:F},{default:ne(()=>[we(P(h(B)("backend::lang.form.delete")),1)]),_:1},8,["icon","disabled"])):se("",!0),E("div",C1,[K(lt,{variant:"ghost","data-action":"cancel",to:h(o)},{default:ne(()=>[we(P(h(B)("backend::lang.form.cancel")),1)]),_:1},8,["to"]),K(lt,{variant:"outline","data-action":"save-close",disabled:y.value||f.value||!i.value,onClick:T},{default:ne(()=>[we(P(h(B)("backend::lang.form.save_and_close")),1)]),_:1},8,["disabled"]),K(lt,{variant:"primary","data-action":"save",disabled:y.value||f.value||!i.value,onClick:O},{default:ne(()=>[we(P(y.value?h(B)("backend::lang.form.saving"):h(B)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]),K(Io,{open:h(S).request.value!==null,message:h(S).request.value?.message??"","confirm-label":h(S).request.value?.confirmLabel,danger:h(S).request.value?.danger,onConfirm:h(S).confirm,onCancel:h(S).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])]))}}),O1={class:"mx-auto flex w-full max-w-[980px] flex-col gap-5 pb-24"},A1={class:"flex items-center gap-4"},P1={class:"flex min-w-0 flex-col"},T1={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},R1={key:0,class:"text-muted"},M1={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},I1={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"},aa="setting",D1=re({__name:"SettingsFormView",setup(e){const t=Wt(),n=String(t.params.code??""),r=V(null),s=V({}),o=V({}),l=V(!0),a=V(!1),i=V(!1),c=C(()=>(r.value?.fields??[]).filter(_=>Du(_,"update"))),u=C(()=>c.value.map(_=>_.name)),d=C(()=>Ql(n)?.label||r.value?.name||n),f=C(()=>Ql(n)?.description??"");async function p(){const _={path:{code:n}},[S,k]=await Promise.all([Fe.GET("/settings/{code}/schema",{params:_}),Fe.GET("/settings/{code}",{params:_})]);r.value=S.data?.data??null,s.value={...k.data?.data.data??{}},a.value=!S.data||!k.data,l.value=!1}function y(_,S){if(s.value={...s.value,[_]:S},o.value[_]){const k={...o.value};delete k[_],o.value=k}}async function x(){if(!(i.value||!r.value)){i.value=!0;try{const _=await Fe.PUT("/settings/{code}",{params:{path:{code:n}},body:Or(c.value,s.value)});if(_.data){o.value={},s.value={..._.data.data.data},ze(B("backend::lang.settings.saved"));return}if(_.response.status===422){o.value=Nu(_.error?.error.details);const S=c.value.find(k=>o.value[k.name]);await ct(),S&&ju(aa,S.name);return}ze(_.error?.error.message||B("backend::lang.form.error_generic"),"danger")}catch{ze(B("backend::lang.form.error_generic"),"danger")}finally{i.value=!1}}}return p(),(_,S)=>(g(),w("section",O1,[E("header",A1,[K(lt,{variant:"outline","data-action":"back",to:"/settings","aria-label":h(B)("backend::lang.settings.back"),class:"size-10! px-0!"},{default:ne(()=>[K(h(xo),{size:18,"aria-hidden":"true"})]),_:1},8,["aria-label"]),E("div",P1,[E("h1",T1,P(d.value),1),f.value?(g(),w("p",R1,P(f.value),1)):se("",!0)])]),a.value&&!l.value?(g(),w("p",M1,P(h(B)("backend::lang.form.load_failed")),1)):r.value?(g(),w(ue,{key:1},[K(Ou,{errors:o.value,"field-names":u.value},null,8,["errors","field-names"]),E("form",{class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:Nt(x,["prevent"])},[K(Mu,{fields:c.value,values:s.value,errors:o.value,source:null,"id-prefix":aa,onUpdate:y},null,8,["fields","values","errors"])],32)],64)):se("",!0),E("footer",I1,[K(lt,{variant:"ghost",to:"/settings"},{default:ne(()=>[we(P(h(B)("backend::lang.form.cancel")),1)]),_:1}),K(lt,{variant:"primary","data-action":"save",disabled:i.value||l.value||!r.value,onClick:x},{default:ne(()=>[we(P(i.value?h(B)("backend::lang.form.saving"):h(B)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]))}}),N1={class:"flex flex-col gap-5"},j1={class:"text-[26px] font-bold tracking-[-0.02em]"},B1={key:0,class:"text-muted"},F1={key:0,class:"text-[13px] font-semibold tracking-[0.02em] text-muted uppercase"},L1={class:"grid grid-cols-1 gap-3 min-[900px]:grid-cols-2"},q1={class:"flex size-10 shrink-0 items-center justify-center rounded-inner bg-subtle text-muted"},V1={class:"flex min-w-0 flex-col"},U1={class:"font-semibold"},z1={key:0,class:"text-[13px] text-muted"},H1=re({__name:"SettingsIndexView",setup(e){return(t,n)=>(g(),w("section",N1,[E("header",null,[E("h1",j1,P(h(B)("backend::lang.settings.title")),1)]),h(Yl).length===0?(g(),w("p",B1,P(h(B)("backend::lang.settings.empty")),1)):se("",!0),(g(!0),w(ue,null,Ne(h(Yl),r=>(g(),w("section",{key:r.category,"data-settings-group":"",class:"flex flex-col gap-3"},[r.category?(g(),w("h2",F1,P(r.category),1)):se("",!0),E("div",L1,[(g(!0),w(ue,null,Ne(r.entries,s=>(g(),ee(h(rn),{key:s.code,to:`/settings/${encodeURIComponent(s.code)}`,"data-settings":s.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:ne(()=>[E("span",q1,[(g(),ee(tn(h(Oo)(s.icon)),{size:20,"aria-hidden":"true"}))]),E("span",V1,[E("span",U1,P(s.label),1),s.description?(g(),w("span",z1,P(s.description),1)):se("",!0)])]),_:2},1032,["to","data-settings"]))),128))])]))),128))]))}}),K1={class:"flex flex-col items-center gap-2 py-20 text-center"},W1={class:"text-[17px] font-bold"},ia=re({__name:"NotFoundView",props:{home:{type:Boolean}},setup(e){return(t,n)=>(g(),w("section",K1,[E("h1",W1,P(e.home?h(B)("backend::lang.nav.empty"):h(B)("backend::lang.page.not_found")),1)]))}});function Bu(e){return typeof e!="string"||e.length===0||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")?null:e}function G1(e=zf(Ji.base)){const t=up({history:e,routes:[{path:"/login",name:"login",component:Rm,meta:{public:!0}},{path:"/",name:"home",component:ia,props:{home:!0},meta:{shell:!0},beforeEnter:()=>qh()??!0},{path:"/settings",name:"settings",component:H1,meta:{shell:!0}},{path:"/settings/:code",name:"settings-form",component:D1,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller",name:"list",component:Sy,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/create",name:"create",component:la,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/:id(\\d+)",name:"record",component:la,meta:{shell:!0}},{path:"/:pathMatch(.*)*",name:"not-found",component:ia,meta:{shell:!0}}]});return t.beforeEach(n=>{const r=Fn.value!==null;return n.meta.public?r&&n.name==="login"?Bu(n.query.redirect)??"/":!0:r?!0:{name:"login",query:{redirect:n.fullPath}}}),t}async function J1(){await jh().catch(()=>{}),await iu().catch(()=>null)&&await Promise.all([tu().catch(()=>[]),ru().catch(()=>[])]);const t=G1();Rh(()=>{om();const r=t.currentRoute.value;r.name!=="login"&&t.push({name:"login",query:{redirect:r.fullPath}})});const n=sf(bm);n.use(t),await t.isReady(),n.mount("#app")}J1();