hermes-web-ui 0.1.2 → 0.1.4
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 +134 -408
- package/bin/hermes-web-ui.mjs +111 -97
- package/dist/assets/ChatView-BCcUaLWg.css +1 -0
- package/dist/assets/ChatView-gu2Y-jpZ.js +16 -0
- package/dist/assets/Input-yD_s5hp8.js +234 -0
- package/dist/assets/JobsView-C1YU-sgU.js +123 -0
- package/dist/assets/LogsView-BN_TkDPi.css +1 -0
- package/dist/assets/LogsView-BSNn4Rmi.js +1 -0
- package/dist/assets/MarkdownRenderer-CrMwC_5d.css +1 -0
- package/dist/assets/MarkdownRenderer-DNP-kPA8.js +23 -0
- package/dist/assets/MemoryView-BsGBmN7h.js +5 -0
- package/dist/assets/MemoryView-CK0PemlP.css +1 -0
- package/dist/assets/Modal-CSHJclVU.js +232 -0
- package/dist/assets/Popover-blRIsd-8.js +117 -0
- package/dist/assets/Scrollbar-CYtpM7mc.js +77 -0
- package/dist/assets/Select-DTG-wtu5.js +454 -0
- package/dist/assets/SettingsView-BzBMKaLz.css +1 -0
- package/dist/assets/SettingsView-CppuSCZA.js +1129 -0
- package/dist/assets/SkillsView-86Z-HE_X.css +1 -0
- package/dist/assets/SkillsView-CciuH5wp.js +1 -0
- package/dist/assets/Spin-DWreY5m0.js +43 -0
- package/dist/assets/Suffix-B828Aenx.js +25 -0
- package/dist/assets/Tooltip-BCHslENT.js +1 -0
- package/dist/assets/Warning-Ba-wYRRB.js +1 -0
- package/dist/assets/_plugin-vue_export-helper-CV9qMihF.js +47 -0
- package/dist/assets/app-4gFjNUoo.js +1 -0
- package/dist/assets/chat-P2QaPvpZ.js +6 -0
- package/dist/assets/context-B74FvHiJ.js +109 -0
- package/dist/assets/index-Cx8mFF2D.js +307 -0
- package/dist/assets/index-DwVgwUIX.css +1 -0
- package/dist/assets/jobs-DVxci1LY.js +1 -0
- package/dist/assets/keysOf-Dvq9k1rv.js +1 -0
- package/dist/assets/omit-QZj0aLfU.js +1 -0
- package/dist/assets/pinia-tE0RcsDr.js +1 -0
- package/dist/assets/runtime-core.esm-bundler-yNW65ghW.js +1 -0
- package/dist/assets/skills-DgbQAgoB.js +1 -0
- package/dist/assets/use-message-Dz_GbH5h.js +1 -0
- package/dist/index.html +19 -6
- package/dist/server/config.d.ts +7 -0
- package/dist/server/config.js +12 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +156 -0
- package/dist/server/routes/filesystem.d.ts +2 -0
- package/dist/server/routes/filesystem.js +427 -0
- package/dist/server/routes/logs.d.ts +2 -0
- package/dist/server/routes/logs.js +87 -0
- package/dist/server/routes/proxy-handler.d.ts +2 -0
- package/dist/server/routes/proxy-handler.js +82 -0
- package/dist/server/routes/proxy.d.ts +2 -0
- package/dist/server/routes/proxy.js +12 -0
- package/dist/server/routes/sessions.d.ts +2 -0
- package/dist/server/routes/sessions.js +69 -0
- package/dist/server/routes/upload.d.ts +2 -0
- package/dist/server/routes/upload.js +50 -0
- package/dist/server/routes/webhook.d.ts +2 -0
- package/dist/server/routes/webhook.js +33 -0
- package/dist/server/services/hermes-cli.d.ts +50 -0
- package/dist/server/services/hermes-cli.js +185 -0
- package/dist/server/services/hermes.d.ts +40 -0
- package/dist/server/services/hermes.js +118 -0
- package/package.json +19 -4
- package/dist/assets/ChatView-DrzZz5ex.css +0 -1
- package/dist/assets/ChatView-WnNeYrS7.js +0 -38
- package/dist/assets/JobsView-BF9wWdwU.js +0 -831
- package/dist/assets/Modal-CQVLL_Oc.js +0 -276
- package/dist/assets/_plugin-vue_export-helper-D5N3Hfca.js +0 -231
- package/dist/assets/chat-640V6r6N.js +0 -1
- package/dist/assets/index-4iFlrAYJ.js +0 -307
- package/dist/assets/index-CMJKLUKk.css +0 -1
- package/dist/assets/jobs-Cuol6Mqb.js +0 -1
- package/dist/assets/use-message-B8ClBznx.js +0 -117
- /package/dist/assets/{client-BxIiwrqC.js → client-BKiVmpru.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Xn as e,cn as t}from"./_plugin-vue_export-helper-D5N3Hfca.js";import{n,t as r}from"./client-BxIiwrqC.js";function i(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}var a=`/assets/logo-BAarh-tH.png`;async function o(){return n(`/health`)}async function s(){return n(`/v1/models`)}var c=t(`app`,()=>{let t=e(!1),n=e(``),r=e([]),i=e(),a=e(!0),c=e(!0),l=e(4096),u=e(`hermes-agent`);async function d(){try{let e=await o();t.value=!0,e.version&&(n.value=e.version)}catch{t.value=!1}}async function f(){try{r.value=(await s()).data||[],r.value.length>0&&!r.value.find(e=>e.id===u.value)&&(u.value=r.value[0].id)}catch{}}function p(e=3e4){m(),d(),i.value=setInterval(d,e)}function m(){i.value&&=(clearInterval(i.value),void 0)}return{connected:t,serverVersion:n,models:r,streamEnabled:a,sessionPersistence:c,maxTokens:l,selectedModel:u,checkConnection:d,loadModels:f,startHealthPolling:p,stopHealthPolling:m}});async function l(e){return n(`/v1/runs`,{method:`POST`,body:JSON.stringify(e)})}function u(e,t,n,i){let a=`${r()}/v1/runs/${e}/events`,o=!1,s=new EventSource(a);return s.onmessage=e=>{if(!o)try{let r=JSON.parse(e.data);t(r),(r.event===`run.completed`||r.event===`run.failed`)&&(o=!0,s.close(),n())}catch{t({event:`message`,delta:e.data})}},s.onerror=()=>{o||(o=!0,s.close(),i(Error(`SSE connection error`)))},{abort:()=>{o||(o=!0,s.close())}}}function d(){return Date.now().toString(36)+Math.random().toString(36).slice(2,8)}var f=`hermes_chat_sessions`,p=`hermes_active_session`;function m(){try{return JSON.parse(localStorage.getItem(f)||`[]`)}catch{return[]}}function h(e){localStorage.setItem(f,JSON.stringify(e))}function g(){return localStorage.getItem(p)}var _=t(`chat`,()=>{let t=c(),n=e(m()),r=e(g()),i=e(!1),a=e(null),o=e(n.value.find(e=>e.id===r.value)||null),s=e(o.value?.messages||[]);function f(){let e={id:d(),title:`New Chat`,messages:[],createdAt:Date.now(),updatedAt:Date.now()};return n.value.unshift(e),h(n.value),e}function _(e){r.value=e,localStorage.setItem(p,e),o.value=n.value.find(t=>t.id===e)||null,s.value=o.value?[...o.value.messages]:[]}function v(){i.value||_(f().id)}function y(e){n.value=n.value.filter(t=>t.id!==e),h(n.value),r.value===e&&(n.value.length>0?_(n.value[0].id):_(f().id))}function b(){if(!o.value||!t.sessionPersistence)return;if(o.value.messages=[...s.value],o.value.updatedAt=Date.now(),o.value.title===`New Chat`){let e=s.value.find(e=>e.role===`user`);e&&(o.value.title=e.content.slice(0,40)+(e.content.length>40?`...`:``))}let e=n.value.findIndex(e=>e.id===o.value.id);e!==-1&&(n.value[e]=o.value),h(n.value)}function x(e){s.value.push(e)}function S(e,t){let n=s.value.findIndex(t=>t.id===e);n!==-1&&(s.value[n]={...s.value[n],...t})}async function C(e){if(!(!e.trim()||i.value)){o.value||_(f().id),x({id:d(),role:`user`,content:e.trim(),timestamp:Date.now()}),b(),i.value=!0;try{let t=s.value.filter(e=>(e.role===`user`||e.role===`assistant`)&&e.content.trim()).map(e=>({role:e.role,content:e.content})),n=await l({input:e.trim(),conversation_history:t,session_id:o.value?.id}),r=n.run_id||n.id;if(!r){x({id:d(),role:`system`,content:`Error: startRun returned no run ID. Response: ${JSON.stringify(n)}`,timestamp:Date.now()}),i.value=!1,b();return}a.value=u(r,e=>{switch(e.event){case`run.started`:break;case`message.delta`:{let t=s.value[s.value.length-1];t?.role===`assistant`&&t.isStreaming?t.content+=e.delta||``:x({id:d(),role:`assistant`,content:e.delta||``,timestamp:Date.now(),isStreaming:!0});break}case`tool.started`:{let t=s.value[s.value.length-1];t?.isStreaming&&S(t.id,{isStreaming:!1}),x({id:d(),role:`tool`,content:``,timestamp:Date.now(),toolName:e.tool||e.name,toolPreview:e.preview,toolStatus:`running`});break}case`tool.completed`:{let e=s.value.filter(e=>e.role===`tool`&&e.toolStatus===`running`);if(e.length>0){let t=e[e.length-1];S(t.id,{toolStatus:`done`})}break}case`run.completed`:let t=s.value[s.value.length-1];t?.isStreaming&&S(t.id,{isStreaming:!1}),i.value=!1,a.value=null,b();break;case`run.failed`:let n=s.value[s.value.length-1];n?.isStreaming?S(n.id,{isStreaming:!1,content:e.error?`Error: ${e.error}`:`Run failed`,role:`system`}):x({id:d(),role:`system`,content:e.error?`Error: ${e.error}`:`Run failed`,timestamp:Date.now()}),s.value.forEach((e,t)=>{e.role===`tool`&&e.toolStatus===`running`&&(s.value[t]={...e,toolStatus:`error`})}),i.value=!1,a.value=null,b();break}},()=>{let e=s.value[s.value.length-1];e?.isStreaming&&S(e.id,{isStreaming:!1}),i.value=!1,a.value=null,b()},e=>{let t=s.value[s.value.length-1];t?.isStreaming?S(t.id,{isStreaming:!1,content:`Error: ${e.message}`,role:`system`}):x({id:d(),role:`system`,content:`Error: ${e.message}`,timestamp:Date.now()}),i.value=!1,a.value=null,b()})}catch(e){x({id:d(),role:`system`,content:`Error: ${e.message}`,timestamp:Date.now()}),i.value=!1,a.value=null,b()}}}function w(){a.value?.abort(),i.value=!1;let e=s.value[s.value.length-1];e?.isStreaming&&S(e.id,{isStreaming:!1}),a.value=null}return n.value.length===0?_(f().id):o.value||_(n.value[0].id),{sessions:n,activeSessionId:r,activeSession:o,messages:s,isStreaming:i,newChat:v,switchSession:_,deleteSession:y,sendMessage:C,stopStreaming:w}});export{i,c as n,a as r,_ as t};
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChatView-WnNeYrS7.js","assets/_plugin-vue_export-helper-D5N3Hfca.js","assets/chat-640V6r6N.js","assets/client-BxIiwrqC.js","assets/use-message-B8ClBznx.js","assets/ChatView-DrzZz5ex.css","assets/JobsView-BF9wWdwU.js","assets/Modal-CQVLL_Oc.js","assets/jobs-Cuol6Mqb.js","assets/JobsView-BhwwXuLt.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$t as e,Cn as t,E as n,En as r,Gn as i,Hn as a,In as o,Jn as s,Kt as c,Ln as l,On as u,Pt as d,Qn as f,Rn as p,Rt as m,S as h,Sn as g,T as _,Tn as v,Un as y,Vt as b,Wn as x,Xn as S,Xt as C,Zn as ee,Zt as w,_ as te,_t as T,b as E,bn as ne,c as re,d as D,dt as ie,en as O,er as k,ft as ae,g as oe,h as se,hn as ce,it as le,jn as ue,kn as A,ln as de,mn as j,n as M,nn as N,nr as P,nt as fe,on as pe,p as me,qn as he,r as ge,rt as _e,sn as ve,t as ye,tr as be,u as xe,un as Se,vn as F,w as Ce,x as we,y as Te,yn as I,zn as L}from"./_plugin-vue_export-helper-D5N3Hfca.js";import{_ as Ee,a as De,d as Oe,f as ke,g as Ae,h as je,i as Me,l as Ne,n as Pe,o as Fe,p as R,r as Ie,s as Le,t as Re,u as ze}from"./Modal-CQVLL_Oc.js";import{i as Be,n as Ve,t as He}from"./chat-640V6r6N.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var z=typeof document<`u`;function Ue(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function We(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ue(e.default)}var B=Object.assign;function Ge(e,t){let n={};for(let r in t){let i=t[r];n[r]=H(i)?i.map(e):e(i)}return n}var V=()=>{},H=Array.isArray;function Ke(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var qe=/#/g,Je=/&/g,Ye=/\//g,Xe=/=/g,Ze=/\?/g,Qe=/\+/g,$e=/%5B/g,et=/%5D/g,tt=/%5E/g,nt=/%60/g,rt=/%7B/g,it=/%7C/g,at=/%7D/g,ot=/%20/g;function st(e){return e==null?``:encodeURI(``+e).replace(it,`|`).replace($e,`[`).replace(et,`]`)}function ct(e){return st(e).replace(rt,`{`).replace(at,`}`).replace(tt,`^`)}function lt(e){return st(e).replace(Qe,`%2B`).replace(ot,`+`).replace(qe,`%23`).replace(Je,`%26`).replace(nt,"`").replace(rt,`{`).replace(at,`}`).replace(tt,`^`)}function ut(e){return lt(e).replace(Xe,`%3D`)}function dt(e){return st(e).replace(qe,`%23`).replace(Ze,`%3F`)}function ft(e){return dt(e).replace(Ye,`%2F`)}function U(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var pt=/\/$/,mt=e=>e.replace(pt,``);function ht(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=St(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:U(o)}}function gt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function _t(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function vt(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&W(t.matched[r],n.matched[i])&&yt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function W(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bt(e[n],t[n]))return!1;return!0}function bt(e,t){return H(e)?xt(e,t):H(t)?xt(t,e):e?.valueOf()===t?.valueOf()}function xt(e,t){return H(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function St(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Ct=function(e){return e.pop=`pop`,e.push=`push`,e}({}),wt=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Tt(e){if(!e)if(z){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),mt(e)}var Et=/^[^#]+#/;function Dt(e,t){return e.replace(Et,`#`)+t}function Ot(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var kt=()=>({left:window.scrollX,top:window.scrollY});function At(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ot(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function jt(e,t){return(history.state?history.state.position-t:-1)+e}var Mt=new Map;function Nt(e,t){Mt.set(e,t)}function Pt(e){let t=Mt.get(e);return Mt.delete(e),t}function Ft(e){return typeof e==`string`||e&&typeof e==`object`}function It(e){return typeof e==`string`||typeof e==`symbol`}var K=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}({}),Lt=Symbol(``);K.MATCHER_NOT_FOUND,K.NAVIGATION_GUARD_REDIRECT,K.NAVIGATION_ABORTED,K.NAVIGATION_CANCELLED,K.NAVIGATION_DUPLICATED;function q(e,t){return B(Error(),{type:e,[Lt]:!0},t)}function J(e,t){return e instanceof Error&&Lt in e&&(t==null||!!(e.type&t))}function Rt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Qe,` `),i=r.indexOf(`=`),a=U(i<0?r:r.slice(0,i)),o=i<0?null:U(r.slice(i+1));if(a in t){let e=t[a];H(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function zt(e){let t=``;for(let n in e){let r=e[n];if(n=ut(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(H(r)?r.map(e=>e&<(e)):[r&<(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Bt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=H(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Vt=Symbol(``),Ht=Symbol(``),Ut=Symbol(``),Wt=Symbol(``),Gt=Symbol(``);function Kt(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Y(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(q(K.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ft(e)?c(q(K.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function qt(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Ue(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Y(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=We(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Y(c,n,r,o,e,i)()}))}}return a}function Jt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>W(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>W(e,s))||i.push(s))}return[n,r,i]}var Yt=()=>location.protocol+`//`+location.host;function Xt(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),_t(n,``)}return _t(n,e)+r+i}function Zt(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Xt(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Ct.pop,direction:u?u>0?wt.forward:wt.back:wt.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(B({},e.state,{scroll:kt()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Qt(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?kt():null}}function $t(e){let{history:t,location:n}=window,r={value:Xt(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Yt()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,B({},t.state,Qt(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=B({},i.value,t.state,{forward:e,scroll:kt()});a(o.current,o,!0),a(e,B({},Qt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function en(e){e=Tt(e);let t=$t(e),n=Zt(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=B({location:``,base:e,go:r,createHref:Dt.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function tn(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),en(e)}var X=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Z=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}(Z||{}),nn={type:X.Static,value:``},rn=/[a-zA-Z0-9_]/;function an(e){if(!e)return[[]];if(e===`/`)return[[nn]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Z.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Z.Static?a.push({type:X.Static,value:l}):n===Z.Param||n===Z.ParamRegExp||n===Z.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:X.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Z.ParamRegExp){r=n,n=Z.EscapeNext;continue}switch(n){case Z.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Z.Param):f();break;case Z.EscapeNext:f(),n=r;break;case Z.Param:c===`(`?n=Z.ParamRegExp:rn.test(c)?f():(d(),n=Z.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Z.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Z.ParamRegExpEnd:u+=c;break;case Z.ParamRegExpEnd:d(),n=Z.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Z.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var on=`[^/]+?`,sn={sensitive:!1,strict:!1,start:!0,end:!0},Q=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}(Q||{}),cn=/[.+*?^${}()[\]/\\]/g;function ln(e,t){let n=B({},sn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Q.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Q.Segment+(n.sensitive?Q.BonusCaseSensitive:0);if(o.type===X.Static)r||(i+=`/`),i+=o.value.replace(cn,`\\$&`),s+=Q.Static;else if(o.type===X.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||on;if(u!==on){s+=Q.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Q.Dynamic,c&&(s+=Q.BonusOptional),n&&(s+=Q.BonusRepeatable),u===`.*`&&(s+=Q.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Q.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===X.Static)n+=e.value;else if(e.type===X.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(H(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=H(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function un(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Q.Static+Q.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Q.Static+Q.Segment?1:-1:0}function dn(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=un(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(fn(r))return 1;if(fn(i))return-1}return i.length-r.length}function fn(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var pn={strict:!1,end:!0,sensitive:!1};function mn(e,t,n){let r=B(ln(an(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function hn(e,t){let n=[],r=new Map;t=Ke(pn,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=_n(e);s.aliasOf=r&&r.record;let l=Ke(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(_n(B({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=mn(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!yn(d)&&o(e.name)),Cn(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:V}function o(e){if(It(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=xn(e,n);n.splice(t,0,e),e.record.name&&!yn(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw q(K.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=B(gn(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&gn(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw q(K.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=B({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:bn(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function gn(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function _n(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:vn(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 vn(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function yn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bn(e){return e.reduce((e,t)=>B(e,t.meta),{})}function xn(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;dn(e,t[i])<0?r=i:n=i+1}let i=Sn(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Sn(e){let t=e;for(;t=t.parent;)if(Cn(t)&&dn(e,t)===0)return t}function Cn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wn(e){let t=A(Ut),n=A(Wt),r=F(()=>{let n=k(e.to);return t.resolve(n)}),i=F(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(W.bind(null,i));if(o>-1)return o;let s=kn(e[t-2]);return t>1&&kn(i)===s&&a[a.length-1].path!==s?a.findIndex(W.bind(null,e[t-2])):o}),a=F(()=>i.value>-1&&On(n.params,r.value.params)),o=F(()=>i.value>-1&&i.value===n.matched.length-1&&yt(n.params,r.value.params));function s(n={}){if(Dn(n)){let n=t[k(e.replace)?`replace`:`push`](k(e.to)).catch(V);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Tn(e){return e.length===1?e[0]:e}var En=r({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:wn,setup(e,{slots:t}){let n=s(wn(e)),{options:r}=A(Ut),i=F(()=>({[An(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[An(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Tn(t.default(n));return e.custom?r:u(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Dn(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function On(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!H(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function kn(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var An=(e,t,n)=>e??t??n,jn=r({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=A(Gt),i=F(()=>e.route||r.value),a=A(Ht,0),o=F(()=>{let e=k(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=F(()=>i.value.matched[o.value]);L(Ht,F(()=>o.value+1)),L(Vt,s),L(Gt,i);let c=S();return y(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!W(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Mn(n.default,{Component:l,route:r});let d=o.props[a],f=u(l,B({},d?d===!0?r.params:typeof d==`function`?d(r):d:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Mn(n.default,{Component:f,route:r})||f}}});function Mn(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Nn=jn;function Pn(e){let t=hn(e.routes,e),n=e.parseQuery||Rt,r=e.stringifyQuery||zt,i=e.history,a=Kt(),o=Kt(),s=Kt(),c=f(G),l=G;z&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ge.bind(null,e=>``+e),d=Ge.bind(null,ft),p=Ge.bind(null,U);function m(e,n){let r,i;return It(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function h(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function g(){return t.getRoutes().map(e=>e.record)}function _(e){return!!t.getRecordMatcher(e)}function v(e,a){if(a=B({},a||c.value),typeof e==`string`){let r=ht(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return B(r,o,{params:p(o.params),hash:U(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=B({},e,{path:ht(n,e.path,a.path).path});else{let t=B({},e.params);for(let e in t)t[e]??delete t[e];o=B({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(p(s.params));let f=gt(r,B({},e,{hash:ct(l),path:s.path})),m=i.createHref(f);return B({fullPath:f,hash:l,query:r===zt?Bt(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function y(e){return typeof e==`string`?ht(n,e,c.value.path):B({},e)}function b(e,t){if(l!==e)return q(K.NAVIGATION_CANCELLED,{from:t,to:e})}function x(e){return w(e)}function S(e){return x(B(y(e),{replace:!0}))}function C(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=y(i):{path:i},i.params={}),B({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function w(e,t){let n=l=v(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=C(n,i);if(u)return w(B(y(u),{state:typeof u==`object`?B({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&vt(r,i,n)&&(f=q(K.NAVIGATION_DUPLICATED,{to:d,from:i}),A(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>J(e)?J(e,K.NAVIGATION_GUARD_REDIRECT)?e:le(e):se(e,d,i)).then(e=>{if(e){if(J(e,K.NAVIGATION_GUARD_REDIRECT))return w(B({replace:s},y(e.to),{state:typeof e.to==`object`?B({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return ne(d,i,e),e})}function te(e,t){let n=b(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=M.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=Jt(e,t);n=qt(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Y(r,e,t))});let c=te.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of a.list())n.push(Y(r,e,t));return n.push(c),P(n)}).then(()=>{n=qt(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Y(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(H(r.beforeEnter))for(let i of r.beforeEnter)n.push(Y(i,e,t));else n.push(Y(r.beforeEnter,e,t));return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=qt(s,`beforeRouteEnter`,e,t,T),n.push(c),P(n))).then(()=>{n=[];for(let r of o.list())n.push(Y(r,e,t));return n.push(c),P(n)}).catch(e=>J(e,K.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function re(e,t,n,r,a){let o=b(e,t);if(o)return o;let s=t===G,l=z?history.state:{};n&&(r||s?i.replace(e.fullPath,B({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,A(e,t,n,s),le()}let D;function ie(){D||=i.listen((e,t,n)=>{if(!N.listening)return;let r=v(e),a=C(r,N.currentRoute.value);if(a){w(B(a,{replace:!0,force:!0}),r).catch(V);return}l=r;let o=c.value;z&&Nt(jt(o.fullPath,n.delta),kt()),E(r,o).catch(e=>J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_CANCELLED)?e:J(e,K.NAVIGATION_GUARD_REDIRECT)?(w(B(y(e.to),{force:!0}),r).then(e=>{J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Ct.pop&&i.go(-1,!1)}).catch(V),Promise.reject()):(n.delta&&i.go(-n.delta,!1),se(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!J(e,K.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Ct.pop&&J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),ne(r,o,e)}).catch(V)})}let O=Kt(),ae=Kt(),oe;function se(e,t,n){le(e);let r=ae.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ce(){return oe&&c.value!==G?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function le(e){return oe||(oe=!e,ie(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function A(t,n,r,i){let{scrollBehavior:a}=e;if(!z||!a)return Promise.resolve();let o=!r&&Pt(jt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return ue().then(()=>a(t,n,o)).then(e=>e&&At(e)).catch(e=>se(e,t,n))}let de=e=>i.go(e),j,M=new Set,N={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:g,resolve:v,options:e,push:x,replace:S,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ae.add,isReady:ce,install(e){e.component(`RouterLink`,En),e.component(`RouterView`,Nn),e.config.globalProperties.$router=N,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>k(c)}),z&&!j&&c.value===G&&(j=!0,x(i.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Ut,N),e.provide(Wt,ee(t)),e.provide(Gt,c);let n=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(l=G,D&&D(),D=null,c.value=G,j=!1,oe=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return N}function Fn(){return A(Ut)}function In(e){return A(Wt)}var Ln=Pn({history:tn(),routes:[{path:`/`,name:`chat`,component:()=>Ee(()=>import(`./ChatView-WnNeYrS7.js`),__vite__mapDeps([0,1,2,3,4,5]))},{path:`/jobs`,name:`jobs`,component:()=>Ee(()=>import(`./JobsView-BF9wWdwU.js`),__vite__mapDeps([6,1,7,4,8,0,2,3,5,9]))},{path:`/settings`,name:`settings`,redirect:`/`}]}),{cubicBezierEaseInOut:$,cubicBezierEaseOut:Rn,cubicBezierEaseIn:zn}=Ce;function Bn({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[C(`&.fade-in-height-expand-transition-${l}-from,
|
|
3
|
-
&.fade-in-height-expand-transition-${c}-to`,Object.assign(Object.assign({},a),{opacity:1})),C(`&.fade-in-height-expand-transition-${l}-to,
|
|
4
|
-
&.fade-in-height-expand-transition-${c}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:`0 !important`,marginBottom:`0 !important`,paddingTop:i?`0 !important`:void 0,paddingBottom:i?`0 !important`:void 0})),C(`&.fade-in-height-expand-transition-${l}-active`,`
|
|
5
|
-
overflow: ${e};
|
|
6
|
-
transition:
|
|
7
|
-
max-height ${t} ${$} ${r},
|
|
8
|
-
opacity ${t} ${Rn} ${r},
|
|
9
|
-
margin-top ${t} ${$} ${r},
|
|
10
|
-
margin-bottom ${t} ${$} ${r},
|
|
11
|
-
padding-top ${t} ${$} ${r},
|
|
12
|
-
padding-bottom ${t} ${$} ${r}
|
|
13
|
-
${n?`,${n}`:``}
|
|
14
|
-
`),C(`&.fade-in-height-expand-transition-${c}-active`,`
|
|
15
|
-
overflow: ${e};
|
|
16
|
-
transition:
|
|
17
|
-
max-height ${t} ${$},
|
|
18
|
-
opacity ${t} ${zn},
|
|
19
|
-
margin-top ${t} ${$},
|
|
20
|
-
margin-bottom ${t} ${$},
|
|
21
|
-
padding-top ${t} ${$},
|
|
22
|
-
padding-bottom ${t} ${$}
|
|
23
|
-
${n?`,${n}`:``}
|
|
24
|
-
`)]}var Vn=r({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(T(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=A(le,null),r=F(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),i=F(()=>{let{themeOverrides:r}=e;if(r!==null){if(r===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?r:n({},e,r)}}}),a=m(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),o=m(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),s=F(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),c=F(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),l=F(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),u=F(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=he(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=he(e))});return i}),d=F(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,p=e.preflightStyleDisabled||t?.preflightStyleDisabled,h=e.styleMountTarget||t?.styleMountTarget;return L(le,{mergedThemeHashRef:F(()=>{let{value:e}=r,{value:t}=i,n=t&&Object.keys(t).length!==0,a=e?.name;return a?n?`${a}-${pe(JSON.stringify(i.value))}`:a:n?pe(JSON.stringify(i.value)):``}),mergedBreakpointsRef:d,mergedRtlRef:u,mergedIconsRef:s,mergedComponentPropsRef:c,mergedBorderedRef:o,mergedNamespaceRef:a,mergedClsPrefixRef:l,mergedLocaleRef:F(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:F(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:F(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:F(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:r,mergedThemeOverridesRef:i,inlineThemeDisabled:f||!1,preflightStyleDisabled:p||!1,styleMountTarget:h}),{mergedClsPrefix:l,mergedBordered:o,mergedNamespace:a,mergedTheme:r,mergedThemeOverrides:i}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):u(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),Hn=Object.assign(Object.assign({},Me),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},zIndex:Number,onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]}),Un=r({name:`DialogEnvironment`,props:Object.assign(Object.assign({},Hn),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){let t=S(!0);function n(){let{onInternalAfterLeave:t,internalKey:n,onAfterLeave:r}=e;t&&t(n),r&&r()}function r(t){let{onPositiveClick:n}=e;n?Promise.resolve(n(t)).then(e=>{e!==!1&&c()}):c()}function i(t){let{onNegativeClick:n}=e;n?Promise.resolve(n(t)).then(e=>{e!==!1&&c()}):c()}function a(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&c()}):c()}function o(t){let{onMaskClick:n,maskClosable:r}=e;n&&(n(t),r&&c())}function s(){let{onEsc:t}=e;t&&t()}function c(){t.value=!1}function l(e){t.value=e}return{show:t,hide:c,handleUpdateShow:l,handleAfterLeave:n,handleCloseClick:a,handleNegativeClick:i,handlePositiveClick:r,handleMaskClick:o,handleEsc:s}},render(){let{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:i,handleMaskClick:a,handleEsc:o,to:s,zIndex:c,maskClosable:l,show:d}=this;return u(Re,{show:d,onUpdateShow:t,onMaskClick:a,onEsc:o,to:s,zIndex:c,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:i,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:t})=>u(Pe,Object.assign({},ae(this.$props,Ie),{titleClass:be([this.titleClass,t]),style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Wn=r({name:`DialogProvider`,props:{injectionKey:String,to:[String,Object]},setup(){let e=S([]),t={};function n(n={}){let r=b(),i=s(Object.assign(Object.assign({},n),{key:r,destroy:()=>{var e;(e=t[`n-dialog-${r}`])==null||e.hide()}}));return e.value.push(i),i}let r=[`info`,`success`,`warning`,`error`].map(e=>t=>n(Object.assign(Object.assign({},t),{type:e})));function i(t){let{value:n}=e;n.splice(n.findIndex(e=>e.key===t),1)}function a(){Object.values(t).forEach(e=>{e?.hide()})}let o={create:n,destroyAll:a,info:r[0],success:r[1],warning:r[2],error:r[3]};return L(De,o),L(Fe,{clickedRef:je(64),clickedPositionRef:Ae()}),L(Le,e),Object.assign(Object.assign({},o),{dialogList:e,dialogInstRefs:t,handleAfterLeave:i})},render(){var e;return u(j,null,[this.dialogList.map(e=>u(Un,Be(e,[`destroy`,`style`],{internalStyle:e.style,to:this.to,ref:t=>{t===null?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave}))),(e=this.$slots).default?.call(e)])}}),Gn={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function Kn(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},Gn),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var qn={name:`Message`,common:D,self:Kn},Jn={icon:Function,type:{type:String,default:`info`},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function},Yn=C([w(`message-wrapper`,`
|
|
25
|
-
margin: var(--n-margin);
|
|
26
|
-
z-index: 0;
|
|
27
|
-
transform-origin: top center;
|
|
28
|
-
display: flex;
|
|
29
|
-
`,[Bn({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),w(`message`,`
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
transition:
|
|
34
|
-
color .3s var(--n-bezier),
|
|
35
|
-
box-shadow .3s var(--n-bezier),
|
|
36
|
-
background-color .3s var(--n-bezier),
|
|
37
|
-
opacity .3s var(--n-bezier),
|
|
38
|
-
transform .3s var(--n-bezier),
|
|
39
|
-
margin-bottom .3s var(--n-bezier);
|
|
40
|
-
padding: var(--n-padding);
|
|
41
|
-
border-radius: var(--n-border-radius);
|
|
42
|
-
border: var(--n-border);
|
|
43
|
-
flex-wrap: nowrap;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
max-width: var(--n-max-width);
|
|
46
|
-
color: var(--n-text-color);
|
|
47
|
-
background-color: var(--n-color);
|
|
48
|
-
box-shadow: var(--n-box-shadow);
|
|
49
|
-
`,[e(`content`,`
|
|
50
|
-
display: inline-block;
|
|
51
|
-
line-height: var(--n-line-height);
|
|
52
|
-
font-size: var(--n-font-size);
|
|
53
|
-
`),e(`icon`,`
|
|
54
|
-
position: relative;
|
|
55
|
-
margin: var(--n-icon-margin);
|
|
56
|
-
height: var(--n-icon-size);
|
|
57
|
-
width: var(--n-icon-size);
|
|
58
|
-
font-size: var(--n-icon-size);
|
|
59
|
-
flex-shrink: 0;
|
|
60
|
-
`,[[`default`,`info`,`success`,`warning`,`error`,`loading`].map(e=>O(`${e}-type`,[C(`> *`,`
|
|
61
|
-
color: var(--n-icon-color-${e});
|
|
62
|
-
transition: color .3s var(--n-bezier);
|
|
63
|
-
`)])),C(`> *`,`
|
|
64
|
-
position: absolute;
|
|
65
|
-
left: 0;
|
|
66
|
-
top: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
bottom: 0;
|
|
69
|
-
`,[oe()])]),e(`close`,`
|
|
70
|
-
margin: var(--n-close-margin);
|
|
71
|
-
transition:
|
|
72
|
-
background-color .3s var(--n-bezier),
|
|
73
|
-
color .3s var(--n-bezier);
|
|
74
|
-
flex-shrink: 0;
|
|
75
|
-
`,[C(`&:hover`,`
|
|
76
|
-
color: var(--n-close-icon-color-hover);
|
|
77
|
-
`),C(`&:active`,`
|
|
78
|
-
color: var(--n-close-icon-color-pressed);
|
|
79
|
-
`)])]),w(`message-container`,`
|
|
80
|
-
z-index: 6000;
|
|
81
|
-
position: fixed;
|
|
82
|
-
height: 0;
|
|
83
|
-
overflow: visible;
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
align-items: center;
|
|
87
|
-
`,[O(`top`,`
|
|
88
|
-
top: 12px;
|
|
89
|
-
left: 0;
|
|
90
|
-
right: 0;
|
|
91
|
-
`),O(`top-left`,`
|
|
92
|
-
top: 12px;
|
|
93
|
-
left: 12px;
|
|
94
|
-
right: 0;
|
|
95
|
-
align-items: flex-start;
|
|
96
|
-
`),O(`top-right`,`
|
|
97
|
-
top: 12px;
|
|
98
|
-
left: 0;
|
|
99
|
-
right: 12px;
|
|
100
|
-
align-items: flex-end;
|
|
101
|
-
`),O(`bottom`,`
|
|
102
|
-
bottom: 4px;
|
|
103
|
-
left: 0;
|
|
104
|
-
right: 0;
|
|
105
|
-
justify-content: flex-end;
|
|
106
|
-
`),O(`bottom-left`,`
|
|
107
|
-
bottom: 4px;
|
|
108
|
-
left: 12px;
|
|
109
|
-
right: 0;
|
|
110
|
-
justify-content: flex-end;
|
|
111
|
-
align-items: flex-start;
|
|
112
|
-
`),O(`bottom-right`,`
|
|
113
|
-
bottom: 4px;
|
|
114
|
-
left: 0;
|
|
115
|
-
right: 12px;
|
|
116
|
-
justify-content: flex-end;
|
|
117
|
-
align-items: flex-end;
|
|
118
|
-
`)])]),Xn={info:()=>u(Oe,null),success:()=>u(ze,null),warning:()=>u(te,null),error:()=>u(ke,null),default:()=>null},Zn=r({name:`Message`,props:Object.assign(Object.assign({},Jn),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=_e(e),{props:r,mergedClsPrefixRef:i}=A(ge),a=_(`Message`,n,i),o=h(`Message`,`-message`,Yn,qn,r,i),s=F(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[N(`textColor`,t)]:S,[N(`boxShadow`,t)]:C,[N(`color`,t)]:ee,[N(`closeColorHover`,t)]:w,[N(`closeColorPressed`,t)]:te,[N(`closeIconColor`,t)]:T,[N(`closeIconColorPressed`,t)]:E,[N(`closeIconColorHover`,t)]:ne}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":ee,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":w,"--n-close-color-pressed":te,"--n-close-icon-color":T,"--n-close-icon-color-pressed":E,"--n-close-icon-color-hover":ne,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?fe(`message`,F(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:d}=this;s?.();let f;return u(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):u(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(f=Qn(c,t,i,this.spinProps))&&d?u(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},u(Te,null,{default:()=>f})):null,u(`div`,{class:`${i}-message__content`},R(r)),n?u(Ne,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function Qn(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?u(me,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):Xn[t]();return e?u(E,{clsPrefix:n,key:t},{default:()=>e}):null}}var $n=r({name:`MessageEnvironment`,props:Object.assign(Object.assign({},Jn),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=S(!0);o(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(s,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function s(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function c(){let{onClose:t}=e;t&&t(),s()}function l(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function u(){s()}return{show:n,hide:s,handleClose:c,handleAfterLeave:l,handleMouseleave:a,handleMouseenter:i,deactivate:u}},render(){return u(se,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(Zn,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),er=r({name:`MessageProvider`,props:Object.assign(Object.assign({},h.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=_e(e),n=S([]),r=S({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:c};L(ge,{props:e,mergedClsPrefixRef:t}),L(M,i);function a(t,i){let a=b(),o=s(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:c}=e;return c&&n.value.length>=c&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function c(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return u(j,null,(e=this.$slots).default?.call(e),this.messageList.length?u(ce,{to:this.to??`body`},u(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>u($n,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},Be(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),tr={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function nr(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},tr),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}var rr=we({name:`Notification`,common:D,peers:{Scrollbar:xe},self:nr}),ir=d(`n-notification-provider`),ar=r({name:`NotificationContainer`,props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){let{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=A(ir),r=S(null);return x(()=>{var e,t;n.value>0?(e=r?.value)==null||e.classList.add(`transitioning`):(t=r?.value)==null||t.classList.remove(`transitioning`)}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){let{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:i}=this;return u(`div`,{ref:`selfRef`,class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${i}`]},t?u(re,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:`hidden`}},e):e)}}),or={info:()=>u(Oe,null),success:()=>u(ze,null),warning:()=>u(te,null),error:()=>u(ke,null),default:()=>null},sr={closable:{type:Boolean,default:!0},type:{type:String,default:`default`},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},cr=ie(sr),lr=r({name:`Notification`,props:sr,setup(e){let{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=A(ir),{inlineThemeDisabled:i,mergedRtlRef:a}=_e(),o=_(`Notification`,a,t),s=F(()=>{let{type:t}=e,{self:{color:r,textColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:s,headerTextColor:l,descriptionTextColor:u,actionTextColor:d,borderRadius:f,headerFontWeight:p,boxShadow:m,lineHeight:h,fontSize:g,closeMargin:_,closeSize:v,width:y,padding:b,closeIconSize:x,closeBorderRadius:S,closeColorHover:C,closeColorPressed:ee,titleFontSize:w,metaFontSize:te,descriptionFontSize:T,[N(`iconColor`,t)]:E},common:{cubicBezierEaseOut:ne,cubicBezierEaseIn:re,cubicBezierEaseInOut:D}}=n.value,{left:ie,right:O,top:k,bottom:ae}=c(b);return{"--n-color":r,"--n-font-size":g,"--n-text-color":i,"--n-description-text-color":u,"--n-action-text-color":d,"--n-title-text-color":l,"--n-title-font-weight":p,"--n-bezier":D,"--n-bezier-ease-out":ne,"--n-bezier-ease-in":re,"--n-border-radius":f,"--n-box-shadow":m,"--n-close-border-radius":S,"--n-close-color-hover":C,"--n-close-color-pressed":ee,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":s,"--n-line-height":h,"--n-icon-color":E,"--n-close-margin":_,"--n-close-size":v,"--n-close-icon-size":x,"--n-width":y,"--n-padding-left":ie,"--n-padding-right":O,"--n-padding-top":k,"--n-padding-bottom":ae,"--n-title-font-size":w,"--n-meta-font-size":te,"--n-description-font-size":T}}),l=i?fe(`notification`,F(()=>e.type[0]),s,r):void 0;return{mergedClsPrefix:t,showAvatar:F(()=>e.avatar||e.type!==`default`),handleCloseClick(){e.onClose()},rtlEnabled:o,cssVars:i?void 0:s,themeClass:l?.themeClass,onRender:l?.onRender}},render(){var e;let{mergedClsPrefix:t}=this;return(e=this.onRender)==null||e.call(this),u(`div`,{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u(`div`,{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u(`div`,{class:`${t}-notification__avatar`},this.avatar?R(this.avatar):this.type===`default`?null:u(E,{clsPrefix:t},{default:()=>or[this.type]()})):null,this.closable?u(Ne,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u(`div`,{ref:`bodyRef`,class:`${t}-notification-main`},this.title?u(`div`,{class:`${t}-notification-main__header`},R(this.title)):null,this.description?u(`div`,{class:`${t}-notification-main__description`},R(this.description)):null,this.content?u(`pre`,{class:`${t}-notification-main__content`},R(this.content)):null,this.meta||this.action?u(`div`,{class:`${t}-notification-main-footer`},this.meta?u(`div`,{class:`${t}-notification-main-footer__meta`},R(this.meta)):null,this.action?u(`div`,{class:`${t}-notification-main-footer__action`},R(this.action)):null):null)))}}),ur=Object.assign(Object.assign({},sr),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),dr=r({name:`NotificationEnvironment`,props:Object.assign(Object.assign({},ur),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){let{wipTransitionCountRef:t}=A(ir),n=S(!0),r=null;function i(){n.value=!1,r&&window.clearTimeout(r)}function a(e){t.value++,ue(()=>{e.style.height=`${e.offsetHeight}px`,e.style.maxHeight=`0`,e.style.transition=`none`,e.offsetHeight,e.style.transition=``,e.style.maxHeight=e.style.height})}function s(n){t.value--,n.style.height=``,n.style.maxHeight=``;let{onAfterEnter:r,onAfterShow:i}=e;r&&r(),i&&i()}function c(e){t.value++,e.style.maxHeight=`${e.offsetHeight}px`,e.style.height=`${e.offsetHeight}px`,e.offsetHeight}function l(t){let{onHide:n}=e;n&&n(),t.style.maxHeight=`0`,t.offsetHeight}function u(){t.value--;let{onAfterLeave:n,onInternalAfterLeave:r,onAfterHide:i,internalKey:a}=e;n&&n(),r(a),i&&i()}function d(){let{duration:t}=e;t&&(r=window.setTimeout(i,t))}function f(e){e.currentTarget===e.target&&r!==null&&(window.clearTimeout(r),r=null)}function p(e){e.currentTarget===e.target&&d()}function m(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&i()}):i()}return o(()=>{e.duration&&(r=window.setTimeout(i,e.duration))}),{show:n,hide:i,handleClose:m,handleAfterLeave:u,handleLeave:l,handleBeforeLeave:c,handleAfterEnter:s,handleBeforeEnter:a,handleMouseenter:f,handleMouseleave:p}},render(){return u(de,{name:`notification-transition`,appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(lr,Object.assign({},ae(this.$props,cr),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),fr=C([w(`notification-container`,`
|
|
119
|
-
z-index: 4000;
|
|
120
|
-
position: fixed;
|
|
121
|
-
overflow: visible;
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-direction: column;
|
|
124
|
-
align-items: flex-end;
|
|
125
|
-
`,[C(`>`,[w(`scrollbar`,`
|
|
126
|
-
width: initial;
|
|
127
|
-
overflow: visible;
|
|
128
|
-
height: -moz-fit-content !important;
|
|
129
|
-
height: fit-content !important;
|
|
130
|
-
max-height: 100vh !important;
|
|
131
|
-
`,[C(`>`,[w(`scrollbar-container`,`
|
|
132
|
-
height: -moz-fit-content !important;
|
|
133
|
-
height: fit-content !important;
|
|
134
|
-
max-height: 100vh !important;
|
|
135
|
-
`,[w(`scrollbar-content`,`
|
|
136
|
-
padding-top: 12px;
|
|
137
|
-
padding-bottom: 33px;
|
|
138
|
-
`)])])])]),O(`top, top-right, top-left`,`
|
|
139
|
-
top: 12px;
|
|
140
|
-
`,[C(`&.transitioning >`,[w(`scrollbar`,[C(`>`,[w(`scrollbar-container`,`
|
|
141
|
-
min-height: 100vh !important;
|
|
142
|
-
`)])])])]),O(`bottom, bottom-right, bottom-left`,`
|
|
143
|
-
bottom: 12px;
|
|
144
|
-
`,[C(`>`,[w(`scrollbar`,[C(`>`,[w(`scrollbar-container`,[w(`scrollbar-content`,`
|
|
145
|
-
padding-bottom: 12px;
|
|
146
|
-
`)])])])]),w(`notification-wrapper`,`
|
|
147
|
-
display: flex;
|
|
148
|
-
align-items: flex-end;
|
|
149
|
-
margin-bottom: 0;
|
|
150
|
-
margin-top: 12px;
|
|
151
|
-
`)]),O(`top, bottom`,`
|
|
152
|
-
left: 50%;
|
|
153
|
-
transform: translateX(-50%);
|
|
154
|
-
`,[w(`notification-wrapper`,[C(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
155
|
-
transform: scale(0.85);
|
|
156
|
-
`),C(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
157
|
-
transform: scale(1);
|
|
158
|
-
`)])]),O(`top`,[w(`notification-wrapper`,`
|
|
159
|
-
transform-origin: top center;
|
|
160
|
-
`)]),O(`bottom`,[w(`notification-wrapper`,`
|
|
161
|
-
transform-origin: bottom center;
|
|
162
|
-
`)]),O(`top-right, bottom-right`,[w(`notification`,`
|
|
163
|
-
margin-left: 28px;
|
|
164
|
-
margin-right: 16px;
|
|
165
|
-
`)]),O(`top-left, bottom-left`,[w(`notification`,`
|
|
166
|
-
margin-left: 16px;
|
|
167
|
-
margin-right: 28px;
|
|
168
|
-
`)]),O(`top-right`,`
|
|
169
|
-
right: 0;
|
|
170
|
-
`,[pr(`top-right`)]),O(`top-left`,`
|
|
171
|
-
left: 0;
|
|
172
|
-
`,[pr(`top-left`)]),O(`bottom-right`,`
|
|
173
|
-
right: 0;
|
|
174
|
-
`,[pr(`bottom-right`)]),O(`bottom-left`,`
|
|
175
|
-
left: 0;
|
|
176
|
-
`,[pr(`bottom-left`)]),O(`scrollable`,[O(`top-right`,`
|
|
177
|
-
top: 0;
|
|
178
|
-
`),O(`top-left`,`
|
|
179
|
-
top: 0;
|
|
180
|
-
`),O(`bottom-right`,`
|
|
181
|
-
bottom: 0;
|
|
182
|
-
`),O(`bottom-left`,`
|
|
183
|
-
bottom: 0;
|
|
184
|
-
`)]),w(`notification-wrapper`,`
|
|
185
|
-
margin-bottom: 12px;
|
|
186
|
-
`,[C(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
187
|
-
opacity: 0;
|
|
188
|
-
margin-top: 0 !important;
|
|
189
|
-
margin-bottom: 0 !important;
|
|
190
|
-
`),C(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
191
|
-
opacity: 1;
|
|
192
|
-
`),C(`&.notification-transition-leave-active`,`
|
|
193
|
-
transition:
|
|
194
|
-
background-color .3s var(--n-bezier),
|
|
195
|
-
color .3s var(--n-bezier),
|
|
196
|
-
opacity .3s var(--n-bezier),
|
|
197
|
-
transform .3s var(--n-bezier-ease-in),
|
|
198
|
-
max-height .3s var(--n-bezier),
|
|
199
|
-
margin-top .3s linear,
|
|
200
|
-
margin-bottom .3s linear,
|
|
201
|
-
box-shadow .3s var(--n-bezier);
|
|
202
|
-
`),C(`&.notification-transition-enter-active`,`
|
|
203
|
-
transition:
|
|
204
|
-
background-color .3s var(--n-bezier),
|
|
205
|
-
color .3s var(--n-bezier),
|
|
206
|
-
opacity .3s var(--n-bezier),
|
|
207
|
-
transform .3s var(--n-bezier-ease-out),
|
|
208
|
-
max-height .3s var(--n-bezier),
|
|
209
|
-
margin-top .3s linear,
|
|
210
|
-
margin-bottom .3s linear,
|
|
211
|
-
box-shadow .3s var(--n-bezier);
|
|
212
|
-
`)]),w(`notification`,`
|
|
213
|
-
background-color: var(--n-color);
|
|
214
|
-
color: var(--n-text-color);
|
|
215
|
-
transition:
|
|
216
|
-
background-color .3s var(--n-bezier),
|
|
217
|
-
color .3s var(--n-bezier),
|
|
218
|
-
opacity .3s var(--n-bezier),
|
|
219
|
-
box-shadow .3s var(--n-bezier);
|
|
220
|
-
font-family: inherit;
|
|
221
|
-
font-size: var(--n-font-size);
|
|
222
|
-
font-weight: 400;
|
|
223
|
-
position: relative;
|
|
224
|
-
display: flex;
|
|
225
|
-
overflow: hidden;
|
|
226
|
-
flex-shrink: 0;
|
|
227
|
-
padding-left: var(--n-padding-left);
|
|
228
|
-
padding-right: var(--n-padding-right);
|
|
229
|
-
width: var(--n-width);
|
|
230
|
-
max-width: calc(100vw - 16px - 16px);
|
|
231
|
-
border-radius: var(--n-border-radius);
|
|
232
|
-
box-shadow: var(--n-box-shadow);
|
|
233
|
-
box-sizing: border-box;
|
|
234
|
-
opacity: 1;
|
|
235
|
-
`,[e(`avatar`,[w(`icon`,`
|
|
236
|
-
color: var(--n-icon-color);
|
|
237
|
-
`),w(`base-icon`,`
|
|
238
|
-
color: var(--n-icon-color);
|
|
239
|
-
`)]),O(`show-avatar`,[w(`notification-main`,`
|
|
240
|
-
margin-left: 40px;
|
|
241
|
-
width: calc(100% - 40px);
|
|
242
|
-
`)]),O(`closable`,[w(`notification-main`,[C(`> *:first-child`,`
|
|
243
|
-
padding-right: 20px;
|
|
244
|
-
`)]),e(`close`,`
|
|
245
|
-
position: absolute;
|
|
246
|
-
top: 0;
|
|
247
|
-
right: 0;
|
|
248
|
-
margin: var(--n-close-margin);
|
|
249
|
-
transition:
|
|
250
|
-
background-color .3s var(--n-bezier),
|
|
251
|
-
color .3s var(--n-bezier);
|
|
252
|
-
`)]),e(`avatar`,`
|
|
253
|
-
position: absolute;
|
|
254
|
-
top: var(--n-padding-top);
|
|
255
|
-
left: var(--n-padding-left);
|
|
256
|
-
width: 28px;
|
|
257
|
-
height: 28px;
|
|
258
|
-
font-size: 28px;
|
|
259
|
-
display: flex;
|
|
260
|
-
align-items: center;
|
|
261
|
-
justify-content: center;
|
|
262
|
-
`,[w(`icon`,`transition: color .3s var(--n-bezier);`)]),w(`notification-main`,`
|
|
263
|
-
padding-top: var(--n-padding-top);
|
|
264
|
-
padding-bottom: var(--n-padding-bottom);
|
|
265
|
-
box-sizing: border-box;
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: column;
|
|
268
|
-
margin-left: 8px;
|
|
269
|
-
width: calc(100% - 8px);
|
|
270
|
-
`,[w(`notification-main-footer`,`
|
|
271
|
-
display: flex;
|
|
272
|
-
align-items: center;
|
|
273
|
-
justify-content: space-between;
|
|
274
|
-
margin-top: 12px;
|
|
275
|
-
`,[e(`meta`,`
|
|
276
|
-
font-size: var(--n-meta-font-size);
|
|
277
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
278
|
-
color: var(--n-description-text-color);
|
|
279
|
-
`),e(`action`,`
|
|
280
|
-
cursor: pointer;
|
|
281
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
282
|
-
color: var(--n-action-text-color);
|
|
283
|
-
`)]),e(`header`,`
|
|
284
|
-
font-weight: var(--n-title-font-weight);
|
|
285
|
-
font-size: var(--n-title-font-size);
|
|
286
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
287
|
-
color: var(--n-title-text-color);
|
|
288
|
-
`),e(`description`,`
|
|
289
|
-
margin-top: 8px;
|
|
290
|
-
font-size: var(--n-description-font-size);
|
|
291
|
-
white-space: pre-wrap;
|
|
292
|
-
word-wrap: break-word;
|
|
293
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
294
|
-
color: var(--n-description-text-color);
|
|
295
|
-
`),e(`content`,`
|
|
296
|
-
line-height: var(--n-line-height);
|
|
297
|
-
margin: 12px 0 0 0;
|
|
298
|
-
font-family: inherit;
|
|
299
|
-
white-space: pre-wrap;
|
|
300
|
-
word-wrap: break-word;
|
|
301
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
302
|
-
color: var(--n-text-color);
|
|
303
|
-
`,[C(`&:first-child`,`margin: 0;`)])])])])]);function pr(e){return w(`notification-wrapper`,[C(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
304
|
-
transform: translate(${e.split(`-`)[1]===`left`?`calc(-100%)`:`calc(100%)`}, 0);
|
|
305
|
-
`),C(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
306
|
-
transform: translate(0, 0);
|
|
307
|
-
`)])}var mr=d(`n-notification-api`),hr=r({name:`NotificationProvider`,props:Object.assign(Object.assign({},h.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:`top-right`},keepAliveOnHover:Boolean}),setup(e){let{mergedClsPrefixRef:t}=_e(e),n=S([]),r={},i=new Set;function a(t){let a=b(),o=()=>{i.add(a),r[a]&&r[a].hide()},c=s(Object.assign(Object.assign({},t),{key:a,destroy:o,hide:o,deactivate:o})),{max:l}=e;if(l&&n.value.length-i.size>=l){let e=!1,t=0;for(let a of n.value){if(!i.has(a.key)){r[a.key]&&(a.destroy(),e=!0);break}t++}e||n.value.splice(t,1)}return n.value.push(c),c}let o=[`info`,`success`,`warning`,`error`].map(e=>t=>a(Object.assign(Object.assign({},t),{type:e})));function c(e){i.delete(e),n.value.splice(n.value.findIndex(t=>t.key===e),1)}let l=h(`Notification`,`-notification`,fr,rr,e,t),u={create:a,info:o[0],success:o[1],warning:o[2],error:o[3],open:f,destroyAll:p},d=S(0);L(mr,u),L(ir,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:d});function f(e){return a(e)}function p(){Object.values(n.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:c},u)},render(){var e;let{placement:t}=this;return u(j,null,(e=this.$slots).default?.call(e),this.notificationList.length?u(ce,{to:this.to??`body`},u(ar,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&t!==`top`&&t!==`bottom`,placement:t},{default:()=>this.notificationList.map(e=>u(dr,Object.assign({ref:t=>{let n=e.key;t===null?delete this.notificationRefs[n]:this.notificationRefs[n]=t}},Be(e,[`destroy`,`hide`,`deactivate`]),{internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover})))})):null)}}),gr={common:{primaryColor:`#333333`,primaryColorHover:`#1a1a1a`,primaryColorPressed:`#000000`,primaryColorSuppl:`#333333`,bodyColor:`#fafafa`,cardColor:`#ffffff`,modalColor:`#ffffff`,popoverColor:`#ffffff`,tableColor:`#ffffff`,inputColor:`#ffffff`,actionColor:`#f0f0f0`,textColorBase:`#1a1a1a`,textColor1:`#1a1a1a`,textColor2:`#666666`,textColor3:`#999999`,dividerColor:`#e0e0e0`,borderColor:`#e0e0e0`,hoverColor:`rgba(0, 0, 0, 0.04)`,borderRadius:`8px`,borderRadiusSmall:`6px`,fontSize:`14px`,fontSizeMedium:`14px`,heightMedium:`36px`,fontFamily:`Inter, system-ui, -apple-system, sans-serif`,fontFamilyMono:`JetBrains Mono, Fira Code, Consolas, monospace`},Layout:{color:`#fafafa`,siderColor:`#f5f5f5`,headerColor:`#fafafa`},Menu:{itemTextColorActive:`#1a1a1a`,itemTextColorActiveHover:`#1a1a1a`,itemTextColorChildActive:`#1a1a1a`,itemIconColorActive:`#1a1a1a`,itemIconColorActiveHover:`#000000`,itemColorActive:`rgba(0, 0, 0, 0.06)`,itemColorActiveHover:`rgba(0, 0, 0, 0.1)`,arrowColorActive:`#1a1a1a`},Button:{textColorPrimary:`#ffffff`,colorPrimary:`#333333`,colorHoverPrimary:`#1a1a1a`,colorPressedPrimary:`#000000`},Input:{color:`#ffffff`,colorFocus:`#ffffff`,border:`1px solid #e0e0e0`,borderHover:`1px solid #999999`,borderFocus:`1px solid #333333`,placeholderColor:`#999999`,caretColor:`#1a1a1a`},Card:{color:`#ffffff`,borderColor:`#e0e0e0`},Modal:{color:`#ffffff`},Tag:{borderRadius:`6px`}},_r={class:`sidebar`},vr={class:`sidebar-nav`},yr={class:`sidebar-footer`},br={class:`status-text`},xr={class:`version-info`},Sr=ye(r({__name:`AppSidebar`,setup(e){let n=In(),r=Fn(),i=Ve(),a=F(()=>n.name);function o(e){r.push({name:e})}return(e,n)=>(p(),g(`aside`,_r,[I(`div`,{class:`sidebar-logo`,onClick:n[0]||=e=>k(r).push(`/`)},[...n[3]||=[I(`img`,{src:`/assets/logo-BAarh-tH.png`,alt:`Hermes`,class:`logo-img`},null,-1),I(`span`,{class:`logo-text`},`Hermes`,-1)]]),I(`nav`,vr,[I(`button`,{class:be([`nav-item`,{active:a.value===`chat`}]),onClick:n[1]||=e=>o(`chat`)},[...n[4]||=[I(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[I(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})],-1),I(`span`,null,`Chat`,-1)]],2),I(`button`,{class:be([`nav-item`,{active:a.value===`jobs`}]),onClick:n[2]||=e=>o(`jobs`)},[...n[5]||=[t(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-f2ab15dd><rect x="3" y="4" width="18" height="18" rx="2" ry="2" data-v-f2ab15dd></rect><line x1="16" y1="2" x2="16" y2="6" data-v-f2ab15dd></line><line x1="8" y1="2" x2="8" y2="6" data-v-f2ab15dd></line><line x1="3" y1="10" x2="21" y2="10" data-v-f2ab15dd></line></svg><span data-v-f2ab15dd>Jobs</span>`,2)]],2)]),I(`div`,yr,[I(`div`,{class:be([`status-indicator`,{connected:k(i).connected,disconnected:!k(i).connected}])},[n[6]||=I(`span`,{class:`status-dot`},null,-1),I(`span`,br,P(k(i).connected?`Connected`:`Disconnected`),1)],2),I(`div`,xr,`Hermes `+P(k(i).serverVersion||`v0.1.0`),1)])]))}}),[[`__scopeId`,`data-v-f2ab15dd`]]);function Cr(){let e=Fn(),t=He();function n(n){let r=n.ctrlKey||n.metaKey;if(r&&n.key===`n`&&(n.preventDefault(),t.newChat()),r&&n.key===`j`&&(n.preventDefault(),e.push({name:`jobs`})),n.key===`Escape`){let e=document.querySelector(`.n-modal-mask`);e&&e.querySelector(`.n-base-close`)?.click()}}o(()=>{window.addEventListener(`keydown`,n)}),l(()=>{window.removeEventListener(`keydown`,n)})}var wr={class:`app-layout`},Tr={class:`app-main`},Er=Se(ye(r({__name:`App`,setup(e){let t=Ve();return o(()=>{t.startHealthPolling()}),l(()=>{t.stopHealthPolling()}),Cr(),(e,t)=>{let n=a(`router-view`);return p(),ne(k(Vn),{"theme-overrides":k(gr)},{default:i(()=>[v(k(er),null,{default:i(()=>[v(k(Wn),null,{default:i(()=>[v(k(hr),null,{default:i(()=>[I(`div`,wr,[v(Sr),I(`main`,Tr,[v(n)])])]),_:1})]),_:1})]),_:1})]),_:1},8,[`theme-overrides`])}}}),[[`__scopeId`,`data-v-aa4b2a6b`]]));Er.use(ve()),Er.use(Ln),Er.mount(`#app`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sidebar[data-v-f2ab15dd]{background-color:#f5f5f5;border-right:1px solid #e0e0e0;flex-direction:column;flex-shrink:0;width:240px;height:100vh;padding:20px 12px;transition:width .25s;display:flex}.logo-img[data-v-f2ab15dd]{border-radius:50%;flex-shrink:0;width:28px;height:28px}.sidebar-logo[data-v-f2ab15dd]{color:#1a1a1a;cursor:pointer;align-items:center;gap:10px;padding:4px 12px 20px;display:flex}.sidebar-logo .logo-text[data-v-f2ab15dd]{letter-spacing:.5px;font-size:18px;font-weight:600}.sidebar-nav[data-v-f2ab15dd]{flex-direction:column;flex:1;gap:4px;display:flex}.nav-item[data-v-f2ab15dd]{color:#666;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:14px;transition:all .15s;display:flex}.nav-item[data-v-f2ab15dd]:hover{color:#1a1a1a;background-color:#3333330f}.nav-item.active[data-v-f2ab15dd]{color:#333;background-color:#3333331f}.sidebar-footer[data-v-f2ab15dd]{border-top:1px solid #e0e0e0;padding-top:16px}.status-indicator[data-v-f2ab15dd]{align-items:center;gap:8px;padding:8px 12px;font-size:12px;display:flex}.status-indicator .status-dot[data-v-f2ab15dd]{border-radius:50%;flex-shrink:0;width:8px;height:8px}.status-indicator.connected .status-dot[data-v-f2ab15dd]{background-color:#2e7d32;box-shadow:0 0 6px #2e7d3280}.status-indicator.disconnected .status-dot[data-v-f2ab15dd]{background-color:#c62828}.status-indicator .status-text[data-v-f2ab15dd]{color:#666}.version-info[data-v-f2ab15dd]{color:#999;padding:4px 12px;font-size:11px}.app-layout[data-v-aa4b2a6b]{width:100vw;height:100vh;display:flex;overflow:hidden}.app-main[data-v-aa4b2a6b]{background-color:#fafafa;flex:1;overflow:hidden}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#app{width:100%;height:100%;overflow:hidden}body{color:#1a1a1a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fafafa;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.6}code,pre,.mono{font-family:JetBrains Mono,Fira Code,Consolas,monospace}a{color:#333;text-decoration:none}a:hover{color:#1a1a1a}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#999}::selection{background:#3333334d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./client-BxIiwrqC.js";import{t}from"./ChatView-WnNeYrS7.js";var n=t({createJob:()=>o,deleteJob:()=>c,getJob:()=>a,listJobs:()=>i,pauseJob:()=>l,resumeJob:()=>u,runJob:()=>d,updateJob:()=>s});function r(e){return e.job}async function i(){return(await e(`/api/jobs?include_disabled=true`)).jobs}async function a(t){return r(await e(`/api/jobs/${t}`))}async function o(t){return r(await e(`/api/jobs`,{method:`POST`,body:JSON.stringify(t)}))}async function s(t,n){return r(await e(`/api/jobs/${t}`,{method:`PATCH`,body:JSON.stringify(n)}))}async function c(t){return e(`/api/jobs/${t}`,{method:`DELETE`})}async function l(t){return r(await e(`/api/jobs/${t}/pause`,{method:`POST`}))}async function u(t){return r(await e(`/api/jobs/${t}/resume`,{method:`POST`}))}async function d(t){return r(await e(`/api/jobs/${t}/run`,{method:`POST`}))}export{l as a,s as c,i,c as n,u as o,n as r,d as s,o as t};
|