sensorium-mcp 2.16.161 → 2.16.163

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/config.d.ts +1 -10
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +8 -3
  4. package/dist/config.js.map +1 -1
  5. package/dist/dashboard/presets.d.ts.map +1 -1
  6. package/dist/dashboard/presets.js +9 -0
  7. package/dist/dashboard/presets.js.map +1 -1
  8. package/dist/dashboard/routes/settings.js +4 -4
  9. package/dist/dashboard/routes/settings.js.map +1 -1
  10. package/dist/dashboard/routes/templates.js +1 -1
  11. package/dist/dashboard/routes/templates.js.map +1 -1
  12. package/dist/dashboard/spa.html +4 -4
  13. package/dist/data/memory/consolidation.d.ts.map +1 -1
  14. package/dist/data/memory/consolidation.js +4 -0
  15. package/dist/data/memory/consolidation.js.map +1 -1
  16. package/dist/data/memory/narrative.d.ts.map +1 -1
  17. package/dist/data/memory/narrative.js +13 -10
  18. package/dist/data/memory/narrative.js.map +1 -1
  19. package/dist/tools/defs/session-defs.js +3 -3
  20. package/dist/tools/defs/session-defs.js.map +1 -1
  21. package/dist/tools/delegate-tool.d.ts.map +1 -1
  22. package/dist/tools/delegate-tool.js +8 -6
  23. package/dist/tools/delegate-tool.js.map +1 -1
  24. package/dist/tools/start-session-tool.d.ts.map +1 -1
  25. package/dist/tools/start-session-tool.js +15 -9
  26. package/dist/tools/start-session-tool.js.map +1 -1
  27. package/dist/tools/thread-lifecycle.d.ts +1 -17
  28. package/dist/tools/thread-lifecycle.d.ts.map +1 -1
  29. package/dist/tools/thread-lifecycle.js +38 -4
  30. package/dist/tools/thread-lifecycle.js.map +1 -1
  31. package/dist/tools/wait/poll-loop.d.ts.map +1 -1
  32. package/dist/tools/wait/poll-loop.js +99 -93
  33. package/dist/tools/wait/poll-loop.js.map +1 -1
  34. package/package.json +1 -1
@@ -53,15 +53,15 @@
53
53
  * @vue/reactivity v3.5.31
54
54
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
55
55
  * @license MIT
56
- **/let Ce;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ar(){return Ce}let ne;const Ns=new WeakSet;class vo{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,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,En(this),_o(this);const t=ne,s=Re;ne=this,Re=!0;try{return this.fn()}finally{wo(this),ne=t,Re=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)un(t);this.deps=this.depsTail=void 0,En(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zs(this)&&this.run()}get dirty(){return zs(this)}}let bo=0,Wt,zt;function yo(e,t=!1){if(e.flags|=8,t){e.next=zt,zt=e;return}e.next=Wt,Wt=e}function an(){bo++}function cn(){if(--bo>0)return;if(zt){let t=zt;for(zt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Wt;){let t=Wt;for(Wt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),un(n),Er(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zs(e))))return;e.flags|=2;const t=e.dep,s=ne,n=Re;ne=e,Re=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||We(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ne=s,Re=n,wo(e),e.flags&=-3}}function un(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)un(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Er(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const Co=[];function it(){Co.push(Re),Re=!1}function lt(){const e=Co.pop();Re=e===void 0?!0:e}function En(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ne;ne=void 0;try{t()}finally{ne=s}}}let Zt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{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(!ne||!Re||ne===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ne)s=this.activeLink=new Pr(ne,this),ne.deps?(s.prevDep=ne.depsTail,ne.depsTail.nextDep=s,ne.depsTail=s):ne.deps=ne.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ne.depsTail,s.nextDep=void 0,ne.depsTail.nextDep=s,ne.depsTail=s,ne.deps===s&&(ne.deps=n)}return s}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){an();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{cn()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qs=new WeakMap,wt=Symbol(""),Js=Symbol(""),Qt=Symbol("");function xe(e,t,s){if(Re&&ne){let n=qs.get(e);n||qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new fn),o.map=n,o.key=s),o.track()}}function nt(e,t,s,n,o,r){const i=qs.get(e);if(!i){Zt++;return}const l=c=>{c&&c.trigger()};if(an(),t==="clear")i.forEach(l);else{const c=U(e),h=c&&rn(s);if(c&&s==="length"){const u=Number(n);i.forEach((p,m)=>{(m==="length"||m===Qt||!Je(m)&&m>=u)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),h&&l(i.get(Qt)),t){case"add":c?h&&l(i.get("length")):(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"delete":c||(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"set":Pt(e)&&l(i.get(wt));break}}cn()}function kt(e){const t=G(e);return t===e?t:(xe(t,"iterate",Qt),Ie(e)?t:t.map(De))}function Ps(e){return xe(e=G(e),"iterate",Qt),e}function Ue(e,t){return at(e)?It(St(e)?De(t):t):De(t)}const Mr={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return kt(this).concat(...e.map(t=>U(t)?kt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Ht(this,"pop")},push(...e){return Ht(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ht(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Ht(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return Ht(this,"unshift",e)},values(){return Fs(this,"values",e=>Ue(this,e))}};function Fs(e,t,s){const n=Ps(e),o=n[t]();return n!==e&&!Ie(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function et(e,t,s,n,o,r){const i=Ps(e),l=i!==e&&!Ie(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?De(p):p}let h=s;i!==e&&(l?h=function(p,m){return s.call(this,Ue(e,p),m,e)}:s.length>2&&(h=function(p,m){return s.call(this,p,m,e)}));const u=c.call(i,h,n);return l&&o?o(u):u}function Pn(e,t,s,n){const o=Ps(e),r=o!==e&&!Ie(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(h,u,p){return l&&(l=!1,h=Ue(e,h)),s.call(this,h,Ue(e,u),p,e)}):s.length>3&&(i=function(h,u,p){return s.call(this,h,u,p,e)}));const c=o[t](i,...n);return l?Ue(e,c):c}function Hs(e,t,s){const n=G(e);xe(n,"iterate",Qt);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=G(s[0]),n[t](...s)):o}function Ht(e,t,s=[]){it(),an();const n=G(e)[t].apply(e,s);return cn(),lt(),n}const Ir=nn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Rr(e){Je(e)||(e=String(e));const t=G(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Mo:r?Po:Eo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!o){let c;if(i&&(c=Mr[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,be(t)?t:n);if((Je(s)?$o.has(s):Ir(s))||(o||xe(t,"get",s),r))return l;if(be(l)){const c=i&&rn(s)?l:l.value;return o&&X(c)?Ys(c):c}return X(l)?o?Ys(l):pn(l):l}}class Ao extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=U(t)&&rn(s);if(!this._isShallow){const h=at(r);if(!Ie(n)&&!at(n)&&(r=G(r),n=G(n)),!i&&be(r)&&!be(n))return h||(r.value=n),!0}const l=i?Number(s)<t.length:Y(t,s),c=Reflect.set(t,s,n,be(t)?t:o);return t===G(o)&&(l?We(n,r)&&nt(t,"set",s,n):nt(t,"add",s,n)),c}deleteProperty(t,s){const n=Y(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&nt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Je(s)||!$o.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",U(t)?"length":wt),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Ao,Lr=new Dr,Nr=new Ao(!0);const Gs=e=>e,ls=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=G(o),i=Pt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,h=o[e](...n),u=s?Gs:t?It:De;return!t&&xe(r,"iterate",c?Js:wt),ge(Object.create(h),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:l?[u(p[0]),u(p[1])]:u(p),done:m}}})}}function as(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=G(r),l=G(o);e||(We(o,l)&&xe(i,"get",o),xe(i,"get",l));const{has:c}=ls(i),h=t?Gs:e?It:De;if(c.call(i,o))return h(r.get(o));if(c.call(i,l))return h(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&xe(G(o),"iterate",wt),o.size},has(o){const r=this.__v_raw,i=G(r),l=G(o);return e||(We(o,l)&&xe(i,"has",o),xe(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=G(l),h=t?Gs:e?It:De;return!e&&xe(c,"iterate",wt),l.forEach((u,p)=>o.call(r,h(u),h(p),i))}};return ge(s,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(o){const r=G(this),i=ls(r),l=G(o),c=!t&&!Ie(o)&&!at(o)?l:o;return i.has.call(r,c)||We(o,c)&&i.has.call(r,o)||We(l,c)&&i.has.call(r,l)||(r.add(c),nt(r,"add",c,c)),this},set(o,r){!t&&!Ie(r)&&!at(r)&&(r=G(r));const i=G(this),{has:l,get:c}=ls(i);let h=l.call(i,o);h||(o=G(o),h=l.call(i,o));const u=c.call(i,o);return i.set(o,r),h?We(r,u)&&nt(i,"set",o,r):nt(i,"add",o,r),this},delete(o){const r=G(this),{has:i,get:l}=ls(r);let c=i.call(r,o);c||(o=G(o),c=i.call(r,o)),l&&l.call(r,o);const h=r.delete(o);return c&&nt(r,"delete",o,void 0),h},clear(){const o=G(this),r=o.size!==0,i=o.clear();return r&&nt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function dn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Y(s,o)&&o in n?s:n,o,r)}const Vr={get:dn(!1,!1)},Ur={get:dn(!1,!0)},Br={get:dn(!0,!1)};const Eo=new WeakMap,Po=new WeakMap,Mo=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function pn(e){return at(e)?e:hn(e,!1,jr,Vr,Eo)}function qr(e){return hn(e,!1,Nr,Ur,Po)}function Ys(e){return hn(e,!0,Lr,Br,Mo)}function hn(e,t,s,n,o){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function St(e){return at(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Jr(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const De=e=>X(e)?pn(e):e,It=e=>X(e)?Ys(e):e;function be(e){return e?e.__v_isRef===!0:!1}function D(e){return Gr(e,!1)}function Gr(e,t){return be(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new fn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:De(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ie(t)||at(t);t=n?t:G(t),We(t,s)&&(this._rawValue=t,this._value=n?t:De(t),this.dep.trigger())}}function Zr(e){return be(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return be(o)&&!be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return St(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new fn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return yo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const cs={},gs=new WeakMap;let yt;function ti(e,t=!1,s=yt){if(s){let n=gs.get(s);n||gs.set(s,n=[]),n.push(e)}}function si(e,t,s=te){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,h=j=>o?j:Ie(j)||o===!1||o===0?ot(j,1):ot(j);let u,p,m,S,P=!1,M=!1;if(be(e)?(p=()=>e.value,P=Ie(e)):St(e)?(p=()=>h(e),P=!0):U(e)?(M=!0,P=e.some(j=>St(j)||Ie(j)),p=()=>e.map(j=>{if(be(j))return j.value;if(St(j))return h(j);if(K(j))return c?c(j,2):j()})):K(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){it();try{m()}finally{lt()}}const j=yt;yt=u;try{return c?c(e,3,[S]):e(S)}finally{yt=j}}:p=ze,t&&o){const j=p,F=o===!0?1/0:o;p=()=>ot(j(),F)}const W=Ar(),E=()=>{u.stop(),W&&W.active&&on(W.effects,u)};if(r&&t){const j=t;t=(...F)=>{j(...F),E()}}let N=M?new Array(e.length).fill(cs):cs;const z=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const F=u.run();if(o||P||(M?F.some((O,V)=>We(O,N[V])):We(F,N))){m&&m();const O=yt;yt=u;try{const V=[F,N===cs?void 0:M&&N[0]===cs?[]:N,S];N=F,c?c(t,3,V):t(...V)}finally{yt=O}}}else u.run()};return l&&l(z),u=new vo(p),u.scheduler=i?()=>i(z,!1):z,S=j=>ti(j,!1,u),m=u.onStop=()=>{const j=gs.get(u);if(j){if(c)c(j,4);else for(const F of j)F();gs.delete(u)}},t?n?z(!0):N=u.run():i?i(z.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function ot(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(U(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(jt(e)||Pt(e))e.forEach(n=>{ot(n,t,s)});else if(po(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/**
56
+ **/let Ce;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ar(){return Ce}let ne;const Ns=new WeakSet;class vo{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,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,En(this),_o(this);const t=ne,s=De;ne=this,De=!0;try{return this.fn()}finally{wo(this),ne=t,De=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)un(t);this.deps=this.depsTail=void 0,En(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zs(this)&&this.run()}get dirty(){return zs(this)}}let bo=0,Wt,zt;function yo(e,t=!1){if(e.flags|=8,t){e.next=zt,zt=e;return}e.next=Wt,Wt=e}function an(){bo++}function cn(){if(--bo>0)return;if(zt){let t=zt;for(zt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Wt;){let t=Wt;for(Wt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),un(n),Er(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zs(e))))return;e.flags|=2;const t=e.dep,s=ne,n=De;ne=e,De=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||We(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ne=s,De=n,wo(e),e.flags&=-3}}function un(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)un(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Er(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let De=!0;const Co=[];function it(){Co.push(De),De=!1}function lt(){const e=Co.pop();De=e===void 0?!0:e}function En(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ne;ne=void 0;try{t()}finally{ne=s}}}let Zt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{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(!ne||!De||ne===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ne)s=this.activeLink=new Pr(ne,this),ne.deps?(s.prevDep=ne.depsTail,ne.depsTail.nextDep=s,ne.depsTail=s):ne.deps=ne.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ne.depsTail,s.nextDep=void 0,ne.depsTail.nextDep=s,ne.depsTail=s,ne.deps===s&&(ne.deps=n)}return s}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){an();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{cn()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qs=new WeakMap,wt=Symbol(""),Js=Symbol(""),Qt=Symbol("");function xe(e,t,s){if(De&&ne){let n=qs.get(e);n||qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new fn),o.map=n,o.key=s),o.track()}}function nt(e,t,s,n,o,r){const i=qs.get(e);if(!i){Zt++;return}const l=c=>{c&&c.trigger()};if(an(),t==="clear")i.forEach(l);else{const c=U(e),h=c&&rn(s);if(c&&s==="length"){const u=Number(n);i.forEach((p,m)=>{(m==="length"||m===Qt||!Je(m)&&m>=u)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),h&&l(i.get(Qt)),t){case"add":c?h&&l(i.get("length")):(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"delete":c||(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"set":Pt(e)&&l(i.get(wt));break}}cn()}function kt(e){const t=G(e);return t===e?t:(xe(t,"iterate",Qt),Ie(e)?t:t.map(je))}function Ps(e){return xe(e=G(e),"iterate",Qt),e}function Ue(e,t){return at(e)?It(St(e)?je(t):t):je(t)}const Mr={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return kt(this).concat(...e.map(t=>U(t)?kt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Ht(this,"pop")},push(...e){return Ht(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ht(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Ht(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return Ht(this,"unshift",e)},values(){return Fs(this,"values",e=>Ue(this,e))}};function Fs(e,t,s){const n=Ps(e),o=n[t]();return n!==e&&!Ie(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function et(e,t,s,n,o,r){const i=Ps(e),l=i!==e&&!Ie(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?je(p):p}let h=s;i!==e&&(l?h=function(p,m){return s.call(this,Ue(e,p),m,e)}:s.length>2&&(h=function(p,m){return s.call(this,p,m,e)}));const u=c.call(i,h,n);return l&&o?o(u):u}function Pn(e,t,s,n){const o=Ps(e),r=o!==e&&!Ie(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(h,u,p){return l&&(l=!1,h=Ue(e,h)),s.call(this,h,Ue(e,u),p,e)}):s.length>3&&(i=function(h,u,p){return s.call(this,h,u,p,e)}));const c=o[t](i,...n);return l?Ue(e,c):c}function Hs(e,t,s){const n=G(e);xe(n,"iterate",Qt);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=G(s[0]),n[t](...s)):o}function Ht(e,t,s=[]){it(),an();const n=G(e)[t].apply(e,s);return cn(),lt(),n}const Ir=nn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Rr(e){Je(e)||(e=String(e));const t=G(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Mo:r?Po:Eo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!o){let c;if(i&&(c=Mr[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,be(t)?t:n);if((Je(s)?$o.has(s):Ir(s))||(o||xe(t,"get",s),r))return l;if(be(l)){const c=i&&rn(s)?l:l.value;return o&&X(c)?Ys(c):c}return X(l)?o?Ys(l):pn(l):l}}class Ao extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=U(t)&&rn(s);if(!this._isShallow){const h=at(r);if(!Ie(n)&&!at(n)&&(r=G(r),n=G(n)),!i&&be(r)&&!be(n))return h||(r.value=n),!0}const l=i?Number(s)<t.length:Y(t,s),c=Reflect.set(t,s,n,be(t)?t:o);return t===G(o)&&(l?We(n,r)&&nt(t,"set",s,n):nt(t,"add",s,n)),c}deleteProperty(t,s){const n=Y(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&nt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Je(s)||!$o.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",U(t)?"length":wt),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Ao,Lr=new Dr,Nr=new Ao(!0);const Gs=e=>e,ls=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=G(o),i=Pt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,h=o[e](...n),u=s?Gs:t?It:je;return!t&&xe(r,"iterate",c?Js:wt),ge(Object.create(h),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:l?[u(p[0]),u(p[1])]:u(p),done:m}}})}}function as(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=G(r),l=G(o);e||(We(o,l)&&xe(i,"get",o),xe(i,"get",l));const{has:c}=ls(i),h=t?Gs:e?It:je;if(c.call(i,o))return h(r.get(o));if(c.call(i,l))return h(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&xe(G(o),"iterate",wt),o.size},has(o){const r=this.__v_raw,i=G(r),l=G(o);return e||(We(o,l)&&xe(i,"has",o),xe(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=G(l),h=t?Gs:e?It:je;return!e&&xe(c,"iterate",wt),l.forEach((u,p)=>o.call(r,h(u),h(p),i))}};return ge(s,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(o){const r=G(this),i=ls(r),l=G(o),c=!t&&!Ie(o)&&!at(o)?l:o;return i.has.call(r,c)||We(o,c)&&i.has.call(r,o)||We(l,c)&&i.has.call(r,l)||(r.add(c),nt(r,"add",c,c)),this},set(o,r){!t&&!Ie(r)&&!at(r)&&(r=G(r));const i=G(this),{has:l,get:c}=ls(i);let h=l.call(i,o);h||(o=G(o),h=l.call(i,o));const u=c.call(i,o);return i.set(o,r),h?We(r,u)&&nt(i,"set",o,r):nt(i,"add",o,r),this},delete(o){const r=G(this),{has:i,get:l}=ls(r);let c=i.call(r,o);c||(o=G(o),c=i.call(r,o)),l&&l.call(r,o);const h=r.delete(o);return c&&nt(r,"delete",o,void 0),h},clear(){const o=G(this),r=o.size!==0,i=o.clear();return r&&nt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function dn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Y(s,o)&&o in n?s:n,o,r)}const Vr={get:dn(!1,!1)},Ur={get:dn(!1,!0)},Br={get:dn(!0,!1)};const Eo=new WeakMap,Po=new WeakMap,Mo=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function pn(e){return at(e)?e:hn(e,!1,jr,Vr,Eo)}function qr(e){return hn(e,!1,Nr,Ur,Po)}function Ys(e){return hn(e,!0,Lr,Br,Mo)}function hn(e,t,s,n,o){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function St(e){return at(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Jr(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const je=e=>X(e)?pn(e):e,It=e=>X(e)?Ys(e):e;function be(e){return e?e.__v_isRef===!0:!1}function D(e){return Gr(e,!1)}function Gr(e,t){return be(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new fn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:je(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ie(t)||at(t);t=n?t:G(t),We(t,s)&&(this._rawValue=t,this._value=n?t:je(t),this.dep.trigger())}}function Zr(e){return be(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return be(o)&&!be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return St(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new fn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return yo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const cs={},gs=new WeakMap;let yt;function ti(e,t=!1,s=yt){if(s){let n=gs.get(s);n||gs.set(s,n=[]),n.push(e)}}function si(e,t,s=te){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,h=j=>o?j:Ie(j)||o===!1||o===0?ot(j,1):ot(j);let u,p,m,S,P=!1,M=!1;if(be(e)?(p=()=>e.value,P=Ie(e)):St(e)?(p=()=>h(e),P=!0):U(e)?(M=!0,P=e.some(j=>St(j)||Ie(j)),p=()=>e.map(j=>{if(be(j))return j.value;if(St(j))return h(j);if(K(j))return c?c(j,2):j()})):K(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){it();try{m()}finally{lt()}}const j=yt;yt=u;try{return c?c(e,3,[S]):e(S)}finally{yt=j}}:p=ze,t&&o){const j=p,F=o===!0?1/0:o;p=()=>ot(j(),F)}const W=Ar(),E=()=>{u.stop(),W&&W.active&&on(W.effects,u)};if(r&&t){const j=t;t=(...F)=>{j(...F),E()}}let N=M?new Array(e.length).fill(cs):cs;const z=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const F=u.run();if(o||P||(M?F.some((O,V)=>We(O,N[V])):We(F,N))){m&&m();const O=yt;yt=u;try{const V=[F,N===cs?void 0:M&&N[0]===cs?[]:N,S];N=F,c?c(t,3,V):t(...V)}finally{yt=O}}}else u.run()};return l&&l(z),u=new vo(p),u.scheduler=i?()=>i(z,!1):z,S=j=>ti(j,!1,u),m=u.onStop=()=>{const j=gs.get(u);if(j){if(c)c(j,4);else for(const F of j)F();gs.delete(u)}},t?n?z(!0):N=u.run():i?i(z.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function ot(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(U(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(jt(e)||Pt(e))e.forEach(n=>{ot(n,t,s)});else if(po(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/**
57
57
  * @vue/runtime-core v3.5.31
58
58
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
59
59
  * @license MIT
60
- **/function os(e,t,s,n){try{return n?e(...n):e()}catch(o){Ms(o,t,s)}}function Ge(e,t,s,n){if(K(e)){const o=os(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Ms(r,t,s)}),o}if(U(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Ge(e[r],t,s,n));return o}}function Ms(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,c,h)===!1)return}l=l.parent}if(r){it(),os(r,null,10,[e,c,h]),lt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const _e=[];let He=-1;const Mt=[];let ft=null,At=0;const Io=Promise.resolve();let xs=null;function Ro(e){const t=xs||Io;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=He+1,s=_e.length;for(;t<s;){const n=t+s>>>1,o=_e[n],r=Xt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function gn(e){if(!(e.flags&1)){const t=Xt(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=Xt(s)?_e.push(e):_e.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){xs||(xs=Io.then(Lo))}function ri(e){U(e)?Mt.push(...e):ft&&e.id===-1?ft.splice(At+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1),Do()}function Mn(e,t,s=He+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Mt.length){const t=[...new Set(Mt)].sort((s,n)=>Xt(s)-Xt(n));if(Mt.length=0,ft){ft.push(...t);return}for(ft=t,At=0;At<ft.length;At++){const s=ft[At];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ft=null,At=0}}const Xt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(He=0;He<_e.length;He++){const t=_e[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),os(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<_e.length;He++){const t=_e[He];t&&(t.flags&=-2)}He=-1,_e.length=0,jo(),xs=null,(_e.length||Mt.length)&&Lo()}}let Ee=null,No=null;function vs(e){const t=Ee;return Ee=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=Ee,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=vs(t);let i;try{i=e(...o)}finally{vs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(Ee===null)return e;const s=Ds(Ee),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=te]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function vt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[n];c&&(it(),Ge(c,s,8,[e.el,l,e,t]),lt())}}function li(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function ds(e,t,s=!1){const n=ll();if(n||Ot){let o=Ot?Ot._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>ds(ai);function Vs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=te){const{immediate:n,deep:o,flush:r,once:i}=s,l=ge({},s),c=t&&n||!t&&r!=="post";let h;if(ts){if(r==="sync"){const S=ci();h=S.__watcherHandles||(S.__watcherHandles=[])}else if(!c){const S=()=>{};return S.stop=ze,S.resume=ze,S.pause=ze,S}}const u=ve;l.call=(S,P,M)=>Ge(S,u,P,M);let p=!1;r==="post"?l.scheduler=S=>{Se(S,u&&u.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(S,P)=>{P?S():gn(S)}),l.augmentJob=S=>{t&&(S.flags|=4),p&&(S.flags|=2,u&&(S.id=u.uid,S.i=u))};const m=si(e,t,l);return ts&&(h?h.push(m):c&&m()),m}function ui(e,t,s){const n=this.proxy,o=ae(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=rs(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(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 Ct(e,t){return K(e)?ge({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const bs=new WeakMap;function qt(e,t,s,n,o=!1){if(U(e)){e.forEach((M,W)=>qt(M,t&&(U(t)?t[W]:t),s,n,o));return}if(Jt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&qt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Ds(n.component):n.el,i=o?null:r,{i:l,r:c}=e,h=t&&t.r,u=l.refs===te?l.refs={}:l.refs,p=l.setupState,m=G(p),S=p===te?co:M=>On(u,M)?!1:Y(m,M),P=(M,W)=>!(W&&On(u,W));if(h!=null&&h!==c){if(In(t),ae(h))u[h]=null,S(h)&&(p[h]=null);else if(be(h)){const M=t;P(h,M.k)&&(h.value=null),M.k&&(u[M.k]=null)}}if(K(c))os(c,l,12,[i,u]);else{const M=ae(c),W=be(c);if(M||W){const E=()=>{if(e.f){const N=M?S(c)?p[c]:u[c]:P()||!e.k?c.value:u[e.k];if(o)U(N)&&on(N,r);else if(U(N))N.includes(r)||N.push(r);else if(M)u[c]=[r],S(c)&&(p[c]=u[c]);else{const z=[r];P(c,e.k)&&(c.value=z),e.k&&(u[e.k]=z)}}else M?(u[c]=i,S(c)&&(p[c]=i)):W&&(P(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const N=()=>{E(),bs.delete(e)};N.id=-1,bs.set(e,N),Se(N,s)}else In(e),E()}}}function In(e){const t=bs.get(e);t&&(t.flags|=8,bs.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Jt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Os(t,e,n,!0);vn(()=>{on(n[t],o)},s)}function Os(e,t,s=ve,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=rs(s),c=Ge(t,s,e,i);return l(),lt(),c});return n?o.unshift(r):o.push(r),r}}const ut=e=>(t,s=ve)=>{(!ts||e==="sp")&&Os(e,(...n)=>t(...n),s)},xi=ut("bm"),gt=ut("m"),vi=ut("bu"),bi=ut("u"),yi=ut("bum"),vn=ut("um"),_i=ut("sp"),wi=ut("rtg"),Si=ut("rtc");function Ci(e,t=ve){Os("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return ae(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=Ee||ve;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===we(t)||l===$s(we(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[we(t)]||e[$s(we(t))])}function ct(e,t,s,n){let o;const r=s,i=U(e);if(i||ae(e)){const l=i&&St(e);let c=!1,h=!1;l&&(c=!Ie(e),h=at(e),e=Ps(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(c?h?It(De(e[u])):De(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(X(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];o[c]=t(e[u],u,c,r)}}else o=[];return o}const Zs=e=>e?dr(e)?Ds(e):Zs(e.parent):null,Gt=ge(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=>Zs(e.parent),$root:e=>Zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{gn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Us=(e,t)=>e!==te&&!e.__isScriptSetup&&Y(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Us(n,t))return i[t]=1,n[t];if(o!==te&&Y(o,t))return i[t]=2,o[t];if(Y(r,t))return i[t]=3,r[t];if(s!==te&&Y(s,t))return i[t]=4,s[t];Qs&&(i[t]=0)}}const h=Gt[t];let u,p;if(h)return t==="$attrs"&&xe(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==te&&Y(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Us(o,t)?(o[t]=s,!0):n!==te&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let c;return!!(s[l]||e!==te&&l[0]!=="$"&&Y(e,l)||Us(t,l)||Y(r,l)||Y(n,l)||Y(Gt,l)||Y(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Qs=!0;function Ei(e){const t=zo(e),s=e.proxy,n=e.ctx;Qs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:h,created:u,beforeMount:p,mounted:m,beforeUpdate:S,updated:P,activated:M,deactivated:W,beforeDestroy:E,beforeUnmount:N,destroyed:z,unmounted:j,render:F,renderTracked:O,renderTriggered:V,errorCaptured:ie,serverPrefetch:J,expose:ce,inheritAttrs:Me,components:Ye,directives:$e,filters:Tt}=t;if(h&&Pi(h,n,null),i)for(const oe in i){const Z=i[oe];K(Z)&&(n[oe]=Z.bind(s))}if(o){const oe=o.call(s,s);X(oe)&&(e.data=pn(oe))}if(Qs=!0,r)for(const oe in r){const Z=r[oe],Ze=K(Z)?Z.bind(s,s):K(Z.get)?Z.get.bind(s,s):ze,$t=!K(Z)&&K(Z.set)?Z.set.bind(s):ze,Qe=ht({get:Ze,set:$t});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Oe=>Qe.value=Oe})}if(l)for(const oe in l)Wo(l[oe],n,s,oe);if(c){const oe=K(c)?c.call(s):c;Reflect.ownKeys(oe).forEach(Z=>{li(Z,oe[Z])})}u&&jn(u,e,"c");function he(oe,Z){U(Z)?Z.forEach(Ze=>oe(Ze.bind(s))):Z&&oe(Z.bind(s))}if(he(xi,p),he(gt,m),he(vi,S),he(bi,P),he(hi,M),he(mi,W),he(Ci,ie),he(Si,O),he(wi,V),he(yi,N),he(vn,j),he(_i,J),U(ce))if(ce.length){const oe=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Ze=>s[Z]=Ze,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===ze&&(e.render=F),Me!=null&&(e.inheritAttrs=Me),Ye&&(e.components=Ye),$e&&(e.directives=$e),J&&Vo(e)}function Pi(e,t,s=ze){U(e)&&(e=Xs(e));for(const n in e){const o=e[n];let r;X(o)?"default"in o?r=ds(o.from||n,o.default,!0):r=ds(o.from||n):r=ds(o),be(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){Ge(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(ae(e)){const r=t[e];K(r)&&Vs(o,r)}else if(K(e))Vs(o,e.bind(s));else if(X(e))if(U(e))e.forEach(r=>Wo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Vs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(h=>ys(c,h,i,!0)),ys(c,t,i)),X(t)&&r.set(t,c),c}function ys(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&ys(e,r,s,!0),o&&o.forEach(i=>ys(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Mi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Mi={data:Ln,props:Nn,emits:Nn,methods:Bt,computed:Bt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Bt,directives:Bt,watch:Ii,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Bt(Xs(e),Xs(t))}function Xs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Bt(e,t){return e?ge(Object.create(null),e,t):t}function Nn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ge(Object.create(null),Dn(e),Dn(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=ge(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,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 Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=ge({},n)),o!=null&&!X(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let c=!1;const h=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(u){},use(u,...p){return i.has(u)||(u&&K(u.install)?(i.add(u),u.install(h,...p)):K(u)&&(i.add(u),u(h,...p))),h},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),h},component(u,p){return p?(r.components[u]=p,h):r.components[u]},directive(u,p){return p?(r.directives[u]=p,h):r.directives[u]},mount(u,p,m){if(!c){const S=h._ceVNode||qe(n,o);return S.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(S,u,m),c=!0,h._container=u,u.__vue_app__=h,Ds(S.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Ge(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,p){return r.provides[u]=p,h},runWithContext(u){const p=Ot;Ot=h;try{return u()}finally{Ot=p}}};return h}}let Ot=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${mt(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||te;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>ae(u)?u.trim():u)),i.number&&(o=s.map(ks)));let l,c=n[l=js(t)]||n[l=js(we(t))];!c&&r&&(c=n[l=js(mt(t))]),c&&Ge(c,e,6,o);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(h,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const c=h=>{const u=Jo(h,t,!0);u&&(l=!0,ge(i,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(X(e)&&n.set(e,null),null):(U(r)?r.forEach(c=>i[c]=null):ge(i,r),X(e)&&n.set(e,i),i)}function Is(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,mt(t))||Y(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:h,renderCache:u,props:p,data:m,setupState:S,ctx:P,inheritAttrs:M}=e,W=vs(e);let E,N;try{if(s.shapeFlag&4){const j=o||n,F=j;E=Be(h.call(F,j,u,p,S,m,P)),N=l}else{const j=t;E=Be(j.length>1?j(p,{attrs:l,slots:i,emit:c}):j(p,null)),N=t.props?l:Fi(l)}}catch(j){Yt.length=0,Ms(j,e,1),E=qe(pt)}let z=E;if(N&&M!==!1){const j=Object.keys(N),{shapeFlag:F}=z;j.length&&F&7&&(r&&j.some(Cs)&&(N=Hi(N,r)),z=Rt(z,N,!1,!0))}return s.dirs&&(z=Rt(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&xn(z,s.transition),E=z,vs(W),E}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Hn(n,i,h):!!i;if(c&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const m=u[p];if(Go(i,n,m)&&!Is(h,m))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,h):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Is(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&X(n)&&X(o)?!Lt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=G(o),[c]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let m=u[p];if(Is(e.emitsOptions,m))continue;const S=t[m];if(c)if(Y(r,m))S!==r[m]&&(r[m]=S,h=!0);else{const P=we(m);o[P]=en(c,l,P,S,e,!1)}else S!==r[m]&&(r[m]=S,h=!0)}}}else{Xo(e,t,o,r)&&(h=!0);let u;for(const p in l)(!t||!Y(t,p)&&((u=mt(p))===p||!Y(t,u)))&&(c?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=en(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Y(t,p))&&(delete r[p],h=!0)}h&&nt(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Kt(c))continue;const h=t[c];let u;o&&Y(o,u=we(c))?!r||!r.includes(u)?s[u]=h:(l||(l={}))[u]=h:Is(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,i=!0)}if(r){const c=G(s),h=l||te;for(let u=0;u<r.length;u++){const p=r[u];s[p]=en(o,c,p,h[p],e,!Y(h,p))}}return i}function en(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=Y(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&K(c)){const{propsDefaults:h}=o;if(s in h)n=h[s];else{const u=rs(o);n=h[s]=c.call(null,t),u()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===mt(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!K(e)){const u=p=>{c=!0;const[m,S]=er(p,t,!0);ge(i,m),S&&l.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return X(e)&&n.set(e,Et),Et;if(U(r))for(let u=0;u<r.length;u++){const p=we(r[u]);Vn(p)&&(i[p]=te)}else if(r)for(const u in r){const p=we(u);if(Vn(p)){const m=r[u],S=i[p]=U(m)||K(m)?{type:m}:ge({},m),P=S.type;let M=!1,W=!0;if(U(P))for(let E=0;E<P.length;++E){const N=P[E],z=K(N)&&N.name;if(z==="Boolean"){M=!0;break}else z==="String"&&(W=!1)}else M=K(P)&&P.name==="Boolean";S[0]=M,S[1]=W,(M||Y(S,"default"))&&l.push(p)}}const h=[i,l];return X(e)&&n.set(e,h),h}function Vn(e){return e[0]!=="$"&&!Kt(e)}const bn=e=>e==="_"||e==="_ctx"||e==="$stable",yn=e=>U(e)?e.map(Be):[Be(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>yn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(bn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=yn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=yn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!bn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=te;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!bn(l)&&i[l]==null&&delete o[l]},Se=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=As();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:h,setElementText:u,parentNode:p,nextSibling:m,setScopeId:S=ze,insertStaticContent:P}=e,M=(f,d,g,y=null,x=null,v=null,T=void 0,C=null,w=!!d.dynamicChildren)=>{if(f===d)return;f&&!Vt(f,d)&&(y=Q(f),Oe(f,x,v,!0),f=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:H,shapeFlag:k}=d;switch(b){case Rs:W(f,d,g,y);break;case pt:E(f,d,g,y);break;case ps:f==null&&N(d,g,y,T);break;case de:Ye(f,d,g,y,x,v,T,C,w);break;default:k&1?F(f,d,g,y,x,v,T,C,w):k&6?$e(f,d,g,y,x,v,T,C,w):(k&64||k&128)&&b.process(f,d,g,y,x,v,T,C,w,Nt)}H!=null&&x?qt(H,f&&f.ref,v,d||f,!d):H==null&&f&&f.ref!=null&&qt(f.ref,null,v,f,!0)},W=(f,d,g,y)=>{if(f==null)n(d.el=l(d.children),g,y);else{const x=d.el=f.el;d.children!==f.children&&h(x,d.children)}},E=(f,d,g,y)=>{f==null?n(d.el=c(d.children||""),g,y):d.el=f.el},N=(f,d,g,y)=>{[f.el,f.anchor]=P(f.children,d,g,y,f.el,f.anchor)},z=({el:f,anchor:d},g,y)=>{let x;for(;f&&f!==d;)x=m(f),n(f,g,y),f=x;n(d,g,y)},j=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=m(f),o(f),f=g;o(d)},F=(f,d,g,y,x,v,T,C,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),f==null)O(d,g,y,x,v,T,C,w);else{const b=f.el&&f.el._isVueCE?f.el:null;try{b&&b._beginPatch(),J(f,d,x,v,T,C,w)}finally{b&&b._endPatch()}}},O=(f,d,g,y,x,v,T,C)=>{let w,b;const{props:H,shapeFlag:k,transition:L,dirs:B}=f;if(w=f.el=i(f.type,v,H&&H.is,H),k&8?u(w,f.children):k&16&&ie(f.children,w,null,y,x,Bs(f,v),T,C),B&&vt(f,null,y,"created"),V(w,f,f.scopeId,T,y),H){for(const ee in H)ee!=="value"&&!Kt(ee)&&r(w,ee,null,H[ee],v,y);"value"in H&&r(w,"value",null,H.value,v),(b=H.onVnodeBeforeMount)&&Fe(b,y,f)}B&&vt(f,null,y,"beforeMount");const q=Zi(x,L);q&&L.beforeEnter(w),n(w,d,g),((b=H&&H.onVnodeMounted)||q||B)&&Se(()=>{try{b&&Fe(b,y,f),q&&L.enter(w),B&&vt(f,null,y,"mounted")}finally{}},x)},V=(f,d,g,y,x)=>{if(g&&S(f,g),y)for(let v=0;v<y.length;v++)S(f,y[v]);if(x){let v=x.subTree;if(d===v||lr(v.type)&&(v.ssContent===d||v.ssFallback===d)){const T=x.vnode;V(f,T,T.scopeId,T.slotScopeIds,x.parent)}}},ie=(f,d,g,y,x,v,T,C,w=0)=>{for(let b=w;b<f.length;b++){const H=f[b]=C?st(f[b]):Be(f[b]);M(null,H,d,g,y,x,v,T,C)}},J=(f,d,g,y,x,v,T)=>{const C=d.el=f.el;let{patchFlag:w,dynamicChildren:b,dirs:H}=d;w|=f.patchFlag&16;const k=f.props||te,L=d.props||te;let B;if(g&&bt(g,!1),(B=L.onVnodeBeforeUpdate)&&Fe(B,g,d,f),H&&vt(d,f,g,"beforeUpdate"),g&&bt(g,!0),(k.innerHTML&&L.innerHTML==null||k.textContent&&L.textContent==null)&&u(C,""),b?ce(f.dynamicChildren,b,C,g,y,Bs(d,x),v):T||Z(f,d,C,null,g,y,Bs(d,x),v,!1),w>0){if(w&16)Me(C,k,L,g,x);else if(w&2&&k.class!==L.class&&r(C,"class",null,L.class,x),w&4&&r(C,"style",k.style,L.style,x),w&8){const q=d.dynamicProps;for(let ee=0;ee<q.length;ee++){const se=q[ee],ue=k[se],me=L[se];(me!==ue||se==="value")&&r(C,se,ue,me,x,g)}}w&1&&f.children!==d.children&&u(C,d.children)}else!T&&b==null&&Me(C,k,L,g,x);((B=L.onVnodeUpdated)||H)&&Se(()=>{B&&Fe(B,g,d,f),H&&vt(d,f,g,"updated")},y)},ce=(f,d,g,y,x,v,T)=>{for(let C=0;C<d.length;C++){const w=f[C],b=d[C],H=w.el&&(w.type===de||!Vt(w,b)||w.shapeFlag&198)?p(w.el):g;M(w,b,H,null,y,x,v,T,!0)}},Me=(f,d,g,y,x)=>{if(d!==g){if(d!==te)for(const v in d)!Kt(v)&&!(v in g)&&r(f,v,d[v],null,x,y);for(const v in g){if(Kt(v))continue;const T=g[v],C=d[v];T!==C&&v!=="value"&&r(f,v,C,T,x,y)}"value"in g&&r(f,"value",d.value,g.value,x)}},Ye=(f,d,g,y,x,v,T,C,w)=>{const b=d.el=f?f.el:l(""),H=d.anchor=f?f.anchor:l("");let{patchFlag:k,dynamicChildren:L,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),f==null?(n(b,g,y),n(H,g,y),ie(d.children||[],g,H,x,v,T,C,w)):k>0&&k&64&&L&&f.dynamicChildren&&f.dynamicChildren.length===L.length?(ce(f.dynamicChildren,L,g,x,v,T,C),(d.key!=null||x&&d===x.subTree)&&or(f,d,!0)):Z(f,d,g,H,x,v,T,C,w)},$e=(f,d,g,y,x,v,T,C,w)=>{d.slotScopeIds=C,f==null?d.shapeFlag&512?x.ctx.activate(d,g,y,T,w):Tt(d,g,y,x,v,T,w):is(f,d,w)},Tt=(f,d,g,y,x,v,T)=>{const C=f.component=il(f,y,x);if(Uo(f)&&(C.ctx.renderer=Nt),al(C,!1,T),C.asyncDep){if(x&&x.registerDep(C,he,T),!f.el){const w=C.subTree=qe(pt);E(null,w,d,g),f.placeholder=w.el}}else he(C,f,d,g,x,v,T)},is=(f,d,g)=>{const y=d.component=f.component;if(Vi(f,d,g))if(y.asyncDep&&!y.asyncResolved){oe(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},he=(f,d,g,y,x,v,T)=>{const C=()=>{if(f.isMounted){let{next:k,bu:L,u:B,parent:q,vnode:ee}=f;{const Le=rr(f);if(Le){k&&(k.el=ee.el,oe(f,k,T)),Le.asyncDep.then(()=>{Se(()=>{f.isUnmounted||b()},x)});return}}let se=k,ue;bt(f,!1),k?(k.el=ee.el,oe(f,k,T)):k=ee,L&&fs(L),(ue=k.props&&k.props.onVnodeBeforeUpdate)&&Fe(ue,q,k,ee),bt(f,!0);const me=Fn(f),je=f.subTree;f.subTree=me,M(je,me,p(je.el),Q(je),f,x,v),k.el=me.el,se===null&&Ui(f,me.el),B&&Se(B,x),(ue=k.props&&k.props.onVnodeUpdated)&&Se(()=>Fe(ue,q,k,ee),x)}else{let k;const{el:L,props:B}=d,{bm:q,m:ee,parent:se,root:ue,type:me}=f,je=Jt(d);bt(f,!1),q&&fs(q),!je&&(k=B&&B.onVnodeBeforeMount)&&Fe(k,se,d),bt(f,!0);{ue.ce&&ue.ce._hasShadowRoot()&&ue.ce._injectChildStyle(me,f.parent?f.parent.type:void 0);const Le=f.subTree=Fn(f);M(null,Le,g,y,f,x,v),d.el=Le.el}if(ee&&Se(ee,x),!je&&(k=B&&B.onVnodeMounted)){const Le=d;Se(()=>Fe(k,se,Le),x)}(d.shapeFlag&256||se&&Jt(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Se(f.a,x),f.isMounted=!0,d=g=y=null}};f.scope.on();const w=f.effect=new vo(C);f.scope.off();const b=f.update=w.run.bind(w),H=f.job=w.runIfDirty.bind(w);H.i=f,H.id=f.uid,w.scheduler=()=>gn(H),bt(f,!0),b()},oe=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,Ki(f,d.props,y,g),Ji(f,d.children,g),it(),Mn(f),lt()},Z=(f,d,g,y,x,v,T,C,w=!1)=>{const b=f&&f.children,H=f?f.shapeFlag:0,k=d.children,{patchFlag:L,shapeFlag:B}=d;if(L>0){if(L&128){$t(b,k,g,y,x,v,T,C,w);return}else if(L&256){Ze(b,k,g,y,x,v,T,C,w);return}}B&8?(H&16&&ke(b,x,v),k!==b&&u(g,k)):H&16?B&16?$t(b,k,g,y,x,v,T,C,w):ke(b,x,v,!0):(H&8&&u(g,""),B&16&&ie(k,g,y,x,v,T,C,w))},Ze=(f,d,g,y,x,v,T,C,w)=>{f=f||Et,d=d||Et;const b=f.length,H=d.length,k=Math.min(b,H);let L;for(L=0;L<k;L++){const B=d[L]=w?st(d[L]):Be(d[L]);M(f[L],B,g,null,x,v,T,C,w)}b>H?ke(f,x,v,!0,!1,k):ie(d,g,y,x,v,T,C,w,k)},$t=(f,d,g,y,x,v,T,C,w)=>{let b=0;const H=d.length;let k=f.length-1,L=H-1;for(;b<=k&&b<=L;){const B=f[b],q=d[b]=w?st(d[b]):Be(d[b]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;b++}for(;b<=k&&b<=L;){const B=f[k],q=d[L]=w?st(d[L]):Be(d[L]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;k--,L--}if(b>k){if(b<=L){const B=L+1,q=B<H?d[B].el:y;for(;b<=L;)M(null,d[b]=w?st(d[b]):Be(d[b]),g,q,x,v,T,C,w),b++}}else if(b>L)for(;b<=k;)Oe(f[b],x,v,!0),b++;else{const B=b,q=b,ee=new Map;for(b=q;b<=L;b++){const Ae=d[b]=w?st(d[b]):Be(d[b]);Ae.key!=null&&ee.set(Ae.key,b)}let se,ue=0;const me=L-q+1;let je=!1,Le=0;const Ft=new Array(me);for(b=0;b<me;b++)Ft[b]=0;for(b=B;b<=k;b++){const Ae=f[b];if(ue>=me){Oe(Ae,x,v,!0);continue}let Ne;if(Ae.key!=null)Ne=ee.get(Ae.key);else for(se=q;se<=L;se++)if(Ft[se-q]===0&&Vt(Ae,d[se])){Ne=se;break}Ne===void 0?Oe(Ae,x,v,!0):(Ft[Ne-q]=b+1,Ne>=Le?Le=Ne:je=!0,M(Ae,d[Ne],g,null,x,v,T,C,w),ue++)}const Cn=je?Qi(Ft):Et;for(se=Cn.length-1,b=me-1;b>=0;b--){const Ae=q+b,Ne=d[Ae],Tn=d[Ae+1],$n=Ae+1<H?Tn.el||ir(Tn):y;Ft[b]===0?M(null,Ne,g,$n,x,v,T,C,w):je&&(se<0||b!==Cn[se]?Qe(Ne,g,$n,2):se--)}}},Qe=(f,d,g,y,x=null)=>{const{el:v,type:T,transition:C,children:w,shapeFlag:b}=f;if(b&6){Qe(f.component.subTree,d,g,y);return}if(b&128){f.suspense.move(d,g,y);return}if(b&64){T.move(f,d,g,Nt);return}if(T===de){n(v,d,g);for(let k=0;k<w.length;k++)Qe(w[k],d,g,y);n(f.anchor,d,g);return}if(T===ps){z(f,d,g);return}if(y!==2&&b&1&&C)if(y===0)C.beforeEnter(v),n(v,d,g),Se(()=>C.enter(v),x);else{const{leave:k,delayLeave:L,afterLeave:B}=C,q=()=>{f.ctx.isUnmounted?o(v):n(v,d,g)},ee=()=>{v._isLeaving&&v[pi](!0),k(v,()=>{q(),B&&B()})};L?L(v,q,ee):ee()}else n(v,d,g)},Oe=(f,d,g,y=!1,x=!1)=>{const{type:v,props:T,ref:C,children:w,dynamicChildren:b,shapeFlag:H,patchFlag:k,dirs:L,cacheIndex:B,memo:q}=f;if(k===-2&&(x=!1),C!=null&&(it(),qt(C,null,g,f,!0),lt()),B!=null&&(d.renderCache[B]=void 0),H&256){d.ctx.deactivate(f);return}const ee=H&1&&L,se=!Jt(f);let ue;if(se&&(ue=T&&T.onVnodeBeforeUnmount)&&Fe(ue,d,f),H&6)Xe(f.component,g,y);else{if(H&128){f.suspense.unmount(g,y);return}ee&&vt(f,null,d,"beforeUnmount"),H&64?f.type.remove(f,d,g,Nt,y):b&&!b.hasOnce&&(v!==de||k>0&&k&64)?ke(b,d,g,!1,!0):(v===de&&k&384||!x&&H&16)&&ke(w,d,g),y&&I(f)}const me=q!=null&&B==null;(se&&(ue=T&&T.onVnodeUnmounted)||ee||me)&&Se(()=>{ue&&Fe(ue,d,f),ee&&vt(f,null,d,"unmounted"),me&&(f.el=null)},g)},I=f=>{const{type:d,el:g,anchor:y,transition:x}=f;if(d===de){_(g,y);return}if(d===ps){j(f);return}const v=()=>{o(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:C}=x,w=()=>T(g,v);C?C(f.el,v,w):w()}else v()},_=(f,d)=>{let g;for(;f!==d;)g=m(f),o(f),f=g;o(d)},Xe=(f,d,g)=>{const{bum:y,scope:x,job:v,subTree:T,um:C,m:w,a:b}=f;Un(w),Un(b),y&&fs(y),x.stop(),v&&(v.flags|=8,Oe(T,f,d,g)),C&&Se(C,d),Se(()=>{f.isUnmounted=!0},d)},ke=(f,d,g,y=!1,x=!1,v=0)=>{for(let T=v;T<f.length;T++)Oe(f[T],d,g,y,x)},Q=f=>{if(f.shapeFlag&6)return Q(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=m(f.anchor||f.el),g=d&&d[fi];return g?m(g):d};let xt=!1;const Sn=(f,d,g)=>{let y;f==null?d._vnode&&(Oe(d._vnode,null,null,!0),y=d._vnode.component):M(d._vnode||null,f,d,null,null,null,g),d._vnode=f,xt||(xt=!0,Mn(y),jo(),xt=!1)},Nt={p:M,um:Oe,m:Qe,r:I,mt:Tt,mc:ie,pc:Z,pbc:ce,n:Q,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Bs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function bt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(U(n)&&U(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=st(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Rs&&(l.patchFlag===-1&&(l=o[r]=st(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(o=s[s.length-1],e[o]<h){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<h?r=l+1:i=l;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const de=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),ps=Symbol.for("v-stc"),Yt=[];let Pe=null;function $(e=!1){Yt.push(Pe=e?null:[])}function el(){Yt.pop(),Pe=Yt[Yt.length-1]||null}let es=1;function Bn(e,t=!1){es+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function ar(e){return e.dynamicChildren=es>0?Pe||Et:null,el(),es>0&&Pe&&Pe.push(e),e}function A(e,t,s,n,o,r){return ar(a(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(qe(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Vt(e,t){return e.type===t.type&&e.key===t.key}const fr=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||be(e)||K(e)?{i:Ee,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,o=null,r=e===de?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&hs(t),scopeId:No,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ee};return l?(_n(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ae(s)?8:16),es>0&&!i&&Pe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Pe.push(c),c}const qe=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=pt),ur(e)){const l=Rt(e,t,!0);return s&&_n(l,s),es>0&&!r&&Pe&&(l.shapeFlag&6?Pe[Pe.indexOf(e)]=l:Pe.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=le(l)),X(c)&&(mn(c)&&!U(c)&&(c=ge({},c)),t.style=Es(c))}const i=ae(e)?1:lr(e)?128:di(e)?64:X(e)?4:K(e)?2:0;return a(e,t,s,n,o,i,r,!0)}function sl(e){return e?mn(e)||Qo(e)?ge({},e):e:null}function Rt(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,h=t?nl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&fr(h),ref:t&&t.ref?s&&r?U(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&xn(u,c.clone(u)),u}function _t(e=" ",t=0){return qe(Rs,null,e,t)}function Ve(e,t){const s=qe(ps,null,e);return s.staticCount=t,s}function re(e="",t=!1){return t?($(),cr(pt,null,e)):qe(pt,null,e)}function Be(e){return e==null||typeof e=="boolean"?qe(pt):U(e)?qe(de,null,e.slice()):ur(e)?st(e):qe(Rs,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=Ee:o===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ee},s=32):(t=String(t),n&64?(s=16,t=[_t(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=le([t.class,n.class]));else if(o==="style")t.style=Es([t.style,n.style]);else if(Ss(o)){const r=t[o],i=n[o];i&&r!==i&&!(U(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Cs(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function Fe(e,t,s,n=null){Ge(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const ll=()=>ve||Ee;let _s,tn;{const e=As(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),tn=t("__VUE_SSR_SETTERS__",s=>ts=s)}const rs=e=>{const t=ve;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Kn=()=>{ve&&ve.scope.off(),_s(null)};function dr(e){return e.vnode.shapeFlag&4}let ts=!1;function al(e,t=!1,s=!1){t&&tn(t);const{props:n,children:o}=e.vnode,r=dr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&tn(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:n}=s;if(n){it();const o=e.setupContext=n.length>1?fl(e):null,r=rs(e),i=os(n,e,0,[e.props,o]),l=uo(i);if(lt(),r(),(l||e.sp)&&!Jt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(c=>{Wn(e,c)}).catch(c=>{Ms(c,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||ze);{const o=rs(e);it();try{Ei(e)}finally{lt(),o()}}}const ul={get(e,t){return xe(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Gt)return Gt[s](e)},has(t,s){return s in t||s in Gt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const ht=(e,t)=>ei(e,t,ts),hl="3.5.31";/**
60
+ **/function os(e,t,s,n){try{return n?e(...n):e()}catch(o){Ms(o,t,s)}}function Ge(e,t,s,n){if(K(e)){const o=os(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Ms(r,t,s)}),o}if(U(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Ge(e[r],t,s,n));return o}}function Ms(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,c,h)===!1)return}l=l.parent}if(r){it(),os(r,null,10,[e,c,h]),lt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const _e=[];let Ve=-1;const Mt=[];let ft=null,At=0;const Io=Promise.resolve();let xs=null;function Ro(e){const t=xs||Io;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=Ve+1,s=_e.length;for(;t<s;){const n=t+s>>>1,o=_e[n],r=Xt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function gn(e){if(!(e.flags&1)){const t=Xt(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=Xt(s)?_e.push(e):_e.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){xs||(xs=Io.then(Lo))}function ri(e){U(e)?Mt.push(...e):ft&&e.id===-1?ft.splice(At+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1),Do()}function Mn(e,t,s=Ve+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Mt.length){const t=[...new Set(Mt)].sort((s,n)=>Xt(s)-Xt(n));if(Mt.length=0,ft){ft.push(...t);return}for(ft=t,At=0;At<ft.length;At++){const s=ft[At];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ft=null,At=0}}const Xt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(Ve=0;Ve<_e.length;Ve++){const t=_e[Ve];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),os(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ve<_e.length;Ve++){const t=_e[Ve];t&&(t.flags&=-2)}Ve=-1,_e.length=0,jo(),xs=null,(_e.length||Mt.length)&&Lo()}}let Ee=null,No=null;function vs(e){const t=Ee;return Ee=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=Ee,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=vs(t);let i;try{i=e(...o)}finally{vs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(Ee===null)return e;const s=Ds(Ee),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=te]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function vt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[n];c&&(it(),Ge(c,s,8,[e.el,l,e,t]),lt())}}function li(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function ds(e,t,s=!1){const n=ll();if(n||Ot){let o=Ot?Ot._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>ds(ai);function Vs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=te){const{immediate:n,deep:o,flush:r,once:i}=s,l=ge({},s),c=t&&n||!t&&r!=="post";let h;if(ts){if(r==="sync"){const S=ci();h=S.__watcherHandles||(S.__watcherHandles=[])}else if(!c){const S=()=>{};return S.stop=ze,S.resume=ze,S.pause=ze,S}}const u=ve;l.call=(S,P,M)=>Ge(S,u,P,M);let p=!1;r==="post"?l.scheduler=S=>{Se(S,u&&u.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(S,P)=>{P?S():gn(S)}),l.augmentJob=S=>{t&&(S.flags|=4),p&&(S.flags|=2,u&&(S.id=u.uid,S.i=u))};const m=si(e,t,l);return ts&&(h?h.push(m):c&&m()),m}function ui(e,t,s){const n=this.proxy,o=ae(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=rs(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(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 Ct(e,t){return K(e)?ge({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const bs=new WeakMap;function qt(e,t,s,n,o=!1){if(U(e)){e.forEach((M,W)=>qt(M,t&&(U(t)?t[W]:t),s,n,o));return}if(Jt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&qt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Ds(n.component):n.el,i=o?null:r,{i:l,r:c}=e,h=t&&t.r,u=l.refs===te?l.refs={}:l.refs,p=l.setupState,m=G(p),S=p===te?co:M=>On(u,M)?!1:Y(m,M),P=(M,W)=>!(W&&On(u,W));if(h!=null&&h!==c){if(In(t),ae(h))u[h]=null,S(h)&&(p[h]=null);else if(be(h)){const M=t;P(h,M.k)&&(h.value=null),M.k&&(u[M.k]=null)}}if(K(c))os(c,l,12,[i,u]);else{const M=ae(c),W=be(c);if(M||W){const E=()=>{if(e.f){const N=M?S(c)?p[c]:u[c]:P()||!e.k?c.value:u[e.k];if(o)U(N)&&on(N,r);else if(U(N))N.includes(r)||N.push(r);else if(M)u[c]=[r],S(c)&&(p[c]=u[c]);else{const z=[r];P(c,e.k)&&(c.value=z),e.k&&(u[e.k]=z)}}else M?(u[c]=i,S(c)&&(p[c]=i)):W&&(P(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const N=()=>{E(),bs.delete(e)};N.id=-1,bs.set(e,N),Se(N,s)}else In(e),E()}}}function In(e){const t=bs.get(e);t&&(t.flags|=8,bs.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Jt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Os(t,e,n,!0);vn(()=>{on(n[t],o)},s)}function Os(e,t,s=ve,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=rs(s),c=Ge(t,s,e,i);return l(),lt(),c});return n?o.unshift(r):o.push(r),r}}const ut=e=>(t,s=ve)=>{(!ts||e==="sp")&&Os(e,(...n)=>t(...n),s)},xi=ut("bm"),gt=ut("m"),vi=ut("bu"),bi=ut("u"),yi=ut("bum"),vn=ut("um"),_i=ut("sp"),wi=ut("rtg"),Si=ut("rtc");function Ci(e,t=ve){Os("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return ae(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=Ee||ve;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===we(t)||l===$s(we(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[we(t)]||e[$s(we(t))])}function ct(e,t,s,n){let o;const r=s,i=U(e);if(i||ae(e)){const l=i&&St(e);let c=!1,h=!1;l&&(c=!Ie(e),h=at(e),e=Ps(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(c?h?It(je(e[u])):je(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(X(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];o[c]=t(e[u],u,c,r)}}else o=[];return o}const Zs=e=>e?dr(e)?Ds(e):Zs(e.parent):null,Gt=ge(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=>Zs(e.parent),$root:e=>Zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{gn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Us=(e,t)=>e!==te&&!e.__isScriptSetup&&Y(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Us(n,t))return i[t]=1,n[t];if(o!==te&&Y(o,t))return i[t]=2,o[t];if(Y(r,t))return i[t]=3,r[t];if(s!==te&&Y(s,t))return i[t]=4,s[t];Qs&&(i[t]=0)}}const h=Gt[t];let u,p;if(h)return t==="$attrs"&&xe(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==te&&Y(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Us(o,t)?(o[t]=s,!0):n!==te&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let c;return!!(s[l]||e!==te&&l[0]!=="$"&&Y(e,l)||Us(t,l)||Y(r,l)||Y(n,l)||Y(Gt,l)||Y(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Qs=!0;function Ei(e){const t=zo(e),s=e.proxy,n=e.ctx;Qs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:h,created:u,beforeMount:p,mounted:m,beforeUpdate:S,updated:P,activated:M,deactivated:W,beforeDestroy:E,beforeUnmount:N,destroyed:z,unmounted:j,render:F,renderTracked:O,renderTriggered:V,errorCaptured:ie,serverPrefetch:J,expose:ce,inheritAttrs:Me,components:Ye,directives:$e,filters:Tt}=t;if(h&&Pi(h,n,null),i)for(const oe in i){const Z=i[oe];K(Z)&&(n[oe]=Z.bind(s))}if(o){const oe=o.call(s,s);X(oe)&&(e.data=pn(oe))}if(Qs=!0,r)for(const oe in r){const Z=r[oe],Ze=K(Z)?Z.bind(s,s):K(Z.get)?Z.get.bind(s,s):ze,$t=!K(Z)&&K(Z.set)?Z.set.bind(s):ze,Qe=ht({get:Ze,set:$t});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Oe=>Qe.value=Oe})}if(l)for(const oe in l)Wo(l[oe],n,s,oe);if(c){const oe=K(c)?c.call(s):c;Reflect.ownKeys(oe).forEach(Z=>{li(Z,oe[Z])})}u&&jn(u,e,"c");function he(oe,Z){U(Z)?Z.forEach(Ze=>oe(Ze.bind(s))):Z&&oe(Z.bind(s))}if(he(xi,p),he(gt,m),he(vi,S),he(bi,P),he(hi,M),he(mi,W),he(Ci,ie),he(Si,O),he(wi,V),he(yi,N),he(vn,j),he(_i,J),U(ce))if(ce.length){const oe=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Ze=>s[Z]=Ze,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===ze&&(e.render=F),Me!=null&&(e.inheritAttrs=Me),Ye&&(e.components=Ye),$e&&(e.directives=$e),J&&Vo(e)}function Pi(e,t,s=ze){U(e)&&(e=Xs(e));for(const n in e){const o=e[n];let r;X(o)?"default"in o?r=ds(o.from||n,o.default,!0):r=ds(o.from||n):r=ds(o),be(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){Ge(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(ae(e)){const r=t[e];K(r)&&Vs(o,r)}else if(K(e))Vs(o,e.bind(s));else if(X(e))if(U(e))e.forEach(r=>Wo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Vs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(h=>ys(c,h,i,!0)),ys(c,t,i)),X(t)&&r.set(t,c),c}function ys(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&ys(e,r,s,!0),o&&o.forEach(i=>ys(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Mi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Mi={data:Ln,props:Nn,emits:Nn,methods:Bt,computed:Bt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Bt,directives:Bt,watch:Ii,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Bt(Xs(e),Xs(t))}function Xs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Bt(e,t){return e?ge(Object.create(null),e,t):t}function Nn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ge(Object.create(null),Dn(e),Dn(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=ge(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,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 Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=ge({},n)),o!=null&&!X(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let c=!1;const h=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(u){},use(u,...p){return i.has(u)||(u&&K(u.install)?(i.add(u),u.install(h,...p)):K(u)&&(i.add(u),u(h,...p))),h},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),h},component(u,p){return p?(r.components[u]=p,h):r.components[u]},directive(u,p){return p?(r.directives[u]=p,h):r.directives[u]},mount(u,p,m){if(!c){const S=h._ceVNode||qe(n,o);return S.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(S,u,m),c=!0,h._container=u,u.__vue_app__=h,Ds(S.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Ge(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,p){return r.provides[u]=p,h},runWithContext(u){const p=Ot;Ot=h;try{return u()}finally{Ot=p}}};return h}}let Ot=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${mt(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||te;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>ae(u)?u.trim():u)),i.number&&(o=s.map(ks)));let l,c=n[l=js(t)]||n[l=js(we(t))];!c&&r&&(c=n[l=js(mt(t))]),c&&Ge(c,e,6,o);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(h,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const c=h=>{const u=Jo(h,t,!0);u&&(l=!0,ge(i,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(X(e)&&n.set(e,null),null):(U(r)?r.forEach(c=>i[c]=null):ge(i,r),X(e)&&n.set(e,i),i)}function Is(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,mt(t))||Y(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:h,renderCache:u,props:p,data:m,setupState:S,ctx:P,inheritAttrs:M}=e,W=vs(e);let E,N;try{if(s.shapeFlag&4){const j=o||n,F=j;E=Be(h.call(F,j,u,p,S,m,P)),N=l}else{const j=t;E=Be(j.length>1?j(p,{attrs:l,slots:i,emit:c}):j(p,null)),N=t.props?l:Fi(l)}}catch(j){Yt.length=0,Ms(j,e,1),E=qe(pt)}let z=E;if(N&&M!==!1){const j=Object.keys(N),{shapeFlag:F}=z;j.length&&F&7&&(r&&j.some(Cs)&&(N=Hi(N,r)),z=Rt(z,N,!1,!0))}return s.dirs&&(z=Rt(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&xn(z,s.transition),E=z,vs(W),E}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Hn(n,i,h):!!i;if(c&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const m=u[p];if(Go(i,n,m)&&!Is(h,m))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,h):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Is(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&X(n)&&X(o)?!Lt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=G(o),[c]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let m=u[p];if(Is(e.emitsOptions,m))continue;const S=t[m];if(c)if(Y(r,m))S!==r[m]&&(r[m]=S,h=!0);else{const P=we(m);o[P]=en(c,l,P,S,e,!1)}else S!==r[m]&&(r[m]=S,h=!0)}}}else{Xo(e,t,o,r)&&(h=!0);let u;for(const p in l)(!t||!Y(t,p)&&((u=mt(p))===p||!Y(t,u)))&&(c?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=en(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Y(t,p))&&(delete r[p],h=!0)}h&&nt(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Kt(c))continue;const h=t[c];let u;o&&Y(o,u=we(c))?!r||!r.includes(u)?s[u]=h:(l||(l={}))[u]=h:Is(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,i=!0)}if(r){const c=G(s),h=l||te;for(let u=0;u<r.length;u++){const p=r[u];s[p]=en(o,c,p,h[p],e,!Y(h,p))}}return i}function en(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=Y(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&K(c)){const{propsDefaults:h}=o;if(s in h)n=h[s];else{const u=rs(o);n=h[s]=c.call(null,t),u()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===mt(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!K(e)){const u=p=>{c=!0;const[m,S]=er(p,t,!0);ge(i,m),S&&l.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return X(e)&&n.set(e,Et),Et;if(U(r))for(let u=0;u<r.length;u++){const p=we(r[u]);Vn(p)&&(i[p]=te)}else if(r)for(const u in r){const p=we(u);if(Vn(p)){const m=r[u],S=i[p]=U(m)||K(m)?{type:m}:ge({},m),P=S.type;let M=!1,W=!0;if(U(P))for(let E=0;E<P.length;++E){const N=P[E],z=K(N)&&N.name;if(z==="Boolean"){M=!0;break}else z==="String"&&(W=!1)}else M=K(P)&&P.name==="Boolean";S[0]=M,S[1]=W,(M||Y(S,"default"))&&l.push(p)}}const h=[i,l];return X(e)&&n.set(e,h),h}function Vn(e){return e[0]!=="$"&&!Kt(e)}const bn=e=>e==="_"||e==="_ctx"||e==="$stable",yn=e=>U(e)?e.map(Be):[Be(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>yn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(bn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=yn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=yn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!bn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=te;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!bn(l)&&i[l]==null&&delete o[l]},Se=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=As();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:h,setElementText:u,parentNode:p,nextSibling:m,setScopeId:S=ze,insertStaticContent:P}=e,M=(f,d,g,y=null,x=null,v=null,T=void 0,C=null,w=!!d.dynamicChildren)=>{if(f===d)return;f&&!Vt(f,d)&&(y=Q(f),Oe(f,x,v,!0),f=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:H,shapeFlag:k}=d;switch(b){case Rs:W(f,d,g,y);break;case pt:E(f,d,g,y);break;case ps:f==null&&N(d,g,y,T);break;case de:Ye(f,d,g,y,x,v,T,C,w);break;default:k&1?F(f,d,g,y,x,v,T,C,w):k&6?$e(f,d,g,y,x,v,T,C,w):(k&64||k&128)&&b.process(f,d,g,y,x,v,T,C,w,Nt)}H!=null&&x?qt(H,f&&f.ref,v,d||f,!d):H==null&&f&&f.ref!=null&&qt(f.ref,null,v,f,!0)},W=(f,d,g,y)=>{if(f==null)n(d.el=l(d.children),g,y);else{const x=d.el=f.el;d.children!==f.children&&h(x,d.children)}},E=(f,d,g,y)=>{f==null?n(d.el=c(d.children||""),g,y):d.el=f.el},N=(f,d,g,y)=>{[f.el,f.anchor]=P(f.children,d,g,y,f.el,f.anchor)},z=({el:f,anchor:d},g,y)=>{let x;for(;f&&f!==d;)x=m(f),n(f,g,y),f=x;n(d,g,y)},j=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=m(f),o(f),f=g;o(d)},F=(f,d,g,y,x,v,T,C,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),f==null)O(d,g,y,x,v,T,C,w);else{const b=f.el&&f.el._isVueCE?f.el:null;try{b&&b._beginPatch(),J(f,d,x,v,T,C,w)}finally{b&&b._endPatch()}}},O=(f,d,g,y,x,v,T,C)=>{let w,b;const{props:H,shapeFlag:k,transition:L,dirs:B}=f;if(w=f.el=i(f.type,v,H&&H.is,H),k&8?u(w,f.children):k&16&&ie(f.children,w,null,y,x,Bs(f,v),T,C),B&&vt(f,null,y,"created"),V(w,f,f.scopeId,T,y),H){for(const ee in H)ee!=="value"&&!Kt(ee)&&r(w,ee,null,H[ee],v,y);"value"in H&&r(w,"value",null,H.value,v),(b=H.onVnodeBeforeMount)&&He(b,y,f)}B&&vt(f,null,y,"beforeMount");const q=Zi(x,L);q&&L.beforeEnter(w),n(w,d,g),((b=H&&H.onVnodeMounted)||q||B)&&Se(()=>{try{b&&He(b,y,f),q&&L.enter(w),B&&vt(f,null,y,"mounted")}finally{}},x)},V=(f,d,g,y,x)=>{if(g&&S(f,g),y)for(let v=0;v<y.length;v++)S(f,y[v]);if(x){let v=x.subTree;if(d===v||lr(v.type)&&(v.ssContent===d||v.ssFallback===d)){const T=x.vnode;V(f,T,T.scopeId,T.slotScopeIds,x.parent)}}},ie=(f,d,g,y,x,v,T,C,w=0)=>{for(let b=w;b<f.length;b++){const H=f[b]=C?st(f[b]):Be(f[b]);M(null,H,d,g,y,x,v,T,C)}},J=(f,d,g,y,x,v,T)=>{const C=d.el=f.el;let{patchFlag:w,dynamicChildren:b,dirs:H}=d;w|=f.patchFlag&16;const k=f.props||te,L=d.props||te;let B;if(g&&bt(g,!1),(B=L.onVnodeBeforeUpdate)&&He(B,g,d,f),H&&vt(d,f,g,"beforeUpdate"),g&&bt(g,!0),(k.innerHTML&&L.innerHTML==null||k.textContent&&L.textContent==null)&&u(C,""),b?ce(f.dynamicChildren,b,C,g,y,Bs(d,x),v):T||Z(f,d,C,null,g,y,Bs(d,x),v,!1),w>0){if(w&16)Me(C,k,L,g,x);else if(w&2&&k.class!==L.class&&r(C,"class",null,L.class,x),w&4&&r(C,"style",k.style,L.style,x),w&8){const q=d.dynamicProps;for(let ee=0;ee<q.length;ee++){const se=q[ee],ue=k[se],me=L[se];(me!==ue||se==="value")&&r(C,se,ue,me,x,g)}}w&1&&f.children!==d.children&&u(C,d.children)}else!T&&b==null&&Me(C,k,L,g,x);((B=L.onVnodeUpdated)||H)&&Se(()=>{B&&He(B,g,d,f),H&&vt(d,f,g,"updated")},y)},ce=(f,d,g,y,x,v,T)=>{for(let C=0;C<d.length;C++){const w=f[C],b=d[C],H=w.el&&(w.type===de||!Vt(w,b)||w.shapeFlag&198)?p(w.el):g;M(w,b,H,null,y,x,v,T,!0)}},Me=(f,d,g,y,x)=>{if(d!==g){if(d!==te)for(const v in d)!Kt(v)&&!(v in g)&&r(f,v,d[v],null,x,y);for(const v in g){if(Kt(v))continue;const T=g[v],C=d[v];T!==C&&v!=="value"&&r(f,v,C,T,x,y)}"value"in g&&r(f,"value",d.value,g.value,x)}},Ye=(f,d,g,y,x,v,T,C,w)=>{const b=d.el=f?f.el:l(""),H=d.anchor=f?f.anchor:l("");let{patchFlag:k,dynamicChildren:L,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),f==null?(n(b,g,y),n(H,g,y),ie(d.children||[],g,H,x,v,T,C,w)):k>0&&k&64&&L&&f.dynamicChildren&&f.dynamicChildren.length===L.length?(ce(f.dynamicChildren,L,g,x,v,T,C),(d.key!=null||x&&d===x.subTree)&&or(f,d,!0)):Z(f,d,g,H,x,v,T,C,w)},$e=(f,d,g,y,x,v,T,C,w)=>{d.slotScopeIds=C,f==null?d.shapeFlag&512?x.ctx.activate(d,g,y,T,w):Tt(d,g,y,x,v,T,w):is(f,d,w)},Tt=(f,d,g,y,x,v,T)=>{const C=f.component=il(f,y,x);if(Uo(f)&&(C.ctx.renderer=Nt),al(C,!1,T),C.asyncDep){if(x&&x.registerDep(C,he,T),!f.el){const w=C.subTree=qe(pt);E(null,w,d,g),f.placeholder=w.el}}else he(C,f,d,g,x,v,T)},is=(f,d,g)=>{const y=d.component=f.component;if(Vi(f,d,g))if(y.asyncDep&&!y.asyncResolved){oe(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},he=(f,d,g,y,x,v,T)=>{const C=()=>{if(f.isMounted){let{next:k,bu:L,u:B,parent:q,vnode:ee}=f;{const Ne=rr(f);if(Ne){k&&(k.el=ee.el,oe(f,k,T)),Ne.asyncDep.then(()=>{Se(()=>{f.isUnmounted||b()},x)});return}}let se=k,ue;bt(f,!1),k?(k.el=ee.el,oe(f,k,T)):k=ee,L&&fs(L),(ue=k.props&&k.props.onVnodeBeforeUpdate)&&He(ue,q,k,ee),bt(f,!0);const me=Fn(f),Le=f.subTree;f.subTree=me,M(Le,me,p(Le.el),Q(Le),f,x,v),k.el=me.el,se===null&&Ui(f,me.el),B&&Se(B,x),(ue=k.props&&k.props.onVnodeUpdated)&&Se(()=>He(ue,q,k,ee),x)}else{let k;const{el:L,props:B}=d,{bm:q,m:ee,parent:se,root:ue,type:me}=f,Le=Jt(d);bt(f,!1),q&&fs(q),!Le&&(k=B&&B.onVnodeBeforeMount)&&He(k,se,d),bt(f,!0);{ue.ce&&ue.ce._hasShadowRoot()&&ue.ce._injectChildStyle(me,f.parent?f.parent.type:void 0);const Ne=f.subTree=Fn(f);M(null,Ne,g,y,f,x,v),d.el=Ne.el}if(ee&&Se(ee,x),!Le&&(k=B&&B.onVnodeMounted)){const Ne=d;Se(()=>He(k,se,Ne),x)}(d.shapeFlag&256||se&&Jt(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Se(f.a,x),f.isMounted=!0,d=g=y=null}};f.scope.on();const w=f.effect=new vo(C);f.scope.off();const b=f.update=w.run.bind(w),H=f.job=w.runIfDirty.bind(w);H.i=f,H.id=f.uid,w.scheduler=()=>gn(H),bt(f,!0),b()},oe=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,Ki(f,d.props,y,g),Ji(f,d.children,g),it(),Mn(f),lt()},Z=(f,d,g,y,x,v,T,C,w=!1)=>{const b=f&&f.children,H=f?f.shapeFlag:0,k=d.children,{patchFlag:L,shapeFlag:B}=d;if(L>0){if(L&128){$t(b,k,g,y,x,v,T,C,w);return}else if(L&256){Ze(b,k,g,y,x,v,T,C,w);return}}B&8?(H&16&&ke(b,x,v),k!==b&&u(g,k)):H&16?B&16?$t(b,k,g,y,x,v,T,C,w):ke(b,x,v,!0):(H&8&&u(g,""),B&16&&ie(k,g,y,x,v,T,C,w))},Ze=(f,d,g,y,x,v,T,C,w)=>{f=f||Et,d=d||Et;const b=f.length,H=d.length,k=Math.min(b,H);let L;for(L=0;L<k;L++){const B=d[L]=w?st(d[L]):Be(d[L]);M(f[L],B,g,null,x,v,T,C,w)}b>H?ke(f,x,v,!0,!1,k):ie(d,g,y,x,v,T,C,w,k)},$t=(f,d,g,y,x,v,T,C,w)=>{let b=0;const H=d.length;let k=f.length-1,L=H-1;for(;b<=k&&b<=L;){const B=f[b],q=d[b]=w?st(d[b]):Be(d[b]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;b++}for(;b<=k&&b<=L;){const B=f[k],q=d[L]=w?st(d[L]):Be(d[L]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;k--,L--}if(b>k){if(b<=L){const B=L+1,q=B<H?d[B].el:y;for(;b<=L;)M(null,d[b]=w?st(d[b]):Be(d[b]),g,q,x,v,T,C,w),b++}}else if(b>L)for(;b<=k;)Oe(f[b],x,v,!0),b++;else{const B=b,q=b,ee=new Map;for(b=q;b<=L;b++){const Ae=d[b]=w?st(d[b]):Be(d[b]);Ae.key!=null&&ee.set(Ae.key,b)}let se,ue=0;const me=L-q+1;let Le=!1,Ne=0;const Ft=new Array(me);for(b=0;b<me;b++)Ft[b]=0;for(b=B;b<=k;b++){const Ae=f[b];if(ue>=me){Oe(Ae,x,v,!0);continue}let Fe;if(Ae.key!=null)Fe=ee.get(Ae.key);else for(se=q;se<=L;se++)if(Ft[se-q]===0&&Vt(Ae,d[se])){Fe=se;break}Fe===void 0?Oe(Ae,x,v,!0):(Ft[Fe-q]=b+1,Fe>=Ne?Ne=Fe:Le=!0,M(Ae,d[Fe],g,null,x,v,T,C,w),ue++)}const Cn=Le?Qi(Ft):Et;for(se=Cn.length-1,b=me-1;b>=0;b--){const Ae=q+b,Fe=d[Ae],Tn=d[Ae+1],$n=Ae+1<H?Tn.el||ir(Tn):y;Ft[b]===0?M(null,Fe,g,$n,x,v,T,C,w):Le&&(se<0||b!==Cn[se]?Qe(Fe,g,$n,2):se--)}}},Qe=(f,d,g,y,x=null)=>{const{el:v,type:T,transition:C,children:w,shapeFlag:b}=f;if(b&6){Qe(f.component.subTree,d,g,y);return}if(b&128){f.suspense.move(d,g,y);return}if(b&64){T.move(f,d,g,Nt);return}if(T===de){n(v,d,g);for(let k=0;k<w.length;k++)Qe(w[k],d,g,y);n(f.anchor,d,g);return}if(T===ps){z(f,d,g);return}if(y!==2&&b&1&&C)if(y===0)C.beforeEnter(v),n(v,d,g),Se(()=>C.enter(v),x);else{const{leave:k,delayLeave:L,afterLeave:B}=C,q=()=>{f.ctx.isUnmounted?o(v):n(v,d,g)},ee=()=>{v._isLeaving&&v[pi](!0),k(v,()=>{q(),B&&B()})};L?L(v,q,ee):ee()}else n(v,d,g)},Oe=(f,d,g,y=!1,x=!1)=>{const{type:v,props:T,ref:C,children:w,dynamicChildren:b,shapeFlag:H,patchFlag:k,dirs:L,cacheIndex:B,memo:q}=f;if(k===-2&&(x=!1),C!=null&&(it(),qt(C,null,g,f,!0),lt()),B!=null&&(d.renderCache[B]=void 0),H&256){d.ctx.deactivate(f);return}const ee=H&1&&L,se=!Jt(f);let ue;if(se&&(ue=T&&T.onVnodeBeforeUnmount)&&He(ue,d,f),H&6)Xe(f.component,g,y);else{if(H&128){f.suspense.unmount(g,y);return}ee&&vt(f,null,d,"beforeUnmount"),H&64?f.type.remove(f,d,g,Nt,y):b&&!b.hasOnce&&(v!==de||k>0&&k&64)?ke(b,d,g,!1,!0):(v===de&&k&384||!x&&H&16)&&ke(w,d,g),y&&I(f)}const me=q!=null&&B==null;(se&&(ue=T&&T.onVnodeUnmounted)||ee||me)&&Se(()=>{ue&&He(ue,d,f),ee&&vt(f,null,d,"unmounted"),me&&(f.el=null)},g)},I=f=>{const{type:d,el:g,anchor:y,transition:x}=f;if(d===de){_(g,y);return}if(d===ps){j(f);return}const v=()=>{o(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:C}=x,w=()=>T(g,v);C?C(f.el,v,w):w()}else v()},_=(f,d)=>{let g;for(;f!==d;)g=m(f),o(f),f=g;o(d)},Xe=(f,d,g)=>{const{bum:y,scope:x,job:v,subTree:T,um:C,m:w,a:b}=f;Un(w),Un(b),y&&fs(y),x.stop(),v&&(v.flags|=8,Oe(T,f,d,g)),C&&Se(C,d),Se(()=>{f.isUnmounted=!0},d)},ke=(f,d,g,y=!1,x=!1,v=0)=>{for(let T=v;T<f.length;T++)Oe(f[T],d,g,y,x)},Q=f=>{if(f.shapeFlag&6)return Q(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=m(f.anchor||f.el),g=d&&d[fi];return g?m(g):d};let xt=!1;const Sn=(f,d,g)=>{let y;f==null?d._vnode&&(Oe(d._vnode,null,null,!0),y=d._vnode.component):M(d._vnode||null,f,d,null,null,null,g),d._vnode=f,xt||(xt=!0,Mn(y),jo(),xt=!1)},Nt={p:M,um:Oe,m:Qe,r:I,mt:Tt,mc:ie,pc:Z,pbc:ce,n:Q,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Bs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function bt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(U(n)&&U(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=st(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Rs&&(l.patchFlag===-1&&(l=o[r]=st(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(o=s[s.length-1],e[o]<h){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<h?r=l+1:i=l;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const de=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),ps=Symbol.for("v-stc"),Yt=[];let Pe=null;function $(e=!1){Yt.push(Pe=e?null:[])}function el(){Yt.pop(),Pe=Yt[Yt.length-1]||null}let es=1;function Bn(e,t=!1){es+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function ar(e){return e.dynamicChildren=es>0?Pe||Et:null,el(),es>0&&Pe&&Pe.push(e),e}function A(e,t,s,n,o,r){return ar(a(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(qe(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Vt(e,t){return e.type===t.type&&e.key===t.key}const fr=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||be(e)||K(e)?{i:Ee,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,o=null,r=e===de?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&hs(t),scopeId:No,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ee};return l?(_n(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ae(s)?8:16),es>0&&!i&&Pe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Pe.push(c),c}const qe=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=pt),ur(e)){const l=Rt(e,t,!0);return s&&_n(l,s),es>0&&!r&&Pe&&(l.shapeFlag&6?Pe[Pe.indexOf(e)]=l:Pe.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=le(l)),X(c)&&(mn(c)&&!U(c)&&(c=ge({},c)),t.style=Es(c))}const i=ae(e)?1:lr(e)?128:di(e)?64:X(e)?4:K(e)?2:0;return a(e,t,s,n,o,i,r,!0)}function sl(e){return e?mn(e)||Qo(e)?ge({},e):e:null}function Rt(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,h=t?nl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&fr(h),ref:t&&t.ref?s&&r?U(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&xn(u,c.clone(u)),u}function _t(e=" ",t=0){return qe(Rs,null,e,t)}function Re(e,t){const s=qe(ps,null,e);return s.staticCount=t,s}function re(e="",t=!1){return t?($(),cr(pt,null,e)):qe(pt,null,e)}function Be(e){return e==null||typeof e=="boolean"?qe(pt):U(e)?qe(de,null,e.slice()):ur(e)?st(e):qe(Rs,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=Ee:o===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ee},s=32):(t=String(t),n&64?(s=16,t=[_t(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=le([t.class,n.class]));else if(o==="style")t.style=Es([t.style,n.style]);else if(Ss(o)){const r=t[o],i=n[o];i&&r!==i&&!(U(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Cs(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function He(e,t,s,n=null){Ge(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const ll=()=>ve||Ee;let _s,tn;{const e=As(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),tn=t("__VUE_SSR_SETTERS__",s=>ts=s)}const rs=e=>{const t=ve;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Kn=()=>{ve&&ve.scope.off(),_s(null)};function dr(e){return e.vnode.shapeFlag&4}let ts=!1;function al(e,t=!1,s=!1){t&&tn(t);const{props:n,children:o}=e.vnode,r=dr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&tn(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:n}=s;if(n){it();const o=e.setupContext=n.length>1?fl(e):null,r=rs(e),i=os(n,e,0,[e.props,o]),l=uo(i);if(lt(),r(),(l||e.sp)&&!Jt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(c=>{Wn(e,c)}).catch(c=>{Ms(c,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||ze);{const o=rs(e);it();try{Ei(e)}finally{lt(),o()}}}const ul={get(e,t){return xe(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Gt)return Gt[s](e)},has(t,s){return s in t||s in Gt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const ht=(e,t)=>ei(e,t,ts),hl="3.5.31";/**
61
61
  * @vue/runtime-dom v3.5.31
62
62
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
63
63
  * @license MIT
64
- **/let sn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{sn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=sn?e=>sn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,qn=tt&&tt.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?tt.createElementNS(ml,e):t==="mathml"?tt.createElementNS(gl,e):s?tt.createElement(e,{is:s}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function bl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Jn=Symbol("_vod"),yl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=ae(s);let r=!1;if(s&&!o){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&ms(n,l,"")}else for(const i in t)s[i]==null&&ms(n,i,"");for(const i in s)i==="display"&&(r=!0),ms(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[yl]&&(n.display="none"))}const Gn=/\s*!important$/;function ms(e,t,s){if(U(s))s.forEach(n=>ms(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(mt(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Ks={};function Cl(e,t){const s=Ks[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Ks[t]=n;n=$s(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Ks[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Je(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function dt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const h=r[t]=Pl(n,o);dt(e,l,h,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mt(e.slice(2)),t]}let Ws=0;const Al=Promise.resolve(),El=()=>Ws||(Al.then(()=>Ws=0),Ws=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ge(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=El(),s}function Ml(e,t){if(U(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?bl(e,n,i):t==="style"?Sl(e,s,n):Ss(t)?Cs(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(n)))?Xn(e,we(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&K(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return so(t)&&ae(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(o=>we(o)===n):Object.keys(s).some(o=>we(o)===n)}const Dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?s=>fs(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=ks(e)),e}const Te={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[rt]=Dt(o);const r=n||o.props&&o.props.type==="number";dt(e,t?"change":"input",i=>{i.target.composing||e[rt](oo(e.value,s,r))}),(s||r)&&dt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(dt(e,"compositionstart",Dl),dt(e,"compositionend",no),dt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[rt]=Dt(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ks(e.value):e.value,c=t??"";if(l===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ro={deep:!0,created(e,t,s){e[rt]=Dt(s),dt(e,"change",()=>{const n=e._modelValue,o=ss(e),r=e.checked,i=e[rt];if(U(n)){const l=ln(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const h=[...n];h.splice(l,1),i(h)}}else if(jt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[rt]=Dt(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(U(t))o=ln(t,n.props.value)>-1;else if(jt(t))o=t.has(n.props.value);else{if(t===s)return;o=Lt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const ws={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=jt(t);dt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ks(ss(i)):ss(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[rt]=Dt(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[rt]=Dt(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=U(t);if(!(s&&!n&&!jt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ss(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(h=>String(h)===String(l)):i.selected=ln(t,l)>-1}else i.selected=t.has(l);else if(Lt(ss(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ss(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=mt(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=ge({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return ae(e)?document.querySelector(e):e}let wn="";function Ut(e){wn=e}function Ke(){return wn}async function pe(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=Ct({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=D([]),n=D(!0);async function o(){n.value=!0;try{const h=await pe("/api/status");s.value=(h.sessions||[]).slice().sort((u,p)=>u.status==="active"&&p.status!=="active"?-1:u.status!=="active"&&p.status==="active"?1:p.lastActivity-u.lastActivity)}finally{n.value=!1}}const r=ht(()=>{var u;return(((u=t.status)==null?void 0:u.sessions)??s.value).slice().sort((p,m)=>p.status==="active"&&m.status!=="active"?-1:p.status!=="active"&&m.status==="active"?1:m.lastActivity-p.lastActivity)});function i(h){const u=Math.floor((Date.now()-h.lastActivity)/6e4);return h.status==="disconnected"?{label:`Disconnected${u>0?` — ${u}m ago`:""}`,color:"text-muted"}:u<5?{label:"Active",color:"text-success"}:u<30?{label:`Idle ${u}m`,color:"text-warn"}:{label:`Dormant ${u}m`,color:"text-danger"}}function l(h){if(!h.lastWaitCallAt)return"";const u=Math.floor((Date.now()-h.lastWaitCallAt)/6e4);return u<5?`Polling — ${u===0?"just now":u+"m ago"}`:`Last poll — ${u}m ago`}function c(h){return h.lastWaitCallAt?Math.floor((Date.now()-h.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return gt(o),(h,u)=>($(),A("div",Bl,[n.value&&r.value.length===0?($(),A("div",Kl,"Loading sessions...")):r.value.length===0?($(),A("div",Wl,"No sessions")):($(),A("div",zl,[($(!0),A(de,null,ct(r.value,p=>($(),A("div",{key:p.mcpSessionId,class:le(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[a("div",ql,[a("div",Jl,[a("span",{class:le(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),a("div",null,[a("div",Gl,[p.topicName?($(),A(de,{key:0},[a("span",Yl,R(p.topicName),1),a("span",Zl," (thread "+R(p.threadId)+")",1)],64)):p.threadId!=null?($(),A(de,{key:1},[_t("Thread "+R(p.threadId),1)],64)):($(),A("span",Ql,"Awaiting start_session…"))]),a("div",Xl,R(p.mcpSessionId.slice(0,12))+"...",1)])]),a("div",ea,[a("div",ta,[a("span",{class:le(["text-sm font-medium",i(p).color])},R(i(p).label),3),l(p)?($(),A("span",{key:0,class:le(["text-xs ml-2",c(p)])},R(l(p)),3)):re("",!0)]),a("div",sa,R(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ba={class:"text-xs text-muted"},ya={class:"text-xs text-muted"},_a=Ct({__name:"MemoryNotesTab",setup(e){const t=D([]),s=D(!1),n=D(""),o=D("created_at"),r=D("");let i=null;async function l(){s.value=!0;try{const u=r.value.trim();let p;if(u)p=await pe(`/api/search?q=${encodeURIComponent(u)}&limit=50`);else{const m=new URLSearchParams({limit:"50",sort:o.value});n.value&&m.set("type",n.value),p=await pe(`/api/notes?${m}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function h(u){if(!u)return"never";const p=Date.now()-new Date(u).getTime(),m=Math.floor(p/6e4);if(m<1)return"just now";if(m<60)return`${m}m ago`;const S=Math.floor(m/60);return S<24?`${S}h ago`:`${Math.floor(S/24)}d ago`}return gt(l),(u,p)=>($(),A("div",oa,[a("div",ra,[fe(a("input",{"onUpdate:modelValue":p[0]||(p[0]=m=>r.value=m),onInput:c,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Te,r.value]]),fe(a("select",{"onUpdate:modelValue":p[1]||(p[1]=m=>n.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Ve('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[ws,n.value]]),fe(a("select",{"onUpdate:modelValue":p[2]||(p[2]=m=>o.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[a("option",{value:"created_at"},"Newest",-1),a("option",{value:"confidence"},"Confidence",-1),a("option",{value:"access_count"},"Most accessed",-1)])],544),[[ws,o.value]])]),s.value?($(),A("div",ia,"Loading notes...")):t.value.length===0?($(),A("div",la,"No notes found")):($(),A("div",aa,[($(!0),A(de,null,ct(t.value,m=>($(),A("div",{key:m.noteId,class:le(["glass rounded-xl p-4 animate-fade-in",`priority-${m.priority||0}`])},[a("div",ca,[a("div",ua,[a("div",fa,[a("span",{class:le(["type-badge",`type-${m.type}`])},R(m.type),3),m.priority>=2?($(),A("span",da,"HIGH IMPORTANCE")):m.priority===1?($(),A("span",pa,"NOTABLE")):re("",!0),a("span",ha,R(m.noteId),1)]),a("p",ma,R(m.content),1),a("div",ga,[($(!0),A(de,null,ct(m.keywords||[],S=>($(),A("span",{key:S,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(S),1))),128))])]),a("div",xa,[a("div",va,R(((Number(m.confidence)||0)*100).toFixed(0))+"%",1),a("div",ba,R(h(m.createdAt)),1),a("div",ya,R(m.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Aa={class:"flex flex-wrap items-center gap-3 mb-4"},Ea={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ma={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ia={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=Ct({__name:"TemplatesTab",setup(e){function t(I){return I.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=D("copilot"),n=D(""),o=D(""),r=D(""),i=D(50),l=D(""),c=D(""),h=D(!0),u=D(""),p=D(!1),m=D({}),S=D("copilot"),P=D(""),M=D(""),W=D(!0),E=D(""),N=D(!1),z=D([]),j=D("");async function F(){await Promise.all([O(),V(),ie(),J(),ce()])}async function O(){try{const I=await pe("/api/settings/agent-type");s.value=I.agentType||"copilot"}catch{}}async function V(){try{const I=await pe("/api/settings/claude-mcp-config");o.value=I.path||""}catch{}}async function ie(){try{const I=await pe("/api/settings/bootstrap-message-count");i.value=I.count??50}catch{}}async function J(){try{const I=await pe("/api/templates");if(I.templates&&I.templates.length>0){const _=I.templates[0];c.value=_.content||"",h.value=_.isDefault??!0}I.agentReminders&&(m.value=I.agentReminders)}catch{}}async function ce(){try{const[I,_,Xe]=await Promise.all([pe("/api/templates/drive"),pe("/api/templates/drive-presets"),pe("/api/settings/dmn-activation-hours")]);z.value=_.presets||[],j.value=String(Xe.value??"not set"),I.custom?(M.value=I.custom,W.value=!1):(M.value=I.default||"",W.value=!0)}catch{}}async function Me(){try{await pe("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await pe("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await J()}catch(I){n.value="Error: "+I.message}}async function Ye(){try{await pe("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(I){l.value="Error: "+I.message}}async function $e(){const I=o.value.trim();if(!I){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await pe("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:I})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(_){r.value="Error: "+_.message}}async function Tt(){try{const I=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!I.ok)throw new Error(I.statusText);h.value=!1,u.value="Saved ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function is(){if(confirm("Reset to default template? Your customizations will be lost."))try{const I=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await J(),u.value="Reset to default ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function he(){var Xe;const I=S.value,_=((Xe=m.value[I])==null?void 0:Xe.content)??"";try{const ke=await fetch(`/api/templates/reminders-${I}`,{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:_})});if(!ke.ok)throw new Error(ke.statusText);m.value[I]={content:_,isDefault:!1},P.value=`Saved ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(ke){P.value="Error: "+ke.message}}async function oe(){const I=S.value;if(confirm(`Reset ${I} agent reminder? The custom template will be removed.`))try{const _=await fetch(`/api/templates/reminders-${I}`,{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!_.ok)throw new Error(_.statusText);await J(),P.value=`Reset ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(_){P.value="Error: "+_.message}}async function Z(){const I=M.value;if(!I.trim()){E.value="Template is empty — load a preset first",setTimeout(()=>{E.value=""},3e3);return}try{const _=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:I})});if(!_.ok)throw new Error(_.statusText);W.value=!1,E.value="Saved ✓",setTimeout(()=>{E.value=""},3e3)}catch(_){E.value="Error: "+_.message}}async function Ze(){if(confirm("Reset drive template? The custom template will be removed."))try{const I=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await ce(),E.value="Reset to default ✓",setTimeout(()=>{E.value=""},3e3)}catch(I){E.value="Error: "+I.message}}function $t(I){M.value=I.content,W.value=!1}const Qe=ht(()=>t(c.value)),Oe=ht(()=>M.value?t(M.value):'<span style="color:#6b7280">(no template loaded)</span>');return gt(F),(I,_)=>{var Xe,ke;return $(),A("div",wa,[a("div",Sa,[a("div",Ca,[_[9]||(_[9]=a("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),fe(a("select",{"onUpdate:modelValue":_[0]||(_[0]=Q=>s.value=Q),onChange:Me,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[..._[8]||(_[8]=[a("option",{value:"copilot"},"Copilot",-1),a("option",{value:"claude"},"Claude",-1),a("option",{value:"cursor"},"Cursor",-1)])],544),[[ws,s.value]]),n.value?($(),A("span",Ta,R(n.value),1)):re("",!0),_[10]||(_[10]=a("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),a("div",$a,[_[11]||(_[11]=a("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),fe(a("input",{"onUpdate:modelValue":_[1]||(_[1]=Q=>o.value=Q),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value]]),a("button",{onClick:$e,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?($(),A("span",ka,R(r.value),1)):re("",!0)]),a("div",Aa,[_[12]||(_[12]=a("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),fe(a("input",{"onUpdate:modelValue":_[2]||(_[2]=Q=>i.value=Q),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Te,i.value,void 0,{number:!0}]]),a("button",{onClick:Ye,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?($(),A("span",Ea,R(l.value),1)):re("",!0),_[13]||(_[13]=a("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),a("div",Pa,[a("div",Ma,[_[14]||(_[14]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Reminders Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),a("div",Oa,[u.value?($(),A("span",Ia,R(u.value),1)):re("",!0),a("button",{onClick:is,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Tt,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),h.value?($(),A("div",Ra,[..._[15]||(_[15]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):re("",!0),fe(a("textarea",{"onUpdate:modelValue":_[3]||(_[3]=Q=>c.value=Q),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Te,c.value]]),a("div",Da,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[4]||(_[4]=Q=>p.value=!p.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[16]||(_[16]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[17]||(_[17]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Qe.value},null,8,ja)):re("",!0)]),_[18]||(_[18]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— &quot;autonomous&quot; or &quot;standard&quot;</span></div></div></details>',1))]),a("div",La,[a("div",Na,[_[19]||(_[19]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),a("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),a("div",Fa,[P.value?($(),A("span",Ha,R(P.value),1)):re("",!0),a("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),a("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Va,[($(),A(de,null,ct(["copilot","claude","cursor","codex"],Q=>a("button",{key:Q,onClick:xt=>S.value=Q,class:le(["px-4 py-2 rounded-xl text-sm font-medium transition",S.value===Q?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},R(Q.charAt(0).toUpperCase()+Q.slice(1)),11,Ua)),64))]),((Xe=m.value[S.value])==null?void 0:Xe.isDefault)!==!1?($(),A("div",Ba,[..._[20]||(_[20]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):re("",!0),a("textarea",{value:((ke=m.value[S.value])==null?void 0:ke.content)??"",onInput:_[5]||(_[5]=Q=>{const xt=Q.target;m.value[S.value]={content:xt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${S.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),a("div",Wa,[a("div",za,[_[21]||(_[21]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),a("div",qa,[E.value?($(),A("span",Ja,R(E.value),1)):re("",!0),a("button",{onClick:Ze,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Ga,[_[23]||(_[23]=a("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),a("div",Ya,[a("span",Za,R(j.value),1),_[22]||(_[22]=a("span",{class:"text-sm text-textSecondary"},"hours",-1))]),_[24]||(_[24]=a("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),W.value?($(),A("div",Qa,[..._[25]||(_[25]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):re("",!0),a("div",Xa,[_[26]||(_[26]=a("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),($(!0),A(de,null,ct(z.value,Q=>($(),A("button",{key:Q.key,onClick:xt=>$t(Q),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},R(Q.label),9,ec))),128))]),fe(a("textarea",{"onUpdate:modelValue":_[6]||(_[6]=Q=>M.value=Q),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Te,M.value]]),a("div",tc,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[7]||(_[7]=Q=>N.value=!N.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",N.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[27]||(_[27]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[28]||(_[28]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),N.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Oe.value},null,8,sc)):re("",!0)]),_[29]||(_[29]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},fc={class:"flex items-center gap-2"},dc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},bc={class:"flex items-center gap-2 mb-1"},yc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ac={class:"flex items-center gap-2"},Ec={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Mc=["value"],Oc={class:"flex items-end"},Ic={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=Ct({__name:"SkillsTab",setup(e){const t=D([]),s=D(!0),n=D(null),o=D(""),r=D(""),i=D(!1),l=D(""),c=D(!1),h=D(""),u=D(""),p=D(!1),m=D("");async function S(){s.value=!0;try{const F=await pe("/api/skills");t.value=F.skills||[]}finally{s.value=!1}}function P(F){return F?F.includes(".remote-copilot-mcp")&&F.includes("skills")?"user":F.endsWith(".default.md")?"default":F.endsWith(".skill.md")?"project":"unknown":"unknown"}function M(F){const O={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return O[F]||O.unknown}function W(F){n.value=F,o.value=F.content,r.value=(F.triggers||[]).join(", "),i.value=!!F.replacesOrchestrator,c.value=!1}function E(){n.value=null}function N(F,O,V,ie){let J=`---
64
+ **/let sn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{sn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=sn?e=>sn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,qn=tt&&tt.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?tt.createElementNS(ml,e):t==="mathml"?tt.createElementNS(gl,e):s?tt.createElement(e,{is:s}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function bl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Jn=Symbol("_vod"),yl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=ae(s);let r=!1;if(s&&!o){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&ms(n,l,"")}else for(const i in t)s[i]==null&&ms(n,i,"");for(const i in s)i==="display"&&(r=!0),ms(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[yl]&&(n.display="none"))}const Gn=/\s*!important$/;function ms(e,t,s){if(U(s))s.forEach(n=>ms(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(mt(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Ks={};function Cl(e,t){const s=Ks[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Ks[t]=n;n=$s(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Ks[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Je(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function dt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const h=r[t]=Pl(n,o);dt(e,l,h,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mt(e.slice(2)),t]}let Ws=0;const Al=Promise.resolve(),El=()=>Ws||(Al.then(()=>Ws=0),Ws=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ge(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=El(),s}function Ml(e,t){if(U(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?bl(e,n,i):t==="style"?Sl(e,s,n):Ss(t)?Cs(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(n)))?Xn(e,we(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&K(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return so(t)&&ae(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(o=>we(o)===n):Object.keys(s).some(o=>we(o)===n)}const Dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?s=>fs(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=ks(e)),e}const Te={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[rt]=Dt(o);const r=n||o.props&&o.props.type==="number";dt(e,t?"change":"input",i=>{i.target.composing||e[rt](oo(e.value,s,r))}),(s||r)&&dt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(dt(e,"compositionstart",Dl),dt(e,"compositionend",no),dt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[rt]=Dt(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ks(e.value):e.value,c=t??"";if(l===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ro={deep:!0,created(e,t,s){e[rt]=Dt(s),dt(e,"change",()=>{const n=e._modelValue,o=ss(e),r=e.checked,i=e[rt];if(U(n)){const l=ln(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const h=[...n];h.splice(l,1),i(h)}}else if(jt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[rt]=Dt(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(U(t))o=ln(t,n.props.value)>-1;else if(jt(t))o=t.has(n.props.value);else{if(t===s)return;o=Lt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const ws={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=jt(t);dt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ks(ss(i)):ss(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[rt]=Dt(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[rt]=Dt(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=U(t);if(!(s&&!n&&!jt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ss(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(h=>String(h)===String(l)):i.selected=ln(t,l)>-1}else i.selected=t.has(l);else if(Lt(ss(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ss(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=mt(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=ge({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return ae(e)?document.querySelector(e):e}let wn="";function Ut(e){wn=e}function Ke(){return wn}async function pe(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=Ct({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=D([]),n=D(!0);async function o(){n.value=!0;try{const h=await pe("/api/status");s.value=(h.sessions||[]).slice().sort((u,p)=>u.status==="active"&&p.status!=="active"?-1:u.status!=="active"&&p.status==="active"?1:p.lastActivity-u.lastActivity)}finally{n.value=!1}}const r=ht(()=>{var u;return(((u=t.status)==null?void 0:u.sessions)??s.value).slice().sort((p,m)=>p.status==="active"&&m.status!=="active"?-1:p.status!=="active"&&m.status==="active"?1:m.lastActivity-p.lastActivity)});function i(h){const u=Math.floor((Date.now()-h.lastActivity)/6e4);return h.status==="disconnected"?{label:`Disconnected${u>0?` — ${u}m ago`:""}`,color:"text-muted"}:u<5?{label:"Active",color:"text-success"}:u<30?{label:`Idle ${u}m`,color:"text-warn"}:{label:`Dormant ${u}m`,color:"text-danger"}}function l(h){if(!h.lastWaitCallAt)return"";const u=Math.floor((Date.now()-h.lastWaitCallAt)/6e4);return u<5?`Polling — ${u===0?"just now":u+"m ago"}`:`Last poll — ${u}m ago`}function c(h){return h.lastWaitCallAt?Math.floor((Date.now()-h.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return gt(o),(h,u)=>($(),A("div",Bl,[n.value&&r.value.length===0?($(),A("div",Kl,"Loading sessions...")):r.value.length===0?($(),A("div",Wl,"No sessions")):($(),A("div",zl,[($(!0),A(de,null,ct(r.value,p=>($(),A("div",{key:p.mcpSessionId,class:le(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[a("div",ql,[a("div",Jl,[a("span",{class:le(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),a("div",null,[a("div",Gl,[p.topicName?($(),A(de,{key:0},[a("span",Yl,R(p.topicName),1),a("span",Zl," (thread "+R(p.threadId)+")",1)],64)):p.threadId!=null?($(),A(de,{key:1},[_t("Thread "+R(p.threadId),1)],64)):($(),A("span",Ql,"Awaiting start_session…"))]),a("div",Xl,R(p.mcpSessionId.slice(0,12))+"...",1)])]),a("div",ea,[a("div",ta,[a("span",{class:le(["text-sm font-medium",i(p).color])},R(i(p).label),3),l(p)?($(),A("span",{key:0,class:le(["text-xs ml-2",c(p)])},R(l(p)),3)):re("",!0)]),a("div",sa,R(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ba={class:"text-xs text-muted"},ya={class:"text-xs text-muted"},_a=Ct({__name:"MemoryNotesTab",setup(e){const t=D([]),s=D(!1),n=D(""),o=D("created_at"),r=D("");let i=null;async function l(){s.value=!0;try{const u=r.value.trim();let p;if(u)p=await pe(`/api/search?q=${encodeURIComponent(u)}&limit=50`);else{const m=new URLSearchParams({limit:"50",sort:o.value});n.value&&m.set("type",n.value),p=await pe(`/api/notes?${m}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function h(u){if(!u)return"never";const p=Date.now()-new Date(u).getTime(),m=Math.floor(p/6e4);if(m<1)return"just now";if(m<60)return`${m}m ago`;const S=Math.floor(m/60);return S<24?`${S}h ago`:`${Math.floor(S/24)}d ago`}return gt(l),(u,p)=>($(),A("div",oa,[a("div",ra,[fe(a("input",{"onUpdate:modelValue":p[0]||(p[0]=m=>r.value=m),onInput:c,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Te,r.value]]),fe(a("select",{"onUpdate:modelValue":p[1]||(p[1]=m=>n.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Re('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[ws,n.value]]),fe(a("select",{"onUpdate:modelValue":p[2]||(p[2]=m=>o.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[a("option",{value:"created_at"},"Newest",-1),a("option",{value:"confidence"},"Confidence",-1),a("option",{value:"access_count"},"Most accessed",-1)])],544),[[ws,o.value]])]),s.value?($(),A("div",ia,"Loading notes...")):t.value.length===0?($(),A("div",la,"No notes found")):($(),A("div",aa,[($(!0),A(de,null,ct(t.value,m=>($(),A("div",{key:m.noteId,class:le(["glass rounded-xl p-4 animate-fade-in",`priority-${m.priority||0}`])},[a("div",ca,[a("div",ua,[a("div",fa,[a("span",{class:le(["type-badge",`type-${m.type}`])},R(m.type),3),m.priority>=2?($(),A("span",da,"HIGH IMPORTANCE")):m.priority===1?($(),A("span",pa,"NOTABLE")):re("",!0),a("span",ha,R(m.noteId),1)]),a("p",ma,R(m.content),1),a("div",ga,[($(!0),A(de,null,ct(m.keywords||[],S=>($(),A("span",{key:S,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(S),1))),128))])]),a("div",xa,[a("div",va,R(((Number(m.confidence)||0)*100).toFixed(0))+"%",1),a("div",ba,R(h(m.createdAt)),1),a("div",ya,R(m.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Aa={class:"flex flex-wrap items-center gap-3 mb-4"},Ea={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ma={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ia={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=Ct({__name:"TemplatesTab",setup(e){function t(I){return I.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=D("copilot"),n=D(""),o=D(""),r=D(""),i=D(50),l=D(""),c=D(""),h=D(!0),u=D(""),p=D(!1),m=D({}),S=D("copilot"),P=D(""),M=D(""),W=D(!0),E=D(""),N=D(!1),z=D([]),j=D("");async function F(){await Promise.all([O(),V(),ie(),J(),ce()])}async function O(){try{const I=await pe("/api/settings/agent-type");s.value=I.agentType||"copilot"}catch{}}async function V(){try{const I=await pe("/api/settings/claude-mcp-config");o.value=I.path||""}catch{}}async function ie(){try{const I=await pe("/api/settings/bootstrap-message-count");i.value=I.count??50}catch{}}async function J(){try{const I=await pe("/api/templates");if(I.templates&&I.templates.length>0){const _=I.templates[0];c.value=_.content||"",h.value=_.isDefault??!0}I.agentReminders&&(m.value=I.agentReminders)}catch{}}async function ce(){try{const[I,_,Xe]=await Promise.all([pe("/api/templates/drive"),pe("/api/templates/drive-presets"),pe("/api/settings/dmn-activation-hours")]);z.value=_.presets||[],j.value=String(Xe.value??"not set"),I.custom?(M.value=I.custom,W.value=!1):(M.value=I.default||"",W.value=!0)}catch{}}async function Me(){try{await pe("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await pe("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await J()}catch(I){n.value="Error: "+I.message}}async function Ye(){try{await pe("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(I){l.value="Error: "+I.message}}async function $e(){const I=o.value.trim();if(!I){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await pe("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:I})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(_){r.value="Error: "+_.message}}async function Tt(){try{const I=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!I.ok)throw new Error(I.statusText);h.value=!1,u.value="Saved ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function is(){if(confirm("Reset to default template? Your customizations will be lost."))try{const I=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await J(),u.value="Reset to default ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function he(){var Xe;const I=S.value,_=((Xe=m.value[I])==null?void 0:Xe.content)??"";try{const ke=await fetch(`/api/templates/reminders-${I}`,{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:_})});if(!ke.ok)throw new Error(ke.statusText);m.value[I]={content:_,isDefault:!1},P.value=`Saved ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(ke){P.value="Error: "+ke.message}}async function oe(){const I=S.value;if(confirm(`Reset ${I} agent reminder? The custom template will be removed.`))try{const _=await fetch(`/api/templates/reminders-${I}`,{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!_.ok)throw new Error(_.statusText);await J(),P.value=`Reset ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(_){P.value="Error: "+_.message}}async function Z(){const I=M.value;if(!I.trim()){E.value="Template is empty — load a preset first",setTimeout(()=>{E.value=""},3e3);return}try{const _=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:I})});if(!_.ok)throw new Error(_.statusText);W.value=!1,E.value="Saved ✓",setTimeout(()=>{E.value=""},3e3)}catch(_){E.value="Error: "+_.message}}async function Ze(){if(confirm("Reset drive template? The custom template will be removed."))try{const I=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await ce(),E.value="Reset to default ✓",setTimeout(()=>{E.value=""},3e3)}catch(I){E.value="Error: "+I.message}}function $t(I){M.value=I.content,W.value=!1}const Qe=ht(()=>t(c.value)),Oe=ht(()=>M.value?t(M.value):'<span style="color:#6b7280">(no template loaded)</span>');return gt(F),(I,_)=>{var Xe,ke;return $(),A("div",wa,[a("div",Sa,[a("div",Ca,[_[9]||(_[9]=a("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),fe(a("select",{"onUpdate:modelValue":_[0]||(_[0]=Q=>s.value=Q),onChange:Me,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[..._[8]||(_[8]=[Re('<option value="copilot">Copilot</option><option value="copilot_claude">Copilot (Claude)</option><option value="copilot_codex">Copilot (Codex)</option><option value="claude">Claude</option><option value="cursor">Cursor</option><option value="codex">Codex</option><option value="openai_codex">OpenAI Codex</option>',7)])],544),[[ws,s.value]]),n.value?($(),A("span",Ta,R(n.value),1)):re("",!0),_[10]||(_[10]=a("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),a("div",$a,[_[11]||(_[11]=a("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),fe(a("input",{"onUpdate:modelValue":_[1]||(_[1]=Q=>o.value=Q),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value]]),a("button",{onClick:$e,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?($(),A("span",ka,R(r.value),1)):re("",!0)]),a("div",Aa,[_[12]||(_[12]=a("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),fe(a("input",{"onUpdate:modelValue":_[2]||(_[2]=Q=>i.value=Q),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Te,i.value,void 0,{number:!0}]]),a("button",{onClick:Ye,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?($(),A("span",Ea,R(l.value),1)):re("",!0),_[13]||(_[13]=a("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),a("div",Pa,[a("div",Ma,[_[14]||(_[14]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Reminders Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),a("div",Oa,[u.value?($(),A("span",Ia,R(u.value),1)):re("",!0),a("button",{onClick:is,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Tt,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),h.value?($(),A("div",Ra,[..._[15]||(_[15]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):re("",!0),fe(a("textarea",{"onUpdate:modelValue":_[3]||(_[3]=Q=>c.value=Q),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Te,c.value]]),a("div",Da,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[4]||(_[4]=Q=>p.value=!p.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[16]||(_[16]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[17]||(_[17]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Qe.value},null,8,ja)):re("",!0)]),_[18]||(_[18]=Re('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— &quot;autonomous&quot; or &quot;standard&quot;</span></div></div></details>',1))]),a("div",La,[a("div",Na,[_[19]||(_[19]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),a("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),a("div",Fa,[P.value?($(),A("span",Ha,R(P.value),1)):re("",!0),a("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),a("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Va,[($(),A(de,null,ct(["copilot","claude","cursor","codex"],Q=>a("button",{key:Q,onClick:xt=>S.value=Q,class:le(["px-4 py-2 rounded-xl text-sm font-medium transition",S.value===Q?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},R(Q.charAt(0).toUpperCase()+Q.slice(1)),11,Ua)),64))]),((Xe=m.value[S.value])==null?void 0:Xe.isDefault)!==!1?($(),A("div",Ba,[..._[20]||(_[20]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):re("",!0),a("textarea",{value:((ke=m.value[S.value])==null?void 0:ke.content)??"",onInput:_[5]||(_[5]=Q=>{const xt=Q.target;m.value[S.value]={content:xt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${S.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),a("div",Wa,[a("div",za,[_[21]||(_[21]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),a("div",qa,[E.value?($(),A("span",Ja,R(E.value),1)):re("",!0),a("button",{onClick:Ze,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Ga,[_[23]||(_[23]=a("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),a("div",Ya,[a("span",Za,R(j.value),1),_[22]||(_[22]=a("span",{class:"text-sm text-textSecondary"},"hours",-1))]),_[24]||(_[24]=a("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),W.value?($(),A("div",Qa,[..._[25]||(_[25]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):re("",!0),a("div",Xa,[_[26]||(_[26]=a("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),($(!0),A(de,null,ct(z.value,Q=>($(),A("button",{key:Q.key,onClick:xt=>$t(Q),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},R(Q.label),9,ec))),128))]),fe(a("textarea",{"onUpdate:modelValue":_[6]||(_[6]=Q=>M.value=Q),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Te,M.value]]),a("div",tc,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[7]||(_[7]=Q=>N.value=!N.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",N.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[27]||(_[27]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[28]||(_[28]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),N.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Oe.value},null,8,sc)):re("",!0)]),_[29]||(_[29]=Re('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},fc={class:"flex items-center gap-2"},dc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},bc={class:"flex items-center gap-2 mb-1"},yc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ac={class:"flex items-center gap-2"},Ec={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Mc=["value"],Oc={class:"flex items-end"},Ic={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=Ct({__name:"SkillsTab",setup(e){const t=D([]),s=D(!0),n=D(null),o=D(""),r=D(""),i=D(!1),l=D(""),c=D(!1),h=D(""),u=D(""),p=D(!1),m=D("");async function S(){s.value=!0;try{const F=await pe("/api/skills");t.value=F.skills||[]}finally{s.value=!1}}function P(F){return F?F.includes(".remote-copilot-mcp")&&F.includes("skills")?"user":F.endsWith(".default.md")?"default":F.endsWith(".skill.md")?"project":"unknown":"unknown"}function M(F){const O={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return O[F]||O.unknown}function W(F){n.value=F,o.value=F.content,r.value=(F.triggers||[]).join(", "),i.value=!!F.replacesOrchestrator,c.value=!1}function E(){n.value=null}function N(F,O,V,ie){let J=`---
65
65
  name: ${F}
66
66
  triggers:
67
67
  `;return O.forEach(ce=>{J+=` - ${ce.trim()}
@@ -69,7 +69,7 @@ triggers:
69
69
  `),J+=`---
70
70
 
71
71
  `,J+ie}async function z(){if(!n.value)return;const F=n.value.name;try{const O=r.value.split(",").map(ce=>ce.trim()).filter(Boolean),V=o.value;let ie;V.trimStart().startsWith("---")?ie=V:ie=N(F,O,i.value,V);const J=await fetch(`/api/skills/${encodeURIComponent(F)}`,{method:"PUT",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ie})});if(!J.ok)throw new Error(J.statusText);l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3),await S()}catch(O){l.value="Error: "+O.message}}async function j(){const F=h.value.trim(),O=u.value;if(!F){m.value="Name is required";return}const V=O.split(",").map(J=>J.trim()).filter(Boolean);if(!V.length){m.value="At least one trigger is required";return}const ie=N(F,V,p.value,`\x3C!-- Write your skill instructions here -->
72
- `);try{const J=await fetch(`/api/skills/${encodeURIComponent(F)}`,{method:"PUT",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ie})});if(!J.ok)throw new Error(J.statusText);m.value="Created ✓",c.value=!1,await S();const ce=t.value.find(Me=>Me.name===F);ce&&W(ce)}catch(J){m.value="Error: "+J.message}}return gt(S),(F,O)=>($(),A("div",oc,[a("div",rc,[a("div",ic,[O[8]||(O[8]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Skill Library"),a("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),a("button",{onClick:O[0]||(O[0]=V=>{c.value=!c.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),c.value?($(),A("div",lc,[O[12]||(O[12]=a("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),a("div",ac,[a("div",null,[O[9]||(O[9]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),fe(a("input",{"onUpdate:modelValue":O[1]||(O[1]=V=>h.value=V),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,h.value]])]),a("div",null,[O[10]||(O[10]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[2]||(O[2]=V=>u.value=V),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,u.value]])])]),a("div",cc,[a("label",uc,[fe(a("input",{"onUpdate:modelValue":O[3]||(O[3]=V=>p.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),O[11]||(O[11]=a("span",null,"Replaces orchestrator",-1))])]),a("div",fc,[a("button",{onClick:j,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),a("button",{onClick:O[4]||(O[4]=V=>c.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),m.value?($(),A("span",dc,R(m.value),1)):re("",!0)])])):re("",!0),s.value?($(),A("div",pc,"Loading...")):t.value.length===0?($(),A("div",hc,"No skills loaded")):($(),A("div",mc,[($(!0),A(de,null,ct(t.value,V=>{var ie;return $(),A("div",{key:V.name,onClick:J=>W(V),class:le(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ie=n.value)==null?void 0:ie.name)===V.name?"border-accent":"border-transparent"])},[a("div",xc,[a("div",vc,[a("div",bc,[a("span",yc,R(V.name),1),a("span",{class:"type-badge",style:Es(M(P(V.source)))},R(P(V.source)),5),V.replacesOrchestrator?($(),A("span",_c,"REPLACES ORCH")):re("",!0)]),a("div",wc,[($(!0),A(de,null,ct(V.triggers||[],J=>($(),A("span",{key:J,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(J),1))),128))])]),a("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:V.source||""},R((V.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?($(),A("div",Cc,[a("div",Tc,[a("div",null,[a("h3",$c,"Edit: "+R(n.value.name),1),a("p",kc,R(n.value.source||"(unknown source)"),1)]),a("div",Ac,[l.value?($(),A("span",Ec,R(l.value),1)):re("",!0),a("button",{onClick:E,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),a("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Pc,[a("div",null,[O[13]||(O[13]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),a("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Mc)]),a("div",null,[O[14]||(O[14]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[5]||(O[5]=V=>r.value=V),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,r.value]])]),a("div",Oc,[a("label",Ic,[fe(a("input",{"onUpdate:modelValue":O[6]||(O[6]=V=>i.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),O[15]||(O[15]=a("span",null,"Replaces orchestrator",-1))])])]),fe(a("textarea",{"onUpdate:modelValue":O[7]||(O[7]=V=>o.value=V),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Te,o.value]])])):re("",!0)]))}}),Dc={class:"animate-fade-in"},jc={class:"glass rounded-xl p-6 mb-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Nc={class:"flex items-center gap-3"},Fc=["disabled"],Hc={key:0,class:"text-center py-8 text-textSecondary text-sm"},Vc={key:1,class:"space-y-6"},Uc={class:"glass rounded-xl p-4 border border-gray-700/50"},Bc={class:"flex items-center justify-between"},Kc={class:"glass rounded-xl p-4 border border-gray-700/50"},Wc=["value"],zc={key:0,class:"text-xs text-warn mt-2"},qc={class:"glass rounded-xl p-4 border border-gray-700/50"},Jc={class:"glass rounded-xl p-4 border border-gray-700/50"},Gc={class:"text-xs text-textSecondary mb-3"},Yc={key:0,class:"ml-1 text-accentLight font-mono"},Zc={class:"flex items-center gap-2"},Qc={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Xc={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},eu={class:"text-sm font-mono"},tu={class:"text-sm font-mono"},su={class:"text-sm font-mono"},nu=Ct({__name:"KeepAliveTab",setup(e){const t=D(null),s=D([]),n=D(!0),o=D(!1),r=D(""),i=D({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5}),l=ht(()=>{const p=new Set;return s.value.filter(m=>m.threadId!=null&&!p.has(m.threadId)&&p.add(m.threadId)).map(m=>({threadId:m.threadId,label:m.topicName??`Thread ${m.threadId}`}))});async function c(){n.value=!0;try{const[p,m]=await Promise.all([pe("/api/settings/keep-alive"),pe("/api/sessions")]);t.value=p,s.value=m,i.value={...p}}finally{n.value=!1}}async function h(){o.value=!0,r.value="";try{const p=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!p.ok){const m=await p.json().catch(()=>({error:p.statusText}));throw new Error(m.error??p.statusText)}t.value={...i.value},r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(p){r.value="Error: "+p.message}finally{o.value=!1}}function u(p){const m=Math.floor(p/6e4);return m>=60?`${Math.floor(m/60)}h ${m%60}m`:`${m}m`}return gt(c),(p,m)=>{var S;return $(),A("div",Dc,[a("div",jc,[a("div",Lc,[m[4]||(m[4]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),a("div",Nc,[r.value?($(),A("span",{key:0,class:le([r.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(r.value),3)):re("",!0),a("button",{onClick:h,disabled:o.value||n.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(o.value?"Saving…":"Save"),9,Fc)])]),n.value?($(),A("div",Hc,"Loading…")):($(),A("div",Vc,[a("div",Uc,[a("div",Bc,[m[5]||(m[5]=a("div",null,[a("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),a("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),a("button",{onClick:m[0]||(m[0]=P=>i.value.keepAliveEnabled=!i.value.keepAliveEnabled),class:le(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",i.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[a("span",{class:le(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",i.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),a("div",Kc,[m[7]||(m[7]=a("label",{class:"block text-sm font-medium mb-1"},"Session to Keep Alive",-1)),m[8]||(m[8]=a("p",{class:"text-xs text-textSecondary mb-3"},"Select the Telegram thread to monitor and keep alive",-1)),fe(a("select",{"onUpdate:modelValue":m[1]||(m[1]=P=>i.value.keepAliveThreadId=P),class:"w-full sm:w-72 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[m[6]||(m[6]=a("option",{value:0},"Disabled",-1)),($(!0),A(de,null,ct(l.value,P=>($(),A("option",{key:P.threadId,value:P.threadId},R(P.label)+" ("+R(P.threadId)+") ",9,Wc))),128))],512),[[ws,i.value.keepAliveThreadId,void 0,{number:!0}]]),i.value.keepAliveThreadId&&!l.value.find(P=>P.threadId===i.value.keepAliveThreadId)?($(),A("p",zc," Thread "+R(i.value.keepAliveThreadId)+" is configured but not in active sessions ",1)):re("",!0)]),a("div",qc,[m[9]||(m[9]=a("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),m[10]||(m[10]=a("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),fe(a("input",{"onUpdate:modelValue":m[2]||(m[2]=P=>i.value.keepAliveMaxRetries=P),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveMaxRetries,void 0,{number:!0}]])]),a("div",Jc,[m[13]||(m[13]=a("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),a("p",Gc,[m[11]||(m[11]=_t(" Wait time after max retries exceeded before resuming restarts ",-1)),i.value.keepAliveCooldownMs?($(),A("span",Yc,"("+R(u(i.value.keepAliveCooldownMs))+")",1)):re("",!0)]),a("div",Zc,[fe(a("input",{"onUpdate:modelValue":m[3]||(m[3]=P=>i.value.keepAliveCooldownMs=P),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveCooldownMs,void 0,{number:!0}]]),m[12]||(m[12]=a("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?($(),A("div",Qc,[m[18]||(m[18]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",Xc,[a("div",null,[m[14]||(m[14]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},R(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),a("div",null,[m[15]||(m[15]=a("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),a("span",eu,R(((S=l.value.find(P=>P.threadId===t.value.keepAliveThreadId))==null?void 0:S.label)??(t.value.keepAliveThreadId||"—")),1)]),a("div",null,[m[16]||(m[16]=a("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),a("span",tu,R(t.value.keepAliveMaxRetries),1)]),a("div",null,[m[17]||(m[17]=a("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),a("span",su,R(u(t.value.keepAliveCooldownMs)),1)])])])):re("",!0)]))])])}}}),ou={class:"animate-fade-in"},ru={class:"glass rounded-xl p-6 mb-6"},iu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},lu={class:"flex items-center gap-3"},au=["disabled"],cu={key:0,class:"text-center py-8 text-textSecondary text-sm"},uu={key:1,class:"space-y-6"},fu={class:"glass rounded-xl p-4 border border-gray-700/50"},du={class:"flex items-center gap-4"},pu={class:"flex justify-between text-xs text-muted mt-2"},hu={class:"font-mono"},mu={key:0,class:"mt-3 px-3 py-2 rounded-lg bg-warn/10 border border-warn/20 text-xs text-warn"},gu={class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},xu={class:"grid grid-cols-2 gap-4"},vu=Ct({__name:"SettingsTab",setup(e){const t=D(!0),s=D(!1),n=D(""),o=D(50),r=D(50),i=ht(()=>o.value!==r.value);async function l(){t.value=!0;try{const h=await pe("/api/settings/bootstrap-message-count");o.value=h.count,r.value=h.count}finally{t.value=!1}}async function c(){s.value=!0,n.value="";try{const h=await fetch("/api/settings/bootstrap-message-count",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({count:o.value})});if(!h.ok){const p=await h.json().catch(()=>({error:h.statusText}));throw new Error(p.error??h.statusText)}const u=await h.json();r.value=u.count,o.value=u.count,n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3)}catch(h){n.value="Error: "+h.message}finally{s.value=!1}}return gt(l),(h,u)=>($(),A("div",ou,[a("div",ru,[a("div",iu,[u[2]||(u[2]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure agent behavior and context injection")],-1)),a("div",lu,[n.value?($(),A("span",{key:0,class:le([n.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(n.value),3)):re("",!0),a("button",{onClick:c,disabled:s.value||t.value||!i.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(s.value?"Saving…":"Save"),9,au)])]),t.value?($(),A("div",cu,"Loading…")):($(),A("div",uu,[a("div",fu,[u[6]||(u[6]=a("label",{class:"block text-sm font-medium mb-1"},"Recent Conversation Buffer",-1)),u[7]||(u[7]=a("p",{class:"text-xs text-textSecondary mb-3"},[_t(" Number of recent messages injected into the agent's bootstrap context. Set to "),a("span",{class:"font-mono text-accentLight"},"0"),_t(" to disable (useful when using VS Code, which maintains its own conversation history). ")],-1)),a("div",du,[fe(a("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),type:"range",min:"0",max:"100",step:"5",class:"flex-1 accent-accent"},null,512),[[Te,o.value,void 0,{number:!0}]]),fe(a("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"number",min:"0",max:"200",class:"w-20 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono text-center focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value,void 0,{number:!0}]])]),a("div",pu,[u[3]||(u[3]=a("span",null,"Off",-1)),a("span",hu,R(o.value)+" messages",1),u[4]||(u[4]=a("span",null,"Max",-1))]),o.value===0?($(),A("div",mu,[...u[5]||(u[5]=[_t(" Message buffer injection is ",-1),a("strong",null,"disabled",-1),_t(". The agent will not see recent conversation history in its bootstrap context. Use this when VS Code (or another IDE) already provides conversation history. ",-1)])])):re("",!0)]),a("div",gu,[u[10]||(u[10]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",xu,[a("div",null,[u[8]||(u[8]=a("div",{class:"text-xs text-muted mb-1"},"Message Buffer",-1)),a("span",{class:le(["text-sm font-medium",r.value>0?"text-success":"text-textSecondary"])},R(r.value>0?`${r.value} messages`:"Disabled"),3)]),a("div",null,[u[9]||(u[9]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",i.value?"text-warn":"text-textSecondary"])},R(i.value?"Unsaved changes":"Saved"),3)])])])]))])]))}}),bu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},yu={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},_u=["disabled"],wu={key:0,class:"mt-3 text-sm text-danger"},Su={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},Cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},Tu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},$u={class:"flex items-center gap-4"},ku={class:"text-sm text-textSecondary font-mono"},Au={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},Eu={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},Pu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Mu={class:"text-2xl font-bold font-mono"},Ou={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Iu={class:"text-2xl font-bold font-mono"},Ru={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Du={class:"text-2xl font-bold font-mono"},ju={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Lu={class:"flex items-center gap-2 mb-2"},Nu={class:"text-2xl font-bold font-mono"},Fu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Hu={class:"text-2xl font-bold font-mono"},Vu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Uu={class:"text-2xl font-bold font-mono"},Bu={class:"max-w-7xl mx-auto px-4 sm:px-6"},Ku={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Wu=["onClick"],zu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},us="sensorium_token",qu=Ct({__name:"App",setup(e){const t=D(!1),s=D(""),n=D(""),o=D(!1),r=D(null),i=D("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"},{id:"settings",label:"Settings"}],h={sessions:na,notes:_a,templates:nc,skills:Rc,keepalive:nu,settings:vu},u=ht(()=>h[i.value]),p=ht(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),E=Math.floor(W/86400),N=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return E>0?`${E}d ${N}h`:N>0?`${N}h ${z}m`:`${z}m`});async function m(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Ut(W),await P(),localStorage.setItem(us,W),t.value=!0,M()}catch(E){const N=E;N.status===401?n.value="Invalid token":n.value=N.message??"Connection failed",Ut("")}finally{o.value=!1}}function S(){localStorage.removeItem(us),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Ut("")}async function P(){r.value=await pe("/api/status")}function M(){l&&clearInterval(l),l=setInterval(P,3e4)}return gt(async()=>{const W=localStorage.getItem(us);if(W){s.value=W;try{Ut(W),await P(),t.value=!0,M()}catch{localStorage.removeItem(us),Ut("")}}}),vn(()=>{l&&clearInterval(l)}),(W,E)=>{var N,z,j,F,O,V,ie,J,ce,Me,Ye;return t.value?($(),A("div",Su,[a("header",Cu,[a("div",Tu,[E[3]||(E[3]=Ve('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),a("div",$u,[E[2]||(E[2]=a("div",{class:"flex items-center gap-2 text-sm"},[a("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),a("span",{class:"text-textSecondary"},"Connected")],-1)),a("div",ku,R(p.value),1),a("button",{onClick:S,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),a("div",Au,[a("div",Eu,[a("div",Pu,[E[4]||(E[4]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),a("div",Mu,R(((N=r.value)==null?void 0:N.activeSessions)??0),1)]),a("div",Ou,[E[5]||(E[5]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),a("div",Iu,R(((j=(z=r.value)==null?void 0:z.memory)==null?void 0:j.totalSemanticNotes)??0),1)]),a("div",Ru,[E[6]||(E[6]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),a("div",Du,R(((O=(F=r.value)==null?void 0:F.memory)==null?void 0:O.totalEpisodes)??0),1)]),a("div",ju,[a("div",Lu,[a("span",{class:le((((ie=(V=r.value)==null?void 0:V.memory)==null?void 0:ie.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...E[7]||(E[7]=[a("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),E[8]||(E[8]=a("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),a("div",Nu,R(((ce=(J=r.value)==null?void 0:J.memory)==null?void 0:ce.unconsolidatedEpisodes)??0),1)]),a("div",Fu,[E[9]||(E[9]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),a("div",Hu,R(((Ye=(Me=r.value)==null?void 0:Me.memory)==null?void 0:Ye.totalProcedures)??0),1)]),a("div",Vu,[E[10]||(E[10]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),a("div",Uu,R(p.value),1)])])]),a("div",Bu,[a("nav",Ku,[($(),A(de,null,ct(c,$e=>a("button",{key:$e.id,onClick:Tt=>i.value=$e.id,class:le(["pb-3 text-sm font-medium transition",i.value===$e.id?"tab-active":"tab-inactive"])},R($e.label),11,Wu)),64))])]),a("div",zu,[($(),cr($i(u.value),{status:r.value},null,8,["status"]))])])):($(),A("div",bu,[a("div",yu,[E[1]||(E[1]=Ve('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),fe(a("input",{"onUpdate:modelValue":E[0]||(E[0]=$e=>s.value=$e),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(m,["enter"])},null,544),[[Te,s.value]]),a("button",{onClick:m,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},R(o.value?"Connecting...":"Connect"),9,_u),n.value?($(),A("p",wu,R(n.value),1)):re("",!0)])]))}}});Hl(qu).mount("#app");</script>
72
+ `);try{const J=await fetch(`/api/skills/${encodeURIComponent(F)}`,{method:"PUT",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ie})});if(!J.ok)throw new Error(J.statusText);m.value="Created ✓",c.value=!1,await S();const ce=t.value.find(Me=>Me.name===F);ce&&W(ce)}catch(J){m.value="Error: "+J.message}}return gt(S),(F,O)=>($(),A("div",oc,[a("div",rc,[a("div",ic,[O[8]||(O[8]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Skill Library"),a("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),a("button",{onClick:O[0]||(O[0]=V=>{c.value=!c.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),c.value?($(),A("div",lc,[O[12]||(O[12]=a("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),a("div",ac,[a("div",null,[O[9]||(O[9]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),fe(a("input",{"onUpdate:modelValue":O[1]||(O[1]=V=>h.value=V),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,h.value]])]),a("div",null,[O[10]||(O[10]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[2]||(O[2]=V=>u.value=V),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,u.value]])])]),a("div",cc,[a("label",uc,[fe(a("input",{"onUpdate:modelValue":O[3]||(O[3]=V=>p.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),O[11]||(O[11]=a("span",null,"Replaces orchestrator",-1))])]),a("div",fc,[a("button",{onClick:j,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),a("button",{onClick:O[4]||(O[4]=V=>c.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),m.value?($(),A("span",dc,R(m.value),1)):re("",!0)])])):re("",!0),s.value?($(),A("div",pc,"Loading...")):t.value.length===0?($(),A("div",hc,"No skills loaded")):($(),A("div",mc,[($(!0),A(de,null,ct(t.value,V=>{var ie;return $(),A("div",{key:V.name,onClick:J=>W(V),class:le(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ie=n.value)==null?void 0:ie.name)===V.name?"border-accent":"border-transparent"])},[a("div",xc,[a("div",vc,[a("div",bc,[a("span",yc,R(V.name),1),a("span",{class:"type-badge",style:Es(M(P(V.source)))},R(P(V.source)),5),V.replacesOrchestrator?($(),A("span",_c,"REPLACES ORCH")):re("",!0)]),a("div",wc,[($(!0),A(de,null,ct(V.triggers||[],J=>($(),A("span",{key:J,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(J),1))),128))])]),a("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:V.source||""},R((V.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?($(),A("div",Cc,[a("div",Tc,[a("div",null,[a("h3",$c,"Edit: "+R(n.value.name),1),a("p",kc,R(n.value.source||"(unknown source)"),1)]),a("div",Ac,[l.value?($(),A("span",Ec,R(l.value),1)):re("",!0),a("button",{onClick:E,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),a("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Pc,[a("div",null,[O[13]||(O[13]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),a("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Mc)]),a("div",null,[O[14]||(O[14]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[5]||(O[5]=V=>r.value=V),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,r.value]])]),a("div",Oc,[a("label",Ic,[fe(a("input",{"onUpdate:modelValue":O[6]||(O[6]=V=>i.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),O[15]||(O[15]=a("span",null,"Replaces orchestrator",-1))])])]),fe(a("textarea",{"onUpdate:modelValue":O[7]||(O[7]=V=>o.value=V),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Te,o.value]])])):re("",!0)]))}}),Dc={class:"animate-fade-in"},jc={class:"glass rounded-xl p-6 mb-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Nc={class:"flex items-center gap-3"},Fc=["disabled"],Hc={key:0,class:"text-center py-8 text-textSecondary text-sm"},Vc={key:1,class:"space-y-6"},Uc={class:"glass rounded-xl p-4 border border-gray-700/50"},Bc={class:"flex items-center justify-between"},Kc={class:"glass rounded-xl p-4 border border-gray-700/50"},Wc=["value"],zc={key:0,class:"text-xs text-warn mt-2"},qc={class:"glass rounded-xl p-4 border border-gray-700/50"},Jc={class:"glass rounded-xl p-4 border border-gray-700/50"},Gc={class:"text-xs text-textSecondary mb-3"},Yc={key:0,class:"ml-1 text-accentLight font-mono"},Zc={class:"flex items-center gap-2"},Qc={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Xc={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},eu={class:"text-sm font-mono"},tu={class:"text-sm font-mono"},su={class:"text-sm font-mono"},nu=Ct({__name:"KeepAliveTab",setup(e){const t=D(null),s=D([]),n=D(!0),o=D(!1),r=D(""),i=D({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5}),l=ht(()=>{const p=new Set;return s.value.filter(m=>m.threadId!=null&&!p.has(m.threadId)&&p.add(m.threadId)).map(m=>({threadId:m.threadId,label:m.topicName??`Thread ${m.threadId}`}))});async function c(){n.value=!0;try{const[p,m]=await Promise.all([pe("/api/settings/keep-alive"),pe("/api/sessions")]);t.value=p,s.value=m,i.value={...p}}finally{n.value=!1}}async function h(){o.value=!0,r.value="";try{const p=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!p.ok){const m=await p.json().catch(()=>({error:p.statusText}));throw new Error(m.error??p.statusText)}t.value={...i.value},r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(p){r.value="Error: "+p.message}finally{o.value=!1}}function u(p){const m=Math.floor(p/6e4);return m>=60?`${Math.floor(m/60)}h ${m%60}m`:`${m}m`}return gt(c),(p,m)=>{var S;return $(),A("div",Dc,[a("div",jc,[a("div",Lc,[m[4]||(m[4]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),a("div",Nc,[r.value?($(),A("span",{key:0,class:le([r.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(r.value),3)):re("",!0),a("button",{onClick:h,disabled:o.value||n.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(o.value?"Saving…":"Save"),9,Fc)])]),n.value?($(),A("div",Hc,"Loading…")):($(),A("div",Vc,[a("div",Uc,[a("div",Bc,[m[5]||(m[5]=a("div",null,[a("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),a("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),a("button",{onClick:m[0]||(m[0]=P=>i.value.keepAliveEnabled=!i.value.keepAliveEnabled),class:le(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",i.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[a("span",{class:le(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",i.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),a("div",Kc,[m[7]||(m[7]=a("label",{class:"block text-sm font-medium mb-1"},"Session to Keep Alive",-1)),m[8]||(m[8]=a("p",{class:"text-xs text-textSecondary mb-3"},"Select the Telegram thread to monitor and keep alive",-1)),fe(a("select",{"onUpdate:modelValue":m[1]||(m[1]=P=>i.value.keepAliveThreadId=P),class:"w-full sm:w-72 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[m[6]||(m[6]=a("option",{value:0},"Disabled",-1)),($(!0),A(de,null,ct(l.value,P=>($(),A("option",{key:P.threadId,value:P.threadId},R(P.label)+" ("+R(P.threadId)+") ",9,Wc))),128))],512),[[ws,i.value.keepAliveThreadId,void 0,{number:!0}]]),i.value.keepAliveThreadId&&!l.value.find(P=>P.threadId===i.value.keepAliveThreadId)?($(),A("p",zc," Thread "+R(i.value.keepAliveThreadId)+" is configured but not in active sessions ",1)):re("",!0)]),a("div",qc,[m[9]||(m[9]=a("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),m[10]||(m[10]=a("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),fe(a("input",{"onUpdate:modelValue":m[2]||(m[2]=P=>i.value.keepAliveMaxRetries=P),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveMaxRetries,void 0,{number:!0}]])]),a("div",Jc,[m[13]||(m[13]=a("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),a("p",Gc,[m[11]||(m[11]=_t(" Wait time after max retries exceeded before resuming restarts ",-1)),i.value.keepAliveCooldownMs?($(),A("span",Yc,"("+R(u(i.value.keepAliveCooldownMs))+")",1)):re("",!0)]),a("div",Zc,[fe(a("input",{"onUpdate:modelValue":m[3]||(m[3]=P=>i.value.keepAliveCooldownMs=P),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveCooldownMs,void 0,{number:!0}]]),m[12]||(m[12]=a("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?($(),A("div",Qc,[m[18]||(m[18]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",Xc,[a("div",null,[m[14]||(m[14]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},R(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),a("div",null,[m[15]||(m[15]=a("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),a("span",eu,R(((S=l.value.find(P=>P.threadId===t.value.keepAliveThreadId))==null?void 0:S.label)??(t.value.keepAliveThreadId||"—")),1)]),a("div",null,[m[16]||(m[16]=a("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),a("span",tu,R(t.value.keepAliveMaxRetries),1)]),a("div",null,[m[17]||(m[17]=a("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),a("span",su,R(u(t.value.keepAliveCooldownMs)),1)])])])):re("",!0)]))])])}}}),ou={class:"animate-fade-in"},ru={class:"glass rounded-xl p-6 mb-6"},iu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},lu={class:"flex items-center gap-3"},au=["disabled"],cu={key:0,class:"text-center py-8 text-textSecondary text-sm"},uu={key:1,class:"space-y-6"},fu={class:"glass rounded-xl p-4 border border-gray-700/50"},du={class:"flex items-center gap-4"},pu={class:"flex justify-between text-xs text-muted mt-2"},hu={class:"font-mono"},mu={key:0,class:"mt-3 px-3 py-2 rounded-lg bg-warn/10 border border-warn/20 text-xs text-warn"},gu={class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},xu={class:"grid grid-cols-2 gap-4"},vu=Ct({__name:"SettingsTab",setup(e){const t=D(!0),s=D(!1),n=D(""),o=D(50),r=D(50),i=ht(()=>o.value!==r.value);async function l(){t.value=!0;try{const h=await pe("/api/settings/bootstrap-message-count");o.value=h.count,r.value=h.count}finally{t.value=!1}}async function c(){s.value=!0,n.value="";try{const h=await fetch("/api/settings/bootstrap-message-count",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({count:o.value})});if(!h.ok){const p=await h.json().catch(()=>({error:h.statusText}));throw new Error(p.error??h.statusText)}const u=await h.json();r.value=u.count,o.value=u.count,n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3)}catch(h){n.value="Error: "+h.message}finally{s.value=!1}}return gt(l),(h,u)=>($(),A("div",ou,[a("div",ru,[a("div",iu,[u[2]||(u[2]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure agent behavior and context injection")],-1)),a("div",lu,[n.value?($(),A("span",{key:0,class:le([n.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(n.value),3)):re("",!0),a("button",{onClick:c,disabled:s.value||t.value||!i.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(s.value?"Saving…":"Save"),9,au)])]),t.value?($(),A("div",cu,"Loading…")):($(),A("div",uu,[a("div",fu,[u[6]||(u[6]=a("label",{class:"block text-sm font-medium mb-1"},"Recent Conversation Buffer",-1)),u[7]||(u[7]=a("p",{class:"text-xs text-textSecondary mb-3"},[_t(" Number of recent messages injected into the agent's bootstrap context. Set to "),a("span",{class:"font-mono text-accentLight"},"0"),_t(" to disable (useful when using VS Code, which maintains its own conversation history). ")],-1)),a("div",du,[fe(a("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),type:"range",min:"0",max:"100",step:"5",class:"flex-1 accent-accent"},null,512),[[Te,o.value,void 0,{number:!0}]]),fe(a("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"number",min:"0",max:"200",class:"w-20 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono text-center focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value,void 0,{number:!0}]])]),a("div",pu,[u[3]||(u[3]=a("span",null,"Off",-1)),a("span",hu,R(o.value)+" messages",1),u[4]||(u[4]=a("span",null,"Max",-1))]),o.value===0?($(),A("div",mu,[...u[5]||(u[5]=[_t(" Message buffer injection is ",-1),a("strong",null,"disabled",-1),_t(". The agent will not see recent conversation history in its bootstrap context. Use this when VS Code (or another IDE) already provides conversation history. ",-1)])])):re("",!0)]),a("div",gu,[u[10]||(u[10]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",xu,[a("div",null,[u[8]||(u[8]=a("div",{class:"text-xs text-muted mb-1"},"Message Buffer",-1)),a("span",{class:le(["text-sm font-medium",r.value>0?"text-success":"text-textSecondary"])},R(r.value>0?`${r.value} messages`:"Disabled"),3)]),a("div",null,[u[9]||(u[9]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",i.value?"text-warn":"text-textSecondary"])},R(i.value?"Unsaved changes":"Saved"),3)])])])]))])]))}}),bu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},yu={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},_u=["disabled"],wu={key:0,class:"mt-3 text-sm text-danger"},Su={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},Cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},Tu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},$u={class:"flex items-center gap-4"},ku={class:"text-sm text-textSecondary font-mono"},Au={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},Eu={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},Pu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Mu={class:"text-2xl font-bold font-mono"},Ou={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Iu={class:"text-2xl font-bold font-mono"},Ru={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Du={class:"text-2xl font-bold font-mono"},ju={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Lu={class:"flex items-center gap-2 mb-2"},Nu={class:"text-2xl font-bold font-mono"},Fu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Hu={class:"text-2xl font-bold font-mono"},Vu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Uu={class:"text-2xl font-bold font-mono"},Bu={class:"max-w-7xl mx-auto px-4 sm:px-6"},Ku={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Wu=["onClick"],zu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},us="sensorium_token",qu=Ct({__name:"App",setup(e){const t=D(!1),s=D(""),n=D(""),o=D(!1),r=D(null),i=D("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"},{id:"settings",label:"Settings"}],h={sessions:na,notes:_a,templates:nc,skills:Rc,keepalive:nu,settings:vu},u=ht(()=>h[i.value]),p=ht(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),E=Math.floor(W/86400),N=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return E>0?`${E}d ${N}h`:N>0?`${N}h ${z}m`:`${z}m`});async function m(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Ut(W),await P(),localStorage.setItem(us,W),t.value=!0,M()}catch(E){const N=E;N.status===401?n.value="Invalid token":n.value=N.message??"Connection failed",Ut("")}finally{o.value=!1}}function S(){localStorage.removeItem(us),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Ut("")}async function P(){r.value=await pe("/api/status")}function M(){l&&clearInterval(l),l=setInterval(P,3e4)}return gt(async()=>{const W=localStorage.getItem(us);if(W){s.value=W;try{Ut(W),await P(),t.value=!0,M()}catch{localStorage.removeItem(us),Ut("")}}}),vn(()=>{l&&clearInterval(l)}),(W,E)=>{var N,z,j,F,O,V,ie,J,ce,Me,Ye;return t.value?($(),A("div",Su,[a("header",Cu,[a("div",Tu,[E[3]||(E[3]=Re('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),a("div",$u,[E[2]||(E[2]=a("div",{class:"flex items-center gap-2 text-sm"},[a("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),a("span",{class:"text-textSecondary"},"Connected")],-1)),a("div",ku,R(p.value),1),a("button",{onClick:S,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),a("div",Au,[a("div",Eu,[a("div",Pu,[E[4]||(E[4]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),a("div",Mu,R(((N=r.value)==null?void 0:N.activeSessions)??0),1)]),a("div",Ou,[E[5]||(E[5]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),a("div",Iu,R(((j=(z=r.value)==null?void 0:z.memory)==null?void 0:j.totalSemanticNotes)??0),1)]),a("div",Ru,[E[6]||(E[6]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),a("div",Du,R(((O=(F=r.value)==null?void 0:F.memory)==null?void 0:O.totalEpisodes)??0),1)]),a("div",ju,[a("div",Lu,[a("span",{class:le((((ie=(V=r.value)==null?void 0:V.memory)==null?void 0:ie.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...E[7]||(E[7]=[a("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),E[8]||(E[8]=a("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),a("div",Nu,R(((ce=(J=r.value)==null?void 0:J.memory)==null?void 0:ce.unconsolidatedEpisodes)??0),1)]),a("div",Fu,[E[9]||(E[9]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),a("div",Hu,R(((Ye=(Me=r.value)==null?void 0:Me.memory)==null?void 0:Ye.totalProcedures)??0),1)]),a("div",Vu,[E[10]||(E[10]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),a("div",Uu,R(p.value),1)])])]),a("div",Bu,[a("nav",Ku,[($(),A(de,null,ct(c,$e=>a("button",{key:$e.id,onClick:Tt=>i.value=$e.id,class:le(["pb-3 text-sm font-medium transition",i.value===$e.id?"tab-active":"tab-inactive"])},R($e.label),11,Wu)),64))])]),a("div",zu,[($(),cr($i(u.value),{status:r.value},null,8,["status"]))])])):($(),A("div",bu,[a("div",yu,[E[1]||(E[1]=Re('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),fe(a("input",{"onUpdate:modelValue":E[0]||(E[0]=$e=>s.value=$e),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(m,["enter"])},null,544),[[Te,s.value]]),a("button",{onClick:m,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},R(o.value?"Connecting...":"Connect"),9,_u),n.value?($(),A("p",wu,R(n.value),1)):re("",!0)])]))}}});Hl(qu).mount("#app");</script>
73
73
  <style rel="stylesheet" crossorigin>body{background:#0f1419}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:#1a1f2e}::-webkit-scrollbar-thumb{background:#374151;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.glass{background:#1a1f2ecc;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(99,102,241,.1)}.stat-glow{box-shadow:0 0 20px #6366f114}.priority-2{border-left:3px solid #ef4444}.priority-1{border-left:3px solid #f59e0b}.priority-0{border-left:3px solid transparent}.type-badge{font-size:.65rem;padding:2px 6px;border-radius:9999px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.type-fact{background:#3b82f626;color:#60a5fa}.type-preference{background:#a855f726;color:#c084fc}.type-pattern{background:#22c55e26;color:#4ade80}.type-entity{background:#fbbf2426;color:#fbbf24}.type-relationship{background:#f472b626;color:#f472b6}.tab-active{border-bottom:2px solid #6366f1;color:#e5e7eb}.tab-inactive{border-bottom:2px solid transparent;color:#6b7280}.tab-inactive:hover{color:#9ca3af}</style>
74
74
  </head>
75
75
  <body class="font-sans text-textPrimary min-h-screen">