hermes-web-ui 0.3.0 → 0.3.2
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/dist/client/assets/{Add-HK51AOcE.js → Add-CYFVC6GK.js} +1 -1
- package/dist/client/assets/{Button-sy1PzWPU.js → Button-Bls2FkVh.js} +1 -1
- package/dist/client/assets/{ChannelsView-Do43S3tP.css → ChannelsView-CSo2o-P4.css} +1 -1
- package/dist/client/assets/ChannelsView-hQeWN-ve.js +1 -0
- package/dist/client/assets/{ChatView-BZljWOsk.js → ChatView-C67INFi3.js} +2 -2
- package/dist/client/assets/{ChatView-DWJ1E8rg.css → ChatView-CtLv9X8G.css} +1 -1
- package/dist/client/assets/{Close-h76fWaJi.js → Close-CkAmZwHA.js} +1 -1
- package/dist/client/assets/{FormItem-DAkggFjx.js → FormItem-CO8nEllS.js} +1 -1
- package/dist/client/assets/{Input-BgeYIOdH.js → Input-CmTdqaW1.js} +1 -1
- package/dist/client/assets/{InputNumber-CP0Q1JN_.js → InputNumber-BVqiFQ5W.js} +1 -1
- package/dist/client/assets/JobsView-B0LZ2Ep0.js +2 -0
- package/dist/client/assets/{JobsView-CvuV9mZY.css → JobsView-CVx2Yv-y.css} +1 -1
- package/dist/client/assets/{LoginView-DR64ehSS.js → LoginView-BjqBXdDl.js} +1 -1
- package/dist/client/assets/{LogsView-De8hT0ry.js → LogsView-CXiJ_mte.js} +1 -1
- package/dist/client/assets/{MarkdownRenderer-CgO4HMET.js → MarkdownRenderer-CtI0yse1.js} +1 -1
- package/dist/client/assets/{MemoryView-vo6uIeGe.js → MemoryView-CjPn1pVR.js} +1 -1
- package/dist/client/assets/{Modal-D0bHwidv.js → Modal-apmj2qGK.js} +1 -1
- package/dist/client/assets/ModelsView-DXvahVC_.js +1 -0
- package/dist/client/assets/{Popconfirm-C4L6j7Ed.js → Popconfirm-B9XSMaYA.js} +1 -1
- package/dist/client/assets/{Popover-CSVNytD9.js → Popover-CjCb_fJl.js} +1 -1
- package/dist/client/assets/{ProfilesView-5N8GD-OY.js → ProfilesView-CmMfNg5X.js} +1 -1
- package/dist/client/assets/{Scrollbar-CP3UrDPW.js → Scrollbar-v6Ok23iG.js} +1 -1
- package/dist/client/assets/{Select-BX8K2ITf.js → Select-CDF2CEro.js} +1 -1
- package/dist/client/assets/{SettingRow-Dj1WGKUP.js → SettingRow-CSjwu__h.js} +1 -1
- package/dist/client/assets/{SettingsView-C78xbLXK.css → SettingsView-BIEQOPzq.css} +1 -1
- package/dist/client/assets/{SettingsView-8WKddMDg.js → SettingsView-BYedQhU5.js} +2 -2
- package/dist/client/assets/{SkillsView-huWlVVSd.js → SkillsView-B_MA4How.js} +1 -1
- package/dist/client/assets/{Spin-7qVct-fX.js → Spin-UqA8uGuf.js} +1 -1
- package/dist/client/assets/{Suffix-CTB2TVbZ.js → Suffix-iRME2DUp.js} +1 -1
- package/dist/client/assets/{Switch-DznAKpSq.js → Switch-B4za8e-x.js} +1 -1
- package/dist/client/assets/{TerminalView-D8h6hUON.js → TerminalView-C0xlWgsR.js} +1 -1
- package/dist/client/assets/{Tooltip-hZdU3QDl.js → Tooltip-C9kFaGpi.js} +1 -1
- package/dist/client/assets/{UsageView-c67PH6UD.js → UsageView-Df6TKjYG.js} +1 -1
- package/dist/client/assets/{Warning-ajVqmXLg.js → Warning-C--exCXL.js} +1 -1
- package/dist/client/assets/{_plugin-vue_export-helper-Cla2Sei2.js → _plugin-vue_export-helper-BPCSidQI.js} +1 -1
- package/dist/client/assets/{app-Dn_xFNgc.js → app-BEBfTlZP.js} +1 -1
- package/dist/client/assets/app-DoAgSphx.js +1 -0
- package/dist/client/assets/{browser-Bj_pylgC.js → browser-OtgUKGth.js} +1 -1
- package/dist/client/assets/{chat-oRYxV4zZ.js → chat-B8_g1FhX.js} +2 -2
- package/dist/client/assets/composables-VZZHak9F.js +1 -0
- package/dist/client/assets/{fade-in-scale-up.cssr-A5vydVRa.js → fade-in-scale-up.cssr-BbYEGcju.js} +1 -1
- package/dist/client/assets/index-DY7SeRWD.js +284 -0
- package/dist/client/assets/index-JeutuTe0.css +1 -0
- package/dist/client/assets/{jobs-D6sYt3p2.js → jobs-BRLhuQpK.js} +1 -1
- package/dist/client/assets/{light-s39H4IqC.js → light-8G-BZ0JM.js} +1 -1
- package/dist/client/assets/{light-BlRycys6.js → light-B3QvGN97.js} +1 -1
- package/dist/client/assets/{light-2H7dwk18.js → light-B83Z4vA9.js} +1 -1
- package/dist/client/assets/{light-BRnwbni5.js → light-Bmu6b0jg.js} +1 -1
- package/dist/client/assets/{light-DyxaUrhN.js → light-BtLlDltU.js} +1 -1
- package/dist/client/assets/{light-DTze2Byq.js → light-DDEUT7ek.js} +1 -1
- package/dist/client/assets/{pinia-0T1SpgZT.js → pinia-F-uLzgMS.js} +1 -1
- package/dist/client/assets/{profiles-CXj2WAET.js → profiles-DIJT1P0i.js} +1 -1
- package/dist/client/assets/{router-k7Mt11r-.js → router-Drg4uUER.js} +2 -2
- package/dist/client/assets/{sessions-C04iLbID.js → sessions-BwtYroiN.js} +1 -1
- package/dist/client/assets/{skills-CrJMmxLv.js → skills-BLhNwqgu.js} +1 -1
- package/dist/client/assets/use-compitable-BgSV79Sl.js +1 -0
- package/dist/client/assets/{use-message-kLSX34Jy.js → use-message-xhQoRXQV.js} +1 -1
- package/dist/client/assets/{useTheme-OKrDn5ib.js → useTheme-Dd5YNF4O.js} +1 -1
- package/dist/client/index.html +28 -28
- package/dist/server/index.js +2 -2
- package/dist/server/routes/hermes/config.js +15 -3
- package/dist/server/routes/hermes/filesystem.js +25 -5
- package/dist/server/routes/hermes/logs.js +1 -1
- package/dist/server/routes/hermes/profiles.js +1 -1
- package/dist/server/routes/hermes/sessions.js +1 -1
- package/dist/server/routes/hermes/weixin.js +2 -2
- package/dist/server/routes/webhook.js +1 -1
- package/dist/server/services/hermes/hermes-cli.d.ts +125 -0
- package/dist/server/services/hermes/hermes-cli.js +488 -0
- package/dist/server/services/hermes/hermes-profile.d.ts +22 -0
- package/dist/server/services/hermes/hermes-profile.js +60 -0
- package/dist/server/services/hermes/hermes.d.ts +40 -0
- package/dist/server/services/hermes/hermes.js +118 -0
- package/dist/server/shared/providers.js +2 -2
- package/package.json +4 -1
- package/dist/client/assets/ChannelsView-B3Iv1qGF.js +0 -1
- package/dist/client/assets/JobsView-C3MddyvL.js +0 -2
- package/dist/client/assets/ModelsView-Czh0QZMT.js +0 -1
- package/dist/client/assets/app-DuW413U3.js +0 -1
- package/dist/client/assets/composables-NK3hMwZN.js +0 -1
- package/dist/client/assets/index-8Iu2oDQ9.css +0 -1
- package/dist/client/assets/index-CNVL9pSf.js +0 -284
- package/dist/client/assets/use-compitable-CBi_h52X.js +0 -1
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,D as n,E as r,F as i,G as a,K as o,N as s,O as c,Q as l,R as u,T as d,U as f,W as p,X as m,Y as h,Z as g,b as _,c as v,ct as y,d as b,gt as x,it as S,j as C,k as w,l as T,mt as E,ot as D,p as O,pt as k,t as ee,w as A,y as te}from"./router-k7Mt11r-.js";import{t as ne}from"./pinia-0T1SpgZT.js";import{n as re,r as ie,t as j}from"./_plugin-vue_export-helper-Cla2Sei2.js";import"./logo-Cd-t_oGE.js";import{$ as ae,B as oe,V as se,X as ce,_t as le,a as ue,at as M,c as de,ct as N,d as fe,dt as P,f as pe,it as me,n as F,nt as I,o as he,pt as L,r as ge,rt as R,s as z,st as B,tt as _e,u as ve,ut as V,z as ye}from"./browser-Bj_pylgC.js";import{a as be,i as xe,j as Se,s as Ce}from"./Popover-CSVNytD9.js";import{i as we,r as H,s as Te,t as Ee,y as De}from"./Scrollbar-CP3UrDPW.js";import{a as Oe,c as ke,d as Ae,f as je,h as Me,i as Ne,l as Pe,m as Fe,n as Ie,o as Le,p as Re,r as ze,s as Be,t as Ve,u as He}from"./Modal-D0bHwidv.js";import{a as Ue,c as We,i as Ge,l as Ke,n as qe,o as Je,r as Ye,s as Xe,t as Ze}from"./Select-BX8K2ITf.js";import{a as Qe,i as $e,r as et,t as tt}from"./Button-sy1PzWPU.js";import{n as U}from"./fade-in-scale-up.cssr-A5vydVRa.js";import{n as nt,t as rt}from"./Warning-ajVqmXLg.js";import{t as it}from"./omit-1BRB6K75.js";import{t as at}from"./Close-h76fWaJi.js";import{i as ot,t as st}from"./light-BRnwbni5.js";import{a as ct,n as lt,o as ut,t as dt}from"./profiles-CXj2WAET.js";import{n as ft,t as W}from"./light-s39H4IqC.js";import{a as pt,i as mt,r as ht,t as gt}from"./chat-oRYxV4zZ.js";import{n as _t,t as vt}from"./light-BlRycys6.js";import{n as yt,r as bt,t as xt}from"./use-message-kLSX34Jy.js";import{n as St}from"./light-DyxaUrhN.js";import{n as Ct}from"./light-2H7dwk18.js";import{t as wt}from"./_common-DgdkN_d5.js";import{t as Tt}from"./light-DTze2Byq.js";import{t as Et}from"./useTheme-OKrDn5ib.js";import{t as Dt}from"./app-Dn_xFNgc.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 Ot={login:{title:`Hermes Web UI`,description:`Enter your access token to continue. Find it in the server startup logs.`,placeholder:`Access token`,submit:`Login`,tokenRequired:`Please enter your access token`,invalidToken:`Invalid token`,connectionFailed:`Cannot connect to server`},common:{loading:`Loading...`,cancel:`Cancel`,delete:`Delete`,edit:`Edit`,save:`Save`,saved:`Saved`,update:`Update`,create:`Create`,saveFailed:`Save failed`,ok:`OK`,copied:`Copied`,copy:`Copy`,noData:`No data`,fetch:`Fetch`,add:`Add`,enable:`Enable`,disable:`Disable`,configured:`Configured`,notConfigured:`Not configured`,confirm:`Confirm`,expand:`Expand`,collapse:`Collapse`},sidebar:{chat:`Chat`,jobs:`Jobs`,models:`Models`,profiles:`Profiles`,skills:`Skills`,memory:`Memory`,logs:`Logs`,usage:`Usage`,channels:`Channels`,terminal:`Terminal`,settings:`Settings`,connected:`Connected`,disconnected:`Disconnected`,updateTip:`Run "hermes-web-ui update" in terminal to update`,updateVersion:`Upgrade to v{version}`,updating:`Updating...`,updateSuccess:`Update complete, please restart the server`,updateFailed:`Update failed`},chat:{emptyState:`Start a conversation with Hermes Agent`,inputPlaceholder:`Type a message... (Enter to send, Shift+Enter for new line)`,attachFiles:`Attach files`,stop:`Stop`,send:`Send`,contextUsed:`Context used:`,sessions:`Sessions`,noSessions:`No sessions`,newChat:`New Chat`,deleteSession:`Delete this session?`,sessionDeleted:`Session deleted`,rename:`Rename`,copySessionId:`Copy Session ID`,renamed:`Renamed`,renameFailed:`Rename failed`,renameSession:`Rename Session`,enterNewTitle:`Enter new title`,other:`Other`,runFailed:`Run failed`,error:`Error`,tool:`Tool`,arguments:`Arguments`,result:`Result`,truncated:`... (truncated)`},jobs:{title:`Scheduled Jobs`,createJob:`Create Job`,editJob:`Edit Job`,noJobs:`No scheduled jobs yet. Create one to get started.`,name:`Name`,namePlaceholder:`Job name`,schedule:`Schedule (Cron Expression)`,schedulePlaceholder:`e.g. 0 9 * * *`,quickPresets:`Quick Presets`,selectPreset:`Select a preset...`,presetEveryMinute:`Every minute`,presetEvery5Min:`Every 5 minutes`,presetEveryHour:`Every hour`,presetEveryDay:`Every day at 00:00`,presetEveryDay9:`Every day at 09:00`,presetEveryMonday:`Every Monday at 09:00`,presetEveryMonth:`Every month 1st at 09:00`,prompt:`Prompt`,promptPlaceholder:`The prompt to execute`,deliverTarget:`Deliver Target`,origin:`Origin`,local:`Local`,repeatCount:`Repeat Count (optional)`,repeatPlaceholder:`Leave empty for infinite`,jobCreated:`Job created`,jobUpdated:`Job updated`,nameRequired:`Name is required`,scheduleRequired:`Schedule is required`,loadFailed:`Failed to load job`,jobPaused:`Job paused`,jobResumed:`Job resumed`,jobTriggered:`Job triggered`,jobDeleted:`Job deleted`,status:{running:`Running`,paused:`Paused`,disabled:`Disabled`,scheduled:`Scheduled`},info:{schedule:`Schedule`,lastRun:`Last Run`,nextRun:`Next Run`,deliver:`Deliver`,repeat:`Repeat`},action:{pause:`Pause`,pauseJob:`Pause job`,resume:`Resume`,resumeJob:`Resume job`,runNow:`Run Now`,triggerImmediately:`Trigger immediately`}},skills:{title:`Skills`,searchPlaceholder:`Search skills...`,noMatch:`No skills match your search`,noSkills:`No skills found`,backTo:`Back to`,attachedFiles:`Attached Files`,loadFailed:`Failed to load skill`,fileLoadFailed:`Failed to load file`,toggleFailed:`Failed to toggle skill`},memory:{title:`Memory`,refresh:`Refresh`,loadFailed:`Failed to load memory`,myNotes:`My Notes`,noNotes:`No notes yet.`,notesPlaceholder:`Write your notes...`,userProfile:`User Profile`,noProfile:`No profile yet.`,profilePlaceholder:`Write your profile...`,soul:`Soul`,noSoul:`No soul configuration yet.`,soulPlaceholder:`Write soul configuration...`},models:{title:`Models`,addProvider:`Add Provider`,providerType:`Provider Type`,preset:`Preset`,custom:`Custom`,selectProvider:`Select Provider`,chooseProvider:`Choose a provider...`,name:`Name`,autoGeneratedName:`Auto-generated from Base URL`,baseUrl:`Base URL`,baseUrlPlaceholder:`e.g. https://api.example.com/v1`,apiKey:`API Key`,apiKeyPlaceholder:`sk-...`,defaultModel:`Default Model`,selectModel:`Select a model...`,providerAdded:`Provider added`,providerDeleted:`Provider deleted`,deleteProvider:`Delete Provider`,deleteConfirm:`Are you sure you want to delete "{name}"?`,noProviders:`No providers found. Add a custom provider to get started.`,builtIn:`Built-in`,customType:`Custom`,provider:`Provider`,local:`Local ({host})`,selectProviderRequired:`Please select a provider`,baseUrlRequired:`Base URL is required`,apiKeyRequired:`API Key is required`,modelRequired:`Default Model is required`,enterBaseUrl:`Please enter Base URL first`,unexpectedFormat:`Unexpected response format`,foundModels:`Found {count} models`,fetchFailed:`Failed to fetch models`},profiles:{title:`Profiles`,create:`Create Profile`,import:`Import`,export:`Export`,rename:`Rename`,delete:`Delete`,switchTo:`Switch to`,switchConfirm:`Switching to profile "{name}" will restart the gateway. Continue?`,switchSuccess:`Switched to profile "{name}"`,switchFailed:`Failed to switch profile. Gateway may need manual restart.`,createSuccess:`Profile "{name}" created`,createFailed:`Failed to create profile`,renameSuccess:`Profile renamed`,renameFailed:`Failed to rename profile`,deleteConfirm:`Are you sure you want to delete profile "{name}"?`,deleteSuccess:`Profile deleted`,deleteFailed:`Failed to delete profile`,exportSuccess:`Profile exported`,exportFailed:`Failed to export profile`,importSuccess:`Profile imported`,importFailed:`Failed to import profile`,importSelectFile:`Select archive file`,importInvalidFile:`Please select a valid archive (.tar.gz, .tgz, .gz, .zip)`,name:`Profile Name`,namePlaceholder:`English letters, numbers, hyphens only`,newName:`New Name`,newNamePlaceholder:`Enter new name`,cloneFromCurrent:`Clone from current profile`,archivePath:`Archive Path`,archivePathPlaceholder:`Server path to archive file`,importName:`Profile Name (optional)`,importNamePlaceholder:`Leave empty to use archive name`,active:`Active`,model:`Model`,gateway:`Gateway`,alias:`Alias`,provider:`Provider`,path:`Path`,skills:`Skills`,hasEnv:`Has .env`,hasSoulMd:`Has soul.md`,noProfiles:`No profiles found. Create one to get started.`},logs:{title:`Logs`,all:`All`,searchPlaceholder:`Search...`,refresh:`Refresh`,noEntries:`No log entries`},settings:{title:`Settings`,saved:`Saved`,saveFailed:`Save failed`,tabs:{display:`Display`,agent:`Agent`,memory:`Memory`,session:`Session`,privacy:`Privacy`,apiServer:`API Server`},display:{streaming:`Stream Responses`,streamingHint:`Show AI replies in real-time`,compact:`Compact Mode`,compactHint:`Reduce message spacing`,showReasoning:`Show Reasoning`,showReasoningHint:`Show model thinking process`,showCost:`Show Cost`,showCostHint:`Show token usage in replies`,inlineDiffs:`Inline Diffs`,inlineDiffsHint:`Show code changes inline`,bellOnComplete:`Completion Sound`,bellOnCompleteHint:`Play sound when AI finishes`,busyInputMode:`Busy Input Mode`,busyInputModeHint:`Allow input while AI is processing`,theme:`Theme`,themeHint:`Choose light, dark, or follow system preference`,themeLight:`Light`,themeDark:`Dark`,themeSystem:`System`},agent:{maxTurns:`Max Turns`,maxTurnsHint:`Maximum interaction rounds per conversation`,gatewayTimeout:`Gateway Timeout`,gatewayTimeoutHint:`Request timeout in seconds`,restartDrainTimeout:`Restart Drain Timeout`,restartDrainTimeoutHint:`Drain timeout before restart in seconds`,toolEnforcement:`Tool Enforcement`,toolEnforcementHint:`Control tool call execution mode`,auto:`Auto`,always:`Always`,never:`Never`},memory:{enabled:`Enable Memory`,enabledHint:`Allow AI to remember conversation context`,userProfile:`User Profile`,userProfileHint:`Allow AI to remember user preferences`,charLimit:`Memory Char Limit`,charLimitHint:`Max characters for MEMORY.md`,userCharLimit:`User Profile Char Limit`,userCharLimitHint:`Max characters for USER.md`},session:{mode:`Reset Mode`,modeHint:`Trigger condition for session reset`,modeBoth:`Idle + Scheduled`,modeIdle:`Idle Only`,modeHourly:`Scheduled Only`,idleMinutes:`Idle Timeout`,idleMinutesHint:`Wait time before auto-reset (minutes)`,atHour:`Scheduled Reset Time`,atHourHint:`Reset session at this hour daily`},privacy:{redactPii:`Redact PII`,redactPiiHint:`Auto-detect and hide sensitive info (passwords, keys, etc.)`},apiServer:{enable:`Enable`,enableHint:`Enable API server`,host:`Host`,hostHint:`Listen address`,port:`Port`,portHint:`Listen port`,key:`Key`,keyHint:`API access key`,cors:`CORS Origins`,corsHint:`Allowed cross-origin sources`}},platform:{requireMention:`Require {'@'}Mention`,requireMentionGroup:`Require {'@'}mention in groups to respond`,requireMentionChannel:`Require {'@'}mention in channels to respond`,requireMentionRoom:`Require {'@'}mention in rooms to respond`,reactions:`Reactions`,reactionsHint:`React to messages with emoji`,freeResponseChats:`Free Response Chats`,freeResponseChatsHint:`Chat IDs that respond without {'@'}mention (comma-separated)`,freeResponseChannels:`Free Response Channels`,freeResponseChannelsHint:`Channel IDs that respond without {'@'}mention (comma-separated)`,freeResponseRooms:`Free Response Rooms`,freeResponseRoomsHint:`Room IDs that respond without {'@'}mention (comma-separated)`,mentionPatterns:`Custom Mention Patterns`,mentionPatternsHint:`Additional trigger patterns`,autoThread:`Auto Thread`,autoThreadHint:`Auto-create reply threads after {'@'}mention`,autoThreadHintRoom:`Auto-create reply threads in rooms`,dmMentionThreads:`DM Mention Threads`,dmMentionThreadsHint:`Use thread replies for mentions in DMs`,allowBots:`Allow Bot Messages`,allowBotsHint:`Respond to messages from other bots`,allowedChannels:`Allowed Channels`,allowedChannelsHint:`Whitelist channel IDs (comma-separated)`,ignoredChannels:`Ignored Channels`,ignoredChannelsHint:`Channels where bot never responds (comma-separated)`,noThreadChannels:`No-Thread Channels`,noThreadChannelsHint:`Channels where bot responds without threads (comma-separated)`,botToken:`Bot Token`,botTokenHint:`Bot token from developer portal`,accessToken:`Access Token`,accessTokenHint:`Matrix access token`,homeserver:`Homeserver URL`,homeserverHint:`Matrix homeserver URL`,appId:`App ID`,appIdHint:`Feishu App ID`,appSecret:`App Secret`,appSecretHint:`Feishu App Secret`,clientId:`Client ID`,clientIdHint:`DingTalk Client ID`,clientSecret:`Client Secret`,clientSecretHint:`DingTalk Client Secret`,botId:`Bot ID`,botIdHint:`WeCom Bot ID`,wecomSecretHint:`WeCom Bot Secret`,waEnabled:`Enable WhatsApp`,waEnabledHint:`Enable WhatsApp via QR code pairing`,weixinToken:`Weixin Token`,weixinTokenHint:`From weixin CLI QR login (hermes weixin)`,accountId:`Account ID`,accountIdHint:`Weixin account ID`,qrLogin:`QR Login`,qrRelogin:`Re-login`,qrFetching:`Fetching QR code...`,qrScanHint:`Scan with WeChat to login`,qrScanedHint:`Scaned, please confirm on phone...`},language:{label:`Language`,zh:`中文`,en:`English`},terminal:{sessions:`Sessions`,newTab:`New Terminal`,closeSession:`Close this session?`,sessionExited:`Exited`,processExited:`Process exited with code {code}`},usage:{title:`Usage Statistics`,refresh:`Refresh`,totalTokens:`Total Tokens`,inputTokens:`Input`,outputTokens:`Output`,totalSessions:`Total Sessions`,avgPerDay:`~{n}/day avg`,estimatedCost:`Est. Cost`,cacheHitRate:`Cache Hit Rate`,modelBreakdown:`Model Breakdown`,dailyTrend:`Daily Usage (Last 30 Days)`,date:`Date`,tokens:`Tokens`,cache:`Cache`,sessions:`Sessions`,cost:`Cost`,noData:`No usage data`}},kt={login:{title:`Hermes Web UI`,description:`输入访问令牌以继续。令牌在服务端启动日志中查看。`,placeholder:`访问令牌`,submit:`登录`,tokenRequired:`请输入访问令牌`,invalidToken:`令牌无效`,connectionFailed:`无法连接到服务器`},common:{loading:`加载中...`,cancel:`取消`,delete:`删除`,edit:`编辑`,save:`保存`,saved:`已保存`,saveFailed:`保存失败`,ok:`确定`,copied:`已复制`,copy:`复制`,update:`更新`,create:`创建`,noData:`暂无数据`,fetch:`获取`,add:`添加`,enable:`启用`,disable:`禁用`,configured:`已配置`,notConfigured:`未配置`,confirm:`确定`,expand:`展开`,collapse:`收起`},sidebar:{chat:`对话`,jobs:`任务`,models:`模型`,profiles:`用户`,skills:`技能`,memory:`记忆`,logs:`日志`,usage:`用量`,channels:`频道`,terminal:`终端`,settings:`设置`,connected:`已连接`,disconnected:`未连接`,updateTip:`在终端运行 "hermes-web-ui update" 即可更新`,updateVersion:`升级版本 v{version}`,updating:`正在更新...`,updateSuccess:`更新完成,请重启服务`,updateFailed:`更新失败`},chat:{emptyState:`开始与 Hermes Agent 对话`,inputPlaceholder:`输入消息... (Enter 发送,Shift+Enter 换行)`,attachFiles:`添加附件`,stop:`停止`,send:`发送`,contextUsed:`上下文已用:`,sessions:`会话`,noSessions:`暂无会话`,newChat:`新建对话`,deleteSession:`确定删除此会话?`,sessionDeleted:`会话已删除`,rename:`重命名`,copySessionId:`复制会话 ID`,renamed:`已重命名`,renameFailed:`重命名失败`,renameSession:`重命名会话`,enterNewTitle:`输入新标题`,other:`其他`,runFailed:`运行失败`,error:`错误`,tool:`工具`,arguments:`参数`,result:`结果`,truncated:`... (已截断)`},jobs:{title:`定时任务`,createJob:`创建任务`,editJob:`编辑任务`,noJobs:`暂无定时任务,创建一个开始吧。`,name:`名称`,namePlaceholder:`任务名称`,schedule:`调度表达式 (Cron)`,schedulePlaceholder:`例如 0 9 * * *`,quickPresets:`快速预设`,selectPreset:`选择预设...`,presetEveryMinute:`每分钟`,presetEvery5Min:`每 5 分钟`,presetEveryHour:`每小时`,presetEveryDay:`每天 00:00`,presetEveryDay9:`每天 09:00`,presetEveryMonday:`每周一 09:00`,presetEveryMonth:`每月 1 日 09:00`,prompt:`提示词`,promptPlaceholder:`要执行的内容`,deliverTarget:`投递目标`,origin:`来源`,local:`本地`,repeatCount:`重复次数(可选)`,repeatPlaceholder:`留空表示无限重复`,jobCreated:`任务已创建`,jobUpdated:`任务已更新`,nameRequired:`名称为必填项`,scheduleRequired:`调度表达式为必填项`,loadFailed:`加载任务失败`,jobPaused:`任务已暂停`,jobResumed:`任务已恢复`,jobTriggered:`任务已触发`,jobDeleted:`任务已删除`,status:{running:`运行中`,paused:`已暂停`,disabled:`已禁用`,scheduled:`已调度`},info:{schedule:`调度`,lastRun:`上次运行`,nextRun:`下次运行`,deliver:`投递`,repeat:`重复`},action:{pause:`暂停`,pauseJob:`暂停任务`,resume:`恢复`,resumeJob:`恢复任务`,runNow:`立即运行`,triggerImmediately:`立即触发`}},skills:{title:`技能`,searchPlaceholder:`搜索技能...`,noMatch:`没有匹配的技能`,noSkills:`暂无技能`,backTo:`返回`,attachedFiles:`附件文件`,loadFailed:`加载技能失败`,fileLoadFailed:`加载文件失败`,toggleFailed:`切换技能状态失败`},memory:{title:`记忆`,refresh:`刷新`,loadFailed:`加载记忆失败`,myNotes:`我的笔记`,noNotes:`暂无笔记。`,notesPlaceholder:`输入笔记内容...`,userProfile:`用户画像`,noProfile:`暂无画像。`,profilePlaceholder:`输入用户画像...`,soul:`灵魂`,noSoul:`暂无灵魂配置。`,soulPlaceholder:`输入灵魂配置...`},models:{title:`模型`,addProvider:`添加 Provider`,providerType:`Provider 类型`,preset:`预设`,custom:`自定义`,selectProvider:`选择 Provider`,chooseProvider:`选择一个 provider...`,name:`名称`,autoGeneratedName:`根据 Base URL 自动生成`,baseUrl:`Base URL`,baseUrlPlaceholder:`例如 https://api.example.com/v1`,apiKey:`API Key`,apiKeyPlaceholder:`sk-...`,defaultModel:`默认模型`,selectModel:`选择模型...`,providerAdded:`Provider 已添加`,providerDeleted:`Provider 已删除`,deleteProvider:`删除 Provider`,deleteConfirm:`确定删除 "{name}" 吗?`,noProviders:`暂无 Provider,添加一个开始吧。`,builtIn:`内置`,customType:`自定义`,provider:`Provider`,local:`本地 ({host})`,selectProviderRequired:`请选择 Provider`,baseUrlRequired:`Base URL 为必填项`,apiKeyRequired:`API Key 为必填项`,modelRequired:`默认模型为必填项`,enterBaseUrl:`请先输入 Base URL`,unexpectedFormat:`响应格式异常`,foundModels:`找到 {count} 个模型`,fetchFailed:`获取模型失败`},profiles:{title:`配置`,create:`创建配置`,import:`导入`,export:`导出`,rename:`重命名`,delete:`删除`,switchTo:`切换到`,switchConfirm:`切换到配置 "{name}" 将重启网关,是否继续?`,switchSuccess:`已切换到配置 "{name}"`,switchFailed:`切换配置失败,网关可能需要手动重启`,createSuccess:`配置 "{name}" 已创建`,createFailed:`创建配置失败`,renameSuccess:`配置已重命名`,renameFailed:`重命名配置失败`,deleteConfirm:`确定删除配置 "{name}" 吗?`,deleteSuccess:`配置已删除`,deleteFailed:`删除配置失败`,exportSuccess:`配置已导出`,exportFailed:`导出配置失败`,importSuccess:`配置已导入`,importFailed:`导入配置失败`,importSelectFile:`选择归档文件`,importInvalidFile:`请选择有效的归档文件 (.tar.gz, .tgz, .gz, .zip)`,name:`配置名称`,namePlaceholder:`仅限英文、数字、连字符`,newName:`新名称`,newNamePlaceholder:`输入新名称`,cloneFromCurrent:`从当前配置克隆`,archivePath:`归档路径`,archivePathPlaceholder:`归档文件的服务器路径`,importName:`配置名称(可选)`,importNamePlaceholder:`留空则使用归档名称`,active:`活跃`,model:`模型`,gateway:`网关`,alias:`别名`,provider:`Provider`,path:`路径`,skills:`技能`,hasEnv:`有 .env`,hasSoulMd:`有 soul.md`,noProfiles:`暂无配置,创建一个开始吧。`},logs:{title:`日志`,all:`全部`,searchPlaceholder:`搜索...`,refresh:`刷新`,noEntries:`暂无日志`},settings:{title:`设置`,saved:`已保存`,saveFailed:`保存失败`,tabs:{display:`显示`,agent:`代理`,memory:`记忆`,session:`会话`,privacy:`隐私`,apiServer:`API 服务器`},display:{streaming:`流式响应`,streamingHint:`实时显示 AI 回复`,compact:`紧凑模式`,compactHint:`减少消息间距`,showReasoning:`显示推理过程`,showReasoningHint:`展示模型思考过程`,showCost:`显示费用`,showCostHint:`在回复中显示 token 使用量`,inlineDiffs:`内联差异`,inlineDiffsHint:`代码变更以内联方式显示`,bellOnComplete:`完成提示音`,bellOnCompleteHint:`AI 回复完成时播放提示音`,busyInputMode:`忙碌输入模式`,busyInputModeHint:`AI 处理中仍可输入`,theme:`主题`,themeHint:`选择浅色、暗色或跟随系统`,themeLight:`浅色`,themeDark:`暗色`,themeSystem:`跟随系统`},agent:{maxTurns:`最大轮次`,maxTurnsHint:`单次对话最大交互轮数`,gatewayTimeout:`网关超时`,gatewayTimeoutHint:`单次请求超时时间(秒)`,restartDrainTimeout:`重启排空超时`,restartDrainTimeoutHint:`重启前排空请求的超时时间(秒)`,toolEnforcement:`工具执行策略`,toolEnforcementHint:`控制工具调用的执行模式`,auto:`自动`,always:`始终`,never:`从不`},memory:{enabled:`启用记忆`,enabledHint:`允许 AI 记住对话上下文`,userProfile:`用户画像`,userProfileHint:`允许 AI 记住用户偏好信息`,charLimit:`记忆字符上限`,charLimitHint:`MEMORY.md 最大字符数`,userCharLimit:`用户画像字符上限`,userCharLimitHint:`USER.md 最大字符数`},session:{mode:`重置模式`,modeHint:`会话重置的触发条件`,modeBoth:`空闲 + 定时`,modeIdle:`仅空闲`,modeHourly:`仅定时`,idleMinutes:`空闲超时`,idleMinutesHint:`无操作后自动重置的等待时间(分钟)`,atHour:`定时重置时间`,atHourHint:`每天在指定小时重置会话`},privacy:{redactPii:`脱敏 PII`,redactPiiHint:`自动检测并隐藏敏感信息(密码、密钥等)`},apiServer:{enable:`启用`,enableHint:`启用 API 服务器`,host:`主机`,hostHint:`监听地址`,port:`端口`,portHint:`监听端口`,key:`密钥`,keyHint:`API 访问密钥`,cors:`CORS 来源`,corsHint:`允许的跨域来源`}},platform:{requireMention:`需要 {'@'}提及`,requireMentionGroup:`群组中需要 {'@'}机器人 才会响应`,requireMentionChannel:`频道中需要 {'@'}机器人 才会响应`,requireMentionRoom:`房间中需要 {'@'}机器人 才会响应`,reactions:`表情回应`,reactionsHint:`对消息添加表情回应`,freeResponseChats:`自由响应聊天`,freeResponseChatsHint:`不需要 {'@'}提及即响应的聊天 ID(逗号分隔)`,freeResponseChannels:`自由响应频道`,freeResponseChannelsHint:`不需要 {'@'}提及即响应的频道 ID(逗号分隔)`,freeResponseRooms:`自由响应房间`,freeResponseRoomsHint:`不需要 {'@'}提及即响应的房间 ID(逗号分隔)`,mentionPatterns:`自定义提及模式`,mentionPatternsHint:`额外的触发模式列表`,autoThread:`自动创建线程`,autoThreadHint:`{'@'}提及 后自动创建回复线程`,autoThreadHintRoom:`在房间中自动创建回复线程`,dmMentionThreads:`DM 提及线程`,dmMentionThreadsHint:`在私聊中也使用线程回复提及`,allowBots:`允许机器人消息`,allowBotsHint:`响应其他机器人发送的消息`,allowedChannels:`允许的频道`,allowedChannelsHint:`白名单频道 ID(逗号分隔)`,ignoredChannels:`忽略的频道`,ignoredChannelsHint:`不响应的频道 ID(逗号分隔)`,noThreadChannels:`无线程频道`,noThreadChannelsHint:`不创建线程的频道 ID(逗号分隔)`,botToken:`Bot Token`,botTokenHint:`开发者门户获取的 Bot Token`,accessToken:`Access Token`,accessTokenHint:`Matrix Access Token`,homeserver:`Homeserver URL`,homeserverHint:`Matrix 服务器地址`,appId:`App ID`,appIdHint:`飞书 App ID`,appSecret:`App Secret`,appSecretHint:`飞书 App Secret`,clientId:`Client ID`,clientIdHint:`钉钉 Client ID`,clientSecret:`Client Secret`,clientSecretHint:`钉钉 Client Secret`,botId:`Bot ID`,botIdHint:`企业微信 Bot ID`,wecomSecretHint:`企业微信 Bot Secret`,waEnabled:`启用 WhatsApp`,waEnabledHint:`通过二维码配对启用 WhatsApp`,weixinToken:`微信 Token`,weixinTokenHint:`通过 weixin CLI 扫码登录获取 (hermes weixin)`,accountId:`Account ID`,accountIdHint:`微信 Account ID`,qrLogin:`扫码登录`,qrRelogin:`重新登录`,qrFetching:`正在获取二维码...`,qrScanHint:`使用微信扫描二维码登录`,qrScanedHint:`已扫描,请在手机上确认...`},language:{label:`语言`,zh:`中文`,en:`English`},terminal:{sessions:`会话`,newTab:`新建终端`,closeSession:`关闭此会话?`,sessionExited:`已退出`,processExited:`进程已退出,代码 {code}`},usage:{title:`用量统计`,refresh:`刷新`,totalTokens:`总 Token 数`,inputTokens:`输入`,outputTokens:`输出`,totalSessions:`总会话数`,avgPerDay:`日均 ~{n}`,estimatedCost:`预估费用`,cacheHitRate:`缓存命中率`,modelBreakdown:`模型分布`,dailyTrend:`每日用量(近 30 天)`,date:`日期`,tokens:`Token`,cache:`缓存`,sessions:`会话`,cost:`费用`,noData:`暂无用量数据`}},At=localStorage.getItem(`hermes_locale`),jt=navigator.language.slice(0,2),Mt=re({legacy:!1,locale:At||(jt===`zh`?`zh`:`en`),fallbackLocale:`en`,messages:{en:Ot,zh:kt}}),G={neutralBase:`#000`,neutralInvertBase:`#fff`,neutralTextBase:`#fff`,neutralPopover:`rgb(72, 72, 78)`,neutralCard:`rgb(24, 24, 28)`,neutralModal:`rgb(44, 44, 50)`,neutralBody:`rgb(16, 16, 20)`,alpha1:`0.9`,alpha2:`0.82`,alpha3:`0.52`,alpha4:`0.38`,alpha5:`0.28`,alphaClose:`0.52`,alphaDisabled:`0.38`,alphaDisabledInput:`0.06`,alphaPending:`0.09`,alphaTablePending:`0.06`,alphaTableStriped:`0.05`,alphaPressed:`0.05`,alphaAvatar:`0.18`,alphaRail:`0.2`,alphaProgressRail:`0.12`,alphaBorder:`0.24`,alphaDivider:`0.09`,alphaInput:`0.1`,alphaAction:`0.06`,alphaTab:`0.04`,alphaScrollbar:`0.2`,alphaScrollbarHover:`0.3`,alphaCode:`0.12`,alphaTag:`0.2`,primaryHover:`#7fe7c4`,primaryDefault:`#63e2b7`,primaryActive:`#5acea7`,primarySuppl:`rgb(42, 148, 125)`,infoHover:`#8acbec`,infoDefault:`#70c0e8`,infoActive:`#66afd3`,infoSuppl:`rgb(56, 137, 197)`,errorHover:`#e98b8b`,errorDefault:`#e88080`,errorActive:`#e57272`,errorSuppl:`rgb(208, 58, 82)`,warningHover:`#f5d599`,warningDefault:`#f2c97d`,warningActive:`#e6c260`,warningSuppl:`rgb(240, 138, 0)`,successHover:`#7fe7c4`,successDefault:`#63e2b7`,successActive:`#5acea7`,successSuppl:`rgb(42, 148, 125)`},Nt=me(G.neutralBase),Pt=me(G.neutralInvertBase),Ft=`rgba(${Pt.slice(0,3).join(`, `)}, `;function K(e){return`${Ft+String(e)})`}function It(e){let t=Array.from(Pt);return t[3]=Number(e),R(Nt,t)}var q=Object.assign(Object.assign({name:`common`},ve),{baseColor:G.neutralBase,primaryColor:G.primaryDefault,primaryColorHover:G.primaryHover,primaryColorPressed:G.primaryActive,primaryColorSuppl:G.primarySuppl,infoColor:G.infoDefault,infoColorHover:G.infoHover,infoColorPressed:G.infoActive,infoColorSuppl:G.infoSuppl,successColor:G.successDefault,successColorHover:G.successHover,successColorPressed:G.successActive,successColorSuppl:G.successSuppl,warningColor:G.warningDefault,warningColorHover:G.warningHover,warningColorPressed:G.warningActive,warningColorSuppl:G.warningSuppl,errorColor:G.errorDefault,errorColorHover:G.errorHover,errorColorPressed:G.errorActive,errorColorSuppl:G.errorSuppl,textColorBase:G.neutralTextBase,textColor1:K(G.alpha1),textColor2:K(G.alpha2),textColor3:K(G.alpha3),textColorDisabled:K(G.alpha4),placeholderColor:K(G.alpha4),placeholderColorDisabled:K(G.alpha5),iconColor:K(G.alpha4),iconColorDisabled:K(G.alpha5),iconColorHover:K(Number(G.alpha4)*1.25),iconColorPressed:K(Number(G.alpha4)*.8),opacity1:G.alpha1,opacity2:G.alpha2,opacity3:G.alpha3,opacity4:G.alpha4,opacity5:G.alpha5,dividerColor:K(G.alphaDivider),borderColor:K(G.alphaBorder),closeIconColorHover:K(Number(G.alphaClose)),closeIconColor:K(Number(G.alphaClose)),closeIconColorPressed:K(Number(G.alphaClose)),closeColorHover:`rgba(255, 255, 255, .12)`,closeColorPressed:`rgba(255, 255, 255, .08)`,clearColor:K(G.alpha4),clearColorHover:M(K(G.alpha4),{alpha:1.25}),clearColorPressed:M(K(G.alpha4),{alpha:.8}),scrollbarColor:K(G.alphaScrollbar),scrollbarColorHover:K(G.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:K(G.alphaProgressRail),railColor:K(G.alphaRail),popoverColor:G.neutralPopover,tableColor:G.neutralCard,cardColor:G.neutralCard,modalColor:G.neutralModal,bodyColor:G.neutralBody,tagColor:It(G.alphaTag),avatarColor:K(G.alphaAvatar),invertedColor:G.neutralBase,inputColor:K(G.alphaInput),codeColor:K(G.alphaCode),tabColor:K(G.alphaTab),actionColor:K(G.alphaAction),tableHeaderColor:K(G.alphaAction),hoverColor:K(G.alphaPending),tableColorHover:K(G.alphaTablePending),tableColorStriped:K(G.alphaTableStriped),pressedColor:K(G.alphaPressed),opacityDisabled:G.alphaDisabled,inputColorDisabled:K(G.alphaDisabledInput),buttonColor2:`rgba(255, 255, 255, .08)`,buttonColor2Hover:`rgba(255, 255, 255, .12)`,buttonColor2Pressed:`rgba(255, 255, 255, .08)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),J={name:`Scrollbar`,common:q,self:we},Y={name:`Empty`,common:q,self:Ke},Lt={name:`InternalSelectMenu`,common:q,peers:{Scrollbar:J,Empty:Y},self:Xe},X={name:`Popover`,common:q,peers:{Scrollbar:J},self:be},Rt={name:`Tag`,common:q,self(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderRadiusSmall:v,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,heightMini:C,heightTiny:w,heightSmall:T,heightMedium:E,buttonColor2Hover:D,buttonColor2Pressed:O,fontWeightStrong:k}=e;return Object.assign(Object.assign({},ot),{closeBorderRadius:v,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:v,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,fontWeightStrong:k,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:D,colorPressedCheckable:O,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:`#0000`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderPrimary:`1px solid ${I(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:I(i,{alpha:.16}),colorBorderedPrimary:`#0000`,closeIconColorPrimary:M(i,{lightness:.7}),closeIconColorHoverPrimary:M(i,{lightness:.7}),closeIconColorPressedPrimary:M(i,{lightness:.7}),closeColorHoverPrimary:I(i,{alpha:.16}),closeColorPressedPrimary:I(i,{alpha:.12}),borderInfo:`1px solid ${I(a,{alpha:.3})}`,textColorInfo:a,colorInfo:I(a,{alpha:.16}),colorBorderedInfo:`#0000`,closeIconColorInfo:M(a,{alpha:.7}),closeIconColorHoverInfo:M(a,{alpha:.7}),closeIconColorPressedInfo:M(a,{alpha:.7}),closeColorHoverInfo:I(a,{alpha:.16}),closeColorPressedInfo:I(a,{alpha:.12}),borderSuccess:`1px solid ${I(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:I(o,{alpha:.16}),colorBorderedSuccess:`#0000`,closeIconColorSuccess:M(o,{alpha:.7}),closeIconColorHoverSuccess:M(o,{alpha:.7}),closeIconColorPressedSuccess:M(o,{alpha:.7}),closeColorHoverSuccess:I(o,{alpha:.16}),closeColorPressedSuccess:I(o,{alpha:.12}),borderWarning:`1px solid ${I(s,{alpha:.3})}`,textColorWarning:s,colorWarning:I(s,{alpha:.16}),colorBorderedWarning:`#0000`,closeIconColorWarning:M(s,{alpha:.7}),closeIconColorHoverWarning:M(s,{alpha:.7}),closeIconColorPressedWarning:M(s,{alpha:.7}),closeColorHoverWarning:I(s,{alpha:.16}),closeColorPressedWarning:I(s,{alpha:.11}),borderError:`1px solid ${I(c,{alpha:.3})}`,textColorError:c,colorError:I(c,{alpha:.16}),colorBorderedError:`#0000`,closeIconColorError:M(c,{alpha:.7}),closeIconColorHoverError:M(c,{alpha:.7}),closeIconColorPressedError:M(c,{alpha:.7}),closeColorHoverError:I(c,{alpha:.16}),closeColorPressedError:I(c,{alpha:.12})})}},zt={name:`InternalSelection`,common:q,peers:{Popover:X},self(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:m,clearColorHover:h,clearColorPressed:g,placeholderColor:_,placeholderColorDisabled:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,fontWeight:D}=e;return Object.assign(Object.assign({},Ue),{fontWeight:D,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:_,placeholderColorDisabled:v,color:i,colorDisabled:a,colorActive:I(o,{alpha:.1}),border:`1px solid #0000`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 8px 0 ${I(o,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${I(o,{alpha:.4})}`,caretColor:o,arrowColor:f,arrowColorDisabled:p,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 8px 0 ${I(c,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${I(c,{alpha:.4})}`,colorActiveWarning:I(c,{alpha:.1}),caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 8px 0 ${I(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${I(u,{alpha:.4})}`,colorActiveError:I(u,{alpha:.1}),caretColorError:u,clearColor:m,clearColorHover:h,clearColorPressed:g})}},Bt={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},Vt={name:`Alert`,common:q,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return Object.assign(Object.assign({},Bt),{fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${I(p,{alpha:.35})}`,colorInfo:I(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${I(m,{alpha:.35})}`,colorSuccess:I(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${I(h,{alpha:.35})}`,colorWarning:I(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${I(g,{alpha:.35})}`,colorError:I(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},Ht={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function Ut(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return Object.assign(Object.assign({},Ht),{borderRadius:t,railColor:n,railColorActive:r,linkColor:I(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r})}var Wt={name:`Anchor`,common:q,self:Ut};function Gt(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:ee,fontWeight:A}=e;return Object.assign(Object.assign({},ft),{fontWeight:A,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorDisabled:s,colorFocus:I(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${I(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:I(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${I(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:I(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${I(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:ee,suffixTextColor:t})}var Z=z({name:`Input`,common:q,peers:{Scrollbar:J},self:Gt});function Kt(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}z({name:`AutoComplete`,common:F,peers:{InternalSelectMenu:Je,Input:W},self:Kt});var qt={name:`AutoComplete`,common:q,peers:{InternalSelectMenu:Lt,Input:Z},self:Kt};function Jt(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:R(r,n),colorModal:R(u,n),colorPopover:R(d,n)}}var Yt={name:`Avatar`,common:F,self:Jt},Xt={name:`Avatar`,common:q,self:Jt};function Zt(){return{gap:`-12px`}}z({name:`AvatarGroup`,common:F,peers:{Avatar:Yt},self:Zt});var Qt={name:`AvatarGroup`,common:q,peers:{Avatar:Xt},self:Zt},$t={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},en={name:`BackTop`,common:q,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return Object.assign(Object.assign({},$t),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`})}},tn={name:`Badge`,common:q,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}},nn={fontWeightActive:`400`};function rn(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},nn),{fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n})}var an={name:`Breadcrumb`,common:q,self:rn},Q={name:`Button`,common:q,self(e){let t=$e(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},on={titleFontSize:`22px`};function sn(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return Object.assign(Object.assign({},on),{borderRadius:t,borderColor:R(f,s),borderColorModal:R(p,s),borderColorPopover:R(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:R(f,d),cellColorHoverModal:R(p,d),cellColorHoverPopover:R(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l})}z({name:`Calendar`,common:F,peers:{Button:et},self:sn});var cn={name:`Calendar`,common:q,peers:{Button:Q},self:sn},ln={name:`Card`,common:q,self(e){let t=He(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}};function un(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var dn={name:`Carousel`,common:q,self:un},fn={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function pn(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return Object.assign(Object.assign({},fn),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${I(c,{alpha:.3})}`,textColor:l,textColorDisabled:o})}var mn={name:`Checkbox`,common:F,self:pn},$={name:`Checkbox`,common:q,self(e){let{cardColor:t}=e,n=pn(e);return n.color=`#0000`,n.checkMarkColor=t,n}};function hn(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}z({name:`Cascader`,common:F,peers:{InternalSelectMenu:Je,InternalSelection:Ge,Scrollbar:H,Checkbox:mn,Empty:We},self:hn});var gn={name:`Cascader`,common:q,peers:{InternalSelectMenu:Lt,InternalSelection:zt,Scrollbar:J,Checkbox:$,Empty:We},self:hn},_n={name:`Code`,common:q,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}};function vn(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var yn={name:`Collapse`,common:q,self:vn};function bn(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var xn={name:`CollapseTransition`,common:q,self:bn};function Sn(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}z({name:`ColorPicker`,common:F,peers:{Input:W,Button:et},self:Sn});var Cn={name:`ColorPicker`,common:q,peers:{Input:Z,Button:Q},self:Sn},wn=C({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:()=>(ce(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let n=i(se,null),r=t(()=>{let{theme:t}=e;if(t===null)return;let r=n?.mergedThemeRef.value;return t===void 0?r:r===void 0?t:Object.assign({},r,t)}),a=t(()=>{let{themeOverrides:t}=e;if(t!==null){if(t===void 0)return n?.mergedThemeOverridesRef.value;{let e=n?.mergedThemeOverridesRef.value;return e===void 0?t:pe({},e,t)}}}),s=_e(()=>{let{namespace:t}=e;return t===void 0?n?.mergedNamespaceRef.value:t}),c=_e(()=>{let{bordered:t}=e;return t===void 0?n?.mergedBorderedRef.value:t}),l=t(()=>{let{icons:t}=e;return t===void 0?n?.mergedIconsRef.value:t}),u=t(()=>{let{componentOptions:t}=e;return t===void 0?n?.mergedComponentPropsRef.value:t}),d=t(()=>{let{clsPrefix:t}=e;return t===void 0?n?n.mergedClsPrefixRef.value:`n`:t}),f=t(()=>{var t;let{rtl:r}=e;if(r===void 0)return n?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=S(e),(t=e.peers)==null||t.forEach(e=>{e.name in i||(i[e.name]=S(e))});return i}),p=t(()=>e.breakpoints||n?.mergedBreakpointsRef.value),m=e.inlineThemeDisabled||n?.inlineThemeDisabled,h=e.preflightStyleDisabled||n?.preflightStyleDisabled,g=e.styleMountTarget||n?.styleMountTarget;return o(se,{mergedThemeHashRef:t(()=>{let{value:e}=r,{value:t}=a,n=t&&Object.keys(t).length!==0,i=e?.name;return i?n?`${i}-${le(JSON.stringify(a.value))}`:i:n?le(JSON.stringify(a.value)):``}),mergedBreakpointsRef:p,mergedRtlRef:f,mergedIconsRef:l,mergedComponentPropsRef:u,mergedBorderedRef:c,mergedNamespaceRef:s,mergedClsPrefixRef:d,mergedLocaleRef:t(()=>{let{locale:t}=e;if(t!==null)return t===void 0?n?.mergedLocaleRef.value:t}),mergedDateLocaleRef:t(()=>{let{dateLocale:t}=e;if(t!==null)return t===void 0?n?.mergedDateLocaleRef.value:t}),mergedHljsRef:t(()=>{let{hljs:t}=e;return t===void 0?n?.mergedHljsRef.value:t}),mergedKatexRef:t(()=>{let{katex:t}=e;return t===void 0?n?.mergedKatexRef.value:t}),mergedThemeRef:r,mergedThemeOverridesRef:a,inlineThemeDisabled:m||!1,preflightStyleDisabled:h||!1,styleMountTarget:g}),{mergedClsPrefix:d,mergedBordered:c,mergedNamespace:s,mergedTheme:r,mergedThemeOverrides:a}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):s(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),Tn={name:`Popselect`,common:q,peers:{Popover:X,InternalSelectMenu:Lt}};function En(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Dn=z({name:`Popselect`,common:F,peers:{Popover:xe,InternalSelectMenu:Je},self:En}),On={name:`Select`,common:q,peers:{InternalSelection:zt,InternalSelectMenu:Lt},self:Ye},kn={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function An(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return Object.assign(Object.assign({},kn),{buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})}var jn=z({name:`Pagination`,common:F,peers:{Select:qe,Input:W,Popselect:Dn},self:An}),Mn={name:`Pagination`,common:q,peers:{Select:On,Input:Z,Popselect:Tn},self(e){let{primaryColor:t,opacity3:n}=e,r=I(t,{alpha:Number(n)}),i=An(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},Nn={name:`Dropdown`,common:q,peers:{Popover:X},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=pt(e);return i.colorInverted=r,i.optionColorActive=I(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},Pn={name:`Tooltip`,common:q,peers:{Popover:X},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return Object.assign(Object.assign({},_t),{borderRadius:t,boxShadow:n,color:r,textColor:i})}},Fn={name:`Ellipsis`,common:q,peers:{Tooltip:Pn}},In=z({name:`Ellipsis`,common:F,peers:{Tooltip:vt}}),Ln={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},Rn={name:`Radio`,common:q,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},Ln),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${I(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${I(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}};function zn(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},Ln),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${I(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:o,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${I(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px #0000`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}var Bn={name:`Radio`,common:F,self:zn},Vn={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function Hn(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return Object.assign(Object.assign({},Vn),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:R(t,g),tdColorHover:R(t,s),tdColorSorting:R(t,s),tdColorStriped:R(t,y),thColor:R(t,o),thColorHover:R(R(t,o),s),thColorSorting:R(R(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:R(n,g),tdColorHoverModal:R(n,s),tdColorSortingModal:R(n,s),tdColorStripedModal:R(n,y),thColorModal:R(n,o),thColorHoverModal:R(R(n,o),s),thColorSortingModal:R(R(n,o),s),tdColorModal:n,borderColorPopover:R(r,g),tdColorHoverPopover:R(r,s),tdColorSortingPopover:R(r,s),tdColorStripedPopover:R(r,y),thColorPopover:R(r,o),thColorHoverPopover:R(R(r,o),s),thColorSortingPopover:R(R(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v})}z({name:`DataTable`,common:F,peers:{Button:et,Checkbox:mn,Radio:Bn,Pagination:jn,Scrollbar:H,Empty:We,Popover:xe,Ellipsis:In,Dropdown:mt},self:Hn});var Un={name:`DataTable`,common:q,peers:{Button:Q,Checkbox:$,Radio:Rn,Pagination:Mn,Scrollbar:J,Empty:Y,Popover:X,Ellipsis:Fn,Dropdown:Nn},self(e){let t=Hn(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}},Wn={name:`Icon`,common:q,self:ht},Gn={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function Kn(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return Object.assign(Object.assign({},Gn),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u})}var qn=z({name:`TimePicker`,common:F,peers:{Scrollbar:H,Button:et,Input:W},self:Kn}),Jn={name:`TimePicker`,common:q,peers:{Scrollbar:J,Button:Q,Input:Z},self:Kn},Yn={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function Xn(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Yn),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:I(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l})}z({name:`DatePicker`,common:F,peers:{Input:W,Button:et,TimePicker:qn,Scrollbar:H},self:Xn});var Zn={name:`DatePicker`,common:q,peers:{Input:Z,Button:Q,TimePicker:Jn,Scrollbar:J},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=Xn(e);return i.itemColorDisabled=R(t,n),i.itemColorIncluded=I(r,{alpha:.15}),i.itemColorHover=R(t,n),i}},Qn={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function $n(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Qn),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:R(i,t),thColorModal:R(a,t),thColorPopover:R(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:R(i,s),borderColorModal:R(a,s),borderColorPopover:R(o,s),borderRadius:c})}var er={name:`Descriptions`,common:q,self:$n},tr={name:`Dialog`,common:q,peers:{Button:Q},self:Le},nr={name:`Modal`,common:q,peers:{Scrollbar:J,Dialog:tr,Card:ln},self:Ie},rr=Object.assign(Object.assign({},Oe),{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]}),ir=C({name:`DialogEnvironment`,props:Object.assign(Object.assign({},rr),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){let t=y(!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:c,zIndex:l,maskClosable:u,show:d}=this;return s(Ve,{show:d,onUpdateShow:t,onMaskClick:a,onEsc:o,to:c,zIndex:l,maskClosable:u,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})=>s(ze,Object.assign({},Ce(this.$props,Ne),{titleClass:E([this.titleClass,t]),style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),ar=C({name:`DialogProvider`,props:{injectionKey:String,to:[String,Object]},setup(){let e=y([]),t={};function n(n={}){let r=Se(),i=D(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 s={create:n,destroyAll:a,info:r[0],success:r[1],warning:r[2],error:r[3]};return o(Be,s),o(ke,{clickedRef:Fe(64),clickedPositionRef:Me()}),o(Pe,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:i})},render(){var e;return s(te,null,[this.dialogList.map(e=>s(ir,it(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)])}}),or={name:`LoadingBar`,common:q,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},sr={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 cr(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({},sr),{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 lr={name:`Message`,common:F,self:cr},ur={name:`Message`,common:q,self:cr},dr={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},fr=B([N(`message-wrapper`,`
|
|
2
|
-
margin: var(--n-margin);
|
|
3
|
-
z-index: 0;
|
|
4
|
-
transform-origin: top center;
|
|
5
|
-
display: flex;
|
|
6
|
-
`,[ut({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),N(`message`,`
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
transition:
|
|
11
|
-
color .3s var(--n-bezier),
|
|
12
|
-
box-shadow .3s var(--n-bezier),
|
|
13
|
-
background-color .3s var(--n-bezier),
|
|
14
|
-
opacity .3s var(--n-bezier),
|
|
15
|
-
transform .3s var(--n-bezier),
|
|
16
|
-
margin-bottom .3s var(--n-bezier);
|
|
17
|
-
padding: var(--n-padding);
|
|
18
|
-
border-radius: var(--n-border-radius);
|
|
19
|
-
border: var(--n-border);
|
|
20
|
-
flex-wrap: nowrap;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
max-width: var(--n-max-width);
|
|
23
|
-
color: var(--n-text-color);
|
|
24
|
-
background-color: var(--n-color);
|
|
25
|
-
box-shadow: var(--n-box-shadow);
|
|
26
|
-
`,[V(`content`,`
|
|
27
|
-
display: inline-block;
|
|
28
|
-
line-height: var(--n-line-height);
|
|
29
|
-
font-size: var(--n-font-size);
|
|
30
|
-
`),V(`icon`,`
|
|
31
|
-
position: relative;
|
|
32
|
-
margin: var(--n-icon-margin);
|
|
33
|
-
height: var(--n-icon-size);
|
|
34
|
-
width: var(--n-icon-size);
|
|
35
|
-
font-size: var(--n-icon-size);
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
`,[[`default`,`info`,`success`,`warning`,`error`,`loading`].map(e=>P(`${e}-type`,[B(`> *`,`
|
|
38
|
-
color: var(--n-icon-color-${e});
|
|
39
|
-
transition: color .3s var(--n-bezier);
|
|
40
|
-
`)])),B(`> *`,`
|
|
41
|
-
position: absolute;
|
|
42
|
-
left: 0;
|
|
43
|
-
top: 0;
|
|
44
|
-
right: 0;
|
|
45
|
-
bottom: 0;
|
|
46
|
-
`,[ue()])]),V(`close`,`
|
|
47
|
-
margin: var(--n-close-margin);
|
|
48
|
-
transition:
|
|
49
|
-
background-color .3s var(--n-bezier),
|
|
50
|
-
color .3s var(--n-bezier);
|
|
51
|
-
flex-shrink: 0;
|
|
52
|
-
`,[B(`&:hover`,`
|
|
53
|
-
color: var(--n-close-icon-color-hover);
|
|
54
|
-
`),B(`&:active`,`
|
|
55
|
-
color: var(--n-close-icon-color-pressed);
|
|
56
|
-
`)])]),N(`message-container`,`
|
|
57
|
-
z-index: 6000;
|
|
58
|
-
position: fixed;
|
|
59
|
-
height: 0;
|
|
60
|
-
overflow: visible;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
align-items: center;
|
|
64
|
-
`,[P(`top`,`
|
|
65
|
-
top: 12px;
|
|
66
|
-
left: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
`),P(`top-left`,`
|
|
69
|
-
top: 12px;
|
|
70
|
-
left: 12px;
|
|
71
|
-
right: 0;
|
|
72
|
-
align-items: flex-start;
|
|
73
|
-
`),P(`top-right`,`
|
|
74
|
-
top: 12px;
|
|
75
|
-
left: 0;
|
|
76
|
-
right: 12px;
|
|
77
|
-
align-items: flex-end;
|
|
78
|
-
`),P(`bottom`,`
|
|
79
|
-
bottom: 4px;
|
|
80
|
-
left: 0;
|
|
81
|
-
right: 0;
|
|
82
|
-
justify-content: flex-end;
|
|
83
|
-
`),P(`bottom-left`,`
|
|
84
|
-
bottom: 4px;
|
|
85
|
-
left: 12px;
|
|
86
|
-
right: 0;
|
|
87
|
-
justify-content: flex-end;
|
|
88
|
-
align-items: flex-start;
|
|
89
|
-
`),P(`bottom-right`,`
|
|
90
|
-
bottom: 4px;
|
|
91
|
-
left: 0;
|
|
92
|
-
right: 12px;
|
|
93
|
-
justify-content: flex-end;
|
|
94
|
-
align-items: flex-end;
|
|
95
|
-
`)])]),pr={info:()=>s(je,null),success:()=>s(Ae,null),warning:()=>s(rt,null),error:()=>s(Re,null),default:()=>null},mr=C({name:`Message`,props:Object.assign(Object.assign({},dr),{render:Function}),setup(e){let{inlineThemeDisabled:n,mergedRtlRef:r}=oe(e),{props:a,mergedClsPrefixRef:o}=i(bt),s=fe(`Message`,r,o),c=de(`Message`,`-message`,fr,lr,a,o),l=t(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:o,closeMargin:s,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,[L(`textColor`,t)]:S,[L(`boxShadow`,t)]:C,[L(`color`,t)]:w,[L(`closeColorHover`,t)]:T,[L(`closeColorPressed`,t)]:E,[L(`closeIconColor`,t)]:D,[L(`closeIconColorPressed`,t)]:O,[L(`closeIconColorHover`,t)]:k}}=c.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":o,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":s,"--n-text-color":S,"--n-color":w,"--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":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),u=n?ye(`message`,t(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:s,messageProviderProps:a,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:n?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender,placement:a.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:c,icon:l,handleClose:u,showIcon:d}=this;c?.();let f;return s(`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):s(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(f=hr(l,t,i,this.spinProps))&&d?s(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},s(he,null,{default:()=>f})):null,s(`div`,{class:`${i}-message__content`},U(r)),n?s(at,{clsPrefix:i,class:`${i}-message__close`,onClick:u,absolute:!0}):null))}});function hr(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?s(ge,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):pr[t]();return e?s(Te,{clsPrefix:n,key:t},{default:()=>e}):null}}var gr=C({name:`MessageEnvironment`,props:Object.assign(Object.assign({},dr),{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=y(!0);f(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return s(Qe,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?s(mr,{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]})}}),_r=C({name:`MessageProvider`,props:Object.assign(Object.assign({},de.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}=oe(e),n=y([]),r=y({}),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};o(bt,{props:e,mergedClsPrefixRef:t}),o(yt,i);function a(t,i){let a=Se(),o=D(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function s(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:s},i)},render(){var e;return s(te,null,(e=this.$slots).default?.call(e),this.messageList.length?s(_,{to:this.to??`body`},s(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>s(gr,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},it(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)}}),vr={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function yr(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({},vr),{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 br=z({name:`Notification`,common:F,peers:{Scrollbar:H},self:yr}),xr={name:`Notification`,common:q,peers:{Scrollbar:J},self:yr},Sr=ae(`n-notification-provider`),Cr=C({name:`NotificationContainer`,props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){let{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=i(Sr),r=y(null);return g(()=>{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 s(`div`,{ref:`selfRef`,class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${i}`]},t?s(Ee,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:`hidden`}},e):e)}}),wr={info:()=>s(je,null),success:()=>s(Ae,null),warning:()=>s(rt,null),error:()=>s(Re,null),default:()=>null},Tr={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},Er=nt(Tr),Dr=C({name:`Notification`,props:Tr,setup(e){let{mergedClsPrefixRef:n,mergedThemeRef:r,props:a}=i(Sr),{inlineThemeDisabled:o,mergedRtlRef:s}=oe(),c=fe(`Notification`,s,n),l=t(()=>{let{type:t}=e,{self:{color:n,textColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:s,headerTextColor:c,descriptionTextColor:l,actionTextColor:u,borderRadius:d,headerFontWeight:f,boxShadow:p,lineHeight:m,fontSize:h,closeMargin:g,closeSize:_,width:v,padding:y,closeIconSize:b,closeBorderRadius:x,closeColorHover:S,closeColorPressed:C,titleFontSize:w,metaFontSize:T,descriptionFontSize:E,[L(`iconColor`,t)]:D},common:{cubicBezierEaseOut:O,cubicBezierEaseIn:k,cubicBezierEaseInOut:ee}}=r.value,{left:A,right:te,top:ne,bottom:re}=De(y);return{"--n-color":n,"--n-font-size":h,"--n-text-color":i,"--n-description-text-color":l,"--n-action-text-color":u,"--n-title-text-color":c,"--n-title-font-weight":f,"--n-bezier":ee,"--n-bezier-ease-out":O,"--n-bezier-ease-in":k,"--n-border-radius":d,"--n-box-shadow":p,"--n-close-border-radius":x,"--n-close-color-hover":S,"--n-close-color-pressed":C,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":s,"--n-line-height":m,"--n-icon-color":D,"--n-close-margin":g,"--n-close-size":_,"--n-close-icon-size":b,"--n-width":v,"--n-padding-left":A,"--n-padding-right":te,"--n-padding-top":ne,"--n-padding-bottom":re,"--n-title-font-size":w,"--n-meta-font-size":T,"--n-description-font-size":E}}),u=o?ye(`notification`,t(()=>e.type[0]),l,a):void 0;return{mergedClsPrefix:n,showAvatar:t(()=>e.avatar||e.type!==`default`),handleCloseClick(){e.onClose()},rtlEnabled:c,cssVars:o?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){var e;let{mergedClsPrefix:t}=this;return(e=this.onRender)==null||e.call(this),s(`div`,{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},s(`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?s(`div`,{class:`${t}-notification__avatar`},this.avatar?U(this.avatar):this.type===`default`?null:s(Te,{clsPrefix:t},{default:()=>wr[this.type]()})):null,this.closable?s(at,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,s(`div`,{ref:`bodyRef`,class:`${t}-notification-main`},this.title?s(`div`,{class:`${t}-notification-main__header`},U(this.title)):null,this.description?s(`div`,{class:`${t}-notification-main__description`},U(this.description)):null,this.content?s(`pre`,{class:`${t}-notification-main__content`},U(this.content)):null,this.meta||this.action?s(`div`,{class:`${t}-notification-main-footer`},this.meta?s(`div`,{class:`${t}-notification-main-footer__meta`},U(this.meta)):null,this.action?s(`div`,{class:`${t}-notification-main-footer__action`},U(this.action)):null):null)))}}),Or=Object.assign(Object.assign({},Tr),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),kr=C({name:`NotificationEnvironment`,props:Object.assign(Object.assign({},Or),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){let{wipTransitionCountRef:t}=i(Sr),n=y(!0),r=null;function a(){n.value=!1,r&&window.clearTimeout(r)}function o(e){t.value++,u(()=>{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 d(){t.value--;let{onAfterLeave:n,onInternalAfterLeave:r,onAfterHide:i,internalKey:a}=e;n&&n(),r(a),i&&i()}function p(){let{duration:t}=e;t&&(r=window.setTimeout(a,t))}function m(e){e.currentTarget===e.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(e){e.currentTarget===e.target&&p()}function g(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&a()}):a()}return f(()=>{e.duration&&(r=window.setTimeout(a,e.duration))}),{show:n,hide:a,handleClose:g,handleAfterLeave:d,handleLeave:l,handleBeforeLeave:c,handleAfterEnter:s,handleBeforeEnter:o,handleMouseenter:m,handleMouseleave:h}},render(){return s(b,{name:`notification-transition`,appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?s(Dr,Object.assign({},Ce(this.$props,Er),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Ar=B([N(`notification-container`,`
|
|
96
|
-
z-index: 4000;
|
|
97
|
-
position: fixed;
|
|
98
|
-
overflow: visible;
|
|
99
|
-
display: flex;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
align-items: flex-end;
|
|
102
|
-
`,[B(`>`,[N(`scrollbar`,`
|
|
103
|
-
width: initial;
|
|
104
|
-
overflow: visible;
|
|
105
|
-
height: -moz-fit-content !important;
|
|
106
|
-
height: fit-content !important;
|
|
107
|
-
max-height: 100vh !important;
|
|
108
|
-
`,[B(`>`,[N(`scrollbar-container`,`
|
|
109
|
-
height: -moz-fit-content !important;
|
|
110
|
-
height: fit-content !important;
|
|
111
|
-
max-height: 100vh !important;
|
|
112
|
-
`,[N(`scrollbar-content`,`
|
|
113
|
-
padding-top: 12px;
|
|
114
|
-
padding-bottom: 33px;
|
|
115
|
-
`)])])])]),P(`top, top-right, top-left`,`
|
|
116
|
-
top: 12px;
|
|
117
|
-
`,[B(`&.transitioning >`,[N(`scrollbar`,[B(`>`,[N(`scrollbar-container`,`
|
|
118
|
-
min-height: 100vh !important;
|
|
119
|
-
`)])])])]),P(`bottom, bottom-right, bottom-left`,`
|
|
120
|
-
bottom: 12px;
|
|
121
|
-
`,[B(`>`,[N(`scrollbar`,[B(`>`,[N(`scrollbar-container`,[N(`scrollbar-content`,`
|
|
122
|
-
padding-bottom: 12px;
|
|
123
|
-
`)])])])]),N(`notification-wrapper`,`
|
|
124
|
-
display: flex;
|
|
125
|
-
align-items: flex-end;
|
|
126
|
-
margin-bottom: 0;
|
|
127
|
-
margin-top: 12px;
|
|
128
|
-
`)]),P(`top, bottom`,`
|
|
129
|
-
left: 50%;
|
|
130
|
-
transform: translateX(-50%);
|
|
131
|
-
`,[N(`notification-wrapper`,[B(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
132
|
-
transform: scale(0.85);
|
|
133
|
-
`),B(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
134
|
-
transform: scale(1);
|
|
135
|
-
`)])]),P(`top`,[N(`notification-wrapper`,`
|
|
136
|
-
transform-origin: top center;
|
|
137
|
-
`)]),P(`bottom`,[N(`notification-wrapper`,`
|
|
138
|
-
transform-origin: bottom center;
|
|
139
|
-
`)]),P(`top-right, bottom-right`,[N(`notification`,`
|
|
140
|
-
margin-left: 28px;
|
|
141
|
-
margin-right: 16px;
|
|
142
|
-
`)]),P(`top-left, bottom-left`,[N(`notification`,`
|
|
143
|
-
margin-left: 16px;
|
|
144
|
-
margin-right: 28px;
|
|
145
|
-
`)]),P(`top-right`,`
|
|
146
|
-
right: 0;
|
|
147
|
-
`,[jr(`top-right`)]),P(`top-left`,`
|
|
148
|
-
left: 0;
|
|
149
|
-
`,[jr(`top-left`)]),P(`bottom-right`,`
|
|
150
|
-
right: 0;
|
|
151
|
-
`,[jr(`bottom-right`)]),P(`bottom-left`,`
|
|
152
|
-
left: 0;
|
|
153
|
-
`,[jr(`bottom-left`)]),P(`scrollable`,[P(`top-right`,`
|
|
154
|
-
top: 0;
|
|
155
|
-
`),P(`top-left`,`
|
|
156
|
-
top: 0;
|
|
157
|
-
`),P(`bottom-right`,`
|
|
158
|
-
bottom: 0;
|
|
159
|
-
`),P(`bottom-left`,`
|
|
160
|
-
bottom: 0;
|
|
161
|
-
`)]),N(`notification-wrapper`,`
|
|
162
|
-
margin-bottom: 12px;
|
|
163
|
-
`,[B(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
164
|
-
opacity: 0;
|
|
165
|
-
margin-top: 0 !important;
|
|
166
|
-
margin-bottom: 0 !important;
|
|
167
|
-
`),B(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
168
|
-
opacity: 1;
|
|
169
|
-
`),B(`&.notification-transition-leave-active`,`
|
|
170
|
-
transition:
|
|
171
|
-
background-color .3s var(--n-bezier),
|
|
172
|
-
color .3s var(--n-bezier),
|
|
173
|
-
opacity .3s var(--n-bezier),
|
|
174
|
-
transform .3s var(--n-bezier-ease-in),
|
|
175
|
-
max-height .3s var(--n-bezier),
|
|
176
|
-
margin-top .3s linear,
|
|
177
|
-
margin-bottom .3s linear,
|
|
178
|
-
box-shadow .3s var(--n-bezier);
|
|
179
|
-
`),B(`&.notification-transition-enter-active`,`
|
|
180
|
-
transition:
|
|
181
|
-
background-color .3s var(--n-bezier),
|
|
182
|
-
color .3s var(--n-bezier),
|
|
183
|
-
opacity .3s var(--n-bezier),
|
|
184
|
-
transform .3s var(--n-bezier-ease-out),
|
|
185
|
-
max-height .3s var(--n-bezier),
|
|
186
|
-
margin-top .3s linear,
|
|
187
|
-
margin-bottom .3s linear,
|
|
188
|
-
box-shadow .3s var(--n-bezier);
|
|
189
|
-
`)]),N(`notification`,`
|
|
190
|
-
background-color: var(--n-color);
|
|
191
|
-
color: var(--n-text-color);
|
|
192
|
-
transition:
|
|
193
|
-
background-color .3s var(--n-bezier),
|
|
194
|
-
color .3s var(--n-bezier),
|
|
195
|
-
opacity .3s var(--n-bezier),
|
|
196
|
-
box-shadow .3s var(--n-bezier);
|
|
197
|
-
font-family: inherit;
|
|
198
|
-
font-size: var(--n-font-size);
|
|
199
|
-
font-weight: 400;
|
|
200
|
-
position: relative;
|
|
201
|
-
display: flex;
|
|
202
|
-
overflow: hidden;
|
|
203
|
-
flex-shrink: 0;
|
|
204
|
-
padding-left: var(--n-padding-left);
|
|
205
|
-
padding-right: var(--n-padding-right);
|
|
206
|
-
width: var(--n-width);
|
|
207
|
-
max-width: calc(100vw - 16px - 16px);
|
|
208
|
-
border-radius: var(--n-border-radius);
|
|
209
|
-
box-shadow: var(--n-box-shadow);
|
|
210
|
-
box-sizing: border-box;
|
|
211
|
-
opacity: 1;
|
|
212
|
-
`,[V(`avatar`,[N(`icon`,`
|
|
213
|
-
color: var(--n-icon-color);
|
|
214
|
-
`),N(`base-icon`,`
|
|
215
|
-
color: var(--n-icon-color);
|
|
216
|
-
`)]),P(`show-avatar`,[N(`notification-main`,`
|
|
217
|
-
margin-left: 40px;
|
|
218
|
-
width: calc(100% - 40px);
|
|
219
|
-
`)]),P(`closable`,[N(`notification-main`,[B(`> *:first-child`,`
|
|
220
|
-
padding-right: 20px;
|
|
221
|
-
`)]),V(`close`,`
|
|
222
|
-
position: absolute;
|
|
223
|
-
top: 0;
|
|
224
|
-
right: 0;
|
|
225
|
-
margin: var(--n-close-margin);
|
|
226
|
-
transition:
|
|
227
|
-
background-color .3s var(--n-bezier),
|
|
228
|
-
color .3s var(--n-bezier);
|
|
229
|
-
`)]),V(`avatar`,`
|
|
230
|
-
position: absolute;
|
|
231
|
-
top: var(--n-padding-top);
|
|
232
|
-
left: var(--n-padding-left);
|
|
233
|
-
width: 28px;
|
|
234
|
-
height: 28px;
|
|
235
|
-
font-size: 28px;
|
|
236
|
-
display: flex;
|
|
237
|
-
align-items: center;
|
|
238
|
-
justify-content: center;
|
|
239
|
-
`,[N(`icon`,`transition: color .3s var(--n-bezier);`)]),N(`notification-main`,`
|
|
240
|
-
padding-top: var(--n-padding-top);
|
|
241
|
-
padding-bottom: var(--n-padding-bottom);
|
|
242
|
-
box-sizing: border-box;
|
|
243
|
-
display: flex;
|
|
244
|
-
flex-direction: column;
|
|
245
|
-
margin-left: 8px;
|
|
246
|
-
width: calc(100% - 8px);
|
|
247
|
-
`,[N(`notification-main-footer`,`
|
|
248
|
-
display: flex;
|
|
249
|
-
align-items: center;
|
|
250
|
-
justify-content: space-between;
|
|
251
|
-
margin-top: 12px;
|
|
252
|
-
`,[V(`meta`,`
|
|
253
|
-
font-size: var(--n-meta-font-size);
|
|
254
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
255
|
-
color: var(--n-description-text-color);
|
|
256
|
-
`),V(`action`,`
|
|
257
|
-
cursor: pointer;
|
|
258
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
259
|
-
color: var(--n-action-text-color);
|
|
260
|
-
`)]),V(`header`,`
|
|
261
|
-
font-weight: var(--n-title-font-weight);
|
|
262
|
-
font-size: var(--n-title-font-size);
|
|
263
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
264
|
-
color: var(--n-title-text-color);
|
|
265
|
-
`),V(`description`,`
|
|
266
|
-
margin-top: 8px;
|
|
267
|
-
font-size: var(--n-description-font-size);
|
|
268
|
-
white-space: pre-wrap;
|
|
269
|
-
word-wrap: break-word;
|
|
270
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
271
|
-
color: var(--n-description-text-color);
|
|
272
|
-
`),V(`content`,`
|
|
273
|
-
line-height: var(--n-line-height);
|
|
274
|
-
margin: 12px 0 0 0;
|
|
275
|
-
font-family: inherit;
|
|
276
|
-
white-space: pre-wrap;
|
|
277
|
-
word-wrap: break-word;
|
|
278
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
279
|
-
color: var(--n-text-color);
|
|
280
|
-
`,[B(`&:first-child`,`margin: 0;`)])])])])]);function jr(e){return N(`notification-wrapper`,[B(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
281
|
-
transform: translate(${e.split(`-`)[1]===`left`?`calc(-100%)`:`calc(100%)`}, 0);
|
|
282
|
-
`),B(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
283
|
-
transform: translate(0, 0);
|
|
284
|
-
`)])}var Mr=ae(`n-notification-api`),Nr=C({name:`NotificationProvider`,props:Object.assign(Object.assign({},de.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}=oe(e),n=y([]),r={},i=new Set;function a(t){let a=Se(),o=()=>{i.add(a),r[a]&&r[a].hide()},s=D(Object.assign(Object.assign({},t),{key:a,destroy:o,hide:o,deactivate:o})),{max:c}=e;if(c&&n.value.length-i.size>=c){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(s),s}let s=[`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=de(`Notification`,`-notification`,Ar,br,e,t),u={create:a,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:p},d=y(0);o(Mr,u),o(Sr,{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 s(te,null,(e=this.$slots).default?.call(e),this.notificationList.length?s(_,{to:this.to??`body`},s(Cr,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&t!==`top`&&t!==`bottom`,placement:t},{default:()=>this.notificationList.map(e=>s(kr,Object.assign({ref:t=>{let n=e.key;t===null?delete this.notificationRefs[n]:this.notificationRefs[n]=t}},it(e,[`destroy`,`hide`,`deactivate`]),{internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover})))})):null)}});function Pr(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Fr={name:`Divider`,common:q,self:Pr};function Ir(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}z({name:`Drawer`,common:F,peers:{Scrollbar:H},self:Ir});var Lr={name:`Drawer`,common:q,peers:{Scrollbar:J},self:Ir},Rr={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},zr={name:`DynamicInput`,common:q,peers:{Input:Z,Button:Q},self(){return Rr}},Br={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Vr={name:`Space`,self(){return Br}},Hr={name:`DynamicTags`,common:q,peers:{Input:Z,Button:Q,Tag:Rt,Space:Vr},self(){return{inputWidth:`64px`}}},Ur={name:`Element`,common:q},Wr={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Gr={name:`Flex`,self(){return Wr}},Kr={name:`ButtonGroup`,common:q},qr={name:`Form`,common:q,self:St},Jr={name:`GradientText`,common:q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},Yr={name:`InputNumber`,common:q,peers:{Button:Q,Input:Z},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function Xr(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}z({name:`InputOtp`,common:F,peers:{Input:W},self:Xr});var Zr={name:`InputOtp`,common:q,peers:{Input:Z},self:Xr},Qr={name:`Layout`,common:q,peers:{Scrollbar:J},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:R(n,o),siderToggleBarColorHover:R(n,s),__invertScrollbar:`false`}}},$r={name:`Row`,common:q};function ei(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:R(r,c),colorPopover:i,colorHoverPopover:R(i,c),borderColor:a,borderColorModal:R(r,a),borderColorPopover:R(i,a),borderRadius:o,fontSize:s}}var ti={name:`List`,common:q,self:ei},ni={name:`Log`,common:q,peers:{Scrollbar:J,Code:_n},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},ri={name:`Mention`,common:q,peers:{InternalSelectMenu:Lt,Input:Z},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function ii(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function ai(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:I(r,{alpha:.1}),itemColorActiveHover:I(r,{alpha:.1}),itemColorActiveCollapsed:I(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},ii(`#BBB`,r,`#FFF`,`#AAA`))}z({name:`Menu`,common:F,peers:{Tooltip:vt,Dropdown:mt},self:ai});var oi={name:`Menu`,common:q,peers:{Tooltip:Pn,Dropdown:Nn},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=ai(e);return r.itemColorActive=I(t,{alpha:.15}),r.itemColorActiveHover=I(t,{alpha:.15}),r.itemColorActiveCollapsed=I(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},si={titleFontSize:`18px`,backSize:`22px`};function ci(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},si),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}z({name:`PageHeader`,common:F,self:ci});var li={name:`PageHeader`,common:q,self:ci},ui={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:X},self:Ct},di={name:`Progress`,common:q,self(e){let t=ct(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},fi={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},pi={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function mi(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},pi),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var hi={name:`Result`,common:q,self:mi},gi={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},_i={name:`Slider`,common:q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},gi),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}},vi={name:`Spin`,common:q,self:st};function yi(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var bi={name:`Statistic`,common:q,self:yi},xi={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function Si(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},xi),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var Ci={name:`Steps`,common:q,self:Si},wi={name:`Switch`,common:q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},wt),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${I(i,{alpha:.3})}`})}},Ti={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function Ei(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Ti),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:R(n,t),borderColorModal:R(r,t),borderColorPopover:R(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:R(n,o),tdColorStripedModal:R(r,o),tdColorStripedPopover:R(i,o),thColor:R(n,a),thColorModal:R(r,a),thColorPopover:R(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Di={name:`Table`,common:q,self:Ei},Oi={name:`Tabs`,common:q,self(e){let t=Tt(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function ki(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Ai={name:`Thing`,common:q,self:ki},ji={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Mi={name:`Timeline`,common:q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},ji),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},Ni={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},Pi={name:`Transfer`,common:q,peers:{Checkbox:$,Scrollbar:J,Input:Z,Empty:Y,Button:Q},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},Ni),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function Fi(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:I(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}z({name:`Tree`,common:F,peers:{Checkbox:mn,Scrollbar:H,Empty:We},self:Fi});var Ii={name:`Tree`,common:q,peers:{Checkbox:$,Scrollbar:J,Empty:Y},self(e){let{primaryColor:t}=e,n=Fi(e);return n.nodeColorActive=I(t,{alpha:.15}),n}},Li={name:`TreeSelect`,common:q,peers:{Tree:Ii,Empty:Y,InternalSelection:zt}},Ri={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function zi(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},Ri),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var Bi={name:`Typography`,common:q,self:zi},Vi={name:`Upload`,common:q,peers:{Button:Q,Progress:di},self(e){let{errorColor:t}=e,n=lt(e);return n.itemColorHoverError=I(t,{alpha:.09}),n}},Hi={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},Ui={name:`FloatButton`,common:q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function Wi(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}z({name:`Heatmap`,common:F,self:Wi});var Gi={name:`Heatmap`,common:q,self(e){let t=Wi(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function Ki(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var qi={name:`IconWrapper`,common:q,self:Ki},Ji={name:`Image`,common:q,peers:{Tooltip:Pn},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},Yi={extraFontSize:`12px`,width:`440px`},Xi={name:`Transfer`,common:q,peers:{Checkbox:$,Scrollbar:J,Input:Z,Empty:Y,Button:Q},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},Yi),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function Zi(){return{}}var Qi={name:`dark`,common:q,Alert:Vt,Anchor:Wt,AutoComplete:qt,Avatar:Xt,AvatarGroup:Qt,BackTop:en,Badge:tn,Breadcrumb:an,Button:Q,ButtonGroup:Kr,Calendar:cn,Card:ln,Carousel:dn,Cascader:gn,Checkbox:$,Code:_n,Collapse:yn,CollapseTransition:xn,ColorPicker:Cn,DataTable:Un,DatePicker:Zn,Descriptions:er,Dialog:tr,Divider:Fr,Drawer:Lr,Dropdown:Nn,DynamicInput:zr,DynamicTags:Hr,Element:Ur,Empty:Y,Ellipsis:Fn,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:Gr,Form:qr,GradientText:Jr,Heatmap:Gi,Icon:Wn,IconWrapper:qi,Image:Ji,Input:Z,InputNumber:Yr,InputOtp:Zr,LegacyTransfer:Xi,Layout:Qr,List:ti,LoadingBar:or,Log:ni,Menu:oi,Mention:ri,Message:ur,Modal:nr,Notification:xr,PageHeader:li,Pagination:Mn,Popconfirm:ui,Popover:X,Popselect:Tn,Progress:di,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:Rn,Rate:fi,Result:hi,Row:$r,Scrollbar:J,Select:On,Skeleton:{name:`Skeleton`,common:q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:_i,Space:Vr,Spin:vi,Statistic:bi,Steps:Ci,Switch:wi,Table:Di,Tabs:Oi,Tag:Rt,Thing:Ai,TimePicker:Jn,Timeline:Mi,Tooltip:Pn,Transfer:Pi,Tree:Ii,TreeSelect:Li,Typography:Bi,Upload:Vi,Watermark:Hi,Split:{name:`Split`,common:q},FloatButton:Ui,FloatButtonGroup:{name:`FloatButtonGroup`,common:q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:q,self:Zi}},$i={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`}},ea={common:{primaryColor:`#e0e0e0`,primaryColorHover:`#f5f5f5`,primaryColorPressed:`#ffffff`,primaryColorSuppl:`#e0e0e0`,bodyColor:`#1a1a1a`,cardColor:`#2a2a2a`,modalColor:`#2a2a2a`,popoverColor:`#2a2a2a`,tableColor:`#2a2a2a`,inputColor:`#2a2a2a`,actionColor:`#252525`,textColorBase:`#e0e0e0`,textColor1:`#e0e0e0`,textColor2:`#a0a0a0`,textColor3:`#666666`,dividerColor:`#3a3a3a`,borderColor:`#3a3a3a`,hoverColor:`rgba(255, 255, 255, 0.06)`,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:`#1a1a1a`,siderColor:`#202020`,headerColor:`#1a1a1a`},Menu:{itemTextColorActive:`#e0e0e0`,itemTextColorActiveHover:`#e0e0e0`,itemTextColorChildActive:`#e0e0e0`,itemIconColorActive:`#e0e0e0`,itemIconColorActiveHover:`#ffffff`,itemColorActive:`rgba(255, 255, 255, 0.08)`,itemColorActiveHover:`rgba(255, 255, 255, 0.12)`,arrowColorActive:`#e0e0e0`},Button:{textColorPrimary:`#1a1a1a`,colorPrimary:`#e0e0e0`,colorHoverPrimary:`#f5f5f5`,colorPressedPrimary:`#ffffff`},Input:{color:`#2a2a2a`,colorFocus:`#2a2a2a`,border:`1px solid #3a3a3a`,borderHover:`1px solid #666666`,borderFocus:`1px solid #e0e0e0`,placeholderColor:`#666666`,caretColor:`#e0e0e0`},Card:{color:`#2a2a2a`,borderColor:`#3a3a3a`},Modal:{color:`#2a2a2a`},Tag:{borderRadius:`6px`},Switch:{railColor:`#3a3a3a`,railColorActive:`#66bb6a`,loadingColor:`#e0e0e0`,opacityDisabled:.4}};function ta(e){return e?ea:$i}var na={class:`model-selector`},ra={class:`model-label`},ia=j(C({__name:`ModelSelector`,setup(r){let{t:i}=ie(),o=Dt(),s=t(()=>o.modelGroups.map(e=>({label:e.label,type:`group`,key:e.provider,children:e.models.map(e=>({label:e,value:e}))})));function c(e){typeof e==`string`&&o.switchModel(e)}return(t,r)=>(a(),n(`div`,na,[A(`div`,ra,x(k(i)(`models.title`)),1),e(k(Ze),{value:k(o).selectedModel,options:s.value,size:`small`,"onUpdate:value":c},null,8,[`value`,`options`])]))}}),[[`__scopeId`,`data-v-724ec6a4`]]),aa={class:`profile-selector`},oa={class:`selector-label`},sa=j(C({__name:`ProfileSelector`,setup(r){let{t:i}=ie(),o=dt(),s=t(()=>o.profiles.map(e=>({label:e.name,value:e.name}))),c=t(()=>o.activeProfile?.name??``);function l(e){typeof e==`string`&&e!==c.value&&o.switchProfile(e).then(e=>{e&&window.location.reload()})}return f(()=>{o.profiles.length===0&&o.fetchProfiles()}),(t,r)=>(a(),n(`div`,aa,[A(`div`,oa,x(k(i)(`sidebar.profiles`)),1),e(k(Ze),{value:c.value,options:s.value,loading:k(o).switching,size:`small`,"onUpdate:value":l},null,8,[`value`,`options`,`loading`])]))}}),[[`__scopeId`,`data-v-3d150b4a`]]),ca=C({__name:`LanguageSwitch`,setup(e){let{locale:n,availableLocales:r,t:i}=ie(),o=t(()=>r.map(e=>({label:i(e===`zh`?`language.zh`:`language.en`),value:e})));function s(e){n.value=e,localStorage.setItem(`hermes_locale`,e)}return(e,t)=>(a(),d(k(Ze),{value:k(n),options:o.value,size:`tiny`,"consistent-menu-width":!1,class:`input-sm`,"onUpdate:value":s},null,8,[`value`,`options`]))}}),la=[`title`],ua={key:0,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},da={key:1,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},fa=j(C({__name:`ThemeSwitch`,setup(e){let{isDark:t,toggleTheme:r}=Et();return(e,i)=>(a(),n(`button`,{class:`theme-switch`,title:k(t)?`Light mode`:`Dark mode`,onClick:i[0]||=(...e)=>k(r)&&k(r)(...e)},[k(t)?(a(),n(`svg`,ua,[...i[1]||=[c(`<circle cx="12" cy="12" r="5" data-v-c304cee6></circle><line x1="12" y1="1" x2="12" y2="3" data-v-c304cee6></line><line x1="12" y1="21" x2="12" y2="23" data-v-c304cee6></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-c304cee6></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-c304cee6></line><line x1="1" y1="12" x2="3" y2="12" data-v-c304cee6></line><line x1="21" y1="12" x2="23" y2="12" data-v-c304cee6></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-c304cee6></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-c304cee6></line>`,9)]])):(a(),n(`svg`,da,[...i[2]||=[A(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`},null,-1)]]))],8,la))}}),[[`__scopeId`,`data-v-c304cee6`]]),pa=`/assets/dance-light-424rxYpN.mp4`,ma=`/assets/dance-dark-BBm98kyn.mp4`,ha=[`src`],ga={class:`sidebar-nav`},_a={class:`sidebar-footer`},va={class:`status-row`},ya={class:`status-text`},ba={class:`version-info`},xa=j(C({__name:`AppSidebar`,setup(i){let{t:o}=ie(),{isDark:s}=Et(),u=xt(),f=v(),p=T(),m=Dt(),h=t(()=>f.name);function g(e){p.push({name:e})}async function _(){await m.doUpdate()?u.success(o(`sidebar.updateSuccess`),{duration:5e3}):u.error(o(`sidebar.updateFailed`))}return(t,i)=>(a(),n(`aside`,{class:E([`sidebar`,{open:k(m).sidebarOpen}])},[A(`div`,{class:`sidebar-logo`,onClick:i[0]||=e=>k(p).push(`/hermes/chat`)},[i[12]||=A(`img`,{src:`/logo.png`,alt:`Hermes`,class:`logo-img`},null,-1),i[13]||=A(`span`,{class:`logo-text`},`Hermes`,-1),A(`video`,{class:`logo-dance`,src:k(s)?k(ma):k(pa),autoplay:``,loop:``,muted:``,playsinline:``},null,8,ha)]),A(`nav`,ga,[A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.chat`}]),onClick:i[1]||=e=>g(`hermes.chat`)},[i[14]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`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),A(`span`,null,x(k(o)(`sidebar.chat`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.jobs`}]),onClick:i[2]||=e=>g(`hermes.jobs`)},[i[15]||=c(`<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-6beb5fa3><rect x="3" y="4" width="18" height="18" rx="2" ry="2" data-v-6beb5fa3></rect><line x1="16" y1="2" x2="16" y2="6" data-v-6beb5fa3></line><line x1="8" y1="2" x2="8" y2="6" data-v-6beb5fa3></line><line x1="3" y1="10" x2="21" y2="10" data-v-6beb5fa3></line></svg>`,1),A(`span`,null,x(k(o)(`sidebar.jobs`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.models`}]),onClick:i[3]||=e=>g(`hermes.models`)},[i[16]||=c(`<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-6beb5fa3><circle cx="12" cy="12" r="3" data-v-6beb5fa3></circle><path d="M12 1v4" data-v-6beb5fa3></path><path d="M12 19v4" data-v-6beb5fa3></path><path d="M1 12h4" data-v-6beb5fa3></path><path d="M19 12h4" data-v-6beb5fa3></path><path d="M4.22 4.22l2.83 2.83" data-v-6beb5fa3></path><path d="M16.95 16.95l2.83 2.83" data-v-6beb5fa3></path><path d="M4.22 19.78l2.83-2.83" data-v-6beb5fa3></path><path d="M16.95 7.05l2.83-2.83" data-v-6beb5fa3></path></svg>`,1),A(`span`,null,x(k(o)(`sidebar.models`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.channels`}]),onClick:i[4]||=e=>g(`hermes.channels`)},[i[17]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})],-1),A(`span`,null,x(k(o)(`sidebar.channels`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.skills`}]),onClick:i[5]||=e=>g(`hermes.skills`)},[i[18]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),A(`polyline`,{points:`2 17 12 22 22 17`}),A(`polyline`,{points:`2 12 12 17 22 12`})],-1),A(`span`,null,x(k(o)(`sidebar.skills`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.memory`}]),onClick:i[6]||=e=>g(`hermes.memory`)},[i[19]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`path`,{d:`M9 18h6`}),A(`path`,{d:`M10 22h4`}),A(`path`,{d:`M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z`})],-1),A(`span`,null,x(k(o)(`sidebar.memory`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.logs`}]),onClick:i[7]||=e=>g(`hermes.logs`)},[i[20]||=c(`<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-6beb5fa3><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-v-6beb5fa3></path><polyline points="14 2 14 8 20 8" data-v-6beb5fa3></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-6beb5fa3></line><line x1="16" y1="17" x2="8" y2="17" data-v-6beb5fa3></line><polyline points="10 9 9 9 8 9" data-v-6beb5fa3></polyline></svg>`,1),A(`span`,null,x(k(o)(`sidebar.logs`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.usage`}]),onClick:i[8]||=e=>g(`hermes.usage`)},[i[21]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`rect`,{x:`3`,y:`12`,width:`4`,height:`9`,rx:`1`}),A(`rect`,{x:`10`,y:`7`,width:`4`,height:`14`,rx:`1`}),A(`rect`,{x:`17`,y:`3`,width:`4`,height:`18`,rx:`1`})],-1),A(`span`,null,x(k(o)(`sidebar.usage`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.profiles`}]),onClick:i[9]||=e=>g(`hermes.profiles`)},[i[22]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`}),A(`circle`,{cx:`12`,cy:`7`,r:`4`})],-1),A(`span`,null,x(k(o)(`sidebar.profiles`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.terminal`}]),onClick:i[10]||=e=>g(`hermes.terminal`)},[i[23]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`polyline`,{points:`4 17 10 11 4 5`}),A(`line`,{x1:`12`,y1:`19`,x2:`20`,y2:`19`})],-1),A(`span`,null,x(k(o)(`sidebar.terminal`)),1)],2),A(`button`,{class:E([`nav-item`,{active:h.value===`hermes.settings`}]),onClick:i[11]||=e=>g(`hermes.settings`)},[i[24]||=A(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`circle`,{cx:`12`,cy:`12`,r:`3`}),A(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z`})],-1),A(`span`,null,x(k(o)(`sidebar.settings`)),1)],2)]),e(sa),e(ia),A(`div`,_a,[A(`div`,va,[A(`div`,{class:E([`status-indicator`,{connected:k(m).connected,disconnected:!k(m).connected}])},[i[25]||=A(`span`,{class:`status-dot`},null,-1),A(`span`,ya,x(k(m).connected?k(o)(`sidebar.connected`):k(o)(`sidebar.disconnected`)),1)],2),e(ca)]),A(`div`,ba,[A(`span`,null,`Hermes Web UI v`+x(k(m).serverVersion||`0.1.0`),1),e(fa)]),k(m).updateAvailable?(a(),d(k(tt),{key:0,type:`primary`,size:`tiny`,block:``,class:`update-btn`,loading:k(m).updating,onClick:_},{default:l(()=>[w(x(k(m).updating?k(o)(`sidebar.updating`):k(o)(`sidebar.updateVersion`,{version:k(m).latestVersion})),1)]),_:1},8,[`loading`])):r(``,!0)])],2))}}),[[`__scopeId`,`data-v-6beb5fa3`]]);function Sa(){let e=T(),t=gt();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:`hermes.jobs`})),n.key===`Escape`){let e=document.querySelector(`.n-modal-mask`);e&&e.querySelector(`.n-base-close`)?.click()}}f(()=>{window.addEventListener(`keydown`,n)}),p(()=>{window.removeEventListener(`keydown`,n)})}var Ca={class:`app-main`},wa=j(C({__name:`App`,setup(i){let{isDark:o}=Et(),s=Dt(),c=v(),u=T(),g=y(!1),_=t(()=>ta(o.value)),b=t(()=>o.value?Qi:null),x=t(()=>c.name===`login`);return m(()=>c.path,()=>{s.closeSidebar()}),u.isReady().then(()=>{g.value=!0}),f(()=>{x.value||(s.loadModels(),s.startHealthPolling())}),p(()=>{s.stopHealthPolling()}),Sa(),(t,i)=>{let o=h(`router-view`);return a(),d(k(wn),{theme:b.value,"theme-overrides":_.value},{default:l(()=>[e(k(_r),null,{default:l(()=>[e(k(ar),null,{default:l(()=>[e(k(Nr),null,{default:l(()=>[g.value?(a(),n(`div`,{key:0,class:E([`app-layout`,{"no-sidebar":x.value}])},[x.value?r(``,!0):(a(),n(`button`,{key:0,class:`hamburger-btn`,onClick:i[0]||=(...e)=>k(s).toggleSidebar&&k(s).toggleSidebar(...e)},[...i[2]||=[A(`img`,{src:`/logo.png`,alt:`Menu`,style:{width:`24px`,height:`24px`}},null,-1)]])),!x.value&&k(s).sidebarOpen?(a(),n(`div`,{key:1,class:`mobile-backdrop`,onClick:i[1]||=(...e)=>k(s).closeSidebar&&k(s).closeSidebar(...e)})):r(``,!0),x.value?r(``,!0):(a(),d(xa,{key:2})),A(`main`,Ca,[e(o)])],2)):r(``,!0)]),_:1})]),_:1})]),_:1})]),_:1},8,[`theme`,`theme-overrides`])}}}),[[`__scopeId`,`data-v-2fd2e439`]]),Ta=localStorage.getItem(`hermes_theme`)||`system`,Ea=window.matchMedia(`(prefers-color-scheme: dark)`).matches;(Ta===`dark`||Ta===`system`&&Ea)&&document.documentElement.classList.add(`dark`);var Da=new URLSearchParams(window.location.search),Oa=window.location.hash.split(`?`)[1],ka=Da.get(`token`)||(Oa?new URLSearchParams(Oa).get(`token`):null);ka&&(window.__LOGIN_TOKEN__=ka);var Aa=O(wa);Aa.use(ne()),Aa.use(Mt),Aa.use(ee),Aa.mount(`#app`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e}from"./router-k7Mt11r-.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t};
|