import{f as e,k as t,r as n,j as r,w as a,l as o,h as i,m as l,t as s,n as u,q as c,s as d,v as f,x as p,E as h,o as v,y as g,b as m,c as y,d as w,e as b,F as _,z as k,A as x,B as I,C as A,D as S,u as T,G as C,H as E,I as z,J as P,K as L,L as D,M as j,N as F,O,P as R,Q as W,R as U,S as M,T as $,U as N,V as B,W as H,X as V,Y as q}from"./index-909bd241.js";import{s as Y}from"./setHeight-96dcefe6.js";import{u as G}from"./userPessionCode-0483d378.js";import{u as J}from"./chat-822ca9b3.js";import{u as K}from"./dataList-d4e4724b.js";import{m as Z}from"./marked.esm-cf4f21f5.js";import{h as X,v as Q,a as ee,t as te,b as ne,g as re,u as ae,A as oe}from"./AiEmotion-8591532a.js";import{k as ie,A as le}from"./AIfind-86223a8b.js";import{e as se}from"./marketTemperature-7b8efb57.js";import{h as ue}from"./moment-6961f857.js";import{_ as ce}from"./plugin-vue_export-helper-46f75680.js";import de from"./Feedback-9742dc74.js";import fe from"./Announcement-b6aca3c4.js";import"./index-31762c78.js";import"./emoEnergyConverter-3c4902e7.js";import"./back-9e899973.js";const pe=e("audio",{state:()=>({soundInstance:null,isPlaying:!1,isVoiceEnabled:!0,playbackPosition:0,lastVoiceState:null,ttsUrl:"",isNewInstance:!1,nowSound:"",currentAudioUrl:"",isPaused:!1,duration:0}),actions:{setAudioInstance(e){this.soundInstance=e},play(){this.soundInstance&&(this.isPaused&&this.playbackPosition>0&&this.soundInstance.seek(this.playbackPosition),this.soundInstance.play(),this.isPlaying=!0,this.isPaused=!1)},pause(){this.soundInstance&&this.isPlaying&&(this.playbackPosition=this.soundInstance.seek()||0,this.soundInstance.pause(),this.isPlaying=!1,this.isPaused=!0)},stop(){this.soundInstance&&(this.soundInstance.stop(),this.isPlaying=!1,this.isPaused=!1,this.playbackPosition=0)},togglePlayPause(){this.isPlaying?this.pause():this.play()},setCurrentAudioUrl(e){this.currentAudioUrl!==e&&(this.stop(),this.currentAudioUrl=e,this.playbackPosition=0,this.isPaused=!1)},toggleVoice(){this.isVoiceEnabled=!this.isVoiceEnabled,this.isVoiceEnabled||this.stop()},resetAudioState(){this.stop(),this.currentAudioUrl="",this.ttsUrl="",this.soundInstance=null,this.nowSound=""}}});var he,ve,ge={exports:{}}; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */he=ge,ve=ge.exports,function(){var e,n="Expected a function",r="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,i=32,l=64,s=128,u=256,c=1/0,d=9007199254740991,f=NaN,p=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",l],["rearg",u]],v="[object Arguments]",g="[object Array]",m="[object Boolean]",y="[object Date]",w="[object Error]",b="[object Function]",_="[object GeneratorFunction]",k="[object Map]",x="[object Number]",I="[object Object]",A="[object Promise]",S="[object RegExp]",T="[object Set]",C="[object String]",E="[object Symbol]",z="[object WeakMap]",P="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",j="[object Float64Array]",F="[object Int8Array]",O="[object Int16Array]",R="[object Int32Array]",W="[object Uint8Array]",U="[object Uint8ClampedArray]",M="[object Uint16Array]",$="[object Uint32Array]",N=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Y=RegExp(V.source),G=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ae=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ie="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ee="['’]",ze="[\\ud800-\\udfff]",Pe="["+Ce+"]",Le="["+xe+"]",De="\\d+",je="[\\u2700-\\u27bf]",Fe="["+Ae+"]",Oe="[^\\ud800-\\udfff"+Ce+De+Ie+Ae+Se+"]",Re="\\ud83c[\\udffb-\\udfff]",We="[^\\ud800-\\udfff]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Se+"]",Ne="(?:"+Fe+"|"+Oe+")",Be="(?:"+$e+"|"+Oe+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Le+"|"+Re+")?",Ye="[\\ufe0e\\ufe0f]?",Ge=Ye+qe+"(?:\\u200d(?:"+[We,Ue,Me].join("|")+")"+Ye+qe+")*",Je="(?:"+[je,Ue,Me].join("|")+")"+Ge,Ke="(?:"+[We+Le+"?",Le,Ue,Me,ze].join("|")+")",Ze=RegExp(Ee,"g"),Xe=RegExp(Le,"g"),Qe=RegExp(Re+"(?="+Re+")|"+Ke+Ge,"g"),et=RegExp([$e+"?"+Fe+"+"+He+"(?="+[Pe,$e,"$"].join("|")+")",Be+"+"+Ve+"(?="+[Pe,$e+Ne,"$"].join("|")+")",$e+"?"+Ne+"+"+He,$e+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),tt=RegExp("[\\u200d\\ud800-\\udfff"+xe+Te+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ot={};ot[D]=ot[j]=ot[F]=ot[O]=ot[R]=ot[W]=ot[U]=ot[M]=ot[$]=!0,ot[v]=ot[g]=ot[P]=ot[m]=ot[L]=ot[y]=ot[w]=ot[b]=ot[k]=ot[x]=ot[I]=ot[S]=ot[T]=ot[C]=ot[z]=!1;var it={};it[v]=it[g]=it[P]=it[L]=it[m]=it[y]=it[D]=it[j]=it[F]=it[O]=it[R]=it[k]=it[x]=it[I]=it[S]=it[T]=it[C]=it[E]=it[W]=it[U]=it[M]=it[$]=!0,it[w]=it[b]=it[z]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof t&&t&&t.Object===Object&&t,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||dt||Function("return this")(),pt=ve&&!ve.nodeType&&ve,ht=pt&&he&&!he.nodeType&&he,vt=ht&&ht.exports===pt,gt=vt&&ct.process,mt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||gt&>.binding&>.binding("util")}catch(t){}}(),yt=mt&&mt.isArrayBuffer,wt=mt&&mt.isDate,bt=mt&&mt.isMap,_t=mt&&mt.isRegExp,kt=mt&&mt.isSet,xt=mt&&mt.isTypedArray;function It(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a-1}function Pt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function en(e,t){for(var n=e.length;n--&&Mt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var nn=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function on(e){return tt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),vn=function t(ae){var he,ve=(ae=null==ae?ft:vn.defaults(ft.Object(),ae,vn.pick(ft,rt))).Array,xe=ae.Date,Ie=ae.Error,Ae=ae.Function,Se=ae.Math,Te=ae.Object,Ce=ae.RegExp,Ee=ae.String,ze=ae.TypeError,Pe=ve.prototype,Le=Ae.prototype,De=Te.prototype,je=ae["__core-js_shared__"],Fe=Le.toString,Oe=De.hasOwnProperty,Re=0,We=(he=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+he:"",Ue=De.toString,Me=Fe.call(Te),$e=ft._,Ne=Ce("^"+Fe.call(Oe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=vt?ae.Buffer:e,He=ae.Symbol,Ve=ae.Uint8Array,qe=Be?Be.allocUnsafe:e,Ye=sn(Te.getPrototypeOf,Te),Ge=Te.create,Je=De.propertyIsEnumerable,Ke=Pe.splice,Qe=He?He.isConcatSpreadable:e,tt=He?He.iterator:e,lt=He?He.toStringTag:e,ct=function(){try{var e=po(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),dt=ae.clearTimeout!==ft.clearTimeout&&ae.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,ht=ae.setTimeout!==ft.setTimeout&&ae.setTimeout,gt=Se.ceil,mt=Se.floor,Rt=Te.getOwnPropertySymbols,Vt=Be?Be.isBuffer:e,gn=ae.isFinite,mn=Pe.join,yn=sn(Te.keys,Te),wn=Se.max,bn=Se.min,_n=xe.now,kn=ae.parseInt,xn=Se.random,In=Pe.reverse,An=po(ae,"DataView"),Sn=po(ae,"Map"),Tn=po(ae,"Promise"),Cn=po(ae,"Set"),En=po(ae,"WeakMap"),zn=po(Te,"create"),Pn=En&&new En,Ln={},Dn=Bo(An),jn=Bo(Sn),Fn=Bo(Tn),On=Bo(Cn),Rn=Bo(En),Wn=He?He.prototype:e,Un=Wn?Wn.valueOf:e,Mn=Wn?Wn.toString:e;function $n(e){if(il(e)&&!Ji(e)&&!(e instanceof Vn)){if(e instanceof Hn)return e;if(Oe.call(e,"__wrapped__"))return Ho(e)}return new Hn(e)}var Nn=function(){function t(){}return function(n){if(!ol(n))return{};if(Ge)return Ge(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Bn(){}function Hn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n?t:n)),t}function ur(t,n,r,a,o,i){var l,s=1&n,u=2&n,c=4&n;if(r&&(l=o?r(t,a,o,i):r(t)),l!==e)return l;if(!ol(t))return t;var d=Ji(t);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!s)return za(t,l)}else{var f=go(t),p=f==b||f==_;if(Qi(t))return Ia(t,s);if(f==I||f==v||p&&!o){if(l=u||p?{}:yo(t),!s)return u?function(e,t){return Pa(e,vo(e),t)}(t,function(e,t){return e&&Pa(t,Rl(t),e)}(l,t)):function(e,t){return Pa(e,ho(e),t)}(t,or(l,t))}else{if(!it[f])return o?t:{};l=function(e,t,n){var r,a=e.constructor;switch(t){case P:return Aa(e);case m:case y:return new a(+e);case L:return function(e,t){var n=t?Aa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case j:case F:case O:case R:case W:case U:case M:case $:return Sa(e,n);case k:return new a;case x:case C:return new a(e);case S:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new a;case E:return r=e,Un?Te(Un.call(r)):{}}}(t,f,s)}}i||(i=new Kn);var h=i.get(t);if(h)return h;i.set(t,l),dl(t)?t.forEach((function(e){l.add(ur(e,n,r,e,t,i))})):ll(t)&&t.forEach((function(e,a){l.set(a,ur(e,n,r,a,t,i))}));var g=d?e:(c?u?oo:ao:u?Rl:Ol)(t);return St(g||t,(function(e,a){g&&(e=t[a=e]),nr(l,a,ur(e,n,r,a,t,i))})),l}function cr(t,n,r){var a=r.length;if(null==t)return!a;for(t=Te(t);a--;){var o=r[a],i=n[o],l=t[o];if(l===e&&!(o in t)||!i(l))return!1}return!0}function dr(t,r,a){if("function"!=typeof t)throw new ze(n);return Do((function(){t.apply(e,a)}),r)}function fr(e,t,n,r){var a=-1,o=zt,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=Lt(t,Kt(n))),r?(o=Pt,i=!1):t.length>=200&&(o=Xt,i=!1,t=new Jn(t));e:for(;++a-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Sn||Yn),string:new qn}},Gn.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return co(this,e).get(e)},Gn.prototype.has=function(e){return co(this,e).has(e)},Gn.prototype.set=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(e){return this.__data__.set(e,r),this},Jn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var pr=ja(_r),hr=ja(kr,!0);function vr(e,t){var n=!0;return pr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function gr(t,n,r){for(var a=-1,o=t.length;++a0&&n(l)?t>1?yr(l,t-1,n,r,a):Dt(a,l):r||(a[a.length]=l)}return a}var wr=Fa(),br=Fa(!0);function _r(e,t){return e&&wr(e,t,Ol)}function kr(e,t){return e&&br(e,t,Ol)}function xr(e,t){return Et(t,(function(t){return nl(e[t])}))}function Ir(t,n){for(var r=0,a=(n=ba(n,t)).length;null!=t&&rt}function Cr(e,t){return null!=e&&Oe.call(e,t)}function Er(e,t){return null!=e&&t in Te(e)}function zr(t,n,r){for(var a=r?Pt:zt,o=t[0].length,i=t.length,l=i,s=ve(i),u=1/0,c=[];l--;){var d=t[l];l&&n&&(d=Lt(d,Kt(n))),u=bn(d.length,u),s[l]=!r&&(n||o>=120&&d.length>=120)?new Jn(l&&d):e}d=t[0];var f=-1,p=s[0];e:for(;++f=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,a=t.length,o={};++r-1;)l!==e&&Ke.call(l,s,1),Ke.call(e,s,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;bo(a)?Ke.call(e,a,1):fa(e,a)}}return e}function Jr(e,t){return e+mt(xn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return jo(Co(e,t,ss),e+"")}function Xr(e){return Xn(Vl(e))}function Qr(e,t){var n=Vl(e);return Ro(n,sr(t,0,n.length))}function ea(t,n,r,a){if(!ol(t))return t;for(var o=-1,i=(n=ba(n,t)).length,l=i-1,s=t;null!=s&&++oa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=ve(a);++r>>1,i=e[o];null!==i&&!pl(i)&&(n?i<=t:i=200){var u=t?null:Ka(e);if(u)return cn(u);i=!1,a=Xt,s=new Jn}else s=t?[]:l;e:for(;++r=a?t:aa(t,n,r)}var xa=dt||function(e){return ft.clearTimeout(e)};function Ia(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Aa(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Sa(e,t){var n=t?Aa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ta(t,n){if(t!==n){var r=t!==e,a=null===t,o=t==t,i=pl(t),l=n!==e,s=null===n,u=n==n,c=pl(n);if(!s&&!c&&!i&&t>n||i&&l&&u&&!s&&!c||a&&l&&u||!r&&u||!o)return 1;if(!a&&!i&&!c&&t1?r[o-1]:e,l=o>2?r[2]:e;for(i=t.length>3&&"function"==typeof i?(o--,i):e,l&&_o(r[0],r[1],l)&&(i=o<3?e:i,o=1),n=Te(n);++a-1?o[i?n[l]:l]:e}}function Ma(t){return ro((function(r){var a=r.length,o=a,i=Hn.prototype.thru;for(t&&r.reverse();o--;){var l=r[o];if("function"!=typeof l)throw new ze(n);if(i&&!s&&"wrapper"==lo(l))var s=new Hn([],!0)}for(o=s?o:a;++o1&&y.reverse(),f&&cs))return!1;var c=i.get(t),d=i.get(n);if(c&&d)return c==n&&d==t;var f=-1,p=!0,h=2&r?new Jn:e;for(i.set(t,n),i.set(n,t);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(h,(function(n){var r="_."+n[0];t&n[1]&&!zt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(le):[]}(r),n)))}function Oo(t){var n=0,r=0;return function(){var a=_n(),o=16-(a-r);if(r=a,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ro(t,n){var r=-1,a=t.length,o=a-1;for(n=n===e?a:n;++r1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,ci(t,r)}));function mi(e){var t=$n(e);return t.__chain__=!0,t}function yi(e,t){return t(e)}var wi=ro((function(t){var n=t.length,r=n?t[0]:0,a=this.__wrapped__,o=function(e){return lr(e,t)};return!(n>1||this.__actions__.length)&&a instanceof Vn&&bo(r)?((a=a.slice(r,+r+(n?1:0))).__actions__.push({func:yi,args:[o],thisArg:e}),new Hn(a,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(o)})),bi=La((function(e,t,n){Oe.call(e,n)?++e[n]:ir(e,n,1)})),_i=Ua(Go),ki=Ua(Jo);function xi(e,t){return(Ji(e)?St:pr)(e,uo(t,3))}function Ii(e,t){return(Ji(e)?Tt:hr)(e,uo(t,3))}var Ai=La((function(e,t,n){Oe.call(e,n)?e[n].push(t):ir(e,n,[t])})),Si=Zr((function(e,t,n){var r=-1,a="function"==typeof t,o=Zi(e)?ve(e.length):[];return pr(e,(function(e){o[++r]=a?It(t,e,n):Pr(e,t,n)})),o})),Ti=La((function(e,t,n){ir(e,n,t)}));function Ci(e,t){return(Ji(e)?Lt:Mr)(e,uo(t,3))}var Ei=La((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),zi=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_o(e,t[0],t[1])?t=[]:n>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])})),Pi=pt||function(){return ft.Date.now()};function Li(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Xa(t,s,e,e,e,e,n)}function Di(t,r){var a;if("function"!=typeof r)throw new ze(n);return t=wl(t),function(){return--t>0&&(a=r.apply(this,arguments)),t<=1&&(r=e),a}}var ji=Zr((function(e,t,n){var r=1;if(n.length){var a=un(n,so(ji));r|=i}return Xa(e,r,t,n,a)})),Fi=Zr((function(e,t,n){var r=3;if(n.length){var a=un(n,so(Fi));r|=i}return Xa(t,r,e,n,a)}));function Oi(t,r,a){var o,i,l,s,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof t)throw new ze(n);function v(n){var r=o,a=i;return o=i=e,d=n,s=t.apply(a,r)}function g(e){return d=e,u=Do(y,r),f?v(e):s}function m(t){var n=t-c;return c===e||n>=r||n<0||p&&t-d>=l}function y(){var e=Pi();if(m(e))return w(e);u=Do(y,function(e){var t=r-(e-c);return p?bn(t,l-(e-d)):t}(e))}function w(t){return u=e,h&&o?v(t):(o=i=e,s)}function b(){var t=Pi(),n=m(t);if(o=arguments,i=this,c=t,n){if(u===e)return g(c);if(p)return xa(u),u=Do(y,r),v(c)}return u===e&&(u=Do(y,r)),s}return r=_l(r)||0,ol(a)&&(f=!!a.leading,l=(p="maxWait"in a)?wn(_l(a.maxWait)||0,r):l,h="trailing"in a?!!a.trailing:h),b.cancel=function(){u!==e&&xa(u),d=0,o=c=i=u=e},b.flush=function(){return u===e?s:w(Pi())},b}var Ri=Zr((function(e,t){return dr(e,1,t)})),Wi=Zr((function(e,t,n){return dr(e,_l(t)||0,n)}));function Ui(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ze(n);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(Ui.Cache||Gn),r}function Mi(e){if("function"!=typeof e)throw new ze(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ui.Cache=Gn;var $i=_a((function(e,t){var n=(t=1==t.length&&Ji(t[0])?Lt(t[0],Kt(uo())):Lt(yr(t,1),Kt(uo()))).length;return Zr((function(r){for(var a=-1,o=bn(r.length,n);++a=t})),Gi=Lr(function(){return arguments}())?Lr:function(e){return il(e)&&Oe.call(e,"callee")&&!Je.call(e,"callee")},Ji=ve.isArray,Ki=yt?Kt(yt):function(e){return il(e)&&Sr(e)==P};function Zi(e){return null!=e&&al(e.length)&&!nl(e)}function Xi(e){return il(e)&&Zi(e)}var Qi=Vt||_s,el=wt?Kt(wt):function(e){return il(e)&&Sr(e)==y};function tl(e){if(!il(e))return!1;var t=Sr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ul(e)}function nl(e){if(!ol(e))return!1;var t=Sr(e);return t==b||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function rl(e){return"number"==typeof e&&e==wl(e)}function al(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ol(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function il(e){return null!=e&&"object"==typeof e}var ll=bt?Kt(bt):function(e){return il(e)&&go(e)==k};function sl(e){return"number"==typeof e||il(e)&&Sr(e)==x}function ul(e){if(!il(e)||Sr(e)!=I)return!1;var t=Ye(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Fe.call(n)==Me}var cl=_t?Kt(_t):function(e){return il(e)&&Sr(e)==S},dl=kt?Kt(kt):function(e){return il(e)&&go(e)==T};function fl(e){return"string"==typeof e||!Ji(e)&&il(e)&&Sr(e)==C}function pl(e){return"symbol"==typeof e||il(e)&&Sr(e)==E}var hl=xt?Kt(xt):function(e){return il(e)&&al(e.length)&&!!ot[Sr(e)]},vl=Ya(Ur),gl=Ya((function(e,t){return e<=t}));function ml(e){if(!e)return[];if(Zi(e))return fl(e)?fn(e):za(e);if(tt&&e[tt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tt]());var t=go(e);return(t==k?ln:t==T?cn:Vl)(e)}function yl(e){return e?(e=_l(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function wl(e){var t=yl(e),n=t%1;return t==t?n?t-n:t:0}function bl(e){return e?sr(wl(e),0,p):0}function _l(e){if("number"==typeof e)return e;if(pl(e))return f;if(ol(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ol(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):pe.test(e)?f:+e}function kl(e){return Pa(e,Rl(e))}function xl(e){return null==e?"":ca(e)}var Il=Da((function(e,t){if(Ao(t)||Zi(t))Pa(t,Ol(t),e);else for(var n in t)Oe.call(t,n)&&nr(e,n,t[n])})),Al=Da((function(e,t){Pa(t,Rl(t),e)})),Sl=Da((function(e,t,n,r){Pa(t,Rl(t),e,r)})),Tl=Da((function(e,t,n,r){Pa(t,Ol(t),e,r)})),Cl=ro(lr),El=Zr((function(t,n){t=Te(t);var r=-1,a=n.length,o=a>2?n[2]:e;for(o&&_o(n[0],n[1],o)&&(a=1);++r1),t})),Pa(e,oo(e),n),r&&(n=ur(n,7,to));for(var a=t.length;a--;)fa(n,t[a]);return n})),$l=ro((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Ll(e,n)}))}(e,t)}));function Nl(e,t){if(null==e)return{};var n=Lt(oo(e),(function(e){return[e]}));return t=uo(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Bl=Za(Ol),Hl=Za(Rl);function Vl(e){return null==e?[]:Zt(e,Ol(e))}var ql=Ra((function(e,t,n){return t=t.toLowerCase(),e+(n?Yl(t):t)}));function Yl(e){return ts(xl(e).toLowerCase())}function Gl(e){return(e=xl(e))&&e.replace(be,nn).replace(Xe,"")}var Jl=Ra((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Kl=Ra((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Zl=Oa("toLowerCase"),Xl=Ra((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ql=Ra((function(e,t,n){return e+(n?" ":"")+ts(t)})),es=Ra((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),ts=Oa("toUpperCase");function ns(t,n,r){return t=xl(t),(n=r?e:n)===e?function(e){return nt.test(e)}(t)?function(e){return e.match(et)||[]}(t):function(e){return e.match(se)||[]}(t):t.match(n)||[]}var rs=Zr((function(t,n){try{return It(t,e,n)}catch(r){return tl(r)?r:new Ie(r)}})),as=ro((function(e,t){return St(t,(function(t){t=No(t),ir(e,t,ji(e[t],e))})),e}));function os(e){return function(){return e}}var is=Ma(),ls=Ma(!0);function ss(e){return e}function us(e){return Or("function"==typeof e?e:ur(e,1))}var cs=Zr((function(e,t){return function(n){return Pr(n,e,t)}})),ds=Zr((function(e,t){return function(n){return Pr(e,n,t)}}));function fs(e,t,n){var r=Ol(t),a=xr(t,r);null!=n||ol(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=xr(t,Ol(t)));var o=!(ol(n)&&"chain"in n&&!n.chain),i=nl(e);return St(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=za(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function ps(){}var hs=Ha(Lt),vs=Ha(Ct),gs=Ha(Ot);function ms(e){return ko(e)?Ht(No(e)):function(e){return function(t){return Ir(t,e)}}(e)}var ys=qa(),ws=qa(!0);function bs(){return[]}function _s(){return!1}var ks,xs=Ba((function(e,t){return e+t}),0),Is=Ja("ceil"),As=Ba((function(e,t){return e/t}),1),Ss=Ja("floor"),Ts=Ba((function(e,t){return e*t}),1),Cs=Ja("round"),Es=Ba((function(e,t){return e-t}),0);return $n.after=function(e,t){if("function"!=typeof t)throw new ze(n);return e=wl(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Li,$n.assign=Il,$n.assignIn=Al,$n.assignInWith=Sl,$n.assignWith=Tl,$n.at=Cl,$n.before=Di,$n.bind=ji,$n.bindAll=as,$n.bindKey=Fi,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ji(e)?e:[e]},$n.chain=mi,$n.chunk=function(t,n,r){n=(r?_o(t,n,r):n===e)?1:wn(wl(n),0);var a=null==t?0:t.length;if(!a||n<1)return[];for(var o=0,i=0,l=ve(gt(a/n));oo?0:o+r),(a=a===e||a>o?o:wl(a))<0&&(a+=o),a=r>a?0:bl(a);r>>0)?(t=xl(t))&&("string"==typeof n||null!=n&&!cl(n))&&!(n=ca(n))&&on(t)?ka(fn(t),0,r):t.split(n,r):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new ze(n);return t=null==t?0:wn(wl(t),0),Zr((function(n){var r=n[t],a=ka(n,0,t);return r&&Dt(a,r),It(e,this,a)}))},$n.tail=function(e){var t=null==e?0:e.length;return t?aa(e,1,t):[]},$n.take=function(t,n,r){return t&&t.length?aa(t,0,(n=r||n===e?1:wl(n))<0?0:n):[]},$n.takeRight=function(t,n,r){var a=null==t?0:t.length;return a?aa(t,(n=a-(n=r||n===e?1:wl(n)))<0?0:n,a):[]},$n.takeRightWhile=function(e,t){return e&&e.length?ha(e,uo(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?ha(e,uo(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,r){var a=!0,o=!0;if("function"!=typeof e)throw new ze(n);return ol(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),Oi(e,t,{leading:a,maxWait:t,trailing:o})},$n.thru=yi,$n.toArray=ml,$n.toPairs=Bl,$n.toPairsIn=Hl,$n.toPath=function(e){return Ji(e)?Lt(e,No):pl(e)?[e]:za($o(xl(e)))},$n.toPlainObject=kl,$n.transform=function(e,t,n){var r=Ji(e),a=r||Qi(e)||hl(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:ol(e)&&nl(o)?Nn(Ye(e)):{}}return(a?St:_r)(e,(function(e,r,a){return t(n,e,r,a)})),n},$n.unary=function(e){return Li(e,1)},$n.union=ii,$n.unionBy=li,$n.unionWith=si,$n.uniq=function(e){return e&&e.length?da(e):[]},$n.uniqBy=function(e,t){return e&&e.length?da(e,uo(t,2)):[]},$n.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?da(t,e,n):[]},$n.unset=function(e,t){return null==e||fa(e,t)},$n.unzip=ui,$n.unzipWith=ci,$n.update=function(e,t,n){return null==e?e:pa(e,t,wa(n))},$n.updateWith=function(t,n,r,a){return a="function"==typeof a?a:e,null==t?t:pa(t,n,wa(r),a)},$n.values=Vl,$n.valuesIn=function(e){return null==e?[]:Zt(e,Rl(e))},$n.without=di,$n.words=ns,$n.wrap=function(e,t){return Ni(wa(t),e)},$n.xor=fi,$n.xorBy=pi,$n.xorWith=hi,$n.zip=vi,$n.zipObject=function(e,t){return ma(e||[],t||[],nr)},$n.zipObjectDeep=function(e,t){return ma(e||[],t||[],ea)},$n.zipWith=gi,$n.entries=Bl,$n.entriesIn=Hl,$n.extend=Al,$n.extendWith=Sl,fs($n,$n),$n.add=xs,$n.attempt=rs,$n.camelCase=ql,$n.capitalize=Yl,$n.ceil=Is,$n.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=_l(r))==r?r:0),n!==e&&(n=(n=_l(n))==n?n:0),sr(_l(t),n,r)},$n.clone=function(e){return ur(e,4)},$n.cloneDeep=function(e){return ur(e,5)},$n.cloneDeepWith=function(t,n){return ur(t,5,n="function"==typeof n?n:e)},$n.cloneWith=function(t,n){return ur(t,4,n="function"==typeof n?n:e)},$n.conformsTo=function(e,t){return null==t||cr(e,t,Ol(t))},$n.deburr=Gl,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=As,$n.endsWith=function(t,n,r){t=xl(t),n=ca(n);var a=t.length,o=r=r===e?a:sr(wl(r),0,a);return(r-=n.length)>=0&&t.slice(r,o)==n},$n.eq=Vi,$n.escape=function(e){return(e=xl(e))&&G.test(e)?e.replace(q,rn):e},$n.escapeRegExp=function(e){return(e=xl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},$n.every=function(t,n,r){var a=Ji(t)?Ct:vr;return r&&_o(t,n,r)&&(n=e),a(t,uo(n,3))},$n.find=_i,$n.findIndex=Go,$n.findKey=function(e,t){return Wt(e,uo(t,3),_r)},$n.findLast=ki,$n.findLastIndex=Jo,$n.findLastKey=function(e,t){return Wt(e,uo(t,3),kr)},$n.floor=Ss,$n.forEach=xi,$n.forEachRight=Ii,$n.forIn=function(e,t){return null==e?e:wr(e,uo(t,3),Rl)},$n.forInRight=function(e,t){return null==e?e:br(e,uo(t,3),Rl)},$n.forOwn=function(e,t){return e&&_r(e,uo(t,3))},$n.forOwnRight=function(e,t){return e&&kr(e,uo(t,3))},$n.get=Pl,$n.gt=qi,$n.gte=Yi,$n.has=function(e,t){return null!=e&&mo(e,t,Cr)},$n.hasIn=Ll,$n.head=Zo,$n.identity=ss,$n.includes=function(e,t,n,r){e=Zi(e)?e:Vl(e),n=n&&!r?wl(n):0;var a=e.length;return n<0&&(n=wn(a+n,0)),fl(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Mt(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:wl(n);return a<0&&(a=wn(r+a,0)),Mt(e,t,a)},$n.inRange=function(t,n,r){return n=yl(n),r===e?(r=n,n=0):r=yl(r),function(e,t,n){return e>=bn(t,n)&&e=-9007199254740991&&e<=d},$n.isSet=dl,$n.isString=fl,$n.isSymbol=pl,$n.isTypedArray=hl,$n.isUndefined=function(t){return t===e},$n.isWeakMap=function(e){return il(e)&&go(e)==z},$n.isWeakSet=function(e){return il(e)&&"[object WeakSet]"==Sr(e)},$n.join=function(e,t){return null==e?"":mn.call(e,t)},$n.kebabCase=Jl,$n.last=ti,$n.lastIndexOf=function(t,n,r){var a=null==t?0:t.length;if(!a)return-1;var o=a;return r!==e&&(o=(o=wl(r))<0?wn(a+o,0):bn(o,a-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,o):Ut(t,Nt,o,!0)},$n.lowerCase=Kl,$n.lowerFirst=Zl,$n.lt=vl,$n.lte=gl,$n.max=function(t){return t&&t.length?gr(t,ss,Tr):e},$n.maxBy=function(t,n){return t&&t.length?gr(t,uo(n,2),Tr):e},$n.mean=function(e){return Bt(e,ss)},$n.meanBy=function(e,t){return Bt(e,uo(t,2))},$n.min=function(t){return t&&t.length?gr(t,ss,Ur):e},$n.minBy=function(t,n){return t&&t.length?gr(t,uo(n,2),Ur):e},$n.stubArray=bs,$n.stubFalse=_s,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=Ts,$n.nth=function(t,n){return t&&t.length?Hr(t,wl(n)):e},$n.noConflict=function(){return ft._===this&&(ft._=$e),this},$n.noop=ps,$n.now=Pi,$n.pad=function(e,t,n){e=xl(e);var r=(t=wl(t))?dn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Va(mt(a),n)+e+Va(gt(a),n)},$n.padEnd=function(e,t,n){e=xl(e);var r=(t=wl(t))?dn(e):0;return t&&rn){var a=t;t=n,n=a}if(r||t%1||n%1){var o=xn();return bn(t+o*(n-t+st("1e-"+((o+"").length-1))),n)}return Jr(t,n)},$n.reduce=function(e,t,n){var r=Ji(e)?jt:qt,a=arguments.length<3;return r(e,uo(t,4),n,a,pr)},$n.reduceRight=function(e,t,n){var r=Ji(e)?Ft:qt,a=arguments.length<3;return r(e,uo(t,4),n,a,hr)},$n.repeat=function(t,n,r){return n=(r?_o(t,n,r):n===e)?1:wl(n),Kr(xl(t),n)},$n.replace=function(){var e=arguments,t=xl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(t,n,r){var a=-1,o=(n=ba(n,t)).length;for(o||(o=1,t=e);++ad)return[];var n=p,r=bn(e,p);t=uo(t),e-=p;for(var a=Gt(r,t);++n=i)return t;var s=r-dn(a);if(s<1)return a;var u=l?ka(l,0,s).join(""):t.slice(0,s);if(o===e)return u+a;if(l&&(s+=u.length-s),cl(o)){if(t.slice(s).search(o)){var c,d=u;for(o.global||(o=Ce(o.source,xl(fe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===e?s:f)}}else if(t.indexOf(ca(o),s)!=s){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+a},$n.unescape=function(e){return(e=xl(e))&&Y.test(e)?e.replace(V,hn):e},$n.uniqueId=function(e){var t=++Re;return xl(e)+t},$n.upperCase=es,$n.upperFirst=ts,$n.each=xi,$n.eachRight=Ii,$n.first=Zo,fs($n,(ks={},_r($n,(function(e,t){Oe.call($n.prototype,t)||(ks[t]=e)})),ks),{chain:!1}),$n.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$n[e].placeholder=$n})),St(["drop","take"],(function(t,n){Vn.prototype[t]=function(r){r=r===e?1:wn(wl(r),0);var a=this.__filtered__&&!n?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=bn(r,a.__takeCount__):a.__views__.push({size:bn(r,p),type:t+(a.__dir__<0?"Right":"")}),a},Vn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ss)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Pr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Mi(uo(e)))},Vn.prototype.slice=function(t,n){t=wl(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Vn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=wl(n))<0?r.dropRight(-n):r.take(n-t)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(p)},_r(Vn.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),o=$n[a?"take"+("last"==n?"Right":""):n],i=a||/^find/.test(n);o&&($n.prototype[n]=function(){var n=this.__wrapped__,l=a?[1]:arguments,s=n instanceof Vn,u=l[0],c=s||Ji(n),d=function(e){var t=o.apply($n,Dt([e],l));return a&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,v=s&&!p;if(!i&&c){n=v?n:new Vn(this);var g=t.apply(n,l);return g.__actions__.push({func:yi,args:[d],thisArg:e}),new Hn(g,f)}return h&&v?t.apply(this,l):(g=this.thru(d),h?a?g.value()[0]:g.value():g)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Ji(a)?a:[],e)}return this[n]((function(n){return t.apply(Ji(n)?n:[],e)}))}})),_r(Vn.prototype,(function(e,t){var n=$n[t];if(n){var r=n.name+"";Oe.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[$a(e,2).name]=[{name:"wrapper",func:e}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=za(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=za(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=za(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ji(e),r=t<0,a=n?e.length:0,o=function(e,t,n){for(var r=-1,a=n.length;++r=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},$n.prototype.plant=function(t){for(var n,r=this;r instanceof Bn;){var a=Ho(r);a.__index__=0,a.__values__=e,n?o.__wrapped__=a:n=a;var o=a;r=r.__wrapped__}return o.__wrapped__=t,n},$n.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Vn){var n=t;return this.__actions__.length&&(n=new Vn(this)),(n=n.reverse()).__actions__.push({func:yi,args:[oi],thisArg:e}),new Hn(n,this.__chain__)}return this.thru(oi)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return va(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,tt&&($n.prototype[tt]=function(){return this}),$n}();ht?((ht.exports=vn)._=vn,pt._=vn):ft._=vn}.call(t);var me=ge.exports,ye="/aixiaocaishen/static/images/主力作战-a51cdcde.png",we="/aixiaocaishen/static/images/攻防三维-7988c82b.png",be="/aixiaocaishen/static/images/综合作战-687fb8d6.png";const _e={class:"chat-container"},ke={class:"gif-area"},xe=["src"],Ie=["src"],Ae={key:0,class:"user-message-container"},Se={class:"user-msg"},Te={class:"user-content"},Ce=["src","onClick"],Ee=["innerHTML"],ze={key:0,class:"user-sendTime"},Pe={key:0,class:"kline-container"},Le=["id"],De={key:0,class:"no-data-message"},je={key:1,class:"ai-message-container"},Fe=["src"],Oe={key:0},Re=["innerHTML"],We={key:2,style:{display:"flex",width:"100%"}},Ue={class:"mainTitle"},Me={class:"date"},$e={key:3,class:"title2"},Ne=["src"],Be={key:4,class:"title3"},He=["src"],Ve={key:5,class:"content1"},qe={key:0,class:"kline-container content1chart"},Ye=["id"],Ge={key:0,class:"no-data-message"},Je={key:1,class:"content1Text"},Ke=["innerHTML"],Ze={key:6,class:"content2"},Xe={class:"kline-container content2chart"},Qe=["id"],et={key:0,class:"no-data-message"},tt={key:7,class:"content3"},nt={class:"content3Text"},rt=["innerHTML"],at={key:8,class:"mianze"},ot=["innerHTML"],it=["innerHTML"];var lt=ce({__name:"AIchat",props:{messages:Array,chartData:{type:Object,default:null},index:{type:Number,required:!0}},emits:["updateMessage","sendMessage","enableInput"],setup(e,{emit:t}){const T=J(),C=pe(),E=K(),z=n([]),P=n(!1);let L=0,D=!1;const j={one:{loaded:!1,url:null},two:{loaded:!1,url:null},three:{loaded:!1,url:null},four:{loaded:!1,url:null}},F={"API1-第一个":1,"API2-第二个":2,"API3-第三个":3,"API4-第四个":4},O=()=>{if(D)return;if(L>=z.value.length)return L=0,C.isPlaying=!1,C.isPaused=!1,C.playbackPosition=0,C.soundInstance=null,C.nowSound=null,void(z.value.length>0&&C.setCurrentAudioUrl(z.value[0]));D=!0;const e=z.value[L];if(!e||!e.url)return L++,D=!1,void O();const t=new X.Howl({src:[e.url],html5:!1,format:["mp3","acc"],retryCount:0,onplay:()=>{C.isPlaying=!0,P.value=!0,D=!1},onpause:()=>{C.isPlaying=!1,C.isPaused=!0,C.playbackPosition=t.seek()||0},onresume:()=>{C.isPlaying=!0,C.isPaused=!1},onend:()=>{C.isPlaying=!1,C.isPaused=!1,C.playbackPosition=0,P.value=!1,L++,L{D=!1,O()}),200):(T.messages[T.currentUserIndex].audioStatus=!1,C.nowSound=null,C.soundInstance=null,D=!1)},onstop:()=>{C.isPlaying=!1,C.isPaused=!1,C.playbackPosition=0},onloaderror:(e,t)=>{P.value=!1,D=!1,setTimeout((()=>{O()}),100)}});C.setCurrentAudioUrl(e.url),C.nowSound=t,C.setAudioInstance(t),t.play()},R=(e,t)=>{if(e&&C.isVoiceEnabled){const n={url:e,name:t,order:F[t]||999};z.value.push(n),z.value.sort(((e,t)=>e.order-t.order)),P.value||C.isPlaying||1!==z.value.length||O()}};r((()=>C.isVoiceEnabled)),n("");const W=new Z.Renderer;W.del=function(e){return"~"+e.tokens[0].raw+"
"+e.tokens[2].raw+"~"};const U=t,M=r((()=>T.messages)),$=e;n(""),n(!1);const N=e=>{const t=e.YaLiZhiChengLuoPan;let r=n(5.5);const a=t.Yali,o=t.ZhiCheng;return"较大"==a&&"较弱"==o?r.value=.5:"一般"==a&&"较弱"==o?r.value=1.5:"较弱"==a&&"较弱"==o?r.value=2.5:"较大"==a&&"较大"==o?r.value=3.5:"一般"==a&&"较大"==o?r.value=4.5:"较弱"==a&&"较大"==o?r.value=5.5:"较大"==a&&"一般"==o?r.value=.2:"一般"==a&&"一般"==o?r.value=3:"较弱"==a&&"一般"==o&&(r.value=5.8),r.value},B=n([]),H=n(!1),V=(e,t,n)=>new Promise((r=>{if(T.messages.push(e),Array.isArray(t)&&t.length>0){e.content="",e.isTyping=!0;let a=0;const o=()=>{if(a>=t.length)return e.isEnd&&("1"==e.isEnd?q.one.isEnd=!0:"2"==e.isEnd?q.two.isEnd=!0:"3"==e.isEnd?q.three.isEnd=!0:"4"==e.isEnd&&(q.four.isEnd=!0)),e.error&&(T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput"),"2"==e.error?q.two.isError=!0:"3"==e.error?q.three.isError=!0:"4"==e.error&&(q.four.isError=!0)),e.end&&(T.getUserCount(),T.isLoading=!1,T.chatInput=!1,U("enableInput")),e.isTyping=!1,void p((()=>{r()}));if(a%2==0)e.content+=t[a],a++,o();else{const r=t[a];let i=0;const l=setInterval((()=>{i{let t=-1;for(let n=0;n{ce(e)}),100)}})):p((()=>{let t=-1;for(let n=0;n{ce(e)}),100)}})),e.isEnd&&("1"==e.isEnd?q.one.isEnd=!0:"2"==e.isEnd?q.two.isEnd=!0:"3"==e.isEnd?q.three.isEnd=!0:"4"==e.isEnd&&(q.four.isEnd=!0)),e.error&&(T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput"),"2"==e.error?q.two.isError=!0:"3"==e.error?q.three.isError=!0:"4"==e.error&&(q.four.isError=!0)),setTimeout((()=>{r()}),1e3)):(e.isEnd&&("1"==e.isEnd?q.one.isEnd=!0:"2"==e.isEnd?q.two.isEnd=!0:"3"==e.isEnd?q.three.isEnd=!0:"4"==e.isEnd&&(q.four.isEnd=!0)),e.error&&(T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput"),"2"==e.error?q.two.isError=!0:"3"==e.error?q.three.isError=!0:"4"==e.error&&(q.four.isError=!0)),setTimeout((()=>{r()}),1e3))}));let q={};const Y=(e,t,n)=>{B.value.push({message:e,content:t,speed:n}),(async()=>{if(!H.value&&0!==B.value.length){for(H.value=!0;B.value.length>0;){const e=B.value.shift();await V(e.message,e.content,e.speed)}H.value=!1}})()};const ae=n(!1),oe={},le=n(0);function ce(e){const t=T.messages;let r=-1,a=null;r=e.split("-")[2],t[r].kline&&t[r].chartData&&(a=t[r].chartData);var o={};const i=window.innerWidth<768,l=window.innerWidth>=768&&window.innerWidth<1024;if(1==t[r].klineType){if(!a)return;const t=document.getElementById(e);if(!t)return;try{oe[e]&&(oe[e].dispose(),delete oe[e]),oe[e]=se.init(t)}catch(h){return}const r=n("六色罗盘"),i=n(16);window.innerWidth>768&&(i.value=25),o={tooltip:{show:!1},series:[{name:"仪表盘",type:"gauge",center:["50%","50%"],radius:window.innerWidth>768?"90%":"70%",startAngle:140,endAngle:-140,min:0,max:6,precision:0,splitNumber:30,axisLine:{show:!0,lineStyle:{color:[[.17,"#FC4407"],[.33,"#FDC404"],[.5,"#2D8FFD"],[.67,"#87CCE7"],[.83,"#C1F478"],[1,"#8FEB8D"]],width:20}},axisTick:{show:!0,splitNumber:9,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,formatter:function(e){},textStyle:{color:"auto"}},splitLine:{show:!0,length:20,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:["-65%",-10],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:["-90%",0],formatter:function(){return r.value},textStyle:{color:"auto",fontSize:i.value}},data:[{value:a}]}]}}else if(2==t[r].klineType){let t=function(e){let t=[];e.forEach(((e,n)=>{t.push({date:e[0],value:e[1],type:e[2]})}));let n=[{min:0,max:0,color:"#000"}],r=[{min:0,max:0,color:"#000"}],a=[{min:0,max:0,color:"#000"}];for(let s=1;s{const r=[e.date,e.value];0===e.type?(o.push(r),i.push([e.date,"-"]),l.push([e.date,"-"]),e.isTransitionGreen?o[o.length-1]=[t[n].date,t[n].value]:e.isTransitionRed?i[i.length-1]=[t[n].date,t[n].value]:e.isTransitionYellow&&(l[l.length-1]=[t[n].date,t[n].value])):1===e.type?(i.push(r),o.push([e.date,"-"]),l.push([e.date,"-"]),e.isTransitionGreen?o[o.length-1]=[t[n].date,t[n].value]:e.isTransitionRed?i[i.length-1]=[t[n].date,t[n].value]:e.isTransitionYellow&&(l[l.length-1]=[t[n].date,t[n].value])):2===e.type&&(i.push([e.date,"-"]),o.push([e.date,"-"]),l.push(r),e.isTransitionGreen?o[o.length-1]=[t[n].date,t[n].value]:e.isTransitionRed?i[i.length-1]=[t[n].date,t[n].value]:e.isTransitionYellow&&(l[l.length-1]=[t[n].date,t[n].value]))})),{greenData:o,redData:i,yellowData:l,singleTypeGreen:a,singleTypeRed:n,singleTypeYellow:r}};if(!a||!a.Kline)return;const r=document.getElementById(e);if(!r)return;try{oe[e]&&(oe[e].dispose(),delete oe[e]),oe[e]=se.init(r)}catch(h){return}const i=a.Kline,l=e=>{const t=[];let n=[];for(let r=0;r{e&&e.map((e=>{t.map((t=>{1==e[1]&&e[0]==t[0]&&(v.push(t),g.push([t[0],null,null,null,null,null,null,null]),m.push([t[0],null,null,null,null,null,null,null]),y.push([t[0],null,null,null,null,null,null,null])),2==e[1]&&e[0]==t[0]&&(g.push(t),v.push([t[0],null,null,null,null,null,null,null]),m.push([t[0],null,null,null,null,null,null,null]),y.push([t[0],null,null,null,null,null,null,null])),3==e[1]&&e[0]==t[0]&&(m.push(t),g.push([t[0],null,null,null,null,null,null,null]),v.push([t[0],null,null,null,null,null,null,null]),y.push([t[0],null,null,null,null,null,null,null])),4==e[1]&&e[0]==t[0]&&(y.push(t),g.push([t[0],null,null,null,null,null,null,null]),m.push([t[0],null,null,null,null,null,null,null]),v.push([t[0],null,null,null,null,null,null,null]))}))}))})(i.QSXH,i.KLine20);var s=l(i.KLine20),u=l(v),c=l(g),d=l(m),f=l(y),p=i.JN;const w=t(i.FCX),b=t(i.DNC);"-1"==i.FCX[0][1]&&(w.greenData=[],w.redData=[],w.yellowData=[]);const _=e=>{const t=[],n=[];return e.forEach((e=>{let r;switch(e[4]){case 1:r="#13E113";break;case 2:r="#FF0E00";break;case 3:r="#0000FE";break;case 4:r="#1397FF"}t.push({value:e[5],itemStyle:{normal:{color:r}}}),1===e[1]&&n.push({coord:[e[0],e[5]],symbol:"image://https://d31zlh4on95l9h.cloudfront.net/images/5iujb101000d5si3v3hr7w2vg0h43z1u.png",symbolSize:[30,30],label:{normal:{color:"rgba(0, 0, 0, 0)"}}}),1===e[2]&&n.push({coord:[e[0],e[5]/2],symbol:"image://https://d31zlh4on95l9h.cloudfront.net/images/5iujaz01000d5si016bxdf6vh0377d2h.png",symbolSize:[30,30],label:{normal:{color:"rgba(0, 0, 0, 0)"}}}),1===e[3]&&n.push({coord:[e[0],0],symbol:"image://https://d31zlh4on95l9h.cloudfront.net/images/5iujb001000d5shzls0tmd4vs0e5tdrw.png",symbolSize:[30,30],label:{normal:{color:"rgba(0, 0, 0, 0)"}}})})),{barData:t,markPointData:n}},{barData:k,markPointData:x}=_(p);o={legend:[{textStyle:{color:"black",fontSize:window.innerWidth>768?12:9},width:"100%",top:window.innerWidth>768?"5%":"4%",left:"center",itemGap:window.innerWidth>768?20:10,itemWidth:10,itemHeight:10,data:[{name:"进攻K线",itemStyle:{color:"rgb(255,0,0)"}},{name:"防守K线",itemStyle:{color:"red"}},{name:"推进K线",itemStyle:{color:"orange"}},{name:"撤退K线",itemStyle:{color:"rgb(84,252,252)"}}]},{textStyle:{color:"black",fontSize:window.innerWidth>768?12:9},orient:"horizontal",top:window.innerWidth>768?"8%":"7%",width:"100%",left:"center",itemGap:15,data:[{name:"{green|━}{red|━} 牵牛绳",icon:"none",textStyle:{rich:{green:{color:"green",fontSize:window.innerWidth>768?12:9},red:{color:"red",fontSize:window.innerWidth>768?12:9}}}},{name:"龙线"},{name:"虫线"}]},{textStyle:{color:"black",fontSize:window.innerWidth>768?12:9},orient:"horizontal",top:window.innerWidth>768?"62%":"60%",width:"100%",left:"center",itemGap:15,data:[{name:"{green|━}{red|━} 度牛尺",icon:"none",textStyle:{rich:{green:{color:"green",fontSize:window.innerWidth>768?12:9},red:{color:"red",fontSize:window.innerWidth>768?12:9}}}}]}],tooltip:{formatter:function(e,t,r){var a,o;if(0==e[0].seriesIndex){const t=n([]),r=n([]);return t.value=(null==(a=e.find((e=>e.data[1])))?void 0:a.data)||[],r.value=(null==(o=e.slice(4).find((e=>"-"!==e.data[1])))?void 0:o.data)||[],e[0].name+"
开盘价:"+t.value[1]+"
收盘价:"+t.value[2]+"
最低价:"+t.value[3]+"
最高价:"+t.value[4]+"
牵牛绳:"+r.value[1]}if(4==e[0].seriesIndex){let t;return t=e[0].data.value>=1e4?(e[0].data.value/1e4).toFixed(2)+"w":e[0].data.value,e[0].name+"
成交量:"+t}if([10,11,12].includes(e[0].seriesIndex)){const t=e.find((e=>e.data&&"-"!==e.data[1]));return t?e[0].axisValue+"
度牛尺:"+t.data[1]:null}},trigger:"axis",axisPointer:{type:"cross"},backgroundColor:"rgba(119, 120, 125, 0.6)",borderWidth:1,borderColor:"#77787D",padding:10,textStyle:{color:"#fff"}},axisPointer:{link:[{xAxisIndex:"all"}],label:{backgroundColor:"#77787D"}},toolbox:{show:!1},grid:[{top:window.innerWidth>768?"12%":"10%",left:window.innerWidth>1024?"14%":window.innerWidth>768?"18%":window.innerWidth>375?"20%":"22%",right:window.innerWidth>1024?"9%":window.innerWidth>768?"12%":"14%",height:window.innerWidth>768?"27%":"29%",containLabel:!1},{top:(window.innerWidth,"42%"),left:window.innerWidth>1024?"14%":window.innerWidth>768?"18%":window.innerWidth>375?"20%":"22%",right:window.innerWidth>1024?"9%":window.innerWidth>768?"12%":"14%",height:window.innerWidth>768?"20%":"18%",containLabel:!1},{top:window.innerWidth>768?"66%":"64%",left:window.innerWidth>1024?"14%":window.innerWidth>768?"18%":window.innerWidth>375?"20%":"22%",right:window.innerWidth>1024?"9%":window.innerWidth>768?"12%":"14%",height:window.innerWidth>768?"20%":"22%",containLabel:!1}],xAxis:[{type:"category",data:s.categoryData,boundaryGap:!0,axisLine:{onZero:!1},splitLine:{show:!1},min:"dataMin",max:"dataMax",axisPointer:{z:100},axisLine:{lineStyle:{color:"black"}},axisLabel:{show:!1},axisTick:{show:!1}},{type:"category",gridIndex:1,data:s.categoryData,boundaryGap:!0,axisLine:{lineStyle:{color:"black"}},axisLabel:{show:!1,interval:"auto"}},{type:"category",gridIndex:2,data:s.categoryData,boundaryGap:!0,axisLine:{lineStyle:{color:"black"}},axisLabel:{show:!0,interval:"auto",fontSize:window.innerWidth>768?12:9}}],yAxis:[{scale:!0,gridIndex:0,position:"left",axisLabel:{inside:!1,align:"right",fontSize:window.innerWidth>768?15:10},axisLine:{show:!0,lineStyle:{fontSize:"",color:"black"}},axisTick:{show:!1},splitLine:{show:!1}},{scale:!0,gridIndex:1,splitNumber:4,min:0,minInterval:1,axisLabel:{show:!0,fontSize:window.innerWidth>768?15:10,margin:8,formatter:e=>e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e4?(e/1e4).toFixed(1)+"W":e.toFixed(0)},axisLine:{show:!0,lineStyle:{color:"black"}},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed"}},boundaryGap:["20%","20%"]},{type:"value",gridIndex:2,min:0,max:100,axisLabel:{show:!0,fontSize:window.innerWidth>768?15:10,formatter:function(e){return[0,20,50,80,100].indexOf(e)>-1?e:""}},axisLine:{show:!0,lineStyle:{color:"black"}},axisTick:{show:!1},splitNumber:10,splitLine:{show:!0,lineStyle:{type:"dashed",color:"#fff",width:1},interval:function(e,t){return[20,50,80,100].indexOf(t)>-1}}}],dataZoom:[{type:"inside",xAxisIndex:[0,1,2],start:55,end:100},{show:!0,xAxisIndex:[0,1,2],type:"slider",top:window.innerWidth>768?"90%":"91%",height:20,start:98,end:100,textStyle:{fontSize:window.innerWidth>768?12:9}}],visualMap:[{type:"piecewise",show:!1,pieces:w.singleTypeGreen,outOfRange:{color:"green"},dimension:0,seriesIndex:7},{type:"piecewise",show:!1,pieces:w.singleTypeRed,outOfRange:{color:"red"},dimension:0,seriesIndex:8},{type:"piecewise",show:!1,pieces:w.singleTypeYellow,outOfRange:{color:"yellow"},dimension:0,seriesIndex:9}],series:[{name:"进攻K线",type:"candlestick",barWidth:"50%",data:u.values,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"rgb(255,0,0)",color0:"rgb(255,0,0)",borderColor:"rgb(255,0,0)",borderColor0:"rgb(255,0,0)"}},gridIndex:0},{name:"推进K线",type:"candlestick",barWidth:"50%",data:c.values,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"rgb(0,0,252)",color0:"rgb(0,0,252)",borderColor:"rgb(0,0,252)",borderColor0:"rgb(0,0,252)"}},gridIndex:0},{name:"防守K线",type:"candlestick",barWidth:"50%",data:d.values,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"orange",color0:"orange",borderColor:"orange",borderColor0:"orange"}},gridIndex:0},{name:"撤退K线",type:"candlestick",barWidth:"50%",data:f.values,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"rgb(84,252,252)",color0:"rgb(84,252,252)",borderColor:"rgb(84,252,252)",borderColor0:"rgb(84,252,252)"}},gridIndex:0},{name:"成交量",type:"bar",barWidth:"70%",xAxisIndex:1,yAxisIndex:1,data:k,markPoint:{data:x,label:{show:!1}}},{name:"{green|━}{red|━} 牵牛绳",type:"line",data:[],smooth:!0,symbol:"none",xAxisIndex:0,yAxisIndex:0,showSymbol:!1,lineStyle:{opacity:0},itemStyle:{normal:{color:"green"}},gridIndex:0},{name:"{green|━}{red|━} 度牛尺",type:"line",data:[],smooth:!0,symbol:"none",xAxisIndex:0,yAxisIndex:0,showSymbol:!1,lineStyle:{opacity:0},itemStyle:{normal:{color:"green"}},gridIndex:0},{name:"虫线",type:"line",data:w.greenData,smooth:!0,symbol:"none",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"green",lineStyle:{width:2,type:"solid"}}},gridIndex:0},{name:"龙线",type:"line",data:w.redData,smooth:!0,symbol:"none",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"red",lineStyle:{width:2,type:"solid"}}},gridIndex:0},{name:"黄色",type:"line",data:w.yellowData,smooth:!0,symbol:"none",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"yellow",lineStyle:{width:2,type:"solid"}}},gridIndex:0},{name:"背景区域",type:"line",data:[],xAxisIndex:2,yAxisIndex:2,markArea:{silent:!0,itemStyle:{normal:{opacity:1}},label:{normal:{show:!0,position:"insideRight",fontSize:window.innerWidth>768?16:12,fontWeight:"bold",color:"#13E113",distance:10}},data:[[{yAxis:0,itemStyle:{normal:{color:"#CFFFCF"}},label:{normal:{formatter:"度牛区"}}},{yAxis:20}],[{yAxis:20,itemStyle:{normal:{color:"#A6FFFF"}}},{yAxis:40}],[{yAxis:40,itemStyle:{normal:{color:"#FFF686"}}},{yAxis:60}],[{yAxis:60,itemStyle:{normal:{color:"#FFD2B3"}}},{yAxis:80}],[{yAxis:80,itemStyle:{normal:{color:"#FFB8B8"}},label:{normal:{formatter:"度牛区",color:"#FF0000",position:"insideLeft",distance:10}}},{yAxis:100}]]}},{name:"度牛尺",type:"line",data:b.greenData,symbol:"none",xAxisIndex:2,yAxisIndex:2,itemStyle:{normal:{color:"green",lineStyle:{width:2,type:"solid"}}},gridIndex:2,markPoint:{symbol:"rect",symbolSize:(e,t)=>[2,22],itemStyle:{normal:{label:{show:!1}}},data:[...b.greenData.map((e=>{if(0===e[1])return{coord:[e[0],20],symbolOffset:[0,10],itemStyle:{color:"#00ff00"}}})).filter(Boolean)]}},{type:"line",data:b.redData,symbol:"none",xAxisIndex:2,yAxisIndex:2,itemStyle:{normal:{color:"red",lineStyle:{width:2,type:"solid"}}},gridIndex:2,markPoint:{symbol:"rect",symbolSize:(e,t)=>[2,22],itemStyle:{normal:{label:{show:!1}}},data:[...b.redData.map((e=>{if(100===e[1])return{coord:[e[0],80],symbolOffset:[0,-10],itemStyle:{color:"#ff0000"}}})).filter(Boolean)]}},{name:"辅助线",type:"line",data:[],xAxisIndex:2,yAxisIndex:2,markLine:{silent:!0,symbol:"none",lineStyle:{color:"#000000",width:3,type:"solid"},data:[{yAxis:20}],label:{normal:{fontSize:window.innerWidth>768?12:9}}}},{name:"辅助线",type:"line",data:[],xAxisIndex:2,yAxisIndex:2,markLine:{silent:!0,symbol:"none",lineStyle:{color:"#000000",width:3,type:"solid"},data:[{yAxis:50}],label:{normal:{fontSize:window.innerWidth>768?12:9}}}},{name:"辅助线",type:"line",data:[],xAxisIndex:2,yAxisIndex:2,markLine:{silent:!0,symbol:"none",lineStyle:{color:"#000000",width:3,type:"solid"},data:[{yAxis:80}],label:{normal:{fontSize:window.innerWidth>768?12:9}}}},{name:"辅助线",type:"line",data:[],xAxisIndex:2,yAxisIndex:2,markLine:{silent:!0,symbol:"none",lineStyle:{color:"#000000",width:3,type:"solid"},data:[{yAxis:100}],label:{normal:{fontSize:window.innerWidth>768?12:9}}}}]}}try{oe[e].setOption(o);const t=me.throttle((function(){if(oe[e]&&!oe[e].isDisposed()){const t=window.innerWidth<768,n=window.innerWidth>=768&&window.innerWidth<1024;if(t!==i||n!==l)return void ce(e);oe[e].resize()}}),1e3,{trailing:!1});window[`resize_${e}`]=t,window.removeEventListener("resize",window[`resize_${e}`]),window.addEventListener("resize",window[`resize_${e}`])}catch(h){}}a((()=>$.messages),(async(e,t)=>{var r,a;if((null==e?void 0:e.length)&&e!==le.value&&(T.firstAPICall=!0,le.value=e.length,e.length>0)){null!=T.currentUserIndex&&(T.messages[T.currentUserIndex].audioStatus=!1),T.currentUserIndex=null,C.stop(),z.value=[],P.value=!1,L=0,D=!1,j.one={loaded:!1,url:null},j.two={loaded:!1,url:null},j.three={loaded:!1,url:null},j.four={loaded:!1,url:null},C.soundInstance=null,C.nowSound=null,C.isPlaying=!1,C.isPaused=!1,C.playbackPosition=0,T.messages.push(e[e.length-1]),T.currentUserIndex=T.messages.length-1,T.inputUserIndex=T.messages.length-1,G();const t={language:"cn",marketList:"usa,sg,my,hk,cn,can,vi,th,in",content:e[e.length-1].content,token:localStorage.getItem("localToken"),model:1};let h=!0;const v=n(),g=await async function(e=null){const t=l({sender:"ai",class:"ing",type:"ing",flag:!0,content:"夺宝奇兵大模型正在思考",gif:te,nowrap:!0});T.messages.push(t),await new Promise((e=>setTimeout(e,1500))),T.messages.pop();const n=l({sender:"ai",class:"ing",type:"ing",flag:!0,content:"正在解析关键数据",gif:ne,nowrap:!0});if(T.messages.push(n),!e)return n;await new Promise((e=>setTimeout(e,1500))),T.messages.pop();const r=l({sender:"ai",class:"ing",type:"ing",flag:!0,content:`正在生成${e}全景作战报告`,gif:re,nowrap:!0});T.messages.push(r),await new Promise((e=>setTimeout(e,1500))),T.messages.pop();const a=l({sender:"ai",class:"ing",type:"ing",content:"报告已生成!",nowrap:!0});return T.messages.push(a),await new Promise((e=>setTimeout(e,1500))),T.messages.pop(),null}();try{const e=await o(t);if(v.value=e.data,200==e.code)T.searchRecord=!0,g&&v.value.name&&await async function(e,t){if(!e||!t)return;await new Promise((e=>setTimeout(e,1500)));const n=T.messages.indexOf(e);n>-1&&T.messages.splice(n,1);const r=l({sender:"ai",class:"ing",type:"ing",flag:!0,content:`正在生成${t}全景作战报告`,gif:re});T.messages.push(r),await new Promise((e=>setTimeout(e,1500))),T.messages.pop();const a=l({sender:"ai",class:"ing",type:"ing",content:"报告已生成!"});T.messages.push(a),await new Promise((e=>setTimeout(e,1500))),T.messages.pop()}(g,v.value.name),T.messages.push({});else{if(g){const e=T.messages.indexOf(g);e>-1&&T.messages.splice(e,1)}h=!1;const t=n(e.msg),r=Z(t.value),a=/\$\$(.*?)\$\$/g;r.replace(a,((e,t)=>{try{return ie.renderToString(t,{throwOnError:!1})}catch(n){return e}}));406==e.code&&(t.value='

尊敬的用户,目前您的token余额为0,系统将无法处理您的搜索请求,您可以补充token后再进行搜索。token兑换的入口在右上角“获取token次数”,点击即可操作哦~

');const o={class:"ing",type:"ing",flag:h,content:t};T.messages.push(o),T.isLoading=!1,T.chatInput=!1,T.firstAPICall=!1,U("enableInput")}}catch(p){if(g){const e=T.messages.indexOf(g);e>-1&&T.messages.splice(e,1)}T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,T.firstAPICall=!1,U("enableInput")}if(h){const e={language:"cn",token:localStorage.getItem("localToken"),parentId:v.value.parentId,stockId:v.value.stockId,recordId:v.value.recordId};try{const t="production",n=await i({token:"development"==t||"test"==t?"8Csj5VVX1UbIb4C3oxrnbZi0+fEeMx8pywnIlrmTm45Cb/EllzWACLto9J9+fCFsfdgBOvKvyY94FvqlvM0":"8nkj4QBV1RPIb4CzoRTnbZi0+fEeMx8pywnIlrmTxdwROKkuwWqAWu9orpkpeXVqL98DPfeonNYpHv+mucA",market:v.value.market,code:v.value.code,language:"cn",brainPrivilegeState:1,swordPrivilegeState:1,stockForecastPrivilegeState:1,spaceForecastPrivilegeState:1,aibullPrivilegeState:1,aigoldBullPrivilegeState:1,airadarPrivilegeState:1,marketList:"usa,sg,my,hk,cn,can,vi,th,in,gb"}),o=(null==(r=n.data)?void 0:r.HomePage)||null,p=(null==(a=n.data)?void 0:a.AIGoldBull)||null,h=!!o,g=!!(p&&p.DNC&&p.FCX&&p.JN&&p.KLine20&&p.QSXH),m=/\$\$(.*?)\$\$/g;let y,w,b,_;q={one:{completed:!1,result:null,error:null,isError:!1,isEnd:!1},two:{completed:!1,result:null,error:null,isError:!1,isEnd:!1},three:{completed:!1,result:null,error:null,isError:!1,isEnd:!1},four:{completed:!1,result:null,error:null,isError:!1,isEnd:!1}};C.togglePlayPause;const k=(e,t)=>e&&C.isVoiceEnabled?(j[t].url=e,new Promise((n=>{new X.Howl({src:[e],html5:!0,format:["mp3","acc"],rate:1.2,preload:!0,onload:()=>{j[t].loaded=!0,n()},onloaderror:(e,r)=>{j[t].loaded=!0,n()}})}))):(j[t].loaded=!0,Promise.resolve()),x=()=>q.one.completed&&j.one.loaded,I=()=>{if(x()&&!q.one.executed)if(q.one.result){q.one.executed=!0,j.one.url&&(T.messages[T.inputUserIndex].audioArray.push(j.one.url),T.currentUserIndex==T.inputUserIndex?(T.messages[T.inputUserIndex].audioStatus=!0,R(j.one.url,"API1-第一个")):T.messages[T.inputUserIndex].audioStatus=!1),T.messages.pop(),Y({sender:"ai",class:"title1",type:"title1",content:v.value.name+"全景作战报告",date:y.data.date},"",50),T.firstAPICall=!1;const e=Z(y.data.name+"\n"+y.data.price+"\n"+y.data.date).replace(m,((e,t)=>{try{return ie.renderToString(t,{throwOnError:!1})}catch(n){return e}})),t=l({sender:"ai",class:"content1",type:"content1",content:"",isTyping:!0});if(Y(t,["",e],130),o){const e=JSON.parse(JSON.stringify(s(o))),t=N(e);t&&(ae.value=!0);const n=`kline-${Date.now()}`;Y({sender:"ai",class:"content1",type:"content1",kline:!0,chartData:t,messageId:n,hasValidData:!0,klineType:1},"",50)}if(p&&p.DNC&&p.FCX&&p.JN&&p.KLine20&&p.QSXH){const e=JSON.parse(JSON.stringify(s(p))),t={name:JSON.parse(JSON.stringify(s(o))).StockInformation.Name,Kline:e};ae.value=!0;const n=`kline-${Date.now()+1}`;Y({sender:"ai",class:"content2",type:"content2",kline:!0,chartData:t,messageId:n,hasValidData:!0,klineType:2,error:q.two.error?"2":"",isEnd:"1"},"",50)}}else T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput");if(q.one.executed&&q.two.completed&&!q.two.executed)if(q.two.result){q.two.executed=!0,j.two.url&&(T.messages[T.inputUserIndex].audioArray.push(j.two.url),T.currentUserIndex==T.inputUserIndex?R(j.two.url,"API2-第二个"):T.messages[T.inputUserIndex].audioStatus=!1),Y({sender:"ai",class:"title2",type:"title2",content:""},"",50);const e=Z(w.data.hxjzpg).replace(m,((e,t)=>{try{return ie.renderToString(t,{throwOnError:!1})}catch(n){return e}})),t=l({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0,error:q.three.error?"3":"",isEnd:"2"});Y(t,["",e],130)}else q.one.isEnd&&q.two.error&&!q.two.isError&&(q.two.isError=!0,T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput"));if(q.two.executed&&q.three.completed&&!q.three.executed)if(q.three.result){q.three.executed=!0,j.three.url&&(T.messages[T.inputUserIndex].audioArray.push(j.three.url),T.currentUserIndex==T.inputUserIndex?R(j.three.url,"API3-第三个"):T.messages[T.inputUserIndex].audioStatus=!1),Y({sender:"ai",class:"title3",type:"title3",content:ye},"",50);const e='

【主力行为】

',t=`${b.data.zhuli1}

${b.data.zhuli2}

${b.data.zhuli3}

`,n=(b.data.zhuli1,b.data.zhuli2,b.data.zhuli3,l({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0}));Y(n,[e,t],200),Y({sender:"ai",class:"title3",type:"title3",content:we},"",50);const r=b.data.kongjian.split(","),a=(r[0],r[1],r[2],r[3],b.data.shijian,b.data.nengliang,'

【空间维度】

'),o=`${r[0]},${r[1]}`,i='

',s=`${r[2]},${r[3]}

`,u='

【时间维度】

',c=`${b.data.shijian}

`,d='

【能量维度】

',f=`${b.data.nengliang}

`,p=l({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0,error:q.four.error?"4":"",isEnd:"3"});Y(p,[a,o,i,s,u,c,d,f],200)}else q.two.isEnd&&q.three.error&&!q.three.isError&&(q.three.isError=!0,T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput"));if(q.three.executed&&q.four.completed&&!q.four.executed)if(q.four.result){q.four.executed=!0,j.four.url&&(T.messages[T.inputUserIndex].audioArray.push(j.four.url),T.currentUserIndex==T.inputUserIndex?R(j.four.url,"API4-第四个"):T.messages[T.inputUserIndex].audioStatus=!1),Y({sender:"ai",class:"title3",type:"title3",content:be},"",50);_.data.cftl,_.data.gfzl;const e='

【触发条件】

',t=`${_.data.cftl}

`,n='

【攻防指令】

',r=`${_.data.gfzl}

`,a=l({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0});Y(a,[e,t,n,r],240);const o="该内容由AI生成,请注意甄别",i=l({sender:"ai",class:"mianze",type:"mianze",content:"",isTyping:!0,end:!0});Y(i,["",o],210)}else q.three.isEnd&&q.four.error&&!q.four.isError&&(q.four.isError=!0,T.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),T.isLoading=!1,T.chatInput=!1,U("enableInput"));if(q.one.completed&&q.two.completed&&q.three.completed&&q.four.completed&&q.four.executed){const e=[];j.one.url&&e.push(j.one.url),j.two.url&&e.push(j.two.url),j.three.url&&e.push(j.three.url),j.four.url&&e.push(j.four.url)}},A=async()=>{var t;try{if(y=await u(e),400==y.code)throw new Error("API返回错误码400,请求失败");q.one.completed=!0,q.one.result=y,(null==(t=null==y?void 0:y.data)?void 0:t.url)?await k(y.data.url.trim(),"one"):j.one.loaded=!0,I()}catch(n){q.one.completed=!0,q.one.error=n,j.one.loaded=!0,I()}},S=async()=>{var t;try{if(w=await c(e),400==w.code)throw new Error("API返回错误码400,请求失败");q.two.completed=!0,q.two.result=w,(null==(t=null==w?void 0:w.data)?void 0:t.url)?await k(w.data.url.trim(),"two"):j.two.loaded=!0,I()}catch(n){q.two.completed=!0,q.two.error=n,j.two.loaded=!0,I()}},E=async()=>{var t;try{if(b=await d(e),400==b.code)throw new Error("API返回错误码400,请求失败");q.three.completed=!0,q.three.result=b,(null==(t=null==b?void 0:b.data)?void 0:t.url)?await k(b.data.url.trim(),"three"):j.three.loaded=!0,I()}catch(n){q.three.completed=!0,q.three.error=n,j.three.loaded=!0,I()}},z=async()=>{var t;try{if(_=await f(e),400==_.code)throw new Error("API返回错误码400,请求失败");q.four.completed=!0,q.four.result=_,(null==(t=null==_?void 0:_.data)?void 0:t.url)?await k(_.data.url.trim(),"four"):j.four.loaded=!0,I()}catch(n){q.four.completed=!0,q.four.error=n,j.four.loaded=!0,I()}};h&&g?(A(),S(),E(),z()):(T.messages.pop(),T.messages.push({class:"ing",type:"ing",flag:!1,content:"数据缺失,请稍后重试"}),T.isLoading=!1,T.chatInput=!1,T.firstAPICall=!1,U("enableInput"))}catch(p){T.firstAPICall=!1,ae.value=!1}finally{await T.getUserCount()}}}}),{deep:!1}),a((()=>T.dbqbClickRecord),((e,t)=>{if(!e||0===Object.keys(e).length)return;const r=n(e);try{T.currentUserIndex=null,C.stop(),z.value=[],P.value=!1,L=0,D=!1,j.one={loaded:!1,url:null},j.two={loaded:!1,url:null},j.three={loaded:!1,url:null},j.four={loaded:!1,url:null},C.soundInstance&&(C.soundInstance.stop(),C.soundInstance.unload(),C.soundInstance=null),C.nowSound=null,q.one={completed:!1,result:null,error:null,isError:!1,isEnd:!1},q.two={completed:!1,result:null,error:null,isError:!1,isEnd:!1},q.three={completed:!1,result:null,error:null,isError:!1,isEnd:!1},q.four={completed:!1,result:null,error:null,isError:!1,isEnd:!1},ae.value=!1,B.value=[],H.value=!1,T.isLoading=!1,T.chatInput=!1,U("enableInput"),setTimeout((()=>{T.dbqbClickRecord={}}),0)}catch(a){}if(r.value.wokeFlowData.One&&r.value.wokeFlowData.Two&&r.value.wokeFlowData.Three&&r.value.wokeFlowData.Four)try{T.messages=[],T.messages.push({sender:"user",timestamp:r.value.createdTime,content:r.value.keyword,audioArray:[r.value.wokeFlowData.One.url,r.value.wokeFlowData.Two.url,r.value.wokeFlowData.Three.url,r.value.wokeFlowData.Four.url],audioStatus:!1}),T.messages.push({sender:"ai",class:"title1",type:"title1",content:r.value.stockName+"全景作战报告",date:r.value.wokeFlowData.One.date});const e=Z(r.value.wokeFlowData.One.name+"\n"+r.value.wokeFlowData.One.price+"\n"+r.value.wokeFlowData.One.date);T.messages.push({sender:"ai",class:"content1",type:"content1",content:e});const t=r.value.stockData.HomePage;if(t){const e=JSON.parse(JSON.stringify(s(t))),n=N(e);n&&(ae.value=!0);const r=`kline-${Date.now()}`;T.messages.push({sender:"ai",class:"content1",type:"content1",kline:!0,chartData:n,messageId:r,hasValidData:!0,klineType:1}),p((()=>{let e=-1;for(let t=0;t{ce(t)}),100)}}))}const n=r.value.stockData.AIGoldBull;if(n&&n.DNC&&n.FCX&&n.JN&&n.KLine20&&n.QSXH){const e=JSON.parse(JSON.stringify(s(n))),r={name:JSON.parse(JSON.stringify(s(t))).StockInformation.Name,Kline:e};ae.value=!0;const a=`kline-${Date.now()+1}`;T.messages.push({sender:"ai",class:"content2",type:"content2",kline:!0,chartData:r,messageId:a,hasValidData:!0,klineType:2}),p((()=>{let e=-1;for(let t=0;t{ce(t)}),100)}}))}T.messages.push({sender:"ai",class:"title2",type:"title2",content:""});const a=Z(r.value.wokeFlowData.Two.hxjzpg);T.messages.push({sender:"ai",class:"content3",type:"content3",content:a}),T.messages.push({sender:"ai",class:"title3",type:"title3",content:ye});const o=`

【主力行为】

${r.value.wokeFlowData.Three.zhuli1}

${r.value.wokeFlowData.Three.zhuli2}

${r.value.wokeFlowData.Three.zhuli3}

`;T.messages.push({sender:"ai",class:"content3",type:"content3",content:o,isTyping:!0}),T.messages.push({sender:"ai",class:"title3",type:"title3",content:we});const i=r.value.wokeFlowData.Three.kongjian.split(","),l=`

【空间维度】

${i[0]},${i[1]}

${i[2]},${i[3]}

`,u=`

【时间维度】

${r.value.wokeFlowData.Three.shijian}

`,c=l+u+`

【能量维度】

${r.value.wokeFlowData.Three.nengliang}

`;T.messages.push({sender:"ai",class:"content3",type:"content3",content:c}),T.messages.push({sender:"ai",class:"title3",type:"title3",content:be});const d=`

【触发条件】

${r.value.wokeFlowData.Four.cftl}

`,f=d+`

【攻防指令】

${r.value.wokeFlowData.Four.gfzl}

`;T.messages.push({sender:"ai",class:"content3",type:"content3",content:f}),T.messages.push({sender:"ai",class:"mianze",type:"mianze",content:"该内容由AI生成,请注意甄别",end:!0})}catch(o){h.error("历史数据获取出错!")}}),{deep:!0,immediate:!0}),a((()=>C.isVoiceEnabled),(e=>{if(e!==C.lastVoiceState)if(C.lastVoiceState=e,e){(()=>{var e;C.ttsUrl&&((null==(e=C.soundInstance)?void 0:e.playing())||((e=>{if(!e)return void(C.isPlaying=!1);(()=>{if(C.isNewInstance){const t=new X.Howl({src:[e],html5:!0,format:["mp3","acc"],rate:1.2,onplay:()=>{C.isPlaying=!0,t.volume(1)},onend:()=>C.isPlaying=!1,onstop:()=>C.isPlaying=!1,onloaderror:(e,t)=>{h.error("音频播放失败,请检查网络连接")}});C.nowSound&&C.nowSound.stop(),C.nowSound=t,C.isNewInstance=!1}const t=C.nowSound;t.play(),C.setAudioInstance(t),X.Howler._howls.push(t)})()})(C.ttsUrl),setTimeout((()=>{var e;(null==(e=C.soundInstance)?void 0:e.playing())||X.Howler.unload()}),1e3)))})()}else C.soundInstance&&(C.soundInstance.pause(),C.isPlaying=!1)}),{immediate:!0}),a((()=>E.activeTabIndex),(e=>{setTimeout((()=>{0===e&&fe()}),1e3)}),{immediate:!0});const de=()=>{T.dbqbScrollToTop=!T.dbqbScrollToTop};function fe(){const e=T.messages;for(let t=0;t{C.isPlaying&&C.stop(),z.value=[],P.value=!1,L=0,D=!1,C.soundInstance=null,C.nowSound=null,X.Howler.stop(),X.Howler.unload(),C.isPlaying=!1,C.isPaused=!1,C.playbackPosition=0,Object.keys(j).forEach((e=>{j[e]={loaded:!1,url:null}})),T.currentUserIndex=-1};v((()=>{he();if(/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){X.Howler.html5PoolSize=1,X.Howler.autoSuspend=!1,X.Howler.usingWebAudio=!0;const e=()=>{X.Howler.ctx&&"suspended"===X.Howler.ctx.state&&X.Howler.ctx.resume()};document.addEventListener("touchstart",e,{once:!0}),document.addEventListener("click",e,{once:!0})}Z.setOptions({breaks:!0,gfm:!0,sanitize:!1,smartLists:!0,smartypants:!0,xhtml:!1,renderer:W}),fe(),T.currentUserIndex=null,T.messages.forEach((e=>{"user"==e.sender&&(e.audioStatus=!1)})),document.addEventListener("visibilitychange",ge);new MutationObserver((e=>{e.forEach((e=>{if("childList"===e.type&&e.addedNodes.length){document.querySelectorAll('[id^="kline-container-"]').length}}))})).observe(document.body,{childList:!0,subtree:!0})}));let ve=!1;const ge=()=>{document.hidden?C.isPlaying?(ve=!0,C.pause()):ve=!1:ve&&!C.isPlaying&&(C.play(),ve=!1)};return g((()=>{document.removeEventListener("visibilitychange",ge),he(),Object.keys(oe).forEach((e=>{oe[e]&&(window[`resize_${e}`]&&(window.removeEventListener("resize",window[`resize_${e}`]),delete window[`resize_${e}`]),oe[e].dispose(),delete oe[e])}))})),(e,t)=>(m(),y(_,null,[w("div",_e,[w("div",ke,[t[0]||(t[0]=w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/03ddbbbee489f29dc6a1427f9ed4f389.png",alt:"夺宝奇兵大模型logo",class:"bgc"},null,-1)),w("img",{src:b("/aixiaocaishen/static/images/-s-夺宝奇兵logo-985375a7.png"),alt:"夺宝奇兵大模型logo",class:"logo1"},null,8,xe),w("img",{src:b("/aixiaocaishen/static/images/开启无限财富-3b89b7e4.png"),alt:"夺宝奇兵大模型logo",class:"logo2"},null,8,Ie)]),(m(!0),y(_,null,k(b(M),((e,n)=>(m(),y("div",{key:n},["user"===e.sender?(m(),y("div",Ae,[w("div",Se,[w("div",Te,[w("img",{src:e.audioStatus?b(Q):b(ee),class:x(["user-message-speaker",{"speaker-active":e.audioStatus}]),onClick:e=>(e=>{T.messages[e].audioArray[0]&&T.messages[e].audioArray[1]&&T.messages[e].audioArray[2]&&T.messages[e].audioArray[3]&&(T.messages[e].audioStatus=!T.messages[e].audioStatus,T.currentUserIndex!=e?(null!=T.currentUserIndex&&(C.isPlaying&&C.togglePlayPause(),T.messages[T.currentUserIndex].audioStatus=!1),C.soundInstance&&(C.soundInstance.stop(),C.soundInstance=null),j.one={loaded:!1,url:null},j.two={loaded:!1,url:null},j.three={loaded:!1,url:null},j.four={loaded:!1,url:null},T.messages[e].audioArray[0]&&(j.one.loaded=!0,j.one.url=T.messages[e].audioArray[0]),T.messages[e].audioArray[1]&&(j.two.loaded=!0,j.two.url=T.messages[e].audioArray[1]),T.messages[e].audioArray[2]&&(j.three.loaded=!0,j.three.url=T.messages[e].audioArray[2]),T.messages[e].audioArray[3]&&(j.four.loaded=!0,j.four.url=T.messages[e].audioArray[3]),T.currentUserIndex=e,z.value=[],P.value=!1,C.soundInstance=null,L=0,D=!1,setTimeout((()=>{R(T.messages[e].audioArray[0],"API1-第一个"),R(T.messages[e].audioArray[1],"API2-第二个"),R(T.messages[e].audioArray[2],"API3-第三个"),R(T.messages[e].audioArray[3],"API4-第四个"),C.isVoiceEnabled&&(C.currentAudioUrl||C.ttsUrl)||C.toggleVoice()}),100)):C.isVoiceEnabled?L>=z.value.length?(L=0,P.value=!1,D=!1,C.soundInstance=null,z.value.length>0&&O()):C.currentAudioUrl||C.ttsUrl?C.togglePlayPause():C.toggleVoice():C.toggleVoice())})(n),alt:"喇叭"},null,10,Ce),w("div",{class:x({"message-bubble":!0,[e.sender]:e.sender,[e.class]:e.class})},[w("div",{innerHTML:e.content},null,8,Ee)],2)]),e.timestamp?(m(),y("div",ze,I(b(ue)(e.timestamp).format("YYYY-MM-DD HH:mm:ss")),1)):A("",!0)])])):(m(),y("div",{key:1,class:x({"message-bubble":!0,[e.sender]:e.sender,[e.class]:e.class})},["kline"===e.type?(m(),y("div",Pe,[w("div",{id:"kline-container-"+n,class:"chart-mount-point"},[e.hasValidData?A("",!0):(m(),y("div",De,t[1]||(t[1]=[w("p",null,"暂无K线数据",-1)])))],8,Le)])):"ing"==e.type?(m(),y("div",je,[e.gif?(m(),y("img",{key:0,src:e.gif,alt:"思考过程",class:"thinking-gif"},null,8,Fe)):A("",!0),w("div",{class:x(["ai-message-content",{fourStep:e.nowrap}])},[e.flag?(m(),y("div",Oe,[w("span",null,I(e.content),1),t[2]||(t[2]=S('......',1))])):(m(),y("div",{key:1,innerHTML:e.content},null,8,Re))],2)])):"title1"==e.type?(m(),y("div",We,[w("div",Ue,I(e.content),1),w("div",Me,I(e.date),1)])):"title2"==e.type?(m(),y("div",$e,[w("img",{class:"title1Img",src:b("/aixiaocaishen/static/images/核心价值评估-c1ed0285.png"),alt:"出错了"},null,8,Ne)])):"title3"==e.type?(m(),y("div",Be,[w("img",{class:"title2Img",src:e.content,alt:"出错了"},null,8,He)])):"content1"==e.type?(m(),y("div",Ve,[e.kline?(m(),y("div",qe,[w("div",{id:"kline-container-"+n,class:"chart-mount-point"},[e.hasValidData?A("",!0):(m(),y("div",Ge,t[3]||(t[3]=[w("p",null,"暂无数据",-1)])))],8,Ye)])):(m(),y("div",Je,[w("div",{innerHTML:e.content,class:"text1"},null,8,Ke)]))])):"content2"==e.type?(m(),y("div",Ze,[w("div",Xe,[w("div",{id:"kline-container-"+n,class:"chart-mount-pointJN"},[e.hasValidData?A("",!0):(m(),y("div",et,t[4]||(t[4]=[w("p",null,"暂无数据",-1)])))],8,Qe)])])):"content3"==e.type?(m(),y("div",tt,[w("div",nt,[w("div",{innerHTML:e.content,class:"text3"},null,8,rt)])])):"mianze"==e.type?(m(),y("div",at,[w("div",{innerHTML:e.content},null,8,ot)])):(m(),y("div",{key:9,innerHTML:e.content},null,8,it))],2))])))),128))]),b(M).length>0?(m(),y("div",{key:0,class:"back-to-top",onClick:de},t[5]||(t[5]=[w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M12 4L12 20M12 4L6 10M12 4L18 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):A("",!0)],64))}},[["__scopeId","data-v-bdb0b9f0"]]),st="/aixiaocaishen/static/images/logo-6d056fd7.png";const ut={key:0,class:"collapsed-container"},ct={key:1,class:"collapsed-bottom-container"},dt={key:2,class:"history-content"},ft={class:"history-list"},pt={key:0,class:"empty-state"},ht={class:"empty-icon"},vt={key:0,class:"categoryName"},gt=["onClick"],mt={class:"record-img"},yt=["src","alt"],wt={key:1,src:"https://d31zlh4on95l9h.cloudfront.net/images/9a431843b182c64a05fa3c8f6772b8a4.png",alt:"record.stockMarket"},bt={class:"record-msg"},_t={class:"record-text"},kt={class:"stock-name"},xt={class:"stock-code"},It={key:0},At={class:"record-time"},St={class:"record-actions"},Tt={class:"popover-content"},Ct={class:"popover-item"},Et=["onClick"],zt=["onClick"],Pt=["onClick"],Lt={key:0,class:"history-content"},Dt={class:"history-list"},jt={key:0,class:"empty-state"},Ft={class:"empty-icon"},Ot={key:0,class:"categoryName"},Rt=["onClick"],Wt={class:"record-img"},Ut=["src","alt"],Mt={key:1,src:"https://d31zlh4on95l9h.cloudfront.net/images/9a431843b182c64a05fa3c8f6772b8a4.png",alt:"record.stockMarket"},$t={class:"record-msg"},Nt={class:"record-text"},Bt={class:"stock-name"},Ht={class:"stock-code"},Vt={key:0},qt={class:"record-time"},Yt={class:"record-actions"},Gt={class:"popover-content"},Jt={class:"popover-item"},Kt=["onClick"],Zt=["onClick"],Xt=["onClick"],Qt={class:"dialog-footer"};var en=ce({__name:"HistoryRecord",props:{currentType:{type:String,default:"AIchat"}},emits:["selectRecord","recordAdded","startNewChat","showAnnouncement","showFeedback"],setup(e,{expose:t,emit:o}){const i=J(),l=K();T();const s=e,u=n(null),c=o,d=n({cn:"https://d31zlh4on95l9h.cloudfront.net/images/c685daa929d80a03c26841dfa783cc3c.png",usa:"https://d31zlh4on95l9h.cloudfront.net/images/bccbc3058f327f72aa158fa0852dce19.png",hk:"https://d31zlh4on95l9h.cloudfront.net/images/ab050afe6867e9f961561f665ed12d10.png",sg:"https://d31zlh4on95l9h.cloudfront.net/images/90c5ce1edef2235a100e3ee0ad3cac92.png",vi:"https://d31zlh4on95l9h.cloudfront.net/images/59404c85889abd57dfd15040099edc1a.png",th:"https://d31zlh4on95l9h.cloudfront.net/images/31f5433264cf1f84cf550995fa16d86e.png",can:"https://d31zlh4on95l9h.cloudfront.net/images/26382451bfa08e6a419a2190b799dae5.png",my:"https://d31zlh4on95l9h.cloudfront.net/images/7efa8487a1317ed17eacc77b58e0a26d.png"}),f=n(!0),g=n(null),S=n({}),O=n(!1),R=n("500px"),W=r((()=>u.value?"70%":R.value)),U=()=>{S.value={},O.value=!1},M=n([]),$=n([]);let N=!0,B=!0,H=null,V=null;const q=async e=>{try{const t=await L(e);M.value=t.data;const n=JSON.stringify(t.data.map((e=>({id:e.id,isTop:e.isTop,createdTime:e.createdTime}))));if(H&&V===n)return void($.value=H);let r=t.data;N&&1==e.model&&0!=t.data.length&&(u.value||(i.aiChatCall=!0),N=!1),B&&2==e.model&&0!=t.data.length&&(u.value||(i.aiEmotionCall=!0),B=!1),u.value?f.value=!0:"AIchat"==s.currentType?f.value=!i.aiChatCall:"AiEmotion"==s.currentType&&(f.value=!i.aiEmotionCall);const a=ue().format("YYYY-MM-DD"),o=ue().subtract(3,"days").startOf("day"),l=ue().subtract(1,"days").endOf("day"),c=ue().subtract(7,"days").startOf("day"),d=ue().subtract(30,"days").startOf("day"),p=[],h=[],v=[],g=[],m=[];r.forEach((e=>{if(1===e.isTop)return void p.push(e);const t=ue(e.createdTime);t.format("YYYY-MM-DD")===a?h.push(e):t.isAfter(o)&&t.isBefore(l)?v.push(e):t.isAfter(c)?g.push(e):t.isAfter(d)&&m.push(e)})),M.value=t.data,$.value=[{name:"置顶",list:p},{name:"今日",list:h},{name:"近3日",list:v},{name:"近7日",list:g},{name:"近30日",list:m}],H=$.value,V=n}catch(t){M.value=[],$.value=[]}},Y=async(e,t)=>{try{const n=document.querySelector(".el-popover");if(n&&(n.style.display="none"),0==e&&$.value[0].list.length>=3)return void h.warning("最多置顶三条内容,已达上限!");await(async e=>{try{await F(e)}catch(t){}})({model:"AIchat"==s.currentType?1:2,recordId:t,isTop:1==e?0:1}),await q({model:"AIchat"==s.currentType?1:2,token:localStorage.getItem("localToken")})}catch(n){}},G=()=>{f.value=!1,"AIchat"==s.currentType?i.aiChatCall=!0:"AiEmotion"==s.currentType&&(i.aiEmotionCall=!0)},Z=()=>{f.value=!0,"AIchat"==s.currentType?i.aiChatCall=!1:"AiEmotion"==s.currentType&&(i.aiEmotionCall=!1)},X=n({}),Q=async e=>{var t,n;if("AIchat"==s.currentType&&i.firstAPICall)h.warning("正在获取回复中,请稍后");else try{g.value=e.id;const r=await D({model:"AIchat"==s.currentType?1:2,parentId:e.parentId,recordId:e.id});if(r&&r.data){u.value&&(f.value=!0,"AIchat"==s.currentType?i.aiChatCall=!1:"AiEmotion"==s.currentType&&(i.aiEmotionCall=!1)),l.isFeedback=!1,X.value=r.data,i.dbqbClickRecord=X.value;const a={queryText:r.data.keyword,stockInfo:{name:(null==(t=r.data.stockData)?void 0:t.stockName)||e.stockName||"",code:e.stockCode||"",market:e.stockMarket||"cn"},apiData:r.data.stockData||{},conclusionData:(null==(n=r.data.wokeFlowData)?void 0:n.One)||{},timestamp:e.createdTime||(new Date).toISOString()};c("selectRecord",a)}}catch(r){}},ee=e=>{S.value.id=e,p((()=>{const e=document.querySelector(".el-popover");e&&(e.style.display="none"),document.body.click()})),O.value=!0},te=()=>{"AIchat"==s.currentType&&i.firstAPICall?h.warning("正在获取回复中,请稍后"):c("showAnnouncement")},ne=()=>{"AIchat"==s.currentType&&i.firstAPICall?h.warning("正在获取回复中,请稍后"):c("showFeedback")};return a((()=>i.searchRecord),(e=>{i.searchRecord&&(q({model:"AIchat"==s.currentType?1:2,token:localStorage.getItem("localToken")}),i.searchRecord=!1)})),t({isCollapsed:f,toggleCollapse:()=>{f.value=!f.value,localStorage.setItem("historyRecordCollapsed",f.value)},getHistoryList:q,selectedRecordId:g}),v((()=>{const e=navigator.userAgent;u.value=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),q({model:"AIchat"==s.currentType?1:2,token:localStorage.getItem("localToken")})})),(e,t)=>{const n=C("DocumentDelete"),r=C("el-icon"),a=C("MoreFilled"),o=C("el-popover"),i=C("el-button"),l=C("el-dialog");return m(),y(_,null,[u.value?(m(),y("div",{key:1,class:x(["mobile-history-record-container",{mobileCollapsed:!f.value}])},[f.value?A("",!0):(m(),y("div",Lt,[w("div",{class:"mobile-head-container"},[w("img",{class:"mobile-toggle-btn",onClick:Z,src:"https://d31zlh4on95l9h.cloudfront.net/images/37fe3d79a8a700f6c674c9f0e7af066b.png",alt:"icon"}),t[15]||(t[15]=w("div",{class:"mobile-history-actions"},[w("img",{src:st,alt:"Logo",class:"logo-img"})],-1))]),w("div",Dt,[0===M.value.length?(m(),y("div",jt,[w("div",Ft,[E(r,{class:"documentDelete"},{default:z((()=>[E(n)])),_:1})]),t[16]||(t[16]=w("p",{class:"empty-text"},"暂无历史记录",-1))])):(m(!0),y(_,{key:1},k($.value,(e=>(m(),y("div",{key:e.name},[0!=e.list.length?(m(),y("div",Ot,I(e.name),1)):A("",!0),(m(!0),y(_,null,k(e.list,(n=>(m(),y("div",{key:n.id,class:x(["history-item",{active:g.value===n.id}])},[w("div",{class:"record-content",onClick:e=>Q(n)},[w("div",Wt,[d.value[n.stockMarket]?(m(),y("img",{key:0,src:d.value[n.stockMarket],alt:n.stockMarket},null,8,Ut)):(m(),y("img",Mt))]),w("div",$t,[w("div",Nt,[w("span",Bt,I(n.stockName),1),w("span",Ht,"("+I(n.stockCode)+")",1),"置顶"===e.name?(m(),y("div",Vt,t[17]||(t[17]=[w("svg",{t:"1755227529729",class:"top-icon",viewBox:"320 280 380 460",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7392"},[w("path",{d:"M351.085714 292.571429h321.828572v29.257142H351.085714v-29.257142z m175.542857 125.805714l146.285715 146.285714-20.48 20.48-125.805715-125.805714V731.428571h-29.257142v-272.091428L371.565714 585.142857l-20.48-20.48 146.285715-146.285714h29.257142z",fill:"#FFFFFF","p-id":"7393"})],-1)]))):A("",!0)]),w("div",qt,I(b(ue)(n.createdTime).format("YYYY-MM-DD HH:mm:ss")),1)])],8,Rt),w("div",Yt,[E(o,{class:"box-item",placement:"right-start",trigger:"click"},{reference:z((()=>[E(r,{class:"more-btn"},{default:z((()=>[E(a)])),_:1})])),default:z((()=>[w("div",Gt,[w("div",Jt,[t[18]||(t[18]=w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/9ad3617c94955bcb76e1b11db70bb80b.png",alt:""},null,-1)),P(" 数据更新时间:"+I(b(ue)(n.date).format("D/M/YYYY")),1)]),n.isTop?(m(),y("div",{key:0,class:"popover-item popover-btn",onClick:e=>Y(n.isTop,n.id)},t[19]||(t[19]=[w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/a458305d8275734cc96bf6cad29864bf.png",alt:""},null,-1),P(" 取消置顶 ")]),8,Kt)):(m(),y("div",{key:1,class:"popover-item popover-btn",onClick:e=>Y(n.isTop,n.id)},t[20]||(t[20]=[w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/a458305d8275734cc96bf6cad29864bf.png",alt:""},null,-1),P(" 置顶 ")]),8,Zt)),w("div",{class:"popover-item popover-btn",onClick:e=>ee(n.id)},t[21]||(t[21]=[w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/027718d41523375a69e9cac927601cf8.png",alt:""},null,-1),P(" 删除 ")]),8,Xt)])])),_:2},1024)])],2)))),128))])))),128))]),w("div",{class:"mobile-bottom-container"},[w("div",{class:"mobile-bottom-btn",onClick:te,title:"公告"},t[22]||(t[22]=[w("img",{class:"mobile-bottom-announcement",src:"https://d31zlh4on95l9h.cloudfront.net/images/172be9b9c4d936f2f6b182ef7a4bed10.png",alt:"icon"},null,-1),w("div",{class:"mobile-bottom-text"},"公告",-1)])),w("div",{class:"mobile-bottom-btn",onClick:ne,title:"用户反馈"},t[23]||(t[23]=[w("img",{class:"mobile-bottom-feedback",src:"https://d31zlh4on95l9h.cloudfront.net/images/ed88a0a7095c3cd1e0b51ffcca7f4068.png",alt:"icon"},null,-1),w("div",{class:"mobile-bottom-text"},"用户反馈",-1)]))])]))],2)):(m(),y("div",{key:0,class:x(["history-record-container",{collapsed:!f.value}])},[f.value?(m(),y("div",ut,[t[3]||(t[3]=w("img",{class:"collapsed-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/74430a4ebbb67aefc713bf694147fb2a.png",alt:"icon"},null,-1)),w("img",{class:"collapsed-toggle-btn",onClick:G,src:"https://d31zlh4on95l9h.cloudfront.net/images/815e7ebfb1963eadca9435e82c3c4a8d.png",alt:"icon",title:"打开边栏"})])):A("",!0),f.value?(m(),y("div",ct,[w("div",{class:"collapsed-bottom-btn",onClick:te,title:"公告"},t[4]||(t[4]=[w("img",{class:"collapsed-bottom-announcement",src:"https://d31zlh4on95l9h.cloudfront.net/images/172be9b9c4d936f2f6b182ef7a4bed10.png",alt:"icon"},null,-1)])),w("div",{class:"collapsed-bottom-btn",onClick:ne,title:"用户反馈"},t[5]||(t[5]=[w("img",{class:"collapsed-bottom-feedback",src:"https://d31zlh4on95l9h.cloudfront.net/images/ed88a0a7095c3cd1e0b51ffcca7f4068.png",alt:"icon"},null,-1)]))])):A("",!0),f.value?A("",!0):(m(),y("div",dt,[w("div",{class:"head-container"},[t[6]||(t[6]=w("div",{class:"history-actions"},[w("img",{src:st,alt:"Logo",class:"logo-img"})],-1)),w("img",{class:"toggle-btn",onClick:Z,src:"https://d31zlh4on95l9h.cloudfront.net/images/815e7ebfb1963eadca9435e82c3c4a8d.png",alt:"icon",title:"收起边栏"})]),w("div",ft,[0===M.value.length?(m(),y("div",pt,[w("div",ht,[E(r,{class:"documentDelete"},{default:z((()=>[E(n)])),_:1})]),t[7]||(t[7]=w("p",{class:"empty-text"},"暂无历史记录",-1))])):(m(!0),y(_,{key:1},k($.value,(e=>(m(),y("div",{key:e.name},[0!=e.list.length?(m(),y("div",vt,I(e.name),1)):A("",!0),(m(!0),y(_,null,k(e.list,(n=>(m(),y("div",{key:n.id,class:x(["history-item",{active:g.value===n.id}])},[w("div",{class:"record-content",onClick:e=>Q(n)},[w("div",mt,[d.value[n.stockMarket]?(m(),y("img",{key:0,src:d.value[n.stockMarket],alt:n.stockMarket},null,8,yt)):(m(),y("img",wt))]),w("div",bt,[w("div",_t,[w("span",kt,I(n.stockName),1),w("span",xt,"("+I(n.stockCode)+")",1),"置顶"===e.name?(m(),y("div",It,t[8]||(t[8]=[w("svg",{t:"1755227529729",class:"top-icon",viewBox:"320 280 380 460",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7392"},[w("path",{d:"M351.085714 292.571429h321.828572v29.257142H351.085714v-29.257142z m175.542857 125.805714l146.285715 146.285714-20.48 20.48-125.805715-125.805714V731.428571h-29.257142v-272.091428L371.565714 585.142857l-20.48-20.48 146.285715-146.285714h29.257142z",fill:"#FFFFFF","p-id":"7393"})],-1)]))):A("",!0)]),w("div",At,I(b(ue)(n.createdTime).format("YYYY-MM-DD HH:mm:ss")),1)])],8,gt),w("div",St,[E(o,{class:"box-item",placement:"right-start",trigger:"click"},{reference:z((()=>[E(r,{class:"more-btn"},{default:z((()=>[E(a)])),_:1})])),default:z((()=>[w("div",Tt,[w("div",Ct,[t[9]||(t[9]=w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/9ad3617c94955bcb76e1b11db70bb80b.png",alt:""},null,-1)),P(" 数据更新时间:"+I(b(ue)(n.date).format("D/M/YYYY")),1)]),n.isTop?(m(),y("div",{key:0,class:"popover-item popover-btn",onClick:e=>Y(n.isTop,n.id)},t[10]||(t[10]=[w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/a458305d8275734cc96bf6cad29864bf.png",alt:""},null,-1),P(" 取消置顶 ")]),8,Et)):(m(),y("div",{key:1,class:"popover-item popover-btn",onClick:e=>Y(n.isTop,n.id)},t[11]||(t[11]=[w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/a458305d8275734cc96bf6cad29864bf.png",alt:""},null,-1),P(" 置顶 ")]),8,zt)),w("div",{class:"popover-item popover-btn",onClick:e=>ee(n.id)},t[12]||(t[12]=[w("img",{class:"popover-icon",src:"https://d31zlh4on95l9h.cloudfront.net/images/027718d41523375a69e9cac927601cf8.png",alt:""},null,-1),P(" 删除 ")]),8,Pt)])])),_:2},1024)])],2)))),128))])))),128))]),w("div",{class:"bottom-container"},[w("div",{class:"bottom-btn",onClick:te,title:"公告"},t[13]||(t[13]=[w("img",{class:"bottom-announcement",src:"https://d31zlh4on95l9h.cloudfront.net/images/172be9b9c4d936f2f6b182ef7a4bed10.png",alt:"icon"},null,-1)])),w("div",{class:"bottom-btn",onClick:ne,title:"用户反馈"},t[14]||(t[14]=[w("img",{class:"bottom-feedback",src:"https://d31zlh4on95l9h.cloudfront.net/images/ed88a0a7095c3cd1e0b51ffcca7f4068.png",alt:"icon"},null,-1)]))])]))],2)),E(l,{modelValue:O.value,"onUpdate:modelValue":t[2]||(t[2]=e=>O.value=e),title:"永久删除记录",width:W.value},{footer:z((()=>[w("div",Qt,[E(i,{onClick:t[0]||(t[0]=e=>U())},{default:z((()=>t[24]||(t[24]=[P("取消")]))),_:1}),E(i,{type:"primary",onClick:t[1]||(t[1]=e=>(async()=>{try{await j({model:"AIchat"==s.currentType?1:2,recordId:S.value.id}),U(),await q({model:"AIchat"==s.currentType?1:2,token:localStorage.getItem("localToken")})}catch(e){}})())},{default:z((()=>t[25]||(t[25]=[P(" 删除 ")]))),_:1})])])),default:z((()=>[t[26]||(t[26]=w("span",null,"删除后,该记录将不可恢复。确认删除吗?",-1))])),_:1},8,["modelValue","width"])],64)}}},[["__scopeId","data-v-5386044b"]]);const tn={class:"homepage",id:"testId"},nn={key:0,class:"homepage-logo"},rn=["src"],an={key:1,class:"homepage-right-group"},on={class:"count-number"},ln={class:"main-wrapper"},sn={class:"tab-section"},un=["onClick"],cn={key:0,class:"pc-count-badge"},dn={class:"pc-action-btn"},fn={class:"pc-count-number"},pn={class:"footer-first-line"},hn={class:"left-group"},vn=["src"],gn=["src"],mn={class:"footer-second-line"},yn={class:"input-container"},wn=["src"],bn={class:"homepage-right-group"},_n={class:"count-number"},kn={class:"changeMsg"},xn={class:"changeInfo"},In={class:"changeImg"},An=["src"],Sn={class:"changeContent"},Tn={class:"changeUsername"},Cn={class:"changeJwcode"},En={class:"changeRule"},zn={class:"changeLevel"},Pn={class:"changeLevelContent"},Ln=["onClick"],Dn={class:"changeLevelItem"},jn={class:"changeLevelItemToken"},Fn={class:"changeLevelItemToken"},On={class:"changeNow"},Rn={class:"changePay"},Wn={class:"changeMsg"},Un={class:"changeInfo"},Mn={class:"changeImg"},$n=["src"],Nn={class:"changeContent"},Bn={class:"changeJwcode"},Hn={class:"changeLevel"},Vn={class:"changeLevelTitle"},qn={class:"changeRule"},Yn={class:"changeLevelContent"},Gn=["onClick"],Jn={class:"changeLevelItem"},Kn={class:"changeLevelItemToken"},Zn={class:"changeLevelItemToken"},Xn={class:"changeNow"},Qn={class:"changePay"},er={class:"rechargeDialogBtnGroup"},tr={class:"confirmDialogContent"},nr={class:"confirmDialogBtnGroup"},rr={class:"changeSuccessDialogContent"},ar={key:5,class:"tokenRuleDialog"},or={class:"tokenRuleDialogContent"};var ir=ce({__name:"homePage",setup(e){const t=n(null),o=n(null),i=n(null),{getQueryVariable:l,setActiveTabIndex:s,getUserInfo:u}=K(),c=K(),d=J(),f=ae(),T=pe();r((()=>("AiEmotion"===L.value?f:T).isVoiceEnabled));const L=n(sessionStorage.getItem("activeTabAI")||"AIchat"),D=n(parseInt(sessionStorage.getItem("activeIndexAI")||"0")),j=r((()=>[{name:"AIchat",label:"夺宝奇兵大模型"},{name:"AiEmotion",label:"AI情绪大模型"}])),F=(e,t,n=!1)=>{xe.value=!1,he.value=!1,re.value="AIchat"==e?d.chatInput:"AiEmotion"==e&&d.emotionInput,n&&"AIchat"!==L.value?(L.value="AIchat",D.value=0,sessionStorage.setItem("activeTabAI","AIchat"),sessionStorage.setItem("activeIndexAI","0")):(L.value=e,D.value=t,sessionStorage.setItem("activeTabAI",e),sessionStorage.setItem("activeIndexAI",t.toString())),s(t),Y(document.getElementById("testId"))},G=r((()=>"AIchat"===L.value?lt:"AIfind"===L.value?le:"AiEmotion"===L.value?oe:void 0)),Z=r((()=>he.value?fe:de)),X=()=>{F("AIchat",0,!0)},Q=r((()=>d.UserCount));n(!0);const ee=n(""),te=n([]),ne=r((()=>{d.isLoading})),re=n(!1),ie=e=>{ee.value=e};a((()=>d.announcementMsg),(e=>{d.announcementMsg&&!re.value&&(ee.value=d.announcementMsg,d.announcementMsg=null)})),a((()=>c.isFeedback),(async e=>{c.isFeedback||(he.value=!1,await p(),Oe())})),a((()=>d.chatInput),(async e=>{"AIchat"==L.value&&(re.value=d.chatInput)})),a((()=>d.emotionInput),(async e=>{"AiEmotion"==L.value&&(re.value=d.emotionInput)}));const se=async()=>{var e;if(null==localStorage.getItem("localToken")||""==localStorage.getItem("localToken"))return void h.error("请先登录");if(!ee.value||!ee.value.trim())return void h.warning("输入内容不能为空");if(xe.value=!1,i&&(i.value.selectedRecordId=null),"AiEmotion"===L.value)return re.value=!0,d.emotionInput=!0,null==(e=o.value)||e.handleSendMessage(ee.value,(()=>{re.value=!1,d.emotionInput=!1})),void(ee.value="");if(X(),re.value)return;re.value=!0,d.chatInput=!0;const t=ee.value;ee.value="",setTimeout((()=>{te.value=[...te.value,{sender:"user",content:t,audioArray:[],audioStatus:!1}]}),200)},ue=()=>{re.value=!1},ce=e=>{p((()=>{o.value&&o.value.addStock&&o.value.addStock(e)}))},he=n(!1),ve=n(!1),ge=n({AIchat:"true"===sessionStorage.getItem("hasShownTokenRule_AIchat"),AiEmotion:"true"===sessionStorage.getItem("hasShownTokenRule_AiEmotion")}),ye=()=>{ve.value=!1},we=async()=>{c.isFeedback=!0,xe.value=!1,he.value=!0,t.value&&i&&(i.value.isCollapsed=!0)},be=()=>{c.isFeedback=!0,he.value=!1,t.value&&i&&(i.value.isCollapsed=!0)},_e=n(null),ke=n(null),xe=n(!1),Ie=n(null),Ae=n(!1),Se=n(!1),Te=n(null),Ce=n(!1),Ee=n(null),ze=()=>"AIchat"===L.value?_e.value:"AiEmotion"===L.value?ke.value:null,Pe=me.throttle((async()=>{const e=ze();e&&(await p(),xe.value||(e.scrollTop=e.scrollHeight-e.offsetHeight))}),300,{trailing:!1}),Le=me.debounce((()=>{if("AiEmotion"===L.value&&Ae.value&&!Se.value&&!Ce.value){const e=ke.value;e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)}}),150),De=()=>{Se.value=!0,Te.value&&clearTimeout(Te.value)};window.handleChartInteractionStart=()=>{Ce.value=!0,Ee.value&&clearTimeout(Ee.value)},window.handleChartInteractionEnd=()=>{Ee.value&&clearTimeout(Ee.value),Ee.value=setTimeout((()=>{Ce.value=!1}),1e3)};const je=()=>{if("AiEmotion"===L.value){const e=ke.value;e&&p((()=>{e.scrollTop=e.scrollHeight-e.offsetHeight}))}},Fe=()=>{Ae.value=!1,Se.value=!1,Te.value&&(clearTimeout(Te.value),Te.value=null),Ie.value&&(Ie.value.disconnect(),Ie.value.mutationObserver&&(Ie.value.mutationObserver.disconnect(),Ie.value.mutationObserver=null),Ie.value.scrollListener&&ke.value&&(ke.value.removeEventListener("scroll",Ie.value.scrollListener),Ie.value.scrollListener=null),Ie.value=null)};a((()=>d.messages.length),(()=>{"AIchat"===L.value&&Pe()}),{deep:!1,immediate:!0}),a((()=>d.dbqbClickRecord),(async(e,t)=>{const n=ze();n&&(await p(),n.scrollTop=0)})),a((()=>d.dbqbScrollToTop),(async(e,t)=>{const n=ze();n&&(await p(),n.scrollTop=0)})),a(L,(async()=>{"AIchat"!=L.value&&"AiEmotion"!=L.value||i.value&&i.value.getHistoryList&&i.value.getHistoryList({model:"AIchat"==L.value?1:2,token:localStorage.getItem("localToken")}),"AIchat"===L.value?(xe.value=!1,Fe(),setTimeout((()=>{}),100)):"AiEmotion"===L.value?(await p(),(()=>{Fe(),Ae.value=!0,Ie.value=new ResizeObserver((e=>{Ae.value&&"AiEmotion"===L.value&&!Ce.value&&Le()})),document.body&&Ie.value.observe(document.body);const e=new MutationObserver((e=>{let t=!1;e.forEach((e=>{"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some((e=>e.nodeType===Node.ELEMENT_NODE?e.offsetHeight>0||e.scrollHeight>0:e.nodeType===Node.TEXT_NODE&&e.textContent.trim().length>0))&&(t=!0)})),t&&Ae.value&&"AiEmotion"===L.value&&!Ce.value&&Le()})),t=ke.value;t&&e.observe(t,{childList:!0,subtree:!0,attributes:!1,characterData:!0}),Ie.value.mutationObserver=e,t&&(t.addEventListener("scroll",De,{passive:!0}),Ie.value.scrollListener=De)})()):Fe()}),{deep:!0,immediate:!0});const Oe=me.throttle((()=>{const e=ze();if(!e)return;let t=0;e.addEventListener("scroll",(()=>{const n=e.scrollTop,r=n+e.offsetHeight+70>=e.scrollHeight;"AIchat"===L.value&&(xe.value=!0,r&&(xe.value=!1)),t=n}))}),500,{trailing:!1}),Re=e=>{const t=document.querySelector("html"),n=document.querySelector("body");if(/Android/i.test(navigator.userAgent)){document.querySelector(".homepage").style.height=`${e}px`,t.scrollTop=0}else{document.querySelector(".homepage").style.height=`${e}px`,t.scrollTop=0}setTimeout((()=>{t.style.overflow="hidden",n.style.overflow="hidden"}),200)},We=n(!1),Ue=function(){const e=window.visualViewport;setTimeout((()=>{window.innerHeight,e.height;Re(e.height)}),200)},Me=function(){We.value=!1;const e=window.visualViewport;setTimeout((()=>{window.innerHeight,e.height;Re(e.height)}),200)};let $e=null;const Ne=e=>{if(!c.isFeedback){if(i&&!i.value.isCollapsed)return;const t=ze();t&&t.contains(e.target)||e.preventDefault()}},Be=me.throttle((async()=>{await new Promise((e=>setTimeout(e,200)));const e=navigator.userAgent;t.value=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}),300,{trailing:!1}),He=()=>{i.value&&void 0!==i.value.isCollapsed&&(i.value.isCollapsed=!i.value.isCollapsed,"AIchat"==L.value?d.aiChatCall=!0:"AiEmotion"==L.value&&(d.aiEmotionCall=!0))},Ve=()=>{if(t.value)uni.postMessage({data:{val:{name:"JWopenView",extra:{data:{type:3}}}}});else{window.parent.postMessage({type:"NAVIGATE_TO_HOMEPAGE",menu:"999999991"},"*")}},qe=n({nickname:"",img:"",jwcode:""}),Ye=n({gold:1,token:1}),Ge=n([{position:10,calculatedPosition:10},{position:20,calculatedPosition:20},{position:50,calculatedPosition:50},{position:100,calculatedPosition:100},{position:200,calculatedPosition:200},{position:500,calculatedPosition:500},{position:1e3,calculatedPosition:1e3}]),Je=n(Ge.value[0]||{position:10,calculatedPosition:10}),Ke=n(90),Ze=n(!1),Xe=n(!1),Qe=n(!1),et=n(!1),tt=e=>{e.target.src="https://cdn.legu168.com/jtzy/Product/pcjingwang/images/userimg.png"},nt=async()=>{try{c.userInfo.img&&c.userInfo.nickname&&c.userInfo.jwcode||await u(),qe.value.nickname=c.userInfo.nickname,qe.value.img=c.userInfo.img,qe.value.jwcode=c.userInfo.jwcode;const[e,t]=await Promise.all([U(),R({token:String(localStorage.getItem("localToken"))})]);Ge.value=e.data,Je.value=Ge.value[0],Ye.value.token=e.data[0].ratio,Ke.value=t.data.total,Ze.value=!0}catch(e){}},rt=e=>{Je.value=e},at=()=>{Ke.value{if(sessionStorage.setItem("rechargeFlag","1"),sessionStorage.setItem("activeLevel",JSON.stringify(Je.value)),t.value)uni.postMessage({data:{val:{name:"JWopenView",extra:{data:{type:4}}}}});else{window.parent.location.href="https://web.homilychart.com/user/myGold?token="+encodeURIComponent(localStorage.getItem("localToken"))+"&where=xiaocaishen&successUrl=https://mp.homilychart.com/aixiaocaishen/homePage"}};return v((async()=>{(()=>{const e=sessionStorage.getItem("activeTabAI");"true"===sessionStorage.getItem("fromExternalPage")&&e&&!ge.value[e]&&(ve.value=!0,ge.value[e]=!0,sessionStorage.setItem(`hasShownTokenRule_${e}`,"true"),sessionStorage.removeItem("fromExternalPage"))})(),Be(),$e=Ne,document.addEventListener("touchmove",$e,{passive:!1}),Y(document.getElementById("testId")),await d.getUserCount(),Pe(),Oe(),window.showCountHandler=nt,window.addEventListener("resize",Be),window.receiveUniAppMessage=async function(e){if("paymentSuccess"===e.type){const[e,t]=await Promise.all([O({state:1}),R({token:String(localStorage.getItem("localToken"))})]);Ke.value=t.data.total,Xe.value=!1}},"1"==sessionStorage.getItem("rechargeFlag")&&"success"==l("successType")&&(await O({state:1}),await nt(),Je.value=JSON.parse(sessionStorage.getItem("activeLevel"))||Ge.value[0],sessionStorage.removeItem("activeLevel"),sessionStorage.setItem("rechargeFlag","0"))})),g((()=>{window.removeEventListener("resize",Be),$e&&document.removeEventListener("touchmove",$e),Fe(),delete window.showCountHandler,delete window.receiveUniAppMessage,Ee.value&&clearTimeout(Ee.value),window.handleChartInteractionStart&&delete window.handleChartInteractionStart,window.handleChartInteractionEnd&&delete window.handleChartInteractionEnd})),(e,n)=>{var r,a,l,s,u;const f=C("el-header"),p=C("el-main"),h=C("el-input"),v=C("el-footer"),g=C("el-container"),T=C("el-dialog"),O=C("Close"),R=C("el-icon");return m(),y("div",tn,[E(en,{ref_key:"historyRecordRef",ref:i,"current-type":L.value,onSelectRecord:ce,isMobile:t.value,onShowAnnouncement:we,onShowFeedback:be},null,8,["current-type","isMobile"]),t.value&&!(null==(r=i.value)?void 0:r.isCollapsed)?(m(),y("div",{key:0,class:"zhezhao",onClick:He})):A("",!0),b(c).isFeedback?(m(),W(g,{key:2,class:x(["main-container",{collapsed:(null==(s=i.value)?void 0:s.isCollapsed)&&!t.value,unCollapsed:!(null==(u=i.value)?void 0:u.isCollapsed)&&!t.value}])},{default:z((()=>[E(f,{class:"homepage-head"},{default:z((()=>[w("div",bn,[w("div",{class:"count-badge",onClick:nt},[n[22]||(n[22]=w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/74e20c65c9ef2526477c63ad68698a50.png",class:"action-btn"},null,-1)),w("div",_n,I(Q.value),1),n[23]||(n[23]=w("div",{class:"clickGetCount"},"点击获取Token",-1))]),w("div",{class:"backToHomeBtn",onClick:n[8]||(n[8]=e=>Ve())},n[24]||(n[24]=[w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/9cbc5b2eb2327bd04d015c19d8c3f1f9.png",alt:"返回首页",class:"backImg"},null,-1),w("div",{class:"backContent"},"返回首页",-1)]))])])),_:1}),E(p,{class:"homepage-body"},{default:z((()=>[(m(),W(N(Z.value)))])),_:1})])),_:1},8,["class"])):(m(),W(g,{key:1,class:x(["main-container",{collapsed:(null==(a=i.value)?void 0:a.isCollapsed)&&!t.value,unCollapsed:!(null==(l=i.value)?void 0:l.isCollapsed)&&!t.value}])},{default:z((()=>[E(f,{class:"homepage-head"},{default:z((()=>[t.value?(m(),y("div",nn,[w("img",{class:"expand",onClick:He,src:"https://d31zlh4on95l9h.cloudfront.net/images/37fe3d79a8a700f6c674c9f0e7af066b.png",alt:"icon"}),w("img",{src:b(st),alt:"图片加载失败",class:"logo1"},null,8,rn)])):A("",!0),t.value?(m(),y("div",an,[w("div",{class:"count-badge",onClick:nt},[n[17]||(n[17]=w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/74e20c65c9ef2526477c63ad68698a50.png",class:"action-btn"},null,-1)),w("div",on,I(Q.value),1),n[18]||(n[18]=w("div",{class:"clickGetCount"},"点击获取Token",-1))]),w("div",{class:"backToHomeBtn",onClick:n[0]||(n[0]=e=>Ve())},n[19]||(n[19]=[w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/9cbc5b2eb2327bd04d015c19d8c3f1f9.png",alt:"返回首页",class:"backImg"},null,-1),w("div",{class:"backContent"},"返回首页",-1)]))])):A("",!0)])),_:1}),E(p,{class:"homepage-body"},{default:z((()=>[w("div",ln,[w("section",sn,[w("div",{class:x(["tab-container",{pcTabContainer:!t.value}])},[(m(!0),y(_,null,k(j.value,((e,t)=>(m(),y("div",{key:e.name,onClick:n=>F(e.name,t),class:x(["tab-item",{active:D.value===t&&!he.value}])},[w("span",null,I(e.label),1)],10,un)))),128)),t.value?A("",!0):(m(),y("div",cn,[w("div",{class:"pc-countBtn",onClick:nt},[w("div",dn,[w("div",fn,I(Q.value),1)]),n[20]||(n[20]=w("div",{class:"pc-clickGetCount"},"点击获取Token",-1))]),w("div",{class:"pc-backToHomeBtn",onClick:n[1]||(n[1]=e=>Ve())},n[21]||(n[21]=[w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/9cbc5b2eb2327bd04d015c19d8c3f1f9.png",alt:"返回首页",class:"pc-backImg"},null,-1),w("div",{class:"pc-backContent"},"返回首页",-1)]))]))],2)]),M(w("div",{class:x(["tab-content",{pcTabContent:!t.value}]),ref_key:"tabContentAIchat",ref:_e},["AIchat"===L.value?(m(),W(N(G.value),{key:0,messages:te.value,onUpdateMessage:ie,onSendMessage:se,onEnsureAIchat:X,onEnableInput:ue},null,40,["messages"])):A("",!0)],2),[[$,"AIchat"===L.value]]),M(w("div",{class:x(["tab-content",{pcTabContent:!t.value}]),ref_key:"tabContentAiEmotion",ref:ke},["AiEmotion"===L.value?(m(),W(N(G.value),{key:0,messages:te.value,onUpdateMessage:ie,onSendMessage:se,onEnsureAIchat:X,onEnableInput:ue,onScrollToBottom:je,onShowCount:nt,ref_key:"aiEmotionRef",ref:o},null,40,["messages"])):A("",!0)],2),[[$,"AiEmotion"===L.value]])])])),_:1}),E(v,{class:x(["homepage-footer",{pcFooter:!t.value}]),id:"input"},{default:z((()=>[w("div",pn,[w("div",hn,[w("img",{src:"AIchat"===L.value?b("/aixiaocaishen/static/images/dbqb-button01-62205d53.png"):b("/aixiaocaishen/static/images/dbqb-button02-1cbaed86.png"),onClick:n[2]||(n[2]=e=>F("AIchat",0)),class:"action-btn model-btn",alt:"夺宝奇兵大模型"},null,8,vn),w("img",{src:"AiEmotion"===L.value?b("/aixiaocaishen/static/images/emotion-button01-a55ac1f4.png"):b("/aixiaocaishen/static/images/emotion-button02-0024387c.png"),onClick:n[3]||(n[3]=e=>F("AiEmotion",1)),class:"action-btn model-btn",alt:"AI情绪大模型"},null,8,gn)])]),w("div",mn,[w("div",yn,[E(h,{type:"textarea",modelValue:ee.value,"onUpdate:modelValue":n[4]||(n[4]=e=>ee.value=e),onFocus:Ue,onBlur:Me,autosize:{minRows:1,maxRows:4},class:x(["msg-input",{input:!ee.value&&!We.value}]),onKeydown:n[5]||(n[5]=B(H((e=>ne.value||re.value?null:se()),["exact","prevent"]),["enter"])),disabled:re.value,resize:"none",onCompositionstart:n[6]||(n[6]=e=>We.value=!0),onCompositionend:n[7]||(n[7]=e=>We.value=!1)},null,8,["modelValue","disabled","class"]),w("img",{src:re.value?"https://d31zlh4on95l9h.cloudfront.net/images/aa192bcbc1682c97e1bc6fb422f2afff.png":"https://d31zlh4on95l9h.cloudfront.net/images/e6ec2ae238ced85b74e0912e988f243e.png",onClick:se,class:"action-btn send-btn-inner",style:V({opacity:re.value?.5:1,cursor:re.value?"not-allowed":"pointer"})},null,12,wn)])])])),_:1},8,["class"])])),_:1},8,["class"])),t.value?(m(),W(T,{key:4,modelValue:Ze.value,"onUpdate:modelValue":n[10]||(n[10]=e=>Ze.value=e),width:"80%"},{default:z((()=>[w("div",Wn,[w("div",Un,[w("div",Mn,[w("img",{src:qe.value.img,alt:"头像",class:"changeImgClass",onError:tt},null,40,$n)]),w("div",Nn,[w("div",Bn,"精网号:"+I(qe.value.jwcode),1)])])]),w("div",Hn,[w("div",Vn,[n[28]||(n[28]=P(" 兑换Token ")),w("div",qn," (兑换规则:"+I(Ye.value.gold)+"金币="+I(Ye.value.token)+"Token) ",1)]),w("div",Yn,[(m(!0),y(_,null,k(Ge.value,(e=>(m(),y("div",{class:x(["changeLevelItems",{changeLevelItemsActive:e.position==Je.value.position}]),key:e,onClick:t=>rt(e)},[w("div",Jn,[w("div",Kn,[n[29]||(n[29]=w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/403ef762dd2f335df3b0c9e3fe488375.png",alt:"token",class:"changeLevelItemTokenImg"},null,-1)),P(" "+I(e.calculatedPosition),1)]),w("div",Zn,I(e.position)+" 金币",1)])],10,Gn)))),128))])]),w("div",Xn,[n[30]||(n[30]=P(" 应付金额 ")),w("div",Qn,I(Je.value.position),1),P(" (金币余额:"+I(Ke.value)+") ",1)]),w("div",{class:"changeBtn",onClick:at},"立即兑换")])),_:1},8,["modelValue"])):(m(),W(T,{key:3,modelValue:Ze.value,"onUpdate:modelValue":n[9]||(n[9]=e=>Ze.value=e),width:"48%"},{default:z((()=>[w("div",kn,[w("div",xn,[w("div",In,[w("img",{src:qe.value.img,alt:"头像",class:"changeImgClass",onError:tt},null,40,An)]),w("div",Sn,[w("div",Tn,I(qe.value.nickname),1),w("div",Cn,"精网号:"+I(qe.value.jwcode),1)])]),w("div",En," 兑换规则:"+I(Ye.value.gold)+"金币="+I(Ye.value.token)+"Token ",1)]),w("div",zn,[n[26]||(n[26]=w("div",{class:"changeLevelTitle"},"兑换Token",-1)),w("div",Pn,[(m(!0),y(_,null,k(Ge.value,(e=>(m(),y("div",{class:x(["changeLevelItems",{changeLevelItemsActive:e.position==Je.value.position}]),key:e,onClick:t=>rt(e)},[w("div",Dn,[w("div",jn,[n[25]||(n[25]=w("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/403ef762dd2f335df3b0c9e3fe488375.png",alt:"token",class:"changeLevelItemTokenImg"},null,-1)),P(" "+I(e.calculatedPosition),1)]),w("div",Fn,I(e.position)+" 金币",1)])],10,Ln)))),128))])]),w("div",On,[n[27]||(n[27]=P(" 应付金额 ")),w("div",Rn,I(Je.value.position),1),P(" (金币余额:"+I(Ke.value)+") ",1)]),w("div",{class:"changeBtn",onClick:at},"立即兑换")])),_:1},8,["modelValue"])),E(T,{modelValue:Xe.value,"onUpdate:modelValue":n[12]||(n[12]=e=>Xe.value=e),width:t.value?"60%":"30%","show-close":!1},{default:z((()=>[n[31]||(n[31]=w("div",{class:"rechargeDialogTitle"},"温馨提示",-1)),n[32]||(n[32]=w("div",{class:"rechargeDialogContent"}," 尊敬的用户您好!您当前的金币余额不足,无法进行兑换,可充值金币后进行兑换。点击下方的“前往充值”可进行充值。 ",-1)),w("div",er,[w("div",{class:"recharge",onClick:ot},"前往充值"),w("div",{class:"rechargeDialogCancel",onClick:n[11]||(n[11]=e=>Xe.value=!1)}," 取消 ")])])),_:1},8,["modelValue","width"]),E(T,{modelValue:Qe.value,"onUpdate:modelValue":n[15]||(n[15]=e=>Qe.value=e),width:t.value?"60%":"30%","show-close":!1},{default:z((()=>[n[33]||(n[33]=w("div",{class:"confirmDialogTitle"},"兑换",-1)),w("div",tr," 尊敬的用户您好!您确认要花费"+I(Je.value.position)+"金币兑换"+I(Je.value.calculatedPosition)+"Token吗? ",1),w("div",nr,[w("div",{class:"confirmDialogConfirm",onClick:n[13]||(n[13]=e=>(async()=>{try{await q({token:String(localStorage.getItem("localToken")),num:Je.value.position}),Qe.value=!1,Ze.value=!1,et.value=!0,setTimeout((()=>{et.value=!1}),2e3),await d.getUserCount()}catch(e){}})())},"确认"),w("div",{class:"confirmDialogCancel",onClick:n[14]||(n[14]=e=>Qe.value=!1)}," 取消 ")])])),_:1},8,["modelValue","width"]),E(T,{modelValue:et.value,"onUpdate:modelValue":n[16]||(n[16]=e=>et.value=e),width:t.value?"60%":"30%","show-close":!1,class:"changeSuccessDialog"},{default:z((()=>[n[34]||(n[34]=w("div",{class:"changeSuccessDialogTitle"},"兑换成功",-1)),w("div",rr," 尊敬的用户,恭喜您成功兑换:"+I(Je.value.calculatedPosition)+" Token ",1)])),_:1},8,["modelValue","width"]),ve.value?(m(),y("div",ar,[w("div",or,[w("div",{class:"tokenRuleDialogClose",onClick:ye},[E(R,null,{default:z((()=>[E(O)])),_:1})]),n[35]||(n[35]=S('
Token规则
Token消耗规则
• 在"夺宝奇兵大模型"、"AI情绪大模型"中搜索股票,若搜索成功,内容正常生成,则会消耗1Token
• 在"夺宝奇兵大模型"、"AI情绪大模型"中搜索股票,若搜索有误,无法生成内容,则不会消耗Token
• 搜索同一只股票,产出内容相同时,只扣除1次Token
• "夺宝奇兵"和"AI小财神"中Token是互通的
Token兑换规则
• 点击右上角"获取Token次数",即可进入Token兑换页进行金币兑换Token
• 金币兑换Token的比例为:1金币=1Token;一经兑换,不予退还
注意:报告生成过程中,请耐心等待,在此期间请勿进行页面刷新操作,以免导致报告生成进程中断
',4))])])):A("",!0)])}}},[["__scopeId","data-v-fa970538"]]);export{ir as default};