@fv-ui/ai-chat 1.6.0 → 1.6.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/README.md +9 -7
- package/dist/index.d.ts +15 -1
- package/dist/style.css +1 -1
- package/es/index.mjs +126 -23
- package/lib/index.js +112 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -407,7 +407,8 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
407
407
|
| status | 'loading' \| 'success' \| 'error' | 'success' | loading:图标位换 spinner + 名称行下「上传中…」(卡内显示);error 红边 + 失败原因 |
|
|
408
408
|
| errorText | string | '' | 失败原因红字(error 态展示于卡片下方,超宽截断 title 全文) |
|
|
409
409
|
| imageSize | string | '' | 缩略图尺寸(width/height 同值) |
|
|
410
|
-
| onDelete | () => void | — | 删除按钮回调 |
|
|
410
|
+
| onDelete | () => void | — | 删除按钮回调(按钮常驻右上角,hover 浮现) |
|
|
411
|
+
| onDownload | () => void | — | 下载回调:注入时右上角渲染下载按钮(hover 浮现,与删除按钮同位置)。消息附件卡走此路(内置触发浏览器下载),输入区附件卡不注入 |
|
|
411
412
|
| locale | LocaleInput(string \| 对象) | undefined | 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) |
|
|
412
413
|
|
|
413
414
|
| Slot | 说明 |
|
|
@@ -521,7 +522,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
521
522
|
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式(透传 AiMessages→AiMessage):'list' 纵向列表一行一条,渲染在回答操作区下方,顶部灰色分隔线 + 灰色「追问」标题(标题文案经语言包 `aiMessage.followupsTitle` 自定义),历史消息同样渲染;'chips' 为旧横向气泡形态(换行铺排,无标题) |
|
|
522
523
|
| features | AiChatFeatures | {} | 特性开关 { artifacts?, tts?, queue?, continueGenerate?, fullscreenEditor? }(当前仅 artifacts 生效);artifacts 传 `true` 用默认配置,传对象 `{ width?, minWidth?, maxWidth?, autoOpen?, codeBlockTrigger? }` 自定义:宽度三参控面板尺寸(默认 420px/360px/60%),autoOpen(默认 true)检测到代码块自动弹面板,codeBlockTrigger(默认 true)在消息 html/svg 代码块右上角显示「预览」按钮、点击打开对应面板 |
|
|
523
524
|
| allowAttachments | boolean | false | 开启输入区附件上传(回形针在操作栏左侧与提交按钮同行,已选列表在输入框上方;只传附件不输文字也可提交) |
|
|
524
|
-
| accept | string | '' | 附件 input accept 属性(透传 Attachments),如
|
|
525
|
+
| accept | string | '' | 附件 input accept 属性(透传 Attachments),如 `image/*,.pdf,.txt`。缺省 '' 不限制(zip/exe 等是否可传由消费方自主决定);显式传值时除选择器过滤外组件内注入 beforeUpload 硬校验——白名单外文件(选择器切「所有文件」绕过 accept)不入列,自动 toast 提示(文案经语言包 `errors.attachmentRejected` 自定义,`{name}` 为文件名)并上抛 @attachment-reject |
|
|
525
526
|
| attachmentLimit | number | 0 | 附件数量上限(0 不限,超限走 @attachment-exceed) |
|
|
526
527
|
| uploadAttachment | (file, item) => Promise\<Partial\<AttachmentItem\> \| string \| undefined \| void\> \| ... | undefined | 附件上传钩子(先传后发):选文件即调,成功返回附件描述(id/name/type 等回填列表项,id 随发送进入 adapter 的 user 消息 files);返回错误文案串/抛错置 error 可重传。缺省不调(附件仅本地待发展示,不落服务端);上传中(loading 项)提交按钮禁用拒发,error 残留项不随发送 |
|
|
527
528
|
| resolveFileUrl | (file: ChatFile) => Promise\<string\> \| string | undefined | 附件地址解析钩子(鉴权取流):消息气泡渲染附件 url 前调用,返回可直渲地址(如 JWT fetch 换 blob objectURL);缺省原样使用 url(blob/dataURL/公开地址)。远端 url 解析结果组件内按 url 缓存 + 在途去重;解析失败回落原 url 不阻塞渲染 |
|
|
@@ -541,6 +542,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
541
542
|
| error | (err, message?) 生成出错 |
|
|
542
543
|
| branch-change | (dir, message) 分支切换 |
|
|
543
544
|
| attachment-exceed | (file) 附件超过 attachmentLimit 上限 |
|
|
545
|
+
| attachment-reject | (file) 附件被类型白名单拦截(显式 accept 的白名单外文件,如 zip/exe;文件选择器切「所有文件」绕过 accept 时由 beforeUpload 兜底拦截)。组件已自动 toast 提示,事件仅供消费方埋点/追加处理 |
|
|
544
546
|
| attachment-uploaded | (item, { ok, message? }) 附件上传钩子落定(allowAttachments + uploadAttachment 场景):ok=false 时 message 为失败原因,宿主可 toast/埋点 |
|
|
545
547
|
| message-file-click | (file, message) 点击消息气泡附件 chips:默认行为——图片类经 resolveFileUrl 解析后打开内置 ElImageViewer 放大(同消息多图轮播),文档类无内置行为,宿主接此事件自行下载 |
|
|
546
548
|
| feedback-change | (message, action: 'LIKE' \| 'DISLIKE' \| 'CLEAR') 评价提交成功(乐观落定后触发;message.feedback 已更新),宿主可埋点/联动 |
|
|
@@ -652,7 +654,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
652
654
|
| message | MessageNode | —(必填) | 消息节点 |
|
|
653
655
|
| branch | AiMessageBranchInfo | undefined | 分支元数据 { count, index };缺省视为单分支 |
|
|
654
656
|
| isLast | boolean | false | 是否当前链最后一条消息(由 AiMessages 注入)。**追问建议已不再限链尾**(历史消息同样渲染),本 prop 仅作透传兼容保留,不参与任何显隐判定 |
|
|
655
|
-
| showActions | boolean | true |
|
|
657
|
+
| showActions | boolean | true | 显示复制/重生成。assistant **待回答落定(status=done)才渲染**——生成中(pending/streaming)不出复制/重生成/评价等工具按钮;error 无正文也不出;user 仅有文案(content 非空)时才渲染复制按钮——纯附件无文字的消息复制的是一段空串,按钮无意义不出;分支切换器不受此门控 |
|
|
656
658
|
| showBranchSwitch | boolean | true | 显示分支切换器(branch.count > 1 时) |
|
|
657
659
|
| showUserAvatar | boolean | false | 显示用户头像(默认隐藏;false 时用户消息不渲染头像块) |
|
|
658
660
|
| showUserName | boolean | false | 显示用户名称(默认隐藏;false 时用户消息不渲染头部名称行) |
|
|
@@ -682,7 +684,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
682
684
|
| --- | --- |
|
|
683
685
|
| copy / regenerate / branch-change | (message) / (message) / (dir, message) |
|
|
684
686
|
| followup-select | (item, message) 点击追问建议(item 为建议文本;assistant 消息带 suggestions 即渲染——历史消息同样显示,不限链尾;status 落 done 后可点;AiChat 内部已接住转 send,直接用 AiMessage 时的消费方需自行接管发送) |
|
|
685
|
-
| file-click | (file, message) 点击附件:图片缩略图默认打开内置 ElImageViewer 放大(同消息多图轮播,url 经 resolveFileUrl 解析);文档附件渲染为 FilesCard 卡片(类型图标 + 名称/大小,复用输入区同款)
|
|
687
|
+
| file-click | (file, message) 点击附件:图片缩略图默认打开内置 ElImageViewer 放大(同消息多图轮播,url 经 resolveFileUrl 解析);文档附件渲染为 FilesCard 卡片(类型图标 + 名称/大小,复用输入区同款),卡片右上角下载按钮 hover 浮现——点击内置触发浏览器下载(url 经 resolveFileUrl 解析),不触发本事件;点击卡片本体上抛本事件由宿主接管 |
|
|
686
688
|
| feedback-change | (message, action: 'LIKE' \| 'DISLIKE' \| 'CLEAR') 评价提交成功(乐观落定后触发;message.feedback 已更新,宿主可埋点/联动) |
|
|
687
689
|
| feedback-error | (message: string) 评价提交失败(钩子 reject/返回错误文案;乐观更新已回滚,message 为错误文案) |
|
|
688
690
|
| typing | 打字机输出中(流式期间节奏性触发) |
|
|
@@ -694,7 +696,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
694
696
|
| assistant-avatar | 自定义助手头像(作用域 { status, message },status 为 thinking/done/error,可按状态换头像;优先于 assistantAvatar props;未传插槽且未传 assistantAvatar 时内置头像本身随状态切换) |
|
|
695
697
|
| user-name | 自定义用户名称(作用域 { message };优先于 userName props) |
|
|
696
698
|
| assistant-name | 自定义助手名称(作用域 { message };优先于 assistantName props) |
|
|
697
|
-
| message-files | 自定义附件渲染(作用域 { message, files };默认:图片缩略图按钮(点击内置放大预览),文档 FilesCard 卡片(类型图标 +
|
|
699
|
+
| message-files | 自定义附件渲染(作用域 { message, files };默认:图片缩略图按钮(点击内置放大预览),文档 FilesCard 卡片(类型图标 + 名称/大小,复用输入区同款,卡片右上下载按钮 hover 浮现可下载);user 消息只传附件无文字时不渲染空正文气泡) |
|
|
698
700
|
| message-actions | 自定义操作区(作用域 { message }) |
|
|
699
701
|
|
|
700
702
|
| Ref | 说明 |
|
|
@@ -770,7 +772,7 @@ const adapter = FvCommonAdapter({
|
|
|
770
772
|
- `tool` 事件经 `onTool` → `useChat.onToolEvent` → `AiChat @tool-event` 上抛,消费方展示「正在查询库存…」等中间态
|
|
771
773
|
- 追问建议(V58+):`suggestions` 事件(流式收尾 0..1 次,最后一个 delta 后、message_end 前,载荷 `{items: string[]}`)经可选 `onSuggestions` 上抛,`useChat` 回写 `MessageNode.suggestions`,AiMessage 对带 suggestions 的 assistant 消息渲染追问(默认纵向列表样式,`followupStyle='chips'` 切回横向气泡;历史消息同样渲染,不再限链尾);开关关闭/模型未产出/中断/失败无此事件;历史恢复用导出的 `parseSuggestions(raw)` 安全解析 `FvCommonMessage.suggestions`(JSON 数组原文透传,脏数据按无建议)
|
|
772
774
|
- 消息评价(V58+):`FvCommonMessage.feedback`(LIKE/DISLIKE,未评价/旧数据恒 null)、`feedbackComment`(附言 ≤500 字)、`feedbackTime`(评价落库时间)三字段同款容错;历史恢复由消费方映射为 `MessageNode.feedback` 灌入展示;评价提交走独立端点(POST /message/feedback),不经本适配器——接 `AiChat` 的 `feedbackHandler` 钩子即可
|
|
773
|
-
- 附件快照(1.4.1+):user 行 `FvCommonMessage.attachments`(id/originalName/type/suffix/sizeBytes/downloadUrl,旧数据/无附件恒 null),历史回放映射 `MessageNode.files` 渲染(图片缩略图 + 文档 FilesCard
|
|
775
|
+
- 附件快照(1.4.1+):user 行 `FvCommonMessage.attachments`(id/originalName/type/suffix/sizeBytes/downloadUrl,旧数据/无附件恒 null),历史回放映射 `MessageNode.files` 渲染(图片缩略图 + 文档 FilesCard 卡片,卡片右上下载按钮 hover 浮现可下载;downloadUrl 需鉴权取流时配 `resolveFileUrl` 钩子,下载/预览均走解析后地址)
|
|
774
776
|
- 配套 DTO 类型:`FvCommonSessionItem` / `FvCommonMessage` / `FvCommonSessionDetail` / `FvCommonMessagePage`(消费方直接调会话管理端点时用)
|
|
775
777
|
|
|
776
778
|
### useMessages(initial?)
|
|
@@ -914,7 +916,7 @@ configureLocale(jaJP)
|
|
|
914
916
|
| aiMessage | copy / regenerate / prevBranch / nextBranch / defaultUserName / defaultAssistantName / querying / queried / generateFailed / followups / followupsTitle / loadingPhrases / feedback.{like, dislike, dislikeTitle, dislikePlaceholder, submit, skip, failed, cleared} | 复制 / 重新生成 / 上一分支 / 下一分支 / 你 / Gizmo / 正在查询 / 已查询 / 生成失败 / 追问建议 / 追问 / [正在思考…, 正在整理思路…, 正在生成回答…] / 点赞 / 点踩 / 抱歉,请告诉 {name} 哪里不好 / 欢迎说说你的想法 / 提交 / 跳过 / 评价提交失败 / 已取消评价 | Copy / Regenerate / Previous branch / Next branch / You / Gizmo / Querying / Queried / Generation failed / Follow-up suggestions / Follow-ups / [Thinking..., Organizing thoughts..., Generating your answer...] / Like / Dislike / Sorry — tell {name} what went wrong / Feel free to share your thoughts / Submit / Skip / Failed to submit feedback / Feedback removed |
|
|
915
917
|
| aiArtifacts | copy / download / fullscreen / close | 复制 / 下载 / 全屏 / 关闭 | Copy / Download / Fullscreen / Close |
|
|
916
918
|
| chat | fileTag / fileImageTag / filesSystemPrompt / toolDuration / continuePrompt | [附件] {name} / (图片) / 用户随消息提供了以下文件:\n{files} / 用时 {s} / 请基于以上内容继续完成回答... | [File] {name} / ␣(image) / The user provided... / Took {s} / Continue completing... |
|
|
917
|
-
| errors | requestFailed / sessionIdMissing / noBody / generateFailed / recordUnsupported / speechError | 请求失败 / 缺少 sessionId(...) / 响应无 body / 生成失败 / 当前环境不支持音频录制 / 语音识别错误: {error} | Request failed / sessionId is missing... / Response has no body / Generation failed / Audio recording... / Speech recognition error: {error} |
|
|
919
|
+
| errors | requestFailed / sessionIdMissing / noBody / generateFailed / recordUnsupported / speechError / attachmentRejected | 请求失败 / 缺少 sessionId(...) / 响应无 body / 生成失败 / 当前环境不支持音频录制 / 语音识别错误: {error} / 不支持该类型文件,禁止上传:{name} | Request failed / sessionId is missing... / Response has no body / Generation failed / Audio recording... / Speech recognition error: {error} / This file type is not supported: {name} |
|
|
918
920
|
|
|
919
921
|
占位符 `{label}`/`{name}`/`{files}`/`{s}`/`{n}`/`{error}` 由组件在渲染/构造时替换。`querying`/`queried` 与工具名拼接时由组件显式补一个空格(显示为「正在查询 xxx」),词条本身不含尾随空格,覆盖时无需保留间距。`welcome.greetingPrefix` 保留尾随空格(与 greetingName 直接拼接,高亮 span 交界处)。`aiMessage.loadingPhrases` 为生成中占位的轮换文案数组(进入占位立即显示第一条,此后每 3s 轮换循环);覆盖时数组**整体替换**(deepMerge 不合并数组叶子),传空数组则只显示 spinner 无文案。`aiMessage.feedback.dislikeTitle` 中的 `{name}` 由组件渲染点踩附言弹窗时替换为 `assistantName`(空串回落 `defaultAssistantName`),如需静态标题请直接传完整文案。
|
|
920
922
|
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ declare const zhCN: {
|
|
|
88
88
|
};
|
|
89
89
|
filesCard: {
|
|
90
90
|
remove: string;
|
|
91
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
92
|
+
download: string;
|
|
91
93
|
};
|
|
92
94
|
conversations: {
|
|
93
95
|
menuLabel: string;
|
|
@@ -162,6 +164,8 @@ declare const zhCN: {
|
|
|
162
164
|
generateFailed: string;
|
|
163
165
|
recordUnsupported: string;
|
|
164
166
|
speechError: string;
|
|
167
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
168
|
+
attachmentRejected: string;
|
|
165
169
|
};
|
|
166
170
|
};
|
|
167
171
|
|
|
@@ -1221,6 +1225,8 @@ type __VLS_Props$6 = {
|
|
|
1221
1225
|
errorText?: string;
|
|
1222
1226
|
/** 删除回调:右上删除按钮点击时调用 */
|
|
1223
1227
|
onDelete?: () => void;
|
|
1228
|
+
/** 下载回调:注入时右上角渲染下载按钮(hover 浮现,与删除按钮同位互斥),点击调用 */
|
|
1229
|
+
onDownload?: () => void;
|
|
1224
1230
|
/** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
|
|
1225
1231
|
locale?: LocaleInput;
|
|
1226
1232
|
};
|
|
@@ -1238,6 +1244,7 @@ declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$6, {}, {}, {}, {}, v
|
|
|
1238
1244
|
imageSize: string;
|
|
1239
1245
|
errorText: string;
|
|
1240
1246
|
onDelete: () => void;
|
|
1247
|
+
onDownload: () => void;
|
|
1241
1248
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1242
1249
|
declare const __VLS_export$6: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
1243
1250
|
declare const _default$6: typeof __VLS_export$6;
|
|
@@ -2372,7 +2379,12 @@ type __VLS_Props$1 = {
|
|
|
2372
2379
|
features?: AiChatFeatures;
|
|
2373
2380
|
/** 开启输入区附件上传(输入框上方回形针 + 附件列表,发送时随 @send 上抛 files) */
|
|
2374
2381
|
allowAttachments?: boolean;
|
|
2375
|
-
/**
|
|
2382
|
+
/**
|
|
2383
|
+
* 附件 input accept 属性(透传 Attachments),如 'image/*,.pdf,.txt'。缺省 '' 不限制
|
|
2384
|
+
* (zip/exe 等是否可传由消费方 accept 自主决定);显式传值时除选择器过滤外,
|
|
2385
|
+
* 组件内注入 beforeUpload 硬校验——白名单外文件(选择器切「所有文件」绕过 accept)
|
|
2386
|
+
* 不入列,toast 提示并上抛 @attachment-reject
|
|
2387
|
+
*/
|
|
2376
2388
|
accept?: string;
|
|
2377
2389
|
/** 附件数量上限(透传 Attachments,0 不限) */
|
|
2378
2390
|
attachmentLimit?: number;
|
|
@@ -2500,6 +2512,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
|
|
|
2500
2512
|
"suggestion-select": (item: AiChatSuggestion) => any;
|
|
2501
2513
|
"message-complete": (message: MessageNode) => any;
|
|
2502
2514
|
"attachment-exceed": (file: File) => any;
|
|
2515
|
+
"attachment-reject": (file: File) => any;
|
|
2503
2516
|
"attachment-uploaded": (item: AttachmentItem, result: {
|
|
2504
2517
|
ok: boolean;
|
|
2505
2518
|
message?: string;
|
|
@@ -2521,6 +2534,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
|
|
|
2521
2534
|
"onSuggestion-select"?: ((item: AiChatSuggestion) => any) | undefined;
|
|
2522
2535
|
"onMessage-complete"?: ((message: MessageNode) => any) | undefined;
|
|
2523
2536
|
"onAttachment-exceed"?: ((file: File) => any) | undefined;
|
|
2537
|
+
"onAttachment-reject"?: ((file: File) => any) | undefined;
|
|
2524
2538
|
"onAttachment-uploaded"?: ((item: AttachmentItem, result: {
|
|
2525
2539
|
ok: boolean;
|
|
2526
2540
|
message?: string;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fv-markdown{color:var(--el-text-color-primary,#303133);line-height:1.7;word-break:break-word}.fv-markdown h1,.fv-markdown h2,.fv-markdown h3,.fv-markdown h4,.fv-markdown h5,.fv-markdown h6{color:var(--el-text-color-primary,#303133);font-weight:600;margin:1em 0 .5em}.fv-markdown h1{font-size:1.5em}.fv-markdown h2{font-size:1.3em}.fv-markdown h3{font-size:1.15em}.fv-markdown p{margin:.5em 0}.fv-markdown ol,.fv-markdown ul{margin:.5em 0;padding-left:2em}.fv-markdown ol ol,.fv-markdown ol ul,.fv-markdown ul ol,.fv-markdown ul ul{margin:.2em 0}.fv-markdown ul{list-style:disc}.fv-markdown ol{list-style:decimal}.fv-markdown ul ul{list-style:circle}.fv-markdown ul ul ul{list-style:square}.fv-markdown li{margin:.2em 0}.fv-markdown a{color:var(--el-color-primary,#409eff);text-decoration:none}.fv-markdown a:hover{text-decoration:underline}.fv-markdown blockquote{border-left:4px solid var(--el-border-color,#dcdfe6);color:var(--el-text-color-regular,#606266);margin:.5em 0;padding:.4em 1em}.fv-markdown blockquote,.fv-markdown code{background:var(--el-fill-color-light,#f5f7fa)}.fv-markdown code{border-radius:3px;color:var(--el-color-danger,#f56c6c);font-family:JetBrains Mono,Consolas,Courier New,monospace;font-size:.9em;padding:.15em .4em}.fv-markdown pre{background:#282c34;border-radius:6px;margin:.5em 0;overflow-x:auto;padding:1em}.fv-markdown pre code{background:transparent;color:#dcdfe6;font-size:.9em;line-height:1.6;padding:0}.fv-markdown pre.fv-md-code-pre{padding-top:2em;position:relative}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger{background:hsla(0,0%,100%,.12);border:1px solid hsla(0,0%,100%,.22);border-radius:var(--el-border-radius-base,4px);color:#dcdfe6;cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:1.5;padding:2px 10px;position:absolute;right:8px;top:6px}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger:hover{background:hsla(0,0%,100%,.22);color:#fff}.fv-markdown table{border-collapse:collapse;margin:.5em 0;width:100%}.fv-markdown table td,.fv-markdown table th{border:1px solid var(--el-border-color-lighter,#ebeef5);padding:.5em .8em;text-align:left}.fv-markdown table th{background:var(--el-fill-color-lighter,#fafafa);font-weight:600}.fv-markdown table tr:nth-child(2n) td{background:var(--el-fill-color-blank,#fafcff)}.fv-markdown .fv-md-table-wrap{margin:.5em 0}.fv-markdown .fv-md-table-wrap table{margin:0}.fv-markdown .fv-md-table-bar{background:var(--el-fill-color-light,#f5f7fa);border:1px solid var(--el-border-color-lighter,#ebeef5);border-bottom:none;border-radius:3px 3px 0 0;display:flex;gap:4px;justify-content:flex-end;padding:2px 4px}.fv-markdown .fv-md-table-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;height:24px;justify-content:center;padding:0;width:24px}.fv-markdown .fv-md-table-btn:hover{background:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-markdown .fv-md-table-btn svg{display:block;height:14px;width:14px}.fv-markdown .fv-md-table-btn .fv-md-table-ic.is-check,.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic{display:none}.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic.is-check{display:block}.fv-markdown .fv-md-table-btn.is-copied{color:var(--el-color-success,#67c23a)}.fv-markdown .katex-display{margin:.5em 0;overflow-x:auto}.fv-md-table-tip{background:#303133;border-radius:var(--el-border-radius-base,4px);box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));color:#fff;display:none;font-size:var(--el-font-size-base,12px);line-height:1.4;padding:5px 11px;pointer-events:none;position:fixed;transform:translate(-50%,calc(-100% - 8px));white-space:nowrap;z-index:calc(var(--el-index-popper, 2000) - 1)}.fv-md-table-tip:after{background:inherit;bottom:-4px;content:"";height:8px;left:50%;position:absolute;transform:translateX(-50%) rotate(45deg);width:8px}.fv-typewriter{display:inline-block;max-width:100%;position:relative}.fv-typewriter .fv-typewriter-text{white-space:pre-wrap;word-break:break-word}.fv-typewriter .fv-typewriter-suffix{animation:fv-typewriter-blink 1s step-start infinite;display:inline-block}.fv-typewriter .fv-typewriter-fog{animation:fv-typewriter-fog-in .3s ease-out both;background:linear-gradient(90deg,transparent,var(--fv-typewriter-fog-color,var(--el-bg-color,#fff)));bottom:0;pointer-events:none;position:absolute;right:0;top:0}@keyframes fv-typewriter-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes fv-typewriter-fog-in{0%{opacity:0}to{opacity:1}}.fv-bubble{align-items:flex-start;display:flex;gap:var(--fv-bubble-avatar-gap,12px)}.fv-bubble.is-end{flex-direction:row-reverse;justify-content:flex-end}.fv-bubble.is-end .fv-bubble-main{align-items:flex-end}.fv-bubble .fv-bubble-avatar{display:flex;flex-shrink:0}.fv-bubble .fv-bubble-avatar .el-avatar{height:var(--fv-bubble-avatar-size,36px);width:var(--fv-bubble-avatar-size,36px)}.fv-bubble .fv-bubble-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;max-width:100%;min-width:0}.fv-bubble .fv-bubble-main .fv-bubble-footer,.fv-bubble .fv-bubble-main .fv-bubble-header{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px)}.fv-bubble .fv-bubble-main .fv-bubble-footer{margin-top:4px}.fv-bubble .fv-bubble-content{border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;padding:var(--el-main-padding,12px) calc(var(--el-main-padding, 12px) + 4px);position:relative;word-break:break-word}.fv-bubble .fv-bubble-content.no-padding{padding:0}.fv-bubble .fv-bubble-content .fv-bubble-text{white-space:pre-wrap}.fv-bubble.shape-round .fv-bubble-content{border-radius:var(--el-border-radius-round,20px)}.fv-bubble.shape-corner .fv-bubble-content{border-start-start-radius:calc(var(--el-border-radius-base, 4px) - 2px)}.fv-bubble.is-end.shape-corner .fv-bubble-content{border-start-end-radius:calc(var(--el-border-radius-base, 4px) - 2px);border-start-start-radius:calc(var(--el-border-radius-base, 4px) + 4px)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-filled .fv-bubble-content{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-outlined .fv-bubble-content{border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6)}.fv-bubble.variant-outlined .fv-bubble-content{background:none}.fv-bubble.variant-shadow .fv-bubble-content{background:none;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12))}.fv-bubble .fv-bubble-content.no-style{background:transparent;border:none;box-shadow:none;padding:0}.fv-bubble .fv-bubble-loading{align-items:center;display:flex;gap:5px;min-height:1em;width:fit-content}.fv-bubble .fv-bubble-loading .fv-bubble-loading-dot{animation:fv-bubble-wave 1s ease-in-out infinite;background-color:var(--el-color-primary,#409eff);border-radius:50%;height:5px;width:5px}@keyframes fv-bubble-wave{0%,to{transform:translateY(-2px)}50%{transform:translateY(2px)}}.fv-bubble-list{display:flex;flex-direction:column;min-height:0;position:relative}.fv-bubble-list .fv-bubble-list-scroll{display:flex;flex-direction:column;gap:16px;min-height:0;overflow-y:auto}.fv-bubble-list .fv-bubble-list-scroll>.fv-bubble{flex-shrink:0}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar{overflow-y:scroll;scrollbar-width:auto}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar{-webkit-appearance:none;width:6px}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar-thumb{background-color:var(--el-border-color,#dcdfe6);border-radius:3px}.fv-bubble-list .fv-bubble-list-back{align-items:center;bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));display:inline-flex;justify-content:center;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.fv-bubble-list .fv-bubble-list-back .fv-bubble-list-back-icon{align-items:center;display:inline-flex;justify-content:center;line-height:1}.fv-bubble-list-fade-enter-active,.fv-bubble-list-fade-leave-active{transition:opacity .2s ease,transform .2s ease}.fv-bubble-list-fade-enter-from,.fv-bubble-list-fade-leave-to{opacity:0;transform:translate(-50%,4px)}.fv-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-sender .fv-sender-header{animation:fv-sender-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-sender .fv-sender-body{background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;flex-direction:column;gap:6px;padding:8px 12px;transition:border-color .2s}.fv-sender .fv-sender-body .fv-sender-body-top:empty{display:none}.fv-sender .fv-sender-body .fv-sender-row{align-items:flex-end;display:flex;gap:8px}.fv-sender .fv-sender-body .fv-sender-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:calc(var(--el-border-radius-base, 4px) + 2px);display:flex;flex:1;gap:8px;min-width:0;outline:none;padding:4px 8px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel:hover{color:var(--el-color-danger,#f56c6c)}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave{align-items:center;direction:rtl;display:flex;flex:1;gap:2px;height:22px;justify-content:flex-end;min-width:0;overflow:hidden}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave .fv-sender-recording-bar{background-color:var(--el-color-primary,#409eff);border-radius:1px;flex-shrink:0;min-height:2px;opacity:.75;width:2px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-duration{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:var(--el-font-size-small,12px);font-variant-numeric:tabular-nums;min-width:3em;text-align:center}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-confirm{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-input{display:flex;flex:1;min-width:0;position:relative}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea{background:transparent;border:none;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;min-width:0;outline:none;padding:4px 0;resize:none}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea:disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea[readonly]{cursor:default}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-trigger-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-sender .fv-sender-body .fv-sender-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-action-left{align-items:center;display:flex;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech{color:var(--el-text-color-regular,#606266);padding:6px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech .el-icon{font-size:18px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):active,.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):hover{background-color:transparent;color:var(--el-text-color-primary,#303133)}.fv-sender.variant-updown .fv-sender-row{align-items:stretch;flex-direction:column;gap:6px}.fv-sender.variant-updown .fv-sender-row .fv-sender-input{width:100%}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions{align-self:flex-end;justify-content:flex-end}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left){align-self:stretch}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left) .fv-sender-action-left{margin-right:auto}.fv-sender.is-focused .fv-sender-body{border-color:var(--el-color-primary,#409eff)}.fv-sender.is-disabled .fv-sender-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-sender.has-shadow .fv-sender-body{box-shadow:0 8px 20px 0 var(--el-box-shadow-color,rgba(0,0,0,.08));transition:border-color .2s,box-shadow .2s}.fv-sender.has-shadow.is-focused .fv-sender-body{box-shadow:0 8px 24px 0 var(--el-box-shadow-color,rgba(0,0,0,.12))}.fv-sender .fv-sender-stop{--fv-sender-stop-icon-size:16px;--fv-sender-stop-ring-width:2px;--fv-sender-stop-ring-duration:1.1s;position:relative}.fv-sender .fv-sender-stop .el-icon{align-items:center;display:inline-flex;font-size:var(--fv-sender-stop-icon-size);justify-content:center}.fv-sender .fv-sender-stop .fv-stop-icon{display:block}.fv-sender .fv-sender-stop .fv-sender-stop-ring{height:100%;inset:0;overflow:visible;pointer-events:none;position:absolute;width:100%}.fv-sender .fv-sender-stop .fv-sender-stop-ring .fv-sender-stop-ring-rect{x:calc(var(--fv-sender-stop-ring-width)/2);y:calc(var(--fv-sender-stop-ring-width)/2);fill:none;stroke:rgb(255,255,255,var(--ring-alpha,.9));stroke-width:var(--fv-sender-stop-ring-width);stroke-dasharray:0 calc(100 - var(--ring-len, 10)) var(--ring-len,10) 0;animation:fv-sender-stop-spin var(--fv-sender-stop-ring-duration) linear infinite;height:calc(100% - var(--fv-sender-stop-ring-width));width:calc(100% - var(--fv-sender-stop-ring-width))}@media (prefers-reduced-motion:reduce){.fv-sender .fv-sender-stop .fv-sender-stop-ring-rect{animation:none}}.fv-sender .fv-sender-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}@keyframes fv-sender-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}@keyframes fv-sender-stop-spin{to{stroke-dashoffset:-100}}.fv-mention-sender{position:relative}.fv-mention-sender .fv-mention-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-mention-popover .fv-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-mention-popover .fv-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-mention-popover .fv-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-mention-popover .fv-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-mention-popover .fv-mention-item.is-active,.fv-mention-popover .fv-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-mention-popover .fv-mention-item .fv-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-mention-popover .fv-mention-item .fv-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-mention-popover .fv-mention-item .fv-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-editor-sender .fv-editor-header{animation:fv-editor-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-editor-sender .fv-editor-body{align-items:flex-end;background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;gap:8px;padding:8px 12px;transition:border-color .2s}.fv-editor-sender .fv-editor-body .fv-editor-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-editor-sender .fv-editor-body .fv-editor-input{display:flex;flex:1;min-width:0;position:relative}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content{background:transparent;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;max-height:220px;min-width:0;outline:none;overflow-y:auto;padding:4px 0;white-space:pre-wrap;word-break:break-word}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content:empty:before{color:var(--el-text-color-placeholder,#a8abb2);content:attr(data-placeholder);pointer-events:none}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-editor-sender .fv-editor-body .fv-editor-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-editor-sender .fv-editor-tag{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--el-color-primary,#409eff);display:inline-flex;font-size:var(--el-font-size-base,14px);line-height:20px;margin:0 1px;max-width:100%;padding:0 6px;user-select:all;white-space:nowrap}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag{padding:0 2px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input{background:transparent;border:none;box-sizing:border-box;color:inherit;font:inherit;line-height:20px;outline:none;padding:0 4px;width:120px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-editor-sender .fv-editor-tag.fv-editor-tag-htmlTag{display:inline;user-select:text;white-space:normal}.fv-editor-sender.variant-updown .fv-editor-body{align-items:stretch;flex-direction:column;gap:6px}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-input{width:100%}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-actions{align-self:flex-end;justify-content:flex-end}.fv-editor-sender.device-h5 .fv-editor-body{padding:6px 10px}.fv-editor-sender.is-focused .fv-editor-body{border-color:var(--el-color-primary,#409eff)}.fv-editor-sender.is-disabled .fv-editor-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-sender .fv-editor-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}.fv-editor-mention-popover .fv-editor-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-editor-mention-popover .fv-editor-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-editor-mention-popover .fv-editor-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-editor-mention-popover .fv-editor-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-editor-mention-popover .fv-editor-mention-item.is-active,.fv-editor-mention-popover .fv-editor-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-tip-popover .fv-editor-tip-panel{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:6px 8px}.fv-editor-select-dialog .fv-editor-select-group+.fv-editor-select-group{margin-top:12px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:600;margin-bottom:8px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item{align-items:center;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:8px;transition:border-color .2s}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item:hover{border-color:var(--el-color-primary,#409eff)}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-preview{border-radius:var(--el-border-radius-base,4px);height:56px;object-fit:cover;width:100%}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-name{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-small,12px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes fv-editor-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}.fv-thinking{background-color:var(--fv-thinking-bg,transparent);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--fv-thinking-color,var(--el-text-color-regular,#606266));display:flex;flex-direction:column;width:100%}.fv-thinking .fv-thinking-toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font:inherit;font-size:15px;gap:6px;line-height:22px;padding:4px 0;text-align:left;transition:color .2s;user-select:none}.fv-thinking .fv-thinking-toggle:hover{color:var(--fv-thinking-color,var(--el-color-primary,#409eff))}.fv-thinking .fv-thinking-toggle:focus{outline:none}.fv-thinking.is-disabled .fv-thinking-toggle{cursor:not-allowed;opacity:.6}.fv-thinking .fv-thinking-status-icon{align-items:center;display:inline-flex;font-size:16px;height:18px;justify-content:center;width:18px}.fv-thinking .fv-thinking-status-icon .fv-thinking-dot{background-color:var(--el-color-primary,#409eff);border-radius:50%;height:8px;width:8px}.fv-thinking .fv-thinking-status-icon .is-loading{animation:fv-thinking-rotate 1s linear infinite;color:var(--el-color-primary,#409eff)}.fv-thinking .fv-thinking-status-icon .is-success{color:var(--el-color-success,#67c23a)}.fv-thinking .fv-thinking-status-icon .is-error{color:var(--el-color-danger,#f56c6c)}.fv-thinking .fv-thinking-label{flex:0 1 auto;max-width:60%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-thinking .fv-thinking-arrow{align-items:center;display:inline-flex;transition:transform .3s ease}.fv-thinking .fv-thinking-arrow.is-open{transform:rotate(180deg)}.fv-thinking .fv-thinking-content{box-sizing:border-box;color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;padding:8px 0;white-space:pre-wrap;word-break:break-word}@keyframes fv-thinking-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-chain{box-sizing:border-box;display:flex;font-size:var(--el-font-size-base,14px)}.fv-chain.is-vertical{flex-direction:column}.fv-chain.is-vertical .fv-chain-item{align-items:flex-start;display:flex;gap:10px;position:relative}.fv-chain.is-vertical .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-chain.is-horizontal{flex-direction:row;gap:24px}.fv-chain.is-horizontal .fv-chain-item{align-items:flex-start;display:flex;gap:6px}.fv-chain .fv-chain-node{align-items:center;display:inline-flex;flex-shrink:0;font-size:16px;height:18px;justify-content:center;margin-top:2px;position:relative;width:18px}.fv-chain .fv-chain-node .fv-chain-dot{background-color:var(--el-fill-color-blank,#fff);border:2px solid var(--el-border-color,#dcdfe6);border-radius:50%;box-sizing:border-box;height:8px;width:8px}.fv-chain .fv-chain-item.status-success .fv-chain-node{color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-success .fv-chain-node .fv-chain-dot{background-color:var(--el-color-success,#67c23a);border-color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-error .fv-chain-node{color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-error .fv-chain-node .fv-chain-dot{background-color:var(--el-color-danger,#f56c6c);border-color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-loading .fv-chain-node{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-loading{animation:fv-chain-rotate 1s linear infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-searching{animation:fv-chain-searching .9s ease-in-out infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .fv-chain-dot{border-color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-pending .fv-chain-title{color:var(--el-text-color-placeholder,#a8abb2)}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-node .el-icon{animation:fv-chain-pulse 1.1s ease-in-out infinite}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-preview,.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-title,.fv-chain .fv-chain-item.status-loading .fv-chain-title{-webkit-text-fill-color:transparent;animation:fv-chain-shine 2.2s linear infinite;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--el-text-color-secondary,#909399) 0,var(--el-text-color-secondary,#909399) 40%,var(--el-color-primary,#409eff) 50%,var(--el-text-color-secondary,#909399) 60%,var(--el-text-color-secondary,#909399) 100%);background-size:200% 100%;color:transparent}.fv-chain .fv-chain-main{flex:1;min-width:0;padding-bottom:4px}.fv-chain .fv-chain-main .fv-chain-title{color:var(--el-text-color-primary,#303133);line-height:22px;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-title.is-clamped{max-height:calc(var(--fv-chain-title-max-lines, 3)*22px);overflow:hidden}.fv-chain .fv-chain-main .fv-chain-expand{background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:inline-block;font-size:var(--el-font-size-small,12px);line-height:22px;margin-left:6px;position:relative;top:1px;user-select:none;vertical-align:middle}.fv-chain .fv-chain-main .fv-chain-expand .el-icon{display:block;font-size:16px;height:22px}.fv-chain .fv-chain-main .fv-chain-expand:hover{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-description{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-head{align-items:center;background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font:inherit;gap:8px;line-height:22px;padding:0;text-align:left;user-select:none;width:100%}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-title{flex:0 0 auto}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-preview{color:var(--el-text-color-placeholder,#a8abb2);flex:0 1 auto;font-size:var(--el-font-size-small,12px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-arrow{color:var(--el-text-color-secondary,#909399);flex:0 0 auto;font-size:14px}.fv-chain .fv-chain-main .fv-chain-head:hover .fv-chain-head-title{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-head:focus{outline:none}.fv-chain .fv-chain-main .fv-chain-body{margin-top:2px;padding-left:2px;position:relative}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{height:35px;left:0;pointer-events:none;position:absolute;right:0;z-index:1}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{background:linear-gradient(to bottom,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom{bottom:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before{background:linear-gradient(to top,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text{display:block;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text,.fv-chain .fv-chain-main .fv-chain-body .fv-typewriter{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:22px}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-description{margin-top:4px}@keyframes fv-chain-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fv-chain-searching{0%,to{transform:rotate(-30deg) scale(1)}25%{transform:rotate(0deg) scale(1.15)}50%{transform:rotate(30deg) scale(1)}75%{transform:rotate(0deg) scale(.92)}}@keyframes fv-chain-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}@keyframes fv-chain-shine{0%{background-position:200% 0}to{background-position:-200% 0}}.fv-welcome{box-sizing:border-box;flex-direction:column;padding:var(--el-main-padding,20px);text-align:center;width:100%}.fv-welcome,.fv-welcome-icon{align-items:center;display:flex;justify-content:center}.fv-welcome-icon .fv-welcome-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 8px);color:var(--el-color-primary,#409eff);font-size:36px;height:72px;width:72px}.fv-welcome-icon .fv-welcome-gif{display:block;height:var(--fv-welcome-icon-size,96px);object-fit:contain;width:var(--fv-welcome-icon-size,96px)}.fv-welcome-main{align-items:center;min-width:0}.fv-welcome-main,.fv-welcome-text{display:flex;flex-direction:column}.fv-welcome-text{padding-left:4px}.fv-welcome-suggestions{width:100%}.fv-welcome-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-extra-large,20px);font-weight:600;line-height:1.4;margin:0}.fv-welcome-name .fv-welcome-name-accent{color:var(--el-color-primary,#409eff)}.fv-welcome-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin:8px 0 0;max-width:480px;white-space:pre-wrap;word-break:break-word}.fv-welcome.is-horizontal{align-items:flex-end;flex-direction:row;gap:0;justify-content:space-between;padding:0;position:relative;text-align:left}.fv-welcome.is-horizontal .fv-welcome-main{align-items:flex-start;margin-bottom:12px;max-width:100%;order:0}.fv-welcome.is-horizontal .fv-welcome-suggestions{margin-top:12px}.fv-welcome.is-horizontal .fv-welcome-name{font-size:var(--fv-welcome-name-size,25px);letter-spacing:.2px;line-height:34px;margin-bottom:6px}.fv-welcome.is-horizontal .fv-welcome-description{font-size:var(--el-font-size-small,12px);line-height:21px;margin-top:0;max-width:var(--fv-welcome-desc-max-width,690px)}.fv-welcome.is-horizontal .fv-welcome-icon{margin-bottom:-44px;order:1;pointer-events:none;transform:translateX(40px);z-index:1}.fv-welcome.is-horizontal .fv-welcome-gif.is-hero{height:200px;width:200px}.fv-prompts{box-sizing:border-box;width:100%}.fv-prompts .fv-prompts-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin-bottom:12px}.fv-prompts .fv-prompts-list{display:flex;flex-wrap:wrap;gap:12px}.fv-prompts .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-prompts .fv-prompts-list.is-nowrap .fv-prompt-item{flex:0 0 auto}.fv-prompts .fv-prompt-item{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;cursor:pointer;flex:1 1 200px;max-width:100%;padding:12px 14px;transition:background-color var(--el-transition-duration,.3s),border-color var(--el-transition-duration,.3s)}.fv-prompts .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa);border-color:var(--el-border-color,#dcdfe6)}.fv-prompts .fv-prompt-item:focus-visible:not(.is-disabled){border-color:var(--el-color-primary,#409eff);outline:none}.fv-prompts .fv-prompt-item.is-disabled{background-color:var(--el-fill-color-lighter,#fafafa);cursor:not-allowed;opacity:.6}.fv-prompts .fv-prompt-item.is-disabled,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-description,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-icon,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-label{color:var(--el-text-color-placeholder,#a8abb2)}.fv-prompts .fv-prompt-item .fv-prompt-item-main{align-items:flex-start;display:flex;gap:10px}.fv-prompts .fv-prompt-item .fv-prompt-item-icon{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:18px;margin-top:2px}.fv-prompts .fv-prompt-item .fv-prompt-item-text{flex:1;min-width:0}.fv-prompts .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:500;line-height:var(--el-font-line-height-primary,24px);word-break:break-word}.fv-prompts .fv-prompt-item .fv-prompt-item-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:var(--el-font-line-height-primary,24px);margin-top:2px;word-break:break-word}.fv-files-card{align-items:center;background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;display:flex;gap:8px;max-width:100%;min-width:0;padding:8px 24px 8px 10px;position:relative;transition:border-color var(--el-transition-duration,.3s)}.fv-files-card .fv-files-card-icon{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:20px}.fv-files-card .fv-files-card-info{flex:1;min-width:0}.fv-files-card .fv-files-card-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-files-card .fv-files-card-size{color:var(--el-text-color-secondary,#909399)}.fv-files-card .fv-files-card-error,.fv-files-card .fv-files-card-size{font-size:var(--el-font-size-extra-small,12px);line-height:16px;white-space:nowrap}.fv-files-card .fv-files-card-error{color:var(--el-color-danger,#f56c6c);max-width:100%;overflow:hidden;text-overflow:ellipsis}.fv-files-card .fv-files-card-thumb{align-items:center;background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--el-border-radius-base,4px);display:flex;flex-shrink:0;height:48px;justify-content:center;overflow:hidden;width:48px}.fv-files-card .fv-files-card-thumb .fv-files-card-img{display:block;height:100%;object-fit:cover;width:100%}.fv-files-card .fv-files-card-thumb .fv-files-card-thumb-placeholder{color:var(--el-text-color-placeholder,#a8abb2);font-size:20px}.fv-files-card .fv-files-card-loading{animation:fv-files-card-rotating 1.5s linear infinite;color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:20px}.fv-files-card .fv-files-card-remove{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;font-size:12px;height:18px;justify-content:center;opacity:0;padding:0;position:absolute;right:2px;top:2px;transition:opacity var(--el-transition-duration,.3s),color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:18px}.fv-files-card .fv-files-card-remove:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-danger,#f56c6c)}.fv-files-card:hover .fv-files-card-remove{opacity:1}.fv-files-card.is-error{border-color:var(--el-color-danger,#f56c6c)}.fv-files-card.is-error .fv-files-card-name{color:var(--el-color-danger,#f56c6c)}@keyframes fv-files-card-rotating{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-attachments{align-items:flex-start;box-sizing:border-box;display:flex;gap:8px;width:100%}.fv-attachments .fv-attachments-input{display:none}.fv-attachments .fv-attachments-trigger{align-items:center;background-color:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;flex-shrink:0;font-size:16px;height:32px;justify-content:center;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:32px}.fv-attachments .fv-attachments-trigger:hover:not(:disabled){background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-trigger.is-full,.fv-attachments .fv-attachments-trigger:disabled{color:var(--el-text-color-placeholder,#a8abb2);cursor:not-allowed}.fv-attachments .fv-attachments-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.fv-attachments .fv-attachments-item{align-items:center;display:flex;min-width:0;position:relative}.fv-attachments .fv-attachments-item .fv-files-card{max-width:240px}.fv-attachments .fv-attachments-item .fv-attachments-retry{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;margin-left:4px;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:20px}.fv-attachments .fv-attachments-item .fv-attachments-retry:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-tip{color:var(--el-text-color-placeholder,#a8abb2);flex:1;font-size:var(--el-font-size-extra-small,12px);line-height:32px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations{box-sizing:border-box;overflow-y:auto;width:100%}.fv-conversations .fv-conversations-group .fv-conversations-group-title{background-color:var(--el-bg-color,#fff);color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-extra-small,12px);line-height:20px;padding:8px 12px 4px;position:sticky;top:0;z-index:1}.fv-conversations .fv-conversations-item{align-items:center;border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;gap:4px;padding:0 8px 0 12px;transition:background-color .2s;user-select:none}.fv-conversations .fv-conversations-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-conversations .fv-conversations-item:hover .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-conversations .fv-conversations-item.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-conversations .fv-conversations-item.is-active .fv-conversations-item-label{color:var(--el-color-primary,#409eff);font-weight:600}.fv-conversations .fv-conversations-item.is-disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-conversations .fv-conversations-item.is-disabled .fv-conversations-item-label{color:var(--el-text-color-disabled,#a8abb2)}.fv-conversations .fv-conversations-item.is-disabled:hover{background-color:transparent}.fv-conversations .fv-conversations-item .fv-conversations-item-content{flex:1;min-width:0;padding:9px 0}.fv-conversations .fv-conversations-item .fv-conversations-item-content .fv-conversations-item-label{color:var(--el-text-color-regular,#606266);display:block;font-size:var(--el-font-size-base,14px);line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;flex-shrink:0;height:24px;justify-content:center;opacity:0;padding:0;pointer-events:none;transition:opacity .2s;width:24px}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn:hover{background-color:var(--el-fill-color,#f0f2f5);color:var(--el-text-color-primary,#303133)}.fv-conversations.show-menu-always .fv-conversations-item .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-msg{align-items:flex-start;box-sizing:border-box;display:flex;gap:12px;padding:8px 0;width:100%}.fv-msg .fv-msg-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--fv-msg-avatar-radius,calc(var(--el-border-radius-base, 4px) + 4px));color:var(--el-text-color-secondary,#909399);flex-shrink:0;font-size:calc(var(--fv-msg-avatar-size, 50px)/2);height:var(--fv-msg-avatar-size,50px);overflow:hidden;width:var(--fv-msg-avatar-size,50px)}.fv-msg .fv-msg-avatar,.fv-msg .fv-msg-avatar-bot{align-items:center;display:flex;justify-content:center}.fv-msg .fv-msg-avatar-bot{background-color:var(--el-color-primary,#409eff);border-radius:inherit;color:#fff;height:100%;width:100%}.fv-msg .fv-msg-avatar-img{border-radius:inherit;display:block;height:100%;object-fit:cover;transform:scale(var(--fv-msg-avatar-scale,1));width:100%}.fv-msg.is-user .fv-msg-avatar{background-color:var(--el-color-primary-light-8,#d9ecff);color:var(--el-color-primary,#409eff);order:2}.fv-msg .fv-msg-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0}.fv-msg .fv-msg-main .fv-msg-header{align-items:center;color:var(--el-text-color-secondary,#909399);display:flex;font-size:var(--el-font-size-small,12px);gap:8px;margin-bottom:2px}.fv-msg .fv-msg-main .fv-msg-header .fv-msg-model{background-color:var(--el-fill-color,#f0f2f5);border-radius:var(--el-border-radius-base,4px);line-height:18px;padding:0 6px}.fv-msg .fv-msg-main .fv-msg-files{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file{align-items:center;background-color:transparent;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--el-font-size-small,12px);padding:4px 8px;transition:border-color var(--el-transition-duration,.3s)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:hover{border-color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:focus-visible{border-color:var(--el-color-primary,#409eff);outline:none}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-img{border-radius:var(--el-border-radius-base,4px);max-height:64px;max-width:64px;object-fit:cover}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card{cursor:pointer;max-width:240px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card :hover{border-color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card .fv-files-card-remove{display:none}.fv-msg .fv-msg-main .fv-msg-tools{box-sizing:border-box;margin-bottom:8px;padding-bottom:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-tools.has-separator{border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain{font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child){padding-bottom:6px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-description,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-head-title,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.is-text .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.status-success .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-title{color:var(--el-text-color-secondary,#909399)}.fv-msg .fv-msg-main .fv-msg-content{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;word-break:break-word}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-error{color:var(--el-color-danger,#f56c6c)}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending{align-items:center;display:inline-flex;gap:8px;padding:4px 0}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-spinner{animation:fv-msg-rotate .8s linear infinite;border:2px solid var(--el-color-primary-light-8,#dceaff);border-radius:50%;border-top-color:var(--el-color-primary,#409eff);box-sizing:border-box;flex-shrink:0;height:16px;width:16px}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-pending-text{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-content-user{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);padding:8px 12px;white-space:pre-wrap}.fv-msg .fv-msg-main .fv-msg-followups{margin-top:6px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 10px);box-sizing:border-box;color:var(--el-text-color-regular,#606266);cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:20px;max-width:100%;overflow:hidden;padding:4px 12px;text-align:left;text-overflow:ellipsis;transition:border-color .15s,color .15s,background-color .15s;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:hover:not(.is-disabled):not(:disabled){border-color:var(--el-color-primary-light-5,#a0cfff);color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:focus-visible{outline:2px solid var(--el-color-primary-light-5,#a0cfff);outline-offset:1px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup.is-disabled,.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:disabled{cursor:not-allowed;opacity:.55}.fv-msg .fv-msg-main .fv-msg-followups.is-list{align-items:flex-start;border-top:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followup{border:none;border-radius:0;color:var(--el-text-color-secondary,#909399);line-height:22px;padding:2px 4px;white-space:normal}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followups-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:20px;user-select:none}.fv-msg .fv-msg-main .fv-msg-followups.is-chips{display:flex;flex-wrap:wrap;gap:8px}.fv-msg.is-user{flex-direction:row;justify-content:flex-end}.fv-msg.is-user .fv-msg-main{align-items:flex-end}.fv-msg .fv-msg-actions{align-items:center;display:flex;gap:2px;margin-top:2px}.fv-msg .fv-msg-actions .el-button+.el-button{margin-left:0}.fv-msg .fv-msg-actions .fv-msg-branch{align-items:center;display:inline-flex;gap:2px;margin-left:6px}.fv-msg .fv-msg-actions .fv-msg-branch .fv-msg-branch-label{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:0 2px}.fv-msg .fv-msg-actions .fv-msg-feedback{align-items:center;display:inline-flex;gap:2px;margin-left:4px}.fv-msg .fv-msg-actions .fv-msg-feedback .fv-msg-feedback-btn.is-active{color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-actions .fv-msg-time{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:18px;margin-left:8px;user-select:none;white-space:nowrap}.fv-msg.is-user .fv-msg-actions{opacity:0;pointer-events:none;transition:opacity .15s}.fv-msg.is-user .fv-msg-actions .fv-msg-branch{margin-left:0}.fv-msg.is-user:focus-within .fv-msg-actions,.fv-msg.is-user:hover .fv-msg-actions{opacity:1;pointer-events:auto}@keyframes fv-msg-rotate{to{transform:rotate(1turn)}}.fv-msg-feedback-dialog .el-dialog__title{font-size:var(--el-font-size-base,14px)}.fv-msg-feedback-dialog .el-dialog__body{padding-bottom:8px;padding-top:8px}.fv-msg-feedback-dialog .el-dialog__footer{padding-top:0}.fv-messages{box-sizing:border-box;display:flex;flex:1;flex-direction:column;min-height:0;width:100%}.fv-messages .fv-messages-scroll{box-sizing:border-box;flex:1;min-height:0;overflow-y:auto;padding:0 16px}.fv-messages .fv-messages-inner{margin:0 auto;max-width:var(--fv-messages-max-width,none);position:relative}.fv-messages .fv-messages-empty{align-items:center;box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:flex-end;padding:32px 16px 0}.fv-messages .fv-messages-empty .fv-welcome.is-horizontal{max-width:var(--fv-welcome-max-width,var(--fv-empty-max-width,780px))}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-title{margin-bottom:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list{flex-wrap:wrap;gap:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item{background-color:var(--el-bg-color,#fff);border-radius:16px;flex:0 0 auto;max-width:100%;padding:6px 12px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa)}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-main{align-items:center;gap:6px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-icon{font-size:14px;margin-top:0}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-regular,#557096);font-size:var(--el-font-size-small,12px);font-weight:400;line-height:20px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-description{display:none}.fv-messages .fv-messages-back{bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));float:right;margin-right:16px;margin-top:-40px;pointer-events:auto;position:sticky;z-index:1}.fv-messages .fv-messages-back .fv-messages-back-icon{font-size:16px;line-height:1}.fv-messages-back-fade-enter-active,.fv-messages-back-fade-leave-active{transition:opacity .2s ease}.fv-messages-back-fade-enter-from,.fv-messages-back-fade-leave-to{opacity:0}.fv-ai-chat{background-color:var(--el-bg-color,#fff);box-sizing:border-box;color:var(--el-text-color-primary,#303133);display:flex;flex-direction:column;height:100%;min-height:0;width:100%}.fv-ai-chat .fv-thinking-content{padding:8px 0 0}.fv-ai-chat .fv-ai-chat-header{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:12px;justify-content:space-between;padding:8px 16px}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-title{font-size:var(--el-font-size-base,14px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-models{flex-shrink:0;width:220px}.fv-ai-chat .fv-ai-chat-body{display:flex;flex:1;min-height:0;overflow:hidden}.fv-ai-chat .fv-ai-chat-footer{flex-shrink:0;padding:0 16px 12px}.fv-ai-chat.is-empty{--fv-empty-max-width:780px}.fv-ai-chat.is-empty .fv-ai-chat-footer{display:flex;justify-content:center;padding:0}.fv-ai-chat.is-empty .fv-ai-chat-footer>.fv-sender{flex:0 1 var(--fv-empty-max-width);max-width:var(--fv-empty-max-width)}.fv-ai-chat.is-empty .fv-welcome.is-horizontal .fv-welcome-icon{transform:translateX(40px)}.fv-ai-chat.is-center-welcome .fv-ai-chat-body{flex:0 1 auto;margin-top:auto;min-height:0}.fv-ai-chat.is-center-welcome .fv-ai-chat-footer{margin-bottom:auto}html.dark .fv-ai-chat{background-color:var(--el-bg-color,#141414)}.fv-artifacts{background-color:var(--el-bg-color,#fff);border-left:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;max-width:var(--fv-artifacts-max-width,60%);min-width:var(--fv-artifacts-min-width,360px);overflow:hidden;width:var(--fv-artifacts-width,420px)}.fv-artifacts .fv-artifacts-tabs{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:4px;overflow-x:auto;padding:6px 8px}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab{background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;flex-shrink:0;font-size:var(--el-font-size-small,12px);line-height:1.4;padding:4px 10px;white-space:nowrap}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-text-color-primary,#303133)}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-artifacts .fv-artifacts-tabs .fv-artifacts-spacer{flex:1}.fv-artifacts .fv-artifacts-frame{background-color:var(--el-bg-color-page,#f2f3f5);border:none;flex:1;min-height:0;width:100%}html.dark .fv-artifacts{background-color:var(--el-bg-color,#141414)}
|
|
1
|
+
.fv-markdown{color:var(--el-text-color-primary,#303133);line-height:1.7;word-break:break-word}.fv-markdown h1,.fv-markdown h2,.fv-markdown h3,.fv-markdown h4,.fv-markdown h5,.fv-markdown h6{color:var(--el-text-color-primary,#303133);font-weight:600;margin:1em 0 .5em}.fv-markdown h1{font-size:1.5em}.fv-markdown h2{font-size:1.3em}.fv-markdown h3{font-size:1.15em}.fv-markdown p{margin:.5em 0}.fv-markdown ol,.fv-markdown ul{margin:.5em 0;padding-left:2em}.fv-markdown ol ol,.fv-markdown ol ul,.fv-markdown ul ol,.fv-markdown ul ul{margin:.2em 0}.fv-markdown ul{list-style:disc}.fv-markdown ol{list-style:decimal}.fv-markdown ul ul{list-style:circle}.fv-markdown ul ul ul{list-style:square}.fv-markdown li{margin:.2em 0}.fv-markdown a{color:var(--el-color-primary,#409eff);text-decoration:none}.fv-markdown a:hover{text-decoration:underline}.fv-markdown blockquote{border-left:4px solid var(--el-border-color,#dcdfe6);color:var(--el-text-color-regular,#606266);margin:.5em 0;padding:.4em 1em}.fv-markdown blockquote,.fv-markdown code{background:var(--el-fill-color-light,#f5f7fa)}.fv-markdown code{border-radius:3px;color:var(--el-color-danger,#f56c6c);font-family:JetBrains Mono,Consolas,Courier New,monospace;font-size:.9em;padding:.15em .4em}.fv-markdown pre{background:#282c34;border-radius:6px;margin:.5em 0;overflow-x:auto;padding:1em}.fv-markdown pre code{background:transparent;color:#dcdfe6;font-size:.9em;line-height:1.6;padding:0}.fv-markdown pre.fv-md-code-pre{padding-top:2em;position:relative}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger{background:hsla(0,0%,100%,.12);border:1px solid hsla(0,0%,100%,.22);border-radius:var(--el-border-radius-base,4px);color:#dcdfe6;cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:1.5;padding:2px 10px;position:absolute;right:8px;top:6px}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger:hover{background:hsla(0,0%,100%,.22);color:#fff}.fv-markdown table{border-collapse:collapse;margin:.5em 0;width:100%}.fv-markdown table td,.fv-markdown table th{border:1px solid var(--el-border-color-lighter,#ebeef5);padding:.5em .8em;text-align:left}.fv-markdown table th{background:var(--el-fill-color-lighter,#fafafa);font-weight:600}.fv-markdown table tr:nth-child(2n) td{background:var(--el-fill-color-blank,#fafcff)}.fv-markdown .fv-md-table-wrap{margin:.5em 0}.fv-markdown .fv-md-table-wrap table{margin:0}.fv-markdown .fv-md-table-bar{background:var(--el-fill-color-light,#f5f7fa);border:1px solid var(--el-border-color-lighter,#ebeef5);border-bottom:none;border-radius:3px 3px 0 0;display:flex;gap:4px;justify-content:flex-end;padding:2px 4px}.fv-markdown .fv-md-table-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;height:24px;justify-content:center;padding:0;width:24px}.fv-markdown .fv-md-table-btn:hover{background:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-markdown .fv-md-table-btn svg{display:block;height:14px;width:14px}.fv-markdown .fv-md-table-btn .fv-md-table-ic.is-check,.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic{display:none}.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic.is-check{display:block}.fv-markdown .fv-md-table-btn.is-copied{color:var(--el-color-success,#67c23a)}.fv-markdown .katex-display{margin:.5em 0;overflow-x:auto}.fv-md-table-tip{background:#303133;border-radius:var(--el-border-radius-base,4px);box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));color:#fff;display:none;font-size:var(--el-font-size-base,12px);line-height:1.4;padding:5px 11px;pointer-events:none;position:fixed;transform:translate(-50%,calc(-100% - 8px));white-space:nowrap;z-index:calc(var(--el-index-popper, 2000) - 1)}.fv-md-table-tip:after{background:inherit;bottom:-4px;content:"";height:8px;left:50%;position:absolute;transform:translateX(-50%) rotate(45deg);width:8px}.fv-typewriter{display:inline-block;max-width:100%;position:relative}.fv-typewriter .fv-typewriter-text{white-space:pre-wrap;word-break:break-word}.fv-typewriter .fv-typewriter-suffix{animation:fv-typewriter-blink 1s step-start infinite;display:inline-block}.fv-typewriter .fv-typewriter-fog{animation:fv-typewriter-fog-in .3s ease-out both;background:linear-gradient(90deg,transparent,var(--fv-typewriter-fog-color,var(--el-bg-color,#fff)));bottom:0;pointer-events:none;position:absolute;right:0;top:0}@keyframes fv-typewriter-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes fv-typewriter-fog-in{0%{opacity:0}to{opacity:1}}.fv-bubble{align-items:flex-start;display:flex;gap:var(--fv-bubble-avatar-gap,12px)}.fv-bubble.is-end{flex-direction:row-reverse;justify-content:flex-end}.fv-bubble.is-end .fv-bubble-main{align-items:flex-end}.fv-bubble .fv-bubble-avatar{display:flex;flex-shrink:0}.fv-bubble .fv-bubble-avatar .el-avatar{height:var(--fv-bubble-avatar-size,36px);width:var(--fv-bubble-avatar-size,36px)}.fv-bubble .fv-bubble-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;max-width:100%;min-width:0}.fv-bubble .fv-bubble-main .fv-bubble-footer,.fv-bubble .fv-bubble-main .fv-bubble-header{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px)}.fv-bubble .fv-bubble-main .fv-bubble-footer{margin-top:4px}.fv-bubble .fv-bubble-content{border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;padding:var(--el-main-padding,12px) calc(var(--el-main-padding, 12px) + 4px);position:relative;word-break:break-word}.fv-bubble .fv-bubble-content.no-padding{padding:0}.fv-bubble .fv-bubble-content .fv-bubble-text{white-space:pre-wrap}.fv-bubble.shape-round .fv-bubble-content{border-radius:var(--el-border-radius-round,20px)}.fv-bubble.shape-corner .fv-bubble-content{border-start-start-radius:calc(var(--el-border-radius-base, 4px) - 2px)}.fv-bubble.is-end.shape-corner .fv-bubble-content{border-start-end-radius:calc(var(--el-border-radius-base, 4px) - 2px);border-start-start-radius:calc(var(--el-border-radius-base, 4px) + 4px)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-filled .fv-bubble-content{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-outlined .fv-bubble-content{border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6)}.fv-bubble.variant-outlined .fv-bubble-content{background:none}.fv-bubble.variant-shadow .fv-bubble-content{background:none;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12))}.fv-bubble .fv-bubble-content.no-style{background:transparent;border:none;box-shadow:none;padding:0}.fv-bubble .fv-bubble-loading{align-items:center;display:flex;gap:5px;min-height:1em;width:fit-content}.fv-bubble .fv-bubble-loading .fv-bubble-loading-dot{animation:fv-bubble-wave 1s ease-in-out infinite;background-color:var(--el-color-primary,#409eff);border-radius:50%;height:5px;width:5px}@keyframes fv-bubble-wave{0%,to{transform:translateY(-2px)}50%{transform:translateY(2px)}}.fv-bubble-list{display:flex;flex-direction:column;min-height:0;position:relative}.fv-bubble-list .fv-bubble-list-scroll{display:flex;flex-direction:column;gap:16px;min-height:0;overflow-y:auto}.fv-bubble-list .fv-bubble-list-scroll>.fv-bubble{flex-shrink:0}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar{overflow-y:scroll;scrollbar-width:auto}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar{-webkit-appearance:none;width:6px}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar-thumb{background-color:var(--el-border-color,#dcdfe6);border-radius:3px}.fv-bubble-list .fv-bubble-list-back{align-items:center;bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));display:inline-flex;justify-content:center;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.fv-bubble-list .fv-bubble-list-back .fv-bubble-list-back-icon{align-items:center;display:inline-flex;justify-content:center;line-height:1}.fv-bubble-list-fade-enter-active,.fv-bubble-list-fade-leave-active{transition:opacity .2s ease,transform .2s ease}.fv-bubble-list-fade-enter-from,.fv-bubble-list-fade-leave-to{opacity:0;transform:translate(-50%,4px)}.fv-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-sender .fv-sender-header{animation:fv-sender-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-sender .fv-sender-body{background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;flex-direction:column;gap:6px;padding:8px 12px;transition:border-color .2s}.fv-sender .fv-sender-body .fv-sender-body-top:empty{display:none}.fv-sender .fv-sender-body .fv-sender-row{align-items:flex-end;display:flex;gap:8px}.fv-sender .fv-sender-body .fv-sender-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:calc(var(--el-border-radius-base, 4px) + 2px);display:flex;flex:1;gap:8px;min-width:0;outline:none;padding:4px 8px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel:hover{color:var(--el-color-danger,#f56c6c)}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave{align-items:center;direction:rtl;display:flex;flex:1;gap:2px;height:22px;justify-content:flex-end;min-width:0;overflow:hidden}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave .fv-sender-recording-bar{background-color:var(--el-color-primary,#409eff);border-radius:1px;flex-shrink:0;min-height:2px;opacity:.75;width:2px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-duration{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:var(--el-font-size-small,12px);font-variant-numeric:tabular-nums;min-width:3em;text-align:center}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-confirm{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-input{display:flex;flex:1;min-width:0;position:relative}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea{background:transparent;border:none;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;min-width:0;outline:none;padding:4px 0;resize:none}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea:disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea[readonly]{cursor:default}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-trigger-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-sender .fv-sender-body .fv-sender-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-action-left{align-items:center;display:flex;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech{color:var(--el-text-color-regular,#606266);padding:6px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech .el-icon{font-size:18px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):active,.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):hover{background-color:transparent;color:var(--el-text-color-primary,#303133)}.fv-sender.variant-updown .fv-sender-row{align-items:stretch;flex-direction:column;gap:6px}.fv-sender.variant-updown .fv-sender-row .fv-sender-input{width:100%}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions{align-self:flex-end;justify-content:flex-end}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left){align-self:stretch}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left) .fv-sender-action-left{margin-right:auto}.fv-sender.is-focused .fv-sender-body{border-color:var(--el-color-primary,#409eff)}.fv-sender.is-disabled .fv-sender-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-sender.has-shadow .fv-sender-body{box-shadow:0 8px 20px 0 var(--el-box-shadow-color,rgba(0,0,0,.08));transition:border-color .2s,box-shadow .2s}.fv-sender.has-shadow.is-focused .fv-sender-body{box-shadow:0 8px 24px 0 var(--el-box-shadow-color,rgba(0,0,0,.12))}.fv-sender .fv-sender-stop{--fv-sender-stop-icon-size:16px;--fv-sender-stop-ring-width:2px;--fv-sender-stop-ring-duration:1.1s;position:relative}.fv-sender .fv-sender-stop .el-icon{align-items:center;display:inline-flex;font-size:var(--fv-sender-stop-icon-size);justify-content:center}.fv-sender .fv-sender-stop .fv-stop-icon{display:block}.fv-sender .fv-sender-stop .fv-sender-stop-ring{height:100%;inset:0;overflow:visible;pointer-events:none;position:absolute;width:100%}.fv-sender .fv-sender-stop .fv-sender-stop-ring .fv-sender-stop-ring-rect{x:calc(var(--fv-sender-stop-ring-width)/2);y:calc(var(--fv-sender-stop-ring-width)/2);fill:none;stroke:rgb(255,255,255,var(--ring-alpha,.9));stroke-width:var(--fv-sender-stop-ring-width);stroke-dasharray:0 calc(100 - var(--ring-len, 10)) var(--ring-len,10) 0;animation:fv-sender-stop-spin var(--fv-sender-stop-ring-duration) linear infinite;height:calc(100% - var(--fv-sender-stop-ring-width));width:calc(100% - var(--fv-sender-stop-ring-width))}@media (prefers-reduced-motion:reduce){.fv-sender .fv-sender-stop .fv-sender-stop-ring-rect{animation:none}}.fv-sender .fv-sender-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}@keyframes fv-sender-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}@keyframes fv-sender-stop-spin{to{stroke-dashoffset:-100}}.fv-mention-sender{position:relative}.fv-mention-sender .fv-mention-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-mention-popover .fv-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-mention-popover .fv-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-mention-popover .fv-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-mention-popover .fv-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-mention-popover .fv-mention-item.is-active,.fv-mention-popover .fv-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-mention-popover .fv-mention-item .fv-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-mention-popover .fv-mention-item .fv-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-mention-popover .fv-mention-item .fv-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-editor-sender .fv-editor-header{animation:fv-editor-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-editor-sender .fv-editor-body{align-items:flex-end;background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;gap:8px;padding:8px 12px;transition:border-color .2s}.fv-editor-sender .fv-editor-body .fv-editor-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-editor-sender .fv-editor-body .fv-editor-input{display:flex;flex:1;min-width:0;position:relative}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content{background:transparent;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;max-height:220px;min-width:0;outline:none;overflow-y:auto;padding:4px 0;white-space:pre-wrap;word-break:break-word}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content:empty:before{color:var(--el-text-color-placeholder,#a8abb2);content:attr(data-placeholder);pointer-events:none}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-editor-sender .fv-editor-body .fv-editor-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-editor-sender .fv-editor-tag{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--el-color-primary,#409eff);display:inline-flex;font-size:var(--el-font-size-base,14px);line-height:20px;margin:0 1px;max-width:100%;padding:0 6px;user-select:all;white-space:nowrap}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag{padding:0 2px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input{background:transparent;border:none;box-sizing:border-box;color:inherit;font:inherit;line-height:20px;outline:none;padding:0 4px;width:120px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-editor-sender .fv-editor-tag.fv-editor-tag-htmlTag{display:inline;user-select:text;white-space:normal}.fv-editor-sender.variant-updown .fv-editor-body{align-items:stretch;flex-direction:column;gap:6px}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-input{width:100%}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-actions{align-self:flex-end;justify-content:flex-end}.fv-editor-sender.device-h5 .fv-editor-body{padding:6px 10px}.fv-editor-sender.is-focused .fv-editor-body{border-color:var(--el-color-primary,#409eff)}.fv-editor-sender.is-disabled .fv-editor-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-sender .fv-editor-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}.fv-editor-mention-popover .fv-editor-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-editor-mention-popover .fv-editor-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-editor-mention-popover .fv-editor-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-editor-mention-popover .fv-editor-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-editor-mention-popover .fv-editor-mention-item.is-active,.fv-editor-mention-popover .fv-editor-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-tip-popover .fv-editor-tip-panel{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:6px 8px}.fv-editor-select-dialog .fv-editor-select-group+.fv-editor-select-group{margin-top:12px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:600;margin-bottom:8px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item{align-items:center;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:8px;transition:border-color .2s}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item:hover{border-color:var(--el-color-primary,#409eff)}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-preview{border-radius:var(--el-border-radius-base,4px);height:56px;object-fit:cover;width:100%}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-name{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-small,12px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes fv-editor-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}.fv-thinking{background-color:var(--fv-thinking-bg,transparent);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--fv-thinking-color,var(--el-text-color-regular,#606266));display:flex;flex-direction:column;width:100%}.fv-thinking .fv-thinking-toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font:inherit;font-size:15px;gap:6px;line-height:22px;padding:4px 0;text-align:left;transition:color .2s;user-select:none}.fv-thinking .fv-thinking-toggle:hover{color:var(--fv-thinking-color,var(--el-color-primary,#409eff))}.fv-thinking .fv-thinking-toggle:focus{outline:none}.fv-thinking.is-disabled .fv-thinking-toggle{cursor:not-allowed;opacity:.6}.fv-thinking .fv-thinking-status-icon{align-items:center;display:inline-flex;font-size:16px;height:18px;justify-content:center;width:18px}.fv-thinking .fv-thinking-status-icon .fv-thinking-dot{background-color:var(--el-color-primary,#409eff);border-radius:50%;height:8px;width:8px}.fv-thinking .fv-thinking-status-icon .is-loading{animation:fv-thinking-rotate 1s linear infinite;color:var(--el-color-primary,#409eff)}.fv-thinking .fv-thinking-status-icon .is-success{color:var(--el-color-success,#67c23a)}.fv-thinking .fv-thinking-status-icon .is-error{color:var(--el-color-danger,#f56c6c)}.fv-thinking .fv-thinking-label{flex:0 1 auto;max-width:60%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-thinking .fv-thinking-arrow{align-items:center;display:inline-flex;transition:transform .3s ease}.fv-thinking .fv-thinking-arrow.is-open{transform:rotate(180deg)}.fv-thinking .fv-thinking-content{box-sizing:border-box;color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;padding:8px 0;white-space:pre-wrap;word-break:break-word}@keyframes fv-thinking-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-chain{box-sizing:border-box;display:flex;font-size:var(--el-font-size-base,14px)}.fv-chain.is-vertical{flex-direction:column}.fv-chain.is-vertical .fv-chain-item{align-items:flex-start;display:flex;gap:10px;position:relative}.fv-chain.is-vertical .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-chain.is-horizontal{flex-direction:row;gap:24px}.fv-chain.is-horizontal .fv-chain-item{align-items:flex-start;display:flex;gap:6px}.fv-chain .fv-chain-node{align-items:center;display:inline-flex;flex-shrink:0;font-size:16px;height:18px;justify-content:center;margin-top:2px;position:relative;width:18px}.fv-chain .fv-chain-node .fv-chain-dot{background-color:var(--el-fill-color-blank,#fff);border:2px solid var(--el-border-color,#dcdfe6);border-radius:50%;box-sizing:border-box;height:8px;width:8px}.fv-chain .fv-chain-item.status-success .fv-chain-node{color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-success .fv-chain-node .fv-chain-dot{background-color:var(--el-color-success,#67c23a);border-color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-error .fv-chain-node{color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-error .fv-chain-node .fv-chain-dot{background-color:var(--el-color-danger,#f56c6c);border-color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-loading .fv-chain-node{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-loading{animation:fv-chain-rotate 1s linear infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-searching{animation:fv-chain-searching .9s ease-in-out infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .fv-chain-dot{border-color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-pending .fv-chain-title{color:var(--el-text-color-placeholder,#a8abb2)}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-node .el-icon{animation:fv-chain-pulse 1.1s ease-in-out infinite}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-preview,.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-title,.fv-chain .fv-chain-item.status-loading .fv-chain-title{-webkit-text-fill-color:transparent;animation:fv-chain-shine 2.2s linear infinite;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--el-text-color-secondary,#909399) 0,var(--el-text-color-secondary,#909399) 40%,var(--el-color-primary,#409eff) 50%,var(--el-text-color-secondary,#909399) 60%,var(--el-text-color-secondary,#909399) 100%);background-size:200% 100%;color:transparent}.fv-chain .fv-chain-main{flex:1;min-width:0;padding-bottom:4px}.fv-chain .fv-chain-main .fv-chain-title{color:var(--el-text-color-primary,#303133);line-height:22px;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-title.is-clamped{max-height:calc(var(--fv-chain-title-max-lines, 3)*22px);overflow:hidden}.fv-chain .fv-chain-main .fv-chain-expand{background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:inline-block;font-size:var(--el-font-size-small,12px);line-height:22px;margin-left:6px;position:relative;top:1px;user-select:none;vertical-align:middle}.fv-chain .fv-chain-main .fv-chain-expand .el-icon{display:block;font-size:16px;height:22px}.fv-chain .fv-chain-main .fv-chain-expand:hover{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-description{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-head{align-items:center;background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font:inherit;gap:8px;line-height:22px;padding:0;text-align:left;user-select:none;width:100%}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-title{flex:0 0 auto}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-preview{color:var(--el-text-color-placeholder,#a8abb2);flex:0 1 auto;font-size:var(--el-font-size-small,12px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-arrow{color:var(--el-text-color-secondary,#909399);flex:0 0 auto;font-size:14px}.fv-chain .fv-chain-main .fv-chain-head:hover .fv-chain-head-title{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-head:focus{outline:none}.fv-chain .fv-chain-main .fv-chain-body{margin-top:2px;padding-left:2px;position:relative}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{height:35px;left:0;pointer-events:none;position:absolute;right:0;z-index:1}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{background:linear-gradient(to bottom,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom{bottom:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before{background:linear-gradient(to top,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text{display:block;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text,.fv-chain .fv-chain-main .fv-chain-body .fv-typewriter{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:22px}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-description{margin-top:4px}@keyframes fv-chain-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fv-chain-searching{0%,to{transform:rotate(-30deg) scale(1)}25%{transform:rotate(0deg) scale(1.15)}50%{transform:rotate(30deg) scale(1)}75%{transform:rotate(0deg) scale(.92)}}@keyframes fv-chain-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}@keyframes fv-chain-shine{0%{background-position:200% 0}to{background-position:-200% 0}}.fv-welcome{box-sizing:border-box;flex-direction:column;padding:var(--el-main-padding,20px);text-align:center;width:100%}.fv-welcome,.fv-welcome-icon{align-items:center;display:flex;justify-content:center}.fv-welcome-icon .fv-welcome-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 8px);color:var(--el-color-primary,#409eff);font-size:36px;height:72px;width:72px}.fv-welcome-icon .fv-welcome-gif{display:block;height:var(--fv-welcome-icon-size,96px);object-fit:contain;width:var(--fv-welcome-icon-size,96px)}.fv-welcome-main{align-items:center;min-width:0}.fv-welcome-main,.fv-welcome-text{display:flex;flex-direction:column}.fv-welcome-text{padding-left:4px}.fv-welcome-suggestions{width:100%}.fv-welcome-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-extra-large,20px);font-weight:600;line-height:1.4;margin:0}.fv-welcome-name .fv-welcome-name-accent{color:var(--el-color-primary,#409eff)}.fv-welcome-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin:8px 0 0;max-width:480px;white-space:pre-wrap;word-break:break-word}.fv-welcome.is-horizontal{align-items:flex-end;flex-direction:row;gap:0;justify-content:space-between;padding:0;position:relative;text-align:left}.fv-welcome.is-horizontal .fv-welcome-main{align-items:flex-start;margin-bottom:12px;max-width:100%;order:0}.fv-welcome.is-horizontal .fv-welcome-suggestions{margin-top:12px}.fv-welcome.is-horizontal .fv-welcome-name{font-size:var(--fv-welcome-name-size,25px);letter-spacing:.2px;line-height:34px;margin-bottom:6px}.fv-welcome.is-horizontal .fv-welcome-description{font-size:var(--el-font-size-small,12px);line-height:21px;margin-top:0;max-width:var(--fv-welcome-desc-max-width,690px)}.fv-welcome.is-horizontal .fv-welcome-icon{margin-bottom:-44px;order:1;pointer-events:none;transform:translateX(40px);z-index:1}.fv-welcome.is-horizontal .fv-welcome-gif.is-hero{height:200px;width:200px}.fv-prompts{box-sizing:border-box;width:100%}.fv-prompts .fv-prompts-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin-bottom:12px}.fv-prompts .fv-prompts-list{display:flex;flex-wrap:wrap;gap:12px}.fv-prompts .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-prompts .fv-prompts-list.is-nowrap .fv-prompt-item{flex:0 0 auto}.fv-prompts .fv-prompt-item{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;cursor:pointer;flex:1 1 200px;max-width:100%;padding:12px 14px;transition:background-color var(--el-transition-duration,.3s),border-color var(--el-transition-duration,.3s)}.fv-prompts .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa);border-color:var(--el-border-color,#dcdfe6)}.fv-prompts .fv-prompt-item:focus-visible:not(.is-disabled){border-color:var(--el-color-primary,#409eff);outline:none}.fv-prompts .fv-prompt-item.is-disabled{background-color:var(--el-fill-color-lighter,#fafafa);cursor:not-allowed;opacity:.6}.fv-prompts .fv-prompt-item.is-disabled,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-description,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-icon,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-label{color:var(--el-text-color-placeholder,#a8abb2)}.fv-prompts .fv-prompt-item .fv-prompt-item-main{align-items:flex-start;display:flex;gap:10px}.fv-prompts .fv-prompt-item .fv-prompt-item-icon{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:18px;margin-top:2px}.fv-prompts .fv-prompt-item .fv-prompt-item-text{flex:1;min-width:0}.fv-prompts .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:500;line-height:var(--el-font-line-height-primary,24px);word-break:break-word}.fv-prompts .fv-prompt-item .fv-prompt-item-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:var(--el-font-line-height-primary,24px);margin-top:2px;word-break:break-word}.fv-files-card{align-items:center;background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;display:flex;gap:8px;max-width:100%;min-width:0;padding:8px 24px 8px 10px;position:relative;transition:border-color var(--el-transition-duration,.3s)}.fv-files-card .fv-files-card-icon{color:var(--el-text-color-regular,#606266);flex-shrink:0;font-size:36px}.fv-files-card .fv-files-card-info{flex:1;min-width:0}.fv-files-card .fv-files-card-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-files-card .fv-files-card-size{color:var(--el-text-color-secondary,#909399)}.fv-files-card .fv-files-card-error,.fv-files-card .fv-files-card-size{font-size:var(--el-font-size-extra-small,12px);line-height:16px;white-space:nowrap}.fv-files-card .fv-files-card-error{color:var(--el-color-danger,#f56c6c);max-width:100%;overflow:hidden;text-overflow:ellipsis}.fv-files-card .fv-files-card-thumb{align-items:center;background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--el-border-radius-base,4px);display:flex;flex-shrink:0;height:48px;justify-content:center;overflow:hidden;width:48px}.fv-files-card .fv-files-card-thumb .fv-files-card-img{display:block;height:100%;object-fit:cover;width:100%}.fv-files-card .fv-files-card-thumb .fv-files-card-thumb-placeholder{color:var(--el-text-color-placeholder,#a8abb2);font-size:20px}.fv-files-card .fv-files-card-loading{animation:fv-files-card-rotating 1.5s linear infinite;color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:20px}.fv-files-card .fv-files-card-download,.fv-files-card .fv-files-card-remove{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;font-size:12px;height:18px;justify-content:center;opacity:0;padding:0;position:absolute;right:2px;top:2px;transition:opacity var(--el-transition-duration,.3s),color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:18px}.fv-files-card .fv-files-card-remove:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-danger,#f56c6c)}.fv-files-card .fv-files-card-download:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-files-card:hover .fv-files-card-download,.fv-files-card:hover .fv-files-card-remove{opacity:1}.fv-files-card.is-error{border-color:var(--el-color-danger,#f56c6c)}.fv-files-card.is-error .fv-files-card-name{color:var(--el-color-danger,#f56c6c)}@keyframes fv-files-card-rotating{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-attachments{align-items:flex-start;box-sizing:border-box;display:flex;gap:8px;width:100%}.fv-attachments .fv-attachments-input{display:none}.fv-attachments .fv-attachments-trigger{align-items:center;background-color:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;flex-shrink:0;font-size:16px;height:32px;justify-content:center;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:32px}.fv-attachments .fv-attachments-trigger:hover:not(:disabled){background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-trigger.is-full,.fv-attachments .fv-attachments-trigger:disabled{color:var(--el-text-color-placeholder,#a8abb2);cursor:not-allowed}.fv-attachments .fv-attachments-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.fv-attachments .fv-attachments-item{align-items:center;display:flex;min-width:0;position:relative}.fv-attachments .fv-attachments-item .fv-files-card{max-width:240px}.fv-attachments .fv-attachments-item .fv-attachments-retry{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;margin-left:4px;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:20px}.fv-attachments .fv-attachments-item .fv-attachments-retry:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-tip{color:var(--el-text-color-placeholder,#a8abb2);flex:1;font-size:var(--el-font-size-extra-small,12px);line-height:32px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations{box-sizing:border-box;overflow-y:auto;width:100%}.fv-conversations .fv-conversations-group .fv-conversations-group-title{background-color:var(--el-bg-color,#fff);color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-extra-small,12px);line-height:20px;padding:8px 12px 4px;position:sticky;top:0;z-index:1}.fv-conversations .fv-conversations-item{align-items:center;border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;gap:4px;padding:0 8px 0 12px;transition:background-color .2s;user-select:none}.fv-conversations .fv-conversations-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-conversations .fv-conversations-item:hover .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-conversations .fv-conversations-item.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-conversations .fv-conversations-item.is-active .fv-conversations-item-label{color:var(--el-color-primary,#409eff);font-weight:600}.fv-conversations .fv-conversations-item.is-disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-conversations .fv-conversations-item.is-disabled .fv-conversations-item-label{color:var(--el-text-color-disabled,#a8abb2)}.fv-conversations .fv-conversations-item.is-disabled:hover{background-color:transparent}.fv-conversations .fv-conversations-item .fv-conversations-item-content{flex:1;min-width:0;padding:9px 0}.fv-conversations .fv-conversations-item .fv-conversations-item-content .fv-conversations-item-label{color:var(--el-text-color-regular,#606266);display:block;font-size:var(--el-font-size-base,14px);line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;flex-shrink:0;height:24px;justify-content:center;opacity:0;padding:0;pointer-events:none;transition:opacity .2s;width:24px}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn:hover{background-color:var(--el-fill-color,#f0f2f5);color:var(--el-text-color-primary,#303133)}.fv-conversations.show-menu-always .fv-conversations-item .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-msg{align-items:flex-start;box-sizing:border-box;display:flex;gap:12px;padding:8px 0;width:100%}.fv-msg .fv-msg-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--fv-msg-avatar-radius,calc(var(--el-border-radius-base, 4px) + 4px));color:var(--el-text-color-secondary,#909399);flex-shrink:0;font-size:calc(var(--fv-msg-avatar-size, 50px)/2);height:var(--fv-msg-avatar-size,50px);overflow:hidden;width:var(--fv-msg-avatar-size,50px)}.fv-msg .fv-msg-avatar,.fv-msg .fv-msg-avatar-bot{align-items:center;display:flex;justify-content:center}.fv-msg .fv-msg-avatar-bot{background-color:var(--el-color-primary,#409eff);border-radius:inherit;color:#fff;height:100%;width:100%}.fv-msg .fv-msg-avatar-img{border-radius:inherit;display:block;height:100%;object-fit:cover;transform:scale(var(--fv-msg-avatar-scale,1));width:100%}.fv-msg.is-user .fv-msg-avatar{background-color:var(--el-color-primary-light-8,#d9ecff);color:var(--el-color-primary,#409eff);order:2}.fv-msg .fv-msg-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0}.fv-msg .fv-msg-main .fv-msg-header{align-items:center;color:var(--el-text-color-secondary,#909399);display:flex;font-size:var(--el-font-size-small,12px);gap:8px;margin-bottom:2px}.fv-msg .fv-msg-main .fv-msg-header .fv-msg-model{background-color:var(--el-fill-color,#f0f2f5);border-radius:var(--el-border-radius-base,4px);line-height:18px;padding:0 6px}.fv-msg .fv-msg-main .fv-msg-files{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file{align-items:center;background-color:transparent;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--el-font-size-small,12px);padding:4px 8px;transition:border-color var(--el-transition-duration,.3s)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:hover{border-color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:focus-visible{border-color:var(--el-color-primary,#409eff);outline:none}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-img{border-radius:var(--el-border-radius-base,4px);max-height:64px;max-width:64px;object-fit:cover}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card{cursor:pointer;max-width:240px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card :hover{border-color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card .fv-files-card-remove{display:none}.fv-msg .fv-msg-main .fv-msg-tools{box-sizing:border-box;margin-bottom:8px;padding-bottom:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-tools.has-separator{border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain{font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child){padding-bottom:6px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-description,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-head-title,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.is-text .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.status-success .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-title{color:var(--el-text-color-secondary,#909399)}.fv-msg .fv-msg-main .fv-msg-content{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;word-break:break-word}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-error{color:var(--el-color-danger,#f56c6c)}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending{align-items:center;display:inline-flex;gap:8px;padding:4px 0}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-spinner{animation:fv-msg-rotate .8s linear infinite;border:2px solid var(--el-color-primary-light-8,#dceaff);border-radius:50%;border-top-color:var(--el-color-primary,#409eff);box-sizing:border-box;flex-shrink:0;height:16px;width:16px}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-pending-text{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-content-user{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);padding:8px 12px;white-space:pre-wrap}.fv-msg .fv-msg-main .fv-msg-followups{margin-top:6px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 10px);box-sizing:border-box;color:var(--el-text-color-regular,#606266);cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:20px;max-width:100%;overflow:hidden;padding:4px 12px;text-align:left;text-overflow:ellipsis;transition:border-color .15s,color .15s,background-color .15s;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:hover:not(.is-disabled):not(:disabled){border-color:var(--el-color-primary-light-5,#a0cfff);color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:focus-visible{outline:2px solid var(--el-color-primary-light-5,#a0cfff);outline-offset:1px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup.is-disabled,.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:disabled{cursor:not-allowed;opacity:.55}.fv-msg .fv-msg-main .fv-msg-followups.is-list{align-items:flex-start;border-top:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followup{border:none;border-radius:0;color:var(--el-text-color-secondary,#909399);line-height:22px;padding:2px 4px;white-space:normal}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followups-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:20px;user-select:none}.fv-msg .fv-msg-main .fv-msg-followups.is-chips{display:flex;flex-wrap:wrap;gap:8px}.fv-msg.is-user{flex-direction:row;justify-content:flex-end}.fv-msg.is-user .fv-msg-main{align-items:flex-end}.fv-msg .fv-msg-actions{align-items:center;display:flex;gap:2px;margin-top:2px}.fv-msg .fv-msg-actions .el-button+.el-button{margin-left:0}.fv-msg .fv-msg-actions .fv-msg-branch{align-items:center;display:inline-flex;gap:2px;margin-left:6px}.fv-msg .fv-msg-actions .fv-msg-branch .fv-msg-branch-label{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:0 2px}.fv-msg .fv-msg-actions .fv-msg-feedback{align-items:center;display:inline-flex;gap:2px;margin-left:4px}.fv-msg .fv-msg-actions .fv-msg-feedback .fv-msg-feedback-btn.is-active{color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-actions .fv-msg-time{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:18px;margin-left:8px;user-select:none;white-space:nowrap}.fv-msg.is-user .fv-msg-actions{opacity:0;pointer-events:none;transition:opacity .15s}.fv-msg.is-user .fv-msg-actions .fv-msg-branch{margin-left:0}.fv-msg.is-user:focus-within .fv-msg-actions,.fv-msg.is-user:hover .fv-msg-actions{opacity:1;pointer-events:auto}@keyframes fv-msg-rotate{to{transform:rotate(1turn)}}.fv-msg-feedback-dialog .el-dialog__title{font-size:var(--el-font-size-base,14px)}.fv-msg-feedback-dialog .el-dialog__body{padding-bottom:8px;padding-top:8px}.fv-msg-feedback-dialog .el-dialog__footer{padding-top:0}.fv-messages{box-sizing:border-box;display:flex;flex:1;flex-direction:column;min-height:0;width:100%}.fv-messages .fv-messages-scroll{box-sizing:border-box;flex:1;min-height:0;overflow-y:auto;padding:0 16px}.fv-messages .fv-messages-inner{margin:0 auto;max-width:var(--fv-messages-max-width,none);position:relative}.fv-messages .fv-messages-empty{align-items:center;box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:flex-end;padding:32px 16px 0}.fv-messages .fv-messages-empty .fv-welcome.is-horizontal{max-width:var(--fv-welcome-max-width,var(--fv-empty-max-width,780px))}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-title{margin-bottom:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list{flex-wrap:wrap;gap:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item{background-color:var(--el-bg-color,#fff);border-radius:16px;flex:0 0 auto;max-width:100%;padding:6px 12px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa)}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-main{align-items:center;gap:6px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-icon{font-size:14px;margin-top:0}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-regular,#557096);font-size:var(--el-font-size-small,12px);font-weight:400;line-height:20px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-description{display:none}.fv-messages .fv-messages-back{bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));float:right;margin-right:16px;margin-top:-40px;pointer-events:auto;position:sticky;z-index:1}.fv-messages .fv-messages-back .fv-messages-back-icon{font-size:16px;line-height:1}.fv-messages-back-fade-enter-active,.fv-messages-back-fade-leave-active{transition:opacity .2s ease}.fv-messages-back-fade-enter-from,.fv-messages-back-fade-leave-to{opacity:0}.fv-ai-chat{background-color:var(--el-bg-color,#fff);box-sizing:border-box;color:var(--el-text-color-primary,#303133);display:flex;flex-direction:column;height:100%;min-height:0;width:100%}.fv-ai-chat .fv-thinking-content{padding:8px 0 0}.fv-ai-chat .fv-ai-chat-header{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:12px;justify-content:space-between;padding:8px 16px}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-title{font-size:var(--el-font-size-base,14px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-models{flex-shrink:0;width:220px}.fv-ai-chat .fv-ai-chat-body{display:flex;flex:1;min-height:0;overflow:hidden}.fv-ai-chat .fv-ai-chat-footer{flex-shrink:0;padding:0 16px 12px}.fv-ai-chat.is-empty{--fv-empty-max-width:780px}.fv-ai-chat.is-empty .fv-ai-chat-footer{display:flex;justify-content:center;padding:0}.fv-ai-chat.is-empty .fv-ai-chat-footer>.fv-sender{flex:0 1 var(--fv-empty-max-width);max-width:var(--fv-empty-max-width)}.fv-ai-chat.is-empty .fv-welcome.is-horizontal .fv-welcome-icon{transform:translateX(40px)}.fv-ai-chat.is-center-welcome .fv-ai-chat-body{flex:0 1 auto;margin-top:auto;min-height:0}.fv-ai-chat.is-center-welcome .fv-ai-chat-footer{margin-bottom:auto}html.dark .fv-ai-chat{background-color:var(--el-bg-color,#141414)}.fv-artifacts{background-color:var(--el-bg-color,#fff);border-left:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;max-width:var(--fv-artifacts-max-width,60%);min-width:var(--fv-artifacts-min-width,360px);overflow:hidden;width:var(--fv-artifacts-width,420px)}.fv-artifacts .fv-artifacts-tabs{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:4px;overflow-x:auto;padding:6px 8px}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab{background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;flex-shrink:0;font-size:var(--el-font-size-small,12px);line-height:1.4;padding:4px 10px;white-space:nowrap}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-text-color-primary,#303133)}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-artifacts .fv-artifacts-tabs .fv-artifacts-spacer{flex:1}.fv-artifacts .fv-artifacts-frame{background-color:var(--el-bg-color-page,#f2f3f5);border:none;flex:1;min-height:0;width:100%}html.dark .fv-artifacts{background-color:var(--el-bg-color,#141414)}
|
package/es/index.mjs
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import 'element-plus/es/components/icon/style/css';
|
|
2
|
+
import 'element-plus/es/components/button/style/css';
|
|
3
|
+
import 'element-plus/es/components/input/style/css';
|
|
4
|
+
import 'element-plus/es/components/message/style/css';
|
|
5
|
+
import 'element-plus/es/components/message-box/style/css';
|
|
6
|
+
import 'element-plus/es/components/popover/style/css';
|
|
7
|
+
import 'element-plus/es/components/tooltip/style/css';
|
|
8
|
+
import 'element-plus/es/components/dialog/style/css';
|
|
9
|
+
import 'element-plus/es/components/scrollbar/style/css';
|
|
10
|
+
import 'element-plus/es/components/avatar/style/css';
|
|
11
|
+
import 'element-plus/es/components/dropdown/style/css';
|
|
12
|
+
import 'element-plus/es/components/select/style/css';
|
|
13
|
+
import 'element-plus/es/components/image-viewer/style/css';
|
|
1
14
|
import { shallowRef, inject, computed, provide, defineComponent, ref, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, createCommentVNode, createBlock, Teleport, watch, normalizeClass, createTextVNode, toDisplayString, normalizeStyle, renderSlot, unref, renderList, createVNode, isRef, nextTick, onMounted, mergeProps, createSlots, withCtx, Transition, getCurrentInstance, useSlots, normalizeProps, guardReactiveProps, reactive, resolveDynamicComponent, markRaw, h, withModifiers, onActivated } from 'vue';
|
|
2
15
|
import { ElMessage, ElAvatar, ElButton, ElIcon, ElPopover, ElDialog, ElScrollbar, ElDropdown, ElDropdownMenu, ElDropdownItem, ElMessageBox, ElImageViewer, ElTooltip, ElInput, ElSelect, ElOption } from 'element-plus';
|
|
3
16
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
4
|
-
import { ArrowDown, Close, Check, Delete, Microphone, Promotion, VideoPause, Loading, SuccessFilled, CircleCloseFilled, ArrowUp, Picture, Paperclip, RefreshRight, MoreFilled, Search, User, DocumentCopy, Bottom, CopyDocument,
|
|
17
|
+
import { ArrowDown, Close, Check, Delete, Microphone, Promotion, VideoPause, Loading, SuccessFilled, CircleCloseFilled, ArrowUp, Picture, Download, Paperclip, RefreshRight, MoreFilled, Search, User, DocumentCopy, Bottom, CopyDocument, FullScreen } from '@element-plus/icons-vue';
|
|
5
18
|
|
|
6
19
|
/* eslint-disable no-bitwise */
|
|
7
20
|
|
|
@@ -33246,7 +33259,9 @@ const zhCN = {
|
|
|
33246
33259
|
uploading: "\u4E0A\u4F20\u4E2D\u2026"
|
|
33247
33260
|
},
|
|
33248
33261
|
filesCard: {
|
|
33249
|
-
remove: "\u5220\u9664"
|
|
33262
|
+
remove: "\u5220\u9664",
|
|
33263
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
33264
|
+
download: "\u4E0B\u8F7D"
|
|
33250
33265
|
},
|
|
33251
33266
|
conversations: {
|
|
33252
33267
|
menuLabel: "\u4F1A\u8BDD\u64CD\u4F5C",
|
|
@@ -33320,7 +33335,9 @@ const zhCN = {
|
|
|
33320
33335
|
noBody: "\u54CD\u5E94\u65E0 body",
|
|
33321
33336
|
generateFailed: "\u751F\u6210\u5931\u8D25",
|
|
33322
33337
|
recordUnsupported: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u97F3\u9891\u5F55\u5236",
|
|
33323
|
-
speechError: "\u8BED\u97F3\u8BC6\u522B\u9519\u8BEF: {error}"
|
|
33338
|
+
speechError: "\u8BED\u97F3\u8BC6\u522B\u9519\u8BEF: {error}",
|
|
33339
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33340
|
+
attachmentRejected: "\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B\u6587\u4EF6\uFF0C\u7981\u6B62\u4E0A\u4F20\uFF1A{name}"
|
|
33324
33341
|
}
|
|
33325
33342
|
};
|
|
33326
33343
|
|
|
@@ -33384,7 +33401,8 @@ const enUS = {
|
|
|
33384
33401
|
uploading: "Uploading\u2026"
|
|
33385
33402
|
},
|
|
33386
33403
|
filesCard: {
|
|
33387
|
-
remove: "Remove"
|
|
33404
|
+
remove: "Remove",
|
|
33405
|
+
download: "Download"
|
|
33388
33406
|
},
|
|
33389
33407
|
conversations: {
|
|
33390
33408
|
menuLabel: "Conversation actions",
|
|
@@ -33449,7 +33467,9 @@ const enUS = {
|
|
|
33449
33467
|
noBody: "Response has no body",
|
|
33450
33468
|
generateFailed: "Generation failed",
|
|
33451
33469
|
recordUnsupported: "Audio recording is not supported in this environment",
|
|
33452
|
-
speechError: "Speech recognition error: {error}"
|
|
33470
|
+
speechError: "Speech recognition error: {error}",
|
|
33471
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33472
|
+
attachmentRejected: "This file type is not supported: {name}"
|
|
33453
33473
|
}
|
|
33454
33474
|
};
|
|
33455
33475
|
|
|
@@ -33552,7 +33572,9 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
33552
33572
|
const url = URL.createObjectURL(blob);
|
|
33553
33573
|
const a = document.createElement("a");
|
|
33554
33574
|
a.href = url;
|
|
33555
|
-
|
|
33575
|
+
const d = /* @__PURE__ */ new Date();
|
|
33576
|
+
const p = (n) => String(n).padStart(2, "0");
|
|
33577
|
+
a.download = `table_${d.getFullYear()}${p(d.getMonth() + 1)}${p(d.getDate())}-${p(d.getHours())}${p(d.getMinutes())}${p(d.getSeconds())}.csv`;
|
|
33556
33578
|
a.click();
|
|
33557
33579
|
URL.revokeObjectURL(url);
|
|
33558
33580
|
}
|
|
@@ -34334,7 +34356,7 @@ const _hoisted_6$8 = {
|
|
|
34334
34356
|
"aria-hidden": "true"
|
|
34335
34357
|
};
|
|
34336
34358
|
const _hoisted_7$7 = { class: "fv-sender-recording-duration" };
|
|
34337
|
-
const _hoisted_8$
|
|
34359
|
+
const _hoisted_8$5 = ["value", "placeholder", "disabled", "readonly"];
|
|
34338
34360
|
const _hoisted_9$3 = {
|
|
34339
34361
|
key: 3,
|
|
34340
34362
|
class: "fv-sender-actions"
|
|
@@ -34814,7 +34836,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
34814
34836
|
onPaste,
|
|
34815
34837
|
onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
|
|
34816
34838
|
onBlur: onTextareaBlur
|
|
34817
|
-
}, null, 40, _hoisted_8$
|
|
34839
|
+
}, null, 40, _hoisted_8$5),
|
|
34818
34840
|
createCommentVNode(" \u6307\u4EE4\u5F39\u6846:\u5185\u7F6E el-popover,\u5B9A\u4F4D\u6309 triggerPopover* \u7CFB\u5217 "),
|
|
34819
34841
|
createVNode(unref(ElPopover), {
|
|
34820
34842
|
visible: triggerVisible.value && __props.triggerStrings.length > 0,
|
|
@@ -35419,7 +35441,7 @@ const _hoisted_7$5 = {
|
|
|
35419
35441
|
key: 0,
|
|
35420
35442
|
class: "fv-editor-mention-title"
|
|
35421
35443
|
};
|
|
35422
|
-
const _hoisted_8$
|
|
35444
|
+
const _hoisted_8$4 = {
|
|
35423
35445
|
key: 1,
|
|
35424
35446
|
class: "fv-editor-mention-loading"
|
|
35425
35447
|
};
|
|
@@ -36242,7 +36264,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
36242
36264
|
)) : createCommentVNode("v-if", true),
|
|
36243
36265
|
asyncLoading.value ? (openBlock(), createElementBlock(
|
|
36244
36266
|
"div",
|
|
36245
|
-
_hoisted_8$
|
|
36267
|
+
_hoisted_8$4,
|
|
36246
36268
|
toDisplayString(unref(dict).editorSender.loading),
|
|
36247
36269
|
1
|
|
36248
36270
|
/* TEXT */
|
|
@@ -36652,7 +36674,7 @@ const _hoisted_7$4 = {
|
|
|
36652
36674
|
key: 0,
|
|
36653
36675
|
class: "fv-chain-body"
|
|
36654
36676
|
};
|
|
36655
|
-
const _hoisted_8$
|
|
36677
|
+
const _hoisted_8$3 = {
|
|
36656
36678
|
key: 0,
|
|
36657
36679
|
class: "scroll-edge-fade-top",
|
|
36658
36680
|
"aria-hidden": "true"
|
|
@@ -37129,7 +37151,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37129
37151
|
], 10, _hoisted_4$7),
|
|
37130
37152
|
isTextExpanded(item.key) ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
37131
37153
|
createCommentVNode(" \u4E0A/\u4E0B\u7F18\u6E10\u9690\u6761:\u5185\u5BB9\u88AB\u6EDA\u52A8\u88C1\u6389\u7684\u65B9\u5411\u624D\u6E32\u67D3(\u72B6\u6001\u89C1 edgeFade),\r\n \u906E\u7F69\u76D6\u5728\u6EDA\u52A8\u533A\u4E4B\u4E0A\u3001\u4E0D\u62E6\u6307\u9488;\u6837\u5F0F\u7ECF .scroll-edge-fade-top/-bottom "),
|
|
37132
|
-
edgeFade(item.key).top ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
37154
|
+
edgeFade(item.key).top ? (openBlock(), createElementBlock("span", _hoisted_8$3)) : createCommentVNode("v-if", true),
|
|
37133
37155
|
edgeFade(item.key).bottom ? (openBlock(), createElementBlock("span", _hoisted_9$1)) : createCommentVNode("v-if", true),
|
|
37134
37156
|
createVNode(unref(ElScrollbar), {
|
|
37135
37157
|
ref_for: true,
|
|
@@ -37256,7 +37278,7 @@ const _hoisted_4$6 = { class: "fv-welcome-text" };
|
|
|
37256
37278
|
const _hoisted_5$5 = { class: "fv-welcome-name" };
|
|
37257
37279
|
const _hoisted_6$4 = { class: "fv-welcome-name-accent" };
|
|
37258
37280
|
const _hoisted_7$3 = { class: "fv-welcome-description" };
|
|
37259
|
-
const _hoisted_8$
|
|
37281
|
+
const _hoisted_8$2 = {
|
|
37260
37282
|
key: 0,
|
|
37261
37283
|
class: "fv-welcome-suggestions"
|
|
37262
37284
|
};
|
|
@@ -37359,7 +37381,7 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
37359
37381
|
])
|
|
37360
37382
|
]),
|
|
37361
37383
|
createCommentVNode(" \u5EFA\u8BAE\u533A(#suggestions \u63D2\u69FD;\u8C03\u7528\u65B9\u901A\u5E38\u6E32\u67D3 Prompts \u5FEB\u6377\u6761\u3002\r\n \u6302\u5728\u6587\u6848\u4E0B\u65B9\u4E0E\u6587\u6848\u540C\u5217:\u6A2A\u6392\u65F6\u968F\u6587\u6848\u9760\u5DE6,\u53F3\u4FA7\u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u9876\u9AD8) "),
|
|
37362
|
-
_ctx.$slots.suggestions ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
37384
|
+
_ctx.$slots.suggestions ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
|
|
37363
37385
|
renderSlot(_ctx.$slots, "suggestions")
|
|
37364
37386
|
])) : createCommentVNode("v-if", true)
|
|
37365
37387
|
])
|
|
@@ -37542,6 +37564,7 @@ const _hoisted_6$2 = {
|
|
|
37542
37564
|
class: "fv-files-card-size"
|
|
37543
37565
|
};
|
|
37544
37566
|
const _hoisted_7$1 = ["aria-label"];
|
|
37567
|
+
const _hoisted_8$1 = ["aria-label"];
|
|
37545
37568
|
const KB = 1024;
|
|
37546
37569
|
const MB = 1024 * 1024;
|
|
37547
37570
|
var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
@@ -37556,6 +37579,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
37556
37579
|
imageSize: { type: String, required: false, default: "" },
|
|
37557
37580
|
errorText: { type: String, required: false, default: "" },
|
|
37558
37581
|
onDelete: { type: Function, required: false, default: void 0 },
|
|
37582
|
+
onDownload: { type: Function, required: false, default: void 0 },
|
|
37559
37583
|
locale: { type: null, required: false, default: void 0 }
|
|
37560
37584
|
},
|
|
37561
37585
|
setup(__props) {
|
|
@@ -37621,6 +37645,10 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
37621
37645
|
e.stopPropagation();
|
|
37622
37646
|
props.onDelete?.();
|
|
37623
37647
|
}
|
|
37648
|
+
function onDownloadClick(e) {
|
|
37649
|
+
e.stopPropagation();
|
|
37650
|
+
props.onDownload?.();
|
|
37651
|
+
}
|
|
37624
37652
|
return (_ctx, _cache) => {
|
|
37625
37653
|
return openBlock(), createElementBlock(
|
|
37626
37654
|
"div",
|
|
@@ -37708,7 +37736,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
37708
37736
|
_: 1
|
|
37709
37737
|
/* STABLE */
|
|
37710
37738
|
})) : createCommentVNode("v-if", true),
|
|
37711
|
-
createCommentVNode(" \u53F3\u4E0A\u5220\u9664\u6309\u94AE "),
|
|
37739
|
+
createCommentVNode(" \u53F3\u4E0A\u89D2\u6309\u94AE(\u540C\u4F4D\u7F6E):\u5220\u9664\u6309\u94AE\u5E38\u9A7B(\u65E7\u5951\u7EA6,\u65E0\u56DE\u8C03\u65F6\u4E3A\u65E0\u58F0\u5360\u4F4D);\r\n \u4E0B\u8F7D\u6309\u94AE\u6309 onDownload \u6CE8\u5165\u6E32\u67D3\u2014\u2014\u6D88\u606F\u9644\u4EF6\u5361\u8D70\u4E0B\u8F7D,\u8F93\u5165\u533A\u9644\u4EF6\u5361\u8D70\u5220\u9664,\r\n \u6D88\u606F\u5361\u5185\u5220\u9664\u6309\u94AE\u7531 AiMessage \u4F5C\u7528\u57DF\u6837\u5F0F\u9690\u85CF,\u4E24\u8005\u4E0D\u91CD\u53E0 "),
|
|
37712
37740
|
createElementVNode("button", {
|
|
37713
37741
|
type: "button",
|
|
37714
37742
|
class: "fv-files-card-remove",
|
|
@@ -37722,7 +37750,22 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
37722
37750
|
_: 1
|
|
37723
37751
|
/* STABLE */
|
|
37724
37752
|
})
|
|
37725
|
-
], 8, _hoisted_7$1)
|
|
37753
|
+
], 8, _hoisted_7$1),
|
|
37754
|
+
__props.onDownload ? (openBlock(), createElementBlock("button", {
|
|
37755
|
+
key: 3,
|
|
37756
|
+
type: "button",
|
|
37757
|
+
class: "fv-files-card-download",
|
|
37758
|
+
"aria-label": unref(dict).filesCard.download,
|
|
37759
|
+
onClick: onDownloadClick
|
|
37760
|
+
}, [
|
|
37761
|
+
createVNode(unref(ElIcon), null, {
|
|
37762
|
+
default: withCtx(() => [
|
|
37763
|
+
createVNode(unref(Download))
|
|
37764
|
+
]),
|
|
37765
|
+
_: 1
|
|
37766
|
+
/* STABLE */
|
|
37767
|
+
})
|
|
37768
|
+
], 8, _hoisted_8$1)) : createCommentVNode("v-if", true)
|
|
37726
37769
|
],
|
|
37727
37770
|
2
|
|
37728
37771
|
/* CLASS */
|
|
@@ -37770,9 +37813,19 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
37770
37813
|
function isFull() {
|
|
37771
37814
|
return props.count > 0 && innerList.value.length >= props.count;
|
|
37772
37815
|
}
|
|
37816
|
+
const IMAGE_EXTS = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg", "ico", "heic", "heif", "avif", "tiff"]);
|
|
37817
|
+
function tokenIsImage(t) {
|
|
37818
|
+
const s = t.trim().toLowerCase();
|
|
37819
|
+
if (s.startsWith("image/")) return true;
|
|
37820
|
+
return s.startsWith(".") && IMAGE_EXTS.has(s.slice(1));
|
|
37821
|
+
}
|
|
37822
|
+
function acceptIsImageOnly(accept) {
|
|
37823
|
+
const tokens = accept.split(",").filter((t) => t.trim());
|
|
37824
|
+
return tokens.length > 0 && tokens.every(tokenIsImage);
|
|
37825
|
+
}
|
|
37773
37826
|
function isImageFile(file) {
|
|
37774
|
-
if (file.type
|
|
37775
|
-
return
|
|
37827
|
+
if (file.type) return file.type.startsWith("image/");
|
|
37828
|
+
return acceptIsImageOnly(props.accept);
|
|
37776
37829
|
}
|
|
37777
37830
|
function createUrl(file) {
|
|
37778
37831
|
try {
|
|
@@ -39177,6 +39230,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39177
39230
|
const actionsVisible = computed(
|
|
39178
39231
|
() => props.showActions && (isUser.value || props.message.status === "done")
|
|
39179
39232
|
);
|
|
39233
|
+
const userCopyVisible = computed(() => !!props.message.content);
|
|
39180
39234
|
const feedbackAction = computed(
|
|
39181
39235
|
() => props.message.feedback?.action ?? null
|
|
39182
39236
|
);
|
|
@@ -39258,6 +39312,22 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39258
39312
|
previewVisible.value = true;
|
|
39259
39313
|
}
|
|
39260
39314
|
}
|
|
39315
|
+
async function downloadFile(f) {
|
|
39316
|
+
let href = f.url;
|
|
39317
|
+
if (!href) return;
|
|
39318
|
+
if (props.resolveFileUrl && /^https?:\/\//i.test(href)) {
|
|
39319
|
+
try {
|
|
39320
|
+
href = resolvedUrls.value[href] ?? await Promise.resolve(props.resolveFileUrl(f));
|
|
39321
|
+
} catch {
|
|
39322
|
+
}
|
|
39323
|
+
}
|
|
39324
|
+
const a = document.createElement("a");
|
|
39325
|
+
a.href = href;
|
|
39326
|
+
a.download = f.name || "";
|
|
39327
|
+
document.body.appendChild(a);
|
|
39328
|
+
a.click();
|
|
39329
|
+
document.body.removeChild(a);
|
|
39330
|
+
}
|
|
39261
39331
|
const previewSrcList = computed(() => previewList.value.map((f) => displayUrl(f)));
|
|
39262
39332
|
function onCopy() {
|
|
39263
39333
|
emit("copy", props.message);
|
|
@@ -39380,8 +39450,9 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39380
39450
|
name: f.name,
|
|
39381
39451
|
size: f.size,
|
|
39382
39452
|
"file-type": "file",
|
|
39453
|
+
"on-download": () => downloadFile(f),
|
|
39383
39454
|
onClick: ($event) => onFileClick(f)
|
|
39384
|
-
}, null, 8, ["name", "size", "onClick"]))
|
|
39455
|
+
}, null, 8, ["name", "size", "on-download", "onClick"]))
|
|
39385
39456
|
],
|
|
39386
39457
|
64
|
|
39387
39458
|
/* STABLE_FRAGMENT */
|
|
@@ -39520,7 +39591,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39520
39591
|
createCommentVNode(" \u64CD\u4F5C\u533A:assistant \u590D\u5236/\u91CD\u751F\u6210 + \u6D88\u606F\u8BC4\u4EF7 + \u5206\u652F\u5207\u6362;user \u4EC5\u590D\u5236(hover \u6D88\u606F\u65F6\u6D6E\u73B0,\u89C1 scss)\u3002\r\n \u590D\u5236/\u91CD\u751F\u6210\u6309\u94AE\u5F85\u56DE\u7B54\u843D\u5B9A(status=done)\u624D\u6E32\u67D3\u2014\u2014\u751F\u6210\u4E2D(pending/streaming)\u4E0D\u51FA\u5DE5\u5177\u6309\u94AE;\r\n error \u65E0\u53EF\u590D\u5236/\u91CD\u751F\u6210\u6B63\u6587\u4E5F\u4E0D\u51FA;\u5206\u652F\u5207\u6362\u5668\u4E0E\u65F6\u95F4\u4E0D\u53D7\u6B64\u95E8\u63A7,\u751F\u6210\u4E2D\u4ECD\u53EF\u5207\u5206\u652F/\u663E\u65F6\u95F4\u3002\r\n feedbackVisible \u72EC\u7ACB\u4E8E showActions:\u5173\u95ED\u64CD\u4F5C\u6309\u94AE\u4E0D\u541E\u8BC4\u4EF7\u5165\u53E3\u3002\r\n \u5BB9\u5668\u663E\u9690 = \u4EFB\u4E00\u5185\u4EF6\u5728\u573A(\u64CD\u4F5C\u6309\u94AE/\u8BC4\u4EF7/\u5206\u652F/\u65F6\u95F4),\u5168\u90E8\u7F3A\u5E2D\u624D\u4E0D\u6E32\u67D3,\u907F\u514D\u7A7A\u64CD\u4F5C\u533A\u5360\u4F4D "),
|
|
39521
39592
|
actionsVisible.value || feedbackVisible.value && !isToolOnlyRow.value || __props.showBranchSwitch && __props.branch && __props.branch.count > 1 || messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
39522
39593
|
renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
|
|
39523
|
-
actionsVisible.value && isUser.value ? (openBlock(), createBlock(unref(ElTooltip), {
|
|
39594
|
+
actionsVisible.value && isUser.value && userCopyVisible.value ? (openBlock(), createBlock(unref(ElTooltip), {
|
|
39524
39595
|
key: 0,
|
|
39525
39596
|
content: unref(dict).aiMessage.copy,
|
|
39526
39597
|
placement: "top"
|
|
@@ -40569,7 +40640,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40569
40640
|
theme: { type: String, required: false, default: "light" },
|
|
40570
40641
|
locale: { type: null, required: false }
|
|
40571
40642
|
},
|
|
40572
|
-
emits: ["update:messages", "send", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "tool-event"],
|
|
40643
|
+
emits: ["update:messages", "send", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-reject", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "tool-event"],
|
|
40573
40644
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40574
40645
|
const props = __props;
|
|
40575
40646
|
const dict = useLocaleDict(() => props.locale);
|
|
@@ -40672,6 +40743,36 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40672
40743
|
function onAttachmentExceed(file) {
|
|
40673
40744
|
emit("attachment-exceed", file);
|
|
40674
40745
|
}
|
|
40746
|
+
const acceptExts = computed(() => {
|
|
40747
|
+
const exts = /* @__PURE__ */ new Set();
|
|
40748
|
+
for (const token of props.accept.split(",")) {
|
|
40749
|
+
const t = token.trim().toLowerCase();
|
|
40750
|
+
if (t.startsWith(".") && t.length > 1) exts.add(t.slice(1));
|
|
40751
|
+
}
|
|
40752
|
+
return exts;
|
|
40753
|
+
});
|
|
40754
|
+
const acceptMimePrefixes = computed(() => {
|
|
40755
|
+
const prefixes = [];
|
|
40756
|
+
for (const token of props.accept.split(",")) {
|
|
40757
|
+
const t = token.trim().toLowerCase();
|
|
40758
|
+
if (t.endsWith("/*")) prefixes.push(t.slice(0, -1));
|
|
40759
|
+
}
|
|
40760
|
+
return prefixes;
|
|
40761
|
+
});
|
|
40762
|
+
const attachmentBeforeUpload = computed(() => {
|
|
40763
|
+
if (!acceptExts.value.size && !acceptMimePrefixes.value.length) return void 0;
|
|
40764
|
+
const exts = acceptExts.value;
|
|
40765
|
+
const prefixes = acceptMimePrefixes.value;
|
|
40766
|
+
return (file) => {
|
|
40767
|
+
const name = file.name.toLowerCase();
|
|
40768
|
+
const ext = name.includes(".") ? name.split(".").pop() : "";
|
|
40769
|
+
if (ext && exts.has(ext)) return true;
|
|
40770
|
+
if (file.type && prefixes.some((p) => file.type.toLowerCase().startsWith(p))) return true;
|
|
40771
|
+
ElMessage.warning(dict.value.errors.attachmentRejected.replace("{name}", file.name));
|
|
40772
|
+
emit("attachment-reject", file);
|
|
40773
|
+
return false;
|
|
40774
|
+
};
|
|
40775
|
+
});
|
|
40675
40776
|
function onAttachmentUploaded(item, _result) {
|
|
40676
40777
|
const err = item.errMessage;
|
|
40677
40778
|
emit("attachment-uploaded", item, { ok: item.status === "success", message: item.status === "success" ? void 0 : err });
|
|
@@ -41092,10 +41193,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41092
41193
|
accept: __props.accept,
|
|
41093
41194
|
count: __props.attachmentLimit,
|
|
41094
41195
|
upload: attachmentsUploadHook.value,
|
|
41196
|
+
"before-upload": attachmentBeforeUpload.value,
|
|
41095
41197
|
disabled: unref(isLoading),
|
|
41096
41198
|
onExceed: onAttachmentExceed,
|
|
41097
41199
|
onUploaded: onAttachmentUploaded
|
|
41098
|
-
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
41200
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "before-upload", "disabled"])
|
|
41099
41201
|
]),
|
|
41100
41202
|
key: "0"
|
|
41101
41203
|
} : void 0,
|
|
@@ -41109,10 +41211,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41109
41211
|
accept: __props.accept,
|
|
41110
41212
|
count: __props.attachmentLimit,
|
|
41111
41213
|
upload: attachmentsUploadHook.value,
|
|
41214
|
+
"before-upload": attachmentBeforeUpload.value,
|
|
41112
41215
|
disabled: unref(isLoading),
|
|
41113
41216
|
onExceed: onAttachmentExceed,
|
|
41114
41217
|
onUploaded: onAttachmentUploaded
|
|
41115
|
-
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
41218
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "before-upload", "disabled"])
|
|
41116
41219
|
]),
|
|
41117
41220
|
key: "1"
|
|
41118
41221
|
} : void 0,
|
package/lib/index.js
CHANGED
|
@@ -33266,7 +33266,9 @@
|
|
|
33266
33266
|
uploading: "\u4E0A\u4F20\u4E2D\u2026"
|
|
33267
33267
|
},
|
|
33268
33268
|
filesCard: {
|
|
33269
|
-
remove: "\u5220\u9664"
|
|
33269
|
+
remove: "\u5220\u9664",
|
|
33270
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
33271
|
+
download: "\u4E0B\u8F7D"
|
|
33270
33272
|
},
|
|
33271
33273
|
conversations: {
|
|
33272
33274
|
menuLabel: "\u4F1A\u8BDD\u64CD\u4F5C",
|
|
@@ -33340,7 +33342,9 @@
|
|
|
33340
33342
|
noBody: "\u54CD\u5E94\u65E0 body",
|
|
33341
33343
|
generateFailed: "\u751F\u6210\u5931\u8D25",
|
|
33342
33344
|
recordUnsupported: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u97F3\u9891\u5F55\u5236",
|
|
33343
|
-
speechError: "\u8BED\u97F3\u8BC6\u522B\u9519\u8BEF: {error}"
|
|
33345
|
+
speechError: "\u8BED\u97F3\u8BC6\u522B\u9519\u8BEF: {error}",
|
|
33346
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33347
|
+
attachmentRejected: "\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B\u6587\u4EF6\uFF0C\u7981\u6B62\u4E0A\u4F20\uFF1A{name}"
|
|
33344
33348
|
}
|
|
33345
33349
|
};
|
|
33346
33350
|
|
|
@@ -33404,7 +33408,8 @@
|
|
|
33404
33408
|
uploading: "Uploading\u2026"
|
|
33405
33409
|
},
|
|
33406
33410
|
filesCard: {
|
|
33407
|
-
remove: "Remove"
|
|
33411
|
+
remove: "Remove",
|
|
33412
|
+
download: "Download"
|
|
33408
33413
|
},
|
|
33409
33414
|
conversations: {
|
|
33410
33415
|
menuLabel: "Conversation actions",
|
|
@@ -33469,7 +33474,9 @@
|
|
|
33469
33474
|
noBody: "Response has no body",
|
|
33470
33475
|
generateFailed: "Generation failed",
|
|
33471
33476
|
recordUnsupported: "Audio recording is not supported in this environment",
|
|
33472
|
-
speechError: "Speech recognition error: {error}"
|
|
33477
|
+
speechError: "Speech recognition error: {error}",
|
|
33478
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33479
|
+
attachmentRejected: "This file type is not supported: {name}"
|
|
33473
33480
|
}
|
|
33474
33481
|
};
|
|
33475
33482
|
|
|
@@ -33572,7 +33579,9 @@
|
|
|
33572
33579
|
const url = URL.createObjectURL(blob);
|
|
33573
33580
|
const a = document.createElement("a");
|
|
33574
33581
|
a.href = url;
|
|
33575
|
-
|
|
33582
|
+
const d = /* @__PURE__ */ new Date();
|
|
33583
|
+
const p = (n) => String(n).padStart(2, "0");
|
|
33584
|
+
a.download = `table_${d.getFullYear()}${p(d.getMonth() + 1)}${p(d.getDate())}-${p(d.getHours())}${p(d.getMinutes())}${p(d.getSeconds())}.csv`;
|
|
33576
33585
|
a.click();
|
|
33577
33586
|
URL.revokeObjectURL(url);
|
|
33578
33587
|
}
|
|
@@ -34354,7 +34363,7 @@
|
|
|
34354
34363
|
"aria-hidden": "true"
|
|
34355
34364
|
};
|
|
34356
34365
|
const _hoisted_7$7 = { class: "fv-sender-recording-duration" };
|
|
34357
|
-
const _hoisted_8$
|
|
34366
|
+
const _hoisted_8$5 = ["value", "placeholder", "disabled", "readonly"];
|
|
34358
34367
|
const _hoisted_9$3 = {
|
|
34359
34368
|
key: 3,
|
|
34360
34369
|
class: "fv-sender-actions"
|
|
@@ -34834,7 +34843,7 @@
|
|
|
34834
34843
|
onPaste,
|
|
34835
34844
|
onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
|
|
34836
34845
|
onBlur: onTextareaBlur
|
|
34837
|
-
}, null, 40, _hoisted_8$
|
|
34846
|
+
}, null, 40, _hoisted_8$5),
|
|
34838
34847
|
vue.createCommentVNode(" \u6307\u4EE4\u5F39\u6846:\u5185\u7F6E el-popover,\u5B9A\u4F4D\u6309 triggerPopover* \u7CFB\u5217 "),
|
|
34839
34848
|
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
34840
34849
|
visible: triggerVisible.value && __props.triggerStrings.length > 0,
|
|
@@ -35439,7 +35448,7 @@
|
|
|
35439
35448
|
key: 0,
|
|
35440
35449
|
class: "fv-editor-mention-title"
|
|
35441
35450
|
};
|
|
35442
|
-
const _hoisted_8$
|
|
35451
|
+
const _hoisted_8$4 = {
|
|
35443
35452
|
key: 1,
|
|
35444
35453
|
class: "fv-editor-mention-loading"
|
|
35445
35454
|
};
|
|
@@ -36262,7 +36271,7 @@
|
|
|
36262
36271
|
)) : vue.createCommentVNode("v-if", true),
|
|
36263
36272
|
asyncLoading.value ? (vue.openBlock(), vue.createElementBlock(
|
|
36264
36273
|
"div",
|
|
36265
|
-
_hoisted_8$
|
|
36274
|
+
_hoisted_8$4,
|
|
36266
36275
|
vue.toDisplayString(vue.unref(dict).editorSender.loading),
|
|
36267
36276
|
1
|
|
36268
36277
|
/* TEXT */
|
|
@@ -36672,7 +36681,7 @@
|
|
|
36672
36681
|
key: 0,
|
|
36673
36682
|
class: "fv-chain-body"
|
|
36674
36683
|
};
|
|
36675
|
-
const _hoisted_8$
|
|
36684
|
+
const _hoisted_8$3 = {
|
|
36676
36685
|
key: 0,
|
|
36677
36686
|
class: "scroll-edge-fade-top",
|
|
36678
36687
|
"aria-hidden": "true"
|
|
@@ -37149,7 +37158,7 @@
|
|
|
37149
37158
|
], 10, _hoisted_4$7),
|
|
37150
37159
|
isTextExpanded(item.key) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$4, [
|
|
37151
37160
|
vue.createCommentVNode(" \u4E0A/\u4E0B\u7F18\u6E10\u9690\u6761:\u5185\u5BB9\u88AB\u6EDA\u52A8\u88C1\u6389\u7684\u65B9\u5411\u624D\u6E32\u67D3(\u72B6\u6001\u89C1 edgeFade),\r\n \u906E\u7F69\u76D6\u5728\u6EDA\u52A8\u533A\u4E4B\u4E0A\u3001\u4E0D\u62E6\u6307\u9488;\u6837\u5F0F\u7ECF .scroll-edge-fade-top/-bottom "),
|
|
37152
|
-
edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$
|
|
37161
|
+
edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$3)) : vue.createCommentVNode("v-if", true),
|
|
37153
37162
|
edgeFade(item.key).bottom ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$1)) : vue.createCommentVNode("v-if", true),
|
|
37154
37163
|
vue.createVNode(vue.unref(elementPlus.ElScrollbar), {
|
|
37155
37164
|
ref_for: true,
|
|
@@ -37276,7 +37285,7 @@
|
|
|
37276
37285
|
const _hoisted_5$5 = { class: "fv-welcome-name" };
|
|
37277
37286
|
const _hoisted_6$4 = { class: "fv-welcome-name-accent" };
|
|
37278
37287
|
const _hoisted_7$3 = { class: "fv-welcome-description" };
|
|
37279
|
-
const _hoisted_8$
|
|
37288
|
+
const _hoisted_8$2 = {
|
|
37280
37289
|
key: 0,
|
|
37281
37290
|
class: "fv-welcome-suggestions"
|
|
37282
37291
|
};
|
|
@@ -37379,7 +37388,7 @@
|
|
|
37379
37388
|
])
|
|
37380
37389
|
]),
|
|
37381
37390
|
vue.createCommentVNode(" \u5EFA\u8BAE\u533A(#suggestions \u63D2\u69FD;\u8C03\u7528\u65B9\u901A\u5E38\u6E32\u67D3 Prompts \u5FEB\u6377\u6761\u3002\r\n \u6302\u5728\u6587\u6848\u4E0B\u65B9\u4E0E\u6587\u6848\u540C\u5217:\u6A2A\u6392\u65F6\u968F\u6587\u6848\u9760\u5DE6,\u53F3\u4FA7\u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u9876\u9AD8) "),
|
|
37382
|
-
_ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$
|
|
37391
|
+
_ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$2, [
|
|
37383
37392
|
vue.renderSlot(_ctx.$slots, "suggestions")
|
|
37384
37393
|
])) : vue.createCommentVNode("v-if", true)
|
|
37385
37394
|
])
|
|
@@ -37562,6 +37571,7 @@
|
|
|
37562
37571
|
class: "fv-files-card-size"
|
|
37563
37572
|
};
|
|
37564
37573
|
const _hoisted_7$1 = ["aria-label"];
|
|
37574
|
+
const _hoisted_8$1 = ["aria-label"];
|
|
37565
37575
|
const KB = 1024;
|
|
37566
37576
|
const MB = 1024 * 1024;
|
|
37567
37577
|
var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -37576,6 +37586,7 @@
|
|
|
37576
37586
|
imageSize: { type: String, required: false, default: "" },
|
|
37577
37587
|
errorText: { type: String, required: false, default: "" },
|
|
37578
37588
|
onDelete: { type: Function, required: false, default: void 0 },
|
|
37589
|
+
onDownload: { type: Function, required: false, default: void 0 },
|
|
37579
37590
|
locale: { type: null, required: false, default: void 0 }
|
|
37580
37591
|
},
|
|
37581
37592
|
setup(__props) {
|
|
@@ -37641,6 +37652,10 @@
|
|
|
37641
37652
|
e.stopPropagation();
|
|
37642
37653
|
props.onDelete?.();
|
|
37643
37654
|
}
|
|
37655
|
+
function onDownloadClick(e) {
|
|
37656
|
+
e.stopPropagation();
|
|
37657
|
+
props.onDownload?.();
|
|
37658
|
+
}
|
|
37644
37659
|
return (_ctx, _cache) => {
|
|
37645
37660
|
return vue.openBlock(), vue.createElementBlock(
|
|
37646
37661
|
"div",
|
|
@@ -37728,7 +37743,7 @@
|
|
|
37728
37743
|
_: 1
|
|
37729
37744
|
/* STABLE */
|
|
37730
37745
|
})) : vue.createCommentVNode("v-if", true),
|
|
37731
|
-
vue.createCommentVNode(" \u53F3\u4E0A\u5220\u9664\u6309\u94AE "),
|
|
37746
|
+
vue.createCommentVNode(" \u53F3\u4E0A\u89D2\u6309\u94AE(\u540C\u4F4D\u7F6E):\u5220\u9664\u6309\u94AE\u5E38\u9A7B(\u65E7\u5951\u7EA6,\u65E0\u56DE\u8C03\u65F6\u4E3A\u65E0\u58F0\u5360\u4F4D);\r\n \u4E0B\u8F7D\u6309\u94AE\u6309 onDownload \u6CE8\u5165\u6E32\u67D3\u2014\u2014\u6D88\u606F\u9644\u4EF6\u5361\u8D70\u4E0B\u8F7D,\u8F93\u5165\u533A\u9644\u4EF6\u5361\u8D70\u5220\u9664,\r\n \u6D88\u606F\u5361\u5185\u5220\u9664\u6309\u94AE\u7531 AiMessage \u4F5C\u7528\u57DF\u6837\u5F0F\u9690\u85CF,\u4E24\u8005\u4E0D\u91CD\u53E0 "),
|
|
37732
37747
|
vue.createElementVNode("button", {
|
|
37733
37748
|
type: "button",
|
|
37734
37749
|
class: "fv-files-card-remove",
|
|
@@ -37742,7 +37757,22 @@
|
|
|
37742
37757
|
_: 1
|
|
37743
37758
|
/* STABLE */
|
|
37744
37759
|
})
|
|
37745
|
-
], 8, _hoisted_7$1)
|
|
37760
|
+
], 8, _hoisted_7$1),
|
|
37761
|
+
__props.onDownload ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
37762
|
+
key: 3,
|
|
37763
|
+
type: "button",
|
|
37764
|
+
class: "fv-files-card-download",
|
|
37765
|
+
"aria-label": vue.unref(dict).filesCard.download,
|
|
37766
|
+
onClick: onDownloadClick
|
|
37767
|
+
}, [
|
|
37768
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
37769
|
+
default: vue.withCtx(() => [
|
|
37770
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
|
|
37771
|
+
]),
|
|
37772
|
+
_: 1
|
|
37773
|
+
/* STABLE */
|
|
37774
|
+
})
|
|
37775
|
+
], 8, _hoisted_8$1)) : vue.createCommentVNode("v-if", true)
|
|
37746
37776
|
],
|
|
37747
37777
|
2
|
|
37748
37778
|
/* CLASS */
|
|
@@ -37790,9 +37820,19 @@
|
|
|
37790
37820
|
function isFull() {
|
|
37791
37821
|
return props.count > 0 && innerList.value.length >= props.count;
|
|
37792
37822
|
}
|
|
37823
|
+
const IMAGE_EXTS = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg", "ico", "heic", "heif", "avif", "tiff"]);
|
|
37824
|
+
function tokenIsImage(t) {
|
|
37825
|
+
const s = t.trim().toLowerCase();
|
|
37826
|
+
if (s.startsWith("image/")) return true;
|
|
37827
|
+
return s.startsWith(".") && IMAGE_EXTS.has(s.slice(1));
|
|
37828
|
+
}
|
|
37829
|
+
function acceptIsImageOnly(accept) {
|
|
37830
|
+
const tokens = accept.split(",").filter((t) => t.trim());
|
|
37831
|
+
return tokens.length > 0 && tokens.every(tokenIsImage);
|
|
37832
|
+
}
|
|
37793
37833
|
function isImageFile(file) {
|
|
37794
|
-
if (file.type
|
|
37795
|
-
return
|
|
37834
|
+
if (file.type) return file.type.startsWith("image/");
|
|
37835
|
+
return acceptIsImageOnly(props.accept);
|
|
37796
37836
|
}
|
|
37797
37837
|
function createUrl(file) {
|
|
37798
37838
|
try {
|
|
@@ -39197,6 +39237,7 @@
|
|
|
39197
39237
|
const actionsVisible = vue.computed(
|
|
39198
39238
|
() => props.showActions && (isUser.value || props.message.status === "done")
|
|
39199
39239
|
);
|
|
39240
|
+
const userCopyVisible = vue.computed(() => !!props.message.content);
|
|
39200
39241
|
const feedbackAction = vue.computed(
|
|
39201
39242
|
() => props.message.feedback?.action ?? null
|
|
39202
39243
|
);
|
|
@@ -39278,6 +39319,22 @@
|
|
|
39278
39319
|
previewVisible.value = true;
|
|
39279
39320
|
}
|
|
39280
39321
|
}
|
|
39322
|
+
async function downloadFile(f) {
|
|
39323
|
+
let href = f.url;
|
|
39324
|
+
if (!href) return;
|
|
39325
|
+
if (props.resolveFileUrl && /^https?:\/\//i.test(href)) {
|
|
39326
|
+
try {
|
|
39327
|
+
href = resolvedUrls.value[href] ?? await Promise.resolve(props.resolveFileUrl(f));
|
|
39328
|
+
} catch {
|
|
39329
|
+
}
|
|
39330
|
+
}
|
|
39331
|
+
const a = document.createElement("a");
|
|
39332
|
+
a.href = href;
|
|
39333
|
+
a.download = f.name || "";
|
|
39334
|
+
document.body.appendChild(a);
|
|
39335
|
+
a.click();
|
|
39336
|
+
document.body.removeChild(a);
|
|
39337
|
+
}
|
|
39281
39338
|
const previewSrcList = vue.computed(() => previewList.value.map((f) => displayUrl(f)));
|
|
39282
39339
|
function onCopy() {
|
|
39283
39340
|
emit("copy", props.message);
|
|
@@ -39400,8 +39457,9 @@
|
|
|
39400
39457
|
name: f.name,
|
|
39401
39458
|
size: f.size,
|
|
39402
39459
|
"file-type": "file",
|
|
39460
|
+
"on-download": () => downloadFile(f),
|
|
39403
39461
|
onClick: ($event) => onFileClick(f)
|
|
39404
|
-
}, null, 8, ["name", "size", "onClick"]))
|
|
39462
|
+
}, null, 8, ["name", "size", "on-download", "onClick"]))
|
|
39405
39463
|
],
|
|
39406
39464
|
64
|
|
39407
39465
|
/* STABLE_FRAGMENT */
|
|
@@ -39540,7 +39598,7 @@
|
|
|
39540
39598
|
vue.createCommentVNode(" \u64CD\u4F5C\u533A:assistant \u590D\u5236/\u91CD\u751F\u6210 + \u6D88\u606F\u8BC4\u4EF7 + \u5206\u652F\u5207\u6362;user \u4EC5\u590D\u5236(hover \u6D88\u606F\u65F6\u6D6E\u73B0,\u89C1 scss)\u3002\r\n \u590D\u5236/\u91CD\u751F\u6210\u6309\u94AE\u5F85\u56DE\u7B54\u843D\u5B9A(status=done)\u624D\u6E32\u67D3\u2014\u2014\u751F\u6210\u4E2D(pending/streaming)\u4E0D\u51FA\u5DE5\u5177\u6309\u94AE;\r\n error \u65E0\u53EF\u590D\u5236/\u91CD\u751F\u6210\u6B63\u6587\u4E5F\u4E0D\u51FA;\u5206\u652F\u5207\u6362\u5668\u4E0E\u65F6\u95F4\u4E0D\u53D7\u6B64\u95E8\u63A7,\u751F\u6210\u4E2D\u4ECD\u53EF\u5207\u5206\u652F/\u663E\u65F6\u95F4\u3002\r\n feedbackVisible \u72EC\u7ACB\u4E8E showActions:\u5173\u95ED\u64CD\u4F5C\u6309\u94AE\u4E0D\u541E\u8BC4\u4EF7\u5165\u53E3\u3002\r\n \u5BB9\u5668\u663E\u9690 = \u4EFB\u4E00\u5185\u4EF6\u5728\u573A(\u64CD\u4F5C\u6309\u94AE/\u8BC4\u4EF7/\u5206\u652F/\u65F6\u95F4),\u5168\u90E8\u7F3A\u5E2D\u624D\u4E0D\u6E32\u67D3,\u907F\u514D\u7A7A\u64CD\u4F5C\u533A\u5360\u4F4D "),
|
|
39541
39599
|
actionsVisible.value || feedbackVisible.value && !isToolOnlyRow.value || __props.showBranchSwitch && __props.branch && __props.branch.count > 1 || messageTimeText.value && timeVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
39542
39600
|
vue.renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
|
|
39543
|
-
actionsVisible.value && isUser.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
39601
|
+
actionsVisible.value && isUser.value && userCopyVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
39544
39602
|
key: 0,
|
|
39545
39603
|
content: vue.unref(dict).aiMessage.copy,
|
|
39546
39604
|
placement: "top"
|
|
@@ -40589,7 +40647,7 @@
|
|
|
40589
40647
|
theme: { type: String, required: false, default: "light" },
|
|
40590
40648
|
locale: { type: null, required: false }
|
|
40591
40649
|
},
|
|
40592
|
-
emits: ["update:messages", "send", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "tool-event"],
|
|
40650
|
+
emits: ["update:messages", "send", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-reject", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "tool-event"],
|
|
40593
40651
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40594
40652
|
const props = __props;
|
|
40595
40653
|
const dict = useLocaleDict(() => props.locale);
|
|
@@ -40692,6 +40750,36 @@
|
|
|
40692
40750
|
function onAttachmentExceed(file) {
|
|
40693
40751
|
emit("attachment-exceed", file);
|
|
40694
40752
|
}
|
|
40753
|
+
const acceptExts = vue.computed(() => {
|
|
40754
|
+
const exts = /* @__PURE__ */ new Set();
|
|
40755
|
+
for (const token of props.accept.split(",")) {
|
|
40756
|
+
const t = token.trim().toLowerCase();
|
|
40757
|
+
if (t.startsWith(".") && t.length > 1) exts.add(t.slice(1));
|
|
40758
|
+
}
|
|
40759
|
+
return exts;
|
|
40760
|
+
});
|
|
40761
|
+
const acceptMimePrefixes = vue.computed(() => {
|
|
40762
|
+
const prefixes = [];
|
|
40763
|
+
for (const token of props.accept.split(",")) {
|
|
40764
|
+
const t = token.trim().toLowerCase();
|
|
40765
|
+
if (t.endsWith("/*")) prefixes.push(t.slice(0, -1));
|
|
40766
|
+
}
|
|
40767
|
+
return prefixes;
|
|
40768
|
+
});
|
|
40769
|
+
const attachmentBeforeUpload = vue.computed(() => {
|
|
40770
|
+
if (!acceptExts.value.size && !acceptMimePrefixes.value.length) return void 0;
|
|
40771
|
+
const exts = acceptExts.value;
|
|
40772
|
+
const prefixes = acceptMimePrefixes.value;
|
|
40773
|
+
return (file) => {
|
|
40774
|
+
const name = file.name.toLowerCase();
|
|
40775
|
+
const ext = name.includes(".") ? name.split(".").pop() : "";
|
|
40776
|
+
if (ext && exts.has(ext)) return true;
|
|
40777
|
+
if (file.type && prefixes.some((p) => file.type.toLowerCase().startsWith(p))) return true;
|
|
40778
|
+
elementPlus.ElMessage.warning(dict.value.errors.attachmentRejected.replace("{name}", file.name));
|
|
40779
|
+
emit("attachment-reject", file);
|
|
40780
|
+
return false;
|
|
40781
|
+
};
|
|
40782
|
+
});
|
|
40695
40783
|
function onAttachmentUploaded(item, _result) {
|
|
40696
40784
|
const err = item.errMessage;
|
|
40697
40785
|
emit("attachment-uploaded", item, { ok: item.status === "success", message: item.status === "success" ? void 0 : err });
|
|
@@ -41112,10 +41200,11 @@
|
|
|
41112
41200
|
accept: __props.accept,
|
|
41113
41201
|
count: __props.attachmentLimit,
|
|
41114
41202
|
upload: attachmentsUploadHook.value,
|
|
41203
|
+
"before-upload": attachmentBeforeUpload.value,
|
|
41115
41204
|
disabled: vue.unref(isLoading),
|
|
41116
41205
|
onExceed: onAttachmentExceed,
|
|
41117
41206
|
onUploaded: onAttachmentUploaded
|
|
41118
|
-
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
41207
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "before-upload", "disabled"])
|
|
41119
41208
|
]),
|
|
41120
41209
|
key: "0"
|
|
41121
41210
|
} : void 0,
|
|
@@ -41129,10 +41218,11 @@
|
|
|
41129
41218
|
accept: __props.accept,
|
|
41130
41219
|
count: __props.attachmentLimit,
|
|
41131
41220
|
upload: attachmentsUploadHook.value,
|
|
41221
|
+
"before-upload": attachmentBeforeUpload.value,
|
|
41132
41222
|
disabled: vue.unref(isLoading),
|
|
41133
41223
|
onExceed: onAttachmentExceed,
|
|
41134
41224
|
onUploaded: onAttachmentUploaded
|
|
41135
|
-
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
41225
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "before-upload", "disabled"])
|
|
41136
41226
|
]),
|
|
41137
41227
|
key: "1"
|
|
41138
41228
|
} : void 0,
|