@blueking/ai-blueking 2.1.4-dev.3 → 2.2.0-beta.1

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.
@@ -3453,7 +3453,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
3453
3453
  `),f+=`$$`):f+=s}return{content:e+f,suffix:f}}function CDt(e){let t=0;for(let n of e){let e=n.trim();/^:::\s*\S+/.test(e)?t++:e===`:::`&&t--}return t>0?`
3454
3454
  :::`:``}function wDt(e){let t=e.lastIndexOf(`^[`);if(t!==-1&&!e.slice(t+2).includes(`]`))return`]`;let n=e.lastIndexOf(`[^`);return n!==-1&&!e.slice(n+2).includes(`]`)?`]`:``}function TDt(e){let t=e.split(`
3455
3455
  `),n=t[t.length-1]||``,r=n.lastIndexOf(`![`);if(r===-1)return``;let i=n.slice(r+1);if(/^\[[^\]]*\]\([^)]*\)/.test(i))return``;if(!i.includes(`]`))return`](#)`;let a=i.indexOf(`]`),o=i.slice(a+1);return o.startsWith(`(`)&&o.startsWith(`(`)&&!o.includes(`)`)?`)`:``}function EDt(e){let t=e.split(`
3456
- `),n=t[t.length-1]||``,r=n.lastIndexOf(`[`);if(r===-1||r>0&&n[r-1]===`!`)return``;let i=n.slice(r);if(/^\[[^\]]*\]\([^)]*\)/.test(i))return``;if(!i.includes(`]`))return`](#)`;let a=i.indexOf(`]`),o=i.slice(a+1);return o.startsWith(`(`)&&o.startsWith(`(`)&&!o.includes(`)`)?`)`:``}function K8(e,t){let n=0,r=0;for(;r<e.length;){if(e.substring(r,r+t.length)===t&&(r===0||e[r-1]!==`\\`)){n++,r+=t.length;continue}r++}return n%2==1?t:``}function DDt(e,t){let n=t+t,r=e.split(n).join(``),i=0;for(let e=0;e<r.length;e++)r[e]===t&&(e===0||r[e-1]!==`\\`)&&i++;return i%2==1?t:``}function ODt(e,t){let n=e;n=n.replace(/\$\$[^$]*\$\$/g,``),n=n.replace(/\$[^$\n]+\$/g,``),n=n.replace(/\\\([^)]*\\\)/g,``),n=n.replace(/\\\[[^\]]*\\\]/g,``);let r=0,i=0;for(;i<n.length;){if(n[i]===t){if(i>0&&n[i-1]===`\\`){i++;continue}if(t===`^`){if(n[i+1]===`[`){i+=2;continue}if(i>0&&n[i-1]===`[`){i++;continue}}if(t===`~`&&n[i+1]===`~`){i+=2;continue}r++}i++}return r%2==1?t:``}function kDt(e,t){if(!t)return``;let n=[`*`,`-`,`_`],r=t[0]??``;if(!r||!n.includes(r))return t;let i=0;for(let t=e.length-1;t>=0&&e[t]===r;t--)i++;return i+t.length>=3?`​`+t:t}function ADt(e,t){let n=e.slice(t).trimEnd();if(!n||n.endsWith(`\\`)||/\\(begin|end)\{[^}]*$/.test(n))return!0;let r=n.match(/\\([a-zA-Z]+)$/);if(r!=null&&r[1]){let e=r[1];if(bDt.has(e))return!1;if(xDt.has(e))return!0;let t=[...bDt,...xDt];for(let n of t)if(n.startsWith(e)&&n!==e&&n.length>e.length)return!0;for(let t of yDt)if(t.startsWith(e)&&t!==e)return!0;return!1}return!!/\\(begin|end)$/.test(n)}function jDt(e,t){let n=t+1,r=e.length;if(n>=r)return null;let i=n;for(;n<r;){let t=e[n];if(t&&/[a-zA-Z]/.test(t))n++;else break}return n===i?null:{cmd:e.substring(i,n),endIdx:n}}function MDt(e,t){let n=t,r=e.length;for(;n<r;){let t=e[n];if(t&&/\s/.test(t))n++;else break}if(n>=r||e[n]!==`{`)return null;n++;let i=n;for(;n<r&&e[n]!==`}`;)n++;return n>=r?null:{name:e.substring(i,n),endIdx:n+1}}var NDt=e=>{if(typeof document>`u`)return null;let t=document.cookie.split(`;`).find(t=>t.trim().startsWith(`${e}=`));return t?t.split(`=`)[1]:null},PDt=e=>{let t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3),r=e%1e3,i=[];return t>0&&i.push(`${t}m`),n>0&&i.push(`${n}s`),(r>0||i.length===0)&&i.push(`${r}ms`),i.join(``)},q8=()=>`id_${Math.random().toString(36).substring(2,9)}`,FDt=e=>{if(e<1)return`<1s`;let t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),i=e%60,a=[];return t>0&&a.push(`${t}d`),n>0&&a.push(`${n}h`),r>0&&a.push(`${r}m`),i>0&&a.push(`${i}s`),a.join(``)},J8=NDt(`blueking_language`)===`en`,IDt={发送:`Send`,停止:`Stop`,问问小鲸:`Ask AI`,复制:`Copy`,分享:`Share`,点赞:`Like`,不满意:`Unsatisfied`,删除:`Delete`,引用:`Quote`,重新生成:`Regenerate`,重新生成将清空下文内容:`Regenerating will clear the content below`,提交:`Submit`,取消:`Cancel`,预览内容:`Preview Content`,跳转详情:`Jump to Detail`,"调用工具:":`Call Tool:`,调用中:`Calling...`,调用成功:`Call Success`,调用失败:`Call Failed`,说出您的想法:`Tell us your thoughts`,"什么原因让你满意?":`What makes you satisfied?`,"什么原因让你不满意?":`What makes you dissatisfied?`,返回内容:`Return Content`,编辑:`Edit`,深度思考:`Deep Thinking`,"图片加载中...":`Loading image...`,图片加载失败:`Failed to load image`,思考中:`Thinking...`,已思考完成:`Thinking Completed`,思考失败:`Thinking Failed`,复制成功:`Copy Success`,复制失败:`Copy Failed`,返回底部:`Return to bottom`,停止生成:`Stop generating`,正在停止:`Stopping`,耗时:`Duration`,参数:`Parameters`,描述:`Description`,执行情况:`Execution Status`,执行中:`Running`,成功:`Success`,失败:`Failed`,挂起:`Pending`,待执行:`To Be Executed`,详情:`Details`,重试:`Retry`,节点:`Node`,节点配置:`Node Config`,节点输出:`Node Output`,基础信息:`Basic Info`,流程模板:`Flow Template`,节点名称:`Node Name`,步骤名称:`Step Name`,执行方案:`Execution Plan`,是否可选:`Optional`,失败处理:`Failure Handler`,超时控制:`Timeout Control`,是:`Yes`,否:`No`,输入参数:`Input Params`,输出参数:`Output Params`,参数名:`Param Name`,参数值:`Param Value`,名称:`Name`,变量说明:`Description`,结构化输出:`Structured Output`,手动跳过:`Manual Skip`,暂无数据:`No Data`,"调用 MCP:":`Call MCP:`,更多:`More`,算法方案评审单:`Algorithm Plan Review Ticket`,评审中:`Reviewing`,已废弃:`Abandoned`,已批准:`Approved`,已通过:`Approved`,已取消:`Cancelled`,已过期:`Expired`,已拒绝:`Rejected`,已撤销:`Revoked`,单据编号:`Ticket No.`,提交时间:`Submitted At`,当前处理人:`Current Handler`,无:`None`,查看单据详情:`View Ticket Detail`,复制单据:`Copy Ticket`,复制单据链接:`Copy Ticket Link`,取消审批:`Cancel Approval`,"当前会话有 {count} 个待审批单,如需继续,请先取消审批":`There are {count} pending approval tickets in the current conversation. To continue, cancel approval first.`,暂不支持的中断消息:`Unsupported interrupt message`,检索中:`Searching`,检索完成:`Search Completed`,上传文件:`Upload File`,"请求中...":`Requesting...`,取消满意:`Cancel satisfied`,取消不满意:`Cancel dissatisfied`,"确认删除该回答?":`Confirm delete this answer?`,"删除操作无法撤回,请谨慎操作!":`This operation cannot be undone. Please proceed with caution!`,预览:`Preview`,缩小:`Zoom Out`,放大:`Zoom In`,旋转:`Rotate`,下载:`Download`,"抱歉,图片加载失败,可尝试重新加载":`Sorry, image loading failed. Please try reloading.`,重置:`Reset`,重新加载:`Reload`,宽:`W`,高:`H`,上传图片:`Upload Image`,"搜索 关键字":`Search keyword`,选择日期:`Select date`,在对话中定位:`Locate in Chat`,全选:`Select All`,确定:`Confirm`,"上传图片, 最多支持上传 3 个, 最大支持 2.4MB":`Upload Image, up to 3 images supported, max 2.4MB each`,"你好,我是小鲸":`Hello, I am BlueKing AI Bot`,清空搜索:`Clear Search`,搜索结果为空:`Search Result is Empty`,有效证据:`Valid Evidence`,全屏:`Full Screen`,退出全屏:`Exit Full Screen`,请选择以继续:`Please choose to continue`,继续:`Continue`,"收到信息:":`Received: `,待审批:`Pending`,已审批:`Approved`,完成:`Done`,跳过:`Skip`,单选:`Single`,多选:`Multiple`,其他:`Others`,回答内容:`Answers`,已回复:`Replied`,"请输入...":`Please enter...`},Y8=e=>J8?IDt[e]:e,X8=function(e){return e.ABANDONED=`abandoned`,e.APPROVED=`approved`,e.CANCELLED=`cancelled`,e.DRAFT=`draft`,e.EXPIRED=`expired`,e.PENDING=`pending`,e.REJECTED=`rejected`,e.REVOKED=`revoked`,e}({}),Z8=function(e){return e.AIDevToolApproval=`aidev:tool_approval`,e.UserQuestion=`aidev:user_question`,e}({}),Q8=function(e){return e.Binary=`binary`,e.FlowAgent=`flow_agent`,e.Function=`function`,e.KeyValue=`key_value`,e.KnowledgeRag=`knowledge_rag`,e.Other=`other`,e.ReferenceDocument=`reference_document`,e.Text=`text`,e}({}),$8=function(e){return e.Activity=`activity`,e.Assistant=`assistant`,e.Developer=`developer`,e.Guide=`guide`,e.Hidden=`hidden`,e.HiddenAssistant=`hidden-assistant`,e.HiddenGuide=`hidden-guide`,e.HiddenSystem=`hidden-system`,e.HiddenUser=`hidden-user`,e.Info=`info`,e.Interrupt=`interrupt`,e.Loading=`loading`,e.Pause=`pause`,e.Placeholder=`placeholder`,e.Reasoning=`reasoning`,e.System=`system`,e.TemplateAssistant=`template-assistant`,e.TemplateGuide=`template-guide`,e.TemplateHidden=`template-hidden`,e.TemplateSystem=`template-system`,e.TemplateUser=`template-user`,e.Tool=`tool`,e.User=`user`,e}({}),e5=function(e){return e.Complete=`complete`,e.Disabled=`disabled`,e.Error=`error`,e.Fetching=`fetching`,e.Pending=`pending`,e.Stop=`stop`,e.StopLoading=`stop-loading`,e.Streaming=`streaming`,e.Success=`success`,e}({}),LDt={[X8.ABANDONED]:Y8(`已废弃`),[X8.APPROVED]:Y8(`已通过`),[X8.CANCELLED]:Y8(`已取消`),[X8.EXPIRED]:Y8(`已过期`),[X8.PENDING]:Y8(`待审批`),[X8.REJECTED]:Y8(`已拒绝`),[X8.REVOKED]:Y8(`已撤销`),[X8.DRAFT]:Y8(`待审批`)},t5=function(e){return e.ApprovalCancel=`approval_cancel`,e.FlowNodeRetry=`flow_node_retry`,e.FlowNodeSkip=`flow_node_skip`,e}({}),RDt=9999,zDt=RDt+1+1,BDt=zDt+1,VDt=BDt+1,HDt=[{description:Y8(`复制`),id:`copy`,name:Y8(`复制`)},{description:Y8(`引用`),id:`cite`,name:Y8(`引用`)},{description:Y8(`重新生成将清空下文内容`),id:`rebuild`,name:Y8(`重新生成`)},{description:Y8(`分享`),id:`share`,name:Y8(`分享`)}],UDt=[{description:Y8(`复制`),id:`copy`,name:Y8(`复制`)},{description:Y8(`引用`),id:`cite`,name:Y8(`引用`)},{description:Y8(`编辑`),id:`edit`,name:Y8(`编辑`)},{description:Y8(`删除`),id:`delete`,name:Y8(`删除`)}],WDt=[{description:Y8(`点赞`),id:`like`,name:Y8(`点赞`)},{description:Y8(`不满意`),id:`unlike`,name:Y8(`不满意`)},{description:Y8(`删除`),id:`delete`,name:Y8(`删除`)}],GDt=2.4*1024*1024,KDt=`ai-is-keyword`,n5=function(e){return e.Chat=`chat`,e.Share=`share`,e.Test=`test`,e}({}),r5={class:`ai-common-icon`,style:{verticalAlign:`middle`,fill:`currentColor`,overflow:`hidden`},viewBox:`0 0 1024 1024`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},qDt={js:`javascript`,ts:`typescript`,py:`python`};function i5(e){"@babel/helpers - typeof";return i5=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i5(e)}function JDt(e,t){if(i5(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i5(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YDt(e){var t=JDt(e,`string`);return i5(t)==`symbol`?t:t+``}function a5(e,t,n){return(t=YDt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XDt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XDt(Object(n),!0).forEach(function(t){a5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XDt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ZDt=0;function QDt(e){let t=`${e}-${++ZDt}`;return{id:e=>`${t}-${e}`,ref:e=>`url(#${t}-${e})`}}var $Dt=(0,t.defineComponent)({name:`AIBluekingIcon`,setup(){let e=QDt(`blueking-icon`);return()=>(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 24 24`,class:{[r5.class]:!0,"ai-blueking-icon":!0}}),[(0,t.h)(`defs`,{},[(0,t.h)(`linearGradient`,{x1:`45.02491%`,y1:`35.5927467%`,x2:`99.2803929%`,y2:`81.0358394%`,id:e.id(1)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(2)},[(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.885701426`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.29`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(3)},[(0,t.h)(`stop`,{"stop-color":`#1562FC`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`95.0902604%`,x2:`35.112422%`,y2:`19.6450217%`,id:e.id(4)},[(0,t.h)(`stop`,{"stop-color":`#DC63FE`,offset:`0.0150240385%`}),(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`46.6072083%`,y1:`95.8855311%`,x2:`46.6072083%`,y2:`50%`,id:e.id(5)},[(0,t.h)(`stop`,{"stop-color":`#B962FD`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#565FFB`,offset:`99.984976%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(6)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#A826E2`,offset:`100%`})])]),(0,t.h)(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[(0,t.h)(`g`,{transform:`translate(-1940, -1102)`},[(0,t.h)(`g`,{transform:`translate(1941, 1103.2578)`},[(0,t.h)(`path`,{d:`M9.5,4.7422389 C13.6421356,4.7422389 17,8.10010327 17,12.2422389 L17.001443,17.8260065 C18.766577,18.002886 20,18.503758 20,19.7276221 C19.9911111,19.736626 19.9733333,19.7388478 19.92,19.740251 L19.8835437,19.7409966 C19.8766933,19.7411051 19.86944,19.7412059 19.86176,19.7412992 L19.223277,19.7414596 C19.1990044,19.7413893 19.1739733,19.7413146 19.14816,19.7412361 L18.89408,19.7404278 C18.86336,19.7403275 18.8317867,19.7402239 18.7993363,19.7401172 L18.59392,19.7394428 C18.5578667,19.7393249 18.5208889,19.7392045 18.482963,19.7390817 L18.24384,19.7383188 C18.1184,19.7379252 17.984,19.7375147 17.84,19.7370938 L17.5390104,19.7362397 C17.371281,19.7357782 17.19212,19.7353095 17.0007483,19.7348414 L9.5,19.7422389 C6.21251981,19.7422389 3.41905896,17.6270907 2.40625547,14.6834322 C1.03363082,14.4093871 0,13.203242 0,11.7568557 L1.21619234,11.7563718 C1.49913049,11.7561381 1.76533428,11.755827 2.01579346,11.7554549 C2.26623611,7.84031745 5.52132054,4.7422389 9.5,4.7422389 Z`,fill:e.ref(1)}),(0,t.h)(`path`,{d:`M9.5,6.7422389 C12.5375661,6.7422389 15,9.20467277 15,12.2422389 L15,15.7422389 C15,16.8468084 14.1045695,17.7422389 13,17.7422389 L9.5,17.7422389 C6.46243388,17.7422389 4,15.279805 4,12.2422389 C4,9.20467277 6.46243388,6.7422389 9.5,6.7422389 Z`,fill:e.ref(2)}),(0,t.h)(`rect`,{fill:e.ref(3),x:`18`,y:`7.7422389`,width:`2`,height:`9`,rx:`1`}),(0,t.h)(`path`,{d:`M18.9843802,1 C18.9843802,2.52940392 20.1288357,3.79150593 21.6080665,3.97662574 L21.9843802,4 C20.4549762,4 19.1928742,5.14445555 19.0077544,6.62368637 L18.9843802,7 C18.9843802,5.47059608 17.8399246,4.20849407 16.3606938,4.02337426 L15.9843802,4 C17.5137841,4 18.7758861,2.85554445 18.9610059,1.37631363 L18.9843802,1 Z`,fill:e.ref(4),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M14.9843802,-1.0658141e-14 C14.9843802,1.01960262 15.7473505,1.86100395 16.7335044,1.98441716 L16.9843802,2 C15.9647776,2 15.1233762,2.76297037 14.999963,3.74912425 L14.9843802,4 C14.9843802,2.98039738 14.2214098,2.13899605 13.2352559,2.01558284 L12.9843802,2 C14.0039828,2 14.8453841,1.23702963 14.9687973,0.250875751 L14.9843802,-1.0658141e-14 Z`,fill:e.ref(5),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M15.9843802,5 C15.9843802,5.50980131 16.3658654,5.93050198 16.8589423,5.99220858 L16.9843802,6 C16.4745789,6 16.0538782,6.38148518 15.9921716,6.87456212 L15.9843802,7 C15.9843802,6.49019869 15.602895,6.06949802 15.109818,6.00779142 L14.9843802,6 C15.4941815,6 15.9148821,5.61851482 15.9765887,5.12543788 L15.9843802,5 Z`,fill:`#8860FC`,"fill-rule":`nonzero`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`6.5`,y:`10.7422389`,width:`2`,height:`3`,rx:`1`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`10.5`,y:`10.7422389`,width:`2`,height:`3`,rx:`1`}),(0,t.h)(`path`,{d:`M12.1896605,4.7422389 C11.9209486,3.40890556 11.3915034,2.7422389 10.6013249,2.7422389 C9.41605731,2.7422389 9.42887356,4.32659654 10.6013249,4.18645894 C11.2198089,4.11253447 11.6391525,4.29779445 11.8593557,4.7422389 L12.1896605,4.7422389 Z`,fill:e.ref(6),transform:`translate(10.9534, 3.7422) scale(-1, 1) translate(-10.9534, -3.7422)`}),(0,t.h)(`path`,{d:`M9.71717378,4.7422389 C9.4484618,3.40890556 8.9190166,2.7422389 8.12883818,2.7422389 C6.94357055,2.7422389 6.95638679,4.32659654 8.12883818,4.18645894 C8.74732212,4.11253447 9.16666571,4.29779445 9.38686894,4.7422389 L9.71717378,4.7422389 Z`,fill:e.ref(6)})])])])])}}),eOt=(0,t.defineComponent)({name:`AIBluekingBannerIcon`,setup(){let e=QDt(`banner-icon`);return()=>(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 309 93`,class:{[r5.class]:!0,"ai-blueking-banner-icon":!0}}),[(0,t.h)(`defs`,{},[(0,t.h)(`linearGradient`,{x1:`45.02491%`,y1:`35.5927467%`,x2:`99.2803929%`,y2:`81.0358394%`,id:e.id(1)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(2)},[(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.885701426`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.29`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(3)},[(0,t.h)(`stop`,{"stop-color":`#1562FC`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`95.0902604%`,x2:`35.112422%`,y2:`19.6450217%`,id:e.id(4)},[(0,t.h)(`stop`,{"stop-color":`#DC63FE`,offset:`0.0150240385%`}),(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`46.6072083%`,y1:`95.8855311%`,x2:`46.6072083%`,y2:`50%`,id:e.id(5)},[(0,t.h)(`stop`,{"stop-color":`#B962FD`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#565FFB`,offset:`99.984976%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(6)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#A826E2`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`-38.6691405%`,x2:`50%`,y2:`100%`,id:e.id(7)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#9F7BF1`,"stop-opacity":`0.15`,offset:`62.335824%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,"stop-opacity":`0`,offset:`100%`})])]),(0,t.h)(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[(0,t.h)(`g`,{transform:`translate(0, 0.2974)`},[(0,t.h)(`g`,{transform:`translate(124.4167, 0)`},[(0,t.h)(`path`,{d:`M28.3965776,12.9425679 C38.3377031,12.9425679 46.3965776,21.0014424 46.3965776,30.9425679 L46.3969075,48.6505618 C51.2162571,49.132982 54.5842089,50.4998157 54.5842089,53.8408323 C54.5842089,53.8444226 54.5842089,53.8477257 54.5824622,53.8507588 L54.5702354,53.8590653 C54.5370482,53.8709895 54.4250414,53.8772107 54.0470184,53.8795761 L53.8473221,53.8804155 C53.8227592,53.8804783 53.7973775,53.8805312 53.7711498,53.8805746 L53.4140599,53.8806511 C53.3806271,53.8806219 53.3462391,53.8805842 53.3108685,53.8805382 L52.8375142,53.8796076 C51.6610285,53.8767057 49.6921211,53.8685916 46.3970568,53.8605313 L46.3965776,53.8807246 L23.4584209,53.8807246 C14.9044209,53.8807246 7.74404265,47.9139206 5.91235374,39.9153803 C2.4976649,38.935189 0,35.8013205 0,32.0869334 L1.43000256,32.0866983 C1.58407741,32.0866469 1.73656386,32.0865873 1.88747828,32.0865198 L3.20370552,32.0857063 C4.00314289,32.0850715 4.75405903,32.0842107 5.4593989,32.0831725 L5.45842089,30.9425679 C5.45842089,21.0014424 13.5172954,12.9425679 23.4584209,12.9425679 L28.3965776,12.9425679 Z`,fill:e.ref(1)}),(0,t.h)(`rect`,{fill:e.ref(2),x:`10.9168418`,y:`18.4009888`,width:`30.0213149`,height:`30.0213149`,rx:`12`}),(0,t.h)(`rect`,{fill:e.ref(3),x:`49.125788`,y:`21.1301993`,width:`5.45842089`,height:`24.562894`,rx:`2`}),(0,t.h)(`path`,{d:`M51.8123687,2.72921045 C51.8123687,6.90327561 54.9358287,10.3478176 58.9729609,10.8530485 L60,10.9168418 C55.8259348,10.9168418 52.3813929,14.0403018 51.8761619,18.077434 L51.8123687,19.1044731 C51.8123687,14.930408 48.6889086,11.485866 44.6517764,10.9806351 L43.6247373,10.9168418 C47.7988025,10.9168418 51.2433445,7.79338174 51.7485754,3.75624952 L51.8123687,2.72921045 Z`,fill:e.ref(4),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M40.8955269,0 C40.8955269,2.78271011 42.9778336,5.07907143 45.6692551,5.41589204 L46.3539478,5.45842089 C43.5712377,5.45842089 41.2748763,7.54072759 40.9380557,10.2321491 L40.8955269,10.9168418 C40.8955269,8.13413168 38.8132202,5.83777036 36.1217987,5.50094974 L35.437106,5.45842089 C38.2198161,5.45842089 40.5161774,3.3761142 40.852998,0.684692719 L40.8955269,0 Z`,fill:e.ref(5),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M44.4235306,12.0484656 C44.4235306,13.4398207 45.464684,14.5880013 46.8103947,14.7564116 L47.1527411,14.7776761 C45.761386,14.7776761 44.6132054,15.8188294 44.4447951,17.1645402 L44.4235306,17.5068865 C44.4235306,16.1155315 43.3823773,14.9673508 42.0366665,14.7989405 L41.6943202,14.7776761 C43.0856752,14.7776761 44.2338559,13.7365227 44.4022662,12.390812 L44.4235306,12.0484656 Z`,fill:`#8860FC`,"fill-rule":`nonzero`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`17.7398679`,y:`29.3178306`,width:`5.45842089`,height:`8.18763134`,rx:`2`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`28.6567097`,y:`29.3178306`,width:`5.45842089`,height:`8.18763134`,rx:`2`}),(0,t.h)(`path`,{d:`M33.2681489,12.9425679 C32.5347773,9.30362068 31.08981,7.48414704 28.9332468,7.48414704 C25.698402,7.48414704 25.7333802,11.8081925 28.9332468,11.4257275 C30.6212196,11.223972 31.7656965,11.7295855 32.3666775,12.9425679 L33.2681489,12.9425679 Z`,fill:e.ref(6),transform:`translate(29.8942, 10.2134) scale(-1, 1) translate(-29.8942, -10.2134)`}),(0,t.h)(`path`,{d:`M26.5202122,12.9425679 C25.7868406,9.30362068 24.3418733,7.48414704 22.1853101,7.48414704 C18.9504653,7.48414704 18.9854435,11.8081925 22.1853101,11.4257275 C23.8732829,11.223972 25.0177598,11.7295855 25.6187408,12.9425679 L26.5202122,12.9425679 Z`,fill:e.ref(6)})]),(0,t.h)(`path`,{d:`M309,81.279814 C309,66.0493667 239.827994,53.7026496 154.5,53.7026496 C69.1720062,53.7026496 0,66.0493667 0,81.279814 C0,96.5102614 309,96.5102614 309,81.279814 Z`,fill:e.ref(7),opacity:`0.22710455`})])])])}}),o5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-document-icon":!0}}),[(0,t.h)(`g`,{fill:`none`},[(0,t.h)(`path`,{fill:`#3D4265`,d:`M708.9230754909091 157.53846132363637L984.6153867636364 157.53846132363637C1006.3669061818182 157.53846132363637 1024 175.17155421090908 1024 196.9230764218182L1024 945.2307688727273C1024 988.7338123636364 988.7338123636364 1024 945.2307688727273 1024L708.9230754909091 1024 708.9230754909091 157.53846132363637Z`}),(0,t.h)(`path`,{fill:`#3A84FF`,d:`M0 984.6153867636364C0 995.0608337454545 4.149438594327273 1005.0784674909091 11.535486650181818 1012.4645143272728 18.921534743272726 1019.8505611636365 28.939165649454548 1024 39.38461500509091 1024L945.2307688727273 1024C901.7277253818182 1024 866.4615377454545 988.7338123636364 866.4615377454545 945.2307688727273L866.4615377454545 39.384615051636366C866.4615377454545 17.633092747636365 848.8284439272727 0 827.0769245090909 0L39.38461500509091 0C17.633092747636365 0 0 17.633092747636365 0 39.384615051636366L0 984.6153867636364Z`}),(0,t.h)(`path`,{fill:`#FFF`,d:`M196.92307688727274 288.82051304727275C175.17155467636363 288.82051304727275 157.53846132363637 306.45360593454546 157.53846132363637 328.2051281454546 157.53846132363637 349.9566508218182 175.17155467636363 367.5897437090909 196.92307688727274 367.5897437090909L354.4615391418182 367.5897437090909C376.2130618181818 367.5897437090909 393.8461547054545 349.9566508218182 393.8461547054545 328.2051281454546 393.8461547054545 306.45360593454546 376.2130618181818 288.82051304727275 354.4615391418182 288.82051304727275L196.92307688727274 288.82051304727275ZM196.92307688727274 525.1282059636363C175.17155467636363 525.1282059636363 157.53846132363637 542.7612997818183 157.53846132363637 564.5128192000001 157.53846132363637 586.2643432727273 175.17155467636363 603.8974370909091 196.92307688727274 603.8974370909091L669.5384622545455 603.8974370909091C691.2899816727273 603.8974370909091 708.9230754909091 586.2643432727273 708.9230754909091 564.5128192000001 708.9230754909091 542.7612997818183 691.2899816727273 525.1282059636363 669.5384622545455 525.1282059636363L196.92307688727274 525.1282059636363ZM196.92307688727274 761.4358993454546C175.17155467636363 761.4358993454546 157.53846132363637 779.0689885090909 157.53846132363637 800.8205125818182 157.53846132363637 822.5720366545454 175.17155467636363 840.2051304727273 196.92307688727274 840.2051304727273L433.23076933818186 840.2051304727273C454.9822915490909 840.2051304727273 472.61538676363637 822.5720366545454 472.61538676363637 800.8205125818182 472.61538676363637 779.0689885090909 454.9822915490909 761.4358993454546 433.23076933818186 761.4358993454546L196.92307688727274 761.4358993454546Z`})])]),tOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-preview-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M512 192C759.4 192 960 335.3 960 512 960 688.7 759.4 832 512 832 264.6 832 64 688.7 64 512 64 335.3 264.6 192 512 192ZM512 256C457.8 256 405.4 263.5 356.1 278.4 309.5 292.5 267.8 312.5 232.4 337.8 165.1 385.9 128 447.8 128 512 128 576.2 165.1 638.1 232.4 686.2 267.8 711.5 309.5 731.5 356.1 745.6 405.4 760.5 457.8 768 512 768 566.2 768 618.6 760.5 667.9 745.6 714.5 731.5 756.2 711.5 791.6 686.2 858.9 638.1 896 576.2 896 512 896 447.8 858.9 385.9 791.6 337.8 756.2 312.5 714.5 292.5 667.9 278.4 618.6 263.5 566.2 256 512 256ZM512 352C600.4 352 672 423.6 672 512 672 600.4 600.4 672 512 672 423.6 672 352 600.4 352 512 352 423.6 423.6 352 512 352ZM512 416C459.1 416 416 459.1 416 512 416 564.9 459.1 608 512 608 564.9 608 608 564.9 608 512 608 459.1 564.9 416 512 416Z`})]),nOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 64 64`,class:{[r5.class]:!0,"ai-target-icon":!0}}),[(0,t.h)(`g`,null,[(0,t.h)(`path`,{d:`M54 8H31v4h18.2L22.6 38.6l2.8 2.8L52 14.8V33h4V10c0-1.1-.9-2-2-2z`}),(0,t.h)(`path`,{d:`M52 44v8H12V12h7.9V8H10c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2h44c1.1 0 2-.9 2-2V44h-4z`})])]),rOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 64 64`,class:{[r5.class]:!0,"ai-remove-icon":!0}}),[(0,t.h)(`path`,{fill:`#737987`,d:`M32,4C16.5,4,4,16.5,4,32s12.5,28,28,28s28-12.5,28-28S47.5,4,32,4z M43.3,40.5l-2.8,2.8L32,34.8l-8.5,8.5l-2.8-2.8l8.5-8.5l-8.5-8.5l2.8-2.8l8.5,8.5l8.5-8.5l2.8,2.8L34.8,32L43.3,40.5z`})]),s5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-arrow-right-icon":!0}}),[(0,t.h)(`path`,{d:`M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z`})]);(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-link-icon":!0}}),[(0,t.h)(`path`,{d:`M263.04 760.96a148.48 148.48 0 0 1-1.92-224l92.48-92.48L308.48 398.72 216 491.2a212.8 212.8 0 0 0 1.92 314.88 212.8 212.8 0 0 0 314.88 1.92l92.48-92.48L579.84 672l-92.48 92.48A148.48 148.48 0 0 1 263.04 760.96Z`}),(0,t.h)(`path`,{d:`M491.2 216L398.72 308.48l45.44 45.12 92.48-92.48a148.48 148.48 0 0 1 224 1.92 148.48 148.48 0 0 1 1.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 0 0-1.92-314.88A212.8 212.8 0 0 0 491.2 216Z`}),(0,t.h)(`path`,{d:`M398.78566017615634 579.8877413259167L579.8049961599127 398.86840534216054 625.0598301558516 444.1232393380996 444.0404941720955 625.1425753218557 398.78566017615634 579.8877413259167z`})]);var iOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 24 18`,class:{[r5.class]:!0,"ai-image-error-icon":!0}}),[(0,t.h)(`path`,{d:`M8.018 0l-.774 2.941.856 2.206-.757 1.47 1.26-1.272-.232-2.224 1.102-3.088h7.228c1.322.01 2.388 1.085 2.39 2.408v5.196a5.42 5.42 0 0 0-1.186.144V2.46c-.035-.645-.542-1.164-1.186-1.213H10.346L9.388 3.04l-.18 2.573-2.636 2.261.859-2.629-1.186-2.006.18-1.978H2.57c-.334-.01-.658.115-.9.346a1.24 1.24 0 0 0-.385.885L1.252 13.07l3.921-4.834c.477-.481 1.068-.481 1.436 0l3.44 4.47 3.344-3.375c.194-.242.495-.372.804-.349.309.024.586.198.742.467l.171.221a5.45 5.45 0 0 0-.928 2.874c0 1.896 1.074 3.54 2.648 4.359l-.122.005H2.39C1.065 16.877.017 15.776.048 14.45L0 2.393C.044 1.071 1.131.024 2.452.033h5.566zM19.09 8.25a4.295 4.295 0 1 1 0 8.591 4.295 4.295 0 0 1 0-8.591zm0 5.83a.46.46 0 1 0 0 .92.46.46 0 0 0 0-.92zm0-3.936a.434.434 0 0 0-.433.408l.126 2.915a.307.307 0 0 0 .614 0l.122-2.822a.434.434 0 0 0-.43-.5zm-5.405-5.737a2.03 2.03 0 0 1 .95 1.653 2.03 2.03 0 0 1-.95 1.653 1.93 1.93 0 0 1-1.918 0 2.03 2.03 0 0 1-.95-1.653c.004-.678.364-1.304.95-1.653a1.93 1.93 0 0 1 1.918 0z`,fill:`currentColor`,"fill-rule":`nonzero`})]),aOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-success-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16 2C23.7313 2 30 8.26875 30 16C30 23.7313 23.7313 30 16 30C8.26875 30 2 23.7313 2 16C2 8.26875 8.26875 2 16 2ZM22.0028 11L14.0038 19L10 15L8.5 16.5026L14.0038 22L23.5 12.5L22.0028 11Z`,fill:`#65C389`})]),oOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-failed-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16 2C23.7313 2 30 8.26875 30 16C30 23.7313 23.7313 30 16 30C8.26875 30 2 23.7313 2 16C2 8.26875 8.26875 2 16 2ZM20.2426 10.3431L15.9996 14.5862L11.757 10.3435L10.3431 11.7574L14.5858 16L10.3431 20.2426L11.758 21.6575L16.0006 17.4149L20.2426 21.6569L21.6565 20.243L17.4145 16.001L21.6575 11.758L20.2426 10.3431Z`,fill:`#FF5656`})]),sOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-suspended-icon":!0}}),[(0,t.h)(`path`,{d:`M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM14 10H11V22H14V10ZM21 10H18V22H21V10Z`,fill:`#F59500`})]),cOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-pending-icon":!0}}),[(0,t.h)(`path`,{d:`M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM9.69434 7.7002C9.14293 7.7002 8.7002 8.15033 8.7002 8.7002V8.74023C8.70032 9.28999 9.14301 9.74023 9.69434 9.74023H11.1191V12.1201C11.1192 13.6989 11.8616 15.1043 13.0137 16C11.8616 16.8957 11.1192 18.3011 11.1191 19.8799V22.2598H9.71387C9.69649 22.2598 9.67908 22.2608 9.66211 22.2627C9.14435 22.2999 8.73938 22.734 8.73926 23.2598V23.2998C8.73926 23.8316 9.15347 24.2693 9.67969 24.2979C9.69103 24.2987 9.70239 24.2998 9.71387 24.2998H22.3057C22.8571 24.2998 23.2998 23.8497 23.2998 23.2998V23.2598C23.2997 22.71 22.857 22.2598 22.3057 22.2598H20.8408V19.8799C20.8408 18.3007 20.0978 16.8956 18.9453 16C20.0978 15.1044 20.8408 13.6993 20.8408 12.1201V9.74023H22.2666C22.8178 9.74006 23.2606 9.28989 23.2607 8.74023V8.7002C23.2607 8.15043 22.8179 7.70037 22.2666 7.7002H9.69434ZM22.4463 23.9854L22.3057 24C22.3951 24 22.48 23.9813 22.5586 23.9502C22.5223 23.9645 22.4852 23.9773 22.4463 23.9854ZM9.05273 23.4316C9.06084 23.4745 9.07245 23.516 9.08789 23.5557C9.07298 23.5174 9.06081 23.4777 9.05273 23.4365V23.4316ZM9.44531 22.623C9.48274 22.6058 9.52184 22.5915 9.5625 22.5811L9.56445 22.5801C9.5231 22.5906 9.48336 22.6054 9.44531 22.623ZM15.9805 17.0195C16.7368 17.0196 17.447 17.3158 17.9814 17.8564L17.9824 17.8574C18.5188 18.3966 18.8134 19.1145 18.8135 19.8799V22.2598H13.1475V19.8799C13.1475 19.1145 13.4412 18.3966 13.9775 17.8574L13.9785 17.8564C14.5131 17.3156 15.2239 17.0195 15.9805 17.0195ZM18.8135 9.74023V12.1201C18.8134 12.8855 18.5188 13.6034 17.9824 14.1426L17.9814 14.1436C17.447 14.6842 16.7368 14.9804 15.9805 14.9805C15.2239 14.9805 14.5131 14.6844 13.9785 14.1436L13.9775 14.1426L13.7881 13.9316C13.3725 13.4226 13.1475 12.7897 13.1475 12.1201V9.74023H18.8135ZM12.875 12.5459C12.87 12.5086 12.866 12.4712 12.8623 12.4336L12.8506 12.2773C12.8549 12.3676 12.8632 12.4572 12.875 12.5459Z`,fill:`#B8BBC4`})]),lOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-skipped-icon":!0}}),[(0,t.h)(`path`,{d:`M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM17.0156 8.8125C16.6831 8.81258 16.4131 9.08514 16.4131 9.4209V11.8574L16.3984 11.8594C14.1864 12.2432 12.5291 13.4566 12.3467 13.5947C11.5353 14.1512 10.813 14.8455 10.1973 15.6533C9.70507 16.3019 9.28342 17.0276 8.93945 17.8086C8.4036 19.027 8.23229 19.9214 8.19238 20.167V20.1709C8.18865 20.1842 8.18638 20.1997 8.18262 20.2168L8.18066 20.2246C8.16356 20.309 8.13736 20.4356 8.12598 20.6387C8.11649 20.8244 8.18634 20.9396 8.24707 21.0049C8.33639 21.1008 8.46603 21.1533 8.61426 21.1533C8.8347 21.1533 9.00412 20.9708 9.15234 20.8115L9.1543 20.8096C9.17706 20.7847 9.19793 20.7613 9.2207 20.7383C9.86489 20.0898 10.6804 19.5176 11.5811 19.084C12.3449 18.7176 13.2058 18.4188 14.1387 18.1963C15.0584 17.9775 15.8738 17.8771 16.3945 17.8311L16.415 17.8291V20.5596C16.415 20.8953 16.6851 21.1679 17.0176 21.168L16.999 21.1836L17.0371 21.1875L17.0176 21.168C17.1639 21.168 17.3068 21.1145 17.417 21.0166L23.6729 15.4385C23.6918 15.4213 23.7086 15.4039 23.7256 15.3848C23.9441 15.1315 23.9197 14.748 23.6709 14.5254L17.415 8.96387C17.3048 8.86601 17.1619 8.8125 17.0156 8.8125Z`,fill:`#5B7290`})]),uOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-execution-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M512 64A448 448 0 1 1 64 512 448 448 0 0 1 512 64Zm0 64A384 384 0 0 0 128 512 384 384 0 0 0 784 784 384 384 0 0 0 784 240 384 384 0 0 0 512 128ZM448 576V256h64V512H768v64Z`})]),c5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-node-output-icon":!0}}),[(0,t.h)(`path`,{d:`M800 128c17.664 0 32 12.288 32 27.424v545.408L594.016 896H224c-17.664 0-32-12.288-32-27.424V155.424C192 140.288 206.336 128 224 128z m-26.176 59.072H250.176v649.856h276.384v-134.88c0-31.52 28.704-57.12 64-57.12h183.264V187.072zM735.52 704h-144.96a13.024 13.024 0 0 0-5.824 1.216v122.432L735.52 704zM704 480v64H320v-64h384z m-128-96v64h-256v-64h256z m96-128v64H320V256h352z`})]),dOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-node-tab-icon":!0}}),[(0,t.h)(`path`,{d:`M374.656 640c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 800 160 785.664 160 768s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 681.088 317.504 640 374.656 640z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z m306.688-320c57.152 0 105.184 41.088 118.72 96.384 1.28-0.16 2.56-0.384 3.936-0.384h61.344c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-61.344c-1.344 0-2.624-0.256-3.936-0.384-13.536 55.296-61.568 96.384-118.72 96.384-57.184 0-105.184-41.088-118.72-96.384-1.312 0.16-2.624 0.384-3.968 0.384h-368C173.76 544 160 529.664 160 512s13.76-32 30.656-32h368c1.376 0 2.656 0.256 3.936 0.384 13.568-55.296 61.568-96.384 118.72-96.384z m0 64c-33.824 0-61.344 28.704-61.344 64s27.52 64 61.344 64 61.312-28.704 61.312-64-27.52-64-61.312-64z m-306.688-288c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 320 160 305.664 160 288s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 201.088 317.504 160 374.656 160z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z`})]),fOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-zoom-in-icon`}),[(0,t.h)(`path`,{d:`M637.02 482.06H546.3V391.34c0-17.67-14.33-32-32-32s-32 14.33-32 32v90.72H391.58c-17.67 0-32 14.33-32 32s14.33 32 32 32h90.72v90.72c0 17.67 14.33 32 32 32s32-14.33 32-32v-90.72h90.72c17.67 0 32-14.33 32-32s-14.33-32-32-32z`}),(0,t.h)(`path`,{d:`M514.3 195.78c-175.72 0-318.28 142.56-318.28 318.28S338.58 832.34 514.3 832.34s318.28-142.56 318.28-318.28-142.56-318.28-318.28-318.28z m0 572.56c-140.28 0-254.28-114-254.28-254.28s114-254.28 254.28-254.28 254.28 114 254.28 254.28-114 254.28-254.28 254.28z`})]),pOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-zoom-out-icon`}),[(0,t.h)(`path`,{d:`M637.02 482.06H391.58c-17.67 0-32 14.33-32 32s14.33 32 32 32h245.44c17.67 0 32-14.33 32-32s-14.33-32-32-32z`}),(0,t.h)(`path`,{d:`M514.3 195.78c-175.72 0-318.28 142.56-318.28 318.28S338.58 832.34 514.3 832.34s318.28-142.56 318.28-318.28-142.56-318.28-318.28-318.28z m0 572.56c-140.28 0-254.28-114-254.28-254.28s114-254.28 254.28-254.28 254.28 114 254.28 254.28-114 254.28-254.28 254.28z`})]),mOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-rotate-icon`}),[(0,t.h)(`path`,{d:`M817.76 328.31H402.28c-59.68 0-108.24 48.55-108.24 108.24v415.44c0 59.68 48.55 108.24 108.24 108.24h415.47c59.65 0 108.2-48.55 108.2-108.24V436.55c0-59.69-48.55-108.24-108.19-108.24z m30.39 523.68c0 16.79-13.64 30.43-30.39 30.43H402.28c-16.79 0-30.43-13.64-30.43-30.43V436.55c0-16.79 13.64-30.43 30.43-30.43h415.47c16.75 0 30.39 13.64 30.39 30.43v415.44z`}),(0,t.h)(`path`,{d:`M248.91 368.43c-18.27-11.32-42.25-5.66-53.57 12.61l-18.16 29.33c-0.87-8.47-1.33-17.1-1.33-25.76 0-134 109.04-243.03 243.07-243.03 44.64 0 88.29 12.2 126.17 35.29 18.39 11.13 42.32 5.32 53.49-12.99 11.17-18.35 5.36-42.28-12.99-53.49-50.11-30.51-107.74-46.62-166.67-46.62-176.93 0-320.88 143.91-320.88 320.84 0 48.14 10.41 94.41 30.89 137.53 6.12 12.84 18.77 21.35 32.98 22.11 0.72 0.04 1.44 0.08 2.17 0.08a38.92 38.92 0 0 0 33.09-18.43L261.52 422c11.29-18.28 5.66-42.25-12.61-53.57z`})]),hOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-fit-screen-icon`}),[(0,t.h)(`path`,{d:`M160 160h240v64H224v176H160V160zM160 624h64v176h176v64H160V624zM624 160h240v240h-64V224H624V160zM800 624h64v240H624v-64h176V624z`})]),gOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-download-icon`}),[(0,t.h)(`path`,{d:`M544 654.4V192h-64v462.4l-147.2-147.2-45.2 45.2L512 776.8l224.4-224.4-45.2-45.2L544 654.4zM832 832H192v64h640v-64z`})]),_Ot=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-close-icon`}),[(0,t.h)(`path`,{d:`M557.3 512l214.9-214.9c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L512 466.7 297.1 251.8c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 512 251.8 726.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 557.3l214.9 214.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 512z`})]),vOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-arrow-left-icon`}),[(0,t.h)(`path`,{d:`M672 165.2L333.2 504c-5.6 5.6-5.6 14.8 0 20.4L672 863.2`,fill:`none`,stroke:`currentColor`,"stroke-width":`64`,"stroke-linecap":`round`})]),yOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-arrow-right-preview-icon`}),[(0,t.h)(`path`,{d:`M352 165.2L690.8 504c5.6 5.6 5.6 14.8 0 20.4L352 863.2`,fill:`none`,stroke:`currentColor`,"stroke-width":`64`,"stroke-linecap":`round`})]),bOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-reload-icon`}),[(0,t.h)(`path`,{d:`M889.6 398.4c-16-35.2-35.2-65.6-60.8-92.8-24-27.2-52.8-48-84.8-65.6-32-17.6-67.2-28.8-102.4-35.2-35.2-6.4-72-8-108.8-3.2V108.8l-256 192 256 192V400c27.2-4.8 54.4-4.8 81.6-1.6 27.2 4.8 52.8 14.4 76.8 27.2 24 12.8 46.4 30.4 64 51.2 17.6 20.8 32 44.8 41.6 70.4 9.6 25.6 14.4 52.8 14.4 81.6s-4.8 56-14.4 81.6c-9.6 25.6-24 49.6-41.6 70.4-17.6 20.8-40 38.4-64 51.2-24 12.8-49.6 22.4-76.8 27.2-27.2 4.8-54.4 4.8-81.6 1.6-27.2-4.8-52.8-14.4-76.8-27.2-24-12.8-46.4-30.4-64-51.2-17.6-20.8-32-44.8-41.6-70.4-9.6-25.6-14.4-52.8-14.4-81.6h-64c0 38.4 6.4 75.2 19.2 110.4 12.8 35.2 30.4 67.2 52.8 96 22.4 28.8 49.6 52.8 80 72 30.4 19.2 64 33.6 99.2 43.2 35.2 9.6 72 12.8 108.8 11.2 36.8-1.6 72-9.6 105.6-22.4 33.6-12.8 64-30.4 92.8-52.8 28.8-22.4 52.8-49.6 72-80 19.2-30.4 33.6-64 43.2-99.2 9.6-35.2 12.8-72 11.2-108.8-1.6-36.8-9.6-72-22.4-105.6z`})]),xOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 200 180`,class:`ai-common-icon ai-image-broken-icon`}),[(0,t.h)(`g`,{fill:`none`},[(0,t.h)(`rect`,{x:`30`,y:`20`,width:`100`,height:`86`,rx:`4`,fill:`#C4C6CC`,opacity:`0.6`}),(0,t.h)(`circle`,{cx:`55`,cy:`45`,r:`8`,fill:`#979BA5`,opacity:`0.5`}),(0,t.h)(`path`,{d:`M30 80l25-20 20 15 25-25 30 30v26H30V80z`,fill:`#979BA5`,opacity:`0.5`}),(0,t.h)(`circle`,{cx:`120`,cy:`80`,r:`36`,fill:`#FFE8C3`,stroke:`#FF9C01`,"stroke-width":`3`}),(0,t.h)(`text`,{x:`120`,y:`88`,"text-anchor":`middle`,"font-size":`32`,"font-weight":`bold`,fill:`#FF9C01`},`!`)])]),SOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-image-size-icon`}),[(0,t.h)(`path`,{d:`M864 160H160c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h704c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64z m0 640H160V224h704v576z`})]),COt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-close-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M512 70.246391c230.929037 0 418.133279 187.204242 418.133279 418.133279s-187.204242 418.133279-418.133279 418.133279-418.133279-187.204242-418.133279-418.133279 187.204242-418.133279 418.133279-418.133279z m0 59.733325c-197.938508 0-358.399953 160.461446-358.399953 358.399954s160.461446 358.399953 358.399953 358.399953 358.399953-160.461446 358.399953-358.399953-160.461446-358.399953-358.399953-358.399954z m0 123.199984c129.884516 0 235.199969 105.315453 235.199969 235.19997s-105.315453 235.199969-235.199969 235.199969-235.199969-105.315453-235.199969-235.199969 105.315453-235.199969 235.199969-235.19997z m71.276791 140.165182l-71.283324 71.282391-71.276791-71.275858-23.751464 23.751464 71.275858 71.276791-71.275858 71.27679 23.769197 23.769197 71.276791-71.27679 71.265591 71.26559 23.751463-23.751463-71.264657-71.265591 71.282391-71.283324-23.769197-23.769197z`})]),wOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-doc-link-icon":!0}}),[(0,t.h)(`path`,{d:`M320.950857 203.337143H191.634286a32.036571 32.036571 0 0 0-31.670857 31.890286v639.561142c0 17.408 14.409143 31.890286 31.670857 31.890286h129.316571a32.036571 32.036571 0 0 0 31.670857-31.890286V235.227429a32.036571 32.036571 0 0 0-31.670857-31.890286z m-35.84 130.486857H227.474286a28.964571 28.964571 0 0 1 0-58.002286h57.490285a28.964571 28.964571 0 0 1 0 58.002286z m293.156572-237.860571H448.877714a32.036571 32.036571 0 0 0-31.597714 31.963428v746.788572c0 17.481143 14.409143 31.963429 31.597714 31.963428h129.462857a32.036571 32.036571 0 0 0 31.524572-31.890286V127.926857c1.462857-17.408-12.873143-31.890286-31.597714-31.890286z m-34.523429 132.022857h-57.490286a28.964571 28.964571 0 0 1 0-58.002286h57.490286a28.964571 28.964571 0 0 1 0 58.002286z m383.780571 613.449143l-120.685714-628.004572a33.792 33.792 0 0 0-33.060571-26.038857H768l-126.537143 24.649143a32.768 32.768 0 0 0-25.819428 37.668571l122.148571 629.394286c2.925714 15.945143 15.872 26.112 31.670857 26.112h5.705143l126.537143-24.649143a35.108571 35.108571 0 0 0 25.819428-39.131428z m-165.302857-529.334858l-57.490285 11.556572h-5.705143a30.72 30.72 0 0 1-28.745143-23.186286 29.696 29.696 0 0 1 22.966857-34.816l57.490286-11.556571c15.798857-2.925714 31.670857 7.241143 34.523428 23.186285a29.696 29.696 0 0 1-22.966857 34.816z`})]),TOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-delete-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m180.8 584l-44.8 44.8-136-136-136 136-44.8-44.8 136-136-136-136 44.8-44.8 136 136 136-136 44.8 44.8-136 136 136 136z`})]),EOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-delete-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M470.8352 362.7008l-192.8192 186.368a160.768 160.768 0 0 0 0.0512 232.8576c66.4576 64.2048 174.4384 64.3072 240.896 0.0512l241.0496-233.0112a34.9184 34.9184 0 0 1 48.1792 0c13.312 12.8512 13.312 33.7408 0 46.592l-241.0496 233.0112c-93.0816 89.9584-244.224 89.856-337.2544-0.0512a225.1264 225.1264 0 0 1-0.0512-326.0416l337.408-326.144a174.1824 174.1824 0 0 1 240.896 0 160.512 160.512 0 0 1 0 232.96l-192.8192 186.368-144.384 139.5712a104.6528 104.6528 0 0 1-144.6912 0.1024 96.1536 96.1536 0 0 1 0.1536-139.8784l337.0496-325.7856a34.9184 34.9184 0 0 1 48.128 0c13.312 12.8512 13.312 33.7408 0 46.592L374.6304 642.048a31.8464 31.8464 0 0 0-0.1536 46.7456 34.816 34.816 0 0 0 48.3328-0.1536l144.384-139.52 192.8192-186.4192a96.1536 96.1536 0 0 0 0-139.776 103.68 103.68 0 0 0-72.2944-29.0304c-27.136 0-53.1456 10.4448-72.2432 29.0304l-144.5888 139.776z`})]),DOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-check-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M512 85.333333c235.52 0 426.666667 191.146667 426.666667 426.666667s-191.146667 426.666667-426.666667 426.666667S85.333333 747.52 85.333333 512 276.48 85.333333 512 85.333333m-42.666667 618.666667l298.666667-298.666667-60.16-60.16L469.333333 583.253333l-131.84-131.413333L277.333333 512l192 192z`})]),OOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-time-icon":!0}}),[(0,t.h)(`path`,{d:`M512 70.4a441.6 441.6 0 1 0 0 883.2 441.6 441.6 0 0 0 0-883.2z m0 64a377.6 377.6 0 1 1 0 755.2 377.6 377.6 0 0 1 0-755.2z`}),(0,t.h)(`path`,{d:`M544 480V256a32 32 0 1 0-64 0v230.4c0 31.7952 25.8048 57.6 57.6 57.6H768a32 32 0 1 0 0-64h-224z`})]),kOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-close-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z m269.653334-96.661333l96.810666 96.810666-96.810666 96.810667c-16.661333 16.661333-16.384 43.84 0.277333 60.501333l0.512 0.512c16.64 16.64 42.88 16 59.541333-0.682666l96.810667-96.810667 96.832 96.810667c16.64 16.682667 42.88 17.344 59.541333 0.682666l0.512-0.512c16.64-16.64 16.938667-43.84 0.277334-60.501333l-96.810667-96.810667 96.810667-96.810666c16.661333-16.661333 16.384-43.861333-0.277334-60.522667l-0.490666-0.490667c-16.682667-16.661333-42.901333-16-59.562667 0.661334l-96.832 96.810666-96.810667-96.810666c-16.64-16.64-42.88-17.322667-59.541333-0.661334a109.44 109.44 0 0 1-0.512 0.490667c-16.64 16.661333-16.938667 43.861333-0.277333 60.522667z`})]),AOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-revoked-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64a448.056889 448.056889 0 1 1-0.056889 896.056889A448.056889 448.056889 0 0 1 512 64zM448 256l-128 96.256L448.284444 448 448 384l128.113778 0.113778a128 128 0 0 1 0 255.886222h-224.142222v64h224.028444a192 192 0 1 0 0-384h-128V256z`})]),jOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-help-doc-icon":!0},viewBox:`0 0 16 16`}),[(0,t.h)(`path`,{d:`M8 1C11.8656 1 15 4.13438 15 8C15 11.8656 11.8656 15 8 15C7.07969 15 6.2 14.8234 5.39531 14.5H2C1.72344 14.5 1.5 14.2766 1.5 14V10.6047C1.17812 9.79844 1 8.92031 1 8C1 4.13438 4.13438 1 8 1ZM8.54825 10.1578H7.37878V11.3687H8.54825V10.1578ZM8.07669 4.62969C7.4876 4.62969 6.98847 4.81875 6.5793 5.19844C6.17013 5.57812 5.91911 6.1375 5.8248 6.87656L7.07407 7.06875C7.14082 6.25156 7.44262 5.84219 7.98092 5.84219C8.18406 5.84219 8.35817 5.9125 8.50037 6.05156C8.64401 6.19062 8.71511 6.38125 8.71511 6.62344C8.71511 6.82031 8.67593 6.98438 8.60048 7.11719C8.52358 7.25 8.38864 7.39375 8.19421 7.54688C7.82277 7.84219 7.59497 8.06719 7.50791 8.22188C7.42085 8.37656 7.37732 8.75312 7.37732 9.34844V9.53438L8.5555 9.53281C8.5555 9.21562 8.58597 8.99687 8.64836 8.87969C8.71075 8.7625 8.88922 8.59844 9.18377 8.38906C9.86136 7.9125 10.2009 7.31875 10.2009 6.60781C10.2009 6.03437 9.99776 5.5625 9.59004 5.18906C9.18232 4.81563 8.67883 4.62969 8.07669 4.62969Z`})]),MOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-info-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM512 896C299.2 896 128 724.8 128 512S299.2 128 512 128s384 171.2 384 384S724.8 896 512 896z`}),(0,t.h)(`path`,{d:`M494.4 403.2c-28.8 6.4-56 20.8-76.8 41.6-24 22.4 1.6 44.8 16 27.2 9.6-12.8 24-22.4 40-28.8 11.2-1.6 17.6 1.6 19.2 9.6 1.6 14.4 0 27.2-4.8 41.6-4.8 19.2-14.4 51.2-25.6 94.4-22.4 76.8-33.6 124.8-30.4 140.8 3.2 17.6 12.8 32 28.8 41.6 17.6 8 38.4 9.6 57.6 4.8 30.4-6.4 57.6-22.4 80-44.8 25.6-25.6-3.2-43.2-17.6-28.8-9.6 12.8-24 22.4-40 25.6-14.4 3.2-22.4-3.2-25.6-16-1.6-14.4 1.6-28.8 6.4-41.6 40-136 57.6-212.8 52.8-232-3.2-14.4-12.8-27.2-25.6-33.6C532.8 398.4 512 398.4 494.4 403.2z`}),(0,t.h)(`path`,{d:`M608 304A48 48 0 0 1 560 352 48 48 0 0 1 512 304 48 48 0 0 1 608 304z`})]),NOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-enter-icon":!0}}),[(0,t.h)(`path`,{d:`M853.312 213.312a42.88 42.88 0 0 1 39.424 26.24c2.176 5.184 3.264 10.752 3.264 16.384v170.688a213.376 213.376 0 0 1-213.312 213.312H273.6l97.92 97.856a42.688 42.688 0 1 1-60.352 60.288L140.48 627.392a42.688 42.688 0 0 1 0-60.288l170.688-170.688a42.688 42.688 0 0 1 60.352 60.352L273.664 554.624h409.024a128 128 0 0 0 128-128V255.936a42.624 42.624 0 0 1 42.624-42.624z`})]),POt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-skip-icon":!0},viewBox:`0 0 16 16`}),[(0,t.h)(`path`,{d:`M8.90283 2.5C9.0329 2.5 9.15984 2.54778 9.25781 2.63477L14.8184 7.57764C15.0396 7.77544 15.0618 8.11664 14.8677 8.3418L14.8203 8.38965L9.25928 13.3481C9.16135 13.4351 9.03479 13.4829 8.90479 13.4829L8.92139 13.5L8.8877 13.4966L8.90479 13.4829C8.60922 13.4829 8.36922 13.2408 8.36914 12.9424V10.5151L8.35059 10.5166C7.88774 10.5575 7.16279 10.6464 6.34521 10.8408C5.51593 11.0387 4.75076 11.3046 4.07178 11.6304C3.27109 12.0159 2.54628 12.5246 1.97363 13.1011C1.95343 13.1215 1.93477 13.1419 1.91455 13.1641L1.91309 13.1655C1.78136 13.3071 1.63093 13.4692 1.43506 13.4692L1.38623 13.4673C1.27492 13.4573 1.17834 13.4125 1.10889 13.3379C1.0616 13.2871 1.00802 13.2025 1.00098 13.0713V13.0122C1.00605 12.9217 1.01435 12.8483 1.02344 12.7881L1.0498 12.6436L1.05127 12.6367C1.05461 12.6215 1.05672 12.6081 1.06006 12.5962V12.5928C1.09553 12.3744 1.24727 11.5792 1.72363 10.4961C2.02937 9.80192 2.40431 9.15706 2.8418 8.58057C3.38909 7.86249 4.03116 7.24513 4.75244 6.75049C4.90953 6.63152 6.29681 5.61619 8.1709 5.24268L8.354 5.2085L8.36768 5.20703V3.04053C8.36777 2.74214 8.60732 2.50005 8.90283 2.5ZM9.36768 6.08887L8.50342 6.19775C6.78304 6.50227 5.47434 7.45858 5.35645 7.54785L5.3374 7.56201L5.31787 7.5752C4.68887 8.00657 4.12342 8.54907 3.63721 9.18701C3.25072 9.69661 2.91527 10.2725 2.63916 10.8994C2.55608 11.0883 2.48518 11.2675 2.42285 11.4341C2.80507 11.1708 3.21334 10.934 3.63818 10.7295L3.63916 10.729C4.38977 10.3689 5.2233 10.0805 6.11328 9.86816H6.11426C6.99177 9.65947 7.76654 9.56436 8.26221 9.52051L8.27783 9.51904L9.36914 9.41895V11.9106L13.7715 7.98486L9.36768 4.07031V6.08887Z`})]),FOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-send-message-icon":!0}}),[(0,t.h)(`path`,{d:`M873.6 99.2L118.4 476.8c-28.8 16-28.8 44.8-6.4 60.8l182.4 112c16 6.4 28.8 6.4 44.8-6.4L736 288 390.4 672c-6.4 6.4-6.4 16-6.4 22.4v166.4c0 16 6.4 28.8 22.4 38.4s28.8 0 38.4-6.4l89.6-89.6 182.4 121.6c28.8 16 54.4 6.4 60.8-22.4L928 147.2c6.4-38.4-19.2-60.8-54.4-48z`})]),IOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-loading-message-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64c247.424 0 448 200.576 448 448s-200.576 448-448 448S64 759.424 64 512 264.576 64 512 64z m0 64C299.936 128 128 299.936 128 512s171.936 384 384 384 384-171.936 384-384S724.064 128 512 128z m0 192a192 192 0 1 1 0 384 192 192 0 0 1 0-384z`})]),LOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-thinking-icon":!0}}),[(0,t.h)(`path`,{d:`M528 96c61.856 0 112 50.144 112 112 0 0.376-0.002 0.751-0.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 0 1-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 0 1 240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 0 1 153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96z m-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923 0.622 21.7 1.832 32.3l1.623-0.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194 0.09 7.757 0.264A280.989 280.989 0 0 0 793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z`})]),l5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-collapsed-icon":!0}}),[(0,t.h)(`path`,{d:`M373.15678637 997.95124768l-104.13241023-104.1324102 381.81883749-381.81883748-381.81883749-381.81883748 104.13241023-104.1324102 485.95124773 485.95124768z`})]),ROt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-error-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m0 704c-27.2 0-48-20.8-48-48s20.8-48 48-48 48 20.8 48 48-20.8 48-48 48z m48-459.2L544 608c0 17.6-14.4 32-32 32s-32-14.4-32-32l-16-299.2V304c0-27.2 20.8-48 48-48s48 20.8 48 48v4.8z`})]);(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-content-loading-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M621.2037824 0C1168.33181568 0 1148.103769856 748.7917952 621.2037824 682.56061184 343.25692288000005 647.62276864 136.18899583999996 761.4358976 0 1024 49.3838336 341.33333376 256.45176064 0 621.2037824 0Z`})]);var zOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-arrow-down-icon":!0}}),[(0,t.h)(`path`,{d:`M810.666628 571.545259l-85.526922-83.200123-171.019311 166.469312-0.035467-554.735928H440.048409l0.0672 554.735928-171.121977-166.469312L183.466709 571.545259l313.59996 305.066494L810.666628 571.545259z`})]),BOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-full-screen-icon":!0}}),[(0,t.h)(`path`,{d:`M85.333333 938.666667V768H0v213.333333c0 23.466667 19.2 42.666667 42.666667 42.666667H256v-85.333333H85.333333zM85.333333 85.333333h170.666667V0H42.666667C19.2 0 0 19.2 0 42.666667V256h85.333333V85.333333z m853.333334 853.333334H768v85.333333h213.333333c23.466667 0 42.666667-19.2 42.666667-42.666667V768h-85.333333v170.666667z m42.666666-938.666667H768v85.333333h170.666667v170.666667h85.333333V42.666667c0-23.466667-19.2-42.666667-42.666667-42.666667z`})]),VOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-un-full-screen-icon":!0}}),[(0,t.h)(`path`,{d:`M170.666667 853.333333v170.666667h85.333333V810.666667c0-23.466667-19.2-42.666667-42.666667-42.666667H0v85.333333h170.666667z m0-682.666666H0v85.333333h213.333333c23.466667 0 42.666667-19.2 42.666667-42.666667V0H170.666667v170.666667z m682.666666 682.666666h170.666667V768H810.666667c-23.466667 0-42.666667 19.2-42.666667 42.666667V1024h85.333333v-170.666667z m-42.666666-597.333333H1024V170.666667h-170.666667V0H768v213.333333c0 23.466667 19.2 42.666667 42.666667 42.666667z`})]),u5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-close-icon":!0}}),[(0,t.h)(`path`,{d:`M757.09004048 196.21090938L512 446.01421987l-245.09004048-249.80331049-70.69905014 70.69905014 249.80331049 245.09004048-249.80331049 245.09004048 70.69905014 70.69905014 245.09004048-249.80331049 245.09004048 249.80331049 70.69905014-70.69905014-249.80331049-245.09004048 249.80331049-245.09004048z`})]);(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-more-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M512.5492576 319.99489568C547.8894304 319.70050624 576.292128 290.79913056 575.9977312 255.44678368 575.6905376 220.0944368 546.8014496 191.7050432 511.4484768 191.99943264 476.3130976 192.29382208 448 220.87520896 448 255.99716352L448 256.54754464C448.3071936 291.88709184 477.2090816 320.2892864 512.5492576 319.99489568M511.4484768 431.9994336C476.3130976 432.2938208 448 460.8752096 448 495.9971648L448 496.5475456C448.3071936 531.8870912 477.2090816 560.2892864 512.5492576 559.994896 547.8894304 559.7005056 576.292128 530.7991296 575.9977312 495.446784 575.6905376 460.0944352 546.8014496 431.7050432 511.4484768 431.9994336M511.4484768 671.9994336C476.3130976 672.2938208 448 700.8752096 448 735.9971648L448 736.5475456C448.3071936 771.8870912 477.2090816 800.2892864 512.5492576 799.994896 547.8894304 799.7005056 576.292128 770.7991296 575.9977312 735.446784 575.6905376 700.0944352 546.8014496 671.7050432 511.4484768 671.9994336`})]);var HOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-agent-icon":!0}}),[(0,t.h)(`path`,{d:`M512 96c-16.123 0-71.894 216.944-144 287.93-72.106 70.985-272 111.597-272 128 0 16.402 195.757 35.541 272 112 76.243 76.458 127.616 304 144 304s62.134-220.233 144-304c81.866-83.768 272-95.31 272-112 0-16.69-200.746-56.427-272-128C584.746 312.356 528.123 96 512 96z`})]),UOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-more-agent-icon":!0}}),[(0,t.h)(`path`,{d:`M176 560H416a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H176a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48z m0-432H416a48 48 0 0 1 48 48V416a48 48 0 0 1-48 48H176A48 48 0 0 1 128 416V176A48 48 0 0 1 176 128zM608 560h240a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H608a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48zM848 128H608a51.648 51.648 0 0 0-48 48V416a51.648 51.648 0 0 0 48 48h240A51.712 51.712 0 0 0 896 416V176a51.712 51.712 0 0 0-48-48z m0 264a22.72 22.72 0 0 1-24 24h-192a22.72 22.72 0 0 1-24-24v-192a22.72 22.72 0 0 1 24-24h192a22.72 22.72 0 0 1 24 24v192z`})]),WOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-copy-icon":!0}}),[(0,t.h)(`path`,{d:`M672 704L672 832C672 867.346224 643.346224 896 608 896L192 896C156.653776 896 128 867.346224 128 832L128 384C128 348.653776 156.653776 320 192 320L352 320 352 216.88888896C352 168.2420416 389.7269152 128 437.3333344 128L810.6666656 128C858.2730848 128 896 168.2420416 896 216.88888896L896 615.1111104C896 663.7579584 858.2730848 704 810.6666656 704L672 704ZM608 384L192 384 192 832 608 832 608 384ZM672 640L810.6666656 640C821.9706208 640 832 629.3019968 832 615.1111104L832 216.88888896C832 202.69800448 821.9706208 192 810.6666656 192L437.3333344 192C426.0293792 192 416 202.69800448 416 216.88888896L416 320 608 320C643.346224 320 672 348.653776 672 384L672 640Z`})]),GOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-cite-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M642.2717056 192L642.2717056 256 416 256C309.961328 256 224 341.961328 224 448 224 554.038672 309.961328 640 416 640L771.712 640 640 509.52 686 464 896 672 686 880 640 834.48 771.712 704 416 704C277.28274368 704 164.33462816 593.6691904 160.12181824 455.9737376L160 448C160 306.615104 274.615104 192 416 192L642.2717056 192Z`})]),KOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-rebuild-icon":!0}}),[(0,t.h)(`g`,null,[(0,t.h)(`path`,{d:`M844.0772288 379.89662848C860.4577216 421.55369728 869.3925312 467.67402368 869.3925312 512.3065977599999 869.3925312 710.17767424 708.56589312 869.3671872 512 869.3671872 427.1192736 869.3671872 345.21681792000004 839.6121408 281.18398848000004 784.5652992L352.66249536 784.5652992 352.66249536 725.05519936 184.39017791999999 725.05519936 184.39017791999999 891.6834752 243.9556 891.6834752 243.9556 830.6856256C419.67359552 977.97312 683.2505888 955.656832 830.675008 780.1020416 931.936224 659.59409088 955.7623936 494.453568 894.70784 350.14157952L844.0772288 379.89662848Z`}),(0,t.h)(`path`,{d:`M179.9227712 644.7165664C163.54227967999998 603.0594976 154.607466496 556.9391711999999 154.607466496 512.3065977599999 154.607466496 314.43552064 315.43410688 155.246007232 512 155.246007232 596.8807264 155.246007232 678.78318208 185.00105664 742.8160128 240.0478976L671.33750464 240.0478976 671.33750464 299.55799551999996 839.609824 299.55799551999996 839.609824 132.92972032 780.0444032 132.92972032 780.0444032 193.9275712C604.3264044800001 45.152325248 340.7494112 68.956364544 193.32499072000002 244.51115456 92.0637731136 365.019104 68.237604224 530.15962688 129.292162048 674.47161536L179.9227712 644.7165664Z`})])]),qOt={copy:WOt,cite:GOt,rebuild:KOt,share:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-share-icon":!0}}),[(0,t.h)(`path`,{d:`M954.2973504 473.91614016L566.9315014399999 132.1331402944C556.1972671999999 122.695581056 539.74588608 130.46066144 539.74588608 144.915657216L539.74588608 345.37419392000004C539.74588608 354.33390208000003 532.8619750400001 361.86005696 524.11124032 362.21844544 299.85908159999997 370.46137664 111.309920448 537.11194816 71.639923584 765.6442368L64.28930653056 808.0535232C61.3723950016 824.5393856 81.207393408 834.813184 92.525010176 822.6279808L121.46077254400001 791.328736C226.1195584 677.95856 371.4984288 614.28490048 523.29450496 614.8822144000001 532.39526912 614.8822144000001 539.86256256 622.40836928 539.86256256 631.72646592L539.86256256 827.8843456C539.86256256 842.3393408 556.43062016 850.104416 567.04817792 840.6668608L954.4140288 499.48117376C961.8813248 492.67179584 961.8813248 480.60605568 954.2973504 473.91614016ZM157.39712256 678.9142624C222.73594112 524.92674496 371.61510528 421.233056 541.7293862399999 421.233056L581.39938304 421.233056C590.5001472 421.233056 597.85076416 413.70690112 597.85076416 404.38880512L597.85076416 237.97715904 879.624416 486.69865664 597.85076416 734.82284096 597.85076416 572.59239232C597.85076416 563.27429568 590.5001472 555.7481408 581.39938304 555.7481408L545.3463564799999 555.7481408C404.98457344 550.01392768 268.23976064 594.21515456 157.39712256 678.9142624Z`})]),like:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-like-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M192 448.9971328L192 896 128 896 128 448.9971328 192 448.9971328ZM448 128C492.4018176 134.634696 524.4018176 145.30136288 544 160 586.6666656 192 608 234.66666656 608 288L608 384 843.5169184 384C849.3750016 384 855.2053472 384.8042912 860.8446368 386.3903392 894.8707136 395.9601728 914.6964128 431.3016416 905.1265792 465.3277184L797.1265792 849.3277184C789.3635424 876.9296288 764.1897344 896 735.5169184 896L288 896 288 448 448 128ZM483.008 201.024L352 463.04 352 832 735.5169184 832 843.5169184 448 544 448 544 288C544 254.81113408 532.1510912 231.11331968 505.6 211.2 501.3777696 208.03332736 494.5455392 204.77854912 485.19824 201.68239552L483.008 201.024Z`})]),unlike:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-un-like-icon":!0}}),[(0,t.h)(`path`,{d:`M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896ZM483.008 822.976L352 560.96 352 192 735.5169184 192 843.5169184 576 608 576 544 576 544 736C544 769.18886592 532.1510912 792.88668032 505.6 812.8 501.3777696 815.9666726400001 494.5455392 819.22145088 485.19824 822.31760448L483.008 822.976Z`})]),delete:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-delete-icon":!0}}),[(0,t.h)(`g`,null,[(0,t.h)(`path`,{d:`M659.2 246.4V185.6c0-32-25.6-57.6-57.6-57.6h-176c-32 0-57.6 25.6-57.6 57.6v57.6H128v57.6h102.4v531.2c0 32 25.6 57.6 57.6 57.6h441.6c32 0 57.6-25.6 57.6-57.6V304H896V246.4H659.2zM422.4 201.6c0-9.6 6.4-16 16-16h147.2c9.6 0 16 6.4 16 16v44.8h-176V201.6zM732.8 822.4c0 9.6-6.4 16-16 16H304c-9.6 0-16-6.4-16-16V304h441.6V822.4z`}),(0,t.h)(`path`,{d:`M576 384H640V704H576V384z`}),(0,t.h)(`path`,{d:`M384 384H448V704H384V384z`})])]),edit:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-edit-icon":!0}}),[(0,t.h)(`path`,{d:`M160.07583932 763.37440051h703.84832136v100.54976017H160.07583932zM336.03791965 687.96208035h-100.5497602v-100.54976021l351.92416069-351.92416069 100.54976021 100.5497602zM613.25360852 210.60209379l49.77213129-49.77213128 99.5442626 99.54426259-49.77213131 49.77213129z`})]),activeLike:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-active-like-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M192 448.9971328L192 896 128 896 128 448.9971328 192 448.9971328ZM288 448L288 896 759.7584608 896C774.0948672 896 786.6817696 886.464816 790.5632896 872.6638592L916.5632896 424.6638592C921.348208 407.6508192 911.4353568 389.9800864 894.4223168 385.1951712 891.6026752 384.402144 888.6875008 384 885.7584608 384L608 384 608 384 608 288C608 234.66666656 586.6666656 192 544 160 524.4018176 145.30136288 492.4018176 134.634696 448 128L288 448Z`})]),activeUnLike:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-active-un-like-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896Z`})])},JOt=[{id:`ai-chat`,name:Y8(`问问小鲸`),icon:()=>$Dt}],YOt=(0,t.defineComponent)({__name:`scroll-btn`,props:{disabled:{type:Boolean},loading:{type:Boolean},title:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,a=e=>{r.loading||r.disabled||i(`click`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ai-scroll-btn`,{"is-loading":e.loading,"is-disabled":e.disabled}]),onClick:a},[e.loading?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):(0,t.renderSlot)(n.$slots,`icon`,{key:1}),(0,t.renderSlot)(n.$slots,`title`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])],2))}}),XOt={class:`ai-loading-ring`},ZOt={fill:`none`,viewBox:`0 0 26 26`},QOt=[`fill`],$Ot={class:`ai-loading-star`},ekt={fill:`none`,viewBox:`0 0 26 26`},tkt=[`fill`],d5=(0,t.defineComponent)($($({},{name:`AiLoading`}),{},{__name:`ai-loading`,props:{size:{default:16},stopLoading:{type:Boolean,default:!1}},setup(e){let n=0,r=n++,i=`ai-loading-ring-${r}`,a=`ai-loading-star-${r}`;return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ai-loading`,{"ai-loading-stopped":e.stopLoading}]),style:(0,t.normalizeStyle)({width:e.size+`px`,height:e.size+`px`})},[(0,t.createElementVNode)(`div`,XOt,[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ZOt,[(0,t.createElementVNode)(`path`,{d:`M24.957 7.79785C25.6279 9.36608 26 11.0926 26 12.9062C26 19.5598 21.0013 25.0441 14.5547 25.8125L14.3154 23.8252C19.7702 23.175 24 18.5361 24 12.9062C24 11.3717 23.6848 9.91092 23.1172 8.58398L24.957 7.79785ZM11.6836 1.98633C6.2292 2.63694 2 7.27669 2 12.9062C2 14.4404 2.31452 15.9009 2.88184 17.2275L1.04199 18.0137C0.371448 16.4458 0 14.7194 0 12.9062C0 6.25306 4.99814 0.768818 11.4443 0L11.6836 1.98633Z`,fill:`url(#${i})`},null,8,QOt),(0,t.createElementVNode)(`defs`,null,[(0,t.createElementVNode)(`linearGradient`,{id:i,gradientUnits:`userSpaceOnUse`,x1:`6.50423`,x2:`25.6886`,y1:`2.96507`,y2:`19.2824`},[...r[0]||=[(0,t.createElementVNode)(`stop`,{"stop-color":`#235DFA`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`0.538462`,"stop-color":`#8A77EC`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#EB8CEC`},null,-1)]])])]))]),(0,t.createElementVNode)(`div`,$Ot,[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ekt,[(0,t.createElementVNode)(`path`,{d:`M13 5.90625C13 5.90625 14.1206 8.77684 15.625 10.2812C17.1294 11.7857 20 12.9062 20 12.9062C20 12.9062 17.1294 14.0268 15.625 15.5312C14.1206 17.0357 13 19.9062 13 19.9062C13 19.9062 11.8794 17.0357 10.375 15.5312C8.87059 14.0268 6 12.9062 6 12.9062C6 12.9062 8.87059 11.7857 10.375 10.2812C11.8794 8.77684 13 5.90625 13 5.90625Z`,fill:`url(#${a})`},null,8,tkt),(0,t.createElementVNode)(`defs`,null,[(0,t.createElementVNode)(`linearGradient`,{id:a,gradientUnits:`userSpaceOnUse`,x1:`6`,x2:`20`,y1:`5.90625`,y2:`19.9062`},[...r[1]||=[(0,t.createElementVNode)(`stop`,{"stop-color":`#235DFA`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`0.538462`,"stop-color":`#8A77EC`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#EB8CEC`},null,-1)]])])]))])],6))}}));function nkt(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function f5(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){nkt(a,r,i,o,s,`next`,e)}function s(e){nkt(a,r,i,o,s,`throw`,e)}o(void 0)})}}var rkt=[`src`],p5=(0,t.defineComponent)({__name:`shortcut-btn`,props:{mode:{},shortcut:{}},emits:[`click`],setup(e,{expose:n,emit:r}){let i=e,a=(0,t.shallowRef)(!1),o=r;(0,t.watch)(()=>i.shortcut?.icon,()=>{a.value=!1},{immediate:!0});let s=e=>{o(`click`,e)},l=(0,t.useTemplateRef)(`el`);return n({get $el(){return l.value}}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`el`,ref:l,class:(0,t.normalizeClass)([`ai-shortcut-btn`,{"is-menu-mode":e.mode===`menu`}]),onClick:r[1]||=t=>s(e.shortcut)},[(0,t.renderSlot)(n.$slots,`default`,{},()=>{var n,i,o;return[(n=e.shortcut)!=null&&n.icon?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[typeof e.shortcut.icon==`string`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.shortcut.icon.startsWith(`http`)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(HOt),{key:1,class:`ai-shortcut-btn-icon`})):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,class:`ai-common-icon ai-shortcut-btn-icon`,src:e.shortcut.icon,onError:r[0]||=e=>a.value=!0},null,40,rkt))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)(e.shortcut.icon)},null,2))],64)):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(typeof e.shortcut?.icon==`function`?(i=e.shortcut).icon?.call(i,t.h):e.shortcut.icon),{key:1,class:`ai-shortcut-btn-icon`}))],64)):e.shortcut&&!((o=e.shortcut.components)!=null&&o.length)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(HOt),{key:1,class:`ai-shortcut-btn-icon`})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.shortcut?.alias||e.shortcut?.name),1)]}),(0,t.renderSlot)(n.$slots,`append`)],2))}}),ikt={class:`ai-selection-popover-content`},akt={key:0,class:`shortcut-menu`},okt=(0,t.defineComponent)({__name:`ai-selection`,props:(0,t.mergeModels)({excludeSelectors:{default:()=>[]},maxShortcutCount:{default:3},offset:{default:10},shortcuts:{default:()=>JOt}},{visible:$({type:Boolean},{required:!0}),visibleModifiers:{}}),emits:(0,t.mergeModels)([`selectShortcut`,`selectionChange`],[`update:visible`]),setup(e,{emit:n}){let r=e,i=(0,t.useModel)(e,`visible`),a=n,o=(0,t.useTemplateRef)(`popoverRef`),s=(0,t.useTemplateRef)(`moreMenuRef`),l=(0,t.shallowRef)({x:0,y:0}),u=(0,t.shallowRef)(``),d=(0,t.shallowRef)(null),f=(0,t.shallowRef)(!1),p=e=>{if(e?.shadowRoot instanceof ShadowRoot){try{let t=e.shadowRoot;if(typeof t.getSelection==`function`){let e=t.getSelection();if(e&&!e.isCollapsed&&e.toString().trim())return e}}catch{h();return}try{let t=document.createTreeWalker(e.shadowRoot,NodeFilter.SHOW_ELEMENT,null),n=t.nextNode();for(;n;){if(n instanceof Element){let e=p(n);if(e)return e}n=t.nextNode()}}catch{h()}}},m=function(){var e=f5(function*(){var e,n;if(d.value=window.getSelection(),!d.value){let e=document.activeElement;if(e){let t=p(e);t&&(d.value=t)}}let s=(e=d.value)==null||(e=e.toString())==null?void 0:e.trim();if(!s){h();return}if(r.excludeSelectors.length>0&&(n=d.value)!=null&&n.rangeCount)try{let e=d.value.getRangeAt(0).commonAncestorContainer,t=e.nodeType===Node.TEXT_NODE?e.parentNode:e;for(;t&&t!==document.body;){if(t instanceof Element){for(let e of r.excludeSelectors)if(t.closest(e)){h();return}}t=t.parentNode}}catch{}s!==u.value&&a(`selectionChange`,s),u.value=s;let f=null;try{var m;if((m=d.value)!=null&&m.rangeCount){let e=d.value?.getRangeAt(0);(e?.getClientRects()).length>0&&(f=e.getBoundingClientRect())}}catch{h();return}let g=document.activeElement;if(!f||f.width===0&&f.height===0)if(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)f=g.getBoundingClientRect();else{h();return}i.value=!0,yield(0,t.nextTick)();let _=o.value.getBoundingClientRect(),v=window.innerWidth,y=window.innerHeight,b=f.left+f.width/2-_.width/2;b<8?b=8:b+_.width>v-8&&(b=v-_.width-8);let x,S=f.top,C=y-f.bottom,w=_.height+r.offset;x=S>=w?f.top-_.height-r.offset:C>=w?f.bottom+r.offset:S>=C?Math.max(8,f.top-_.height-r.offset):Math.min(y-_.height-8,f.bottom+r.offset),l.value={x:b,y:x}});return function(){return e.apply(this,arguments)}}(),h=()=>{var e;i.value&&=((e=d.value)==null||e.removeAllRanges(),!1)},g=e=>{h(),a(`selectShortcut`,e,u.value)},_=null,v=e=>{_&&clearTimeout(_),_=window.setTimeout(()=>{m()},e)},y=()=>{v(200)},b=()=>{v(300)},x=e=>{var t;i.value&&(t=o.value)!=null&&t.contains(e.target)||h()},S=e=>{!d.value||!i.value||e.target instanceof HTMLElement&&e.target.contains(d.value?.anchorNode)&&h()},C=()=>{var e;(e=s.value)==null||e.show()};return(0,t.onMounted)(()=>{document.addEventListener(`selectionchange`,b),document.addEventListener(`mouseup`,y),document.addEventListener(`mousedown`,x),document.addEventListener(`scroll`,S,!0),window.addEventListener(`resize`,h),window.addEventListener(`blur`,h)}),(0,t.onUnmounted)(()=>{document.removeEventListener(`selectionchange`,b),document.removeEventListener(`mouseup`,y),document.removeEventListener(`mousedown`,x),document.removeEventListener(`scroll`,S,!0),window.removeEventListener(`resize`,h),window.removeEventListener(`blur`,h)}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[(0,t.createVNode)(t.Transition,{name:`ai-fade`},{default:(0,t.withCtx)(()=>[i.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`popoverRef`,ref:o,class:`ai-selection-popover`,style:(0,t.normalizeStyle)({left:`${l.value.x}px`,top:`${l.value.y}px`,zIndex:(0,t.unref)(VDt),"--selection-z-index":(0,t.unref)(VDt)}),onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,ikt,[(0,t.renderSlot)(n.$slots,`default`,{shortcuts:e.shortcuts},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts.slice(0,e.maxShortcutCount),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.id},[r<e.maxShortcutCount?((0,t.openBlock)(),(0,t.createBlock)(p5,{key:0,shortcut:n,onClick:e=>g(n)},null,8,[`shortcut`,`onClick`])):(0,t.createCommentVNode)(``,!0)],64))),128)),e.shortcuts.length>e.maxShortcutCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[r[3]||=(0,t.createElementVNode)(`div`,{class:`ai-divider`,style:{margin:`0 4px`}},null,-1),(0,t.createVNode)((0,t.unref)(Jl),{ref_key:`moreMenuRef`,ref:s,arrow:!1,interactive:``,offset:[0,6],theme:`ai-chat-box-light light`,trigger:`manual`,onHidden:r[0]||=()=>{f.value=!1},onShow:r[1]||=()=>{f.value=!0}},{content:(0,t.withCtx)(()=>[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,akt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts.slice(e.maxShortcutCount),e=>((0,t.openBlock)(),(0,t.createBlock)(p5,{key:e.id,mode:`menu`,shortcut:e,onClick:t=>g(e)},null,8,[`shortcut`,`onClick`]))),128))])):(0,t.createCommentVNode)(``,!0)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(p5,{style:{width:`28px`},onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l5),{class:`shortcut-btn-more-icon`})]),_:1})]),_:1},512)],64)):(0,t.createCommentVNode)(``,!0)])])],36)):(0,t.createCommentVNode)(``,!0)]),_:3})]))}}),skt=(e,n,r)=>{let i=(0,t.shallowRef)([]),a=function(){var a=f5(function*(){if(!e.value||n.value.length===0)return;yield(0,t.nextTick)();let a=e.value.offsetWidth,o=new Set,s=0;for(let e=0;e<r.items.value.length;e++){var l;let t=n.value[e];if(!t)continue;let i=t.offsetWidth,u=s+i+(o.size>0?r.gap:0),d=r.items.value[e],f=((l=r.moreItemRef)==null||(l=l.value)==null||(l=l.$el)==null?void 0:l.offsetWidth)??0;if(d&&u+r.gap+f<=a)o.add(d),s=u;else break}i.value=Array.from(o)});return function(){return a.apply(this,arguments)}}(),o=null;return(0,t.watch)([n,r.moreItemRef],()=>{(0,t.nextTick)(()=>{a()})}),(0,t.onMounted)(()=>{e.value&&(o=new ResizeObserver(()=>{a()}),o.observe(e.value)),(0,t.nextTick)(()=>{a()})}),(0,t.onScopeDispose)(()=>{o?.disconnect()}),{visibleItems:i,calculateVisibleMenuItems:a}},ckt={class:`shortcut-menu`},lkt=4,ukt=(0,t.defineComponent)({__name:`shortcut-btns`,props:{shortcuts:{}},emits:[`selectShortcut`],setup(e,{emit:n}){let r=()=>document.body,i=e,a=n,o=(0,t.useTemplateRef)(`containerRef`),s=(0,t.shallowRef)([]),l=(0,t.useTemplateRef)(`moreMenuRef`),u=(0,t.useTemplateRef)(`moreBtnRef`),{visibleItems:d}=skt(o,s,{items:(0,t.computed)(()=>i.shortcuts),gap:lkt,moreItemRef:u}),f=(0,t.computed)(()=>i.shortcuts.filter(e=>!d.value.includes(e))),p=(0,t.shallowRef)(!1),m=(e,t)=>{e&&`$el`in e?s.value[t]=e.$el:e&&e instanceof HTMLElement&&(s.value[t]=e)};(0,t.watch)(()=>i.shortcuts,()=>{s.value=Array(i.shortcuts.length).fill(null)},{deep:!0});let h=()=>{p.value=!p.value},g=e=>{p.value=!1,a(`selectShortcut`,e)};return(0,t.watch)(p,e=>{if(e){var t;(t=l.value)==null||t.show()}else{var n;(n=l.value)==null||n.hide()}}),(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`containerRef`,ref:o,class:`shortcut-btns`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(p5,{key:e.key||e.id,ref_for:!0,ref:e=>m(e,n),class:(0,t.normalizeClass)([`shortcut-btns-item`,{"shortcut-btns-item-hidden":!(0,t.unref)(d).includes(e)}]),shortcut:e,onClick:t=>g(e)},null,8,[`class`,`shortcut`,`onClick`]))),128)),f.value.length>0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Jl),{key:0,ref_key:`moreMenuRef`,ref:l,"append-to":r,arrow:!1,interactive:``,offset:[0,6],theme:`ai-chat-box-light light`,trigger:`manual`,"z-index":(0,t.unref)(BDt),onHidden:i[0]||=()=>{p.value=!1}},{content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ckt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,e=>((0,t.openBlock)(),(0,t.createBlock)(p5,{key:e.id,mode:`menu`,shortcut:e,onClick:t=>g(e)},null,8,[`shortcut`,`onClick`]))),128))])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(p5,{ref_key:`moreBtnRef`,ref:u,class:`shortcut-btns-item shortcut-btns-more`,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(UOt),{class:`shortcut-btns-more-icon`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`更多`)),1)]),_:1},512)]),_:1},8,[`z-index`])):(0,t.createCommentVNode)(``,!0)],512))}});function dkt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function m5(e,t){if(e==null)return{};var n,r,i=dkt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fkt=[`options`],pkt=[`options`],mkt={class:`shortcut-render`},hkt={class:`shortcut-render-header`},gkt={class:`header-name`},_kt={class:`shortcut-render-content`},vkt={class:`shortcut-render-form-label`},ykt={class:`shortcut-footer`},bkt=(0,t.defineComponent)({__name:`shortcut-render`,props:{alias:{},components:{},description:{},formModel:{},icon:{type:[Function,String,Object]},id:{},key:{},name:{}},emits:[`close`,`submit`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useTemplateRef)(`formRef`),o=(0,t.reactive)({}),s=(0,t.shallowRef)({});(0,t.watchEffect)(()=>{if(r.formModel)for(let e in r.formModel)o[e]=r.formModel[e];for(let e of r?.components??[])e.key&&(o[e.key]=e.default??e.props?.default??e.props?.modelValue)});let l=(e,t)=>{if(e.type===`textarea`)return`span 2`;let n=0;for(let e=0;e<t;e++){var i;n+=((i=r.components)==null||(i=i[e])==null?void 0:i.type)===`textarea`?2:1}return t===(r.components?.length??0)-1&&n%2==0?`span 2`:`auto`},u=e=>$($({},e.formItemProps),{},{property:e.key,label:e.name??e.formItemProps?.label,required:e.fillBack??e.formItemProps?.required}),d=e=>{let n=e?.props??{},{options:r}=n,i=m5(n,fkt),a=e??{},{options:s}=a,l=m5(a,pkt),u=r??s,d=$($($({class:`shortcut-render-form-item_${e.type}`},l),i),{},{modelValue:o[e.key],onChange:t=>{o[e.key]=t},"onUpdate:modelValue":t=>{o[e.key]=t}});switch(e.type){case`text`:case`input`:return(0,t.h)(ns,d);case`textarea`:return(0,t.h)(ns,$($({},d),{},{type:`textarea`}));case`number`:return(0,t.h)(ns,$($({},d),{},{type:`number`}));case`select`:return(0,t.h)(Gs,d,u?.map(e=>(0,t.h)(Gs.Option,$({},e))));case`checkboxGroup`:return(0,t.h)(ls.Group,d,u?.map(e=>(0,t.h)(ls,$({class:`shortcut-render-form-item_checkbox`},e))));case`radioGroup`:return(0,t.h)(kc.Group,d,u?.map(e=>(0,t.h)(kc,$({class:`shortcut-render-form-item_radio`},e))));case`switcher`:return(0,t.h)(dhe,d);default:return null}},f=function(){var e=f5(function*(){var e,t;(yield(e=a.value)==null||(t=e.validate)==null?void 0:t.call(e).catch(()=>!1))&&i(`submit`,$({},o))});return function(){return e.apply(this,arguments)}}(),p=()=>{i(`close`)},m=()=>{i(`close`)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mkt,[(0,t.createElementVNode)(`div`,hkt,[(0,t.createVNode)((0,t.unref)(LOt),{class:`header-icon`}),(0,t.createElementVNode)(`span`,gkt,(0,t.toDisplayString)(e.alias||e.name),1),(0,t.createVNode)((0,t.unref)(u5),{class:`header-close`,onClick:m})]),(0,t.createElementVNode)(`div`,_kt,[(0,t.createVNode)((0,t.unref)(ec),{ref_key:`formRef`,ref:a,class:`shortcut-render-form`,"form-type":`vertical`,model:o,rules:s.value},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.components,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ec).FormItem,(0,t.mergeProps)({key:e.id,ref_for:!0},u(e),{class:`shortcut-render-form-item`,style:{gridColumn:l(e,n)}}),{label:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,vkt,(0,t.toDisplayString)(e.name??e.formItemProps?.label),1)]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(d(e))))]),_:2},1040,[`style`]))),128)),(0,t.createVNode)((0,t.unref)(ec).FormItem,{class:`shortcut-footer-item`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ykt,[(0,t.createVNode)((0,t.unref)(Go),{theme:`primary`,onClick:f},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`提交`)),1)]),_:1}),(0,t.createVNode)((0,t.unref)(Go),{onClick:p},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1})])]),_:1})]),_:1},8,[`model`,`rules`])])]))}}),xkt=typeof navigator<`u`&&`clipboard`in navigator,Skt=e=>{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.left=`-9999px`,t.style.top=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand(`copy`)}catch{return!1}finally{document.body.removeChild(t)}},h5=()=>({copy:function(){var e=f5(function*(e){let t=!1;if(xkt)try{yield navigator.clipboard.writeText(e),t=!0}catch{t=Skt(e)}else t=Skt(e);ic({message:Y8(t?`复制成功`:`复制失败`),theme:t?`success`:`error`})});return function(t){return e.apply(this,arguments)}}()}),Ckt=()=>{let e=(0,t.shallowRef)({column:0,line:0}),n=(0,t.shallowRef)([]);return{commandSelection:e,docSnapshot:n,GetCursorPosition:(t,n)=>{let[,r]=n,[i,a]=r;e.value={column:a,line:i}},GetDocSnapshot:e=>{n.value=e}}},wkt=Symbol(`CONTAINER_SCROLL_TOKEN`),Tkt=(e,n)=>{let r=(0,t.shallowRef)(!1),i=null,a=(0,t.shallowRef)(0),o=(0,t.shallowRef)(!0),s=(0,t.customRef)((e,t)=>{let n,r=!1;return{get(){return e(),r},set(e){if(e===!1){r=!1,n&&clearTimeout(n),t();return}n&&clearTimeout(n),n=setTimeout(()=>{r=e,t()},300)}}});(0,t.provide)(wkt,(0,t.computed)(()=>({autoScrollEnabled:o.value,isScrollBottom:r,scrollBottomHeight:a,debouncedShowScrollBottomBtn:s,toScrollBottom:l,toScrollTop:u})));let l=()=>{var e;o.value=!0,(e=(0,t.toValue)(n))==null||e.scrollIntoView({behavior:`smooth`,block:`end`})},u=()=>{var n;(n=(0,t.toValue)(e))==null||n.scrollTo({top:0,behavior:`smooth`})},d=()=>{let n=(0,t.toValue)(e);if(!n)return;let{scrollHeight:i,scrollTop:o,clientHeight:l}=n,u=i-o-l;a.value=Math.max(0,u),s.value=!r.value&&a.value>100},f=e=>{e.deltaY<0&&(o.value=!1)};return(0,t.onMounted)(()=>{(0,t.watchEffect)(()=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n);!l||!u||(i?.disconnect(),l.removeEventListener(`scroll`,d),l.removeEventListener(`wheel`,f),d(),i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(r.value=!0,a.value=0,o.value=!0,s.value=!1):(r.value=!1,d())})}),i.observe(u),l.addEventListener(`scroll`,d,{passive:!0}),l.addEventListener(`wheel`,f,{passive:!0}))})}),(0,t.onScopeDispose)(()=>{i?.disconnect();let n=(0,t.toValue)(e);n&&(n.removeEventListener(`scroll`,d),n.removeEventListener(`wheel`,f))}),{autoScrollEnabled:o,isScrollBottom:r,scrollBottomHeight:a,toScrollBottom:l,toScrollTop:u,debouncedShowScrollBottomBtn:s}},Ekt=()=>(0,t.inject)(wkt,void 0),Dkt=Symbol(`CUSTOM_TAB_TOKEN`),Okt=`execution`;function kkt(e){let n={label:Y8(`执行情况`),name:Okt},r=(0,t.shallowRef)([n]),i=(0,t.ref)(n),a=(0,t.shallowRef)(!0),o=e=>{r.value.find(t=>t.name===e.name)||(r.value=[...r.value,e]),a.value=!1,(0,t.nextTick)(()=>{l(e)})},s=e=>{r.value=r.value.filter(t=>t.name!==e)},l=t=>{var r;i.value=t??n,(r=e.onTabChange)==null||r.call(e,t)},u=()=>{r.value=[n],i.value=n,a.value=!0};return(0,t.provide)(Dkt,{tabs:r,selectedTab:i,addCustomTab:o,removeCustomTab:s,selectCustomTab:l,resetCustomTab:u}),{tabs:r,selectedTab:i,isCollapse:a,addCustomTab:o,removeCustomTab:s,selectCustomTab:l,resetCustomTab:u}}var Akt=()=>(0,t.inject)(Dkt),g5=(()=>{if(typeof document>`u`)return null;let e=document.documentElement;return typeof e.requestFullscreen==`function`?{request:`requestFullscreen`,exit:`exitFullscreen`,element:`fullscreenElement`,change:`fullscreenchange`}:typeof e.webkitRequestFullscreen==`function`?{request:`webkitRequestFullscreen`,exit:`webkitExitFullscreen`,element:`webkitFullscreenElement`,change:`webkitfullscreenchange`}:null})(),jkt=e=>{let n=!!g5,r=(0,t.shallowRef)(!1),i=()=>(0,t.unref)(e)??(typeof document>`u`?null:document.documentElement),a=()=>g5?document[g5.element]??null:null,o=()=>{let n=a(),i=(0,t.unref)(e);r.value=i?n===i:!!n},s=function(){var e=f5(function*(){if(!g5||r.value)return;let e=i();try{var t;yield e==null||(t=e[g5.request])==null?void 0:t.call(e)}catch{}});return function(){return e.apply(this,arguments)}}(),l=function(){var e=f5(function*(){if(!(!g5||!a()))try{var e;yield(e=document)[g5.exit]?.call(e)}catch{}});return function(){return e.apply(this,arguments)}}();return g5&&(document.addEventListener(g5.change,o),(0,t.onScopeDispose)(()=>{document.removeEventListener(g5.change,o)})),{isSupported:n,isFullScreen:(0,t.readonly)(r),enter:s,exit:l,toggle:()=>r.value?l():s()}},Mkt=Symbol(`GLOBAL_CONFIG_TOKEN`),Nkt=e=>((0,t.provide)(Mkt,e),{size:e.size,supportUpload:e.supportUpload}),Pkt=()=>(0,t.inject)(Mkt,void 0),_5=e=>{let n=(0,t.shallowRef)(0);(0,t.onMounted)(()=>{window.addEventListener(`keydown`,a,!0)}),(0,t.onScopeDispose)(()=>{window.removeEventListener(`keydown`,a,!0)});let r=t=>{var n;(n=e.onSelect)==null||n.call(e,t)},i=()=>{(0,t.nextTick)(()=>{let t=e.menuRef.value?.querySelector(`.is-active`);t&&t.scrollIntoView({block:`nearest`})})},a=t=>{var a,o;if((a=e.menuRef.value)!=null&&a.offsetParent&&(o=e.items.value)!=null&&o.length){if(t.key===`ArrowUp`)t.preventDefault(),t.stopPropagation(),n.value=(n.value-1+e.items.value?.length)%e.items.value?.length,i();else if(t.key===`ArrowDown`)t.preventDefault(),t.stopPropagation(),n.value=(n.value+1)%e.items.value?.length,i();else if(t.key===`Enter`||t.key===`NumpadEnter`){t.preventDefault(),t.stopPropagation();let i=e.items.value?.[n.value];i&&r(i)}}};return{activeIndex:n}},Fkt={toolCall(e){let{toolCalls:t}=e;return t!=null&&t.length?t.flatMap(e=>[e.function.name,e.function.mcpName,e.function.description,e.function.arguments,e.id].filter(Boolean)):[]},[Q8.FlowAgent](e){let t=e.content;return t?t.flatMap(e=>[e.task_name,...Object.values(e.nodes??{}).map(e=>e.name)]).filter(Boolean):[]}},Ikt=e=>{var t;if(e.role===$8.Assistant&&(t=e.toolCalls)!=null&&t.length)return`toolCall`;if(e.role===$8.Activity)return e.activityType},Lkt=e=>{var t;return e.role===$8.Assistant&&!!((t=e.toolCalls)!=null&&t.length)||e.role===$8.Activity&&e.activityType===Q8.FlowAgent},Rkt=(e,t)=>{let n=Ikt(e);if(!n)return!0;let r=Fkt[n];return r?r(e).some(e=>e.toLowerCase().includes(t)):!0},zkt=new Set([X8.PENDING,X8.DRAFT]),Bkt=e=>{for(let n=e.length-1;n>=0;n--){var t;let r=e[n];if(r.role!==$8.Interrupt)continue;let i=r.content;if((i==null||(t=i.outcome)==null?void 0:t.type)!==`interrupt`)continue;let a=i.outcome.interrupts.find(e=>e.reason===Z8.UserQuestion);if(a)return a}},Vkt=e=>e.reduce((e,t)=>{var n;if(t.role!==$8.Interrupt)return e;let r=t.content;return(r==null||(n=r.outcome)==null?void 0:n.type)===`interrupt`?e+r.outcome.interrupts.filter(e=>{var t;return e.reason===Z8.AIDevToolApproval&&zkt.has((t=e.metadata)==null||(t=t.ticket)==null?void 0:t.status)}).length:e},0),Hkt=e=>{let n=(0,t.ref)([]),r=(0,t.shallowRef)(!1);(0,t.watchEffect)(()=>{let t=[],r=[];for(let n of e.messages.value){if(n!=null&&n.uid||(n.uid=q8()),n.role===$8.User){t.length>0&&(r.push({messages:t,type:$8.Assistant,isHover:!1,checked:!1,uid:q8(),pause:t?.some(e=>{var t;return(t=e.property)==null||(t=t.extra)==null?void 0:t.pause})??!1}),t=[]),r.push({messages:[n],type:$8.User,isHover:!1,checked:!1,uid:q8()});continue}if(n.role===$8.Tool){let t=e.messages.value.find(e=>e.role===$8.Assistant&&e.toolCalls?.some(e=>e.id===n.toolCallId));if(t){let e=t.toolCalls?.find(e=>e.id===n.toolCallId);e&&(e.toolMessage=n),t.status=n.error?e5.Error:t.status||e5.Complete;continue}}t.push(n)}t.length>0&&r.push({messages:t,type:$8.Assistant,isHover:!1,checked:!1,uid:q8(),pause:t?.some(e=>{var t;return(t=e.property)==null||(t=t.extra)==null?void 0:t.pause})??!1}),e.messages.value.at(-1)?.role===$8.User&&r.push({messages:[{role:$8.Loading,content:``,status:e5.Pending,messageId:``,id:`__loading__`,uid:q8()}],type:$8.Loading,isHover:!1,checked:!1,uid:q8()}),n.value=r});let i=(0,t.computed)(()=>{var t;let r=(t=e.keyword)==null||(t=t.value)==null?void 0:t.trim().toLowerCase(),i=e=>Lkt(e)&&(!r||Rkt(e,r));return n.value.filter((e,t)=>{if(e.messages.some(i)){let r=n.value.at(t-1);if(r){let t=r.messages.filter(e=>e.role===$8.User);if(t!=null&&t.length)for(let n of t){let t=n.content;if(typeof t==`string`){e.userMessageTitle=t;break}else if(Array.isArray(t)&&t.some(e=>e.type===Q8.Text)){e.userMessageTitle=t.filter(e=>e.type===Q8.Text)?.join(`
3456
+ `),n=t[t.length-1]||``,r=n.lastIndexOf(`[`);if(r===-1||r>0&&n[r-1]===`!`)return``;let i=n.slice(r);if(/^\[[^\]]*\]\([^)]*\)/.test(i))return``;if(!i.includes(`]`))return`](#)`;let a=i.indexOf(`]`),o=i.slice(a+1);return o.startsWith(`(`)&&o.startsWith(`(`)&&!o.includes(`)`)?`)`:``}function K8(e,t){let n=0,r=0;for(;r<e.length;){if(e.substring(r,r+t.length)===t&&(r===0||e[r-1]!==`\\`)){n++,r+=t.length;continue}r++}return n%2==1?t:``}function DDt(e,t){let n=t+t,r=e.split(n).join(``),i=0;for(let e=0;e<r.length;e++)r[e]===t&&(e===0||r[e-1]!==`\\`)&&i++;return i%2==1?t:``}function ODt(e,t){let n=e;n=n.replace(/\$\$[^$]*\$\$/g,``),n=n.replace(/\$[^$\n]+\$/g,``),n=n.replace(/\\\([^)]*\\\)/g,``),n=n.replace(/\\\[[^\]]*\\\]/g,``);let r=0,i=0;for(;i<n.length;){if(n[i]===t){if(i>0&&n[i-1]===`\\`){i++;continue}if(t===`^`){if(n[i+1]===`[`){i+=2;continue}if(i>0&&n[i-1]===`[`){i++;continue}}if(t===`~`&&n[i+1]===`~`){i+=2;continue}r++}i++}return r%2==1?t:``}function kDt(e,t){if(!t)return``;let n=[`*`,`-`,`_`],r=t[0]??``;if(!r||!n.includes(r))return t;let i=0;for(let t=e.length-1;t>=0&&e[t]===r;t--)i++;return i+t.length>=3?`​`+t:t}function ADt(e,t){let n=e.slice(t).trimEnd();if(!n||n.endsWith(`\\`)||/\\(begin|end)\{[^}]*$/.test(n))return!0;let r=n.match(/\\([a-zA-Z]+)$/);if(r!=null&&r[1]){let e=r[1];if(bDt.has(e))return!1;if(xDt.has(e))return!0;let t=[...bDt,...xDt];for(let n of t)if(n.startsWith(e)&&n!==e&&n.length>e.length)return!0;for(let t of yDt)if(t.startsWith(e)&&t!==e)return!0;return!1}return!!/\\(begin|end)$/.test(n)}function jDt(e,t){let n=t+1,r=e.length;if(n>=r)return null;let i=n;for(;n<r;){let t=e[n];if(t&&/[a-zA-Z]/.test(t))n++;else break}return n===i?null:{cmd:e.substring(i,n),endIdx:n}}function MDt(e,t){let n=t,r=e.length;for(;n<r;){let t=e[n];if(t&&/\s/.test(t))n++;else break}if(n>=r||e[n]!==`{`)return null;n++;let i=n;for(;n<r&&e[n]!==`}`;)n++;return n>=r?null:{name:e.substring(i,n),endIdx:n+1}}var NDt=e=>{if(typeof document>`u`)return null;let t=document.cookie.split(`;`).find(t=>t.trim().startsWith(`${e}=`));return t?t.split(`=`)[1]:null},PDt=e=>{let t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3),r=e%1e3,i=[];return t>0&&i.push(`${t}m`),n>0&&i.push(`${n}s`),(r>0||i.length===0)&&i.push(`${r}ms`),i.join(``)},q8=()=>`id_${Math.random().toString(36).substring(2,9)}`,FDt=e=>{if(e<1)return`<1s`;let t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),i=e%60,a=[];return t>0&&a.push(`${t}d`),n>0&&a.push(`${n}h`),r>0&&a.push(`${r}m`),i>0&&a.push(`${i}s`),a.join(``)},J8=NDt(`blueking_language`)===`en`,IDt={发送:`Send`,停止:`Stop`,问问小鲸:`Ask AI`,复制:`Copy`,分享:`Share`,点赞:`Like`,不满意:`Unsatisfied`,删除:`Delete`,引用:`Quote`,重新生成:`Regenerate`,重新生成将清空下文内容:`Regenerating will clear the content below`,提交:`Submit`,取消:`Cancel`,预览内容:`Preview Content`,跳转详情:`Jump to Detail`,"调用工具:":`Call Tool:`,调用中:`Calling...`,调用成功:`Call Success`,调用失败:`Call Failed`,说出您的想法:`Tell us your thoughts`,"什么原因让你满意?":`What makes you satisfied?`,"什么原因让你不满意?":`What makes you dissatisfied?`,返回内容:`Return Content`,编辑:`Edit`,深度思考:`Deep Thinking`,"图片加载中...":`Loading image...`,图片加载失败:`Failed to load image`,思考中:`Thinking...`,已思考完成:`Thinking Completed`,思考失败:`Thinking Failed`,复制成功:`Copy Success`,复制失败:`Copy Failed`,返回底部:`Return to bottom`,停止生成:`Stop generating`,正在停止:`Stopping`,耗时:`Duration`,参数:`Parameters`,描述:`Description`,执行情况:`Execution Status`,执行中:`Running`,成功:`Success`,失败:`Failed`,挂起:`Pending`,待执行:`To Be Executed`,详情:`Details`,重试:`Retry`,节点:`Node`,节点配置:`Node Config`,节点输出:`Node Output`,基础信息:`Basic Info`,流程模板:`Flow Template`,节点名称:`Node Name`,步骤名称:`Step Name`,执行方案:`Execution Plan`,是否可选:`Optional`,失败处理:`Failure Handler`,超时控制:`Timeout Control`,是:`Yes`,否:`No`,输入参数:`Input Params`,输出参数:`Output Params`,参数名:`Param Name`,参数值:`Param Value`,名称:`Name`,变量说明:`Description`,结构化输出:`Structured Output`,手动跳过:`Manual Skip`,暂无数据:`No Data`,"调用 MCP:":`Call MCP:`,更多:`More`,算法方案评审单:`Algorithm Plan Review Ticket`,评审中:`Reviewing`,已废弃:`Abandoned`,已批准:`Approved`,已通过:`Approved`,已取消:`Cancelled`,已过期:`Expired`,已拒绝:`Rejected`,已撤销:`Revoked`,单据编号:`Ticket No.`,提交时间:`Submitted At`,当前处理人:`Current Handler`,无:`None`,查看单据详情:`View Ticket Detail`,复制单据:`Copy Ticket`,复制单据链接:`Copy Ticket Link`,取消审批:`Cancel Approval`,"当前会话有 {count} 个待审批单,如需继续,请先取消审批":`There are {count} pending approval tickets in the current conversation. To continue, cancel approval first.`,暂不支持的中断消息:`Unsupported interrupt message`,检索中:`Searching`,检索完成:`Search Completed`,上传文件:`Upload File`,"请求中...":`Requesting...`,取消满意:`Cancel satisfied`,取消不满意:`Cancel dissatisfied`,"确认删除该回答?":`Confirm delete this answer?`,"删除操作无法撤回,请谨慎操作!":`This operation cannot be undone. Please proceed with caution!`,预览:`Preview`,缩小:`Zoom Out`,放大:`Zoom In`,旋转:`Rotate`,下载:`Download`,"抱歉,图片加载失败,可尝试重新加载":`Sorry, image loading failed. Please try reloading.`,重置:`Reset`,重新加载:`Reload`,宽:`W`,高:`H`,上传图片:`Upload Image`,"搜索 关键字":`Search keyword`,选择日期:`Select date`,在对话中定位:`Locate in Chat`,全选:`Select All`,确定:`Confirm`,"上传图片, 最多支持上传 3 个, 最大支持 2.4MB":`Upload Image, up to 3 images supported, max 2.4MB each`,"你好,我是小鲸":`Hello, I am BlueKing AI Bot`,清空搜索:`Clear Search`,搜索结果为空:`Search Result is Empty`,有效证据:`Valid Evidence`,全屏:`Full Screen`,退出全屏:`Exit Full Screen`,请选择以继续:`Please choose to continue`,继续:`Continue`,"收到信息:":`Received: `,待审批:`Pending`,已审批:`Approved`,完成:`Done`,跳过:`Skip`,单选:`Single`,多选:`Multiple`,其他:`Others`,回答内容:`Answers`,已回复:`Replied`,"请输入...":`Please enter...`},Y8=e=>J8?IDt[e]:e,X8=function(e){return e.ABANDONED=`abandoned`,e.APPROVED=`approved`,e.CANCELLED=`cancelled`,e.DRAFT=`draft`,e.EXPIRED=`expired`,e.PENDING=`pending`,e.REJECTED=`rejected`,e.REVOKED=`revoked`,e}({}),Z8=function(e){return e.AIDevToolApproval=`aidev:tool_approval`,e.UserQuestion=`aidev:user_question`,e}({}),Q8=function(e){return e.Binary=`binary`,e.FlowAgent=`flow_agent`,e.Function=`function`,e.KeyValue=`key_value`,e.KnowledgeRag=`knowledge_rag`,e.Other=`other`,e.ReferenceDocument=`reference_document`,e.Text=`text`,e}({}),$8=function(e){return e.Activity=`activity`,e.Assistant=`assistant`,e.Developer=`developer`,e.Guide=`guide`,e.Hidden=`hidden`,e.HiddenAssistant=`hidden-assistant`,e.HiddenGuide=`hidden-guide`,e.HiddenSystem=`hidden-system`,e.HiddenUser=`hidden-user`,e.Info=`info`,e.Interrupt=`interrupt`,e.Loading=`loading`,e.Pause=`pause`,e.Placeholder=`placeholder`,e.Reasoning=`reasoning`,e.System=`system`,e.TemplateAssistant=`template-assistant`,e.TemplateGuide=`template-guide`,e.TemplateHidden=`template-hidden`,e.TemplateSystem=`template-system`,e.TemplateUser=`template-user`,e.Tool=`tool`,e.User=`user`,e}({}),e5=function(e){return e.Complete=`complete`,e.Disabled=`disabled`,e.Error=`error`,e.Fetching=`fetching`,e.Pending=`pending`,e.Stop=`stop`,e.StopLoading=`stop-loading`,e.Streaming=`streaming`,e.Success=`success`,e}({}),LDt={[X8.ABANDONED]:Y8(`已废弃`),[X8.APPROVED]:Y8(`已通过`),[X8.CANCELLED]:Y8(`已取消`),[X8.EXPIRED]:Y8(`已过期`),[X8.PENDING]:Y8(`待审批`),[X8.REJECTED]:Y8(`已拒绝`),[X8.REVOKED]:Y8(`已撤销`),[X8.DRAFT]:Y8(`待审批`)},t5=function(e){return e.ApprovalCancel=`approval_cancel`,e.FlowNodeRetry=`flow_node_retry`,e.FlowNodeSkip=`flow_node_skip`,e}({}),RDt=9999,zDt=RDt+1+1,BDt=zDt+1,VDt=BDt+1,HDt=[{description:Y8(`复制`),id:`copy`,name:Y8(`复制`)},{description:Y8(`引用`),id:`cite`,name:Y8(`引用`)},{description:Y8(`重新生成将清空下文内容`),id:`rebuild`,name:Y8(`重新生成`)},{description:Y8(`分享`),id:`share`,name:Y8(`分享`)}],UDt=[{description:Y8(`复制`),id:`copy`,name:Y8(`复制`)},{description:Y8(`引用`),id:`cite`,name:Y8(`引用`)},{description:Y8(`编辑`),id:`edit`,name:Y8(`编辑`)},{description:Y8(`删除`),id:`delete`,name:Y8(`删除`)}],WDt=[{description:Y8(`点赞`),id:`like`,name:Y8(`点赞`)},{description:Y8(`不满意`),id:`unlike`,name:Y8(`不满意`)},{description:Y8(`删除`),id:`delete`,name:Y8(`删除`)}],GDt=2.4*1024*1024,KDt=`ai-is-keyword`,n5=function(e){return e.Chat=`chat`,e.Share=`share`,e.Test=`test`,e}({}),r5={class:`ai-common-icon`,style:{verticalAlign:`middle`,fill:`currentColor`,overflow:`hidden`},viewBox:`0 0 1024 1024`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},qDt={js:`javascript`,ts:`typescript`,py:`python`};function i5(e){"@babel/helpers - typeof";return i5=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i5(e)}function JDt(e,t){if(i5(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i5(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YDt(e){var t=JDt(e,`string`);return i5(t)==`symbol`?t:t+``}function a5(e,t,n){return(t=YDt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XDt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XDt(Object(n),!0).forEach(function(t){a5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XDt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ZDt=0;function QDt(e){let t=`${e}-${++ZDt}`;return{id:e=>`${t}-${e}`,ref:e=>`url(#${t}-${e})`}}var $Dt=(0,t.defineComponent)({name:`AIBluekingIcon`,setup(){let e=QDt(`blueking-icon`);return()=>(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 24 24`,class:{[r5.class]:!0,"ai-blueking-icon":!0}}),[(0,t.h)(`defs`,{},[(0,t.h)(`linearGradient`,{x1:`45.02491%`,y1:`35.5927467%`,x2:`99.2803929%`,y2:`81.0358394%`,id:e.id(1)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(2)},[(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.885701426`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.29`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(3)},[(0,t.h)(`stop`,{"stop-color":`#1562FC`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`95.0902604%`,x2:`35.112422%`,y2:`19.6450217%`,id:e.id(4)},[(0,t.h)(`stop`,{"stop-color":`#DC63FE`,offset:`0.0150240385%`}),(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`46.6072083%`,y1:`95.8855311%`,x2:`46.6072083%`,y2:`50%`,id:e.id(5)},[(0,t.h)(`stop`,{"stop-color":`#B962FD`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#565FFB`,offset:`99.984976%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(6)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#A826E2`,offset:`100%`})])]),(0,t.h)(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[(0,t.h)(`g`,{transform:`translate(-1940, -1102)`},[(0,t.h)(`g`,{transform:`translate(1941, 1103.2578)`},[(0,t.h)(`path`,{d:`M9.5,4.7422389 C13.6421356,4.7422389 17,8.10010327 17,12.2422389 L17.001443,17.8260065 C18.766577,18.002886 20,18.503758 20,19.7276221 C19.9911111,19.736626 19.9733333,19.7388478 19.92,19.740251 L19.8835437,19.7409966 C19.8766933,19.7411051 19.86944,19.7412059 19.86176,19.7412992 L19.223277,19.7414596 C19.1990044,19.7413893 19.1739733,19.7413146 19.14816,19.7412361 L18.89408,19.7404278 C18.86336,19.7403275 18.8317867,19.7402239 18.7993363,19.7401172 L18.59392,19.7394428 C18.5578667,19.7393249 18.5208889,19.7392045 18.482963,19.7390817 L18.24384,19.7383188 C18.1184,19.7379252 17.984,19.7375147 17.84,19.7370938 L17.5390104,19.7362397 C17.371281,19.7357782 17.19212,19.7353095 17.0007483,19.7348414 L9.5,19.7422389 C6.21251981,19.7422389 3.41905896,17.6270907 2.40625547,14.6834322 C1.03363082,14.4093871 0,13.203242 0,11.7568557 L1.21619234,11.7563718 C1.49913049,11.7561381 1.76533428,11.755827 2.01579346,11.7554549 C2.26623611,7.84031745 5.52132054,4.7422389 9.5,4.7422389 Z`,fill:e.ref(1)}),(0,t.h)(`path`,{d:`M9.5,6.7422389 C12.5375661,6.7422389 15,9.20467277 15,12.2422389 L15,15.7422389 C15,16.8468084 14.1045695,17.7422389 13,17.7422389 L9.5,17.7422389 C6.46243388,17.7422389 4,15.279805 4,12.2422389 C4,9.20467277 6.46243388,6.7422389 9.5,6.7422389 Z`,fill:e.ref(2)}),(0,t.h)(`rect`,{fill:e.ref(3),x:`18`,y:`7.7422389`,width:`2`,height:`9`,rx:`1`}),(0,t.h)(`path`,{d:`M18.9843802,1 C18.9843802,2.52940392 20.1288357,3.79150593 21.6080665,3.97662574 L21.9843802,4 C20.4549762,4 19.1928742,5.14445555 19.0077544,6.62368637 L18.9843802,7 C18.9843802,5.47059608 17.8399246,4.20849407 16.3606938,4.02337426 L15.9843802,4 C17.5137841,4 18.7758861,2.85554445 18.9610059,1.37631363 L18.9843802,1 Z`,fill:e.ref(4),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M14.9843802,-1.0658141e-14 C14.9843802,1.01960262 15.7473505,1.86100395 16.7335044,1.98441716 L16.9843802,2 C15.9647776,2 15.1233762,2.76297037 14.999963,3.74912425 L14.9843802,4 C14.9843802,2.98039738 14.2214098,2.13899605 13.2352559,2.01558284 L12.9843802,2 C14.0039828,2 14.8453841,1.23702963 14.9687973,0.250875751 L14.9843802,-1.0658141e-14 Z`,fill:e.ref(5),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M15.9843802,5 C15.9843802,5.50980131 16.3658654,5.93050198 16.8589423,5.99220858 L16.9843802,6 C16.4745789,6 16.0538782,6.38148518 15.9921716,6.87456212 L15.9843802,7 C15.9843802,6.49019869 15.602895,6.06949802 15.109818,6.00779142 L14.9843802,6 C15.4941815,6 15.9148821,5.61851482 15.9765887,5.12543788 L15.9843802,5 Z`,fill:`#8860FC`,"fill-rule":`nonzero`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`6.5`,y:`10.7422389`,width:`2`,height:`3`,rx:`1`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`10.5`,y:`10.7422389`,width:`2`,height:`3`,rx:`1`}),(0,t.h)(`path`,{d:`M12.1896605,4.7422389 C11.9209486,3.40890556 11.3915034,2.7422389 10.6013249,2.7422389 C9.41605731,2.7422389 9.42887356,4.32659654 10.6013249,4.18645894 C11.2198089,4.11253447 11.6391525,4.29779445 11.8593557,4.7422389 L12.1896605,4.7422389 Z`,fill:e.ref(6),transform:`translate(10.9534, 3.7422) scale(-1, 1) translate(-10.9534, -3.7422)`}),(0,t.h)(`path`,{d:`M9.71717378,4.7422389 C9.4484618,3.40890556 8.9190166,2.7422389 8.12883818,2.7422389 C6.94357055,2.7422389 6.95638679,4.32659654 8.12883818,4.18645894 C8.74732212,4.11253447 9.16666571,4.29779445 9.38686894,4.7422389 L9.71717378,4.7422389 Z`,fill:e.ref(6)})])])])])}}),eOt=(0,t.defineComponent)({name:`AIBluekingBannerIcon`,setup(){let e=QDt(`banner-icon`);return()=>(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 309 93`,class:{[r5.class]:!0,"ai-blueking-banner-icon":!0}}),[(0,t.h)(`defs`,{},[(0,t.h)(`linearGradient`,{x1:`45.02491%`,y1:`35.5927467%`,x2:`99.2803929%`,y2:`81.0358394%`,id:e.id(1)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(2)},[(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.885701426`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#FFFFFF`,"stop-opacity":`0.29`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(3)},[(0,t.h)(`stop`,{"stop-color":`#1562FC`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`95.0902604%`,x2:`35.112422%`,y2:`19.6450217%`,id:e.id(4)},[(0,t.h)(`stop`,{"stop-color":`#DC63FE`,offset:`0.0150240385%`}),(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`46.6072083%`,y1:`95.8855311%`,x2:`46.6072083%`,y2:`50%`,id:e.id(5)},[(0,t.h)(`stop`,{"stop-color":`#B962FD`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#565FFB`,offset:`99.984976%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:e.id(6)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#A826E2`,offset:`100%`})]),(0,t.h)(`linearGradient`,{x1:`50%`,y1:`-38.6691405%`,x2:`50%`,y2:`100%`,id:e.id(7)},[(0,t.h)(`stop`,{"stop-color":`#235DFA`,offset:`0%`}),(0,t.h)(`stop`,{"stop-color":`#9F7BF1`,"stop-opacity":`0.15`,offset:`62.335824%`}),(0,t.h)(`stop`,{"stop-color":`#EB8CEC`,"stop-opacity":`0`,offset:`100%`})])]),(0,t.h)(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[(0,t.h)(`g`,{transform:`translate(0, 0.2974)`},[(0,t.h)(`g`,{transform:`translate(124.4167, 0)`},[(0,t.h)(`path`,{d:`M28.3965776,12.9425679 C38.3377031,12.9425679 46.3965776,21.0014424 46.3965776,30.9425679 L46.3969075,48.6505618 C51.2162571,49.132982 54.5842089,50.4998157 54.5842089,53.8408323 C54.5842089,53.8444226 54.5842089,53.8477257 54.5824622,53.8507588 L54.5702354,53.8590653 C54.5370482,53.8709895 54.4250414,53.8772107 54.0470184,53.8795761 L53.8473221,53.8804155 C53.8227592,53.8804783 53.7973775,53.8805312 53.7711498,53.8805746 L53.4140599,53.8806511 C53.3806271,53.8806219 53.3462391,53.8805842 53.3108685,53.8805382 L52.8375142,53.8796076 C51.6610285,53.8767057 49.6921211,53.8685916 46.3970568,53.8605313 L46.3965776,53.8807246 L23.4584209,53.8807246 C14.9044209,53.8807246 7.74404265,47.9139206 5.91235374,39.9153803 C2.4976649,38.935189 0,35.8013205 0,32.0869334 L1.43000256,32.0866983 C1.58407741,32.0866469 1.73656386,32.0865873 1.88747828,32.0865198 L3.20370552,32.0857063 C4.00314289,32.0850715 4.75405903,32.0842107 5.4593989,32.0831725 L5.45842089,30.9425679 C5.45842089,21.0014424 13.5172954,12.9425679 23.4584209,12.9425679 L28.3965776,12.9425679 Z`,fill:e.ref(1)}),(0,t.h)(`rect`,{fill:e.ref(2),x:`10.9168418`,y:`18.4009888`,width:`30.0213149`,height:`30.0213149`,rx:`12`}),(0,t.h)(`rect`,{fill:e.ref(3),x:`49.125788`,y:`21.1301993`,width:`5.45842089`,height:`24.562894`,rx:`2`}),(0,t.h)(`path`,{d:`M51.8123687,2.72921045 C51.8123687,6.90327561 54.9358287,10.3478176 58.9729609,10.8530485 L60,10.9168418 C55.8259348,10.9168418 52.3813929,14.0403018 51.8761619,18.077434 L51.8123687,19.1044731 C51.8123687,14.930408 48.6889086,11.485866 44.6517764,10.9806351 L43.6247373,10.9168418 C47.7988025,10.9168418 51.2433445,7.79338174 51.7485754,3.75624952 L51.8123687,2.72921045 Z`,fill:e.ref(4),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M40.8955269,0 C40.8955269,2.78271011 42.9778336,5.07907143 45.6692551,5.41589204 L46.3539478,5.45842089 C43.5712377,5.45842089 41.2748763,7.54072759 40.9380557,10.2321491 L40.8955269,10.9168418 C40.8955269,8.13413168 38.8132202,5.83777036 36.1217987,5.50094974 L35.437106,5.45842089 C38.2198161,5.45842089 40.5161774,3.3761142 40.852998,0.684692719 L40.8955269,0 Z`,fill:e.ref(5),"fill-rule":`nonzero`}),(0,t.h)(`path`,{d:`M44.4235306,12.0484656 C44.4235306,13.4398207 45.464684,14.5880013 46.8103947,14.7564116 L47.1527411,14.7776761 C45.761386,14.7776761 44.6132054,15.8188294 44.4447951,17.1645402 L44.4235306,17.5068865 C44.4235306,16.1155315 43.3823773,14.9673508 42.0366665,14.7989405 L41.6943202,14.7776761 C43.0856752,14.7776761 44.2338559,13.7365227 44.4022662,12.390812 L44.4235306,12.0484656 Z`,fill:`#8860FC`,"fill-rule":`nonzero`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`17.7398679`,y:`29.3178306`,width:`5.45842089`,height:`8.18763134`,rx:`2`}),(0,t.h)(`rect`,{fill:`#16204D`,x:`28.6567097`,y:`29.3178306`,width:`5.45842089`,height:`8.18763134`,rx:`2`}),(0,t.h)(`path`,{d:`M33.2681489,12.9425679 C32.5347773,9.30362068 31.08981,7.48414704 28.9332468,7.48414704 C25.698402,7.48414704 25.7333802,11.8081925 28.9332468,11.4257275 C30.6212196,11.223972 31.7656965,11.7295855 32.3666775,12.9425679 L33.2681489,12.9425679 Z`,fill:e.ref(6),transform:`translate(29.8942, 10.2134) scale(-1, 1) translate(-29.8942, -10.2134)`}),(0,t.h)(`path`,{d:`M26.5202122,12.9425679 C25.7868406,9.30362068 24.3418733,7.48414704 22.1853101,7.48414704 C18.9504653,7.48414704 18.9854435,11.8081925 22.1853101,11.4257275 C23.8732829,11.223972 25.0177598,11.7295855 25.6187408,12.9425679 L26.5202122,12.9425679 Z`,fill:e.ref(6)})]),(0,t.h)(`path`,{d:`M309,81.279814 C309,66.0493667 239.827994,53.7026496 154.5,53.7026496 C69.1720062,53.7026496 0,66.0493667 0,81.279814 C0,96.5102614 309,96.5102614 309,81.279814 Z`,fill:e.ref(7),opacity:`0.22710455`})])])])}}),o5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-document-icon":!0}}),[(0,t.h)(`g`,{fill:`none`},[(0,t.h)(`path`,{fill:`#3D4265`,d:`M708.9230754909091 157.53846132363637L984.6153867636364 157.53846132363637C1006.3669061818182 157.53846132363637 1024 175.17155421090908 1024 196.9230764218182L1024 945.2307688727273C1024 988.7338123636364 988.7338123636364 1024 945.2307688727273 1024L708.9230754909091 1024 708.9230754909091 157.53846132363637Z`}),(0,t.h)(`path`,{fill:`#3A84FF`,d:`M0 984.6153867636364C0 995.0608337454545 4.149438594327273 1005.0784674909091 11.535486650181818 1012.4645143272728 18.921534743272726 1019.8505611636365 28.939165649454548 1024 39.38461500509091 1024L945.2307688727273 1024C901.7277253818182 1024 866.4615377454545 988.7338123636364 866.4615377454545 945.2307688727273L866.4615377454545 39.384615051636366C866.4615377454545 17.633092747636365 848.8284439272727 0 827.0769245090909 0L39.38461500509091 0C17.633092747636365 0 0 17.633092747636365 0 39.384615051636366L0 984.6153867636364Z`}),(0,t.h)(`path`,{fill:`#FFF`,d:`M196.92307688727274 288.82051304727275C175.17155467636363 288.82051304727275 157.53846132363637 306.45360593454546 157.53846132363637 328.2051281454546 157.53846132363637 349.9566508218182 175.17155467636363 367.5897437090909 196.92307688727274 367.5897437090909L354.4615391418182 367.5897437090909C376.2130618181818 367.5897437090909 393.8461547054545 349.9566508218182 393.8461547054545 328.2051281454546 393.8461547054545 306.45360593454546 376.2130618181818 288.82051304727275 354.4615391418182 288.82051304727275L196.92307688727274 288.82051304727275ZM196.92307688727274 525.1282059636363C175.17155467636363 525.1282059636363 157.53846132363637 542.7612997818183 157.53846132363637 564.5128192000001 157.53846132363637 586.2643432727273 175.17155467636363 603.8974370909091 196.92307688727274 603.8974370909091L669.5384622545455 603.8974370909091C691.2899816727273 603.8974370909091 708.9230754909091 586.2643432727273 708.9230754909091 564.5128192000001 708.9230754909091 542.7612997818183 691.2899816727273 525.1282059636363 669.5384622545455 525.1282059636363L196.92307688727274 525.1282059636363ZM196.92307688727274 761.4358993454546C175.17155467636363 761.4358993454546 157.53846132363637 779.0689885090909 157.53846132363637 800.8205125818182 157.53846132363637 822.5720366545454 175.17155467636363 840.2051304727273 196.92307688727274 840.2051304727273L433.23076933818186 840.2051304727273C454.9822915490909 840.2051304727273 472.61538676363637 822.5720366545454 472.61538676363637 800.8205125818182 472.61538676363637 779.0689885090909 454.9822915490909 761.4358993454546 433.23076933818186 761.4358993454546L196.92307688727274 761.4358993454546Z`})])]),tOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-preview-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M512 192C759.4 192 960 335.3 960 512 960 688.7 759.4 832 512 832 264.6 832 64 688.7 64 512 64 335.3 264.6 192 512 192ZM512 256C457.8 256 405.4 263.5 356.1 278.4 309.5 292.5 267.8 312.5 232.4 337.8 165.1 385.9 128 447.8 128 512 128 576.2 165.1 638.1 232.4 686.2 267.8 711.5 309.5 731.5 356.1 745.6 405.4 760.5 457.8 768 512 768 566.2 768 618.6 760.5 667.9 745.6 714.5 731.5 756.2 711.5 791.6 686.2 858.9 638.1 896 576.2 896 512 896 447.8 858.9 385.9 791.6 337.8 756.2 312.5 714.5 292.5 667.9 278.4 618.6 263.5 566.2 256 512 256ZM512 352C600.4 352 672 423.6 672 512 672 600.4 600.4 672 512 672 423.6 672 352 600.4 352 512 352 423.6 423.6 352 512 352ZM512 416C459.1 416 416 459.1 416 512 416 564.9 459.1 608 512 608 564.9 608 608 564.9 608 512 608 459.1 564.9 416 512 416Z`})]),nOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 64 64`,class:{[r5.class]:!0,"ai-target-icon":!0}}),[(0,t.h)(`g`,null,[(0,t.h)(`path`,{d:`M54 8H31v4h18.2L22.6 38.6l2.8 2.8L52 14.8V33h4V10c0-1.1-.9-2-2-2z`}),(0,t.h)(`path`,{d:`M52 44v8H12V12h7.9V8H10c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2h44c1.1 0 2-.9 2-2V44h-4z`})])]),rOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 64 64`,class:{[r5.class]:!0,"ai-remove-icon":!0}}),[(0,t.h)(`path`,{fill:`#737987`,d:`M32,4C16.5,4,4,16.5,4,32s12.5,28,28,28s28-12.5,28-28S47.5,4,32,4z M43.3,40.5l-2.8,2.8L32,34.8l-8.5,8.5l-2.8-2.8l8.5-8.5l-8.5-8.5l2.8-2.8l8.5,8.5l8.5-8.5l2.8,2.8L34.8,32L43.3,40.5z`})]),s5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-arrow-right-icon":!0}}),[(0,t.h)(`path`,{d:`M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z`})]);(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-link-icon":!0}}),[(0,t.h)(`path`,{d:`M263.04 760.96a148.48 148.48 0 0 1-1.92-224l92.48-92.48L308.48 398.72 216 491.2a212.8 212.8 0 0 0 1.92 314.88 212.8 212.8 0 0 0 314.88 1.92l92.48-92.48L579.84 672l-92.48 92.48A148.48 148.48 0 0 1 263.04 760.96Z`}),(0,t.h)(`path`,{d:`M491.2 216L398.72 308.48l45.44 45.12 92.48-92.48a148.48 148.48 0 0 1 224 1.92 148.48 148.48 0 0 1 1.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 0 0-1.92-314.88A212.8 212.8 0 0 0 491.2 216Z`}),(0,t.h)(`path`,{d:`M398.78566017615634 579.8877413259167L579.8049961599127 398.86840534216054 625.0598301558516 444.1232393380996 444.0404941720955 625.1425753218557 398.78566017615634 579.8877413259167z`})]);var iOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 24 18`,class:{[r5.class]:!0,"ai-image-error-icon":!0}}),[(0,t.h)(`path`,{d:`M8.018 0l-.774 2.941.856 2.206-.757 1.47 1.26-1.272-.232-2.224 1.102-3.088h7.228c1.322.01 2.388 1.085 2.39 2.408v5.196a5.42 5.42 0 0 0-1.186.144V2.46c-.035-.645-.542-1.164-1.186-1.213H10.346L9.388 3.04l-.18 2.573-2.636 2.261.859-2.629-1.186-2.006.18-1.978H2.57c-.334-.01-.658.115-.9.346a1.24 1.24 0 0 0-.385.885L1.252 13.07l3.921-4.834c.477-.481 1.068-.481 1.436 0l3.44 4.47 3.344-3.375c.194-.242.495-.372.804-.349.309.024.586.198.742.467l.171.221a5.45 5.45 0 0 0-.928 2.874c0 1.896 1.074 3.54 2.648 4.359l-.122.005H2.39C1.065 16.877.017 15.776.048 14.45L0 2.393C.044 1.071 1.131.024 2.452.033h5.566zM19.09 8.25a4.295 4.295 0 1 1 0 8.591 4.295 4.295 0 0 1 0-8.591zm0 5.83a.46.46 0 1 0 0 .92.46.46 0 0 0 0-.92zm0-3.936a.434.434 0 0 0-.433.408l.126 2.915a.307.307 0 0 0 .614 0l.122-2.822a.434.434 0 0 0-.43-.5zm-5.405-5.737a2.03 2.03 0 0 1 .95 1.653 2.03 2.03 0 0 1-.95 1.653 1.93 1.93 0 0 1-1.918 0 2.03 2.03 0 0 1-.95-1.653c.004-.678.364-1.304.95-1.653a1.93 1.93 0 0 1 1.918 0z`,fill:`currentColor`,"fill-rule":`nonzero`})]),aOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-success-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16 2C23.7313 2 30 8.26875 30 16C30 23.7313 23.7313 30 16 30C8.26875 30 2 23.7313 2 16C2 8.26875 8.26875 2 16 2ZM22.0028 11L14.0038 19L10 15L8.5 16.5026L14.0038 22L23.5 12.5L22.0028 11Z`,fill:`#65C389`})]),oOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-failed-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16 2C23.7313 2 30 8.26875 30 16C30 23.7313 23.7313 30 16 30C8.26875 30 2 23.7313 2 16C2 8.26875 8.26875 2 16 2ZM20.2426 10.3431L15.9996 14.5862L11.757 10.3435L10.3431 11.7574L14.5858 16L10.3431 20.2426L11.758 21.6575L16.0006 17.4149L20.2426 21.6569L21.6565 20.243L17.4145 16.001L21.6575 11.758L20.2426 10.3431Z`,fill:`#FF5656`})]),sOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-suspended-icon":!0}}),[(0,t.h)(`path`,{d:`M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM14 10H11V22H14V10ZM21 10H18V22H21V10Z`,fill:`#F59500`})]),cOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-pending-icon":!0}}),[(0,t.h)(`path`,{d:`M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM9.69434 7.7002C9.14293 7.7002 8.7002 8.15033 8.7002 8.7002V8.74023C8.70032 9.28999 9.14301 9.74023 9.69434 9.74023H11.1191V12.1201C11.1192 13.6989 11.8616 15.1043 13.0137 16C11.8616 16.8957 11.1192 18.3011 11.1191 19.8799V22.2598H9.71387C9.69649 22.2598 9.67908 22.2608 9.66211 22.2627C9.14435 22.2999 8.73938 22.734 8.73926 23.2598V23.2998C8.73926 23.8316 9.15347 24.2693 9.67969 24.2979C9.69103 24.2987 9.70239 24.2998 9.71387 24.2998H22.3057C22.8571 24.2998 23.2998 23.8497 23.2998 23.2998V23.2598C23.2997 22.71 22.857 22.2598 22.3057 22.2598H20.8408V19.8799C20.8408 18.3007 20.0978 16.8956 18.9453 16C20.0978 15.1044 20.8408 13.6993 20.8408 12.1201V9.74023H22.2666C22.8178 9.74006 23.2606 9.28989 23.2607 8.74023V8.7002C23.2607 8.15043 22.8179 7.70037 22.2666 7.7002H9.69434ZM22.4463 23.9854L22.3057 24C22.3951 24 22.48 23.9813 22.5586 23.9502C22.5223 23.9645 22.4852 23.9773 22.4463 23.9854ZM9.05273 23.4316C9.06084 23.4745 9.07245 23.516 9.08789 23.5557C9.07298 23.5174 9.06081 23.4777 9.05273 23.4365V23.4316ZM9.44531 22.623C9.48274 22.6058 9.52184 22.5915 9.5625 22.5811L9.56445 22.5801C9.5231 22.5906 9.48336 22.6054 9.44531 22.623ZM15.9805 17.0195C16.7368 17.0196 17.447 17.3158 17.9814 17.8564L17.9824 17.8574C18.5188 18.3966 18.8134 19.1145 18.8135 19.8799V22.2598H13.1475V19.8799C13.1475 19.1145 13.4412 18.3966 13.9775 17.8574L13.9785 17.8564C14.5131 17.3156 15.2239 17.0195 15.9805 17.0195ZM18.8135 9.74023V12.1201C18.8134 12.8855 18.5188 13.6034 17.9824 14.1426L17.9814 14.1436C17.447 14.6842 16.7368 14.9804 15.9805 14.9805C15.2239 14.9805 14.5131 14.6844 13.9785 14.1436L13.9775 14.1426L13.7881 13.9316C13.3725 13.4226 13.1475 12.7897 13.1475 12.1201V9.74023H18.8135ZM12.875 12.5459C12.87 12.5086 12.866 12.4712 12.8623 12.4336L12.8506 12.2773C12.8549 12.3676 12.8632 12.4572 12.875 12.5459Z`,fill:`#B8BBC4`})]),lOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 32 32`,class:{[r5.class]:!0,"ai-bk-flow-skipped-icon":!0}}),[(0,t.h)(`path`,{d:`M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM17.0156 8.8125C16.6831 8.81258 16.4131 9.08514 16.4131 9.4209V11.8574L16.3984 11.8594C14.1864 12.2432 12.5291 13.4566 12.3467 13.5947C11.5353 14.1512 10.813 14.8455 10.1973 15.6533C9.70507 16.3019 9.28342 17.0276 8.93945 17.8086C8.4036 19.027 8.23229 19.9214 8.19238 20.167V20.1709C8.18865 20.1842 8.18638 20.1997 8.18262 20.2168L8.18066 20.2246C8.16356 20.309 8.13736 20.4356 8.12598 20.6387C8.11649 20.8244 8.18634 20.9396 8.24707 21.0049C8.33639 21.1008 8.46603 21.1533 8.61426 21.1533C8.8347 21.1533 9.00412 20.9708 9.15234 20.8115L9.1543 20.8096C9.17706 20.7847 9.19793 20.7613 9.2207 20.7383C9.86489 20.0898 10.6804 19.5176 11.5811 19.084C12.3449 18.7176 13.2058 18.4188 14.1387 18.1963C15.0584 17.9775 15.8738 17.8771 16.3945 17.8311L16.415 17.8291V20.5596C16.415 20.8953 16.6851 21.1679 17.0176 21.168L16.999 21.1836L17.0371 21.1875L17.0176 21.168C17.1639 21.168 17.3068 21.1145 17.417 21.0166L23.6729 15.4385C23.6918 15.4213 23.7086 15.4039 23.7256 15.3848C23.9441 15.1315 23.9197 14.748 23.6709 14.5254L17.415 8.96387C17.3048 8.86601 17.1619 8.8125 17.0156 8.8125Z`,fill:`#5B7290`})]),uOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-execution-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M512 64A448 448 0 1 1 64 512 448 448 0 0 1 512 64Zm0 64A384 384 0 0 0 128 512 384 384 0 0 0 784 784 384 384 0 0 0 784 240 384 384 0 0 0 512 128ZM448 576V256h64V512H768v64Z`})]),c5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-node-output-icon":!0}}),[(0,t.h)(`path`,{d:`M800 128c17.664 0 32 12.288 32 27.424v545.408L594.016 896H224c-17.664 0-32-12.288-32-27.424V155.424C192 140.288 206.336 128 224 128z m-26.176 59.072H250.176v649.856h276.384v-134.88c0-31.52 28.704-57.12 64-57.12h183.264V187.072zM735.52 704h-144.96a13.024 13.024 0 0 0-5.824 1.216v122.432L735.52 704zM704 480v64H320v-64h384z m-128-96v64h-256v-64h256z m96-128v64H320V256h352z`})]),dOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-node-tab-icon":!0}}),[(0,t.h)(`path`,{d:`M374.656 640c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 800 160 785.664 160 768s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 681.088 317.504 640 374.656 640z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z m306.688-320c57.152 0 105.184 41.088 118.72 96.384 1.28-0.16 2.56-0.384 3.936-0.384h61.344c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-61.344c-1.344 0-2.624-0.256-3.936-0.384-13.536 55.296-61.568 96.384-118.72 96.384-57.184 0-105.184-41.088-118.72-96.384-1.312 0.16-2.624 0.384-3.968 0.384h-368C173.76 544 160 529.664 160 512s13.76-32 30.656-32h368c1.376 0 2.656 0.256 3.936 0.384 13.568-55.296 61.568-96.384 118.72-96.384z m0 64c-33.824 0-61.344 28.704-61.344 64s27.52 64 61.344 64 61.312-28.704 61.312-64-27.52-64-61.312-64z m-306.688-288c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 320 160 305.664 160 288s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 201.088 317.504 160 374.656 160z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z`})]),fOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-zoom-in-icon`}),[(0,t.h)(`path`,{d:`M637.02 482.06H546.3V391.34c0-17.67-14.33-32-32-32s-32 14.33-32 32v90.72H391.58c-17.67 0-32 14.33-32 32s14.33 32 32 32h90.72v90.72c0 17.67 14.33 32 32 32s32-14.33 32-32v-90.72h90.72c17.67 0 32-14.33 32-32s-14.33-32-32-32z`}),(0,t.h)(`path`,{d:`M514.3 195.78c-175.72 0-318.28 142.56-318.28 318.28S338.58 832.34 514.3 832.34s318.28-142.56 318.28-318.28-142.56-318.28-318.28-318.28z m0 572.56c-140.28 0-254.28-114-254.28-254.28s114-254.28 254.28-254.28 254.28 114 254.28 254.28-114 254.28-254.28 254.28z`})]),pOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-zoom-out-icon`}),[(0,t.h)(`path`,{d:`M637.02 482.06H391.58c-17.67 0-32 14.33-32 32s14.33 32 32 32h245.44c17.67 0 32-14.33 32-32s-14.33-32-32-32z`}),(0,t.h)(`path`,{d:`M514.3 195.78c-175.72 0-318.28 142.56-318.28 318.28S338.58 832.34 514.3 832.34s318.28-142.56 318.28-318.28-142.56-318.28-318.28-318.28z m0 572.56c-140.28 0-254.28-114-254.28-254.28s114-254.28 254.28-254.28 254.28 114 254.28 254.28-114 254.28-254.28 254.28z`})]),mOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-rotate-icon`}),[(0,t.h)(`path`,{d:`M817.76 328.31H402.28c-59.68 0-108.24 48.55-108.24 108.24v415.44c0 59.68 48.55 108.24 108.24 108.24h415.47c59.65 0 108.2-48.55 108.2-108.24V436.55c0-59.69-48.55-108.24-108.19-108.24z m30.39 523.68c0 16.79-13.64 30.43-30.39 30.43H402.28c-16.79 0-30.43-13.64-30.43-30.43V436.55c0-16.79 13.64-30.43 30.43-30.43h415.47c16.75 0 30.39 13.64 30.39 30.43v415.44z`}),(0,t.h)(`path`,{d:`M248.91 368.43c-18.27-11.32-42.25-5.66-53.57 12.61l-18.16 29.33c-0.87-8.47-1.33-17.1-1.33-25.76 0-134 109.04-243.03 243.07-243.03 44.64 0 88.29 12.2 126.17 35.29 18.39 11.13 42.32 5.32 53.49-12.99 11.17-18.35 5.36-42.28-12.99-53.49-50.11-30.51-107.74-46.62-166.67-46.62-176.93 0-320.88 143.91-320.88 320.84 0 48.14 10.41 94.41 30.89 137.53 6.12 12.84 18.77 21.35 32.98 22.11 0.72 0.04 1.44 0.08 2.17 0.08a38.92 38.92 0 0 0 33.09-18.43L261.52 422c11.29-18.28 5.66-42.25-12.61-53.57z`})]),hOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-fit-screen-icon`}),[(0,t.h)(`path`,{d:`M160 160h240v64H224v176H160V160zM160 624h64v176h176v64H160V624zM624 160h240v240h-64V224H624V160zM800 624h64v240H624v-64h176V624z`})]),gOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-download-icon`}),[(0,t.h)(`path`,{d:`M544 654.4V192h-64v462.4l-147.2-147.2-45.2 45.2L512 776.8l224.4-224.4-45.2-45.2L544 654.4zM832 832H192v64h640v-64z`})]),_Ot=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-close-icon`}),[(0,t.h)(`path`,{d:`M557.3 512l214.9-214.9c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L512 466.7 297.1 251.8c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 512 251.8 726.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 557.3l214.9 214.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 512z`})]),vOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-arrow-left-icon`}),[(0,t.h)(`path`,{d:`M672 165.2L333.2 504c-5.6 5.6-5.6 14.8 0 20.4L672 863.2`,fill:`none`,stroke:`currentColor`,"stroke-width":`64`,"stroke-linecap":`round`})]),yOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-arrow-right-preview-icon`}),[(0,t.h)(`path`,{d:`M352 165.2L690.8 504c5.6 5.6 5.6 14.8 0 20.4L352 863.2`,fill:`none`,stroke:`currentColor`,"stroke-width":`64`,"stroke-linecap":`round`})]),bOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-reload-icon`}),[(0,t.h)(`path`,{d:`M889.6 398.4c-16-35.2-35.2-65.6-60.8-92.8-24-27.2-52.8-48-84.8-65.6-32-17.6-67.2-28.8-102.4-35.2-35.2-6.4-72-8-108.8-3.2V108.8l-256 192 256 192V400c27.2-4.8 54.4-4.8 81.6-1.6 27.2 4.8 52.8 14.4 76.8 27.2 24 12.8 46.4 30.4 64 51.2 17.6 20.8 32 44.8 41.6 70.4 9.6 25.6 14.4 52.8 14.4 81.6s-4.8 56-14.4 81.6c-9.6 25.6-24 49.6-41.6 70.4-17.6 20.8-40 38.4-64 51.2-24 12.8-49.6 22.4-76.8 27.2-27.2 4.8-54.4 4.8-81.6 1.6-27.2-4.8-52.8-14.4-76.8-27.2-24-12.8-46.4-30.4-64-51.2-17.6-20.8-32-44.8-41.6-70.4-9.6-25.6-14.4-52.8-14.4-81.6h-64c0 38.4 6.4 75.2 19.2 110.4 12.8 35.2 30.4 67.2 52.8 96 22.4 28.8 49.6 52.8 80 72 30.4 19.2 64 33.6 99.2 43.2 35.2 9.6 72 12.8 108.8 11.2 36.8-1.6 72-9.6 105.6-22.4 33.6-12.8 64-30.4 92.8-52.8 28.8-22.4 52.8-49.6 72-80 19.2-30.4 33.6-64 43.2-99.2 9.6-35.2 12.8-72 11.2-108.8-1.6-36.8-9.6-72-22.4-105.6z`})]),xOt=(0,t.h)(`svg`,$($({},r5),{},{viewBox:`0 0 200 180`,class:`ai-common-icon ai-image-broken-icon`}),[(0,t.h)(`g`,{fill:`none`},[(0,t.h)(`rect`,{x:`30`,y:`20`,width:`100`,height:`86`,rx:`4`,fill:`#C4C6CC`,opacity:`0.6`}),(0,t.h)(`circle`,{cx:`55`,cy:`45`,r:`8`,fill:`#979BA5`,opacity:`0.5`}),(0,t.h)(`path`,{d:`M30 80l25-20 20 15 25-25 30 30v26H30V80z`,fill:`#979BA5`,opacity:`0.5`}),(0,t.h)(`circle`,{cx:`120`,cy:`80`,r:`36`,fill:`#FFE8C3`,stroke:`#FF9C01`,"stroke-width":`3`}),(0,t.h)(`text`,{x:`120`,y:`88`,"text-anchor":`middle`,"font-size":`32`,"font-weight":`bold`,fill:`#FF9C01`},`!`)])]),SOt=(0,t.h)(`svg`,$($({},r5),{},{class:`ai-common-icon ai-image-size-icon`}),[(0,t.h)(`path`,{d:`M864 160H160c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h704c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64z m0 640H160V224h704v576z`})]),COt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-close-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M512 70.246391c230.929037 0 418.133279 187.204242 418.133279 418.133279s-187.204242 418.133279-418.133279 418.133279-418.133279-187.204242-418.133279-418.133279 187.204242-418.133279 418.133279-418.133279z m0 59.733325c-197.938508 0-358.399953 160.461446-358.399953 358.399954s160.461446 358.399953 358.399953 358.399953 358.399953-160.461446 358.399953-358.399953-160.461446-358.399953-358.399953-358.399954z m0 123.199984c129.884516 0 235.199969 105.315453 235.199969 235.19997s-105.315453 235.199969-235.199969 235.199969-235.199969-105.315453-235.199969-235.199969 105.315453-235.199969 235.199969-235.19997z m71.276791 140.165182l-71.283324 71.282391-71.276791-71.275858-23.751464 23.751464 71.275858 71.276791-71.275858 71.27679 23.769197 23.769197 71.276791-71.27679 71.265591 71.26559 23.751463-23.751463-71.264657-71.265591 71.282391-71.283324-23.769197-23.769197z`})]),wOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-doc-link-icon":!0}}),[(0,t.h)(`path`,{d:`M320.950857 203.337143H191.634286a32.036571 32.036571 0 0 0-31.670857 31.890286v639.561142c0 17.408 14.409143 31.890286 31.670857 31.890286h129.316571a32.036571 32.036571 0 0 0 31.670857-31.890286V235.227429a32.036571 32.036571 0 0 0-31.670857-31.890286z m-35.84 130.486857H227.474286a28.964571 28.964571 0 0 1 0-58.002286h57.490285a28.964571 28.964571 0 0 1 0 58.002286z m293.156572-237.860571H448.877714a32.036571 32.036571 0 0 0-31.597714 31.963428v746.788572c0 17.481143 14.409143 31.963429 31.597714 31.963428h129.462857a32.036571 32.036571 0 0 0 31.524572-31.890286V127.926857c1.462857-17.408-12.873143-31.890286-31.597714-31.890286z m-34.523429 132.022857h-57.490286a28.964571 28.964571 0 0 1 0-58.002286h57.490286a28.964571 28.964571 0 0 1 0 58.002286z m383.780571 613.449143l-120.685714-628.004572a33.792 33.792 0 0 0-33.060571-26.038857H768l-126.537143 24.649143a32.768 32.768 0 0 0-25.819428 37.668571l122.148571 629.394286c2.925714 15.945143 15.872 26.112 31.670857 26.112h5.705143l126.537143-24.649143a35.108571 35.108571 0 0 0 25.819428-39.131428z m-165.302857-529.334858l-57.490285 11.556572h-5.705143a30.72 30.72 0 0 1-28.745143-23.186286 29.696 29.696 0 0 1 22.966857-34.816l57.490286-11.556571c15.798857-2.925714 31.670857 7.241143 34.523428 23.186285a29.696 29.696 0 0 1-22.966857 34.816z`})]),TOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-delete-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m180.8 584l-44.8 44.8-136-136-136 136-44.8-44.8 136-136-136-136 44.8-44.8 136 136 136-136 44.8 44.8-136 136 136 136z`})]),EOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-delete-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M470.8352 362.7008l-192.8192 186.368a160.768 160.768 0 0 0 0.0512 232.8576c66.4576 64.2048 174.4384 64.3072 240.896 0.0512l241.0496-233.0112a34.9184 34.9184 0 0 1 48.1792 0c13.312 12.8512 13.312 33.7408 0 46.592l-241.0496 233.0112c-93.0816 89.9584-244.224 89.856-337.2544-0.0512a225.1264 225.1264 0 0 1-0.0512-326.0416l337.408-326.144a174.1824 174.1824 0 0 1 240.896 0 160.512 160.512 0 0 1 0 232.96l-192.8192 186.368-144.384 139.5712a104.6528 104.6528 0 0 1-144.6912 0.1024 96.1536 96.1536 0 0 1 0.1536-139.8784l337.0496-325.7856a34.9184 34.9184 0 0 1 48.128 0c13.312 12.8512 13.312 33.7408 0 46.592L374.6304 642.048a31.8464 31.8464 0 0 0-0.1536 46.7456 34.816 34.816 0 0 0 48.3328-0.1536l144.384-139.52 192.8192-186.4192a96.1536 96.1536 0 0 0 0-139.776 103.68 103.68 0 0 0-72.2944-29.0304c-27.136 0-53.1456 10.4448-72.2432 29.0304l-144.5888 139.776z`})]),DOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-check-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M512 85.333333c235.52 0 426.666667 191.146667 426.666667 426.666667s-191.146667 426.666667-426.666667 426.666667S85.333333 747.52 85.333333 512 276.48 85.333333 512 85.333333m-42.666667 618.666667l298.666667-298.666667-60.16-60.16L469.333333 583.253333l-131.84-131.413333L277.333333 512l192 192z`})]),OOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-time-icon":!0}}),[(0,t.h)(`path`,{d:`M512 70.4a441.6 441.6 0 1 0 0 883.2 441.6 441.6 0 0 0 0-883.2z m0 64a377.6 377.6 0 1 1 0 755.2 377.6 377.6 0 0 1 0-755.2z`}),(0,t.h)(`path`,{d:`M544 480V256a32 32 0 1 0-64 0v230.4c0 31.7952 25.8048 57.6 57.6 57.6H768a32 32 0 1 0 0-64h-224z`})]),kOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-close-circle-icon":!0}}),[(0,t.h)(`path`,{d:`M85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z m269.653334-96.661333l96.810666 96.810666-96.810666 96.810667c-16.661333 16.661333-16.384 43.84 0.277333 60.501333l0.512 0.512c16.64 16.64 42.88 16 59.541333-0.682666l96.810667-96.810667 96.832 96.810667c16.64 16.682667 42.88 17.344 59.541333 0.682666l0.512-0.512c16.64-16.64 16.938667-43.84 0.277334-60.501333l-96.810667-96.810667 96.810667-96.810666c16.661333-16.661333 16.384-43.861333-0.277334-60.522667l-0.490666-0.490667c-16.682667-16.661333-42.901333-16-59.562667 0.661334l-96.832 96.810666-96.810667-96.810666c-16.64-16.64-42.88-17.322667-59.541333-0.661334a109.44 109.44 0 0 1-0.512 0.490667c-16.64 16.661333-16.938667 43.861333-0.277333 60.522667z`})]),AOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-revoked-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64a448.056889 448.056889 0 1 1-0.056889 896.056889A448.056889 448.056889 0 0 1 512 64zM448 256l-128 96.256L448.284444 448 448 384l128.113778 0.113778a128 128 0 0 1 0 255.886222h-224.142222v64h224.028444a192 192 0 1 0 0-384h-128V256z`})]),jOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-help-doc-icon":!0},viewBox:`0 0 16 16`}),[(0,t.h)(`path`,{d:`M8 1C11.8656 1 15 4.13438 15 8C15 11.8656 11.8656 15 8 15C7.07969 15 6.2 14.8234 5.39531 14.5H2C1.72344 14.5 1.5 14.2766 1.5 14V10.6047C1.17812 9.79844 1 8.92031 1 8C1 4.13438 4.13438 1 8 1ZM8.54825 10.1578H7.37878V11.3687H8.54825V10.1578ZM8.07669 4.62969C7.4876 4.62969 6.98847 4.81875 6.5793 5.19844C6.17013 5.57812 5.91911 6.1375 5.8248 6.87656L7.07407 7.06875C7.14082 6.25156 7.44262 5.84219 7.98092 5.84219C8.18406 5.84219 8.35817 5.9125 8.50037 6.05156C8.64401 6.19062 8.71511 6.38125 8.71511 6.62344C8.71511 6.82031 8.67593 6.98438 8.60048 7.11719C8.52358 7.25 8.38864 7.39375 8.19421 7.54688C7.82277 7.84219 7.59497 8.06719 7.50791 8.22188C7.42085 8.37656 7.37732 8.75312 7.37732 9.34844V9.53438L8.5555 9.53281C8.5555 9.21562 8.58597 8.99687 8.64836 8.87969C8.71075 8.7625 8.88922 8.59844 9.18377 8.38906C9.86136 7.9125 10.2009 7.31875 10.2009 6.60781C10.2009 6.03437 9.99776 5.5625 9.59004 5.18906C9.18232 4.81563 8.67883 4.62969 8.07669 4.62969Z`})]),MOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-info-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zM512 896C299.2 896 128 724.8 128 512S299.2 128 512 128s384 171.2 384 384S724.8 896 512 896z`}),(0,t.h)(`path`,{d:`M494.4 403.2c-28.8 6.4-56 20.8-76.8 41.6-24 22.4 1.6 44.8 16 27.2 9.6-12.8 24-22.4 40-28.8 11.2-1.6 17.6 1.6 19.2 9.6 1.6 14.4 0 27.2-4.8 41.6-4.8 19.2-14.4 51.2-25.6 94.4-22.4 76.8-33.6 124.8-30.4 140.8 3.2 17.6 12.8 32 28.8 41.6 17.6 8 38.4 9.6 57.6 4.8 30.4-6.4 57.6-22.4 80-44.8 25.6-25.6-3.2-43.2-17.6-28.8-9.6 12.8-24 22.4-40 25.6-14.4 3.2-22.4-3.2-25.6-16-1.6-14.4 1.6-28.8 6.4-41.6 40-136 57.6-212.8 52.8-232-3.2-14.4-12.8-27.2-25.6-33.6C532.8 398.4 512 398.4 494.4 403.2z`}),(0,t.h)(`path`,{d:`M608 304A48 48 0 0 1 560 352 48 48 0 0 1 512 304 48 48 0 0 1 608 304z`})]),NOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-enter-icon":!0}}),[(0,t.h)(`path`,{d:`M853.312 213.312a42.88 42.88 0 0 1 39.424 26.24c2.176 5.184 3.264 10.752 3.264 16.384v170.688a213.376 213.376 0 0 1-213.312 213.312H273.6l97.92 97.856a42.688 42.688 0 1 1-60.352 60.288L140.48 627.392a42.688 42.688 0 0 1 0-60.288l170.688-170.688a42.688 42.688 0 0 1 60.352 60.352L273.664 554.624h409.024a128 128 0 0 0 128-128V255.936a42.624 42.624 0 0 1 42.624-42.624z`})]),POt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-skip-icon":!0},viewBox:`0 0 16 16`}),[(0,t.h)(`path`,{d:`M8.90283 2.5C9.0329 2.5 9.15984 2.54778 9.25781 2.63477L14.8184 7.57764C15.0396 7.77544 15.0618 8.11664 14.8677 8.3418L14.8203 8.38965L9.25928 13.3481C9.16135 13.4351 9.03479 13.4829 8.90479 13.4829L8.92139 13.5L8.8877 13.4966L8.90479 13.4829C8.60922 13.4829 8.36922 13.2408 8.36914 12.9424V10.5151L8.35059 10.5166C7.88774 10.5575 7.16279 10.6464 6.34521 10.8408C5.51593 11.0387 4.75076 11.3046 4.07178 11.6304C3.27109 12.0159 2.54628 12.5246 1.97363 13.1011C1.95343 13.1215 1.93477 13.1419 1.91455 13.1641L1.91309 13.1655C1.78136 13.3071 1.63093 13.4692 1.43506 13.4692L1.38623 13.4673C1.27492 13.4573 1.17834 13.4125 1.10889 13.3379C1.0616 13.2871 1.00802 13.2025 1.00098 13.0713V13.0122C1.00605 12.9217 1.01435 12.8483 1.02344 12.7881L1.0498 12.6436L1.05127 12.6367C1.05461 12.6215 1.05672 12.6081 1.06006 12.5962V12.5928C1.09553 12.3744 1.24727 11.5792 1.72363 10.4961C2.02937 9.80192 2.40431 9.15706 2.8418 8.58057C3.38909 7.86249 4.03116 7.24513 4.75244 6.75049C4.90953 6.63152 6.29681 5.61619 8.1709 5.24268L8.354 5.2085L8.36768 5.20703V3.04053C8.36777 2.74214 8.60732 2.50005 8.90283 2.5ZM9.36768 6.08887L8.50342 6.19775C6.78304 6.50227 5.47434 7.45858 5.35645 7.54785L5.3374 7.56201L5.31787 7.5752C4.68887 8.00657 4.12342 8.54907 3.63721 9.18701C3.25072 9.69661 2.91527 10.2725 2.63916 10.8994C2.55608 11.0883 2.48518 11.2675 2.42285 11.4341C2.80507 11.1708 3.21334 10.934 3.63818 10.7295L3.63916 10.729C4.38977 10.3689 5.2233 10.0805 6.11328 9.86816H6.11426C6.99177 9.65947 7.76654 9.56436 8.26221 9.52051L8.27783 9.51904L9.36914 9.41895V11.9106L13.7715 7.98486L9.36768 4.07031V6.08887Z`})]),FOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-send-message-icon":!0}}),[(0,t.h)(`path`,{d:`M873.6 99.2L118.4 476.8c-28.8 16-28.8 44.8-6.4 60.8l182.4 112c16 6.4 28.8 6.4 44.8-6.4L736 288 390.4 672c-6.4 6.4-6.4 16-6.4 22.4v166.4c0 16 6.4 28.8 22.4 38.4s28.8 0 38.4-6.4l89.6-89.6 182.4 121.6c28.8 16 54.4 6.4 60.8-22.4L928 147.2c6.4-38.4-19.2-60.8-54.4-48z`})]),IOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-loading-message-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64c247.424 0 448 200.576 448 448s-200.576 448-448 448S64 759.424 64 512 264.576 64 512 64z m0 64C299.936 128 128 299.936 128 512s171.936 384 384 384 384-171.936 384-384S724.064 128 512 128z m0 192a192 192 0 1 1 0 384 192 192 0 0 1 0-384z`})]),LOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-thinking-icon":!0}}),[(0,t.h)(`path`,{d:`M528 96c61.856 0 112 50.144 112 112 0 0.376-0.002 0.751-0.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 0 1-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 0 1 240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 0 1 153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96z m-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923 0.622 21.7 1.832 32.3l1.623-0.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194 0.09 7.757 0.264A280.989 280.989 0 0 0 793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z`})]),l5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-collapsed-icon":!0}}),[(0,t.h)(`path`,{d:`M373.15678637 997.95124768l-104.13241023-104.1324102 381.81883749-381.81883748-381.81883749-381.81883748 104.13241023-104.1324102 485.95124773 485.95124768z`})]),ROt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-error-icon":!0}}),[(0,t.h)(`path`,{d:`M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64z m0 704c-27.2 0-48-20.8-48-48s20.8-48 48-48 48 20.8 48 48-20.8 48-48 48z m48-459.2L544 608c0 17.6-14.4 32-32 32s-32-14.4-32-32l-16-299.2V304c0-27.2 20.8-48 48-48s48 20.8 48 48v4.8z`})]);(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-content-loading-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M621.2037824 0C1168.33181568 0 1148.103769856 748.7917952 621.2037824 682.56061184 343.25692288000005 647.62276864 136.18899583999996 761.4358976 0 1024 49.3838336 341.33333376 256.45176064 0 621.2037824 0Z`})]);var zOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-arrow-down-icon":!0}}),[(0,t.h)(`path`,{d:`M810.666628 571.545259l-85.526922-83.200123-171.019311 166.469312-0.035467-554.735928H440.048409l0.0672 554.735928-171.121977-166.469312L183.466709 571.545259l313.59996 305.066494L810.666628 571.545259z`})]),BOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-full-screen-icon":!0}}),[(0,t.h)(`path`,{d:`M85.333333 938.666667V768H0v213.333333c0 23.466667 19.2 42.666667 42.666667 42.666667H256v-85.333333H85.333333zM85.333333 85.333333h170.666667V0H42.666667C19.2 0 0 19.2 0 42.666667V256h85.333333V85.333333z m853.333334 853.333334H768v85.333333h213.333333c23.466667 0 42.666667-19.2 42.666667-42.666667V768h-85.333333v170.666667z m42.666666-938.666667H768v85.333333h170.666667v170.666667h85.333333V42.666667c0-23.466667-19.2-42.666667-42.666667-42.666667z`})]),VOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-un-full-screen-icon":!0}}),[(0,t.h)(`path`,{d:`M170.666667 853.333333v170.666667h85.333333V810.666667c0-23.466667-19.2-42.666667-42.666667-42.666667H0v85.333333h170.666667z m0-682.666666H0v85.333333h213.333333c23.466667 0 42.666667-19.2 42.666667-42.666667V0H170.666667v170.666667z m682.666666 682.666666h170.666667V768H810.666667c-23.466667 0-42.666667 19.2-42.666667 42.666667V1024h85.333333v-170.666667z m-42.666666-597.333333H1024V170.666667h-170.666667V0H768v213.333333c0 23.466667 19.2 42.666667 42.666667 42.666667z`})]),u5=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-close-icon":!0}}),[(0,t.h)(`path`,{d:`M757.09004048 196.21090938L512 446.01421987l-245.09004048-249.80331049-70.69905014 70.69905014 249.80331049 245.09004048-249.80331049 245.09004048 70.69905014 70.69905014 245.09004048-249.80331049 245.09004048 249.80331049 70.69905014-70.69905014-249.80331049-245.09004048 249.80331049-245.09004048z`})]);(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-more-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M512.5492576 319.99489568C547.8894304 319.70050624 576.292128 290.79913056 575.9977312 255.44678368 575.6905376 220.0944368 546.8014496 191.7050432 511.4484768 191.99943264 476.3130976 192.29382208 448 220.87520896 448 255.99716352L448 256.54754464C448.3071936 291.88709184 477.2090816 320.2892864 512.5492576 319.99489568M511.4484768 431.9994336C476.3130976 432.2938208 448 460.8752096 448 495.9971648L448 496.5475456C448.3071936 531.8870912 477.2090816 560.2892864 512.5492576 559.994896 547.8894304 559.7005056 576.292128 530.7991296 575.9977312 495.446784 575.6905376 460.0944352 546.8014496 431.7050432 511.4484768 431.9994336M511.4484768 671.9994336C476.3130976 672.2938208 448 700.8752096 448 735.9971648L448 736.5475456C448.3071936 771.8870912 477.2090816 800.2892864 512.5492576 799.994896 547.8894304 799.7005056 576.292128 770.7991296 575.9977312 735.446784 575.6905376 700.0944352 546.8014496 671.7050432 511.4484768 671.9994336`})]);var HOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-agent-icon":!0}}),[(0,t.h)(`path`,{d:`M512 96c-16.123 0-71.894 216.944-144 287.93-72.106 70.985-272 111.597-272 128 0 16.402 195.757 35.541 272 112 76.243 76.458 127.616 304 144 304s62.134-220.233 144-304c81.866-83.768 272-95.31 272-112 0-16.69-200.746-56.427-272-128C584.746 312.356 528.123 96 512 96z`})]),UOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-more-agent-icon":!0}}),[(0,t.h)(`path`,{d:`M176 560H416a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H176a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48z m0-432H416a48 48 0 0 1 48 48V416a48 48 0 0 1-48 48H176A48 48 0 0 1 128 416V176A48 48 0 0 1 176 128zM608 560h240a48 48 0 0 1 48 48v240a48 48 0 0 1-48 48H608a48 48 0 0 1-48-48V608a48 48 0 0 1 48-48zM848 128H608a51.648 51.648 0 0 0-48 48V416a51.648 51.648 0 0 0 48 48h240A51.712 51.712 0 0 0 896 416V176a51.712 51.712 0 0 0-48-48z m0 264a22.72 22.72 0 0 1-24 24h-192a22.72 22.72 0 0 1-24-24v-192a22.72 22.72 0 0 1 24-24h192a22.72 22.72 0 0 1 24 24v192z`})]),WOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-copy-icon":!0}}),[(0,t.h)(`path`,{d:`M672 704L672 832C672 867.346224 643.346224 896 608 896L192 896C156.653776 896 128 867.346224 128 832L128 384C128 348.653776 156.653776 320 192 320L352 320 352 216.88888896C352 168.2420416 389.7269152 128 437.3333344 128L810.6666656 128C858.2730848 128 896 168.2420416 896 216.88888896L896 615.1111104C896 663.7579584 858.2730848 704 810.6666656 704L672 704ZM608 384L192 384 192 832 608 832 608 384ZM672 640L810.6666656 640C821.9706208 640 832 629.3019968 832 615.1111104L832 216.88888896C832 202.69800448 821.9706208 192 810.6666656 192L437.3333344 192C426.0293792 192 416 202.69800448 416 216.88888896L416 320 608 320C643.346224 320 672 348.653776 672 384L672 640Z`})]),GOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-cite-icon":!0}}),[(0,t.h)(`path`,{fillRule:`evenodd`,d:`M642.2717056 192L642.2717056 256 416 256C309.961328 256 224 341.961328 224 448 224 554.038672 309.961328 640 416 640L771.712 640 640 509.52 686 464 896 672 686 880 640 834.48 771.712 704 416 704C277.28274368 704 164.33462816 593.6691904 160.12181824 455.9737376L160 448C160 306.615104 274.615104 192 416 192L642.2717056 192Z`})]),KOt=(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-rebuild-icon":!0}}),[(0,t.h)(`g`,null,[(0,t.h)(`path`,{d:`M844.0772288 379.89662848C860.4577216 421.55369728 869.3925312 467.67402368 869.3925312 512.3065977599999 869.3925312 710.17767424 708.56589312 869.3671872 512 869.3671872 427.1192736 869.3671872 345.21681792000004 839.6121408 281.18398848000004 784.5652992L352.66249536 784.5652992 352.66249536 725.05519936 184.39017791999999 725.05519936 184.39017791999999 891.6834752 243.9556 891.6834752 243.9556 830.6856256C419.67359552 977.97312 683.2505888 955.656832 830.675008 780.1020416 931.936224 659.59409088 955.7623936 494.453568 894.70784 350.14157952L844.0772288 379.89662848Z`}),(0,t.h)(`path`,{d:`M179.9227712 644.7165664C163.54227967999998 603.0594976 154.607466496 556.9391711999999 154.607466496 512.3065977599999 154.607466496 314.43552064 315.43410688 155.246007232 512 155.246007232 596.8807264 155.246007232 678.78318208 185.00105664 742.8160128 240.0478976L671.33750464 240.0478976 671.33750464 299.55799551999996 839.609824 299.55799551999996 839.609824 132.92972032 780.0444032 132.92972032 780.0444032 193.9275712C604.3264044800001 45.152325248 340.7494112 68.956364544 193.32499072000002 244.51115456 92.0637731136 365.019104 68.237604224 530.15962688 129.292162048 674.47161536L179.9227712 644.7165664Z`})])]),qOt={copy:WOt,cite:GOt,rebuild:KOt,share:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-share-icon":!0}}),[(0,t.h)(`path`,{d:`M954.2973504 473.91614016L566.9315014399999 132.1331402944C556.1972671999999 122.695581056 539.74588608 130.46066144 539.74588608 144.915657216L539.74588608 345.37419392000004C539.74588608 354.33390208000003 532.8619750400001 361.86005696 524.11124032 362.21844544 299.85908159999997 370.46137664 111.309920448 537.11194816 71.639923584 765.6442368L64.28930653056 808.0535232C61.3723950016 824.5393856 81.207393408 834.813184 92.525010176 822.6279808L121.46077254400001 791.328736C226.1195584 677.95856 371.4984288 614.28490048 523.29450496 614.8822144000001 532.39526912 614.8822144000001 539.86256256 622.40836928 539.86256256 631.72646592L539.86256256 827.8843456C539.86256256 842.3393408 556.43062016 850.104416 567.04817792 840.6668608L954.4140288 499.48117376C961.8813248 492.67179584 961.8813248 480.60605568 954.2973504 473.91614016ZM157.39712256 678.9142624C222.73594112 524.92674496 371.61510528 421.233056 541.7293862399999 421.233056L581.39938304 421.233056C590.5001472 421.233056 597.85076416 413.70690112 597.85076416 404.38880512L597.85076416 237.97715904 879.624416 486.69865664 597.85076416 734.82284096 597.85076416 572.59239232C597.85076416 563.27429568 590.5001472 555.7481408 581.39938304 555.7481408L545.3463564799999 555.7481408C404.98457344 550.01392768 268.23976064 594.21515456 157.39712256 678.9142624Z`})]),like:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-like-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M192 448.9971328L192 896 128 896 128 448.9971328 192 448.9971328ZM448 128C492.4018176 134.634696 524.4018176 145.30136288 544 160 586.6666656 192 608 234.66666656 608 288L608 384 843.5169184 384C849.3750016 384 855.2053472 384.8042912 860.8446368 386.3903392 894.8707136 395.9601728 914.6964128 431.3016416 905.1265792 465.3277184L797.1265792 849.3277184C789.3635424 876.9296288 764.1897344 896 735.5169184 896L288 896 288 448 448 128ZM483.008 201.024L352 463.04 352 832 735.5169184 832 843.5169184 448 544 448 544 288C544 254.81113408 532.1510912 231.11331968 505.6 211.2 501.3777696 208.03332736 494.5455392 204.77854912 485.19824 201.68239552L483.008 201.024Z`})]),unlike:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-un-like-icon":!0}}),[(0,t.h)(`path`,{d:`M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896ZM483.008 822.976L352 560.96 352 192 735.5169184 192 843.5169184 576 608 576 544 576 544 736C544 769.18886592 532.1510912 792.88668032 505.6 812.8 501.3777696 815.9666726400001 494.5455392 819.22145088 485.19824 822.31760448L483.008 822.976Z`})]),delete:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-delete-icon":!0}}),[(0,t.h)(`g`,null,[(0,t.h)(`path`,{d:`M659.2 246.4V185.6c0-32-25.6-57.6-57.6-57.6h-176c-32 0-57.6 25.6-57.6 57.6v57.6H128v57.6h102.4v531.2c0 32 25.6 57.6 57.6 57.6h441.6c32 0 57.6-25.6 57.6-57.6V304H896V246.4H659.2zM422.4 201.6c0-9.6 6.4-16 16-16h147.2c9.6 0 16 6.4 16 16v44.8h-176V201.6zM732.8 822.4c0 9.6-6.4 16-16 16H304c-9.6 0-16-6.4-16-16V304h441.6V822.4z`}),(0,t.h)(`path`,{d:`M576 384H640V704H576V384z`}),(0,t.h)(`path`,{d:`M384 384H448V704H384V384z`})])]),edit:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-edit-icon":!0}}),[(0,t.h)(`path`,{d:`M160.07583932 763.37440051h703.84832136v100.54976017H160.07583932zM336.03791965 687.96208035h-100.5497602v-100.54976021l351.92416069-351.92416069 100.54976021 100.5497602zM613.25360852 210.60209379l49.77213129-49.77213128 99.5442626 99.54426259-49.77213131 49.77213129z`})]),activeLike:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-active-like-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M192 448.9971328L192 896 128 896 128 448.9971328 192 448.9971328ZM288 448L288 896 759.7584608 896C774.0948672 896 786.6817696 886.464816 790.5632896 872.6638592L916.5632896 424.6638592C921.348208 407.6508192 911.4353568 389.9800864 894.4223168 385.1951712 891.6026752 384.402144 888.6875008 384 885.7584608 384L608 384 608 384 608 288C608 234.66666656 586.6666656 192 544 160 524.4018176 145.30136288 492.4018176 134.634696 448 128L288 448Z`})]),activeUnLike:(0,t.h)(`svg`,$($({},r5),{},{class:{[r5.class]:!0,"ai-active-un-like-icon":!0}}),[(0,t.h)(`path`,{"fill-rule":`evenodd`,d:`M192 575.0028672000001L192 128 128 128 128 575.0028672000001 192 575.0028672000001ZM448 896C492.4018176 889.365304 524.4018176 878.6986371200001 544 864 586.6666656 832 608 789.3333334399999 608 736L608 640 843.5169184 640C849.3750016 640 855.2053472 639.1957087999999 860.8446368 637.6096608 894.8707136 628.0398272 914.6964128 592.6983584 905.1265792 558.6722816L797.1265792 174.67228160000002C789.3635424 147.07037119999995 764.1897344 128 735.5169184 128L288 128 288 576 448 896Z`})])},JOt=[{id:`ai-chat`,name:Y8(`问问小鲸`),icon:()=>$Dt}],YOt=(0,t.defineComponent)({__name:`scroll-btn`,props:{disabled:{type:Boolean},loading:{type:Boolean},title:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,a=e=>{r.loading||r.disabled||i(`click`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ai-scroll-btn`,{"is-loading":e.loading,"is-disabled":e.disabled}]),onClick:a},[e.loading?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):(0,t.renderSlot)(n.$slots,`icon`,{key:1}),(0,t.renderSlot)(n.$slots,`title`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])],2))}}),XOt={class:`ai-loading-ring`},ZOt={fill:`none`,viewBox:`0 0 26 26`},QOt=[`fill`],$Ot={class:`ai-loading-star`},ekt={fill:`none`,viewBox:`0 0 26 26`},tkt=[`fill`],d5=(0,t.defineComponent)($($({},{name:`AiLoading`}),{},{__name:`ai-loading`,props:{size:{default:16},stopLoading:{type:Boolean,default:!1}},setup(e){let n=0,r=n++,i=`ai-loading-ring-${r}`,a=`ai-loading-star-${r}`;return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ai-loading`,{"ai-loading-stopped":e.stopLoading}]),style:(0,t.normalizeStyle)({width:e.size+`px`,height:e.size+`px`})},[(0,t.createElementVNode)(`div`,XOt,[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ZOt,[(0,t.createElementVNode)(`path`,{d:`M24.957 7.79785C25.6279 9.36608 26 11.0926 26 12.9062C26 19.5598 21.0013 25.0441 14.5547 25.8125L14.3154 23.8252C19.7702 23.175 24 18.5361 24 12.9062C24 11.3717 23.6848 9.91092 23.1172 8.58398L24.957 7.79785ZM11.6836 1.98633C6.2292 2.63694 2 7.27669 2 12.9062C2 14.4404 2.31452 15.9009 2.88184 17.2275L1.04199 18.0137C0.371448 16.4458 0 14.7194 0 12.9062C0 6.25306 4.99814 0.768818 11.4443 0L11.6836 1.98633Z`,fill:`url(#${i})`},null,8,QOt),(0,t.createElementVNode)(`defs`,null,[(0,t.createElementVNode)(`linearGradient`,{id:i,gradientUnits:`userSpaceOnUse`,x1:`6.50423`,x2:`25.6886`,y1:`2.96507`,y2:`19.2824`},[...r[0]||=[(0,t.createElementVNode)(`stop`,{"stop-color":`#235DFA`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`0.538462`,"stop-color":`#8A77EC`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#EB8CEC`},null,-1)]])])]))]),(0,t.createElementVNode)(`div`,$Ot,[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ekt,[(0,t.createElementVNode)(`path`,{d:`M13 5.90625C13 5.90625 14.1206 8.77684 15.625 10.2812C17.1294 11.7857 20 12.9062 20 12.9062C20 12.9062 17.1294 14.0268 15.625 15.5312C14.1206 17.0357 13 19.9062 13 19.9062C13 19.9062 11.8794 17.0357 10.375 15.5312C8.87059 14.0268 6 12.9062 6 12.9062C6 12.9062 8.87059 11.7857 10.375 10.2812C11.8794 8.77684 13 5.90625 13 5.90625Z`,fill:`url(#${a})`},null,8,tkt),(0,t.createElementVNode)(`defs`,null,[(0,t.createElementVNode)(`linearGradient`,{id:a,gradientUnits:`userSpaceOnUse`,x1:`6`,x2:`20`,y1:`5.90625`,y2:`19.9062`},[...r[1]||=[(0,t.createElementVNode)(`stop`,{"stop-color":`#235DFA`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`0.538462`,"stop-color":`#8A77EC`},null,-1),(0,t.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#EB8CEC`},null,-1)]])])]))])],6))}}));function nkt(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function f5(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){nkt(a,r,i,o,s,`next`,e)}function s(e){nkt(a,r,i,o,s,`throw`,e)}o(void 0)})}}var rkt=[`src`],p5=(0,t.defineComponent)({__name:`shortcut-btn`,props:{mode:{},shortcut:{}},emits:[`click`],setup(e,{expose:n,emit:r}){let i=e,a=(0,t.shallowRef)(!1),o=r;(0,t.watch)(()=>i.shortcut?.icon,()=>{a.value=!1},{immediate:!0});let s=e=>{o(`click`,e)},l=(0,t.useTemplateRef)(`el`);return n({get $el(){return l.value}}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`el`,ref:l,class:(0,t.normalizeClass)([`ai-shortcut-btn`,{"is-menu-mode":e.mode===`menu`}]),onClick:r[1]||=t=>s(e.shortcut)},[(0,t.renderSlot)(n.$slots,`default`,{},()=>{var n,i,o;return[(n=e.shortcut)!=null&&n.icon?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[typeof e.shortcut.icon==`string`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.shortcut.icon.startsWith(`http`)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(HOt),{key:1,class:`ai-shortcut-btn-icon`})):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,class:`ai-common-icon ai-shortcut-btn-icon`,src:e.shortcut.icon,onError:r[0]||=e=>a.value=!0},null,40,rkt))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)(e.shortcut.icon)},null,2))],64)):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(typeof e.shortcut?.icon==`function`?(i=e.shortcut).icon?.call(i,t.h):e.shortcut.icon),{key:1,class:`ai-shortcut-btn-icon`}))],64)):e.shortcut&&!((o=e.shortcut.components)!=null&&o.length)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(HOt),{key:1,class:`ai-shortcut-btn-icon`})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.shortcut?.alias||e.shortcut?.name),1)]}),(0,t.renderSlot)(n.$slots,`append`)],2))}}),ikt={class:`ai-selection-popover-content`},akt={key:0,class:`shortcut-menu`},okt=(0,t.defineComponent)({__name:`ai-selection`,props:(0,t.mergeModels)({excludeSelectors:{default:()=>[]},maxShortcutCount:{default:3},offset:{default:10},shortcuts:{default:()=>JOt}},{visible:$({type:Boolean},{required:!0}),visibleModifiers:{}}),emits:(0,t.mergeModels)([`selectShortcut`,`selectionChange`],[`update:visible`]),setup(e,{emit:n}){let r=e,i=(0,t.useModel)(e,`visible`),a=n,o=(0,t.useTemplateRef)(`popoverRef`),s=(0,t.useTemplateRef)(`moreMenuRef`),l=(0,t.shallowRef)({x:0,y:0}),u=(0,t.shallowRef)(``),d=(0,t.shallowRef)(null),f=(0,t.shallowRef)(!1),p=e=>{if(e?.shadowRoot instanceof ShadowRoot){try{let t=e.shadowRoot;if(typeof t.getSelection==`function`){let e=t.getSelection();if(e&&!e.isCollapsed&&e.toString().trim())return e}}catch{h();return}try{let t=document.createTreeWalker(e.shadowRoot,NodeFilter.SHOW_ELEMENT,null),n=t.nextNode();for(;n;){if(n instanceof Element){let e=p(n);if(e)return e}n=t.nextNode()}}catch{h()}}},m=function(){var e=f5(function*(){var e,n;if(d.value=window.getSelection(),!d.value){let e=document.activeElement;if(e){let t=p(e);t&&(d.value=t)}}let s=(e=d.value)==null||(e=e.toString())==null?void 0:e.trim();if(!s){h();return}if(r.excludeSelectors.length>0&&(n=d.value)!=null&&n.rangeCount)try{let e=d.value.getRangeAt(0).commonAncestorContainer,t=e.nodeType===Node.TEXT_NODE?e.parentNode:e;for(;t&&t!==document.body;){if(t instanceof Element){for(let e of r.excludeSelectors)if(t.closest(e)){h();return}}t=t.parentNode}}catch{}s!==u.value&&a(`selectionChange`,s),u.value=s;let f=null;try{var m;if((m=d.value)!=null&&m.rangeCount){let e=d.value?.getRangeAt(0);(e?.getClientRects()).length>0&&(f=e.getBoundingClientRect())}}catch{h();return}let g=document.activeElement;if(!f||f.width===0&&f.height===0)if(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)f=g.getBoundingClientRect();else{h();return}i.value=!0,yield(0,t.nextTick)();let _=o.value.getBoundingClientRect(),v=window.innerWidth,y=window.innerHeight,b=f.left+f.width/2-_.width/2;b<8?b=8:b+_.width>v-8&&(b=v-_.width-8);let x,S=f.top,C=y-f.bottom,w=_.height+r.offset;x=S>=w?f.top-_.height-r.offset:C>=w?f.bottom+r.offset:S>=C?Math.max(8,f.top-_.height-r.offset):Math.min(y-_.height-8,f.bottom+r.offset),l.value={x:b,y:x}});return function(){return e.apply(this,arguments)}}(),h=()=>{var e;i.value&&=((e=d.value)==null||e.removeAllRanges(),!1)},g=e=>{h(),a(`selectShortcut`,e,u.value)},_=null,v=e=>{_&&clearTimeout(_),_=window.setTimeout(()=>{m()},e)},y=()=>{v(200)},b=()=>{v(300)},x=e=>{var t;i.value&&(t=o.value)!=null&&t.contains(e.target)||h()},S=e=>{!d.value||!i.value||e.target instanceof HTMLElement&&e.target.contains(d.value?.anchorNode)&&h()},C=()=>{var e;(e=s.value)==null||e.show()};return(0,t.onMounted)(()=>{document.addEventListener(`selectionchange`,b),document.addEventListener(`mouseup`,y),document.addEventListener(`mousedown`,x),document.addEventListener(`scroll`,S,!0),window.addEventListener(`resize`,h),window.addEventListener(`blur`,h)}),(0,t.onUnmounted)(()=>{document.removeEventListener(`selectionchange`,b),document.removeEventListener(`mouseup`,y),document.removeEventListener(`mousedown`,x),document.removeEventListener(`scroll`,S,!0),window.removeEventListener(`resize`,h),window.removeEventListener(`blur`,h)}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[(0,t.createVNode)(t.Transition,{name:`ai-fade`},{default:(0,t.withCtx)(()=>[i.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`popoverRef`,ref:o,class:`ai-selection-popover`,style:(0,t.normalizeStyle)({left:`${l.value.x}px`,top:`${l.value.y}px`,zIndex:(0,t.unref)(VDt),"--selection-z-index":(0,t.unref)(VDt)}),onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,ikt,[(0,t.renderSlot)(n.$slots,`default`,{shortcuts:e.shortcuts},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts.slice(0,e.maxShortcutCount),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.id},[r<e.maxShortcutCount?((0,t.openBlock)(),(0,t.createBlock)(p5,{key:0,shortcut:n,onClick:e=>g(n)},null,8,[`shortcut`,`onClick`])):(0,t.createCommentVNode)(``,!0)],64))),128)),e.shortcuts.length>e.maxShortcutCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[r[3]||=(0,t.createElementVNode)(`div`,{class:`ai-divider`,style:{margin:`0 4px`}},null,-1),(0,t.createVNode)((0,t.unref)(Jl),{ref_key:`moreMenuRef`,ref:s,arrow:!1,interactive:``,offset:[0,6],theme:`ai-chat-box-light light`,trigger:`manual`,onHidden:r[0]||=()=>{f.value=!1},onShow:r[1]||=()=>{f.value=!0}},{content:(0,t.withCtx)(()=>[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,akt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts.slice(e.maxShortcutCount),e=>((0,t.openBlock)(),(0,t.createBlock)(p5,{key:e.id,mode:`menu`,shortcut:e,onClick:t=>g(e)},null,8,[`shortcut`,`onClick`]))),128))])):(0,t.createCommentVNode)(``,!0)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(p5,{style:{width:`28px`},onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l5),{class:`shortcut-btn-more-icon`})]),_:1})]),_:1},512)],64)):(0,t.createCommentVNode)(``,!0)])])],36)):(0,t.createCommentVNode)(``,!0)]),_:3})]))}}),skt=(e,n,r)=>{let i=(0,t.shallowRef)([]),a=function(){var a=f5(function*(){if(!e.value||n.value.length===0)return;yield(0,t.nextTick)();let a=e.value.offsetWidth,o=new Set,s=0;for(let e=0;e<r.items.value.length;e++){var l;let t=n.value[e];if(!t)continue;let i=t.offsetWidth,u=s+i+(o.size>0?r.gap:0),d=r.items.value[e],f=((l=r.moreItemRef)==null||(l=l.value)==null||(l=l.$el)==null?void 0:l.offsetWidth)??0;if(d&&u+r.gap+f<=a)o.add(d),s=u;else break}i.value=Array.from(o)});return function(){return a.apply(this,arguments)}}(),o=null;return(0,t.watch)([n,r.moreItemRef],()=>{(0,t.nextTick)(()=>{a()})}),(0,t.onMounted)(()=>{e.value&&(o=new ResizeObserver(()=>{a()}),o.observe(e.value)),(0,t.nextTick)(()=>{a()})}),(0,t.onScopeDispose)(()=>{o?.disconnect()}),{visibleItems:i,calculateVisibleMenuItems:a}},ckt={class:`shortcut-menu`},lkt=4,ukt=(0,t.defineComponent)({__name:`shortcut-btns`,props:{shortcuts:{}},emits:[`selectShortcut`],setup(e,{emit:n}){let r=()=>document.body,i=e,a=n,o=(0,t.useTemplateRef)(`containerRef`),s=(0,t.shallowRef)([]),l=(0,t.useTemplateRef)(`moreMenuRef`),u=(0,t.useTemplateRef)(`moreBtnRef`),{visibleItems:d}=skt(o,s,{items:(0,t.computed)(()=>i.shortcuts),gap:lkt,moreItemRef:u}),f=(0,t.computed)(()=>i.shortcuts.filter(e=>!d.value.includes(e))),p=(0,t.shallowRef)(!1),m=(e,t)=>{e&&`$el`in e?s.value[t]=e.$el:e&&e instanceof HTMLElement&&(s.value[t]=e)};(0,t.watch)(()=>i.shortcuts,()=>{s.value=Array(i.shortcuts.length).fill(null)},{deep:!0});let h=()=>{p.value=!p.value},g=e=>{p.value=!1,a(`selectShortcut`,e)};return(0,t.watch)(p,e=>{if(e){var t;(t=l.value)==null||t.show()}else{var n;(n=l.value)==null||n.hide()}}),(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`containerRef`,ref:o,class:`shortcut-btns`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.shortcuts,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(p5,{key:e.key||e.id,ref_for:!0,ref:e=>m(e,n),class:(0,t.normalizeClass)([`shortcut-btns-item`,{"shortcut-btns-item-hidden":!(0,t.unref)(d).includes(e)}]),shortcut:e,onClick:t=>g(e)},null,8,[`class`,`shortcut`,`onClick`]))),128)),f.value.length>0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Jl),{key:0,ref_key:`moreMenuRef`,ref:l,"append-to":r,arrow:!1,interactive:``,offset:[0,6],theme:`ai-chat-box-light light`,trigger:`manual`,"z-index":(0,t.unref)(BDt),onHidden:i[0]||=()=>{p.value=!1}},{content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ckt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,e=>((0,t.openBlock)(),(0,t.createBlock)(p5,{key:e.id,mode:`menu`,shortcut:e,onClick:t=>g(e)},null,8,[`shortcut`,`onClick`]))),128))])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(p5,{ref_key:`moreBtnRef`,ref:u,class:`shortcut-btns-item shortcut-btns-more`,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(UOt),{class:`shortcut-btns-more-icon`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`更多`)),1)]),_:1},512)]),_:1},8,[`z-index`])):(0,t.createCommentVNode)(``,!0)],512))}});function dkt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function m5(e,t){if(e==null)return{};var n,r,i=dkt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fkt=[`options`],pkt=[`options`],mkt={class:`shortcut-render`},hkt={class:`shortcut-render-header`},gkt={class:`header-name`},_kt={class:`shortcut-render-content`},vkt={class:`shortcut-render-form-label`},ykt={class:`shortcut-footer`},bkt=(0,t.defineComponent)({__name:`shortcut-render`,props:{alias:{},components:{},description:{},formModel:{},icon:{type:[Function,String,Object]},id:{},key:{},name:{}},emits:[`close`,`submit`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useTemplateRef)(`formRef`),o=(0,t.reactive)({}),s=(0,t.shallowRef)({});(0,t.watchEffect)(()=>{if(r.formModel)for(let e in r.formModel)o[e]=r.formModel[e];for(let e of r?.components??[])e.key&&(o[e.key]=e.default??e.props?.default??e.props?.modelValue)});let l=(e,t)=>{if(e.type===`textarea`)return`span 2`;let n=0;for(let e=0;e<t;e++){var i;n+=((i=r.components)==null||(i=i[e])==null?void 0:i.type)===`textarea`?2:1}return t===(r.components?.length??0)-1&&n%2==0?`span 2`:`auto`},u=e=>$($({},e.formItemProps),{},{property:e.key,label:e.name??e.formItemProps?.label,required:e.fillBack??e.formItemProps?.required}),d=e=>{let n=e?.props??{},{options:r}=n,i=m5(n,fkt),a=e??{},{options:s}=a,l=m5(a,pkt),u=r??s,d=$($($({class:`shortcut-render-form-item_${e.type}`},l),i),{},{modelValue:o[e.key],onChange:t=>{o[e.key]=t},"onUpdate:modelValue":t=>{o[e.key]=t}});switch(e.type){case`text`:case`input`:return(0,t.h)(ns,d);case`textarea`:return(0,t.h)(ns,$($({},d),{},{type:`textarea`}));case`number`:return(0,t.h)(ns,$($({},d),{},{type:`number`}));case`select`:return(0,t.h)(Gs,d,u?.map(e=>(0,t.h)(Gs.Option,$({},e))));case`checkboxGroup`:return(0,t.h)(ls.Group,d,u?.map(e=>(0,t.h)(ls,$({class:`shortcut-render-form-item_checkbox`},e))));case`radioGroup`:return(0,t.h)(kc.Group,d,u?.map(e=>(0,t.h)(kc,$({class:`shortcut-render-form-item_radio`},e))));case`switcher`:return(0,t.h)(dhe,d);default:return null}},f=function(){var e=f5(function*(){var e,t;(yield(e=a.value)==null||(t=e.validate)==null?void 0:t.call(e).catch(()=>!1))&&i(`submit`,$({},o))});return function(){return e.apply(this,arguments)}}(),p=()=>{i(`close`)},m=()=>{i(`close`)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mkt,[(0,t.createElementVNode)(`div`,hkt,[(0,t.createVNode)((0,t.unref)(LOt),{class:`header-icon`}),(0,t.createElementVNode)(`span`,gkt,(0,t.toDisplayString)(e.alias||e.name),1),(0,t.createVNode)((0,t.unref)(u5),{class:`header-close`,onClick:m})]),(0,t.createElementVNode)(`div`,_kt,[(0,t.createVNode)((0,t.unref)(ec),{ref_key:`formRef`,ref:a,class:`shortcut-render-form`,"form-type":`vertical`,model:o,rules:s.value},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.components,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ec).FormItem,(0,t.mergeProps)({key:e.id,ref_for:!0},u(e),{class:`shortcut-render-form-item`,style:{gridColumn:l(e,n)}}),{label:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,vkt,(0,t.toDisplayString)(e.name??e.formItemProps?.label),1)]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(d(e))))]),_:2},1040,[`style`]))),128)),(0,t.createVNode)((0,t.unref)(ec).FormItem,{class:`shortcut-footer-item`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ykt,[(0,t.createVNode)((0,t.unref)(Go),{theme:`primary`,onClick:f},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`提交`)),1)]),_:1}),(0,t.createVNode)((0,t.unref)(Go),{onClick:p},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1})])]),_:1})]),_:1},8,[`model`,`rules`])])]))}}),xkt=typeof navigator<`u`&&`clipboard`in navigator,Skt=e=>{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.left=`-9999px`,t.style.top=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand(`copy`)}catch{return!1}finally{document.body.removeChild(t)}},h5=()=>({copy:function(){var e=f5(function*(e){let t=!1;if(xkt)try{yield navigator.clipboard.writeText(e),t=!0}catch{t=Skt(e)}else t=Skt(e);ic({message:Y8(t?`复制成功`:`复制失败`),theme:t?`success`:`error`})});return function(t){return e.apply(this,arguments)}}()}),Ckt=()=>{let e=(0,t.shallowRef)({column:0,line:0}),n=(0,t.shallowRef)([]);return{commandSelection:e,docSnapshot:n,GetCursorPosition:(t,n)=>{let[,r]=n,[i,a]=r;e.value={column:a,line:i}},GetDocSnapshot:e=>{n.value=e}}},wkt=Symbol(`CONTAINER_SCROLL_TOKEN`),Tkt=(e,n)=>{let r=(0,t.shallowRef)(!1),i=null,a=(0,t.shallowRef)(0),o=(0,t.shallowRef)(!0),s=(0,t.customRef)((e,t)=>{let n,r=!1;return{get(){return e(),r},set(e){if(e===!1){r=!1,n&&clearTimeout(n),t();return}n&&clearTimeout(n),n=setTimeout(()=>{r=e,t()},300)}}});(0,t.provide)(wkt,(0,t.computed)(()=>({autoScrollEnabled:o.value,isScrollBottom:r,scrollBottomHeight:a,debouncedShowScrollBottomBtn:s,toScrollBottom:l,toScrollTop:u})));let l=()=>{var e;o.value=!0,(e=(0,t.toValue)(n))==null||e.scrollIntoView({behavior:`smooth`,block:`end`})},u=()=>{var n;(n=(0,t.toValue)(e))==null||n.scrollTo({top:0,behavior:`smooth`})},d=()=>{let n=(0,t.toValue)(e);if(!n)return;let{scrollHeight:i,scrollTop:o,clientHeight:l}=n,u=i-o-l;a.value=Math.max(0,u),s.value=!r.value&&a.value>100},f=e=>{e.deltaY<0&&(o.value=!1)};return(0,t.onMounted)(()=>{(0,t.watchEffect)(()=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n);!l||!u||(i?.disconnect(),l.removeEventListener(`scroll`,d),l.removeEventListener(`wheel`,f),d(),i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(r.value=!0,a.value=0,o.value=!0,s.value=!1):(r.value=!1,d())})}),i.observe(u),l.addEventListener(`scroll`,d,{passive:!0}),l.addEventListener(`wheel`,f,{passive:!0}))})}),(0,t.onScopeDispose)(()=>{i?.disconnect();let n=(0,t.toValue)(e);n&&(n.removeEventListener(`scroll`,d),n.removeEventListener(`wheel`,f))}),{autoScrollEnabled:o,isScrollBottom:r,scrollBottomHeight:a,toScrollBottom:l,toScrollTop:u,debouncedShowScrollBottomBtn:s}},Ekt=()=>(0,t.inject)(wkt,void 0),Dkt=Symbol(`CUSTOM_TAB_TOKEN`),Okt=`execution`;function kkt(e){let n={label:Y8(`执行情况`),name:Okt},r=(0,t.shallowRef)([n]),i=(0,t.ref)(n),a=(0,t.shallowRef)(!0),o=e=>{r.value.find(t=>t.name===e.name)||(r.value=[...r.value,e]),a.value=!1,(0,t.nextTick)(()=>{l(e)})},s=e=>{r.value=r.value.filter(t=>t.name!==e)},l=t=>{var r;i.value=t??n,(r=e.onTabChange)==null||r.call(e,t)},u=()=>{r.value=[n],i.value=n,a.value=!0};return(0,t.provide)(Dkt,{tabs:r,selectedTab:i,addCustomTab:o,removeCustomTab:s,selectCustomTab:l,resetCustomTab:u}),{tabs:r,selectedTab:i,isCollapse:a,addCustomTab:o,removeCustomTab:s,selectCustomTab:l,resetCustomTab:u}}var Akt=()=>(0,t.inject)(Dkt),g5=(()=>{if(typeof document>`u`)return null;let e=document.documentElement;return typeof e.requestFullscreen==`function`?{request:`requestFullscreen`,exit:`exitFullscreen`,element:`fullscreenElement`,change:`fullscreenchange`}:typeof e.webkitRequestFullscreen==`function`?{request:`webkitRequestFullscreen`,exit:`webkitExitFullscreen`,element:`webkitFullscreenElement`,change:`webkitfullscreenchange`}:null})(),jkt=e=>{let n=!!g5,r=(0,t.shallowRef)(!1),i=()=>(0,t.unref)(e)??(typeof document>`u`?null:document.documentElement),a=()=>g5?document[g5.element]??null:null,o=()=>{let n=a(),i=(0,t.unref)(e);r.value=i?n===i:!!n},s=function(){var e=f5(function*(){if(!g5||r.value)return;let e=i();try{var t;yield e==null||(t=e[g5.request])==null?void 0:t.call(e)}catch{}});return function(){return e.apply(this,arguments)}}(),l=function(){var e=f5(function*(){if(!(!g5||!a()))try{var e;yield(e=document)[g5.exit]?.call(e)}catch{}});return function(){return e.apply(this,arguments)}}();return g5&&(document.addEventListener(g5.change,o),(0,t.onScopeDispose)(()=>{document.removeEventListener(g5.change,o)})),{isSupported:n,isFullScreen:(0,t.readonly)(r),enter:s,exit:l,toggle:()=>r.value?l():s()}},Mkt=Symbol(`GLOBAL_CONFIG_TOKEN`),Nkt=e=>((0,t.provide)(Mkt,e),{size:e.size,supportUpload:e.supportUpload}),Pkt=()=>(0,t.inject)(Mkt,void 0),_5=e=>{let n=(0,t.shallowRef)(0);(0,t.onMounted)(()=>{window.addEventListener(`keydown`,a,!0)}),(0,t.onScopeDispose)(()=>{window.removeEventListener(`keydown`,a,!0)});let r=t=>{var n;(n=e.onSelect)==null||n.call(e,t)},i=()=>{(0,t.nextTick)(()=>{let t=e.menuRef.value?.querySelector(`.is-active`);t&&t.scrollIntoView({block:`nearest`})})},a=t=>{var a,o;if((a=e.menuRef.value)!=null&&a.offsetParent&&(o=e.items.value)!=null&&o.length){if(t.key===`ArrowUp`)t.preventDefault(),t.stopPropagation(),n.value=(n.value-1+e.items.value?.length)%e.items.value?.length,i();else if(t.key===`ArrowDown`)t.preventDefault(),t.stopPropagation(),n.value=(n.value+1)%e.items.value?.length,i();else if(t.key===`Enter`||t.key===`NumpadEnter`){t.preventDefault(),t.stopPropagation();let i=e.items.value?.[n.value];i&&r(i)}}};return{activeIndex:n}},Fkt={toolCall(e){let{toolCalls:t}=e;return t!=null&&t.length?t.flatMap(e=>[e.function.name,e.function.mcpName,e.function.description,e.function.arguments,e.id].filter(Boolean)):[]},[Q8.FlowAgent](e){let t=e.content;return t?t.flatMap(e=>[e.task_name,...Object.values(e.nodes??{}).map(e=>e.name)]).filter(Boolean):[]}},Ikt=e=>{var t;if(e.role===$8.Assistant&&(t=e.toolCalls)!=null&&t.length)return`toolCall`;if(e.role===$8.Activity)return e.activityType},Lkt=e=>{var t;return e.role===$8.Assistant&&!!((t=e.toolCalls)!=null&&t.length)||e.role===$8.Activity&&e.activityType===Q8.FlowAgent},Rkt=(e,t)=>{let n=Ikt(e);if(!n)return!0;let r=Fkt[n];return r?r(e).some(e=>e.toLowerCase().includes(t)):!0},zkt=new Set([X8.PENDING,X8.DRAFT]),Bkt=e=>{for(let n=e.length-1;n>=0;n--){var t;let r=e[n];if(r.role!==$8.Interrupt)continue;let i=r.content;if((i==null||(t=i.outcome)==null?void 0:t.type)!==`interrupt`)continue;let a=i.outcome.interrupts.find(e=>e.reason===Z8.UserQuestion);if(a)return a}},Vkt=e=>e.reduce((e,t)=>{var n;if(t.role!==$8.Interrupt)return e;let r=t.content;return(r==null||(n=r.outcome)==null?void 0:n.type)===`interrupt`?e+r.outcome.interrupts.filter(e=>{var t;return e.reason===Z8.AIDevToolApproval&&zkt.has((t=e.metadata)==null||(t=t.ticket)==null?void 0:t.status)}).length:e},0),Hkt=e=>{let n=(0,t.ref)([]),r=(0,t.shallowRef)(!1);(0,t.watchEffect)(()=>{let r=[],i=[];for(let t of e.messages.value){if(t!=null&&t.uid||(t.uid=q8()),t.role===$8.User){r.length>0&&(i.push({messages:r,type:$8.Assistant,isHover:!1,checked:!1,uid:q8(),pause:r?.some(e=>{var t;return(t=e.property)==null||(t=t.extra)==null?void 0:t.pause})??!1}),r=[]),i.push({messages:[t],type:$8.User,isHover:!1,checked:!1,uid:q8()});continue}if(t.role===$8.Tool){let n=e.messages.value.find(e=>e.role===$8.Assistant&&e.toolCalls?.some(e=>e.id===t.toolCallId));if(n){let e=n.toolCalls?.find(e=>e.id===t.toolCallId);e&&(e.toolMessage=t),n.status=t.error?e5.Error:n.status||e5.Complete;continue}}r.push(t)}r.length>0&&i.push({messages:r,type:$8.Assistant,isHover:!1,checked:!1,uid:q8(),pause:r?.some(e=>{var t;return(t=e.property)==null||(t=t.extra)==null?void 0:t.pause})??!1}),e.messages.value.at(-1)?.role===$8.User&&(0,t.toValue)(e.renderMode)!==n5.Share&&i.push({messages:[{role:$8.Loading,content:``,status:e5.Pending,messageId:``,id:`__loading__`,uid:q8()}],type:$8.Loading,isHover:!1,checked:!1,uid:q8()}),n.value=i});let i=(0,t.computed)(()=>{var t;let r=(t=e.keyword)==null||(t=t.value)==null?void 0:t.trim().toLowerCase(),i=e=>Lkt(e)&&(!r||Rkt(e,r));return n.value.filter((e,t)=>{if(e.messages.some(i)){let r=n.value.at(t-1);if(r){let t=r.messages.filter(e=>e.role===$8.User);if(t!=null&&t.length)for(let n of t){let t=n.content;if(typeof t==`string`){e.userMessageTitle=t;break}else if(Array.isArray(t)&&t.some(e=>e.type===Q8.Text)){e.userMessageTitle=t.filter(e=>e.type===Q8.Text)?.join(`
3457
3457
  `);break}}}return e.userMessageTitle||=Date.now(),!0}return!1}).map(e=>$($({},e),{},{isHover:!1,messages:e.messages.filter(i)}))}),a=(0,t.computed)(()=>Bkt(e.messages.value)),o=(0,t.computed)(()=>Vkt(e.messages.value)),s=(0,t.computed)(()=>o.value?Y8(`当前会话有 {count} 个待审批单,如需继续,请先取消审批`).replace(`{count}`,String(o.value)):``),l=(0,t.computed)(()=>n.value?.filter(e=>e.type===$8.User).every(e=>e.checked));return(0,t.watch)(e.selectedUserMessages,e=>{if(n.value.length)for(let[t,r]of n.value.entries()){if(r.type===$8.Assistant)continue;let i=e?.some(e=>r.messages.some(t=>e.id===t.id))??!1;if(r.checked=i,r.type===$8.User){let e=n.value.at(t+1);e&&(e.checked=i)}}},{immediate:!0,flush:`post`}),{messageGroups:n,executionGroups:i,activeUserQuestionInterrupt:a,pendingApprovalCount:o,pendingApprovalTipText:s,isShareMode:r,isAllSelected:l,onToggleShareAll:t=>{e.selectedUserMessages.value=t?n.value?.filter(e=>e.type===$8.User).flatMap(e=>e.messages):[]},onCancelShare:()=>{e.selectedUserMessages.value=[],r.value=!1},onConfirmShare:()=>n.value?.filter(e=>e.checked&&e.type===$8.User).flatMap(e=>e.messages)??[]}},Ukt=e=>{if(!e)return null;if(!(e instanceof HTMLElement)){let t=`parentElement`in e?e.parentElement:null;return t?Ukt(t):document.body}if(e.scrollHeight>e.clientHeight){let t=window.getComputedStyle(e).overflowY;if(t===`scroll`||t===`auto`||t===`overlay`)return e}let t=e.parentElement;return t?Ukt(t):document.body},Wkt=Symbol(`KEYWORD_TOKEN`),Gkt=Symbol(`RENDER_MODE_TOKEN`),Kkt=Symbol(`COMMON_TIPPY_OPTIONS_TOKEN`),qkt=()=>{let e=(0,t.shallowRef)(``);return(0,t.provide)(Wkt,(0,t.computed)(()=>e.value)),{keyword:e}},Jkt=({renderMode:e})=>((0,t.provide)(Gkt,(0,t.computed)(()=>(0,t.toValue)(e))),{renderMode:e}),Ykt=()=>(0,t.inject)(Gkt,(0,t.computed)(()=>n5.Chat)),Xkt=e=>{(0,t.provide)(Kkt,e.tippyOptions)},Zkt=()=>(0,t.inject)(Wkt,void 0),v5=()=>(0,t.inject)(Kkt,void 0),Qkt=e=>{let n=Zkt();return{keywordMatched:(0,t.computed)(()=>{var t;let r=n==null||(t=n.value)==null?void 0:t.trim().toLowerCase();return r?e().filter(Boolean).some(e=>e?.toLowerCase().includes(r)):null}),keyword:n}},$kt=300,y5={mounted(e,t){let n,r=!1,i=e=>e.scrollWidth>e.clientWidth,a=a=>{var o;if(a?.stopPropagation(),!((o=t.value)!=null&&o.disabled)&&i(e)&&(r=!0,!n)){let a=$({},t.value??{}),o=a.text;delete a.text,delete a.disabled,n=fu(e,Object.assign({},{trigger:`mouseenter`,delay:[$kt,0],content:o||a.content||e.innerText,placement:a.placement||`auto`,theme:a.theme||`ai-chat-box`,onShow:()=>{if(!i(e))return!1},onHidden:()=>{n?.hide(),n?.destroy(),n=void 0}},a)),setTimeout(()=>{n&&r&&i(e)&&!n.state.isShown&&(n.clearDelayTimeouts(),n.show())},$kt+16)}},o=()=>{r=!1},s=new IntersectionObserver(t=>{for(let n of t){if(n.isIntersecting){e.addEventListener(`mouseenter`,a),e.addEventListener(`mouseleave`,o),e.mouseEnterFunc=a,e.mouseLeaveFunc=o;return}e.removeEventListener(`mouseenter`,a),e.removeEventListener(`mouseleave`,o)}},{threshold:.1});s.observe(e),e.unObserverFunc=()=>{s.unobserve(e)}},beforeUnmount(e){var t;e.removeEventListener(`mouseenter`,e.mouseEnterFunc),e.removeEventListener(`mouseleave`,e.mouseLeaveFunc),(t=e.unObserverFunc)==null||t.call(e),e.mouseEnterFunc=void 0,e.mouseLeaveFunc=void 0,e.unObserverFunc=void 0}},eAt={key:1},b5=(0,t.defineComponent)({__name:`tool-btn`,props:{description:{},id:{},name:{},active:{type:Boolean},disabled:{type:Boolean},tippyOptions:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>$($({content:r.description,theme:`ai-chat-box`},r.tippyOptions||{}),{},{onShow:()=>{if(r.disabled)return!1}})),o=e=>{r.disabled||i(`click`,r,e)};return(n,r)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ai-tool-btn`,{"is-active":e.active,"is-disabled":e.disabled}]),style:(0,t.normalizeStyle)({"--ai-tool-btn-active-color":e.id===`like`||e.id===`activeLike`?`#3a84ff`:`#E71818`}),onClick:o},[(0,t.renderSlot)(n.$slots,`default`,{},()=>[e.id&&e.id in(0,t.unref)(qOt)?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(qOt)[e.id]),{key:0})):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,eAt,(0,t.toDisplayString)(e.name),1))])],6)),[[(0,t.unref)(Xl),a.value]])}}),tAt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nAt=/[\0-\x1F\x7F-\x9F]/,rAt=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,x5=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,iAt=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,aAt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,oAt=U8({Any:()=>tAt,Cc:()=>nAt,Cf:()=>rAt,P:()=>x5,S:()=>iAt,Z:()=>aAt});function sAt(e){let t={};e||={},t.src_Any=tAt.source,t.src_Cc=nAt.source,t.src_Z=aAt.source,t.src_P=x5.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function S5(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function C5(e){return Object.prototype.toString.call(e)}function cAt(e){return C5(e)===`[object String]`}function lAt(e){return C5(e)===`[object Object]`}function uAt(e){return C5(e)===`[object RegExp]`}function dAt(e){return C5(e)===`[object Function]`}function fAt(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var pAt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mAt(e){return Object.keys(e||{}).reduce(function(e,t){return e||pAt.hasOwnProperty(t)},!1)}var hAt={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},gAt=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,_At=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function vAt(e){e.__index__=-1,e.__text_cache__=``}function yAt(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function bAt(){return function(e,t){t.normalize(e)}}function w5(e){let t=e.re=sAt(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(gAt),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,lAt(n)){uAt(n.validate)?r.validate=yAt(n.validate):dAt(n.validate)?r.validate=n.validate:a(t,n),dAt(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=bAt();return}if(cAt(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:bAt()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(fAt).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),vAt(e)}function xAt(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function T5(e,t){let n=new xAt(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function E5(e,t){if(!(this instanceof E5))return new E5(e,t);t||mAt(e)&&(t=e,e={}),this.__opts__=S5({},pAt,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=S5({},hAt,e),this.__compiled__={},this.__tlds__=_At,this.__tlds_replaced__=!1,this.re={},w5(this)}E5.prototype.add=function(e,t){return this.__schemas__[e]=t,w5(this),this},E5.prototype.set=function(e){return this.__opts__=S5(this.__opts__,e),this},E5.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,l,u;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__=``,this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&(u=e.indexOf(`@`),u>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},E5.prototype.pretest=function(e){return this.re.pretest.test(e)},E5.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},E5.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(T5(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(T5(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},E5.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,T5(this,0)):null},E5.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),w5(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,w5(this),this)},E5.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},E5.prototype.onCompile=function(){};var SAt={};function CAt(e){let t=SAt[e];if(t)return t;t=SAt[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function D5(e,t){typeof t!=`string`&&(t=D5.defaultChars);let n=CAt(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;e<128?t+=`��`:t+=String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;e<2048||e>=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}D5.defaultChars=`;/?:@&=+$,#`,D5.componentChars=``;var wAt={};function TAt(e){let t=wAt[e];if(t)return t;t=wAt[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function O5(e,t,n){typeof t!=`string`&&(n=t,t=O5.defaultChars),n===void 0&&(n=!0);let r=TAt(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}O5.defaultChars=`;/?:@&=+$,-_.!~*'()#`,O5.componentChars=`-_.!~*'()`;function k5(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function A5(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var EAt=/^([a-z0-9.+-]+:)/i,DAt=/:[0-9]*$/,OAt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kAt=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
3458
3458
  `,` `],AAt=[`/`,`?`,`#`],jAt=255,MAt=/^[+a-z0-9A-Z_-]{0,63}$/,NAt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,PAt={javascript:!0,"javascript:":!0},FAt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function j5(e,t){if(e&&e instanceof A5)return e;let n=new A5;return n.parse(e,t),n}A5.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=OAt.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=EAt.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&PAt[o])&&(a=a.substr(2),this.slashes=!0)),!PAt[o]&&(i||o&&!FAt[o])){let e=-1;for(let t=0;t<AAt.length;t++)r=a.indexOf(AAt[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<kAt.length;t++)r=a.indexOf(kAt[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(MAt)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(MAt)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(NAt);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>jAt&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf(`?`);return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),FAt[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},A5.prototype.parseHost=function(e){let t=DAt.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var IAt=U8({decode:()=>D5,encode:()=>O5,format:()=>k5,parse:()=>j5}),M5=2147483647,N5=36,P5=1,F5=26,LAt=38,RAt=700,zAt=72,BAt=128,VAt=`-`,HAt=/^xn--/,UAt=/[^\0-\x7F]/,WAt=/[\x2E\u3002\uFF0E\uFF61]/g,GAt={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},I5=N5-P5,L5=Math.floor,R5=String.fromCharCode;function z5(e){throw RangeError(GAt[e])}function KAt(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function qAt(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(WAt,`.`);let i=KAt(e.split(`.`),t).join(`.`);return r+i}function JAt(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var YAt=e=>String.fromCodePoint(...e),XAt=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:N5},ZAt=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},QAt=function(e,t,n){let r=0;for(e=n?L5(e/RAt):e>>1,e+=L5(e/t);e>I5*F5>>1;r+=N5)e=L5(e/I5);return L5(r+(I5+1)*e/(e+LAt))},$At=function(e){let t=[],n=e.length,r=0,i=BAt,a=zAt,o=e.lastIndexOf(VAt);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&z5(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=N5;;i+=N5){s>=n&&z5(`invalid-input`);let o=XAt(e.charCodeAt(s++));o>=N5&&z5(`invalid-input`),o>L5((M5-r)/t)&&z5(`overflow`),r+=o*t;let l=i<=a?P5:i>=a+F5?F5:i-a;if(o<l)break;let u=N5-l;t>L5(M5/u)&&z5(`overflow`),t*=u}let l=t.length+1;a=QAt(r-o,l,o==0),L5(r/l)>M5-i&&z5(`overflow`),i+=L5(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},ejt=function(e){let t=[];e=JAt(e);let n=e.length,r=BAt,i=0,a=zAt;for(let n of e)n<128&&t.push(R5(n));let o=t.length,s=o;for(o&&t.push(VAt);s<n;){let n=M5;for(let t of e)t>=r&&t<n&&(n=t);let l=s+1;n-r>L5((M5-i)/l)&&z5(`overflow`),i+=(n-r)*l,r=n;for(let n of e)if(n<r&&++i>M5&&z5(`overflow`),n===r){let e=i;for(let n=N5;;n+=N5){let r=n<=a?P5:n>=a+F5?F5:n-a;if(e<r)break;let i=e-r,o=N5-r;t.push(R5(ZAt(r+i%o,0))),e=L5(i/o)}t.push(R5(ZAt(e,0))),a=QAt(i,l,s===o),i=0,++s}++i,++r}return t.join(``)},tjt={version:`2.3.1`,ucs2:{decode:JAt,encode:YAt},decode:$At,encode:ejt,toASCII:function(e){return qAt(e,function(e){return UAt.test(e)?`xn--`+ejt(e):e})},toUnicode:function(e){return qAt(e,function(e){return HAt.test(e)?$At(e.slice(4).toLowerCase()):e})}},njt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rjt(e){return e>=55296&&e<=57343||e>1114111?65533:njt.get(e)??e}function ijt(e){let t=atob(e),n=t.length&-2,r=new Uint16Array(n/2);for(let e=0,i=0;e<n;e+=2){let n=t.charCodeAt(e),a=t.charCodeAt(e+1);r[i++]=n|a<<8}return r}var ajt=ijt(`QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhb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CH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(B5||={});var V5;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(V5||={});var ojt=32;function H5(e){return e>=V5.ZERO&&e<=V5.NINE}function sjt(e){return e>=V5.UPPER_A&&e<=V5.UPPER_F||e>=V5.LOWER_A&&e<=V5.LOWER_F}function cjt(e){return e>=V5.UPPER_A&&e<=V5.UPPER_Z||e>=V5.LOWER_A&&e<=V5.LOWER_Z||H5(e)}function ljt(e){return e===V5.EQUALS||cjt(e)}var U5;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(U5||={});var W5;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(W5||={});var ujt=class{constructor(e,t,n){a5(this,`decodeTree`,void 0),a5(this,`emitCodePoint`,void 0),a5(this,`errors`,void 0),a5(this,`state`,U5.EntityStart),a5(this,`consumed`,1),a5(this,`result`,0),a5(this,`treeIndex`,0),a5(this,`excess`,1),a5(this,`decodeMode`,W5.Strict),a5(this,`runConsumed`,0),this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=U5.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case U5.EntityStart:return e.charCodeAt(t)===V5.NUM?(this.state=U5.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=U5.NamedEntity,this.stateNamedEntity(e,t));case U5.NumericStart:return this.stateNumericStart(e,t);case U5.NumericDecimal:return this.stateNumericDecimal(e,t);case U5.NumericHex:return this.stateNumericHex(e,t);case U5.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|ojt)===V5.LOWER_X?(this.state=U5.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=U5.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(H5(n)||sjt(n)){let e=n<=V5.NINE?n-V5.ZERO:(n|ojt)-V5.LOWER_A+10;this.result=this.result*16+e,this.consumed++,t++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(H5(n))this.result=this.result*10+(n-V5.ZERO),this.consumed++,t++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(e,t){if(this.consumed<=t){var n;return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0}if(e===V5.SEMI)this.consumed+=1;else if(this.decodeMode===W5.Strict)return 0;return this.emitCodePoint(rjt(this.result),this.consumed),this.errors&&(e!==V5.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&B5.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(r&B5.FLAG13)!==0){let a=(r&B5.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let n=r&B5.JUMP_TABLE;if(e.charCodeAt(t)!==n)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],a=r%2==0?i&255:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),r=n[this.treeIndex],i=(r&B5.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===V5.SEMI&&i!==0&&(r&B5.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=fjt(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===W5.Attribute&&(i===0||ljt(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&B5.VALUE_LENGTH)>>14,i!==0){if(a===V5.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==W5.Strict&&(r&B5.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&B5.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~(B5.VALUE_LENGTH|B5.FLAG13):r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case U5.NamedEntity:return this.result!==0&&(this.decodeMode!==W5.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case U5.NumericDecimal:return this.emitNumericEntity(0,2);case U5.NumericHex:return this.emitNumericEntity(0,3);case U5.NumericStart:var e;return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case U5.EntityStart:return 0}}};function djt(e){let t=``,n=new ujt(e,e=>t+=String.fromCodePoint(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function fjt(e,t,n,r){let i=(t&B5.BRANCH_LENGTH)>>7,a=t&B5.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=i+1>>1,s=0,l=i-1;for(;s<=l;){let t=s+l>>>1,i=e[n+(t>>1)]>>(t&1)*8&255;if(i<r)s=t+1;else if(i>r)l=t-1;else return e[n+o+t]}return-1}var pjt=djt(ajt);function mjt(e,t=W5.Legacy){return pjt(e,t)}var hjt=U8({arrayReplaceAt:()=>vjt,assign:()=>K5,escapeHtml:()=>X5,escapeRE:()=>Ajt,fromCodePoint:()=>q5,has:()=>yjt,isMdAsciiPunct:()=>Z5,isPunctChar:()=>Q5,isSpace:()=>$5,isString:()=>G5,isValidEntityCode:()=>J5,isWhiteSpace:()=>e7,lib:()=>jjt,normalizeReference:()=>t7,unescapeAll:()=>Y5,unescapeMd:()=>wjt});function gjt(e){return Object.prototype.toString.call(e)}function G5(e){return gjt(e)===`[object String]`}var _jt=Object.prototype.hasOwnProperty;function vjt(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function K5(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function q5(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function yjt(e,t){return _jt.call(e,t)}function J5(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}var bjt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,xjt=RegExp(bjt.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),Sjt=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Cjt(e,t){if(t.charCodeAt(0)===35&&Sjt.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return J5(n)?q5(n):e}let n=mjt(e);return n===e?e:n}function Y5(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(xjt,function(e,t,n){return t||Cjt(e,n)})}function wjt(e){return e.indexOf(`\\`)<0?e:e.replace(bjt,`$1`)}var Tjt=/[&<>"]/,Ejt=/[&<>"]/g,Djt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`};function X5(e){return Tjt.test(e)?e.replace(Ejt,Ojt):e}function Ojt(e){return Djt[e]}var kjt=/[.?*+^$[\]\\(){}|-]/g;function Ajt(e){return e.replace(kjt,`\\$&`)}function Z5(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Q5(e){return x5.test(e)||iAt.test(e)}function $5(e){switch(e){case 9:case 32:return!0}return!1}function e7(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function t7(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}var jjt={mdurl:IAt,ucmicro:oAt};function Mjt(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Y5(e.slice(t+1,i)),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=Y5(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function Njt(e,t,n){let r,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,i=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){r=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)i++;else if(n)return e.pos=l,-1}}let u=-1;return r&&(u=e.pos),e.pos=l,u}function Pjt(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Y5(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Y5(e.slice(t,a)),o}var Fjt=U8({parseLinkDestination:()=>Mjt,parseLinkLabel:()=>Njt,parseLinkTitle:()=>Pjt});function n7(){this.__rules__=[],this.__cache__=null}n7.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},n7.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},n7.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},n7.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},n7.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},n7.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},n7.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},n7.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},n7.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},n7.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function r7(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}r7.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},r7.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r7.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r7.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r7.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function i7(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if($5(s)){n++,s===9?r+=4-r%4:r++;continue}else o=!0;(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i7.prototype.push=function(e,t,n){let r=new r7(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},i7.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i7.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i7.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&$5(this.src.charCodeAt(e));e++);return e},i7.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!$5(this.src.charCodeAt(--e)))return e+1;return e},i7.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i7.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i7.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],l=s,u;for(u=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];l<u&&e<n;){let t=this.src.charCodeAt(l);if($5(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(l-s<this.tShift[o])e++;else break;l++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(l,u):i[a]=this.src.slice(l,u)}return i.join(``)},i7.prototype.Token=r7;var Ijt=65536;function a7(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Ljt(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Rjt(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!$5(s)||o===45&&$5(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!$5(t))return!1;a++}let l=a7(e,t+1),u=l.split(`|`),d=[];for(let e=0;e<u.length;e++){let t=u[e].trim();if(!t){if(e===0||e===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?d.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?d.push(`left`):d.push(``)}if(l=a7(e,t).trim(),l.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;u=Ljt(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop();let f=u.length;if(f===0||f!==d.length)return!1;if(r)return!0;let p=e.parentType;e.parentType=`table`;let m=e.md.block.ruler.getRules(`blockquote`),h=e.push(`table_open`,`table`,1),g=[t,0];h.map=g;let _=e.push(`thead_open`,`thead`,1);_.map=[t,t+1];let v=e.push(`tr_open`,`tr`,1);v.map=[t,t+1];for(let t=0;t<u.length;t++){let n=e.push(`th_open`,`th`,1);d[t]&&(n.attrs=[[`style`,`text-align:`+d[t]]]);let r=e.push(`inline`,``,0);r.content=u[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let y,b=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=m.length;t<a;t++)if(m[t](e,i,n,!0)){r=!0;break}if(r||(l=a7(e,i).trim(),!l)||e.sCount[i]-e.blkIndent>=4||(u=Ljt(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop(),b+=f-u.length,b>Ijt))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=y=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<f;t++){let n=e.push(`td_open`,`td`,1);d[t]&&(n.attrs=[[`style`,`text-align:`+d[t]]]);let r=e.push(`inline`,``,0);r.content=u[t]?u[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return y&&(e.push(`tbody_close`,`tbody`,-1),y[1]=i),e.push(`table_close`,`table`,-1),g[1]=i,e.parentType=p,e.line=i,!0}function zjt(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
3459
3459
  `,a.map=[t,e.line],!0}function Bjt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;let u=e.src.slice(s,i),d=e.src.slice(i,a);if(o===96&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=t,p=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],i<a&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[f]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<l)&&(i=e.skipSpaces(i),!(i<a)))){p=!0;break}l=e.sCount[t],e.line=f+ +!!p;let m=e.push(`fence`,`code`,0);return m.info=d,m.content=e.getLines(t+1,f,l,!0),m.markup=u,m.map=[t,e.line],!0}function Vjt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],l=[],u=[],d=[],f=e.md.block.ruler.getRules(`blockquote`),p=e.parentType;e.parentType=`blockquote`;let m=!1,h;for(h=t;h<n;h++){let t=e.sCount[h]<e.blkIndent;if(i=e.bMarks[h]+e.tShift[h],a=e.eMarks[h],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[h]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[h]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[h]),e.bMarks[h]=i;i<a;){let t=e.src.charCodeAt(i);if($5(t))t===9?o+=4-(o+e.bsCount[h]+ +!!r)%4:o++;else break;i++}m=i>=a,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+ +!!n,u.push(e.sCount[h]),e.sCount[h]=o-t,d.push(e.tShift[h]),e.tShift[h]=i-e.bMarks[h];continue}if(m)break;let r=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,h,n,!0)){r=!0;break}if(r){e.lineMax=h,e.blkIndent!==0&&(s.push(e.bMarks[h]),l.push(e.bsCount[h]),d.push(e.tShift[h]),u.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),l.push(e.bsCount[h]),d.push(e.tShift[h]),u.push(e.sCount[h]),e.sCount[h]=-1}let g=e.blkIndent;e.blkIndent=0;let _=e.push(`blockquote_open`,`blockquote`,1);_.markup=`>`;let v=[t,0];_.map=v,e.md.block.tokenize(e,t,h);let y=e.push(`blockquote_close`,`blockquote`,-1);y.markup=`>`,e.lineMax=o,e.parentType=p,v[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=d[n],e.sCount[n+t]=u[n],e.bsCount[n+t]=l[n];return e.blkIndent=g,!0}function Hjt(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!$5(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let l=e.push(`hr`,`hr`,0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Ujt(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!$5(e.src.charCodeAt(r))?-1:r}function Wjt(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!$5(a))?-1:i}function Gjt(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Kjt(e,t,n,r){let i,a,o,s,l=t,u=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let d=!1;r&&e.parentType===`paragraph`&&e.sCount[l]>=e.blkIndent&&(d=!0);let f,p,m;if((m=Wjt(e,l))>=0){if(f=!0,o=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(o,m-1)),d&&p!==1)return!1}else if((m=Ujt(e,l))>=0)f=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(r)return!0;let h=e.src.charCodeAt(m-1),g=e.tokens.length;f?(s=e.push(`ordered_list_open`,`ol`,1),p!==1&&(s.attrs=[[`start`,p]])):s=e.push(`bullet_list_open`,`ul`,1);let _=[l,0];s.map=_,s.markup=String.fromCharCode(h);let v=!1,y=e.md.block.ruler.getRules(`list`),b=e.parentType;for(e.parentType=`list`;l<n;){a=m,i=e.eMarks[l];let t=e.sCount[l]+m-(e.bMarks[l]+e.tShift[l]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[l])%4;else if(t===32)r++;else break;a++}let d=a,p;p=d>=i?1:r-t,p>4&&(p=1);let g=t+p;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(h);let _=[l,0];s.map=_,f&&(s.info=e.src.slice(o,m-1));let b=e.tight,x=e.tShift[l],S=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=g,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||v)&&(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=x,e.sCount[l]=S,e.tight=b,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(h),l=e.line,_[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let w=!1;for(let t=0,r=y.length;t<r;t++)if(y[t](e,l,n,!0)){w=!0;break}if(w)break;if(f){if(m=Wjt(e,l),m<0)break;o=e.bMarks[l]+e.tShift[l]}else if(m=Ujt(e,l),m<0)break;if(h!==e.src.charCodeAt(m-1))break}return s=f?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(h),_[1]=l,e.line=l,e.parentType=b,u&&Gjt(e,g),!0}function qjt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let l=e.src.slice(i,a+1);a=l.length;let u=-1;for(i=1;i<a;i++){let e=l.charCodeAt(i);if(e===91)return!1;if(e===93){u=i;break}else if(e===10){let e=s(o);e!==null&&(l+=e,a=l.length,o++)}else if(e===92&&(i++,i<a&&l.charCodeAt(i)===10)){let e=s(o);e!==null&&(l+=e,a=l.length,o++)}}if(u<0||l.charCodeAt(u+1)!==58)return!1;for(i=u+2;i<a;i++){let e=l.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(l+=e,a=l.length,o++)}else if(!$5(e))break}let d=e.md.helpers.parseLinkDestination(l,i,a);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;i=d.pos;let p=i,m=o,h=i;for(;i<a;i++){let e=l.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(l+=e,a=l.length,o++)}else if(!$5(e))break}let g=e.md.helpers.parseLinkTitle(l,i,a);for(;g.can_continue;){let t=s(o);if(t===null)break;l+=t,i=a,a=l.length,o++,g=e.md.helpers.parseLinkTitle(l,i,a,g)}let _;for(i<a&&h!==i&&g.ok?(_=g.str,i=g.pos):(_=``,i=p,o=m);i<a&&$5(l.charCodeAt(i));)i++;if(i<a&&l.charCodeAt(i)!==10&&_)for(_=``,i=p,o=m;i<a&&$5(l.charCodeAt(i));)i++;if(i<a&&l.charCodeAt(i)!==10)return!1;let v=t7(l.slice(1,u));return v?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[v]===void 0&&(e.env.references[v]={title:_,href:f}),e.line=o,!0):!1}var Jjt=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Yjt=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Xjt=RegExp(`^(?:`+Yjt+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Zjt=RegExp(`^(?:`+Yjt+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),o7=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Jjt.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Zjt.source+`\\s*$`),/^$/,!1]];function Qjt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<o7.length&&!o7[s][0].test(o);s++);if(s===o7.length)return!1;if(r)return o7[s][2];let l=t+1;if(!o7[s][1].test(o)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],o=e.src.slice(i,a),o7[s][1].test(o)){o.length!==0&&l++;break}}e.line=l;let u=e.push(`html_block`,``,0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0}function $jt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!$5(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let l=e.skipCharsBack(a,35,i);l>i&&$5(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let u=e.push(`heading_open`,`h`+String(s),1);u.markup=`########`.slice(0,s),u.map=[t,e.line];let d=e.push(`inline`,``,0);d.content=e.src.slice(i,a).trim(),d.map=[t,e.line],d.children=[];let f=e.push(`heading_close`,`h`+String(s),-1);return f.markup=`########`.slice(0,s),!0}function eMt(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;let l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let u=e.push(`heading_open`,`h`+String(a),1);u.markup=String.fromCharCode(o),u.map=[t,e.line];let d=e.push(`inline`,``,0);d.content=l,d.map=[t,e.line-1],d.children=[];let f=e.push(`heading_close`,`h`+String(a),-1);return f.markup=String.fromCharCode(o),e.parentType=i,!0}function tMt(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let l=e.push(`inline`,``,0);return l.content=o,l.map=[t,e.line],l.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var s7=[[`table`,Rjt,[`paragraph`,`reference`]],[`code`,zjt],[`fence`,Bjt,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Vjt,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Hjt,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Kjt,[`paragraph`,`reference`,`blockquote`]],[`reference`,qjt],[`html_block`,Qjt,[`paragraph`,`reference`,`blockquote`]],[`heading`,$jt,[`paragraph`,`reference`,`blockquote`]],[`lheading`,eMt],[`paragraph`,tMt]];function c7(){this.ruler=new n7;for(let e=0;e<s7.length;e++)this.ruler.push(s7[e][0],s7[e][1],{alt:(s7[e][2]||[]).slice()})}c7.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,l=!1;for(let a=0;a<i;a++)if(l=r[a](e,o,n,!1),l){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!l)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},c7.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},c7.prototype.State=i7;function nMt(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function rMt(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function iMt(e){return/^<a[>\s]/i.test(e)}function aMt(e){return/^<\/a\s*>/i.test(e)}function oMt(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let a=r.length-1;a>=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(iMt(o.content)&&i>0&&i--,aMt(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),l=[],u=o.level,d=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;t<s.length;t++){let n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?s[t].schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:`+a).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://`+a).replace(/^http:\/\//,``);let o=s[t].index;if(o>d){let t=new e.Token(`text`,``,0);t.content=i.slice(d,o),t.level=u,l.push(t)}let f=new e.Token(`link_open`,`a`,1);f.attrs=[[`href`,r]],f.level=u++,f.markup=`linkify`,f.info=`auto`,l.push(f);let p=new e.Token(`text`,``,0);p.content=a,p.level=u,l.push(p);let m=new e.Token(`link_close`,`a`,-1);m.level=--u,m.markup=`linkify`,m.info=`auto`,l.push(m),d=s[t].lastIndex}if(d<i.length){let t=new e.Token(`text`,``,0);t.content=i.slice(d),t.level=u,l.push(t)}t[n].children=r=vjt(r,a,l)}}}}var sMt=/\r\n?|\n/g,cMt=/\0/g;function lMt(e){let t;t=e.src.replace(sMt,`
@@ -3481,8 +3481,8 @@ Use Shift + Enter to enter a new line`:`输入 "/" 唤出 Skill
3481
3481
  输入 "\\" 唤出 Prompt
3482
3482
  输入 "@" 唤出 工具和 MCP
3483
3483
  通过 Shift + Enter 进行换行输入`},prompts:{default:()=>[]},resources:{default:()=>[]},sendDisabledTip:{},shortcutId:{},shortcuts:{},skills:{default:()=>[]},supportUpload:{type:Boolean,default:!0},tippyOptions:{}},{cite:{required:!1,default:``},citeModifiers:{}}),emits:(0,t.mergeModels)([`selectShortcut`,`deleteShortcut`,`update:modelValue`],[`update:cite`]),setup(e,{expose:n,emit:r}){let i=(0,t.useTemplateRef)(`aiSlashInputRef`),a=(0,t.useTemplateRef)(`filesRef`),o=(0,t.useModel)(e,`cite`),s=(0,t.shallowRef)(200),l=e,u=r,d=(0,t.ref)(l.defaultUploadFiles||[]),f=(0,t.computed)(()=>l.shortcuts?.find(e=>e.id===l.shortcutId)),p=(0,t.computed)(()=>l.messageStatus&&[e5.Pending,e5.Streaming,e5.Fetching].includes(l.messageStatus)?l.messageStatus:l.modelValue?.length<1||Array.isArray(l.modelValue)&&!N7(l.modelValue).trim()?e5.Disabled:l.messageStatus);(0,t.watchPostEffect)(()=>{let e=l.inputMaxHeight||200;if(d.value.length<1||!a.value){s.value=e;return}s.value=e+(a.value?.clientHeight||0)});let m=function(){var e=f5(function*(){try{var e,t,n,r;if(l.sendDisabledTip)return;(e=i.value)==null||(t=e.cleanup)==null||t.call(e);let a;(n=d.value)!=null&&n.length?(a=d.value?.slice().map(e=>({type:Q8.Binary,url:e.url,mimeType:e.file?.type||``,filename:e.file?.name||``})),l.modelValue&&a.push({type:Q8.Text,text:N7(l.modelValue)})):a=typeof l.modelValue==`string`?l.modelValue:N7(l.modelValue),(r=l.onSendMessage)==null||r.call(l,a,l.modelValue),d.value=[]}catch(e){console.error(e)}});return function(){return e.apply(this,arguments)}}(),h=e=>{if(e.key===`Enter`||e.key===`NumpadEnter`){if(e.shiftKey||p.value===e5.Disabled||l.sendDisabledTip||p.value===e5.Fetching||p.value===e5.Streaming||p.value===e5.Pending)return;m()}},g=function(){var e=f5(function*(){try{var e;(e=l.onStopSending)==null||e.call(l)}catch(e){console.error(e)}});return function(){return e.apply(this,arguments)}}(),_=()=>{o.value=``},v=e=>{u(`selectShortcut`,e)},y=()=>{u(`deleteShortcut`)},b=e=>`${e.name}_${e.size}_${e.lastModified}`,x=(GDt/(1024*1024)).toFixed(1),S=function(){var e=f5(function*(e){if(!l.supportUpload)return;if(d.value.length>=3){e.length>0&&ic({message:W8(e.length,x,J8),theme:`error`});return}let t=new Set(d.value.map(e=>e.file?b(e.file):``)),n=0;for(let i=0;i<e.length;i++){var r;let a=e[i];if(d.value.length>=3){n+=e.length-i;break}let o=b(a);if(t.has(o)){n+=1;continue}if(a.size<=0||a.size>=2516582.4){n+=1;continue}t.add(o);let s={file:a,status:t9.Pending};d.value.push(s),(r=l.onUpload)==null||r.call(l,a).then(e=>{if(e&&typeof e==`object`&&`download_url`in e){s.url=e.download_url,s.status=t9.Success;return}s.status=t9.Error}).catch(()=>{s.status=t9.Error})}n>0&&ic({message:W8(n,x,J8),theme:`error`})});return function(t){return e.apply(this,arguments)}}(),C=e=>{d.value=d.value.filter(t=>t.file?t.file!==e.file:t.url?t.url!==e.url:t.filename?t.filename!==e.filename:!0)},w=(e,t)=>{u(`update:modelValue`,e,t)};return n({focus:()=>{var e,t;(e=i.value)==null||(t=e.focus)==null||t.call(e)},triggerSendMessage:m}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`chat-input-container`,style:(0,t.normalizeStyle)({"--chat-z-index":(0,t.unref)(RDt)})},[(0,t.renderSlot)(n.$slots,`top`),(0,t.renderSlot)(n.$slots,`interrupt`),(0,t.createElementVNode)(`div`,{class:`chat-input`,style:(0,t.normalizeStyle)({maxHeight:s.value+`px`})},[(0,t.renderSlot)(n.$slots,`input-header`,{},()=>[o.value?((0,t.openBlock)(),(0,t.createBlock)(pFt,{key:0,class:`chat-input-cite`,content:o.value,onClose:_},null,8,[`content`])):(0,t.createCommentVNode)(``,!0)]),(0,t.renderSlot)(n.$slots,`files`,(0,t.normalizeProps)((0,t.guardReactiveProps)({files:d.value})),()=>[d.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`filesRef`,ref:a,class:`chat-input-files`},[(0,t.createVNode)(i9,{files:d.value,onDeleteFile:C},null,8,[`files`])],512)):(0,t.createCommentVNode)(``,!0)]),(0,t.createVNode)(fIt,{ref_key:`aiSlashInputRef`,ref:i,"model-value":e.modelValue,placeholder:e.placeholder,prompts:e.prompts,resources:e.resources,skills:e.skills,onKeydown:h,"onUpdate:modelValue":w,onUpload:S},null,8,[`model-value`,`placeholder`,`prompts`,`resources`,`skills`]),(0,t.createVNode)(mIt,{"message-state":p.value,"send-disabled-tip":e.sendDisabledTip,"tippy-options":e.tippyOptions,onSendMessage:m,onStopSending:g},{default:(0,t.withCtx)(()=>{var r;return[e.supportUpload?((0,t.openBlock)(),(0,t.createBlock)(uFt,{key:0,"tippy-options":e.tippyOptions,onUpload:S},null,8,[`tippy-options`])):(0,t.createCommentVNode)(``,!0),e.supportUpload&&((r=e.shortcuts)!=null&&r.length||f.value)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,hIt)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`attachment`,{},()=>[e.shortcuts&&!f.value?((0,t.openBlock)(),(0,t.createBlock)(ukt,{key:0,shortcuts:e.shortcuts,onSelectShortcut:v},null,8,[`shortcuts`])):(0,t.createCommentVNode)(``,!0),f.value?((0,t.openBlock)(),(0,t.createBlock)(p5,{key:1,class:`selected-shortcut-btn`,shortcut:f.value},{append:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u5),{onClick:y})]),_:1},8,[`shortcut`])):(0,t.createCommentVNode)(``,!0)])]}),"send-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`send-icon`)]),_:3},8,[`message-state`,`send-disabled-tip`,`tippy-options`])],4)],4))}}),_It={class:`chat-input-info-alert`},vIt={class:`chat-input-info-alert__text`},yIt=(0,t.defineComponent)({__name:`input-info-alert`,props:{content:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_It,[(0,t.createVNode)((0,t.unref)(MOt),{class:`chat-input-info-alert__icon`}),(0,t.createElementVNode)(`span`,vIt,(0,t.toDisplayString)(e.content),1)]))}}),a9=`others`,bIt=e=>e<26?String.fromCharCode(65+e):String(e+1),xIt=e=>{let n=(0,t.computed)(()=>{var t;return((t=e())==null||(t=t.metadata)==null?void 0:t.questions)??[]}),r=(0,t.shallowRef)({}),i=e=>r.value[e],a=(e,t)=>{r.value=$($({},r.value),{},{[e]:t})},o=(0,t.computed)(()=>n.value.length),s=(0,t.computed)(()=>n.value.reduce((e,t,n)=>e+ +!!r.value[n],0)),l=(0,t.computed)(()=>o.value>0&&s.value===o.value),u=()=>n.value.map((e,t)=>r.value[t]??{question:e.question,answer:[]});return{questions:n,answeredCount:s,totalCount:o,completed:l,getAnswer:i,setAnswer:a,buildResolvePayload:()=>({interruptId:e()?.id??``,reason:Z8.UserQuestion,status:`resolved`,payload:{answers:u()}}),buildSkipPayload:()=>SIt(e())}},SIt=e=>({interruptId:e?.id??``,reason:Z8.UserQuestion,status:`cancelled`,payload:{answers:[]}}),CIt={class:`ai-user-question-answered`},wIt={class:`ai-user-question-answered__header`},TIt={class:`ai-user-question-answered__title-wrap`},EIt={class:`ai-user-question-answered__title`},DIt={class:`ai-user-question-answered__status`},OIt={class:`ai-user-question-answered__body`},kIt={class:`ai-user-question-answered__question`},AIt={class:`ai-user-question-answered__question-text`},jIt={key:0,class:`ai-user-question-answered__tag`},MIt=(0,t.defineComponent)({__name:`user-question-answered-card`,props:{answers:{},status:{default:`resolved`}},setup(e){let n=e,r=(0,t.computed)(()=>n.status===`cancelled`?Y8(`已取消`):Y8(`已回复`));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,CIt,[(0,t.createElementVNode)(`header`,wIt,[(0,t.createElementVNode)(`div`,TIt,[(0,t.createVNode)((0,t.unref)(jOt),{class:`ai-user-question-answered__help-icon`}),(0,t.createElementVNode)(`span`,EIt,(0,t.toDisplayString)((0,t.unref)(Y8)(`回答内容`)),1)]),(0,t.createElementVNode)(`span`,DIt,(0,t.toDisplayString)(r.value),1)]),(0,t.createElementVNode)(`div`,OIt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.answers,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:i,class:`ai-user-question-answered__item`},[(0,t.createElementVNode)(`div`,kIt,[(0,t.createElementVNode)(`span`,AIt,(0,t.toDisplayString)(i+1)+`. `+(0,t.toDisplayString)(r.question),1),r.multiSelect===void 0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,jIt,(0,t.toDisplayString)(r.multiSelect?(0,t.unref)(Y8)(`多选`):(0,t.unref)(Y8)(`单选`)),1))]),(0,t.renderSlot)(n.$slots,`answer`,(0,t.mergeProps)({ref_for:!0},{item:r,index:i,status:e.status}),()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.answer,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:n,class:`ai-user-question-answered__answer`},(0,t.toDisplayString)(e.description||e.label),1))),128))])]))),128))])]))}}),NIt={class:`ai-user-question-option__badge`},PIt=[`placeholder`,`value`],FIt={key:1,class:`ai-user-question-option__text`},IIt=(0,t.defineComponent)({__name:`user-question-option`,props:{option:{},othersText:{},selected:{type:Boolean}},emits:[`confirm`,`select`,`update:othersText`],setup(e,{emit:n}){let r=e,i=n,a=()=>{i(`select`)},o=()=>{r.selected||i(`select`)},s=e=>{let t=e.target.value;i(`update:othersText`,t),r.selected||i(`select`)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ai-user-question-option`,{"ai-user-question-option--selected":e.selected,"ai-user-question-option--others":e.option.isOthers}]),onClick:a},[(0,t.createElementVNode)(`span`,NIt,(0,t.toDisplayString)(e.option.letter),1),e.option.isOthers?((0,t.openBlock)(),(0,t.createElementBlock)(`input`,{key:0,class:`ai-user-question-option__input`,placeholder:(0,t.unref)(Y8)(`请输入...`),value:e.othersText,onClick:r[0]||=(0,t.withModifiers)(()=>{},[`stop`]),onFocus:o,onInput:s,onKeydown:r[1]||=(0,t.withKeys)((0,t.withModifiers)(e=>i(`confirm`),[`stop`]),[`enter`])},null,40,PIt)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,FIt,(0,t.toDisplayString)(e.option.description),1))],2))}}),LIt={class:`ai-user-question-choice`},RIt=(0,t.defineComponent)({__name:`user-question-choice`,props:{question:{}},emits:[`answer`,`confirm`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.shallowRef)([]),o=(0,t.shallowRef)(``),s=(0,t.computed)(()=>{let e=(r.question.options??[]).filter(e=>e.label!==a9).map((e,t)=>$($({},e),{},{isOthers:!1,letter:bIt(t)}));return e.push({label:a9,description:``,isOthers:!0,letter:bIt(e.length)}),e}),l=(0,t.computed)(()=>s.value.findIndex(e=>e.isOthers)),u=e=>a.value.includes(e),d=(0,t.computed)(()=>a.value.length?l.value>=0&&a.value.includes(l.value)?o.value.trim().length>0:!0:!1),f=()=>({question:r.question.question,multiSelect:r.question.multiSelect,answer:a.value.map(e=>{let t=s.value[e];return t!=null&&t.isOthers?{label:a9,description:o.value.trim()}:{label:t?.label??``,description:t?.description??``}})}),p=()=>i(`answer`,d.value?f():void 0),m=e=>{let t=a.value;a.value=r.question.multiSelect?t.includes(e)?t.filter(t=>t!==e):[...t,e]:[e],p()},h=e=>{o.value=e,p()};return(0,t.watch)(()=>r.question,()=>{a.value=[],o.value=``,p()}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,LIt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(IIt,{key:r,option:e,"others-text":o.value,selected:u(r),onConfirm:n[0]||=e=>i(`confirm`),onSelect:e=>m(r),"onUpdate:othersText":h},null,8,[`option`,`others-text`,`selected`,`onSelect`]))),128))]))}}),zIt={class:`ai-user-question-card__title-wrap`},BIt={class:`ai-user-question-card__title`},VIt={class:`ai-user-question-card__counter-wrap`},HIt={class:`ai-user-question-card__counter`},UIt={class:`ai-user-question-card__body`},WIt={class:`ai-user-question-card__question-title`},GIt={class:`ai-user-question-card__question-text`},KIt={key:0,class:`ai-user-question-card__tag`},qIt={class:`ai-user-question-card__options`},JIt={class:`ai-user-question-card__footer`},YIt=(0,t.defineComponent)({__name:`user-question-card`,props:{interrupt:{},onResume:{type:Function}},setup(e){let n=e,r=v5(),i=(0,t.shallowRef)(!1),{questions:a,answeredCount:o,totalCount:s,completed:l,getAnswer:u,setAnswer:d,buildResolvePayload:f,buildSkipPayload:p}=xIt(()=>n.interrupt),m=(0,t.computed)(()=>{var e;return((e=n.interrupt.metadata)==null||(e=e.questions)==null||(e=e[0])==null?void 0:e.header)||n.interrupt.message||``}),h=()=>{i.value=!i.value},g=()=>{i.value&&=!1},_=()=>{var e;l.value&&((e=n.onResume)==null||e.call(n,f(),n.interrupt))},v=()=>{var e;(e=n.onResume)==null||e.call(n,p(),n.interrupt)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{class:(0,t.normalizeClass)([`ai-user-question-card`,{"ai-user-question-card--collapsed":i.value}])},[(0,t.createElementVNode)(`header`,{class:`ai-user-question-card__header`,onClick:g},[(0,t.createElementVNode)(`div`,zIt,[(0,t.createVNode)((0,t.unref)(jOt),{class:`ai-user-question-card__help-icon`}),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,BIt,[(0,t.createTextVNode)((0,t.toDisplayString)(m.value),1)])),[[(0,t.unref)(y5),$({},(0,t.unref)(r))]])]),(0,t.createElementVNode)(`div`,VIt,[(0,t.createElementVNode)(`span`,HIt,(0,t.toDisplayString)((0,t.unref)(o))+` / `+(0,t.toDisplayString)((0,t.unref)(s)),1),(0,t.createVNode)((0,t.unref)(vOt),{class:`ai-user-question-card__arrow`,style:(0,t.normalizeStyle)({transform:i.value?`rotate(180deg)`:`rotate(-90deg)`}),onClick:(0,t.withModifiers)(h,[`stop`])},null,8,[`style`])])]),(0,t.withDirectives)((0,t.createElementVNode)(`div`,UIt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(a),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:r,class:`ai-user-question-card__question`},[(0,t.createElementVNode)(`div`,WIt,[(0,t.createElementVNode)(`span`,GIt,(0,t.toDisplayString)(r+1)+`. `+(0,t.toDisplayString)(n.question),1),n.multiSelect===void 0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,KIt,(0,t.toDisplayString)(n.multiSelect?(0,t.unref)(Y8)(`多选`):(0,t.unref)(Y8)(`单选`)),1))]),(0,t.createElementVNode)(`div`,qIt,[(0,t.renderSlot)(e.$slots,`question`,(0,t.mergeProps)({ref_for:!0},{question:n,qIndex:r,answer:(0,t.unref)(u)(r),setAnswer:e=>(0,t.unref)(d)(r,e),confirm:_}),()=>[(0,t.createVNode)(RIt,{question:n,onAnswer:e=>(0,t.unref)(d)(r,e),onConfirm:_},null,8,[`question`,`onAnswer`])])])]))),128))],512),[[t.vShow,!i.value]]),(0,t.withDirectives)((0,t.createElementVNode)(`footer`,JIt,[(0,t.createVNode)((0,t.unref)(Go),{class:`ai-user-question-card__complete`,disabled:!(0,t.unref)(l),size:`small`,theme:`primary`,onClick:_},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(NOt),{class:`ai-user-question-card__enter-icon`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(Y8)(`完成`)),1)]),_:1},8,[`disabled`]),(0,t.createVNode)((0,t.unref)(Go),{class:`ai-user-question-card__skip`,size:`small`,text:``,onClick:v},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(POt),{class:`ai-user-question-card__skip-icon`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(Y8)(`跳过`)),1)]),_:1})],512),[[t.vShow,!i.value]])],2))}}),XIt={class:`ai-delete-confirm`},ZIt={class:`ai-delete-confirm__title`},QIt={class:`ai-delete-confirm__desc`},$It={class:`ai-delete-confirm__actions`},eLt=(0,t.defineComponent)({__name:`delete-tool`,props:{description:{},id:{},name:{},disabled:{type:Boolean},tippyOptions:{}},emits:[`confirm`,`cancel`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useTemplateRef)(`tippyRef`),o=(0,t.computed)(()=>({id:r.id,name:r.name,description:r.description,disabled:r.disabled,tippyOptions:r.tippyOptions})),s=(0,t.computed)(()=>$({arrow:!1,interactive:!0,offset:[0,6],theme:`ai-chat-box-light light`,trigger:`click`,appendTo:()=>document.body},r.tippyOptions||{})),l=()=>{if(r.disabled)return!1},u=()=>{var e,t;(e=a.value)==null||(t=e.hide)==null||t.call(e)},d=()=>{u(),i(`confirm`)},f=()=>{u(),i(`cancel`)};return(0,t.onUnmounted)(()=>{u()}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Jl),(0,t.mergeProps)({ref_key:`tippyRef`,ref:a},s.value,{onShow:l}),{content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,XIt,[(0,t.createElementVNode)(`div`,ZIt,(0,t.toDisplayString)((0,t.unref)(Y8)(`确认删除该回答?`)),1),(0,t.createElementVNode)(`div`,QIt,(0,t.toDisplayString)((0,t.unref)(Y8)(`删除操作无法撤回,请谨慎操作!`)),1),(0,t.createElementVNode)(`div`,$It,[(0,t.createVNode)((0,t.unref)(Go),{size:`small`,theme:`danger`,onClick:d},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`删除`)),1)]),_:1}),(0,t.createVNode)((0,t.unref)(Go),{size:`small`,onClick:f},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1})])])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(b5,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.value)),null,16)]),_:1},16))}}),tLt={class:`ai-feedback-title`},nLt={class:`ai-feedback-reason-list`},rLt=[`onClick`],iLt={class:`ai-feedback-other`},aLt={class:`ai-feedback-footer`},oLt=(0,t.defineComponent)({__name:`user-feedback`,props:{loading:{type:Boolean},reasonList:{},title:{}},emits:[`submit`,`cancel`],setup(e,{emit:n}){let r=n,i=(0,t.shallowRef)(``),a=(0,t.shallowRef)([]),o=e=>{a.value.includes(e)?a.value=a.value.filter(t=>t!==e):a.value=[...a.value,e]},s=()=>{r(`submit`,a.value,i.value)},l=()=>{a.value=[],i.value=``,r(`cancel`)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`ai-user-feedback`,onMouseenter:r[1]||=(0,t.withModifiers)(()=>{},[`stop`,`prevent`])},[(0,t.createElementVNode)(`div`,tLt,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`div`,nLt,[e.loading?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(8,e=>(0,t.createElementVNode)(`div`,{key:e,class:`reason-item ai-skeleton-element`})),64)):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(e.reasonList,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e,class:(0,t.normalizeClass)([`reason-item`,{"is-active":a.value.includes(e)}]),onClick:t=>o(e)},(0,t.toDisplayString)(e),11,rLt))),128))]),(0,t.createElementVNode)(`div`,iLt,[(0,t.createVNode)((0,t.unref)(ns),{modelValue:i.value,"onUpdate:modelValue":r[0]||=e=>i.value=e,placeholder:(0,t.unref)(Y8)(`说出您的想法`),rows:3,type:`textarea`},null,8,[`modelValue`,`placeholder`])]),(0,t.createElementVNode)(`div`,aLt,[(0,t.createVNode)((0,t.unref)(Go),{class:`custom-btn`,disabled:!i.value&&a.value.length===0,size:`small`,theme:`primary`,onClick:s},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`提交`)),1)]),_:1},8,[`disabled`]),(0,t.createVNode)((0,t.unref)(Go),{class:`custom-btn`,size:`small`,width:`80px`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1})])],32))}}),sLt={ref:`messageToolsRef`,class:`message-tools-container`},cLt={class:`message-tools`,style:{"margin-right":`8px`}},lLt={key:0,class:`ai-divider`,style:{"margin-right":`8px`}},uLt={class:`message-tools`},dLt=(0,t.defineComponent)({__name:`message-tools`,props:{messageTools:{default:()=>HDt},messageToolsStatus:{},onAction:{},tippyOptions:{},updateTools:{default:()=>WDt}},emits:[`feedback`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.useTemplateRef)(`feedbackTippyRef`),o=(0,t.shallowRef)(!1),s=(0,t.shallowRef)([]),l=(0,t.shallowRef)(null),u=(0,t.computed)(()=>$({arrow:!1,interactive:!0,offset:[0,6],theme:`ai-chat-box-light light`,trigger:`click`,appendTo:()=>document.body},r.tippyOptions||{})),d=function(){var e=f5(function*(e){if(e.id===`like`||e.id===`unlike`){try{o.value=!0,s.value=[],s.value=(yield r.onAction?.call(r,e))||[]}finally{o.value=!1}return}yield r.onAction?.call(r,e)});return function(t){return e.apply(this,arguments)}}(),f=function(){var e=f5(function*(e){yield r.onAction?.call(r,e)});return function(t){return e.apply(this,arguments)}}(),p=()=>{var e;(e=a.value)==null||e.forEach(e=>{var t;return e==null||(t=e.hide)==null?void 0:t.call(e)})},m=e=>l.value?l.value===`like`&&e===`like`?`activeLike`:l.value===`unlike`&&e===`unlike`?`activeUnLike`:e:e,h=e=>{var t;let n=m(e);return n===`activeLike`?Y8(`取消满意`):n===`activeUnLike`?Y8(`取消不满意`):((t=r.updateTools)==null||(t=t.find(e=>e.id===n))==null?void 0:t.description)||``},g=(e,t,n)=>{p(),l.value===e.id?l.value=null:l.value=e.id,i(`feedback`,e,t,n)},_=e=>{if(r.messageToolsStatus===n9.Disabled)return!1;if(l.value&&l.value===e)return l.value=null,!1};return(0,t.onUnmounted)(()=>{p(),s.value=[]}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sLt,[(0,t.createElementVNode)(`div`,cLt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.messageTools,n=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.id},[n.id===`delete`?((0,t.openBlock)(),(0,t.createBlock)(eLt,(0,t.mergeProps)({key:0,ref_for:!0},n,{disabled:e.messageToolsStatus===(0,t.unref)(n9).Disabled,"tippy-options":e.tippyOptions,onConfirm:e=>f(n)}),null,16,[`disabled`,`tippy-options`,`onConfirm`])):((0,t.openBlock)(),(0,t.createBlock)(b5,(0,t.mergeProps)({key:1,ref_for:!0},n,{disabled:e.messageToolsStatus===(0,t.unref)(n9).Disabled,"tippy-options":e.tippyOptions,onClick:e=>d(n)}),null,16,[`disabled`,`tippy-options`,`onClick`]))],64))),128))]),e.updateTools.length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lLt)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,uLt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.updateTools,n=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.id},[n.id===`like`||n.id===`unlike`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Jl),(0,t.mergeProps)({key:0,ref_for:!0,ref_key:`feedbackTippyRef`,ref:a},{ref_for:!0},u.value,{onShow:e=>_(n.id)}),{content:(0,t.withCtx)(()=>[(0,t.createVNode)(oLt,{loading:o.value,"reason-list":s.value,title:n.id===`like`?(0,t.unref)(Y8)(`什么原因让你满意?`):(0,t.unref)(Y8)(`什么原因让你不满意?`),onCancel:p,onSubmit:(e,t)=>g(n,e,t)},null,8,[`loading`,`reason-list`,`title`,`onSubmit`])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(b5,(0,t.mergeProps)({ref_for:!0},n,{id:m(n.id),active:l.value===n.id,disabled:e.messageToolsStatus===(0,t.unref)(n9).Disabled,"tippy-options":$($({},e.tippyOptions),{},{content:h(n.id)}),onClick:e=>d(n)}),null,16,[`id`,`active`,`disabled`,`tippy-options`,`onClick`])]),_:2},1040,[`onShow`])):n.id===`delete`?((0,t.openBlock)(),(0,t.createBlock)(eLt,(0,t.mergeProps)({key:1,ref_for:!0},n,{disabled:e.messageToolsStatus===(0,t.unref)(n9).Disabled,"tippy-options":e.tippyOptions,onConfirm:e=>f(n)}),null,16,[`disabled`,`tippy-options`,`onConfirm`])):((0,t.openBlock)(),(0,t.createBlock)(b5,(0,t.mergeProps)({key:2,ref_for:!0},n,{disabled:e.messageToolsStatus===(0,t.unref)(n9).Disabled,"tippy-options":e.tippyOptions,onClick:e=>d(n)}),null,16,[`disabled`,`tippy-options`,`onClick`]))],64))),128))])],512))}}),o9=(0,t.defineComponent)({name:`HighlightKeyword`,props:{text:{type:String,required:!0}},setup(e){let n=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),r=Zkt(),i=(0,t.computed)(()=>{if(!e.text||!(r!=null&&r.value))return e.text;let i=r.value.trim();if(!i)return e.text;let a=RegExp(`(${n(i)})`,`ig`),o=e.text?.toString().split(a);return o.length<=1?e.text:o.map(e=>a.test(e)?(0,t.h)(`span`,{class:KDt},e):e)});return()=>(0,t.h)(`span`,i.value)}}),fLt={class:`ai-activity-message`},pLt={class:`ai-activity-message-content`},s9=(0,t.defineComponent)({__name:`activity-layout`,props:(0,t.mergeModels)({activityType:{}},{collapsed:$({type:Boolean},{default:!1}),collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let n=(0,t.useModel)(e,`collapsed`);return(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fLt,[(0,t.createElementVNode)(`div`,{class:`ai-activity-message-title`,onClick:i[0]||=e=>n.value=!n.value},[(0,t.renderSlot)(r.$slots,`title`,(0,t.normalizeProps)((0,t.guardReactiveProps)({collapsed:n.value}))),e.activityType===(0,t.unref)(Q8).FlowAgent?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ai-activity-message-title-icon collapsed-icon`,{"is-collapsed":n.value}])},[(0,t.createVNode)((0,t.unref)(l5))],2))]),(0,t.withDirectives)((0,t.createElementVNode)(`div`,pLt,[(0,t.renderSlot)(r.$slots,`default`)],512),[[t.vShow,!n.value]])]))}}),c9=[{color:`#3A84FF`,icon:null,key:`running`,label:Y8(`执行中`),rawStates:[`CREATED`,`LOOP_READY`,`READY`,`RUNNING`,`BLOCKED`,`ROLLING_BACK`,`ROLL_BACK_SUCCESS`]},{color:`#65C389`,icon:aOt,key:`success`,label:Y8(`成功`),rawStates:[`FINISHED`]},{color:`#EA3636`,icon:oOt,key:`failed`,label:Y8(`失败`),rawStates:[`FAILED`,`REVOKED`,`ROLL_BACK_FAILED`]},{color:`#F59500`,icon:sOt,key:`suspended`,label:Y8(`挂起`),rawStates:[`SUSPENDED`]},{color:`#4D4F56`,dotColor:`#DCDEE5`,icon:cOt,key:`pending`,label:Y8(`待执行`),rawStates:[`PENDING`]},{color:`#5B7290`,icon:lOt,key:`skipped`,label:Y8(`跳过`),rawStates:[`SKIPPED`]}],l9=Object.fromEntries(c9.map(e=>[e.key,e])),mLt=Object.fromEntries(c9.flatMap(e=>e.rawStates.map(t=>[t,e.key]))),u9=e=>mLt[e]??`running`,hLt=e=>l9[e].dotColor??l9[e].color,gLt=e=>{let n=l9[e].icon;return n?(0,t.cloneVNode)(n):null},_Lt=e=>{let n=(0,t.computed)(()=>Array.isArray(e.value)?e.value:[e.value??{}]),r=(0,t.shallowRef)({}),i=e=>r.value[e.task_id]!==!1;return{isTaskExpanded:i,taskList:n,toggleTaskExpanded:e=>{r.value=$($({},r.value),{},{[e.task_id]:!i(e)})},viewTasks:(0,t.computed)(()=>n.value.map(e=>{let t=Object.values(e.nodes??{}).map(e=>{let t=u9(e.state);return{convergedState:t,dotColor:hLt(t),elapsedTimeText:FDt(e.elapsed_time),id:e.id,name:e.name,raw:e,retryable:!!e.retryable,skippable:!!e.skippable}}),n=t.reduce((e,t)=>e+t.raw.elapsed_time,0),r=u9(e.task_state??``);return{convergedState:r,hasConfidence:!!e.has_confidence,confidenceTitle:e.confidence_title,isActive:!!e.is_active,nodes:t,raw:e,stateIcon:gLt(r),taskId:e.task_id,taskName:e.task_name,totalTimeText:FDt(n)}})),visibleStats:(0,t.computed)(()=>{let e={};for(let t of c9)e[t.key]=0;for(let t of n.value)for(let[n,r]of Object.entries(t.statistics?.state_counts??{}))e[u9(n)]+=r;return c9.filter(t=>e[t.key]>0).map(t=>({color:t.color,display:e[t.key]>99?`99+`:String(e[t.key]),dotColor:hLt(t.key),key:t.key,label:t.label}))})}},vLt=[{icon:KOt,id:t5.FlowNodeRetry,label:()=>Y8(`重试`),visible:e=>e.convergedState===`failed`&&e.retryable},{icon:POt,id:t5.FlowNodeSkip,label:()=>Y8(`跳过`),visible:e=>e.convergedState===`failed`&&e.skippable}],yLt=e=>{let{onInterruptResume:t,openNodeDetail:n}=e,r=(e,n,r)=>{var i;(i=t.value)==null||i.call(t,{payload:{node_id:r.id,task_id:n.task_id},operation:e})};return{getNodeActions:(e,t)=>{let i=vLt.filter(e=>e.visible(t)).map(n=>({icon:n.icon,id:n.id,label:n.label(),run:()=>r(n.id,e.raw,t.raw)}));return i.push({icon:c5,id:`detail`,label:Y8(`详情`),run:()=>n(e.raw,t.raw)}),i}}},bLt={class:`ai-detail-section`},xLt={class:`section-heading`},SLt={class:`section-text`},d9=(0,t.defineComponent)({__name:`detail-section`,props:{title:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bLt,[(0,t.createElementVNode)(`div`,xLt,[r[0]||=(0,t.createElementVNode)(`span`,{class:`section-bar`},null,-1),(0,t.createElementVNode)(`span`,SLt,(0,t.toDisplayString)(e.title),1)]),(0,t.renderSlot)(n.$slots,`default`)]))}}),CLt={class:`ai-simple-table`},wLt={key:0},TLt=[`colspan`],f9=(0,t.defineComponent)({__name:`simple-table`,props:{columns:{},data:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`table`,CLt,[(0,t.createElementVNode)(`thead`,null,[(0,t.createElementVNode)(`tr`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:e.key},(0,t.toDisplayString)(e.label),1))),128))])]),(0,t.createElementVNode)(`tbody`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.data,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{key:r},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:e.key,class:(0,t.normalizeClass)({"is-break-all":e.breakAll})},(0,t.toDisplayString)(n[e.key]??`--`),3))),128))]))),128)),e.data.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,wLt,[(0,t.createElementVNode)(`td`,{class:`is-empty`,colspan:e.columns.length},` -- `,8,TLt)]))])]))}}),ELt={class:`flow-agent-node-detail`},DLt={class:`detail-title`},OLt={key:1,class:`detail-title-content`},kLt={class:`detail-tab-bar`},ALt=[`onClick`],jLt={class:`detail-body`},MLt={class:`skeleton-section`},NLt={class:`skeleton-section`},PLt={class:`info-form`},FLt={class:`info-label`},ILt={class:`info-value`},LLt={class:`info-row`},RLt={class:`info-label`},zLt={class:`info-value`},BLt={key:0,class:`failure-item`},VLt={key:1,class:`failure-item`},HLt={class:`info-row`},ULt={class:`info-label`},WLt={class:`info-value`},GLt={key:0,class:`skeleton-section`},p9=function(e){return e.Config=`config`,e.Output=`output`,e}(p9||{}),KLt=(0,t.defineComponent)({__name:`flow-agent-node-detail`,props:{data:{},has_confidence:{type:Boolean},loading:{type:Boolean},node_id:{},node_name:{},task_id:{},task_name:{}},setup(e){let n=[{key:p9.Config,label:Y8(`节点配置`)},{key:p9.Output,label:Y8(`节点输出`)}],r=[{key:`key`,label:Y8(`参数名`)},{breakAll:!0,key:`value`,label:Y8(`参数值`)}],i=[{key:`name`,label:Y8(`名称`)},{key:`description`,label:Y8(`变量说明`)},{key:`key`,label:`KEY`}],a=[{key:`key`,label:Y8(`参数名`)},{breakAll:!0,key:`value`,label:Y8(`参数值`)}],o={forced_fail:J8?`Force Fail`:`强制失败`},s=e,l=(0,t.shallowRef)(p9.Config),u=(0,t.computed)(()=>s.data?.basic_info),d=(0,t.computed)(()=>{let e=u.value;return e?[{label:Y8(`流程模板`),value:e.template_name||`--`},{label:Y8(`节点名称`),value:e.node_name||`--`},{label:Y8(`步骤名称`),value:e.stage_name||`--`},{label:Y8(`是否可选`),value:e.optional?Y8(`是`):Y8(`否`)}]:[]}),f=(0,t.computed)(()=>{var e;let t=u.value;return t?.skippable||(t==null||(e=t.auto_retry)==null?void 0:e.enable)}),p=(0,t.computed)(()=>{let e=u.value?.auto_retry;return e!=null&&e.enable?J8?`In ${e.interval} seconds, auto retry ${e.times} times`:`在 ${e.interval} 秒后,自动重试 ${e.times} 次`:``}),m=(0,t.computed)(()=>{let e=u.value?.timeout_config;if(!(e!=null&&e.enable))return`--`;let t=o[e.action]??e.action;return J8?`Timeout ${e.seconds} seconds later, ${t}`:`超时 ${e.seconds} 秒后则${t}`}),h=(0,t.computed)(()=>Object.entries(s.data?.inputs??{}).map(([e,t])=>({key:e,value:v(t)}))),g=(0,t.computed)(()=>(s.data?.plugin_output??[]).map(e=>({description:e.schema?.description||`--`,name:e.name,key:e.key}))),_=(0,t.computed)(()=>(s.data?.outputs??[]).map(e=>({key:e.key,value:v(e.value)}))),v=e=>e==null?`--`:typeof e==`object`?JSON.stringify(e):String(e);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ELt,[(0,t.createElementVNode)(`h3`,DLt,[e.loading?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`节点`))+`:`,1),s[0]||=(0,t.createElementVNode)(`span`,{class:`skeleton-title ai-skeleton-element`},null,-1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,OLt,(0,t.toDisplayString)((0,t.unref)(Y8)(`节点`))+`:`+(0,t.toDisplayString)(u.value?.node_name),1)),(0,t.renderSlot)(o.$slots,`locateButton`)]),(0,t.createElementVNode)(`div`,kLt,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n,e=>(0,t.createElementVNode)(`div`,{key:e.key,class:(0,t.normalizeClass)([`detail-tab`,{"is-active":l.value===e.key}]),onClick:t=>l.value=e.key},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.key===p9.Config?(0,t.unref)(dOt):(0,t.unref)(c5)),{class:`detail-tab-icon`})),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.label),1)],10,ALt)),64))]),(0,t.createElementVNode)(`div`,jLt,[l.value===p9.Config?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.loading?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,MLt,[s[1]||=(0,t.createElementVNode)(`div`,{class:`skeleton-heading ai-skeleton-element`},null,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(6,e=>(0,t.createElementVNode)(`div`,{key:e,class:`skeleton-row ai-skeleton-element`})),64))]),(0,t.createElementVNode)(`div`,NLt,[s[2]||=(0,t.createElementVNode)(`div`,{class:`skeleton-heading ai-skeleton-element`},null,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(4,e=>(0,t.createElementVNode)(`div`,{key:e,class:`skeleton-row ai-skeleton-element`})),64))])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(d9,{title:(0,t.unref)(Y8)(`基础信息`)},{default:(0,t.withCtx)(()=>{var e,n,r;return[(0,t.createElementVNode)(`div`,PLt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.label,class:`info-row`},[(0,t.createElementVNode)(`div`,FLt,(0,t.toDisplayString)(e.label),1),(0,t.createElementVNode)(`div`,ILt,(0,t.toDisplayString)(e.value),1)]))),128)),(0,t.createElementVNode)(`div`,LLt,[(0,t.createElementVNode)(`div`,RLt,(0,t.toDisplayString)((0,t.unref)(Y8)(`失败处理`)),1),(0,t.createElementVNode)(`div`,zLt,[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(e=u.value)!=null&&e.skippable?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,BLt,[s[3]||=(0,t.createElementVNode)(`span`,{class:`tag-badge`},`MS`,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(Y8)(`手动跳过`))+(0,t.toDisplayString)(!((n=u.value)==null||(n=n.auto_retry)==null)&&n.enable?`;`:``),1)])):(0,t.createCommentVNode)(``,!0),!((r=u.value)==null||(r=r.auto_retry)==null)&&r.enable?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,VLt,[s[4]||=(0,t.createElementVNode)(`span`,{class:`tag-badge`},`AR`,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(p.value),1)])):(0,t.createCommentVNode)(``,!0)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`--`)],64))])]),(0,t.createElementVNode)(`div`,HLt,[(0,t.createElementVNode)(`div`,ULt,(0,t.toDisplayString)((0,t.unref)(Y8)(`超时控制`)),1),(0,t.createElementVNode)(`div`,WLt,(0,t.toDisplayString)(m.value),1)])])]}),_:1},8,[`title`]),(0,t.createVNode)(d9,{title:(0,t.unref)(Y8)(`输入参数`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f9,{columns:r,data:h.value},null,8,[`data`])]),_:1},8,[`title`]),(0,t.createVNode)(d9,{title:(0,t.unref)(Y8)(`输出参数`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f9,{columns:i,data:g.value},null,8,[`data`])]),_:1},8,[`title`])],64))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.loading?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GLt,[s[5]||=(0,t.createElementVNode)(`div`,{class:`skeleton-heading ai-skeleton-element`},null,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(5,e=>(0,t.createElementVNode)(`div`,{key:e,class:`skeleton-row ai-skeleton-element`})),64))])):((0,t.openBlock)(),(0,t.createBlock)(d9,{key:1,title:(0,t.unref)(Y8)(`结构化输出`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f9,{columns:a,data:_.value},null,8,[`data`])]),_:1},8,[`title`]))],64))])]))}}),m9=e=>e.task_id==null?``:`${e.task_id}`,h9=m9,g9=(e,t)=>e.task_id==null?``:`${e.task_id}|${t.id}|${t.name}`,qLt=e=>{let{messageUid:n,taskList:r}=e,i=Akt(),a=Ekt(),o=(0,t.computed)(()=>i.selectedTab.value?.name??``),s=(0,t.shallowRef)(!1),l=()=>{s.value=!0},u=(0,t.computed)(()=>{if(s.value)return o.value;let e=r.value.find(e=>e.is_active);return e?.task_id==null?o.value:m9(e)}),d=e=>{let t=u.value;return t===m9(e)||t===h9(e)},f=(e,t)=>u.value===g9(e,t),p=(e,t)=>{var r;let a=e.task_id;a!=null&&(l(),(r=i.addCustomTab)==null||r.call(i,{label:t.name,name:g9(e,t),data:{component:KLt,messageUid:n.value,props:{data:{},loading:!0,node_id:t.id,node_name:t.name,task_id:a,task_name:e.task_name}}}))},m=e=>{var t;let r=e?.task_id;r&&(l(),(t=i.addCustomTab)==null||t.call(i,{label:Y8(`有效证据`),name:h9(e),data:{component:KLt,messageUid:n.value,props:{data:{},has_confidence:e.has_confidence,loading:!0,task_id:r,task_name:e.task_name}}}))};return(0,t.watch)(o,(e,t)=>{t!==void 0&&l()}),(0,t.onMounted)(()=>{a!=null&&a.value&&m(r.value.find(e=>e.is_active&&e.has_confidence))}),(0,t.onUnmounted)(()=>{if(a!=null&&a.value)for(let a of r.value){var e,t;(e=i.removeCustomTab)==null||e.call(i,m9(a)),(t=i.removeCustomTab)==null||t.call(i,h9(a));for(let e of Object.values(a.nodes??{})){var n;(n=i.removeCustomTab)==null||n.call(i,g9(a,e))}}}),{displaySelectedTabName:u,isNodeSelected:f,isTaskSelected:d,markUserTabSelection:l,openConfidence:m,openNodeDetail:p}},JLt={class:`ai-activity-message-title-text`},YLt={class:`flow-agent-title-label`},XLt={class:`flow-agent-stat-tooltip`},ZLt={class:`flow-agent-stat-tooltip-status`},QLt={class:`flow-agent-stat-tooltip-label`},$Lt=[`onClick`],eRt={class:`flow-agent-task-state-icon`},tRt={class:`flow-agent-task-name`},nRt={key:0,class:`flow-agent-task-trailing`},rRt={class:`flow-agent-task-time`},iRt=[`onClick`],aRt={class:`flow-agent-task-nodes`},oRt={class:`flow-agent-node-status`},sRt=[`title`],cRt={key:0,class:`flow-agent-node-trailing`},lRt={class:`flow-agent-node-time`},uRt={class:`flow-agent-node-actions`},dRt=[`onClick`],fRt=(0,t.defineComponent)({__name:`flow-agent-content`,props:(0,t.mergeModels)({content:{},messageUid:{},onInterruptResume:{type:Function},status:{}},{collapsed:$({type:Boolean},{default:!1}),collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let n=e,r=v5(),i=(0,t.useModel)(e,`collapsed`),a=Ykt(),o=(0,t.computed)(()=>a.value!==n5.Share),s=(0,t.computed)(()=>n.status===e5.Pending||n.status===e5.Streaming),{isTaskExpanded:l,taskList:u,toggleTaskExpanded:d,viewTasks:f,visibleStats:p}=_Lt((0,t.toRef)(n,`content`)),{isNodeSelected:m,isTaskSelected:h,openConfidence:g,openNodeDetail:_}=qLt({messageUid:(0,t.toRef)(n,`messageUid`),taskList:u}),{getNodeActions:v}=yLt({onInterruptResume:(0,t.toRef)(n,`onInterruptResume`),openNodeDetail:_});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(s9,{collapsed:i.value,"onUpdate:collapsed":n[0]||=e=>i.value=e,"activity-type":(0,t.unref)(Q8).FlowAgent,class:`flow-agent-activity`},{title:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Jl),(0,t.mergeProps)({class:`flow-agent-title-bar`,theme:`ai-chat-box-light light`},$($({},(0,t.unref)(r)),{},{tag:`div`,arrow:!0,followCursor:!1,offset:[0,10]})),{content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,XLt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(p),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.key,class:`flow-agent-stat-tooltip-item`},[(0,t.createElementVNode)(`span`,ZLt,[e.key===`running`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`flow-agent-stat-dot`,style:(0,t.normalizeStyle)({borderColor:e.dotColor})},null,4))]),(0,t.createElementVNode)(`span`,QLt,(0,t.toDisplayString)(e.label)+`:`,1),(0,t.createElementVNode)(`span`,{class:`flow-agent-stat-tooltip-count`,style:(0,t.normalizeStyle)({color:e.color})},(0,t.toDisplayString)(e.display),5)]))),128))])]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ai-activity-message-title-icon`,{"icon-collapsed":i.value}])},[s.value?((0,t.openBlock)(),(0,t.createBlock)(d5,{key:0,size:12})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s5),{key:1}))],2),(0,t.createElementVNode)(`span`,JLt,[(0,t.createElementVNode)(`span`,YLt,(0,t.toDisplayString)((0,t.unref)(Y8)(`执行情况`))+`:`,1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(p),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e.key,class:`flow-agent-stat-item`},[e.key===`running`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,class:`flow-agent-stat-loading`,mode:`spin`,size:`mini`,theme:`primary`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`flow-agent-stat-dot`,style:(0,t.normalizeStyle)({borderColor:e.dotColor})},null,4)),(0,t.createElementVNode)(`span`,{class:`flow-agent-stat-count`,style:(0,t.normalizeStyle)({color:e.color})},(0,t.toDisplayString)(e.display),5)]))),128))])]),_:1},16)]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(f),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.taskId,class:`flow-agent-task-group`},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`flow-agent-task-header`,{"has-confidence":e.hasConfidence,"is-selected":(0,t.unref)(h)(e.raw)}])},[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`flow-agent-task-arrow`,{"is-expanded":(0,t.unref)(l)(e.raw)}]),onClick:(0,t.withModifiers)(n=>(0,t.unref)(d)(e.raw),[`stop`])},[(0,t.createVNode)((0,t.unref)(s5))],10,$Lt),(0,t.createElementVNode)(`span`,eRt,[e.convergedState===`running`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.stateIcon),{key:1}))]),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,tRt,[(0,t.createVNode)((0,t.unref)(o9),{text:e.taskName},null,8,[`text`])])),[[(0,t.unref)(y5),$({},(0,t.unref)(r))]]),o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,nRt,[(0,t.createElementVNode)(`span`,rRt,(0,t.toDisplayString)(e.totalTimeText),1),e.hasConfidence?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`flow-agent-task-action-btn flow-agent-task-confidence-btn`,onClick:(0,t.withModifiers)(n=>(0,t.unref)(g)(e.raw),[`stop`])},[(0,t.createVNode)((0,t.unref)(c5)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.confidenceTitle??(0,t.unref)(Y8)(`有效证据`)),1)],8,iRt)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)],2),(0,t.withDirectives)((0,t.createElementVNode)(`div`,aRt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.nodes,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:(0,t.normalizeClass)([`flow-agent-node-item`,{"is-selected":(0,t.unref)(m)(e.raw,n.raw)}])},[(0,t.createElementVNode)(`span`,oRt,[n.convergedState===`running`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`flow-agent-status-dot`,style:(0,t.normalizeStyle)({borderColor:n.dotColor})},null,4))]),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:`flow-agent-node-name`,title:n.name},[(0,t.createVNode)((0,t.unref)(o9),{text:n.name},null,8,[`text`])],8,sRt)),[[(0,t.unref)(y5),$({},(0,t.unref)(r))]]),o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,cRt,[(0,t.createElementVNode)(`span`,lRt,(0,t.toDisplayString)(n.elapsedTimeText),1),(0,t.createElementVNode)(`span`,uRt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(v)(e,n),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e.id,class:`flow-agent-node-action-btn`,onClick:(0,t.withModifiers)(t=>e.run(),[`stop`])},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon))),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.label),1)],8,dRt))),128))])])):(0,t.createCommentVNode)(``,!0)],2))),128))],512),[[t.vShow,(0,t.unref)(l)(e.raw)]])]))),128))]),_:1},8,[`collapsed`,`activity-type`]))}}),pRt={class:`ai-activity-message-title-icon`},mRt={class:`ai-activity-message-title-text`},hRt={class:`knowledge-rag-content`},gRt=(0,t.defineComponent)({__name:`knowledge-rag-content`,props:(0,t.mergeModels)({content:{},messageUid:{},status:{}},{collapsed:$({type:Boolean},{default:!1}),collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let n=e,r=(0,t.useModel)(e,`collapsed`),i=(0,t.computed)(()=>n.status===e5.Pending||n.status===e5.Streaming),a=(0,t.computed)(()=>i.value?Y8(`检索中`):Y8(`检索完成`));return(n,o)=>((0,t.openBlock)(),(0,t.createBlock)(s9,{collapsed:r.value,"onUpdate:collapsed":o[0]||=e=>r.value=e},{title:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,pRt,[i.value?((0,t.openBlock)(),(0,t.createBlock)(d5,{key:0})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o5),{key:1,style:{"font-size":`12px`}}))]),(0,t.createElementVNode)(`span`,mRt,(0,t.toDisplayString)(a.value),1)]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,hRt,[(0,t.createVNode)(D7,{content:e.content?.content||``},null,8,[`content`])]),(0,t.createVNode)(O7,{content:e.content?.referenceDocument||[]},null,8,[`content`])]),_:1},8,[`collapsed`]))}}),_Rt={class:`ai-activity-message-title-icon`},vRt={class:`ai-activity-message-title-text`},yRt=(0,t.defineComponent)({__name:`reference-doc-content`,props:(0,t.mergeModels)({content:{},messageUid:{}},{collapsed:$({type:Boolean},{default:!1}),collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let n=e,r=(0,t.useModel)(e,`collapsed`),i=(0,t.computed)(()=>{let e=n.content?.length??0;return J8?`Reference ${e} documents as reference`:`引用 ${e} 篇资料作为参考`});return(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(s9,{collapsed:r.value,"onUpdate:collapsed":a[0]||=e=>r.value=e},{title:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,_Rt,[(0,t.createVNode)((0,t.unref)(o5),{style:{"font-size":`12px`}})]),(0,t.createElementVNode)(`span`,vRt,(0,t.toDisplayString)(i.value),1)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(O7,{content:e.content||[]},null,8,[`content`])]),_:1},8,[`collapsed`]))}}),bRt=(0,t.defineComponent)({__name:`activity-message`,props:(0,t.mergeModels)({activityType:{},content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{},onInterruptResume:{type:Function}},{collapsed:$({type:Boolean},{default:!1}),collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let n={[Q8.FlowAgent]:fRt,[Q8.KnowledgeRag]:gRt,[Q8.ReferenceDocument]:yRt},r=e,i=(0,t.useModel)(e,`collapsed`),a=(0,t.computed)(()=>n[r.activityType??``]);return(n,r)=>a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(a.value),{key:0,collapsed:i.value,"onUpdate:collapsed":r[0]||=e=>i.value=e,content:e.content,"message-uid":e.uid,"on-interrupt-resume":e.onInterruptResume,status:e.status},null,40,[`collapsed`,`content`,`message-uid`,`on-interrupt-resume`,`status`])):(0,t.createCommentVNode)(``,!0)}}),xRt={class:`toolcall-desc`},SRt={class:`desc-title`},CRt={class:`desc-panel`},wRt={class:`desc-label`},TRt={class:`desc-value`},_9=(0,t.defineComponent)({__name:`desc-panel`,props:{desc:{},title:{}},setup(e){let n=e,r=e=>e==null?``:typeof e==`object`?JSON.stringify(e):String(e),i=(0,t.computed)(()=>{try{return JSON.parse(n.desc||``)}catch{return n.desc}});return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xRt,[(0,t.createElementVNode)(`div`,SRt,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`div`,CRt,[i.value!==null&&typeof i.value==`object`?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:`desc-panel-item`},[(0,t.createElementVNode)(`span`,wRt,[(0,t.createVNode)((0,t.unref)(o9),{text:String(n)},null,8,[`text`]),a[0]||=(0,t.createTextVNode)(`:`,-1)]),(0,t.createElementVNode)(`span`,TRt,[(0,t.createVNode)((0,t.unref)(o9),{style:{"word-break":`break-all`},text:r(e)},null,8,[`text`])])]))),128)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o9),{key:1,style:{wordBreak:`break-all`},text:r(i.value)},null,8,[`text`]))])]))}}),ERt={class:`tool-message`},DRt=(0,t.defineComponent)({__name:`tool-message`,props:{duration:{},error:{type:[Boolean,String]},toolCallId:{},content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ERt,[(0,t.createVNode)(_9,{desc:e.content||(typeof e.error==`string`?e.error:void 0),title:(0,t.unref)(Y8)(`返回内容`)},null,8,[`desc`,`title`])]))}}),ORt={class:`ai-toolcall-render`},kRt={class:`toolcall-header-title`},ARt={class:`toolcall-status-title`},jRt={key:1,class:`toolcall-duration`},MRt={class:`ai-toolcall-render-content`},NRt=(0,t.defineComponent)({__name:`toolcall-render`,props:{duration:{},status:{},toolCall:{}},setup(e){let n=e,r=(0,t.shallowRef)(!0),i=(0,t.shallowRef)(null),a=v5(),{keywordMatched:o,keyword:s}=Qkt(()=>[n.toolCall?.function.name,n.toolCall?.function.mcpName,n.toolCall?.function.description,n.toolCall?.function.arguments,n.toolCall?.id]),l=(0,t.computed)(()=>{var e;return i.value===null?!(s==null||(e=s.value)==null)&&e.trim()?!o.value:r.value:i.value});function u(){r.value=!l.value,i.value=r.value}let d=(0,t.computed)(()=>{let e=n.toolCall?.function.mcpName||``,t=n.toolCall?.function.name||n.toolCall?.id||``;return e?`${e} / ${t}`:t}),f=(0,t.computed)(()=>{var e;switch(n.status){default:case e5.Pending:return Y8(`调用中`);case e5.Complete:case e5.Success:return Y8(`调用成功`);case e5.Error||((e=n.toolCall)==null||(e=e.toolMessage)==null?void 0:e.error):return Y8(`调用失败`)}}),p=(0,t.computed)(()=>{var e;let t=n.duration||((e=n.toolCall)==null||(e=e.toolMessage)==null?void 0:e.duration);return t?PDt(t):``});return(n,r)=>{var i,o;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,ORt,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ai-toolcall-render-header`,`toolcall-status-${e.status}`]),onClick:u},[(0,t.createVNode)((0,t.unref)(s5),{class:(0,t.normalizeClass)({"is-collapsed":l.value})},null,8,[`class`]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((i=e.toolCall)!=null&&i.function.mcpName?(0,t.unref)(Y8)(`调用 MCP:`):(0,t.unref)(Y8)(`调用工具:`))+` `,1),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,kRt,[(0,t.createVNode)((0,t.unref)(o9),{text:d.value},null,8,[`text`])])),[[(0,t.unref)(y5),$($({},(0,t.unref)(a)),{},{text:d.value,appendTo:`parent`})]]),(0,t.createElementVNode)(`span`,ARt,[e.status===(0,t.unref)(e5).Pending||e.status===(0,t.unref)(e5).Streaming?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(o9),{text:f.value},null,8,[`text`]),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,jRt,` (`+(0,t.toDisplayString)(p.value)+`) `,1)):(0,t.createCommentVNode)(``,!0)])],2),(0,t.withDirectives)((0,t.createElementVNode)(`div`,MRt,[(0,t.createVNode)(_9,{desc:e.toolCall?.function.description,title:(0,t.unref)(Y8)(`描述`)},null,8,[`desc`,`title`]),(0,t.createVNode)(_9,{desc:e.toolCall?.function.arguments,title:(0,t.unref)(Y8)(`参数`)},null,8,[`desc`,`title`]),(o=e.toolCall)!=null&&o.toolMessage?((0,t.openBlock)(),(0,t.createBlock)(DRt,(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.toolCall.toolMessage)),null,16)):(0,t.createCommentVNode)(``,!0)],512),[[t.vShow,!l.value]])])}}}),PRt={class:`ai-assistant-message`},FRt={class:`ai-assistant-message-content`},IRt=(0,t.defineComponent)({__name:`assistant-message`,props:{toolCalls:{},content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,PRt,[(0,t.createElementVNode)(`div`,FRt,[(0,t.renderSlot)(n.$slots,`default`,(0,t.normalizeProps)((0,t.guardReactiveProps)({content:e.content})),()=>[(0,t.createVNode)(k7,{content:e.content||``,status:e.status,type:(0,t.unref)(Q8).Text},null,8,[`content`,`status`,`type`])])]),e.toolCalls&&e.toolCalls.length>0?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.toolCalls,n=>((0,t.openBlock)(),(0,t.createBlock)(NRt,{key:n.id,status:e.status,"tool-call":n},null,8,[`status`,`tool-call`]))),128)):(0,t.createCommentVNode)(``,!0)]))}}),LRt={class:`info-message`},RRt=(0,t.defineComponent)({__name:`info-message`,props:{content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,LRt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Array.isArray(e.content)?e.content:[e.content],(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:`info-message-content`},(0,t.toDisplayString)(e),1))),128))]))}}),zRt={class:`ai-tool-approval-card`},BRt={class:`ai-tool-approval-card__header`},VRt={class:`ai-tool-approval-card__title-wrap`},HRt={class:`ai-tool-approval-card__title`},URt={class:`ai-tool-approval-card__fields`},WRt={class:`ai-tool-approval-card__field`},GRt={class:`ai-tool-approval-card__field`},KRt={class:`ai-tool-approval-card__processor`},qRt={class:`ai-tool-approval-card__processor-text`},JRt={class:`ai-tool-approval-card__actions`},YRt=(0,t.defineComponent)({__name:`tool-approval-card`,props:{interrupt:{},onInterruptResume:{type:Function},readonly:{type:Boolean}},setup(e){let n=e,r=v5(),{copy:i}=h5(),a=new Set([X8.PENDING,X8.DRAFT]),o=new Set([X8.ABANDONED,X8.CANCELLED,X8.EXPIRED,X8.REJECTED]),s=(0,t.computed)(()=>n.interrupt.metadata?.ticket??{approvers:[],sn:``,status:X8.PENDING,submit_time:``,title:``,url:``}),l=(0,t.computed)(()=>a.has(s.value.status)),u=(0,t.computed)(()=>l.value?`pending`:s.value.status),d=(0,t.computed)(()=>l.value?Y8(`评审中`):LDt[s.value.status]??s.value.status),f=(0,t.computed)(()=>s.value.approvers.filter(Boolean).join(`、`)||Y8(`无`)),p=(0,t.computed)(()=>s.value.url||s.value.sn),m=()=>{s.value.url&&window.open(s.value.url,`_blank`,`noopener`)},h=()=>{p.value&&i(p.value)},g=()=>{var e;(e=n.onInterruptResume)==null||e.call(n,{operation:t5.ApprovalCancel,payload:{interrupt_id:n.interrupt.id}},n.interrupt)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,zRt,[(0,t.createElementVNode)(`header`,BRt,[(0,t.createElementVNode)(`div`,VRt,[i[0]||=(0,t.createElementVNode)(`span`,{class:`ai-tool-approval-card__title-bar`},null,-1),(0,t.createElementVNode)(`span`,HRt,(0,t.toDisplayString)(s.value.title||(0,t.unref)(Y8)(`算法方案评审单`)),1),(0,t.withDirectives)((0,t.createVNode)((0,t.unref)(WOt),{class:(0,t.normalizeClass)([`ai-tool-approval-card__copy-icon`,{"is-disabled":!p.value}]),onClick:h},null,8,[`class`]),[[(0,t.unref)(Xl),$($({},(0,t.unref)(r)),{},{content:(0,t.unref)(Y8)(`复制单据链接`),theme:`ai-chat-box`,offset:[0,8]})]])]),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ai-tool-approval-card__status`,`ai-tool-approval-card__status--${u.value}`])},[s.value.status===(0,t.unref)(X8).APPROVED?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(DOt),{key:0,class:`ai-tool-approval-card__status-icon`})):(0,t.unref)(o).has(s.value.status)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(kOt),{key:1,class:`ai-tool-approval-card__status-icon`})):s.value.status===(0,t.unref)(X8).REVOKED?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(AOt),{key:2,class:(0,t.normalizeClass)([`ai-tool-approval-card__status-icon`,{"ai-tool-approval-card__status-icon--revoked":s.value.status===(0,t.unref)(X8).REVOKED}])},null,8,[`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:3,class:`ai-tool-approval-card__status-icon`,mode:`spin`,size:`mini`,theme:`primary`})),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(d.value),1)],2)]),(0,t.createElementVNode)(`dl`,URt,[(0,t.createElementVNode)(`div`,WRt,[(0,t.createElementVNode)(`dt`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`单据编号`)),1),(0,t.createElementVNode)(`dd`,null,(0,t.toDisplayString)(s.value.sn||`--`),1)]),(0,t.createElementVNode)(`div`,GRt,[(0,t.createElementVNode)(`dt`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`提交时间`)),1),(0,t.createElementVNode)(`dd`,null,(0,t.toDisplayString)(s.value.submit_time||`--`),1)])]),(0,t.createElementVNode)(`div`,KRt,[(0,t.createVNode)((0,t.unref)(OOt),{class:`ai-tool-approval-card__processor-icon`}),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,qRt,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`当前处理人`))+`:`+(0,t.toDisplayString)(f.value),1)])),[[(0,t.unref)(y5),$({},(0,t.unref)(r))]])]),(0,t.createElementVNode)(`div`,JRt,[(0,t.createVNode)((0,t.unref)(Go),{class:`ai-tool-approval-card__detail`,disabled:!s.value.url,theme:`primary`,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`查看单据详情`))+` `,1),i[1]||=(0,t.createElementVNode)(`span`,{class:`ai-tool-approval-card__detail-icon`},null,-1)]),_:1},8,[`disabled`]),l.value&&!e.readonly?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Go),{key:0,class:`ai-tool-approval-card__cancel`,outline:``,theme:`primary`,onClick:g},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消审批`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]))}}),XRt={class:`ai-interrupt-message`},ZRt={key:0,class:`ai-interrupt-message__content`},QRt={key:1,class:`ai-interrupt-message__fallback`},$Rt=(0,t.defineComponent)({__name:`interrupt-message`,props:{content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{},onInterruptResume:{type:Function}},setup(e){let n={[Z8.AIDevToolApproval]:YRt},r=e=>({id:e.interruptId||e.id||``,reason:Z8.AIDevToolApproval,toolCallId:``,metadata:e.payload.metadata}),i={[Z8.AIDevToolApproval]:e=>({component:YRt,props:{interrupt:r(e),readonly:!0}}),[Z8.UserQuestion]:e=>({component:MIt,props:{answers:e.payload?.answers??[],status:e.status}})},a=new Set([Z8.UserQuestion]),o=e,s=(0,t.computed)(()=>{var e;return((e=o.content)==null||(e=e.outcome)==null?void 0:e.type)===`interrupt`?o.content.outcome.interrupts:[]}),l=(0,t.computed)(()=>o.content?.message),u=e=>n[e.reason],d=e=>a.has(e.reason),f=(0,t.computed)(()=>{var e;if(((e=o.content)==null||(e=e.outcome)==null?void 0:e.type)!==`success`)return;let t=o.content?.result;if(t)return i[t.reason]?.call(i,t)});return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,XRt,[l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ZRt,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n.toolCallId},[u(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(u(n)),{key:0,interrupt:n,"on-interrupt-resume":e.onInterruptResume},null,40,[`interrupt`,`on-interrupt-resume`])):d(n)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,QRt,(0,t.toDisplayString)(n.message||(0,t.unref)(Y8)(`暂不支持的中断消息`)),1))],64))),128)),f.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(f.value.component),(0,t.normalizeProps)((0,t.mergeProps)({key:1},f.value.props)),(0,t.createSlots)({_:2},[n.$slots.answeredQuestion?{name:`answer`,fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(n.$slots,`answeredQuestion`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)))]),key:`0`}:void 0]),1040)):(0,t.createCommentVNode)(``,!0)]))}}),ezt={class:`ai-loading-message`},tzt=(0,t.defineComponent)({__name:`loading-message`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ezt,[(0,t.createVNode)(d5,{size:18}),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`请求中...`)),1)])]))}}),nzt={class:`ai-reasoning-message`},rzt={key:0,class:`ai-reasoning-message-title-icon`},izt={class:`ai-reasoning-message-title-text`},azt={class:`ai-reasoning-message-content`},ozt=(0,t.defineComponent)({__name:`reasoning-message`,props:(0,t.mergeModels)({duration:{},content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{}},{collapsed:$({type:Boolean},{default:!1}),collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let n=e,r=(0,t.useModel)(e,`collapsed`),{stop:i}=(0,t.watch)(()=>n.duration,function(){var e=f5(function*(e){e&&(r.value=!0,yield(0,t.nextTick)(),i?.())});return function(t){return e.apply(this,arguments)}}(),{immediate:!0}),a=(0,t.computed)(()=>{switch(n.status){case e5.Pending:return Y8(`思考中`);case e5.Success:case e5.Complete:return Y8(`已思考完成`)+(n.duration?` (${Y8(`耗时`)} :${PDt(n.duration)})`:``);case e5.Error:return Y8(`思考失败`);default:return Y8(`思考中`)}});return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,nzt,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ai-reasoning-message-title`,{"ai-reasoning-message-title-collapsed":r.value,"is-thinking":e.status===(0,t.unref)(e5).Pending||e.status===(0,t.unref)(e5).Streaming,"is-complete":e.status===(0,t.unref)(e5).Complete||e.status===(0,t.unref)(e5).Success,"is-error":e.status===(0,t.unref)(e5).Error}]),onClick:i[0]||=e=>r.value=!r.value},[e.status===(0,t.unref)(e5).Pending||e.status===(0,t.unref)(e5).Streaming?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rzt,[(0,t.createVNode)(d5)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,izt,(0,t.toDisplayString)(a.value),1),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ai-reasoning-message-title-icon collapsed-icon`,{"is-collapsed":r.value}])},[(0,t.createVNode)((0,t.unref)(l5))],2)],2),(0,t.withDirectives)((0,t.createElementVNode)(`div`,azt,[e.status===(0,t.unref)(e5).Error?((0,t.openBlock)(),(0,t.createBlock)(qNt,{key:0,content:e.content?.join(`
3484
- `)||``},null,8,[`content`])):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(Array.isArray(e.content)?e.content:[e.content],e=>((0,t.openBlock)(),(0,t.createBlock)(D7,{key:e,content:e},null,8,[`content`]))),128))],512),[[t.vShow,!r.value]])]))}}),szt={class:`ai-key-value-content`},czt={key:0,class:`ai-key-value-title`},lzt={class:`ai-key-value-content`},uzt={class:`item-key`},dzt={class:`item-value`},fzt=(0,t.defineComponent)({__name:`key-value-content`,props:{content:{},title:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,szt,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,czt,[(0,t.createVNode)((0,t.unref)(LOt)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.title),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,lzt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.content,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.key,class:`key-value-item`},[(0,t.createElementVNode)(`div`,uzt,(0,t.toDisplayString)(e.key),1),r[0]||=(0,t.createTextVNode)(` : `,-1),(0,t.createElementVNode)(`div`,dzt,(0,t.toDisplayString)(e.value),1)]))),128))])]))}}),pzt={class:`ai-user-message`},mzt={key:0,class:`ai-user-message-binary-files`},hzt={key:1,class:`ai-user-message-content`},gzt={class:`user-edit-footer`},_zt=(0,t.defineComponent)({__name:`user-message`,props:{content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{},onAction:{type:Function},tippyOptions:{},messageToolsStatus:{},onInputConfirm:{type:Function},onShortcutConfirm:{type:Function}},setup(e){let n=e,r=Pkt(),{copy:i}=h5(),a=(0,t.shallowRef)(!1),o=(0,t.shallowRef)(``),s=(0,t.useTemplateRef)(`chatInputRef`),l=(0,t.computed)(()=>{var e;let t=(e=n.property)==null||(e=e.extra)==null?void 0:e.cite;if(!(!t||typeof t==`string`))return t.title}),u=(0,t.computed)(()=>{var e;let t=(e=n.property)==null||(e=e.extra)==null?void 0:e.cite;return!t||typeof t==`string`?t:t.data}),d=(0,t.computed)(()=>{var e,t;if(!((e=n.property)!=null&&e.extra))return null;let{extra:r}=n.property,{shortcut:i,cite:a,context:o}=r||{};if(i)return i;if(a&&typeof a==`object`&&(t=a.data)!=null&&t.length){let e=[];for(let t of a.data){let n=o?.find(e=>e.__label===t.key);n!=null&&n.__key&&e.push({formItemProps:{label:n.__label,required:!!n.fillBack},props:{default:n.__value},key:n.__key,type:`textarea`})}return{components:e,name:a.title}}return null}),f=e=>!!e.url||fDt(e.mimeType||e.file?.type),p=(0,t.computed)(()=>Array.isArray(n.content)?n.content?.filter(e=>e.type===Q8.Binary):[]),m=(0,t.computed)(()=>p.value.filter(e=>f(e))),h=(0,t.computed)(()=>p.value.filter(e=>!f(e))),g=(0,t.computed)(()=>n.content?typeof n.content==`string`?n.content:n.content?.filter(e=>{var t;return e.type===Q8.Text&&!!((t=e.text)!=null&&t.trim())}):``),_=function(){var e=f5(function*(e){if(e.id===`edit`){if(typeof n.content==`string`&&(o.value=n.content,a.value=!0),typeof g.value==`string`&&(o.value=g.value,a.value=!0),Array.isArray(g.value)){let e=g.value.at(0);o.value=typeof e==`string`?e:e?.text||``,a.value=!0}p.value.length&&(a.value=!0)}else e.id===`copy`&&i(typeof n.content==`string`?n.content:JSON.stringify(n.content||``));yield n.onAction?.call(n,e)});return function(t){return e.apply(this,arguments)}}(),v=function(){var e=f5(function*(){var e,t;yield(e=s.value)==null||(t=e.triggerSendMessage)==null?void 0:t.call(e),a.value=!1});return function(){return e.apply(this,arguments)}}(),y=()=>{a.value=!1},b=()=>{a.value=!1},x=function(){var e=f5(function*(e){var t;(t=n.onShortcutConfirm)==null||t.call(n,e),a.value=!1});return function(t){return e.apply(this,arguments)}}(),S=function(){var e=f5(function*(e,t){var r;(r=n.onInputConfirm)==null||r.call(n,e,t),a.value=!1});return function(t,n){return e.apply(this,arguments)}}();return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pzt,[u.value&&typeof u.value==`string`?((0,t.openBlock)(),(0,t.createBlock)(pFt,{key:0,class:`ai-user-message-cite`,content:u.value},null,8,[`content`])):(0,t.createCommentVNode)(``,!0),a.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[d.value?((0,t.openBlock)(),(0,t.createBlock)(bkt,(0,t.mergeProps)({key:0},d.value,{class:`user-shortcut-render`,onClose:b,onSubmit:x}),null,16)):((0,t.openBlock)(),(0,t.createBlock)(gIt,{key:1,ref_key:`chatInputRef`,ref:s,modelValue:o.value,"onUpdate:modelValue":i[0]||=e=>o.value=e,class:`user-edit-input`,"default-upload-files":p.value,"on-send-message":S,"support-upload":(0,t.unref)(r)?.supportUpload.value??!1},{"send-icon":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,gzt,[(0,t.createVNode)((0,t.unref)(Go),{size:`small`,onClick:y},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1}),(0,t.createVNode)((0,t.unref)(Go),{size:`small`,theme:`primary`,onClick:v},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`发送`)),1)]),_:1})])]),_:1},8,[`modelValue`,`default-upload-files`,`support-upload`]))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[p.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[m.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mzt,[(0,t.createVNode)(i9,{files:m.value,readonly:!0},null,8,[`files`])])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(h.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.url??n,class:`ai-user-message-binary-files`},[(0,t.createVNode)(i9,{files:[e],readonly:!0},null,8,[`files`])]))),128))],64)):(0,t.createCommentVNode)(``,!0),(u.value||g.value).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hzt,[Array.isArray(u.value)?((0,t.openBlock)(),(0,t.createBlock)(fzt,{key:0,content:u.value,title:l.value},null,8,[`content`,`title`])):e.content?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(Array.isArray(g.value)?g.value:[g.value],(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[typeof e==`string`?((0,t.openBlock)(),(0,t.createBlock)(D7,{key:0,content:e},null,8,[`content`])):e.type===(0,t.unref)(Q8).Text?((0,t.openBlock)(),(0,t.createBlock)(D7,{key:1,content:e.text},null,8,[`content`])):(0,t.createCommentVNode)(``,!0)],64))),128)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),e.messageToolsStatus===(0,t.unref)(n9).Hidden?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(dLt,{key:2,class:`ai-user-message-tools`,"message-tools":(0,t.unref)(UDt),"message-tools-status":e.messageToolsStatus,"on-action":_,"tippy-options":e.tippyOptions,"update-tools":[]},null,8,[`message-tools`,`message-tools-status`,`tippy-options`]))],64))]))}}),v9=(0,t.defineComponent)({__name:`message-render`,props:{messageToolsStatus:{},onInputConfirm:{type:Function},onShortcutConfirm:{type:Function},onAction:{type:Function},tippyOptions:{},message:{},onInterruptResume:{type:Function}},setup(e){let n=e,r=(0,t.useSlots)(),i=(0,t.computed)(()=>{switch(n.message.role){case $8.User:return(0,t.h)(_zt,$($({},n.message),{},{onAction:n.onAction,onInputConfirm:n.onInputConfirm,onShortcutConfirm:n.onShortcutConfirm,messageToolsStatus:n.messageToolsStatus,tippyOptions:n.tippyOptions}));case $8.Assistant:return(0,t.h)(IRt,n.message,{default:e=>(0,t.renderSlot)(r,`default`,e,()=>[(0,t.h)(k7,{content:n.message.content||``,status:n.message.status},r.codeHeader?{codeHeader:e=>r.codeHeader?.call(r,e)}:void 0)])});case $8.Info:return(0,t.h)(RRt,n.message);case $8.Reasoning:return(0,t.h)(ozt,n.message);case $8.Tool:return(0,t.h)(DRt,n.message);case $8.Activity:return(0,t.h)(bRt,$($({},n.message),{},{onInterruptResume:n.onInterruptResume}));case $8.Interrupt:return(0,t.h)($Rt,$($({},n.message),{},{onInterruptResume:n.onInterruptResume}),r.answeredQuestion?{answeredQuestion:e=>r.answeredQuestion?.call(r,e)}:void 0);case $8.Loading:return(0,t.h)(tzt,n.message);default:return null}});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i.value)))}}),vzt=[`id`,`onMouseenter`,`onMouseleave`],yzt={class:`ai-message-fixed-bottom`},bzt=(0,t.defineComponent)({__name:`message-container`,props:(0,t.mergeModels)({enableSelection:{type:Boolean,default:!1},messageGroups:{},messages:{},messageStatus:{},messageToolsStatus:{},messageToolsTippyOptions:{},onAgentAction:{},onAgentFeedback:{},onInterruptResume:{},onUserAction:{},renderMode:{},onUserInputConfirm:{},onUserShortcutConfirm:{}},{selectedUserMessages:{required:!1},selectedUserMessagesModifiers:{}}),emits:(0,t.mergeModels)([`stopStreaming`],[`update:selectedUserMessages`]),setup(e){let n=e,r=(0,t.useModel)(e,`selectedUserMessages`),i=(0,t.useTemplateRef)(`messageContainerRef`),a=(0,t.useTemplateRef)(`messageContainerBottomRef`),{toScrollBottom:o,debouncedShowScrollBottomBtn:s}=Tkt(i,a),{copy:l}=h5(),u=(0,t.computed)(()=>HDt.filter(e=>n.renderMode!==n5.Test||e.id!==`share`)),d=e=>{e.messages?.at(-1)?.role!==$8.Interrupt&&(e.isHover=!0)},f=(e,t)=>{let n=t.toElement??t.relatedTarget;n instanceof Element&&n.classList.contains(`ai-user-feedback`)||(e.isHover=!1)},p=(e,t)=>{var i;let a=e.type===$8.User;(i=n.messageGroups)==null||i.forEach((r,i)=>{if(r===e){r.checked=t;let e=a?n.messageGroups.at(i+1):n.messageGroups.at(i-1);e&&(e.checked=t)}}),r.value=n.messageGroups?.filter(e=>e.checked).map(e=>e.messages).flat()},m=function(){var e=f5(function*(e,t){return e.id===`copy`&&l(t.filter(e=>e.role!==$8.Reasoning).map(e=>typeof e.content==`string`?e.content:JSON.stringify(e.content||``)).join(`
3485
- `)),n.onAgentAction?.call(n,e,t)});return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=f5(function*(e,t){var r;(r=n.onUserAction)==null||r.call(n,e,t)});return function(t,n){return e.apply(this,arguments)}}(),g=function(){var e=f5(function*(e,t,r){var i;(i=n.onUserInputConfirm)==null||i.call(n,e,t,r)});return function(t,n,r){return e.apply(this,arguments)}}(),_=function(){var e=f5(function*(e,t){var r;(r=n.onUserShortcutConfirm)==null||r.call(n,e,t)});return function(t,n){return e.apply(this,arguments)}}();return(r,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`messageContainerRef`,ref:i,class:`ai-message-container`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.messageGroups,(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:i.uid,key:a,class:`message-group`,style:(0,t.normalizeStyle)({backgroundColor:i.checked?`#f5f7fa`:`transparent`}),onMouseenter:e=>d(i),onMouseleave:e=>f(i,e)},[(0,t.renderSlot)(r.$slots,`group`,(0,t.mergeProps)({ref_for:!0},{group:i}),()=>[e.enableSelection&&i.type!==(0,t.unref)($8).Loading?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ls),{key:0,class:`message-group-checkbox`,"model-value":i.checked,"onUpdate:modelValue":e=>p(i,e)},null,8,[`model-value`,`onUpdate:modelValue`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message-group-messages`,{"message-group-enabled-selection":e.renderMode===(0,t.unref)(n5).Share||e.enableSelection&&i.type!==(0,t.unref)($8).Loading}]),style:(0,t.normalizeStyle)({width:e.enableSelection&&i.type!==(0,t.unref)($8).Loading?`calc(100% - 16px)`:`100%`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.messages,(i,a)=>(0,t.renderSlot)(r.$slots,`default`,(0,t.mergeProps)({key:a,ref_for:!0},{message:i,messageToolsStatus:e.messageToolsStatus,onInterruptResume:n.onInterruptResume}),()=>[((0,t.openBlock)(),(0,t.createBlock)(v9,{key:a,message:i,"message-tools-status":e.messageToolsStatus,"on-action":e=>h(e,i),"on-input-confirm":(e,t)=>g(i,e,t),"on-interrupt-resume":n.onInterruptResume,"on-shortcut-confirm":e=>_(i,e),"tippy-options":e.messageToolsTippyOptions},(0,t.createSlots)({_:2},[r.$slots.answeredQuestion?{name:`answeredQuestion`,fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(r.$slots,`answeredQuestion`,(0,t.mergeProps)({ref_for:!0},e))]),key:`0`}:void 0]),1032,[`message`,`message-tools-status`,`on-action`,`on-input-confirm`,`on-interrupt-resume`,`on-shortcut-confirm`,`tippy-options`]))])),128)),e.renderMode!==(0,t.unref)(n5).Share&&!(e.enableSelection&&i.type!==(0,t.unref)($8).Loading)&&!i.pause&&i.type===(0,t.unref)($8).Assistant&&e.messageToolsStatus!==(0,t.unref)(n9).Hidden?((0,t.openBlock)(),(0,t.createBlock)(dLt,{key:0,"message-tools":u.value,"message-tools-status":e.messageToolsStatus,"on-action":e=>m(e,i.messages),style:(0,t.normalizeStyle)({visibility:i.isHover?`visible`:`hidden`}),"tippy-options":n.messageToolsTippyOptions,onFeedback:(e,t,r)=>n.onAgentFeedback?.call(n,e,i.messages,t,r)},null,8,[`message-tools`,`message-tools-status`,`on-action`,`style`,`tippy-options`,`onFeedback`])):(0,t.createCommentVNode)(``,!0)],6)])],44,vzt))),128)),(0,t.createElementVNode)(`div`,{ref_key:`messageContainerBottomRef`,ref:a,class:`message-container-bottom`,tabindex:`0`},null,512),(0,t.createElementVNode)(`div`,yzt,[(0,t.withDirectives)((0,t.createVNode)(YOt,{loading:e.messageStatus===(0,t.unref)(e5).StopLoading,title:e.messageStatus===(0,t.unref)(e5).StopLoading?(0,t.unref)(Y8)(`正在停止`):(0,t.unref)(Y8)(`停止生成`),onClick:l[0]||=e=>r.$emit(`stopStreaming`)},{icon:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(COt))]),_:1},8,[`loading`,`title`]),[[t.vShow,e.messageStatus===(0,t.unref)(e5).Streaming||e.messageStatus===(0,t.unref)(e5).StopLoading||e.messageStatus===(0,t.unref)(e5).Fetching||e.messageStatus===(0,t.unref)(e5).Pending]]),(0,t.withDirectives)((0,t.createVNode)(YOt,{title:(0,t.unref)(Y8)(`返回底部`),onClick:(0,t.unref)(o)},{icon:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(zOt))]),_:1},8,[`title`,`onClick`]),[[t.vShow,(0,t.unref)(s)]])])],512))}}),xzt={class:`execution-summary`},Szt={class:`execution-summary-header`},Czt={class:`execution-summary-content`},wzt=[`onMouseenter`],Tzt={class:`content-item-header`},Ezt={class:`content-item-title`},Dzt={class:`content-item-messages`},Ozt={key:0,class:`timeline-line`},kzt={key:1,class:`execution-summary-content-empty`},Azt={class:`execution-summary-content-empty-text`},jzt=(0,t.defineComponent)({__name:`execution-summary`,props:{messageGroups:{}},emits:[`locateMessageGroup`,`updateKeyword`],setup(e,{emit:n}){let r=n,i=v5(),{keyword:a}=qkt(),o=(0,t.shallowRef)(void 0),s=e=>{if(!e)return``;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`},l=e=>{r(`locateMessageGroup`,e.uid,e)},u=()=>{a.value=``,r(`updateKeyword`,``)};return(n,d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xzt,[(0,t.createElementVNode)(`div`,Szt,[(0,t.createVNode)((0,t.unref)(ns),{modelValue:(0,t.unref)(a),"onUpdate:modelValue":[d[0]||=e=>(0,t.isRef)(a)?a.value=e:null,d[1]||=e=>r(`updateKeyword`,e)],class:`execution-summary-header-input`,clearable:``,placeholder:(0,t.unref)(Y8)(`搜索 关键字`)},null,8,[`modelValue`,`placeholder`])]),(0,t.createElementVNode)(`div`,Czt,[e.messageGroups.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.messageGroups,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.uid,class:`execution-summary-content-item`,onMouseenter:e=>o.value=n.uid,onMouseleave:d[2]||=e=>o.value=void 0},[(0,t.createElementVNode)(`div`,Tzt,[d[3]||=(0,t.createElementVNode)(`span`,{class:`timeline-dot`},null,-1),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ezt,[(0,t.createTextVNode)((0,t.toDisplayString)(typeof n.userMessageTitle==`number`?s(n.userMessageTitle):n.userMessageTitle),1)])),[[(0,t.unref)(y5),$({},(0,t.unref)(i))]]),(0,t.withDirectives)((0,t.createVNode)((0,t.unref)(Go),{class:`content-item-locate`,text:``,theme:`primary`,onClick:e=>l(n)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`在对话中定位`)),1)]),_:1},8,[`onClick`]),[[t.vShow,o.value===n.uid]])]),(0,t.createElementVNode)(`div`,Dzt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.messages,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(v9,{key:n,message:e},null,8,[`message`]))),128))]),r<e.messageGroups.length-1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ozt)):(0,t.createCommentVNode)(``,!0)],40,wzt))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kzt,[(0,t.createVNode)((0,t.unref)(Xs),{class:`empty-exception`,type:`empty`}),(0,t.createElementVNode)(`div`,Azt,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a)?(0,t.unref)(Y8)(`搜索结果为空`):(0,t.unref)(Y8)(`暂无数据`))+` `,1),(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Go),{key:0,text:``,theme:`primary`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`清空搜索`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]))])]))}}),Mzt=[`class`,`style`],Nzt={class:`ai-message-loading-row`},Pzt={class:`ai-message-loading-icon-wrap`},Fzt={key:0,class:`ai-message-loading-text ai-message-loading-text-custom`},Izt={key:1,"aria-live":`polite`,class:`ai-message-loading-text`},Lzt=(0,t.defineComponent)($($({},{name:`MessageLoading`,inheritAttrs:!1}),{},{__name:`message-loading`,props:{duration:{default:1.8},gap:{default:8},iconSize:{default:32},stagger:{default:.135},text:{default:`加载中...`}},setup(e){let n=e,r=(0,t.useAttrs)(),i=(0,t.computed)(()=>{let{class:e,style:t}=r;return m5(r,Mzt)}),a=(0,t.computed)(()=>({display:`block`,width:`${n.iconSize}px`,height:`${n.iconSize}px`})),o=(0,t.computed)(()=>[...n.text]),s=(0,t.computed)(()=>{let e=r.style,t={"--ai-message-loading-duration":`${n.duration}s`,"--ai-message-loading-stagger":`${n.stagger}s`,"--ai-message-loading-gap":`${n.gap}px`};return e&&typeof e==`object`&&!Array.isArray(e)?$($({},t),e):t});return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({class:[`ai-message-loading`,(0,t.unref)(r).class],style:s.value},i.value),[(0,t.createElementVNode)(`div`,Nzt,[(0,t.createElementVNode)(`span`,Pzt,[(0,t.renderSlot)(e.$slots,`icon`,{},()=>[(0,t.createVNode)((0,t.unref)($Dt),{class:`ai-message-loading-icon-svg`,style:(0,t.normalizeStyle)(a.value)},null,8,[`style`])])]),e.$slots.text?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Fzt,[(0,t.renderSlot)(e.$slots,`text`)])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Izt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:`${n}-${e}`,class:`ai-message-loading-char`,style:(0,t.normalizeStyle)({"--char-index":n})},(0,t.toDisplayString)(e),5))),128))]))])],16))}})),Rzt={class:`ai-selection-footer`},zzt={class:`ai-selection-footer-left`},Bzt={class:`select-all-text`},Vzt={class:`ai-selection-footer-right`},Hzt=(0,t.defineComponent)({__name:`selection-footer`,props:{isAllSelected:{type:Boolean},loading:{type:Boolean},selectedCount:{}},emits:[`cancel`,`confirm`,`toggle-all`],setup(e,{emit:n}){let r=n;return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Rzt,[(0,t.createElementVNode)(`div`,zzt,[(0,t.createVNode)((0,t.unref)(ls),{"model-value":e.isAllSelected,"onUpdate:modelValue":i[0]||=e=>r(`toggle-all`,e)},null,8,[`model-value`]),(0,t.createElementVNode)(`span`,Bzt,(0,t.toDisplayString)((0,t.unref)(Y8)(`全选`)),1)]),(0,t.createElementVNode)(`div`,Vzt,[(0,t.createVNode)((0,t.unref)(Go),{disabled:e.loading,onClick:i[1]||=e=>r(`cancel`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1},8,[`disabled`]),(0,t.createVNode)((0,t.unref)(Go),{disabled:e.selectedCount===0,loading:e.loading,theme:`primary`,onClick:i[2]||=e=>r(`confirm`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`确定`)),1)]),_:1},8,[`disabled`,`loading`])])]))}}),Uzt=[`data-ai-size`],Wzt={key:0,class:`ai-chat-container-loading`},Gzt={class:`screen-wrapper`},Kzt={key:1,class:`ai-welcome-content`},qzt={class:`ai-welcome-title`},Jzt={key:0,class:`ai-welcome-remark`},Yzt=(0,t.defineComponent)({__name:`chat-container`,props:(0,t.mergeModels)({chatLoading:{type:Boolean},commonTippyOptions:{},getSideRenderComponent:{},getSideTabRenderComponent:{},onCustomTabChange:{},openingRemark:{},placement:{default:`left`},resizeProps:{},size:{default:`small`},welcomeTitle:{},defaultUploadFiles:{},inputMaxHeight:{},messageStatus:{},modelValue:{},onSendMessage:{},onStopSending:{},onUpload:{},placeholder:{},prompts:{},resources:{},sendDisabledTip:{},shortcutId:{},shortcuts:{},skills:{},supportUpload:{type:Boolean},tippyOptions:{},messages:{},messageToolsStatus:{},onAgentAction:{},onAgentFeedback:{},onInterruptResume:{},onUserAction:{},renderMode:{},onUserInputConfirm:{},onUserShortcutConfirm:{}},{renderMode:{required:!1,default:n5.Chat},renderModeModifiers:{},selectedShortcut:{required:!1},selectedShortcutModifiers:{},cite:{required:!1,default:``},citeModifiers:{}}),emits:(0,t.mergeModels)([`selectShortcut`,`deleteShortcut`,`update:modelValue`,`stopStreaming`,`shortcutClose`,`shortcutSubmit`,`confirmShare`,`collapseChange`],[`update:renderMode`,`update:selectedShortcut`,`update:cite`]),setup(e,{expose:n,emit:r}){let i=mhe.TabPanel,a=e,o=(0,t.useModel)(e,`renderMode`),s=(0,t.useTemplateRef)(`fullScreenRef`),{isFullScreen:l,enter:u,exit:d}=jkt(s);Jkt({renderMode:o});let f=(0,t.computed)(()=>$($({collapsible:!1,immediate:!0,min:400},a.resizeProps),{},{placement:a.placement})),p=(0,t.computed)(()=>a.getSideRenderComponent?.call(a,t.h,v.value.data?.props??{})??v.value.data?.component);Nkt({size:(0,t.computed)(()=>a.size??`small`),supportUpload:(0,t.computed)(()=>a.supportUpload??!1)}),(0,t.watch)(()=>a.size??`small`,e=>{typeof document<`u`&&(document.body.dataset.aiSize=e)},{immediate:!0});let m=(0,t.useModel)(e,`selectedShortcut`),h=(0,t.useModel)(e,`cite`),g=r;Xkt({tippyOptions:(0,t.computed)(()=>a.commonTippyOptions??{})});let{tabs:_,selectedTab:v,isCollapse:y,addCustomTab:b,removeCustomTab:x,selectCustomTab:S,resetCustomTab:C}=kkt({onTabChange:function(){var e=f5(function*(e){let t=v.value.data?.props||{loading:!0,data:{}};v.value.data=$($({},v.value.data),{},{props:t});let n=yield a.onCustomTabChange?.call(a,e);v.value.data=$($({},v.value.data),{},{props:$($({},t),{},{loading:!1,data:n})})});return function(t){return e.apply(this,arguments)}}()}),w=(0,t.shallowRef)(``),T=(0,t.ref)([]),E=(0,t.shallowRef)(400),D=(0,t.computed)(()=>`calc(100% - ${E.value}px)`),{messageGroups:O,executionGroups:k,isShareMode:A,isAllSelected:j,onToggleShareAll:M,onCancelShare:N,onConfirmShare:P,pendingApprovalTipText:F,activeUserQuestionInterrupt:I}=Hkt({keyword:w,messages:(0,t.computed)(()=>a.messages),selectedUserMessages:T});(0,t.watch)(y,e=>{e&&(w.value=``,E.value=0),g(`collapseChange`,e,E.value)}),(0,t.watch)(()=>k.value,e=>{!e.length&&!w.value&&C()},{immediate:!0,deep:!1});let L=(0,t.computed)(()=>{var e;return a.messageStatus===e5.StopLoading?e5.StopLoading:(e=O.value)!=null&&e.some(e=>e.messages.some(e=>e.id===`__loading__`))?e5.Fetching:a.messageStatus}),R=()=>{m.value=null,g(`shortcutClose`)},ee=e=>{g(`shortcutSubmit`,e)},z=()=>{g(`deleteShortcut`)},B=e=>{g(`selectShortcut`,e)},V=(e,t)=>{g(`update:modelValue`,e,t)},te=function(){var e=f5(function*(e,t){let n=I.value;return a.onSendMessage?.call(a,e,t,n?{payload:SIt(n),interrupt:n}:void 0)});return function(t,n){return e.apply(this,arguments)}}(),ne=()=>{y.value=!y.value},re=e=>{if(!e)return;let t=document.getElementById(e);if(!t){let t=O.value.find(t=>t.messages.some(t=>t.uid===e));if(t){var n;(n=document.getElementById(t.uid))==null||n.scrollIntoView({behavior:`smooth`})}return}t.scrollIntoView({behavior:`smooth`})},ie=e=>{S(_.value.find(t=>t.name===e))},ae=e=>{w.value=e},H=function(){var e=f5(function*(e,t){if(e.id===`share`){A.value=!0;return}return a.onAgentAction?.call(a,e,t)});return function(t,n){return e.apply(this,arguments)}}(),oe=()=>{g(`confirmShare`,P()),(0,t.nextTick)(()=>{A.value=!1,T.value=[]})},se=e=>{E.value=e};return(0,t.onUnmounted)(()=>{C(),typeof document<`u`&&delete document.body.dataset.aiSize}),n({selectedTab:v,addCustomTab:b,removeCustomTab:x,selectCustomTab:S,enterShareMode:()=>{A.value=!0},exitShareMode:()=>{N()}}),(n,r)=>{var a;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`ai-chat-container`,"data-ai-size":e.size,style:(0,t.normalizeStyle)({"--resize-main-width":D.value,borderTopColor:(0,t.unref)(y)?`transparent`:`#eaebf0`})},[e.chatLoading?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wzt,[(0,t.createVNode)(Lzt)])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ehe),(0,t.mergeProps)({key:1,class:[`ai-chat-container-resize-layout`,{"ai-is-collapse":(0,t.unref)(y)||!((a=w.value)!=null&&a.length)&&(0,t.unref)(k)?.length<1||o.value===(0,t.unref)(n5).Share}]},f.value,{onResizing:se}),{aside:(0,t.withCtx)(()=>{var n,a,f,m;return[!(0,t.unref)(y)&&((n=(0,t.unref)(k))!=null&&n.length||(a=w.value)!=null&&a.length)&&o.value!==(0,t.unref)(n5).Share?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`fullScreenRef`,ref:s,class:`ai-full-screen-wrapper`},[(0,t.createVNode)((0,t.unref)(mhe),{active:(0,t.unref)(v).name,class:`ai-chat-container-tab`,"label-height":40,type:`unborder-card`,onChange:ie},{setting:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Gzt,[(0,t.createVNode)(b5,{class:`screen-btn`,"tippy-options":$($({},e.commonTippyOptions),{},{appendTo:(0,t.unref)(l)?s.value:e.commonTippyOptions?.appendTo,content:(0,t.unref)(l)?(0,t.unref)(Y8)(`退出全屏`):(0,t.unref)(Y8)(`全屏`)})},{default:(0,t.withCtx)(()=>[(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(VOt),{key:1,onClick:(0,t.unref)(d)},null,8,[`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(BOt),{key:0,onClick:(0,t.unref)(u)},null,8,[`onClick`]))]),_:1},8,[`tippy-options`])])]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(_),n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:n.name,class:`ai-chat-container-tab-panel`,label:()=>(0,t.h)(`div`,{class:`ai-execution-summary-label`,onVnodeMounted:e=>{if((0,t.unref)(v).name===n.name){var r;(r=e.el)==null||r.scrollIntoView({behavior:`smooth`})}}},e.getSideTabRenderComponent?.call(e,t.h,n,{removeCustomTab:(0,t.unref)(x)})??[(0,t.h)(n.name===(0,t.unref)(`execution`)?(0,t.unref)(uOt):(0,t.unref)(dOt),{class:`ai-execution-summary-icon`}),(0,t.withDirectives)((0,t.h)(`span`,{class:`ai-execution-summary-label-text`},n.label??``),[[(0,t.unref)(y5),$($({},e.commonTippyOptions),{},{text:n.label??``})]]),n.name===(0,t.unref)(`execution`)?null:(0,t.h)((0,t.unref)(u5),{class:`ai-execution-close-icon`,onClick:()=>{(0,t.unref)(x)(n.name)}})]),name:n.name},null,8,[`label`,`name`]))),128))]),_:1},8,[`active`]),(0,t.unref)(v)?.name===(0,t.unref)(`execution`)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.unref)(y)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(jzt,{key:0,"message-groups":(0,t.unref)(k),style:{height:`calc(100% - 40px)`},onLocateMessageGroup:re,onUpdateKeyword:ae},null,8,[`message-groups`]))],64)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(v)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:(0,t.unref)(v).name,class:`ai-chat-container-message-slot`},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(p.value),(0,t.mergeProps)({key:(0,t.unref)(v).name},(f=(0,t.unref)(v))==null||(f=f.data)==null?void 0:f.props),{locateButton:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Go),{class:`ai-locate-button`,size:`small`,text:``,theme:`primary`,onClick:r[0]||=e=>{var n;return re((n=(0,t.unref)(v))==null||(n=n.data)==null?void 0:n.messageUid)}},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`在对话中定位`)),1)]),_:1})]),_:1},16))])):(0,t.createCommentVNode)(``,!0)],512)):(0,t.createCommentVNode)(``,!0),(m=(0,t.unref)(k))!=null&&m.length&&o.value!==(0,t.unref)(n5).Share?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`collapse-button`,{"is-right":e.placement===`right`,"is-collapsed":(0,t.unref)(y)}]),onClick:ne},[(0,t.createVNode)((0,t.unref)(l5))],2)):(0,t.createCommentVNode)(``,!0)]}),main:(0,t.withCtx)(()=>{var i,a;return[(i=e.messages)!=null&&i.length?(0,t.renderSlot)(n.$slots,`default`,(0,t.normalizeProps)((0,t.mergeProps)({key:0},{messages:e.messages,messageStatus:e.messageStatus,messageGroups:(0,t.unref)(O),selectedUserMessages:T.value,messageToolsStatus:e.messageToolsStatus,isShareMode:(0,t.unref)(A),commonTippyOptions:e.commonTippyOptions,handleAgentAction:H,onAgentFeedback:e.onAgentFeedback,onInterruptResume:e.onInterruptResume,onUserAction:e.onUserAction,onUserInputConfirm:e.onUserInputConfirm,onUserShortcutConfirm:e.onUserShortcutConfirm})),()=>{var i;return[(i=e.messages)!=null&&i.length?((0,t.openBlock)(),(0,t.createBlock)(bzt,{key:0,"selected-user-messages":T.value,"onUpdate:selectedUserMessages":r[1]||=e=>T.value=e,"enable-selection":(0,t.unref)(A),"message-groups":(0,t.unref)(O),"message-status":L.value,"message-tools-status":e.messageToolsStatus,"message-tools-tippy-options":e.commonTippyOptions,messages:e.messages,"on-agent-action":H,"on-agent-feedback":e.onAgentFeedback,"on-interrupt-resume":e.onInterruptResume,"on-user-action":e.onUserAction,"on-user-input-confirm":e.onUserInputConfirm,"on-user-shortcut-confirm":e.onUserShortcutConfirm,"render-mode":o.value,onStopStreaming:r[2]||=e=>g(`stopStreaming`)},{group:(0,t.withCtx)(({group:e})=>[(0,t.renderSlot)(n.$slots,`group`,(0,t.normalizeProps)((0,t.guardReactiveProps)({group:e})))]),default:(0,t.withCtx)(({message:e,messageToolsStatus:r,onInterruptResume:i})=>[(0,t.renderSlot)(n.$slots,`message`,(0,t.normalizeProps)((0,t.guardReactiveProps)({message:e,messageToolsStatus:r,onInterruptResume:i})))]),_:3},8,[`selected-user-messages`,`enable-selection`,`message-groups`,`message-status`,`message-tools-status`,`message-tools-tippy-options`,`messages`,`on-agent-feedback`,`on-interrupt-resume`,`on-user-action`,`on-user-input-confirm`,`on-user-shortcut-confirm`,`render-mode`])):(0,t.createCommentVNode)(``,!0)]}):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Kzt,[(0,t.renderSlot)(n.$slots,`welcome`,(0,t.normalizeProps)((0,t.guardReactiveProps)({openingRemark:e.openingRemark,welcomeTitle:e.welcomeTitle})),()=>[(0,t.createVNode)((0,t.unref)(eOt)),(0,t.createElementVNode)(`h2`,qzt,(0,t.toDisplayString)(e.welcomeTitle??(0,t.unref)(Y8)(`你好,我是小鲸`)),1),e.openingRemark?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Jzt,[(0,t.createVNode)(k7,{content:e.openingRemark},null,8,[`content`])])):(0,t.createCommentVNode)(``,!0)])])),o.value===(0,t.unref)(n5).Share?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.unref)(A)?((0,t.openBlock)(),(0,t.createBlock)(Hzt,{key:0,"is-all-selected":(0,t.unref)(j),loading:!1,"selected-count":T.value.length,onCancel:(0,t.unref)(N),onConfirm:oe,onToggleAll:(0,t.unref)(M)},null,8,[`is-all-selected`,`selected-count`,`onCancel`,`onToggleAll`])):!((a=m.value)==null||(a=a.components)==null)&&a.length?((0,t.openBlock)(),(0,t.createBlock)(bkt,(0,t.mergeProps)({key:1},m.value,{onClose:R,onSubmit:ee}),null,16)):((0,t.openBlock)(),(0,t.createBlock)(gIt,{key:2,cite:h.value,"onUpdate:cite":r[3]||=e=>h.value=e,"message-status":L.value,"model-value":e.modelValue,"on-send-message":te,"on-stop-sending":e.onStopSending,"on-upload":e.onUpload,placeholder:e.placeholder,prompts:e.prompts,resources:e.resources,"send-disabled-tip":(0,t.unref)(F),"shortcut-id":m.value?.id,shortcuts:e.shortcuts,skills:e.skills,"support-upload":e.supportUpload,"tippy-options":e.commonTippyOptions,onDeleteShortcut:z,onSelectShortcut:B,"onUpdate:modelValue":V},{interrupt:(0,t.withCtx)(()=>[(0,t.unref)(I)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(YIt),{key:0,interrupt:(0,t.unref)(I),"on-resume":e.onInterruptResume},{question:(0,t.withCtx)(({question:e,qIndex:r,answer:i,setAnswer:a,confirm:o})=>[(0,t.renderSlot)(n.$slots,`interruptQuestion`,(0,t.normalizeProps)((0,t.guardReactiveProps)({question:e,qIndex:r,answer:i,setAnswer:a,confirm:o})))]),_:3},8,[`interrupt`,`on-resume`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(F)?((0,t.openBlock)(),(0,t.createBlock)(yIt,{key:1,content:(0,t.unref)(F)},null,8,[`content`])):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`cite`,`message-status`,`model-value`,`on-stop-sending`,`on-upload`,`placeholder`,`prompts`,`resources`,`send-disabled-tip`,`shortcut-id`,`shortcuts`,`skills`,`support-upload`,`tippy-options`]))],64))]}),_:3},16,[`class`]))],12,Uzt)}}}),Xzt={class:`ai-image-preview-group`};$($({},{name:`ImagePreviewGroup`}),{},{__name:`image-preview-group`,props:{maskClosable:{type:Boolean,default:!0},onDownload:{type:Function,default:void 0},showInfo:{type:Boolean,default:!1}},setup(e){let n=new Map,r=(0,t.shallowRef)(!1),i=(0,t.shallowRef)([]),a=(0,t.shallowRef)(0);return(0,t.provide)(sFt,{register:(e,t)=>{n.set(e,t)},unregister:e=>{n.delete(e)},preview:e=>{let t=[...n.keys()],o=t.map(e=>n.get(e)()),s=t.indexOf(e);i.value=o,a.value=s>=0?s:0,r.value=!0}}),(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Xzt,[(0,t.renderSlot)(n.$slots,`default`),r.value?((0,t.openBlock)(),(0,t.createBlock)(r9,{key:0,current:a.value,"onUpdate:current":o[0]||=e=>a.value=e,visible:r.value,"onUpdate:visible":o[1]||=e=>r.value=e,images:i.value,"mask-closable":e.maskClosable,"on-download":e.onDownload,"show-info":e.showInfo},(0,t.createSlots)({_:2},[n.$slots.extra?{name:`extra`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra`)]),key:`0`}:void 0]),1032,[`current`,`visible`,`images`,`mask-closable`,`on-download`,`show-info`])):(0,t.createCommentVNode)(``,!0)]))}});var Zzt=[`alt`,`src`],Qzt={key:1,class:`ai-image-error`};$($({},{name:`AiImage`}),{},{__name:`image`,props:{alt:{default:``},height:{default:void 0},lazy:{type:Boolean,default:!1},onDownload:{},preview:{type:Boolean,default:!0},previewProps:{default:void 0},showInfo:{type:Boolean,default:!1},src:{},width:{default:void 0}},emits:[`load`,`error`,`preview`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=Symbol(),s=(0,t.inject)(sFt,null),l=(0,t.ref)(),u=(0,t.shallowRef)(`loading`),d=(0,t.shallowRef)(!1),f=(0,t.shallowRef)(!i.lazy),p=null,m=(0,t.computed)(()=>i.previewProps?.src||i.src),h=()=>{let e=i.previewProps;return{url:m.value,name:e?.name,width:e?.width,height:e?.height,resolution:e?.resolution,downloadUrl:e?.downloadUrl}},g=(0,t.shallowRef)(0),_=(0,t.computed)(()=>{if(!i.lazy||f.value){let e=i.src;return g.value===0?e:`${e}${e.includes(`?`)?`&`:`?`}_t=${g.value}`}return``}),v=(0,t.computed)(()=>[h()]),y=(0,t.computed)(()=>{let e={};return i.width&&(e.width=typeof i.width==`number`?`${i.width}px`:i.width),i.height&&(e.height=typeof i.height==`number`?`${i.height}px`:i.height),e}),b={width:`100%`,height:`100%`,objectFit:`cover`},x=e=>{u.value=`loaded`,a(`load`,e)},S=e=>{u.value=`error`,a(`error`,e)},C=()=>{u.value=`loading`,g.value=Date.now()},w=()=>{!i.preview||u.value!==`loaded`||(s?s.preview(o):d.value=!0,a(`preview`))},T=()=>{!i.lazy||!l.value||(p=new IntersectionObserver(e=>{var t;(t=e[0])!=null&&t.isIntersecting&&(f.value=!0,p?.disconnect(),p=null)},{rootMargin:`200px`}),p.observe(l.value))},E=()=>{p?.disconnect(),p=null};return(0,t.onMounted)(()=>{T(),s?.register(o,h)}),(0,t.onBeforeUnmount)(()=>{E(),s?.unregister(o)}),n({previewVisible:d}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`containerRef`,ref:l,class:(0,t.normalizeClass)([`ai-image`,{"ai-image--error":u.value===`error`,"ai-image--preview":e.preview&&u.value===`loaded`}]),style:(0,t.normalizeStyle)(y.value),onClick:w},[u.value!==`error`&&_.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,alt:e.alt,class:`ai-image-inner`,src:_.value,style:b,onError:S,onLoad:x},null,40,Zzt)):(0,t.createCommentVNode)(``,!0),u.value===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qzt,[(0,t.createVNode)((0,t.unref)(iOt),{class:`ai-image-error-icon`})])):(0,t.createCommentVNode)(``,!0),u.value===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`ai-image-error-overlay`,onClick:C},[(0,t.createVNode)((0,t.unref)(bOt),{class:`ai-image-reload-icon`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`重新加载`)),1)])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),!(0,t.unref)(s)&&e.preview&&d.value?((0,t.openBlock)(),(0,t.createBlock)(r9,{key:3,visible:d.value,"onUpdate:visible":r[0]||=e=>d.value=e,images:v.value,"on-download":e.onDownload,"show-info":e.showInfo},(0,t.createSlots)({_:2},[n.$slots.extra?{name:`extra`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra`)]),key:`0`}:void 0]),1032,[`visible`,`images`,`on-download`,`show-info`])):(0,t.createCommentVNode)(``,!0)],6))}});var $zt=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAAGVn0euAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAj4UlEQVR4Ae1dB4AURbqu7pnZyOICShIVBI5TDPgwR0yn5yknKigIy+5KMCJ4ohgQMGdP8BQDsAsqHsZTnnqcPlEU1DNwnnqKYATxRDIsuxO63/f91dXTMzuzzBLEd28Leqq66q+//lR/he7qVWpbh35lsYVBnHbwJpjuPqB2Be/3s9X+jH9TFnMZZwxdBkVXdhkc+02w8E8VifoVOg+Kurze/tRxuw2OuodU1tUHMlgI2GdczH1/kSPXR1847ieLE+6AC2uk0v7DoxKn8DDkt7aaMOFOtWaNq8YjXr/WVS3DupEehXHBLRWInXc/rXbV22/NU+vWOurNN+epmnWoENEV9g9WWDIjzyoOuWo9AG694xlVi/ihe55SsfUJtOAI5h5FCYnD8oufj6ryrVcLNrknHmyrkO2qSEgpx3ZUK7SAf5Y11rIIKz+mEuM/jNzgtgDdpd4l6ZCjGO99Vat68MG6v5R09/61NfVoGe/6+vITBqg2HLoJevnK3DO+61v3CXPvi7VbpVsSj8XW7b2HUsNPDamrQ3VuKXRzVlF+wYhJVj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7jTvtcjw+9sxsGwtLbVnYIh9TtyOrFdoF1LvaeruhwZaulAbCckuRzm4Tx+Kbou9/XPYlB9AwjCApTLiMc3qM15pHBEpzW3Q2PNpqXMDcgQA+GhBGW7BsB0q+IcJChFUuh6ktgpQ4Uxhi/FCplZJTC/GiNo376Fr6cikUhnoYB1msfAEEafzeucV/aB/pGBdKzTUPfivW7OPmRl6CInsIcWmAjZMpYrhkzmE/rE4YJg4xm+FM5zfENgQKsQcPoJXnwBxGMVDzNLo8yIUxjnYIXP75VCw4tfFMm7iyOP+JY46oaPIjh31RkO7pN0/u0Uv38QPlJ40rReVN7AJrZZoF0bqfgWgMu2nQLxqwrjTBoZWaQEwGgIFUpWpgGhmVaKNo10GKTCjMWq63XWDHbSsGJDKnH2GufbVOmHE9ThM720mg0yjY48UrLGiB6BXB/sWO1zxw4vnF/iCxd2KR3u4fykatLw4m8m8HwcDFkj1EzLlAIRujiCuAvjIUGy9KFEbz3BUlXIvg9KxfcWvimPdOWESpdlVas7j1GMb7CDL2QlOA2+BnDKODmPsSHZXp33ZFjQGO0OGLExp6Ya18EIfcH4/IMj8IQy/St1BMk8ikQ42a0gjzhIp+CkzIKEbBaaIwJwx6TqkxRrNdWUtnJtpLlyCN+GkMK3tReLOWe0kHLqE6jW+V8xAnohU7GOzzw4/bdO9QcELLdY7DSwqMSaxf4/J0hfHyr0N0FwigUJXHwxVQRjLsUkBE40m7SOkVIWERDiFSAWKkuFyXRlbE+3BAV5Slf18e9pzhdXyuL31GTb6kBFjVdfY/miQO4OMYTz6rdRrdqhWRTaJJAkwSaJNAkgSYJNEmgSQJNEmhQAv8Lix8k/gNx6O4AAAAASUVORK5CYII=`,eBt=e=>({conversationSettings:{openingRemark:e?.conversation_settings?.opening_remark,predefinedQuestions:e?.conversation_settings?.predefined_questions,commands:e?.conversation_settings?.commands?.map(e=>({id:e.id,name:e.name,alias:e.alias,icon:e.icon,components:e.components.map(e=>({type:e.type,name:e.name,key:e.key,placeholder:e.placeholder,default:e.default,required:e.required,fillBack:e.fill_back,fillRegx:e.fill_regx,rows:e.rows,min:e.min,max:e.max,options:e.options})),content:e.content,agentId:e.agent_id,status:e.status,supportUpload:e.support_upload})),enableChatSession:e?.conversation_settings?.enable_chat_session},promptSetting:e?.prompt_setting?{content:e.prompt_setting.content,supportUpload:e.prompt_setting.support_upload}:void 0,agentName:e?.agent_name,relatedSkills:e?.related_skills?.map(e=>({id:e.id,skill_name:e.skill_name,skill_code:e.skill_code,description:e.description,icon:e.icon})),chatGroup:e?.chat_group?{enabled:e.chat_group.enabled,staff:e.chat_group.staff,username:e.chat_group.username}:void 0,saasUrl:e?.saas_url,resources:e?.resources}),y9=function(e){return e.FlowAgent=`flow_agent`,e.KnowledgeRag=`knowledge_rag`,e.ReferenceDocument=`reference_document`,e}({}),b9=function(e){return e.Activity=`activity`,e.Assistant=`assistant`,e.Developer=`developer`,e.Guide=`guide`,e.Hidden=`hidden`,e.HiddenAssistant=`hidden-assistant`,e.HiddenGuide=`hidden-guide`,e.HiddenSystem=`hidden-system`,e.HiddenUser=`hidden-user`,e.Info=`info`,e.Pause=`pause`,e.Placeholder=`placeholder`,e.Reasoning=`reasoning`,e.System=`system`,e.TemplateAssistant=`template-assistant`,e.TemplateGuide=`template-guide`,e.TemplateHidden=`template-hidden`,e.TemplateSystem=`template-system`,e.TemplateUser=`template-user`,e.Tool=`tool`,e.User=`user`,e.Interrupt=`interrupt`,e}({}),x9=function(e){return e.Complete=`complete`,e.Error=`error`,e.Pending=`pending`,e.Stop=`stop`,e.Streaming=`streaming`,e}({}),S9=function(e){return e.Binary=`binary`,e.Function=`function`,e.Text=`text`,e}({}),C9=function(e){return e.FlowNodeRetry=`flow_node_retry`,e.FlowNodeSkip=`flow_node_skip`,e.ApprovalCancel=`approval_cancel`,e}({}),w9=e=>{let t={id:e.id,messageId:e.message_id,name:e.name,role:e.role,sessionCode:e.session_code,status:e.status};switch(e.role){case b9.Activity:{let n=e,r=e=>e.map(e=>({name:e.name,originFileUrl:e.origin_file_url,url:e.url})),i;switch(n.activity_type){case y9.ReferenceDocument:i=r(n.content);break;case y9.KnowledgeRag:{let e=n.content;i={content:e.content,referenceDocument:r(e.reference_document)};break}case y9.FlowAgent:default:i=n.content;break}return{...t,activityType:n.activity_type,content:i,role:n.role}}case b9.Assistant:{let n=e;return{...t,content:n.content,property:n.property,role:n.role,toolCalls:n.tool_calls?.map(e=>({function:{arguments:e.function.arguments,name:e.function.name,description:e.function.description,mcpName:e.function.mcp_name},id:e.id,type:e.type}))}}case b9.Developer:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Guide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Hidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Info:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Pause:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Placeholder:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Reasoning:{let n=e;return{...t,content:n.content,duration:n.duration,role:n.role}}case b9.System:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateHidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Tool:{let n=e;return{...t,content:n.content,duration:n.duration,error:n.error,role:n.role,toolCallId:n.tool_call_id}}case b9.User:{let n=e,r=n.content;return{...t,content:Array.isArray(r)?r.map(e=>{if(e.type===S9.Binary){let t=e;return{data:t.data,filename:t.filename,id:t.id,mimeType:t.mime_type,type:t.type,url:t.url}}return e}):r,property:n.property,role:n.role}}case b9.Interrupt:return{...t,...e}}},tBt=e=>{let t={id:e.id,message_id:e.messageId,name:e.name,role:e.role,session_code:e.sessionCode,status:e.status};switch(e.role){case b9.Activity:{let n=e,r=e=>e.map(e=>({name:e.name,origin_file_url:e.originFileUrl,url:e.url})),i;switch(n.activityType){case y9.ReferenceDocument:i=r(n.content);break;case y9.KnowledgeRag:{let e=n.content;i={content:e.content,reference_document:r(e.referenceDocument)};break}case y9.FlowAgent:default:i=n.content;break}return{...t,activity_type:n.activityType,content:i,role:n.role}}case b9.Assistant:{let n=e;return{...t,property:n.property,content:n.content,role:n.role,tool_calls:n.toolCalls?.map(e=>({function:{arguments:e.function.arguments,name:e.function.name,description:e.function.description,mcp_name:e.function.mcpName},id:e.id,type:e.type}))}}case b9.Developer:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Guide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Hidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Info:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Pause:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Placeholder:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Reasoning:{let n=e;return{...t,content:n.content,duration:n.duration,role:n.role}}case b9.System:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateHidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Tool:{let n=e;return{...t,content:n.content,duration:n.duration,error:n.error,role:n.role,tool_call_id:n.toolCallId}}case b9.User:{let n=e,r=n.content;return{...t,content:Array.isArray(r)?r.map(e=>{if(e.type===S9.Binary){let t=e;return{data:t.data,filename:t.filename,id:t.id,mime_type:t.mimeType,type:t.type,url:t.url}}return e}):r,property:n.property,role:n.role}}case b9.Interrupt:return{...t,...e}}},T9=e=>({sessionCode:e.session_code,sessionContentCount:e.session_content_count,sessionName:e.session_name,isTemporary:e.is_temporary,model:e.model,comment:e.comment,rate:e.rate,updatedAt:e.updated_at,createdAt:e.created_at,status:e.status,roleInfo:e.role_info?{collectionId:e.role_info.collection_id,collectionName:e.role_info.collection_name,content:e.role_info.content,variables:e.role_info.variables}:void 0,sessionProperty:{isAutoClear:e.session_property?.is_auto_clear,isAutoCalcPrompt:e.session_property?.is_auto_clac_prompt,labels:e.session_property?.labels}}),nBt=e=>({session_code:e.sessionCode,session_content_count:e.sessionContentCount,session_name:e.sessionName,is_temporary:e.isTemporary,model:e.model,comment:e.comment,rate:e.rate,updated_at:e.updatedAt,created_at:e.createdAt,status:e.status,role_info:e.roleInfo?{collection_id:e.roleInfo.collectionId,collection_name:e.roleInfo.collectionName,content:e.roleInfo.content,variables:e.roleInfo.variables}:void 0,session_property:{is_auto_clear:e.sessionProperty?.isAutoClear,is_auto_clac_prompt:e.sessionProperty?.isAutoCalcPrompt,labels:e.sessionProperty?.labels}}),rBt=e=>({session_code:e.sessionCode,session_content_ids:e.sessionContentIds,rate:e.rate,comment:e.comment,labels:e.labels}),iBt=e=>({sessionCode:e.session_code,sessionContentIds:e.session_content_ids,rate:e.rate,comment:e.comment,labels:e.lables}),aBt=()=>`temp_${Date.now()}_${Math.random().toString(36).slice(2,9)}`,oBt=e=>{let n=(0,t.ref)([]),r=(0,t.ref)(!1),i=(0,t.ref)(!1),a=t=>(r.value=!0,e.http?.message.getMessages(t).then(e=>{n.value=e}).finally(()=>{r.value=!1})),o=()=>p(n.value),s=e=>{n.value=n.value.map(t=>t.messageId===e.messageId?e:t)},l=e=>{n.value.push(e)},u=()=>n.value.findLast(e=>[x9.Pending,x9.Streaming].includes(e.status)),d=e=>n.value.find(t=>t.messageId===e),f=async t=>{let r=aBt(),i={...t,id:r,messageId:r};n.value.push(i);try{let i=await e.http?.message.plusMessage(t);if(i){let e=n.value.findIndex(e=>e.messageId===r);if(e!==-1){let r={...i,...`property`in t&&t.property?{property:t.property}:{}};n.value[e]=r}}}catch(e){let t=n.value.findIndex(e=>e.messageId===r);throw t!==-1&&(n.value[t]={...n.value[t],status:x9.Error}),e}},p=async t=>{let r=t.reduce((e,t)=>(t.role===b9.User&&e.push(t.id),e),[]);if(r.length<=0)return;let a=[...n.value];n.value=n.value.filter(e=>!t.includes(e)),i.value=!0;try{await e.http?.message.batchDeleteMessages(r)}catch(e){throw n.value=a,e}finally{i.value=!1}};return{list:n,isListLoading:r,isDeleteLoading:i,getMessages:a,clearMessages:o,getCurrentLoadingMessage:u,getMessageByMessageId:d,modifyMessage:s,plusMessage:l,createAndPlusMessage:f,deleteMessages:p,shareMessages:async(t,n,r)=>{let i=n.reduce((e,t)=>(t.role===b9.User&&e.push(t.id),e),[]);if(!(i.length<=0))return e.http?.message.shareMessages(t,i,r)},getFlowAgentTaskInfo:t=>e.http?.message.getFlowAgentTaskInfo(t),getFlowAgentTaskNodeInfo:(t,n)=>e.http?.message.getFlowAgentTaskNodeInfo(t,n),reset:()=>{n.value=[],r.value=!1,i.value=!1}}},E9=function(e){return e.FlowAgentEnd=`flow_agent_end`,e.FlowAgentResult=`flow_agent_result`,e.FlowAgentStart=`flow_agent_start`,e.FlowAgentUpdate=`flow_agent_update`,e.KnowledgeRagEnd=`knowledge_rag_end`,e.KnowledgeRagResult=`knowledge_rag_result`,e.KnowledgeRagStart=`knowledge_rag_start`,e.KnowledgeRagTextContent=`knowledge_rag_text_content`,e.ReferenceDocument=`reference_document`,e.TempMessage=`temp_message`,e.ApprovalResult=`approval_result`,e}({}),D9=function(e){return e.ActivityDelta=`ACTIVITY_DELTA`,e.ActivitySnapshot=`ACTIVITY_SNAPSHOT`,e.Custom=`CUSTOM`,e.MessagesSnapshot=`MESSAGES_SNAPSHOT`,e.Raw=`RAW`,e.RunError=`RUN_ERROR`,e.RunFinished=`RUN_FINISHED`,e.RunStarted=`RUN_STARTED`,e.StateDelta=`STATE_DELTA`,e.StateSnapshot=`STATE_SNAPSHOT`,e.StepFinished=`STEP_FINISHED`,e.StepStarted=`STEP_STARTED`,e.TextMessageChunk=`TEXT_MESSAGE_CHUNK`,e.TextMessageContent=`TEXT_MESSAGE_CONTENT`,e.TextMessageEnd=`TEXT_MESSAGE_END`,e.TextMessageStart=`TEXT_MESSAGE_START`,e.ThinkingEnd=`THINKING_END`,e.ThinkingStart=`THINKING_START`,e.ThinkingTextMessageContent=`THINKING_TEXT_MESSAGE_CONTENT`,e.ThinkingTextMessageEnd=`THINKING_TEXT_MESSAGE_END`,e.ThinkingTextMessageStart=`THINKING_TEXT_MESSAGE_START`,e.ToolCallArgs=`TOOL_CALL_ARGS`,e.ToolCallChunk=`TOOL_CALL_CHUNK`,e.ToolCallEnd=`TOOL_CALL_END`,e.ToolCallResult=`TOOL_CALL_RESULT`,e.ToolCallStart=`TOOL_CALL_START`,e}({}),sBt=function(e){return e.Blocked=`BLOCKED`,e.Created=`CREATED`,e.Failed=`FAILED`,e.Finished=`FINISHED`,e.LoopReady=`LOOP_READY`,e.Ready=`READY`,e.Revoked=`REVOKED`,e.RollBackFailed=`ROLL_BACK_FAILED`,e.RollBackSuccess=`ROLL_BACK_SUCCESS`,e.RollingBack=`ROLLING_BACK`,e.Running=`RUNNING`,e.Suspended=`SUSPENDED`,e}({}),O9=function(e){return e.Success=`success`,e.Interrupt=`interrupt`,e}({}),cBt=function(e){return e.Abandoned=`abandoned`,e.Approved=`approved`,e.Cancelled=`cancelled`,e.Draft=`draft`,e.Expired=`expired`,e.Rejected=`rejected`,e.Pending=`pending`,e}({}),k9=function(e){return e.Resolved=`resolved`,e.Cancelled=`cancelled`,e}({}),A9=class{messageModule;onDoneCallback;onErrorCallback;onMessageCallback;onStartCallback;constructor(e){this.onDoneCallback=e?.onDone,this.onErrorCallback=e?.onError,this.onMessageCallback=e?.onMessage,this.onStartCallback=e?.onStart}handleActivityDeltaEvent(e){}handleActivitySnapshotEvent(e){}handleCustomEvent(e){switch(e.name){case E9.FlowAgentStart:this.handleFlowAgentStartCustomEvent(e);break;case E9.FlowAgentResult:this.handleFlowAgentResultCustomEvent(e);break;case E9.FlowAgentEnd:this.handleFlowAgentEndCustomEvent(e);break;case E9.ReferenceDocument:this.handleReferenceDocumentCustomEvent(e);break;case E9.KnowledgeRagStart:this.handleKnowledgeRagStartCustomEvent(e);break;case E9.KnowledgeRagTextContent:this.handleKnowledgeRagTextContentCustomEvent(e);break;case E9.KnowledgeRagResult:this.handleKnowledgeRagResultCustomEvent(e);break;case E9.KnowledgeRagEnd:this.handleKnowledgeRagEndCustomEvent(e);break;case E9.TempMessage:this.handleTempMessageCustomEvent(e);break;case E9.ApprovalResult:this.handleApprovalResultCustomEvent(e);break;case E9.FlowAgentUpdate:this.handleFlowAgentUpdateCustomEvent(e);break;default:break}}handleFlowAgentEndCustomEvent(e){let t=this.messageModule.getCurrentLoadingMessage();if(t&&t.role===b9.Activity&&t.activityType===y9.FlowAgent){t.status=x9.Complete;let n=e.value;this.messageModule.plusMessage({role:b9.Assistant,content:n.map(e=>e.task_outputs.join(`
3484
+ `)||``},null,8,[`content`])):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(Array.isArray(e.content)?e.content:[e.content],e=>((0,t.openBlock)(),(0,t.createBlock)(D7,{key:e,content:e},null,8,[`content`]))),128))],512),[[t.vShow,!r.value]])]))}}),szt={class:`ai-key-value-content`},czt={key:0,class:`ai-key-value-title`},lzt={class:`ai-key-value-content`},uzt={class:`item-key`},dzt={class:`item-value`},fzt=(0,t.defineComponent)({__name:`key-value-content`,props:{content:{},title:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,szt,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,czt,[(0,t.createVNode)((0,t.unref)(LOt)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.title),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,lzt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.content,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.key,class:`key-value-item`},[(0,t.createElementVNode)(`div`,uzt,(0,t.toDisplayString)(e.key),1),r[0]||=(0,t.createTextVNode)(` : `,-1),(0,t.createElementVNode)(`div`,dzt,(0,t.toDisplayString)(e.value),1)]))),128))])]))}}),pzt={class:`ai-user-message`},mzt={key:0,class:`ai-user-message-binary-files`},hzt={key:1,class:`ai-user-message-content`},gzt={class:`user-edit-footer`},_zt=(0,t.defineComponent)({__name:`user-message`,props:{content:{},id:{},messageId:{},name:{},role:{},status:{},uid:{},property:{},onAction:{type:Function},tippyOptions:{},messageToolsStatus:{},onInputConfirm:{type:Function},onShortcutConfirm:{type:Function}},setup(e){let n=e,r=Pkt(),{copy:i}=h5(),a=(0,t.shallowRef)(!1),o=(0,t.shallowRef)(``),s=(0,t.useTemplateRef)(`chatInputRef`),l=(0,t.computed)(()=>{var e;let t=(e=n.property)==null||(e=e.extra)==null?void 0:e.cite;if(!(!t||typeof t==`string`))return t.title}),u=(0,t.computed)(()=>{var e;let t=(e=n.property)==null||(e=e.extra)==null?void 0:e.cite;return!t||typeof t==`string`?t:t.data}),d=(0,t.computed)(()=>{var e,t;if(!((e=n.property)!=null&&e.extra))return null;let{extra:r}=n.property,{shortcut:i,cite:a,context:o}=r||{};if(i)return i;if(a&&typeof a==`object`&&(t=a.data)!=null&&t.length){let e=[];for(let t of a.data){let n=o?.find(e=>e.__label===t.key);n!=null&&n.__key&&e.push({formItemProps:{label:n.__label,required:!!n.fillBack},props:{default:n.__value},key:n.__key,type:`textarea`})}return{components:e,name:a.title}}return null}),f=e=>!!e.url||fDt(e.mimeType||e.file?.type),p=(0,t.computed)(()=>Array.isArray(n.content)?n.content?.filter(e=>e.type===Q8.Binary):[]),m=(0,t.computed)(()=>p.value.filter(e=>f(e))),h=(0,t.computed)(()=>p.value.filter(e=>!f(e))),g=(0,t.computed)(()=>n.content?typeof n.content==`string`?n.content:n.content?.filter(e=>{var t;return e.type===Q8.Text&&!!((t=e.text)!=null&&t.trim())}):``),_=function(){var e=f5(function*(e){if(e.id===`edit`){if(typeof n.content==`string`&&(o.value=n.content,a.value=!0),typeof g.value==`string`&&(o.value=g.value,a.value=!0),Array.isArray(g.value)){let e=g.value.at(0);o.value=typeof e==`string`?e:e?.text||``,a.value=!0}p.value.length&&(a.value=!0)}else e.id===`copy`&&i(typeof n.content==`string`?n.content:JSON.stringify(n.content||``));yield n.onAction?.call(n,e)});return function(t){return e.apply(this,arguments)}}(),v=function(){var e=f5(function*(){var e,t;yield(e=s.value)==null||(t=e.triggerSendMessage)==null?void 0:t.call(e),a.value=!1});return function(){return e.apply(this,arguments)}}(),y=()=>{a.value=!1},b=()=>{a.value=!1},x=function(){var e=f5(function*(e){var t;(t=n.onShortcutConfirm)==null||t.call(n,e),a.value=!1});return function(t){return e.apply(this,arguments)}}(),S=function(){var e=f5(function*(e,t){var r;(r=n.onInputConfirm)==null||r.call(n,e,t),a.value=!1});return function(t,n){return e.apply(this,arguments)}}();return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pzt,[u.value&&typeof u.value==`string`?((0,t.openBlock)(),(0,t.createBlock)(pFt,{key:0,class:`ai-user-message-cite`,content:u.value},null,8,[`content`])):(0,t.createCommentVNode)(``,!0),a.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[d.value?((0,t.openBlock)(),(0,t.createBlock)(bkt,(0,t.mergeProps)({key:0},d.value,{class:`user-shortcut-render`,onClose:b,onSubmit:x}),null,16)):((0,t.openBlock)(),(0,t.createBlock)(gIt,{key:1,ref_key:`chatInputRef`,ref:s,modelValue:o.value,"onUpdate:modelValue":i[0]||=e=>o.value=e,class:`user-edit-input`,"default-upload-files":p.value,"on-send-message":S,"support-upload":(0,t.unref)(r)?.supportUpload.value??!1},{"send-icon":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,gzt,[(0,t.createVNode)((0,t.unref)(Go),{size:`small`,onClick:y},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1}),(0,t.createVNode)((0,t.unref)(Go),{size:`small`,theme:`primary`,onClick:v},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`发送`)),1)]),_:1})])]),_:1},8,[`modelValue`,`default-upload-files`,`support-upload`]))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[p.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[m.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mzt,[(0,t.createVNode)(i9,{files:m.value,readonly:!0},null,8,[`files`])])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(h.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.url??n,class:`ai-user-message-binary-files`},[(0,t.createVNode)(i9,{files:[e],readonly:!0},null,8,[`files`])]))),128))],64)):(0,t.createCommentVNode)(``,!0),(u.value||g.value).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hzt,[Array.isArray(u.value)?((0,t.openBlock)(),(0,t.createBlock)(fzt,{key:0,content:u.value,title:l.value},null,8,[`content`,`title`])):e.content?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(Array.isArray(g.value)?g.value:[g.value],(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[typeof e==`string`?((0,t.openBlock)(),(0,t.createBlock)(D7,{key:0,content:e},null,8,[`content`])):e.type===(0,t.unref)(Q8).Text?((0,t.openBlock)(),(0,t.createBlock)(D7,{key:1,content:e.text},null,8,[`content`])):(0,t.createCommentVNode)(``,!0)],64))),128)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),e.messageToolsStatus===(0,t.unref)(n9).Hidden?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(dLt,{key:2,class:`ai-user-message-tools`,"message-tools":(0,t.unref)(UDt),"message-tools-status":e.messageToolsStatus,"on-action":_,"tippy-options":e.tippyOptions,"update-tools":[]},null,8,[`message-tools`,`message-tools-status`,`tippy-options`]))],64))]))}}),v9=(0,t.defineComponent)({__name:`message-render`,props:{messageToolsStatus:{},onInputConfirm:{type:Function},onShortcutConfirm:{type:Function},onAction:{type:Function},tippyOptions:{},message:{},onInterruptResume:{type:Function}},setup(e){let n=e,r=(0,t.useSlots)(),i=(0,t.computed)(()=>{switch(n.message.role){case $8.User:return(0,t.h)(_zt,$($({},n.message),{},{onAction:n.onAction,onInputConfirm:n.onInputConfirm,onShortcutConfirm:n.onShortcutConfirm,messageToolsStatus:n.messageToolsStatus,tippyOptions:n.tippyOptions}));case $8.Assistant:return(0,t.h)(IRt,n.message,{default:e=>(0,t.renderSlot)(r,`default`,e,()=>[(0,t.h)(k7,{content:n.message.content||``,status:n.message.status},r.codeHeader?{codeHeader:e=>r.codeHeader?.call(r,e)}:void 0)])});case $8.Info:return(0,t.h)(RRt,n.message);case $8.Reasoning:return(0,t.h)(ozt,n.message);case $8.Tool:return(0,t.h)(DRt,n.message);case $8.Activity:return(0,t.h)(bRt,$($({},n.message),{},{onInterruptResume:n.onInterruptResume}));case $8.Interrupt:return(0,t.h)($Rt,$($({},n.message),{},{onInterruptResume:n.onInterruptResume}),r.answeredQuestion?{answeredQuestion:e=>r.answeredQuestion?.call(r,e)}:void 0);case $8.Loading:return(0,t.h)(tzt,n.message);default:return null}});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i.value)))}}),vzt=[`id`,`onMouseenter`,`onMouseleave`],yzt={class:`ai-message-fixed-bottom`},bzt=(0,t.defineComponent)({__name:`message-container`,props:(0,t.mergeModels)({enableSelection:{type:Boolean,default:!1},messageGroups:{},messages:{},messageStatus:{},messageToolsStatus:{},messageToolsTippyOptions:{},onAgentAction:{},onAgentFeedback:{},onInterruptResume:{},onUserAction:{},renderMode:{},onUserInputConfirm:{},onUserShortcutConfirm:{}},{selectedUserMessages:{required:!1},selectedUserMessagesModifiers:{}}),emits:(0,t.mergeModels)([`stopStreaming`],[`update:selectedUserMessages`]),setup(e){let n=e,r=(0,t.useModel)(e,`selectedUserMessages`),i=(0,t.useTemplateRef)(`messageContainerRef`),a=(0,t.useTemplateRef)(`messageContainerBottomRef`),{toScrollBottom:o,debouncedShowScrollBottomBtn:s}=Tkt(i,a),{copy:l}=h5(),u=(0,t.computed)(()=>HDt.filter(e=>n.renderMode!==n5.Test||e.id!==`share`)),d=(0,t.computed)(()=>n.renderMode===n5.Share?n.messageGroups.filter(e=>e.type!==$8.Loading):n.messageGroups),f=e=>{e.messages?.at(-1)?.role!==$8.Interrupt&&(e.isHover=!0)},p=(e,t)=>{let n=t.toElement??t.relatedTarget;n instanceof Element&&n.classList.contains(`ai-user-feedback`)||(e.isHover=!1)},m=(e,t)=>{var i;let a=e.type===$8.User;(i=n.messageGroups)==null||i.forEach((r,i)=>{if(r===e){r.checked=t;let e=a?n.messageGroups.at(i+1):n.messageGroups.at(i-1);e&&(e.checked=t)}}),r.value=n.messageGroups?.filter(e=>e.checked).map(e=>e.messages).flat()},h=function(){var e=f5(function*(e,t){return e.id===`copy`&&l(t.filter(e=>e.role!==$8.Reasoning).map(e=>typeof e.content==`string`?e.content:JSON.stringify(e.content||``)).join(`
3485
+ `)),n.onAgentAction?.call(n,e,t)});return function(t,n){return e.apply(this,arguments)}}(),g=function(){var e=f5(function*(e,t){var r;(r=n.onUserAction)==null||r.call(n,e,t)});return function(t,n){return e.apply(this,arguments)}}(),_=function(){var e=f5(function*(e,t,r){var i;(i=n.onUserInputConfirm)==null||i.call(n,e,t,r)});return function(t,n,r){return e.apply(this,arguments)}}(),v=function(){var e=f5(function*(e,t){var r;(r=n.onUserShortcutConfirm)==null||r.call(n,e,t)});return function(t,n){return e.apply(this,arguments)}}();return(r,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`messageContainerRef`,ref:i,class:`ai-message-container`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:i.uid,key:a,class:`message-group`,style:(0,t.normalizeStyle)({backgroundColor:i.checked?`#f5f7fa`:`transparent`}),onMouseenter:e=>f(i),onMouseleave:e=>p(i,e)},[(0,t.renderSlot)(r.$slots,`group`,(0,t.mergeProps)({ref_for:!0},{group:i}),()=>[e.enableSelection&&i.type!==(0,t.unref)($8).Loading?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ls),{key:0,class:`message-group-checkbox`,"model-value":i.checked,"onUpdate:modelValue":e=>m(i,e)},null,8,[`model-value`,`onUpdate:modelValue`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message-group-messages`,{"message-group-enabled-selection":e.renderMode===(0,t.unref)(n5).Share||e.enableSelection&&i.type!==(0,t.unref)($8).Loading}]),style:(0,t.normalizeStyle)({width:e.enableSelection&&i.type!==(0,t.unref)($8).Loading?`calc(100% - 16px)`:`100%`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.messages,(i,a)=>(0,t.renderSlot)(r.$slots,`default`,(0,t.mergeProps)({key:a,ref_for:!0},{message:i,messageToolsStatus:e.messageToolsStatus,onInterruptResume:n.onInterruptResume}),()=>[((0,t.openBlock)(),(0,t.createBlock)(v9,{key:a,message:i,"message-tools-status":e.messageToolsStatus,"on-action":e=>g(e,i),"on-input-confirm":(e,t)=>_(i,e,t),"on-interrupt-resume":n.onInterruptResume,"on-shortcut-confirm":e=>v(i,e),"tippy-options":e.messageToolsTippyOptions},(0,t.createSlots)({_:2},[r.$slots.answeredQuestion?{name:`answeredQuestion`,fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(r.$slots,`answeredQuestion`,(0,t.mergeProps)({ref_for:!0},e))]),key:`0`}:void 0]),1032,[`message`,`message-tools-status`,`on-action`,`on-input-confirm`,`on-interrupt-resume`,`on-shortcut-confirm`,`tippy-options`]))])),128)),e.renderMode!==(0,t.unref)(n5).Share&&!(e.enableSelection&&i.type!==(0,t.unref)($8).Loading)&&!i.pause&&i.type===(0,t.unref)($8).Assistant&&e.messageToolsStatus!==(0,t.unref)(n9).Hidden?((0,t.openBlock)(),(0,t.createBlock)(dLt,{key:0,"message-tools":u.value,"message-tools-status":e.messageToolsStatus,"on-action":e=>h(e,i.messages),style:(0,t.normalizeStyle)({visibility:i.isHover?`visible`:`hidden`}),"tippy-options":n.messageToolsTippyOptions,onFeedback:(e,t,r)=>n.onAgentFeedback?.call(n,e,i.messages,t,r)},null,8,[`message-tools`,`message-tools-status`,`on-action`,`style`,`tippy-options`,`onFeedback`])):(0,t.createCommentVNode)(``,!0)],6)])],44,vzt))),128)),(0,t.createElementVNode)(`div`,{ref_key:`messageContainerBottomRef`,ref:a,class:`message-container-bottom`,tabindex:`0`},null,512),(0,t.createElementVNode)(`div`,yzt,[(0,t.withDirectives)((0,t.createVNode)(YOt,{loading:e.messageStatus===(0,t.unref)(e5).StopLoading,title:e.messageStatus===(0,t.unref)(e5).StopLoading?(0,t.unref)(Y8)(`正在停止`):(0,t.unref)(Y8)(`停止生成`),onClick:l[0]||=e=>r.$emit(`stopStreaming`)},{icon:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(COt))]),_:1},8,[`loading`,`title`]),[[t.vShow,e.renderMode!==(0,t.unref)(n5).Share&&(e.messageStatus===(0,t.unref)(e5).Streaming||e.messageStatus===(0,t.unref)(e5).StopLoading||e.messageStatus===(0,t.unref)(e5).Fetching||e.messageStatus===(0,t.unref)(e5).Pending)]]),(0,t.withDirectives)((0,t.createVNode)(YOt,{title:(0,t.unref)(Y8)(`返回底部`),onClick:(0,t.unref)(o)},{icon:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(zOt))]),_:1},8,[`title`,`onClick`]),[[t.vShow,(0,t.unref)(s)]])])],512))}}),xzt={class:`execution-summary`},Szt={class:`execution-summary-header`},Czt={class:`execution-summary-content`},wzt=[`onMouseenter`],Tzt={class:`content-item-header`},Ezt={class:`content-item-title`},Dzt={class:`content-item-messages`},Ozt={key:0,class:`timeline-line`},kzt={key:1,class:`execution-summary-content-empty`},Azt={class:`execution-summary-content-empty-text`},jzt=(0,t.defineComponent)({__name:`execution-summary`,props:{messageGroups:{}},emits:[`locateMessageGroup`,`updateKeyword`],setup(e,{emit:n}){let r=n,i=v5(),{keyword:a}=qkt(),o=(0,t.shallowRef)(void 0),s=e=>{if(!e)return``;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`},l=e=>{r(`locateMessageGroup`,e.uid,e)},u=()=>{a.value=``,r(`updateKeyword`,``)};return(n,d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xzt,[(0,t.createElementVNode)(`div`,Szt,[(0,t.createVNode)((0,t.unref)(ns),{modelValue:(0,t.unref)(a),"onUpdate:modelValue":[d[0]||=e=>(0,t.isRef)(a)?a.value=e:null,d[1]||=e=>r(`updateKeyword`,e)],class:`execution-summary-header-input`,clearable:``,placeholder:(0,t.unref)(Y8)(`搜索 关键字`)},null,8,[`modelValue`,`placeholder`])]),(0,t.createElementVNode)(`div`,Czt,[e.messageGroups.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.messageGroups,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.uid,class:`execution-summary-content-item`,onMouseenter:e=>o.value=n.uid,onMouseleave:d[2]||=e=>o.value=void 0},[(0,t.createElementVNode)(`div`,Tzt,[d[3]||=(0,t.createElementVNode)(`span`,{class:`timeline-dot`},null,-1),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ezt,[(0,t.createTextVNode)((0,t.toDisplayString)(typeof n.userMessageTitle==`number`?s(n.userMessageTitle):n.userMessageTitle),1)])),[[(0,t.unref)(y5),$({},(0,t.unref)(i))]]),(0,t.withDirectives)((0,t.createVNode)((0,t.unref)(Go),{class:`content-item-locate`,text:``,theme:`primary`,onClick:e=>l(n)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`在对话中定位`)),1)]),_:1},8,[`onClick`]),[[t.vShow,o.value===n.uid]])]),(0,t.createElementVNode)(`div`,Dzt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.messages,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(v9,{key:n,message:e},null,8,[`message`]))),128))]),r<e.messageGroups.length-1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ozt)):(0,t.createCommentVNode)(``,!0)],40,wzt))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kzt,[(0,t.createVNode)((0,t.unref)(Xs),{class:`empty-exception`,type:`empty`}),(0,t.createElementVNode)(`div`,Azt,[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a)?(0,t.unref)(Y8)(`搜索结果为空`):(0,t.unref)(Y8)(`暂无数据`))+` `,1),(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Go),{key:0,text:``,theme:`primary`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`清空搜索`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]))])]))}}),Mzt=[`class`,`style`],Nzt={class:`ai-message-loading-row`},Pzt={class:`ai-message-loading-icon-wrap`},Fzt={key:0,class:`ai-message-loading-text ai-message-loading-text-custom`},Izt={key:1,"aria-live":`polite`,class:`ai-message-loading-text`},Lzt=(0,t.defineComponent)($($({},{name:`MessageLoading`,inheritAttrs:!1}),{},{__name:`message-loading`,props:{duration:{default:1.8},gap:{default:8},iconSize:{default:32},stagger:{default:.135},text:{default:`加载中...`}},setup(e){let n=e,r=(0,t.useAttrs)(),i=(0,t.computed)(()=>{let{class:e,style:t}=r;return m5(r,Mzt)}),a=(0,t.computed)(()=>({display:`block`,width:`${n.iconSize}px`,height:`${n.iconSize}px`})),o=(0,t.computed)(()=>[...n.text]),s=(0,t.computed)(()=>{let e=r.style,t={"--ai-message-loading-duration":`${n.duration}s`,"--ai-message-loading-stagger":`${n.stagger}s`,"--ai-message-loading-gap":`${n.gap}px`};return e&&typeof e==`object`&&!Array.isArray(e)?$($({},t),e):t});return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({class:[`ai-message-loading`,(0,t.unref)(r).class],style:s.value},i.value),[(0,t.createElementVNode)(`div`,Nzt,[(0,t.createElementVNode)(`span`,Pzt,[(0,t.renderSlot)(e.$slots,`icon`,{},()=>[(0,t.createVNode)((0,t.unref)($Dt),{class:`ai-message-loading-icon-svg`,style:(0,t.normalizeStyle)(a.value)},null,8,[`style`])])]),e.$slots.text?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Fzt,[(0,t.renderSlot)(e.$slots,`text`)])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Izt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:`${n}-${e}`,class:`ai-message-loading-char`,style:(0,t.normalizeStyle)({"--char-index":n})},(0,t.toDisplayString)(e),5))),128))]))])],16))}})),Rzt={class:`ai-selection-footer`},zzt={class:`ai-selection-footer-left`},Bzt={class:`select-all-text`},Vzt={class:`ai-selection-footer-right`},Hzt=(0,t.defineComponent)({__name:`selection-footer`,props:{isAllSelected:{type:Boolean},loading:{type:Boolean},selectedCount:{}},emits:[`cancel`,`confirm`,`toggle-all`],setup(e,{emit:n}){let r=n;return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Rzt,[(0,t.createElementVNode)(`div`,zzt,[(0,t.createVNode)((0,t.unref)(ls),{"model-value":e.isAllSelected,"onUpdate:modelValue":i[0]||=e=>r(`toggle-all`,e)},null,8,[`model-value`]),(0,t.createElementVNode)(`span`,Bzt,(0,t.toDisplayString)((0,t.unref)(Y8)(`全选`)),1)]),(0,t.createElementVNode)(`div`,Vzt,[(0,t.createVNode)((0,t.unref)(Go),{disabled:e.loading,onClick:i[1]||=e=>r(`cancel`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`取消`)),1)]),_:1},8,[`disabled`]),(0,t.createVNode)((0,t.unref)(Go),{disabled:e.selectedCount===0,loading:e.loading,theme:`primary`,onClick:i[2]||=e=>r(`confirm`)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`确定`)),1)]),_:1},8,[`disabled`,`loading`])])]))}}),Uzt=[`data-ai-size`],Wzt={key:0,class:`ai-chat-container-loading`},Gzt={class:`screen-wrapper`},Kzt={key:1,class:`ai-welcome-content`},qzt={class:`ai-welcome-title`},Jzt={key:0,class:`ai-welcome-remark`},Yzt=(0,t.defineComponent)({__name:`chat-container`,props:(0,t.mergeModels)({chatLoading:{type:Boolean},commonTippyOptions:{},getSideRenderComponent:{},getSideTabRenderComponent:{},onCustomTabChange:{},openingRemark:{},placement:{default:`left`},resizeProps:{},size:{default:`small`},welcomeTitle:{},defaultUploadFiles:{},inputMaxHeight:{},messageStatus:{},modelValue:{},onSendMessage:{},onStopSending:{},onUpload:{},placeholder:{},prompts:{},resources:{},sendDisabledTip:{},shortcutId:{},shortcuts:{},skills:{},supportUpload:{type:Boolean},tippyOptions:{},messages:{},messageToolsStatus:{},onAgentAction:{},onAgentFeedback:{},onInterruptResume:{},onUserAction:{},renderMode:{},onUserInputConfirm:{},onUserShortcutConfirm:{}},{renderMode:{required:!1,default:n5.Chat},renderModeModifiers:{},selectedShortcut:{required:!1},selectedShortcutModifiers:{},cite:{required:!1,default:``},citeModifiers:{}}),emits:(0,t.mergeModels)([`selectShortcut`,`deleteShortcut`,`update:modelValue`,`stopStreaming`,`shortcutClose`,`shortcutSubmit`,`confirmShare`,`collapseChange`],[`update:renderMode`,`update:selectedShortcut`,`update:cite`]),setup(e,{expose:n,emit:r}){let i=mhe.TabPanel,a=e,o=(0,t.useModel)(e,`renderMode`),s=(0,t.useTemplateRef)(`fullScreenRef`),{isFullScreen:l,enter:u,exit:d}=jkt(s);Jkt({renderMode:o});let f=(0,t.computed)(()=>$($({collapsible:!1,immediate:!0,min:400},a.resizeProps),{},{placement:a.placement})),p=(0,t.computed)(()=>a.getSideRenderComponent?.call(a,t.h,v.value.data?.props??{})??v.value.data?.component);Nkt({size:(0,t.computed)(()=>a.size??`small`),supportUpload:(0,t.computed)(()=>a.supportUpload??!1)}),(0,t.watch)(()=>a.size??`small`,e=>{typeof document<`u`&&(document.body.dataset.aiSize=e)},{immediate:!0});let m=(0,t.useModel)(e,`selectedShortcut`),h=(0,t.useModel)(e,`cite`),g=r;Xkt({tippyOptions:(0,t.computed)(()=>a.commonTippyOptions??{})});let{tabs:_,selectedTab:v,isCollapse:y,addCustomTab:b,removeCustomTab:x,selectCustomTab:S,resetCustomTab:C}=kkt({onTabChange:function(){var e=f5(function*(e){let t=v.value.data?.props||{loading:!0,data:{}};v.value.data=$($({},v.value.data),{},{props:t});let n=yield a.onCustomTabChange?.call(a,e);v.value.data=$($({},v.value.data),{},{props:$($({},t),{},{loading:!1,data:n})})});return function(t){return e.apply(this,arguments)}}()}),w=(0,t.shallowRef)(``),T=(0,t.ref)([]),E=(0,t.shallowRef)(400),D=(0,t.computed)(()=>`calc(100% - ${E.value}px)`),{messageGroups:O,executionGroups:k,isShareMode:A,isAllSelected:j,onToggleShareAll:M,onCancelShare:N,onConfirmShare:P,pendingApprovalTipText:F,activeUserQuestionInterrupt:I}=Hkt({keyword:w,messages:(0,t.computed)(()=>a.messages),renderMode:(0,t.computed)(()=>o.value),selectedUserMessages:T});(0,t.watch)(y,e=>{e&&(w.value=``,E.value=0),g(`collapseChange`,e,E.value)}),(0,t.watch)(()=>k.value,e=>{!e.length&&!w.value&&C()},{immediate:!0,deep:!1});let L=(0,t.computed)(()=>{var e;return a.messageStatus===e5.StopLoading?e5.StopLoading:(e=O.value)!=null&&e.some(e=>e.messages.some(e=>e.id===`__loading__`))?e5.Fetching:a.messageStatus}),R=()=>{m.value=null,g(`shortcutClose`)},ee=e=>{g(`shortcutSubmit`,e)},z=()=>{g(`deleteShortcut`)},B=e=>{g(`selectShortcut`,e)},V=(e,t)=>{g(`update:modelValue`,e,t)},te=function(){var e=f5(function*(e,t){let n=I.value;return a.onSendMessage?.call(a,e,t,n?{payload:SIt(n),interrupt:n}:void 0)});return function(t,n){return e.apply(this,arguments)}}(),ne=()=>{y.value=!y.value},re=e=>{if(!e)return;let t=document.getElementById(e);if(!t){let t=O.value.find(t=>t.messages.some(t=>t.uid===e));if(t){var n;(n=document.getElementById(t.uid))==null||n.scrollIntoView({behavior:`smooth`})}return}t.scrollIntoView({behavior:`smooth`})},ie=e=>{S(_.value.find(t=>t.name===e))},ae=e=>{w.value=e},H=function(){var e=f5(function*(e,t){if(e.id===`share`){A.value=!0;return}return a.onAgentAction?.call(a,e,t)});return function(t,n){return e.apply(this,arguments)}}(),oe=()=>{g(`confirmShare`,P()),(0,t.nextTick)(()=>{A.value=!1,T.value=[]})},se=e=>{E.value=e};return(0,t.onUnmounted)(()=>{C(),typeof document<`u`&&delete document.body.dataset.aiSize}),n({selectedTab:v,addCustomTab:b,removeCustomTab:x,selectCustomTab:S,enterShareMode:()=>{A.value=!0},exitShareMode:()=>{N()}}),(n,r)=>{var a;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`ai-chat-container`,"data-ai-size":e.size,style:(0,t.normalizeStyle)({"--resize-main-width":D.value,borderTopColor:(0,t.unref)(y)?`transparent`:`#eaebf0`})},[e.chatLoading?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wzt,[(0,t.createVNode)(Lzt)])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ehe),(0,t.mergeProps)({key:1,class:[`ai-chat-container-resize-layout`,{"ai-is-collapse":(0,t.unref)(y)||!((a=w.value)!=null&&a.length)&&(0,t.unref)(k)?.length<1||o.value===(0,t.unref)(n5).Share}]},f.value,{onResizing:se}),{aside:(0,t.withCtx)(()=>{var n,a,f,m;return[!(0,t.unref)(y)&&((n=(0,t.unref)(k))!=null&&n.length||(a=w.value)!=null&&a.length)&&o.value!==(0,t.unref)(n5).Share?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`fullScreenRef`,ref:s,class:`ai-full-screen-wrapper`},[(0,t.createVNode)((0,t.unref)(mhe),{active:(0,t.unref)(v).name,class:`ai-chat-container-tab`,"label-height":40,type:`unborder-card`,onChange:ie},{setting:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Gzt,[(0,t.createVNode)(b5,{class:`screen-btn`,"tippy-options":$($({},e.commonTippyOptions),{},{appendTo:(0,t.unref)(l)?s.value:e.commonTippyOptions?.appendTo,content:(0,t.unref)(l)?(0,t.unref)(Y8)(`退出全屏`):(0,t.unref)(Y8)(`全屏`)})},{default:(0,t.withCtx)(()=>[(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(VOt),{key:1,onClick:(0,t.unref)(d)},null,8,[`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(BOt),{key:0,onClick:(0,t.unref)(u)},null,8,[`onClick`]))]),_:1},8,[`tippy-options`])])]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(_),n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:n.name,class:`ai-chat-container-tab-panel`,label:()=>(0,t.h)(`div`,{class:`ai-execution-summary-label`,onVnodeMounted:e=>{if((0,t.unref)(v).name===n.name){var r;(r=e.el)==null||r.scrollIntoView({behavior:`smooth`})}}},e.getSideTabRenderComponent?.call(e,t.h,n,{removeCustomTab:(0,t.unref)(x)})??[(0,t.h)(n.name===(0,t.unref)(`execution`)?(0,t.unref)(uOt):(0,t.unref)(dOt),{class:`ai-execution-summary-icon`}),(0,t.withDirectives)((0,t.h)(`span`,{class:`ai-execution-summary-label-text`},n.label??``),[[(0,t.unref)(y5),$($({},e.commonTippyOptions),{},{text:n.label??``})]]),n.name===(0,t.unref)(`execution`)?null:(0,t.h)((0,t.unref)(u5),{class:`ai-execution-close-icon`,onClick:()=>{(0,t.unref)(x)(n.name)}})]),name:n.name},null,8,[`label`,`name`]))),128))]),_:1},8,[`active`]),(0,t.unref)(v)?.name===(0,t.unref)(`execution`)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.unref)(y)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(jzt,{key:0,"message-groups":(0,t.unref)(k),style:{height:`calc(100% - 40px)`},onLocateMessageGroup:re,onUpdateKeyword:ae},null,8,[`message-groups`]))],64)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(v)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:(0,t.unref)(v).name,class:`ai-chat-container-message-slot`},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(p.value),(0,t.mergeProps)({key:(0,t.unref)(v).name},(f=(0,t.unref)(v))==null||(f=f.data)==null?void 0:f.props),{locateButton:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Go),{class:`ai-locate-button`,size:`small`,text:``,theme:`primary`,onClick:r[0]||=e=>{var n;return re((n=(0,t.unref)(v))==null||(n=n.data)==null?void 0:n.messageUid)}},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(Y8)(`在对话中定位`)),1)]),_:1})]),_:1},16))])):(0,t.createCommentVNode)(``,!0)],512)):(0,t.createCommentVNode)(``,!0),(m=(0,t.unref)(k))!=null&&m.length&&o.value!==(0,t.unref)(n5).Share?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`collapse-button`,{"is-right":e.placement===`right`,"is-collapsed":(0,t.unref)(y)}]),onClick:ne},[(0,t.createVNode)((0,t.unref)(l5))],2)):(0,t.createCommentVNode)(``,!0)]}),main:(0,t.withCtx)(()=>{var i,a;return[(i=e.messages)!=null&&i.length?(0,t.renderSlot)(n.$slots,`default`,(0,t.normalizeProps)((0,t.mergeProps)({key:0},{messages:e.messages,messageStatus:e.messageStatus,messageGroups:(0,t.unref)(O),selectedUserMessages:T.value,messageToolsStatus:e.messageToolsStatus,isShareMode:(0,t.unref)(A),commonTippyOptions:e.commonTippyOptions,handleAgentAction:H,onAgentFeedback:e.onAgentFeedback,onInterruptResume:e.onInterruptResume,onUserAction:e.onUserAction,onUserInputConfirm:e.onUserInputConfirm,onUserShortcutConfirm:e.onUserShortcutConfirm})),()=>{var i;return[(i=e.messages)!=null&&i.length?((0,t.openBlock)(),(0,t.createBlock)(bzt,{key:0,"selected-user-messages":T.value,"onUpdate:selectedUserMessages":r[1]||=e=>T.value=e,"enable-selection":(0,t.unref)(A),"message-groups":(0,t.unref)(O),"message-status":L.value,"message-tools-status":e.messageToolsStatus,"message-tools-tippy-options":e.commonTippyOptions,messages:e.messages,"on-agent-action":H,"on-agent-feedback":e.onAgentFeedback,"on-interrupt-resume":e.onInterruptResume,"on-user-action":e.onUserAction,"on-user-input-confirm":e.onUserInputConfirm,"on-user-shortcut-confirm":e.onUserShortcutConfirm,"render-mode":o.value,onStopStreaming:r[2]||=e=>g(`stopStreaming`)},{group:(0,t.withCtx)(({group:e})=>[(0,t.renderSlot)(n.$slots,`group`,(0,t.normalizeProps)((0,t.guardReactiveProps)({group:e})))]),default:(0,t.withCtx)(({message:e,messageToolsStatus:r,onInterruptResume:i})=>[(0,t.renderSlot)(n.$slots,`message`,(0,t.normalizeProps)((0,t.guardReactiveProps)({message:e,messageToolsStatus:r,onInterruptResume:i})))]),_:3},8,[`selected-user-messages`,`enable-selection`,`message-groups`,`message-status`,`message-tools-status`,`message-tools-tippy-options`,`messages`,`on-agent-feedback`,`on-interrupt-resume`,`on-user-action`,`on-user-input-confirm`,`on-user-shortcut-confirm`,`render-mode`])):(0,t.createCommentVNode)(``,!0)]}):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Kzt,[(0,t.renderSlot)(n.$slots,`welcome`,(0,t.normalizeProps)((0,t.guardReactiveProps)({openingRemark:e.openingRemark,welcomeTitle:e.welcomeTitle})),()=>[(0,t.createVNode)((0,t.unref)(eOt)),(0,t.createElementVNode)(`h2`,qzt,(0,t.toDisplayString)(e.welcomeTitle??(0,t.unref)(Y8)(`你好,我是小鲸`)),1),e.openingRemark?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Jzt,[(0,t.createVNode)(k7,{content:e.openingRemark},null,8,[`content`])])):(0,t.createCommentVNode)(``,!0)])])),o.value===(0,t.unref)(n5).Share?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.unref)(A)?((0,t.openBlock)(),(0,t.createBlock)(Hzt,{key:0,"is-all-selected":(0,t.unref)(j),loading:!1,"selected-count":T.value.length,onCancel:(0,t.unref)(N),onConfirm:oe,onToggleAll:(0,t.unref)(M)},null,8,[`is-all-selected`,`selected-count`,`onCancel`,`onToggleAll`])):!((a=m.value)==null||(a=a.components)==null)&&a.length?((0,t.openBlock)(),(0,t.createBlock)(bkt,(0,t.mergeProps)({key:1},m.value,{onClose:R,onSubmit:ee}),null,16)):((0,t.openBlock)(),(0,t.createBlock)(gIt,{key:2,cite:h.value,"onUpdate:cite":r[3]||=e=>h.value=e,"message-status":L.value,"model-value":e.modelValue,"on-send-message":te,"on-stop-sending":e.onStopSending,"on-upload":e.onUpload,placeholder:e.placeholder,prompts:e.prompts,resources:e.resources,"send-disabled-tip":(0,t.unref)(F),"shortcut-id":m.value?.id,shortcuts:e.shortcuts,skills:e.skills,"support-upload":e.supportUpload,"tippy-options":e.commonTippyOptions,onDeleteShortcut:z,onSelectShortcut:B,"onUpdate:modelValue":V},{interrupt:(0,t.withCtx)(()=>[(0,t.unref)(I)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(YIt),{key:0,interrupt:(0,t.unref)(I),"on-resume":e.onInterruptResume},{question:(0,t.withCtx)(({question:e,qIndex:r,answer:i,setAnswer:a,confirm:o})=>[(0,t.renderSlot)(n.$slots,`interruptQuestion`,(0,t.normalizeProps)((0,t.guardReactiveProps)({question:e,qIndex:r,answer:i,setAnswer:a,confirm:o})))]),_:3},8,[`interrupt`,`on-resume`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(F)?((0,t.openBlock)(),(0,t.createBlock)(yIt,{key:1,content:(0,t.unref)(F)},null,8,[`content`])):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`cite`,`message-status`,`model-value`,`on-stop-sending`,`on-upload`,`placeholder`,`prompts`,`resources`,`send-disabled-tip`,`shortcut-id`,`shortcuts`,`skills`,`support-upload`,`tippy-options`]))],64))]}),_:3},16,[`class`]))],12,Uzt)}}}),Xzt={class:`ai-image-preview-group`};$($({},{name:`ImagePreviewGroup`}),{},{__name:`image-preview-group`,props:{maskClosable:{type:Boolean,default:!0},onDownload:{type:Function,default:void 0},showInfo:{type:Boolean,default:!1}},setup(e){let n=new Map,r=(0,t.shallowRef)(!1),i=(0,t.shallowRef)([]),a=(0,t.shallowRef)(0);return(0,t.provide)(sFt,{register:(e,t)=>{n.set(e,t)},unregister:e=>{n.delete(e)},preview:e=>{let t=[...n.keys()],o=t.map(e=>n.get(e)()),s=t.indexOf(e);i.value=o,a.value=s>=0?s:0,r.value=!0}}),(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Xzt,[(0,t.renderSlot)(n.$slots,`default`),r.value?((0,t.openBlock)(),(0,t.createBlock)(r9,{key:0,current:a.value,"onUpdate:current":o[0]||=e=>a.value=e,visible:r.value,"onUpdate:visible":o[1]||=e=>r.value=e,images:i.value,"mask-closable":e.maskClosable,"on-download":e.onDownload,"show-info":e.showInfo},(0,t.createSlots)({_:2},[n.$slots.extra?{name:`extra`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra`)]),key:`0`}:void 0]),1032,[`current`,`visible`,`images`,`mask-closable`,`on-download`,`show-info`])):(0,t.createCommentVNode)(``,!0)]))}});var Zzt=[`alt`,`src`],Qzt={key:1,class:`ai-image-error`};$($({},{name:`AiImage`}),{},{__name:`image`,props:{alt:{default:``},height:{default:void 0},lazy:{type:Boolean,default:!1},onDownload:{},preview:{type:Boolean,default:!0},previewProps:{default:void 0},showInfo:{type:Boolean,default:!1},src:{},width:{default:void 0}},emits:[`load`,`error`,`preview`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=Symbol(),s=(0,t.inject)(sFt,null),l=(0,t.ref)(),u=(0,t.shallowRef)(`loading`),d=(0,t.shallowRef)(!1),f=(0,t.shallowRef)(!i.lazy),p=null,m=(0,t.computed)(()=>i.previewProps?.src||i.src),h=()=>{let e=i.previewProps;return{url:m.value,name:e?.name,width:e?.width,height:e?.height,resolution:e?.resolution,downloadUrl:e?.downloadUrl}},g=(0,t.shallowRef)(0),_=(0,t.computed)(()=>{if(!i.lazy||f.value){let e=i.src;return g.value===0?e:`${e}${e.includes(`?`)?`&`:`?`}_t=${g.value}`}return``}),v=(0,t.computed)(()=>[h()]),y=(0,t.computed)(()=>{let e={};return i.width&&(e.width=typeof i.width==`number`?`${i.width}px`:i.width),i.height&&(e.height=typeof i.height==`number`?`${i.height}px`:i.height),e}),b={width:`100%`,height:`100%`,objectFit:`cover`},x=e=>{u.value=`loaded`,a(`load`,e)},S=e=>{u.value=`error`,a(`error`,e)},C=()=>{u.value=`loading`,g.value=Date.now()},w=()=>{!i.preview||u.value!==`loaded`||(s?s.preview(o):d.value=!0,a(`preview`))},T=()=>{!i.lazy||!l.value||(p=new IntersectionObserver(e=>{var t;(t=e[0])!=null&&t.isIntersecting&&(f.value=!0,p?.disconnect(),p=null)},{rootMargin:`200px`}),p.observe(l.value))},E=()=>{p?.disconnect(),p=null};return(0,t.onMounted)(()=>{T(),s?.register(o,h)}),(0,t.onBeforeUnmount)(()=>{E(),s?.unregister(o)}),n({previewVisible:d}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`containerRef`,ref:l,class:(0,t.normalizeClass)([`ai-image`,{"ai-image--error":u.value===`error`,"ai-image--preview":e.preview&&u.value===`loaded`}]),style:(0,t.normalizeStyle)(y.value),onClick:w},[u.value!==`error`&&_.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,alt:e.alt,class:`ai-image-inner`,src:_.value,style:b,onError:S,onLoad:x},null,40,Zzt)):(0,t.createCommentVNode)(``,!0),u.value===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qzt,[(0,t.createVNode)((0,t.unref)(iOt),{class:`ai-image-error-icon`})])):(0,t.createCommentVNode)(``,!0),u.value===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`ai-image-error-overlay`,onClick:C},[(0,t.createVNode)((0,t.unref)(bOt),{class:`ai-image-reload-icon`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Y8)(`重新加载`)),1)])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),!(0,t.unref)(s)&&e.preview&&d.value?((0,t.openBlock)(),(0,t.createBlock)(r9,{key:3,visible:d.value,"onUpdate:visible":r[0]||=e=>d.value=e,images:v.value,"on-download":e.onDownload,"show-info":e.showInfo},(0,t.createSlots)({_:2},[n.$slots.extra?{name:`extra`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra`)]),key:`0`}:void 0]),1032,[`visible`,`images`,`on-download`,`show-info`])):(0,t.createCommentVNode)(``,!0)],6))}});var $zt=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAAGVn0euAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAj4UlEQVR4Ae1dB4AURbqu7pnZyOICShIVBI5TDPgwR0yn5yknKigIy+5KMCJ4ohgQMGdP8BQDsAsqHsZTnnqcPlEU1DNwnnqKYATxRDIsuxO63/f91dXTMzuzzBLEd28Leqq66q+//lR/he7qVWpbh35lsYVBnHbwJpjuPqB2Be/3s9X+jH9TFnMZZwxdBkVXdhkc+02w8E8VifoVOg+Kurze/tRxuw2OuodU1tUHMlgI2GdczH1/kSPXR1847ieLE+6AC2uk0v7DoxKn8DDkt7aaMOFOtWaNq8YjXr/WVS3DupEehXHBLRWInXc/rXbV22/NU+vWOurNN+epmnWoENEV9g9WWDIjzyoOuWo9AG694xlVi/ihe55SsfUJtOAI5h5FCYnD8oufj6ryrVcLNrknHmyrkO2qSEgpx3ZUK7SAf5Y11rIIKz+mEuM/jNzgtgDdpd4l6ZCjGO99Vat68MG6v5R09/61NfVoGe/6+vITBqg2HLoJevnK3DO+61v3CXPvi7VbpVsSj8XW7b2HUsNPDamrQ3VuKXRzVlF+wYhJVj9TwRcTtT1rbBgyVyqM3BBS190VVS0i7psfRMNHLnwwT2CFpD3LYmM6trXU8lWuW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bou9/XPYlB9AwjCApTLiMc3qM15pHBEpzW3Q2PNpqXMDcgQA+GhBGW7BsB0q+IcJChFUuh6ktgpQ4Uxhi/FCplZJTC/GiNo376Fr6cikUhnoYB1msfAEEafzeucV/aB/pGBdKzTUPfivW7OPmRl6CInsIcWmAjZMpYrhkzmE/rE4YJg4xm+FM5zfENgQKsQcPoJXnwBxGMVDzNLo8yIUxjnYIXP75VCw4tfFMm7iyOP+JY46oaPIjh31RkO7pN0/u0Uv38QPlJ40rReVN7AJrZZoF0bqfgWgMu2nQLxqwrjTBoZWaQEwGgIFUpWpgGhmVaKNo10GKTCjMWq63XWDHbSsGJDKnH2GufbVOmHE9ThM720mg0yjY48UrLGiB6BXB/sWO1zxw4vnF/iCxd2KR3u4fykatLw4m8m8HwcDFkj1EzLlAIRujiCuAvjIUGy9KFEbz3BUlXIvg9KxfcWvimPdOWESpdlVas7j1GMb7CDL2QlOA2+BnDKODmPsSHZXp33ZFjQGO0OGLExp6Ya18EIfcH4/IMj8IQy/St1BMk8ikQ42a0gjzhIp+CkzIKEbBaaIwJwx6TqkxRrNdWUtnJtpLlyCN+GkMK3tReLOWe0kHLqE6jW+V8xAnohU7GOzzw4/bdO9QcELLdY7DSwqMSaxf4/J0hfHyr0N0FwigUJXHwxVQRjLsUkBE40m7SOkVIWERDiFSAWKkuFyXRlbE+3BAV5Slf18e9pzhdXyuL31GTb6kBFjVdfY/miQO4OMYTz6rdRrdqhWRTaJJAkwSaJNAkgSYJNEmgSQJNEmhQAv8Lix8k/gNx6O4AAAAASUVORK5CYII=`,eBt=e=>({conversationSettings:{openingRemark:e?.conversation_settings?.opening_remark,predefinedQuestions:e?.conversation_settings?.predefined_questions,commands:e?.conversation_settings?.commands?.map(e=>({id:e.id,name:e.name,alias:e.alias,icon:e.icon,components:e.components.map(e=>({type:e.type,name:e.name,key:e.key,placeholder:e.placeholder,default:e.default,required:e.required,fillBack:e.fill_back,fillRegx:e.fill_regx,rows:e.rows,min:e.min,max:e.max,options:e.options})),content:e.content,agentId:e.agent_id,status:e.status,supportUpload:e.support_upload})),enableChatSession:e?.conversation_settings?.enable_chat_session},promptSetting:e?.prompt_setting?{content:e.prompt_setting.content,supportUpload:e.prompt_setting.support_upload}:void 0,agentName:e?.agent_name,relatedSkills:e?.related_skills?.map(e=>({id:e.id,skill_name:e.skill_name,skill_code:e.skill_code,description:e.description,icon:e.icon})),chatGroup:e?.chat_group?{enabled:e.chat_group.enabled,staff:e.chat_group.staff,username:e.chat_group.username}:void 0,saasUrl:e?.saas_url,resources:e?.resources}),y9=function(e){return e.FlowAgent=`flow_agent`,e.KnowledgeRag=`knowledge_rag`,e.ReferenceDocument=`reference_document`,e}({}),b9=function(e){return e.Activity=`activity`,e.Assistant=`assistant`,e.Developer=`developer`,e.Guide=`guide`,e.Hidden=`hidden`,e.HiddenAssistant=`hidden-assistant`,e.HiddenGuide=`hidden-guide`,e.HiddenSystem=`hidden-system`,e.HiddenUser=`hidden-user`,e.Info=`info`,e.Pause=`pause`,e.Placeholder=`placeholder`,e.Reasoning=`reasoning`,e.System=`system`,e.TemplateAssistant=`template-assistant`,e.TemplateGuide=`template-guide`,e.TemplateHidden=`template-hidden`,e.TemplateSystem=`template-system`,e.TemplateUser=`template-user`,e.Tool=`tool`,e.User=`user`,e.Interrupt=`interrupt`,e}({}),x9=function(e){return e.Complete=`complete`,e.Error=`error`,e.Pending=`pending`,e.Stop=`stop`,e.Streaming=`streaming`,e}({}),S9=function(e){return e.Binary=`binary`,e.Function=`function`,e.Text=`text`,e}({}),C9=function(e){return e.FlowNodeRetry=`flow_node_retry`,e.FlowNodeSkip=`flow_node_skip`,e.ApprovalCancel=`approval_cancel`,e}({}),w9=e=>{let t={id:e.id,messageId:e.message_id,name:e.name,role:e.role,sessionCode:e.session_code,status:e.status};switch(e.role){case b9.Activity:{let n=e,r=e=>e.map(e=>({name:e.name,originFileUrl:e.origin_file_url,url:e.url})),i;switch(n.activity_type){case y9.ReferenceDocument:i=r(n.content);break;case y9.KnowledgeRag:{let e=n.content;i={content:e.content,referenceDocument:r(e.reference_document)};break}case y9.FlowAgent:default:i=n.content;break}return{...t,activityType:n.activity_type,content:i,role:n.role}}case b9.Assistant:{let n=e;return{...t,content:n.content,property:n.property,role:n.role,toolCalls:n.tool_calls?.map(e=>({function:{arguments:e.function.arguments,name:e.function.name,description:e.function.description,mcpName:e.function.mcp_name},id:e.id,type:e.type}))}}case b9.Developer:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Guide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Hidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Info:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Pause:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Placeholder:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Reasoning:{let n=e;return{...t,content:n.content,duration:n.duration,role:n.role}}case b9.System:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateHidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Tool:{let n=e;return{...t,content:n.content,duration:n.duration,error:n.error,role:n.role,toolCallId:n.tool_call_id}}case b9.User:{let n=e,r=n.content;return{...t,content:Array.isArray(r)?r.map(e=>{if(e.type===S9.Binary){let t=e;return{data:t.data,filename:t.filename,id:t.id,mimeType:t.mime_type,type:t.type,url:t.url}}return e}):r,property:n.property,role:n.role}}case b9.Interrupt:return{...t,...e}}},tBt=e=>{let t={id:e.id,message_id:e.messageId,name:e.name,role:e.role,session_code:e.sessionCode,status:e.status};switch(e.role){case b9.Activity:{let n=e,r=e=>e.map(e=>({name:e.name,origin_file_url:e.originFileUrl,url:e.url})),i;switch(n.activityType){case y9.ReferenceDocument:i=r(n.content);break;case y9.KnowledgeRag:{let e=n.content;i={content:e.content,reference_document:r(e.referenceDocument)};break}case y9.FlowAgent:default:i=n.content;break}return{...t,activity_type:n.activityType,content:i,role:n.role}}case b9.Assistant:{let n=e;return{...t,property:n.property,content:n.content,role:n.role,tool_calls:n.toolCalls?.map(e=>({function:{arguments:e.function.arguments,name:e.function.name,description:e.function.description,mcp_name:e.function.mcpName},id:e.id,type:e.type}))}}case b9.Developer:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Guide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Hidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.HiddenUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Info:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Pause:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Placeholder:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Reasoning:{let n=e;return{...t,content:n.content,duration:n.duration,role:n.role}}case b9.System:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateAssistant:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateGuide:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateHidden:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateSystem:{let n=e;return{...t,content:n.content,role:n.role}}case b9.TemplateUser:{let n=e;return{...t,content:n.content,role:n.role}}case b9.Tool:{let n=e;return{...t,content:n.content,duration:n.duration,error:n.error,role:n.role,tool_call_id:n.toolCallId}}case b9.User:{let n=e,r=n.content;return{...t,content:Array.isArray(r)?r.map(e=>{if(e.type===S9.Binary){let t=e;return{data:t.data,filename:t.filename,id:t.id,mime_type:t.mimeType,type:t.type,url:t.url}}return e}):r,property:n.property,role:n.role}}case b9.Interrupt:return{...t,...e}}},T9=e=>({sessionCode:e.session_code,sessionContentCount:e.session_content_count,sessionName:e.session_name,isTemporary:e.is_temporary,model:e.model,comment:e.comment,rate:e.rate,updatedAt:e.updated_at,createdAt:e.created_at,status:e.status,roleInfo:e.role_info?{collectionId:e.role_info.collection_id,collectionName:e.role_info.collection_name,content:e.role_info.content,variables:e.role_info.variables}:void 0,sessionProperty:{isAutoClear:e.session_property?.is_auto_clear,isAutoCalcPrompt:e.session_property?.is_auto_clac_prompt,labels:e.session_property?.labels}}),nBt=e=>({session_code:e.sessionCode,session_content_count:e.sessionContentCount,session_name:e.sessionName,is_temporary:e.isTemporary,model:e.model,comment:e.comment,rate:e.rate,updated_at:e.updatedAt,created_at:e.createdAt,status:e.status,role_info:e.roleInfo?{collection_id:e.roleInfo.collectionId,collection_name:e.roleInfo.collectionName,content:e.roleInfo.content,variables:e.roleInfo.variables}:void 0,session_property:{is_auto_clear:e.sessionProperty?.isAutoClear,is_auto_clac_prompt:e.sessionProperty?.isAutoCalcPrompt,labels:e.sessionProperty?.labels}}),rBt=e=>({session_code:e.sessionCode,session_content_ids:e.sessionContentIds,rate:e.rate,comment:e.comment,labels:e.labels}),iBt=e=>({sessionCode:e.session_code,sessionContentIds:e.session_content_ids,rate:e.rate,comment:e.comment,labels:e.lables}),aBt=()=>`temp_${Date.now()}_${Math.random().toString(36).slice(2,9)}`,oBt=e=>{let n=(0,t.ref)([]),r=(0,t.ref)(!1),i=(0,t.ref)(!1),a=t=>(r.value=!0,e.http?.message.getMessages(t).then(e=>{n.value=e}).finally(()=>{r.value=!1})),o=()=>p(n.value),s=e=>{n.value=n.value.map(t=>t.messageId===e.messageId?e:t)},l=e=>{n.value.push(e)},u=()=>n.value.findLast(e=>[x9.Pending,x9.Streaming].includes(e.status)),d=e=>n.value.find(t=>t.messageId===e),f=async t=>{let r=aBt(),i={...t,id:r,messageId:r};n.value.push(i);try{let i=await e.http?.message.plusMessage(t);if(i){let e=n.value.findIndex(e=>e.messageId===r);if(e!==-1){let r={...i,...`property`in t&&t.property?{property:t.property}:{}};n.value[e]=r}}}catch(e){let t=n.value.findIndex(e=>e.messageId===r);throw t!==-1&&(n.value[t]={...n.value[t],status:x9.Error}),e}},p=async t=>{let r=t.reduce((e,t)=>(t.role===b9.User&&e.push(t.id),e),[]);if(r.length<=0)return;let a=[...n.value];n.value=n.value.filter(e=>!t.includes(e)),i.value=!0;try{await e.http?.message.batchDeleteMessages(r)}catch(e){throw n.value=a,e}finally{i.value=!1}};return{list:n,isListLoading:r,isDeleteLoading:i,getMessages:a,clearMessages:o,getCurrentLoadingMessage:u,getMessageByMessageId:d,modifyMessage:s,plusMessage:l,createAndPlusMessage:f,deleteMessages:p,shareMessages:async(t,n,r)=>{let i=n.reduce((e,t)=>(t.role===b9.User&&e.push(t.id),e),[]);if(!(i.length<=0))return e.http?.message.shareMessages(t,i,r)},getFlowAgentTaskInfo:t=>e.http?.message.getFlowAgentTaskInfo(t),getFlowAgentTaskNodeInfo:(t,n)=>e.http?.message.getFlowAgentTaskNodeInfo(t,n),reset:()=>{n.value=[],r.value=!1,i.value=!1}}},E9=function(e){return e.FlowAgentEnd=`flow_agent_end`,e.FlowAgentResult=`flow_agent_result`,e.FlowAgentStart=`flow_agent_start`,e.FlowAgentUpdate=`flow_agent_update`,e.KnowledgeRagEnd=`knowledge_rag_end`,e.KnowledgeRagResult=`knowledge_rag_result`,e.KnowledgeRagStart=`knowledge_rag_start`,e.KnowledgeRagTextContent=`knowledge_rag_text_content`,e.ReferenceDocument=`reference_document`,e.TempMessage=`temp_message`,e.ApprovalResult=`approval_result`,e}({}),D9=function(e){return e.ActivityDelta=`ACTIVITY_DELTA`,e.ActivitySnapshot=`ACTIVITY_SNAPSHOT`,e.Custom=`CUSTOM`,e.MessagesSnapshot=`MESSAGES_SNAPSHOT`,e.Raw=`RAW`,e.RunError=`RUN_ERROR`,e.RunFinished=`RUN_FINISHED`,e.RunStarted=`RUN_STARTED`,e.StateDelta=`STATE_DELTA`,e.StateSnapshot=`STATE_SNAPSHOT`,e.StepFinished=`STEP_FINISHED`,e.StepStarted=`STEP_STARTED`,e.TextMessageChunk=`TEXT_MESSAGE_CHUNK`,e.TextMessageContent=`TEXT_MESSAGE_CONTENT`,e.TextMessageEnd=`TEXT_MESSAGE_END`,e.TextMessageStart=`TEXT_MESSAGE_START`,e.ThinkingEnd=`THINKING_END`,e.ThinkingStart=`THINKING_START`,e.ThinkingTextMessageContent=`THINKING_TEXT_MESSAGE_CONTENT`,e.ThinkingTextMessageEnd=`THINKING_TEXT_MESSAGE_END`,e.ThinkingTextMessageStart=`THINKING_TEXT_MESSAGE_START`,e.ToolCallArgs=`TOOL_CALL_ARGS`,e.ToolCallChunk=`TOOL_CALL_CHUNK`,e.ToolCallEnd=`TOOL_CALL_END`,e.ToolCallResult=`TOOL_CALL_RESULT`,e.ToolCallStart=`TOOL_CALL_START`,e}({}),sBt=function(e){return e.Blocked=`BLOCKED`,e.Created=`CREATED`,e.Failed=`FAILED`,e.Finished=`FINISHED`,e.LoopReady=`LOOP_READY`,e.Ready=`READY`,e.Revoked=`REVOKED`,e.RollBackFailed=`ROLL_BACK_FAILED`,e.RollBackSuccess=`ROLL_BACK_SUCCESS`,e.RollingBack=`ROLLING_BACK`,e.Running=`RUNNING`,e.Suspended=`SUSPENDED`,e}({}),O9=function(e){return e.Success=`success`,e.Interrupt=`interrupt`,e}({}),cBt=function(e){return e.Abandoned=`abandoned`,e.Approved=`approved`,e.Cancelled=`cancelled`,e.Draft=`draft`,e.Expired=`expired`,e.Rejected=`rejected`,e.Pending=`pending`,e}({}),k9=function(e){return e.Resolved=`resolved`,e.Cancelled=`cancelled`,e}({}),A9=class{messageModule;onDoneCallback;onErrorCallback;onMessageCallback;onStartCallback;constructor(e){this.onDoneCallback=e?.onDone,this.onErrorCallback=e?.onError,this.onMessageCallback=e?.onMessage,this.onStartCallback=e?.onStart}handleActivityDeltaEvent(e){}handleActivitySnapshotEvent(e){}handleCustomEvent(e){switch(e.name){case E9.FlowAgentStart:this.handleFlowAgentStartCustomEvent(e);break;case E9.FlowAgentResult:this.handleFlowAgentResultCustomEvent(e);break;case E9.FlowAgentEnd:this.handleFlowAgentEndCustomEvent(e);break;case E9.ReferenceDocument:this.handleReferenceDocumentCustomEvent(e);break;case E9.KnowledgeRagStart:this.handleKnowledgeRagStartCustomEvent(e);break;case E9.KnowledgeRagTextContent:this.handleKnowledgeRagTextContentCustomEvent(e);break;case E9.KnowledgeRagResult:this.handleKnowledgeRagResultCustomEvent(e);break;case E9.KnowledgeRagEnd:this.handleKnowledgeRagEndCustomEvent(e);break;case E9.TempMessage:this.handleTempMessageCustomEvent(e);break;case E9.ApprovalResult:this.handleApprovalResultCustomEvent(e);break;case E9.FlowAgentUpdate:this.handleFlowAgentUpdateCustomEvent(e);break;default:break}}handleFlowAgentEndCustomEvent(e){let t=this.messageModule.getCurrentLoadingMessage();if(t&&t.role===b9.Activity&&t.activityType===y9.FlowAgent){t.status=x9.Complete;let n=e.value;this.messageModule.plusMessage({role:b9.Assistant,content:n.map(e=>e.task_outputs.join(`
3486
3486
  `)).join(`
3487
3487
  `),status:x9.Complete})}}handleFlowAgentResultCustomEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&t.role===b9.Activity&&t.activityType===y9.FlowAgent&&(t.content=e.value)}handleFlowAgentStartCustomEvent(e){let t=e.value;this.messageModule.plusMessage({role:b9.Activity,activityType:y9.FlowAgent,content:t.map(e=>({nodes:{},task_id:Number(e.task_id),task_name:``,task_outputs:[],task_state:sBt.Created})),status:x9.Streaming})}handleFlowAgentUpdateCustomEvent(e){let t=e.value;this.messageModule.list.value.forEach(e=>{e.role===b9.Activity&&e.activityType===y9.FlowAgent&&e.content[0].task_id===t[0].task_id&&(e.content=t)})}handleKnowledgeRagEndCustomEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&t.role===b9.Activity&&t.activityType===y9.KnowledgeRag&&(t.status=x9.Complete)}handleKnowledgeRagResultCustomEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&t.role===b9.Activity&&t.activityType===y9.KnowledgeRag&&(t.content.referenceDocument=e.value)}handleKnowledgeRagStartCustomEvent(e){this.messageModule.plusMessage({role:b9.Activity,activityType:y9.KnowledgeRag,content:{content:``,referenceDocument:[]},status:x9.Streaming})}handleKnowledgeRagTextContentCustomEvent(e){let t=this.messageModule.getCurrentLoadingMessage();if(t&&t.role===b9.Activity&&t.activityType===y9.KnowledgeRag){let n=e.value;t.content.content=n.cover?n.chunk.content:t.content.content+n.chunk.content}}handleMessagesSnapshotEvent(e){e.messages&&e.messages.length>0&&(this.messageModule.list.value=e.messages.map(w9))}handleRawEvent(e){}handleReferenceDocumentCustomEvent(e){this.messageModule.plusMessage({role:b9.Activity,activityType:y9.ReferenceDocument,content:e.value,status:x9.Complete})}handleRunErrorEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&(t.status=x9.Complete),this.messageModule.plusMessage({role:b9.Assistant,content:e.message,status:x9.Error})}handleRunFinishedEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&(t.status=x9.Complete),e.outcome?.type===O9.Interrupt&&this.messageModule.plusMessage({role:b9.Interrupt,content:e,status:x9.Pending}),e.outcome?.type===O9.Success&&t?.role===b9.Interrupt&&(t.content=e)}handleRunStartedEvent(e){}handleStateDeltaEvent(e){}handleStateSnapshotEvent(e){}handleStepFinishedEvent(e){}handleStepStartedEvent(e){}handleTempMessageCustomEvent(e){let t=e.value;this.messageModule.plusMessage({role:b9.Assistant,content:t.message,status:t.status})}handleApprovalResultCustomEvent(e){let t=e.value,n=this.messageModule.getCurrentLoadingMessage();n&&(n.content=t,n.status=x9.Complete)}handleTextMessageChunkEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t?t.content+=e.delta||``:this.messageModule.plusMessage({role:e.role,content:e.delta||``,status:x9.Complete,messageId:e.messageId})}handleTextMessageContentEvent(e){let t=this.messageModule.getMessageByMessageId(e.messageId);t&&(t.content+=e.delta)}handleTextMessageEndEvent(e){let t=this.messageModule.getMessageByMessageId(e.messageId);t&&(t.status=x9.Complete)}handleTextMessageStartEvent(e){this.messageModule.plusMessage({role:e.role,content:``,status:x9.Streaming,messageId:e.messageId})}handleThinkingEndEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&t.role===b9.Reasoning&&(t.duration=e.duration,t.status=x9.Complete)}handleThinkingStartEvent(e){this.messageModule.plusMessage({role:b9.Reasoning,content:[],status:x9.Streaming})}handleThinkingTextMessageContentEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&t.role===b9.Reasoning&&(t.content[t.content.length-1]+=e.delta)}handleThinkingTextMessageEndEvent(e){}handleThinkingTextMessageStartEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t&&t.role===b9.Reasoning&&t.content.push(``)}handleToolCallArgsEvent(e){this.messageModule.list.value.forEach(t=>{t.role===b9.Assistant&&t.toolCalls&&t.toolCalls.forEach(t=>{t.id===e.toolCallId&&(t.function.arguments+=e.delta)})})}handleToolCallChunkEvent(e){}handleToolCallEndEvent(e){this.messageModule.list.value.forEach(t=>{t.role===b9.Assistant&&t.toolCalls&&t.toolCalls.some(t=>t.id===e.toolCallId)&&(t.status=x9.Complete)})}handleToolCallResultEvent(e){let t=this.messageModule.getCurrentLoadingMessage();t?.role===b9.Interrupt?(t.content.result=JSON.parse(e.content),t.content.outcome.type=O9.Success,t.status=x9.Complete):this.messageModule.plusMessage({role:b9.Tool,content:e.content,duration:e.duration,status:x9.Complete,toolCallId:e.toolCallId,messageId:e.messageId})}handleToolCallStartEvent(e){this.messageModule.plusMessage({role:b9.Assistant,content:``,status:x9.Streaming,toolCalls:[{id:e.toolCallId,type:S9.Function,function:{mcpName:e.mcpName,name:e.toolCallName,arguments:``,description:e.description}}]})}injectMessageModule(e){this.messageModule=e}onDone(){this.onDoneCallback?.()}onError(e){this.messageModule.plusMessage({role:b9.Assistant,content:e.message,status:x9.Error}),this.onErrorCallback?.(e)}onMessage(e){let t=e;switch(this.onMessageCallback?.(t),t.type){case D9.ActivityDelta:this.handleActivityDeltaEvent(t);break;case D9.ActivitySnapshot:this.handleActivitySnapshotEvent(t);break;case D9.Custom:this.handleCustomEvent(t);break;case D9.MessagesSnapshot:this.handleMessagesSnapshotEvent(t);break;case D9.Raw:this.handleRawEvent(t);break;case D9.RunError:this.handleRunErrorEvent(t);break;case D9.RunFinished:this.handleRunFinishedEvent(t);break;case D9.RunStarted:this.handleRunStartedEvent(t);break;case D9.StateDelta:this.handleStateDeltaEvent(t);break;case D9.StateSnapshot:this.handleStateSnapshotEvent(t);break;case D9.StepFinished:this.handleStepFinishedEvent(t);break;case D9.StepStarted:this.handleStepStartedEvent(t);break;case D9.TextMessageChunk:this.handleTextMessageChunkEvent(t);break;case D9.TextMessageContent:this.handleTextMessageContentEvent(t);break;case D9.TextMessageEnd:this.handleTextMessageEndEvent(t);break;case D9.TextMessageStart:this.handleTextMessageStartEvent(t);break;case D9.ThinkingEnd:this.handleThinkingEndEvent(t);break;case D9.ThinkingStart:this.handleThinkingStartEvent(t);break;case D9.ThinkingTextMessageContent:this.handleThinkingTextMessageContentEvent(t);break;case D9.ThinkingTextMessageEnd:this.handleThinkingTextMessageEndEvent(t);break;case D9.ThinkingTextMessageStart:this.handleThinkingTextMessageStartEvent(t);break;case D9.ToolCallArgs:this.handleToolCallArgsEvent(t);break;case D9.ToolCallChunk:this.handleToolCallChunkEvent(t);break;case D9.ToolCallEnd:this.handleToolCallEndEvent(t);break;case D9.ToolCallResult:this.handleToolCallResultEvent(t);break;case D9.ToolCallStart:this.handleToolCallStartEvent(t);break;default:break}}onStart(){this.onStartCallback?.()}},lBt=function(e){return e.Running=`running`,e.Finished=`finished`,e.Failed=`failed`,e.Cancelled=`cancelled`,e}({}),uBt=(e,n)=>{let r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(!1),o=n||new A9,s=null,l=null,u=()=>(i.value=!0,e.http?.agent.getAgentInfo().then(e=>{r.value=e}).finally(()=>{i.value=!1})),d=(t,n)=>{let r=t.promptSetting?.content?.at(-1);r?.role===b9.Pause&&e.message?.createAndPlusMessage({role:b9.Assistant,content:r.content,status:x9.Complete,sessionCode:n,property:{extra:{pause:!0}}})},f=(t,n,r,i)=>e.http?.message.userOperation(t,n,r,i).then(()=>{n===C9.ApprovalCancel?(_(),g(t)):p({sessionCode:t,config:i})}),p=async({sessionCode:t,url:n,config:r,resume:i,input:l})=>{o instanceof A9&&o.injectMessageModule(e.message),l&&e.message?.list.value.push({role:b9.User,content:l,status:x9.Complete,sessionCode:t}),s=new AbortController,e.http?.fetchClient.streamRequest({url:n||`chat_completion/`,method:`POST`,data:{session_code:t,input:l,execute_kwargs:{stream:!0,persist_input:!!l,resume:i}},controller:s,onDone:()=>{a.value=!1,o.onDone?.call(o),l&&e.http?.message?.getMessages(t).then(t=>{let n=e.message?.list.value.findLast(e=>e.role===b9.User);n.id=t.findLast(e=>e.role===b9.User).id}),g(t)},onError:e=>{a.value=!1,o.onError?.call(o,e)},onMessage:e=>{o.onMessage?.call(o,e)},onStart:()=>{a.value=!0,o.onStart?.call(o)},...r})},m=async(t,n,r,i,a)=>{await e.message?.createAndPlusMessage({role:b9.User,content:t,status:x9.Complete,sessionCode:n,...a&&{property:a}}),p({sessionCode:n,url:r,config:i})},h=(t,n,r)=>{e.session?.current.value?.status===lBt.Running&&p({sessionCode:t,url:n,config:r})},g=t=>{let n=e.message?.list.value.at(-1),r=n?.content?.outcome?.type===O9.Interrupt?n.content.outcome.interrupts.find(e=>[cBt.Pending,cBt.Draft].includes(e.metadata?.ticket?.status)):void 0;n?.role===b9.Interrupt&&r&&e.http?.session.isResumeSession(t).then(n=>{n?p({sessionCode:t,resume:{interruptId:r.id,status:k9.Resolved}}):l=setTimeout(()=>{t===e.session?.current?.value?.sessionCode&&g(t)},3e4)})},_=()=>{l&&=(clearTimeout(l),null)};return{info:r,isInfoLoading:i,isChatting:a,chat:m,handleRole:d,resendMessage:async(t,n,r,i,a)=>{let o=e.message?.list.value||[],s=o.findIndex(e=>String(e.id)===t);if(s===-1)throw Error(`Message not found: ${t}`);let l=o[s];if(l.role!==b9.User)throw Error(`Can only resend user messages`);let u=l.content,d=l.property,f=r??u,m=o.slice(s),h=e.message?.deleteMessages(m),g=e.message?.createAndPlusMessage({role:b9.User,content:f,status:x9.Complete,sessionCode:n,...d&&{property:d}});p({sessionCode:n,url:i,config:a}),Promise.all([h,g]).catch(e=>{console.error(`[resendMessage] API error:`,e)})},resumeStreamingChat:h,abortChat:()=>{s?.abort?.(),s=null},stopChat:async t=>e.http.message?.stopChat(t),getAgentInfo:u,reset:e=>{o=e||new A9,r.value=null,i.value=!1},pollResumeSession:g,clearLongPollTimer:_,userOperationStreamRequest:f,streamRequest:p}};function dBt(e){return(0,t.isRef)(e)}function j9(e){if(e==null)return;let n=e,r=0;for(;r<32;){if(r+=1,typeof n==`function`){n=n();continue}if(dBt(n)){n=(0,t.unref)(n);continue}break}return r>=32&&console.warn(`[chat-helper] resolveRequestValue: exceeded max unwrap depth`),n}var fBt=class{handlers=[];clear(){this.handlers=[]}eject(e){this.handlers[e]&&(this.handlers[e]=null)}forEach(e){this.handlers.forEach(t=>{t!==null&&e(t)})}use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1}},pBt=class e{defaults;interceptors;constructor(e={}){this.defaults=P9({method:`GET`,headers:{"Content-Type":`application/json`},timeout:3e4,responseType:`json`,credentials:`include`,mode:`cors`,validateStatus:e=>e>=200&&e<300},e),this.interceptors={request:new fBt,response:new fBt}}applyResponseErrorInterceptors(e){let t=e;return this.interceptors.response.forEach(e=>{e.rejected&&(t=e.rejected(t))}),t}create(t){return new e(P9(this.defaults,t||{}))}delete(e,t,n){return this.request({...n,url:e,method:`DELETE`,params:t})}get(e,t,n){return this.request({...n,url:e,method:`GET`,params:t})}head(e,t,n){return this.request({...n,url:e,method:`HEAD`,params:t})}options(e,t,n){return this.request({...n,url:e,method:`OPTIONS`,params:t})}patch(e,t,n){return this.request({...n,url:e,method:`PATCH`,data:t})}post(e,t,n){return this.request({...n,url:e,method:`POST`,data:t})}prepareRequest(e,t=!1){let n=P9(this.defaults,e);this.interceptors.request.forEach(e=>{if(e.fulfilled)try{n=e.fulfilled(n)}catch(t){throw e.rejected?e.rejected(t):t}});let r=n.url||``;n.baseURL&&!r.startsWith(`http`)&&(r=n.baseURL+r),r=mBt(r,n.params);let i=N9(n.data),a=new Headers(N9(n.headers));t&&!a.has(`Accept`)&&a.set(`Accept`,`text/event-stream`),i!=null&&(n.transformRequest?i=n.transformRequest(i,N9(n.headers)):a.get(`Content-Type`)?.includes(`application/json`)&&typeof i==`object`&&!(i instanceof FormData)&&!(i instanceof Blob)&&!(i instanceof ArrayBuffer)&&(i=JSON.stringify(i)));let o=n.controller??new AbortController,s={method:n.method,credentials:n.credentials,mode:n.mode,headers:a,body:i,signal:o.signal};return{url:r,requestConfig:n,fetchConfig:s,controller:o}}put(e,t,n){return this.request({...n,url:e,method:`PUT`,data:t})}async request(e){let{url:t,fetchConfig:n,requestConfig:r,controller:i}=this.prepareRequest(e),a=r.timeout&&r.timeout>0?setTimeout(()=>i.abort(),r.timeout):void 0;try{let e=await fetch(t,n);a&&clearTimeout(a);let i,o=r.responseType||`json`;try{switch(o){case`json`:i=await e.json();break;case`text`:i=await e.text();break;case`blob`:i=await e.blob();break;case`arrayBuffer`:i=await e.arrayBuffer();break;case`formData`:i=await e.formData();break;default:i=await e.json()}}catch{i=null}r.transformResponse&&(i=r.transformResponse(i));let s={data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:r};if(!(r.validateStatus||this.defaults.validateStatus)(e.status))throw M9(s.data?.error?.message||`Request failed with status code ${e.status}`,r,`ERR_BAD_RESPONSE`,s);let l=s;this.interceptors.response.forEach(e=>{if(e.fulfilled)try{l=e.fulfilled(l)}catch(t){throw e.rejected?e.rejected(t):t}}),l instanceof Promise&&(l=await l);let u=l.data;if(![0,`success`].includes(u.code))throw M9(u.message,r,u.code,l);return u.data}catch(e){if(a&&clearTimeout(a),e instanceof Error&&e.name===`AbortError`){let e=M9(`Request timeout`,r,`ECONNABORTED`,void 0);throw this.applyResponseErrorInterceptors(e)}let t=e.isAxiosError===!0?e:M9(e.message,r,e.code,void 0);throw this.applyResponseErrorInterceptors(t)}}stream(e,t){return this.streamRequest({...t,url:e})}async streamRequest(e){let{url:t,fetchConfig:n,requestConfig:r}=this.prepareRequest(e,!0);try{let i=await fetch(t,n);if(!(r.validateStatus||this.defaults.validateStatus)(i.status)){let t=`Request failed with status code ${i.status}`;try{let e=await i.json();e?.error?.message&&(t=e.error.message)}catch{t=`Request failed with status code ${i.status}`}let n=M9(t,r,`ERR_BAD_RESPONSE`,void 0);e.onError?.(n);return}e.onStart?.();let a=i.body?.pipeThrough(new window.TextDecoderStream).getReader();if(!a){let t=Error(`IResponse body is not readable`);e.onError?.(t);return}let o=``,s=e=>{try{return JSON.parse(e),!0}catch{return!1}};for(;;){let{value:t,done:n}=await a.read();if(n){e.onDone?.();break}(o+t.toString()).split(`
3488
3488
  `).forEach(t=>{let n=t.replace(`data:`,``).trim();if(s(n)){let t=JSON.parse(n);e.onMessage?.(t),o=``}else n&&(o=n)})}}catch(t){throw t instanceof Error&&(t.name===`AbortError`?e.onDone?.():e.onError?.(t)),t}}};function mBt(e,t){if(!t)return e;let n=new URLSearchParams;Object.keys(t).forEach(e=>{let r=t[e];r!=null&&(Array.isArray(r)?r.forEach(t=>n.append(e,String(t))):n.append(e,String(r)))});let r=n.toString();return r?`${e}${e.includes(`?`)?`&`:`?`}${r}`:e}function M9(e,t,n,r){let i=Error(e);return i.config=t,i.code=String(n),i.response=r,i.isAxiosError=!0,i}function N9(e){return j9(e)}function hBt(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function P9(e,t){let n={...e};for(let r in t){let i=t[r];if(hBt(i)){let t=e[r];n[r]=P9(t||{},i)}else n[r]=i}return n}new pBt;var gBt=new Set([`POST`,`PUT`,`PATCH`,`DELETE`]),_Bt=new Set([`GET`,`HEAD`,`OPTIONS`]);function vBt(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function yBt(e,t){let{headers:n,data:r}=t.requestData;!n&&!r||e.interceptors.request.use(e=>{let t=e,i=(e.method??`GET`).toUpperCase();if(n){let r=j9(n);if(r&&Object.keys(r).length>0){let n=j9(e.headers)??{};t={...t,headers:{...n,...r}}}}if(r){let n=j9(r);if(n&&Object.keys(n).length>0){if(gBt.has(i)){let r=j9(e.data);r==null?t={...t,data:n}:vBt(r)?t={...t,data:{...n,...r}}:console.warn(`[chat-helper] requestData.data 无法注入:当前请求体不是普通对象(FormData/Blob/string 等),已跳过合并。`,{method:i,existingType:typeof r})}else if(_Bt.has(i)){let r=e.params??{};t={...t,params:{...n,...r}}}}}return t})}var bBt=e=>{let t=new pBt({baseURL:e.requestData.urlPrefix});return yBt(t,e),e.interceptors?.request&&t.interceptors.request.use(e.interceptors.request),e.interceptors?.response&&t.interceptors.response.use(e.interceptors.response),{fetchClient:t,reset:e=>{t.defaults.baseURL=e.requestData.urlPrefix,t.interceptors.request.clear(),t.interceptors.response.clear(),yBt(t,e),e.interceptors?.request&&t.interceptors.request.use(e.interceptors.request),e.interceptors?.response&&t.interceptors.response.use(e.interceptors.response)}}},xBt=e=>({getAgentInfo:t=>e.get(`agent/info/`,void 0,t).then(eBt)}),SBt=e=>({getMessages:(t,n,r)=>e.get(`session_content/content/`,{session_code:t,limit:n},r).then(e=>e.map(w9)),plusMessage:(t,n)=>e.post(`session_content/`,tBt(t),n).then(w9),modifyMessage:(t,n)=>e.put(`session_content/${t.id}/`,tBt(t),n).then(w9),deleteMessage:(t,n)=>e.delete(`session_content/${t}/`,void 0,n),batchDeleteMessages:(t,n)=>e.post(`session_content/batch_delete/`,{ids:t},n),shareMessages:(t,n,r,i)=>e.post(`share/`,{session_code:t,content_ids:n,...r?{expired_at:r}:{}},i),stopChat:(t,n)=>e.post(`session_content/stop/`,{session_code:t},n),getFlowAgentTaskInfo:(t,n)=>e.get(`flow_agent/${t}/task_info/`,void 0,n),getFlowAgentTaskNodeInfo:(t,n,r)=>e.get(`flow_agent/${t}/task_node_info/${n}/`,void 0,r),retryFlowAgentTaskNode:(t,n,r,i)=>e.post(`flow_agent/${t}/node/${n}/retry/`,{task_id:r},i),skipFlowAgentTaskNode:(t,n,r,i)=>e.post(`flow_agent/${t}/node/${n}/skip/`,{task_id:r},i),userOperation:(t,n,r,i)=>e.post(`user_operation/`,{session_code:t,operation:n,payload:r},i)}),CBt=e=>({clearSession:(t,n)=>e.post(`chat_completion/${t}/clear/`,void 0,n),getSessions:t=>e.get(`session/`,void 0,t).then(e=>e.map(T9)),plusSession:(t,n)=>e.post(`session/`,nBt(t),n).then(e=>T9(e)),modifySession:(t,n)=>e.put(`session/${t.sessionCode}/`,nBt(t),n).then(e=>T9(e)),deleteSession:(t,n)=>e.delete(`session/${t}/`,void 0,n),batchDeleteSessions:(t,n)=>e.post(`session/batch_delete/`,{session_codes:t},n),getSession:(t,n)=>e.get(`session/${t}/`,void 0,n).then(e=>T9(e)),postSessionFeedback:(t,n)=>e.post(`session_feedback/`,rBt(t),n).then(e=>iBt(e)),getSessionFeedbackReasons:(t,n)=>e.get(`session_feedback/reasons/`,{rate:t},n),renameSession:(t,n)=>e.post(`session/${t}/ai_rename/`,void 0,n).then(e=>T9(e)),uploadFile:(t,n,r)=>{let i=encodeURIComponent(n.name);return n.arrayBuffer().then(a=>e.post(`session/${t}/upload/${i}/`,a,{...r,headers:{"Content-Disposition":`attachment; filename="${n.name}"`}}))},isResumeSession:(t,n)=>e.get(`session/${t}/is_resume/`,void 0,n)}),wBt=e=>({agent:xBt(e),session:CBt(e),message:SBt(e),fetchClient:e}),TBt=e=>{let{fetchClient:t,reset:n}=bBt(e);return{...wBt(t),reset:n}},EBt=()=>({agent:null,http:null,message:null,session:null,registerAgent(e){this.agent=e},registerHttp(e){this.http=e},registerMessage(e){this.message=e},registerSession(e){this.session=e}}),DBt=e=>{let n=(0,t.ref)([]),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(!1),l=(0,t.ref)(!1),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=e=>{n.value=n.value.map(t=>t.sessionCode===e.sessionCode?{...t,...e}:t),r.value?.sessionCode===e.sessionCode&&(r.value=n.value.find(t=>t.sessionCode===e.sessionCode)??r.value)},p=()=>(a.value=!0,e.http?.session.getSessions().then(e=>{n.value=e}).finally(()=>{a.value=!1})),m=async(t,n)=>{e.agent?.abortChat(),await h(t),n?.loadMessages===!1?e.message&&(e.message.list.value=[]):(await e.message?.getMessages(t),e.agent?.resumeStreamingChat(t),e.agent?.pollResumeSession(t))},h=t=>(i.value=!0,e.http?.session.getSession(t).then(e=>{r.value=e}).finally(()=>{i.value=!1}));return{list:n,current:r,isCurrentLoading:i,isListLoading:a,isCreateLoading:o,isUpdateLoading:s,isDeleteLoading:l,isBatchDeleteLoading:u,getSessions:p,chooseSession:m,getSession:h,createSession:async(t,r)=>{o.value=!0;try{let i=await e.http?.session.plusSession(t);i&&(n.value.unshift(i),await m(i.sessionCode,{loadMessages:r?.loadMessages??!1}))}finally{o.value=!1}},updateSession:t=>(s.value=!0,e.http?.session.modifySession(t).then(e=>{f(e)}).finally(()=>{s.value=!1})),deleteSession:async t=>{l.value=!0;try{await e.http?.session.deleteSession(t),n.value=n.value.filter(e=>e.sessionCode!==t),r.value?.sessionCode===t&&n.value[0]?.sessionCode&&await m(n.value[0].sessionCode)}finally{l.value=!1}},batchDeleteSessions:async t=>{if(t.length!==0){u.value=!0;try{await e.http?.session.batchDeleteSessions(t);let i=new Set(t);n.value=n.value.filter(e=>!i.has(e.sessionCode)),r.value&&i.has(r.value.sessionCode)&&(n.value.length>0?await m(n.value[0].sessionCode):(r.value=null,e.message&&(e.message.list.value=[])))}finally{u.value=!1}}},postSessionFeedback:t=>e.http?.session.postSessionFeedback(t),getSessionFeedbackReasons:t=>e.http?.session.getSessionFeedbackReasons(t),renameSession:t=>(d.value=!0,e.http?.session.renameSession(t).then(e=>{f({sessionCode:e.sessionCode,sessionName:e.sessionName})}).finally(()=>{d.value=!1})),uploadFile:(t,n)=>e.http?.session.uploadFile(t,n),reset:()=>{n.value=[],r.value=null,i.value=!1,a.value=!1,o.value=!1,s.value=!1,l.value=!1,u.value=!1,d.value=!1}}},F9=e=>{let t=EBt(),n=TBt(e),r=uBt(t,e.protocol),i=oBt(t),a=DBt(t);return t.registerHttp(n),t.registerMessage(i),t.registerAgent(r),t.registerSession(a),{agent:r,session:a,message:i,http:n,reset:e=>{n.reset(e),r.reset(e.protocol),i.reset(),a.reset()}}},OBt=new Set([`context_type`,`__label`,`__key`,`__value`]);function kBt(e,n){return{urlPrefix:e,headers:()=>j9((0,t.toValue)(n)?.headers),data:()=>j9((0,t.toValue)(n)?.data)}}function ABt(e){return e?Array.isArray(e)?e.map(e=>{if(e.__key)return e;let t=Object.entries(e).filter(([e])=>!OBt.has(e));if(t.length===0)return e;let[n,r]=t[0];return{...e,[n]:r,context_type:e.context_type??`input`,__label:e.__label??n,__key:e.__key??n,__value:e.__value??r}}):Object.entries(e).map(([e,t])=>({[e]:t,context_type:`input`,__label:e,__key:e,__value:t})):[]}function I9(e,t){if(!t)return e;let n=t()?.context;if(!n)return e;let r=ABt(n);return r.length===0?e:jBt(e,r)}function jBt(e,t){if(t.length===0)return e??{};let n=e??{},r=n.extra??{},i=r.context??[],a=new Set(t.map(e=>e.__key).filter(Boolean)),o=i.filter(e=>{let t=e.__key;return!t||!a.has(t)});return{...n,extra:{...r,context:[...o,...t]}}}function L9(e,t){let n=null;for(let r of e)if(r.role===`user`&&r.id!==void 0&&(n=r),r===t)break;return n}function MBt(e,t){let n=L9(e,t);if(n?.id!==void 0)return typeof n.id==`number`?n.id:Number(n.id)}function NBt(e){if(!e)return[];if(typeof e!=`string`)return[{type:`text`,content:e}];let t=[],n=/```custom-component\s*\n([\s\S]*?)\n```/g,r=0,i;for(;(i=n.exec(e))!==null;){if(i.index>r){let n=e.slice(r,i.index).trim();n&&t.push({type:`text`,content:n})}try{let e=JSON.parse(i[1]);t.push({type:`custom`,data:e,raw:i[1]})}catch{t.push({type:`text`,content:i[0]})}r=i.index+i[0].length}if(r<e.length){let n=e.slice(r).trim();n&&t.push({type:`text`,content:n})}return t}var PBt=e=>{let t=document.cookie.match(RegExp(`(^| )${e}=([^;]*)(;|$)`));return t?t[2]:``},FBt=e=>e.endsWith(`/`)?e:`${e}/`,IBt=e=>{if(!e)return e;try{let t=new URL(e,window.location.origin);return t.protocol=window.location.protocol,FBt(t.toString())}catch(t){return console.warn(`Failed to normalize URL:`,t),FBt(e)}};async function LBt(e){if(typeof navigator<`u`&&`clipboard`in navigator)try{return await navigator.clipboard.writeText(e),!0}catch{}let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.left=`-9999px`,t.style.top=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand(`copy`)}catch{return!1}finally{document.body.removeChild(t)}}function RBt(){let e=window.navigator.userAgent.toLowerCase(),t=window.navigator.platform.toLowerCase();return t.includes(`mac`)||e.includes(`mac`)?`mac`:t.includes(`win`)||e.includes(`win`)?`windows`:t.includes(`linux`)||e.includes(`linux`)?`linux`:`unknown`}function zBt(){return BBt()?`Cmd + I`:`Ctrl + I`}function BBt(){return RBt()===`mac`}function VBt(e){let t=BBt()?e.metaKey:e.ctrlKey,n=e.key.toLowerCase()===`i`;return t&&n&&!e.shiftKey&&!e.altKey}var HBt=PBt(`blueking_language`)||`zh-cn`,UBt={小鲸:`BK GPT`,关闭:`close`,发送:`Send`,请输入:`Please input`,昨天:`yesterday`,"3天前":`3 days ago`,"5天前":`5 days ago`,"1周前":`1 week ago`,更早:`Older`,删除:`Delete`,恢复默认大小:`Restore default size`,"AI 小鲸":`AI BK GPT`,新增会话:`New chat`,历史会话:`History session`,停止生成:`Stop generating`,复制:`Copy`,编辑:`Edit`,今天:`Today`,搜索会话名称:`Search session name`,重命名:`Rename`,自动生成命名:`Auto generate name`,分享会话:`Share session`,无智能体使用权限:`No permission to use this agent`,暂无使用权限:`No permission`,请输入新的会话名称:`Please enter new session name`,"确认删除会话 ?":`Confirm delete session?`,搜索为空:`No search results`,暂无对话:`No conversations`,转人工:`Transfer to human`,缩小高度:`Shrink height`,全选:`Select all`,取消:`Cancel`,确定:`Confirm`,分享链接已复制到剪贴板:`Share link copied to clipboard`},WBt={重命名:`重命名`,自动生成命名:`自动生成命名`,分享会话:`分享会话`,全选:`全选`,取消:`取消`,确定:`确定`,分享链接已复制到剪贴板:`分享链接已复制到剪贴板`},R9=e=>HBt===`en`?UBt[e]||e:WBt[e]||e;function GBt(e){let{triggerRef:n,panelComponent:r,panelProps:i={},tippyOptions:a={}}=e,o=(0,t.ref)(null),s=null,l=()=>(s||=document.createElement(`div`),(0,t.render)((0,t.h)(r,{...i,onClose:p}),s),s),u=e=>{let t=e.target,r=n.value;if(r&&r.contains(t))return;let i=document.querySelector(`.tippy-box[data-theme~="history-panel"]`);if(i&&i.contains(t))return;let a=document.querySelector(`.tippy-box[data-theme~="more-menu-light"]`);a&&a.contains(t)||o.value?.state.isVisible&&o.value.hide()},d=()=>{if(!n.value||o.value)return;let e={placement:`bottom-end`,offset:[0,8],appendTo:document.querySelector(`.ai-blueking-container-wrapper`)||document.body};o.value=fu(n.value,{content:l(),interactive:!0,trigger:`manual`,theme:`light history-panel`,arrow:!1,hideOnClick:!1,animation:`scale`,duration:200,delay:[0,0],...e,...a,onShow:()=>{o.value&&s&&o.value.setContent(l()),setTimeout(()=>{document.addEventListener(`click`,u,!1)},0)},onHidden:()=>{document.removeEventListener(`click`,u,!1)}})},f=()=>{o.value||d(),o.value?.show()},p=()=>{o.value?.hide()},m=()=>{o.value||d(),o.value?.state.isVisible?p():f()},h=e=>{e.stopPropagation(),m()},g=()=>{o.value&&=(o.value.destroy(),null),s&&=((0,t.render)(null,s),null),document.removeEventListener(`click`,u,!1)};return(0,t.onBeforeUnmount)(()=>{g()}),{show:f,hide:p,toggle:m,handleTriggerClick:h,destroy:g,isVisible:()=>o.value?.state.isVisible??!1}}var KBt={class:`history-group`},qBt={class:`history-group-title`},JBt={class:`history-group-list`},YBt=(0,t.defineComponent)({__name:`history-group`,props:{currentSessionCode:{},sessions:{},title:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,KBt,[(0,t.createElementVNode)(`div`,qBt,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n.title),1)]),(0,t.createElementVNode)(`div`,JBt,[(0,t.renderSlot)(e.$slots,`default`,{},void 0,!0)])]))}}),z9=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},XBt=z9(YBt,[[`__scopeId`,`data-v-3b603cb6`]]),ZBt={class:`history-item-actions`},QBt=z9((0,t.defineComponent)({__name:`history-item`,props:{isActive:{type:Boolean},isEditing:{type:Boolean},session:{}},emits:[`click`,`delete`,`edit`,`rename-cancel`,`rename-confirm`],setup(e,{emit:n}){let r=e,i=n,a=_he,o=(0,t.ref)(null),s=(0,t.ref)(``);(0,t.watch)(()=>r.isEditing,e=>{e&&(s.value=r.session.sessionName,(0,t.nextTick)(()=>{if(o.value)try{let e=o.value;e&&typeof e.focus==`function`&&e.focus();let t=e.$el?.querySelector(`input`);t&&typeof t.select==`function`&&t.select()}catch(e){console.warn(`Failed to focus edit input:`,e)}}))});let l=()=>{r.isEditing||i(`click`,r.session)},u=()=>{i(`edit`,r.session)},d=()=>{i(`delete`,r.session.sessionCode)},f=()=>{let e=s.value.trim();e&&e!==r.session.sessionName?i(`rename-confirm`,r.session.sessionCode,e):i(`rename-cancel`)},p=()=>{i(`rename-cancel`)},m=(e,t)=>{t.key===`Enter`?f():t.key===`Escape`&&p()};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`history-item`,{active:r.isActive}]),onClick:l},[r.isEditing?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ns),{key:1,ref_key:`editInputRef`,ref:o,modelValue:s.value,"onUpdate:modelValue":n[1]||=e=>s.value=e,style:{width:`100%`,height:`28px`},onBlur:f,onKeyup:m,onClick:n[2]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,[`modelValue`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createVNode)((0,t.unref)(Ode),{style:{width:`calc(100% - 42px)`}},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.session.sessionName),1)]),_:1}),(0,t.createElementVNode)(`span`,ZBt,[(0,t.withDirectives)((0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-bianji`,onClick:(0,t.withModifiers)(u,[`stop`])},null,512),[[(0,t.unref)(a),{content:(0,t.unref)(R9)(`编辑`),boundary:`parent`}]]),(0,t.createVNode)((0,t.unref)(Lme),{title:(0,t.unref)(R9)(`确认删除会话 ?`),content:`删除操作无法撤回,请谨慎操作!`,"confirm-config":{theme:`danger`},trigger:`click`,boundary:`parent`,onConfirm:d},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-shanchu`,onClick:n[0]||=(0,t.withModifiers)(()=>{},[`stop`])},null,512),[[(0,t.unref)(a),{content:(0,t.unref)(R9)(`删除`),boundary:`parent`}]])]),_:1},8,[`title`])])],64))],2))}}),[[`__scopeId`,`data-v-fea14d3a`]]),$Bt={class:`history-search`},eVt={class:`input-icon`},tVt=z9((0,t.defineComponent)({__name:`history-search`,props:{modelValue:{default:``},placeholder:{default:``}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=e=>{i(`update:modelValue`,e)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$Bt,[(0,t.createVNode)((0,t.unref)(ns),{"model-value":r.modelValue,behavior:`simplicity`,placeholder:r.placeholder||(0,t.unref)(R9)(`搜索会话名称`),style:{height:`22px`},"onUpdate:modelValue":a},{suffix:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,eVt,[(0,t.createVNode)((0,t.unref)(Ya))])]),_:1},8,[`model-value`,`placeholder`])]))}}),[[`__scopeId`,`data-v-e7ff40b2`]]),nVt={class:`bkai-history-dropdown`},rVt={class:`history-dropdown-header`},iVt={class:`history-dropdown-header-title`},aVt={class:`history-dropdown-content`},oVt=z9((0,t.defineComponent)({__name:`index`,props:{sessionBusinessManager:{}},emits:[`close`,`session-delete`,`session-rename`,`session-switch`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(``),o=(0,t.ref)(null),s=(0,t.computed)(()=>r.sessionBusinessManager.currentSession.value?.sessionCode),l=(0,t.computed)(()=>{let e={today:{key:`today`,alias:R9(`今天`),sessionList:[]},yesterday:{key:`yesterday`,alias:R9(`昨天`),sessionList:[]},"3days":{key:`3days`,alias:R9(`3天前`),sessionList:[]},"5days":{key:`5days`,alias:R9(`5天前`),sessionList:[]},"1week":{key:`1week`,alias:R9(`1周前`),sessionList:[]},before:{key:`before`,alias:R9(`更早`),sessionList:[]}},t=r.sessionBusinessManager.sessionList.value.filter(e=>e.sessionName.toLowerCase().includes(a.value.toLowerCase())),n=new Date,i=new Date(n);i.setDate(i.getDate()-1);let o=new Date(n);o.setDate(n.getDate()-3);let s=new Date(n);s.setDate(n.getDate()-5);let l=new Date(n);l.setDate(n.getDate()-7);for(let r of t){let t=new Date(r.createdAt||``),a=t.toDateString();a===n.toDateString()?e.today.sessionList.push(r):a===i.toDateString()?e.yesterday.sessionList.push(r):t>=o&&t>s?e[`3days`].sessionList.push(r):t>=s&&t>l?e[`5days`].sessionList.push(r):t>=l?e[`1week`].sessionList.push(r):e.before.sessionList.push(r)}for(let t of Object.values(e))t.sessionList.sort((e,t)=>{let n=new Date(e.createdAt||0).getTime();return new Date(t.createdAt||0).getTime()-n});return Object.values(e).filter(e=>e.sessionList.length>0)}),u=e=>s.value===e,d=e=>{u(e.sessionCode)||(i(`session-switch`,e.sessionCode),i(`close`))},f=e=>{o.value=e.sessionCode},p=e=>{i(`session-delete`,e)},m=(e,t)=>{let n=r.sessionBusinessManager.sessionList.value.find(t=>t.sessionCode===e);n&&(n.sessionName=t),o.value=null,i(`session-rename`,e,t)},h=()=>{o.value=null};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,nVt,[(0,t.createElementVNode)(`div`,rVt,[(0,t.createElementVNode)(`h1`,iVt,(0,t.toDisplayString)((0,t.unref)(R9)(`历史会话`)),1),(0,t.createVNode)(tVt,{modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,placeholder:(0,t.unref)(R9)(`搜索会话名称`)},null,8,[`modelValue`,`placeholder`])]),(0,t.createElementVNode)(`div`,aVt,[l.value.length>0?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(l.value,e=>((0,t.openBlock)(),(0,t.createBlock)(XBt,{key:e.key,"current-session-code":s.value,sessions:e.sessionList,title:e.alias},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sessionList,e=>((0,t.openBlock)(),(0,t.createBlock)(QBt,{key:e.sessionCode,"is-active":u(e.sessionCode),"is-editing":o.value===e.sessionCode,session:e,onClick:d,onDelete:p,onEdit:f,onRenameCancel:h,onRenameConfirm:m},null,8,[`is-active`,`is-editing`,`session`]))),128))]),_:2},1032,[`current-session-code`,`sessions`,`title`]))),128)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Xs),{key:1,description:a.value?(0,t.unref)(R9)(`搜索为空`):(0,t.unref)(R9)(`暂无对话`),scene:`part`,style:{"margin-top":`100px`},type:a.value?`search-empty`:`empty`},null,8,[`description`,`type`]))])]))}}),[[`__scopeId`,`data-v-143fb0ef`]]);function sVt(e){return e.sessionBusinessManager?GBt({triggerRef:e.triggerRef,panelComponent:oVt,panelProps:{sessionBusinessManager:e.sessionBusinessManager,onSessionSwitch:e.onSessionSwitch,onSessionDelete:e.onSessionDelete,onSessionRename:e.onSessionRename},tippyOptions:{placement:`bottom-end`,offset:[0,8],appendTo:()=>document.querySelector(`.ai-blueking-panel`)||document.body}}):{handleTriggerClick:()=>{},show:()=>{},hide:()=>{},toggle:()=>{},destroy:()=>{},isVisible:()=>!1}}var cVt={class:`left-section`},lVt={class:`logo`},uVt=[`src`],dVt={key:0,class:`rename-tooltip`},fVt={class:`rename-content`},pVt={key:0,class:`tippy-dropdown-menu`},mVt={key:1,class:`bkai-icon bkai-auto-refresh-line`},hVt={class:`right-section`},gVt=z9((0,t.defineComponent)({__name:`index`,props:{title:{default:``},agentName:{default:``},sessionName:{default:``},isCompressionHeight:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},showCompressionIcon:{type:Boolean,default:!0},showMoreIcon:{type:Boolean,default:!0},enableChatSession:{type:Boolean,default:!0},hasPermission:{type:Boolean,default:!0},chatGroup:{default:()=>({enabled:!1,staff:[],username:``})},hasSessionContents:{type:Boolean},autoGenerateLoading:{type:Boolean},dropdownMenuConfig:{default:()=>({showRename:!0,showAutoGenerate:!0,showShare:!1})},sessionBusinessManager:{default:void 0},renderMode:{default:n5.Chat}},emits:[`close`,`toggle-compression`,`new-chat`,`history-click`,`auto-generate-name`,`help-click`,`rename`,`share`,`history-session-switch`,`history-session-delete`,`history-session-rename`,`new-chat-created`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=_he,s=(0,t.ref)(null),l=(0,t.ref)(null),u=(0,t.useTemplateRef)(`moreMenuTippyRef`),d=(0,t.ref)(!1),f=(0,t.ref)(``),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=()=>document.querySelector(`.ai-blueking-panel`)||document.body,g=null,_=()=>{!l.value||!i.sessionBusinessManager||(g=sVt({triggerRef:l,sessionBusinessManager:i.sessionBusinessManager,onSessionSwitch:e=>a(`history-session-switch`,e),onSessionDelete:e=>a(`history-session-delete`,e),onSessionRename:(e,t)=>a(`history-session-rename`,e,t)}))},v=(0,t.computed)(()=>i.hasPermission?i.enableChatSession?i.title||`${i.agentName||``}-${i.sessionName||``}`:i.agentName:R9(`无智能体使用权限`)),y=(0,t.computed)(()=>i.isCompressionHeight?`bkai-morenchicun`:`bkai-yasuo`),b=(0,t.computed)(()=>i.isCompressionHeight?R9(`恢复默认尺寸`):R9(`缩小高度`)),x=(0,t.computed)(()=>i.hasPermission),S=e=>x.value?e:R9(`暂无使用权限`),C=()=>({cursor:x.value?`pointer`:`not-allowed`}),w=(0,t.ref)(!1),T=async()=>{if(!w.value){w.value=!0;try{if(i.sessionBusinessManager)try{let e=await i.sessionBusinessManager.createNewSession();e&&a(`new-chat-created`,{sessionCode:e.sessionCode,sessionName:e.sessionName,createdAt:e.createdAt})}catch(e){console.error(`Failed to create new session:`,e),ic({theme:`error`,message:R9(`创建会话失败`)})}a(`new-chat`)}finally{w.value=!1}}},E=e=>{e.stopPropagation(),i.sessionBusinessManager?(g||_(),g&&g.handleTriggerClick(e)):a(`history-click`,e)},D=()=>{a(`help-click`)},O=e=>{e.stopPropagation(),g&&g.isVisible()&&g.hide(),u.value&&(m.value?u.value.hide():u.value.show())},k=()=>{u.value?.hide(),M()},A=()=>{!i.hasSessionContents||i.autoGenerateLoading||a(`auto-generate-name`)},j=()=>{i.hasSessionContents&&(u.value?.hide(),a(`share`))},M=()=>{document.removeEventListener(`click`,I),f.value=i.sessionName||``,d.value=!0,setTimeout(()=>{document.addEventListener(`click`,I)},100),setTimeout(()=>{if(p.value)try{let e=p.value;e&&typeof e.focus==`function`&&e.focus();let t=e.$el?.querySelector(`input`);t&&typeof t.select==`function`&&t.select()}catch(e){console.warn(`Failed to focus rename input:`,e)}},100)},N=()=>{let e=f.value.trim();if(!e){P();return}a(`rename`,e),d.value=!1,f.value=``},P=()=>{d.value=!1,f.value=``},F=(e,t)=>{f.value=e,t.key===`Enter`?N():t.key===`Escape`&&P()},I=e=>{if(!d.value)return;let t=e.target,n=document.querySelector(`.rename-tooltip`);n&&!n.contains(t)&&P()};return(0,t.watch)(()=>i.autoGenerateLoading,(e,t)=>{t&&!e&&m.value&&u.value?.hide()}),(0,t.onMounted)(()=>{i.sessionBusinessManager&&_(),document.addEventListener(`click`,I)}),(0,t.onBeforeUnmount)(()=>{g&&=(g.destroy(),null),document.removeEventListener(`click`,I)}),n({headerRef:s,historyIconRef:l}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`headerRef`,ref:s,class:(0,t.normalizeClass)([`ai-header drag-handle`,{draggable:i.draggable}])},[(0,t.createElementVNode)(`div`,cVt,[(0,t.createElementVNode)(`div`,lVt,[(0,t.createElementVNode)(`img`,{alt:`logo`,src:(0,t.unref)($zt)},null,8,uVt)]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`title`,{"title-with-tooltip":d.value}])},[(0,t.createTextVNode)((0,t.toDisplayString)(v.value)+` `,1),(0,t.createCommentVNode)(` 重命名 tooltip 直接绑定在 title 上 `),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,dVt,[(0,t.createElementVNode)(`div`,fVt,[(0,t.createVNode)((0,t.unref)(ns),{ref_key:`renameInputRef`,ref:p,modelValue:f.value,"onUpdate:modelValue":r[0]||=e=>f.value=e,class:`rename-input`,placeholder:(0,t.unref)(R9)(`请输入新的会话名称`),onKeyup:F},null,8,[`modelValue`,`placeholder`]),(0,t.createElementVNode)(`div`,{class:`rename-buttons`},[(0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-check-1 rename-btn confirm-btn`,onClick:N}),(0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-close rename-btn cancel-btn`,onClick:P})])])])):(0,t.createCommentVNode)(`v-if`,!0)],2),(0,t.createCommentVNode)(` 更多图标下拉菜单 - 使用 vue-tippy `),i.showMoreIcon&&x.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Jl),{key:0,ref_key:`moreMenuTippyRef`,ref:u,arrow:!1,"append-to":h,offset:[0,4],interactive:``,placement:`bottom-start`,theme:`ai-blueking-light more-menu-light light`,trigger:`manual`,onHidden:r[1]||=e=>m.value=!1,onShown:r[2]||=e=>m.value=!0},{content:(0,t.withCtx)(()=>[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pVt,[i.dropdownMenuConfig?.showRename?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`tippy-menu-item`,onClick:k},[r[7]||=(0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-bianji`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(R9)(`重命名`)),1)])):(0,t.createCommentVNode)(`v-if`,!0),i.dropdownMenuConfig?.showAutoGenerate?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`tippy-menu-item`,{disabled:!i.hasSessionContents||i.autoGenerateLoading}]),onClick:A},[i.autoGenerateLoading?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Lo),{key:0,mode:`spin`,size:`mini`,theme:`primary`})):((0,t.openBlock)(),(0,t.createElementBlock)(`i`,mVt)),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(R9)(`自动生成命名`)),1)],2)),[[(0,t.unref)(Xl),{content:i.hasSessionContents?``:(0,t.unref)(R9)(`请先发起会话`),theme:`ai-blueking-tooltip`,arrow:!0,delay:[300,0],appendTo:h}]]):(0,t.createCommentVNode)(`v-if`,!0),i.dropdownMenuConfig?.showShare&&i.renderMode!==(0,t.unref)(n5).Test?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:(0,t.normalizeClass)([`tippy-menu-item`,{disabled:!i.hasSessionContents}]),onClick:j},[r[8]||=(0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-fenxiang`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(R9)(`分享会话`)),1)],2)),[[(0,t.unref)(Xl),{content:i.hasSessionContents?``:(0,t.unref)(R9)(`请先发起会话`),theme:`ai-blueking-tooltip`,arrow:!0,delay:[300,0],appendTo:h}]]):(0,t.createCommentVNode)(`v-if`,!0)])):(0,t.createCommentVNode)(`v-if`,!0)]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`bkai-icon bkai-more`,onClick:O})]),_:1},512)):(0,t.createCommentVNode)(`v-if`,!0)]),(0,t.renderSlot)(n.$slots,`headerLeft`,{},void 0,!0),(0,t.createElementVNode)(`div`,hVt,[(0,t.createCommentVNode)(` 新增会话按钮 `),i.showNewChatIcon&&e.enableChatSession!==!1?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)([`bkai-icon`,`bkai-xinzengliaotian`,{disabled:!x.value||w.value}]),style:(0,t.normalizeStyle)(C()),onClick:r[3]||=e=>x.value&&!w.value?T():void 0},null,6)),[[(0,t.unref)(o),{content:w.value?(0,t.unref)(R9)(`正在创建会话...`):S((0,t.unref)(R9)(`新增会话`)),boundary:`parent`}]]):(0,t.createCommentVNode)(`v-if`,!0),(0,t.createCommentVNode)(` 历史会话按钮 `),i.showHistoryIcon&&e.enableChatSession!==!1?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:1,ref_key:`historyIconRef`,ref:l,class:(0,t.normalizeClass)([`bkai-icon`,`bkai-history`,{disabled:!x.value}]),style:(0,t.normalizeStyle)(C()),onClick:r[4]||=e=>x.value?E(e):void 0},null,6)),[[(0,t.unref)(o),{content:S((0,t.unref)(R9)(`历史会话`)),boundary:`parent`}]]):(0,t.createCommentVNode)(`v-if`,!0),e.chatGroup?.enabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:2,class:`bkai-icon bkai-zhushou`,onClick:D},null,512)),[[(0,t.unref)(o),{content:(0,t.unref)(R9)(`转人工`),boundary:`parent`}]]):(0,t.createCommentVNode)(`v-if`,!0),i.showCompressionIcon?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:3,class:(0,t.normalizeClass)([`bkai-icon`,y.value]),onClick:r[5]||=e=>a(`toggle-compression`)},null,2)),[[(0,t.unref)(o),{content:b.value,boundary:`parent`}]]):(0,t.createCommentVNode)(`v-if`,!0),(0,t.withDirectives)((0,t.createElementVNode)(`i`,{class:`bkai-icon bkai-close-line-2`,onClick:r[6]||=e=>a(`close`)},null,512),[[(0,t.unref)(o),{content:(0,t.unref)(R9)(`关闭`),boundary:`parent`}]])])],2))}}),[[`__scopeId`,`data-v-de3b1a3b`]]),_Vt=class{_isGenerating;_isStopLoading;agentModule;config;eventEmitter;messageModule;sessionModule;autoRenameSessionIfNeeded(e){let t=this.sessionModule;if(!t||this.messageModule.list.value.length!==1)return;let n=t.renameSession(e);n&&n.catch(e=>{console.error(`[ChatBusinessManager] Auto rename session failed:`,e)})}emit(e,t){this.eventEmitter?.emit(e,t)}constructor(e,n,r=null,i=null,a={}){this.agentModule=e,this.messageModule=n,this.sessionModule=r,this.eventEmitter=i,this.config=a,this._isGenerating=(0,t.ref)(!1),this._isStopLoading=(0,t.ref)(!1)}get isGenerating(){return this._isGenerating}get isStopLoading(){return this._isStopLoading}get isMessagesLoading(){return this.messageModule.isListLoading}get messages(){return this.messageModule.list}get openingRemark(){return this.config.openingRemark||``}get predefinedQuestions(){return this.config.predefinedQuestions||[]}async batchDeleteMessages(e){try{await this.messageModule.deleteMessages(e);let t=e.map(e=>e.id).filter(Boolean);this.emit(`messages-batch-deleted`,{messageIds:t})}catch(e){throw console.error(`Failed to batch delete messages:`,e),this.emit(`chat-error`,{action:`batch-delete-messages`,error:e}),e}}async deleteMessage(e){try{await this.messageModule.deleteMessages([e]),this.emit(`message-deleted`,{messageId:e.id})}catch(e){throw console.error(`Failed to delete message:`,e),this.emit(`chat-error`,{action:`delete-message`,error:e}),e}}handleStreamEnd(){this._isGenerating.value=!1,this.emit(`receive-end`,{})}handleStreamError(e){this._isGenerating.value=!1,this.emit(`receive-error`,{error:e})}handleStreamStart(){this._isGenerating.value=!0,this.emit(`receive-start`,{})}async regenerateFromAIMessages(e,t){try{if(!e||e.length===0)throw Error(`No AI messages provided`);let n=this.messages.value,r=L9(n,e[0]);if(!r)throw Error(`No user message found before AI messages`);let i=r.id;if(i===void 0)throw Error(`User message has no id`);await this.regenerateMessage(String(i),t)}catch(e){throw console.error(`Failed to regenerate from AI messages:`,e),this.emit(`chat-error`,{action:`regenerate`,error:e}),e}}async regenerateMessage(e,t){try{let n=this.messages.value,r=n.findIndex(t=>String(t.id)===e);if(r===-1)throw Error(`Message not found: ${e}`);let i=n[r];if(i.role!==b9.User)throw Error(`Can only regenerate from user messages`);let a=n.slice(r),o=typeof i.content==`string`?i.content:JSON.stringify(i.content),s=i.property;this._isGenerating.value=!0;let l=this.messageModule.deleteMessages(a);this.agentModule.chat(o,t,void 0,void 0,s),this.emit(`chat-regenerate`,{messageId:e}),l.catch(e=>{console.error(`[regenerateMessage] Delete API error:`,e)})}catch(e){throw console.error(`Failed to regenerate message:`,e),this._isGenerating.value=!1,this.emit(`chat-error`,{action:`regenerate`,error:e}),e}}async resendMessageWithProperty(e,t,n,r){try{let i=this.messages.value,a=i.findIndex(t=>String(t.id)===e);if(a===-1)throw Error(`Message not found: ${e}`);if(i[a].role!==b9.User)throw Error(`Can only resend user messages`);let o=i.slice(a);this._isGenerating.value=!0;let s=this.messageModule.deleteMessages(o);this.agentModule.chat(n,t,void 0,void 0,r),this.emit(`chat-resend`,{messageId:e}),s.catch(e=>{console.error(`[resendMessageWithProperty] Delete API error:`,e)})}catch(e){throw console.error(`Failed to resend message with property:`,e),this._isGenerating.value=!1,this.emit(`chat-error`,{action:`resend`,error:e}),e}}async retryMessage(e){try{console.warn(`retryMessage not implemented yet`),this.emit(`chat-retry`,{messageId:e})}catch(e){throw console.error(`Failed to retry message:`,e),this.emit(`chat-error`,{action:`retry`,error:e}),e}}async sendMessage(e,t,n={}){try{if(!t)throw Error(`No active session. Please create or select a session first.`);this._isGenerating.value=!0,this.emit(`send-message`,{content:e}),await this.agentModule.chat(e,t,void 0,void 0,n.property),this.autoRenameSessionIfNeeded(t)}catch(e){throw console.error(`Failed to send message:`,e),this._isGenerating.value=!1,this.emit(`chat-error`,{action:`send`,error:e}),e}}async stopGeneration(){let e=this.sessionModule?.current?.value?.sessionCode??``;this._isStopLoading.value=!0;try{await this.agentModule.stopChat(e),this._isGenerating.value=!1,this.emit(`stop`,{})}catch(e){console.error(`Failed to stop generation:`,e),this.emit(`chat-error`,{action:`stop`,error:e})}finally{this._isStopLoading.value=!1}}},B9=class{agentModule;config;eventEmitter;sessionModule;emit(e,t){this.eventEmitter?.emit(e,t)}constructor(e,t=null,n=null,r={}){this.sessionModule=e,this.agentModule=t,this.eventEmitter=n,this.config=r}get currentSession(){return this.sessionModule.current}get isCreateLoading(){return this.sessionModule.isCreateLoading}get isCurrentLoading(){return this.sessionModule.isCurrentLoading}get isDeleteLoading(){return this.sessionModule.isDeleteLoading}get isListLoading(){return this.sessionModule.isListLoading}get isUpdateLoading(){return this.sessionModule.isUpdateLoading}get sessionList(){return this.sessionModule.list}async createNewSession(){return await this.createSession({name:`新会话`,sessionCode:`new_session_${Date.now()}`}),this.sessionModule.current.value}async createSession(e={}){if(this.config.enableChatSession===!1)throw Error(`Chat session is disabled`);try{let t={sessionName:e.name||`新会话`,sessionCode:e.sessionCode||`session_${Date.now()}`,isTemporary:e.isTemporary||!1,sessionProperty:{labels:e.labels}};await this.sessionModule.createSession(t);let n=this.agentModule?.info.value;n&&this.agentModule?.handleRole(n,t.sessionCode),this.emit(`session-created`,{session:this.sessionModule.current.value})}catch(e){throw console.error(`Failed to create session:`,e),this.emit(`session-error`,{action:`create`,error:e}),e}}async deleteSession(e){try{await this.sessionModule.deleteSession(e),this.emit(`session-deleted`,{sessionCode:e})}catch(e){throw console.error(`Failed to delete session:`,e),this.emit(`session-error`,{action:`delete`,error:e}),e}}async getSession(e){try{await this.sessionModule.getSession(e)}catch(e){throw console.error(`Failed to get session:`,e),this.emit(`session-error`,{action:`get`,error:e}),e}}async loadRecentSession(e){try{e?.skipLoadSessions||await this.loadSessions();let t=this.sessionList.value;if(this.config.initialSessionCode){await this.switchSession(this.config.initialSessionCode);return}if(t.length>0){let n=t[0],r=(n.sessionContentCount??0)>0,i=e?.alwaysCreateNewSession??this.config.alwaysCreateNewSession??!1;r||i?await this.createNewSession():await this.switchSession(n.sessionCode,{loadMessages:!1});return}await this.createNewSession()}catch(e){throw console.error(`Failed to load recent session:`,e),e}}async loadSessions(){try{await this.sessionModule.getSessions(),this.emit(`sessions-loaded`,{sessions:this.sessionList.value})}catch(e){throw console.error(`Failed to load sessions:`,e),this.emit(`session-error`,{action:`load`,error:e}),e}}async switchSession(e,t){try{await this.sessionModule.chooseSession(e,t),this.emit(`session-switched`,{session:this.sessionModule.current.value})}catch(e){throw console.error(`Failed to switch session:`,e),this.emit(`session-error`,{action:`switch`,error:e}),e}}async updateSessionName(e,t){try{let n=this.sessionList.value.find(t=>t.sessionCode===e);if(!n)throw Error(`Session not found: ${e}`);await this.sessionModule.updateSession({...n,sessionName:t}),this.emit(`session-updated`,{session:this.sessionModule.current.value})}catch(e){throw console.error(`Failed to update session name:`,e),this.emit(`session-error`,{action:`update`,error:e}),e}}},vVt=class{messageModule;sessionModule;constructor(e,t){this.messageModule=e,this.sessionModule=t}async shareMessages(e){if(e.length===0)throw Error(`No messages to share`);let t=this.sessionModule.current?.value?.sessionCode;if(!t)throw Error(`No active session`);let n=await this.messageModule.shareMessages(t,e);if(!n)throw Error(`Share failed: no result returned`);return{shareUrl:`${n.share_page}share-page/${n.share_token}`,userMessageIds:e.map(e=>String(e.id))}}},V9=class{_agentShortcuts;_effectiveShortcuts;_propsShortcuts;eventEmitter;emit(e,t){this.eventEmitter?.emit(e,t)}constructor(e=null,n=[]){this._propsShortcuts=(0,t.ref)(n),this._agentShortcuts=(0,t.ref)([]),this.eventEmitter=e,this._effectiveShortcuts=(0,t.computed)(()=>this._propsShortcuts.value.length>0?this._propsShortcuts.value:this._agentShortcuts.value.length>0?this._agentShortcuts.value:[])}get count(){return this._effectiveShortcuts.value.length}get effectiveShortcuts(){return this._effectiveShortcuts}get hasShortcuts(){return this._effectiveShortcuts.value.length>0}get shortcuts(){return this._effectiveShortcuts}addShortcut(e){this._propsShortcuts.value.push(e)}clear(){this._propsShortcuts.value=[],this._agentShortcuts.value=[]}filterByTextLength(e,t){return!e||e.length>t?[]:this._effectiveShortcuts.value}filterShortcuts(e,t){return t?this._effectiveShortcuts.value.filter(n=>t(n,e)):this._effectiveShortcuts.value}getShortcutById(e){return this._effectiveShortcuts.value.find(t=>t.id===e)}handleShortcutClick(e,t,n=`main`){this.emit(`shortcut-click`,{shortcut:e,selectedText:t,source:n})}limitShortcuts(e){return this._effectiveShortcuts.value.slice(0,e)}removeShortcut(e){this._propsShortcuts.value=this._propsShortcuts.value.filter(t=>t.id!==e)}setAgentShortcuts(e){this._agentShortcuts.value=e}setShortcuts(e){this._propsShortcuts.value=e}},yVt=class{_isCompressed;_isDraggingOrResizing;_nimbusMinimized;_panelVisible;_positionAndSize;cleanupFunctions;config;containerRef=null;debugMode;listeners;onceListeners;constructor(e={}){this.config=e,this.listeners=new Map,this.onceListeners=new Map,this.debugMode=e.debug??!1,this.cleanupFunctions=[],this._panelVisible=(0,t.ref)(e.initialPanelVisible??!1),this._nimbusMinimized=(0,t.ref)(e.initialNimbusMinimized??!1),this._isDraggingOrResizing=(0,t.ref)(!1),this._isCompressed=(0,t.ref)(!1),this._positionAndSize=(0,t.ref)({x:0,y:0,width:400,height:window.innerHeight})}get container(){return{updatePosition:this.updatePosition.bind(this),updateSize:this.updateSize.bind(this),updatePositionAndSize:this.updatePositionAndSize.bind(this),toggleCompression:this.toggleCompression.bind(this),expandForSidePanel:this.expandForSidePanel.bind(this),collapseSidePanel:this.collapseSidePanel.bind(this),positionAndSize:(0,t.computed)(()=>this.containerRef?.positionAndSize?.value??this._positionAndSize.value),isCompressed:(0,t.computed)(()=>this._isCompressed.value),isSidePanelExpanded:(0,t.computed)(()=>this.containerRef?.isSidePanelExpanded?.value??!1)}}get isCompressed(){return this._isCompressed}get isDraggingOrResizing(){return this._isDraggingOrResizing}get nimbus(){return{minimize:this.minimizeNimbus.bind(this),restore:this.restoreNimbus.bind(this),toggle:this.toggleNimbus.bind(this),isMinimized:(0,t.computed)(()=>this._nimbusMinimized.value)}}get nimbusMinimized(){return this._nimbusMinimized}get panel(){return{show:this.showPanel.bind(this),hide:this.hidePanel.bind(this),toggle:this.togglePanel.bind(this),isVisible:(0,t.computed)(()=>this._panelVisible.value)}}get panelVisible(){return this._panelVisible}get state(){return{panelVisible:this._panelVisible,nimbusMinimized:this._nimbusMinimized,isDraggingOrResizing:this._isDraggingOrResizing,positionAndSize:this._positionAndSize}}collapseSidePanel(){this.containerRef?.collapseSidePanel&&this.containerRef.collapseSidePanel()}destroy(){this.listeners.clear(),this.onceListeners.clear(),this.cleanupFunctions.forEach(e=>e()),this.cleanupFunctions=[],this.debugMode&&console.debug(`[ComponentManager] Destroyed`)}emit(e,t){this.debugMode&&console.debug(`[ComponentManager] Emitting "${e}"`,t);let n=this.listeners.get(e);n&&n.forEach(n=>{try{n(t)}catch(t){console.error(`[ComponentManager] Error in listener for "${e}":`,t)}});let r=this.onceListeners.get(e);if(r&&r.size>0){let n=Array.from(r);this.onceListeners.delete(e),n.forEach(n=>{try{n(t)}catch(t){console.error(`[ComponentManager] Error in once listener for "${e}":`,t)}})}}emitInternal(e,t){this.emit(e,t)}expandForSidePanel(e){this.containerRef?.expandForSidePanel&&this.containerRef.expandForSidePanel(e)}getConfig(){return this.config}getRegisteredEvents(){let e=new Set;return this.listeners.forEach((t,n)=>e.add(n)),this.onceListeners.forEach((t,n)=>e.add(n)),Array.from(e)}handleDragging(e){this._isDraggingOrResizing.value=!0,this._positionAndSize.value=e,this.emit(`dragging`,e)}handleDragStop(e){this._isDraggingOrResizing.value=!1,this._positionAndSize.value=e,this.emit(`drag-stop`,e)}handleNimbusClick(){this.emit(`nimbus-click`,{}),this.showPanel()}handlePopupClick(){this.emit(`popup-click`,{}),this.showPanel()}handlePopupShortcutClick(e){this.emit(`popup-shortcut-click`,{shortcut:e}),this.emit(`shortcut-click`,{shortcut:e,source:`popup`})}handleResizeStop(e){this._isDraggingOrResizing.value=!1,this._positionAndSize.value=e,this.emit(`resize-stop`,e)}handleResizing(e){this._isDraggingOrResizing.value=!0,this._positionAndSize.value=e,this.emit(`resizing`,e)}handleShortcutClick(e,t){this.emit(`shortcut-click`,{shortcut:e,source:t})}hasListeners(e){return this.listenerCount(e)>0}hidePanel(){this._panelVisible.value=!1,this.emit(`panel-hide`,{})}listenerCount(e){return(this.listeners.get(e)?.size??0)+(this.onceListeners.get(e)?.size??0)}minimizeNimbus(){this._nimbusMinimized.value=!0,this.emit(`nimbus-minimize`,{})}off(e,t){t?(this.listeners.get(e)?.delete(t),this.onceListeners.get(e)?.delete(t),this.debugMode&&console.debug(`[ComponentManager] Unsubscribed from "${e}", remaining: ${this.listenerCount(e)}`)):(this.listeners.delete(e),this.onceListeners.delete(e),this.debugMode&&console.debug(`[ComponentManager] Removed all listeners for "${e}"`))}on(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),this.debugMode&&console.debug(`[ComponentManager] Subscribed to "${e}", total: ${this.listenerCount(e)}`),()=>{this.off(e,t)}}once(e,t){return this.onceListeners.has(e)||this.onceListeners.set(e,new Set),this.onceListeners.get(e).add(t),this.debugMode&&console.debug(`[ComponentManager] Subscribed once to "${e}"`),()=>{this.onceListeners.get(e)?.delete(t)}}restoreNimbus(){this._nimbusMinimized.value=!1,this.emit(`nimbus-restore`,{})}setCompressed(e){this._isCompressed.value=e}setContainerRef(e){this.containerRef=e,e?.isCompressed&&(this._isCompressed.value=e.isCompressed.value)}setDebugMode(e){this.debugMode=e}setDraggingOrResizing(e){this._isDraggingOrResizing.value=e}showPanel(e){this._panelVisible.value=!0,this.emit(`panel-show`,{sessionCode:e})}toggleCompression(){this.containerRef?this.containerRef.toggleCompression():this._isCompressed.value=!this._isCompressed.value}toggleNimbus(){this._nimbusMinimized.value?this.restoreNimbus():this.minimizeNimbus()}togglePanel(){this._panelVisible.value?this.hidePanel():this.showPanel()}updatePosition(e,t){this._positionAndSize.value={...this._positionAndSize.value,x:e,y:t}}updatePositionAndSize(e,t,n,r){this._positionAndSize.value={x:e,y:t,width:n,height:r}}updateSize(e,t){this._positionAndSize.value={...this._positionAndSize.value,width:e,height:t}}};function bVt(e){return new yVt(e)}var xVt={"panel-show":`show`,"panel-hide":`close`,"panel-toggle":null,"nimbus-click":null,"nimbus-minimize":null,"nimbus-restore":null,"popup-click":null,"popup-shortcut-click":null,dragging:`dragging`,resizing:`resizing`,"drag-stop":`drag-stop`,"resize-stop":`resize-stop`,"compression-toggle":null,"side-panel-expand":null,"side-panel-collapse":null,"send-message":`send-message`,"receive-start":`receive-start`,"receive-text":`receive-text`,"receive-end":`receive-end`,"receive-error":null,stop:`stop`,"chat-regenerate":null,"chat-retry":null,"message-deleted":null,"messages-batch-deleted":null,"session-created":null,"session-switched":null,"session-deleted":null,"session-updated":null,"sessions-loaded":null,"session-initialized":`session-initialized`,"session-error":null,"shortcut-click":`shortcut-click`,"chat-error":null,"sdk-error":`sdk-error`,"new-chat":`new-chat`,"new-chat-created":`new-chat-created`,"history-click":`history-click`,"auto-generate-name":`auto-generate-name`,"help-click":`help-click`,rename:`rename`,share:`share`,close:`close`,"toggle-compression":null,"transfer-messages":`transfer-messages`,"share-messages":`share-messages`,"agent-info-loaded":null,error:null};function SVt(e,t){switch(e){case`send-message`:return[t.content];case`rename`:return[t.newName];case`history-click`:return[t.event];case`dragging`:case`resizing`:case`drag-stop`:case`resize-stop`:case`shortcut-click`:case`session-initialized`:case`sdk-error`:case`transfer-messages`:case`share-messages`:case`new-chat-created`:return[t];case`panel-show`:case`panel-hide`:case`receive-start`:case`receive-text`:case`receive-end`:case`stop`:case`new-chat`:case`auto-generate-name`:case`help-click`:case`share`:case`close`:return[];default:return[t]}}var CVt=class{_selectedMessageIds;_isSelectionMode;_editingSessionCode;_loadingStates;constructor(){this._selectedMessageIds=(0,t.ref)(new Set),this._isSelectionMode=(0,t.ref)(!1),this._editingSessionCode=(0,t.ref)(null),this._loadingStates=(0,t.reactive)({})}get isSelectionMode(){return this._isSelectionMode}get editingSessionCode(){return this._editingSessionCode}toggleSelectionMode(){this._isSelectionMode.value=!this._isSelectionMode.value,this._isSelectionMode.value||this.clearSelection()}enableSelectionMode(){this._isSelectionMode.value=!0}disableSelectionMode(){this._isSelectionMode.value=!1,this.clearSelection()}toggleMessageSelection(e){this._selectedMessageIds.value.has(e)?this._selectedMessageIds.value.delete(e):this._selectedMessageIds.value.add(e),this._selectedMessageIds.value=new Set(this._selectedMessageIds.value)}selectMessage(e){this._selectedMessageIds.value.add(e),this._selectedMessageIds.value=new Set(this._selectedMessageIds.value)}deselectMessage(e){this._selectedMessageIds.value.delete(e),this._selectedMessageIds.value=new Set(this._selectedMessageIds.value)}isMessageSelected(e){return this._selectedMessageIds.value.has(e)}clearSelection(){this._selectedMessageIds.value.clear(),this._selectedMessageIds.value=new Set(this._selectedMessageIds.value)}selectAllMessages(e){this._selectedMessageIds.value=new Set(e)}get selectedMessages(){return Array.from(this._selectedMessageIds.value)}get selectedCount(){return this._selectedMessageIds.value.size}get hasSelection(){return this._selectedMessageIds.value.size>0}startEditingSession(e){this._editingSessionCode.value=e}stopEditingSession(){this._editingSessionCode.value=null}isEditingSession(e){return e?this._editingSessionCode.value===e:this._editingSessionCode.value!==null}setLoading(e,t){this._loadingStates[e]=t}isLoading(e){return this._loadingStates[e]??!1}clearLoadingStates(){Object.keys(this._loadingStates).forEach(e=>{this._loadingStates[e]=!1})}reset(){this.clearSelection(),this.disableSelectionMode(),this.stopEditingSession(),this.clearLoadingStates()}},wVt=class extends Error{constructor(){super(`[ChatBot] Initialization was superseded by a newer init`),this.name=`ChatBotInitStaleError`}};function TVt(e){let{props:n,emit:r,scrollToBottom:i}=e,a=(0,t.shallowRef)(null),o=(0,t.shallowRef)(null),s=(0,t.shallowRef)(null),l=(0,t.shallowRef)(null),u=(0,t.ref)(!1),d=(0,t.ref)(!n.chatHelper),f=(0,t.ref)(null),p=(0,t.computed)(()=>u.value),m=()=>n.chatHelper?!n.chatHelper.agent||!n.chatHelper.session||!n.chatHelper.message?{valid:!1,error:`[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)`}:{valid:!0}:n.url?{valid:!0}:{valid:!1,error:`[ChatBot] Neither chatHelper nor url provided. Component requires at least one.`},h=()=>{let e=m();if(!e.valid)return console.error(e.error),f.value=Error(e.error),null;if(n.chatHelper)return n.chatHelper;let a=new A9({onStart:()=>{r(`receive-start`)},onMessage:e=>{r(`receive-text`)},onDone:()=>{r(`receive-end`),i()},onError:e=>{r(`error`,e)}}),o=F9({requestData:kBt(IBt(n.url),()=>(0,t.toValue)(n.requestOptions)),protocol:a});return a.injectMessageModule(o.message),o},g=async(e,t)=>{if(e)try{let n=e.session.current?.value?.sessionCode??``;await e.agent.stopChat(n),t&&e.agent.abortChat()}catch{}},_=0,v=null,y=null,b=null,x=e=>{b&&=(e?b.reject(e):b.resolve(),null),v=null},S=e=>{if(e!==_)throw new wVt},C=async e=>{let t=a.value,i=d.value;u.value=!1,f.value=null,d.value=!n.chatHelper,await g(t,i),S(e),a.value=null,o.value=null,s.value=null,l.value=null;let p=h();if(!p)throw f.value??Error(`[ChatBot] Failed to create chatHelper`);let m=new B9(p.session,p.agent,null,{enableChatSession:!0,autoSwitchToInitialSession:!!n.sessionCode,loadRecentSessionOnMount:n.autoLoad,initialSessionCode:n.sessionCode,alwaysCreateNewSession:n.alwaysCreateNewSession}),_=new _Vt(p.agent,p.message,p.session,null,{openingRemark:n.helloText,predefinedQuestions:n.prompts,placeholder:n.placeholder}),v=new V9(null,n.shortcuts||[]);a.value=p,o.value=m,s.value=_,l.value=v;try{d.value&&(await Promise.all([p.agent.getAgentInfo(),p.session.getSessions()]),S(e),await m.loadRecentSession({skipLoadSessions:!0}),S(e)),S(e),u.value=!0,r(`agent-info-loaded`,p)}catch(t){throw S(e),console.error(`Failed to initialize ChatBot:`,t),f.value=t,r(`error`,t),t}},w=()=>{x(new wVt),y=null;let e=++_;v=new Promise((t,n)=>{b={resolve:t,reject:n},C(e).then(()=>{b&&=(y=Promise.resolve(),b.resolve(),null)}).catch(e=>{if(b){let t=e instanceof Error?e:Error(String(e));b.reject(t),b=null}}).finally(()=>{e===_&&(v=null)})}),v.catch(()=>{})};return(0,t.watch)([()=>n.url,()=>n.chatHelper],()=>w(),{immediate:!0}),(0,t.onBeforeUnmount)(()=>{x(),g(a.value,d.value)}),{chatHelper:a,isStandaloneMode:d,isInitialized:u,isReady:p,initError:f,whenReady:()=>u.value?(y||=Promise.resolve(),y):f.value?Promise.reject(f.value):v||Promise.resolve(),chatBusinessManager:s,sessionBusinessManager:o,shortcutManager:l}}function EVt(e){let{props:n,chatHelper:r,chatBusinessManager:i,sessionBusinessManager:a,shortcutManager:o,isStandaloneMode:s,isInitialized:l,selectedShortcut:u}=e,d=(0,t.computed)(()=>i.value?.isStopLoading.value?e5.StopLoading:((n.chatHelper||r.value)?.agent)?.isChatting?.value?e5.Streaming:e5.Complete),f=(0,t.computed)(()=>d.value===e5.Streaming?n9.Disabled:void 0),p=(0,t.computed)(()=>i.value?.messages.value??[]),m=(0,t.computed)(()=>i.value?.isMessagesLoading.value??!1);return{messageStatus:d,messageToolsStatus:f,messages:p,isMessagesLoading:m,isGenerating:(0,t.computed)(()=>i.value?.isGenerating.value??!1),currentSession:(0,t.computed)(()=>a.value?.currentSession.value??null),isWelcomeState:(0,t.computed)(()=>s.value&&!l.value?!1:!m.value&&p.value.length===0),openingRemark:(0,t.computed)(()=>r.value?.agent.info.value?.conversationSettings?.openingRemark||``),effectiveResources:(0,t.computed)(()=>n.resources?.length?n.resources:r.value?.agent.info.value?.resources??[]),effectivePrompts:(0,t.computed)(()=>n.prompts?.length?n.prompts:r.value?.agent.info.value?.conversationSettings?.predefinedQuestions??[]),effectiveSkills:(0,t.computed)(()=>n.skills?.length?n.skills:(r.value?.agent.info.value?.relatedSkills??[]).map(e=>({skill_name:e.skill_name,skill_code:e.skill_code,description:e.description,icon:e.icon}))),effectiveSupportUpload:(0,t.computed)(()=>u.value?.supportUpload?u.value.supportUpload.vision===!0:r.value?.agent.info.value?.promptSetting?.supportUpload?.vision===!0),chatbotStyle:(0,t.computed)(()=>({height:typeof n.height==`number`?`${n.height}px`:n.height,maxWidth:typeof n.maxWidth==`number`?`${n.maxWidth}px`:n.maxWidth})),filteredShortcuts:(0,t.computed)(()=>o.value?.shortcuts.value??[])}}var DVt=`others`,OVt={[t5.ApprovalCancel]:C9.ApprovalCancel,[t5.FlowNodeRetry]:C9.FlowNodeRetry,[t5.FlowNodeSkip]:C9.FlowNodeSkip};function kVt(e){return`operation`in e}function AVt(e){return`interruptId`in e&&`reason`in e&&e.reason===Z8.UserQuestion}function jVt(e){return e===`cancelled`?k9.Cancelled:k9.Resolved}function MVt(e){let t=e?.session.current?.value?.sessionCode;if(!t)throw Error(`[ChatBot] Cannot resume interrupt: no active session`);return t}function NVt(e){return{interruptId:e.interruptId,status:jVt(e.status),payload:e.payload}}function PVt(e,t,n){let r=e?.metadata?.questions?.[0]?.question??``;return{interruptId:n.interruptId,reason:Z8.UserQuestion,status:`resolved`,payload:{answers:[{question:r,multiSelect:!1,answer:[{label:DVt,description:t}]}]}}}function FVt(e){let{chatHelper:t,emit:n}=e,r=async e=>{let n=t.value;if(!n)throw Error(`[ChatBot] Cannot resume interrupt: chatHelper not initialized`);if(!kVt(e))throw Error(`[ChatBot] Unsupported interrupt resume payload`);let r=MVt(n),i=OVt[e.operation],a=n.agent;if(e.operation===t5.ApprovalCancel){await a.userOperationStreamRequest(r,i,{interrupt_id:e.payload.interrupt_id});return}await a.userOperationStreamRequest(r,i,{node_id:e.payload.node_id,task_id:String(e.payload.task_id)})},i=async(e,n)=>{let r=t.value;if(!r)throw Error(`[ChatBot] Cannot resume interrupt: chatHelper not initialized`);let i=MVt(r);await r.agent.streamRequest({sessionCode:i,resume:NVt(e),...n?{input:n}:{}})};return{handleInterruptResume:async(e,t)=>{try{if(kVt(e)){await r(e);return}if(AVt(e)){await i(e);return}throw Error(`[ChatBot] Unsupported interrupt resume payload`)}catch(e){console.error(`[ChatBot] Failed to handle interrupt resume:`,e),n(`error`,e instanceof Error?e:Error(String(e)))}},resumeUserQuestionWithInput:async(e,t)=>{try{if(!t.payload||!AVt(t.payload))throw Error(`[ChatBot] Invalid user question resume options`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`[ChatBot] User question free text input is empty`);await i(PVt(t.interrupt,n,t.payload),n)}catch(e){console.error(`[ChatBot] Failed to resume user question with input:`,e),n(`error`,e instanceof Error?e:Error(String(e)))}}}}function IVt(e){let{emit:n,chatHelper:r,chatBusinessManager:i,getRequestOptions:a,resumeUserQuestionWithInput:o,selectedShortcut:s,selectedResources:l}=e,u=(0,t.shallowRef)([[]]),d=(0,t.shallowRef)(``),f=(e,t)=>{u.value=e,l.value=t},p=async(e,t={})=>{if(!i.value||!r.value)throw Error(`[ChatBot] Cannot send message: chatBusinessManager not initialized`);let o=r.value.session.current?.value?.sessionCode;if(!o)throw Error(`[ChatBot] Cannot send message: no active session`);u.value=[[]],d.value=``,l.value=[],n(`send-message`,typeof e==`string`?e:``);let s=I9(t.property,a);await i.value.sendMessage(e,o,{...t,...s?{property:s}:{}})},m=async e=>{let t=r.value?.session.current?.value?.sessionCode;if(!t)throw Error(`[ChatBot] Cannot upload: no active session`);let n=await r.value.session.uploadFile(t,e);if(!n?.download_url)throw Error(`[ChatBot] Upload failed: no download URL returned`);return n},h=async(e,t,r)=>{try{if(r?.payload&&o){u.value=[[]],d.value=``,l.value=[],await o(e,r);return}let t={};d.value&&(t.cite=d.value),s.value&&(t.command=s.value.id),l.value.length&&(t.resources=l.value),await p(e,Object.keys(t).length?{property:{extra:t}}:{})}catch(e){console.error(`Failed to send message:`,e),n(`error`,e)}},g=async()=>{await _()},_=async()=>{if(!i.value){console.error(`[ChatBot] Cannot stop generation: chatBusinessManager not initialized`);return}await i.value.stopGeneration(),n(`stop`)};return{userInput:u,cite:d,handleUpdateModelValue:f,doSendMessage:p,handleSendMessage:h,handleUpload:m,handleStopSending:g,stopGeneration:_}}function LVt(e){let{emit:t,chatHelper:n,isStandaloneMode:r}=e,i=async e=>{if(!(!n.value||e.length===0))try{await LBt((await new vVt(n.value.message,n.value.session).shareMessages(e)).shareUrl),ic({message:`分享链接已复制到剪贴板`,theme:`success`})}catch(e){console.error(`[ChatBot] Failed to share messages:`,e),ic({message:`分享失败,请重试`,theme:`error`})}};return{handleConfirmShare:async e=>{r.value&&await i(e),t(`confirm-share`,e)}}}function RVt(e){let{props:n,emit:r,shortcutManager:i,doSendMessage:a,selectedShortcut:o}=e,s=(0,t.computed)(()=>i.value?.effectiveShortcuts.value??[]),l=(e,t)=>{let n=e,r;if(r=n.enable_fill_back&&n.fill_back_component_key?n.fill_back_component_key:n.components?.find(e=>e.fillBack)?.key,r&&t){let e=n.components?.map(e=>e.key===r?{...e,default:t}:{...e,default:e.default??void 0});o.value={...n,components:e,formModel:{...n.formModel,[r]:t}}}else o.value={...n,formModel:{...n.formModel}}},u=(e,t)=>{let n=e.components||[];return{extra:{cite:{type:`structured`,title:e.alias||e.name,data:n.map(e=>({key:e.name||e.key,value:String(t[e.key]??``)}))},command:e.id,context:n.map(e=>({[e.key]:t[e.key],context_type:e.type,__label:e.name||e.key,__key:e.key,__value:t[e.key]}))}}},d=e=>{let t=e.property?.extra;return t?.shortcut?t.shortcut:t?.command?s.value.find(e=>e.id===t.command)??null:null},f=(e,t)=>{l(e,t),r(`shortcut-click`,{shortcut:e,source:`main`})},p=()=>{o.value=null};return(0,t.watch)(()=>n.shortcuts,e=>{i.value?.setShortcuts(e||[])},{immediate:!0}),(0,t.watch)(()=>e.chatHelper.value?.agent.info.value?.conversationSettings?.commands,e=>{e&&i.value?.setAgentShortcuts(e)},{immediate:!0}),{effectiveShortcuts:s,selectShortcutWithText:l,buildShortcutProperty:u,getShortcutFromMessage:d,handleSelectShortcut:f,handleCloseShortcut:p,handleShortcutSubmit:async e=>{if(!o.value){console.error(`[ChatBot] No selected shortcut`);return}let t=u(o.value,e),n=o.value.name,i=o.value;p();try{await a(n,{property:t})}catch(e){o.value=i,console.error(`[ChatBot] Failed to submit shortcut:`,e),r(`error`,e)}},sendShortcutDirectly:async(e,t)=>{let n=e,i={...n.formModel},o=n.components||[];for(let e of o)e.key in i||(i[e.key]=e.default??``);let s;s=n.enable_fill_back&&n.fill_back_component_key?n.fill_back_component_key:o.find(e=>e.fillBack)?.key,s&&t&&(i[s]=t);let l=u(n,i),d=n.name;try{await a(d,{property:l})}catch(e){console.error(`[ChatBot] Failed to send shortcut directly:`,e),r(`error`,e)}}}}function zVt(e){let{emit:t,chatHelper:n,chatBusinessManager:r,cite:i,focusInput:a,scrollToBottom:o,getShortcutFromMessage:s,buildShortcutProperty:l,getRequestOptions:u}=e,d=async e=>{if(!r.value||!n.value){console.error(`[ChatBot] Cannot delete messages: chatBusinessManager not initialized`);return}try{let t=r.value.messages.value,i=L9(t,e[0]);if(!i){console.error(`[ChatBot] No user message found before AI messages`);return}let a=[i,...e];await n.value.message.deleteMessages(a)}catch(e){console.error(`[ChatBot] Failed to delete messages:`,e),t(`error`,e)}},f=async e=>{if(!r.value||!n.value){console.error(`[ChatBot] Cannot regenerate: chatBusinessManager not initialized`);return}let i=n.value.session.current?.value?.sessionCode;if(!i){console.error(`[ChatBot] Cannot regenerate: no active session`);return}try{await r.value.regenerateFromAIMessages(e,i),o()}catch(e){console.error(`[ChatBot] Failed to regenerate:`,e),t(`error`,e)}},p=async e=>{if(!r.value||!n.value){console.error(`[ChatBot] Cannot delete message: chatHelper not initialized`);return}try{let t=r.value.messages.value,i=t.findIndex(t=>t===e);if(i===-1){console.error(`[ChatBot] User message not found in messages list`);return}let a=[];for(let e=i+1;e<t.length;e++){let n=t[e];if(n.role===$8.User)break;a.push(n)}let o=[e,...a];await n.value.message.deleteMessages(o)}catch(e){console.error(`[ChatBot] Failed to delete user message:`,e),t(`error`,e)}};return{handleAgentAction:async(e,t)=>{if(e.id===`cite`){i.value=t.filter(e=>e.role!==$8.Reasoning).map(e=>typeof e.content==`string`?e.content:JSON.stringify(e.content||``)).join(`