@alisaitteke/photoshop-mcp 1.7.21 → 1.7.23
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.
- package/README.md +26 -0
- package/dist/analytics/events.d.ts.map +1 -1
- package/dist/analytics/events.js +8 -1
- package/dist/analytics/events.js.map +1 -1
- package/dist/analytics/index.d.ts +2 -2
- package/dist/analytics/index.d.ts.map +1 -1
- package/dist/analytics/index.js +2 -2
- package/dist/analytics/index.js.map +1 -1
- package/dist/analytics/mcp-client.d.ts.map +1 -1
- package/dist/analytics/mcp-client.js +2 -1
- package/dist/analytics/mcp-client.js.map +1 -1
- package/dist/analytics/mcp-session.d.ts +14 -0
- package/dist/analytics/mcp-session.d.ts.map +1 -1
- package/dist/analytics/mcp-session.js +91 -0
- package/dist/analytics/mcp-session.js.map +1 -1
- package/dist/core/server.d.ts.map +1 -1
- package/dist/core/server.js +2 -5
- package/dist/core/server.js.map +1 -1
- package/dist/prompts/templates/composite-blend.js +2 -2
- package/dist/prompts/templates/composite-blend.js.map +1 -1
- package/dist/prompts/templates/dodge-burn-guide.js +1 -1
- package/dist/prompts/templates/dodge-burn-guide.js.map +1 -1
- package/dist/prompts/templates/dodge-burn.js +1 -1
- package/dist/prompts/templates/dodge-burn.js.map +1 -1
- package/dist/prompts/templates/gradient-fade.js +1 -1
- package/dist/prompts/templates/gradient-fade.js.map +1 -1
- package/dist/prompts/templates/sky-blend.js +1 -1
- package/dist/prompts/templates/sky-blend.js.map +1 -1
- package/dist/ui/agent/action-plan.d.ts.map +1 -1
- package/dist/ui/agent/action-plan.js +17 -30
- package/dist/ui/agent/action-plan.js.map +1 -1
- package/dist/ui/agent/api-key.d.ts.map +1 -1
- package/dist/ui/agent/api-key.js +7 -15
- package/dist/ui/agent/api-key.js.map +1 -1
- package/dist/ui/agent/claude-account.d.ts.map +1 -1
- package/dist/ui/agent/claude-account.js +6 -9
- package/dist/ui/agent/claude-account.js.map +1 -1
- package/dist/ui/agent/gemini-account.d.ts.map +1 -1
- package/dist/ui/agent/gemini-account.js +7 -8
- package/dist/ui/agent/gemini-account.js.map +1 -1
- package/dist/ui/agent/instant.d.ts +34 -0
- package/dist/ui/agent/instant.d.ts.map +1 -0
- package/dist/ui/agent/instant.js +78 -0
- package/dist/ui/agent/instant.js.map +1 -0
- package/dist/ui/agent/shared.d.ts +28 -6
- package/dist/ui/agent/shared.d.ts.map +1 -1
- package/dist/ui/agent/shared.js +21 -0
- package/dist/ui/agent/shared.js.map +1 -1
- package/dist/ui/agent.d.ts.map +1 -1
- package/dist/ui/agent.js +32 -4
- package/dist/ui/agent.js.map +1 -1
- package/dist/ui/config.d.ts +14 -0
- package/dist/ui/config.d.ts.map +1 -1
- package/dist/ui/config.js +17 -0
- package/dist/ui/config.js.map +1 -1
- package/dist/ui/intent/catalog.d.ts +39 -0
- package/dist/ui/intent/catalog.d.ts.map +1 -0
- package/dist/ui/intent/catalog.js +160 -0
- package/dist/ui/intent/catalog.js.map +1 -0
- package/dist/ui/intent/router.d.ts +92 -0
- package/dist/ui/intent/router.d.ts.map +1 -0
- package/dist/ui/intent/router.js +146 -0
- package/dist/ui/intent/router.js.map +1 -0
- package/dist/ui/intent/service.d.ts +55 -0
- package/dist/ui/intent/service.d.ts.map +1 -0
- package/dist/ui/intent/service.js +150 -0
- package/dist/ui/intent/service.js.map +1 -0
- package/dist/ui/server.d.ts.map +1 -1
- package/dist/ui/server.js +74 -2
- package/dist/ui/server.js.map +1 -1
- package/dist/ui/store/chats.d.ts +16 -0
- package/dist/ui/store/chats.d.ts.map +1 -1
- package/dist/ui/store/chats.js.map +1 -1
- package/dist/ui/store/previews.d.ts +28 -0
- package/dist/ui/store/previews.d.ts.map +1 -0
- package/dist/ui/store/previews.js +120 -0
- package/dist/ui/store/previews.js.map +1 -0
- package/package.json +2 -2
- package/web/dist/assets/index-hrv691GI.js +288 -0
- package/web/dist/assets/index-tyuEMiXQ.css +1 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-DVa56xB2.js +0 -263
- package/web/dist/assets/index-vi5C3hqd.css +0 -1
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();/**
|
|
2
|
-
* @vue/shared v3.5.43
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function pi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const xe={},Ln=[],Lt=()=>{},Ta=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vs=e=>e.startsWith("onUpdate:"),Ke=Object.assign,hi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ad=Object.prototype.hasOwnProperty,Ae=(e,t)=>Ad.call(e,t),ie=Array.isArray,_n=e=>Wo(e)==="[object Map]",on=e=>Wo(e)==="[object Set]",tl=e=>Wo(e)==="[object Date]",pe=e=>typeof e=="function",Me=e=>typeof e=="string",gt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",Ia=e=>(Se(e)||pe(e))&&pe(e.then)&&pe(e.catch),Ra=Object.prototype.toString,Wo=e=>Ra.call(e),Sd=e=>Wo(e).slice(8,-1),Ma=e=>Wo(e)==="[object Object]",zs=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Po=pi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ed=/-\w/g,je=Us(e=>e.replace(Ed,t=>t.slice(1).toUpperCase())),Pd=/\B([A-Z])/g,cn=Us(e=>e.replace(Pd,"-$1").toLowerCase()),Hs=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oo=Us(e=>e?`on${Hs(e)}`:""),He=(e,t)=>!Object.is(e,t),gs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$a=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},js=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let nl;const Ks=()=>nl||(nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=Me(o)?Rd(o):Pn(o);if(s)for(const r in s)t[r]=s[r]}return t}else if(Me(e)||Se(e))return e}const Od=/;(?![^(]*\))/g,Td=/:([^]+)/,Id=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Rd(e){const t={};return e.replace(Id,n=>n.startsWith("/*")?"":n).split(Od).forEach(n=>{if(n){const o=n.split(Td);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Me(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(Se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function mo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Me(t)&&(e.class=Oe(t)),n&&(e.style=Pn(n)),e}const Md="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$d=pi(Md);function Ba(e){return!!e||e===""}function Bd(e,t,n){if(e.length!==t.length)return!1;let o=!0;for(let s=0;o&&s<e.length;s++)o=_t(e[s],t[s],n);return o}function ol(e,t,n){if(e.size!==t.size)return!1;const o=Array.from(t),s=new Uint8Array(o.length);for(const r of e){let i=-1;for(let l=0;l<o.length;l++)if(!s[l]&&_t(r,o[l],n)){i=l;break}if(i<0)return!1;s[i]=1}return!0}function Dd(e,t,n){let o=_n(e),s=_n(t);if(o||s||(o=on(e),s=on(t),o||s))return o&&s?ol(e,t,n):!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!_t(e[l],t[l],n))return!1}return String(e)===String(t)}function sl(e,t,n,o){n||(n=[new Map,new Map]);const[s,r]=n;if(s.has(e)||r.has(t))return s.get(e)===t&&r.get(t)===e;s.set(e,t),r.set(t,e);const i=o(e,t,n);return s.delete(e),r.delete(t),i}function _t(e,t,n){if(e===t)return!0;let o=tl(e),s=tl(t);return o||s?o&&s?e.getTime()===t.getTime():!1:(o=gt(e),s=gt(t),o||s?e===t:(o=ie(e),s=ie(t),o||s?o&&s?sl(e,t,n,Bd):!1:(o=Se(e),s=Se(t),o||s?!o||!s?!1:sl(e,t,n,Dd):String(e)===String(t))))}function mi(e,t){return e.findIndex(n=>_t(n,t))}const Da=e=>!!(e&&e.__v_isRef===!0),se=e=>Me(e)?e:e==null?"":ie(e)||Se(e)&&(e.toString===Ra||!pe(e.toString))?Da(e)?se(e.value):JSON.stringify(e,Na,2):String(e),Na=(e,t)=>Da(t)?Na(e,t.value):_n(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[vr(o,r)+" =>"]=s,n),{})}:on(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vr(n))}:gt(t)?vr(t):Se(t)&&!ie(t)&&!Ma(t)?String(t):t,vr=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.43
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Ve;class La{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ve&&(Ve.active?(this.parent=Ve,this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}const o=this.effects.slice();for(t=0,n=o.length;t<n;t++)o[t].resume()}}run(t){if(this._active){const n=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){++this._on===1&&(this.prevScope=Ve,Ve=this)}off(){if(this._on>0&&--this._on===0){if(Ve===this)Ve=this.prevScope;else{let t=Ve;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(n=0,o=s.length;n<o;n++)s[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function qa(e){return new La(e)}function gi(){return Ve}function Fa(e,t=!1){Ve&&Ve.cleanups.push(e)}let Ie;const yr=new WeakSet;class Va{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ve&&(Ve.active?Ve.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yr.has(this)&&(yr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ua(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,rl(this),Ha(this);const t=Ie,n=bt;Ie=this,bt=!0;try{return this.fn()}finally{ja(this),Ie=t,bt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bi(t);this.deps=this.depsTail=void 0,rl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zr(this)&&this.run()}get dirty(){return zr(this)}}let za=0,To,Io;function Ua(e,t=!1){if(e.flags|=8,t){e.next=Io,Io=e;return}e.next=To,To=e}function vi(){za++}function yi(){if(--za>0)return;if(Io){let t=Io;for(Io=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;To;){let t=To;for(To=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Ha(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ja(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),bi(o),Nd(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function zr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ka(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ka(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bo)||(e.globalVersion=Bo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zr(e))))return;e.flags|=2;const t=e.dep,n=Ie,o=bt;Ie=e,bt=!0;try{Ha(e);const s=e.fn(e._value);(t.version===0||He(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ie=n,bt=o,ja(e),e.flags&=-3}}function bi(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)bi(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Nd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let bt=!0;const Wa=[];function sn(){Wa.push(bt),bt=!1}function rn(){const e=Wa.pop();bt=e===void 0?!0:e}function rl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ie;Ie=void 0;try{t()}finally{Ie=n}}}let Bo=0;class Ld{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ws{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(!Ie||!bt||Ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ie)n=this.activeLink=new Ld(Ie,this),Ie.deps?(n.prevDep=Ie.depsTail,Ie.depsTail.nextDep=n,Ie.depsTail=n):Ie.deps=Ie.depsTail=n,Ga(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Ie.depsTail,n.nextDep=void 0,Ie.depsTail.nextDep=n,Ie.depsTail=n,Ie.deps===n&&(Ie.deps=o)}return n}trigger(t){this.version++,Bo++,this.notify(t)}notify(t){vi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yi()}}}function Ga(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Ga(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ws=new WeakMap,Fn=Symbol(""),Ur=Symbol(""),Do=Symbol("");function Xe(e,t,n){if(bt&&Ie){let o=ws.get(e);o||ws.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new Ws),s.map=o,s.key=n),s.track()}}function Xt(e,t,n,o,s,r){const i=ws.get(e);if(!i){Bo++;return}const l=a=>{a&&a.trigger()};if(vi(),t==="clear")i.forEach(l);else{const a=ie(e),c=a&&zs(n);if(a&&n==="length"){const u=Number(o);i.forEach((d,f)=>{(f==="length"||f===Do||!gt(f)&&f>=u)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(Do)),t){case"add":a?c&&l(i.get("length")):(l(i.get(Fn)),_n(e)&&l(i.get(Ur)));break;case"delete":a||(l(i.get(Fn)),_n(e)&&l(i.get(Ur)));break;case"set":_n(e)&&l(i.get(Fn));break}}yi()}function qd(e,t){const n=ws.get(e);return n&&n.get(t)}function Jn(e){const t=Ce(e);return t===e||(Xe(t,"iterate",Do),ht(e))?t:qt(e)?wn(e)?t.map(n=>Cn(yt(n))):t.map(Cn):t.map(yt)}function Gs(e){return Xe(e=Ce(e),"iterate",Do),e}function It(e,t){return qt(e)?Cn(wn(e)?yt(t):t):yt(t)}const Fd={__proto__:null,[Symbol.iterator](){return br(this,Symbol.iterator,e=>It(this,e))},concat(...e){return Jn(this).concat(...e.map(t=>ie(t)?Jn(t):t))},entries(){return br(this,"entries",e=>(e[1]=It(this,e[1]),e))},every(e,t){return Kt(this,"every",e,t,void 0,arguments)},filter(e,t){return Kt(this,"filter",e,t,n=>n.map(o=>It(this,o)),arguments)},find(e,t){return Kt(this,"find",e,t,n=>It(this,n),arguments)},findIndex(e,t){return Kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kt(this,"findLast",e,t,n=>It(this,n),arguments)},findLastIndex(e,t){return Kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return xr(this,"includes",e)},indexOf(...e){return xr(this,"indexOf",e)},join(e){return Jn(this).join(e)},lastIndexOf(...e){return xr(this,"lastIndexOf",e)},map(e,t){return Kt(this,"map",e,t,void 0,arguments)},pop(){return xo(this,"pop")},push(...e){return xo(this,"push",e)},reduce(e,...t){return il(this,"reduce",e,t)},reduceRight(e,...t){return il(this,"reduceRight",e,t)},shift(){return xo(this,"shift")},some(e,t){return Kt(this,"some",e,t,void 0,arguments)},splice(...e){return xo(this,"splice",e)},toReversed(){return Jn(this).toReversed()},toSorted(e){return Jn(this).toSorted(e)},toSpliced(...e){return Jn(this).toSpliced(...e)},unshift(...e){return xo(this,"unshift",e)},values(){return br(this,"values",e=>It(this,e))}};function br(e,t,n){const o=Gs(e),s=o[t]();return o!==e&&!ht(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const Vd=Array.prototype;function Kt(e,t,n,o,s,r){const i=Gs(e),l=i!==e&&!ht(e),a=i[t];if(a!==Vd[t]){const d=a.apply(e,r);return l?yt(d):d}let c=n;i!==e&&(l?c=function(d,f){return n.call(this,It(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=a.call(i,c,o);return l&&s?s(u):u}function il(e,t,n,o){const s=Gs(e),r=s!==e&&!ht(e);let i=n,l=!1;s!==e&&(r?(l=o.length===0,i=function(c,u,d){return l&&(l=!1,c=It(e,c)),n.call(this,c,It(e,u),d,e)}):n.length>3&&(i=function(c,u,d){return n.call(this,c,u,d,e)}));const a=s[t](i,...o);return l?It(e,a):a}function xr(e,t,n){const o=Ce(e);Xe(o,"iterate",Do);const s=o[t](...n);return(s===-1||s===!1)&&Xs(n[0])?(n[0]=Ce(n[0]),o[t](...n)):s}function xo(e,t,n=[]){sn(),vi();const o=Ce(e)[t].apply(e,n);return yi(),rn(),o}const zd=pi("__proto__,__v_isRef,__isVue"),Ja=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt));function Ud(e){gt(e)||(e=String(e));const t=Ce(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class Ya{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(s?r?nu:tu:r?eu:Qa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=ie(t);if(!s){let a;if(i&&(a=Fd[n]))return a;if(n==="hasOwnProperty")return Ud}const l=Reflect.get(t,n,Ne(t)?t:o);if((gt(n)?Ja.has(n):zd(n))||(s||Xe(t,"get",n),r))return l;if(Ne(l)){const a=i&&zs(n)?l:l.value;return s&&Se(a)?jr(a):a}return Se(l)?s?jr(l):ln(l):l}}class Xa extends Ya{constructor(t=!1){super(!1,t)}set(t,n,o,s){let r=t[n];const i=ie(t)&&zs(n);if(!this._isShallow){const c=qt(r);if(!ht(o)&&!qt(o)&&(r=Ce(r),o=Ce(o)),!i&&Ne(r)&&!Ne(o))return c||(r.value=o),!0}const l=i?Number(n)<t.length:Ae(t,n),a=Reflect.set(t,n,o,Ne(t)?t:s);return t===Ce(s)&&a&&(l?He(o,r)&&Xt(t,"set",n,o):Xt(t,"add",n,o)),a}deleteProperty(t,n){const o=Ae(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&o&&Xt(t,"delete",n,void 0),s}has(t,n){const o=Reflect.has(t,n);return(!gt(n)||!Ja.has(n))&&Xe(t,"has",n),o}ownKeys(t){return Xe(t,"iterate",ie(t)?"length":Fn),Reflect.ownKeys(t)}}class Za extends Ya{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hd=new Xa,jd=new Za,Kd=new Xa(!0),Wd=new Za(!0),Hr=e=>e,os=e=>Reflect.getPrototypeOf(e);function Gd(e,t,n){return function(...o){const s=this.__v_raw,r=Ce(s),i=_n(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=s[e](...o),u=n?Hr:t?Cn:yt;return!t&&Xe(r,"iterate",a?Ur:Fn),Ke(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function ss(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jd(e,t){const n={get(s){const r=this.__v_raw,i=Ce(r),l=Ce(s);e||(He(s,l)&&Xe(i,"get",s),Xe(i,"get",l));const{has:a}=os(i),c=t?Hr:e?Cn:yt;if(a.call(i,s))return c(r.get(s));if(a.call(i,l))return c(r.get(l));r!==i&&r.get(s)},get size(){const s=this.__v_raw;return!e&&Xe(Ce(s),"iterate",Fn),s.size},has(s){const r=this.__v_raw,i=Ce(r),l=Ce(s);return e||(He(s,l)&&Xe(i,"has",s),Xe(i,"has",l)),s===l?r.has(s):r.has(s)||r.has(l)},forEach(s,r){const i=this,l=i.__v_raw,a=Ce(l),c=t?Hr:e?Cn:yt;return!e&&Xe(a,"iterate",Fn),l.forEach((u,d)=>s.call(r,c(u),c(d),i))}};return Ke(n,e?{add:ss("add"),set:ss("set"),delete:ss("delete"),clear:ss("clear")}:{add(s){const r=Ce(this),i=os(r),l=Ce(s),a=!t&&!ht(s)&&!qt(s)?l:s;return i.has.call(r,a)||He(s,a)&&i.has.call(r,s)||He(l,a)&&i.has.call(r,l)||(r.add(a),Xt(r,"add",a,a)),this},set(s,r){!t&&!ht(r)&&!qt(r)&&(r=Ce(r));const i=Ce(this),{has:l,get:a}=os(i);let c=l.call(i,s);c||(s=Ce(s),c=l.call(i,s));const u=a.call(i,s);return i.set(s,r),c?He(r,u)&&Xt(i,"set",s,r):Xt(i,"add",s,r),this},delete(s){const r=Ce(this),{has:i,get:l}=os(r);let a=i.call(r,s);a||(s=Ce(s),a=i.call(r,s)),l&&l.call(r,s);const c=r.delete(s);return a&&Xt(r,"delete",s,void 0),c},clear(){const s=Ce(this),r=s.size!==0,i=s.clear();return r&&Xt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Gd(s,e,t)}),n}function Js(e,t){const n=Jd(e,t);return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Ae(n,s)&&s in o?n:o,s,r)}const Yd={get:Js(!1,!1)},Xd={get:Js(!1,!0)},Zd={get:Js(!0,!1)},Qd={get:Js(!0,!0)},Qa=new WeakMap,eu=new WeakMap,tu=new WeakMap,nu=new WeakMap;function ef(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ln(e){return qt(e)?e:Ys(e,!1,Hd,Yd,Qa)}function ou(e){return Ys(e,!1,Kd,Xd,eu)}function jr(e){return Ys(e,!0,jd,Zd,tu)}function Bn(e){return Ys(e,!0,Wd,Qd,nu)}function Ys(e,t,n,o,s){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=s.get(e);if(r)return r;const i=ef(Sd(e));if(i===0)return e;const l=new Proxy(e,i===2?o:n);return s.set(e,l),l}function wn(e){return qt(e)?wn(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function ht(e){return!!(e&&e.__v_isShallow)}function Xs(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function su(e){return!Ae(e,"__v_skip")&&Object.isExtensible(e)&&$a(e,"__v_skip",!0),e}const yt=e=>Se(e)?ln(e):e,Cn=e=>Se(e)?jr(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function L(e){return ru(e,!1)}function Go(e){return ru(e,!0)}function ru(e,t){return Ne(e)?e:new tf(e,t)}class tf{constructor(t,n){this.dep=new Ws,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||ht(t)||qt(t);t=o?t:Ce(t),He(t,n)&&(this._rawValue=t,this._value=o?t:yt(t),this.dep.trigger())}}function nf(e){e.dep&&e.dep.trigger()}function h(e){return Ne(e)?e.value:e}function lt(e){return pe(e)?e():h(e)}const of={get:(e,t,n)=>t==="__v_raw"?e:h(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Ne(s)&&!Ne(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function iu(e){return wn(e)?e:new Proxy(e,of)}class sf{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ws,{get:o,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function lu(e){return new sf(e)}function kn(e){const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=au(e,n);return t}class rf{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=gt(n)?n:String(n),this._raw=Ce(t);let s=!0,r=t;if(!ie(t)||gt(this._key)||!zs(this._key))do s=!Xs(r)||ht(r);while(s&&(r=r.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=h(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ne(this._raw[this._key])){const n=this._object[this._key];if(Ne(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return qd(this._raw,this._key)}}class lf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function af(e,t,n){return Ne(e)?e:pe(e)?new lf(e):Se(e)&&arguments.length>1?au(e,t,n):L(e)}function au(e,t,n){return new rf(e,t,n)}class uf{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ws(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return Ua(this,!0),!0}get value(){const t=this.dep.track();return Ka(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cf(e,t,n=!1){let o,s;return pe(e)?o=e:(o=e.get,s=e.set),new uf(o,s,n)}const rs={},Cs=new WeakMap;let Dn;function df(e,t=!1,n=Dn){if(n){let o=Cs.get(n);o||Cs.set(n,o=[]),o.push(e)}}function ff(e,t,n=xe){const{immediate:o,deep:s,once:r,scheduler:i,augmentJob:l,call:a}=n,c=O=>s?O:ht(O)||s===!1||s===0?Zt(O,1):Zt(O);let u,d,f,p,g=!1,m=!1;if(Ne(e)?(d=()=>e.value,g=ht(e)):wn(e)?(d=()=>c(e),g=!0):ie(e)?(m=!0,g=e.some(O=>wn(O)||ht(O)),d=()=>e.map(O=>{if(Ne(O))return O.value;if(wn(O))return c(O);if(pe(O))return a?a(O,2):O()})):pe(e)?t?d=a?()=>a(e,2):e:d=()=>{if(f){sn();try{f()}finally{rn()}}const O=Dn;Dn=u;try{return a?a(e,3,[p]):e(p)}finally{Dn=O}}:d=Lt,t&&s){const O=d,j=s===!0?1/0:s;d=()=>Zt(O(),j)}const y=gi(),_=()=>{u.stop(),y&&y.active&&hi(y.effects,u)};if(r&&t){const O=t;t=(...j)=>{const H=O(...j);return _(),H}}let w=m?new Array(e.length).fill(rs):rs;const E=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const j=u.run();if(O||s||g||(m?j.some((H,R)=>He(H,w[R])):He(j,w))){f&&f();const H=Dn;Dn=u;try{const R=[j,w===rs?void 0:m&&w[0]===rs?[]:w,p];w=j,a?a(t,3,R):t(...R)}finally{Dn=H}}}else u.run()};return l&&l(E),u=new Va(d),u.scheduler=i?()=>i(E,!1):E,p=O=>df(O,!1,u),f=u.onStop=()=>{const O=Cs.get(u);if(O){if(a)a(O,4);else for(const j of O)j();Cs.delete(u)}},t?o?E(!0):w=u.run():i?i(E.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Zt(e,t=1/0,n){if(t<=0||!Se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ne(e))Zt(e.value,t,n);else if(ie(e))for(let o=0;o<e.length;o++)Zt(e[o],t,n);else if(on(e)||_n(e))e.forEach(o=>{Zt(o,t,n)});else if(Ma(e)){for(const o in e)Zt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Zt(e[o],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.43
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Jo(e,t,n,o){try{return o?e(...o):e()}catch(s){Zs(s,t,n)}}function wt(e,t,n,o){if(pe(e)){const s=Jo(e,t,n,o);return s&&Ia(s)&&s.catch(r=>{Zs(r,t,n)}),s}if(ie(e)){const s=[];for(let r=0;r<e.length;r++)s.push(wt(e[r],t,n,o));return s}}function Zs(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||xe;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,c)===!1)return}l=l.parent}if(r){sn(),Jo(r,null,10,[e,a,c]),rn();return}}pf(e,n,s,o,i)}function pf(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}const rt=[];let Tt=-1;const no=[];let bn=null,Xn=0;const uu=Promise.resolve();let ks=null;function Qe(e){const t=ks||uu;return e?t.then(this?e.bind(this):e):t}function hf(e){let t=Tt+1,n=rt.length;for(;t<n;){const o=t+n>>>1,s=rt[o],r=No(s);r<e||r===e&&s.flags&2?t=o+1:n=o}return t}function xi(e){if(!(e.flags&1)){const t=No(e),n=rt[rt.length-1];!n||!(e.flags&2)&&t>=No(n)?rt.push(e):rt.splice(hf(t),0,e),e.flags|=1,cu()}}function cu(){ks||(ks=uu.then(fu))}function mf(e){if(!ie(e))bn&&e.id===-1?bn.splice(Xn+1,0,e):e.flags&1||(no.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)no.push(e[t]);cu()}function ll(e,t,n=Tt+1){for(;n<rt.length;n++){const o=rt[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;rt.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function du(e){if(no.length){const t=[...new Set(no)].sort((n,o)=>No(n)-No(o));if(no.length=0,bn){for(let n=0;n<t.length;n++)bn.push(t[n]);return}for(bn=t,Xn=0;Xn<bn.length;Xn++){const n=bn[Xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bn=null,Xn=0}}const No=e=>e.id==null?e.flags&2?-1:1/0:e.id;function fu(e){try{for(Tt=0;Tt<rt.length;Tt++){const t=rt[Tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Jo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Tt<rt.length;Tt++){const t=rt[Tt];t&&(t.flags&=-2)}Tt=-1,rt.length=0,du(),ks=null,(rt.length||no.length)&&fu()}}let Ge=null,pu=null;function As(e){const t=Ge;return Ge=e,pu=e&&e.type.__scopeId||null,t}function T(e,t=Ge,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ps(-1);const r=As(t),i=en.length;let l;try{l=e(...s)}finally{for(let a=en.length;a>i;a--)Ei();As(r),o._d&&Ps(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function Yo(e,t){if(Ge===null)return e;const n=sr(Ge),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,i,l,a=xe]=t[s];r&&(pe(r)&&(r={mounted:r,updated:r}),r.deep&&Zt(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Rn(e,t,n,o){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];r&&(l.oldValue=r[i].value);let a=l.dir[o];a&&(sn(),wt(a,n,8,[e.el,l,e,t]),rn())}}function oo(e,t){if(Ze){let n=Ze.provides;const o=Ze.parent&&Ze.parent.provides;o===n&&(n=Ze.provides=Object.create(o)),n[e]=t}}function mt(e,t,n=!1){const o=Ut();if(o||ro){let s=ro?ro._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&pe(t)?t.call(o&&o.proxy):t}}const gf=Symbol.for("v-scx"),vf=()=>mt(gf);function Ft(e,t){return Xo(e,null,t)}function hu(e,t){return Xo(e,null,{flush:"post"})}function yf(e,t){return Xo(e,null,{flush:"sync"})}function Te(e,t,n){return Xo(e,t,n)}function Xo(e,t,n=xe){const{immediate:o,deep:s,flush:r,once:i}=n,l=Ke({},n),a=t&&o||!t&&r!=="post";let c;if(Vo){if(r==="sync"){const p=vf();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=Lt,p.resume=Lt,p.pause=Lt,p}}const u=Ze;l.call=(p,g,m)=>wt(p,u,g,m);let d=!1;r==="post"?l.scheduler=p=>{nt(p,u&&u.suspense)}:r!=="sync"&&(d=!0,l.scheduler=(p,g)=>{g?p():xi(p)}),l.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=ff(e,t,l);return Vo&&(c?c.push(f):a&&f()),f}function bf(e,t,n){const o=this.proxy,s=Me(e)?e.includes(".")?mu(o,e):()=>o[e]:e.bind(o,o);let r;pe(t)?r=t:(r=t.handler,n=t);const i=Zo(this),l=Xo(s,r.bind(o),n);return i(),l}function mu(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}const vn=new WeakMap,gu=Symbol("_vte"),Qs=e=>e.__isTeleport,Nn=e=>e&&(e.disabled||e.disabled===""),xf=e=>e&&(e.defer||e.defer===""),al=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ul=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return Me(n)?t?t(n):null:n},_f={name:"Teleport",__isTeleport:!0,process(e,t,n,o,s,r,i,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:g,createText:m,createComment:y,parentNode:_}}=c,w=Nn(t.props);let{dynamicChildren:E}=t;const O=(R,K,ee)=>{R.shapeFlag&16&&u(R.children,K,ee,s,r,i,l,a)},j=(R=t)=>{const K=Nn(R.props),ee=R.target=Kr(R.props,g),U=Wr(ee,R,m,p);ee&&(i!=="svg"&&al(ee)?i="svg":i!=="mathml"&&ul(ee)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(ee),K||(O(R,ee,U),Ao(R,!1)))},H=R=>{const K=()=>{if(vn.get(R)===K){if(vn.delete(R),Nn(R.props)){const ee=_(R.el)||n;O(R,ee,R.anchor),Ao(R,!0)}j(R)}};vn.set(R,K),nt(K,r)};if(e==null){const R=t.el=m(""),K=t.anchor=m("");if(p(R,n,o),p(K,n,o),xf(t.props)||r&&r.pendingBranch){H(t);return}w&&(O(t,n,K),Ao(t,!0)),j()}else{t.el=e.el;const R=t.anchor=e.anchor,K=vn.get(e);if(K){K.flags|=8,vn.delete(e),H(t);return}t.targetStart=e.targetStart;const ee=t.target=e.target,U=t.targetAnchor=e.targetAnchor,N=Nn(e.props),$=N?n:ee,I=N?R:U;if(i==="svg"||al(ee)?i="svg":(i==="mathml"||ul(ee))&&(i="mathml"),E?(f(e.dynamicChildren,E,$,s,r,i,l),Si(e,t,!0)):a||d(e,t,$,I,s,r,i,l,!1),w)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):is(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=Kr(t.props,g);ne&&(t.target=ne,is(t,ne,null,c,0))}else N&&is(t,ee,U,c,1);Ao(t,w)}},remove(e,t,n,{um:o,o:{remove:s}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=Nn(f),g=r||!p,m=vn.get(e);if(m&&(m.flags|=8,vn.delete(e)),d&&(s(c),s(u)),r&&s(a),!m&&(p||d)&&i&16)for(let y=0;y<l.length;y++){const _=l[y];o(_,t,n,g,!!_.dynamicChildren)}},move:is,hydrate:wf};function is(e,t,n,{o:{insert:o},m:s},r=2){r===0&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:c,props:u}=e,d=r===2;if(d&&o(i,t,n),!vn.has(e)&&(!d||Nn(u))&&a&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&o(l,t,n)}function wf(e,t,n,o,s,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:c,createText:u}},d){function f(y,_){let w=_;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,y._lpa=t.targetAnchor&&i(t.targetAnchor);break}}w=i(w)}}function p(y,_){_.anchor=d(i(y),_,l(y),n,o,s,r)}const g=t.target=Kr(t.props,a),m=Nn(t.props);if(g){const y=g._lpa||g.firstChild;t.shapeFlag&16&&(m?(p(e,t),f(g,y),t.targetAnchor||Wr(g,t,u,c,l(e)===g?e:null)):(t.anchor=i(e),f(g,y),t.targetAnchor||Wr(g,t,u,c),d(y&&i(y),t,g,n,o,s,r))),Ao(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const vu=_f;function Ao(e,t){const n=e.ctx;if(n&&n.ut){let o,s;for(t?(o=e.el,s=e.anchor):(o=e.targetStart,s=e.targetAnchor);o&&o!==s;)o.nodeType===1&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function Wr(e,t,n,o,s=null){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[gu]=i,e&&(o(r,e,s),o(i,e,s)),i}const _r=Symbol("_leaveCb");function Cf(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ct){t=n;break}}return t}function yu(e){if(!wi(e))return Qs(e.type)&&e.children?Cf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function _i(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;_i(Qs(n.type)&&yu(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function X(e,t){return pe(e)?Ke({name:e.name},t,{setup:e}):e}function wr(){const e=Ut();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function bu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ss=new WeakMap;function Ro(e,t,n,o,s=!1){if(ie(e)){e.forEach((m,y)=>Ro(m,t&&(ie(t)?t[y]:t),n,o,s));return}if(so(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Ro(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?sr(o.component):o.el,i=s?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===xe?l.refs={}:l.refs,d=l.setupState,f=Ce(d),p=d===xe?Ta:m=>cl(u,m)?!1:Ae(f,m),g=(m,y)=>!(y&&cl(u,y));if(c!=null&&c!==a){if(dl(t),Me(c))u[c]=null,p(c)&&(d[c]=null);else if(Ne(c)){const m=t;g(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(pe(a))Jo(a,l,12,[i,u]);else{const m=Me(a),y=Ne(a);if(m||y){const _=()=>{if(e.f){const w=m?p(a)?d[a]:u[a]:g()||!e.k?a.value:u[e.k];if(s)ie(w)&&hi(w,r);else if(ie(w))w.includes(r)||w.push(r);else if(m)u[a]=[r],p(a)&&(d[a]=u[a]);else{const E=[r];g(a,e.k)&&(a.value=E),e.k&&(u[e.k]=E)}}else m?(u[a]=i,p(a)&&(d[a]=i)):y&&(g(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const w=()=>{_(),Ss.delete(e)};w.id=-1,Ss.set(e,w),nt(w,n)}else dl(e),_()}}}function dl(e){const t=Ss.get(e);t&&(t.flags|=8,Ss.delete(e))}Ks().requestIdleCallback;Ks().cancelIdleCallback;const so=e=>!!e.type.__asyncLoader,wi=e=>e.type.__isKeepAlive;function kf(e,t){xu(e,"a",t)}function Af(e,t){xu(e,"da",t)}function xu(e,t,n=Ze){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(er(t,o,n),n){let s=n.parent;for(;s&&s.parent;)wi(s.parent.vnode)&&Sf(o,t,n,s),s=s.parent}}function Sf(e,t,n,o){const s=er(t,e,o,!0);Kn(()=>{hi(o[t],s)},n)}function er(e,t,n=Ze,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{sn();const l=Zo(n),a=wt(t,n,e,i);return l(),rn(),a});return o?s.unshift(r):s.push(r),r}}const dn=e=>(t,n=Ze)=>{(!Vo||e==="sp")&&er(e,(...o)=>t(...o),n)},Ef=dn("bm"),vt=dn("m"),Pf=dn("bu"),_u=dn("u"),Ci=dn("bum"),Kn=dn("um"),Of=dn("sp"),Tf=dn("rtg"),If=dn("rtc");function Rf(e,t=Ze){er("ec",e,t)}const Mf="components",wu=Symbol.for("v-ndc");function tr(e){return Me(e)?$f(Mf,e,!1)||e:e||wu}function $f(e,t,n=!0,o=!1){const s=Ge||Ze;if(s){const r=s.type;{const l=bp(r,!1);if(l&&(l===t||l===je(t)||l===Hs(je(t))))return r}const i=fl(s[e]||r[e],t)||fl(s.appContext[e],t);return!i&&o?r:i}}function fl(e,t){return e&&(e[t]||e[je(t)]||e[Hs(je(t))])}function an(e,t,n,o){let s;const r=n,i=ie(e);if(i||Me(e)){const l=i&&wn(e);let a=!1,c=!1;l&&(a=!ht(e),c=qt(e),e=Gs(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(a?c?Cn(yt(e[u])):yt(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,r)}else if(Se(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];s[a]=t(e[u],u,a,r)}}else s=[];return s}function ue(e,t,n,o,s,r){if(n==null&&(n={}),Ge.ce||Ge.parent&&so(Ge.parent)&&Ge.parent.ce){const c=n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),k(),Z(be,null,[S("slot",c,o)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=en.length;k();let a;try{const c=i&&Cu(i(n)),u=n.key||r||c&&c.key;a=Z(be,{key:(u&&!gt(u)?u:`_${t}`)+(!c&&o?"_fb":"")},c||(o?o():[]),c&&e._===1?64:-2)}catch(c){for(let u=en.length;u>l;u--)Ei();throw c}finally{i&&i._c&&(i._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function Cu(e){return e.some(t=>qo(t)?!(t.type===Ct||t.type===be&&!Cu(t.children)):!0)?e:null}function Bf(e,t){const n={};for(const o in e)n[Oo(o)]=e[o];return n}const Gr=e=>e?Uu(e)?sr(e):Gr(e.parent):null,Mo=Ke(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=>Gr(e.parent),$root:e=>Gr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Au(e),$forceUpdate:e=>e.f||(e.f=()=>{xi(e.update)}),$nextTick:e=>e.n||(e.n=Qe.bind(e.proxy)),$watch:e=>bf.bind(e)}),Cr=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ae(e,t),Df={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:r,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const f=i[t];if(f!==void 0)switch(f){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(Cr(o,t))return i[t]=1,o[t];if(s!==xe&&Ae(s,t))return i[t]=2,s[t];if(Ae(r,t))return i[t]=3,r[t];if(n!==xe&&Ae(n,t))return i[t]=4,n[t];Jr&&(i[t]=0)}}const c=Mo[t];let u,d;if(c)return t==="$attrs"&&Xe(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==xe&&Ae(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,Ae(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return Cr(s,t)?(s[t]=n,!0):o!==xe&&Ae(o,t)?(o[t]=n,!0):Ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:r,type:i}},l){let a;return!!(n[l]||e!==xe&&l[0]!=="$"&&Ae(e,l)||Cr(t,l)||Ae(r,l)||Ae(o,l)||Ae(Mo,l)||Ae(s.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Lo(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Nf(e,t){const n=Lo(e);for(const o in t){if(o.startsWith("__skip"))continue;let s=n[o];s?ie(s)||pe(s)?s=n[o]={type:s,default:t[o]}:s.default=t[o]:s===null&&(s=n[o]={default:t[o]}),s&&t[`__skip_${o}`]&&(s.skipFactory=!0)}return n}function Lf(e,t){return!e||!t?e||t:ie(e)&&ie(t)?e.concat(t):Ke({},Lo(e),Lo(t))}let Jr=!0;function qf(e){const t=Au(e),n=e.proxy,o=e.ctx;Jr=!1,t.beforeCreate&&pl(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:m,deactivated:y,beforeDestroy:_,beforeUnmount:w,destroyed:E,unmounted:O,render:j,renderTracked:H,renderTriggered:R,errorCaptured:K,serverPrefetch:ee,expose:U,inheritAttrs:N,components:$,directives:I,filters:ne}=t;if(c&&Ff(c,o,null),i)for(const fe in i){const ce=i[fe];pe(ce)&&(o[fe]=ce.bind(n))}if(s){const fe=s.call(n,n);Se(fe)&&(e.data=ln(fe))}if(Jr=!0,r)for(const fe in r){const ce=r[fe],_e=pe(ce)?ce.bind(n,n):pe(ce.get)?ce.get.bind(n,n):Lt,et=!pe(ce)&&pe(ce.set)?ce.set.bind(n):Lt,Be=q({get:_e,set:et});Object.defineProperty(o,fe,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ue=>Be.value=Ue})}if(l)for(const fe in l)ku(l[fe],o,n,fe);if(a){const fe=pe(a)?a.call(n):a;Reflect.ownKeys(fe).forEach(ce=>{oo(ce,fe[ce])})}u&&pl(u,e,"c");function re(fe,ce){ie(ce)?ce.forEach(_e=>fe(_e.bind(n))):ce&&fe(ce.bind(n))}if(re(Ef,d),re(vt,f),re(Pf,p),re(_u,g),re(kf,m),re(Af,y),re(Rf,K),re(If,H),re(Tf,R),re(Ci,w),re(Kn,O),re(Of,ee),ie(U))if(U.length){const fe=e.exposed||(e.exposed={});U.forEach(ce=>{Object.defineProperty(fe,ce,{get:()=>n[ce],set:_e=>n[ce]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===Lt&&(e.render=j),N!=null&&(e.inheritAttrs=N),$&&(e.components=$),I&&(e.directives=I),ee&&bu(e)}function Ff(e,t,n=Lt){ie(e)&&(e=Yr(e));for(const o in e){const s=e[o];let r;Se(s)?"default"in s?r=mt(s.from||o,s.default,!0):r=mt(s.from||o):r=mt(s),Ne(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[o]=r}}function pl(e,t,n){wt(ie(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ku(e,t,n,o){let s=o.includes(".")?mu(n,o):()=>n[o];if(Me(e)){const r=t[e];pe(r)&&Te(s,r)}else if(pe(e))Te(s,e.bind(n));else if(Se(e))if(ie(e))e.forEach(r=>ku(r,t,n,o));else{const r=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(r)&&Te(s,r,e)}}function Au(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!n&&!o?a=t:(a={},s.length&&s.forEach(c=>Es(a,c,i,!0)),Es(a,t,i)),Se(t)&&r.set(t,a),a}function Es(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&Es(e,r,n,!0),s&&s.forEach(i=>Es(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=Vf[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Vf={data:hl,props:ml,emits:ml,methods:So,computed:So,beforeCreate:tt,created:tt,beforeMount:tt,mounted:tt,beforeUpdate:tt,updated:tt,beforeDestroy:tt,beforeUnmount:tt,destroyed:tt,unmounted:tt,activated:tt,deactivated:tt,errorCaptured:tt,serverPrefetch:tt,components:So,directives:So,watch:Uf,provide:hl,inject:zf};function hl(e,t){return t?e?function(){return Ke(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function zf(e,t){return So(Yr(e),Yr(t))}function Yr(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function tt(e,t){return e?[...new Set([].concat(e,t))]:t}function So(e,t){return e?Ke(Object.create(null),e,t):t}function ml(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:Ke(Object.create(null),Lo(e),Lo(t??{})):t}function Uf(e,t){if(!e)return t;if(!t)return e;const n=Ke(Object.create(null),e);for(const o in t)n[o]=tt(e[o],t[o]);return n}function Su(){return{app:null,config:{isNativeTag:Ta,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 Hf=0;function jf(e,t){return function(o,s=null){pe(o)||(o=Ke({},o)),s!=null&&!Se(s)&&(s=null);const r=Su(),i=new WeakSet,l=[];let a=!1;const c=r.app={_uid:Hf++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:Cp,get config(){return r.config},set config(u){},use(u,...d){return i.has(u)||(u&&pe(u.install)?(i.add(u),u.install(c,...d)):pe(u)&&(i.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,f){if(!a){const p=c._ceVNode||S(o,s);return p.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),a=!0,c._container=u,u.__vue_app__=c,sr(p.component)}},onUnmount(u){l.push(u)},unmount(){a&&(wt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c},runWithContext(u){const d=ro;ro=c;try{return u()}finally{ro=d}}};return c}}let ro=null;function Kf(e,t,n=xe){const o=Ut(),s=je(t),r=cn(t),i=Eu(e,s),l=lu((a,c)=>{let u,d=xe,f;return yf(()=>{const p=e[s];He(u,p)&&(u=p,c())}),{get(){return a(),n.get?n.get(u):u},set(p){const g=n.set?n.set(p):p;if(!He(g,u)&&!(d!==xe&&He(p,d)))return;const m=o.vnode.props,y=!!(m&&(t in m||s in m||r in m)&&(`onUpdate:${t}`in m||`onUpdate:${s}`in m||`onUpdate:${r}`in m));y||(u=p,c()),o.emit(`update:${t}`,g),He(p,d)&&(He(p,g)&&!He(g,f)||y&&d!==xe&&!He(g,u))&&c(),d=p,f=g}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||xe:l,done:!1}:{done:!0}}}},l}const Eu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${cn(t)}Modifiers`];function Wf(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||xe;let s=n;const r=t.startsWith("update:"),i=r&&Eu(o,t.slice(7));i&&(i.trim&&(s=n.map(u=>Me(u)?u.trim():u)),i.number&&(s=s.map(js)));let l,a=o[l=Oo(t)]||o[l=Oo(je(t))];!a&&r&&(a=o[l=Oo(cn(t))]),a&&wt(a,e,6,s);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,wt(c,e,6,s)}}const Gf=new WeakMap;function Pu(e,t,n=!1){const o=n?Gf:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},l=!1;if(!pe(e)){const a=c=>{const u=Pu(c,t,!0);u&&(l=!0,Ke(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(Se(e)&&o.set(e,null),null):(ie(r)?r.forEach(a=>i[a]=null):Ke(i,r),Se(e)&&o.set(e,i),i)}function nr(e,t){return!e||!Fs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ae(e,t[0].toLowerCase()+t.slice(1))||Ae(e,cn(t))||Ae(e,t))}function gl(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[r],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:g,inheritAttrs:m}=e,y=As(e);let _,w;try{if(n.shapeFlag&4){const O=s||o,j=O;_=Rt(c.call(j,O,u,d,p,f,g)),w=l}else{const O=t;_=Rt(O.length>1?O(d,{attrs:l,slots:i,emit:a}):O(d,null)),w=t.props?l:Jf(l)}}catch(O){en.length=0,Zs(O,e,1),_=S(Ct)}let E=_;if(w&&m!==!1){const O=Object.keys(w),{shapeFlag:j}=E;O.length&&j&7&&(r&&O.some(Vs)&&(w=Yf(w,r)),E=Vn(E,w,!1,!0))}if(n.dirs&&(E=Vn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){const O=Qs(E.type)&&yu(E)||E;_i(O,n.transition)}return _=E,As(y),_}const Jf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Fs(n))&&((t||(t={}))[n]=e[n]);return t},Yf=(e,t)=>{const n={};for(const o in e)(!Vs(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xf(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?vl(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(Ou(i,o,f)&&!nr(c,f))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?vl(o,i,c):!0:!!i;return!1}function vl(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const r=o[s];if(Ou(t,e,r)&&!nr(n,r))return!0}return!1}function Ou(e,t,n){const o=e[n],s=t[n];return n==="style"&&Se(o)&&Se(s)?!_t(o,s):o!==s}function Zf({vnode:e,parent:t,suspense:n},o){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=o,e=s),s===e)(e=t.vnode).el=o,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=o)}const Tu={},Iu=()=>Object.create(Tu),Ru=e=>Object.getPrototypeOf(e)===Tu;function Qf(e,t,n,o=!1){const s={},r=Iu();e.propsDefaults=Object.create(null),Mu(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:ou(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function ep(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,l=Ce(s),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(nr(e.emitsOptions,f))continue;const p=t[f];if(a)if(Ae(r,f))p!==r[f]&&(r[f]=p,c=!0);else{const g=je(f);s[g]=Xr(a,l,g,p,e,!1)}else p!==r[f]&&(r[f]=p,c=!0)}}}else{Mu(e,t,s,r)&&(c=!0);let u;for(const d in l)(!t||!Ae(t,d)&&((u=cn(d))===d||!Ae(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=Xr(a,l,d,void 0,e,!0)):delete s[d]);if(r!==l)for(const d in r)(!t||!Ae(t,d))&&(delete r[d],c=!0)}c&&Xt(e.attrs,"set","")}function Mu(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Po(a))continue;const c=t[a];let u;s&&Ae(s,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:nr(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(r){const a=Ce(n),c=l||xe;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Xr(s,a,d,c[d],e,!Ae(c,d))}}return i}function Xr(e,t,n,o,s,r){const i=e[n];if(i!=null){const l=Ae(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&pe(a)){const{propsDefaults:c}=s;if(n in c)o=c[n];else{const u=Zo(s);o=c[n]=a.call(null,t),u()}}else o=a;s.ce&&s.ce._setProp(n,o)}i[0]&&(r&&!l?o=!1:i[1]&&(o===""||o===cn(n))&&(o=!0))}return o}const tp=new WeakMap;function $u(e,t,n=!1){const o=n?tp:t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},l=[];let a=!1;if(!pe(e)){const u=d=>{a=!0;const[f,p]=$u(d,t,!0);Ke(i,f),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return Se(e)&&o.set(e,Ln),Ln;if(ie(r))for(let u=0;u<r.length;u++){const d=je(r[u]);yl(d)&&(i[d]=xe)}else if(r)for(const u in r){const d=je(u);if(yl(d)){const f=r[u],p=i[d]=ie(f)||pe(f)?{type:f}:Ke({},f),g=p.type;let m=!1,y=!0;if(ie(g))for(let _=0;_<g.length;++_){const w=g[_],E=pe(w)&&w.name;if(E==="Boolean"){m=!0;break}else E==="String"&&(y=!1)}else m=pe(g)&&g.name==="Boolean";p[0]=m,p[1]=y,(m||Ae(p,"default"))&&l.push(d)}}const c=[i,l];return Se(e)&&o.set(e,c),c}function yl(e){return e[0]!=="$"&&!Po(e)}const ki=e=>e==="_"||e==="_ctx"||e==="$stable",Ai=e=>ie(e)?e.map(Rt):[Rt(e)],np=(e,t,n)=>{if(t._n)return t;const o=T((...s)=>Ai(t(...s)),n);return o._c=!1,o},Bu=(e,t,n)=>{const o=e._ctx;for(const s in e){if(ki(s))continue;const r=e[s];if(pe(r))t[s]=np(s,r,o);else if(r!=null){const i=Ai(r);t[s]=()=>i}}},Du=(e,t)=>{const n=Ai(t);e.slots.default=()=>n},Nu=(e,t,n)=>{for(const o in t)(n||!ki(o))&&(e[o]=t[o])},op=(e,t,n)=>{const o=e.slots=Iu();if(e.vnode.shapeFlag&32){const s=t._;s?(Nu(o,t,n),n&&$a(o,"_",s,!0)):Bu(t,o)}else t&&Du(e,t)},sp=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,i=xe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:Nu(s,t,n):(r=!t.$stable,Bu(t,s)),i=t}else t&&(Du(e,t),i={default:1});if(r)for(const l in s)!ki(l)&&i[l]==null&&delete s[l]},nt=up;function rp(e){return ip(e)}function ip(e,t){const n=Ks();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Lt,insertStaticContent:g}=e,m=(v,b,x,M=null,D=null,B=null,J=void 0,G=null,W=!!b.dynamicChildren)=>{if(v===b)return;v&&!_o(v,b)&&(M=A(v),Ue(v,D,B,!0),v=null),b.patchFlag===-2&&(W=!1,b.dynamicChildren=null),b.dynamicChildren&&v&&v.dynamicChildren&&v.dynamicChildren.hasOnce&&(b.dynamicChildren===Ln&&(b.dynamicChildren=[]),b.dynamicChildren.hasOnce=!0);const{type:F,ref:de,shapeFlag:te}=b;switch(F){case or:y(v,b,x,M);break;case Ct:_(v,b,x,M);break;case vs:v==null&&w(b,x,M,J);break;case be:$(v,b,x,M,D,B,J,G,W);break;default:te&1?j(v,b,x,M,D,B,J,G,W):te&6?I(v,b,x,M,D,B,J,G,W):(te&64||te&128)&&F.process(v,b,x,M,D,B,J,G,W,Q)}de!=null&&D?Ro(de,v&&v.ref,B,b||v,!b):de==null&&v&&v.ref!=null&&Ro(v.ref,null,B,v,!0)},y=(v,b,x,M)=>{if(v==null)o(b.el=l(b.children),x,M);else{const D=b.el=v.el;b.children!==v.children&&c(D,b.children)}},_=(v,b,x,M)=>{v==null?o(b.el=a(b.children||""),x,M):b.el=v.el},w=(v,b,x,M)=>{[v.el,v.anchor]=g(v.children,b,x,M,v.el,v.anchor)},E=({el:v,anchor:b},x,M)=>{let D;for(;v&&v!==b;)D=f(v),o(v,x,M),v=D;o(b,x,M)},O=({el:v,anchor:b})=>{let x;for(;v&&v!==b;)x=f(v),s(v),v=x;s(b)},j=(v,b,x,M,D,B,J,G,W)=>{if(b.type==="svg"?J="svg":b.type==="math"&&(J="mathml"),v==null)H(b,x,M,D,B,J,G,W);else{const F=v.el&&v.el._isVueCE?v.el:null;try{F&&F._beginPatch(),ee(v,b,D,B,J,G,W)}finally{F&&F._endPatch()}}},H=(v,b,x,M,D,B,J,G)=>{let W,F;const{props:de,shapeFlag:te,transition:ae,dirs:he}=v;if(W=v.el=i(v.type,B,de&&de.is,de),te&8?u(W,v.children):te&16&&K(v.children,W,null,M,D,kr(v,B),J,G),he&&Rn(v,null,M,"created"),R(W,v,v.scopeId,J,M),de){for(const Pe in de)Pe!=="value"&&!Po(Pe)&&r(W,Pe,null,de[Pe],B,M);"value"in de&&r(W,"value",null,de.value,B),(F=de.onVnodeBeforeMount)&&Ot(F,M,v)}he&&Rn(v,null,M,"beforeMount");const ye=lp(D,ae);ye&&ae.beforeEnter(W),o(W,b,x),((F=de&&de.onVnodeMounted)||ye||he)&&nt(()=>{try{F&&Ot(F,M,v),ye&&ae.enter(W),he&&Rn(v,null,M,"mounted")}finally{}},D)},R=(v,b,x,M,D)=>{if(x&&p(v,x),M)for(let B=0;B<M.length;B++)p(v,M[B]);if(D){let B=D.subTree;if(b===B||Fu(B.type)&&(B.ssContent===b||B.ssFallback===b)){const J=D.vnode;R(v,J,J.scopeId,J.slotScopeIds,D.parent)}}},K=(v,b,x,M,D,B,J,G,W=0)=>{for(let F=W;F<v.length;F++){const de=v[F]=G?Yt(v[F]):Rt(v[F]);m(null,de,b,x,M,D,B,J,G)}},ee=(v,b,x,M,D,B,J)=>{const G=b.el=v.el;let{patchFlag:W,dynamicChildren:F,dirs:de}=b;W|=v.patchFlag&16;const te=v.props||xe,ae=b.props||xe;let he;if(x&&Mn(x,!1),(he=ae.onVnodeBeforeUpdate)&&Ot(he,x,b,v),de&&Rn(b,v,x,"beforeUpdate"),x&&Mn(x,!0),F&&(!v.dynamicChildren||v.dynamicChildren.length!==F.length)&&(W=0,J=!1,F=null),(te.innerHTML&&ae.innerHTML==null||te.textContent&&ae.textContent==null)&&u(G,""),F?U(v.dynamicChildren,F,G,x,M,kr(b,D),B):J||ce(v,b,G,null,x,M,kr(b,D),B,!1),W>0){if(W&16)N(G,te,ae,x,D);else if(W&2&&te.class!==ae.class&&r(G,"class",null,ae.class,D),W&4&&r(G,"style",te.style,ae.style,D),W&8){const ye=b.dynamicProps;for(let Pe=0;Pe<ye.length;Pe++){const Ee=ye[Pe],qe=te[Ee],We=ae[Ee];(We!==qe||Ee==="value")&&r(G,Ee,qe,We,D,x)}}W&1&&v.children!==b.children&&u(G,b.children)}else!J&&F==null&&N(G,te,ae,x,D);((he=ae.onVnodeUpdated)||de)&&nt(()=>{he&&Ot(he,x,b,v),de&&Rn(b,v,x,"updated")},M)},U=(v,b,x,M,D,B,J)=>{for(let G=0;G<b.length;G++){const W=v[G],F=b[G],de=W.el&&(W.type===be||!_o(W,F)||W.shapeFlag&198)?d(W.el):x;m(W,F,de,null,M,D,B,J,!0)}},N=(v,b,x,M,D)=>{if(b!==x){if(b!==xe)for(const B in b)!Po(B)&&!(B in x)&&r(v,B,b[B],null,D,M);for(const B in x){if(Po(B))continue;const J=x[B],G=b[B];J!==G&&B!=="value"&&r(v,B,G,J,D,M)}"value"in x&&r(v,"value",b.value,x.value,D)}},$=(v,b,x,M,D,B,J,G,W)=>{const F=b.el=v?v.el:l(""),de=b.anchor=v?v.anchor:l("");let{patchFlag:te,dynamicChildren:ae,slotScopeIds:he}=b;he&&(G=G?G.concat(he):he),v==null?(o(F,x,M),o(de,x,M),K(b.children||[],x,de,D,B,J,G,W)):te>0&&te&64&&ae&&v.dynamicChildren&&v.dynamicChildren.length===ae.length?(U(v.dynamicChildren,ae,x,D,B,J,G),(b.key!=null||D&&b===D.subTree)&&Si(v,b,!0)):ce(v,b,x,de,D,B,J,G,W)},I=(v,b,x,M,D,B,J,G,W)=>{b.slotScopeIds=G,v==null?b.shapeFlag&512?D.ctx.activate(b,x,M,J,W):ne(b,x,M,D,B,J,W):oe(v,b,W)},ne=(v,b,x,M,D,B,J)=>{const G=v.component=hp(v,M,D);if(wi(v)&&(G.ctx.renderer=Q),mp(G,!1,J),G.asyncDep){if(D&&D.registerDep(G,re,J),!v.el){const W=G.subTree=S(Ct);_(null,W,b,x),v.placeholder=W.el}}else re(G,v,b,x,D,B,J)},oe=(v,b,x)=>{const M=b.component=v.component;if(Xf(v,b,x))if(M.asyncDep&&!M.asyncResolved){b.el=v.el,fe(M,b,x);return}else M.next=b,M.update();else b.el=v.el,M.vnode=b},re=(v,b,x,M,D,B,J)=>{const G=()=>{if(v.isMounted){let{next:te,bu:ae,u:he,parent:ye,vnode:Pe}=v;{const Et=Lu(v);if(Et){te&&(te.el=Pe.el,fe(v,te,J)),Et.asyncDep.then(()=>{nt(()=>{v.isUnmounted||F()},D)});return}}let Ee=te,qe;Mn(v,!1),te?(te.el=Pe.el,fe(v,te,J)):te=Pe,ae&&gs(ae),(qe=te.props&&te.props.onVnodeBeforeUpdate)&&Ot(qe,ye,te,Pe),Mn(v,!0);const We=gl(v),St=v.subTree;v.subTree=We,m(St,We,d(St.el),A(St),v,D,B),te.el=We.el,Ee===null&&Zf(v,We.el),he&&nt(he,D),(qe=te.props&&te.props.onVnodeUpdated)&&nt(()=>Ot(qe,ye,te,Pe),D)}else{let te;const{el:ae,props:he}=b,{bm:ye,m:Pe,parent:Ee,root:qe,type:We}=v,St=so(b);Mn(v,!1),ye&&gs(ye),!St&&(te=he&&he.onVnodeBeforeMount)&&Ot(te,Ee,b),Mn(v,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(We,v.parent?v.parent.type:void 0);const Et=v.subTree=gl(v);m(null,Et,x,M,v,D,B),b.el=Et.el}if(Pe&&nt(Pe,D),!St&&(te=he&&he.onVnodeMounted)){const Et=b;nt(()=>Ot(te,Ee,Et),D)}(b.shapeFlag&256||Ee&&so(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&v.a&&nt(v.a,D),v.isMounted=!0,b=x=M=null}};v.scope.on();const W=v.effect=new Va(G);v.scope.off();const F=v.update=W.run.bind(W),de=v.job=W.runIfDirty.bind(W);de.i=v,de.id=v.uid,W.scheduler=()=>xi(de),Mn(v,!0),F()},fe=(v,b,x)=>{b.component=v;const M=v.vnode.props;v.vnode=b,v.next=null,ep(v,b.props,M,x),sp(v,b.children,x),sn(),ll(v),rn()},ce=(v,b,x,M,D,B,J,G,W=!1)=>{const F=v&&v.children,de=v?v.shapeFlag:0,te=b.children,{patchFlag:ae,shapeFlag:he}=b;if(ae>0){if(ae&128){et(F,te,x,M,D,B,J,G,W);return}else if(ae&256){_e(F,te,x,M,D,B,J,G,W);return}}he&8?(de&16&&at(F,D,B),te!==F&&u(x,te)):de&16?he&16?et(F,te,x,M,D,B,J,G,W):at(F,D,B,!0):(de&8&&u(x,""),he&16&&K(te,x,M,D,B,J,G,W))},_e=(v,b,x,M,D,B,J,G,W)=>{v=v||Ln,b=b||Ln;const F=v.length,de=b.length,te=Math.min(F,de);let ae;for(ae=0;ae<te;ae++){const he=b[ae]=W?Yt(b[ae]):Rt(b[ae]);m(v[ae],he,x,null,D,B,J,G,W)}F>de?at(v,D,B,!0,!1,te):K(b,x,M,D,B,J,G,W,te)},et=(v,b,x,M,D,B,J,G,W)=>{let F=0;const de=b.length;let te=v.length-1,ae=de-1;for(;F<=te&&F<=ae;){const he=v[F],ye=b[F]=W?Yt(b[F]):Rt(b[F]);if(_o(he,ye))m(he,ye,x,null,D,B,J,G,W);else break;F++}for(;F<=te&&F<=ae;){const he=v[te],ye=b[ae]=W?Yt(b[ae]):Rt(b[ae]);if(_o(he,ye))m(he,ye,x,null,D,B,J,G,W);else break;te--,ae--}if(F>te){if(F<=ae){const he=ae+1,ye=he<de?b[he].el:M;for(;F<=ae;)m(null,b[F]=W?Yt(b[F]):Rt(b[F]),x,ye,D,B,J,G,W),F++}}else if(F>ae)for(;F<=te;)Ue(v[F],D,B,!0),F++;else{const he=F,ye=F,Pe=new Map;for(F=ye;F<=ae;F++){const dt=b[F]=W?Yt(b[F]):Rt(b[F]);dt.key!=null&&Pe.set(dt.key,F)}let Ee,qe=0;const We=ae-ye+1;let St=!1,Et=0;const bo=new Array(We);for(F=0;F<We;F++)bo[F]=0;for(F=he;F<=te;F++){const dt=v[F];if(qe>=We){Ue(dt,D,B,!0);continue}let Pt;if(dt.key!=null)Pt=Pe.get(dt.key);else for(Ee=ye;Ee<=ae;Ee++)if(bo[Ee-ye]===0&&_o(dt,b[Ee])){Pt=Ee;break}Pt===void 0?Ue(dt,D,B,!0):(bo[Pt-ye]=F+1,Pt>=Et?Et=Pt:St=!0,m(dt,b[Pt],x,null,D,B,J,G,W),qe++)}const Zi=St?ap(bo):Ln;for(Ee=Zi.length-1,F=We-1;F>=0;F--){const dt=ye+F,Pt=b[dt],Qi=b[dt+1],el=dt+1<de?Qi.el||qu(Qi):M;bo[F]===0?m(null,Pt,x,el,D,B,J,G,W):St&&(Ee<0||F!==Zi[Ee]?Be(Pt,x,el,2):Ee--)}}},Be=(v,b,x,M,D=null)=>{const{el:B,type:J,transition:G,children:W,shapeFlag:F}=v;if(F&6){Be(v.component.subTree,b,x,M);return}if(F&128){v.suspense.move(b,x,M);return}if(F&64){J.move(v,b,x,Q);return}if(J===be){o(B,b,x);for(let te=0;te<W.length;te++)Be(W[te],b,x,M);o(v.anchor,b,x);return}if(J===vs){E(v,b,x);return}if(M!==2&&F&1&&G)if(M===0)G.persisted&&!B[_r]?o(B,b,x):(G.beforeEnter(B),o(B,b,x),nt(()=>G.enter(B),D));else{const{leave:te,delayLeave:ae,afterLeave:he}=G,ye=()=>{v.ctx.isUnmounted?s(B):o(B,b,x)},Pe=()=>{const Ee=B._isLeaving||!!B[_r];B._isLeaving&&B[_r](!0),G.persisted&&!Ee?ye():te(B,()=>{ye(),he&&he()})};ae?ae(B,ye,Pe):Pe()}else o(B,b,x)},Ue=(v,b,x,M=!1,D=!1)=>{const{type:B,props:J,ref:G,children:W,dynamicChildren:F,shapeFlag:de,patchFlag:te,dirs:ae,cacheIndex:he,memo:ye}=v;if((te===-2||F&&F.hasOnce)&&(D=!1),G!=null&&(sn(),Ro(G,null,x,v,!0),rn()),he!=null&&(!v.ctx||v.ctx===b)&&(b.renderCache[he]=void 0),de&256){b.ctx.deactivate(v);return}const Pe=de&1&&ae,Ee=!so(v);let qe;if(Ee&&(qe=J&&J.onVnodeBeforeUnmount)&&Ot(qe,b,v),de&6)jt(v.component,x,M);else{if(de&128){v.suspense.unmount(x,M);return}Pe&&Rn(v,null,b,"beforeUnmount"),de&64?v.type.remove(v,b,x,Q,M):F&&!F.hasOnce&&(B!==be||te>0&&te&64)?at(F,b,x,!1,!0):(B===be&&te&384||!D&&de&16)&&at(W,b,x),M&&Ht(v)}const We=ye!=null&&he==null;(Ee&&(qe=J&&J.onVnodeUnmounted)||Pe||We)&&nt(()=>{qe&&Ot(qe,b,v),Pe&&Rn(v,null,b,"unmounted"),We&&(v.el=null)},x)},Ht=v=>{const{type:b,el:x,anchor:M,transition:D}=v;if(b===be){pn(x,M);return}if(b===vs){O(v),D&&!D.persisted&&D.afterLeave&&D.afterLeave();return}const B=()=>{s(x),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(v.shapeFlag&1&&D&&!D.persisted){const{leave:J,delayLeave:G}=D,W=()=>J(x,B);G?G(v.el,B,W):W()}else B()},pn=(v,b)=>{let x;for(;v!==b;)x=f(v),s(v),v=x;s(b)},jt=(v,b,x)=>{const{bum:M,scope:D,job:B,subTree:J,um:G,m:W,a:F}=v;bl(W),bl(F),M&&gs(M),D.stop(),B?(B.flags|=8,Ue(J,v,b,x)):v.vnode.el&&J&&(J.transition=v.vnode.transition,Ue(J,v,b,x)),G&&nt(G,b),nt(()=>{v.isUnmounted=!0},b)},at=(v,b,x,M=!1,D=!1,B=0)=>{for(let J=B;J<v.length;J++)Ue(v[J],b,x,M,D)},A=v=>{if(v.shapeFlag&6)return A(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const b=f(v.anchor||v.el),x=b&&b[gu];return x?f(x):b};let C=!1;const z=(v,b,x)=>{let M;v==null?b._vnode&&(Ue(b._vnode,null,null,!0),M=b._vnode.component):m(b._vnode||null,v,b,null,null,null,x),b._vnode=v,C||(C=!0,ll(M),du(),C=!1)},Q={p:m,um:Ue,m:Be,r:Ht,mt:ne,mc:K,pc:ce,pbc:U,n:A,o:e};return{render:z,hydrate:void 0,createApp:jf(z)}}function kr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Si(e,t,n=!1){const o=e.children,s=t.children;if(ie(o)&&ie(s))for(let r=0;r<o.length;r++){const i=o[r];let l=s[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[r]=Yt(s[r]),l.el=i.el),!n&&l.patchFlag!==-2&&Si(i,l)),l.type===or&&(l.patchFlag===-1&&(l=s[r]=Yt(l)),l.el=i.el),l.type===Ct&&!l.el&&(l.el=i.el)}}function ap(e){const t=e.slice(),n=[0];let o,s,r,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(s=n[n.length-1],e[s]<c){t[o]=s,n.push(o);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<c?r=l+1:i=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Lu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lu(t)}function bl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function qu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?qu(t.subTree):null}const Fu=e=>e.__isSuspense;function up(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):mf(e)}const be=Symbol.for("v-fgt"),or=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),vs=Symbol.for("v-stc"),en=[];let it=null;function k(e=!1){en.push(it=e?null:[])}function Ei(){en.pop(),it=en[en.length-1]||null}let ao=1;function Ps(e,t=!1){ao+=e,e<0&&it&&t&&(it.hasOnce=!0)}function Vu(e){return e.dynamicChildren=ao>0?it||Ln:null,Ei(),ao>0&&it&&it.push(e),e}function V(e,t,n,o,s,r){return Vu(P(e,t,n,o,s,r,!0))}function Z(e,t,n,o,s){return Vu(S(e,t,n,o,s,!0))}function qo(e){return e?e.__v_isVNode===!0:!1}function _o(e,t){return e.type===t.type&&e.key===t.key}const zu=({key:e})=>e??null,ys=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||Ne(e)||pe(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,o=0,s=null,r=e===be?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zu(t),ref:t&&ys(t),scopeId:pu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return l?(Os(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Me(n)?8:16),ao>0&&!i&&it&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&it.push(a),a}const S=cp;function cp(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===wu)&&(e=Ct),qo(e)){const l=Vn(e,t,!0);return n&&Os(l,n),ao>0&&!r&&it&&(l.shapeFlag&6?it[it.indexOf(e)]=l:it.push(l)),l.patchFlag=-2,l}if(xp(e)&&(e=e.__vccOpts),t){t=Wn(t);let{class:l,style:a}=t;l&&!Me(l)&&(t.class=Oe(l)),Se(a)&&(Xs(a)&&!ie(a)&&(a=Ke({},a)),t.style=Pn(a))}const i=Me(e)?1:Fu(e)?128:Qs(e)?64:Se(e)?4:pe(e)?2:0;return P(e,t,n,o,s,i,r,!0)}function Wn(e){return e?Xs(e)||Ru(e)?Ke({},e):e:null}function Vn(e,t,n=!1,o=!1){const{props:s,ref:r,patchFlag:i,children:l,transition:a}=e,c=t?Le(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&zu(c),ref:t&&t.ref?n&&r?ie(r)?r.concat(ys(t)):[r,ys(t)]:ys(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!==be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vn(e.ssContent),ssFallback:e.ssFallback&&Vn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&o&&_i(u,a.clone(u)),u}function Y(e=" ",t=0){return S(or,null,e,t)}function dp(e,t){const n=S(vs,null,e);return n.staticCount=t,n}function le(e="",t=!1){return t?(k(),Z(Ct,null,e)):S(Ct,null,e)}function Rt(e){return e==null||typeof e=="boolean"?S(Ct):ie(e)?S(be,null,e.slice()):qo(e)?Yt(e):S(or,null,String(e))}function Yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vn(e)}function Os(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Os(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ru(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(pe(t)){if(o&65){Os(e,{default:t});return}t={default:t,_ctx:Ge},n=32}else t=String(t),o&64?(n=16,t=[Y(t)]):n=8;e.children=t,e.shapeFlag|=n}function Le(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=Oe([t.class,o.class]));else if(s==="style")t.style=Pn([t.style,o.style]);else if(Fs(s)){const r=t[s],i=o[s];i&&r!==i&&!(ie(r)&&r.includes(i))?t[s]=r?[].concat(r,i):i:i==null&&r==null&&!Vs(s)&&(t[s]=i)}else s!==""&&(t[s]=o[s])}return t}function Ot(e,t,n,o=null){wt(e,t,7,[n,o])}const fp=Su();let pp=0;function hp(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||fp,r={uid:pp++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new La(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$u(o,s),emitsOptions:Pu(o,s),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:o.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Wf.bind(null,r),e.ce&&e.ce(r),r}let Ze=null;const Ut=()=>Ze||Ge;let Ts,Fo;{const e=Ks(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),r=>{s.length>1?s.forEach(i=>i(r)):s[0](r)}};Ts=t("__VUE_INSTANCE_SETTERS__",n=>Ze=n),Fo=t("__VUE_SSR_SETTERS__",n=>Vo=n)}const Zo=e=>{const t=Ze;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},xl=()=>{Ze&&Ze.scope.off(),Ts(null)};function Uu(e){return e.vnode.shapeFlag&4}let Vo=!1;function mp(e,t=!1,n=!1){t&&Fo(t);const{props:o,children:s}=e.vnode,r=Uu(e);Qf(e,o,r,t),op(e,s,n||t);const i=r?gp(e,t):void 0;return t&&Fo(!1),i}function gp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Df);const{setup:o}=n;if(o){sn();const s=e.setupContext=o.length>1?yp(e):null,r=Zo(e),i=Jo(o,e,0,[e.props,s]),l=Ia(i);if(rn(),r(),(l||e.sp)&&!so(e)&&bu(e),l){if(i.then(xl,xl),t)return i.then(a=>{Fo(!0);try{_l(e,a,t)}finally{Fo(!1)}}).catch(a=>{Zs(a,e,0)});e.asyncDep=i}else _l(e,i)}else Hu(e)}function _l(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=iu(t)),Hu(e)}function Hu(e,t,n){const o=e.type;e.render||(e.render=o.render||Lt);{const s=Zo(e);sn();try{qf(e)}finally{rn(),s()}}}const vp={get(e,t){return Xe(e,"get",""),e[t]}};function yp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,vp),slots:e.slots,emit:e.emit,expose:t}}function sr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(iu(su(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mo)return Mo[n](e)},has(t,n){return n in t||n in Mo}})):e.proxy}function bp(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function xp(e){return pe(e)&&"__vccOpts"in e}const q=(e,t)=>cf(e,t,Vo);function xt(e,t,n){try{Ps(-1);const o=arguments.length;return o===2?Se(t)&&!ie(t)?qo(t)?S(e,null,[t]):S(e,t):S(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qo(n)&&(n=[n]),S(e,t,n))}finally{Ps(1)}}function _p(e,t,n,o){const s=n[o];if(s&&wp(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=o,n[o]=r}function wp(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(He(n[o],t[o]))return!1;return ao>0&&it&&it.push(e),!0}const Cp="3.5.43";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.43
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Zr;const wl=typeof window<"u"&&window.trustedTypes;if(wl)try{Zr=wl.createPolicy("vue",{createHTML:e=>e})}catch{}const ju=Zr?e=>Zr.createHTML(e):e=>e,kp="http://www.w3.org/2000/svg",Ap="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,Cl=Jt&&Jt.createElement("template"),Sp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t==="svg"?Jt.createElementNS(kp,e):t==="mathml"?Jt.createElementNS(Ap,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,r){const i=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{Cl.innerHTML=ju(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const l=Cl.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ep=Symbol("_vtc");function Pp(e,t,n){const o=e[Ep];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kl=Symbol("_vod"),Op=Symbol("_vsh"),Tp=Symbol(""),Ip=/(?:^|;)\s*display\s*:/;function Rp(e,t,n){const o=e.style,s=Me(n);let r=!1;if(n&&!s){if(t)if(Me(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Eo(o,l,"")}else for(const i in t)n[i]==null&&Eo(o,i,"");for(const i in n){i==="display"&&(r=!0);const l=n[i];l!=null?$p(e,i,!Me(t)&&t?t[i]:void 0,l)||Eo(o,i,l):Eo(o,i,"")}}else if(s){if(t!==n){const i=o[Tp];i&&(n+=";"+i),o.cssText=n,r=Ip.test(n)}}else t&&e.removeAttribute("style");kl in e&&(e[kl]=r?o.display:"",e[Op]&&(o.display="none"))}const ls=/\s*!important$/;function Eo(e,t,n){if(ie(n))n.forEach(o=>Eo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))ls.test(n)?e.setProperty(t,n.replace(ls,""),"important"):e.setProperty(t,n);else{const o=Mp(e,t);ls.test(n)?e.setProperty(cn(o),n.replace(ls,""),"important"):e[o]=n}}const Al=["Webkit","Moz","ms"],Ar={};function Mp(e,t){const n=Ar[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return Ar[t]=o;o=Hs(o);for(let s=0;s<Al.length;s++){const r=Al[s]+o;if(r in e)return Ar[t]=r}return t}function $p(e,t,n,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Me(o)&&n===o}const Sl="http://www.w3.org/1999/xlink";function El(e,t,n,o,s,r=$d(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Sl,t.slice(6,t.length)):e.setAttributeNS(Sl,t,n):n==null||r&&!Ba(n)?e.removeAttribute(t):e.setAttribute(t,r?"":gt(n)?String(n):n)}function Pl(e,t,n,o,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ju(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Ba(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Qt(e,t,n,o){e.addEventListener(t,n,o)}function Bp(e,t,n,o){e.removeEventListener(t,n,o)}const Ol=Symbol("_vei");function Dp(e,t,n,o,s=null){const r=e[Ol]||(e[Ol]={}),i=r[t];if(o&&i)i.value=o;else{const[l,a]=qp(t);if(o){const c=r[t]=zp(o,s);Qt(e,l,c,a)}else i&&(Bp(e,l,i,a),r[t]=void 0)}}const Np=/(Once|Passive|Capture)$/,Lp=/^on:?(?:Once|Passive|Capture)$/;function qp(e){let t,n;for(;(n=e.match(Np))&&!Lp.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):cn(e.slice(2)),t]}let Sr=0;const Fp=Promise.resolve(),Vp=()=>Sr||(Fp.then(()=>Sr=0),Sr=Date.now());function zp(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const s=n.value;if(ie(s)){const r=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{r.call(o),o._stopped=!0};const i=s.slice(),l=[o];for(let a=0;a<i.length&&!o._stopped;a++){const c=i[a];c&&wt(c,t,5,l)}}else wt(s,t,5,[o])};return n.value=e,n.attached=Vp(),n}const Tl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Up=(e,t,n,o,s,r)=>{const i=s==="svg";t==="class"?Pp(e,o,i):t==="style"?Rp(e,n,o):Fs(t)?Vs(t)||Dp(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hp(e,t,o,i))?(Pl(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&El(e,t,o,i,r,t!=="value")):e._isVueCE&&(jp(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Me(o)))?Pl(e,je(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),El(e,t,o,i))};function Hp(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Tl(t)&&pe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Tl(t)&&Me(n)?!1:t in e}function jp(e,t){const n=e._def.props;if(!n)return!1;const o=je(t);return Array.isArray(n)?n.some(s=>je(s)===o):Object.keys(n).some(s=>je(s)===o)}const An=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ie(t)?n=>gs(t,n):t};function Kp(e){e.target.composing=!0}function Il(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pt=Symbol("_assign"),as=Symbol("_initialValue");function Er(e,t,n){return t&&(e=e.trim()),n&&(e=js(e)),e}const Is={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e.parentNode&&(e.type==="text"?e[as]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[as]=e.defaultValue.replace(/\r\n?/g,`
|
|
18
|
-
`))),e[pt]=An(s);const r=o||s.props&&s.props.type==="number";Qt(e,t?"change":"input",i=>{i.target.composing||e[pt](Er(e.value,n,r))}),(n||r)&&Qt(e,"change",()=>{e.value=Er(e.value,n,r)}),t||(Qt(e,"compositionstart",Kp),Qt(e,"compositionend",Il),Qt(e,"change",Il))},mounted(e,{value:t,modifiers:{trim:n,number:o}}){const s=t??"",r=e[as];delete e[as],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[pt](Er(e.value,n,o)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:r}},i){if(e[pt]=An(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?js(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===a)||(e.value=a)}},Wp={deep:!0,created(e,t,n){e[pt]=An(n),Qt(e,"change",()=>{const o=e._modelValue,s=uo(e),r=e.checked,i=e[pt];if(ie(o)){const l=mi(o,s),a=l!==-1;if(r&&!a)i(o.concat(s));else if(!r&&a){const c=[...o];c.splice(l,1),i(c)}}else if(on(o)){const l=new Set(o);r?l.add(s):l.delete(s),i(l)}else i(Ku(e,r))})},mounted:Rl,beforeUpdate(e,t,n){e[pt]=An(n),Rl(e,t,n)}};function Rl(e,{value:t,oldValue:n},o){e._modelValue=t;let s;if(ie(t))s=mi(t,o.props.value)>-1;else if(on(t))s=t.has(o.props.value);else{if(t===n)return;s=_t(t,Ku(e,!0))}e.checked!==s&&(e.checked=s)}const Gp={created(e,{value:t},n){e.checked=_t(t,n.props.value),e[pt]=An(n),Qt(e,"change",()=>{e[pt](uo(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[pt]=An(o),t!==n&&(e.checked=_t(t,o.props.value))}},Pi={deep:!0,created(e,{value:t,modifiers:{number:n}},o){e._modelValue=t,Qt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?js(uo(a)):uo(a)),r=e.multiple,i=r?on(e._modelValue)?new Set(s):s:s[0],l=e._pendingValue=[r,r?ie(i)?s.slice():s:i];try{e[pt](i)}finally{Qe(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[pt]=An(o)},mounted(e,{value:t}){Ml(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[pt]=An(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Jp(t,n[1],n[0]))&&Ml(e,t)}};function Jp(e,t,n){if(!n||ie(e))return _t(e,t);if(on(e)){if(e.size!==t.length)return!1;for(const o of t)if(!e.has(o))return!1;return!0}return!1}function Ml(e,t){const n=e.multiple,o=ie(t);if(!(n&&!o&&!on(t))){for(let s=0,r=e.options.length;s<r;s++){const i=e.options[s],l=uo(i);if(n)if(o){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(c=>String(c)===String(l)):i.selected=mi(t,l)>-1}else i.selected=t.has(l);else if(_t(uo(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function uo(e){return"_value"in e?e._value:e.value}function Ku(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Yp={created(e,t,n){us(e,t,n,null,"created")},mounted(e,t,n){us(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){us(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){us(e,t,n,o,"updated")}};function Xp(e,t){switch(e){case"SELECT":return Pi;case"TEXTAREA":return Is;default:switch(t){case"checkbox":return Wp;case"radio":return Gp;default:return Is}}}function us(e,t,n,o,s){const i=Xp(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,o)}const Zp=["ctrl","shift","alt","meta"],Qp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Zp.some(n=>e[`${n}Key`]&&!t.includes(n))},Dt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((s,...r)=>{for(let i=0;i<t.length;i++){const l=Qp[t[i]];if(l&&l(s,t))return}return e(s,...r)}))},eh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(s=>{if(!("key"in s))return;const r=cn(s.key);if(t.some(i=>i===r||eh[i]===r))return e(s)}))},th=Ke({patchProp:Up},Sp);let $l;function nh(){return $l||($l=rp(th))}const oh=((...e)=>{const t=nh().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=rh(o);if(!s)return;const r=t._component;!pe(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,sh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function sh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rh(e){return Me(e)?document.querySelector(e):e}const ih="/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2";/*!
|
|
19
|
-
* vue-router v4.6.4
|
|
20
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
21
|
-
* @license MIT
|
|
22
|
-
*/const Zn=typeof document<"u";function Wu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Wu(e.default)}const ke=Object.assign;function Pr(e,t){const n={};for(const o in t){const s=t[o];n[o]=kt(s)?s.map(e):e(s)}return n}const $o=()=>{},kt=Array.isArray;function Bl(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}const Gu=/#/g,ah=/&/g,uh=/\//g,ch=/=/g,dh=/\?/g,Ju=/\+/g,fh=/%5B/g,ph=/%5D/g,Yu=/%5E/g,hh=/%60/g,Xu=/%7B/g,mh=/%7C/g,Zu=/%7D/g,gh=/%20/g;function Oi(e){return e==null?"":encodeURI(""+e).replace(mh,"|").replace(fh,"[").replace(ph,"]")}function vh(e){return Oi(e).replace(Xu,"{").replace(Zu,"}").replace(Yu,"^")}function Qr(e){return Oi(e).replace(Ju,"%2B").replace(gh,"+").replace(Gu,"%23").replace(ah,"%26").replace(hh,"`").replace(Xu,"{").replace(Zu,"}").replace(Yu,"^")}function yh(e){return Qr(e).replace(ch,"%3D")}function bh(e){return Oi(e).replace(Gu,"%23").replace(dh,"%3F")}function xh(e){return bh(e).replace(uh,"%2F")}function zo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const _h=/\/$/,wh=e=>e.replace(_h,"");function Or(e,t,n="/"){let o,s={},r="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(o=t.slice(0,a),r=t.slice(a,l>0?l:t.length),s=e(r.slice(1))),l>=0&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=Sh(o??t,n),{fullPath:o+r+i,path:o,query:s,hash:zo(i)}}function Ch(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Dl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kh(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&co(t.matched[o],n.matched[s])&&Qu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function co(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ah(e[n],t[n]))return!1;return!0}function Ah(e,t){return kt(e)?Nl(e,t):kt(t)?Nl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Nl(e,t){return kt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Sh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let r=n.length-1,i,l;for(i=0;i<o.length;i++)if(l=o[i],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+o.slice(i).join("/")}const hn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ei=(function(e){return e.pop="pop",e.push="push",e})({}),Tr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Eh(e){if(!e)if(Zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wh(e)}const Ph=/^[^#]+#/;function Oh(e,t){return e.replace(Ph,"#")+t}function Th(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const rr=()=>({left:window.scrollX,top:window.scrollY});function Ih(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Th(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ll(e,t){return(history.state?history.state.position-t:-1)+e}const ti=new Map;function Rh(e,t){ti.set(e,t)}function Mh(e){const t=ti.get(e);return ti.delete(e),t}function $h(e){return typeof e=="string"||e&&typeof e=="object"}function ec(e){return typeof e=="string"||typeof e=="symbol"}let De=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const tc=Symbol("");De.MATCHER_NOT_FOUND+"",De.NAVIGATION_GUARD_REDIRECT+"",De.NAVIGATION_ABORTED+"",De.NAVIGATION_CANCELLED+"",De.NAVIGATION_DUPLICATED+"";function fo(e,t){return ke(new Error,{type:e,[tc]:!0},t)}function Wt(e,t){return e instanceof Error&&tc in e&&(t==null||!!(e.type&t))}const Bh=["params","query","hash"];function Dh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Bh)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Nh(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const s=n[o].replace(Ju," "),r=s.indexOf("="),i=zo(r<0?s:s.slice(0,r)),l=r<0?null:zo(s.slice(r+1));if(i in t){let a=t[i];kt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function ql(e){let t="";for(let n in e){const o=e[n];if(n=yh(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(kt(o)?o.map(s=>s&&Qr(s)):[o&&Qr(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Lh(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=kt(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const qh=Symbol(""),Fl=Symbol(""),ir=Symbol(""),Ti=Symbol(""),ni=Symbol("");function wo(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function xn(e,t,n,o,s,r=i=>i()){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const c=f=>{f===!1?a(fo(De.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?a(f):$h(f)?a(fo(De.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(i&&o.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),l())},u=r(()=>e.call(o&&o.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>a(f))})}function Ir(e,t,n,o,s=r=>r()){const r=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Wu(a)){const c=(a.__vccOpts||a)[t];c&&r.push(xn(c,n,o,i,l,s))}else{let c=a();r.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=lh(u)?u.default:u;i.mods[l]=u,i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&xn(f,n,o,i,l,s)()}))}}return r}function Fh(e,t){const n=[],o=[],s=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const l=t.matched[i];l&&(e.matched.find(c=>co(c,l))?o.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>co(c,a))||s.push(a))}return[n,o,s]}/*!
|
|
23
|
-
* vue-router v4.6.4
|
|
24
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
-
* @license MIT
|
|
26
|
-
*/let Vh=()=>location.protocol+"//"+location.host;function nc(e,t){const{pathname:n,search:o,hash:s}=t,r=e.indexOf("#");if(r>-1){let i=s.includes(e.slice(r))?e.slice(r).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),Dl(l,"")}return Dl(n,e)+o+s}function zh(e,t,n,o){let s=[],r=[],i=null;const l=({state:f})=>{const p=nc(e,location),g=n.value,m=t.value;let y=0;if(f){if(n.value=p,t.value=f,i&&i===g){i=null;return}y=m?f.position-m.position:0}else o(p);s.forEach(_=>{_(n.value,g,{delta:y,type:ei.pop,direction:y?y>0?Tr.forward:Tr.back:Tr.unknown})})};function a(){i=n.value}function c(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return r.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(ke({},f.state,{scroll:rr()}),"")}}function d(){for(const f of r)f();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:d}}function Vl(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?rr():null}}function Uh(e){const{history:t,location:n}=window,o={value:nc(e,n)},s={value:t.state};s.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:Vh()+e+a;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function i(a,c){r(a,ke({},t.state,Vl(s.value.back,a,s.value.forward,!0),c,{position:s.value.position}),!0),o.value=a}function l(a,c){const u=ke({},s.value,t.state,{forward:a,scroll:rr()});r(u.current,u,!0),r(a,ke({},Vl(o.value,a,null),{position:u.position+1},c),!1),o.value=a}return{location:o,state:s,push:l,replace:i}}function Hh(e){e=Eh(e);const t=Uh(e),n=zh(e,t.state,t.location,t.replace);function o(r,i=!0){i||n.pauseListeners(),history.go(r)}const s=ke({location:"",base:e,go:o,createHref:Oh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let qn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Fe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Fe||{});const jh={type:qn.Static,value:""},Kh=/[a-zA-Z0-9_]/;function Wh(e){if(!e)return[[]];if(e==="/")return[[jh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Fe.Static,o=n;const s=[];let r;function i(){r&&s.push(r),r=[]}let l=0,a,c="",u="";function d(){c&&(n===Fe.Static?r.push({type:qn.Static,value:c}):n===Fe.Param||n===Fe.ParamRegExp||n===Fe.ParamRegExpEnd?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:qn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==Fe.ParamRegExp){o=n,n=Fe.EscapeNext;continue}switch(n){case Fe.Static:a==="/"?(c&&d(),i()):a===":"?(d(),n=Fe.Param):f();break;case Fe.EscapeNext:f(),n=o;break;case Fe.Param:a==="("?n=Fe.ParamRegExp:Kh.test(a)?f():(d(),n=Fe.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Fe.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=Fe.ParamRegExpEnd:u+=a;break;case Fe.ParamRegExpEnd:d(),n=Fe.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===Fe.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),s}const zl="[^/]+?",Gh={sensitive:!1,strict:!1,start:!0,end:!0};var ot=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(ot||{});const Jh=/[.+*?^${}()[\]/\\]/g;function Yh(e,t){const n=ke({},Gh,t),o=[];let s=n.start?"^":"";const r=[];for(const c of e){const u=c.length?[]:[ot.Root];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=ot.Segment+(n.sensitive?ot.BonusCaseSensitive:0);if(f.type===qn.Static)d||(s+="/"),s+=f.value.replace(Jh,"\\$&"),p+=ot.Static;else if(f.type===qn.Param){const{value:g,repeatable:m,optional:y,regexp:_}=f;r.push({name:g,repeatable:m,optional:y});const w=_||zl;if(w!==zl){p+=ot.BonusCustomRegExp;try{`${w}`}catch(O){throw new Error(`Invalid custom RegExp for param "${g}" (${w}): `+O.message)}}let E=m?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(E=y&&c.length<2?`(?:/${E})`:"/"+E),y&&(E+="?"),s+=E,p+=ot.Dynamic,y&&(p+=ot.BonusOptional),m&&(p+=ot.BonusRepeatable),w===".*"&&(p+=ot.BonusWildcard)}u.push(p)}o.push(u)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=ot.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function l(c){const u=c.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",g=r[f-1];d[g.name]=p&&g.repeatable?p.split("/"):p}return d}function a(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===qn.Static)u+=p.value;else if(p.type===qn.Param){const{value:g,repeatable:m,optional:y}=p,_=g in c?c[g]:"";if(kt(_)&&!m)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const w=kt(_)?_.join("/"):_;if(!w)if(y)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);u+=w}}return u||"/"}return{re:i,score:o,keys:r,parse:l,stringify:a}}function Xh(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===ot.Static+ot.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ot.Static+ot.Segment?1:-1:0}function oc(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const r=Xh(o[n],s[n]);if(r)return r;n++}if(Math.abs(s.length-o.length)===1){if(Ul(o))return 1;if(Ul(s))return-1}return s.length-o.length}function Ul(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Zh={strict:!1,end:!0,sensitive:!1};function Qh(e,t,n){const o=Yh(Wh(e.path),n),s=ke(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function em(e,t){const n=[],o=new Map;t=Bl(Zh,t);function s(d){return o.get(d)}function r(d,f,p){const g=!p,m=jl(d);m.aliasOf=p&&p.record;const y=Bl(t,d),_=[m];if("alias"in d){const O=typeof d.alias=="string"?[d.alias]:d.alias;for(const j of O)_.push(jl(ke({},m,{components:p?p.record.components:m.components,path:j,aliasOf:p?p.record:m})))}let w,E;for(const O of _){const{path:j}=O;if(f&&j[0]!=="/"){const H=f.record.path,R=H[H.length-1]==="/"?"":"/";O.path=f.record.path+(j&&R+j)}if(w=Qh(O,f,y),p?p.alias.push(w):(E=E||w,E!==w&&E.alias.push(w),g&&d.name&&!Kl(w)&&i(d.name)),sc(w)&&a(w),m.children){const H=m.children;for(let R=0;R<H.length;R++)r(H[R],w,p&&p.children[R])}p=p||w}return E?()=>{i(E)}:$o}function i(d){if(ec(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const f=om(d,n);n.splice(f,0,d),d.record.name&&!Kl(d)&&o.set(d.record.name,d)}function c(d,f){let p,g={},m,y;if("name"in d&&d.name){if(p=o.get(d.name),!p)throw fo(De.MATCHER_NOT_FOUND,{location:d});y=p.record.name,g=ke(Hl(f.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&Hl(d.params,p.keys.map(E=>E.name))),m=p.stringify(g)}else if(d.path!=null)m=d.path,p=n.find(E=>E.re.test(m)),p&&(g=p.parse(m),y=p.record.name);else{if(p=f.name?o.get(f.name):n.find(E=>E.re.test(f.path)),!p)throw fo(De.MATCHER_NOT_FOUND,{location:d,currentLocation:f});y=p.record.name,g=ke({},f.params,d.params),m=p.stringify(g)}const _=[];let w=p;for(;w;)_.unshift(w.record),w=w.parent;return{name:y,path:m,params:g,matched:_,meta:nm(_)}}e.forEach(d=>r(d));function u(){n.length=0,o.clear()}return{addRoute:r,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:s}}function Hl(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function jl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function tm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Kl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function nm(e){return e.reduce((t,n)=>ke(t,n.meta),{})}function om(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;oc(e,t[r])<0?o=r:n=r+1}const s=sm(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function sm(e){let t=e;for(;t=t.parent;)if(sc(t)&&oc(e,t)===0)return t}function sc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wl(e){const t=mt(ir),n=mt(Ti),o=q(()=>{const a=h(e.to);return t.resolve(a)}),s=q(()=>{const{matched:a}=o.value,{length:c}=a,u=a[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(co.bind(null,u));if(f>-1)return f;const p=Gl(a[c-2]);return c>1&&Gl(u)===p&&d[d.length-1].path!==p?d.findIndex(co.bind(null,a[c-2])):f}),r=q(()=>s.value>-1&&um(n.params,o.value.params)),i=q(()=>s.value>-1&&s.value===n.matched.length-1&&Qu(n.params,o.value.params));function l(a={}){if(am(a)){const c=t[h(e.replace)?"replace":"push"](h(e.to)).catch($o);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:o,href:q(()=>o.value.href),isActive:r,isExactActive:i,navigate:l}}function rm(e){return e.length===1?e[0]:e}const im=X({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Wl,setup(e,{slots:t}){const n=ln(Wl(e)),{options:o}=mt(ir),s=q(()=>({[Jl(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jl(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&rm(t.default(n));return e.custom?r:xt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),lm=im;function am(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function um(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!kt(s)||s.length!==o.length||o.some((r,i)=>r.valueOf()!==s[i].valueOf()))return!1}return!0}function Gl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jl=(e,t,n)=>e??t??n,cm=X({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=mt(ni),s=q(()=>e.route||o.value),r=mt(Fl,0),i=q(()=>{let c=h(r);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=q(()=>s.value.matched[i.value]);oo(Fl,q(()=>i.value+1)),oo(qh,l),oo(ni,s);const a=L();return Te(()=>[a.value,l.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!co(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=l.value,f=d&&d.components[u];if(!f)return Yl(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=xt(f,ke({},g,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return Yl(n.default,{Component:y,route:c})||y}}});function Yl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const dm=cm;function fm(e){const t=em(e.routes,e),n=e.parseQuery||Nh,o=e.stringifyQuery||ql,s=e.history,r=wo(),i=wo(),l=wo(),a=Go(hn);let c=hn;Zn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Pr.bind(null,A=>""+A),d=Pr.bind(null,xh),f=Pr.bind(null,zo);function p(A,C){let z,Q;return ec(A)?(z=t.getRecordMatcher(A),Q=C):Q=A,t.addRoute(Q,z)}function g(A){const C=t.getRecordMatcher(A);C&&t.removeRoute(C)}function m(){return t.getRoutes().map(A=>A.record)}function y(A){return!!t.getRecordMatcher(A)}function _(A,C){if(C=ke({},C||a.value),typeof A=="string"){const x=Or(n,A,C.path),M=t.resolve({path:x.path},C),D=s.createHref(x.fullPath);return ke(x,M,{params:f(M.params),hash:zo(x.hash),redirectedFrom:void 0,href:D})}let z;if(A.path!=null)z=ke({},A,{path:Or(n,A.path,C.path).path});else{const x=ke({},A.params);for(const M in x)x[M]==null&&delete x[M];z=ke({},A,{params:d(x)}),C.params=d(C.params)}const Q=t.resolve(z,C),ve=A.hash||"";Q.params=u(f(Q.params));const v=Ch(o,ke({},A,{hash:vh(ve),path:Q.path})),b=s.createHref(v);return ke({fullPath:v,hash:ve,query:o===ql?Lh(A.query):A.query||{}},Q,{redirectedFrom:void 0,href:b})}function w(A){return typeof A=="string"?Or(n,A,a.value.path):ke({},A)}function E(A,C){if(c!==A)return fo(De.NAVIGATION_CANCELLED,{from:C,to:A})}function O(A){return R(A)}function j(A){return O(ke(w(A),{replace:!0}))}function H(A,C){const z=A.matched[A.matched.length-1];if(z&&z.redirect){const{redirect:Q}=z;let ve=typeof Q=="function"?Q(A,C):Q;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=w(ve):{path:ve},ve.params={}),ke({query:A.query,hash:A.hash,params:ve.path!=null?{}:A.params},ve)}}function R(A,C){const z=c=_(A),Q=a.value,ve=A.state,v=A.force,b=A.replace===!0,x=H(z,Q);if(x)return R(ke(w(x),{state:typeof x=="object"?ke({},ve,x.state):ve,force:v,replace:b}),C||z);const M=z;M.redirectedFrom=C;let D;return!v&&kh(o,Q,z)&&(D=fo(De.NAVIGATION_DUPLICATED,{to:M,from:Q}),Be(Q,Q,!0,!1)),(D?Promise.resolve(D):U(M,Q)).catch(B=>Wt(B)?Wt(B,De.NAVIGATION_GUARD_REDIRECT)?B:et(B):ce(B,M,Q)).then(B=>{if(B){if(Wt(B,De.NAVIGATION_GUARD_REDIRECT))return R(ke({replace:b},w(B.to),{state:typeof B.to=="object"?ke({},ve,B.to.state):ve,force:v}),C||M)}else B=$(M,Q,!0,b,ve);return N(M,Q,B),B})}function K(A,C){const z=E(A,C);return z?Promise.reject(z):Promise.resolve()}function ee(A){const C=pn.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(A):A()}function U(A,C){let z;const[Q,ve,v]=Fh(A,C);z=Ir(Q.reverse(),"beforeRouteLeave",A,C);for(const x of Q)x.leaveGuards.forEach(M=>{z.push(xn(M,A,C))});const b=K.bind(null,A,C);return z.push(b),at(z).then(()=>{z=[];for(const x of r.list())z.push(xn(x,A,C));return z.push(b),at(z)}).then(()=>{z=Ir(ve,"beforeRouteUpdate",A,C);for(const x of ve)x.updateGuards.forEach(M=>{z.push(xn(M,A,C))});return z.push(b),at(z)}).then(()=>{z=[];for(const x of v)if(x.beforeEnter)if(kt(x.beforeEnter))for(const M of x.beforeEnter)z.push(xn(M,A,C));else z.push(xn(x.beforeEnter,A,C));return z.push(b),at(z)}).then(()=>(A.matched.forEach(x=>x.enterCallbacks={}),z=Ir(v,"beforeRouteEnter",A,C,ee),z.push(b),at(z))).then(()=>{z=[];for(const x of i.list())z.push(xn(x,A,C));return z.push(b),at(z)}).catch(x=>Wt(x,De.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function N(A,C,z){l.list().forEach(Q=>ee(()=>Q(A,C,z)))}function $(A,C,z,Q,ve){const v=E(A,C);if(v)return v;const b=C===hn,x=Zn?history.state:{};z&&(Q||b?s.replace(A.fullPath,ke({scroll:b&&x&&x.scroll},ve)):s.push(A.fullPath,ve)),a.value=A,Be(A,C,z,b),et()}let I;function ne(){I||(I=s.listen((A,C,z)=>{if(!jt.listening)return;const Q=_(A),ve=H(Q,jt.currentRoute.value);if(ve){R(ke(ve,{replace:!0,force:!0}),Q).catch($o);return}c=Q;const v=a.value;Zn&&Rh(Ll(v.fullPath,z.delta),rr()),U(Q,v).catch(b=>Wt(b,De.NAVIGATION_ABORTED|De.NAVIGATION_CANCELLED)?b:Wt(b,De.NAVIGATION_GUARD_REDIRECT)?(R(ke(w(b.to),{force:!0}),Q).then(x=>{Wt(x,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&!z.delta&&z.type===ei.pop&&s.go(-1,!1)}).catch($o),Promise.reject()):(z.delta&&s.go(-z.delta,!1),ce(b,Q,v))).then(b=>{b=b||$(Q,v,!1),b&&(z.delta&&!Wt(b,De.NAVIGATION_CANCELLED)?s.go(-z.delta,!1):z.type===ei.pop&&Wt(b,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),N(Q,v,b)}).catch($o)}))}let oe=wo(),re=wo(),fe;function ce(A,C,z){et(A);const Q=re.list();return Q.length?Q.forEach(ve=>ve(A,C,z)):console.error(A),Promise.reject(A)}function _e(){return fe&&a.value!==hn?Promise.resolve():new Promise((A,C)=>{oe.add([A,C])})}function et(A){return fe||(fe=!A,ne(),oe.list().forEach(([C,z])=>A?z(A):C()),oe.reset()),A}function Be(A,C,z,Q){const{scrollBehavior:ve}=e;if(!Zn||!ve)return Promise.resolve();const v=!z&&Mh(Ll(A.fullPath,0))||(Q||!z)&&history.state&&history.state.scroll||null;return Qe().then(()=>ve(A,C,v)).then(b=>b&&Ih(b)).catch(b=>ce(b,A,C))}const Ue=A=>s.go(A);let Ht;const pn=new Set,jt={currentRoute:a,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:_,options:e,push:O,replace:j,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:r.add,beforeResolve:i.add,afterEach:l.add,onError:re.add,isReady:_e,install(A){A.component("RouterLink",lm),A.component("RouterView",dm),A.config.globalProperties.$router=jt,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>h(a)}),Zn&&!Ht&&a.value===hn&&(Ht=!0,O(s.location).catch(Q=>{}));const C={};for(const Q in hn)Object.defineProperty(C,Q,{get:()=>a.value[Q],enumerable:!0});A.provide(ir,jt),A.provide(Ti,ou(C)),A.provide(ni,a);const z=A.unmount;pn.add(A),A.unmount=function(){pn.delete(A),pn.size<1&&(c=hn,I&&I(),I=null,a.value=hn,Ht=!1,fe=!1),z()}}};function at(A){return A.reduce((C,z)=>C.then(()=>ee(z)),Promise.resolve())}return jt}function pm(){return mt(ir)}function hm(e){return mt(Ti)}/**
|
|
27
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the ISC license.
|
|
30
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
32
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var cs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
37
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const gm=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:o,iconNode:s,name:r,class:i,...l},{slots:a})=>xt("svg",{...cs,width:e||cs.width,height:e||cs.height,stroke:o||cs.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${mm(r??"icon")}`],...l},[...s.map(c=>xt(...c)),...a.default?[a.default()]:[]]);/**
|
|
42
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const me=(e,t)=>(n,{slots:o})=>xt(gm,{...n,iconNode:t,name:e},o);/**
|
|
47
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const vm=me("ActivityIcon",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
52
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const ym=me("ArrowUpIcon",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
57
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const oi=me("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
62
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const rc=me("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
67
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const bm=me("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
72
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const xm=me("CircleDotIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
|
|
77
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const _m=me("CropIcon",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);/**
|
|
82
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const wm=me("EllipsisIcon",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
87
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const Xl=me("EraserIcon",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/**
|
|
92
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const ic=me("ExternalLinkIcon",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
97
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const Rr=me("EyeIcon",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
102
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const ds=me("FileImageIcon",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/**
|
|
107
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const Cm=me("FlaskConicalIcon",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
|
|
112
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const km=me("GlobeIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
117
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const Am=me("HistoryIcon",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
122
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const Sm=me("ImageDownIcon",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
|
|
127
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const Em=me("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
132
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const Pm=me("LayersIcon",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
137
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const Om=me("LayoutGridIcon",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
|
142
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const Tm=me("ListChecksIcon",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
147
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const $t=me("LoaderCircleIcon",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
152
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const Zl=me("LockIcon",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
157
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const lc=me("MessageSquarePlusIcon",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/**
|
|
162
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const Im=me("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
167
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const Rm=me("PaintBucketIcon",[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]]);/**
|
|
172
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Mm=me("PencilIcon",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
177
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const Ql=me("PlayIcon",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
182
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const $m=me("Redo2Icon",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
|
|
187
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const Bm=me("Settings2Icon",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
192
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const Dm=me("SlidersHorizontalIcon",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
197
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Mt=me("SparklesIcon",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
202
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const bs=me("SquareDashedIcon",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/**
|
|
207
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const Nm=me("SquareIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
212
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Lm=me("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
217
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const qm=me("TagIcon",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
222
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const xs=me("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
227
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const ac=me("TypeIcon",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
232
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const Fm=me("Undo2Icon",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
237
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const Vm=me("UserIcon",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
242
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const zm=me("WandSparklesIcon",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
|
|
247
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const ea=me("WrenchIcon",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
252
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
253
|
-
*
|
|
254
|
-
* This source code is licensed under the ISC license.
|
|
255
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const uc=me("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Um={class:"flex min-h-screen flex-col items-center justify-center gap-3 text-sm text-muted-foreground"},Hm=X({__name:"AppLoader",props:{message:{}},setup(e){return(t,n)=>(k(),V("div",Um,[S(h($t),{class:"size-5 animate-spin text-foreground/70"}),P("p",null,se(e.message),1)]))}});function On(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const l=mt(o,i);if(l||l===null)return l;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(oo(o,i),i)]}function Bt(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function cc(e,t,n){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(s)}function jm(e){return e==null}function Qo(e,t){return gi()?(Fa(e,t),!0):!1}function Km(){const e=new Set,t=r=>{e.delete(r)};return{on:r=>{e.add(r);const i=()=>t(r);return Qo(i),{off:i}},off:t,trigger:(...r)=>Promise.all(Array.from(e).map(i=>i(...r))),clear:()=>{e.clear()}}}function Wm(e){let t=!1,n;const o=qa(!0);return((...s)=>(t||(n=o.run(()=>e(...s)),t=!0),n))}const At=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gm=e=>typeof e<"u",Jm=Object.prototype.toString,Ym=e=>Jm.call(e)==="[object Object]",ta=Xm();function Xm(){var e,t,n;return At&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function Mr(e){return Array.isArray(e)?e:[e]}function Zm(e){return Ut()}function Qm(e){if(!At)return e;let t=0,n,o;const s=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...r)=>(t+=1,o||(o=qa(!0),n=o.run(()=>e(...r))),Qo(s),n))}function eg(e){return ln(Ne(e)?new Proxy({},{get(t,n,o){return h(Reflect.get(e.value,n,o))},set(t,n,o){return Ne(e.value[n])&&!Ne(o)?e.value[n].value=o:e.value[n]=o,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function tg(e){return eg(q(e))}function lr(e,...t){const n=t.flat(),o=n[0];return tg(()=>Object.fromEntries(typeof o=="function"?Object.entries(kn(e)).filter(([s,r])=>!o(lt(r),s)):Object.entries(kn(e)).filter(s=>!n.includes(s[0]))))}function ng(e,t=1e4){return lu((n,o)=>{let s=lt(e),r;const i=()=>setTimeout(()=>{s=lt(e),o()},lt(t));return Qo(()=>{clearTimeout(r)}),{get(){return n(),s},set(l){s=l,o(),clearTimeout(r),r=i()}}})}function og(e,t){Zm()&&Ci(e,t)}function dc(e,t,n={}){const{immediate:o=!0,immediateCallback:s=!1}=n,r=Go(!1);let i;function l(){i&&(clearTimeout(i),i=void 0)}function a(){r.value=!1,l()}function c(...u){s&&e(),l(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=void 0,e(...u)},lt(t))}return o&&(r.value=!0,At&&c()),Qo(a),{isPending:Bn(r),start:c,stop:a}}function sg(e,t,n){return Te(e,t,{...n,immediate:!0})}const Ii=At?window:void 0;function go(e){var t;const n=lt(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Uo(...e){const t=(o,s,r,i)=>(o.addEventListener(s,r,i),()=>o.removeEventListener(s,r,i)),n=q(()=>{const o=Mr(lt(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0});return sg(()=>{var o,s;return[(o=(s=n.value)===null||s===void 0?void 0:s.map(r=>go(r)))!==null&&o!==void 0?o:[Ii].filter(r=>r!=null),Mr(lt(n.value?e[1]:e[0])),Mr(h(n.value?e[2]:e[1])),lt(n.value?e[3]:e[2])]},([o,s,r,i],l,a)=>{if(!(o!=null&&o.length)||!(s!=null&&s.length)||!(r!=null&&r.length))return;const c=Ym(i)?{...i}:i,u=o.flatMap(d=>s.flatMap(f=>r.map(p=>t(d,f,p,c))));a(()=>{u.forEach(d=>d())})},{flush:"post"})}function rg(){const e=Go(!1),t=Ut();return t&&vt(()=>{e.value=!0},t),e}function ig(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function lg(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Ii,eventName:r="keydown",passive:i=!1,dedupe:l=!1}=o,a=ig(t);return Uo(s,r,u=>{u.repeat&<(l)||a(u)&&n(u)},i)}function ag(e){return JSON.parse(JSON.stringify(e))}function ar(e,t,n,o={}){var s,r;const{clone:i=!1,passive:l=!1,eventName:a,deep:c=!1,defaultValue:u,shouldEmit:d}=o,f=Ut(),p=n||(f==null?void 0:f.emit)||(f==null||(s=f.$emit)===null||s===void 0?void 0:s.bind(f))||(f==null||(r=f.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(f==null?void 0:f.proxy));let g=a;t||(t="modelValue"),g=g||`update:${t.toString()}`;const m=w=>i?typeof i=="function"?i(w):ag(w):w,y=()=>Gm(e[t])?m(e[t]):u,_=w=>{d?d(w)&&p(g,w):p(g,w)};if(l){const w=L(y());let E=!1;return Te(()=>e[t],O=>{E||(E=!0,w.value=m(O),Qe(()=>E=!1))}),Te(w,O=>{!E&&(O!==e[t]||c)&&_(O)},{deep:c}),w}else return q({get(){return y()},set(w){_(w)}})}function Ri(e){return e?e.flatMap(t=>t.type===be?Ri(t.children):[t]):[]}const[ur]=On("ConfigProvider"),ut=ln({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function $r(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function si(e,t,n=".",o){if(!$r(t))return si(e,{},n,o);const s={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(o&&o(s,r,i,n)||(Array.isArray(i)&&Array.isArray(s[r])?s[r]=[...i,...s[r]]:$r(i)&&$r(s[r])?s[r]=si(i,s[r],(n?`${n}.`:"")+r.toString(),o):s[r]=i))}return s}function ug(e){return(...t)=>t.reduce((n,o)=>si(n,o,"",e),{})}const fc=ug(),cg=Qm(()=>{const e=L(new Map),t=L(),n=q(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=ur({scrollBody:L(!0)});let s=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",ut.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=""),document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",ta&&(s==null||s()),t.value=void 0};return Te(n,(i,l)=>{var d;if(!At)return;if(!i){l&&r();return}t.value===void 0&&(t.value=document.body.style.overflow);const a=window.innerWidth-document.documentElement.clientWidth,c={padding:a,margin:0},u=(d=o.scrollBody)!=null&&d.value?typeof o.scrollBody.value=="object"?fc({padding:o.scrollBody.value.padding===!0?a:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?a:o.scrollBody.value.margin},c):c:{padding:0,margin:0};a>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),ta&&(s=Uo(document,"touchmove",f=>fg(f),{passive:!1})),Qe(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function dg(e){const t=Math.random().toString(36).substring(2,7),n=cg();n.value.set(t,e);const o=q({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return og(()=>{n.value.delete(t)}),o}function pc(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:pc(n)}}function fg(e){const t=e||window.event,n=t.target;return n instanceof Element&&pc(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Mi(e){const t=ur({dir:L("ltr")});return q(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function pg(e){const t=Ut(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(s=>{o[Oo(je(s))]=(...r)=>e(s,...r)}),o}let Br=0;function hg(){Ft(e=>{if(!At)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??na()),document.body.insertAdjacentElement("beforeend",t[1]??na()),Br++,e(()=>{Br===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),Br--})})}function na(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function ze(){const e=Ut(),t=L(),n=q(()=>o());_u(()=>{n.value!==o()&&nf(t)});function o(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:go(t)}const s=Object.assign({},e.exposed),r={};for(const l in e.props)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(s).length>0)for(const l in s)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>s[l]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function i(l){if(t.value=l,!!l&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),!(l instanceof Element)&&!Object.hasOwn(l,"$el"))){const a=l.$.exposed,c=Object.assign({},r);for(const u in a)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>a[u]});e.exposed=c}}return{forwardRef:i,currentRef:t,currentElement:n}}function es(e){const t=Ut(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((s,r)=>{const i=(t==null?void 0:t.type.props[r]).default;return i!==void 0&&(s[r]=i),s},{}),o=af(e);return q(()=>{const s={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(i=>{s[je(i)]=r[i]}),Object.keys({...n,...s}).reduce((i,l)=>(o.value[l]!==void 0&&(i[l]=o.value[l]),i),{})})}function Tn(e,t){const n=es(e),o=t?pg(t):{};return q(()=>({...n.value,...o}))}function mg(e,t){const n=ng(!1,300);Qo(()=>{n.value=!1});const o=L(null),s=Km();function r(){o.value=null,n.value=!1}function i(l,a){if(!a)return;const c=l.currentTarget,u={x:l.clientX,y:l.clientY},d=gg(u,c.getBoundingClientRect()),f=vg(u,d,1),p=yg(a.getBoundingClientRect()),g=xg([...f,...p]);o.value=g,n.value=!0}return Ft(l=>{if(e.value&&t.value){const a=e.value,c=t.value,u=f=>i(f,c),d=f=>i(f,a);a.addEventListener("pointerleave",u),c.addEventListener("pointerleave",d),l(()=>{a.removeEventListener("pointerleave",u),c.removeEventListener("pointerleave",d)})}}),Ft(l=>{var a;if(o.value){const c=d=>{var _,w;if(!o.value||!(d.target instanceof Element))return;const f=d.target,p={x:d.clientX,y:d.clientY},g=((_=e.value)==null?void 0:_.contains(f))||((w=t.value)==null?void 0:w.contains(f)),m=!bg(p,o.value),y=!!f.closest("[data-grace-area-trigger]");g?r():(m||y)&&(r(),s.trigger())},u=(a=e.value)==null?void 0:a.ownerDocument;u==null||u.addEventListener("pointermove",c),l(()=>u==null?void 0:u.removeEventListener("pointermove",c))}}),{isPointerInTransit:n,onPointerExit:s.on}}function gg(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,s,r)){case r:return"left";case s:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function vg(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function yg(e){const{top:t,right:n,bottom:o,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:o},{x:s,y:o}]}function bg(e,t){const{x:n,y:o}=e;let s=!1;for(let r=0,i=t.length-1;r<t.length;i=r++){const l=t[r].x,a=t[r].y,c=t[i].x,u=t[i].y;a>o!=u>o&&n<(c-l)*(o-a)/(u-a)+l&&(s=!s)}return s}function xg(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),_g(t)}function _g(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const s=e[o];for(;t.length>=2;){const r=t.at(-1),i=t[t.length-2];if((r.x-i.x)*(s.y-i.y)>=(r.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const s=e[o];for(;n.length>=2;){const r=n.at(-1),i=n[n.length-2];if((r.x-i.x)*(s.y-i.y)>=(r.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var wg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,fs=new WeakMap,ps={},Dr=0,hc=function(e){return e&&(e.host||hc(e.parentNode))},Cg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=hc(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},kg=function(e,t,n,o){var s=Cg(t,Array.isArray(e)?e:[e]);ps[n]||(ps[n]=new WeakMap);var r=ps[n],i=[],l=new Set,a=new Set(s),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||a.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))u(f);else try{var p=f.getAttribute(o),g=p!==null&&p!=="false",m=(Yn.get(f)||0)+1,y=(r.get(f)||0)+1;Yn.set(f,m),r.set(f,y),i.push(f),m===1&&g&&fs.set(f,!0),y===1&&f.setAttribute(n,"true"),g||f.setAttribute(o,"true")}catch(_){console.error("aria-hidden: cannot operate on ",f,_)}})};return u(t),l.clear(),Dr++,function(){i.forEach(function(d){var f=Yn.get(d)-1,p=r.get(d)-1;Yn.set(d,f),r.set(d,p),f||(fs.has(d)||d.removeAttribute(o),fs.delete(d)),p||d.removeAttribute(n)}),Dr--,Dr||(Yn=new WeakMap,Yn=new WeakMap,fs=new WeakMap,ps={})}},Ag=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=wg(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),kg(o,s,n,"aria-hidden")):function(){return null}};function Sg(e){let t;Te(()=>go(e),n=>{let o=!1;try{o=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!o?t=Ag(n):t&&t()}),Kn(()=>{t&&t()})}function po(e,t="reka"){let n;const o=ur({useId:void 0});return o.useId?n=o.useId():n=wr==null?void 0:wr(),t?`${t}-${n}`:n}function Eg(e){const t=L(),n=q(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=q(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});let s;return vt(()=>{const r=go(e);r?(t.value={width:r.offsetWidth,height:r.offsetHeight},s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let a,c;if("borderBoxSize"in l){const u=l.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=r.offsetWidth,c=r.offsetHeight;t.value={width:a,height:c}}),s.observe(r,{box:"border-box"})):t.value=void 0}),Kn(()=>{s==null||s.disconnect(),s=void 0}),{width:n,height:o}}function Pg(e,t){const n=L(e);function o(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=o(r)}}}function Og(e,t){var y;const n=L({}),o=L("none"),s=L(e),r=e.value?"mounted":"unmounted";let i;const l=((y=t.value)==null?void 0:y.ownerDocument.defaultView)??Ii,{state:a,dispatch:c}=Pg(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=_=>{var w;if(At){const E=new CustomEvent(_,{bubbles:!1,cancelable:!1});(w=t.value)==null||w.dispatchEvent(E)}};Te(e,async(_,w)=>{var O;const E=w!==_;if(await Qe(),E){const j=o.value,H=hs(t.value);_?(c("MOUNT"),u("enter"),H==="none"&&u("after-enter")):H==="none"||H==="undefined"||((O=n.value)==null?void 0:O.display)==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):w&&j!==H?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=_=>{if(_.target!==t.value)return;const w=hs(t.value),E=w.includes(CSS.escape(_.animationName)),O=a.value==="mounted"?"enter":"leave";if(E&&(u(`after-${O}`),c("ANIMATION_END"),!s.value)){const j=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=l==null?void 0:l.setTimeout(()=>{var H;((H=t.value)==null?void 0:H.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=j)})}w==="none"&&c("ANIMATION_END")},f=_=>{_.target===t.value&&(o.value=hs(t.value))},p=Te(t,(_,w)=>{_?(n.value=getComputedStyle(_),_.addEventListener("animationstart",f),_.addEventListener("animationcancel",d),_.addEventListener("animationend",d)):(c("ANIMATION_END"),i!==void 0&&(l==null||l.clearTimeout(i)),w==null||w.removeEventListener("animationstart",f),w==null||w.removeEventListener("animationcancel",d),w==null||w.removeEventListener("animationend",d))},{immediate:!0}),g=Te(a,()=>{const _=hs(t.value);o.value=a.value==="mounted"?_:"none"});return Kn(()=>{p(),g(),t.value&&(t.value.removeEventListener("animationstart",f),t.value.removeEventListener("animationcancel",d),t.value.removeEventListener("animationend",d)),i!==void 0&&(l==null||l.clearTimeout(i))}),{isPresent:q(()=>["mounted","unmountSuspended"].includes(a.value))}}function hs(e){return e&&getComputedStyle(e).animationName||"none"}var $i=X({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var c;const{present:o,forceMount:s}=kn(e),r=L(),{isPresent:i}=Og(o,r);n({present:i});let l=t.default({present:i.value});l=Ri(l||[]);const a=Ut();if(l&&(l==null?void 0:l.length)>1){const u=(c=a==null?void 0:a.parent)!=null&&c.type.name?`<${a.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(d=>` - ${d}`).join(`
|
|
257
|
-
`)].join(`
|
|
258
|
-
`))}return()=>s.value||o.value||i.value?xt(t.default({present:i.value})[0],{ref:u=>{const d=go(u);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-reka-popper-content-wrapper")?r.value=d.firstElementChild:r.value=d),d}}):null}});const ri=X({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var a;if(!n.default)return null;const o=Ri(n.default()),s=o.findIndex(c=>c.type!==Ct);if(s===-1)return o;const r=o[s];(a=r.props)==null||delete a.ref;const i=r.props?Le(t,r.props):t,l=Vn({...r,props:{}},i);return o.length===1?l:(o[s]=l,o)}}}),Tg=["area","img","input"],Je=X({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&Tg.includes(o)?()=>xt(o,t):o!=="template"?()=>xt(e.as,t,{default:n.default}):()=>xt(ri,t,{default:n.default})}});function oa(){const e=L(),t=q(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:go(e)});return{primitiveElement:e,currentElement:t}}const Ig="dismissableLayer.pointerDownOutside",Rg="dismissableLayer.focusOutside";function mc(e,t){if(!(t instanceof Element))return!1;if(e.contains(t))return!0;const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||s.indexOf(o)<s.indexOf(n)))}function Mg(e,t,n=!0){var i;const o=((i=t==null?void 0:t.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=L(!1),r=L(()=>{});return Ft(l=>{if(!At||!lt(n))return;const a=async u=>{const d=u.target;if(!(!(t!=null&&t.value)||!d)){if(mc(t.value,d)){o.removeEventListener("click",r.value),s.value=!1;return}if(u.target&&!s.value){let g=function(){cc(Ig,e,p)};var f=g;const p={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=g,o.addEventListener("click",r.value,{once:!0})):g()}else o.removeEventListener("click",r.value);s.value=!1}},c=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);l(()=>{window.clearTimeout(c),o.removeEventListener("pointerdown",a),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{lt(n)&&(s.value=!0)}}}function $g(e,t,n=!0){var r;const o=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=L(!1);return Ft(i=>{if(!At||!lt(n))return;const l=async a=>{if(!(t!=null&&t.value))return;await Qe(),await Qe();const c=a.target;!t.value||!c||mc(t.value,c)||a.target&&!s.value&&cc(Rg,e,{originalEvent:a})};o.addEventListener("focusin",l),i(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>{lt(n)&&(s.value=!0)},onBlurCapture:()=>{lt(n)&&(s.value=!1)}}}var Bg=X({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:s,currentElement:r}=ze(),i=q(()=>{var p;return((p=r.value)==null?void 0:p.ownerDocument)??globalThis.document}),l=q(()=>ut.layersRoot),a=q(()=>r.value?Array.from(l.value).indexOf(r.value):-1),c=q(()=>ut.layersWithOutsidePointerEventsDisabled.size>0),u=q(()=>{const p=Array.from(l.value),[g]=[...ut.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(g);return a.value>=m}),d=Mg(async p=>{const g=[...ut.branches].some(m=>m==null?void 0:m.contains(p.target));!n.present||!u.value||g||(o("pointerDownOutside",p),o("interactOutside",p),await Qe(),p.defaultPrevented||o("dismiss"))},r,()=>n.present),f=$g(p=>{const g=[...ut.branches].some(m=>m==null?void 0:m.contains(p.target));!n.present||g||(o("focusOutside",p),o("interactOutside",p),p.defaultPrevented||o("dismiss"))},r);return lg("Escape",p=>{!n.present||!(a.value===l.value.size-1)||(o("escapeKeyDown",p),p.defaultPrevented||o("dismiss"))}),Te([r,()=>n.disableOutsidePointerEvents,()=>n.present],([p,g,m],y,_)=>{!p||!m||g&&(ut.layersWithOutsidePointerEventsDisabled.size===0&&(ut.originalBodyPointerEvents=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),ut.layersWithOutsidePointerEventsDisabled.add(p),_(()=>{ut.layersWithOutsidePointerEventsDisabled.delete(p),ut.layersWithOutsidePointerEventsDisabled.size===0&&!jm(ut.originalBodyPointerEvents)&&(i.value.body.style.pointerEvents=ut.originalBodyPointerEvents)}))},{immediate:!0}),Te([r,()=>n.present],([p,g],m,y)=>{!p||!g||(l.value.add(p),y(()=>{l.value.delete(p)}))},{immediate:!0}),Ft(p=>{p(()=>{r.value&&(l.value.delete(r.value),ut.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(p,g)=>(k(),Z(h(Je),{ref:h(s),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Pn({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:h(f).onFocusCapture,onBlurCapture:h(f).onBlurCapture,onPointerdownCapture:h(d).onPointerDownCapture},{default:T(()=>[ue(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),gc=Bg;const Dg=Wm(()=>L([]));function Ng(){const e=Dg();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=sa(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=sa(e.value,t),(n=e.value[0])==null||n.resume()}}}function sa(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}const Nr="focusScope.autoFocusOnMount",Lr="focusScope.autoFocusOnUnmount",ra={bubbles:!1,cancelable:!0};function Lg(e,{select:t=!1}={}){const n=Bt();for(const o of e)if(yn(o,{select:t}),Bt()!==n)return!0}function qg(e){const t=vc(e),n=ia(t,e),o=ia(t.reverse(),e);return[n,o]}function vc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ia(e,t){for(const n of e)if(!Fg(n,{upTo:t}))return n}function Fg(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Vg(e){return e instanceof HTMLInputElement&&"select"in e}function yn(e,{select:t=!1}={}){if(e&&e.focus){const n=Bt();e.focus({preventScroll:!0}),e!==n&&Vg(e)&&t&&e.select()}}var zg=X({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:s,currentElement:r}=ze(),i=L(null),l=Ng(),a=ln({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Ft(d=>{if(!At)return;const f=r.value;if(!n.trapped)return;function p(_){if(a.paused||!f)return;const w=_.target;f.contains(w)?i.value=w:yn(i.value,{select:!0})}function g(_){if(a.paused||!f)return;const w=_.relatedTarget;w!==null&&(f.contains(w)||yn(i.value,{select:!0}))}function m(_){const w=i.value;if(w===null||!_.some(H=>H.removedNodes.length>0))return;const O=Bt();if(O&&f.contains(O))return;f.contains(w)||yn(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(m);f&&y.observe(f,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()})});function c(d,f){const p=new CustomEvent(Nr,ra),g=m=>o("mountAutoFocus",m);d.addEventListener(Nr,g),d.dispatchEvent(p),d.removeEventListener(Nr,g),p.defaultPrevented||(Lg(vc(d),{select:!0}),Bt()===f&&yn(d))}Ft(async d=>{const f=r.value;if(await Qe(),!f)return;n.present!==!1&&l.add(a);const p=Bt();!f.contains(p)&&n.present!==!1&&c(f,p),d(()=>{const m=new CustomEvent(Lr,ra),y=_=>{o("unmountAutoFocus",_)};f.addEventListener(Lr,y),f.dispatchEvent(m),f.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{m.defaultPrevented||yn(p??document.body,{select:!0}),f.removeEventListener(Lr,y),l.remove(a),f.removeAttribute("data-focus-scope-unmounting")},0)})}),Te(()=>n.present,async(d,f)=>{if(!At)return;if(d===!1&&f===!0){l.remove(a);return}if(d!==!0||f!==!1)return;l.add(a),await Qe();const p=r.value;if(!p)return;const g=Bt();p.contains(g)||c(p,g)});function u(d){if(!n.loop&&!n.trapped||a.paused)return;const f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,p=Bt();if(f&&p){const g=d.currentTarget,[m,y]=qg(g);m&&y?!d.shiftKey&&p===y?(d.preventDefault(),n.loop&&yn(m,{select:!0})):d.shiftKey&&p===m&&(d.preventDefault(),n.loop&&yn(y,{select:!0})):p===g&&d.preventDefault()}}return(d,f)=>(k(),Z(h(Je),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":d.asChild,as:d.as,onKeydown:u},{default:T(()=>[ue(d.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ug=zg,Hg=X({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e,n=ur({}),o=q(()=>{var r;return t.to??((r=n.teleportTo)==null?void 0:r.value)??"body"}),s=rg();return(r,i)=>h(s)||r.forceMount?(k(),Z(vu,{key:0,to:o.value,disabled:r.disabled,defer:r.defer},[ue(r.$slots,"default")],8,["to","disabled","defer"])):le("v-if",!0)}}),yc=Hg;const la="data-reka-collection-item";function bc(e={}){const{key:t="",isProvider:n=!1}=e,o=`${t}CollectionProvider`;let s;n?(s={collectionRef:L(),itemMap:L(new Map)},oo(o,s)):s=mt(o);const r=(d,f=!1)=>{if(!s.collectionRef.value)return;const p=s.itemMap.value.get(d);return p&&(f||p.ref.dataset.disabled!=="")?p:void 0},i=(d=!1)=>{const f=s.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${la}]`)),g=new Map(p.map((_,w)=>[_,w])),y=Array.from(s.itemMap.value.values()).sort((_,w)=>(g.get(_.ref)??-1)-(g.get(w.ref)??-1));return d?y:y.filter(_=>_.ref.dataset.disabled!=="")},l=X({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:g,currentElement:m}=oa();return Te(m,()=>{s.collectionRef.value=m.value}),()=>xt(ri,{ref:g,...p},f)}}),a=X({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:p}){const{primitiveElement:g,currentElement:m}=oa();return Ft(y=>{if(m.value){const _=su(m.value);s.itemMap.value.set(_,{ref:m.value,value:d.value}),y(()=>s.itemMap.value.delete(_))}}),()=>xt(ri,{...p,[la]:"",ref:g},f)}}),c=q(()=>Array.from(s.itemMap.value.values())),u=q(()=>s.itemMap.value.size);return{getItems:i,getItem:r,reactiveItems:c,itemMapSize:u,CollectionSlot:l,CollectionItem:a}}var jg=X({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(k(),Z(h(Je),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"||t.feature==="fully-hidden"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:T(()=>[ue(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Kg=jg;const Wg="rovingFocusGroup.onEntryFocus",Gg={bubbles:!1,cancelable:!0},Jg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Xg(e,t,n){const o=Yg(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Jg[o]}function xc(e,t=!1){const n=Bt();for(const o of e)if(o===n||(o.focus({preventScroll:t}),Bt()!==n))return}function Zg(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const[_c,Qg]=On("PopperRoot");var ev=X({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=L();return Qg({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ue(n.$slots,"default")}}),wc=ev,tv=X({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ze(),s=_c();return hu(()=>{s.onAnchorChange(t.reference??o.value)}),(r,i)=>(k(),Z(h(Je),{ref:h(n),as:r.as,"as-child":r.asChild},{default:T(()=>[ue(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),Cc=tv;function nv(e){return e!==null}function ov(e){return{name:"transformOrigin",options:e,fn(t){var _,w,E;const{placement:n,rects:o,middlewareData:s}=t,i=((_=s.arrow)==null?void 0:_.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,u]=ii(n),d={start:e.dir==="rtl"?"100%":"0%",center:"50%",end:e.dir==="rtl"?"0%":"100%"}[u],f={start:"0%",center:"50%",end:"100%"}[u],p=(((w=s.arrow)==null?void 0:w.x)??0)+l/2,g=(((E=s.arrow)==null?void 0:E.y)??0)+a/2;let m="",y="";return c==="bottom"?(m=i?d:`${p}px`,y=`${-a}px`):c==="top"?(m=i?d:`${p}px`,y=`${o.floating.height+a}px`):c==="right"?(m=`${-a}px`,y=i?f:`${g}px`):c==="left"&&(m=`${o.floating.width+a}px`,y=i?f:`${g}px`),{data:{x:m,y}}}}}function ii(e){const[t,n="center"]=e.split("-");return[t,n]}const sv=["top","right","bottom","left"],Sn=Math.min,tn=Math.max,Ms=Math.round,ms=Math.floor,nn=e=>({x:e,y:e}),rv={left:"right",right:"left",bottom:"top",top:"bottom"};function kc(e,t,n){return tn(e,Sn(t,n))}function un(e,t){return typeof e=="function"?e(t):e}function En(e){return e.split("-")[0]}function vo(e){return e.split("-")[1]}function Bi(e){return e==="x"?"y":"x"}function Di(e){return e==="y"?"height":"width"}function Nt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ni(e){return Bi(Nt(e))}function iv(e,t,n){n===void 0&&(n=!1);const o=vo(e),s=Ni(e),r=Di(s);let i=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=$s(i)),[i,$s(i)]}function lv(e){const t=$s(e);return[li(e),t,li(t)]}function li(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const aa=["left","right"],ua=["right","left"],av=["top","bottom"],uv=["bottom","top"];function cv(e,t,n){switch(e){case"top":case"bottom":return n?t?ua:aa:t?aa:ua;case"left":case"right":return t?av:uv;default:return[]}}function dv(e,t,n,o){const s=vo(e);let r=cv(En(e),n==="start",o);return s&&(r=r.map(i=>i+"-"+s),t&&(r=r.concat(r.map(li)))),r}function $s(e){const t=En(e);return rv[t]+e.slice(t.length)}function fv(e){var t,n,o,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(s=e.left)!=null?s:0}}function Ac(e){return typeof e!="number"?fv(e):{top:e,right:e,bottom:e,left:e}}function Bs(e){const{x:t,y:n,width:o,height:s}=e;return{width:o,height:s,top:n,left:t,right:t+o,bottom:n+s,x:t,y:n}}function ca(e,t,n){let{reference:o,floating:s}=e;const r=Nt(t),i=Ni(t),l=Di(i),a=En(t),c=r==="y",u=o.x+o.width/2-s.width/2,d=o.y+o.height/2-s.height/2,f=o[l]/2-s[l]/2;let p;switch(a){case"top":p={x:u,y:o.y-s.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-s.width,y:d};break;default:p={x:o.x,y:o.y}}const g=vo(t);return g&&(p[i]+=f*(g==="end"?1:-1)*(n&&c?-1:1)),p}async function pv(e,t){var n;t===void 0&&(t={});const{x:o,y:s,platform:r,rects:i,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=un(t,e),g=Ac(p),y=l[f?d==="floating"?"reference":"floating":d],_=Bs(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(y)))==null||n?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w=d==="floating"?{x:o,y:s,width:i.floating.width,height:i.floating.height}:i.reference,E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),O=await(r.isElement==null?void 0:r.isElement(E))&&await(r.getScale==null?void 0:r.getScale(E))||{x:1,y:1},j=Bs(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:E,strategy:a}):w);return{top:(_.top-j.top+g.top)/O.y,bottom:(j.bottom-_.bottom+g.bottom)/O.y,left:(_.left-j.left+g.left)/O.x,right:(j.right-_.right+g.right)/O.x}}const hv=50,mv=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:r=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:pv},a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=ca(c,o,a),f=o,p=0;const g={};for(let m=0;m<r.length;m++){const y=r[m];if(!y)continue;const{name:_,fn:w}=y,{x:E,y:O,data:j,reset:H}=await w({x:u,y:d,initialPlacement:o,placement:f,strategy:s,middlewareData:g,rects:c,platform:l,elements:{reference:e,floating:t}});u=E??u,d=O??d,g[_]={...g[_],...j},H&&p<hv&&(p++,typeof H=="object"&&(H.placement&&(f=H.placement),H.rects&&(c=H.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):H.rects),{x:u,y:d}=ca(c,f,a)),m=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:g}},gv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:s,rects:r,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=un(e,t)||{};if(c==null)return{};const d=Ac(u),f={x:n,y:o},p=Ni(s),g=Di(p),m=await i.getDimensions(c),y=p==="y",_=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",O=r.reference[g]+r.reference[p]-f[p]-r.floating[g],j=f[p]-r.reference[p],H=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let R=H?H[E]:0;(!R||!await(i.isElement==null?void 0:i.isElement(H)))&&(R=l.floating[E]||r.floating[g]);const K=O/2-j/2,ee=R/2-m[g]/2-1,U=Sn(d[_],ee),N=Sn(d[w],ee),$=R-m[g]-N,I=R/2-m[g]/2+K,ne=kc(U,I,$),oe=!a.arrow&&vo(s)!=null&&I!==ne&&r.reference[g]/2-(I<U?U:N)-m[g]/2<0,re=oe?I<U?I-U:I-$:0;return{[p]:f[p]+re,data:{[p]:ne,centerOffset:I-ne-re,...oe&&{alignmentOffset:re}},reset:oe}}}),vv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=un(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const _=En(s),w=Nt(l),E=En(l)===l,O=await(a.isRTL==null?void 0:a.isRTL(c.floating)),j=f||(E||!m?[$s(l)]:lv(l)),H=g!=="none";!f&&H&&j.push(...dv(l,m,g,O));const R=[l,...j],K=await a.detectOverflow(t,y),ee=[];let U=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&ee.push(K[_]),d){const ne=iv(s,i,O);ee.push(K[ne[0]],K[ne[1]])}if(U=[...U,{placement:s,overflows:ee}],!ee.every(ne=>ne<=0)){var N,$;const ne=(((N=r.flip)==null?void 0:N.index)||0)+1,oe=R[ne];if(oe&&(!(d==="alignment"?w!==Nt(oe):!1)||U.every(ce=>Nt(ce.placement)===w?ce.overflows[0]>0:!0)))return{data:{index:ne,overflows:U},reset:{placement:oe}};let re=($=U.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:$.placement;if(!re)switch(p){case"bestFit":{var I;const fe=(I=U.filter(ce=>{if(H){const _e=Nt(ce.placement);return _e===w||_e==="y"}return!0}).map(ce=>[ce.placement,ce.overflows.filter(_e=>_e>0).reduce((_e,et)=>_e+et,0)]).sort((ce,_e)=>ce[1]-_e[1])[0])==null?void 0:I[0];fe&&(re=fe);break}case"initialPlacement":re=l;break}if(s!==re)return{reset:{placement:re}}}return{}}}};function da(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fa(e){return sv.some(t=>e[t]>=0)}const yv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:s="referenceHidden",...r}=un(e,t);switch(s){case"referenceHidden":{const i=await o.detectOverflow(t,{...r,elementContext:"reference"}),l=da(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:fa(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...r,altBoundary:!0}),l=da(i,n.floating);return{data:{escapedOffsets:l,escaped:fa(l)}}}default:return{}}}}},Sc=new Set(["left","top"]);async function bv(e,t){const{placement:n,platform:o,elements:s}=e,r=await(o.isRTL==null?void 0:o.isRTL(s.floating)),i=En(n),l=vo(n),a=Nt(n)==="y",c=Sc.has(i)?-1:1,u=r&&a?-1:1,d=un(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const xv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:s,y:r,placement:i,middlewareData:l}=t,a=await bv(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:s+a.x,y:r+a.y,data:{...a,placement:i}}}}},_v=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s,platform:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:w=>{let{x:E,y:O}=w;return{x:E,y:O}}},...c}=un(e,t),u={x:n,y:o},d=await r.detectOverflow(t,c),f=Nt(s),p=Bi(f);let g=u[p],m=u[f];const y=(w,E)=>kc(E+d[w==="y"?"top":"left"],E,E-d[w==="y"?"bottom":"right"]);i&&(g=y(p,g)),l&&(m=y(f,m));const _=a.fn({...t,[p]:g,[f]:m});return{..._,data:{x:_.x-n,y:_.y-o,enabled:{[p]:i,[f]:l}}}}}},wv=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:s,y:r,placement:i,rects:l,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=un(e,t),f={x:s,y:r},p=Nt(i),g=Bi(p);let m=f[g],y=f[p];const _=un(c,t),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:(n=_.mainAxis)!=null?n:0,crossAxis:(o=_.crossAxis)!=null?o:0};if(u){const j=g==="y"?"height":"width",H=l.reference[g]-l.floating[j]+w.mainAxis,R=l.reference[g]+l.reference[j]-w.mainAxis;m<H?m=H:m>R&&(m=R)}if(d){var E,O;const j=g==="y"?"width":"height",H=Sc.has(En(i)),R=l.reference[p]-l.floating[j]+(H&&((E=a.offset)==null?void 0:E[p])||0)+(H?0:w.crossAxis),K=l.reference[p]+l.reference[j]+(H?0:((O=a.offset)==null?void 0:O[p])||0)-(H?w.crossAxis:0);y<R?y=R:y>K&&(y=K)}return{[g]:m,[p]:y}}}},Cv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:s,elements:r}=t,{apply:i=()=>{},...l}=un(e,t),a=await s.detectOverflow(t,l),c=En(n),u=vo(n),d=Nt(n)==="y",{width:f,height:p}=o.floating;let g,m;c==="top"||c==="bottom"?(g=c,m=u===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(m=c,g=u==="end"?"top":"bottom");const y=p-a.top-a.bottom,_=f-a.left-a.right,w=Sn(p-a[g],y),E=Sn(f-a[m],_),O=t.middlewareData.shift,j=!O;let H=w,R=E;O!=null&&O.enabled.x&&(R=_),O!=null&&O.enabled.y&&(H=y),j&&!u&&(d?R=f-2*tn(a.left,a.right):H=p-2*tn(a.top,a.bottom)),await i({...t,availableWidth:R,availableHeight:H});const K=await s.getDimensions(r.floating);return f!==K.width||p!==K.height?{reset:{rects:!0}}:{}}}};function cr(){return typeof window<"u"}function Gn(e){return Li(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(Li(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Li(e){return cr()?e instanceof Node||e instanceof ct(e).Node:!1}function Vt(e){return cr()?e instanceof Element||e instanceof ct(e).Element:!1}function In(e){return cr()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function pa(e){return!cr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function dr(e){const{overflow:t,overflowX:n,overflowY:o,display:s}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&s!=="inline"&&s!=="contents"}function kv(e){return/^(table|td|th)$/.test(Gn(e))}function fr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Av=/transform|translate|scale|rotate|perspective|filter/,Sv=/paint|layout|strict|content/,$n=e=>!!e&&e!=="none";let qr;function qi(e){const t=Vt(e)?zt(e):e;return $n(t.transform)||$n(t.translate)||$n(t.scale)||$n(t.rotate)||$n(t.perspective)||!Fi()&&($n(t.backdropFilter)||$n(t.filter))||Av.test(t.willChange||"")||Sv.test(t.contain||"")}function Ev(e){let t=zn(e);for(;In(t)&&!Ho(t);){if(qi(t))return t;if(fr(t))return null;t=zn(t)}return null}function Fi(){return qr==null&&(qr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qr}function Ho(e){return/^(html|body|#document)$/.test(Gn(e))}function zt(e){return ct(e).getComputedStyle(e)}function pr(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zn(e){if(Gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pa(e)&&e.host||fn(e);return pa(t)?t.host:t}function Ec(e){const t=zn(e);return Ho(t)?(e.ownerDocument||e).body:In(t)&&dr(t)?t:Ec(t)}function jo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Ec(e),r=s===((o=e.ownerDocument)==null?void 0:o.body),i=ct(s);if(r){const l=ai(i);return t.concat(i,i.visualViewport||[],dr(s)?s:[],l&&n?jo(l):[])}else return t.concat(s,jo(s,[],n))}function ai(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pc(e){const t=zt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=In(e),r=s?e.offsetWidth:n,i=s?e.offsetHeight:o,l=Ms(n)!==r||Ms(o)!==i;return l&&(n=r,o=i),{width:n,height:o,$:l}}function Vi(e){return Vt(e)?e:e.contextElement}function io(e){const t=Vi(e);if(!In(t))return nn(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:r}=Pc(t);let i=(r?Ms(n.width):n.width)/o,l=(r?Ms(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Pv=nn(0);function Oc(e){const t=ct(e);return!Fi()||!t.visualViewport?Pv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ov(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ct(e)}function Un(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=Vi(e);let i=nn(1);t&&(o?Vt(o)&&(i=io(o)):i=io(e));const l=Ov(r,n,o)?Oc(r):nn(0);let a=(s.left+l.x)/i.x,c=(s.top+l.y)/i.y,u=s.width/i.x,d=s.height/i.y;if(r&&o){const f=ct(r),p=Vt(o)?ct(o):o;let g=f,m=ai(g);for(;m&&p!==g;){const y=io(m),_=m.getBoundingClientRect(),w=zt(m),E=_.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,O=_.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;a*=y.x,c*=y.y,u*=y.x,d*=y.y,a+=E,c+=O,g=ct(m),m=ai(g)}}return Bs({width:u,height:d,x:a,y:c})}function hr(e,t){const n=pr(e).scrollLeft;return t?t.left+n:Un(fn(e)).left+n}function Tc(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-hr(e,n),s=n.top+t.scrollTop;return{x:o,y:s}}function Tv(e){let{elements:t,rect:n,offsetParent:o,strategy:s}=e;const r=s==="fixed",i=fn(o),l=t?fr(t.floating):!1;if(o===i||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=nn(1);const u=nn(0),d=In(o);if((d||!r)&&((Gn(o)!=="body"||dr(i))&&(a=pr(o)),d)){const p=Un(o);c=io(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const f=i&&!d&&!r?Tc(i,a):nn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function Iv(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Rv(e){const t=pr(e),n=e.ownerDocument.body,o=tn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=tn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+hr(e);const i=-t.scrollTop;return zt(n).direction==="rtl"&&(r+=tn(e.clientWidth,n.clientWidth)-o),{width:o,height:s,x:r,y:i}}const Mv=25;function $v(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",s=ct(e),r=fn(e),i=s.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){const f=!Fi()||t==="fixed";o?f||(c=-i.offsetLeft,u=-i.offsetTop):(l=i.width,a=i.height,f&&(c=i.offsetLeft,u=i.offsetTop))}if(hr(r)<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(r.clientWidth-p.clientWidth-m),_=getComputedStyle(r).scrollbarGutter==="stable both-edges"?y/2:y;_<=Mv&&(l-=_)}return{width:l,height:a,x:c,y:u}}function Bv(e,t){const n=Un(e,!0,t==="fixed"),o=n.top+e.clientTop,s=n.left+e.clientLeft,r=io(e),i=e.clientWidth*r.x,l=e.clientHeight*r.y,a=s*r.x,c=o*r.y;return{width:i,height:l,x:a,y:c}}function ha(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=$v(e,n,t);else if(t==="document")o=Rv(fn(e));else if(Vt(t))o=Bv(t,n);else{const s=Oc(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Bs(o)}function Dv(e,t){const n=t.get(e);if(n)return n;let o=jo(e,[],!1).filter(l=>Vt(l)&&Gn(l)!=="body"),s=null;const r=zt(e).position==="fixed";let i=r?zn(e):e;for(;Vt(i)&&!Ho(i);){const l=zt(i),a=qi(i),c=s?s.position:r?"fixed":"";!a&&(c==="fixed"||c==="absolute"&&l.position==="static")?o=o.filter(d=>d!==i):s=l,i=zn(i)}return t.set(e,o),o}function Nv(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e;const i=[...n==="clippingAncestors"?fr(t)?[]:Dv(t,this._c):[].concat(n),o],l=ha(t,i[0],s);let a=l.top,c=l.right,u=l.bottom,d=l.left;for(let f=1;f<i.length;f++){const p=ha(t,i[f],s);a=tn(p.top,a),c=Sn(p.right,c),u=Sn(p.bottom,u),d=tn(p.left,d)}return{width:c-d,height:u-a,x:d,y:a}}function Lv(e){const{width:t,height:n}=Pc(e);return{width:t,height:n}}function qv(e,t,n){const o=In(t),s=fn(t),r=n==="fixed",i=Un(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const a=nn(0);if((o||!r)&&((Gn(t)!=="body"||dr(s))&&(l=pr(t)),o)){const f=Un(t,!0,r,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}!o&&s&&(a.x=hr(s));const c=s&&!o&&!r?Tc(s,l):nn(0),u=i.left+l.scrollLeft-a.x-c.x,d=i.top+l.scrollTop-a.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function Fr(e){return zt(e).position==="static"}function ma(e,t){if(!In(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function Ic(e,t){const n=ct(e);if(fr(e))return n;if(!In(e)){let s=zn(e);for(;s&&!Ho(s);){if(Vt(s)&&!Fr(s))return s;s=zn(s)}return n}let o=ma(e,t);for(;o&&kv(o)&&Fr(o);)o=ma(o,t);return o&&Ho(o)&&Fr(o)&&!qi(o)?n:o||Ev(e)||n}const Fv=async function(e){const t=this.getOffsetParent||Ic,n=this.getDimensions,o=await n(e.floating);return{reference:qv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Vv(e){return zt(e).direction==="rtl"}const zv={convertOffsetParentRelativeRectToViewportRelativeRect:Tv,getDocumentElement:fn,getClippingRect:Nv,getOffsetParent:Ic,getElementRects:Fv,getClientRects:Iv,getDimensions:Lv,getScale:io,isElement:Vt,isRTL:Vv};function Rc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uv(e,t,n){let o=null,s;const r=fn(e);function i(){var u;clearTimeout(s),(u=o)==null||u.disconnect(),o=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:p,top:g,width:m,height:y}=f;if(u||t(),!m||!y)return;const _=ms(g),w=ms(r.clientWidth-(p+m)),E=ms(r.clientHeight-(g+y)),O=ms(p),H={rootMargin:-_+"px "+-w+"px "+-E+"px "+-O+"px",threshold:tn(0,Sn(1,d))||1};let R=!0;function K(ee){const U=ee[0].intersectionRatio;if(!Rc(f,e.getBoundingClientRect()))return l();if(U!==d){if(!R)return l();U?l(!1,U):s=setTimeout(()=>{l(!1,1e-7)},1e3)}R=!1}try{o=new IntersectionObserver(K,{...H,root:r.ownerDocument})}catch{o=new IntersectionObserver(K,H)}o.observe(e)}const a=ct(e),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),i()}}function Hv(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=Vi(e),u=s||r?[...c?jo(c):[],...t?jo(t):[]]:[];u.forEach(_=>{s&&_.addEventListener("scroll",n),r&&_.addEventListener("resize",n)});const d=c&&l?Uv(c,n,r):null;let f=-1,p=null;i&&(p=new ResizeObserver(_=>{let[w]=_;w&&w.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),c&&!a&&p.observe(c),t&&p.observe(t));let g,m=a?Un(e):null;a&&y();function y(){const _=Un(e);m&&!Rc(m,_)&&n(),m=_,g=requestAnimationFrame(y)}return n(),()=>{var _;u.forEach(w=>{s&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),d==null||d(),(_=p)==null||_.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const jv=xv,Kv=_v,ga=vv,Wv=Cv,Gv=yv,Jv=gv,Yv=wv,Xv=(e,t,n)=>{const o=new Map,s=n??{},r={...zv,...s.platform,_c:o};return mv(e,t,{...s,platform:r})};function Zv(e){return e!=null&&typeof e=="object"&&"$el"in e}function ui(e){if(Zv(e)){const t=e.$el;return Li(t)&&Gn(t)==="#comment"?null:t}return e}function Qn(e){return typeof e=="function"?e():h(e)}function Qv(e){return{name:"arrow",options:e,fn(t){const n=ui(Qn(e.element));return n==null?{}:Jv({element:n,padding:e.padding}).fn(t)}}}function Mc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function va(e,t){const n=Mc(e);return Math.round(t*n)/n}function ey(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=q(()=>{var R;return(R=Qn(n.open))!=null?R:!0}),r=q(()=>Qn(n.middleware)),i=q(()=>{var R;return(R=Qn(n.placement))!=null?R:"bottom"}),l=q(()=>{var R;return(R=Qn(n.strategy))!=null?R:"absolute"}),a=q(()=>{var R;return(R=Qn(n.transform))!=null?R:!0}),c=q(()=>ui(e.value)),u=q(()=>ui(t.value)),d=L(0),f=L(0),p=L(l.value),g=L(i.value),m=Go({}),y=L(!1),_=q(()=>{const R={position:p.value,left:"0",top:"0"};if(!u.value)return R;const K=va(u.value,d.value),ee=va(u.value,f.value);return a.value?{...R,transform:"translate("+K+"px, "+ee+"px)",...Mc(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:K+"px",top:ee+"px"}});let w;function E(){if(c.value==null||u.value==null)return;const R=s.value;Xv(c.value,u.value,{middleware:r.value,placement:i.value,strategy:l.value}).then(K=>{d.value=K.x,f.value=K.y,p.value=K.strategy,g.value=K.placement,m.value=K.middlewareData,y.value=R!==!1})}function O(){typeof w=="function"&&(w(),w=void 0)}function j(){if(O(),o===void 0){E();return}if(c.value!=null&&u.value!=null){w=o(c.value,u.value,E);return}}function H(){s.value||(y.value=!1)}return Te([r,i,l,s],E,{flush:"sync"}),Te([c,u],j,{flush:"sync"}),Te(s,H,{flush:"sync"}),gi()&&Fa(O),{x:Bn(d),y:Bn(f),strategy:Bn(p),placement:Bn(g),middlewareData:Bn(m),isPositioned:Bn(y),floatingStyles:_,update:E}}const ty=["dir"],ny={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[i_,oy]=On("PopperContent");var sy=X({inheritAttrs:!1,__name:"PopperContent",props:Nf({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...ny}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,s=_c(),{forwardRef:r,currentElement:i}=ze(),l=Mi(q(()=>n.dir)),a=L(),c=L(),{width:u,height:d}=Eg(c),f=q(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=q(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),g=q(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=q(()=>({padding:p.value,boundary:g.value.filter(nv),altBoundary:g.value.length>0})),y=q(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),_=q(()=>[jv({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&ga({...m.value,...y.value}),n.avoidCollisions&&Kv({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Yv():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&ga({...m.value,...y.value}),Wv({...m.value,apply:({elements:I,rects:ne,availableWidth:oe,availableHeight:re})=>{const{width:fe,height:ce}=ne.reference,_e=I.floating.style;_e.setProperty("--reka-popper-available-width",`${oe}px`),_e.setProperty("--reka-popper-available-height",`${re}px`),_e.setProperty("--reka-popper-anchor-width",`${fe}px`),_e.setProperty("--reka-popper-anchor-height",`${ce}px`)}}),c.value&&Qv({element:c.value,padding:n.arrowPadding}),ov({arrowWidth:u.value,arrowHeight:d.value,dir:l.value}),n.hideWhenDetached&&Gv({strategy:"referenceHidden",...m.value})]),w=q(()=>n.reference??s.anchor.value),{floatingStyles:E,placement:O,isPositioned:j,middlewareData:H}=ey(w,a,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...I)=>Hv(...I,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:_}),R=q(()=>ii(O.value)[0]),K=q(()=>ii(O.value)[1]);hu(()=>{j.value&&o("placed")});const ee=q(()=>{var ne;const I=((ne=H.value.arrow)==null?void 0:ne.centerOffset)!==0;return n.hideShiftedArrow&&I}),U=L("");Ft(()=>{i.value&&(U.value=window.getComputedStyle(i.value).zIndex)});const N=q(()=>{var I;return((I=H.value.arrow)==null?void 0:I.x)??0}),$=q(()=>{var I;return((I=H.value.arrow)==null?void 0:I.y)??0});return oy({placedSide:R,onArrowChange:I=>c.value=I,arrowX:N,arrowY:$,shouldHideArrow:ee}),(I,ne)=>{var oe,re,fe;return k(),V("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",dir:h(l),style:Pn({...h(E),transform:h(j)?h(E).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U.value,"--reka-popper-transform-origin":[(oe=h(H).transformOrigin)==null?void 0:oe.x,(re=h(H).transformOrigin)==null?void 0:re.y].join(" "),...((fe=h(H).hide)==null?void 0:fe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?_p([n.asChild,n.as,R.value,K.value,h(j),...Object.values(I.$attrs),...n.memoDependencies],()=>(k(),Z(h(Je),Le({key:0,ref:h(r)},I.$attrs,{"as-child":n.asChild,as:n.as,"data-side":R.value,"data-align":K.value,style:{animation:h(j)?void 0:"none"}}),{default:T(()=>[ue(I.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),ne,0):(k(),Z(h(Je),Le({key:1,ref:h(r)},I.$attrs,{"as-child":n.asChild,as:n.as,"data-side":R.value,"data-align":K.value,dir:h(l),style:{animation:h(j)?void 0:"none"}}),{default:T(()=>[ue(I.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,ty)}}}),$c=sy;const[ry,iy]=On("RovingFocusGroup");var ly=X({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const o=e,s=n,{loop:r,orientation:i,dir:l}=kn(o),a=Mi(l),c=ar(o,"currentTabStopId",s,{defaultValue:o.defaultCurrentTabStopId,passive:o.currentTabStopId===void 0}),u=L(!1),d=L(!1),f=L(0),{getItems:p,CollectionSlot:g}=bc({isProvider:!0});function m(_){const w=!d.value;if(_.currentTarget&&_.target===_.currentTarget&&w&&!u.value){const E=new CustomEvent(Wg,Gg);if(_.currentTarget.dispatchEvent(E),s("entryFocus",E),!E.defaultPrevented){const O=p().map(ee=>ee.ref).filter(ee=>ee.dataset.disabled!==""),j=O.find(ee=>ee.getAttribute("data-active")===""),H=O.find(ee=>ee.getAttribute("data-highlighted")===""),R=O.find(ee=>ee.id===c.value),K=[j,H,R,...O].filter(Boolean);xc(K,o.preventScrollOnEntryFocus)}}d.value=!1}function y(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),iy({loop:r,dir:a,orientation:i,currentTabStopId:c,onItemFocus:_=>{c.value=_},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(_,w)=>(k(),Z(h(g),null,{default:T(()=>[S(h(Je),{tabindex:u.value||f.value===0?-1:0,"data-orientation":h(i),as:_.as,"as-child":_.asChild,dir:h(a),style:{outline:"none"},onMousedown:w[0]||(w[0]=E=>d.value=!0),onMouseup:y,onFocus:m,onBlur:w[1]||(w[1]=E=>u.value=!1)},{default:T(()=>[ue(_.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),ay=ly,uy=X({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=ry(),o=po(),s=q(()=>t.tabStopId||o),r=q(()=>n.currentTabStopId.value===s.value),{getItems:i,CollectionItem:l}=bc();vt(()=>{t.focusable&&n.onFocusableItemAdd()}),Kn(()=>{t.focusable&&n.onFocusableItemRemove()}),Te(()=>t.focusable,(c,u)=>{c!==u&&(c?n.onFocusableItemAdd():n.onFocusableItemRemove())});function a(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const u=Xg(c,n.orientation.value,n.dir.value);if(u!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!t.allowShiftKey&&c.shiftKey)return;c.preventDefault();let d=[...i().map(f=>f.ref).filter(f=>f.dataset.disabled!=="")];if(u==="last")d.reverse();else if(u==="prev"||u==="next"){u==="prev"&&d.reverse();const f=d.indexOf(c.currentTarget);d=n.loop.value?Zg(d,f+1):d.slice(f+1)}Qe(()=>xc(d))}}return(c,u)=>(k(),Z(h(l),null,{default:T(()=>[S(h(Je),{tabindex:r.value?0:-1,"data-orientation":h(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:u[0]||(u[0]=d=>{c.focusable?h(n).onItemFocus(s.value):d.preventDefault()}),onFocus:u[1]||(u[1]=d=>h(n).onItemFocus(s.value)),onKeydown:a},{default:T(()=>[ue(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),cy=uy;const[ts,dy]=On("PopoverRoot");var fy=X({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t,{modal:s}=kn(n),r=ar(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});return dy({contentId:"",triggerId:"",modal:s,open:r,onOpenChange:a=>{r.value=a},onOpenToggle:()=>{r.value=!r.value},triggerElement:L(),hasCustomAnchor:L(!1)}),(a,c)=>(k(),Z(h(wc),null,{default:T(()=>[ue(a.$slots,"default",{open:h(r),close:()=>r.value=!1})]),_:3}))}}),py=fy,hy=X({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=es(lr(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=ze(),i=ts();return hg(),(l,a)=>(k(),Z(h(Ug),{"as-child":"",loop:"",trapped:l.trapFocus,onMountAutoFocus:a[5]||(a[5]=c=>o("openAutoFocus",c)),onUnmountAutoFocus:a[6]||(a[6]=c=>o("closeAutoFocus",c))},{default:T(()=>[S(h(gc),{"as-child":"","disable-outside-pointer-events":l.disableOutsidePointerEvents,onPointerDownOutside:a[0]||(a[0]=c=>o("pointerDownOutside",c)),onInteractOutside:a[1]||(a[1]=c=>o("interactOutside",c)),onEscapeKeyDown:a[2]||(a[2]=c=>o("escapeKeyDown",c)),onFocusOutside:a[3]||(a[3]=c=>o("focusOutside",c)),onDismiss:a[4]||(a[4]=c=>h(i).onOpenChange(!1))},{default:T(()=>[S(h($c),Le(h(s),{id:h(i).contentId,ref:h(r),"data-state":h(i).open.value?"open":"closed","aria-labelledby":h(i).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:T(()=>[ue(l.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Bc=hy,my=X({__name:"PopoverContentModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=ts(),r=L(!1);dg(!0);const i=Tn(n,o),{forwardRef:l,currentElement:a}=ze();return Sg(a),(c,u)=>(k(),Z(Bc,Le(h(i),{ref:h(l),"trap-focus":h(s).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:u[0]||(u[0]=Dt(d=>{var f;o("closeAutoFocus",d),r.value||(f=h(s).triggerElement.value)==null||f.focus()},["prevent"])),onPointerDownOutside:u[1]||(u[1]=d=>{o("pointerDownOutside",d);const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,g=f.button===2||p;r.value=g}),onFocusOutside:u[2]||(u[2]=Dt(()=>{},["prevent"]))}),{default:T(()=>[ue(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),gy=my,vy=X({__name:"PopoverContentNonModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=ts(),r=L(!1),i=L(!1),l=Tn(n,o);return(a,c)=>(k(),Z(Bc,Le(h(l),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{var d;o("closeAutoFocus",u),u.defaultPrevented||(r.value||(d=h(s).triggerElement.value)==null||d.focus(),u.preventDefault()),r.value=!1,i.value=!1}),onInteractOutside:c[1]||(c[1]=async u=>{var p;o("interactOutside",u),u.defaultPrevented||(r.value=!0,u.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const d=u.target;((p=h(s).triggerElement.value)==null?void 0:p.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&i.value&&u.preventDefault()})}),{default:T(()=>[ue(a.$slots,"default")]),_:3},16))}}),yy=vy,by=X({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=ts(),r=Tn(n,o),{forwardRef:i}=ze();return s.contentId||(s.contentId=po(void 0,"reka-popover-content")),(l,a)=>(k(),Z(h($i),{present:l.forceMount||h(s).open.value},{default:T(()=>[h(s).modal.value?(k(),Z(gy,Le({key:0},h(r),{ref:h(i)}),{default:T(()=>[ue(l.$slots,"default")]),_:3},16)):(k(),Z(yy,Le({key:1},h(r),{ref:h(i)}),{default:T(()=>[ue(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),xy=by,_y=X({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(k(),Z(h(yc),mo(Wn(t)),{default:T(()=>[ue(n.$slots,"default")]),_:3},16))}}),wy=_y,Cy=X({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=ts(),{forwardRef:o,currentElement:s}=ze();return n.triggerId||(n.triggerId=po(void 0,"reka-popover-trigger")),n.contentId||(n.contentId=po(void 0,"reka-popover-content")),vt(()=>{n.triggerElement.value=s.value}),(r,i)=>(k(),Z(tr(h(n).hasCustomAnchor.value?h(Je):h(Cc)),{"as-child":""},{default:T(()=>[S(h(Je),{id:h(n).triggerId,ref:h(o),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":h(n).open.value,"aria-controls":h(n).open.value?h(n).contentId:void 0,"data-state":h(n).open.value?"open":"closed",as:r.as,"as-child":t.asChild,onClick:h(n).onOpenToggle},{default:T(()=>[ue(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),ky=Cy,Ay=X({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return ze(),(n,o)=>(k(),Z(h(Je),Le(t,{onMousedown:o[0]||(o[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:T(()=>[ue(n.$slots,"default")]),_:3},16))}}),Sy=Ay;const[zi,Ey]=On("TabsRoot");var Py=X({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,{orientation:s,unmountOnHide:r,dir:i}=kn(n),l=Mi(i);ze();const a=ar(n,"modelValue",o,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=L(),u=Go(new Set);return Ey({modelValue:a,changeModelValue:d=>{a.value=d},orientation:s,dir:l,unmountOnHide:r,activationMode:n.activationMode,baseId:po(void 0,"reka-tabs"),tabsList:c,contentIds:u,registerContent:d=>{u.value=new Set([...u.value,d])},unregisterContent:d=>{const f=new Set(u.value);f.delete(d),u.value=f}}),(d,f)=>(k(),Z(h(Je),{dir:h(l),"data-orientation":h(s),"as-child":d.asChild,as:d.as},{default:T(()=>[ue(d.$slots,"default",{modelValue:h(a)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Oy=Py;function Dc(e,t){return`${e}-trigger-${t}`}function Nc(e,t){return`${e}-content-${t}`}var Ty=X({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=ze(),o=zi(),s=q(()=>Dc(o.baseId,t.value)),r=q(()=>Nc(o.baseId,t.value)),i=q(()=>t.value===o.modelValue.value),l=L(i.value);return vt(()=>{o.registerContent(t.value),requestAnimationFrame(()=>{l.value=!1})}),Ci(()=>{o.unregisterContent(t.value)}),(a,c)=>(k(),Z(h($i),{present:a.forceMount||i.value,"force-mount":""},{default:T(({present:u})=>[S(h(Je),{id:r.value,ref:h(n),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":i.value?"active":"inactive","data-orientation":h(o).orientation.value,"aria-labelledby":s.value,hidden:!u,tabindex:"0",style:Pn({animationDuration:l.value?"0s":void 0})},{default:T(()=>[!h(o).unmountOnHide.value||u?ue(a.$slots,"default",{key:0}):le("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Iy=Ty,Ry=X({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=kn(t),{forwardRef:o,currentElement:s}=ze(),r=zi();return r.tabsList=s,(i,l)=>(k(),Z(h(ay),{"as-child":"",orientation:h(r).orientation.value,dir:h(r).dir.value,loop:h(n)},{default:T(()=>[S(h(Je),{ref:h(o),role:"tablist","as-child":i.asChild,as:i.as,"aria-orientation":h(r).orientation.value},{default:T(()=>[ue(i.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),My=Ry,$y=X({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=ze(),o=zi(),s=q(()=>Dc(o.baseId,t.value)),r=q(()=>o.contentIds.value.has(t.value)?Nc(o.baseId,t.value):void 0),i=q(()=>t.value===o.modelValue.value);return(l,a)=>(k(),Z(h(cy),{"as-child":"",focusable:!l.disabled,active:i.value},{default:T(()=>[S(h(Je),{id:s.value,ref:h(n),role:"tab",type:l.as==="button"?"button":void 0,as:l.as,"as-child":l.asChild,"aria-selected":i.value?"true":"false","aria-controls":r.value,"data-state":i.value?"active":"inactive",disabled:l.disabled,"data-disabled":l.disabled?"":void 0,"data-orientation":h(o).orientation.value,onMousedown:a[0]||(a[0]=Dt(c=>{!l.disabled&&c.ctrlKey===!1?h(o).changeModelValue(l.value):c.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=Rs(c=>h(o).changeModelValue(l.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const c=h(o).activationMode!=="manual";!i.value&&!l.disabled&&c&&h(o).changeModelValue(l.value)})},{default:T(()=>[ue(l.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),By=$y;const[mr,Dy]=On("TooltipProvider");var Ny=X({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:s,disableClosingTrigger:r,ignoreNonKeyboardFocus:i,disabled:l,content:a}=kn(t);ze();const c=L(!0),u=L(!1),{start:d,stop:f}=dc(()=>{c.value=!0},o,{immediate:!1});return Dy({isOpenDelayed:c,delayDuration:n,onOpen(){f(),c.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:s,disableClosingTrigger:r,disabled:l,ignoreNonKeyboardFocus:i,content:a}),(p,g)=>ue(p.$slots,"default")}}),Ly=Ny;const Lc="tooltip.open",[gr,qy]=On("TooltipRoot");var Fy=X({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;ze();const s=mr(),r=q(()=>n.disableHoverableContent??s.disableHoverableContent.value),i=q(()=>n.disableClosingTrigger??s.disableClosingTrigger.value),l=q(()=>n.disabled??s.disabled.value),a=q(()=>n.delayDuration??s.delayDuration.value),c=q(()=>n.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=ar(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});Te(u,E=>{s.onClose&&(E?(s.onOpen(),document.dispatchEvent(new CustomEvent(Lc))):s.onClose())});const d=L(!1),f=L(),p=q(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:g,stop:m}=dc(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function y(){m(),d.value=!1,u.value=!0}function _(){m(),u.value=!1}function w(){g()}return qy({contentId:"",open:u,stateAttribute:p,trigger:f,onTriggerChange(E){f.value=E},onTriggerEnter(){s.isOpenDelayed.value?w():y()},onTriggerLeave(){r.value?_():m()},onOpen:y,onClose:_,disableHoverableContent:r,disableClosingTrigger:i,disabled:l,ignoreNonKeyboardFocus:c}),(E,O)=>(k(),Z(h(wc),null,{default:T(()=>[ue(E.$slots,"default",{open:h(u)})]),_:3}))}}),Vy=Fy,zy=X({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,s=gr(),r=mr(),{forwardRef:i,currentElement:l}=ze(),a=q(()=>{var u;return n.ariaLabel||((u=l.value)==null?void 0:u.textContent)}),c=q(()=>{const{ariaLabel:u,...d}=n;return fc(d,r.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return vt(()=>{Uo(window,"scroll",u=>{const d=u.target;d!=null&&d.contains(s.trigger.value)&&s.onClose()},{capture:!0}),Uo(document,Lc,s.onClose)}),(u,d)=>(k(),Z(h(gc),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=f=>o("escapeKeyDown",f)),onPointerDownOutside:d[1]||(d[1]=f=>{var p;h(s).disableClosingTrigger.value&&((p=h(s).trigger.value)!=null&&p.contains(f.target))&&f.preventDefault(),o("pointerDownOutside",f)}),onFocusOutside:d[2]||(d[2]=Dt(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=f=>h(s).onClose())},{default:T(()=>[S(h($c),Le({ref:h(i),"data-state":h(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:T(()=>[ue(u.$slots,"default"),S(h(Kg),{id:h(s).contentId,role:"tooltip"},{default:T(()=>[Y(se(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),qc=zy,Uy=X({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=es(e),{forwardRef:o,currentElement:s}=ze(),{trigger:r,onClose:i}=gr(),l=mr(),{isPointerInTransit:a,onPointerExit:c}=mg(r,s);return l.isPointerInTransitRef=a,c(()=>{i()}),Uo(s,"pointermove",u=>{var p,g;const d=s.value;if(!d||u.pointerType==="touch")return;((g=(p=d.ownerDocument).elementsFromPoint)==null?void 0:g.call(p,u.clientX,u.clientY).some(m=>{if(d.contains(m))return!1;const y=m.closest("[data-grace-area-trigger]");return!!y&&y!==r.value}))&&i()}),(u,d)=>(k(),Z(qc,Le({ref:h(o)},h(n)),{default:T(()=>[ue(u.$slots,"default")]),_:3},16))}}),Hy=Uy,jy=X({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,s=gr(),r=Tn(n,o),{forwardRef:i}=ze();return(l,a)=>(k(),Z(h($i),{present:l.forceMount||h(s).open.value},{default:T(()=>[(k(),Z(tr(h(s).disableHoverableContent.value?qc:Hy),Le({ref:h(i)},h(r)),{default:T(()=>[ue(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Ky=jy,Wy=X({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(k(),Z(h(yc),mo(Wn(t)),{default:T(()=>[ue(n.$slots,"default")]),_:3},16))}}),Gy=Wy,Jy=X({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=gr(),o=mr();n.contentId||(n.contentId=po(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:r}=ze(),i=L(!1),l=L(!1),a=q(()=>n.disabled.value?{}:{click:m,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:g});Te(r,y=>{n.onTriggerChange(y)},{immediate:!0});function c(){setTimeout(()=>{i.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),i.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(y){y.pointerType!=="touch"&&!l.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),l.value=!0)}function f(){n.onTriggerLeave(),l.value=!1}function p(y){var _,w;i.value||n.ignoreNonKeyboardFocus.value&&!((w=(_=y.target).matches)!=null&&w.call(_,":focus-visible"))||n.onOpen()}function g(){n.onClose()}function m(){n.disableClosingTrigger.value||n.onClose()}return(y,_)=>(k(),Z(h(Cc),{"as-child":"",reference:y.reference??h(r)},{default:T(()=>[S(h(Je),Le({ref:h(s),"aria-describedby":h(n).open.value?h(n).contentId:void 0,"data-state":h(n).stateAttribute.value,as:y.as,"as-child":t.asChild,"data-grace-area-trigger":""},Bf(a.value)),{default:T(()=>[ue(y.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Yy=Jy;function Fc(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Fc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Vc(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Fc(e))&&(o&&(o+=" "),o+=t);return o}const Ui="-",Xy=e=>{const t=Qy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Ui);return l[0]===""&&l.length!==1&&l.shift(),zc(l,t)||Zy(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&o[i]?[...a,...o[i]]:a}}},zc=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),s=o?zc(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const r=e.join(Ui);return(i=t.validators.find(({validator:l})=>l(r)))==null?void 0:i.classGroupId},ya=/^\[(.+)\]$/,Zy=e=>{if(ya.test(e)){const t=ya.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Qy=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return t0(Object.entries(e.classGroups),n).forEach(([r,i])=>{ci(i,o,r,t)}),o},ci=(e,t,n,o)=>{e.forEach(s=>{if(typeof s=="string"){const r=s===""?t:ba(t,s);r.classGroupId=n;return}if(typeof s=="function"){if(e0(s)){ci(s(o),t,n,o);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([r,i])=>{ci(i,ba(t,r),n,o)})})},ba=(e,t)=>{let n=e;return t.split(Ui).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},e0=e=>e.isThemeGetter,t0=(e,t)=>t?e.map(([n,o])=>{const s=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([i,l])=>[t+i,l])):r);return[n,s]}):e,n0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const s=(r,i)=>{n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(r){let i=n.get(r);if(i!==void 0)return i;if((i=o.get(r))!==void 0)return s(r,i),i},set(r,i){n.has(r)?n.set(r,i):s(r,i)}}},Uc="!",o0=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,s=t[0],r=t.length,i=l=>{const a=[];let c=0,u=0,d;for(let y=0;y<l.length;y++){let _=l[y];if(c===0){if(_===s&&(o||l.slice(y,y+r)===t)){a.push(l.slice(u,y)),u=y+r;continue}if(_==="/"){d=y;continue}}_==="["?c++:_==="]"&&c--}const f=a.length===0?l:l.substring(u),p=f.startsWith(Uc),g=p?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:i}):i},s0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},r0=e=>({cache:n0(e.cacheSize),parseClassName:o0(e),...Xy(e)}),i0=/\s+/,l0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:s}=t,r=[],i=e.trim().split(i0);let l="";for(let a=i.length-1;a>=0;a-=1){const c=i[a],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let g=!!p,m=o(g?f.substring(0,p):f);if(!m){if(!g){l=c+(l.length>0?" "+l:l);continue}if(m=o(f),!m){l=c+(l.length>0?" "+l:l);continue}g=!1}const y=s0(u).join(":"),_=d?y+Uc:y,w=_+m;if(r.includes(w))continue;r.push(w);const E=s(m,g);for(let O=0;O<E.length;++O){const j=E[O];r.push(_+j)}l=c+(l.length>0?" "+l:l)}return l};function a0(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Hc(t))&&(o&&(o+=" "),o+=n);return o}const Hc=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Hc(e[o]))&&(n&&(n+=" "),n+=t);return n};function u0(e,...t){let n,o,s,r=i;function i(a){const c=t.reduce((u,d)=>d(u),e());return n=r0(c),o=n.cache.get,s=n.cache.set,r=l,l(a)}function l(a){const c=o(a);if(c)return c;const u=l0(a,n);return s(a,u),u}return function(){return r(a0.apply(null,arguments))}}const Re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},jc=/^\[(?:([a-z-]+):)?(.+)\]$/i,c0=/^\d+\/\d+$/,d0=new Set(["px","full","screen"]),f0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,g0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gt=e=>lo(e)||d0.has(e)||c0.test(e),mn=e=>yo(e,"length",k0),lo=e=>!!e&&!Number.isNaN(Number(e)),Vr=e=>yo(e,"number",lo),Co=e=>!!e&&Number.isInteger(Number(e)),v0=e=>e.endsWith("%")&&lo(e.slice(0,-1)),ge=e=>jc.test(e),gn=e=>f0.test(e),y0=new Set(["length","size","percentage"]),b0=e=>yo(e,y0,Kc),x0=e=>yo(e,"position",Kc),_0=new Set(["image","url"]),w0=e=>yo(e,_0,S0),C0=e=>yo(e,"",A0),ko=()=>!0,yo=(e,t,n)=>{const o=jc.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},k0=e=>p0.test(e)&&!h0.test(e),Kc=()=>!1,A0=e=>m0.test(e),S0=e=>g0.test(e),E0=()=>{const e=Re("colors"),t=Re("spacing"),n=Re("blur"),o=Re("brightness"),s=Re("borderColor"),r=Re("borderRadius"),i=Re("borderSpacing"),l=Re("borderWidth"),a=Re("contrast"),c=Re("grayscale"),u=Re("hueRotate"),d=Re("invert"),f=Re("gap"),p=Re("gradientColorStops"),g=Re("gradientColorStopPositions"),m=Re("inset"),y=Re("margin"),_=Re("opacity"),w=Re("padding"),E=Re("saturate"),O=Re("scale"),j=Re("sepia"),H=Re("skew"),R=Re("space"),K=Re("translate"),ee=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",ge,t],$=()=>[ge,t],I=()=>["",Gt,mn],ne=()=>["auto",lo,ge],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],_e=()=>["","0",ge],et=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Be=()=>[lo,ge];return{cacheSize:500,separator:":",theme:{colors:[ko],spacing:[Gt,mn],blur:["none","",gn,ge],brightness:Be(),borderColor:[e],borderRadius:["none","","full",gn,ge],borderSpacing:$(),borderWidth:I(),contrast:Be(),grayscale:_e(),hueRotate:Be(),invert:_e(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[v0,mn],inset:N(),margin:N(),opacity:Be(),padding:$(),saturate:Be(),scale:Be(),sepia:_e(),skew:Be(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[gn]}],"break-after":[{"break-after":et()}],"break-before":[{"break-before":et()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),ge]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Co,ge]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:_e()}],shrink:[{shrink:_e()}],order:[{order:["first","last","none",Co,ge]}],"grid-cols":[{"grid-cols":[ko]}],"col-start-end":[{col:["auto",{span:["full",Co,ge]},ge]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[ko]}],"row-start-end":[{row:["auto",{span:[Co,ge]},ge]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[gn]},gn]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vr]}],"font-family":[{font:[ko]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",lo,Vr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gt,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Gt,mn]}],"underline-offset":[{"underline-offset":["auto",Gt,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),x0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},w0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:re()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[Gt,ge]}],"outline-w":[{outline:[Gt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Gt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gn,C0]}],"shadow-color":[{shadow:[ko]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",gn,ge]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[E]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:Be()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:Be()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Co,ge]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Gt,mn,Vr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},P0=u0(E0);function Ye(...e){return P0(Vc(e))}const xa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_a=Vc,Wc=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return _a(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:r}=t,i=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=r==null?void 0:r[c];if(u===null)return null;const f=xa(u)||xa(d);return s[c][f]}),l=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...r,...l}[m]):{...r,...l}[m]===y})?[...c,d,f]:c},[]);return _a(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},O0=Wc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),we=X({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(k(),Z(h(Je),{as:e.as,"as-child":e.asChild,class:Oe(h(Ye)(h(O0)({variant:e.variant,size:e.size}),t.class))},{default:T(()=>[ue(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),Gc=X({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,o)=>(k(),V("div",{class:Oe(h(Ye)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ue(n.$slots,"default")],2))}}),Jc=X({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(k(),V("div",{class:Oe(h(Ye)("flex flex-col space-y-1.5 p-6",t.class))},[ue(n.$slots,"default")],2))}}),Yc=X({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(n,o)=>(k(),V("h3",{class:Oe(h(Ye)("font-semibold leading-none tracking-tight",t.class))},[ue(n.$slots,"default")],2))}}),Xc=X({__name:"CardDescription",props:{class:{}},setup(e){const t=e;return(n,o)=>(k(),V("p",{class:Oe(h(Ye)("text-sm text-muted-foreground",t.class))},[ue(n.$slots,"default")],2))}}),Zc=X({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,o)=>(k(),V("div",{class:Oe(h(Ye)("p-6 pt-0",t.class))},[ue(n.$slots,"default")],2))}}),Qc=X({__name:"CardFooter",props:{class:{}},setup(e){const t=e;return(n,o)=>(k(),V("div",{class:Oe(h(Ye)("flex items-center p-6 pt-0",t.class))},[ue(n.$slots,"default")],2))}});class Ds extends Error{constructor(t,n,o){super(n),this.status=t,this.data=o,this.name="ApiError"}get isUnauthorized(){return this.status===401}}const T0="x-psmcp-token",ed="Session token rejected. Reload this page from the URL printed by the Photoshop MCP UI.";function I0(){return typeof window>"u"?void 0:window.__PSMCP_TOKEN__}function td(e){const t=new Headers(e),n=I0();return n&&t.set(T0,n),t}async function $e(e,t={}){const n=td(t.headers);t.body&&!n.has("content-type")&&n.set("content-type","application/json");const o=await fetch(e,{...t,headers:n});if(!o.ok){const s=await o.json().catch(()=>({}));throw o.status===401?new Ds(401,ed,s):new Ds(o.status,s.error??o.statusText,s)}if(o.status!==204)return await o.json()}const nd=()=>$e("/api/status"),wa=e=>$e("/api/active",{method:"POST",body:JSON.stringify(e)}),R0=e=>$e("/api/config/action-plan",{method:"POST",body:JSON.stringify({enabled:e})}),ns=()=>$e("/api/analytics/config"),M0=e=>$e("/api/analytics/opt-out",{method:"POST",body:JSON.stringify({optedOut:e})}),od=e=>$e("/api/analytics/beta-telemetry",{method:"POST",body:JSON.stringify({optedIn:e})}),Hi=()=>$e("/api/providers"),sd=(e,t)=>$e(`/api/providers/${e}/validate-key`,{method:"POST",body:JSON.stringify({apiKey:t})}),rd=(e,t)=>$e(`/api/providers/${e}/key`,{method:"POST",body:JSON.stringify({apiKey:t})}),$0=e=>$e(`/api/providers/${e}/key`,{method:"DELETE"}),id=(e,t)=>$e(`/api/providers/${e}/auth-method`,{method:"POST",body:JSON.stringify({authMethod:t})}),ld=e=>$e(`/api/providers/${e}/validate-cli`,{method:"POST",body:"{}"}),ad=(e,t)=>$e(`/api/providers/${e}/cli-path`,{method:"POST",body:JSON.stringify({cliPath:t})}),B0=()=>$e("/api/custom-provider"),ud=e=>$e("/api/custom-provider",{method:"PUT",body:JSON.stringify(e)}),D0=()=>$e("/api/custom-provider",{method:"DELETE"}),cd=e=>$e("/api/custom-provider/validate",{method:"POST",body:JSON.stringify(e)}),N0=()=>$e("/api/chats"),L0=e=>$e("/api/chats",{method:"POST",body:JSON.stringify(e)}),q0=e=>$e(`/api/chats/${e}`),F0=(e,t)=>$e(`/api/chats/${e}`,{method:"PATCH",body:JSON.stringify({title:t})}),Ca=(e,t)=>$e(`/api/chats/${e}`,{method:"PATCH",body:JSON.stringify(t)}),ka=e=>$e(`/api/chats/${e}`,{method:"DELETE"});async function*V0(e,t){const n=await fetch("/api/chat",{method:"POST",headers:td({"content-type":"application/json"}),body:JSON.stringify(e),signal:t});if(!n.ok||!n.body){if(n.status===401)throw new Ds(401,ed);const i=await n.text().catch(()=>"");throw new Ds(n.status,i||n.statusText)}const o=n.body.getReader(),s=new TextDecoder;let r="";for(;;){const{value:i,done:l}=await o.read();if(l)break;r+=s.decode(i,{stream:!0});const a=r.split(/\n\n/);r=a.pop()??"";for(const c of a){const u=U0(c);u&&(yield u)}}}const z0=e=>$e(`/api/abort/${encodeURIComponent(e)}`,{method:"POST"});function U0(e){const t=e.split(/\n/);let n="message";const o=[];for(const r of t)r.startsWith("event:")?n=r.slice(6).trim():r.startsWith("data:")&&o.push(r.slice(5).trimStart());if(!o.length)return null;const s=o.join(`
|
|
259
|
-
`);try{return{event:n,data:JSON.parse(s)}}catch{return{event:n,data:s}}}const dd="photoshop-mcp-theme";function ji(){return localStorage.getItem(dd)==="light"?"light":"dark"}function fd(e){document.documentElement.classList.toggle("dark",e==="dark")}function H0(){const e=L(ji());function t(o){e.value=o,fd(o),localStorage.setItem(dd,o)}function n(){t(e.value==="dark"?"light":"dark")}return{theme:e,setTheme:t,toggleTheme:n}}function j0(e){var n;const t=e.trim().match(/-([A-Za-z]{2})\b/);return(n=t==null?void 0:t[1])==null?void 0:n.toUpperCase()}function pd(){const e=navigator.language,t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=j0(e);return{browser_language:e,browser_timezone:t,...n?{browser_locale_region:n}:{}}}const Ki="disable-rybbit";let Ko=!1,Ns={},hd={},di="",eo=null;const Ls=[];function K0(e){if(Ko||!e.enabled||!e.siteId||!e.analyticsHost||md())return;di=e.distinctId;const t=pd();hd={...t,first_install_at:new Date().toISOString(),first_usage_surface:"web"},Ns={...t},Z0(e),Ko=!0}function W0(e){Ns={...Ns,...e}}function G0(e,t){if(!Ko||md())return;const n={...Ns,...t,event_source:"ui"};eb(o=>o.event(e,n))}function J0(){var e,t;try{localStorage.setItem(Ki,"true")}catch{}window.__RYBBIT_OPTOUT__=!0,(t=(e=window.rybbit)==null?void 0:e.clearUserId)==null||t.call(e),eo==null||eo.remove(),eo=null,Ls.length=0,Ko=!1}function Y0(){try{localStorage.removeItem(Ki)}catch{}window.__RYBBIT_OPTOUT__=!1}function X0(){return Ko}function md(){try{return localStorage.getItem(Ki)==="true"}catch{return!!window.__RYBBIT_OPTOUT__}}function Z0(e){if(eo)return;const t=document.createElement("script");t.src=`${e.analyticsHost.replace(/\/$/,"")}/script.js`,t.dataset.siteId=e.siteId,t.defer=!0,t.addEventListener("load",Q0),document.head.appendChild(t),eo=t}function Q0(){const e=n=>{di&&n.identify(di,hd);const o=Ls.splice(0,Ls.length);for(const s of o)s(n)},t=window.rybbit;if(t!=null&&t.onReady){t.onReady(e);return}t!=null&&t.event&&e(t)}function eb(e){const t=window.rybbit;if(t!=null&&t.event){e(t);return}Ls.push(e)}function gd(e){K0(e)}function tb(e){W0(e)}function nb(e,t){G0(e,t)}function ob(){J0()}function sb(){Y0()}function Wi(){return X0()}async function rb(){const[e,t]=await Promise.all([ns(),nd()]);return{privacy_mode:!e.enabled,beta_telemetry_opt_in:e.betaTelemetryOptIn,theme:ji(),action_plan_enabled:t.actionPlanBeta,...pd()}}async function Hn(){if(Wi())try{const e=await rb();tb({...e})}catch{}}let jn=!1;async function ib(){try{const e=await ns();jn=e.enabled,gd(e),e.enabled&&await Hn()}catch{jn=!1}}function lb(){return jn&&Wi()}function _s(e,t){lb()&&nb(e,t)}async function ab(e){if(await M0(e),e){jn=!1,ob();return}sb(),jn=await vd()}async function vd(){try{const e=await ns();return jn=e.enabled,e.enabled&&!Wi()&&gd(e),e.enabled&&await Hn(),e.enabled}catch{return jn=!1,!1}}const ub={class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur"},cb={key:0,class:"mt-3 text-sm text-destructive"},db=X({__name:"BetaTeamModal",emits:["answered"],setup(e,{emit:t}){const n=t,o=L(!1),s=L(null);async function r(i){if(!o.value){o.value=!0,s.value=null;try{await od(i),await Hn(),n("answered")}catch(l){s.value=l.message}finally{o.value=!1}}}return(i,l)=>(k(),V("div",ub,[S(h(Gc),{class:"w-full max-w-md"},{default:T(()=>[S(h(Jc),null,{default:T(()=>[S(h(Yc),null,{default:T(()=>[...l[2]||(l[2]=[Y("Join the beta team?",-1)])]),_:1}),S(h(Xc),null,{default:T(()=>[...l[3]||(l[3]=[Y(" Help us improve Photoshop MCP by optionally sharing your prompts and AI responses with the product team. We collect tool names only — never API keys, file paths, or tool arguments and results. ",-1)])]),_:1})]),_:1}),S(h(Zc),null,{default:T(()=>[l[4]||(l[4]=P("p",{class:"text-sm text-muted-foreground"}," You can change this anytime in Settings → Privacy. Anonymous usage analytics (app version, setup events) stay separate and remain enabled unless you turn them off. ",-1)),s.value?(k(),V("p",cb,se(s.value),1)):le("",!0)]),_:1}),S(h(Qc),{class:"flex gap-2"},{default:T(()=>[S(h(we),{class:"flex-1",disabled:o.value,onClick:l[0]||(l[0]=a=>r(!0))},{default:T(()=>[o.value?(k(),Z(h($t),{key:0,class:"size-4 animate-spin"})):le("",!0),l[5]||(l[5]=Y(" Join beta ",-1))]),_:1},8,["disabled"]),S(h(we),{class:"flex-1",variant:"outline",disabled:o.value,onClick:l[1]||(l[1]=a=>r(!1))},{default:T(()=>[...l[6]||(l[6]=[Y(" No thanks ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]))}}),fb=["type","placeholder","disabled"],ft=X({__name:"Input",props:Lf({class:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Kf(e,"modelValue");return(o,s)=>Yo((k(),V("input",{"onUpdate:modelValue":s[0]||(s[0]=r=>n.value=r),type:e.type,placeholder:e.placeholder,disabled:e.disabled,class:Oe(h(Ye)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.class))},null,10,fb)),[[Yp,n.value]])}}),st=X({__name:"Label",props:{class:{},for:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(k(),Z(h(Sy),{for:t.for,class:Oe(h(Ye)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class))},{default:T(()=>[ue(n.$slots,"default")]),_:3},8,["for","class"]))}}),pb=["aria-label"],hb={class:"adobe-app-icon__label"},mb=X({__name:"AdobeAppIcon",props:{app:{},size:{default:32}},setup(e){const t={ps:{label:"Ps",bg:"#001E36",fg:"#31A8FF"},ai:{label:"Ai",bg:"#330000",fg:"#FF9A00"},ae:{label:"Ae",bg:"#00005B",fg:"#9999FF"},pr:{label:"Pr",bg:"#00005B",fg:"#EA77FF"},id:{label:"Id",bg:"#49021F",fg:"#F36"},xd:{label:"Xd",bg:"#1E0033",fg:"#FF61F6"},lr:{label:"Lr",bg:"#001E36",fg:"#31A8FF"}},n=e,o=q(()=>t[n.app]),s=q(()=>({width:`${n.size}px`,height:`${n.size}px`,background:o.value.bg,color:o.value.fg,borderRadius:`${Math.max(2,Math.round(n.size*.1875))}px`,fontSize:`${Math.round(n.size*.55)}px`}));return(r,i)=>(k(),V("div",{class:"adobe-app-icon",style:Pn(s.value),"aria-label":o.value.label},[P("span",hb,se(o.value.label),1)],12,pb))}}),gb=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},fi=gb(mb,[["__scopeId","data-v-ea369691"]]),vb="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAnthropic%3c/title%3e%3cpath%20d='M13.827%203.52h3.603L24%2020h-3.603l-6.57-16.48zm-7.258%200h3.767L16.906%2020h-3.674l-1.343-3.461H5.017l-1.344%203.46H0L6.57%203.522zm4.132%209.959L8.453%207.687%206.205%2013.48H10.7z'%3e%3c/path%3e%3c/svg%3e",yb="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M9.205%208.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357%201.356-.523%202.117-.523%202.854%200%204.662%202.212%204.662%204.566%200%20.167%200%20.357-.024.547l-4.71-2.759a.797.797%200%2000-.856%200l-5.97%203.473zm10.609%208.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473%201.95-1.118a.433.433%200%2001.476%200l4.543%202.617c1.309.76%202.189%202.378%202.189%203.948%200%201.808-1.07%203.473-2.76%204.163zM7.802%2012.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545%201.95-4.472%204.591-4.472%201%200%201.927.333%202.712.928L8.23%205.067c-.285.166-.428.404-.428.737v6.898zM12%2015.128l-2.795-1.57v-3.33L12%208.658l2.795%201.57v3.33L12%2015.128zm1.796%207.23c-1%200-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974%201.142c.167.095.238.238.238.428v5.233c0%202.545-1.974%204.472-4.614%204.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482%204.482%200%20014.21%206.327v5.423c0%20.333.143.571.428.738l5.947%203.449-1.95%201.118a.432.432%200%2001-.476%200zm-.262%203.9c-2.688%200-4.662-2.021-4.662-4.519%200-.19.024-.38.047-.57l4.686%202.71c.286.167.571.167.856%200l5.97-3.448v2.26c0%20.19-.07.333-.237.428l-4.543%202.616c-.619.357-1.356.523-2.117.523zm5.899%202.83a5.947%205.947%200%20005.827-4.756C22.287%2018.339%2024%2015.84%2024%2013.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498%200-3.401-2.759-5.947-5.946-5.947-.642%200-1.26.095-1.88.31A5.962%205.962%200%200010.205%200a5.947%205.947%200%2000-5.827%204.757C1.713%205.447%200%207.945%200%2010.49c0%201.666.713%203.283%201.998%204.448-.119.5-.19%201-.19%201.499%200%203.401%202.759%205.946%205.946%205.946.642%200%201.26-.095%201.88-.309a5.96%205.96%200%20004.162%201.713z'%3e%3c/path%3e%3c/svg%3e",bb="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenRouter%3c/title%3e%3cpath%20d='M18.654%203.87a5.087%205.087%200%20110%2010.174L23.7%2019.09c.64.641.187%201.737-.72%201.737H8.48a8.479%208.479%200%20010-16.958h10.175zM8.479%207.26a5.087%205.087%200%20100%2010.176%205.087%205.087%200%20000-10.175z'%3e%3c/path%3e%3c/svg%3e",xb="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGemini%3c/title%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='%233186FF'%3e%3c/path%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='url(%23lobe-icons-gemini-0-_R_0_)'%3e%3c/path%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='url(%23lobe-icons-gemini-1-_R_0_)'%3e%3c/path%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='url(%23lobe-icons-gemini-2-_R_0_)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-gemini-0-_R_0_'%20x1='7'%20x2='11'%20y1='15.5'%20y2='12'%3e%3cstop%20stop-color='%2308B962'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2308B962'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-gemini-1-_R_0_'%20x1='8'%20x2='11.5'%20y1='5.5'%20y2='11'%3e%3cstop%20stop-color='%23F94543'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23F94543'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-gemini-2-_R_0_'%20x1='3.5'%20x2='17.5'%20y1='13.5'%20y2='12'%3e%3cstop%20stop-color='%23FABC12'%3e%3c/stop%3e%3cstop%20offset='.46'%20stop-color='%23FABC12'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",_b=["src","alt","width","height"],ho=X({__name:"ProviderIcon",props:{provider:{},size:{default:16}},setup(e){const t={anthropic:vb,openai:yb,openrouter:bb,google:xb},n={anthropic:"Anthropic",openai:"OpenAI",openrouter:"OpenRouter",google:"Google",custom:"Custom"},o={anthropic:!0,openai:!0,openrouter:!0,google:!1},s=e,r=q(()=>t[s.provider]),i=q(()=>n[s.provider]),l=q(()=>o[s.provider]??!1),a=q(()=>!!r.value);return(c,u)=>a.value?(k(),V("img",{key:0,src:r.value,alt:i.value,width:s.size,height:s.size,class:Oe(["provider-icon",{"provider-icon--mono":l.value}]),decoding:"async",loading:"lazy"},null,10,_b)):(k(),Z(h(km),{key:1,size:s.size,class:"provider-icon text-muted-foreground"},null,8,["size"]))}}),wb={anthropic:{install:"npm install -g @anthropic-ai/claude-code",login:"claude auth login",binary:"claude"},google:{install:"npm install -g @google/gemini-cli",login:"gemini auth login",binary:"gemini"}};function Cb(e){if(!e)return"unknown";const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}function yd(e,t,n){const o=Cb(e),s=t?wb[t]:void 0,r=n!=null&&n.trim()?`Details: ${n.trim()}`:"";switch(o){case"not_authenticated":return["CLI subscription login was not detected.",s?`Install: ${s.install}. Then run: ${s.login}`:"Install the provider CLI and run its login command in Terminal.",'Anthropic API keys and Agent SDK sessions do not satisfy "Uses your account" mode — choose API key auth instead, or log in with the CLI.',"If login works in Terminal but fails here, set an optional CLI path below (custom install location).",r].filter(Boolean).join(`
|
|
260
|
-
`);case"cli_not_found":return[s?`Could not find "${s.binary}" on PATH.`:"Could not find the provider CLI on PATH.",s?`Install: ${s.install}`:"Install the provider CLI globally.",s?`Then run: ${s.login}`:void 0,"Or enter the full path to the CLI binary below.",r].filter(Boolean).join(`
|
|
261
|
-
`);case"cli_probe_failed":return["The CLI probe failed.",s?`Try ${s.login} again, then re-check the connection.`:void 0,r||(e&&e!==o?e:void 0)].filter(Boolean).join(`
|
|
262
|
-
`);case"cli_account_not_supported":return"This provider does not support CLI account auth. Use an API key instead.";default:return[e||"CLI validation failed.",r].filter(Boolean).join(`
|
|
263
|
-
`)}}const kb={class:"flex min-h-screen items-center justify-center p-6"},Ab={class:"space-y-2"},Sb={class:"grid grid-cols-2 gap-2"},Eb=["onClick"],Pb={key:0,class:"space-y-2"},Ob={class:"flex gap-2"},Tb={class:"space-y-2"},Ib=["href"],Rb={class:"rounded-md bg-muted/40 p-3 text-xs text-muted-foreground"},Mb={class:"mt-2"},$b={class:"text-foreground"},Bb={class:"mt-1"},Db={class:"text-foreground"},Nb={class:"space-y-2"},Lb={key:1,class:"space-y-3 rounded-lg border border-border p-3"},qb={class:"space-y-2"},Fb={class:"space-y-2"},Vb=["disabled"],zb={class:"space-y-2"},Ub={class:"space-y-2"},Hb={class:"space-y-2"},jb={key:2,class:"whitespace-pre-line text-sm text-destructive"},Kb=X({__name:"Onboarding",emits:["saved"],setup(e,{emit:t}){const n=t,o=L([]),s=L("anthropic"),r=L("api_key"),i=L(""),l=L(""),a=L(!1),c=L(null),u=L(""),d=L(""),f=L(""),p=L("openai"),g=L(""),m=q(()=>o.value.find(U=>U.id===s.value)),y=q(()=>s.value==="custom"),_=q(()=>{var U;return!y.value&&(((U=m.value)==null?void 0:U.supportedAuthMethods.includes("cli_account"))??!1)}),w={anthropic:{install:"npm install -g @anthropic-ai/claude-code",login:"claude auth login"},google:{install:"npm install -g @google/gemini-cli",login:"gemini auth login"}};vt(async()=>{o.value=await Hi()});async function E(U){s.value=U;const N=o.value.find($=>$.id===U);r.value=(N==null?void 0:N.authMethod)??"api_key",c.value=null,_s("setup_provider_selected",{provider_id:U})}async function O(U){r.value=U,c.value=null,m.value&&await id(m.value.id,U)}async function j(){c.value=null,a.value=!0;try{y.value?await R():await H()}catch(U){c.value=U.message}finally{a.value=!1}}async function H(){const U=m.value;if(U){if(r.value==="api_key"){const N=await sd(U.id,i.value);if(!N.ok){c.value=N.error||"Could not validate this key.";return}await rd(U.id,i.value)}else{const N=l.value.trim();N&&await ad(U.id,N);const $=await ld(U.id);if(!$.ok){c.value=yd($.error,U.id,$.detail);return}}await wa({activeProvider:U.id,activeModel:U.defaultModel}),_s("setup_completed",{provider_id:U.id,auth_method:r.value}),n("saved")}}async function R(){if(!u.value.trim()){c.value="Provider name is required.";return}if(!d.value.trim()){c.value="Base URL is required.";return}if(!f.value.trim()){c.value="API key is required.";return}const U=g.value.split(",").map($=>$.trim()).filter(Boolean).map($=>({id:$,label:$}));if(!U.length){c.value="At least one model ID is required (comma-separated).";return}const N=await cd({baseUrl:d.value.trim(),apiKey:f.value.trim(),apiFormat:p.value});if(!N.ok){c.value=N.error||"Could not validate this configuration.";return}await ud({name:u.value.trim(),websiteUrl:"",apiKey:f.value.trim(),baseUrl:d.value.trim(),apiFormat:p.value,models:U,defaultModel:U[0].id}),await wa({activeProvider:"custom",activeModel:U[0].id}),_s("setup_completed",{provider_id:"custom",auth_method:"api_key"}),n("saved")}const K=q(()=>m.value?y.value?!!(f.value.trim()&&d.value.trim()&&u.value.trim()&&g.value.trim()):r.value==="api_key"?!!i.value.trim():!0:!1);function ee(U){return U.cliBinaryName?`/usr/local/bin/${U.cliBinaryName}`:"Optional custom path"}return(U,N)=>(k(),V("div",kb,[S(h(Gc),{class:"w-full max-w-md"},{default:T(()=>[S(h(Jc),null,{default:T(()=>[S(fi,{app:"ps",size:40,class:"mb-2"}),S(h(Yc),null,{default:T(()=>[...N[9]||(N[9]=[Y("Connect an AI provider",-1)])]),_:1}),S(h(Xc),null,{default:T(()=>[...N[10]||(N[10]=[Y(" Use your own API key or sign in with a CLI subscription account. Credentials are stored locally at ",-1),P("code",{class:"text-xs"},"~/.photoshop-mcp/data.db",-1),Y(" and never leave your machine. ",-1)])]),_:1})]),_:1}),S(h(Zc),{class:"space-y-4"},{default:T(()=>{var $;return[P("div",Ab,[S(h(st),null,{default:T(()=>[...N[11]||(N[11]=[Y("Provider",-1)])]),_:1}),P("div",Sb,[(k(!0),V(be,null,an(o.value,I=>(k(),V("button",{key:I.id,type:"button",class:Oe(["flex flex-col items-center gap-1.5 rounded-md border px-2 py-3 text-xs font-medium transition",s.value===I.id?"border-primary bg-primary/10 text-primary":"border-input text-muted-foreground hover:bg-accent"]),onClick:ne=>E(I.id)},[S(ho,{provider:I.id,size:22},null,8,["provider"]),Y(" "+se(I.id==="custom"?"Custom":I.label),1)],10,Eb))),128))])]),y.value?(k(),V("div",Lb,[P("div",qb,[S(h(st),{for:"custom-name"},{default:T(()=>[...N[23]||(N[23]=[Y("Provider name",-1)])]),_:1}),S(h(ft),{id:"custom-name",modelValue:u.value,"onUpdate:modelValue":N[4]||(N[4]=I=>u.value=I),placeholder:"e.g. DeepSeek, My Proxy",disabled:a.value},null,8,["modelValue","disabled"])]),P("div",Fb,[S(h(st),{for:"custom-format"},{default:T(()=>[...N[24]||(N[24]=[Y("API format",-1)])]),_:1}),Yo(P("select",{id:"custom-format","onUpdate:modelValue":N[5]||(N[5]=I=>p.value=I),class:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",disabled:a.value},[...N[25]||(N[25]=[P("option",{value:"openai"},"OpenAI-compatible",-1),P("option",{value:"anthropic"},"Anthropic-compatible",-1)])],8,Vb),[[Pi,p.value]])]),P("div",zb,[S(h(st),{for:"custom-base-url"},{default:T(()=>[...N[26]||(N[26]=[Y("Base URL",-1)])]),_:1}),S(h(ft),{id:"custom-base-url",modelValue:d.value,"onUpdate:modelValue":N[6]||(N[6]=I=>d.value=I),placeholder:"https://api.example.com/v1",disabled:a.value},null,8,["modelValue","disabled"])]),P("div",Ub,[S(h(st),{for:"custom-api-key"},{default:T(()=>[...N[27]||(N[27]=[Y("API key",-1)])]),_:1}),S(h(ft),{id:"custom-api-key",modelValue:f.value,"onUpdate:modelValue":N[7]||(N[7]=I=>f.value=I),type:"password",placeholder:"Your API key",disabled:a.value},null,8,["modelValue","disabled"])]),P("div",Hb,[S(h(st),{for:"custom-models"},{default:T(()=>[...N[28]||(N[28]=[Y("Models (comma-separated)",-1)])]),_:1}),S(h(ft),{id:"custom-models",modelValue:g.value,"onUpdate:modelValue":N[8]||(N[8]=I=>g.value=I),placeholder:"deepseek-chat, deepseek-reasoner",disabled:a.value},null,8,["modelValue","disabled"])])])):(k(),V(be,{key:0},[_.value?(k(),V("div",Pb,[S(h(st),null,{default:T(()=>[...N[12]||(N[12]=[Y("Authentication",-1)])]),_:1}),P("div",Ob,[S(h(we),{size:"sm",class:"flex-1",variant:r.value==="api_key"?"default":"outline",onClick:N[0]||(N[0]=I=>O("api_key"))},{default:T(()=>[...N[13]||(N[13]=[Y(" API key ",-1)])]),_:1},8,["variant"]),S(h(we),{size:"sm",class:"flex-1",variant:r.value==="cli_account"?"default":"outline",onClick:N[1]||(N[1]=I=>O("cli_account"))},{default:T(()=>[...N[14]||(N[14]=[Y(" Uses your account ",-1)])]),_:1},8,["variant"])])])):le("",!0),r.value==="api_key"?(k(),V(be,{key:1},[P("div",Tb,[S(h(st),{for:"api-key"},{default:T(()=>[...N[15]||(N[15]=[Y("API key",-1)])]),_:1}),S(h(ft),{id:"api-key",modelValue:i.value,"onUpdate:modelValue":N[2]||(N[2]=I=>i.value=I),type:"password",placeholder:(($=m.value)==null?void 0:$.apiKeyHint)??"",disabled:a.value,onKeydown:Rs(j,["enter"])},null,8,["modelValue","placeholder","disabled"])]),m.value?(k(),V("a",{key:0,href:m.value.apiKeyHelpUrl,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"},[N[16]||(N[16]=Y(" Get an API key ",-1)),S(h(ic),{class:"size-3"})],8,Ib)):le("",!0)],64)):m.value&&w[m.value.id]?(k(),V(be,{key:2},[P("div",Rb,[N[19]||(N[19]=P("p",{class:"font-medium text-foreground"},"Set up the CLI first",-1)),P("p",Mb,[N[17]||(N[17]=Y(" Install: ",-1)),P("code",$b,se(w[m.value.id].install),1)]),P("p",Bb,[N[18]||(N[18]=Y(" Login: ",-1)),P("code",Db,se(w[m.value.id].login),1)]),N[20]||(N[20]=P("p",{class:"mt-2"},[Y(" Anthropic API keys and Agent SDK sessions do not apply here — use "),P("strong",null,"API key"),Y(" auth if that is how you already connect. ")],-1)),N[21]||(N[21]=P("p",{class:"mt-2"}," Then click validate — usage counts against your subscription quota, not API billing. ",-1))]),P("div",Nb,[S(h(st),{for:"cli-path"},{default:T(()=>[...N[22]||(N[22]=[Y("CLI path (optional)",-1)])]),_:1}),S(h(ft),{id:"cli-path",modelValue:l.value,"onUpdate:modelValue":N[3]||(N[3]=I=>l.value=I),placeholder:ee(m.value),disabled:a.value},null,8,["modelValue","placeholder","disabled"])])],64)):le("",!0)],64)),c.value?(k(),V("p",jb,se(c.value),1)):le("",!0)]}),_:1}),S(h(Qc),null,{default:T(()=>[S(h(we),{class:"w-full",disabled:a.value||!K.value,onClick:j},{default:T(()=>[a.value?(k(),Z(h($t),{key:0,class:"size-4 animate-spin"})):le("",!0),Y(" "+se(a.value?"Validating…":y.value||r.value==="api_key"?"Validate & save":"Check connection & continue"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]))}}),Gi=X({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const s=Tn(e,t);return(r,i)=>(k(),Z(h(Vy),mo(Wn(h(s))),{default:T(()=>[ue(r.$slots,"default")]),_:3},16))}}),Ji=X({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:6},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,s=Tn(n,t);return(r,i)=>(k(),Z(h(Gy),null,{default:T(()=>[S(h(Ky),Le(h(s),{class:h(Ye)("z-50 overflow-hidden rounded-md border border-border bg-popover px-3 py-2 text-xs text-popover-foreground shadow-md","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=delayed-open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1","data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",n.class)}),{default:T(()=>[ue(r.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Yi=X({__name:"TooltipProvider",props:{delayDuration:{default:200},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const n=es(e);return(o,s)=>(k(),Z(h(Ly),mo(Wn(h(n))),{default:T(()=>[ue(o.$slots,"default")]),_:3},16))}}),Xi=X({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e;return(n,o)=>(k(),Z(h(Yy),Le(t,{class:h(Ye)(t.class)}),{default:T(()=>[ue(n.$slots,"default")]),_:3},16,["class"]))}}),Wb={class:"flex h-14 shrink-0 items-center justify-between gap-3 border-b border-border bg-background/80 px-4 backdrop-blur"},Gb={class:"min-w-0 flex-1 truncate text-sm font-medium"},Jb={key:0,class:"rounded-md border border-border bg-muted/40 px-2 py-1 text-xs font-medium text-muted-foreground"},Yb={class:"space-y-2"},Xb={class:"grid grid-cols-2 gap-x-3 gap-y-1 text-xs"},Zb={class:"text-right tabular-nums"},Qb={class:"text-right tabular-nums"},e1={class:"text-right tabular-nums"},t1={class:"text-right tabular-nums"},n1={class:"text-right tabular-nums"},o1={class:"border-t border-border pt-2 text-xs"},s1={class:"flex items-center justify-between font-medium"},r1={class:"tabular-nums"},i1={key:0,class:"text-[11px] leading-snug text-muted-foreground"},l1=X({__name:"StatusBar",props:{chat:{},totals:{},subscriptionMode:{type:Boolean}},setup(e){const t=e,n=new Intl.NumberFormat("en-US");function o(a){return a<=0?"$0.0000":a<1e-4?"< $0.0001":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:4,maximumFractionDigits:4}).format(a)}function s(a){return n.format(a)}const r=q(()=>{const a=t.totals;return!!(a&&a.assistantTurns>0)}),i=q(()=>{const a=t.totals;return!!(a&&a.assistantTurns>0&&a.pricedTurns<a.assistantTurns)}),l=q(()=>{const a=t.totals;return!a||a.assistantTurns===0||a.pricedTurns===0?null:o(a.totalUsd)});return(a,c)=>{var u;return k(),V("header",Wb,[P("div",Gb,se(((u=e.chat)==null?void 0:u.title)??"New chat"),1),e.chat&&e.subscriptionMode?(k(),V("span",Jb," Included in subscription ")):e.chat&&r.value?(k(),Z(h(Yi),{key:1},{default:T(()=>[S(h(Gi),null,{default:T(()=>[S(h(Xi),{class:"rounded-md border border-border bg-muted/40 px-2 py-1 text-xs font-medium tabular-nums text-muted-foreground hover:bg-muted"},{default:T(()=>[Y(se(l.value??"—"),1)]),_:1}),S(h(Ji),{align:"end",class:"w-64"},{default:T(()=>[P("div",Yb,[c[6]||(c[6]=P("div",{class:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"}," Conversation usage ",-1)),P("div",Xb,[c[3]||(c[3]=P("span",{class:"text-muted-foreground"},"Input",-1)),P("span",Zb,se(s(e.totals.inputTokens))+" tok · "+se(o(e.totals.inputUsd)),1),e.totals.cachedReadTokens>0?(k(),V(be,{key:0},[c[0]||(c[0]=P("span",{class:"text-muted-foreground"},"Cached read",-1)),P("span",Qb,se(s(e.totals.cachedReadTokens))+" tok · "+se(o(e.totals.cachedReadUsd)),1)],64)):le("",!0),e.totals.cachedWriteTokens>0?(k(),V(be,{key:1},[c[1]||(c[1]=P("span",{class:"text-muted-foreground"},"Cached write",-1)),P("span",e1,se(s(e.totals.cachedWriteTokens))+" tok · "+se(o(e.totals.cachedWriteUsd)),1)],64)):le("",!0),c[4]||(c[4]=P("span",{class:"text-muted-foreground"},"Output",-1)),P("span",t1,se(s(e.totals.outputTokens))+" tok · "+se(o(e.totals.outputUsd)),1),e.totals.reasoningTokens>0?(k(),V(be,{key:2},[c[2]||(c[2]=P("span",{class:"text-muted-foreground"},"Reasoning",-1)),P("span",n1,se(s(e.totals.reasoningTokens))+" tok ",1)],64)):le("",!0)]),P("div",o1,[P("div",s1,[c[5]||(c[5]=P("span",null,"Total",-1)),P("span",r1,se(s(e.totals.totalTokens))+" tok · "+se(o(e.totals.totalUsd)),1)])]),i.value?(k(),V("p",i1," Some turns lack pricing data, so this total may underestimate cost. ")):le("",!0)])]),_:1})]),_:1})]),_:1})):le("",!0)])}}}),a1=Wc("inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 transition-colors",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",success:"border-transparent bg-emerald-500/15 text-emerald-500 dark:bg-emerald-500/20",warning:"border-transparent bg-amber-500/15 text-amber-500 dark:bg-amber-500/20"}},defaultVariants:{variant:"default"}}),bd=X({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,o)=>(k(),V("span",{class:Oe(h(Ye)(h(a1)({variant:e.variant}),t.class))},[ue(n.$slots,"default")],2))}}),Aa="mcp__photoshop__";function qs(e){return!e||e==="…"?e:e.startsWith(Aa)?e.slice(Aa.length):e}function u1(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}const c1={key:"text-sky-600 dark:text-sky-400",string:"text-emerald-600 dark:text-emerald-400",number:"text-amber-600 dark:text-amber-400",boolean:"text-purple-600 dark:text-purple-400",null:"text-muted-foreground",punctuation:"text-muted-foreground",whitespace:""};function d1(e){return c1[e]}function f1(e,t){let n=t+1;for(;n<e.length;){if(e[n]==="\\"){n+=2;continue}if(e[n]==='"')return{end:n+1,text:e.slice(t,n+1)};n++}return{end:e.length,text:e.slice(t)}}function p1(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n++;return e[n]===":"}function h1(e,t){let n=t;for(e[n]==="-"&&n++;n<e.length&&/\d/.test(e[n]);)n++;if(e[n]===".")for(n++;n<e.length&&/\d/.test(e[n]);)n++;if(e[n]==="e"||e[n]==="E")for(n++,(e[n]==="+"||e[n]==="-")&&n++;n<e.length&&/\d/.test(e[n]);)n++;return e.slice(t,n)}function m1(e){const t=[];let n=0;function o(s,r){r&&t.push({type:s,text:r})}for(;n<e.length;){const s=e[n];if(/\s/.test(s)){const r=n;for(;n<e.length&&/\s/.test(e[n]);)n++;o("whitespace",e.slice(r,n));continue}if(s==='"'){const{end:r,text:i}=f1(e,n);if(n=r,p1(e,n)){const l=n;for(;n<e.length&&/\s/.test(e[n]);)n++;e[n]===":"?(n++,o("key",i+e.slice(l,n))):o("string",i)}else o("string",i);continue}if(s==="-"||/\d/.test(s)){const r=h1(e,n);o("number",r),n+=r.length;continue}if(e.startsWith("true",n)){o("boolean","true"),n+=4;continue}if(e.startsWith("false",n)){o("boolean","false"),n+=5;continue}if(e.startsWith("null",n)){o("null","null"),n+=4;continue}if("{}[],:".includes(s)){o("punctuation",s),n++;continue}o("string",s),n++}return t}function g1(e){return m1(u1(e))}const v1={class:"m-0 overflow-x-auto rounded-md bg-muted/40 p-2 font-mono text-[11px] leading-snug"},y1=X({__name:"JsonHighlight",props:{value:{}},setup(e){const t=e,n=q(()=>g1(t.value));return(o,s)=>(k(),V("pre",v1,[(k(!0),V(be,null,an(n.value,(r,i)=>(k(),V("span",{key:i,class:Oe(h(d1)(r.type))},se(r.text),3))),128))]))}}),b1=["aria-label"],x1={class:"mb-4 flex items-start justify-between gap-3"},_1={class:"min-w-0"},w1={class:"truncate font-mono text-sm font-semibold text-foreground"},C1={class:"mt-1.5 flex items-center gap-2"},k1={key:0,class:"mb-4 rounded-md border border-border/60 bg-muted/20 px-3 py-2 text-xs leading-relaxed text-muted-foreground"},A1={class:"space-y-3 text-xs"},S1={key:0},E1={key:1},P1={class:"max-h-64 overflow-auto rounded-md bg-muted/40 p-2 text-[11px] leading-snug"},O1=X({__name:"ToolCallDetailDialog",props:{open:{type:Boolean},name:{},status:{},input:{},result:{},rationale:{}},emits:["close"],setup(e,{emit:t}){const n=e,o=t;function s(l){l.key==="Escape"&&n.open&&o("close")}vt(()=>window.addEventListener("keydown",s)),Kn(()=>window.removeEventListener("keydown",s));function r(){return n.status==="success"||n.status==="done"?"success":n.status==="error"?"destructive":"secondary"}function i(){return n.status==="success"?"success":n.status}return(l,a)=>(k(),Z(vu,{to:"body"},[e.open?(k(),V("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur",onClick:a[1]||(a[1]=Dt(c=>o("close"),["self"]))},[P("div",{class:"max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-xl border border-border bg-card p-5 shadow-lg",role:"dialog","aria-modal":"true","aria-label":h(qs)(e.name)},[P("div",x1,[P("div",_1,[P("h2",w1,se(h(qs)(e.name)),1),P("div",C1,[e.status==="pending"||e.status==="running"?(k(),Z(h($t),{key:0,class:"size-3.5 animate-spin text-muted-foreground"})):le("",!0),S(h(bd),{variant:r(),class:"text-[10px] capitalize"},{default:T(()=>[Y(se(i()),1)]),_:1},8,["variant"])])]),S(h(we),{variant:"ghost",size:"icon",onClick:a[0]||(a[0]=c=>o("close"))},{default:T(()=>[S(h(uc),{class:"size-4"})]),_:1})]),e.rationale?(k(),V("p",k1,se(e.rationale),1)):le("",!0),P("div",A1,[e.input!==void 0?(k(),V("div",S1,[a[2]||(a[2]=P("div",{class:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"}," Input ",-1)),S(y1,{value:e.input},null,8,["value"])])):le("",!0),e.result?(k(),V("div",E1,[a[3]||(a[3]=P("div",{class:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"}," Result ",-1)),P("pre",P1,se(e.result.content),1)])):le("",!0)])],8,b1)])):le("",!0)]))}}),Sa={photoshop_create_document:ds,photoshop_open_image:ds,photoshop_save_document:ds,photoshop_close_document:ds,photoshop_get_document_info:Em,photoshop_get_version:qm,photoshop_ping:vm,photoshop_fill_layer:Rm,photoshop_flatten_image:Sm,photoshop_undo:Fm,photoshop_redo:$m,photoshop_get_history:Am,photoshop_get_state:Rr,photoshop_get_preview:Rr,photoshop_get_capabilities:Rr,photoshop_play_action:Ql,photoshop_execute_script:Ql,photoshop_content_aware_fill:Xl,photoshop_deselect:bs,photoshop_invert_selection:bs,photoshop_select_subject:bs,photoshop_list_fonts:ac,photoshop_generative_fill:Mt,photoshop_generative_remove:Xl,photoshop_generative_expand:Mt,photoshop_generative_upscale:Mt,photoshop_sky_replacement:Mt,photoshop_generate_image:Mt,photoshop_neural_filter:Mt},T1=[{test:e=>e.includes("artboard"),icon:Om},{test:e=>e.startsWith("photoshop_recipe_"),icon:zm},{test:e=>e.startsWith("photoshop_generative_")||e==="photoshop_generate_image"||e==="photoshop_sky_replacement"||e==="photoshop_neural_filter",icon:Mt},{test:e=>e.startsWith("photoshop_select_"),icon:bs},{test:e=>e.includes("_mask"),icon:xm},{test:e=>e.includes("_text"),icon:ac},{test:e=>e.includes("_layer"),icon:Pm},{test:e=>e.includes("_blur")||e.includes("apply_noise")||e.includes("apply_sharpen"),icon:Mt},{test:e=>e.startsWith("photoshop_adjust_")||e.startsWith("photoshop_auto_")||e==="photoshop_desaturate"||e==="photoshop_invert",icon:Dm},{test:e=>e==="photoshop_resize_image"||e==="photoshop_crop_document"||e==="photoshop_place_image",icon:_m}];function I1(e){const t=qs(e);if(!t||t==="…")return ea;if(Sa[t])return Sa[t];for(const{test:n,icon:o}of T1)if(n(t))return o;return ea}const R1=["disabled","aria-label"],M1={key:0,class:"absolute inset-0 flex items-center justify-center rounded-full bg-card/70"},$1={class:"max-w-xs font-mono text-xs"},B1=X({__name:"ToolCallOrb",props:{name:{},status:{},disabled:{type:Boolean,default:!1},index:{}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,s=q(()=>{const u=qs(n.name);return n.index!==void 0?`${n.index+1}. ${u}`:u}),r=q(()=>I1(n.name)),i=q(()=>n.status==="pending"||n.status==="running"),l=q(()=>n.status==="error"?"border-destructive/60":n.status==="done"||n.status==="success"?"border-emerald-500/60":n.status==="running"?"border-foreground/30":"border-border"),a=q(()=>{const u=n.status==="running"?"running":n.status==="pending"?"pending":n.status==="error"?"failed":"completed";return`${s.value} (${u})`});function c(){n.disabled||o("click")}return(u,d)=>(k(),Z(h(Yi),null,{default:T(()=>[S(h(Gi),null,{default:T(()=>[S(h(Xi),{"as-child":""},{default:T(()=>[P("button",{type:"button",disabled:e.disabled,"aria-label":a.value,class:Oe(["relative flex size-10 shrink-0 items-center justify-center rounded-full border bg-card/80 text-muted-foreground transition-colors hover:bg-muted/60 disabled:cursor-default disabled:opacity-60",l.value]),onClick:c},[(k(),Z(tr(r.value),{class:Oe(["size-4",e.name==="…"?"animate-pulse":""])},null,8,["class"])),i.value?(k(),V("span",M1,[S(h($t),{class:"size-3.5 animate-spin text-muted-foreground"})])):le("",!0)],10,R1)]),_:1}),S(h(Ji),null,{default:T(()=>[P("p",$1,se(s.value),1)]),_:1})]),_:1})]),_:1}))}}),D1={key:0,class:"max-w-full overflow-x-auto px-3 py-2"},N1={class:"flex flex-wrap gap-3"},xd=X({__name:"ToolCallStrip",props:{items:{},showIndex:{type:Boolean}},setup(e){const t=e,n=L(null),o=q(()=>t.items.find(i=>i.id===n.value)??null);function s(i){i.clickable!==!1&&(n.value=i.id)}function r(){n.value=null}return(i,l)=>{var a,c,u,d,f;return k(),V(be,null,[e.items.length>0?(k(),V("div",D1,[P("div",N1,[(k(!0),V(be,null,an(e.items,(p,g)=>(k(),Z(B1,{key:p.id,name:p.name,status:p.status,index:e.showIndex?g:void 0,disabled:p.clickable===!1,onClick:m=>s(p)},null,8,["name","status","index","disabled","onClick"]))),128))])])):le("",!0),S(O1,{open:o.value!==null,name:((a=o.value)==null?void 0:a.name)??"",status:((c=o.value)==null?void 0:c.status)??"pending",input:(u=o.value)==null?void 0:u.input,result:(d=o.value)==null?void 0:d.result,rationale:(f=o.value)==null?void 0:f.rationale,onClose:r},null,8,["open","name","status","input","result","rationale"])],64)}}});function L1(e){try{const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return;if("ok"in t&&typeof t.ok=="boolean")return t.ok}catch{}}function _d(e,t){var o;return((o=e.result)!=null&&o.content?L1(e.result.content):void 0)===!1||e.status==="error"||t==="error"?"error":e.status==="success"||t==="done"?"done":t==="running"?"running":e.status==="pending"?"pending":e.status}const q1={class:"rounded-lg border border-border bg-card/50"},F1={class:"space-y-1 border-b border-border px-3 py-2"},V1={class:"flex items-center gap-2 text-xs"},z1={key:0,class:"rounded bg-amber-500/15 px-1 text-[9px] font-semibold uppercase text-amber-600"},U1={class:"ml-auto shrink-0 text-[10px] text-muted-foreground"},H1={class:"text-[11px] leading-snug text-muted-foreground"},j1=X({__name:"PlanCard",props:{plan:{},toolCalls:{},partial:{type:Boolean}},setup(e){const t=e,n=q(()=>t.plan.steps.filter(s=>s.status==="done").length),o=q(()=>t.plan.steps.map((s,r)=>{var a;const i=(a=t.toolCalls)==null?void 0:a[r],l=s.tool||(i==null?void 0:i.name)||"…";return{id:s.id,name:l,status:i?_d(i,s.status):s.status,input:i==null?void 0:i.input,result:i==null?void 0:i.result,rationale:s.rationale,clickable:!!(s.tool||i)}}));return(s,r)=>(k(),V("div",q1,[P("div",F1,[P("div",V1,[S(h(Tm),{class:"size-3.5 shrink-0 text-muted-foreground"}),r[0]||(r[0]=P("span",{class:"font-medium text-foreground"},"Action plan",-1)),e.partial?(k(),V("span",z1," Draft ")):le("",!0),P("span",U1,se(n.value)+"/"+se(e.plan.steps.length||"…"),1)]),P("p",H1,se(e.plan.summary||"…"),1)]),S(xd,{items:o.value,"show-index":""},null,8,["items"])]))}}),K1={key:0,class:"flex flex-col gap-2"},W1={key:0,class:"flex items-center gap-2 text-xs text-muted-foreground"},G1={key:1,class:"rounded-md border border-border/60 bg-muted/20"},J1={key:0,class:"animate-pulse"},Y1={key:0,class:"border-t border-border/60 px-2.5 py-2 text-xs leading-relaxed text-muted-foreground whitespace-pre-wrap"},X1={key:0,class:"ml-0.5 inline-block h-3.5 w-0.5 animate-pulse bg-muted-foreground align-middle"},Z1={key:3,class:"rounded-lg border border-border bg-card/50"},Q1={key:4,class:"whitespace-pre-wrap text-sm leading-relaxed text-foreground"},ex={key:0,class:"ml-0.5 inline-block h-4 w-0.5 animate-pulse bg-foreground align-middle"},tx=X({__name:"StreamingMessage",props:{message:{},standaloneToolCalls:{}},setup(e){const t=e,n=L(!1),o=q(()=>{var a;return!!((a=t.message.reasoning)!=null&&a.length)||t.message.isStreaming}),s=q(()=>{var c;const a=t.message.activity;return a?a.phase==="planning"?"Planning…":a.phase==="thinking"?"Thinking…":a.phase==="tool-running"?`Running ${((c=a.detail)==null?void 0:c.replace(/^mcp__photoshop__/,""))??"tool"}…`:null:null}),r=q(()=>!!s.value&&!t.message.text&&!t.message.reasoning&&!t.message.plan),i=q(()=>t.message.isStreaming||!!t.message.text||!!t.message.reasoning||!!t.message.plan||t.message.toolCalls.length>0||!!s.value),l=q(()=>t.standaloneToolCalls.map(a=>({id:a.id,name:a.name,status:_d(a),input:a.input,result:a.result,clickable:!0})));return(a,c)=>i.value?(k(),V("div",K1,[r.value?(k(),V("div",W1,[c[1]||(c[1]=P("span",{class:"inline-block size-1.5 animate-pulse rounded-full bg-muted-foreground"},null,-1)),Y(" "+se(s.value),1)])):le("",!0),o.value?(k(),V("div",G1,[P("button",{type:"button",class:"flex w-full items-center gap-1.5 px-2.5 py-1.5 text-left text-xs text-muted-foreground hover:text-foreground",onClick:c[0]||(c[0]=u=>n.value=!n.value)},[(k(),Z(tr(n.value?h(rc):h(bm)),{class:"size-3.5 shrink-0"})),c[2]||(c[2]=P("span",{class:"font-medium"},"Reasoning",-1)),e.message.isStreaming&&!e.message.text?(k(),V("span",J1,"…")):le("",!0)]),n.value&&e.message.reasoning?(k(),V("div",Y1,[Y(se(e.message.reasoning),1),e.message.isStreaming?(k(),V("span",X1)):le("",!0)])):le("",!0)])):le("",!0),e.message.plan?(k(),Z(j1,{key:2,plan:e.message.plan,"tool-calls":e.message.toolCalls,partial:e.message.planPartial},null,8,["plan","tool-calls","partial"])):le("",!0),l.value.length>0?(k(),V("div",Z1,[S(xd,{items:l.value},null,8,["items"])])):le("",!0),e.message.text||e.message.isStreaming&&!r.value?(k(),V("div",Q1,[Y(se(e.message.text),1),e.message.isStreaming?(k(),V("span",ex)):le("",!0)])):le("",!0)])):le("",!0)}}),nx={class:"mx-auto flex max-w-3xl flex-col gap-6 px-4 py-6 pb-52"},ox={key:0,class:"flex items-start gap-2.5 rounded-lg border border-dashed border-border/60 bg-card/30 px-3 py-2.5"},sx={key:0,class:"flex gap-3 rounded-lg border border-user-message-border bg-user-message-bg px-3 py-2.5 text-user-message-fg"},rx={class:"flex size-7 shrink-0 items-center justify-center rounded-md border border-user-message-border bg-user-message-avatar-bg text-user-message-avatar-fg"},ix={class:"flex min-w-0 flex-1 flex-col gap-1"},lx={key:0,class:"whitespace-pre-wrap text-sm leading-relaxed"},ax={key:1,class:"flex gap-3"},ux={class:"flex size-7 shrink-0 cursor-default items-center justify-center rounded-md border border-border bg-card text-muted-foreground"},cx={class:"text-xs"},dx={key:1,class:"flex size-7 shrink-0 items-center justify-center rounded-md border border-border bg-card text-muted-foreground"},fx={class:"flex min-w-0 flex-1 flex-col gap-2"},px=X({__name:"MessageList",props:{messages:{},busy:{type:Boolean},providers:{}},setup(e){const t=e,n=L(null);async function o(){await Qe(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}Te(()=>{var i,l,a,c,u;return[t.messages.length,t.busy,(i=t.messages[t.messages.length-1])==null?void 0:i.text,(l=t.messages[t.messages.length-1])==null?void 0:l.reasoning,(c=(a=t.messages[t.messages.length-1])==null?void 0:a.plan)==null?void 0:c.steps.length,(u=t.messages[t.messages.length-1])==null?void 0:u.isStreaming]},()=>{o()}),vt(o);function s(i){var u;if(!i.provider)return"Assistant";const l=t.providers.find(d=>d.id===i.provider),a=(l==null?void 0:l.label)??i.provider,c=((u=l==null?void 0:l.models.find(d=>d.id===i.model))==null?void 0:u.label)??i.model;return c?`${a} · ${c}`:a}function r(i){return i.plan?i.toolCalls.slice(i.plan.steps.length):i.toolCalls}return(i,l)=>(k(),V("div",{ref_key:"scroller",ref:n,class:"min-h-0 flex-1 overflow-y-auto"},[P("div",nx,[e.messages.length===0?(k(),V("div",ox,[S(h(Mt),{class:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),l[0]||(l[0]=P("p",{class:"min-w-0 text-xs leading-relaxed text-muted-foreground"},[P("span",{class:"font-medium text-foreground"},"Describe a Photoshop task"),Y(` — e.g. "Create a 1920×1080 doc, add 'Hello' text, save as hello.psd on Desktop." `)],-1))])):le("",!0),(k(!0),V(be,null,an(e.messages,a=>(k(),V(be,{key:a.id},[a.role==="user"?(k(),V("div",sx,[P("div",rx,[S(h(Vm),{class:"size-4"})]),P("div",ix,[l[1]||(l[1]=P("div",{class:"text-xs font-medium text-user-message-muted"},"You",-1)),a.text?(k(),V("div",lx,se(a.text),1)):le("",!0)])])):(k(),V("div",ax,[a.provider?(k(),Z(h(Yi),{key:0},{default:T(()=>[S(h(Gi),null,{default:T(()=>[S(h(Xi),{"as-child":""},{default:T(()=>[P("div",ux,[S(ho,{provider:a.provider,size:16},null,8,["provider"])])]),_:2},1024),S(h(Ji),null,{default:T(()=>[P("p",cx,se(s(a)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)):(k(),V("div",dx,[S(h(Mt),{class:"size-4"})])),P("div",fx,[S(tx,{message:a,"standalone-tool-calls":r(a)},null,8,["message","standalone-tool-calls"])])]))],64))),128))])],512))}});function to(e){const t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function hx(e){const t=getComputedStyle(e),n=to(t.lineHeight);if(n>0)return n;const o=to(t.fontSize);return o>0?o*1.5:20}function mx(e,t={}){const n=t.minLines??3,o=t.maxLines??50;function s(){const i=e.value;if(!i)return;const l=hx(i),a=getComputedStyle(i),c=to(a.paddingTop)+to(a.paddingBottom)+to(a.borderTopWidth)+to(a.borderBottomWidth),u=l*n+c,d=l*o+c;i.style.height="0px";const f=i.scrollHeight,p=Math.min(Math.max(f,u),d);i.style.height=`${p}px`,i.style.overflowY=f>d?"auto":"hidden"}function r(){s()}return vt(()=>{Qe(s)}),t.watch&&Te(t.watch,()=>{Qe(s)}),{onInput:r,resize:s}}const gx={class:"mx-auto w-full max-w-3xl shrink-0 px-4 py-3"},vx={class:"overflow-hidden rounded-2xl border border-white/10 bg-white/[0.06] shadow-lg backdrop-blur-2xl backdrop-saturate-150 transition-shadow focus-within:border-white/20 focus-within:ring-1 focus-within:ring-white/10"},yx=["disabled"],bx={class:"flex items-center justify-between gap-2 px-2 pb-2"},xx={class:"min-w-0 flex-1"},_x=X({__name:"Composer",props:{busy:{type:Boolean},disabled:{type:Boolean}},emits:["send","abort"],setup(e,{emit:t}){const n=e,o=t,s=L(""),r=L(null),{onInput:i,resize:l}=mx(r,{minLines:3,maxLines:50,watch:s});function a(u){u.key==="Enter"&&!u.shiftKey&&!u.isComposing&&(u.preventDefault(),c())}async function c(){const u=s.value.trim();!u||n.busy||n.disabled||(o("send",u),s.value="",await Qe(l))}return(u,d)=>(k(),V("div",gx,[P("div",vx,[Yo(P("textarea",{ref_key:"textareaRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=f=>s.value=f),disabled:e.busy||e.disabled,placeholder:"Describe what you want the agent to do in Photoshop…",class:"block w-full resize-none border-0 bg-transparent px-4 pt-3 pb-1 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-0 disabled:cursor-not-allowed disabled:opacity-60",onInput:d[1]||(d[1]=(...f)=>h(i)&&h(i)(...f)),onKeydown:a},null,40,yx),[[Is,s.value]]),P("div",bx,[P("div",xx,[ue(u.$slots,"actions")]),e.busy?(k(),Z(h(we),{key:1,size:"icon",variant:"secondary",class:"size-8 rounded-full",onClick:d[2]||(d[2]=f=>o("abort"))},{default:T(()=>[S(h(Nm),{class:"size-3.5"})]),_:1})):(k(),Z(h(we),{key:0,size:"icon",disabled:!s.value.trim()||e.disabled,class:"size-8 rounded-full disabled:opacity-40",onClick:c},{default:T(()=>[S(h(ym),{class:"size-4"})]),_:1},8,["disabled"]))])]),d[3]||(d[3]=P("p",{class:"mt-2 text-center text-[11px] text-muted-foreground"},[Y(" Press "),P("kbd",{class:"rounded border border-border px-1 py-px text-[10px]"},"Enter"),Y(" to send · "),P("kbd",{class:"rounded border border-border px-1 py-px text-[10px]"},"Shift+Enter"),Y(" for newline ")],-1))]))}}),wd=X({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const s=Tn(e,t);return(r,i)=>(k(),Z(h(py),mo(Wn(h(s))),{default:T(()=>[ue(r.$slots,"default")]),_:3},16))}}),Cd=X({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e;return(n,o)=>(k(),Z(h(ky),Le(t,{class:h(Ye)(t.class)}),{default:T(()=>[ue(n.$slots,"default")]),_:3},16,["class"]))}}),kd=X({__name:"PopoverContent",props:{forceMount:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},setup(e){const t=e;return(n,o)=>(k(),Z(h(wy),null,{default:T(()=>[S(h(xy),Le(t,{class:h(Ye)("z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t.class)}),{default:T(()=>[ue(n.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),wx={class:"font-normal"},Cx={class:"font-medium text-foreground"},kx={class:"max-h-96 overflow-y-auto"},Ax={class:"flex items-center justify-between gap-2 bg-muted/50 px-3 py-1.5 text-xs font-medium text-muted-foreground"},Sx={class:"inline-flex items-center gap-1.5"},Ex={key:0,class:"inline-flex items-center gap-1 text-[10px] text-muted-foreground/80"},Px={class:"py-1"},Ox=["onClick"],Tx={class:"min-w-0 flex-1"},Ix={class:"truncate font-medium"},Rx=X({__name:"ModelSelector",props:{providers:{},currentProvider:{},currentModel:{},disabled:{type:Boolean}},emits:["update:provider","update:model","open-settings"],setup(e,{emit:t}){const n=e,o=t,s=L(!1),r=q(()=>n.providers.find(a=>a.id===n.currentProvider)),i=q(()=>{var a;return(a=r.value)==null?void 0:a.models.find(c=>c.id===n.currentModel)});function l(a,c){if(!a.isAuthenticated){s.value=!1,o("open-settings");return}a.id!==n.currentProvider&&o("update:provider",a.id),c.id!==n.currentModel&&o("update:model",c.id),s.value=!1}return(a,c)=>(k(),Z(h(wd),{open:s.value,"onUpdate:open":c[0]||(c[0]=u=>s.value=u)},{default:T(()=>[S(h(Cd),{"as-child":""},{default:T(()=>[S(h(we),{variant:"ghost",size:"sm",disabled:e.disabled,class:"h-7 gap-1.5 px-2 text-xs text-muted-foreground hover:bg-transparent hover:text-foreground"},{default:T(()=>{var u;return[S(ho,{provider:e.currentProvider,size:14},null,8,["provider"]),P("span",wx,[c[1]||(c[1]=Y(" Model: ",-1)),P("span",Cx,se(((u=i.value)==null?void 0:u.label)??"Select model"),1)]),S(h(rc),{class:"size-3.5 opacity-50"})]}),_:1},8,["disabled"])]),_:1}),S(h(kd),{class:"w-80 p-0",align:"start",side:"top"},{default:T(()=>[P("div",kx,[(k(!0),V(be,null,an(e.providers,u=>(k(),V("div",{key:u.id,class:"border-b border-border/50 last:border-0"},[P("div",Ax,[P("span",Sx,[S(ho,{provider:u.id,size:14},null,8,["provider"]),Y(" "+se(u.label),1)]),u.isAuthenticated?le("",!0):(k(),V("span",Ex,[S(h(Zl),{class:"size-3"}),Y(" "+se(u.authMethod==="cli_account"?"Connect account":"Add API key"),1)]))]),P("div",Px,[(k(!0),V(be,null,an(u.models,d=>(k(),V("button",{key:d.id,type:"button",class:Oe(["flex w-full items-center gap-2 px-3 py-2 text-left text-sm",[u.isAuthenticated?"hover:bg-accent":"opacity-50 hover:bg-muted/30",u.id===e.currentProvider&&d.id===e.currentModel?"bg-accent":""]]),onClick:f=>l(u,d)},[u.isAuthenticated?(k(),Z(h(oi),{key:0,class:Oe(["size-4 shrink-0",u.id===e.currentProvider&&d.id===e.currentModel?"opacity-100":"opacity-0"])},null,8,["class"])):(k(),Z(h(Zl),{key:1,class:"size-3.5 shrink-0 text-muted-foreground"})),P("div",Tx,[P("div",Ix,se(d.label),1)])],10,Ox))),128))])]))),128))])]),_:1})]),_:1},8,["open"]))}}),Mx={class:"flex h-screen flex-col"},$x={key:0,class:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center"},Bx={key:1,class:"relative flex min-h-0 flex-1 flex-col overflow-hidden"},Dx={class:"pointer-events-none absolute inset-x-0 bottom-0 z-10"},Nx={key:0,class:"pointer-events-auto border-t border-destructive/40 bg-destructive/10 px-4 py-2 text-center text-xs text-destructive backdrop-blur-sm"},Lx={class:"flex items-center gap-1"},qx=X({__name:"ChatView",props:{providers:{},store:{},settingsOpen:{type:Boolean},actionPlanBeta:{type:Boolean}},emits:["new-chat","open-settings"],setup(e,{emit:t}){const n=e,o=t,s=L(n.actionPlanBeta);Te(()=>n.actionPlanBeta,d=>{s.value=d});async function r(){const d=!s.value;s.value=d;try{await R0(d),await Hn()}catch{s.value=!d}}const i=q(()=>{const d=n.store.activeChatId.value;return d?n.store.chats.value.find(f=>f.id===d)??null:null}),l=q(()=>{const d=i.value;return d?n.providers.find(f=>f.id===d.provider)??null:null}),a=q(()=>{var d;return((d=l.value)==null?void 0:d.authMethod)==="cli_account"});async function c(d){const f=i.value;f&&(await Ca(f.id,{provider:d}),await n.store.loadChats())}async function u(d){const f=i.value;f&&(await Ca(f.id,{model:d}),await n.store.loadChats())}return(d,f)=>(k(),V("div",Mx,[S(l1,{chat:i.value,totals:i.value?n.store.chatTotals.value:null,"subscription-mode":a.value},null,8,["chat","totals","subscription-mode"]),i.value?(k(),V("div",Bx,[S(px,{messages:n.store.messages,busy:n.store.sending.value,providers:n.providers},null,8,["messages","busy","providers"]),P("div",Dx,[n.store.error.value?(k(),V("div",Nx,se(n.store.error.value),1)):le("",!0),S(_x,{class:"pointer-events-auto",busy:n.store.sending.value,onSend:f[2]||(f[2]=p=>n.store.send(p)),onAbort:n.store.abort},{actions:T(()=>[P("div",Lx,[S(Rx,{providers:n.providers,"current-provider":i.value.provider,"current-model":i.value.model,disabled:n.store.sending.value,"onUpdate:provider":c,"onUpdate:model":u,onOpenSettings:f[1]||(f[1]=p=>o("open-settings"))},null,8,["providers","current-provider","current-model","disabled"]),S(h(we),{variant:"ghost",size:"sm",disabled:n.store.sending.value,title:"Beta: plan all Photoshop steps in one call, then execute them in a single pass.",class:Oe(["h-7 gap-1.5 px-2 text-xs hover:bg-white/5",s.value?"text-foreground":"text-muted-foreground hover:text-foreground"]),onClick:r},{default:T(()=>[S(h(Cm),{class:Oe(["size-3.5",s.value?"text-amber-500":""])},null,8,["class"]),f[5]||(f[5]=Y(" Action Plan ",-1)),P("span",{class:Oe(["rounded px-1 text-[9px] font-semibold uppercase",s.value?"bg-amber-500/15 text-amber-600":"bg-white/10 text-muted-foreground"])},se(s.value?"On":"Beta"),3)]),_:1},8,["disabled","class"])])]),_:1},8,["busy","onAbort"])])])):(k(),V("div",$x,[f[4]||(f[4]=P("p",{class:"text-sm text-muted-foreground"},"Select a chat from the sidebar or start a new one.",-1)),S(h(we),{onClick:f[0]||(f[0]=p=>o("new-chat"))},{default:T(()=>[S(h(lc),{class:"size-4"}),f[3]||(f[3]=Y(" New chat ",-1))]),_:1})]))]))}}),Fx={class:"flex h-14 shrink-0 items-center gap-2 border-b border-border px-3"},Vx={class:"flex items-center gap-2 rounded-md transition-colors hover:bg-accent/50 p-1 -ml-1",title:"Adobe Creative Cloud Apps"},zx={class:"space-y-3"},Ux={class:"grid grid-cols-3 gap-2"},Hx=["disabled"],jx={class:"text-xs text-center"},Kx={class:"px-3 pt-3"},Wx={class:"scrollbar-none mt-3 min-h-0 flex-1 overflow-y-auto px-2"},Gx={key:0,class:"px-2 py-6 text-center text-xs text-muted-foreground"},Jx={key:1,class:"space-y-0.5"},Yx=["onClick"],Xx={class:"min-w-0 flex-1"},Zx=["onBlur","onKeydown"],Qx=["title"],e2={class:"text-[10px] text-muted-foreground"},t2=["onClick"],n2=["onClick"],o2=["onClick"],s2={class:"border-t border-border p-2"},r2=X({__name:"Sidebar",props:{chats:{},activeChatId:{}},emits:["new-chat","select","rename","delete","open-settings"],setup(e,{emit:t}){const n=e,o=t,s=L(null),r=L(null),i=L(""),l=[{id:"ps",name:"Photoshop",active:!0},{id:"ai",name:"Illustrator",active:!1},{id:"ae",name:"After Effects",active:!1},{id:"pr",name:"Premiere Pro",active:!1},{id:"id",name:"InDesign",active:!1},{id:"xd",name:"XD",active:!1},{id:"lr",name:"Lightroom",active:!1}];function a(g,m){m.stopPropagation(),s.value=s.value===g?null:g}function c(g,m){m.stopPropagation(),r.value=g.id,i.value=g.title,s.value=null}function u(g){const m=i.value.trim();m&&o("rename",g,m),r.value=null}function d(){r.value=null}function f(g,m){m.stopPropagation(),s.value=null,o("delete",g)}function p(g){const m=new Date(g),y=new Date;return m.toDateString()===y.toDateString()?m.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):m.toLocaleDateString(void 0,{month:"short",day:"numeric"})}return(g,m)=>(k(),V("aside",{class:"flex h-screen w-[260px] shrink-0 flex-col border-r border-border bg-card/40",onClick:m[5]||(m[5]=y=>s.value=null)},[P("div",Fx,[S(h(wd),null,{default:T(()=>[S(h(Cd),{"as-child":""},{default:T(()=>[P("button",Vx,[S(fi,{app:"ps",size:28}),m[6]||(m[6]=P("span",{class:"text-sm font-semibold"},"Photoshop MCP",-1))])]),_:1}),S(h(kd),{align:"start",class:"w-80"},{default:T(()=>[P("div",zx,[m[8]||(m[8]=P("div",null,[P("h4",{class:"text-sm font-semibold mb-1"},"Adobe Creative Cloud"),P("p",{class:"text-xs text-muted-foreground"}," MCP integrations for Adobe applications ")],-1)),P("div",Ux,[(k(),V(be,null,an(l,y=>P("button",{key:y.id,disabled:!y.active,class:Oe(["group relative flex flex-col items-center gap-2 rounded-lg border border-border p-3 transition-all hover:border-primary/50 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:border-border",{"border-primary bg-primary/5":y.active}])},[S(fi,{app:y.id,size:32},null,8,["app"]),P("span",jx,se(y.name),1),y.active?le("",!0):(k(),Z(h(bd),{key:0,variant:"secondary",class:"absolute -top-1 -right-1 text-[9px] px-1 py-0 h-4"},{default:T(()=>[...m[7]||(m[7]=[Y(" Soon ",-1)])]),_:1}))],10,Hx)),64))])])]),_:1})]),_:1})]),P("div",Kx,[S(h(we),{class:"w-full justify-start gap-2 border-dashed",variant:"outline",onClick:m[0]||(m[0]=y=>o("new-chat"))},{default:T(()=>[S(h(lc),{class:"size-4"}),m[9]||(m[9]=Y(" New chat ",-1))]),_:1})]),P("div",Wx,[n.chats.length===0?(k(),V("div",Gx," No chats yet. ")):(k(),V("div",Jx,[(k(!0),V(be,null,an(n.chats,y=>(k(),V("div",{key:y.id,class:Oe(["group relative flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent",{"bg-accent":y.id===n.activeChatId}]),onClick:_=>o("select",y.id)},[P("div",Xx,[r.value===y.id?Yo((k(),V("input",{key:0,"onUpdate:modelValue":m[1]||(m[1]=_=>i.value=_),class:"w-full rounded border border-input bg-background px-1 py-0.5 text-sm focus:outline-none focus:ring-1 focus:ring-ring",autofocus:"",onClick:m[2]||(m[2]=Dt(()=>{},["stop"])),onBlur:_=>u(y.id),onKeydown:[Rs(Dt(_=>u(y.id),["prevent"]),["enter"]),Rs(Dt(d,["prevent"]),["escape"])]},null,40,Zx)),[[Is,i.value]]):(k(),V("div",{key:1,class:"truncate",title:y.title},se(y.title),9,Qx)),P("div",e2,se(p(y.updatedAt))+" · "+se(y.provider),1)]),P("button",{class:Oe(["invisible flex size-6 items-center justify-center rounded text-muted-foreground hover:bg-background group-hover:visible",{visible:s.value===y.id}]),onClick:_=>a(y.id,_)},[S(h(wm),{class:"size-3.5"})],10,t2),s.value===y.id?(k(),V("div",{key:0,class:"absolute right-1 top-9 z-10 w-32 rounded-md border border-border bg-popover p-1 text-sm shadow-md",onClick:m[3]||(m[3]=Dt(()=>{},["stop"]))},[P("button",{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-left hover:bg-accent",onClick:_=>c(y,_)},[S(h(Mm),{class:"size-3.5"}),m[10]||(m[10]=Y(" Rename ",-1))],8,n2),P("button",{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-destructive hover:bg-destructive/10",onClick:_=>f(y.id,_)},[S(h(xs),{class:"size-3.5"}),m[11]||(m[11]=Y(" Delete ",-1))],8,o2)])):le("",!0)],10,Yx))),128))]))]),P("div",s2,[S(h(we),{variant:"ghost",size:"sm",class:"w-full justify-start gap-2",onClick:m[4]||(m[4]=y=>o("open-settings"))},{default:T(()=>[S(h(Bm),{class:"size-4"}),m[12]||(m[12]=Y(" Settings ",-1))]),_:1}),m[13]||(m[13]=dp('<div class="my-2 border-t border-border"></div><p class="text-center text-[11px] text-muted-foreground"><a href="https://alisait.com" target="_blank" rel="noopener noreferrer" class="transition-colors hover:text-foreground"> Ali Sait Teke </a> · <a href="https://github.com/alisaitteke/photoshop-mcp" target="_blank" rel="noopener noreferrer" class="transition-colors hover:text-foreground"> GitHub </a> · <a href="https://www.linkedin.com/in/alisait/" target="_blank" rel="noopener noreferrer" class="transition-colors hover:text-foreground"> LinkedIn </a></p>',2))])]))}}),i2=X({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=Tn(e,t);return(r,i)=>(k(),Z(h(Oy),mo(Wn(h(s))),{default:T(()=>[ue(r.$slots,"default")]),_:3},16))}}),Ea=X({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=lr(t,"class");return(o,s)=>(k(),Z(h(Iy),Le({class:h(Ye)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},h(n)),{default:T(()=>[ue(o.$slots,"default")]),_:3},16,["class"]))}}),l2=X({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=lr(t,"class");return(o,s)=>(k(),Z(h(My),Le(h(n),{class:h(Ye)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:T(()=>[ue(o.$slots,"default")]),_:3},16,["class"]))}}),a2={class:"truncate"},Pa=X({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=lr(t,"class"),o=es(n);return(s,r)=>(k(),Z(h(By),Le(h(o),{class:h(Ye)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:T(()=>[P("span",a2,[ue(s.$slots,"default")])]),_:3},16,["class"]))}}),u2={class:"max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-xl border border-border bg-card p-5 shadow-lg"},c2={class:"mb-4 flex items-center justify-between"},d2={class:"space-y-2"},f2={class:"flex gap-2"},p2={class:"space-y-2"},h2={class:"flex gap-2"},m2={key:0,class:"space-y-2"},g2={class:"flex gap-2"},v2={class:"space-y-2"},y2={class:"text-sm"},b2={class:"flex gap-2"},x2={key:0,class:"text-xs text-muted-foreground"},_2={key:2,class:"text-xs text-destructive"},w2={key:0,class:"flex items-center justify-center gap-2 rounded-lg border border-border py-10 text-sm text-muted-foreground"},C2={class:"mb-2 flex items-center justify-between"},k2={class:"flex items-center gap-2"},A2={class:"text-sm font-semibold"},S2={key:0,class:"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] text-emerald-600 dark:text-emerald-400"},E2=["href"],P2={key:0,class:"mb-3 space-y-2"},O2={class:"flex gap-2"},T2={key:1,class:"flex items-center gap-2"},I2={key:2,class:"space-y-2"},R2={key:0,class:"rounded-md bg-muted/40 p-2 text-[11px] text-muted-foreground"},M2={class:"text-foreground"},$2={class:"mt-1"},B2={class:"text-foreground"},D2={class:"space-y-1"},N2={key:3,class:"mt-2 whitespace-pre-line text-xs text-destructive"},L2={class:"rounded-lg border border-border p-3"},q2={class:"mb-2 flex items-center justify-between"},F2={class:"flex items-center gap-2"},V2={class:"text-sm font-semibold"},z2={key:0,class:"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] text-emerald-600 dark:text-emerald-400"},U2={class:"space-y-2"},H2={class:"flex items-center gap-2"},j2=["disabled"],K2={class:"flex justify-end"},W2={key:0,class:"text-xs text-destructive"},G2={class:"mt-6 flex justify-end"},J2=X({__name:"SettingsDialog",props:{chatCount:{},clearingHistory:{type:Boolean},clearHistoryError:{}},emits:["close","saved","clear-history"],setup(e,{emit:t}){const n=e,o=t,{theme:s,setTheme:r}=H0(),i=L([]),l=L(!0),a=L({}),c=L({}),u=L({}),d=L({}),f=L(!1),p=L(null),g=L(!1),m=L(!1),y=L(!1),_=L(!1),w={anthropic:{install:"npm install -g @anthropic-ai/claude-code",login:"claude auth login"},google:{install:"npm install -g @google/gemini-cli",login:"gemini auth login"}},E=L(null),O=L(""),j=L(""),H=L(""),R=L("openai"),K=L(""),ee=L(""),U=L(!1),N=L(null);async function $(){l.value=!0;try{const[A,C]=await Promise.all([Hi(),B0()]);i.value=A,E.value=C;for(const Q of i.value)Q.cliPath&&(c.value[Q.id]=Q.cliPath);C&&(O.value=C.name,j.value=C.baseUrl,R.value=C.apiFormat,K.value=C.models.map(Q=>Q.id).join(", "),ee.value=C.websiteUrl,H.value=""),g.value=await vd();const z=await ns();y.value=z.betaTelemetryOptIn}finally{l.value=!1}}vt($);async function I(A,C){if(A.authMethod!==C){d.value[A.id]=null,u.value[A.id]=!0;try{await id(A.id,C),await $(),o("saved")}catch(z){d.value[A.id]=z.message}finally{u.value[A.id]=!1}}}async function ne(A){var z;const C=(z=a.value[A.id])==null?void 0:z.trim();if(C){d.value[A.id]=null,u.value[A.id]=!0;try{const Q=await sd(A.id,C);if(!Q.ok){d.value[A.id]=Q.error||"Invalid key";return}await rd(A.id,C),a.value[A.id]="",await $(),o("saved")}catch(Q){d.value[A.id]=Q.message}finally{u.value[A.id]=!1}}}async function oe(A){u.value[A.id]=!0;try{await $0(A.id),await $(),o("saved")}finally{u.value[A.id]=!1}}async function re(A){var C;d.value[A.id]=null,u.value[A.id]=!0;try{const z=(C=c.value[A.id])==null?void 0:C.trim();z&&await ad(A.id,z);const Q=await ld(A.id);if(!Q.ok){d.value[A.id]=yd(Q.error,A.id,Q.detail);return}await $(),o("saved")}catch(z){d.value[A.id]=z.message}finally{u.value[A.id]=!1}}function fe(A){return A.supportedAuthMethods.includes("cli_account")}function ce(A){return A.cliBinaryName?`/usr/local/bin/${A.cliBinaryName}`:"Optional custom path"}function _e(){n.chatCount===0||n.clearingHistory||(p.value=null,f.value=!0)}function et(){f.value=!1}async function Be(A){if(!(g.value===A||m.value)){m.value=!0,p.value=null;try{await ab(!A),g.value=A,A||(y.value=!1)}catch(C){p.value=C.message}finally{m.value=!1}}}async function Ue(A){if(!(!g.value||y.value===A||_.value)){_.value=!0,p.value=null;try{await od(A),y.value=A,await Hn()}catch(C){p.value=C.message}finally{_.value=!1}}}function Ht(A){r(A),Hn()}function pn(){f.value=!1,o("clear-history")}async function jt(){if(!O.value.trim()||!j.value.trim()||!H.value.trim()){N.value="Name, Base URL, and API Key are required.";return}const A=K.value.split(",").map(C=>C.trim()).filter(Boolean).map(C=>({id:C,label:C}));if(!A.length){N.value="At least one model is required.";return}N.value=null,U.value=!0;try{const C=await cd({baseUrl:j.value.trim(),apiKey:H.value.trim(),apiFormat:R.value});if(!C.ok){N.value=C.error||"Validation failed.";return}await ud({name:O.value.trim(),websiteUrl:ee.value.trim(),apiKey:H.value.trim(),baseUrl:j.value.trim(),apiFormat:R.value,models:A,defaultModel:A[0].id}),H.value="",await $(),o("saved")}catch(C){N.value=C.message}finally{U.value=!1}}async function at(){U.value=!0;try{await D0(),E.value=null,O.value="",j.value="",H.value="",K.value="",ee.value="",await $(),o("saved")}finally{U.value=!1}}return Te(()=>n.clearHistoryError,A=>{A&&(p.value=A)}),(A,C)=>(k(),V("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur",onClick:C[14]||(C[14]=Dt(z=>o("close"),["self"]))},[P("div",u2,[P("div",c2,[C[15]||(C[15]=P("h2",{class:"text-base font-semibold"},"Settings",-1)),S(h(we),{variant:"ghost",size:"icon",onClick:C[0]||(C[0]=z=>o("close"))},{default:T(()=>[S(h(uc),{class:"size-4"})]),_:1})]),S(h(i2),{"default-value":"general"},{default:T(()=>[S(h(l2),{class:"mb-4 grid w-full grid-cols-2"},{default:T(()=>[S(h(Pa),{value:"general"},{default:T(()=>[...C[16]||(C[16]=[Y("General",-1)])]),_:1}),S(h(Pa),{value:"providers"},{default:T(()=>[...C[17]||(C[17]=[Y("Providers",-1)])]),_:1})]),_:1}),S(h(Ea),{value:"general",class:"space-y-6"},{default:T(()=>[P("div",d2,[S(h(st),null,{default:T(()=>[...C[18]||(C[18]=[Y("Theme",-1)])]),_:1}),P("div",f2,[S(h(we),{size:"sm",variant:h(s)==="light"?"default":"outline",onClick:C[1]||(C[1]=z=>Ht("light"))},{default:T(()=>[S(h(Lm),{class:"size-4"}),C[19]||(C[19]=Y(" Light ",-1))]),_:1},8,["variant"]),S(h(we),{size:"sm",variant:h(s)==="dark"?"default":"outline",onClick:C[2]||(C[2]=z=>Ht("dark"))},{default:T(()=>[S(h(Im),{class:"size-4"}),C[20]||(C[20]=Y(" Dark ",-1))]),_:1},8,["variant"])])]),P("div",p2,[S(h(st),null,{default:T(()=>[...C[21]||(C[21]=[Y("Privacy mode",-1)])]),_:1}),C[24]||(C[24]=P("p",{class:"text-xs text-muted-foreground"}," When on, anonymous usage analytics are disabled. No API keys, chat content, or account identifiers are collected. ",-1)),P("div",h2,[S(h(we),{size:"sm",variant:g.value?"outline":"default",disabled:m.value,onClick:C[3]||(C[3]=z=>Be(!1))},{default:T(()=>[...C[22]||(C[22]=[Y(" On ",-1)])]),_:1},8,["variant","disabled"]),S(h(we),{size:"sm",variant:g.value?"default":"outline",disabled:m.value,onClick:C[4]||(C[4]=z=>Be(!0))},{default:T(()=>[...C[23]||(C[23]=[Y(" Off ",-1)])]),_:1},8,["variant","disabled"])])]),g.value?(k(),V("div",m2,[S(h(st),null,{default:T(()=>[...C[25]||(C[25]=[Y("Beta team content sharing",-1)])]),_:1}),C[28]||(C[28]=P("p",{class:"text-xs text-muted-foreground"}," When enabled, prompts, AI responses, reasoning, and tool names are shared to help improve the product. Tool arguments, results, and file paths are never included. ",-1)),P("div",g2,[S(h(we),{size:"sm",variant:y.value?"default":"outline",disabled:_.value,onClick:C[5]||(C[5]=z=>Ue(!0))},{default:T(()=>[...C[26]||(C[26]=[Y(" On ",-1)])]),_:1},8,["variant","disabled"]),S(h(we),{size:"sm",variant:y.value?"outline":"default",disabled:_.value,onClick:C[6]||(C[6]=z=>Ue(!1))},{default:T(()=>[...C[27]||(C[27]=[Y(" Off ",-1)])]),_:1},8,["variant","disabled"])])])):le("",!0),P("div",v2,[S(h(st),null,{default:T(()=>[...C[29]||(C[29]=[Y("Chat history",-1)])]),_:1}),C[32]||(C[32]=P("p",{class:"text-xs text-muted-foreground"}," Permanently delete all conversations. ",-1)),f.value?(k(),V(be,{key:0},[P("p",y2," Delete "+se(e.chatCount)+" chat"+se(e.chatCount===1?"":"s")+"? This cannot be undone. ",1),P("div",b2,[S(h(we),{variant:"destructive",size:"sm",disabled:e.clearingHistory,onClick:pn},{default:T(()=>[e.clearingHistory?(k(),Z(h($t),{key:0,class:"size-4 animate-spin"})):le("",!0),Y(" "+se(e.clearingHistory?"Deleting…":"Confirm delete"),1)]),_:1},8,["disabled"]),S(h(we),{variant:"outline",size:"sm",disabled:e.clearingHistory,onClick:et},{default:T(()=>[...C[30]||(C[30]=[Y(" Cancel ",-1)])]),_:1},8,["disabled"])])],64)):(k(),V(be,{key:1},[S(h(we),{variant:"outline",size:"sm",class:"text-destructive hover:text-destructive",disabled:e.chatCount===0||e.clearingHistory,onClick:_e},{default:T(()=>[S(h(xs),{class:"size-4"}),C[31]||(C[31]=Y(" Clear all chats ",-1))]),_:1},8,["disabled"]),e.chatCount===0?(k(),V("p",x2," No chats to delete. ")):le("",!0)],64)),p.value?(k(),V("p",_2,se(p.value),1)):le("",!0)])]),_:1}),S(h(Ea),{value:"providers",class:"space-y-4"},{default:T(()=>{var z,Q,ve,v,b;return[l.value?(k(),V("div",w2,[S(h($t),{class:"size-4 animate-spin"}),C[33]||(C[33]=Y(" Loading providers… ",-1))])):(k(),V(be,{key:1},[(k(!0),V(be,null,an(i.value.filter(x=>x.id!=="custom"),x=>(k(),V("div",{key:x.id,class:"rounded-lg border border-border p-3"},[P("div",C2,[P("div",k2,[S(ho,{provider:x.id,size:18},null,8,["provider"]),P("span",A2,se(x.label),1),x.isAuthenticated?(k(),V("span",S2,[S(h(oi),{class:"size-3"}),Y(" "+se(x.authMethod==="cli_account"?x.accountLabel||"Account connected":x.apiKeyMasked),1)])):le("",!0)]),x.authMethod==="api_key"?(k(),V("a",{key:0,href:x.apiKeyHelpUrl,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground"},[C[34]||(C[34]=Y(" Get key ",-1)),S(h(ic),{class:"size-3"})],8,E2)):le("",!0)]),fe(x)?(k(),V("div",P2,[S(h(st),{class:"text-xs text-muted-foreground"},{default:T(()=>[...C[35]||(C[35]=[Y("Authentication",-1)])]),_:1}),P("div",O2,[S(h(we),{size:"sm",variant:x.authMethod==="api_key"?"default":"outline",disabled:u.value[x.id],onClick:M=>I(x,"api_key")},{default:T(()=>[...C[36]||(C[36]=[Y(" API key ",-1)])]),_:1},8,["variant","disabled","onClick"]),S(h(we),{size:"sm",variant:x.authMethod==="cli_account"?"default":"outline",disabled:u.value[x.id],onClick:M=>I(x,"cli_account")},{default:T(()=>[...C[37]||(C[37]=[Y(" Uses your account ",-1)])]),_:1},8,["variant","disabled","onClick"])])])):le("",!0),x.authMethod==="api_key"?(k(),V("div",T2,[S(h(ft),{modelValue:a.value[x.id],"onUpdate:modelValue":M=>a.value[x.id]=M,type:"password",placeholder:x.hasApiKey?"Replace key…":x.apiKeyHint,disabled:u.value[x.id]},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"]),S(h(we),{size:"sm",disabled:u.value[x.id]||!a.value[x.id],onClick:M=>ne(x)},{default:T(()=>[u.value[x.id]?(k(),Z(h($t),{key:0,class:"size-4 animate-spin"})):le("",!0),Y(" "+se(u.value[x.id]?"…":"Save"),1)]),_:2},1032,["disabled","onClick"]),x.hasApiKey?(k(),Z(h(we),{key:0,size:"icon",variant:"ghost",disabled:u.value[x.id],onClick:M=>oe(x)},{default:T(()=>[S(h(xs),{class:"size-4 text-muted-foreground"})]),_:1},8,["disabled","onClick"])):le("",!0)])):(k(),V("div",I2,[w[x.id]?(k(),V("div",R2,[P("p",null,[C[38]||(C[38]=Y(" Install: ",-1)),P("code",M2,se(w[x.id].install),1)]),P("p",$2,[C[39]||(C[39]=Y(" Login: ",-1)),P("code",B2,se(w[x.id].login),1)])])):le("",!0),P("div",D2,[S(h(st),{class:"text-xs text-muted-foreground"},{default:T(()=>[...C[40]||(C[40]=[Y("CLI path (optional)",-1)])]),_:1}),S(h(ft),{modelValue:c.value[x.id],"onUpdate:modelValue":M=>c.value[x.id]=M,placeholder:ce(x),disabled:u.value[x.id]},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])]),S(h(we),{size:"sm",disabled:u.value[x.id],onClick:M=>re(x)},{default:T(()=>[u.value[x.id]?(k(),Z(h($t),{key:0,class:"size-4 animate-spin"})):le("",!0),Y(" "+se(u.value[x.id]?"Checking…":"Check connection"),1)]),_:2},1032,["disabled","onClick"])])),d.value[x.id]?(k(),V("p",N2,se(d.value[x.id]),1)):le("",!0)]))),128)),P("div",L2,[P("div",q2,[P("div",F2,[S(ho,{provider:"custom",size:18}),P("span",V2,se(((z=E.value)==null?void 0:z.name)||"Custom"),1),(Q=E.value)!=null&&Q.apiKeyPresent?(k(),V("span",z2,[S(h(oi),{class:"size-3"}),Y(" "+se((ve=E.value)==null?void 0:ve.apiKey),1)])):le("",!0)]),(v=E.value)!=null&&v.apiKeyPresent?(k(),Z(h(we),{key:0,size:"icon",variant:"ghost",disabled:U.value,onClick:at},{default:T(()=>[S(h(xs),{class:"size-4 text-muted-foreground"})]),_:1},8,["disabled"])):le("",!0)]),P("div",U2,[P("div",H2,[S(h(ft),{modelValue:O.value,"onUpdate:modelValue":C[7]||(C[7]=x=>O.value=x),placeholder:"Provider name",disabled:U.value,class:"flex-1"},null,8,["modelValue","disabled"]),Yo(P("select",{"onUpdate:modelValue":C[8]||(C[8]=x=>R.value=x),class:"flex h-9 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",disabled:U.value},[...C[41]||(C[41]=[P("option",{value:"openai"},"OpenAI",-1),P("option",{value:"anthropic"},"Anthropic",-1)])],8,j2),[[Pi,R.value]])]),S(h(ft),{modelValue:j.value,"onUpdate:modelValue":C[9]||(C[9]=x=>j.value=x),placeholder:"Base URL (e.g. https://api.example.com/v1)",disabled:U.value},null,8,["modelValue","disabled"]),S(h(ft),{modelValue:ee.value,"onUpdate:modelValue":C[10]||(C[10]=x=>ee.value=x),placeholder:"Website URL (optional)",disabled:U.value},null,8,["modelValue","disabled"]),S(h(ft),{modelValue:H.value,"onUpdate:modelValue":C[11]||(C[11]=x=>H.value=x),type:"password",placeholder:(b=E.value)!=null&&b.apiKeyPresent?"Replace key…":"API key",disabled:U.value},null,8,["modelValue","placeholder","disabled"]),S(h(ft),{modelValue:K.value,"onUpdate:modelValue":C[12]||(C[12]=x=>K.value=x),placeholder:"Models (comma-separated, e.g. deepseek-chat, deepseek-reasoner)",disabled:U.value},null,8,["modelValue","disabled"]),P("div",K2,[S(h(we),{size:"sm",disabled:U.value||!O.value||!j.value||!H.value||!K.value,onClick:jt},{default:T(()=>[U.value?(k(),Z(h($t),{key:0,class:"size-4 animate-spin"})):le("",!0),Y(" "+se(U.value?"…":"Save"),1)]),_:1},8,["disabled"])]),N.value?(k(),V("p",W2,se(N.value),1)):le("",!0)])])],64))]}),_:1})]),_:1}),P("div",G2,[S(h(we),{onClick:C[13]||(C[13]=z=>o("close"))},{default:T(()=>[...C[42]||(C[42]=[Y("Done",-1)])]),_:1})])])]))}}),Y2={totalUsd:0,inputUsd:0,outputUsd:0,cachedReadUsd:0,cachedWriteUsd:0,totalTokens:0,inputTokens:0,outputTokens:0,cachedReadTokens:0,cachedWriteTokens:0,reasoningTokens:0,assistantTurns:0,pricedTurns:0};function X2(){const e=L([]),t=L(null),n=ln([]),o=L(!1),s=L(null);let r=null,i=null;const l=q(()=>{var I,ne,oe;const $={...Y2};for(const re of n)re.role==="assistant"&&(!re.usage&&!re.cost||($.assistantTurns+=1,re.cost&&($.pricedTurns+=1,$.totalUsd+=re.cost.totalUsd,$.inputUsd+=re.cost.inputUsd,$.outputUsd+=re.cost.outputUsd,$.cachedReadUsd+=re.cost.cachedReadUsd,$.cachedWriteUsd+=re.cost.cachedWriteUsd),re.usage&&($.totalTokens+=re.usage.totalTokens??0,$.inputTokens+=re.usage.inputTokens??0,$.outputTokens+=re.usage.outputTokens??0,$.cachedReadTokens+=((I=re.usage.inputTokenDetails)==null?void 0:I.cacheReadTokens)??0,$.cachedWriteTokens+=((ne=re.usage.inputTokenDetails)==null?void 0:ne.cacheWriteTokens)??0,$.reasoningTokens+=((oe=re.usage.outputTokenDetails)==null?void 0:oe.reasoningTokens)??0)));return $});async function a(){e.value=await N0()}async function c($){t.value=$,n.splice(0,n.length),s.value=null;const I=await q0($);for(const ne of I.messages)n.push({id:ne.id,role:ne.role,text:ne.content.text,reasoning:ne.content.reasoning,toolCalls:ne.content.toolCalls??[],plan:ne.content.plan,usage:ne.content.usage,cost:ne.content.cost,provider:ne.content.provider,model:ne.content.model,createdAt:ne.createdAt})}async function u($){const I=await L0($);return e.value=[I,...e.value],t.value=I.id,n.splice(0,n.length),s.value=null,I}async function d($){await ka($),e.value=e.value.filter(I=>I.id!==$),t.value===$&&(t.value=null,n.splice(0,n.length))}async function f(){const $=e.value.map(I=>I.id);$.length!==0&&(await Promise.all($.map(ka)),e.value=[],t.value=null,n.splice(0,n.length),s.value=null)}async function p($,I){await F0($,I);const ne=e.value.findIndex(oe=>oe.id===$);ne!==-1&&(e.value[ne]={...e.value[ne],title:I})}function g(){const $=n[n.length-1];if($&&$.role==="assistant")return $;const I=e.value.find(oe=>oe.id===t.value),ne={id:crypto.randomUUID(),role:"assistant",text:"",toolCalls:[],isStreaming:!0,provider:I==null?void 0:I.provider,model:I==null?void 0:I.model,createdAt:Date.now()};return n.push(ne),ne}let m=null,y="",_="",w=!1;function E(){w=!1,m&&(y&&(m.text+=y,y=""),_&&(m.reasoning=(m.reasoning??"")+_,_=""))}function O(){w||(w=!0,requestAnimationFrame(E))}function j($){y+=$,O()}function H($){_+=$,O()}function R(){E(),m&&(m.isStreaming=!1,m.activity=void 0,m.planPartial=!1),m=null,y="",_=""}function K($){for(let I=n.length-1;I>=0;I--){const ne=n[I].toolCalls.find(oe=>oe.id===$);if(ne)return ne}}function ee($,I){var ne;if($==="text-delta"&&I.text)m=g(),j(I.text);else if($==="reasoning-delta"&&I.text)m=g(),H(I.text);else if($==="activity"&&I.phase){const oe=g();m=oe,oe.activity={phase:I.phase,detail:I.detail}}else if($==="tool-call"&&I.id&&I.name){E();const oe=g();m=oe,oe.toolCalls.push({id:I.id,name:I.name,input:I.input,status:"pending"})}else if($==="tool-result"&&I.id){E();const oe=K(I.id);oe&&(oe.result={ok:!!I.ok,content:I.content??""},oe.status=I.ok?"success":"error")}else if($==="plan-partial"){const oe=g();m=oe,oe.plan={summary:I.summary??"",steps:I.steps??[]},oe.planPartial=!0}else if($==="plan"){E();const oe=g();m=oe,oe.plan={summary:I.summary??"",steps:I.steps??[]},oe.planPartial=!1}else if($==="plan-step"&&I.id&&I.status){E();const re=(ne=g().plan)==null?void 0:ne.steps.find(fe=>fe.id===I.id);re&&(re.status=I.status)}else if($!=="plan-repair")if($==="finish"){E();const oe=g();I.usage&&(oe.usage=I.usage),I.cost&&(oe.cost=I.cost)}else $==="error"&&(R(),s.value=I.message??"Unknown error")}async function U($){const I=$.trim();if(!I||!t.value)return;o.value=!0,s.value=null,n.push({id:crypto.randomUUID(),role:"user",text:I,toolCalls:[],createdAt:Date.now()}),g();const ne=crypto.randomUUID();r=ne,i=new AbortController;try{for await(const oe of V0({chatId:t.value,prompt:I,requestId:ne},i.signal)){if(oe.event==="done")break;ee(oe.event,oe.data)}a()}catch(oe){oe.name!=="AbortError"&&(s.value=oe.message)}finally{R(),o.value=!1,r=null,i=null}}async function N(){if(r){try{await z0(r)}catch{}i==null||i.abort()}}return{chats:e,activeChatId:t,messages:n,sending:o,error:s,chatTotals:l,loadChats:a,selectChat:c,newChat:u,removeChat:d,clearAllChats:f,rename:p,send:U,abort:N}}const Z2={key:1,class:"flex min-h-screen items-center justify-center p-6"},Q2={class:"max-w-md rounded-lg border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive"},e_={key:4,class:"flex h-screen"},t_=X({__name:"App",setup(e){const t=L(null),n=L([]),o=L(!0),s=L("Starting…"),r=L(null),i=L(!1),l=L(!1),a=L(null),c=L(!1),u=X2(),d=hm(),f=pm(),p=q(()=>n.value.some(R=>R.isAuthenticated));function g(){const R=d.params.id;return typeof R=="string"&&R?R:null}async function m(){const R=g();if(!R){u.activeChatId.value!==null&&(u.activeChatId.value=null,u.messages.splice(0,u.messages.length));return}if(u.activeChatId.value!==R){if(!u.chats.value.some(K=>K.id===R)){await f.replace({name:"home"});return}await u.selectChat(R)}}async function y(){try{s.value="Checking connection…";const[R,K,ee]=await Promise.all([nd(),Hi(),ns()]);t.value=R,n.value=K,c.value=!ee.betaTelemetryPromptAnswered,p.value&&(s.value="Loading chats…",await u.loadChats(),s.value="Preparing workspace…",await m()),await Hn(),_s("app_loaded",{has_auth:p.value})}catch(R){r.value=R.message}finally{o.value=!1}}Te(()=>d.params.id,()=>{p.value&&m()});function _(){c.value=!1}async function w(){if(!t.value)return;const R=await u.newChat({provider:t.value.activeProvider,model:t.value.activeModel});await f.push({name:"chat",params:{id:R.id}})}async function E(R){await f.push({name:"chat",params:{id:R}})}async function O(R){const K=u.activeChatId.value===R;await u.removeChat(R),K&&await f.replace({name:"home"})}async function j(){await y()}async function H(){if(u.chats.value.length!==0){l.value=!0,a.value=null;try{await u.clearAllChats(),await f.replace({name:"home"})}catch(R){a.value=R.message}finally{l.value=!1}}}return vt(y),(R,K)=>{var ee;return o.value?(k(),Z(Hm,{key:0,message:s.value},null,8,["message"])):r.value?(k(),V("div",Z2,[P("div",Q2,se(r.value),1)])):c.value?(k(),Z(db,{key:2,onAnswered:_})):p.value?(k(),V("div",e_,[S(r2,{chats:h(u).chats.value,"active-chat-id":h(u).activeChatId.value,onNewChat:w,onSelect:E,onRename:K[0]||(K[0]=(U,N)=>h(u).rename(U,N)),onDelete:O,onOpenSettings:K[1]||(K[1]=U=>i.value=!0)},null,8,["chats","active-chat-id"]),S(qx,{class:"flex-1",providers:n.value,store:h(u),"settings-open":i.value,"action-plan-beta":((ee=t.value)==null?void 0:ee.actionPlanBeta)??!0,onNewChat:w,onOpenSettings:K[2]||(K[2]=U=>i.value=!0)},null,8,["providers","store","settings-open","action-plan-beta"]),i.value?(k(),Z(J2,{key:0,"chat-count":h(u).chats.value.length,"clearing-history":l.value,"clear-history-error":a.value,onClose:K[3]||(K[3]=U=>i.value=!1),onSaved:j,onClearHistory:H},null,8,["chat-count","clearing-history","clear-history-error"])):le("",!0)])):(k(),Z(Kb,{key:3,onSaved:y}))}}}),Oa={render:()=>null},n_=[{path:"/",name:"home",component:Oa},{path:"/c/:id",name:"chat",component:Oa}],o_=fm({history:Hh(),routes:n_});fd(ji());const s_=new FontFace("Source Sans 3 Variable",`url(${ih}) format('woff2-variations')`,{style:"normal",weight:"200 900",display:"swap"});s_.load().then(e=>document.fonts.add(e)).catch(()=>{});async function r_(){await ib(),oh(t_).use(o_).mount("#app")}r_();
|