@blueking/ai-blueking 1.2.4 → 1.2.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/composables/use-session-store.d.ts +3 -0
  2. package/dist/store/sessionStore.d.ts +3 -0
  3. package/dist/vue2/{arc-BOUitg-B.mjs → arc-Cu6J9qUw.mjs} +1 -1
  4. package/dist/vue2/{blockDiagram-38ab4fdb-DliGca9k.mjs → blockDiagram-38ab4fdb-LsJeZjpP.mjs} +5 -5
  5. package/dist/{vue3/c4Diagram-3d4e48cf-Czp_A6Dy.mjs → vue2/c4Diagram-3d4e48cf-CGDHpak-.mjs} +2 -2
  6. package/dist/{vue3/channel-BXebI77b.mjs → vue2/channel-B0DIEPPg.mjs} +1 -1
  7. package/dist/vue2/{classDiagram-70f12bd4-1J2xo3td.mjs → classDiagram-70f12bd4-nGiNgLZY.mjs} +5 -5
  8. package/dist/vue2/{classDiagram-v2-f2320105-CT2fy2BZ.mjs → classDiagram-v2-f2320105-Bz8BaiM6.mjs} +5 -5
  9. package/dist/vue2/{clone-DlmS6Hpz.mjs → clone-As6PecbR.mjs} +1 -1
  10. package/dist/vue2/{createText-2e5e7dd3-hozOM-m6.mjs → createText-2e5e7dd3-DcW-I4ZS.mjs} +1 -1
  11. package/dist/{vue3/edges-e0da2a9e-GHcemDlW.mjs → vue2/edges-e0da2a9e-C_Hf4mPX.mjs} +3 -3
  12. package/dist/{vue3/erDiagram-9861fffd-B1NTSuzT.mjs → vue2/erDiagram-9861fffd-DheTYAr2.mjs} +4 -4
  13. package/dist/vue2/{flowDb-956e92f1-DfgEsOQ_.mjs → flowDb-956e92f1-Dv1A_e5P.mjs} +1 -1
  14. package/dist/{vue3/flowDiagram-66a62f08-CesPe1Wm.mjs → vue2/flowDiagram-66a62f08-BCAIvIN9.mjs} +6 -6
  15. package/dist/vue2/{flowDiagram-v2-96b9c2cf-C6LJ2Yaa.mjs → flowDiagram-v2-96b9c2cf-YxJetz1Q.mjs} +5 -5
  16. package/dist/vue2/{flowchart-elk-definition-4a651766-D-aGmsVO.mjs → flowchart-elk-definition-4a651766-DsEs7lFp.mjs} +4 -4
  17. package/dist/{vue3/ganttDiagram-c361ad54-CBanyFTw.mjs → vue2/ganttDiagram-c361ad54-DIpHRixj.mjs} +2 -2
  18. package/dist/{vue3/gitGraphDiagram-72cf32ee-BofFrjnz.mjs → vue2/gitGraphDiagram-72cf32ee-4AOTfy-i.mjs} +1 -1
  19. package/dist/vue2/{graph-BpqfoG35.mjs → graph-DtkSnG_z.mjs} +1 -1
  20. package/dist/{vue3/index-3862675e-D15pFlwW.mjs → vue2/index-3862675e-lCbHaey0.mjs} +6 -6
  21. package/dist/vue2/index.es.min.js +1 -1
  22. package/dist/vue2/index.iife.min.js +2 -2
  23. package/dist/vue2/index.umd.min.js +2 -2
  24. package/dist/vue2/{infoDiagram-f8f76790-BQI1AJW0.mjs → infoDiagram-f8f76790-CgAdTmu2.mjs} +1 -1
  25. package/dist/vue2/{journeyDiagram-49397b02-Cxl5Wcrv.mjs → journeyDiagram-49397b02-Cvbcutge.mjs} +3 -3
  26. package/dist/vue2/{layout-Bp6b2t6Q.mjs → layout-DzkmTH4I.mjs} +2 -2
  27. package/dist/vue2/{line-gynmqiLG.mjs → line-Dh6wGedm.mjs} +1 -1
  28. package/dist/vue2/{linear-Baahmd3t.mjs → linear-BipEvy3z.mjs} +1 -1
  29. package/dist/vue2/{mindmap-definition-fc14e90a-BHaNc8DC.mjs → mindmap-definition-fc14e90a-BkOGodac.mjs} +2 -2
  30. package/dist/vue2/{pieDiagram-8a3498a8-nmkVk00q.mjs → pieDiagram-8a3498a8-DN3C4H02.mjs} +2 -2
  31. package/dist/vue2/{quadrantDiagram-120e2f19-CwbX_iGj.mjs → quadrantDiagram-120e2f19-D-rVXQ4X.mjs} +2 -2
  32. package/dist/vue2/{requirementDiagram-deff3bca-D52cx1_G.mjs → requirementDiagram-deff3bca-COrRiOz1.mjs} +4 -4
  33. package/dist/vue2/{sankeyDiagram-04a897e0-BPCBBkOd.mjs → sankeyDiagram-04a897e0-CW5YHP54.mjs} +1 -1
  34. package/dist/vue2/{sequenceDiagram-704730f1-DCtPjob5.mjs → sequenceDiagram-704730f1-B2oomfGv.mjs} +2 -2
  35. package/dist/{vue3/stateDiagram-587899a1-BxMKFnYy.mjs → vue2/stateDiagram-587899a1-DgbZEcZC.mjs} +5 -5
  36. package/dist/vue2/{stateDiagram-v2-d93cdb3a-CJc3mbvF.mjs → stateDiagram-v2-d93cdb3a-DT4mL6qz.mjs} +5 -5
  37. package/dist/{vue3/styles-6aaf32cf-fe6SY6Yz.mjs → vue2/styles-6aaf32cf-BZzzSjn9.mjs} +1 -1
  38. package/dist/vue2/{styles-9a916d00-DOYk4ZOF.mjs → styles-9a916d00-CTCN8KF_.mjs} +1 -1
  39. package/dist/{vue3/styles-c10674c1-FhAp19qy.mjs → vue2/styles-c10674c1-CdDNlWSY.mjs} +4 -4
  40. package/dist/vue2/{svgDrawCommon-08f97a94-Dlyho8qU.mjs → svgDrawCommon-08f97a94-dN7ccW-t.mjs} +1 -1
  41. package/dist/vue2/{timeline-definition-85554ec2-BgDt5xsK.mjs → timeline-definition-85554ec2-_OuXIGce.mjs} +2 -2
  42. package/dist/vue2/{vue2-DZV7x_6k.mjs → vue2-C5t6FPGH.mjs} +27 -31
  43. package/dist/vue2/{xychartDiagram-e933f94c-Cyhzi9_B.mjs → xychartDiagram-e933f94c-C1oI7x9F.mjs} +4 -4
  44. package/dist/vue3/{arc-h_dMv_KS.mjs → arc-uFVJ_Yu4.mjs} +1 -1
  45. package/dist/vue3/{blockDiagram-38ab4fdb-CY9QtX38.mjs → blockDiagram-38ab4fdb-VvBw6min.mjs} +5 -5
  46. package/dist/{vue2/c4Diagram-3d4e48cf-BKcAm1aV.mjs → vue3/c4Diagram-3d4e48cf-BMyKP8jH.mjs} +2 -2
  47. package/dist/{vue2/channel-Sj8DPX3z.mjs → vue3/channel-TAFM2ljU.mjs} +1 -1
  48. package/dist/vue3/{classDiagram-70f12bd4-WBcT4cRp.mjs → classDiagram-70f12bd4-BRm0RqjZ.mjs} +5 -5
  49. package/dist/vue3/{classDiagram-v2-f2320105-BD7okj8D.mjs → classDiagram-v2-f2320105-DWIRfqxB.mjs} +5 -5
  50. package/dist/vue3/{clone-W_ZiobXS.mjs → clone-DhQiUV_u.mjs} +1 -1
  51. package/dist/vue3/{createText-2e5e7dd3-rtYwyyxn.mjs → createText-2e5e7dd3-ObgwFgM_.mjs} +1 -1
  52. package/dist/{vue2/edges-e0da2a9e-BPUfD9yl.mjs → vue3/edges-e0da2a9e-BBbYkHfs.mjs} +3 -3
  53. package/dist/{vue2/erDiagram-9861fffd-BnVKEInB.mjs → vue3/erDiagram-9861fffd-33a5mW0V.mjs} +4 -4
  54. package/dist/vue3/{flowDb-956e92f1-gwYhfsBN.mjs → flowDb-956e92f1-DiG6o5Lq.mjs} +1 -1
  55. package/dist/{vue2/flowDiagram-66a62f08-DJucFMSN.mjs → vue3/flowDiagram-66a62f08-je9191YA.mjs} +6 -6
  56. package/dist/vue3/{flowDiagram-v2-96b9c2cf-FfVCxps5.mjs → flowDiagram-v2-96b9c2cf-C9AqpCcm.mjs} +5 -5
  57. package/dist/vue3/{flowchart-elk-definition-4a651766-BOaXbNAz.mjs → flowchart-elk-definition-4a651766-DyOIWy1_.mjs} +4 -4
  58. package/dist/{vue2/ganttDiagram-c361ad54-CDTwD8OX.mjs → vue3/ganttDiagram-c361ad54-BL89I3T5.mjs} +2 -2
  59. package/dist/{vue2/gitGraphDiagram-72cf32ee-BY_Mc4Iy.mjs → vue3/gitGraphDiagram-72cf32ee-B5cO6o0R.mjs} +1 -1
  60. package/dist/vue3/{graph-CAB6rvd7.mjs → graph-B_ZCIhCv.mjs} +1 -1
  61. package/dist/{vue2/index-3862675e-BwovxPkh.mjs → vue3/index-3862675e-p21c3uf0.mjs} +6 -6
  62. package/dist/vue3/index.es.min.js +1 -1
  63. package/dist/vue3/index.iife.min.js +2 -2
  64. package/dist/vue3/index.umd.min.js +2 -2
  65. package/dist/vue3/{infoDiagram-f8f76790--Fgm45GF.mjs → infoDiagram-f8f76790-C-UhBSCJ.mjs} +1 -1
  66. package/dist/vue3/{journeyDiagram-49397b02-BFvgBLCQ.mjs → journeyDiagram-49397b02-CjlyJjDk.mjs} +3 -3
  67. package/dist/vue3/{layout-2meHoN06.mjs → layout-BiEtBuT0.mjs} +2 -2
  68. package/dist/vue3/{line-B7b4lLrD.mjs → line-51tzIvbT.mjs} +1 -1
  69. package/dist/vue3/{linear-B7qPtrLj.mjs → linear-iV8MpW-v.mjs} +1 -1
  70. package/dist/vue3/{mindmap-definition-fc14e90a-MQtNV4PV.mjs → mindmap-definition-fc14e90a-Be2kQgY5.mjs} +2 -2
  71. package/dist/vue3/{pieDiagram-8a3498a8-D7v5SP6r.mjs → pieDiagram-8a3498a8-D4ZR0jOY.mjs} +2 -2
  72. package/dist/vue3/{quadrantDiagram-120e2f19-CJw2xF6z.mjs → quadrantDiagram-120e2f19-Co_Rrg4s.mjs} +2 -2
  73. package/dist/vue3/{requirementDiagram-deff3bca--Zn_qOIZ.mjs → requirementDiagram-deff3bca-tsegkqgU.mjs} +4 -4
  74. package/dist/vue3/{sankeyDiagram-04a897e0-DCUxAEhV.mjs → sankeyDiagram-04a897e0-BNysrFHu.mjs} +1 -1
  75. package/dist/vue3/{sequenceDiagram-704730f1-FioRuUjK.mjs → sequenceDiagram-704730f1-zNUpB2vi.mjs} +2 -2
  76. package/dist/{vue2/stateDiagram-587899a1-hNNKpVTK.mjs → vue3/stateDiagram-587899a1-DrpZ-YJc.mjs} +5 -5
  77. package/dist/vue3/{stateDiagram-v2-d93cdb3a-BwF1x08-.mjs → stateDiagram-v2-d93cdb3a-L_XkeGU3.mjs} +5 -5
  78. package/dist/{vue2/styles-6aaf32cf-BZkBFTVa.mjs → vue3/styles-6aaf32cf-8q11zTzh.mjs} +1 -1
  79. package/dist/vue3/{styles-9a916d00-OdgVhxz-.mjs → styles-9a916d00-CiHXRQ9C.mjs} +1 -1
  80. package/dist/{vue2/styles-c10674c1-BNZsbAjZ.mjs → vue3/styles-c10674c1-Dz193kd_.mjs} +4 -4
  81. package/dist/vue3/{svgDrawCommon-08f97a94-Cdpm7CY0.mjs → svgDrawCommon-08f97a94-DnREWheN.mjs} +1 -1
  82. package/dist/vue3/{timeline-definition-85554ec2-B20gSoSo.mjs → timeline-definition-85554ec2-BvQmXSuC.mjs} +2 -2
  83. package/dist/vue3/{vue3-CxINvXAN.mjs → vue3-BNNGYfPD.mjs} +27 -31
  84. package/dist/vue3/{xychartDiagram-e933f94c-CyyyeKQm.mjs → xychartDiagram-e933f94c-Dpdm07-V.mjs} +4 -4
  85. package/package.json +2 -2
@@ -512,7 +512,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
512
512
  &~ .knowledge-head {
513
513
  margin-bottom: 8px;
514
514
  }
515
- }`;t=document.createElement("style"),t.textContent=o,document.head.appendChild(t)},i=()=>{t&&(t.remove(),t=null)};x7(()=>{n()}),qf(()=>{i()})};function bct(t,n,i,o,l,u,f){try{var h=t[u](f),m=h.value}catch(b){i(b);return}h.done?n(m):Promise.resolve(m).then(o,l)}function bC(t){return function(){var n=this,i=arguments;return new Promise(function(o,l){var u=t.apply(n,i);function f(m){bct(u,o,l,f,h,"next",m)}function h(m){bct(u,o,l,f,h,"throw",m)}f(void 0)})}}function tVn(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function Q2e(t){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{},o=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),o.forEach(function(l){tVn(t,l,i[l])})}return t}function nVn(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i.push.apply(i,o)}return i}function rVn(t,n){return n=n??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nVn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}),t}const iVn=({handleStart:t,handleText:n,handleReferenceDoc:i,handleThink:o,handleEnd:l,handleError:u,requestOptions:f,otherOptions:h})=>{let m=mct({apiPrefix:f.url,headers:f.headers,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});const b="内容正在生成中...",_=lr(f),E=lr(),S=lr({}),T=lr([]),x={},I={},N=lr(!1),O=qa(()=>{const je=[];for(let Tt=T.value.length-1;Tt>=0;Tt--){const Ge=T.value[Tt];let ze=Tt+1,Ye=T.value[ze];for(;Ye&&![ui.Ai,ui.TokenExpired,ui.ImageNotSupported,ui.Pause,ui.Guide].includes(Ye.role);)ze+=1,Ye=T.value[ze];if(Ge.role===ui.System)break;Ge.status!==u1.Fail&&!((Ye==null?void 0:Ye.status)===u1.Fail&&[ui.User,ui.UserImage].includes(Ge.role))&&![ui.Time,ui.System].includes(Ge.role)&&je.unshift(Ge)}return je}),L=qa(()=>{var je;const Tt=(je=E.value)===null||je===void 0?void 0:je.sessionCode;return Tt?S.value[Tt]:!1}),P=qa(()=>{var je,Tt,Ge;const ze=[],Ye=[],Ke=[],Fe=T.value.findLastIndex(st=>st.role===ui.System&&["已启用角色","已启用模型"].some(vt=>st.content.includes(vt)));let Be=0;(Ge=E.value)===null||Ge===void 0||(Tt=Ge.roleInfo)===null||Tt===void 0||(je=Tt.content)===null||je===void 0||je.forEach(st=>{const vt=T.value[Fe+1+Be];let Xt=T.value[Fe+2+Be];if((vt==null?void 0:vt.content)===st.content&&vt.role!==ui.System&&(ze.push(K2e(vt)),Be+=1,(vt==null?void 0:vt.role)===ui.Pause)){for(;Xt&&Xt.role===ui.System;)Be+=1,Xt=T.value[Fe+1+Be];for(;Xt&&[ui.User,ui.UserImage].includes(Xt.role);)ze.push(K2e(Xt)),Be+=1,Xt=T.value[Fe+1+Be]}}),Ye.push(...O.value.map(K2e));const ut=st=>{let vt=!0;for(let qe=st;qe<ze.length;qe++){var Xt;ze[qe].content!==((Xt=Ye[qe-st])===null||Xt===void 0?void 0:Xt.content)&&(vt=!1)}return vt};for(let st=0;st<ze.length;st++){const vt=ze[st];if(ut(st))break;Ke.push(vt)}return Ke.push(...Ye),Ke.forEach(st=>{st.content=XHn(st.content),st.content=SHn(st.content)}),Ke}),B=new wHn({handleStart:re,handleText:Te,handleReferenceDoc:ve,handleThink:Ne,handleEnd:Re,handleError:we,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});function G(je){_.value=Q2e({},_.value,je),(je.url||je.headers)&&(m=mct({apiPrefix:_.value.url,headers:_.value.headers,beforeRequest:_.value.beforeRequest,afterRequest:_.value.afterRequest}))}function z(je){return m.plusSessionContent(je).then(Tt=>(je.id=Tt.id,je.createdAt=Tt.createdAt,je))}const H=pHn((je,Tt)=>m.modifySessionContent(Tt),1e3);function V(je){E.value=je,je!=null&&je.sessionCode&&(x[je.sessionCode]||(x[je.sessionCode]=[]),T.value=x[je.sessionCode])}function $(je){E.value&&(x[E.value.sessionCode]=je,T.value=je)}function q(je){return j.apply(this,arguments)}function j(){return j=bC(function*(je){E.value=je;try{N.value=!0;const Tt=yield m.getSessionContents(je.sessionCode);x[E.value.sessionCode]=Tt,T.value=Tt,N.value=!1}catch{N.value=!1}}),j.apply(this,arguments)}function W(je,Tt){return J(Tt).find(ze=>ze.id===je)}function U(je){var Tt;return((Tt=E.value)===null||Tt===void 0?void 0:Tt.sessionCode)===je?T.value.at(-1):x[je].at(-1)}function J(je){var Tt;return((Tt=E.value)===null||Tt===void 0?void 0:Tt.sessionCode)===je?T.value:x[je]}function X(je,Tt){return J(je).push(Tt),z(Tt)}function Q(je){var Tt;const ze=(((Tt=E.value)===null||Tt===void 0?void 0:Tt.sessionCode)===je.sessionCode?T.value:x[je.sessionCode]).find(Ye=>+(Ye.id||0)==+(je.id||0));return ze&&Object.assign(ze,je),H(je.id,je)}function ee(je,Tt,Ge){var ze;const Ye=((ze=E.value)===null||ze===void 0?void 0:ze.sessionCode)===je?T.value:x[je],Ke=[];return Tt.forEach(Fe=>{const Be=Ye.findIndex(ut=>ut.id===Fe);if(Be>-1){const ut=Ye[Be-1],st=Ye[Be+1],vt=Ye[Be+2];if(Ye.splice(Be,1),Ke.push(Fe),[ui.Hidden].includes(ut==null?void 0:ut.role)){const Xt=Ye.findIndex(qe=>qe.id===ut.id);Ye.splice(Xt,1),Ke.push(ut.id)}if((st==null?void 0:st.role)===ui.Ai||Ge&&[ui.Ai,ui.Guide,ui.TokenExpired,ui.ImageNotSupported,ui.Pause].includes(st==null?void 0:st.role)){const Xt=Ye.findIndex(qe=>qe.id===st.id);Ye.splice(Xt,1),Ke.push(st.id)}if([ui.Guide].includes(vt==null?void 0:vt.role)&&Ge){const Xt=Ye.findIndex(qe=>qe.id===vt.id);Ye.splice(Xt,1),Ke.push(vt.id)}}}),Ke}function ne(je,Tt){const Ge=ee(je,[Tt],!0);return m.batchDeleteSessionContents(Ge)}function oe(je,Tt){const Ge=ee(je,Tt,!1);return m.batchDeleteSessionContents(Ge)}function re(je){return ue.apply(this,arguments)}function ue(){return ue=bC(function*(je){S.value[je]=!0;const Tt={sessionCode:je,role:ui.Ai,status:u1.Loading,content:b};return yield X(je,Tt),t==null?void 0:t(je,Tt)}),ue.apply(this,arguments)}function ve(je,Tt,Ge){return ie.apply(this,arguments)}function ie(){return ie=bC(function*(je,Tt,Ge){const ze=U(je),Ye=EHn(Tt,h==null?void 0:h.hideReferenceDocIcon);ze.content=Ge?Ye:ze.content+Ye,yield H(ze.id,ze),yield i==null?void 0:i(je,ze)}),ie.apply(this,arguments)}function Ne(je,Tt,Ge,ze){return Se.apply(this,arguments)}function Se(){return Se=bC(function*(je,Tt,Ge,ze){const Ye=U(je);Ye.content=JHn(Ye.content,Tt,Ge,ze),yield H(Ye.id,Ye),yield o==null?void 0:o(je,Ye)}),Se.apply(this,arguments)}function Te(je,Tt,Ge){return Me.apply(this,arguments)}function Me(){return Me=bC(function*(je,Tt,Ge){const ze=U(je);if(ze.content===b)ze.content=Tt;else if(ze.status===u1.Loading)ze.content=Ge?Tt:ze.content+Tt;else return;yield H(ze.id,ze),yield n==null?void 0:n(je,ze)}),Me.apply(this,arguments)}function Re(je,Tt){return _e.apply(this,arguments)}function _e(){return _e=bC(function*(je,Tt){const Ge=U(je);if(Ge.content===b||ZHn(Ge.content)){we(je,"聊天内容已中断");return}Ge.status===u1.Loading&&(S.value[je]=!1,Tt&&(Ge.content=Tt),Ge.status=u1.Success,yield H(Ge.id,Ge),yield l==null?void 0:l(je,Ge))}),_e.apply(this,arguments)}function we(je,Tt,Ge){return me.apply(this,arguments)}function me(){return me=bC(function*(je,Tt,Ge){const ze=U(je);if(ze.status=u1.Fail,ze.content=Tt,S.value[je]=!1,Ge===Nne.TokenExpired){var Ye,Ke;if(ze.content="抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))",ze.role=ui.TokenExpired,!((Ke=E.value)===null||Ke===void 0||(Ye=Ke.sessionProperty)===null||Ye===void 0)&&Ye.isAutoClear){var Fe;yield X(je,{sessionCode:je,role:ui.System,content:"由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息"}),yield m.clearSession((Fe=E.value)===null||Fe===void 0?void 0:Fe.sessionCode)}}Ge===Nne.ImageNotSupported&&(ze.content="抱歉,当前模型不支持图片内容解析",ze.role=ui.ImageNotSupported),yield H(ze.id,ze),yield u==null?void 0:u(je,ze,Ge)}),me.apply(this,arguments)}function ce(je,Tt){return pe.apply(this,arguments)}function pe(){return pe=bC(function*(je,Tt){let Ge=!1;I[je]=[];for(const ze of Tt)if(Ge)I[je].push(ze);else{const Ye=rVn(Q2e({},KHn(ze)),{sessionCode:je,status:u1.Success});yield X(je,Ye),Ye.role===ui.Pause&&(Ge=!0)}}),pe.apply(this,arguments)}function Oe(je,Tt,Ge){if(Tt.role!==ui.Ai)return;const ze=T.value.slice(Ge,T.value.length).map(Ke=>Ke.id).filter(Ke=>Ke!==void 0);ze.length>0&&oe(je,ze);const Ye=T.value[Ge-1];Ye&&ke(Ye)}function ke({sessionCode:je,url:Tt,data:Ge,headers:ze}){const Ye=I[je];(Ye==null?void 0:Ye.length)>0?ce(je,Ye):ft(je,Ge,Tt,ze)}function ft(je,Tt,Ge,ze){var Ye;const Ke=U(je);B.stream({sessionCode:je,url:Ge||`${_.value.url}/chat_completion/`,data:Q2e({session_content_id:Ke==null?void 0:Ke.id,session_code:je,execute_kwargs:{stream:!0}},Tt,_.value.data),headers:ze||((Ye=_.value)===null||Ye===void 0?void 0:Ye.headers)})}function Pe(je,Tt,Ge){return tt.apply(this,arguments)}function tt(){return tt=bC(function*(je,Tt,Ge){var ze,Ye;if(Tt.role!==ui.User)return;const Ke=T.value.slice(Ge,T.value.length).map(Fe=>Fe.id).filter(Fe=>Fe!==void 0);Ke.length>0&&oe(je,Ke),yield X(je,{role:ui.User,content:Tt.content,sessionCode:je,property:{extra:{cite:(Ye=Tt.property)===null||Ye===void 0||(ze=Ye.extra)===null||ze===void 0?void 0:ze.cite}}}),ke(Tt)}),tt.apply(this,arguments)}function ht(je,Tt){let Ge=[];if(T.value[je].role===ui.User){Ge=T.value.slice(je,je+2).map(Ye=>Ye.id).filter(Ye=>Ye!==void 0),oe(Tt,Ge);return}Ge=T.value.slice(je-1,je+1).map(Ye=>Ye.id).filter(Ye=>Ye!==void 0),oe(Tt,Ge)}function Ct(je){B.stop(je)}return{currentSession:E,sessionContents:T,sessionContentsMap:x,sessionLoadingMap:S,prompts:P,currentSessionLoading:L,isLoadingSessionContents:N,chat:ke,stopChat:Ct,plusSessionContent:X,updateSessionContent:Q,getSessionContentById:W,getLastSessionContentBySessionCode:U,getSessionContentsBySessionCode:J,setCurrentSession:V,setCurrentSessionChain:q,setSessionContents:$,deleteSessionContent:ne,deleteSessionContents:oe,handleStartChat:re,handleErrorChat:we,handleCompleteRole:ce,reGenerateChat:Oe,reSendChat:Pe,deleteChat:ht,getAgentInfoApi:(...je)=>m.getAgentInfo(...je),clearSessionApi:(...je)=>m.clearSession(...je),getSessionsApi:(...je)=>m.getSessions(...je),plusSessionApi:(...je)=>m.plusSession(...je),modifySessionApi:(...je)=>m.modifySession(...je),deleteSessionApi:(...je)=>m.deleteSession(...je),batchDeleteSessionsApi:(...je)=>m.batchDeleteSessions(...je),getSessionApi:(...je)=>m.getSession(...je),getSessionContentsApi:(...je)=>m.getSessionContents(...je),plusSessionContentApi:(...je)=>m.plusSessionContent(...je),modifySessionContentApi:(...je)=>m.modifySessionContent(...je),deleteSessionContentApi:(...je)=>m.deleteSessionContent(...je),batchDeleteSessionContentsApi:(...je)=>m.batchDeleteSessionContents(...je),renameSessionApi:(...je)=>m.renameSession(...je),updateRequestOptions:G}};(function(){var t='<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.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 01-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 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.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.09 7.757.264A280.989 280.989 0 00793.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"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",t):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",t)})})();const aVn=()=>{THn(),eVn()},oVn=Cs({setup(t,{expose:n}){const i=lr(!1),o=lr(),l=lr();let u;const f=()=>{var b;window.open((b=o.value)===null||b===void 0?void 0:b.apply_url,"_blank")},h=()=>{i.value=!1,u==null||u()};return n({handleShow:(b,_)=>{var E,S,T,x,I,N,O,L,P,B;o.value=b,i.value=!0,l.value=[{system_name:b==null||(E=b.permission)===null||E===void 0?void 0:E.system_name,name:b==null||(T=b.permission)===null||T===void 0||(S=T.actions)===null||S===void 0?void 0:S.map(G=>G.name).join(","),instance_name:b==null||(B=b.permission)===null||B===void 0||(P=B.actions[0])===null||P===void 0||(L=P.related_resource_types)===null||L===void 0||(O=L[0])===null||O===void 0||(N=O.instances)===null||N===void 0||(I=N[0])===null||I===void 0||(x=I.at(-1))===null||x===void 0?void 0:x.name}],u=_}}),(b,_)=>{const E=oz("bk-exception"),S=oz("bk-table-column"),T=oz("bk-table"),x=oz("bk-button"),I=oz("bk-dialog");return Vr(),wu(I,{"is-show":i.value,width:640,class:"auth-dialog",onClosed:h},{header:$u(()=>[Ri(E,{type:"403",scene:"part",title:"该操作需要以下权限"})]),footer:$u(()=>[Xr("div",null,[Ri(x,{theme:"primary",onClick:f},{default:$u(()=>_[0]||(_[0]=[Lv(" 去申请 ")])),_:1,__:[0]}),Ri(x,{class:"g-ml-8",onClick:h},{default:$u(()=>_[1]||(_[1]=[Lv(" 取消 ")])),_:1,__:[1]})])]),default:$u(()=>[Ri(T,{class:"g-mb-20","show-overflow-tooltip":"","empty-cell-text":"--",data:l.value},{default:$u(()=>[Ri(S,{label:"系统",field:"system_name"}),Ri(S,{label:"需要申请的权限",field:"name"}),Ri(S,{label:"关联的资源实例",field:"instance_name"})]),_:1},8,["data"])]),_:1},8,["is-show"])}}});oVn.__file="./src/components/render-auth/auth-dialog.vue";const ID=document.createElement("div");ID.id="directive-ele",ID.style.position="absolute",ID.style.zIndex="999999",ID.classList.add("g-permission-cursor-element"),ID.style.height="0",document.body.appendChild(ID);const vct="markdown-copy-code-button",sVn="markdown-copy-code-container",cVn="markdown-copy-code-copy",lVn="markdown-copy-code-done",uVn=`
515
+ }`;t=document.createElement("style"),t.textContent=o,document.head.appendChild(t)},i=()=>{t&&(t.remove(),t=null)};x7(()=>{n()}),qf(()=>{i()})};function bct(t,n,i,o,l,u,f){try{var h=t[u](f),m=h.value}catch(b){i(b);return}h.done?n(m):Promise.resolve(m).then(o,l)}function bC(t){return function(){var n=this,i=arguments;return new Promise(function(o,l){var u=t.apply(n,i);function f(m){bct(u,o,l,f,h,"next",m)}function h(m){bct(u,o,l,f,h,"throw",m)}f(void 0)})}}function tVn(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function Q2e(t){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{},o=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),o.forEach(function(l){tVn(t,l,i[l])})}return t}function nVn(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i.push.apply(i,o)}return i}function rVn(t,n){return n=n??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nVn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}),t}const iVn=({handleStart:t,handleText:n,handleReferenceDoc:i,handleThink:o,handleEnd:l,handleError:u,requestOptions:f,otherOptions:h})=>{let m=mct({apiPrefix:f.url,headers:f.headers,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});const b="内容正在生成中...",_=lr(f),E=lr(),S=lr({}),T=lr([]),x={},I={},N=lr(!1),O=qa(()=>{const je=[];for(let Tt=T.value.length-1;Tt>=0;Tt--){const Ge=T.value[Tt];let ze=Tt+1,Ye=T.value[ze];for(;Ye&&![ui.Ai,ui.TokenExpired,ui.ImageNotSupported,ui.Pause,ui.Guide].includes(Ye.role);)ze+=1,Ye=T.value[ze];if(Ge.role===ui.System)break;Ge.status!==u1.Fail&&!((Ye==null?void 0:Ye.status)===u1.Fail&&[ui.User,ui.UserImage].includes(Ge.role))&&![ui.Time,ui.System].includes(Ge.role)&&je.unshift(Ge)}return je}),L=qa(()=>{var je;const Tt=(je=E.value)===null||je===void 0?void 0:je.sessionCode;return Tt?S.value[Tt]:!1}),P=qa(()=>{var je,Tt,Ge;const ze=[],Ye=[],Ke=[],Fe=T.value.findLastIndex(st=>st.role===ui.System&&["已启用角色","已启用模型"].some(vt=>st.content.includes(vt)));let Be=0;(Ge=E.value)===null||Ge===void 0||(Tt=Ge.roleInfo)===null||Tt===void 0||(je=Tt.content)===null||je===void 0||je.forEach(st=>{const vt=T.value[Fe+1+Be];let Xt=T.value[Fe+2+Be];if((vt==null?void 0:vt.content)===st.content&&vt.role!==ui.System&&(ze.push(K2e(vt)),Be+=1,(vt==null?void 0:vt.role)===ui.Pause)){for(;Xt&&Xt.role===ui.System;)Be+=1,Xt=T.value[Fe+1+Be];for(;Xt&&[ui.User,ui.UserImage].includes(Xt.role);)ze.push(K2e(Xt)),Be+=1,Xt=T.value[Fe+1+Be]}}),Ye.push(...O.value.map(K2e));const ut=st=>{let vt=!0;for(let qe=st;qe<ze.length;qe++){var Xt;ze[qe].content!==((Xt=Ye[qe-st])===null||Xt===void 0?void 0:Xt.content)&&(vt=!1)}return vt};for(let st=0;st<ze.length;st++){const vt=ze[st];if(ut(st))break;Ke.push(vt)}return Ke.push(...Ye),Ke.forEach(st=>{st.content=XHn(st.content),st.content=SHn(st.content)}),Ke}),B=new wHn({handleStart:re,handleText:Te,handleReferenceDoc:ve,handleThink:Ne,handleEnd:Re,handleError:we,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});function G(je){_.value=Q2e({},_.value,je),(je.url||je.headers)&&(m=mct({apiPrefix:_.value.url,headers:_.value.headers,beforeRequest:_.value.beforeRequest,afterRequest:_.value.afterRequest}))}function z(je){return m.plusSessionContent(je).then(Tt=>(je.id=Tt.id,je.createdAt=Tt.createdAt,je))}const H=pHn((je,Tt)=>m.modifySessionContent(Tt),1e3);function V(je){E.value=je,je!=null&&je.sessionCode&&(x[je.sessionCode]||(x[je.sessionCode]=[]),T.value=x[je.sessionCode])}function $(je){E.value&&(x[E.value.sessionCode]=je,T.value=je)}function q(je){return j.apply(this,arguments)}function j(){return j=bC(function*(je){E.value=je;try{N.value=!0;const Tt=yield m.getSessionContents(je.sessionCode);x[E.value.sessionCode]=Tt,T.value=Tt,N.value=!1}catch{N.value=!1}}),j.apply(this,arguments)}function W(je,Tt){return J(Tt).find(ze=>ze.id===je)}function U(je){var Tt;return((Tt=E.value)===null||Tt===void 0?void 0:Tt.sessionCode)===je?T.value.at(-1):x[je].at(-1)}function J(je){var Tt;return((Tt=E.value)===null||Tt===void 0?void 0:Tt.sessionCode)===je?T.value:x[je]}function X(je,Tt){return J(je).push(Tt),z(Tt)}function Q(je){var Tt;const ze=(((Tt=E.value)===null||Tt===void 0?void 0:Tt.sessionCode)===je.sessionCode?T.value:x[je.sessionCode]).find(Ye=>+(Ye.id||0)==+(je.id||0));return ze&&Object.assign(ze,je),H(je.id,je)}function ee(je,Tt,Ge){var ze;const Ye=((ze=E.value)===null||ze===void 0?void 0:ze.sessionCode)===je?T.value:x[je],Ke=[];return Tt.forEach(Fe=>{const Be=Ye.findIndex(ut=>ut.id===Fe);if(Be>-1){const ut=Ye[Be-1],st=Ye[Be+1],vt=Ye[Be+2];if(Ye.splice(Be,1),Ke.push(Fe),[ui.Hidden].includes(ut==null?void 0:ut.role)){const Xt=Ye.findIndex(qe=>qe.id===ut.id);Ye.splice(Xt,1),Ke.push(ut.id)}if((st==null?void 0:st.role)===ui.Ai||Ge&&[ui.Ai,ui.Guide,ui.TokenExpired,ui.ImageNotSupported,ui.Pause].includes(st==null?void 0:st.role)){const Xt=Ye.findIndex(qe=>qe.id===st.id);Ye.splice(Xt,1),Ke.push(st.id)}if([ui.Guide].includes(vt==null?void 0:vt.role)&&Ge){const Xt=Ye.findIndex(qe=>qe.id===vt.id);Ye.splice(Xt,1),Ke.push(vt.id)}}}),Ke}function ne(je,Tt){const Ge=ee(je,[Tt],!0);return m.batchDeleteSessionContents(Ge)}function oe(je,Tt){const Ge=ee(je,Tt,!1);return m.batchDeleteSessionContents(Ge)}function re(je){return ue.apply(this,arguments)}function ue(){return ue=bC(function*(je){S.value[je]=!0;const Tt={sessionCode:je,role:ui.Ai,status:u1.Loading,content:b};return yield X(je,Tt),t==null?void 0:t(je,Tt)}),ue.apply(this,arguments)}function ve(je,Tt,Ge){return ie.apply(this,arguments)}function ie(){return ie=bC(function*(je,Tt,Ge){const ze=U(je),Ye=EHn(Tt,h==null?void 0:h.hideReferenceDocIcon);ze.content=Ge?Ye:ze.content+Ye,yield H(ze.id,ze),yield i==null?void 0:i(je,ze)}),ie.apply(this,arguments)}function Ne(je,Tt,Ge,ze){return Se.apply(this,arguments)}function Se(){return Se=bC(function*(je,Tt,Ge,ze){const Ye=U(je);Ye.content=JHn(Ye.content,Tt,Ge,ze),yield H(Ye.id,Ye),yield o==null?void 0:o(je,Ye)}),Se.apply(this,arguments)}function Te(je,Tt,Ge){return Me.apply(this,arguments)}function Me(){return Me=bC(function*(je,Tt,Ge){const ze=U(je);if(ze.content===b)ze.content=Tt;else if(ze.status===u1.Loading)ze.content=Ge?Tt:ze.content+Tt;else return;yield H(ze.id,ze),yield n==null?void 0:n(je,ze)}),Me.apply(this,arguments)}function Re(je,Tt){return _e.apply(this,arguments)}function _e(){return _e=bC(function*(je,Tt){const Ge=U(je);if(Ge.content===b||ZHn(Ge.content)){we(je,"聊天内容已中断");return}Ge.status===u1.Loading&&(S.value[je]=!1,Tt&&(Ge.content=Tt),Ge.status=u1.Success,yield H(Ge.id,Ge),yield l==null?void 0:l(je,Ge))}),_e.apply(this,arguments)}function we(je,Tt,Ge){return me.apply(this,arguments)}function me(){return me=bC(function*(je,Tt,Ge){const ze=U(je);if(ze.status=u1.Fail,ze.content=Tt,S.value[je]=!1,Ge===Nne.TokenExpired){var Ye,Ke;if(ze.content="抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))",ze.role=ui.TokenExpired,!((Ke=E.value)===null||Ke===void 0||(Ye=Ke.sessionProperty)===null||Ye===void 0)&&Ye.isAutoClear){var Fe;yield X(je,{sessionCode:je,role:ui.System,content:"由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息"}),yield m.clearSession((Fe=E.value)===null||Fe===void 0?void 0:Fe.sessionCode)}}Ge===Nne.ImageNotSupported&&(ze.content="抱歉,当前模型不支持图片内容解析",ze.role=ui.ImageNotSupported),yield H(ze.id,ze),yield u==null?void 0:u(je,ze,Ge)}),me.apply(this,arguments)}function ce(je,Tt){return pe.apply(this,arguments)}function pe(){return pe=bC(function*(je,Tt){let Ge=!1;I[je]=[];for(const ze of Tt)if(Ge)I[je].push(ze);else{const Ye=rVn(Q2e({},KHn(ze)),{sessionCode:je,status:u1.Success});yield X(je,Ye),Ye.role===ui.Pause&&(Ge=!0)}}),pe.apply(this,arguments)}function Oe(je,Tt,Ge){if(Tt.role!==ui.Ai)return;const ze=T.value.slice(Ge,T.value.length).map(Ke=>Ke.id).filter(Ke=>Ke!==void 0);ze.length>0&&oe(je,ze);const Ye=T.value[Ge-1];Ye&&ke(Ye)}function ke({sessionCode:je,url:Tt,data:Ge,headers:ze}){const Ye=I[je];(Ye==null?void 0:Ye.length)>0?ce(je,Ye):ft(je,Ge,Tt,ze)}function ft(je,Tt,Ge,ze){var Ye;const Ke=U(je);B.stream({sessionCode:je,url:Ge||`${_.value.url}/chat_completion/`,data:Q2e({session_content_id:Ke==null?void 0:Ke.id,session_code:je,execute_kwargs:{stream:!0}},Tt,_.value.data),headers:ze||((Ye=_.value)===null||Ye===void 0?void 0:Ye.headers)})}function Pe(je,Tt,Ge){return tt.apply(this,arguments)}function tt(){return tt=bC(function*(je,Tt,Ge){var ze,Ye;if(Tt.role!==ui.User)return;const Ke=T.value.slice(Ge,T.value.length).map(Fe=>Fe.id).filter(Fe=>Fe!==void 0);Ke.length>0&&oe(je,Ke),yield X(je,{role:ui.User,content:Tt.content,sessionCode:je,property:{extra:{cite:(Ye=Tt.property)===null||Ye===void 0||(ze=Ye.extra)===null||ze===void 0?void 0:ze.cite}}}),ke(Tt)}),tt.apply(this,arguments)}function ht(je,Tt){let Ge=[];if(T.value[je].role===ui.User){Ge=T.value.slice(je,je+2).map(Ye=>Ye.id).filter(Ye=>Ye!==void 0),oe(Tt,Ge);return}Ge=T.value.slice(je-1,je+1).map(Ye=>Ye.id).filter(Ye=>Ye!==void 0),oe(Tt,Ge)}function Ct(je){B.stop(je)}return{currentSession:E,sessionContents:T,sessionContentsMap:x,sessionLoadingMap:S,prompts:P,currentSessionLoading:L,isLoadingSessionContents:N,chat:ke,stopChat:Ct,plusSessionContent:X,updateSessionContent:Q,getSessionContentById:W,getLastSessionContentBySessionCode:U,getSessionContentsBySessionCode:J,setCurrentSession:V,setCurrentSessionChain:q,setSessionContents:$,deleteSessionContent:ne,deleteSessionContents:oe,handleStartChat:re,handleErrorChat:we,handleCompleteRole:ce,reGenerateChat:Oe,reSendChat:Pe,deleteChat:ht,getAgentInfoApi:(...je)=>m.getAgentInfo(...je),clearSessionApi:(...je)=>m.clearSession(...je),getSessionsApi:(...je)=>m.getSessions(...je),plusSessionApi:(...je)=>m.plusSession(...je),modifySessionApi:(...je)=>m.modifySession(...je),deleteSessionApi:(...je)=>m.deleteSession(...je),batchDeleteSessionsApi:(...je)=>m.batchDeleteSessions(...je),getSessionApi:(...je)=>m.getSession(...je),getSessionContentsApi:(...je)=>m.getSessionContents(...je),plusSessionContentApi:(...je)=>m.plusSessionContent(...je),modifySessionContentApi:(...je)=>m.modifySessionContent(...je),deleteSessionContentApi:(...je)=>m.deleteSessionContent(...je),batchDeleteSessionContentsApi:(...je)=>m.batchDeleteSessionContents(...je),renameSessionApi:(...je)=>m.renameSession(...je),updateRequestOptions:G}};(function(){var t='<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.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 01-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 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.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.09 7.757.264A280.989 280.989 0 00793.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"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",t):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",t)})})();const aVn=()=>{THn(),eVn()},oVn=Cs({setup(t,{expose:n}){const i=lr(!1),o=lr(),l=lr();let u;const f=()=>{var b;window.open((b=o.value)===null||b===void 0?void 0:b.apply_url,"_blank")},h=()=>{i.value=!1,u==null||u()};return n({handleShow:(b,_)=>{var E,S,T,x,I,N,O,L,P,B;o.value=b,i.value=!0,l.value=[{system_name:b==null||(E=b.permission)===null||E===void 0?void 0:E.system_name,name:b==null||(T=b.permission)===null||T===void 0||(S=T.actions)===null||S===void 0?void 0:S.map(G=>G.name).join(","),instance_name:b==null||(B=b.permission)===null||B===void 0||(P=B.actions[0])===null||P===void 0||(L=P.related_resource_types)===null||L===void 0||(O=L[0])===null||O===void 0||(N=O.instances)===null||N===void 0||(I=N[0])===null||I===void 0||(x=I.at(-1))===null||x===void 0?void 0:x.name}],u=_}}),(b,_)=>{const E=oz("bk-exception"),S=oz("bk-table-column"),T=oz("bk-table"),x=oz("bk-button"),I=oz("bk-dialog");return Vr(),wu(I,{"is-show":i.value,width:640,class:"auth-dialog",onClosed:h},{header:$u(()=>[Ri(E,{type:"403",scene:"part",title:"该操作需要以下权限"})]),footer:$u(()=>[Xr("div",null,[Ri(x,{theme:"primary",onClick:f},{default:$u(()=>_[0]||(_[0]=[Lv(" 去申请 ")])),_:1}),Ri(x,{class:"g-ml-8",onClick:h},{default:$u(()=>_[1]||(_[1]=[Lv(" 取消 ")])),_:1})])]),default:$u(()=>[Ri(T,{class:"g-mb-20","show-overflow-tooltip":"","empty-cell-text":"--",data:l.value},{default:$u(()=>[Ri(S,{label:"系统",field:"system_name"}),Ri(S,{label:"需要申请的权限",field:"name"}),Ri(S,{label:"关联的资源实例",field:"instance_name"})]),_:1},8,["data"])]),_:1},8,["is-show"])}}});oVn.__file="./src/components/render-auth/auth-dialog.vue";const ID=document.createElement("div");ID.id="directive-ele",ID.style.position="absolute",ID.style.zIndex="999999",ID.classList.add("g-permission-cursor-element"),ID.style.height="0",document.body.appendChild(ID);const vct="markdown-copy-code-button",sVn="markdown-copy-code-container",cVn="markdown-copy-code-copy",lVn="markdown-copy-code-done",uVn=`
516
516
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
517
517
  <g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
518
518
  <path d="M7.998 16h4m-4-5h8M7.5 3.5c-1.556.047-2.483.22-3.125.862c-.879.88-.879 2.295-.879 5.126v6.506c0 2.832 0 4.247.879 5.127C5.253 22 6.668 22 9.496 22h5c2.829 0 4.243 0 5.121-.88c.88-.879.88-2.294.88-5.126V9.488c0-2.83 0-4.246-.88-5.126c-.641-.642-1.569-.815-3.125-.862" />
@@ -657,7 +657,7 @@ ${t.themeCSS}`),t.fontFamily!==void 0&&(o+=`
657
657
  * Wait for document loaded before starting the execution
658
658
  */window.addEventListener("load",Ryt,!1)}const tbr=function(t){Yv.parseError=t},qie=[];let exe=!1;const Lyt=async()=>{if(!exe){for(exe=!0;qie.length>0;){const t=qie.shift();if(t)try{await t()}catch(n){Qe.error("Error executing queue",n)}}exe=!1}},nbr=async(t,n)=>new Promise((i,o)=>{const l=()=>new Promise((u,f)=>{LO.parse(t,n).then(h=>{u(h),i(h)},h=>{var m;Qe.error("Error parsing",h),(m=Yv.parseError)==null||m.call(Yv,h),f(h),o(h)})});qie.push(l),Lyt().catch(o)}),Dyt=(t,n,i)=>new Promise((o,l)=>{const u=()=>new Promise((f,h)=>{LO.render(t,n,i).then(m=>{f(m),o(m)},m=>{var b;Qe.error("Error parsing",m),(b=Yv.parseError)==null||b.call(Yv,m),h(m),l(m)})});qie.push(u),Lyt().catch(l)}),Yv={startOnLoad:!0,mermaidAPI:LO,parse:nbr,render:Dyt,init:Zmr,run:Oyt,registerExternalDiagrams:ebr,initialize:Myt,parseError:void 0,contentLoaded:Ryt,setParseErrorHandler:tbr,detectType:Pie};function rbr(){const t=()=>{Yv.initialize({startOnLoad:!1,securityLevel:"loose",theme:"default",fontFamily:"Arial, sans-serif",fontSize:14})},n=async l=>{var f,h;const u=l.querySelectorAll(".mermaid-placeholder");for(const m of u)try{const b=m.getAttribute("data-mermaid-id"),_=m.getAttribute("data-mermaid-content");if(!b||!_)continue;const E=decodeURIComponent(_),{svg:S}=await Yv.render(b,E),T=document.getElementById(`d${b}`);T&&T.remove();const x=document.createElement("div"),I=CC.sanitize(S,{ADD_TAGS:["foreignObject"],USE_PROFILES:{svg:!0,svgFilters:!0}});x.className="mermaid-diagram",x.innerHTML=I,(f=m.parentNode)==null||f.replaceChild(x,m)}catch(b){console.error("Mermaid rendering error:",b);const _=m.getAttribute("data-mermaid-id");if(_){const T=document.getElementById(`d${_}`);T&&T.remove()}const E=document.createElement("div");E.className="alert alert-danger mermaid-error";const S=b instanceof Error?b.message:String(b);E.textContent=`Mermaid diagram error: ${S}`,(h=m.parentNode)==null||h.replaceChild(E,m)}};return{initMermaid:t,renderMermaidDiagrams:n,processMermaidDiagrams:async(l,u)=>{await nu(),await n(l),await nu(),u&&u()},cleanupMermaidElements:()=>{document.querySelectorAll('[id^="dmermaid-"]').forEach(u=>u.remove())}}}const Pyt=t=>{const n=t.renderer.rules.link_open||function(i,o,l,u,f){return f.renderToken(i,o,l)};t.renderer.rules.link_open=function(i,o,l,u,f){return i[o].attrSet("target","_blank"),n(i,o,l,u,f)}};function Byt(t,n={}){Yv.initialize({startOnLoad:!1,securityLevel:"loose",theme:"default",...n});function i(u){return u.split(/\s+/g)[0]}const o=t.renderer.rules.fence;function l(u,f,h,m,b){const _=u[f],E=_.info.trim(),S=E?i(E):"";return["mermaid","{mermaid}"].indexOf(S)===-1?o!==void 0?o(u,f,h,m,b):"":`<div class="mermaid-placeholder" data-mermaid-id="${`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`}" data-mermaid-content="${encodeURIComponent(_.content)}">Loading diagram...</div>`}t.renderer.rules.fence=l}const ibr={class:"delete-confirm-wrapper"},abr={class:"delete-confirm-title"},obr={class:"delete-confirm-content"},sbr={class:"delete-confirm-footer"},cbr=E0(Cs({__name:"delete-confirm",props:{onConfirm:{type:Function},onCancel:{type:Function},title:{},content:{}},setup(t){const n=t,i=n.title||"确认删除该提问?",o=n.content||"删除操作无法撤回,请谨慎操作!",l=()=>{n.onCancel()},u=()=>{n.onConfirm()};return(f,h)=>(Vr(),oa("div",ibr,[Xr("div",abr,Hc(Vn(i)),1),Xr("div",obr,Hc(Vn(o)),1),Xr("div",sbr,[Ri(Vn(VN),{style:{width:"64px","min-width":"64px"},size:"small",theme:"danger",onClick:u},{default:$u(()=>[Lv(Hc(Vn(jo)("删除")),1)]),_:1}),Ri(Vn(VN),{style:{width:"64px","min-width":"64px"},size:"small",theme:"default",onClick:l},{default:$u(()=>[Lv(Hc(Vn(jo)("取消")),1)]),_:1})])]))}}),[["__scopeId","data-v-c7564ad8"]]),DO=new Map;function lbr(t,n){const i=typeof t=="string"?document.querySelector(t):t;if(!i){console.error("Target element not found");return}if(DO.has(i)){const m=DO.get(i);return m==null||m.show(),m}const o={onConfirm:()=>{n.onConfirm(),f==null||f.hide(),DO.delete(i)},onCancel:()=>{f==null||f.hide(),DO.delete(i)},title:n.title,content:n.content},l=document.createElement("div"),u=cc(cbr,o);n4(u,l);const f=iO(i,{content:l,interactive:!0,trigger:"manual",theme:"white",placement:n.placement||"top",arrow:!0,appendTo:n.appendTo||document.body,hideOnClick:!0,animation:"scale",duration:200,delay:[0,0],onHidden:()=>{setTimeout(()=>{DO.delete(i),n4(null,l)},200)}});DO.set(i,f);const h=()=>{f.hide()};return o.onConfirm=()=>{n.onConfirm(),h()},o.onCancel=()=>{h()},f.show(),f}function ubr(){DO.forEach(t=>{t.hide()})}const fbr={class:"bk-text-editor"},dbr=["placeholder"],hbr={class:"editor-footer"},pbr={class:"button-group"},gbr=Cs({__name:"text-editor",props:{modelValue:{default:""},placeholder:{default:jo("请输入内容")},autoFocus:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["submit","update:modelValue","cancel","stop"],setup(t,{expose:n,emit:i}){const o=t,l=i,u=lr(null),f=lr(o.modelValue),{handleCompositionStart:h,handleCompositionEnd:m,handleEnter:b,handleSend:_}=Qft({isLoading:qa(()=>o.loading),getInputValue:()=>f.value,clearInput:()=>{f.value=""},onSend:I=>l("submit",I),onStop:()=>l("stop")});bl(()=>o.modelValue,I=>{f.value=I}),bl(()=>f.value,I=>{l("update:modelValue",I)});const E=()=>{l("update:modelValue",f.value)},S=I=>{if(I.ctrlKey||I.metaKey){I.preventDefault(),T();return}b(I)},T=()=>{_()},x=()=>{f.value="",l("cancel")};return ru(()=>{var I;o.autoFocus&&((I=u.value)==null||I.focus())}),n({focus:()=>{var I;(I=u.value)==null||I.focus()},clear:()=>{f.value=""}}),(I,N)=>(Vr(),oa("div",fbr,[Mv(Xr("textarea",{ref_key:"textareaRef",ref:u,"onUpdate:modelValue":N[0]||(N[0]=O=>f.value=O),class:"editor-textarea",placeholder:I.placeholder,onCompositionend:N[1]||(N[1]=(...O)=>Vn(m)&&Vn(m)(...O)),onCompositionstart:N[2]||(N[2]=(...O)=>Vn(h)&&Vn(h)(...O)),onInput:E,onKeydown:F4n(S,["enter"])},null,40,dbr),[[Eye,f.value]]),Xr("div",hbr,[Xr("div",pbr,[Ri(Vn(VN),{style:{width:"52px","min-width":"52px"},class:"cancel-btn",size:"small",theme:"default",onClick:x},{default:$u(()=>[Lv(Hc(Vn(jo)("取消")),1)]),_:1}),Ri(Vn(VN),{style:{width:"52px","min-width":"52px"},class:"submit-btn",disabled:!f.value.trim(),size:"small",theme:"primary",onClick:T},{default:$u(()=>[Lv(Hc(Vn(jo)("发送")),1)]),_:1},8,["disabled"])])])]))}}),mbr=E0(gbr,[["__scopeId","data-v-b4d807d6"]]),bbr={key:0,class:"ai-cite-container"},vbr={key:1,class:"message-content user"},ybr={key:0,class:"time-message user"},_br=["innerHTML"],wbr={key:2,class:"message-content ai"},Ebr={key:0,class:"time-message ai"},Sbr={key:2,width:"14",height:"14",class:"loading-message","aria-hidden":"true"},Tbr={key:3,class:"message-wrap"},Cbr=["innerHTML"],xbr={key:3,class:"message-tool"},kbr=Cs({__name:"render-message",props:{message:{},userPhoto:{default:Har},showTime:{type:Boolean,default:!1},index:{}},emits:["regenerate","resend","delete"],setup(t,{emit:n}){const i=n,o=t,l=lr(!1),u=lr(null),f=q=>typeof q=="object"&&q!==null&&"type"in q&&q.type==="structured",{enablePopup:h}=lEe(),{setCiteText:m}=g$(h),{createTooltipsForSelector:b,destroyAll:_}=jD({placement:"top",arrow:!0,appendTo:"parent",delay:[0,0]}),{initMermaid:E,processMermaidDiagrams:S,cleanupMermaidElements:T}=rbr(),x=new dgt({html:!0,highlight:(q,j)=>{if(j&&gre.getLanguage(j))try{return gre.highlight(q,{language:j}).value}catch{}return""}}).use(_ct).use(Pyt).use(Byt),I=qa(()=>{var j;const q={[u1.Fail]:"bkai-icon bkai-warning-circle-fill",[u1.Loading]:"",[u1.Success]:""};return(j=o.message)!=null&&j.status?q[o.message.status]:""}),N=qa(()=>{if(!o.message.content)return"";const q=x.render(o.message.content),j=CC.sanitize(q,{USE_PROFILES:{html:!0,svg:!0},ADD_TAGS:["svg","g","path"],ADD_ATTR:["target","xmlns","width","height","viewBox","fill","stroke-linecap","stroke-linejoin","stroke-width"],FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]});return nu(()=>{u.value&&S(u.value,()=>{var U;const W=new CustomEvent("mermaid-rendered",{bubbles:!0});(U=u.value)==null||U.dispatchEvent(W)})}),j.replace(/\s*<\/p>\s*$/,"</p>")}),O=qa(()=>{if(!o.message.time)return"";const q=pp(o.message.time);return pp().isSame(q,"year")?q.format("MM-DD HH:mm:ss"):q.format("YYYY-MM-DD HH:mm:ss")}),L=q=>{l.value=!1,i("resend",o.index,{message:q})},P=q=>q.content?typeof q.content=="string"?q.content:JSON.stringify(q.content,null,2):q.data&&q.data.length>0?`${q.title}
659
659
  ${q.data.map(j=>`${j.key}: ${j.value}`).join(`
660
- `)}`:JSON.stringify(q,null,2),B=()=>{var j,W,U;const q=(U=(W=(j=o.message)==null?void 0:j.property)==null?void 0:W.extra)==null?void 0:U.cite;return q&&f(q)?P(q):o.message.content},G=async()=>{try{await navigator.clipboard.writeText(B()),j2e({theme:"success",message:jo("复制成功")})}catch(q){console.error("复制失败:",q),j2e({theme:"error",message:jo("复制失败")})}},z=()=>{m(B())},H=()=>{i("regenerate",o.index)},V=q=>{const j=q.currentTarget;lbr(j,{onConfirm:()=>{i("delete",o.index)},onCancel:()=>{},placement:"top",appendTo:u.value})},$=()=>{_(),b(".message-tool .bkai-fuzhi",jo("复制")),b(".message-tool .bkai-zhongxinshengcheng",jo("重新生成")),b(".message-tool .bkai-yinyong",jo("引用")),b(".message-tool .bkai-bianji",jo("编辑")),b(".message-tool .bkai-shanchu",jo("删除"))};return ru(()=>{E(),setTimeout($,0)}),bl(()=>o.message,()=>{setTimeout($,0)},{deep:!0}),bl(l,q=>{q||setTimeout($,0)}),qf(()=>{ubr(),T()}),(q,j)=>{var W,U,J,X,Q,ee,ne,oe,re;return Vn(cre).includes(q.message.role)?xs("v-if",!0):(Vr(),oa("li",{key:0,ref_key:"messageMainRef",ref:u,class:Zc([q.message.role,"message-main"])},[(J=(U=(W=q.message)==null?void 0:W.property)==null?void 0:U.extra)!=null&&J.cite?(Vr(),oa("div",bbr,[f(q.message.property.extra.cite)?xs("v-if",!0):(Vr(),wu(Kft,{key:0,text:q.message.property.extra.cite},null,8,["text"]))])):xs("v-if",!0),Xr("div",{class:Zc(`message-content-container ${q.message.role}`)},[f((ee=(Q=(X=q.message)==null?void 0:X.property)==null?void 0:Q.extra)==null?void 0:ee.cite)?(Vr(),wu(Qar,{key:0,"cite-data":(re=(oe=(ne=q.message)==null?void 0:ne.property)==null?void 0:oe.extra)==null?void 0:re.cite},null,8,["cite-data"])):[Vn(ui).User,Vn(ui).Role].includes(q.message.role)?(Vr(),oa(Vc,{key:1},[l.value?(Vr(),wu(mbr,{key:0,"auto-focus":!0,"model-value":q.message.content,onCancel:j[0]||(j[0]=ue=>l.value=!1),onSubmit:L},null,8,["model-value"])):(Vr(),oa("p",vbr,[O.value&&o.showTime?(Vr(),oa("span",ybr,Hc(O.value),1)):xs("v-if",!0),Xr("span",{class:"markdown-content",innerHTML:N.value},null,8,_br)]))],64)):(Vr(),oa("p",wbr,[O.value&&o.showTime?(Vr(),oa("span",Ebr,Hc(O.value),1)):xs("v-if",!0),I.value?(Vr(),oa("i",{key:1,class:Zc(I.value)},null,2)):xs("v-if",!0),q.message.status===Vn(u1).Loading?(Vr(),oa("svg",Sbr,j[2]||(j[2]=[Xr("use",{"xlink:href":"#bkai-quanquan"},null,-1)]))):xs("v-if",!0),q.message.status===Vn(u1).Fail?(Vr(),oa("span",Tbr,Hc(q.message.content),1)):(Vr(),oa("span",{key:4,class:Zc({"markdown-content":!0,loading:q.message.status===Vn(u1).Loading}),innerHTML:N.value},null,10,Cbr))])),!l.value&&q.message.status!==Vn(u1).Loading?(Vr(),oa("div",xbr,[Xr("i",{class:"bkai-icon bkai-fuzhi",onClick:G}),Xr("i",{class:"bkai-icon bkai-yinyong",onClick:z}),q.message.role===Vn(ui).Ai?(Vr(),oa("i",{key:0,class:"bkai-icon bkai-zhongxinshengcheng",onClick:H})):xs("v-if",!0),q.message.role===Vn(ui).User?(Vr(),oa("i",{key:1,class:"bkai-icon bkai-bianji",onClick:j[1]||(j[1]=ue=>l.value=!0)})):xs("v-if",!0),Xr("i",{class:"bkai-icon bkai-shanchu",onClick:V})])):xs("v-if",!0)],2)],2))}}}),Abr=E0(Cs({__name:"message-list",props:{sessionContents:{},hasSessionContents:{type:Boolean},contentMarginBottom:{}},emits:["delete","regenerate","resend"],setup(t,{expose:n,emit:i}){bz(N=>({"0734f233":o.contentMarginBottom+"px"}));const o=t,l=i,u=lr(null);let f=0;const h=lr(!1),m=()=>{if(!u.value)return;h.value=!0;const{scrollTop:N,scrollHeight:O,clientHeight:L}=u.value;N+L>=O-50&&N>f&&(h.value=!1),f=N},b=()=>{u.value&&u.value.scrollTo({top:u.value.scrollHeight,behavior:"smooth"})},_=()=>{setTimeout(()=>{h.value||b()},100)},E=N=>{l("delete",N)},S=N=>{l("regenerate",N)},T=(N,O)=>{l("resend",N,O)};return n({messageWrapper:u,scrollToBottom:b,scrollToBottomIfNeeded:()=>{h.value||b()},userScrolling:h,resetUserScrolling:()=>{h.value=!1}}),ru(()=>{u.value&&(u.value.addEventListener("scroll",m),u.value.addEventListener("mermaid-rendered",_))}),qf(()=>{u.value&&(u.value.removeEventListener("scroll",m),u.value.removeEventListener("mermaid-rendered",_))}),(N,O)=>(Vr(),oa("div",{ref_key:"messageWrapper",ref:u,style:WT({opacity:N.hasSessionContents?1:0}),class:"message-wrapper"},[(Vr(!0),oa(Vc,null,p_(N.sessionContents,(L,P)=>(Vr(),oa("div",{key:L.id,class:"message-line-wrapper"},[Ri(kbr,{index:P,message:L,onDelete:E,onRegenerate:S,onResend:T},null,8,["index","message"])]))),128))],4))}}),[["__scopeId","data-v-f4c2e5a8"]]),Ibr={class:"popup-content"},Nbr=["src"],Obr={class:"shortcut-buttons"},Mbr=["onClick"],Rbr={class:"btn-text ai-blueking-tag-text"},Lbr=["onClick"],Dbr=E0(Cs({__name:"render-popup",props:{shortcuts:{default:()=>[]},conversationSettings:{},shortcutLimit:{default:3},shortcutFilter:{}},emits:["click","shortcut-click"],setup(t,{emit:n}){const i=t,{enablePopup:o}=lEe(),{isIconVisible:l,iconPosition:u,popupRef:f,clearSelection:h,selectedText:m}=g$(o),b=qa(()=>{var H;const z=i.shortcuts.length>0?i.shortcuts:((H=i.conversationSettings)==null?void 0:H.commands)||[];return typeof i.shortcutFilter=="function"?z.filter(V=>{var $;return!!(($=i.shortcutFilter)!=null&&$.call(i,Oc(V),m.value))}):z}),_=qa(()=>b.value.slice(0,i.shortcutLimit)),E=qa(()=>b.value.slice(i.shortcutLimit)),S=lr(!1);let T=null,x=null;const I=n,N=()=>{I("click"),l.value=!1},O=()=>{x&&(clearTimeout(x),x=null),S.value=!0},L=()=>{x&&(window.clearTimeout(x),x=null),x=window.setTimeout(()=>{T||(S.value=!1)},100)},P=()=>{T&&(clearTimeout(T),T=null)},B=()=>{T&&(window.clearTimeout(T),T=null),T=window.setTimeout(()=>{S.value=!1},100)},G=z=>{try{I("shortcut-click",{shortcut:z,source:"popup"}),h(),l.value=!1}catch(H){console.error("处理快捷按钮点击事件时出错:",H)}};return(z,H)=>Vn(l)?(Vr(),oa("div",{key:0,ref_key:"popupRef",ref:f,style:WT(Vn(u)),class:"ai-blueking-render-popup",onMousedown:H[0]||(H[0]=m6(()=>{},["prevent"]))},[Xr("div",Ibr,[xs(" AI图标按钮 "),Xr("div",{class:"popup-bkai-btn",onClick:N},[Xr("img",{class:"avatar",src:Vn(tEe),alt:"AI"},null,8,Nbr),Xr("span",null,Hc(Vn(jo)("问问小鲸")),1)]),xs(" 快捷按钮组 "),Xr("div",Obr,[(Vr(!0),oa(Vc,null,p_(_.value,(V,$)=>(Vr(),oa("div",{key:$,class:"shortcut-btn",onClick:q=>G(V)},[V.icon?(Vr(),oa("i",{key:0,class:Zc(V.icon)},null,2)):xs("v-if",!0),Xr("span",Rbr,Hc(V.name),1)],8,Mbr))),128)),xs(" 更多按钮 "),E.value.length>0?(Vr(),oa("div",{key:0,class:"shortcut-btn more-btn",onMouseenter:O,onMouseleave:L},[H[1]||(H[1]=Xr("span",{class:"btn-text"},"更多",-1)),H[2]||(H[2]=Xr("i",{class:"bkai-icon bkai-angle-down"},null,-1)),xs(" 更多菜单 "),S.value?(Vr(),oa("div",{key:0,class:"more-menu",onMouseenter:P,onMouseleave:B},[(Vr(!0),oa(Vc,null,p_(E.value,(V,$)=>(Vr(),oa("div",{key:$,class:"more-menu-item",onClick:q=>G(V)},[V.icon?(Vr(),oa("i",{key:0,class:Zc(V.icon)},null,2)):xs("v-if",!0),Xr("span",null,Hc(V.name),1)],8,Lbr))),128))],32)):xs("v-if",!0)],32)):xs("v-if",!0)])])],36)):xs("v-if",!0)}}),[["__scopeId","data-v-da87f3ae"]]);function Pbr(t){const{greetingMaxHeight:n}=t,i=lr(0),o=lr();return{greetingTextHeight:i,greetingSectionRef:o,updateGreetingTextHeight:()=>{nu(()=>{o.value&&(i.value=o.value.getGreetingHeight())})},getInputContainerStyle:f=>{if(!f){const m=i.value,b=Math.min(m-22,n-22);return{top:`${188+Math.max(0,b)}px`}}return{}}}}function Bbr(){const t=new dgt({html:!0,breaks:!0,highlight:(o,l)=>{if(l&&gre.getLanguage(l))try{return gre.highlight(o,{language:l}).value}catch{}return""}}).use(_ct).use(Pyt).use(Byt),n=o=>{if(!o)return"";try{const l=t.render(o);return CC.sanitize(l,{USE_PROFILES:{html:!0},FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/\s*<\/p>\s*$/,"</p>")}catch(l){return console.warn("Markdown rendering failed:",l),o.replace(/</g,"&lt;").replace(/>/g,"&gt;")}};return{renderMarkdown:n,createMarkdownRenderer:o=>qa(()=>n(o.value))}}function Fbr(){const t=lr();return{messageListRef:t,scrollMainToBottom:()=>{var l;(l=t.value)==null||l.scrollToBottom()},scrollToBottomIfNeeded:()=>{var l;(l=t.value)==null||l.scrollToBottomIfNeeded()},resetUserScrolling:()=>{var l;(l=t.value)==null||l.resetUserScrolling()}}}function jbr(t={}){const n=t.initWidth||400,i=t.minWidth||400,o=t.minHeight||400,l=t.maxWidthPercent||40,u=t.miniHeight||800,f=t.miniPadding!==void 0?t.miniPadding:0,h=lr(t.defaultLeft!==void 0?t.defaultLeft:window.innerWidth-n),m=lr(t.defaultTop!==void 0?t.defaultTop:0),b=lr(t.defaultHeight!==void 0?t.defaultHeight:window.innerHeight-(t.defaultTop!==void 0?t.defaultTop:0)),_=lr(n),E=lr(m.value),S=lr(h.value),T=lr(_.value),x=lr(b.value),I=lr(Math.max(window.innerWidth*(l/100),T.value)),N=lr(!1),O=lr(0),L=(z,H)=>{S.value=z,E.value=H,O.value=z-(window.innerWidth-T.value)},P=(z,H,V,$)=>{S.value=z,E.value=H,T.value=Math.min(V,I.value),x.value=$},B=()=>{I.value=Math.max(window.innerWidth*(l/100),T.value),nu(()=>{if(N.value)S.value=window.innerWidth-T.value-f,E.value=window.innerHeight-u-f;else{const z=window.innerWidth-T.value-O.value;S.value=Math.max(0,z),setTimeout(()=>{x.value=window.innerHeight-E.value},0)}T.value>I.value&&(T.value=I.value)})},G=()=>{N.value?(E.value=m.value,nu(()=>{x.value=b.value,S.value=h.value,T.value=_.value})):(E.value=window.innerHeight-u-f,S.value=h.value-f,T.value=n,x.value=u),N.value=!N.value};return ru(()=>{window.addEventListener("resize",B)}),qf(()=>{window.removeEventListener("resize",B)}),{minWidth:i,minHeight:o,maxWidth:I,top:E,left:S,width:T,height:x,isCompressionHeight:N,handleDragging:L,handleResizing:P,toggleCompression:G}}function Ubr(t){const{selectedText:n,isShow:i,handleShow:o}=t,l=lr();return{currentShortcut:l,handleShortcutClick:h=>{var I,N;const{shortcut:m,source:b="main"}=h,_=m;let E;try{E=JSON.parse(JSON.stringify(_))}catch(O){console.warn("Failed to deep clone shortcut, using shallow copy instead:",O),E={..._,components:_.components?[..._.components]:_.components}}!i.value&&o();const S=(I=E.components)==null?void 0:I.find(O=>O.fillBack);if(S){let O=n.value;if(S.fillRegx)try{const L=new RegExp(S.fillRegx),P=n.value.match(L);P&&P.length>0?O=P[0]:O=""}catch(L){console.error("快捷方式组件中的正则表达式无效:",S.fillRegx,L)}S.selectedText=O}const T=((N=E.components)==null?void 0:N.every(O=>O.required?O.default!==void 0&&O.default!==null&&O.default!=="":!0))||!E.components||E.components.length===0;["popup","ai-selected"].includes(b)&&T&&(E.autoSubmit=!0),l.value=E},handleCancelShortcut:()=>{l.value=void 0}}}function zbr(t,n=!1){const l=window.innerHeight-48-40,u=window.innerWidth-48-16,f=lr(u),h=lr(l),m=lr(0),b=lr(n),_=lr(!1),E=lr(!1);let S=0;const T=H=>{H?f.value=window.innerWidth-12:f.value=u},x=(H,V)=>{h.value=V,m.value=V-l},I=()=>{nu(()=>{h.value=window.innerHeight-48-40+m.value,b.value?f.value=window.innerWidth-12:f.value=window.innerWidth-48-16})},N=()=>{if(E.value){E.value=!1;return}t("click")},O=()=>{b.value=!b.value,t("minimize",b.value),b.value?f.value=window.innerWidth-12:f.value=window.innerWidth-60},L=(H,V)=>{f.value=H,h.value=V},P=()=>{_.value=!0},B=()=>{_.value=!1},G=()=>{S=Date.now(),E.value=!1},z=()=>{Date.now()-S>200&&(E.value=!0)};return ru(()=>{window.addEventListener("resize",I),I()}),NN(()=>{window.removeEventListener("resize",I)}),{nimbusWidth:48,nimbusHeight:48,nimbusLeft:f,nimbusTop:h,isMinimize:b,isHovering:_,isDragging:E,handleNimbusDragging:x,handleNimbusMinimize:T,handleClick:N,handleMinimize:O,handleDragging:L,handleMouseEnter:P,handleMouseLeave:B,handleMouseDown:G,handleMouseUp:z}}const Gbr={class:"nimbus-bkai-wrapper"},$br=["width","height","src"],Hbr=E0(Cs({name:"NimbusButton",__name:"nimbus",props:{isPanelShow:{type:Boolean},isMinimize:{type:Boolean},size:{default:"normal"}},emits:["click","minimize","update:isMinimize"],setup(t,{emit:n}){bz(H=>({"5eb53786":`${u.value.container}px`,"41a7fdd0":`${u.value.wrapper}px`,"2a593c76":`${u.value.mini.right}px`,bb6a6a86:`${u.value.mini.size}px`,"72d2d3ac":`${u.value.mini.fontSize}px`}));const i=t,o=n,l={small:{container:40,wrapper:32,img:24,mini:{size:14,fontSize:10,right:-4}},normal:{container:48,wrapper:40,img:32,mini:{size:16,fontSize:12,right:-6}},large:{container:56,wrapper:48,img:40,mini:{size:18,fontSize:14,right:-6}}},u=qa(()=>l[i.size]),f=lr(null),h=lr(null),{nimbusLeft:m,nimbusTop:b,isMinimize:_,handleClick:E,handleMinimize:S,handleDragging:T,handleMouseEnter:x,handleMouseLeave:I,handleMouseDown:N,handleMouseUp:O}=zbr(o,i.isMinimize);bl(_,H=>{o("update:isMinimize",H)});const L=qa(()=>_.value?jo("恢复默认大小"):jo("最小化,将缩成锚点")),{createTooltip:P,destroyAll:B}=jD({theme:"ai-blueking",delay:[0,0]}),G=()=>{nu(()=>{z()})},z=()=>{B(),f.value&&!_.value&&P(f.value,"Cmd + I",{placement:"left"}),h.value&&P(h.value,L.value,{placement:"top"})};return bl(()=>_.value,()=>{nu(()=>{z()})}),ru(()=>{nu(()=>{z()}),window.addEventListener("resize",G)}),qf(()=>{window.removeEventListener("resize",G)}),(H,V)=>(Vr(),wu(Vn(Zwe),{active:!H.isPanelShow,axis:"y",draggable:!0,h:u.value.container,parent:!0,"prevent-deactivation":!0,resizable:!1,w:u.value.container,x:Vn(m),y:Vn(b),onDragging:Vn(T)},{default:$u(()=>[Xr("div",{ref_key:"nimbusContainerRef",ref:f,class:Zc(["nimbus-container",{"is-minimize":Vn(_)}]),onClick:V[1]||(V[1]=(...$)=>Vn(E)&&Vn(E)(...$)),onMousedown:V[2]||(V[2]=(...$)=>Vn(N)&&Vn(N)(...$)),onMouseenter:V[3]||(V[3]=(...$)=>Vn(x)&&Vn(x)(...$)),onMouseleave:V[4]||(V[4]=(...$)=>Vn(I)&&Vn(I)(...$)),onMouseup:V[5]||(V[5]=(...$)=>Vn(O)&&Vn(O)(...$))},[Xr("div",Gbr,[Xr("img",{width:u.value.img,height:u.value.img,src:Vn(tEe),alt:"nimbus"},null,8,$br)]),Xr("i",{ref_key:"minimizeButtonRef",ref:h,class:Zc(["nimbus-mini bkai-icon",Vn(_)?"bkai-yinyong":"bkai-minus-line"]),onClick:V[0]||(V[0]=m6((...$)=>Vn(S)&&Vn(S)(...$),["stop"]))},null,2)],34)]),_:1},8,["active","h","w","x","y","onDragging"]))}}),[["__scopeId","data-v-9f57bde8"]]),Vbr={class:"content-wrapper"},Ybr={class:"chat-input-wrapper"},qbr={key:0,class:"bottom-tools-bar"},Wbr=Cs({__name:"ai-blueking-new",props:{extCls:{default:""},title:{default:""},helloText:{default:jo("你好,我是小鲸")},enablePopup:{type:Boolean,default:!0},shortcuts:{default:()=>[]},shortcutLimit:{default:3},shortcutFilter:{type:Function,default:void 0},url:{default:""},prompts:{default:()=>[]},hideNimbus:{type:Boolean,default:!1},requestOptions:{default:()=>({})},defaultMinimize:{type:Boolean,default:!1},teleportTo:{default:"body"},draggable:{type:Boolean,default:!0},defaultWidth:{default:void 0},defaultHeight:{default:void 0},defaultTop:{default:void 0},defaultLeft:{default:void 0},hideHeader:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1},nimbusSize:{default:"normal"},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},placeholder:{default:jo(`输入 "/" 唤出 Prompt
660
+ `)}`:JSON.stringify(q,null,2),B=()=>{var j,W,U;const q=(U=(W=(j=o.message)==null?void 0:j.property)==null?void 0:W.extra)==null?void 0:U.cite;return q&&f(q)?P(q):o.message.content},G=async()=>{try{await navigator.clipboard.writeText(B()),j2e({theme:"success",message:jo("复制成功")})}catch(q){console.error("复制失败:",q),j2e({theme:"error",message:jo("复制失败")})}},z=()=>{m(B())},H=()=>{i("regenerate",o.index)},V=q=>{const j=q.currentTarget;lbr(j,{onConfirm:()=>{i("delete",o.index)},onCancel:()=>{},placement:"top",appendTo:u.value})},$=()=>{_(),b(".message-tool .bkai-fuzhi",jo("复制")),b(".message-tool .bkai-zhongxinshengcheng",jo("重新生成")),b(".message-tool .bkai-yinyong",jo("引用")),b(".message-tool .bkai-bianji",jo("编辑")),b(".message-tool .bkai-shanchu",jo("删除"))};return ru(()=>{E(),setTimeout($,0)}),bl(()=>o.message,()=>{setTimeout($,0)},{deep:!0}),bl(l,q=>{q||setTimeout($,0)}),qf(()=>{ubr(),T()}),(q,j)=>{var W,U,J,X,Q,ee,ne,oe,re;return Vn(cre).includes(q.message.role)?xs("v-if",!0):(Vr(),oa("li",{key:0,ref_key:"messageMainRef",ref:u,class:Zc([q.message.role,"message-main"])},[(J=(U=(W=q.message)==null?void 0:W.property)==null?void 0:U.extra)!=null&&J.cite?(Vr(),oa("div",bbr,[f(q.message.property.extra.cite)?xs("v-if",!0):(Vr(),wu(Kft,{key:0,text:q.message.property.extra.cite},null,8,["text"]))])):xs("v-if",!0),Xr("div",{class:Zc(`message-content-container ${q.message.role}`)},[f((ee=(Q=(X=q.message)==null?void 0:X.property)==null?void 0:Q.extra)==null?void 0:ee.cite)?(Vr(),wu(Qar,{key:0,"cite-data":(re=(oe=(ne=q.message)==null?void 0:ne.property)==null?void 0:oe.extra)==null?void 0:re.cite},null,8,["cite-data"])):[Vn(ui).User,Vn(ui).Role].includes(q.message.role)?(Vr(),oa(Vc,{key:1},[l.value?(Vr(),wu(mbr,{key:0,"auto-focus":!0,"model-value":q.message.content,onCancel:j[0]||(j[0]=ue=>l.value=!1),onSubmit:L},null,8,["model-value"])):(Vr(),oa("p",vbr,[O.value&&o.showTime?(Vr(),oa("span",ybr,Hc(O.value),1)):xs("v-if",!0),Xr("span",{class:"markdown-content",innerHTML:N.value},null,8,_br)]))],64)):(Vr(),oa("p",wbr,[O.value&&o.showTime?(Vr(),oa("span",Ebr,Hc(O.value),1)):xs("v-if",!0),I.value?(Vr(),oa("i",{key:1,class:Zc(I.value)},null,2)):xs("v-if",!0),q.message.status===Vn(u1).Loading?(Vr(),oa("svg",Sbr,j[2]||(j[2]=[Xr("use",{"xlink:href":"#bkai-quanquan"},null,-1)]))):xs("v-if",!0),q.message.status===Vn(u1).Fail?(Vr(),oa("span",Tbr,Hc(q.message.content),1)):(Vr(),oa("span",{key:4,class:Zc({"markdown-content":!0,loading:q.message.status===Vn(u1).Loading}),innerHTML:N.value},null,10,Cbr))])),!l.value&&q.message.status!==Vn(u1).Loading?(Vr(),oa("div",xbr,[Xr("i",{class:"bkai-icon bkai-fuzhi",onClick:G}),Xr("i",{class:"bkai-icon bkai-yinyong",onClick:z}),q.message.role===Vn(ui).Ai?(Vr(),oa("i",{key:0,class:"bkai-icon bkai-zhongxinshengcheng",onClick:H})):xs("v-if",!0),q.message.role===Vn(ui).User?(Vr(),oa("i",{key:1,class:"bkai-icon bkai-bianji",onClick:j[1]||(j[1]=ue=>l.value=!0)})):xs("v-if",!0),Xr("i",{class:"bkai-icon bkai-shanchu",onClick:V})])):xs("v-if",!0)],2)],2))}}}),Abr=E0(Cs({__name:"message-list",props:{sessionContents:{},hasSessionContents:{type:Boolean},contentMarginBottom:{}},emits:["delete","regenerate","resend"],setup(t,{expose:n,emit:i}){bz(N=>({"0734f233":o.contentMarginBottom+"px"}));const o=t,l=i,u=lr(null);let f=0;const h=lr(!1),m=()=>{if(!u.value)return;h.value=!0;const{scrollTop:N,scrollHeight:O,clientHeight:L}=u.value;N+L>=O-50&&N>f&&(h.value=!1),f=N},b=()=>{u.value&&u.value.scrollTo({top:u.value.scrollHeight,behavior:"smooth"})},_=()=>{setTimeout(()=>{h.value||b()},100)},E=N=>{l("delete",N)},S=N=>{l("regenerate",N)},T=(N,O)=>{l("resend",N,O)};return n({messageWrapper:u,scrollToBottom:b,scrollToBottomIfNeeded:()=>{h.value||b()},userScrolling:h,resetUserScrolling:()=>{h.value=!1}}),ru(()=>{u.value&&(u.value.addEventListener("scroll",m),u.value.addEventListener("mermaid-rendered",_))}),qf(()=>{u.value&&(u.value.removeEventListener("scroll",m),u.value.removeEventListener("mermaid-rendered",_))}),(N,O)=>(Vr(),oa("div",{ref_key:"messageWrapper",ref:u,style:WT({opacity:N.hasSessionContents?1:0}),class:"message-wrapper"},[(Vr(!0),oa(Vc,null,p_(N.sessionContents,(L,P)=>(Vr(),oa("div",{key:L.id,class:"message-line-wrapper"},[Ri(kbr,{index:P,message:L,onDelete:E,onRegenerate:S,onResend:T},null,8,["index","message"])]))),128))],4))}}),[["__scopeId","data-v-f4c2e5a8"]]),Ibr={class:"popup-content"},Nbr=["src"],Obr={class:"shortcut-buttons"},Mbr=["onClick"],Rbr={class:"btn-text ai-blueking-tag-text"},Lbr=["onClick"],Dbr=E0(Cs({__name:"render-popup",props:{shortcuts:{default:()=>[]},conversationSettings:{},shortcutLimit:{default:3},shortcutFilter:{}},emits:["click","shortcut-click"],setup(t,{emit:n}){const i=t,{enablePopup:o}=lEe(),{isIconVisible:l,iconPosition:u,popupRef:f,clearSelection:h,selectedText:m}=g$(o),b=qa(()=>{var H;const z=i.shortcuts.length>0?i.shortcuts:((H=i.conversationSettings)==null?void 0:H.commands)||[];return typeof i.shortcutFilter=="function"?z.filter(V=>{var $;return!!(($=i.shortcutFilter)!=null&&$.call(i,Oc(V),m.value))}):z}),_=qa(()=>b.value.slice(0,i.shortcutLimit)),E=qa(()=>b.value.slice(i.shortcutLimit)),S=lr(!1);let T=null,x=null;const I=n,N=()=>{I("click"),l.value=!1},O=()=>{x&&(clearTimeout(x),x=null),S.value=!0},L=()=>{x&&(window.clearTimeout(x),x=null),x=window.setTimeout(()=>{T||(S.value=!1)},100)},P=()=>{T&&(clearTimeout(T),T=null)},B=()=>{T&&(window.clearTimeout(T),T=null),T=window.setTimeout(()=>{S.value=!1},100)},G=z=>{try{I("shortcut-click",{shortcut:z,source:"popup"}),h(),l.value=!1}catch(H){console.error("处理快捷按钮点击事件时出错:",H)}};return(z,H)=>Vn(l)?(Vr(),oa("div",{key:0,ref_key:"popupRef",ref:f,style:WT(Vn(u)),class:"ai-blueking-render-popup",onMousedown:H[0]||(H[0]=m6(()=>{},["prevent"]))},[Xr("div",Ibr,[xs(" AI图标按钮 "),Xr("div",{class:"popup-bkai-btn",onClick:N},[Xr("img",{class:"avatar",src:Vn(tEe),alt:"AI"},null,8,Nbr),Xr("span",null,Hc(Vn(jo)("问问小鲸")),1)]),xs(" 快捷按钮组 "),Xr("div",Obr,[(Vr(!0),oa(Vc,null,p_(_.value,(V,$)=>(Vr(),oa("div",{key:$,class:"shortcut-btn",onClick:q=>G(V)},[V.icon?(Vr(),oa("i",{key:0,class:Zc(V.icon)},null,2)):xs("v-if",!0),Xr("span",Rbr,Hc(V.name),1)],8,Mbr))),128)),xs(" 更多按钮 "),E.value.length>0?(Vr(),oa("div",{key:0,class:"shortcut-btn more-btn",onMouseenter:O,onMouseleave:L},[H[1]||(H[1]=Xr("span",{class:"btn-text"},"更多",-1)),H[2]||(H[2]=Xr("i",{class:"bkai-icon bkai-angle-down"},null,-1)),xs(" 更多菜单 "),S.value?(Vr(),oa("div",{key:0,class:"more-menu",onMouseenter:P,onMouseleave:B},[(Vr(!0),oa(Vc,null,p_(E.value,(V,$)=>(Vr(),oa("div",{key:$,class:"more-menu-item",onClick:q=>G(V)},[V.icon?(Vr(),oa("i",{key:0,class:Zc(V.icon)},null,2)):xs("v-if",!0),Xr("span",null,Hc(V.name),1)],8,Lbr))),128))],32)):xs("v-if",!0)],32)):xs("v-if",!0)])])],36)):xs("v-if",!0)}}),[["__scopeId","data-v-da87f3ae"]]);function Pbr(t){const{greetingMaxHeight:n}=t,i=lr(0),o=lr();return{greetingTextHeight:i,greetingSectionRef:o,updateGreetingTextHeight:()=>{nu(()=>{o.value&&(i.value=o.value.getGreetingHeight())})},getInputContainerStyle:f=>{if(!f){const m=i.value,b=Math.min(m-22,n-22);return{top:`${188+Math.max(0,b)}px`}}return{}}}}function Bbr(){const t=new dgt({html:!0,breaks:!0,highlight:(o,l)=>{if(l&&gre.getLanguage(l))try{return gre.highlight(o,{language:l}).value}catch{}return""}}).use(_ct).use(Pyt).use(Byt),n=o=>{if(!o)return"";try{const l=t.render(o);return CC.sanitize(l,{USE_PROFILES:{html:!0},FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/\s*<\/p>\s*$/,"</p>")}catch(l){return console.warn("Markdown rendering failed:",l),o.replace(/</g,"&lt;").replace(/>/g,"&gt;")}};return{renderMarkdown:n,createMarkdownRenderer:o=>qa(()=>n(o.value))}}function Fbr(){const t=lr();return{messageListRef:t,scrollMainToBottom:()=>{var l;(l=t.value)==null||l.scrollToBottom()},scrollToBottomIfNeeded:()=>{var l;(l=t.value)==null||l.scrollToBottomIfNeeded()},resetUserScrolling:()=>{var l;(l=t.value)==null||l.resetUserScrolling()}}}function jbr(t={}){const n=t.initWidth||400,i=t.minWidth||400,o=t.minHeight||400,l=t.maxWidthPercent||40,u=t.miniHeight||800,f=t.miniPadding!==void 0?t.miniPadding:0,h=lr(t.defaultLeft!==void 0?t.defaultLeft:window.innerWidth-n),m=lr(t.defaultTop!==void 0?t.defaultTop:0),b=lr(t.defaultHeight!==void 0?t.defaultHeight:window.innerHeight-(t.defaultTop!==void 0?t.defaultTop:0)),_=lr(n),E=lr(m.value),S=lr(h.value),T=lr(_.value),x=lr(b.value),I=lr(Math.max(window.innerWidth*(l/100),T.value)),N=lr(!1),O=lr(0),L=(z,H)=>{S.value=z,E.value=H,O.value=z-(window.innerWidth-T.value)},P=(z,H,V,$)=>{S.value=z,E.value=H,T.value=Math.min(V,I.value),x.value=$},B=()=>{I.value=Math.max(window.innerWidth*(l/100),T.value),nu(()=>{if(N.value)S.value=window.innerWidth-T.value-f,E.value=window.innerHeight-u-f;else{const z=window.innerWidth-T.value-O.value;S.value=Math.max(0,z),setTimeout(()=>{x.value=window.innerHeight-E.value},0)}T.value>I.value&&(T.value=I.value)})},G=()=>{N.value?(E.value=m.value,nu(()=>{x.value=b.value,S.value=h.value,T.value=_.value})):(E.value=window.innerHeight-u-f,S.value=h.value-f,T.value=n,x.value=u),N.value=!N.value};return ru(()=>{window.addEventListener("resize",B)}),qf(()=>{window.removeEventListener("resize",B)}),{minWidth:i,minHeight:o,maxWidth:I,top:E,left:S,width:T,height:x,isCompressionHeight:N,handleDragging:L,handleResizing:P,toggleCompression:G}}function Ubr(t){const{selectedText:n,isShow:i,handleShow:o}=t,l=lr();return{currentShortcut:l,handleShortcutClick:h=>{var I,N;const{shortcut:m,source:b="main"}=h,_=m;let E;try{E=JSON.parse(JSON.stringify(_))}catch(O){console.warn("Failed to deep clone shortcut, using shallow copy instead:",O),E={..._,components:_.components?[..._.components]:_.components}}!i.value&&o();const S=(I=E.components)==null?void 0:I.find(O=>O.fillBack);if(S){let O=n.value;if(S.fillRegx)try{const L=new RegExp(S.fillRegx),P=n.value.match(L);P&&P.length>0?O=P[0]:O=""}catch(L){console.error("快捷方式组件中的正则表达式无效:",S.fillRegx,L)}S.selectedText=O}const T=((N=E.components)==null?void 0:N.every(O=>O.required?O.default!==void 0&&O.default!==null&&O.default!==""||O.selectedText:!0))||!E.components||E.components.length===0;["popup","ai-selected"].includes(b)&&T&&(E.autoSubmit=!0),l.value=E},handleCancelShortcut:()=>{l.value=void 0}}}function zbr(t,n=!1){const l=window.innerHeight-48-40,u=window.innerWidth-48-16,f=lr(u),h=lr(l),m=lr(0),b=lr(n),_=lr(!1),E=lr(!1);let S=0;const T=H=>{H?f.value=window.innerWidth-12:f.value=u},x=(H,V)=>{h.value=V,m.value=V-l},I=()=>{nu(()=>{h.value=window.innerHeight-48-40+m.value,b.value?f.value=window.innerWidth-12:f.value=window.innerWidth-48-16})},N=()=>{if(E.value){E.value=!1;return}t("click")},O=()=>{b.value=!b.value,t("minimize",b.value),b.value?f.value=window.innerWidth-12:f.value=window.innerWidth-60},L=(H,V)=>{f.value=H,h.value=V},P=()=>{_.value=!0},B=()=>{_.value=!1},G=()=>{S=Date.now(),E.value=!1},z=()=>{Date.now()-S>200&&(E.value=!0)};return ru(()=>{window.addEventListener("resize",I),I()}),NN(()=>{window.removeEventListener("resize",I)}),{nimbusWidth:48,nimbusHeight:48,nimbusLeft:f,nimbusTop:h,isMinimize:b,isHovering:_,isDragging:E,handleNimbusDragging:x,handleNimbusMinimize:T,handleClick:N,handleMinimize:O,handleDragging:L,handleMouseEnter:P,handleMouseLeave:B,handleMouseDown:G,handleMouseUp:z}}const Gbr={class:"nimbus-bkai-wrapper"},$br=["width","height","src"],Hbr=E0(Cs({name:"NimbusButton",__name:"nimbus",props:{isPanelShow:{type:Boolean},isMinimize:{type:Boolean},size:{default:"normal"}},emits:["click","minimize","update:isMinimize"],setup(t,{emit:n}){bz(H=>({"5eb53786":`${u.value.container}px`,"41a7fdd0":`${u.value.wrapper}px`,"2a593c76":`${u.value.mini.right}px`,bb6a6a86:`${u.value.mini.size}px`,"72d2d3ac":`${u.value.mini.fontSize}px`}));const i=t,o=n,l={small:{container:40,wrapper:32,img:24,mini:{size:14,fontSize:10,right:-4}},normal:{container:48,wrapper:40,img:32,mini:{size:16,fontSize:12,right:-6}},large:{container:56,wrapper:48,img:40,mini:{size:18,fontSize:14,right:-6}}},u=qa(()=>l[i.size]),f=lr(null),h=lr(null),{nimbusLeft:m,nimbusTop:b,isMinimize:_,handleClick:E,handleMinimize:S,handleDragging:T,handleMouseEnter:x,handleMouseLeave:I,handleMouseDown:N,handleMouseUp:O}=zbr(o,i.isMinimize);bl(_,H=>{o("update:isMinimize",H)});const L=qa(()=>_.value?jo("恢复默认大小"):jo("最小化,将缩成锚点")),{createTooltip:P,destroyAll:B}=jD({theme:"ai-blueking",delay:[0,0]}),G=()=>{nu(()=>{z()})},z=()=>{B(),f.value&&!_.value&&P(f.value,"Cmd + I",{placement:"left"}),h.value&&P(h.value,L.value,{placement:"top"})};return bl(()=>_.value,()=>{nu(()=>{z()})}),ru(()=>{nu(()=>{z()}),window.addEventListener("resize",G)}),qf(()=>{window.removeEventListener("resize",G)}),(H,V)=>(Vr(),wu(Vn(Zwe),{active:!H.isPanelShow,axis:"y",draggable:!0,h:u.value.container,parent:!0,"prevent-deactivation":!0,resizable:!1,w:u.value.container,x:Vn(m),y:Vn(b),onDragging:Vn(T)},{default:$u(()=>[Xr("div",{ref_key:"nimbusContainerRef",ref:f,class:Zc(["nimbus-container",{"is-minimize":Vn(_)}]),onClick:V[1]||(V[1]=(...$)=>Vn(E)&&Vn(E)(...$)),onMousedown:V[2]||(V[2]=(...$)=>Vn(N)&&Vn(N)(...$)),onMouseenter:V[3]||(V[3]=(...$)=>Vn(x)&&Vn(x)(...$)),onMouseleave:V[4]||(V[4]=(...$)=>Vn(I)&&Vn(I)(...$)),onMouseup:V[5]||(V[5]=(...$)=>Vn(O)&&Vn(O)(...$))},[Xr("div",Gbr,[Xr("img",{width:u.value.img,height:u.value.img,src:Vn(tEe),alt:"nimbus"},null,8,$br)]),Xr("i",{ref_key:"minimizeButtonRef",ref:h,class:Zc(["nimbus-mini bkai-icon",Vn(_)?"bkai-yinyong":"bkai-minus-line"]),onClick:V[0]||(V[0]=m6((...$)=>Vn(S)&&Vn(S)(...$),["stop"]))},null,2)],34)]),_:1},8,["active","h","w","x","y","onDragging"]))}}),[["__scopeId","data-v-9f57bde8"]]),Vbr={class:"content-wrapper"},Ybr={class:"chat-input-wrapper"},qbr={key:0,class:"bottom-tools-bar"},Wbr=Cs({__name:"ai-blueking-new",props:{extCls:{default:""},title:{default:""},helloText:{default:jo("你好,我是小鲸")},enablePopup:{type:Boolean,default:!0},shortcuts:{default:()=>[]},shortcutLimit:{default:3},shortcutFilter:{type:Function,default:void 0},url:{default:""},prompts:{default:()=>[]},hideNimbus:{type:Boolean,default:!1},requestOptions:{default:()=>({})},defaultMinimize:{type:Boolean,default:!1},teleportTo:{default:"body"},draggable:{type:Boolean,default:!0},defaultWidth:{default:void 0},defaultHeight:{default:void 0},defaultTop:{default:void 0},defaultLeft:{default:void 0},hideHeader:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1},nimbusSize:{default:"normal"},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},placeholder:{default:jo(`输入 "/" 唤出 Prompt
661
661
  通过 Shift + Enter 进行换行输入`)},miniPadding:{default:0},initialSessionCode:{default:""},autoSwitchToInitialSession:{type:Boolean,default:!1}},emits:["shortcut-click","close","show","stop","receive-start","receive-text","receive-end","send-message","session-initialized"],setup(t,{expose:n,emit:i}){const o=t,l=i;d6(Jft,o.enablePopup);const u=lr(),f=lr(),h=lr(),m=lr(!1),b=lr(o.defaultMinimize),_=lr(""),E=lr(!1),S=lr(!1);let T=null;const x=lr(""),I=lr([]),N=lr(window.innerHeight),O=lr(68),L=uJn(),{renderMarkdown:P}=Bbr(),{selectedText:B,citeText:G,setCiteText:z}=g$(o.enablePopup),{messageListRef:H,scrollMainToBottom:V,scrollToBottomIfNeeded:$,resetUserScrolling:q}=Fbr(),{currentShortcut:j,handleShortcutClick:W,handleCancelShortcut:U}=Ubr({selectedText:B,isShow:m,handleShow:()=>{$n()}});aVn(),_Hn();const{minWidth:J,minHeight:X,maxWidth:Q,top:ee,left:ne,width:oe,height:re,isCompressionHeight:ue,handleDragging:ve,handleResizing:ie,toggleCompression:Ne}=jbr({maxWidthPercent:80,initWidth:o.defaultWidth,defaultHeight:o.defaultHeight,defaultTop:o.defaultTop,defaultLeft:o.defaultLeft,miniPadding:o.miniPadding}),Se=qa(()=>N.value-367),{greetingSectionRef:Te,updateGreetingTextHeight:Me,getInputContainerStyle:Re}=Pbr({greetingMaxHeight:Se.value}),_e=qa(()=>Re(wt.value)),we=qa(()=>{const pi=B.value?100:70;return O.value+40+pi}),me=qa(()=>aJn(o.url)),{currentSession:ce,sessionContents:pe,isLoadingSessionContents:Oe,plusSessionContent:ke,plusSessionApi:ft,chat:Pe,stopChat:tt,setCurrentSession:ht,setCurrentSessionChain:Ct,currentSessionLoading:je,reGenerateChat:Tt,reSendChat:Ge,deleteChat:ze,updateRequestOptions:Ye,getAgentInfoApi:Ke,getSessionsApi:Fe,getSessionContentsApi:Be,modifySessionApi:ut,deleteSessionApi:st,renameSessionApi:vt,setSessionContents:Xt,handleCompleteRole:qe}=iVn({handleStart:()=>{$(),l("receive-start")},handleText:()=>{$(),l("receive-text")},handleEnd:()=>{$(),l("receive-end")},requestOptions:{url:me.value,...o.requestOptions},otherOptions:{hideReferenceDocIcon:!0}});L.registerSdkMethods({setCurrentSession:ht,setCurrentSessionChain:Ct,setSessionContents:Xt,modifySessionApi:ut,deleteSessionApi:st,renameSessionApi:vt,getSessionContentsApi:Be,getSessionsApi:Fe,getAgentInfoApi:Ke,plusSessionApi:ft,handleCompleteRole:qe});const Ze=qa(()=>[...o.prompts,...I.value]),wt=qa(()=>pe.value.filter(Zr=>!cre.includes(Zr.role)).length>0),Lt=qa(()=>{var Zr,pi;return((pi=(Zr=L.agentInfo.value)==null?void 0:Zr.conversationSettings)==null?void 0:pi.enableChatSession)??!0}),Yt=qa(()=>x.value||jo("输入你的问题,助你高效的完成工作")),Fn=async()=>{if(T){await T;return}S.value&&!T||(T=(async()=>{try{const{conversationSettings:Zr}=await L.initSession();x.value=(Zr==null?void 0:Zr.openingRemark)||"",I.value=(Zr==null?void 0:Zr.predefinedQuestions)||[],S.value=!0,l("session-initialized",{openingRemark:x.value,predefinedQuestions:I.value})}finally{T=null,Me()}})(),await T)};bl(()=>me.value,(Zr,pi)=>{Zr!==pi&&Zr&&(Ye({url:Zr,...o.requestOptions}),S.value=!1,T=null,Fn())}),bl(()=>o.requestOptions,Zr=>{Ye({url:me.value,...Zr})},{deep:!0}),bl(pe,()=>{nu($)},{deep:!0}),bl(()=>m.value,Zr=>{Zr&&nu(()=>{var pi;(pi=f.value)==null||pi.focus()})});const gn=async Zr=>{if(!Zr)return;S.value||await Fn();const pi=L.sessionList.value.find(Qo=>Qo.sessionCode===Zr);return pi?(await L.switchSessionWithContents(pi),!0):!1},Kn=()=>{N.value=window.innerHeight};ru(async()=>{window.addEventListener("resize",Kn),me.value&&!o.defaultMinimize&&(await Fn(),o.initialSessionCode&&o.autoSwitchToInitialSession&&await gn(o.initialSessionCode)),dVn()}),qf(()=>{window.removeEventListener("resize",Kn)});const Yr=Zr=>{l("shortcut-click",{shortcut:Zr.shortcut,source:Zr.source}),W(Zr)},Fr=Zr=>{const pi={...Zr.shortcut,_source:Zr.source};l("shortcut-click",{shortcut:pi,source:Zr.source}),W({shortcut:pi,source:Zr.source})},ri=Zr=>{O.value=Zr},vi=()=>{m.value=!1,l("close")},$n=async Zr=>{m.value=!0,l("show"),S.value||await Fn(),Zr&&await gn(Zr),Me()},fi=()=>{$n()},zr=()=>{V()},ea=async Zr=>{var ds,Nl,Bc,hs,ps,ss,Ti;if(!Zr.trim())return;!S.value&&me.value&&await Fn(),q();const pi=Yft(Zr);await ke((ds=ce.value)==null?void 0:ds.sessionCode,{role:ui.User,content:pi,sessionCode:(Nl=ce.value)==null?void 0:Nl.sessionCode,property:{extra:{cite:G.value,...typeof((Bc=o.requestOptions)==null?void 0:Bc.context)=="function"?(hs=o.requestOptions)==null?void 0:hs.context():(ps=o.requestOptions)==null?void 0:ps.context}}});const Qo=pe.value.filter(qt=>!cre.includes(qt.role)),Ds=Qo.length===1&&Qo[0].role===ui.User;if(Pe({sessionCode:(ss=ce.value)==null?void 0:ss.sessionCode,...o.requestOptions}),Ds&&((Ti=ce.value)!=null&&Ti.sessionCode))try{const qt=await vt(ce.value.sessionCode);qt!=null&&qt.sessionName&&await L.getSessionList()}catch(qt){console.error("自动命名会话失败:",qt)}l("send-message",pi),_.value="",z("")},Hi=Zr=>{const pi=pe.value[Zr];pi&&Tt(pi.sessionCode,pi,Zr)},ta=(Zr,{message:pi})=>{const Qo=pe.value[Zr];Qo&&(Qo.content=Yft(pi),Ge(Qo.sessionCode,Qo,Zr))},Ni=()=>{var Zr;(Zr=ce==null?void 0:ce.value)!=null&&Zr.sessionCode&&(tt(ce.value.sessionCode),l("stop"))},Oi=async Zr=>{var Nl,Bc,hs,ps;const{shortcut:pi,formData:Qo,citeFormData:Ds}=Zr;U(),!m.value&&$n(),je.value&&Ni(),!S.value&&me.value&&await Fn();const ds=Ds||Qo;await ke((Nl=ce.value)==null?void 0:Nl.sessionCode,{role:ui.User,content:pi.name,sessionCode:(Bc=ce.value)==null?void 0:Bc.sessionCode,property:{extra:{cite:{type:"structured",title:pi.name,data:ds.map(ss=>({key:ss.__label,value:ss.__value}))},command:pi.id,context:[...Qo,...Array.isArray((hs=o.requestOptions)==null?void 0:hs.context)?o.requestOptions.context:[]]}}}),Pe({sessionCode:(ps=ce.value)==null?void 0:ps.sessionCode,...o.requestOptions}),l("send-message",pi.name)},Ya=Zr=>{var pi;ze(Zr,(pi=ce.value)==null?void 0:pi.sessionCode)},Ta=async()=>{var Zr;tt((Zr=ce.value)==null?void 0:Zr.sessionCode),_.value="",z(""),Xt([])};return n({sessionContents:pe,handleShow:$n,handleClose:vi,handleStop:Ni,handleSendMessage:ea,handleShortcutClick:W,handleDelete:Ya,handleRegenerate:Hi,handleResend:ta,updateRequestOptions:Ye,currentSessionLoading:je,isLoadingSessionContents:Oe,updateGreetingTextHeight:Me,setCurrentSession:ht,focusInput:()=>{var Zr;(Zr=f.value)==null||Zr.focus()},addNewSession:Zr=>L.addNewSession(Zr),updateSessionName:async(Zr,pi)=>L.updateSession(Zr,{sessionName:pi}),switchToSession:gn,getSessionList:L.getSessionList,sessionList:L.sessionList,enableChatSession:Lt}),(Zr,pi)=>{var Qo;return Vr(),wu(mXe,{to:Zr.teleportTo},[Xr("div",{class:Zc(["ai-blueking-wrapper",o.extCls??""])},[m.value?(Vr(),wu(Vn(Zwe),{key:0,ref_key:"resizeWrapper",ref:u,active:m.value,draggable:o.draggable,h:Vn(re),"max-width":Vn(Q),"min-height":Vn(X),"min-width":Vn(J),parent:!0,"prevent-deactivation":!0,resizable:!0,w:Vn(oe),x:Vn(ne),y:Vn(ee),"class-name":"ai-blueking-container-wrapper","drag-handle":".drag-handle",onDragging:Vn(ve),onResizing:Vn(ie)},{default:$u(()=>[Xr("div",{ref_key:"rootNode",ref:h,class:"ai-blueking-container"},[Ri(uXn,{show:Vn(Oe)},null,8,["show"]),xs(" 顶部栏 "),o.hideHeader?xs("v-if",!0):(Vr(),wu(IJn,{key:0,title:o.title,"is-compression-height":Vn(ue),draggable:o.draggable,"show-history-icon":o.showHistoryIcon,"show-new-chat-icon":o.showNewChatIcon,"enable-chat-session":Lt.value,onClose:vi,onToggleCompression:Vn(Ne),onNewChat:Ta},null,8,["title","is-compression-height","draggable","show-history-icon","show-new-chat-icon","enable-chat-session","onToggleCompression"])),Xr("div",Vbr,[xs(" 主要内容区域 "),Xr("div",{class:Zc(`main-content ${wt.value?"chat-layout":"greeting-layout"}`)},[Ri(cXn,{ref_key:"greetingSectionRef",ref:Te,title:o.helloText,"greeting-text":Yt.value,"has-session-contents":wt.value,"render-markdown":Vn(P),"greeting-max-height":Se.value},null,8,["title","greeting-text","has-session-contents","render-markdown","greeting-max-height"]),Ri(Abr,{ref_key:"messageListRef",ref:H,"session-contents":Vn(pe),"has-session-contents":wt.value,"content-margin-bottom":we.value,onDelete:Ya,onRegenerate:Hi,onResend:ta},null,8,["session-contents","has-session-contents","content-margin-bottom"]),Ri(Vn(Qwe).div,{transition:{duration:.5,ease:[.33,1,.68,1],type:"tween",layoutId:"chat-input"},class:Zc(`chat-input-container ${wt.value?"bottom":"centered"}`),style:WT(wt.value?void 0:_e.value),layout:""},{default:$u(()=>{var Ds;return[Xr("div",Ybr,[Vn(je)||E.value?(Vr(),oa("div",qbr,[Vn(je)?(Vr(),wu(Wft,{key:0,color:"#EA3636",icon:"bkaitingzhishengcheng",text:Vn(jo)("停止生成"),onClick:Ni},null,8,["text"])):xs("v-if",!0),E.value?(Vr(),wu(Wft,{key:1,color:"#979BA5",icon:"bkaijiantou",text:Vn(jo)("返回底部"),onClick:zr},null,8,["text"])):xs("v-if",!0)])):xs("v-if",!0),Vn(j)?(Vr(),wu(iXn,{key:Vn(j).id,shortcut:Vn(j),"root-node":h.value,onCancel:Vn(U),onSubmit:Oi},null,8,["shortcut","root-node","onCancel"])):(Vr(),wu(XJn,{key:2,class:Zc(wt.value?"chat-layout":"greeting-layout"),modelValue:_.value,"onUpdate:modelValue":pi[0]||(pi[0]=ds=>_.value=ds),loading:Vn(je)||!1,prompts:Ze.value,shortcuts:o.shortcuts,"shortcut-filter":o.shortcutFilter,"conversation-settings":(Ds=Vn(L).agentInfo.value)==null?void 0:Ds.conversationSettings,disabled:o.disabledInput,onHeightChange:ri,onSend:ea,onShortcutClick:Fr,onStop:Ni},null,8,["class","modelValue","loading","prompts","shortcuts","shortcut-filter","conversation-settings","disabled"]))])]}),_:1},8,["class","style"])],2)])],512)]),_:1},8,["active","draggable","h","max-width","min-height","min-width","w","x","y","onDragging","onResizing"])):xs("v-if",!0),o.hideNimbus?xs("v-if",!0):(Vr(),wu(Hbr,{key:1,"is-panel-show":m.value,"onUpdate:isPanelShow":pi[1]||(pi[1]=Ds=>m.value=Ds),"is-minimize":b.value,"onUpdate:isMinimize":pi[2]||(pi[2]=Ds=>b.value=Ds),"default-minimize":Zr.defaultMinimize,size:o.nimbusSize,onClick:fi},null,8,["is-panel-show","is-minimize","default-minimize","size"])),Ri(Dbr,{shortcuts:o.shortcuts,"conversation-settings":(Qo=Vn(L).agentInfo.value)==null?void 0:Qo.conversationSettings,"shortcut-limit":o.shortcutLimit,"shortcut-filter":o.shortcutFilter,onClick:pi[3]||(pi[3]=Ds=>m.value=!0),onShortcutClick:Yr},null,8,["shortcuts","conversation-settings","shortcut-limit","shortcut-filter"])],2)],8,["to"])}}}),Kbr=E0(Wbr,[["__scopeId","data-v-ea251cd6"]]);(function(){var t='<svg xmlns="http://www.w3.org/2000/svg" data-name="bkai" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="bkai-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="bkai-angle-down" viewBox="0 0 32 32"><path fill="#63656E" d="M9 14l1.5-1.5L16 18l5.5-5.5L23 14l-7 7z"/></symbol><symbol id="bkai-close-circle-shape" viewBox="0 0 64 64"><path fill="#737987" d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm11.3 36.5l-2.8 2.8-8.5-8.5-8.5 8.5-2.8-2.8 8.5-8.5-8.5-8.5 2.8-2.8 8.5 8.5 8.5-8.5 2.8 2.8-8.5 8.5 8.5 8.5z"/></symbol><symbol id="bkai-close-line-2" viewBox="0 0 64 64"><path d="M52 16.2L47.8 12 32 27.8 16.2 12 12 16.2 27.8 32 12 47.8l4.2 4.2L32 36.2 47.8 52l4.2-4.2L36.2 32z"/></symbol><symbol id="bkai-minus-line" viewBox="0 0 1024 1024"><path d="M128 448h768v128H128V448z" class="st0"/></symbol><symbol id="bkai-visible1" viewBox="0 0 1024 1024"><path d="M512 384a128 128 0 10128 128 128 128 0 00-128-128zm0 192a64 64 0 1164-64 64 64 0 01-64 64z"/><path d="M512 240C264.64 240 64 512 64 512s200.64 272 448 272 448-272 448-272-200.64-272-448-272zm0 480c-160 0-304-139.04-364.96-208C208 442.88 352 304 512 304s304 139.04 364.96 208C816 581.12 672 720 512 720z"/></symbol><symbol id="bkai-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="bkai-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="bkai-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="bkai-shipin-2" viewBox="0 0 1024 1024"><path fill="#FF9C01" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM433.067 486.16v161.072c0 44.295 29.53 60.402 67.113 36.242l107.381-71.14c36.242-26.846 36.242-67.114 0-91.275L500.18 449.92c-36.241-24.16-67.113-8.053-67.113 36.241zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-tupian-2" viewBox="0 0 1024 1024"><path fill="#699DF4" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm-18.4 512l-112 144-80-96-112 144h448l-144-192zM480 448c-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64zm122-310.2V326h188.2L602 137.8z"/></symbol><symbol id="bkai-wenben-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="bkai-yasuobao-2" viewBox="0 0 1024 1024"><path fill="#63656E" fill-rule="evenodd" d="M623.999 64c26.5 0 63.499 15.5 82 34l156 156c18.5 18.5 34.001 55.5 34.001 82v576.001c0 26.5-21.5 47.999-48.002 47.999H176c-26.5 0-48-21.5-48-47.999V112c0-26.5 21.5-48 48-48h447.999zM296 456h-64v222h128V518h-64v-62zm16 110v64h-32v-64h32zm48-174h-64v64h64v-64zm-64-64h-64v64h64v-64zm64-64h-64v64h64v-64zm280-132v188h188c-3-8.5-7.501-17-11.001-20.5L660.499 143c-3.5-3.5-12-8-20.499-11zm-344 68h-64v64h64v-64zm64-64h-64v64h64v-64z"/></symbol><symbol id="bkai-yinle-2" viewBox="0 0 1024 1024"><path fill="#F8B4B4" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm-6.312 385.187l-133.876 40.95c-16.187 4.637-29.4 21.525-29.4 37.712v141.225s-9.712-6.562-31.324-3.5c-31.763 4.55-57.488 28.875-57.488 54.425 0 25.55 25.725 41.213 57.488 36.663 31.762-4.463 55.037-28.088 55.037-53.638V582.449c0-11.375 13.65-16.187 13.65-16.187l118.387-37.1s13.126-4.375 13.126 7.7v96.862s-12.076-6.912-33.688-4.287c-31.762 3.85-57.488 27.65-57.488 53.2 0 25.55 25.726 41.737 57.488 37.887 31.762-3.85 57.488-27.65 57.488-53.2V470.187c0-16.275-13.126-25.638-29.4-21zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-doc-3" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="bkai-excel-2" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="bkai-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-pdf-2" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="bkai-ppt-2" viewBox="0 0 1024 1024"><path fill="#FF5656" fill-rule="evenodd" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM540.487 323.829H199.154v341.333h85.333V579.83h256v-256zm-85.333 85.333v85.333H284.487v-85.333h170.667z"/></symbol><symbol id="bkai-sousuo" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M478.72 128c193.6 0 350.72 157.12 350.72 350.72 0 82.88-28.8 159.04-76.8 218.88l131.84 131.84c15.36 15.36 15.36 40 0 55.04s-40 15.36-55.04 0L697.6 752.64c-60.16 48-136 76.8-218.88 76.8-193.6 0-350.72-157.12-350.72-350.72S285.12 128 478.72 128zm0 78.4c-150.4 0-272.32 121.92-272.32 272.32s121.92 272.32 272.32 272.32c58.56 0 114.24-18.56 160.32-52.16l9.6-7.36 23.68-19.2 19.2-23.68c35.84-44.8 56.64-99.52 59.2-157.44l.32-12.48c0-150.4-121.92-272.32-272.32-272.32z" clip-rule="evenodd"/></symbol><symbol id="bkai-chouti" viewBox="0 0 1024 1024"><path d="M864 160c35.346 0 64 28.654 64 64v576c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V224c0-35.346 28.654-64 64-64zm-320 64H160v576h384V224zm320 0H608v576h256V224zm-64 224v64H672v-64h128zm0-128v64H672v-64h128z"/></symbol><symbol id="bkai-liaotianchuang" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M832 160c35.346 0 64 28.654 64 64v569.6c0 38.88-28.654 70.4-64 70.4H192c-35.346 0-64-31.52-64-70.4V224c0-35.346 28.654-64 64-64h640zm0 192H192v448h640V352zM704 224c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32zm192 0c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z"/></symbol><symbol id="bkai-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.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 01-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 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.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.09 7.757.264A280.989 280.989 0 00793.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"/></symbol><symbol id="bkai-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="bkai-published-zhongzhi" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 96c229.75 0 416 186.25 416 416S741.75 928 512 928 96 741.75 96 512 282.25 96 512 96zm0 64c-194.404 0-352 157.596-352 352s157.596 352 352 352 352-157.596 352-352-157.596-352-352-352zm16 208c70.692 0 128 57.308 128 128v32c0 70.692-57.308 128-128 128h-32c-70.692 0-128-57.308-128-128v-32c0-70.692 57.308-128 128-128h32z"/></symbol><symbol id="bkai-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" 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" clip-rule="evenodd"/></symbol><symbol id="bkai-diancai" viewBox="0 0 1024 1024"><path d="M192 575.003V128h-64v447.003h64zM448 896c44.402-6.635 76.402-17.301 96-32 42.667-32 64-74.667 64-128v-96h235.517a64 64 0 0017.328-2.39c34.026-9.57 53.851-44.912 44.282-78.938l-108-384C789.364 147.07 764.19 128 735.517 128H288v448l160 320zm35.008-73.024L352 560.96V192h383.517l108 384H544v160c0 33.189-11.849 56.887-38.4 76.8-4.222 3.167-11.054 6.421-20.402 9.518l-2.19.658z"/></symbol><symbol id="bkai-diancaishixin" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 575.003V128h-64v447.003h64zM448 896c44.402-6.635 76.402-17.301 96-32 42.667-32 64-74.667 64-128v-96h235.517a64 64 0 0017.328-2.39c34.026-9.57 53.851-44.912 44.282-78.938l-108-384C789.364 147.07 764.19 128 735.517 128H288v448l160 320z"/></symbol><symbol id="bkai-dianzan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 448.997V896h-64V448.997h64zM448 128c44.402 6.635 76.402 17.301 96 32 42.667 32 64 74.667 64 128v96h235.517a64 64 0 0117.328 2.39c34.026 9.57 53.851 44.912 44.282 78.938l-108 384C789.364 876.93 764.19 896 735.517 896H288V448l160-320zm35.008 73.024L352 463.04V832h383.517l108-384H544V288c0-33.189-11.849-56.887-38.4-76.8-4.222-3.167-11.054-6.421-20.402-9.518l-2.19-.658z"/></symbol><symbol id="bkai-dianzanshixin" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 448.997V896h-64V448.997h64zm96-.997v448h471.758c14.337 0 26.924-9.535 30.805-23.336l126-448c4.785-17.013-5.128-34.684-22.14-39.469a32 32 0 00-8.665-1.195H608v-96c0-53.333-21.333-96-64-128-19.598-14.699-51.598-25.365-96-32L288 448z"/></symbol><symbol id="bkai-dingyue" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M821.428 128C862.625 128 896 162.015 896 204.003v661.17C896 882.182 882.963 896 866.276 896c-7.693 0-14.609-2.936-19.83-7.715l-.508-.257-300.374-157.852h-.521l-301.416 157.32-3.082 1.13c-5.16 4.294-11.74 6.843-18.82 6.843-16.688 0-29.725-13.82-29.725-30.295V204.003C192 162.015 225.375 128 266.572 128h554.856zm0 60.59H266.572c-8.344 0-15.123 6.909-15.123 15.413l-.025 610.781 269.11-140.414c1.042-.532 1.564-1.063 2.607-1.063 13.558-6.91 30.767-6.91 44.847.531l2.086 1.063 266.47 139.755.007-610.653c0-8.504-6.78-15.413-15.123-15.413zm-95.431 294.975c16.166 0 29.724 13.82 29.724 30.295l-.009 30.268 29.734.027c16.687 0 29.724 13.819 29.724 30.295s-13.037 30.295-29.724 30.295l-29.734-.009.01 30.835c0 16.476-13.559 30.295-29.725 30.295-16.687 0-29.724-13.819-29.724-30.295l-.017-30.835-30.23.009c-16.687 0-29.724-13.819-29.724-30.295s13.559-30.295 29.725-30.295l30.229-.027.017-30.268c0-17.007 13.558-30.295 29.724-30.295zM663.419 231.11c16.688 0 29.725 13.818 29.725 30.294 0 17.008-13.037 30.295-29.725 30.295H424.581c-16.688 0-29.725-13.818-29.725-30.295 0-17.007 13.559-30.294 29.725-30.294h238.838z"/></symbol><symbol id="bkai-fujian" viewBox="0 0 1024 1024"><path d="M470.82 362.7L278.013 549.08c-66.508 64.292-66.483 168.527.058 232.85 66.434 64.22 174.442 64.281 240.881.058l241.055-233.02c13.307-12.862 34.88-12.862 48.188 0 13.307 12.864 13.307 33.719 0 46.581L567.138 828.57c-93.066 89.961-244.221 89.874-337.255-.058-93.15-90.044-93.186-235.988-.06-326.01l337.433-326.182.031-.03c66.643-64.347 174.084-64.453 240.847.088 66.649 64.425 66.805 168.328.02 232.886l-192.85 186.42-144.341 139.53c-40.033 38.697-104.634 38.872-144.705.136-40.08-38.744-40.235-100.85.141-139.88L663.43 269.674c13.306-12.862 34.88-12.862 48.188 0 13.306 12.864 13.306 33.72 0 46.581L374.587 642.051c-13.711 13.253-13.66 33.65-.142 46.717 13.398 12.951 34.85 12.893 48.33-.136l144.34-139.53 192.85-186.42c40.14-38.8 40.048-100.994-.02-139.724-19.121-18.61-45.133-29.078-72.268-29.082-27.134-.003-53.15 10.458-72.275 29.064L470.82 362.7z"/></symbol><symbol id="bkai-lashen" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M511.491 192l128.431 159.872h-256L511.492 192zM768 128v64H256v-64h512zM256 832h512v64H256zm224-480h64v320h95.922l-128.43 159.872L383.921 672H480V352z"/></symbol><symbol id="bkai-yasuo" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M511.491 544l128.431 159.872L544 703.84V928h-64V703.84l-96.078.032L511.492 544zM832 480v64H192v-64h640zM544 96v223.968l95.922.032-128.43 159.872L383.921 320l96.078-.032V96h64z"/></symbol><symbol id="bkai-yinyong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M642.272 192v64H416c-106.039 0-192 85.961-192 192s85.961 192 192 192h355.712L640 509.52 686 464l210 208-210 208-46-45.52L771.712 704H416c-138.717 0-251.665-110.33-255.878-248.026L160 448c0-141.385 114.615-256 256-256h226.272z"/></symbol><symbol id="bkai-drill-down" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M932.061 599.866l-144.135-89.362-34.411 55.443L889.21 649.44 564.58 850.993a97.006 97.006 0 01-102.582 0l-324.63-201.554 131.8-82.84-34.411-55.443-142.837 88.71C74.534 610.259 63.915 629.114 64 649.439c-.054 20.49 10.527 39.525 27.92 50.225l335.018 206.773a158.447 158.447 0 00170.105 0l335.018-205.468c17.393-10.7 27.974-29.736 27.918-50.226.555-20.787-10.125-40.25-27.918-50.877zM784.68 383.309l-38.955-52.182-201.27 150.676V80h-64.926v401.803l-201.27-150.676-38.956 52.182L511.99 587.472 784.68 383.31z"/></symbol><symbol id="bkai-liaotianliebiao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M160 192h704c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32zm0 288h352c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32zm0 288h576c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32z"/></symbol><symbol id="bkai-xinzengliaotian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960c-58.835 0-115.02-11.341-166.49-31.957L96 928l-.005-249.414C75.355 627.09 64 570.87 64 512 64 264.576 264.576 64 512 64zm0 64c-212.077 0-384 171.923-384 384 0 49.608 9.378 97.809 27.401 142.775l4.594 11.462L159.968 864l185.553.043 12.335.002 11.45 4.587C414.25 886.633 462.423 896 512 896c212.077 0 384-171.923 384-384S724.077 128 512 128zm0 160c17.673 0 32 14.327 32 32v160h160c17.673 0 32 14.327 32 32 0 16.41-12.353 29.936-28.268 31.785L704 544H544v160c0 16.41-12.353 29.936-28.268 31.785L512 736c-17.673 0-32-14.327-32-32V544H320c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32h160V320c0-17.673 14.327-32 32-32z"/></symbol><symbol id="bkai-quxiaozhiding" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M534.3 612.212c29.73 3.15 53.172 13.558 70.325 31.226 27.875 25.374 41.813 63.374 41.813 114 0 49.624-13.938 87.624-41.813 114-20.875 21.5-51.063 32.25-90.563 32.25s-69.687-10.75-90.562-32.25c-26.58-25.037-40.543-60.55-41.892-106.536l73.262-73.341c-10.663 16.383-15.995 38.341-15.995 65.877 0 31.124 6.813 55.124 20.437 72 13.626 16.874 31.876 25.312 54.75 25.312 22.876 0 41.063-8.438 54.563-25.312 13.375-16.876 20.063-40.876 20.063-72 0-31-6.72-54.97-20.157-71.907-13.437-16.937-31.593-25.406-54.469-25.406-14.43 0-27.021 3.358-37.77 10.074l58.008-57.987zm277.888 7.413c27.75 0 49.874 7.125 66.374 21.375 16.5 14.25 24.75 36.312 24.75 66.188 0 32.624-8.25 55.687-24.75 69.187s-40.062 20.25-70.687 20.25h-58.687V896h-57.376V619.625h120.376zM275.37 871.104l.004 24.896h-24.9l24.896-24.896zm549.53-685.26l45.255 45.254-656.195 656.196-45.255-45.255 656.196-656.195zM803 667.625h-53.812V749H803c13.625 0 24.25-3.312 31.875-9.938 7.5-6.624 11.25-17.124 11.25-31.5 0-14.374-3.781-24.624-11.344-30.75-7.562-6.124-18.156-9.187-31.781-9.187zm-457.132-48.009l-48.928 48.928-21.565.018-.004 21.55-58.143 58.144.022-79.694h-83.062v-48.937l211.68-.009zM496 96l181.388 192.096L581.484 384H576l-.02 5.504L421.484 544H416V384H224L496 96z"/></symbol><symbol id="bkai-zhiding" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M496 96l272 288H576v160H416V384H224L496 96zM358.062 619.625v48.937h-82.687V896H217.25V668.562h-83.062v-48.937h223.874zm156 284.063c-39.5 0-69.687-10.75-90.562-32.25-28-26.376-42-64.376-42-114 0-50.626 14-88.626 42-114 20.875-21.5 51.062-32.25 90.562-32.25s69.688 10.75 90.563 32.25c27.875 25.374 41.813 63.374 41.813 114 0 49.624-13.938 87.624-41.813 114-20.875 21.5-51.063 32.25-90.563 32.25zm54.563-74.25c13.375-16.876 20.063-40.876 20.063-72 0-31-6.72-54.97-20.157-71.907-13.437-16.937-31.593-25.406-54.469-25.406-22.874 0-41.124 8.437-54.75 25.313-13.624 16.874-20.437 40.874-20.437 72 0 31.124 6.813 55.124 20.437 72 13.626 16.874 31.876 25.312 54.75 25.312 22.876 0 41.063-8.438 54.563-25.312zm239.25-32.813h-58.687V896h-57.376V619.625h120.376c27.75 0 49.874 7.125 66.374 21.375 16.5 14.25 24.75 36.312 24.75 66.188 0 32.624-8.25 55.687-24.75 69.187s-40.062 20.25-70.687 20.25zm27-57.563c7.5-6.624 11.25-17.124 11.25-31.5 0-14.374-3.781-24.624-11.344-30.75-7.562-6.124-18.156-9.187-31.781-9.187h-53.812V749H803c13.625 0 24.25-3.312 31.875-9.938z"/></symbol><symbol id="bkai-piliangbianji" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M573.538 160v57.6H219.077v588.8h585.846V491.2H864v344c0 15.898-13.233 28.8-29.538 28.8H189.538C173.233 864 160 851.098 160 835.2V188.8c0-15.898 13.233-28.8 29.538-28.8h384zm281.653 0L896 203.948 520.81 608 480 564.052 855.19 160z"/></symbol><symbol id="bkai-shanchu" viewBox="0 0 1024 1024"><path d="M659.2 246.4v-60.8c0-32-25.6-57.6-57.6-57.6h-176c-32 0-57.6 25.6-57.6 57.6v57.6H128v57.6h102.4V832c0 32 25.6 57.6 57.6 57.6h441.6c32 0 57.6-25.6 57.6-57.6V304H896v-57.6H659.2zm-236.8-44.8c0-9.6 6.4-16 16-16h147.2c9.6 0 16 6.4 16 16v44.8h-176v-44.8zm310.4 620.8c0 9.6-6.4 16-16 16H304c-9.6 0-16-6.4-16-16V304h441.6v518.4z"/><path d="M576 384h64v320h-64V384zM384 384h64v320h-64V384z"/></symbol><symbol id="bkai-yuan-jiahao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm31.984 224.016H480v192.016H288v63.984h192v192h63.984v-192H736v-63.984H543.984V288.016z"/></symbol><symbol id="bkai-yuan-jianhao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm224 416.016H288V544h448v-63.984z"/></symbol><symbol id="bkai-zhushou" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M872.2 454.62C868.485 256.243 714.704 96 525.868 96h-27.734C309.297 96 155.516 256.243 151.8 454.592 118.63 473.812 96 509.282 96 550.3v55.466c0 61.18 49.754 110.934 110.933 110.934 61.18 0 110.934-49.754 110.934-110.934V550.3c-.088-60.802-49.08-110.215-109.88-110.823 10.844-160.714 136.67-288.01 290.146-288.01h27.734c153.504 0 279.302 127.296 290.146 288.01-60.8.608-109.792 50.02-109.88 110.823v55.466c0 50.087 33.558 92.02 79.207 105.748a292.503 292.503 0 01-166.345 107.882c-9.389-28.157-35.714-47.17-65.395-47.23-38.292 0-69.333 31.042-69.333 69.334 0 38.291 31.041 69.333 69.333 69.333a69.056 69.056 0 0058.822-33.03c101.164-17.698 189.385-79.083 241.142-167.787C896.772 694.874 928 654.106 928 605.766V550.3c0-41.018-22.63-76.489-55.8-95.68zM262.4 550.3v55.466c0 30.59-24.877 55.467-55.467 55.467s-55.466-24.877-55.466-55.467V550.3c0-30.59 24.876-55.467 55.466-55.467S262.4 519.71 262.4 550.3zm610.133 55.466c0 29.73-23.573 53.886-52.97 55.217l-2.164-1.026c-.194.444-.499.805-.693 1.22-30.47-.197-55.076-24.94-55.106-55.41V550.3c0-30.59 24.877-55.467 55.467-55.467s55.466 24.877 55.466 55.467v55.466z"/></symbol><symbol id="bkai-bianji" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M609.6 201.562L712 303.968 304 710.39H203.2V609.584l406.4-408.022zM683.672 128l101.821 101.83-45.255 45.257-101.822-101.83L683.672 128zM128 799.995h768V896H128v-96.005z"/></symbol><symbol id="bkai-shezhi-3" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.141 64c33.285 0 66.664 3.844 73.857 5 14.812 2.5 26.62 13.9 29.623 28.6l12.71 63.4c2.302 11.6 10.208 21.5 21.217 26.1 27.32 11.5 52.84 26.3 76.058 44 9.608 7.2 22.118 9.2 33.426 5.4l61.048-20.6c14.31-4.8 30.123-.2 39.63 11.4 11.51 14.1 22.217 28.9 32.025 44.4l18.614 32.1c8.507 16.3 16.113 33.2 22.618 50.7 5.204 14 1.1 29.7-10.108 39.6L874.021 437c-9.007 7.9-13.41 19.7-12.009 31.6 1.601 14 2.502 28.3 2.502 42.8 0 14.8-.9 29.4-2.702 43.7-1.401 11.9 3.002 23.8 12.01 31.7l48.537 42.7c11.309 9.9 15.312 25.7 10.008 39.8-17.514 46.6-42.633 89.5-73.758 127.2-9.507 11.6-25.22 16-39.43 11.2L757.83 787c-11.308-3.8-23.818-1.7-33.426 5.5-22.817 17.2-47.837 31.8-74.557 43.1-11.109 4.7-19.115 14.5-21.417 26.2l-12.71 63.5c-3.002 14.7-14.711 26.1-29.523 28.6-24.118 4-48.837 6.1-74.057 6.1-24.82 0-49.238-2-72.956-5.9-14.812-2.5-26.621-13.9-29.523-28.6l-12.71-63.3c-2.302-11.6-10.208-21.5-21.217-26.1a355.85 355.85 0 01-75.558-43.5c-9.607-7.2-22.117-9.2-33.426-5.4L205.303 808c-14.21 4.8-29.923.3-39.43-11.2-4.932-5.952-25.037-29.06-41.159-56.796-11.28-19.409-22.147-42.81-32.598-70.204-5.304-14.1-1.301-29.9 10.008-39.8l48.537-42.6c9.007-7.9 13.51-19.7 12.01-31.5-1.902-14.5-2.803-29.4-2.803-44.5 0-14.7.901-29.2 2.702-43.5 1.502-11.9-3.002-23.8-12.009-31.7l-48.638-42.7c-11.308-9.9-15.311-25.7-10.007-39.8 4.503-12 9.507-23.7 14.911-35.1.4-.9.9-1.7 1.401-2.6l32.025-55.4c.5-.9 1-1.8 1.601-2.6 7.406-10.6 15.112-20.9 23.318-30.9 9.508-11.6 25.32-16.1 39.531-11.3l61.147 20.7c11.41 3.8 23.919 1.8 33.526-5.5 23.519-17.8 49.138-32.7 76.66-44.2a35.8 35.8 0 0021.316-26.1l12.61-63.2c2.902-14.8 14.711-26.2 29.623-28.6 6.77-1.094 39.618-4.9 72.556-4.9zm28.022 64h-56.544l-2.802.2c-7.106.6-12.91 5.8-14.311 12.7l-10.308 51.6-5.304 26.7c-1.101 5.4-5.004 9.9-10.208 11.8l-25.72 9.2c-32.525 11.6-62.449 28.9-88.97 51.3l-20.815 17.6c-4.203 3.6-10.008 4.7-15.312 2.9l-25.82-8.7-50.039-16.9c-6.705-2.3-14.11.1-18.114 5.9-.1.1-.2.3-.3.4l-.7 1.2-30.324 52.5-.6 1.2-1.008 2.804c-1.462 5.706.364 11.853 4.91 15.796l39.831 35 20.416 17.9c4.103 3.7 6.105 9.2 5.104 14.7l-4.704 26.7c-3.002 16.7-4.503 33.9-4.503 51 0 17.4 1.501 34.8 4.604 51.7l4.803 26.8c1.001 5.4-.9 11-5.104 14.7l-20.516 18-39.53 34.8c-5.304 4.7-6.805 12.3-3.803 18.7l2.802 5.7c.2.3.3.6.5.9l23.519 40.7.6.9c1.501 2.4 3.203 4.8 4.804 7.1 4.003 5.7 11.309 8.1 18.014 5.9l50.539-17 25.62-8.7c5.204-1.8 11.108-.7 15.312 2.9l20.816 17.4c26.22 22.1 55.943 39.2 88.068 50.7l25.62 9.2c5.204 1.9 9.107 6.3 10.208 11.8l5.304 26.7 10.308 51.6c1.3 7 7.205 12.1 14.31 12.7 10.509.9 21.017 1.3 31.525 1.3 10.909 0 21.817-.5 32.626-1.4 7.005-.6 12.81-5.8 14.21-12.7l10.409-52 5.304-26.6c1.1-5.4 4.903-9.9 10.108-11.8l25.52-9.3c31.924-11.6 61.347-28.6 87.467-50.6l20.816-17.5c4.203-3.6 10.008-4.7 15.312-2.9l25.72 8.7 50.239 17c6.705 2.3 14.11-.1 18.114-5.9 6.105-8.7 11.809-17.6 17.113-26.8 5.504-9.5 10.608-19.1 15.212-28.9 3.002-6.4 1.401-14-3.903-18.7l-39.831-34.9-20.416-17.9c-4.103-3.7-6.105-9.2-5.104-14.7l4.704-26.7c3.002-16.7 4.503-33.8 4.503-51 0-16.9-1.5-33.8-4.403-50.3l-4.704-26.6c-.9-5.5 1.001-11 5.204-14.7l20.316-17.8 39.83-34.8c5.305-4.7 6.906-12.2 3.904-18.6-2.102-4.6-4.303-9.2-6.705-13.7l-17.214-29.8c-2.602-4.1-5.304-8.2-8.106-12.2-4.003-5.8-11.409-8.3-18.114-6l-50.039 16.9-25.82 8.7c-5.204 1.8-11.108.7-15.311-2.9L698.485 292c-26.32-22.3-55.943-39.5-88.268-51.2l-25.52-9.3c-5.204-1.9-9.007-6.4-10.108-11.8l-5.304-26.7-10.408-51.9c-1.4-6.9-7.205-12.1-14.21-12.7-1.502-.2-3.003-.3-4.504-.4zM512.24 351.5c88.469 0 160.124 71.6 160.124 160s-71.655 160-160.124 160c-88.468 0-160.124-71.6-160.124-160s71.656-160 160.124-160zm0 64c-52.94 0-96.074 43.1-96.074 96s43.133 96 96.074 96c52.941 0 96.075-43.1 96.075-96s-43.134-96-96.075-96z"/></symbol><symbol id="bkai-history" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M551.32 96C776.665 96 960 282.618 960 512S776.666 928 551.32 928v-66.56c189.284 0 343.291-156.749 343.291-349.44S740.604 162.56 551.319 162.56c-183.76 0-333.843 147.863-342.458 332.8h117.39L179.124 668.283 32 495.36h111.047C151.678 273.665 331.449 96 551.319 96zm28.445 192v192H800v64H512V288h67.765z"/></symbol><symbol id="bkai-fuzhi" viewBox="0 0 1024 1024"><path d="M672 704v128c0 35.346-28.654 64-64 64H192c-35.346 0-64-28.654-64-64V384c0-35.346 28.654-64 64-64h160V216.889C352 168.242 389.727 128 437.333 128h373.334C858.273 128 896 168.242 896 216.889V615.11C896 663.758 858.273 704 810.667 704H672zm-64-320H192v448h416V384zm64 256h138.667C821.97 640 832 629.302 832 615.111V216.89C832 202.698 821.97 192 810.667 192H437.333C426.03 192 416 202.698 416 216.889V320h192c35.346 0 64 28.654 64 64v256z"/></symbol><symbol id="bkai-zhongxinshengcheng" viewBox="0 0 1024 1024"><path d="M844.077 379.897c16.38 41.657 25.316 87.777 25.316 132.41 0 197.87-160.827 357.06-357.393 357.06-84.88 0-166.783-29.755-230.816-84.802h71.478v-59.51H184.39v166.628h59.566v-60.997c175.718 147.287 439.295 124.97 586.719-50.584 101.261-120.508 125.087-285.648 64.033-429.96l-50.63 29.755zM179.923 644.717c-16.38-41.658-25.316-87.778-25.316-132.41 0-197.871 160.827-357.061 357.393-357.061 84.88 0 166.783 29.755 230.816 84.802h-71.478v59.51H839.61V132.93h-59.566v60.998C604.326 45.152 340.75 68.956 193.325 244.51 92.064 365.02 68.238 530.16 129.292 674.471l50.63-29.754z"/></symbol><symbol id="bkai-fenxiang" viewBox="0 0 1024 1024"><path d="M954.297 473.916L566.932 132.133c-10.735-9.437-27.186-1.672-27.186 12.783v200.458c0 8.96-6.884 16.486-15.635 16.844C299.86 370.461 111.31 537.112 71.64 765.644l-7.35 42.41c-2.918 16.485 16.917 26.76 28.235 14.574l28.936-31.3c104.659-113.37 250.037-177.043 401.834-176.446 9.1 0 16.568 7.526 16.568 16.844v196.158c0 14.455 16.568 22.22 27.185 12.783L954.414 499.48c7.467-6.81 7.467-18.875-.117-25.565zm-796.9 204.998c65.339-153.987 214.218-257.68 384.332-257.68h39.67c9.101 0 16.452-7.527 16.452-16.845V237.977L879.624 486.7 597.851 734.823v-162.23c0-9.319-7.35-16.845-16.452-16.845h-36.053c-140.361-5.734-277.106 38.467-387.949 123.166z"/></symbol><symbol id="bkai-jiahao" viewBox="0 0 1024 1024"><path d="M843.353 366.385C907.69 366.385 960 418.735 960 483.03v362.68c0 64.296-52.32 116.646-116.647 116.646H480.704c-64.336 0-116.646-52.35-116.646-116.647V483.031c0-64.296 52.31-116.646 116.646-116.646h362.65zm0 67.255H480.704c-27.223 0-49.39 22.138-49.39 49.391v362.68c0 27.253 22.167 49.39 49.39 49.39h362.65c27.223 0 49.39-22.137 49.39-49.39V483.03c0-27.253-22.167-49.39-49.39-49.39zM246.72 781.484c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623h-43.443c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h43.443zm420.255-72.512c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h126.437zM739.897 64c64.928 0 117.76 52.801 117.76 117.76v75.993c0 18.586-15.036 33.622-33.623 33.622-18.587 0-33.623-15.036-33.623-33.622V181.76c0-27.845-22.659-50.504-50.504-50.504H181.76c-27.845 0-50.504 22.659-50.504 50.504v387.375c0 27.845 22.659 50.504 50.504 50.504h64.959c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.633-33.623 33.633H181.76c-64.928 0-117.76-52.802-117.76-117.76V181.76C64 116.801 116.842 64 181.76 64h558.137zm53.473 488.594c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623H793.37z"/></symbol><symbol id="bkai-jieshi" viewBox="0 0 1024 1024"><path d="M843.353 366.385C907.69 366.385 960 418.735 960 483.03v362.68c0 64.296-52.32 116.646-116.647 116.646H480.704c-64.336 0-116.646-52.35-116.646-116.647V483.031c0-64.296 52.31-116.646 116.646-116.646h362.65zm0 67.255H480.704c-27.223 0-49.39 22.138-49.39 49.391v362.68c0 27.253 22.167 49.39 49.39 49.39h362.65c27.223 0 49.39-22.137 49.39-49.39V483.03c0-27.253-22.167-49.39-49.39-49.39zM246.72 781.484c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623h-43.443c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h43.443zm420.255-72.512c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h126.437zM739.897 64c64.928 0 117.76 52.801 117.76 117.76v75.993c0 18.586-15.036 33.622-33.623 33.622-18.587 0-33.623-15.036-33.623-33.622V181.76c0-27.845-22.659-50.504-50.504-50.504H181.76c-27.845 0-50.504 22.659-50.504 50.504v387.375c0 27.845 22.659 50.504 50.504 50.504h64.959c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.633-33.623 33.633H181.76c-64.928 0-117.76-52.802-117.76-117.76V181.76C64 116.801 116.842 64 181.76 64h558.137zm53.473 488.594c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623H793.37z"/></symbol><symbol id="bkai-fanyi" viewBox="0 0 1024 1024"><path d="M377.6 851.2h-96c-44.8-6.4-83.2-44.8-83.2-89.6v-44.8c0-25.6-19.2-44.8-44.8-44.8-25.6 0-44.8 19.2-44.8 44.8v44.8c0 96 76.8 179.2 179.2 179.2h89.6c25.6 0 44.8-19.2 44.8-44.8 0-25.6-25.6-44.8-44.8-44.8zM640 230.4h89.6c25.6 0 44.8 6.4 64 25.6 19.2 19.2 25.6 38.4 25.6 64v44.8c0 25.6 19.2 44.8 44.8 44.8 25.6 0 44.8-19.2 44.8-44.8V320c0-96-76.8-179.2-179.2-179.2H640c-25.6 0-44.8 19.2-44.8 44.8 0 25.6 19.2 44.8 44.8 44.8zM960 908.8L780.8 467.2c-6.4-6.4-12.8-12.8-19.2-12.8H704c-6.4 0-19.2 6.4-19.2 12.8L505.6 908.8V928c0 6.4 12.8 12.8 19.2 12.8h44.8c6.4 0 19.2-6.4 19.2-12.8l44.8-121.6h179.2L857.6 928c6.4 6.4 12.8 12.8 19.2 12.8h44.8c6.4 0 12.8-6.4 19.2-12.8 19.2-6.4 19.2-12.8 19.2-19.2zm-288-192L729.6 576l57.6 140.8H672zM505.6 473.6V204.8c0-12.8-12.8-19.2-19.2-19.2H332.8v-64c0-6.4 0-12.8-6.4-12.8S313.6 96 307.2 96h-44.8c-6.4 0-12.8 0-12.8 6.4s-6.4 12.8-6.4 12.8v64h-160c-6.4 0-12.8 0-12.8 6.4-6.4 12.8-6.4 12.8-6.4 19.2v268.8c0 6.4 0 12.8 6.4 12.8 6.4 6.4 12.8 6.4 12.8 6.4h153.6v108.8c0 12.8 12.8 19.2 19.2 19.2h44.8c12.8 0 19.2-12.8 19.2-19.2V492.8h153.6c25.6 0 32-6.4 32-19.2zm-262.4-64h-89.6V275.2h89.6v134.4zm179.2 0h-89.6V275.2h89.6v134.4z"/></symbol><symbol id="bkai-morenchicun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M896 128v64H511.52l128.402 159.872h-256L511.456 192H128v-64h768zM128 832h768v64H128zm383.491-.128L383.922 672h256l-128.43 159.872zm320.367-320.367l-159.872-127.57v256l159.872-128.43zm-639.872 0l159.872-127.57v256l-159.872-128.43z"/></symbol><symbol id="bkai-kuangxuan" viewBox="0 0 1024 1024"><path d="M252.066 832l.03 64h128l-.03-64h-128zM128 798.016V832c0 33.923 26.393 61.681 59.764 63.862l4.173-63.864.063-33.965-64-.017zm244.353-444.408l90.51 362.039 120.129-120.174 251.66 251.635 43.199-43.197-251.663-251.634 108.204-108.16-362.039-90.509zM128 606.016v128l64 .017v-128l-64-.017zm0-192v128l64 .017v-128l-64-.017zm704-184.115v128l64-.013v-128l-64 .013zm-704-7.885v128l64 .017v-128l-64-.017zM192 128c-23.688 0-44.37 12.87-55.437 31.998l55.398 32.048L256 192v-64h-64zm320 0v64h128v-64H512zm-192 0v64h128v-64H320zm384 0v64h128l58.677-25.595C880.802 143.799 858.246 128 832 128H704z"/></symbol><symbol id="bkai-jiantou" viewBox="0 0 1024 1097.143"><path fill-rule="evenodd" d="M832 612.37l-91.636-89.143-183.235 178.36-.038-594.36H434.909l.072 594.36-183.345-178.36L160 612.37l336 326.857L832 612.37z"/></symbol><symbol id="bkai-tingzhishengcheng" viewBox="0 0 1024 1097.143"><path fill-rule="evenodd" d="M512 75.264c247.424 0 448 200.576 448 448s-200.576 448-448 448-448-200.576-448-448 200.576-448 448-448zm0 64c-212.077 0-384 171.923-384 384s171.923 384 384 384 384-171.923 384-384-171.923-384-384-384zm0 132c139.162 0 252 112.838 252 252s-112.838 252-252 252-252-112.838-252-252 112.838-252 252-252zm76.368 150.177l-76.375 76.374-76.368-76.367-25.448 25.448 76.367 76.368-76.367 76.368 25.467 25.467 76.368-76.368 76.356 76.356 25.448-25.448-76.355-76.356 76.374-76.375-25.467-25.467z"/></symbol><symbol id="bkai-xiaojingyudian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M621.204 0c547.128 0 526.9 748.792 0 682.56C343.257 647.624 136.189 761.437 0 1024 49.384 341.333 256.452 0 621.204 0z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",t):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",t)})})(),SOn({prefix:"ai-blueking"});const Qbr={name:"AiBlueking",render(t){return t("div",{style:{width:"100%"}})},props:{extCls:{default:"",type:String},shortcuts:{default:()=>[],type:Array},enablePopup:{default:!0,type:Boolean},url:{default:"",type:String},prompts:{default:()=>[],type:Array},teleportTo:{default:"body",type:String},title:{type:String},helloText:{type:String},requestOptions:{default:()=>({}),type:Object},defaultMinimize:{default:!1,type:Boolean},hideHeader:{default:!1,type:Boolean},hideNimbus:{default:!1,type:Boolean},draggable:{default:!0,type:Boolean},defaultWidth:{type:Number},defaultHeight:{type:Number},defaultLeft:{type:Number},defaultTop:{type:Number},disabledInput:{default:!1,type:Boolean},initialSessionCode:{type:String,default:""},autoSwitchToInitialSession:{type:Boolean,default:!1},shortcutLimit:{type:Number,default:3},shortcutFilter:{type:Function,default:void 0}},data(){return{app:null,unWatchStack:[]}},created(){const t=this.$emit.bind(this);let n=null,i=null;const o=this;this.app=Sye({render(){return n=this,i=cc(Kbr,{extCls:o.extCls,shortcuts:o.shortcuts,shortcutLimit:o.shortcutLimit,shortcutFilter:o.shortcutFilter,enablePopup:o.enablePopup,url:o.url,title:o.title,helloText:o.helloText,requestOptions:o.requestOptions,prompts:o.prompts,disabledInput:o.disabledInput,teleportTo:o.teleportTo,defaultMinimize:o.defaultMinimize,hideHeader:o.hideHeader,hideNimbus:o.hideNimbus,draggable:o.draggable,defaultWidth:o.defaultWidth,defaultHeight:o.defaultHeight,defaultLeft:o.defaultLeft,defaultTop:o.defaultTop,initialSessionCode:o.initialSessionCode,autoSwitchToInitialSession:o.autoSwitchToInitialSession,onClose(){t("close",...arguments)},onStop(){t("stop",...arguments)},onShortcutClick(){t("shortcut-click",...arguments)},onShow(){t("show",...arguments)},onSendMessage(){t("send-message",...arguments)},onReceiveStart(){t("receive-start",...arguments)},onReceiveEnd(){t("receive-end",...arguments)},onReceiveText(){t("receive-text",...arguments)},onSessionInitialized(){t("session-initialized",...arguments)},...o.$attrs}),i}}),this.unWatchStack=Object.keys(this.$props).map(l=>this.$watch(l,()=>{n.$forceUpdate()},{deep:!0})),this.handleShow=l=>{i.component.exposed.handleShow(l)},this.handleStop=()=>{i.component.exposed.handleStop()},this.handleShortcutClick=l=>{i.component.exposed.handleShortcutClick(l)},this.sendChat=l=>{i.component.exposed.sendChat(l)},this.handleClose=()=>{i.component.exposed.handleClose()},this.handleSendMessage=l=>{i.component.exposed.handleSendMessage(l)},this.handleDelete=l=>{i.component.exposed.handleDelete(l)},this.handleRegenerate=l=>{i.component.exposed.handleRegenerate(l)},this.handleResend=(l,u)=>{i.component.exposed.handleResend(l,u)},this.updateRequestOptions=l=>{i.component.exposed.updateRequestOptions(l)},this.addNewSession=l=>i.component.exposed.addNewSession(l),this.updateSessionName=(l,u)=>i.component.exposed.updateSessionName(l,u),this.switchToSession=l=>i.component.exposed.switchToSession(l),this.getSessionList=()=>i.component.exposed.getSessionList(),this.sessionList=()=>i.component.exposed.sessionList(),this.enableChatSession=()=>i.component.exposed.enableChatSession(),Object.defineProperty(this,"sessionContents",{get:()=>{const l=i.component.exposed.sessionContents;let u=l&&l.__v_isRef?l.value:l;if(u&&typeof u=="object")try{u=JSON.parse(JSON.stringify(u))}catch{Array.isArray(u)&&(u=[...u])}return Array.isArray(u)?u:[]}})},mounted(){var t;(t=this.app)==null||t.mount(this.$el)},beforeDestroy(){var t;this.unWatchStack.forEach(n=>n==null?void 0:n()),(t=this.app)==null||t.unmount()}};class qv{constructor(n,i,o){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=n,this.start=i,this.end=o}static range(n,i){return i?!n||!n.loc||!i.loc||n.loc.lexer!==i.loc.lexer?null:new qv(n.loc.lexer,n.loc.start,i.loc.end):n&&n.loc}}class P_{constructor(n,i){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=n,this.loc=i}range(n,i){return new P_(i,qv.range(this,n))}}class Gr{constructor(n,i){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var o="KaTeX parse error: "+n,l,u,f=i&&i.loc;if(f&&f.start<=f.end){var h=f.lexer.input;l=f.start,u=f.end,l===h.length?o+=" at end of input: ":o+=" at position "+(l+1)+": ";var m=h.slice(l,u).replace(/[^]/g,"$&̲"),b;l>15?b="…"+h.slice(l-15,l):b=h.slice(0,l);var _;u+15<h.length?_=h.slice(u,u+15)+"…":_=h.slice(u),o+=b+m+_}var E=new Error(o);return E.name="ParseError",E.__proto__=Gr.prototype,E.position=l,l!=null&&u!=null&&(E.length=u-l),E.rawMessage=n,E}}Gr.prototype.__proto__=Error.prototype;var Jbr=function(n,i){return n.indexOf(i)!==-1},Xbr=function(n,i){return n===void 0?i:n},Zbr=/([A-Z])/g,evr=function(n){return n.replace(Zbr,"-$1").toLowerCase()},tvr={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},nvr=/[&><"']/g;function rvr(t){return String(t).replace(nvr,n=>tvr[n])}var Fyt=function t(n){return n.type==="ordgroup"||n.type==="color"?n.body.length===1?t(n.body[0]):n:n.type==="font"?t(n.body):n},ivr=function(n){var i=Fyt(n);return i.type==="mathord"||i.type==="textord"||i.type==="atom"},avr=function(n){if(!n)throw new Error("Expected non-null, but got "+String(n));return n},ovr=function(n){var i=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(n);return i?i[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(i[1])?null:i[1].toLowerCase():"_relative"},Za={contains:Jbr,deflt:Xbr,escape:rvr,hyphenate:evr,getBaseElem:Fyt,isCharacterBox:ivr,protocolFromUrl:ovr},hH={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,n)=>(n.push(t),n)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function svr(t){if(t.default)return t.default;var n=t.type,i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return i.enum[0];switch(i){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class txe{constructor(n){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,n=n||{};for(var i in hH)if(hH.hasOwnProperty(i)){var o=hH[i];this[i]=n[i]!==void 0?o.processor?o.processor(n[i]):n[i]:svr(o)}}reportNonstrict(n,i,o){var l=this.strict;if(typeof l=="function"&&(l=l(n,i,o)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new Gr("LaTeX-incompatible input and strict mode is set to 'error': "+(i+" ["+n+"]"),o);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+n+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+i+" ["+n+"]"))}}useStrictBehavior(n,i,o){var l=this.strict;if(typeof l=="function")try{l=l(n,i,o)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+n+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+i+" ["+n+"]")),!1)}isTrusted(n){if(n.url&&!n.protocol){var i=Za.protocolFromUrl(n.url);if(i==null)return!1;n.protocol=i}var o=typeof this.trust=="function"?this.trust(n):this.trust;return!!o}}class Y6{constructor(n,i,o){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=n,this.size=i,this.cramped=o}sup(){return P4[cvr[this.id]]}sub(){return P4[lvr[this.id]]}fracNum(){return P4[uvr[this.id]]}fracDen(){return P4[fvr[this.id]]}cramp(){return P4[dvr[this.id]]}text(){return P4[hvr[this.id]]}isTight(){return this.size>=2}}var nxe=0,Wie=1,x9=2,UC=3,pH=4,B_=5,k9=6,sm=7,P4=[new Y6(nxe,0,!1),new Y6(Wie,0,!0),new Y6(x9,1,!1),new Y6(UC,1,!0),new Y6(pH,2,!1),new Y6(B_,2,!0),new Y6(k9,3,!1),new Y6(sm,3,!0)],cvr=[pH,B_,pH,B_,k9,sm,k9,sm],lvr=[B_,B_,B_,B_,sm,sm,sm,sm],uvr=[x9,UC,pH,B_,k9,sm,k9,sm],fvr=[UC,UC,B_,B_,sm,sm,sm,sm],dvr=[Wie,Wie,UC,UC,B_,B_,sm,sm],hvr=[nxe,Wie,x9,UC,x9,UC,x9,UC],co={DISPLAY:P4[nxe],TEXT:P4[x9],SCRIPT:P4[pH],SCRIPTSCRIPT:P4[k9]},rxe=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function pvr(t){for(var n=0;n<rxe.length;n++)for(var i=rxe[n],o=0;o<i.blocks.length;o++){var l=i.blocks[o];if(t>=l[0]&&t<=l[1])return i.name}return null}var Kie=[];rxe.forEach(t=>t.blocks.forEach(n=>Kie.push(...n)));function jyt(t){for(var n=0;n<Kie.length;n+=2)if(t>=Kie[n]&&t<=Kie[n+1])return!0;return!1}var A9=80,gvr=function(n,i){return"M95,"+(622+n+i)+`
662
662
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
663
663
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54