PageSourceSearch

https://dash.adtiming.com/p__agent__prompt__component__EditPrompt.894961a5.async.js

js adtiming.com collected 2026-10-01 14:43:01 UTC 26,081 bytes, 4 lines download raw bytes

1(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8832],{5508:function(R,v,t){"use strict";var m=t(11849),g=t(16165),s=t(85893),C=function(u){var h=u.fillColor,p=h===void 0?"#2233B3":h;return(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9.68936 0.185564L8.02653 1.84888L10.1482 3.96989L11.811 2.30657C12.0453 2.07222 12.0452 1.69233 11.8109 1.45805L10.5379 0.185439C10.3035 -0.048841 9.92364 -0.048785 9.68936 0.185564Z",fill:p}),(0,s.jsx)("path",{d:"M7.5413 2.34562L0.789115 9.10882L0.026238 11.6029C-0.0438669 11.8321 0.169836 12.0469 0.399392 11.978L2.90623 11.2253L9.65841 4.46212L7.5413 2.34562Z",fill:p}),(0,s.jsx)("path",{d:"M9.68936 0.185564L8.02653 1.84888L10.1482 3.96989L11.811 2.30657C12.0453 2.07222 12.0452 1.69233 11.8109 1.45805L10.5379 0.185439C10.3035 -0.048841 9.92364 -0.048785 9.68936 0.185564Z",fill:p}),(0,s.jsx)("path",{d:"M7.5413 2.34562L0.789115 9.10882L0.026238 11.6029C-0.0438669 11.8321 0.169836 12.0469 0.399392 11.978L2.90623 11.2253L9.65841 4.46212L7.5413 2.34562Z",fill:p})]})},A=function(u){return(0,s.jsx)(g.Z,(0,m.Z)({component:function(){return C(u)}},u))};v.Z=A},25671:function(R,v,t){"use strict";var m=t(11849),g=t(16165),s=t(85893),C=function(u){return(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{"clip-path":"url(#clip0_1763_43173)",children:(0,s.jsx)("path",{d:"M10.8839 7.974L7.45791 6L10.8839 4.026C11.2259 3.852 11.3999 3.342 11.1419 3C10.9679 2.658 10.4579 2.484 10.1159 2.742L6.68991 4.716V0.774C6.77391 0.342 6.42591 0 5.99991 0C5.57391 0 5.22591 0.342 5.22591 0.774V4.716L1.79991 2.742C1.54191 2.484 1.02591 2.658 0.85791 3C0.68991 3.342 0.77391 3.858 1.11591 4.026L4.54191 6L1.11591 7.974C0.77391 8.148 0.59991 8.658 0.85791 9C1.03191 9.258 1.28391 9.342 1.54191 9.342C1.62591 9.342 1.79991 9.342 1.88391 9.258L5.30991 7.284V11.226C5.22591 11.652 5.56791 12 5.99391 12C6.41991 12 6.76791 11.658 6.76791 11.226V7.284L10.1939 9.258C10.2779 9.342 10.4519 9.342 10.5359 9.342C10.7939 9.342 11.0519 9.168 11.2199 9C11.3159 8.658 11.2259 8.142 10.8839 7.974Z",fill:"#2233B3"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_1763_43173",children:(0,s.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]})},A=function(u){return(0,s.jsx)(g.Z,(0,m.Z)({component:function(){return C(u)}},u))};v.Z=A},53443:function(R,v,t){"use strict";var m=t(11849),g=t(16165),s=t(85893),C=function(u){var h=u.fillColor,p=h===void 0?"#2233B3":h;return(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{"clip-path":"url(#clip0_3683_1151)",children:(0,s.jsx)("path",{d:"M1.18618 2.593
104C2.82247 0.18789 5.99476 -0.710398 8.66819 0.608748C11.6116 2.06075 12.8339 5.65219 11.3982 8.62991C9.96248 11.6076 6.41219 12.8436 3.46875 11.3916C2.29653 10.814 1.34752 9.86586 0.768746 8.69419C0.697965 8.55216 0.685983 8.38796 0.735395 8.23716C0.784808 8.08635 0.891637 7.96108 1.03275 7.88848C1.10248 7.85318 1.17854 7.83209 1.25649 7.82644C1.33445 7.8208 1.41275 7.8307 1.48684 7.85559C1.56094 7.88047 1.62935 7.91984 1.68809 7.97139C1.74684 8.02295 1.79475 8.08567 1.82903 8.15591C2.29183 9.09328 3.05112 9.85166 3.98904 10.3133C6.34362 11.4756 9.18333 10.4856 10.3319 8.10362C11.4805 5.72162 10.5033 2.84932 8.1479 1.68704C5.89019 0.572748 3.18761 1.43589 1.95503 3.60704H2.96561C3.29389 3.60704 3.55875 3.87618 3.55875 4.20704C3.55875 4.53876 3.29304 4.80704 2.96561 4.80704H0.593032C0.514688 4.80659 0.4372 4.79072 0.364993 4.76032C0.292785 4.72993 0.227271 4.6856 0.172193 4.62989C0.117114 4.57417 0.0735486 4.50815 0.0439845 4.4356C0.0144203 4.36305 -0.000563704 4.28539 -0.000112161 4.20704V1.80704C-0.000112161 1.47618 0.265602 1.20704 0.593032 1.20704C0.920461 1.20704 1.18618 1.47618 1.18618 1.80704V2.59304Z",fill:p})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_3683_1151",children:(0,s.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]})},A=function(u){return(0,s.jsx)(g.Z,(0,m.Z)({component:function(){return C(u)}},u))};v.Z=A},73577:function(R,v,t){"use strict";var m=t(11849),g=t(16165),s=t(85893),C=function(u){return(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.65503 1.07977C8.00651 0.728294 8.57635 0.728294 8.92783 1.07977L13.9483 6.10022C14.2998 6.4517 14.2998 7.02154 13.9483 7.37302C13.5968 7.72449 13.027 7.72449 12.6755 7.37302L9.19153 3.88905L9.19153 13.9067C9.19153 14.4037 8.78858 14.8067 8.29153 14.8067C7.79447 14.8067 7.39153 14.4037 7.39153 13.9067L7.39153 3.88886L3.90737 7.37302C3.5559 7.72449 2.98605 7.72449 2.63458 7.37302C2.2831 7.02154 2.2831 6.4517 2.63458 6.10022L7.65503 1.07977Z",fill:"white"})})},A=function(u){return(0,s.jsx)(g.Z,(0,m.Z)({component:function(){return C(u)}},u))};v.Z=A},82609:function(R,v,t){"use strict";var m=t(11849),g=t(16165),s=t(85893),C=function(u){var h=u.fillColor1,p=h===void 0?"#F0F4FF":h,U=u.fillColor2,de=U===void 0?"#2233B3":U;return(0,s.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{width:"32",height:"32",rx:"16",fill:p}),(0,s.jsx)("path",{d:"M10.3999 11.8004C10.3999 11.0272 11.0267 10.4004 11.7999 10.4004H20.1999C20.9731 10.4004 21.5999 11.0272 21.5999 11.8004V20.2004C21.5999 20.9736 20.9731 21.6004 20.1999 21.6004H11.7999C11.0267 21.6004 10.3999 20.9736 10.3999 20.2004V11.8004Z",fill:de})]})},A=function(u){return(0,s.jsx)(g.Z,(0,m.Z)({component:function(){return C(u)}},u))};v.Z=A},96018:function(R,v,t){"use strict";var m=t(63804),g=t.n(m),s=t(25671),C=t(85893),A=function(u){var h=u.title;return(0,C.jsxs)("span",{children:[(0,C.jsx)(s.Z,{}),(0,C.jsx)("span",{style:{marginLeft:4},children:h})]})};v.Z=A},54316:function(R,v,t){"use strict";var m=t(11849),g=t(93224),s=t(63804),C=t.n(s),A=t(48375),x=t(76450),u=t(47302),h=t(22521),p=t(85893),U=function(f){var E=f.answer,w=f.spStyle,V=w===void 0?{}:w,B=f.from,ce=B===void 0?"":B;return(0,p.jsx)("div",{className:"em-report-mark-comp",style:V,children:(0,p.jsx)("div",{className:"report-mark-markdown",children:(0,p.jsx)(A.UG,{remarkPlugins:[x.Z],components:de,children:E})})})},de={code:function(f){var E=f.node,w=f.inline,V=f.className,B=f.children,ce=(0,g.Z)(f,["node","inline","className","children"]),_=/language-(\w+)/.exec(V||""),o=_?_[1]:"";if(o==="echarts"||o==="json")try{var k=JSON.parse(B);return k.title&&(k.title.left="center",k.title.top=10),k.legend&&(k.legend.top=50),k.grid={top:120},(0,p.jsx)("div",{style:{height:"400px",width:"100%",margin:"8px 0"},children:(0,p.jsx)(h.Z,{option:k,style:{height:"100%",width:"100%"}})})}catch(O){return(0,p.jsx)("pre",(0,m.Z)((0,m.Z)({},ce),{},{children:B}))}return(0,p.jsx)("pre",(0,m.Z)((0,m.Z)({},ce),{},{children:(0,p.jsx)("code",{className:V,children:B})}))}
1,table:function(f){var E=f.node,w=(0,g.Z)(f,["node"]);return(0,p.jsx)("div",{className:"table-container",style:{maxWidth:800},children:(0,p.jsx)("table",(0,m.Z)({},w))})},a:function(f){var E=f.href,w=f.children,V=(0,g.Z)(f,["href","children"]);return(0,p.jsx)("a",(0,m.Z)((0,m.Z)({href:E,target:"_blank",rel:"noopener noreferrer"},V),{},{children:w}))}};v.Z=U},55382:function(R,v,t){"use strict";t.r(v),t.d(v,{default:function(){return Qt}});var m=t(20228),g=t(11382),s=t(63185),C=t(9676),A=t(57663),x=t(71577),u=t(57338),h=t(85473),p=t(77883),U=t(77278),de=t(71194),q=t(14903),f=t(91220),E=t(86582),w=t(3182),V=t(34792),B=t(55026),ce=t(9715),_=t(16579),o=t(2824),k=t(43358),O=t(34041),ua=t(47673),Ae=t(4107),Vt=t(94043),W=t.n(Vt),i=t(63804),Ke=t.n(i),me=t(43581),H=t(96018),M=t(41797),Ht=t(53443),$t=t(82609),Gt=t(73577),Jt=t(5508),Ze=t(7085),pe=t(54316),e=t(85893),zt=function(L){var Se=L.type,ne=L.convArr,Ve=L.setConvArr,Ee=L.aiAnswering,$=L.realTimeAnswer,G=L.realReasonAnswer;return(0,e.jsxs)("div",{className:"ai-edit-conv-card ai-edit-conv-card-".concat(Se),children:[(0,e.jsx)("div",{className:"ai-cov-header",children:Se==="A"?"\u8C03\u8BD5\u533A\u57DF_\u4F7F\u7528\u7248":"\u8C03\u8BD5\u533A\u57DF_\u5BF9\u7167\u7248"}),(0,e.jsx)("div",{className:"ai-cov-container",children:(0,e.jsx)("div",{className:"answer-box",children:ne.map(function(j,fe){return(0,e.jsxs)("div",{className:"a-box",children:[(0,e.jsx)("div",{className:j.type===0?"p-icon":"a-icon",children:j.type===0?"":"AI"}),(0,e.jsx)("div",{className:"a-content-wrap",children:(0,e.jsx)("div",{className:"a-content",children:j.type===0?(0,e.jsx)("div",{className:"person-answer",children:j.answer}):fe===ne.length-1&&Ee&&!G&&!$?(0,e.jsx)("div",{className:"ai-answer",children:(0,e.jsx)(Ze.Z,{style:{color:"#00E778"}})}):fe===ne.length-1&&(G||$)?(0,e.jsxs)("div",{className:"ai-answer-wrap",children:[G?(0,e.jsxs)("div",{className:"ai-answer",children:[(0,e.jsx)(pe.Z,{answer:G}),$?"":(0,e.jsx)(Ze.Z,{style:{color:"#00E778"}})]}):"",$?(0,e.jsxs)("div",{className:G?"ai-answer ai-answer-mt":"ai-answer",children:[(0,e.jsx)(pe.Z,{answer:$}),(0,e.jsx)(Ze.Z,{style:{color:"#00E778"}})]}):""]}):j.answer||j.reason?(0,e.jsxs)("div",{className:"ai-answer-wrap",children:[j.reason?(0,e.jsx)("div",{className:"ai-answer ai-answer-mb",children:(0,e.jsx)(pe.Z,{answer:j.reason})}):"",j.answer?(0,e.jsx)("div",{className:j.reason?"ai-answer ai-answer-mt":"ai-answer",children:(0,e.jsx)(pe.Z,{answer:j.answer})}):""]}):""})})]},j.id)})})})]})},Ue=zt,P=t(81332),he=Ae.Z.TextArea,K=O.Z.Option,Yt=function(L){var Se=(0,me.YB)(),ne=(0,me.tT)("@@initialState"),Ve=ne.initialState,Ee=Ve.currentUser,$=_.Z.useForm(),G=(0,o.Z)($,1),j=G[0],fe=_.Z.useForm(),qt=(0,o.Z)(fe,1),we=qt[0],en=(0,i.useState)(0),He=(0,o.Z)(en,2),Be=He[0],tn=He[1],nn=(0,i.useState)(""),$e=(0,o.Z)(nn,2),_e=$e[0],Ge=$e[1],an=(0,i.useState)(""),Je=(0,o.Z)(an,2),ze=Je[0],sn=Je[1],rn=(0,i.useState)(""),Ye=(0,o.Z)(rn,2),Qe=Ye[0],Xe=Ye[1],on=(0,i.useState)(!1),qe=(0,o.Z)(on,2),ln=qe[0],Ie=qe[1],un=(0,i.useState)(!0),et=(0,o.Z)(un,2),tt=et[0],dn=et[1],cn=(0,i.useState)(!1),nt=(0,o.Z)(cn,2),mn=nt[0],at=nt[1],pn=(0,i.useState)(!1),st=(0,o.Z)(pn,2),hn=st[0],rt=st[1],fn=(0,i.useState)([]),ot=(0,o.Z)(fn,2),it=ot[0],ve=ot[1],_n=(0,i.useState)([]),lt=(0,o.Z)(_n,2),ut=lt[0],ge=lt[1],vn=(0,i.useState)(""),dt=(0,o.Z)(vn,2),D=dt[0],je=dt[1],gn=(0,i.useState)(!1),ct=(0,o.Z)(gn,2),ee=ct[0],be=ct[1],jn=(0,i.useState)(!1),mt=(0,o.Z)(jn,2),te=mt[0],De=mt[1],Cn=(0,i.useState)(""),pt=(0,o.Z)(Cn,2),xn=pt[0],Oe=pt[1],yn=(0,i.useState)(""),ht=(0,o.Z)(yn,2),An=ht[0],Me=ht[1],Zn=(0,i.useState)(""),ft=(0,o.Z)(Zn,2),Sn=ft[0],Pe=ft[1],En=(0,i.useState)(""),_t=(0,o.Z)(En,2),wn=_t[0],Le=_t[1],Ce=Ke().useRef(null),xe=Ke().useRef(null),Bn=(0,i.useState)(!1),vt=(0,o.Z)(Bn,2),In=vt[0],ye=vt[1],bn=(0,i.useState)([]),gt=(0,o.Z)(bn,2),Ne=gt[0],Dn=gt[1],On=(0,i.useState)(1),jt=(0,o.Z)(On,2),Mn=jt[0],Ct=jt[1],Pn=(0,i.useState)(""),xt=(0,o.Z)(Pn,2),yt=xt[0],At=xt[1],Ln=(0,i.useState)(.7),Zt=(0,o.Z)(Ln,2),Nn=Zt[0],St=Zt[1],Tn=(0,i.useState)(0),Et=(0,o.Z)(Tn,2),da=Et[0],ca=Et[1],Fn=(0,i.useState)(""),wt=(0,o.Z)(Fn,2),Te=wt[0],Bt=wt[1],Rn=(0,i.useState)(1),It=(0,o.Z)(Rn,2),kn=It[0],bt
1=It[1],Wn=(0,i.useState)(""),Dt=(0,o.Z)(Wn,2),Ot=Dt[0],Kn=Dt[1],Un=(0,i.useState)(.7),Mt=(0,o.Z)(Un,2),Vn=Mt[0],Pt=Mt[1],Hn=(0,i.useState)(0),Lt=(0,o.Z)(Hn,2),Fe=Lt[0],$n=Lt[1],Gn=(0,i.useState)(""),Nt=(0,o.Z)(Gn,2),Jn=Nt[0],Tt=Nt[1],zn=(0,i.useState)(!1),Ft=(0,o.Z)(zn,2),Yn=Ft[0],Qn=Ft[1],Xn=(0,i.useState)(!1),Rt=(0,o.Z)(Xn,2),qn=Rt[0],Re=Rt[1];(0,i.useEffect)(function(){var n=L.location.query.id?Number(L.location.query.id):0;n&&(tn(n),ea(n),ta(n))},[]),(0,i.useEffect)(function(){if(Fe&&Yn){var n=Ne.find(function(y){return y.version===Fe}),a=n.model,l=n.system_prompt,r=n.temperature;j.setFieldsValue({modelB:a,temperatureB:r,system_promptB:l}),bt(a),Pt(r),Tt(l)}},[Fe]);var ea=function(a){rt(!0),fetch(P.hW+"/prompt/".concat(a),{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(l){return l.json()}).then(function(l){if(l.code===0){var r=l.data;Ge(r.name),sn(r.prompt_key),Xe(r.description),j.setFieldsValue({versionA:r.version,modelA:r.model,toolA:r.tool,temperatureA:r.temperature,system_promptA:r.system_prompt}),Ct(r.model),At(r.tool),St(r.temperature),Bt(r.system_prompt)}}).finally(function(){rt(!1),Qn(!0)})},ta=function(a){fetch(P.hW+"/prompt/".concat(a,"/versions"),{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(l){return l.json()}).then(function(l){if(l.code===0){var r=l.data.sort(function(y,S){return S.create_time-y.create_time});Dn(r)}})},na=function(){Ut(),ve([]),ge([]),je(""),Oe(""),Me(""),Pe(""),Le("")},aa=function(){we.setFieldsValue({update_type:"draft",note:void 0}),Re(!0)},sa=function(a){if(!mn){if(!_e||!_e.trim()){B.default.warning("\u8BF7\u68C0\u67E5\u63D0\u793A\u8BCD\u540D\u79F0\uFF01");return}j.validateFields(["modelB","temperatureB","system_promptB"]).then(function(l){var r={id:0,name:_e,prompt_key:ze,description:Qe,model:l.modelB,tool:l.toolB,temperature:l.temperatureB,system_prompt:l.system_promptB,status:0,create_time:0,lastmodify:0};if(at(!0),Be){var y=a.update_type,S=a.note;r.id=Be,r.update_type=y,r.note=S,fetch(P.hW+"/prompt/update",{method:"POST",body:JSON.stringify(r),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(Z){return Z.json()}).then(function(Z){Z.code===0?(B.default.success("Updating prompt is successful!"),kt()):B.default.success("Updating prompt is failure!")}).catch(function(Z){B.default.success("Updating prompt is failure!")}).finally(function(){at(!1)})}}).catch(function(l){Re(!1),ye(!0)})}},ra=function(a){(0,M.hj)(a.modelA)&&Ct(a.modelA),(0,M.hj)(a.modelB)&&bt(a.modelB),(0,M.hj)(a.versionB)&&$n(a.versionB),Object.keys(a).find(function(l){return l==="toolA"})&&At(a.toolA),Object.keys(a).find(function(l){return l==="toolB"})&&Kn(a.toolB),(0,M.hj)(a.temperatureA)&&St(a.temperatureA),(0,M.hj)(a.temperatureB)&&Pt(a.temperatureB),a.system_promptA&&Bt(a.system_promptA),a.system_promptB&&Tt(a.system_promptB)},kt=function(){window.location.hostname==="dash.engageminds.ai"?me.m8.push({pathname:"/agent/prompt",query:{pid:Ee.shortToken}}):me.m8.push({pathname:"/agent/prompt"})},Wt=function(){if(!(!D||!D.trim())){if(!Te||!Te){B.default.warning("\u8BF7\u68C0\u67E5\u63D0\u793A\u8BCD\uFF01"),ye(!0);return}tt&&oa(),Kt(),je("")}},oa=function(){var n=(0,w.Z)(W().mark(function a(){var l,r,y,S,Z,ae,se,N,J,T;return W().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l={query:D,model:Mn,temperature:Nn,system_prompt:Te},yt&&(l.tool=yt),r=[].concat((0,E.Z)(it),[{id:(0,M.Fs)(),type:0,answer:D},{id:(0,M.Fs)(),type:1,answer:""}]),ve((0,E.Z)(r)),y="",S="",be(!0),Ce.current=new AbortController,c.prev=8,T=function(){return T=(0,w.Z)(W().mark(function We(){var z,re,oe,Y,I,ie,Q,le;return W().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,ae.read();case 3:if(z=d.sent,re=z.done,oe=z.value,!re){d.next=12;break}return be(!1),S&&(r[r.length-1].reason=S,Pe("")),y&&(r[r.length-1].answer=y,Oe("")),ve((0,E.Z)(r)),d.abrupt("return");case 12:N+=se.decode(oe,{stream:!0}),Y=N.split(`
2`),N=Y.pop(),I=(0,f.Z)(Y);try{for(I.s();!(ie=I.n()).done;)if(Q=ie.value,Q.startsWith("data:")){le=Q.slice(5);try{(function(){var b=JSON.parse(le),ue=b.type,F=b.value;ue==="chat.delta.reasoning"&&(S+=F,Pe(function(X){return X+F})),ue==="chat.delta"&&(y+=F,Oe(function(X){return X+F}))})()}catch(b){}}}catch(b){I.e(b)}finally{I.f()}return d.abrupt("return",J());case 20:d.prev=20,d.t0=d.catch(0);case 22:case"end":return d.stop()}},We,null,[[0,20]])})),T.apply(this,arguments)},J=function(){return T.apply(this,arguments)},c.next=13,fetch(P.hW+"/mock/chat",{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json",Accept:"text/event-stream"},signal:Ce.current.signal});case 13:if(Z=c.sent,Z.ok){c.next=18;break}throw new Error("HTTP error! status: ".concat(Z.status));case 18:return ae=Z.body.getReader(),se=new TextDecoder("utf-8"),N="",c.abrupt("return",J());case 24:c.prev=24,c.t0=c.catch(8);case 26:case"end":return c.stop()}},a,null,[[8,24]])}));return function(){return n.apply(this,arguments)}}(),Kt=function(){var n=(0,w.Z)(W().mark(function a(){var l,r,y,S,Z,ae,se,N,J,T;return W().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l={query:D,model:kn,temperature:Vn,system_prompt:Jn},Ot&&(l.tool=Ot),r=[].concat((0,E.Z)(ut),[{id:(0,M.Fs)(),type:0,answer:D},{id:(0,M.Fs)(),type:1,answer:""}
2]),ge((0,E.Z)(r)),y="",S="",De(!0),xe.current=new AbortController,c.prev=8,T=function(){return T=(0,w.Z)(W().mark(function We(){var z,re,oe,Y,I,ie,Q,le;return W().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,ae.read();case 3:if(z=d.sent,re=z.done,oe=z.value,!re){d.next=12;break}return De(!1),S&&(r[r.length-1].reason=S,Le("")),y&&(r[r.length-1].answer=y,Me("")),ge((0,E.Z)(r)),d.abrupt("return");case 12:N+=se.decode(oe,{stream:!0}),Y=N.split(`
3`),N=Y.pop(),I=(0,f.Z)(Y);try{for(I.s();!(ie=I.n()).done;)if(Q=ie.value,Q.startsWith("data:")){le=Q.slice(5);try{(function(){var b=JSON.parse(le),ue=b.type,F=b.value;ue==="chat.delta.reasoning"&&(S+=F,Le(function(X){return X+F})),ue==="chat.delta"&&(y+=F,Me(function(X){return X+F}))})()}catch(b){}}}catch(b){I.e(b)}finally{I.f()}return d.abrupt("return",J());case 20:d.prev=20,d.t0=d.catch(0);case 22:case"end":return d.stop()}},We,null,[[0,20]])})),T.apply(this,arguments)},J=function(){return T.apply(this,arguments)},c.next=13,fetch(P.hW+"/mock/chat",{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json",Accept:"text/event-stream"},signal:xe.current.signal});case 13:if(Z=c.sent,Z.ok){c.next=18;break}throw new Error("HTTP error! status: ".concat(Z.status));case 18:return ae=Z.body.getReader(),se=new TextDecoder("utf-8"),N="",c.abrupt("return",J());case 24:c.prev=24,c.t0=c.catch(8);case 26:case"end":return c.stop()}},a,null,[[8,24]])}));return function(){return n.apply(this,arguments)}}(),Ut=function(){Ce.current&&Ce.current.abort(),xe.current&&xe.current.abort(),be(!1),De(!1)};return(0,e.jsx)(g.Z,{spinning:hn,children:(0,e.jsxs)("div",{className:"ai-edit-prompt",children:[(0,e.jsx)(q.Z,{title:"\u9009\u62E9\u4FDD\u5B58\u65B9\u5F0F\u53CA\u4F7F\u7528\u7248\u672C",open:qn,onOk:function(){we.validateFields().then(function(a){sa({update_type:a.update_type,note:a.note})})},onCancel:function(){Re(!1)},wrapClassName:"edit-prompt-version-modal",children:(0,e.jsxs)(_.Z,{form:we,colon:!1,children:[(0,e.jsx)(_.Z.Item,{name:"update_type",children:(0,e.jsxs)(O.Z,{children:[(0,e.jsx)(K,{value:"update",children:"\u521B\u5EFA\u65B0\u7248\u672C\uFF0C\u4E14\u66F4\u65B0\u4F7F\u7528\u7248\u672C"}),(0,e.jsx)(K,{value:"draft",children:"\u4EC5\u521B\u5EFA\u65B0\u7248\u672C\uFF0C\u4E0D\u66F4\u65B0\u4F7F\u7528\u7248\u672C"})]})}),(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"\u5907\u6CE8"}),name:"note",rules:[{required:!0,message:"\u5907\u6CE8\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,e.jsx)(Ae.Z,{style:{width:"100%"}})})]})}),(0,e.jsx)(q.Z,{title:"\u63CF\u8FF0",open:ln,onOk:function(){Ie(!1)},onCancel:function(){Ie(!1)},closable:!1,maskClosable:!1,cancelButtonProps:{style:{display:"none"}},children:(0,e.jsx)(he,{value:Qe,onChange:function(a){return Xe(a.target.value)},rows:4,style:{width:"100%"}})}),(0,e.jsx)(h.Z,{title:"",placement:"bottom",closable:!1,onClose:function(){ye(!1)},open:In,forceRender:!0,className:"edit-prompt-drawer",children:(0,e.jsx)(_.Z,{form:j,layout:"vertical",colon:!1,onValuesChange:ra,children:(0,e.jsxs)("div",{className:"epd-container",children:[(0,e.jsxs)("div",{className:"config-box configA-box",children:[(0,e.jsxs)("div",{className:"mode-box",children:[(0,e.jsx)(_.Z.Item,{label:"\u63D0\u793A\u8BCD\u7248\u672C",name:"versionA",children:(0,e.jsx)(O.Z,{style:{width:300},disabled:!0,children:Ne.map(function(n){return(0,e.jsx)(K,{value:n.version,children:n.version+"-"+(n.note||"")},n.version)})})}),(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"\u9009\u62E9\u6A21\u578B"}),name:"modelA",children:(0,e.jsx)(O.Z,{style:{width:300},disabled:!0,children:P.Yn.map(function(n){return(0,e.jsx)(K,{value:n.id,children:n.name},n.id)})})}),(0,e.jsx)(_.Z.Item,{label:"\u5DE5\u5177",name:"toolA",children:(0,e.jsx)(O.Z,{style:{width:300},allowClear:!0,children:P.fH.map(function(n){return(0,e.jsx)(K,{value:n,children:n},n)})})}),(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"Temperature"}),name:"temperatureA",rules:[{required:!0,message:"\u8BF7\u8F93\u5165Temperature"}],children:(0,e.jsx)(U.Z,{placeholder:"0 ~ 1",style:{width:300},disabled:!0})})]}),(0,e.jsx)("div",{className:"word-box",children:(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"\u63D0\u793A\u8BCD"}),name:"system_promptA",rules:[{required:!0,message:"\u63D0\u793A\u8BCD\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,e.jsx)(he,{style:{width:"100%"},rows:13,disabled:!0})})})]}),(0,e.jsxs)("div",{className:"config-box configB-box",children:[(0,e.jsxs)("div",{className:"mode-box",children:[(0,e.jsx)(_.Z.Item,{label:"\u63D0\u793A\u8BCD\u7248\u672C",name:"versionB",children:(0,e.jsx)(O.Z,{style:{width:300},children:Ne.map(function(n){return(0,e.jsx)(K,{value:n.version,children:n.version+"-"+(n.note||"")},n.version)})})}),(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"\u9009\u62E9\u6A21\u578B"}),name:"modelB",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6A21\u578B"}],children:(0,e.jsx)(O.Z,{style:{width:300},children:P.Yn.map(function(n){return(0,e.jsx)(K,{value:n.id,children:n.name},n.id)})})}),(0,e.jsx)(_.Z.Item,{label:"\u5DE5\u5177",name:"toolB",children:(0,e.jsx)(O.Z,{style:{width:300},allowClear:!0,children:P.fH.map(function(n){return(0,e.jsx)(K,{value:n,children:n},n)})})}),(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"Temperature"}),name:"temperatureB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165Temperature"}],children:(0,e.jsx)(U.Z,{placeholder:"0 ~ 1",style:{width:300}})})]}),(0,e.jsx)("div",{className:"word-box",children:(0,e.jsx)(_.Z.Item,{label:(0,e.jsx)(H.Z,{title:"\u63D0\u793A\u8BCD"}),name:"system_promptB",rules:[{required:!0,message:"\u63D0\u793A\u8BCD\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,e.jsx)(he,{style:{width:"100%"},rows:13})})})]})]})})}),(0,e.jsxs)("div",{className:"cc-top-bar",children:[(0,e.jsxs)("div",{className:"top-bar-left",children:[(0,e.jsxs)("div",{className:"bar-input",children:[(0,e.jsx)("div",{className:"label",children:"\u63D0\u793A\u8BCD\u540D\u79F0"}),(0,e.jsx)("div",{className:"input-box",children:(0,e.jsx)(Ae.Z,{value:_e,onChange:function(a){return Ge(a.target.value)},style:{width:304},showCount:!0,maxLength:100})})]}),(0,e.jsx)("div",{className:"bar-input",children:(0,e.jsxs)("div",{className:"label",style:{color:"#999999"},children:["Prompt Key: ",ze]})}),(0,e.jsx)("div",{className:"bar-input",children:(0,e.jsxs)("div",{className:"label",style:{cursor:"pointer"},onClick:function(){Ie(!0)},children:[(0,e.jsx)("span",{style:{marginRight:4},children:"\u63CF\u8FF0"}),(0,e.jsx)(Jt.Z,{fillColor:"#333333"})]})})]}),(0,e.jsxs)("div",{className:"top-bar-right",children:[(0,e.jsxs)(x.Z,{type:"primary",ghost:!0,onClick:na,style:{marginRight:8},children:[(0,e.jsx)(Ht.Z,{}),"\u5237\u65B0"]}),(0,e.jsx)(x.Z,{type:"primary",ghost:!0,style:{marginRight:8},onClick:kt,children:"\u8FD4\u56DE"}),(0,e.jsx)(x.Z,{type:"primary",onClick:function(){Be&&aa()},children:"\u63D0\u4EA4\u65B0\u7248\u672C"})]})]}),(0,e.jsxs)("div",{className:"cc-content",children:[(0,e.jsx)(Ue,{type:"A",convArr:it,setConvArr:ve,aiAnswering:ee,realTimeAnswer:xn,realReasonAnswer:Sn}),(0,e.jsx)(Ue,{type:"B",convArr:ut,setConvArr:ge,aiAnswering:te,realTimeAnswer:An,realReasonAnswer:wn})]}),(0,e.jsxs)("div",{className:"cc-bottom-bar",children:[(0,e.jsx)("div",{className:"bottom-input",children:(0,e.jsxs)("div",{className:"input-file-box",children:[(0,e.jsx)("div",{className:"input-box",children:(0,e.jsx)(he,{bordered:!1,value:D,onChange:function(a){return je(a.target.value)},onKeyDown:function(a){var l=a.nativeEvent.isComposing;a.key==="Enter"&&l?a.preventDefault():a.key==="Enter"&&a.ctrlKey?(a.preventDefault(),je(D+`
4`)):a.key==="Enter"&&!a.ctrlKey&&!ee&&!te&&(a.preventDefault(),Wt())},autoSize:{minRows:2,maxRows:3},style:{width:"100%",resize:"none",fontSize:"16px"},placeholder:"Ask for EM Chat"})}),(0,e.jsxs)("div",{className:"input-btn-box",children:[(0,e.jsx)("div",{className:"left-box",children:(0,e.jsx)("div",{className:"mode-check",children:(0,e.jsx)(C.Z,{checked:tt,onChange:function(a){dn(a.target.checked)},children:"\u8FD0\u884C\u5BF9\u7167\u7248\u672C\u548C\u4F7F\u7528\u7248\u672C"})})}),(0,e.jsx)("div",{className:"right-box",children:(0,e.jsx)("div",{className:D||ee||te?"input-icon input-icon-light":"input-icon",onClick:function(){D&&!ee&&!te?Wt():(ee||te)&&Ut()},children:ee||te?(0,e.jsx)($t.Z,{fillColor1:"#6149E9",fillColor2:"#FFFFFF"}):(0,e.jsx)(Gt.Z,{})})})]})]})}),(0,e.jsx)("div",{className:"bottom-setting",onClick:function(){return ye(!0)},children:"\u63D0\u793A\u8BCD\u914D\u7F6E"})]})]})})},Qt=Yt},81332:function(R,v,t){"use strict";t.d(v,{hW:function(){return m},Yn:function(){return g},fH:function(){return s}});var m=window.location.hostname==="dash.engageminds.ai"?"https://agent-backend.engageminds.ai":"https://agent-backend.im5v.com",g=[{id:1,name:"gpt-4.1"},{id:2,name:"gpt-4.1-mini"},{id:3,name:"gpt-4.1-nano"},{id:4,name:"gpt-4o"},{id:5,name:"gpt-4o-mini"},{id:6,name:"deepseek-v3"},{id:7,name:"deepseek-r1"}],s=["google_play_rank_agent","google_play_event_agent","google_play_review_agent","google_play_toprank_agent","google_play_app_history_agent","google_play_market_size_agent","google_play_usage_app_history_agent","google_play_user_retention_agent","google_play_cross_app_agent","google_play_app_demographics_agent","google_play_usage_top_agent","ios_rank_agent","ios_event_agent","ios_review_agent","ios_toprank_agent","ios_app_history_agent","ios_market_size_agent","ios_usage_app_history_agent","ios_user_retention_agent","ios_cross_app_agent","ios_app_demographics_agent","ios_usage_top_agent"]}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.