hqchart
Version:
stock chart
25 lines • 1.39 MB
JavaScript
webpackJsonp([5],[,,,,function(t,e,a){var i=a(6),r=a(48),n=a(49),o=a(9),s=a(44),l=a(22),h={},u={},e=t.exports=function(t,e,a,c,d){var f,C,p,D,m=d?function(){return t}:l(t),v=i(a,c,e?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(n(m)){for(f=s(t.length);f>g;g++)if((D=e?v(o(C=t[g])[0],C[1]):v(t[g]))===h||D===u)return D}else for(p=m.call(t);!(C=p.next()).done;)if((D=r(p,v,C.value,e))===h||D===u)return D};e.BREAK=h,e.RETURN=u},,,,,,,function(t,e,a){function i(t){for(var e=0;e<t.length;e++){var a=t[e],i=u[a.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](a.parts[r]);for(;r<a.parts.length;r++)i.parts.push(n(a.parts[r]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{for(var o=[],r=0;r<a.parts.length;r++)o.push(n(a.parts[r]));u[a.id]={id:a.id,refs:1,parts:o}}}}function r(){var t=document.createElement("style");return t.type="text/css",c.appendChild(t),t}function n(t){var e,a,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(C)return p;i.parentNode.removeChild(i)}if(D){var n=f++;i=d||(d=r()),e=o.bind(null,i,n,!1),a=o.bind(null,i,n,!0)}else i=r(),e=s.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}function o(t,e,a,i){var r=a?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var n=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(n,o[e]):t.appendChild(n)}}function s(t,e){var a=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(a+="\n/*# sourceURL="+r.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h=a(42),u={},c=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,f=0,C=!1,p=function(){},D="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a){C=a;var r=h(t,e);return i(r),function(e){for(var a=[],n=0;n<r.length;n++){var o=r[n],s=u[o.id];s.refs--,a.push(s)}e?(r=h(t,e),i(r)):r=[];for(var n=0;n<a.length;n++){var s=a[n];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var m=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e,a){var i,r;/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/
!function(e,a){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?a(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return a(t)}:a(e)}("undefined"!=typeof window?window:this,function(a,n){"use strict";function o(t,e,a){e=e||ut;var i,r=e.createElement("script");if(r.text=t,a)for(i in At)a[i]&&(r[i]=a[i]);e.head.appendChild(r).parentNode.removeChild(r)}function s(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Dt[mt.call(t)]||"object":typeof t}function l(t){var e=!!t&&"length"in t&&t.length,a=s(t);return!xt(t)&&!Tt(t)&&("array"===a||0===e||"number"==typeof e&&e>0&&e-1 in t)}function h(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function u(t,e,a){return xt(e)?bt.grep(t,function(t,i){return!!e.call(t,i,t)!==a}):e.nodeType?bt.grep(t,function(t){return t===e!==a}):"string"!=typeof e?bt.grep(t,function(t){return pt.call(e,t)>-1!==a}):bt.filter(e,t,a)}function c(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function d(t){var e={};return bt.each(t.match(Pt)||[],function(t,a){e[a]=!0}),e}function f(t){return t}function C(t){throw t}function p(t,e,a,i){var r;try{t&&xt(r=t.promise)?r.call(t).done(e).fail(a):t&&xt(r=t.then)?r.call(t,e,a):e.apply(void 0,[t].slice(i))}catch(t){a.apply(void 0,[t])}}function D(){ut.removeEventListener("DOMContentLoaded",D),a.removeEventListener("load",D),bt.ready()}function m(t,e){return e.toUpperCase()}function v(t){return t.replace(Vt,"ms-").replace(Gt,m)}function g(){this.expando=bt.expando+g.uid++}function S(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Xt.test(t)?JSON.parse(t):t)}function I(t,e,a){var i;if(void 0===a&&1===t.nodeType)if(i="data-"+e.replace(Kt,"-$&").toLowerCase(),"string"==typeof(a=t.getAttribute(i))){try{a=S(a)}catch(t){}Wt.set(t,e,a)}else a=void 0;return a}function x(t,e,a,i){var r,n,o=20,s=i?function(){return i.cur()}:function(){return bt.css(t,e,"")},l=s(),h=a&&a[3]||(bt.cssNumber[e]?"":"px"),u=(bt.cssNumber[e]||"px"!==h&&+l)&&Jt.exec(bt.css(t,e));if(u&&u[3]!==h){for(l/=2,h=h||u[3],u=+l||1;o--;)bt.style(t,e,u+h),(1-n)*(1-(n=s()/l||.5))<=0&&(o=0),u/=n;u*=2,bt.style(t,e,u+h),a=a||[]}return a&&(u=+u||+l||0,r=a[1]?u+(a[1]+1)*a[2]:+a[2],i&&(i.unit=h,i.start=u,i.end=r)),r}function T(t){var e,a=t.ownerDocument,i=t.nodeName,r=Qt[i];return r||(e=a.body.appendChild(a.createElement(i)),r=bt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Qt[i]=r,r)}function A(t,e){for(var a,i,r=[],n=0,o=t.length;n<o;n++)i=t[n],i.style&&(a=i.style.display,e?("none"===a&&(r[n]=Ut.get(i,"display")||null,r[n]||(i.style.display="")),""===i.style.display&&Zt(i)&&(r[n]=T(i))):"none"!==a&&(r[n]="none",Ut.set(i,"display",a)));for(n=0;n<o;n++)null!=r[n]&&(t[n].style.display=r[n]);return t}function b(t,e){var a;return a=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&h(t,e)?bt.merge([t],a):a}function E(t,e){for(var a=0,i=t.length;a<i;a++)Ut.set(t[a],"globalEval",!e||Ut.get(e[a],"globalEval"))}function F(t,e,a,i,r){for(var n,o,l,h,u,c,d=e.createDocumentFragment(),f=[],C=0,p=t.length;C<p;C++)if((n=t[C])||0===n)if("object"===s(n))bt.merge(f,n.nodeType?[n]:n);else if(ie.test(n)){for(o=o||d.appendChild(e.createElement("div")),l=(te.exec(n)||["",""])[1].toLowerCase(),h=ae[l]||ae._default,o.innerHTML=h[1]+bt.htmlPrefilter(n)+h[2],c=h[0];c--;)o=o.lastChild;bt.merge(f,o.childNodes),o=d.firstChild,o.textContent=""}else f.push(e.createTextNode(n));for(d.textContent="",C=0;n=f[C++];)if(i&&bt.inArray(n,i)>-1)r&&r.push(n);else if(u=bt.contains(n.ownerDocument,n),o=b(d.appendChild(n),"script"),u&&E(o),a)for(c=0;n=o[c++];)ee.test(n.type||"")&&a.push(n);return d}function y(){return!0}function L(){return!1}function M(){try{return ut.activeElement}catch(t){}}function w(t,e,a,i,r,n){var o,s;if("object"==typeof e){"string"!=typeof a&&(i=i||a,a=void 0);for(s in e)w(t,s,a,i,e[s],n);return t}if(null==i&&null==r?(r=a,i=a=void 0):null==r&&("string"==typeof a?(r=i,i=void 0):(r=i,i=a,a=void 0)),!1===r)r=L;else if(!r)return t;return 1===n&&(o=r,r=function(t){return bt().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=bt.guid++)),t.each(function(){bt.event.add(this,e,r,i,a)})}function N(t,e){return h(t,"table")&&h(11!==e.nodeType?e:e.firstChild,"tr")?bt(t).children("tbody")[0]||t:t}function O(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function R(t,e){var a,i,r,n,o,s,l,h;if(1===e.nodeType){if(Ut.hasData(t)&&(n=Ut.access(t),o=Ut.set(e,n),h=n.events)){delete o.handle,o.events={};for(r in h)for(a=0,i=h[r].length;a<i;a++)bt.event.add(e,r,h[r][a])}Wt.hasData(t)&&(s=Wt.access(t),l=bt.extend({},s),Wt.set(e,l))}}function P(t,e){var a=e.nodeName.toLowerCase();"input"===a&&$t.test(t.type)?e.checked=t.checked:"input"!==a&&"textarea"!==a||(e.defaultValue=t.defaultValue)}function B(t,e,a,i){e=ft.apply([],e);var r,n,s,l,h,u,c=0,d=t.length,f=d-1,C=e[0],p=xt(C);if(p||d>1&&"string"==typeof C&&!It.checkClone&&ue.test(C))return t.each(function(r){var n=t.eq(r);p&&(e[0]=C.call(this,r,n.html())),B(n,e,a,i)});if(d&&(r=F(e,t[0].ownerDocument,!1,t,i),n=r.firstChild,1===r.childNodes.length&&(r=n),n||i)){for(s=bt.map(b(r,"script"),O),l=s.length;c<d;c++)h=r,c!==f&&(h=bt.clone(h,!0,!0),l&&bt.merge(s,b(h,"script"))),a.call(t[c],h,c);if(l)for(u=s[s.length-1].ownerDocument,bt.map(s,_),c=0;c<l;c++)h=s[c],ee.test(h.type||"")&&!Ut.access(h,"globalEval")&&bt.contains(u,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?bt._evalUrl&&bt._evalUrl(h.src):o(h.textContent.replace(ce,""),u,h))}return t}function k(t,e,a){for(var i,r=e?bt.filter(e,t):t,n=0;null!=(i=r[n]);n++)a||1!==i.nodeType||bt.cleanData(b(i)),i.parentNode&&(a&&bt.contains(i.ownerDocument,i)&&E(b(i,"script")),i.parentNode.removeChild(i));return t}function H(t,e,a){var i,r,n,o,s=t.style;return a=a||fe(t),a&&(o=a.getPropertyValue(e)||a[e],""!==o||bt.contains(t.ownerDocument,t)||(o=bt.style(t,e)),!It.pixelBoxStyles()&&de.test(o)&&Ce.test(e)&&(i=s.width,r=s.minWidth,n=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=a.width,s.width=i,s.minWidth=r,s.maxWidth=n)),void 0!==o?o+"":o}function V(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function G(t){if(t in Se)return t;for(var e=t[0].toUpperCase()+t.slice(1),a=ge.length;a--;)if((t=ge[a]+e)in Se)return t}function Y(t){var e=bt.cssProps[t];return e||(e=bt.cssProps[t]=G(t)||t),e}function U(t,e,a){var i=Jt.exec(e);return i?Math.max(0,i[2]-(a||0))+(i[3]||"px"):e}function W(t,e,a,i,r,n){var o="width"===e?1:0,s=0,l=0;if(a===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===a&&(l+=bt.css(t,a+qt[o],!0,r)),i?("content"===a&&(l-=bt.css(t,"padding"+qt[o],!0,r)),"margin"!==a&&(l-=bt.css(t,"border"+qt[o]+"Width",!0,r))):(l+=bt.css(t,"padding"+qt[o],!0,r),"padding"!==a?l+=bt.css(t,"border"+qt[o]+"Width",!0,r):s+=bt.css(t,"border"+qt[o]+"Width",!0,r));return!i&&n>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-n-l-s-.5))),l}function X(t,e,a){var i=fe(t),r=H(t,e,i),n="border-box"===bt.css(t,"boxSizing",!1,i),o=n;if(de.test(r)){if(!a)return r;r="auto"}return o=o&&(It.boxSizingReliable()||r===t.style[e]),("auto"===r||!parseFloat(r)&&"inline"===bt.css(t,"display",!1,i))&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)],o=!0),(r=parseFloat(r)||0)+W(t,e,a||(n?"border":"content"),o,i,r)+"px"}function K(t,e,a,i,r){return new K.prototype.init(t,e,a,i,r)}function z(){xe&&(!1===ut.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(z):a.setTimeout(z,bt.fx.interval),bt.fx.tick())}function J(){return a.setTimeout(function(){Ie=void 0}),Ie=Date.now()}function q(t,e){var a,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)a=qt[i],r["margin"+a]=r["padding"+a]=t;return e&&(r.opacity=r.width=t),r}function Z(t,e,a){for(var i,r=($.tweeners[e]||[]).concat($.tweeners["*"]),n=0,o=r.length;n<o;n++)if(i=r[n].call(a,e,t))return i}function j(t,e,a){var i,r,n,o,s,l,h,u,c="width"in e||"height"in e,d=this,f={},C=t.style,p=t.nodeType&&Zt(t),D=Ut.get(t,"fxshow");a.queue||(o=bt._queueHooks(t,"fx"),null==o.unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,bt.queue(t,"fx").length||o.empty.fire()})}));for(i in e)if(r=e[i],Te.test(r)){if(delete e[i],n=n||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!D||void 0===D[i])continue;p=!0}f[i]=D&&D[i]||bt.style(t,i)}if((l=!bt.isEmptyObject(e))||!bt.isEmptyObject(f)){c&&1===t.nodeType&&(a.overflow=[C.overflow,C.overflowX,C.overflowY],h=D&&D.display,null==h&&(h=Ut.get(t,"display")),u=bt.css(t,"display"),"none"===u&&(h?u=h:(A([t],!0),h=t.style.display||h,u=bt.css(t,"display"),A([t]))),("inline"===u||"inline-block"===u&&null!=h)&&"none"===bt.css(t,"float")&&(l||(d.done(function(){C.display=h}),null==h&&(u=C.display,h="none"===u?"":u)),C.display="inline-block")),a.overflow&&(C.overflow="hidden",d.always(function(){C.overflow=a.overflow[0],C.overflowX=a.overflow[1],C.overflowY=a.overflow[2]})),l=!1;for(i in f)l||(D?"hidden"in D&&(p=D.hidden):D=Ut.access(t,"fxshow",{display:h}),n&&(D.hidden=!p),p&&A([t],!0),d.done(function(){p||A([t]),Ut.remove(t,"fxshow");for(i in f)bt.style(t,i,f[i])})),l=Z(p?D[i]:0,i,d),i in D||(D[i]=l.start,p&&(l.end=l.start,l.start=0))}}function Q(t,e){var a,i,r,n,o;for(a in t)if(i=v(a),r=e[i],n=t[a],Array.isArray(n)&&(r=n[1],n=t[a]=n[0]),a!==i&&(t[i]=n,delete t[a]),(o=bt.cssHooks[i])&&"expand"in o){n=o.expand(n),delete t[i];for(a in n)a in t||(t[a]=n[a],e[a]=r)}else e[i]=r}function $(t,e,a){var i,r,n=0,o=$.prefilters.length,s=bt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Ie||J(),a=Math.max(0,h.startTime+h.duration-e),i=a/h.duration||0,n=1-i,o=0,l=h.tweens.length;o<l;o++)h.tweens[o].run(n);return s.notifyWith(t,[h,n,a]),n<1&&l?a:(l||s.notifyWith(t,[h,1,0]),s.resolveWith(t,[h]),!1)},h=s.promise({elem:t,props:bt.extend({},e),opts:bt.extend(!0,{specialEasing:{},easing:bt.easing._default},a),originalProperties:e,originalOptions:a,startTime:Ie||J(),duration:a.duration,tweens:[],createTween:function(e,a){var i=bt.Tween(t,h.opts,e,a,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(i),i},stop:function(e){var a=0,i=e?h.tweens.length:0;if(r)return this;for(r=!0;a<i;a++)h.tweens[a].run(1);return e?(s.notifyWith(t,[h,1,0]),s.resolveWith(t,[h,e])):s.rejectWith(t,[h,e]),this}}),u=h.props;for(Q(u,h.opts.specialEasing);n<o;n++)if(i=$.prefilters[n].call(h,t,u,h.opts))return xt(i.stop)&&(bt._queueHooks(h.elem,h.opts.queue).stop=i.stop.bind(i)),i;return bt.map(u,Z,h),xt(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),bt.fx.timer(bt.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}function tt(t){return(t.match(Pt)||[]).join(" ")}function et(t){return t.getAttribute&&t.getAttribute("class")||""}function at(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Pt)||[]:[]}function it(t,e,a,i){var r;if(Array.isArray(e))bt.each(e,function(e,r){a||Re.test(t)?i(t,r):it(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,a,i)});else if(a||"object"!==s(e))i(t,e);else for(r in e)it(t+"["+r+"]",e[r],a,i)}function rt(t){return function(e,a){"string"!=typeof e&&(a=e,e="*");var i,r=0,n=e.toLowerCase().match(Pt)||[];if(xt(a))for(;i=n[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(a)):(t[i]=t[i]||[]).push(a)}}function nt(t,e,a,i){function r(s){var l;return n[s]=!0,bt.each(t[s]||[],function(t,s){var h=s(e,a,i);return"string"!=typeof h||o||n[h]?o?!(l=h):void 0:(e.dataTypes.unshift(h),r(h),!1)}),l}var n={},o=t===ze;return r(e.dataTypes[0])||!n["*"]&&r("*")}function ot(t,e){var a,i,r=bt.ajaxSettings.flatOptions||{};for(a in e)void 0!==e[a]&&((r[a]?t:i||(i={}))[a]=e[a]);return i&&bt.extend(!0,t,i),t}function st(t,e,a){for(var i,r,n,o,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in a)n=l[0];else{for(r in a){if(!l[0]||t.converters[r+" "+l[0]]){n=r;break}o||(o=r)}n=n||o}if(n)return n!==l[0]&&l.unshift(n),a[n]}function lt(t,e,a,i){var r,n,o,s,l,h={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(n=u.shift();n;)if(t.responseFields[n]&&(a[t.responseFields[n]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=n,n=u.shift())if("*"===n)n=l;else if("*"!==l&&l!==n){if(!(o=h[l+" "+n]||h["* "+n]))for(r in h)if(s=r.split(" "),s[1]===n&&(o=h[l+" "+s[0]]||h["* "+s[0]])){!0===o?o=h[r]:!0!==h[r]&&(n=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+n}}}return{state:"success",data:e}}var ht=[],ut=a.document,ct=Object.getPrototypeOf,dt=ht.slice,ft=ht.concat,Ct=ht.push,pt=ht.indexOf,Dt={},mt=Dt.toString,vt=Dt.hasOwnProperty,gt=vt.toString,St=gt.call(Object),It={},xt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},Tt=function(t){return null!=t&&t===t.window},At={type:!0,src:!0,noModule:!0},bt=function(t,e){return new bt.fn.init(t,e)},Et=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;bt.fn=bt.prototype={jquery:"3.3.1",constructor:bt,length:0,toArray:function(){return dt.call(this)},get:function(t){return null==t?dt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=bt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return bt.each(this,t)},map:function(t){return this.pushStack(bt.map(this,function(e,a){return t.call(e,a,e)}))},slice:function(){return this.pushStack(dt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,a=+t+(t<0?e:0);return this.pushStack(a>=0&&a<e?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:Ct,sort:ht.sort,splice:ht.splice},bt.extend=bt.fn.extend=function(){var t,e,a,i,r,n,o=arguments[0]||{},s=1,l=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[s]||{},s++),"object"==typeof o||xt(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)a=o[e],i=t[e],o!==i&&(h&&i&&(bt.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,n=a&&Array.isArray(a)?a:[]):n=a&&bt.isPlainObject(a)?a:{},o[e]=bt.extend(h,n,i)):void 0!==i&&(o[e]=i));return o},bt.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,a;return!(!t||"[object Object]"!==mt.call(t))&&(!(e=ct(t))||"function"==typeof(a=vt.call(e,"constructor")&&e.constructor)&>.call(a)===St)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){o(t)},each:function(t,e){var a,i=0;if(l(t))for(a=t.length;i<a&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(Et,"")},makeArray:function(t,e){var a=e||[];return null!=t&&(l(Object(t))?bt.merge(a,"string"==typeof t?[t]:t):Ct.call(a,t)),a},inArray:function(t,e,a){return null==e?-1:pt.call(e,t,a)},merge:function(t,e){for(var a=+e.length,i=0,r=t.length;i<a;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,a){for(var i=[],r=0,n=t.length,o=!a;r<n;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,a){var i,r,n=0,o=[];if(l(t))for(i=t.length;n<i;n++)null!=(r=e(t[n],n,a))&&o.push(r);else for(n in t)null!=(r=e(t[n],n,a))&&o.push(r);return ft.apply([],o)},guid:1,support:It}),"function"==typeof Symbol&&(bt.fn[Symbol.iterator]=ht[Symbol.iterator]),bt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){Dt["[object "+e+"]"]=e.toLowerCase()});var Ft=/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(t){function e(t,e,a,i){var r,n,o,s,l,u,d,f=e&&e.ownerDocument,C=e?e.nodeType:9;if(a=a||[],"string"!=typeof t||!t||1!==C&&9!==C&&11!==C)return a;if(!i&&((e?e.ownerDocument||e:H)!==w&&M(e),e=e||w,O)){if(11!==C&&(l=pt.exec(t)))if(r=l[1]){if(9===C){if(!(o=e.getElementById(r)))return a;if(o.id===r)return a.push(o),a}else if(f&&(o=f.getElementById(r))&&B(e,o)&&o.id===r)return a.push(o),a}else{if(l[2])return Z.apply(a,e.getElementsByTagName(t)),a;if((r=l[3])&&S.getElementsByClassName&&e.getElementsByClassName)return Z.apply(a,e.getElementsByClassName(r)),a}if(S.qsa&&!W[t+" "]&&(!_||!_.test(t))){if(1!==C)f=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(gt,St):e.setAttribute("id",s=k),u=A(t),n=u.length;n--;)u[n]="#"+s+" "+c(u[n]);d=u.join(","),f=Dt.test(t)&&h(e.parentNode)||e}if(d)try{return Z.apply(a,f.querySelectorAll(d)),a}catch(t){}finally{s===k&&e.removeAttribute("id")}}}return E(t.replace(nt,"$1"),e,a,i)}function a(){function t(a,i){return e.push(a+" ")>I.cacheLength&&delete t[e.shift()],t[a+" "]=i}var e=[];return t}function i(t){return t[k]=!0,t}function r(t){var e=w.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function n(t,e){for(var a=t.split("|"),i=a.length;i--;)I.attrHandle[a[i]]=e}function o(t,e){var a=e&&t,i=a&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(a)for(;a=a.nextSibling;)if(a===e)return-1;return t?1:-1}function s(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&xt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(a,i){for(var r,n=t([],a.length,e),o=n.length;o--;)a[r=n[o]]&&(a[r]=!(i[r]=a[r]))})})}function h(t){return t&&void 0!==t.getElementsByTagName&&t}function u(){}function c(t){for(var e=0,a=t.length,i="";e<a;e++)i+=t[e].value;return i}function d(t,e,a){var i=e.dir,r=e.next,n=r||i,o=a&&"parentNode"===n,s=G++;return e.first?function(e,a,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,a,r);return!1}:function(e,a,l){var h,u,c,d=[V,s];if(l){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,a,l))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(c=e[k]||(e[k]={}),u=c[e.uniqueID]||(c[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((h=u[n])&&h[0]===V&&h[1]===s)return d[2]=h[2];if(u[n]=d,d[2]=t(e,a,l))return!0}return!1}}function f(t){return t.length>1?function(e,a,i){for(var r=t.length;r--;)if(!t[r](e,a,i))return!1;return!0}:t[0]}function C(t,a,i){for(var r=0,n=a.length;r<n;r++)e(t,a[r],i);return i}function p(t,e,a,i,r){for(var n,o=[],s=0,l=t.length,h=null!=e;s<l;s++)(n=t[s])&&(a&&!a(n,i,r)||(o.push(n),h&&e.push(s)));return o}function D(t,e,a,r,n,o){return r&&!r[k]&&(r=D(r)),n&&!n[k]&&(n=D(n,o)),i(function(i,o,s,l){var h,u,c,d=[],f=[],D=o.length,m=i||C(e||"*",s.nodeType?[s]:s,[]),v=!t||!i&&e?m:p(m,d,t,s,l),g=a?n||(i?t:D||r)?[]:o:v;if(a&&a(v,g,s,l),r)for(h=p(g,f),r(h,[],s,l),u=h.length;u--;)(c=h[u])&&(g[f[u]]=!(v[f[u]]=c));if(i){if(n||t){if(n){for(h=[],u=g.length;u--;)(c=g[u])&&h.push(v[u]=c);n(null,g=[],h,l)}for(u=g.length;u--;)(c=g[u])&&(h=n?Q(i,c):d[u])>-1&&(i[h]=!(o[h]=c))}}else g=p(g===o?g.splice(D,g.length):g),n?n(null,o,g,l):Z.apply(o,g)})}function m(t){for(var e,a,i,r=t.length,n=I.relative[t[0].type],o=n||I.relative[" "],s=n?1:0,l=d(function(t){return t===e},o,!0),h=d(function(t){return Q(e,t)>-1},o,!0),u=[function(t,a,i){var r=!n&&(i||a!==F)||((e=a).nodeType?l(t,a,i):h(t,a,i));return e=null,r}];s<r;s++)if(a=I.relative[t[s].type])u=[d(f(u),a)];else{if(a=I.filter[t[s].type].apply(null,t[s].matches),a[k]){for(i=++s;i<r&&!I.relative[t[i].type];i++);return D(s>1&&f(u),s>1&&c(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(nt,"$1"),a,s<i&&m(t.slice(s,i)),i<r&&m(t=t.slice(i)),i<r&&c(t))}u.push(a)}return f(u)}function v(t,a){var r=a.length>0,n=t.length>0,o=function(i,o,s,l,h){var u,c,d,f=0,C="0",D=i&&[],m=[],v=F,g=i||n&&I.find.TAG("*",h),S=V+=null==v?1:Math.random()||.1,x=g.length;for(h&&(F=o===w||o||h);C!==x&&null!=(u=g[C]);C++){if(n&&u){for(c=0,o||u.ownerDocument===w||(M(u),s=!O);d=t[c++];)if(d(u,o||w,s)){l.push(u);break}h&&(V=S)}r&&((u=!d&&u)&&f--,i&&D.push(u))}if(f+=C,r&&C!==f){for(c=0;d=a[c++];)d(D,m,o,s);if(i){if(f>0)for(;C--;)D[C]||m[C]||(m[C]=J.call(l));m=p(m)}Z.apply(l,m),h&&!i&&m.length>0&&f+a.length>1&&e.uniqueSort(l)}return h&&(V=S,F=v),D};return r?i(o):o}var g,S,I,x,T,A,b,E,F,y,L,M,w,N,O,_,R,P,B,k="sizzle"+1*new Date,H=t.document,V=0,G=0,Y=a(),U=a(),W=a(),X=function(t,e){return t===e&&(L=!0),0},K={}.hasOwnProperty,z=[],J=z.pop,q=z.push,Z=z.push,j=z.slice,Q=function(t,e){for(var a=0,i=t.length;a<i;a++)if(t[a]===e)return a;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",at="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",rt=new RegExp(tt+"+","g"),nt=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),ot=new RegExp("^"+tt+"*,"+tt+"*"),st=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ht=new RegExp(it),ut=new RegExp("^"+et+"$"),ct={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,Ct=/^[^{]+\{\s*\[native \w/,pt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Dt=/[+~]/,mt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),vt=function(t,e,a){var i="0x"+e-65536;return i!==i||a?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},gt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,St=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},It=function(){M()},xt=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Z.apply(z=j.call(H.childNodes),H.childNodes),z[H.childNodes.length].nodeType}catch(t){Z={apply:z.length?function(t,e){q.apply(t,j.call(e))}:function(t,e){for(var a=t.length,i=0;t[a++]=e[i++];);t.length=a-1}}}S=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},M=e.setDocument=function(t){var e,a,i=t?t.ownerDocument||t:H;return i!==w&&9===i.nodeType&&i.documentElement?(w=i,N=w.documentElement,O=!T(w),H!==w&&(a=w.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",It,!1):a.attachEvent&&a.attachEvent("onunload",It)),S.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),S.getElementsByTagName=r(function(t){return t.appendChild(w.createComment("")),!t.getElementsByTagName("*").length}),S.getElementsByClassName=Ct.test(w.getElementsByClassName),S.getById=r(function(t){return N.appendChild(t).id=k,!w.getElementsByName||!w.getElementsByName(k).length}),S.getById?(I.filter.ID=function(t){var e=t.replace(mt,vt);return function(t){return t.getAttribute("id")===e}},I.find.ID=function(t,e){if(void 0!==e.getElementById&&O){var a=e.getElementById(t);return a?[a]:[]}}):(I.filter.ID=function(t){var e=t.replace(mt,vt);return function(t){var a=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return a&&a.value===e}},I.find.ID=function(t,e){if(void 0!==e.getElementById&&O){var a,i,r,n=e.getElementById(t);if(n){if((a=n.getAttributeNode("id"))&&a.value===t)return[n];for(r=e.getElementsByName(t),i=0;n=r[i++];)if((a=n.getAttributeNode("id"))&&a.value===t)return[n]}return[]}}),I.find.TAG=S.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):S.qsa?e.querySelectorAll(t):void 0}:function(t,e){var a,i=[],r=0,n=e.getElementsByTagName(t);if("*"===t){for(;a=n[r++];)1===a.nodeType&&i.push(a);return i}return n},I.find.CLASS=S.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&O)return e.getElementsByClassName(t)},R=[],_=[],(S.qsa=Ct.test(w.querySelectorAll))&&(r(function(t){N.appendChild(t).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||_.push("\\["+tt+"*(?:value|"+$+")"),t.querySelectorAll("[id~="+k+"-]").length||_.push("~="),t.querySelectorAll(":checked").length||_.push(":checked"),t.querySelectorAll("a#"+k+"+*").length||_.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=w.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&_.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),N.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),_.push(",.*:")})),(S.matchesSelector=Ct.test(P=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){S.disconnectedMatch=P.call(t,"*"),P.call(t,"[s!='']:x"),R.push("!=",it)}),_=_.length&&new RegExp(_.join("|")),R=R.length&&new RegExp(R.join("|")),e=Ct.test(N.compareDocumentPosition),B=e||Ct.test(N.contains)?function(t,e){var a=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(a.contains?a.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return L=!0,0;var a=!t.compareDocumentPosition-!e.compareDocumentPosition;return a||(a=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&a||!S.sortDetached&&e.compareDocumentPosition(t)===a?t===w||t.ownerDocument===H&&B(H,t)?-1:e===w||e.ownerDocument===H&&B(H,e)?1:y?Q(y,t)-Q(y,e):0:4&a?-1:1)}:function(t,e){if(t===e)return L=!0,0;var a,i=0,r=t.parentNode,n=e.parentNode,s=[t],l=[e];if(!r||!n)return t===w?-1:e===w?1:r?-1:n?1:y?Q(y,t)-Q(y,e):0;if(r===n)return o(t,e);for(a=t;a=a.parentNode;)s.unshift(a);for(a=e;a=a.parentNode;)l.unshift(a);for(;s[i]===l[i];)i++;return i?o(s[i],l[i]):s[i]===H?-1:l[i]===H?1:0},w):w},e.matches=function(t,a){return e(t,null,null,a)},e.matchesSelector=function(t,a){if((t.ownerDocument||t)!==w&&M(t),a=a.replace(lt,"='$1']"),S.matchesSelector&&O&&!W[a+" "]&&(!R||!R.test(a))&&(!_||!_.test(a)))try{var i=P.call(t,a);if(i||S.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(a,w,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==w&&M(t),B(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==w&&M(t);var a=I.attrHandle[e.toLowerCase()],i=a&&K.call(I.attrHandle,e.toLowerCase())?a(t,e,!O):void 0;return void 0!==i?i:S.attributes||!O?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(gt,St)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,a=[],i=0,r=0;if(L=!S.detectDuplicates,y=!S.sortStable&&t.slice(0),t.sort(X),L){for(;e=t[r++];)e===t[r]&&(i=a.push(r));for(;i--;)t.splice(a[i],1)}return y=null,t},x=e.getText=function(t){var e,a="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)a+=x(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)a+=x(e);return a},I=e.selectors={cacheLength:50,createPseudo:i,match:ct,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(mt,vt),t[3]=(t[3]||t[4]||t[5]||"").replace(mt,vt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,a=!t[6]&&t[2];return ct.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":a&&ht.test(a)&&(e=A(a,!0))&&(e=a.indexOf(")",a.length-e)-a.length)&&(t[0]=t[0].slice(0,e),t[2]=a.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(mt,vt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Y[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&Y(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,a,i){return function(r){var n=e.attr(r,t);return null==n?"!="===a:!a||(n+="","="===a?n===i:"!="===a?n!==i:"^="===a?i&&0===n.indexOf(i):"*="===a?i&&n.indexOf(i)>-1:"$="===a?i&&n.slice(-i.length)===i:"~="===a?(" "+n.replace(rt," ")+" ").indexOf(i)>-1:"|="===a&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,a,i,r){var n="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,a,l){var h,u,c,d,f,C,p=n!==o?"nextSibling":"previousSibling",D=e.parentNode,m=s&&e.nodeName.toLowerCase(),v=!l&&!s,g=!1;if(D){if(n){for(;p;){for(d=e;d=d[p];)if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;C=p="only"===t&&!C&&"nextSibling"}return!0}if(C=[o?D.firstChild:D.lastChild],o&&v){for(d=D,c=d[k]||(d[k]={}),u=c[d.uniqueID]||(c[d.uniqueID]={}),h=u[t]||[],f=h[0]===V&&h[1],g=f&&h[2],d=f&&D.childNodes[f];d=++f&&d&&d[p]||(g=f=0)||C.pop();)if(1===d.nodeType&&++g&&d===e){u[t]=[V,f,g];break}}else if(v&&(d=e,c=d[k]||(d[k]={}),u=c[d.uniqueID]||(c[d.uniqueID]={}),h=u[t]||[],f=h[0]===V&&h[1],g=f),!1===g)for(;(d=++f&&d&&d[p]||(g=f=0)||C.pop())&&((s?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++g||(v&&(c=d[k]||(d[k]={}),u=c[d.uniqueID]||(c[d.uniqueID]={}),u[t]=[V,g]),d!==e)););return(g-=r)===i||g%i==0&&g/i>=0}}},PSEUDO:function(t,a){var r,n=I.pseudos[t]||I.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return n[k]?n(a):n.length>1?(r=[t,t,"",a],I.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=n(t,a),o=r.length;o--;)i=Q(t,r[o]),t[i]=!(e[i]=r[o])}):function(t){return n(t,0,r)}):n}},pseudos:{not:i(function(t){var e=[],a=[],r=b(t.replace(nt,"$1"));return r[k]?i(function(t,e,a,i){for(var n,o=r(t,null,i,[]),s=t.length;s--;)(n=o[s])&&(t[s]=!(e[s]=n))}):function(t,i,n){return e[0]=t,r(e,null,n,a),e[0]=null,!a.pop()}}),has:i(function(t){return function(a){return e(t,a).length>0}}),contains:i(function(t){return t=t.replace(mt,vt),function(e){return(e.textContent||e.innerText||x(e)).indexOf(t)>-1}}),lang:i(function(t){return ut.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(mt,vt).toLowerCase(),function(e){var a;do{if(a=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(a=a.toLowerCase())===t||0===a.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var a=t.location&&t.location.hash;return a&&a.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!I.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,a){return[a<0?a+e:a]}),even:l(function(t,e){for(var a=0;a<e;a+=2)t.push(a);return t}),odd:l(function(t,e){for(var a=1;a<e;a+=2)t.push(a);return t}),lt:l(function(t,e,a){for(var i=a<0?a+e:a;--i>=0;)t.push(i);return t}),gt:l(function(t,e,a){for(var i=a<0?a+e:a;++i<e;)t.push(i);return t})}},I.pseudos.nth=I.pseudos.eq;for(g in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})I.pseudos[g]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(g);for(g in{submit:!0,reset:!0})I.pseudos[g]=function(t){return function(e){var a=e.nodeName.toLowerCase();return("input"===a||"button"===a)&&e.type===t}}(g);return u.prototype=I.filters=I.pseudos,I.setFilters=new u,A=e.tokenize=function(t,a){var i,r,n,o,s,l,h,u=U[t+" "];if(u)return a?0:u.slice(0);for(s=t,l=[],h=I.preFilter;s;){i&&!(r=ot.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(n=[])),i=!1,(r=st.exec(s))&&(i=r.shift(),n.push({value:i,type:r[0].replace(nt," ")}),s=s.slice(i.length));for(o in I.filter)!(r=ct[o].exec(s))||h[o]&&!(r=h[o](r))||(i=r.shift(),n.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return a?s.length:s?e.error(t):U(t,l).slice(0)},b=e.compile=function(t,e){var a,i=[],r=[],n=W[t+" "];if(!n){for(e||(e=A(t)),a=e.length;a--;)n=m(e[a]),n[k]?i.push(n):r.push(n);n=W(t,v(r,i)),n.selector=t}return n},E=e.select=function(t,e,a,i){var r,n,o,s,l,u="function"==typeof t&&t,d=!i&&A(t=u.selector||t);if(a=a||[],1===d.length){if(n=d[0]=d[0].slice(0),n.length>2&&"ID"===(o=n[0]).type&&9===e.nodeType&&O&&I.relative[n[1].type]){if(!(e=(I.find.ID(o.matches[0].replace(mt,vt),e)||[])[0]))return a;u&&(e=e.parentNode),t=t.slice(n.shift().value.length)}for(r=ct.needsContext.test(t)?0:n.length;r--&&(o=n[r],!I.relative[s=o.type]);)if((l=I.find[s])&&(i=l(o.matches[0].replace(mt,vt),Dt.test(n[0].type)&&h(e.parentNode)||e))){if(n.splice(r,1),!(t=i.length&&c(n)))return Z.apply(a,i),a;break}}return(u||b(t,d))(i,e,!O,a,!e||Dt.test(t)&&h(e.parentNode)||e),a},S.sortStable=k.split("").sort(X).join("")===k,S.detectDuplicates=!!L,M(),S.sortDetached=r(function(t){return 1&t.compareDocumentPosition(w.createElement("fieldset"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||n("type|href|height|width",function(t,e,a){if(!a)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),S.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||n("value",function(t,e,a){if(!a&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||n($,function(t,e,a){var i;if(!a)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(a);bt.find=Ft,bt.expr=Ft.selectors,bt.expr[":"]=bt.expr.pseudos,bt.uniqueSort=bt.unique=Ft.uniqueSort,bt.text=Ft.getText,bt.isXMLDoc=Ft.isXML,bt.contains=Ft.contains,bt.escapeSelector=Ft.escape;var yt=function(t,e,a){for(var i=[],r=void 0!==a;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&bt(t).is(a))break;i.push(t)}return i},Lt=function(t,e){for(var a=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&a.push(t);return a},Mt=bt.expr.match.needsContext,wt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;bt.filter=function(t,e,a){var i=e[0];return a&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?bt.find.matchesSelector(i,t)?[i]:[]:bt.find.matches(t,bt.grep(e,function(t){return 1===t.nodeType}))},bt.fn.extend({find:function(t){var e,a,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(bt(t).filter(function(){for(e=0;e<i;e++)if(bt.contains(r[e],this))return!0}));for(a=this.pushStack([]),e=0;e<i;e++)bt.find(t,r[e],a);return i>1?bt.uniqueSort(a):a},filter:function(t){return this.pushStack(u(this,t||[],!1))},not:function(t){return this.pushStack(u(this,t||[],!0))},is:function(t){return!!u(this,"string"==typeof t&&Mt.test(t)?bt(t):t||[],!1).length}});var Nt,Ot=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(bt.fn.init=function(t,e,a){var i,r;if(!t)return this;if(a=a||Nt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Ot.exec(t))||!i[1]&&e)return!e||e.jquery?(e||a).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof bt?e[0]:e,bt.merge(this,bt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:ut,!0)),wt.test(i[1])&&bt.isPlainObject(e))for(i in e)xt(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=ut.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):xt(t)?void 0!==a.ready?a.ready(t):t(bt):bt.makeArray(t,this)}).prototype=bt.fn,Nt=bt(ut);var _t=/^(?:parents|prev(?:Until|All))/,Rt={children:!0,contents:!0,next:!0,prev:!0};bt.fn.extend({has:function(t){var e=bt(t,this),a=e.length;return this.filter(function(){for(var t=0;t<a;t++)if(bt.contains(this,e[t]))return!0})},closest:function(t,e){var a,i=0,r=this.length,n=[],o="string"!=typeof t&&bt(t);if(!Mt.test(t))for(;i<r;i++)for(a=this[i];a&&a!==e;a=a.parentNode)if(a.nodeType<11&&(o?o.index(a)>-1:1===a.nodeType&&bt.find.matchesSelector(a,t))){n.push(a);break}return this.pushStack(n.length>1?bt.uniqueSort(n):n)},index:function(t){return t?"string"==typeof t?pt.call(bt(t),this[0]):pt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(bt.uniqueSort(bt.merge(this.get(),bt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),bt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return yt(t,"parentNode")},parentsUntil:function(t,e,a){return yt(t,"parentNode",a)},next:function(t){return c(t,"nextSibling")},prev:function(t){return c(t,"previousSibling")},nextAll:function(t){return yt(t,"nextSibling")},prevAll:function(t){return yt(t,"previousSibling")},nextUntil:function(t,e,a){return yt(t,"nextSibling",a)},prevUntil:function(t,e,a){return yt(t,"previousSibling",a)},siblings:function(t){return Lt((t.parentNode||{}).firstChild,t)},children:function(t){return Lt(t.firstChild)},contents:function(t){return h(t,"iframe")?t.contentDocument:(h(t,"template")&&(t=t.content||t),bt.merge([],t.childNodes))}},function(t,e){bt.fn[t]=function(a,i){var r=bt.map(this,e,a);return"Until"!==t.slice(-5)&&(i=a),i&&"string"==typeof i&&(r=bt.filter(i,r)),this.length>1&&(Rt[t]||bt.uniqueSort(r),_t.test(t)&&r.reverse()),this.pushStack(r)}});var Pt=/[^\x20\t\r\n\f]+/g;bt.Callbacks=function(t){t="string"==typeof t?d(t):bt.extend({},t);var e,a,i,r,n=[],o=[],l=-1,h=function(){for(r=r||t.once,i=e=!0;o.length;l=-1)for(a=o.shift();++l<n.length;)!1===n[l].apply(a[0],a[1])&&t.stopOnFalse&&(l=n.length,a=!1);t.memory||(a=!1),e=!1,r&&(n=a?[]:"")},u={add:function(){return n&&(a&&!e&&(l=n.length-1,o.push(a)),function e(a){bt.each(a,function(a,i){xt(i)?t.unique&&u.has(i)||n.push(i):i&&i.length&&"string"!==s(i)&&e(i)})}(arguments),a&&!e&&h()),this},remove:function(){return bt.each(arguments,function(t,e){for(var a;(a=bt.inArray(e,n,a))>-1;)n.splice(a,1),a<=l&&l--}),this},has:function(t){return t?bt.inArray(t,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return r=o=[],n=a="",this},disabled:function(){return!n},lock:function(){return r=o=[],a||e||(n=a=""),this},locked:function(){return!!r},fireWith:function(t,a){return r||(a=a||[],a=[t,a.slice?a.slice():a],o.push(a),e||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},bt.extend({Deferred:function(t){var e=[["notify","progress",bt.Callbacks("memory"),bt.Callbacks("memory"),2],["resolve","done",bt.Callbacks("once memory"),bt.Callbacks("once memory"),0,"resolved"],["reject","fail",bt.Callbacks("once memory"),bt.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return n.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return bt.Deferred(function(a){bt.each(e,function(e,i){var r=xt(t[i[4]])&&t[i[4]];n[i[1]](function(){var t=r&&r.apply(this,arguments);t&&xt(t.promise)?t.promise().progress(a.notify).done(a.resolve).fail(a.reject):a[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,i,r){function n(t,e,i,r){return function(){var s=this,l=arguments,h=function(){var a,h;if(!(t<o)){if((a=i.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");h=a&&("object"==typeof a||"function"==typeof a)&&a.then,xt(h)?r?h.call(a,n(o,e,f,r),n(o,e,C,r)):(o++,h.call(a,n(o,e,f,r),n(o,e,C,r),n(o,e,f,e.notifyWith))):(i!==f&&(s=void 0,l=[a]),(r||e.resolveWith)(s,l))}},u=r?h:function(){try{h()}catch(a){bt.Deferred.exceptionHook&&bt.Deferred.exceptionHook(a,u.stackTrace),t+1>=o&&(i!==C&&(s=void 0,l=[a]),e.rejectWith(s,l))}};t?u():(bt.Deferred.getStackHook&&(u.stackTrace=bt.Deferred.getStackHook()),a.setTimeout(u))}}var o=0;return bt.Deferred(function(a){e[0][3].add(n(0,a,xt(r)?r:f,a.notifyWith)),e[1][3].add(n(0,a,xt(t)?t:f)),e[2][3].add(n(0,a,xt(i)?i:C))}).promise()},promise:function(t){return null!=t?bt.extend(t,r):r}},n={};return bt.each(e,function(t,a){var o=a[2],s=a[5];r[a[1]]=o.add,s&&o.add(function(){i=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(a[3].fire),n[a[0]]=function(){return n[a[0]+"With"](this===n?void 0:this,arguments),this},n[a[0]+"With"]=o.fireWith}),r.promise(n),t&&t.call(n,n),n},when:function(t){var e=arguments.length,a=e,i=Array(a),r=dt.call(arguments),n=bt.Deferred(),o=function(t){return function(a){i[t]=this,r[t]=arguments.length>1?dt.call(arguments):a,--e||n.resolveWith(i,r)}};if(e<=1&&(p(t,n.done(o(a)).resolve,n.reject,!e),"pending"===n.state()||xt(r[a]&&r[a].then)))return n.then();for(;a--;)p(r[a],o(a),n.reject);return n.promise()}});var Bt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;bt.Deferred.exceptionHook=function(t,e){a.console&&a.console.warn&&t&&Bt.test(t.name)&&a.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},bt.readyException=function(t){a.setTimeout(function(){throw t})};var kt=bt.Deferred();bt.fn.ready=function(t){return kt.then(t).catch(function(t){bt.readyException(t)}),this},bt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--bt.readyWait:bt.isReady)||(bt.isReady=!0,!0!==t&&--bt.readyWait>0||kt.resolveWith(ut,[bt]))}}),bt.ready.then=kt.then,"complete"===ut.readyState||"loading"!==ut.readyState&&!ut.documentElement.doScroll?a.setTimeout(bt.ready):(ut.addEventListener("DOMContentLoaded",D),a.addEventListener("load",D));var Ht=function(t,e,a,i,r,n,o){var l=0,h=t.length,u=null==a;if("object"===s(a)){r=!0;for(l in a)Ht(t,e,l,a[l],!0,n,o)}else if(void 0!==i&&(r=!0,xt(i)||(o=!0),u&&(o?(e.call(t,i),e=null):(u=e,e=function(t,e,a){return u.call(bt(t),a)})),e))for(;l<h;l++)e(t[l],a,o?i:i.call(t[l],l,e(t[l],a)));return r?t:u?e.call(t):h?e(t[0],a):n},Vt=/^-ms-/,Gt=/-([a-z])/g,Yt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};g.uid=1,g.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Yt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,a){var i,r=this.cache(t);if("string"==typeof e)r[v(e)]=a;else for(i in e)r[v(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][v(e)]},access:function(t,e,a){return void 0===e||e&&"string"==typeof e&&void 0===a?this.get(t,e):(this.set(t,e,a),void 0!==a?a:e)},remove:function(t,e){var a,i=t[this.expando];if(void 0!==i){if(void 0!==e){Array.isArray(e)?e=e.map(v):(e=v(e),e=e in i?[e]:e.match(Pt)||[]),a=e.length;for(;a--;)delete i[e[a]]}(void 0===e||bt.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!bt.isEmptyObject(e)}};var Ut=new g,Wt=new g,Xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Kt=/[A-Z]/g;bt.extend({hasData:function(t){return Wt.hasData(t)||Ut.hasData(t)},data:function(t,e,a){return Wt.access(t,e,a)},removeData:function(t,e){Wt.remove(t,e)},_data:function(t,e,a){return Ut.access(t,e,a)},_removeData:function(t,e){Ut.remove(t,e)}}),bt.fn.extend({data:function(t,e){var a,i,r,n=this[0],o=n&&n.attributes;if(void 0===t){if(this.length&&(r=Wt.get(n),1===n.nodeType&&!Ut.get(n,"hasDataAttrs"))){for(a=o.length;a--;)o[a]&&(i=o[a].name,0===i.indexOf("data-")&&(i=v(i.slice(5)),I(n,i,r[i])));Ut.set(n,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Wt.set(this,t)}):Ht(this,function(e){var a;if(n&&void 0===e){if(void 0!==(a=Wt.get(n,t)))return a;if(void 0!==(a=I(n,t)))return a}else this.each(function(){Wt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Wt.remove(this,t)})}}),bt.extend({queue:function(t,e,a){var i;if(t)return e=(e||"fx")+"queue",i=Ut.get(t,e),a&&(!i||Array.isArray(a)?i=Ut.access(t,e,bt.makeArray(a)):i.push(a)),i||[]},dequeue:function(t,e){e=e||"fx";var a=bt.queue(t,e),i=a.length,r=a.shift(),n=bt._queueHooks(t,e),o=function(){bt.dequeue(t,e)};"inprogress"===r&&(r=a.shift(),i--),r&&("fx"===e&&a.unshift("inprogress"),delete n.stop,r.call(t,o,n)),!i&&n&&n.empty.fire()},_queueHooks:function(t,e){var a=e+"queueHooks";return Ut.get(t,a)||Ut.access(t,a,{empty:bt.Callbacks("once memory").add(function(){Ut.remove(t,[e+"queue",a])})})}}),bt.fn.extend({queue:function(t,e){var a=2;return"string"!=typeof t&&(e=t,t="fx",a--),arguments.length<a?bt.queue(this[0],t):void 0===e?this:this.each(function(){var a=bt.queue(this,t,e);bt._queueHooks(this,t),"fx"===t&&"inprogress"!==a[0]&&bt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){bt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var a,i=1,r=bt.Deferred(),n=this,o=this.length,s=function(){--i||r.resolveWith(n,[n])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(a=Ut.get(n[o],t+"queueHooks"))&&a.empty&&(i++,a.empty.add(s));return s(),r.promise(e)}});var zt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Jt=new RegExp("^(?:([+-])=|)("+zt+")([a-z%]*)$","i"),qt=["Top","Right","Bottom","Left"],Zt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&bt.contains(t.ownerDocument,t)&&"none"===bt.css(t,"display")},jt=function(t,e,a,i){var r,n,o={};for(n in e)o[n]=t.style[n],t.style[n]=e[n];r=a.apply(t,i||[]);for(n in e)t.style[n]=o[n];return r},Qt={};bt.fn.extend({show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Zt(this)?bt(this).show():bt(this).hide()})}});var $t=/^(?:checkbox|radio)$/i,te=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ee=/^$|^module$|\/(?:java|ecma)script/i,ae={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td;var ie=/<|&#?\w+;/;!function(){var t=ut.createDocumentFragment(),e=t.appendChild(ut.createElement("div")),a=ut.createElement("input");a.setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),e.appendChild(a),It.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",It.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var re=ut.documentElement,ne=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=/^([^.]*)(?:\.(.+)|)/;bt.event={global:{},add:function(t,e,a,i,r){var n,o,s,l,h,u,c,d,f,C,p,D=Ut.get(t);if(D)for(a.handler&&(n=a,a=n.handler,r=n.selector),r&&bt.find.matchesSelector(re,r),a.guid||(a.guid=bt.guid++),(l=D.events)||(l=D.events={}),(o=D.handle)||(o=D.handle=function(e){return void 0!==bt&&bt.event.triggered!==e.type?bt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Pt)||[""],h=e.length;h--;)s=se.exec(e[h])||[],f=p=s[1],C=(s[2]||"").split(".").sort(),f&&(c=bt.event.special[f]||{},f=(r?c.delegateType:c.bindType)||f,c=bt.event.special[f]||{},u=bt.extend({type:f,origType:p,data:i,handler:a,guid:a.guid,selector:r,needsContext:r&&bt.expr.match.needsContext.test(r),namespace:C.join(".")},n),(d=l[f])||(d=l[f]=[],d.delegateCount=0,c.setup&&!1!==c.setup.call(t,i,C,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=a.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),bt.event.global[f]=!0)},remove:function(t,e,a,i,r){var n,o,s,l,h,u,c,d,f,C,p,D=Ut.hasData(t)&&Ut.get(t);if(D&&(l=D.events)){for(e=(e||"").match(Pt)||[""],h=e.length;h--;)if(s=se.exec(e[h])||[],f=p=s[1],C=(s[2]||"").split(".").sort(),f){for(c=bt.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,d=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=n=d.length;n--;)u=d[n],!r&&p!==u.origType||a&&a.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(n,1),u.selector&&d.delegateCount--,c.remove&&c.remove.call(t,u));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,C,D.handle)||bt.removeEvent(t,f,D.handle),delete l[f])}else for(f in l)bt.event.remove(t,f+e[h],a,i,!0);bt.isEmptyObject(l)&&Ut.remove(t,"handle events")}},dispatch:function(t){var e,a,i,r,n,o,s=bt.event.fix(t),l=new Array(arguments.length),h=(Ut.get(this,"events")||{})[s.type]||[],u=bt.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(o=bt.event.handlers.call(this,s,h),e=0;(r=o[e++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,a=0;(n=r.handlers[a++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(n.namespace)||(s.handleObj=n,s.data=n.data,void 0!==(i=((bt.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var a,i,r,n,o,s=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(n=[],o={},a=0;a<l;a++)i=e[a],r=i.selector+" ",void 0===o[r]&&(o[r]=i.needsContext?bt(r,this).index(h)>-1:bt.find(r,this,null,[h]).length),o[r]&&n.push(i);n.length&&s.push({elem:h,handlers:n})}return h=this,l<e.length&&s.push({elem:h,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(bt.Event.prototype,t,{enumerable:!0,configurable:!0,get:xt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[bt.expando]?t:new bt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==M()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===M()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h(this,"input"))return this.click(),!1},_default:function(t){return h(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},bt.removeEvent=function(t,e,a){t.removeEventListener&&t.removeEventListener(e,a)},bt.Event=function(t,e){if(!(this instanceof bt.Event))return new bt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?y:L,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&bt.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[bt.expando]=!0},bt.Event.prototype={constructor:bt.Event,isDefaultPrevented:L,isPropagationStopped:L,isImmediatePropagationStopped:L,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},bt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&ne.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&oe.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},bt.event.addProp),bt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){bt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var a,i=this,r=t.relatedTarget,n=t.handleObj;return r&&(r===i||bt.contains(i,r))||(t.type=n.origType,a=n.handler.apply(this,arguments),t.type=e),a}}}),bt.fn.extend({on:function(t,e,a,i){return w(this,t,e,a,i)},one:function(t,e,a,i){return w(this,t,e,a,i,1)},off:function(t,e,a){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,bt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(a=e,e=void 0),!1===a&&(a=L),this.each(function(){bt.event.remove(this,t,a,e)})}});var le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,he=/<script|<style|<link/i,ue=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;bt.extend({htmlPrefilter:function(t){return t.replace(le,"<$1></$2>")},clone:function(t,e,a){var i,r,n,o,s=t.cloneNode(!0),l=bt.contains(t.ownerDocument,t);if(!(It.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||bt.isXMLDoc(t)))for(o=b(s),n=b(t),i=0,r=n.length;i<r;i++)P(n[i],o[i]);if(e)if(a)for(n=n||b(t),o=o||b(s),i=0,r=n.length;i<r;i++)R(n[i],o[i]);else R(t,s);return o=b(s,"script"),o.length>0&&E(o,!l&&b(t,"script")),s},cleanData:function(t){for(var e,a,i,r=bt.event.special,n=0;void 0!==(a=t[n]);n++)if(Yt(a)){if(e=a[Ut.expando]){if(e.events)for(i in e.events)r[i]?bt.event.remove(a,i):bt.removeEvent(a,i,e.handle);a[Ut.expando]=void 0}a[Wt.expando]&&(a[Wt.expando]=void 0)}}}),bt.fn.extend({detach:function(t){return k(this,t,!0)},remove:function(t){return k(this,t)},text:function(t){return Ht(this,function(t){return void 0===t?bt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return B(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){N(this,t).appendChild(t)}})},prepend:function(){return B(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=N(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return B(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return B(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(bt.cleanData(b(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return bt.clone(this,t,e)})},html:function(t){return Ht(this,function(t){var e=this[0]||{},a=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!he.test(t)&&!ae[(te.exec(t)||["",""])[1].toLowerCase()]){t=bt.htmlPrefilter(t);try{for(;a<i;a++)e=this[a]||{},1===e.nodeType&&(bt.cleanData(b(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return B(this,arguments,function(e){var a=this.parentNode;bt.inArray(this,t)<0&&(bt.cleanData(b(this)),a&&a.replaceChild(e,this))},t)}}),bt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){bt.fn[t]=function(t){for(var a,i=[],r=bt(t),n=r.length-1,o=0;o<=n;o++)a=o===n?this:this.clone(!0),bt(r[o])[e](a),Ct.apply(i,a.get());return this.pushStack(i)}});var de=new RegExp("^("+zt+")(?!px)[a-z%]+$","i"),fe=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=a),e.getComputedStyle(t)},Ce=new RegExp(qt.join("|"),"i");!function(){function t(){if(h){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(h);var t=a.getComputedStyle(h);i="1%"!==t.top,s=12===e(t.marginLeft),h.style.right="60%",o=36===e(t.right),r=36===e(t.width),h.style.position="absolute",n=36===h.offsetWidth||"absolute",re.removeChild(l),h=null}}function e(t){return Math.round(parseFloat(t))}var i,r,n,o,s,l=ut.createElement("div"),h=ut.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",It.clearCloneStyle="content-box"===h.style.backgroundClip,bt.extend(It,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),n}}))}();var pe=/^(none|table(?!-c[ea]).+)/,De=/^--/,me={position:"absolute",visibility:"hidden",display:"block"},ve={letterSpacing:"0",fontWeight:"400"},ge=["Webkit","Moz","ms"],Se=ut.createElement("div").style;bt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var a=H(t,"opacity");return""===a?"1":a}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,a,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,n,o,s=v(e),l=De.test(e),h=t.style;if(l||(e=Y(s)),o=bt.cssHooks[e]||bt.cssHooks[s],void 0===a)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:h[e];n=typeof a,"string"===n&&(r=Jt.exec(a))&&r[1]&&(a=x(t,e,r),n="number"),null!=a&&a===a&&("number"===n&&(a+=r&&r[3]||(bt.cssNumber[s]?"":"px")),It.clearCloneStyle||""!==a||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(a=o.set(t,a,i))||(l?h.setProperty(e,a):h[e]=a))}},css:function(t,e,a,i){var r,n,o,s=v(e);return De.test(e)||(e=Y(s)),o=bt.cssHooks[e]||bt.cssHooks[s],o&&"get"in o&&(r=o.get(t,!0,a)),void 0===r&&(r=H(t,e,i)),"normal"===r&&e in ve&&(r=ve[e]),""===a||a?(n=parseFloat(r),!0===a||isFinite(n)?n||0:r):r}}),bt.each(["height","width"],function(t,e){bt.cssHooks[e]={get:function(t,a,i){if(a)return!pe.test(bt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?X(t,e,i):jt(t,me,function(){return X(t,e,i)})},set:function(t,a,i){var r,n=fe(t),o="border-box"===bt.css(t,"boxSizing",!1,n),s=i&&W(t,e,i,o,n);return o&&It.scrollboxSize()===n.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(n[e])-W(t,e,"border",!1,n)-.5)),s&&(r=Jt.exec(a))&&"px"!==(r[3]||"px")&&(t.style[e]=a,a=bt.css(t,e)),U(t,a,s)}}}),bt.cssHooks.marginLeft=V(It.reliableMarginLeft,function(t,e){if(e)return(parseFloat(H(t,"marginLeft"))||t.getBoundingClientRect().left-jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),bt.each({margin:"",padding:"",border:"Width"},function(t,e){bt.cssHooks[t+e]={expand:function(a){for(var i=0,r={},n="string"==typeof a?a.split(" "):[a];i<4;i++)r[t+qt[i]+e]=n[i]||n[i-2]||n[0];return r}},"margin"!==t&&(bt.cssHooks[t+e].set=U)}),bt.fn.extend({css:function(t,e){return Ht(this,function(t,e,a){var i,r,n={},o=0;if(Array.isArray(e)){for(i=fe(t),r=e.length;o<r;o++)n[e[o]]=bt.css(t,e[o],!1,i);return n}return void 0!==a?bt.style(t,e,a):bt.css(t,e)},t,e,arguments.length>1)}}),bt.Tween=K,K.prototype={constructor:K,init:function(t,e,a,i,r,n){this.elem=t,this.prop=a,this.easing=r||bt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=n||(bt.cssNumber[a]?"":"px")},cur:function(){var t=K.propHooks[this.prop];return t&&t.get?t.get(this):K.propHooks._default.get(this)},run:function(t){var e,a=K.propHooks[this.prop];return this.options.duration?this.pos=e=bt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),a&&a.set?a.set(this):K.propHooks._default.set(this),this}},K.prototype.init.prototype=K.prototype,K.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=bt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){bt.fx.step[t.prop]?bt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[bt.cssProps[t.prop]]&&!bt.cssHooks[t.prop]?t.elem[t.prop]=t.now:bt.style(t.elem,t.prop,t.now+t.unit)}}},K.propHooks.scrollTop=K.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},bt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},bt.fx=K.prototype.init,bt.fx.step={};var Ie,xe,Te=/^(?:toggle|show|hide)$/,Ae=/queueHooks$/;bt.Animation=bt.extend($,{tweeners:{"*":[function(t,e){var a=this.createTween(t,e);return x(a.elem,t,Jt.exec(e),a),a}]},tweener:function(t,e){xt(t)?(e=t,t=["*"]):t=t.match(Pt);for(var a,i=0,r=t.length;i<r;i++)a=t[i],$.tweeners[a]=$.tweeners[a]||[],$.tweeners[a].unshift(e)},prefilters:[j],prefilter:function(t,e){e?$.prefilters.unshift(t):$.prefilters.push(t)}}),bt.speed=function(t,e,a){var i=t&&"object"==typeof t?bt.extend({},t):{complete:a||!a&&e||xt(t)&&t,duration:t,easing:a&&e||e&&!xt(e)&&e};return bt.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in bt.fx.speeds?i.duration=bt.fx.speeds[i.duration]:i.duration=bt.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){xt(i.old)&&i.old.call(this),i.queue&&bt.dequeue(this,i.queue)},i},bt.fn.extend({fadeTo:function(t,e,a,i){return this.filter(Zt).css("opacity",0).show().end().animate({opacity:e},t,a,i)},animate:function(t,e,a,i){var r=bt.isEmptyObject(t),n=bt.speed(e,a,i),o=function(){var e=$(this,bt.extend({},t),n);(r||Ut.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===n.queue?this.each(o):this.queue(n.queue,o)},stop:function(t,e,a){var i=function(t){var e=t.stop;delete t.stop,e(a)};return"string"!=typeof t&&(a=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",n=bt.timers,o=Ut.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&Ae.test(r)&&i(o[r]);for(r=n.length;r--;)n[r].elem!==this||null!=t&&n[r].queue!==t||(n[r].anim.stop(a),e=!1,n.splice(r,1));!e&&a||bt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,a=Ut.get(this),i=a[t+"queue"],r=a[t+"queueHooks"],n=bt.timers,o=i?i.length:0;for(a.finish=!0,bt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=n.length;e--;)n[e].elem===this&&n[e].queue===t&&(n[e].anim.stop(!0),n.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete a.finish})}}),bt.each(["toggle","show","hide"],function(t,e){var a=bt.fn[e];bt.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?a.apply(this,arguments):this.animate(q(e,!0),t,i,r)}}),bt.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){bt.fn[t]=function(t,a,i){return this.animate(e,t,a,i)}}),bt.timers=[],bt.fx.tick=function(){var t,e=0,a=bt.timers;for(Ie=Date.now();e<a.length;e++)(t=a[e])()||a[e]!==t||a.splice(e--,1);a.length||bt.fx.stop(),Ie=void 0},bt.fx.timer=function(t){bt.timers.push(t),bt.fx.start()},bt.fx.interval=13,bt.fx.start=function(){xe||(xe=!0,z())},bt.fx.stop=function(){xe=null},bt.fx.speeds={slow:600,fast:200,_default:400},bt.fn.delay=function(t,e){return t=bt.fx?bt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var r=a.setTimeout(e,t);i.stop=function(){a.clearTimeout(r)}})},function(){var t=ut.createElement("input"),e=ut.createElement("select"),a=e.appendChild(ut.createElement("option"));t.type="checkbox",It.checkOn=""!==t.value,It.optSelected=a.selected,t=ut.createElement("input"),t.value="t",t.type="radio",It.radioValue="t"===t.value}();var be,Ee=bt.expr.attrHandle;bt.fn.extend({attr:function(t,e){return Ht(this,bt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){bt.removeAttr(this,t)})}}),bt.extend({attr:function(t,e,a){var i,r,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===t.getAttribute?bt.prop(t,e,a):(1===n&&bt.isXMLDoc(t)||(r=bt.attrHooks[e.toLowerCase()]||(bt.expr.match.bool.test(e)?be:void 0)),void 0!==a?null===a?void bt.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,a,e))?i:(t.setAttribute(e,a+""),a):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=bt.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!It.radioValue&&"radio"===e&&h(t,"input")){var a=t.value;return t.setAttribute("type",e),a&&(t.value=a),e}}}},removeAttr:function(t,e){var a,i=0,r=e&&e.match(Pt);if(r&&1===t.nodeType)for(;a=r[i++];)t.removeAttribute(a)}}),be={set:function(t,e,a){return!1===e?bt.removeAttr(t,a):t.setAttribute(a,a),a}},bt.each(bt.expr.match.bool.source.match(/\w+/g),function(t,e){var a=Ee[e]||bt.find.attr;Ee[e]=function(t,e,i){var r,n,o=e.toLowerCase();return i||(n=Ee[o],Ee[o]=r,r=null!=a(t,e,i)?o:null,Ee[o]=n),r}});var Fe=/^(?:input|select|textarea|button)$/i,ye=/^(?:a|area)$/i;bt.fn.extend({prop:function(t,e){return Ht(this,bt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[bt.propFix[t]||t]})}}),bt.extend({prop:function(t,e,a){var i,r,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&bt.isXMLDoc(t)||(e=bt.propFix[e]||e,r=bt.propHooks[e]),void 0!==a?r&&"set"in r&&void 0!==(i=r.set(t,a,e))?i:t[e]=a:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=bt.find.attr(t,"tabindex");return e?parseInt(e,10):Fe.test(t.nodeName)||ye.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),It.optSelected||(bt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),bt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){bt.propFix[this.toLowerCase()]=this}),bt.fn.extend({addClass:function(t){var e,a,i,r,n,o,s,l=0;if(xt(t))return this.each(function(e){bt(this).addClass(t.call(this,e,et(this)))});if(e=at(t),e.length)for(;a=this[l++];)if(r=et(a),i=1===a.nodeType&&" "+tt(r)+" "){for(o=0;n=e[o++];)i.indexOf(" "+n+" ")<0&&(i+=n+" ");s=tt(i),r!==s&&a.setAttribute("class",s)}return this},removeClass:function(t){var e,a,i,r,n,o,s,l=0;if(xt(t))return this.each(function(e){bt(this).removeClass(t.call(this,e,et(this)))});if(!arguments.length)return this.attr("class","");if(e=at(t),e.length)for(;a=this[l++];)if(r=et(a),i=1===a.nodeType&&" "+tt(r)+" "){for(o=0;n=e[o++];)for(;i.indexOf(" "+n+" ")>-1;)i=i.replace(" "+n+" "," ");s=tt(i),r!==s&&a.setAttribute("class",s)}return this},toggleClass:function(t,e){var a=typeof t,i="string"===a||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):xt(t)?this.each(function(a){bt(this).toggleClass(t.call(this,a,et(this),e),e)}):this.each(function(){var e,r,n,o;if(i)for(r=0,n=bt(this),o=at(t);e=o[r++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==t&&"boolean"!==a||(e=et(this),e&&Ut.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Ut.get(this,"__className__")||""))})},hasClass:function(t){var e,a,i=0;for(e=" "+t+" ";a=this[i++];)if(1===a.nodeType&&(" "+tt(et(a))+" ").indexOf(e)>-1)return!0;return!1}});var Le=/\r/g;bt.fn.extend({val:function(t){var e,a,i,r=this[0];{if(arguments.length)return i=xt(t),this.each(function(a){var r;1===this.nodeType&&(r=i?t.call(this,a,bt(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=bt.map(r,function(t){return null==t?"":t+""})),(e=bt.valHooks[this.type]||bt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return(e=bt.valHooks[r.type]||bt.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(a=e.get(r,"value"))?a:(a=r.value,"string"==typeof a?a.replace(Le,""):null==a?"":a)}}}),bt.extend({valHooks:{option:{get:function(t){var e=bt.find.attr(t,"value");return null!=e?e:tt(bt.text(t))}},select:{get:function(t){var e,a,i,r=t.options,n=t.selectedIndex,o="select-one"===t.type,s=o?null:[],l=o?n+1:r.length;for(i=n<0?l:o?n:0;i<l;i++)if(a=r[i],(a.selected||i===n)&&!a.disabled&&(!a.parentNode.disabled||!h(a.parentNode,"optgroup"))){if(e=bt(a).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var a,i,r=t.options,n=bt.makeArray(e),o=r.length;o--;)i=r[o],(i.selected=bt.inArray(bt.valHooks.option.get(i),n)>-1)&&(a=!0);return a||(t.selectedIndex=-1),n}}}}),bt.each(["radio","checkbox"],function(){bt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=bt.inArray(bt(t).val(),e)>-1}},It.checkOn||(bt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),It.focusin="onfocusin"in a;var Me=/^(?:focusinfocus|focusoutblur)$/,we=function(t){t.stopPropagation()};bt.extend(bt.event,{trigger:function(t,e,i,r){var n,o,s,l,h,u,c,d,f=[i||ut],C=vt.call(t,"type")?t.type:t,p=vt.call(t,"namespace")?t.namespace.split("."):[];if(o=d=s=i=i||ut,3!==i.nodeType&&8!==i.nodeType&&!Me.test(C+bt.event.triggered)&&(C.indexOf(".")>-1&&(p=C.split("."),C=p.shift(),p.sort()),h=C.indexOf(":")<0&&"on"+C,t=t[bt.expando]?t:new bt.Event(C,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:bt.makeArray(e,[t]),c=bt.event.special[C]||{},r||!c.trigger||!1!==c.trigger.apply(i,e))){if(!r&&!c.noBubble&&!Tt(i)){for(l=c.delegateType||C,Me.test(l+C)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(i.ownerDocument||ut)&&f.push(s.defaultView||s.parentWindow||a)}for(n=0;(o=f[n++])&&!t.isPropagationStopped();)d=o,t.type=n>1?l:c.bindType||C,u=(Ut.get(o,"events")||{})[t.type]&&Ut.get(o,"handle"),u&&u.apply(o,e),(u=h&&o[h])&&u.apply&&Yt(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=C,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),e)||!Yt(i)||h&&xt(i[C])&&!Tt(i)&&(s=i[h],s&&(i[h]=null),bt.event.triggered=C,t.isPropagationStopped()&&d.addEventListener(C,we),i[C](),t.isPropagationStopped()&&d.removeEventListener(C,we),bt.event.triggered=void 0,s&&(i[h]=s)),t.result}},simulate:function(t,e,a){var i=bt.extend(new bt.Event,a,{type:t,isSimulated:!0});bt.event.trigger(i,null,e)}}),bt.fn.extend({trigger:function(t,e){return this.each(function(){bt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var a=this[0];if(a)return bt.event.trigger(t,e,a,!0)}}),It.focusin||bt.each({focus:"focusin",blur:"focusout"},function(t,e){var a=function(t){bt.event.simulate(e,t.target,bt.event.fix(t))};bt.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Ut.access(i,e);r||i.addEventListener(t,a,!0),Ut.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Ut.access(i,e)-1;r?Ut.access(i,e,r):(i.removeEventListener(t,a,!0),Ut.remove(i,e))}}});var Ne=a.location,Oe=Date.now(),_e=/\?/;bt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new a.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||bt.error("Invalid XML: "+t),e};var Re=/\[\]$/,Pe=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;bt.param=function(t,e){var a,i=[],r=function(t,e){var a=xt(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==a?"":a)};if(Array.isArray(t)||t.jquery&&!bt.isPlainObject(t))bt.each(t,function(){r(this.name,this.value)});else for(a in t)it(a,t[a],e,r);return i.join("&")},bt.fn.extend({serialize:function(){return bt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=bt.prop(this,"elements");return t?bt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!bt(this).is(":disabled")&&ke.test(this.nodeName)&&!Be.test(t)&&(this.checked||!$t.test(t))}).map(function(t,e){var a=bt(this).val();return null==a?null:Array.isArray(a)?bt.map(a,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:a.replace(Pe,"\r\n")}}).get()}});var He=/%20/g,Ve=/#.*$/,Ge=/([?&])_=[^&]*/,Ye=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,We=/^(?:GET|HEAD)$/,Xe=/^\/\//,Ke={},ze={},Je="*/".concat("*"),qe=ut.createElement("a");qe.href=Ne.href,bt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ne.href,type:"GET",isLocal:Ue.test(Ne.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":bt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ot(ot(t,bt.ajaxSettings),e):ot(bt.ajaxSettings,t)},ajaxPrefilter:rt(Ke),ajaxTransport:rt(ze),ajax:function(t,e){function i(t,e,i,s){var h,d,f,S,I,x=e;u||(u=!0,l&&a.clearTimeout(l),r=void 0,o=s||"",T.readyState=t>0?4:0,h=t>=200&&t<300||304===t,i&&(S=st(C,T,i)),S=lt(C,S,T,h),h?(C.ifModified&&(I=T.getResponseHeader("Last-Modified"),I&&(bt.lastModified[n]=I),(I=T.getResponseHeader("etag"))&&(bt.etag[n]=I)),204===t||"HEAD"===C.type?x="nocontent":304===t?x="notmodified":(x=S.state,d=S.data,f=S.error,h=!f)):(f=x,!t&&x||(x="error",t<0&&(t=0))),T.status=t,T.statusText=(e||x)+"",h?m.resolveWith(p,[d,x,T]):m.rejectWith(p,[T,x,f]),T.statusCode(g),g=void 0,c&&D.trigger(h?"ajaxSuccess":"ajaxError",[T,C,h?d:f]),v.fireWith(p,[T,x]),c&&(D.trigger("ajaxComplete",[T,C]),--bt.active||bt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,n,o,s,l,h,u,c,d,f,C=bt.ajaxSetup({},e),p=C.context||C,D=C.context&&(p.nodeType||p.jquery)?bt(p):bt.event,m=bt.Deferred(),v=bt.Callbacks("once memory"),g=C.statusCode||{},S={},I={},x="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=Ye.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=I[t.toLowerCase()]=I[t.toLowerCase()]||t,S[t]=e),this},overrideMimeType:function(t){return null==u&&(C.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)T.always(t[T.status]);else for(e in t)g[e]=[g[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),i(0,e),this}};if(m.promise(T),C.url=((t||C.url||Ne.href)+"").replace(Xe,Ne.protocol+"//"),C.type=e.method||e.type||C.method||C.type,C.dataTypes=(C.dataType||"*").toLowerCase().match(Pt)||[""],null==C.crossDomain){h=ut.createElement("a");try{h.href=C.url,h.href=h.href,C.crossDomain=qe.protocol+"//"+qe.host!=h.protocol+"//"+h.host}catch(t){C.crossDomain=!0}}if(C.data&&C.processData&&"string"!=typeof C.data&&(C.data=bt.param(C.data,C.traditional)),nt(Ke,C,e,T),u)return T;c=bt.event&&C.global,c&&0==bt.active++&&bt.event.trigger("ajaxStart"),C.type=C.type.toUpperCase(),C.hasContent=!We.test(C.type),n=C.url.replace(Ve,""),C.hasContent?C.data&&C.processData&&0===(C.contentType||"").indexOf("application/x-www-form-urlencoded")&&(C.data=C.data.replace(He,"+")):(f=C.url.slice(n.length),C.data&&(C.processData||"string"==typeof C.data)&&(n+=(_e.test(n)?"&":"?")+C.data,delete C.data),!1===C.cache&&(n=n.replace(Ge,"$1"),f=(_e.test(n)?"&":"?")+"_="+Oe+++f),C.url=n+f),C.ifModified&&(bt.lastModified[n]&&T.setRequestHeader("If-Modified-Since",bt.lastModified[n]),bt.etag[n]&&T.setRequestHeader("If-None-Match",bt.etag[n])),(C.data&&C.hasContent&&!1!==C.contentType||e.contentType)&&T.setRequestHeader("Content-Type",C.contentType),T.setRequestHeader("Accept",C.dataTypes[0]&&C.accepts[C.dataTypes[0]]?C.accepts[C.dataTypes[0]]+("*"!==C.dataTypes[0]?", "+Je+"; q=0.01":""):C.accepts["*"]);for(d in C.headers)T.setRequestHeader(d,C.headers[d]);if(C.beforeSend&&(!1===C.beforeSend.call(p,T,C)||u))return T.abort();if(x="abort",v.add(C.complete),T.done(C.success),T.fail(C.error),r=nt(ze,C,e,T)){if(T.readyState=1,c&&D.trigger("ajaxSend",[T,C]),u)return T;C.async&&C.timeout>0&&(l=a.setTimeout(function(){T.abort("timeout")},C.timeout));try{u=!1,r.send(S,i)}catch(t){if(u)throw t;i(-1,t)}}else i(-1,"No Transport");return T},getJSON:function(t,e,a){return bt.get(t,e,a,"json")},getScript:function(t,e){return bt.get(t,void 0,e,"script")}}),bt.each(["get","post"],function(t,e){bt[e]=function(t,a,i,r){return xt(a)&&(r=r||i,i=a,a=void 0),bt.ajax(bt.extend({url:t,type:e,dataType:r,data:a,success:i},bt.isPlainObject(t)&&t))}}),bt._evalUrl=function(t){return bt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},bt.fn.extend({wrapAll:function(t){var e;return this[0]&&(xt(t)&&(t=t.call(this[0])),e=bt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return xt(t)?this.each(function(e){bt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=bt(this),a=e.contents();a.length?a.wrapAll(t):e.append(t)})},wrap:function(t){var e=xt(t);return this.each(function(a){bt(this).wrapAll(e?t.call(this,a):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){bt(this).replaceWith(this.childNodes)}),this}}),bt.expr.pseudos.hidden=function(t){return!bt.expr.pseudos.visible(t)},bt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},bt.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},je=bt.ajaxSettings.xhr();It.cors=!!je&&"withCredentials"in je,It.ajax=je=!!je,bt.ajaxTransport(function(t){var e,i;if(It.cors||je&&!t.crossDomain)return{send:function(r,n){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?n(0,"error"):n(s.status,s.statusText):n(Ze[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&a.setTimeout(function(){e&&i()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),bt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),bt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return bt.globalEval(t),t}}}),bt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),bt.ajaxTransport("script",function(t){if(t.crossDomain){var e,a;return{send:function(i,r){e=bt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",a=function(t){e.remove(),a=null,t&&r("error"===t.type?404:200,t.type)}),ut.head.appendChild(e[0])},abort:function(){a&&a()}}}});var Qe=[],$e=/(=)\?(?=&|$)|\?\?/;bt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||bt.expando+"_"+Oe++;return this[t]=!0,t}}),bt.ajaxPrefilter("json jsonp",function(t,e,i){var r,n,o,s=!1!==t.jsonp&&($e.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&$e.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=xt(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace($e,"$1"+r):!1!==t.jsonp&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||bt.error(r+" was not called"),o[0]},t.dataTypes[0]="json",n=a[r],a[r]=function(){o=arguments},i.always(function(){void 0===n?bt(a).removeProp(r):a[r]=n,t[r]&&(t.jsonpCallback=e.jsonpCallback,Qe.push(r)),o&&xt(n)&&n(o[0]),o=n=void 0}),"script"}),It.createHTMLDocument=function(){var t=ut.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),bt.parseHTML=function(t,e,a){if("string"!=typeof t)return[];"boolean"==typeof e&&(a=e,e=!1);var i,r,n;return e||(It.createHTMLDocument?(e=ut.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=ut.location.href,e.head.appendChild(i)):e=ut),r=wt.exec(t),n=!a&&[],r?[e.createElement(r[1])]:(r=F([t],e,n),n&&n.length&&bt(n).remove(),bt.merge([],r.childNodes))},bt.fn.load=function(t,e,a){var i,r,n,o=this,s=t.indexOf(" ");return s>-1&&(i=tt(t.slice(s)),t=t.slice(0,s)),xt(e)?(a=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&bt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){n=arguments,o.html(i?bt("<div>").append(bt.parseHTML(t)).find(i):t)}).always(a&&function(t,e){o.each(function(){a.apply(this,n||[t.responseText,e,t])})}),this},bt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){bt.fn[e]=function(t){return this.on(e,t)}}),bt.expr.pseudos.animated=function(t){return bt.grep(bt.timers,function(e){return t===e.elem}).length},bt.offset={setOffset:function(t,e,a){var i,r,n,o,s,l,h,u=bt.css(t,"position"),c=bt(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),n=bt.css(t,"top"),l=bt.css(t,"left"),h=("absolute"===u||"fixed"===u)&&(n+l).indexOf("auto")>-1,h?(i=c.position(),o=i.top,r=i.left):(o=parseFloat(n)||0,r=parseFloat(l)||0),xt(e)&&(e=e.call(t,a,bt.extend({},s))),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):c.css(d)}},bt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){bt.offset.setOffset(this,t,e)});var e,a,i=this[0];if(i)return i.getClientRects().length?(e=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,{top:e.top+a.pageYOffset,left:e.left+a.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,a,i=this[0],r={top:0,left:0};if("fixed"===bt.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),a=i.ownerDocument,t=i.offsetParent||a.documentElement;t&&(t===a.body||t===a.documentElement)&&"static"===bt.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&(r=bt(t).offset(),r.top+=bt.css(t,"borderTopWidth",!0),r.left+=bt.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-bt.css(i,"marginTop",!0),left:e.left-r.left-bt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===bt.css(t,"position");)t=t.offsetParent;return t||re})}}),bt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var a="pageYOffset"===e;bt.fn[t]=function(i){return Ht(this,function(t,i,r){var n;if(Tt(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===r)return n?n[e]:t[i];n?n.scrollTo(a?n.pageXOffset:r,a?r:n.pageYOffset):t[i]=r},t,i,arguments.length)}}),bt.each(["top","left"],function(t,e){bt.cssHooks[e]=V(It.pixelPosition,function(t,a){if(a)return a=H(t,e),de.test(a)?bt(t).position()[e]+"px":a})}),bt.each({Height:"height",Width:"width"},function(t,e){bt.each({padding:"inner"+t,content:e,"":"outer"+t},function(a,i){bt.fn[i]=function(r,n){var o=arguments.length&&(a||"boolean"!=typeof r),s=a||(!0===r||!0===n?"margin":"border");return Ht(this,function(e,a,r){var n;return Tt(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+t],n["scroll"+t],e.body["offset"+t],n["offset"+t],n["client"+t])):void 0===r?bt.css(e,a,s):bt.style(e,a,r,s)},e,o?r:void 0,o)}})}),bt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){bt.fn[e]=function(t,a){return arguments.length>0?this.on(e,null,t,a):this.trigger(e)}}),bt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),bt.fn.extend({bind:function(t,e,a){return this.on(t,null,e,a)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,a,i){return this.on(e,t,a,i)},undelegate:function(t,e,a){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",a)}}),bt.proxy=function(t,e){var a,i,r;if("string"==typeof e&&(a=t[e],e=t,t=a),xt(t))return i=dt.call(arguments,2),r=function(){return t.apply(e||this,i.concat(dt.call(arguments)))},r.guid=t.guid=t.guid||bt.guid++,r},bt.holdReady=function(t){t?bt.readyWait++:bt.ready(!0)},bt.isArray=Array.isArray,bt.parseJSON=JSON.parse,bt.nodeName=h,bt.isFunction=xt,bt.isWindow=Tt,bt.camelCase=v,bt.type=s,bt.now=Date.now,bt.isNumeric=function(t){var e=bt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},i=[],void 0!==(r=function(){return bt}.apply(e,i))&&(t.exports=r);var ta=a.jQuery,ea=a.$;return bt.noConflict=function(t){return a.$===bt&&(a.$=ea),t&&a.jQuery===bt&&(a.jQuery=ta),bt},n||(a.jQuery=a.$=bt),bt})},function(t,e,a){var i=a(8);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},,,,function(t,e,a){var i=a(37);t.exports=function(t,e,a){for(var r in e)a&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},function(t,e){t.exports=function(t,e,a,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(a+": incorrect invocation!");return t}},function(t,e,a){var i=a(38),r=a(2)("toStringTag"),n="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=o(e=Object(t),r))?a:n?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){function a(t,e){for(var a=0;a<t.length;a++){var i=t[a],r=d[i.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](i.parts[n]);for(;n<i.parts.length;n++)r.parts.push(l(i.parts[n],e))}else{for(var o=[],n=0;n<i.parts.length;n++)o.push(l(i.parts[n],e));d[i.id]={id:i.id,refs:1,parts:o}}}}function i(t){for(var e=[],a={},i=0;i<t.length;i++){var r=t[i],n=r[0],o=r[1],s=r[2],l=r[3],h={css:o,media:s,sourceMap:l};a[n]?a[n].parts.push(h):e.push(a[n]={id:n,parts:[h]})}return e}function r(t,e){var a=p(),i=v[v.length-1];if("top"===t.insertAt)i?i.nextSibling?a.insertBefore(e,i.nextSibling):a.appendChild(e):a.insertBefore(e,a.firstChild),v.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");a.appendChild(e)}}function n(t){t.parentNode.removeChild(t);var e=v.indexOf(t);e>=0&&v.splice(e,1)}function o(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function l(t,e){var a,i,r;if(e.singleton){var l=m++;a=D||(D=o(e)),i=h.bind(null,a,l,!1),r=h.bind(null,a,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=s(e),i=c.bind(null,a),r=function(){n(a),a.href&&URL.revokeObjectURL(a.href)}):(a=o(e),i=u.bind(null,a),r=function(){n(a)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,a,i){var r=a?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,r);else{var n=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(n,o[e]):t.appendChild(n)}}function u(t,e){var a=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}function c(t,e){var a=e.css,i=e.sourceMap;i&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([a],{type:"text/css"}),n=t.href;t.href=URL.createObjectURL(r),n&&URL.revokeObjectURL(n)}var d={},f=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},C=f(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),p=f(function(){return document.head||document.getElementsByTagName("head")[0]}),D=null,m=0,v=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=C()),void 0===e.insertAt&&(e.insertAt="bottom");var r=i(t);return a(r,e),function(t){for(var n=[],o=0;o<r.length;o++){var s=r[o],l=d[s.id];l.refs--,n.push(l)}if(t){a(i(t),e)}for(var o=0;o<n.length;o++){var l=n[o];if(0===l.refs){for(var h=0;h<l.parts.length;h++)l.parts[h]();delete d[l.id]}}}};var g=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e,a){"use strict";var i=a(10).f,r=a(74),n=a(17),o=a(6),s=a(18),l=a(4),h=a(101),u=a(102),c=a(30),d=a(7),f=a(45).fastKey,C=a(13),p=d?"_s":"size",D=function(t,e){var a,i=f(e);if("F"!==i)return t._i[i];for(a=t._f;a;a=a.n)if(a.k==e)return a};t.exports={getConstructor:function(t,e,a,h){var u=t(function(t,i){s(t,u,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[p]=0,void 0!=i&&l(i,a,t[h],t)});return n(u.prototype,{clear:function(){for(var t=C(this,e),a=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete a[i.i];t._f=t._l=void 0,t[p]=0},delete:function(t){var a=C(this,e),i=D(a,t);if(i){var r=i.n,n=i.p;delete a._i[i.i],i.r=!0,n&&(n.n=r),r&&(r.p=n),a._f==i&&(a._f=r),a._l==i&&(a._l=n),a[p]--}return!!i},forEach:function(t){C(this,e);for(var a,i=o(t,arguments.length>1?arguments[1]:void 0,3);a=a?a.n:this._f;)for(i(a.v,a.k,this);a&&a.r;)a=a.p},has:function(t){return!!D(C(this,e),t)}}),d&&i(u.prototype,"size",{get:function(){return C(this,e)[p]}}),u},def:function(t,e,a){var i,r,n=D(t,e);return n?n.v=a:(t._l=n={i:r=f(e,!0),k:e,v:a,p:i=t._l,n:void 0,r:!1},t._f||(t._f=n),i&&(i.n=n),t[p]++,"F"!==r&&(t._i[r]=n)),t},getEntry:D,setStrong:function(t,e,a){h(t,e,function(t,a){this._t=C(t,e),this._k=a,this._l=void 0},function(){for(var t=this,e=t._k,a=t._l;a&&a.r;)a=a.p;return t._t&&(t._l=a=a?a.n:t._t._f)?"keys"==e?u(0,a.k):"values"==e?u(0,a.v):u(0,[a.k,a.v]):(t._t=void 0,u(1))},a?"entries":"values",!a,!0),c(e)}}},function(t,e,a){var i=a(19),r=a(2)("iterator"),n=a(41);t.exports=a(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||n[i(t)]}},function(t,e,a){"use strict";var i=a(5),r=a(1),n=a(45),o=a(78),s=a(37),l=a(17),h=a(4),u=a(18),c=a(8),d=a(69),f=a(10).f,C=a(50)(0),p=a(7);t.exports=function(t,e,a,D,m,v){var g=i[t],S=g,I=m?"set":"add",x=S&&S.prototype,T={};return p&&"function"==typeof S&&(v||x.forEach&&!o(function(){(new S).entries().next()}))?(S=e(function(e,a){u(e,S,t,"_c"),e._c=new g,void 0!=a&&h(a,m,e[I],e)}),C("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!v||"clear"!=t)&&s(S.prototype,t,function(a,i){if(u(this,S,t),!e&&v&&!c(a))return"get"==t&&void 0;var r=this._c[t](0===a?0:a,i);return e?this:r})}),v||f(S.prototype,"size",{get:function(){return this._c.size}})):(S=D.getConstructor(e,t,m,I),l(S.prototype,a),n.NEED=!0),d(S,t),T[t]=S,r(r.G+r.W+r.F,T),v||D.setStrong(S,t,m),S}},function(t,e,a){var i=a(19),r=a(54);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,a){"use strict";var i=a(1);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,a){"use strict";var i=a(1),r=a(27),n=a(6),o=a(4);t.exports=function(t){i(i.S,t,{from:function(t){var e,a,i,s,l=arguments[1];return r(this),e=void 0!==l,e&&r(l),void 0==t?new this:(a=[],e?(i=0,s=n(l,arguments[2],2),o(t,!1,function(t){a.push(s(t,i++))})):o(t,!1,a.push,a),new this(a))}})}},,function(t,e,a){t.exports={default:a(46),__esModule:!0}},,function(t,e,a){"use strict";var i=a(5),r=a(0),n=a(10),o=a(7),s=a(2)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];o&&e&&!e[s]&&n.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,a){"use strict";e.__esModule=!0;var i=a(43),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,a){return e in t?(0,r.default)(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}},function(t,e,a){t.exports={default:a(59),__esModule:!0}},function(t,e,a){t.exports={default:a(64),__esModule:!0}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(){this.Domain="https://opensource.zealink.com",this.CacheDomain="https://opensourcecache.zealink.com"}function n(){this.Stop,this.Down,this.Up,this.Unchanged,this.UpStock={Symbol:null,Name:null},this.DownStock={Symbol:null,Name:null}}function o(){this.Good,this.GoodIncrease={Day1:null,Week1:null,Week4:null}}function s(t,e,a){this.arySymbol=new Array,this.SortField=t,this.Order=e,this.TagID=new V.default([a])}function l(){this.ROE,this.Date,this.PerSEarning,this.EPS,this.PerNetAsset,this.NProfit,this.NProfitIncrease,this.NnetProfit,this.NnProfitIncrease,this.NnProfitSpeed,this.Benford,this.SetData=function(t){isNaN(t.roe)||(this.ROE=t.roe),isNaN(t.finance.date)||(this.Date=t.finance.date),isNaN(t.finance.persearning)||(this.PerSEarning=t.finance.persearning),isNaN(t.finance.eps)||(this.EPS=t.finance.eps),isNaN(t.finance.pernetasset)||(this.PerNetAsset=t.finance.pernetasset),isNaN(t.finance.nprofit)||(this.NProfit=t.finance.nprofit),isNaN(t.finance.nprofitincrease)||(this.NProfitIncrease=t.finance.nprofitincrease),isNaN(t.finance.nnetprofit)||(this.NnetProfit=t.finance.nnetprofit),isNaN(t.finance.nnprofitincrease)||(this.NnProfitIncrease=t.finance.nnprofitincrease),isNaN(t.finance.nnprofitspeed)||(this.NnProfitSpeed=t.finance.nnprofitspeed),isNaN(t.finance.benford)||(this.Benford=t.finance.benford)}}function h(){this.Date,this.A,this.Total,this.ARate,this.SetData=function(t){isNaN(t.capital.date)||(this.Date=t.capital.date),isNaN(t.capital.a)||(this.A=t.capital.a),isNaN(t.capital.total)||(this.Total=t.capital.total),isNaN(t.capital.arate)||(this.ARate=t.capital.arate)}}function u(){this.SuperIn,this.SuperOut,this.BigIn,this.BigOut,this.MidIn,this.MidOut,this.SmallIn,this.SmallOut,this.MainIn,this.MainOut,this.MainNetIn,this.SetData=function(t){this.SuperIn=t.superin,this.SuperOut=t.superout,this.BigIn=t.bigin,this.BigOut=t.bigout,this.MidIn=t.midin,this.MidOut=t.midout,this.SmallIn=t.smallin,this.SmallOut=t.smallout,this.MainIn=t.mainin,this.MainOut=t.mainout,this.MainNetIn=t.mainnetin}}function c(){this.SuperIn,this.SuperOut,this.BigIn,this.BigOut,this.MidIn,this.MidOut,this.SmallIn,this.SmallOut,this.MainIn,this.MainOut,this.MainNetIn,this.MainNetInRatio,this.SetData=function(t){this.SuperIn=t.superin,this.SuperOut=t.superout,this.BigIn=t.bigin,this.BigOut=t.bigout,this.MidIn=t.midin,this.MidOut=t.midout,this.SmallIn=t.smallin,this.SmallOut=t.smallout,this.MainIn=t.mainin,this.MainOut=t.mainout,this.MainNetIn=t.mainnetin,this.MainNetInRatio=t.mainnetinratio}}function d(){this.DDX,this.DDY,this.DDZ,this.SetData=function(t){this.DDX=t.ddx,this.DDY=t.ddy,this.DDZ=t.ddz}}function f(){this.Name,this.Business,this.Vol,this.Price,this.ReleaseDate,this.Competence,this.SetData=function(t){t.company&&(this.Name=t.company.name,this.Business=t.company.business,this.Vol=t.company.vol,this.Price=t.company.price,this.ReleaseDate=t.company.releasedate,this.Competence=t.company.corecompetence)}}function C(){this.Industry,this.Region,this.Concept,this.SetData=function(t){this.SetIndustryData(t),this.SetRegionData(t),this.SetConceptData(t)},this.SetIndustryData=function(t){if(t.industry){this.Industry=[];for(var e in t.industry){var a=t.industry[e];this.Industry.push({Name:a.name,Symbol:a.symbol})}}},this.SetRegionData=function(t){if(t.region){this.Region=[];for(var e in t.region){var a=t.region[e];this.Region.push({Name:a.name,Symbol:a.symbol})}}},this.SetConceptData=function(t){if(t.concept){this.Concept=[];for(var e in t.concept){var a=t.concept[e];this.Concept.push({Name:a.name,Symbol:a.symbol})}}}}function p(){this.IsMargin=!1,this.IsHK=!1,this.IsSHHK=!1,this.IsSZHK=!1,this.STType=0,this.HK,this.SetData=function(t){t.events&&(isNaN(t.events.margin)||(this.IsMargin=1==t.events.margin),isNaN(t.events.hk)||(this.IsHK=1==t.events.hk),isNaN(t.events.shhk)||(this.IsSHHK=1==t.events.shhk),isNaN(t.events.szhk)||(this.IsSZHK=1==t.events.szhk),isNaN(t.events.st)||(this.STType=t.events.st),this.IsHK&&t.events.hksymbol&&t.events.hkname&&(this.HK={Symbol:t.events.hksymbol,Name:t.events.hkname}))}}function D(t){var e=t.toUpperCase();if(e.indexOf(".SH")>0){if(e=e.replace(".SH",""),"0"==e.charAt(0)&&parseInt(e)<=3e3)return!0}else if(e.indexOf(".SZ")>0){if(e=e.replace(".SZ",""),"3"==e.charAt(0)&&"9"==e.charAt(1))return!0}else if(e.indexOf(".CI")>0)return!0;return!1}function m(t){this.Symbol=t,this.Name,this.Open,this.Price,this.High,this.Low,this.YClose,this.Vol,this.Amount,this.Date,this.Time,this.ExchangeRate,this.Amplitude,this.VolRatio,this.Increase,this.MaxPrice,this.MinPrice,this.RFPrice,this.IndexTop,this.Week,this.MinuteAmplitude={},this.RiseFallSpeed={},this.MAmount={},this.GetBaseData=function(t,e){switch(this.BaseDataTagID.add(t),e){case W.SYMBOL:return this.Symbol;case W.NAME:return this.Name;case W.OPEN:return this.Open;case W.PRICE:return this.Price;case W.YCLOSE:return this.YClose;case W.HIGH:return this.High;case W.LOW:return this.Low;case W.VOL:return this.Vol;case W.AMOUNT:return this.Amount;case W.DATE:return this.Date;case W.TIME:return this.Time;case W.INCREASE:return this.Increase;case W.EXCHANGE_RATE:return this.ExchangeRate;case W.AMPLITUDE:return this.Amplitude;case W.MAX_PRICE:return this.MaxPrice;case W.MIN_PRICE:return this.MinPrice;case W.RISE_FALL_PRICE:return this.RFPrice;case W.VOLRATIO:return this.VolRatio;case W.INDEXTOP:return this.IndexTop;case W.WEEK:return this.Week}},this.Heat,this.GetHeatData=function(t){return this.HeatTagID.add(t),this.Heat},this.Sort=new k.default,this.GetSortData=function(t,e,a){var i=e.toString()+"-"+a.toString();if(!this.Sort.has(i)){var r=new s(e,a,t);return this.Sort.set(i,r),r}var r=this.Sort.get(i);return r.TagID.add(t),r},this.Buy5,this.GetBuy5=function(t){return this.BuySellTagID.add(t),this.Buy5},this.Sell5,this.GetSell5=function(t){return this.BuySellTagID.add(t),this.Sell5},this.Deal,this.GetDeal=function(t){return this.DealTagID.add(t),this.Deal},this.MarketValue,this.FlowMarketValue,this.Bookrate,this.Bookdiffer,this.PE,this.PE2,this.PE3,this.PB,this.GetDerivative=function(t,e){switch(this.DerivativeTagID.add(t),e){case W.MARKET_VALUE:return this.MarketValue;case W.FLOW_MARKET_VALUE:return this.FlowMarketValue;case W.BOOK_RATE:return this.Bookrate;case W.BOOK_DIFFER:return this.Bookdiffer;case W.PE:return this.PE;case W.PE2:return this.PE2;case W.PE3:return this.PE3;case W.PB:return this.PB}},this.Finance,this.GetFinance=function(t,e){if(!this.Finance)return this.FinanceTagID.add(t),null;switch(e){case W.ROE:return this.Finance.ROE;case W.FINANCE_DATE:return this.Finance.Date;case W.FINANCE_PERSEARNING:return this.Finance.PerSEarning;case W.FINANCE_PERNETASSET:return this.Finance.PerNetAsset;case W.FINANCE_NPROFIT:return this.Finance.NProfit;case W.FINANCE_NPROFITINCREASE:return this.Finance.NProfitIncrease;case W.FINANCE_NNETPROFIT:return this.Finance.NnetProfit;case W.FINANCE_NNPROFITINCREASE:return this.Finance.NnProfitIncrease;case W.FINANCE_NNPROFITSPEED:return this.Finance.NnProfitSpeed;case W.FINANCE_EPS:return this.Finance.EPS;case W.FINANCE_BENFORD:return this.Finance.Benford}},this.Capital,this.GetCapital=function(t,e){if(!this.Capital)return this.CapitalTagID.add(t),null;switch(e){case W.CAPITAL_TOTAL:return this.Capital.Total;case W.CAPITAL_A:return this.Capital.A;case W.CAPTIAL_ARATE:return this.Capital.ARate}},this.CapitalFlowDay,this.CapitalFlowDay3,this.CapitalFlowDay5,this.CapitalFlowDay10,this.GetCapitalFlowDay=function(t,e){var a=null;switch(e){case W.CAPITAL_FLOW_DAY:this.CapitalFlowDayID.add(t),this.CapitalFlowDay&&(a=this.CapitalFlowDay);break;case W.CAPITAL_FLOW_DAY3:this.CapitalFlowDay3ID.add(t),this.CapitalFlowDay3&&(a=this.CapitalFlowDay3);break;case W.CAPITAL_FLOW_DAY5:this.CapitalFlowDay5ID.add(t),this.CapitalFlowDay5&&(a=this.CapitalFlowDay5);break;case W.CAPITAL_FLOW_DAY10:this.CapitalFlowDay10ID.add(t),this.CapitalFlowDay10&&(a=this.CapitalFlowDay10)}return a},this.DDE,this.DDE3,this.DDE5,this.DDE10,this.GetDDE=function(t,e){var a=null;switch(e){case W.DDE:this.DDEID.add(t),this.DDE&&(a=this.DDE);break;case W.DDE3:this.DDE3ID.add(t),this.DDE3&&(a=this.DDE3);break;case W.DDE5:this.DDE5ID.add(t),this.DDE5&&(a=this.DDE5);break;case W.DDE10:this.DDE10ID.add(t),this.DDE10&&(a=this.DDE10)}return a},this.Event,this.GetEvent=function(t,e){return this.Event?this.Event:(this.EventTagID.add(t),null)},this.Company,this.GetCompany=function(t,e){if(!this.Company)return this.CompanyTagID.add(t),null;switch(e){case W.COMPANY_NAME:return this.Company.Name;case W.COMPANY_BUSINESS:return this.Company.Business;case W.COMPANY_VOL:return this.Company.Vol;case W.COMPANY_PRICE:return this.Company.Price;case W.COMPANY_RELEASEDATE:return this.Company.ReleaseDate;case W.COMPANY_COMPETENCE:return this.Company.Competence}},this.Plate,this.GetPlate=function(t,e){if(!this.Plate)return this.PlateTagID.add(t),null;switch(e){case W.PLATE_INDUSTRY:return this.Plate.Industry;case W.PLATE_CONCEPT:return this.Plate.Concept;case W.PLATE_REGION:return this.Plate.Region}},this.TagID=new V.default,this.BaseDataTagID=new V.default,this.HeatTagID=new V.default,this.BuySellTagID=new V.default,this.DealTagID=new V.default,this.DerivativeTagID=new V.default,this.FinanceTagID=new V.default,this.CapitalTagID=new V.default,this.CapitalFlowDayID=new V.default,this.CapitalFlowDay3ID=new V.default,this.CapitalFlowDay5ID=new V.default,this.CapitalFlowDay10ID=new V.default,this.DDEID=new V.default,this.DDE3ID=new V.default,this.DDE5ID=new V.default,this.DDE10ID=new V.default,this.EventTagID=new V.default,this.CompanyTagID=new V.default,this.PlateTagID=new V.default,this.AttachTagID=function(t){this.TagID.add(t)},this.ClearTagID=function(){this.TagID.clear(),this.BaseDataTagID.clear(),this.HeatTagID.clear(),this.BuySellTagID.clear(),this.DealTagID.clear(),this.DerivativeTagID.clear(),this.FinanceTagID.clear(),this.CapitalTagID.clear(),this.CapitalFlowDayID.clear(),this.CapitalFlowDay3ID.clear(),this.CapitalFlowDay5ID.clear(),this.CapitalFlowDay10ID.clear(),this.DDEID.clear(),this.DDE3ID.clear(),this.DDE5ID.clear(),this.DDE10ID.clear(),this.EventTagID.clear(),this.CompanyTagID.clear();var t=!0,e=!1,a=void 0;try{for(var i,r=(0,P.default)(this.Sort);!(t=(i=r.next()).done);t=!0){i.value[1].TagID.clear()}}catch(t){e=!0,a=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw a}}},this.RemoveTagID=function(t){this.TagID.delete(t),this.BaseDataTagID.delete(t),this.HeatTagID.delete(t),this.BuySellTagID.delete(t),this.DealTagID.delete(t),this.DerivativeTagID.delete(t),this.FinanceTagID.delete(t),this.CapitalTagID.delete(t),this.CapitalFlowDayID.delete(t),this.CapitalFlowDay3ID.delete(t),this.CapitalFlowDay5ID.delete(t),this.CapitalFlowDay10ID.delete(t),this.DDEID.delete(t),this.DDE3ID.delete(t),this.DDE5ID.delete(t),this.DDE10ID.delete(t),this.EventTagID.delete(t),this.CompanyTagID.delete(t);var e=!0,a=!1,i=void 0;try{for(var r,n=(0,P.default)(this.Sort);!(e=(r=n.next()).done);e=!0){r.value[1].TagID.delete(t)}}catch(t){a=!0,i=t}finally{try{!e&&n.return&&n.return()}finally{if(a)throw i}}},this.SetBaseData=function(t){this.Name=t.name,this.YClose=t.yclose,this.Price=t.price,this.High=t.high,this.Low=t.low,this.Open=t.open,this.Vol=t.vol,this.Amount=t.amount,this.Date=t.date,this.Time=t.time,this.Increase=t.increase,isNaN(t.exchangerate)||(this.ExchangeRate=t.exchangerate),isNaN(t.amplitude)||(this.Amplitude=t.amplitude),isNaN(t.volratio)||(this.VolRatio=t.volratio),this.Name.indexOf("ST")>=0?(this.MaxPrice=1.05*this.Open,this.MinPrice=.95*this.Open):(this.MaxPrice=1.1*this.Open,this.MinPrice=.9*this.Open),this.Price&&this.YClose&&(this.RFPrice=this.Price-this.YClose),t.week&&(this.Week={},this.Week.Week1=t.week.week1,this.Week.Week4=t.week.week4,this.Week.Week13=t.week.week13,this.Week.Week26=t.week.week26,this.Week.Week52=t.week.week52)},this.SetDerivativeData=function(t){this.MarketValue=t.marketvalue,this.FlowMarketValue=t.flowmarketvalue,this.Bookrate=t.bookrate,this.Bookdiffer=t.bookdiffer,this.PE=t.pe,this.PE2=t.pe2,this.PE3=t.pe3,this.PB=t.pb},this.SetFinanceData=function(t){console.log(t),t.finance&&(this.Finance=new l,this.Finance.SetData(t))},this.SetCapitalData=function(t){t.capital&&(this.Capital=new h,this.Capital.SetData(t))},this.SetIndexBaseData=function(t){this.SetBaseData(t);var e=new n;t.indextop&&(e.Up=t.indextop.up,e.Down=t.indextop.down,e.Unchanged=t.indextop.unchanged,e.Stop=t.indextop.stop,e.UpStock.Symbol=t.indextop.upstock.symbol,e.UpStock.Name=t.indextop.upstock.name,e.DownStock.Symbol=t.indextop.downstock.symbol,e.DownStock.Name=t.indextop.downstock.name),this.IndexTop=e},this.SetBuySellData=function(t){this.SetBaseData(t),this.Buy5=new Array,this.Sell5=new Array;for(var e in t.buy){var a=t.buy[e];this.Buy5.push({Price:a.price,Vol:a.vol})}for(var e in t.sell){var a=t.sell[e];this.Sell5.push({Price:a.price,Vol:a.vol})}},this.SetDealData=function(t){this.Price=t.price,this.High=t.high,this.Low=t.low,this.Vol=t.vol,this.Amount=t.amount,this.Date=t.date,this.Time=t.time,this.Increase=t.increase,this.Deal=new Array;for(var e in t.deal){var a=t.deal[e];if(!isNaN(a.price)&&!isNaN(a.time)){var i="";0===a.bs?i="B":1===a.bs&&(i="S"),this.Deal.push({Price:a.price,Amount:a.amount,Vol:a.vol,Time:a.time,BS:i})}}},this.SetHeatData=function(t){var e=new o;e.Good=t.quadrant.good,e.GoodIncrease.Day1=t.quadrant.gincrease.day1,e.GoodIncrease.Week1=t.quadrant.gincrease.week1,e.GoodIncrease.Week4=t.quadrant.gincrease.week4,this.Heat=e},this.SetCapitalFlowDayData=function(t,e){if(t)switch(e){case K.CAPITAL_FLOW_DAY_DATA:this.CapitalFlowDay=new u,this.CapitalFlowDay.SetData(t);break;case K.CAPITAL_FLOW_DAY3_DATA:this.CapitalFlowDay3=new c,this.CapitalFlowDay3.SetData(t);break;case K.CAPITAL_FLOW_DAY5_DATA:this.CapitalFlowDay5=new c,this.CapitalFlowDay5.SetData(t);break;case K.CAPITAL_FLOW_DAY10_DATA:this.CapitalFlowDay10=new c,this.CapitalFlowDay10.SetData(t)}},this.SetDDE=function(t,e){if(t){switch(e){case K.DDE_DAY_DATA:this.DDE=new d,this.DDE.SetData(t);break;case K.DDE_DAY3_DATA:this.DDE3=new d,this.DDE3.SetData(t);break;case K.DDE_DAY5_DATA:this.DDE5=new d,this.DDE5.SetData(t);break;case K.DDE_DAY10_DATA:this.DDE10=new d,this.DDE10.SetData(t)}return t}},this.SetEventData=function(t){t.events&&(this.Event=new p,this.Event.SetData(t))},this.SetCompanyData=function(t){t.company&&(this.Company=new f,this.Company.SetData(t))},this.SetPlateData=function(t){(t.industry||t.region||t.concept)&&(this.Plate=new C,this.Plate.SetData(t))},this.SetData=function(t){t.name&&(this.Name=t.name),isNaN(t.yclose)||(this.YClose=t.yclose),isNaN(t.price)||(this.Price=t.price),isNaN(t.high)||(this.High=t.high),isNaN(t.low)||(this.Low=t.low),isNaN(t.vol)||(this.Vol=t.vol),isNaN(t.amount)||(this.Amount=t.amount),isNaN(t.date)||(this.Date=t.date),isNaN(t.time)||(this.Time=t.time),isNaN(t.increase)||(this.Increase=t.increase),isNaN(t.marketvalue)||(this.MarketValue=t.marketvalue),isNaN(t.flowmarketvalue)||(this.FlowMarketValue=t.flowmarketvalue),isNaN(t.bookrate)||(this.Bookrate=t.bookrate),isNaN(t.bookdiffer)||(this.Bookdiffer=t.bookdiffer),isNaN(t.pe)||(this.PE=t.pe),isNaN(t.pb)||(this.PB=t.pb),t.finance&&this.SetFinanceData(t),t.finance&&this.SetFinanceDetailData(t),t.capital&&this.SetCapitalData(t),t.mamplitude&&(isNaN(t.mamplitude[1])||(this.MinuteAmplitude.M1=t.mamplitude[1]),isNaN(t.mamplitude[3])||(this.MinuteAmplitude.M3=t.mamplitude[3]),isNaN(t.mamplitude[5])||(this.MinuteAmplitude.M5=t.mamplitude[5]),isNaN(t.mamplitude[10])||(this.MinuteAmplitude.M10=t.mamplitude[10]),isNaN(t.mamplitude[15])||(this.MinuteAmplitude.M15=t.mamplitude[15])),t.risefallspeed&&(isNaN(t.risefallspeed[1])||(this.RiseFallSpeed.M1=t.risefallspeed[1]),isNaN(t.risefallspeed[3])||(this.RiseFallSpeed.M3=t.risefallspeed[3]),isNaN(t.risefallspeed[5])||(this.RiseFallSpeed.M5=t.risefallspeed[5]),isNaN(t.risefallspeed[10])||(this.RiseFallSpeed.M10=t.risefallspeed[10]),isNaN(t.risefallspeed[15])||(this.RiseFallSpeed.M15=t.risefallspeed[15])),t.mamount&&(isNaN(t.mamount[1])||(this.MAmount.M1=t.mamount[1]),isNaN(t.mamount[3])||(this.MAmount.M5=t.mamount[3]),isNaN(t.mamount[5])||(this.MAmount.M5=t.mamount[5]),isNaN(t.mamount[10])||(this.MAmount.M10=t.mamount[10]),isNaN(t.mamount[15])||(this.MAmount.M15=t.mamount[15]))}}function v(t,e){this.JSStock=t,this.TagID=e,this.Get=function(e,a){var i=t.Get(e,this.TagID);if(!i)return null;switch(a){case W.SYMBOL:case W.NAME:case W.OPEN:case W.PRICE:case W.YCLOSE:case W.HIGH:case W.LOW:case W.VOL:case W.AMOUNT:case W.DATE:case W.TIME:case W.INCREASE:case W.EXCHANGE_RATE:case W.AMPLITUDE:case W.MAX_PRICE:case W.MIN_PRICE:case W.RISE_FALL_PRICE:case W.INDEXTOP:case W.WEEK:case W.VOLRATIO:return i.GetBaseData(this.TagID,a);case W.HEAT:return i.GetHeatData(this.TagID);case W.BUY5:return i.GetBuy5(this.TagID);case W.SELL5:return i.GetSell5(this.TagID);case W.DEAL:return i.GetDeal(this.TagID);case W.MARKET_VALUE:case W.FLOW_MARKET_VALUE:case W.BOOK_RATE:case W.BOOK_DIFFER:case W.PE:case W.PE2:case W.PE3:case W.PB:return i.GetDerivative(this.TagID,a);case W.ROE:case W.FINANCE_DATE:case W.FINANCE_PERSEARNING:case W.FINANCE_PERNETASSET:case W.FINANCE_NPROFIT:case W.FINANCE_NPROFITINCREASE:case W.FINANCE_NNETPROFIT:case W.FINANCE_NNPROFITINCREASE:case W.FINANCE_NNPROFITSPEED:case W.FINANCE_EPS:case W.FINANCE_BENFORD:return i.GetFinance(this.TagID,a);case W.PLATE_INDUSTRY:case W.PLATE_CONCEPT:case W.PLATE_REGION:return i.GetPlate(this.TagID,a);case W.CAPITAL_FLOW_DAY:case W.CAPITAL_FLOW_DAY3:case W.CAPITAL_FLOW_DAY5:case W.CAPITAL_FLOW_DAY10:return i.GetCapitalFlowDay(this.TagID,a);case W.DDE:case W.DDE3:case W.DDE5:case W.DDE10:return i.GetDDE(this.TagID,a);case W.EVENTS:return i.GetEvent(this.TagID,a);case W.COMPANY_NAME:case W.COMPANY_BUSINESS:case W.COMPANY_VOL:case W.COMPANY_PRICE:case W.COMPANY_RELEASEDATE:case W.COMPANY_COMPETENCE:return i.GetCompany(this.TagID,a);case W.CAPITAL_A:case W.CAPTIAL_ARATE:case W.CAPITAL_TOTAL:return i.GetCapital(this.TagID,a);default:return null}},this.GetSort=function(e,a,i){var r=t.Get(e,this.TagID);return null==r?r:r.GetSortData(this.TagID,a,i)},this.EndRead=function(t){1==t&&this.JSStock.ReqeustData()},this.SetQueryField=function(t,e){for(var a in e)this.Get(t,e[a])}}function g(){this.Symbol,this.Callback,this.Order=-1,this.SortField,this.Field,this.Plate,this.Data=new k.default,this.ApiUrl=U.Domain+"/API/StockHistoryDay",this.PageSize=20,this.PageIndex=1,this.Count,this.currentData=null,this.RequsetData=function(t,e){var a=this,i="string"==typeof a.Symbol?[this.Symbol]:this.Symbol,r=i?i.length:0;this.Plate?this.currentData={plate:this.Plate,symbol:i,start:0,end:this.PageSize,field:this.Field,orderfield:this.SortField,order:this.Order,condition:t.GetQuery(),condition2:e?e.GetQuery():[]}:this.currentData={symbol:i,start:0,end:r,field:this.Field,orderfield:this.SortField,order:this.Order,condition:t.GetQuery(),condition2:e?e.GetQuery():[]},Y.default.ajax({url:this.ApiUrl,data:a.currentData,method:"POST",dataType:"json",success:function(e){a.Count=e.data.count,a.RecvData(e,t)},fail:function(e){a.RecvError(e,t)}})},this.GetNextPage=function(){var t=this;this.PageSize*this.PageIndex<this.Count?(this.currentData.start=this.PageSize*this.PageIndex,this.PageIndex++,this.currentData.end=this.PageSize*this.PageIndex,Y.default.ajax({url:this.ApiUrl,data:t.currentData,method:"POST",dataType:"json",success:function(e){t.RecvData(e)},fail:function(e){t.RecvError(e)}})):alert("数据已全部加载")},this.RecvData=function(t,e){var a=t.data;for(var i in a.stock){var r=a.stock[i],n=r.symbol,o={};this.Data.has(n)?o=this.Data.get(n):(o={Symbol:r.symbol,Name:r.name,Data:new k.default},this.Data.set(n,o)),this.SetStockData(r,o)}this.Callback&&this.Callback(this,e)},this.SetStockData=function(t,e){for(var a in t.stockday){var i=t.stockday[a],r=i.date,n=new k.default;this.SetFinanceData(i,n),this.SetBlocktradingData(i,n),this.SetChangesData(i,n),this.SetLiftingData(i,n),this.SetPforecastData(i,n),this.SetShortIndicatorsData(i,n),e.Data.set(r,n)}return e},this.SetFinanceData=function(t,e){var a=t.finance1;a&&(isNaN(a.nprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE1_NPROFITINCREASE,a.nprofitincrease),isNaN(a.nnprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE1_NNPROFITINCREASE,a.nnprofitincrease),isNaN(a.nnprofitspeed)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE1_NNPROFITSPEED,a.nnprofitspeed),isNaN(a.benford)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE1_BENFORD,a.benford));var i=t.announcement1;i&&(isNaN(i.year)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE1_YEAR,i.year),isNaN(i.quarter)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE1_QUARTER,i.quarter));var a=t.finance2;a&&(isNaN(a.nprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE2_NPROFITINCREASE,a.nprofitincrease),isNaN(a.nnprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE2_NNPROFITINCREASE,a.nnprofitincrease),isNaN(a.nnprofitspeed)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE2_NNPROFITSPEED,a.nnprofitspeed),isNaN(a.benford)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE2_BENFORD,a.benford));var i=t.announcement2;i&&(isNaN(i.year)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE2_YEAR,i.year),isNaN(i.quarter)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE2_QUARTER,i.quarter));var a=t.finance3;a&&(isNaN(a.nprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE3_NPROFITINCREASE,a.nprofitincrease),isNaN(a.nnprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE3_NNPROFITINCREASE,a.nnprofitincrease),isNaN(a.nnprofitspeed)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE3_NNPROFITSPEED,a.nnprofitspeed),isNaN(a.benford)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE3_BENFORD,a.benford));var i=t.announcement3;i&&(isNaN(i.year)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE3_YEAR,i.year),isNaN(i.quarter)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE3_QUARTER,i.quarter));var a=t.finance4;a&&(isNaN(a.nprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE4_NPROFITINCREASE,a.nprofitincrease),isNaN(a.nnprofitincrease)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE4_NNPROFITINCREASE,a.nnprofitincrease),isNaN(a.nnprofitspeed)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE4_NNPROFITSPEED,a.nnprofitspeed),isNaN(a.benford)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE4_BENFORD,a.benford));var i=t.announcement4;i&&(isNaN(i.year)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE4_YEAR,i.year),isNaN(i.quarter)||e.set(STOCK_HISTORY_FIELD_NAME.FINANCE4_QUARTER,i.quarter))},this.SetBlocktradingData=function(t,e){var a=t.blocktrading;a&&e.set(STOCK_HISTORY_FIELD_NAME.BLOCK_TRADING,{Premium:a.premium,Price:a.price,Vol:a.vol,Amount:a.amount})},this.SetChangesData=function(t,e){var a=t.changes;a&&e.set(STOCK_HISTORY_FIELD_NAME.HOLDERS_CHANGES,{List:a.list})},this.SetLiftingData=function(t,e){var a=t.lifting;a&&e.set(STOCK_HISTORY_FIELD_NAME.LIFTING,{Lifting:a})},this.SetPforecastData=function(t,e){var a=t.pforecast;a&&e.set(STOCK_HISTORY_FIELD_NAME.PFORECAST,{Lowprofit:a[0].lowprofit,Highprofit:a[0].highprofit,Lowchange:a[0].lowchange,Highchange:a[0].highchange,Reportdate:a[0].reportdate})},this.SetShortIndicatorsData=function(t,e){var a=t.policy;if(a){var i=["三只乌鸦","乌云盖顶","黄昏之星","巨量阴线","头肩顶","射击之星","倾盆大雨","断头铡刀","淡友反攻","空方炮","连续1周空头排列"],r=0,n=[],o=0,s="";a.forEach(function(t){i.some(function(e){return e===t.name})&&(r++,n.push(t.time))}),r?(o=Math.max.apply(n,n),s=a.find(function(t){return t.time===o}).name):s="",console.log(s,r,"latestName-targetedCount"),e.set(STOCK_HISTORY_FIELD_NAME.SHORTIND_ICATORS,{latestIndicatorName:s,indicatorCount:r})}},this.RecvError=function(t,e){},this.CreateCondition=function(t){return new QueryCondition(t)}}function S(){this.MapStock=new k.default,this.MapTagCallback=new k.default,this.RequestVersion=new Array([100,100,100]),this.RealtimeApiUrl=U.Domain+"/API/Stock",this.PlateQuadrantApiUrl=U.Domain+"/API/StockPlateQuadrant",this.IsAutoUpdate=!0,this.AutoUpateTimeout=15e3,this.Timeout,this.NetworkFilter,this.GetStockRead=function(t,e){var a=!0,i=!1,r=void 0;try{for(var n,o=(0,P.default)(this.MapStock);!(a=(n=o.next()).done);a=!0){n.value[1].RemoveTagID(t)}}catch(t){i=!0,r=t}finally{try{!a&&o.return&&o.return()}finally{if(i)throw r}}return this.MapTagCallback.set(t,e),new v(this,t)},this.Unsubscribe=function(t){var e=!0,a=!1,i=void 0;try{for(var r,n=(0,P.default)(this.MapStock);!(e=(r=n.next()).done);e=!0){r.value[1].RemoveTagID(t)}}catch(t){a=!0,i=t}finally{try{!e&&n.return&&n.return()}finally{if(a)throw i}}},this.UnsubscribeStock=function(t,e){var a=!0,i=!1,r=void 0;try{for(var n,o=(0,P.default)(this.MapStock);!(a=(n=o.next()).done);a=!0){var s=n.value;if(s[0]===t){e?s[1].RemoveTagID(e):s[1].ClearTagID(),console.log("[JSStock::UnsubscribeStock] symbol="+t+", tagID="+e);break}}}catch(t){i=!0,r=t}finally{try{!a&&o.return&&o.return()}finally{if(i)throw r}}},this.Get=function(t,e){this.MapStock.has(t)||this.MapStock.set(t,new m(t));var a=this.MapStock.get(t);return e&&a.AttachTagID(e),a},this.RequestData=function(){this.ClearTimer();var t=new Array,e=new Array,a=new Array,i=new Array,r=new Array,n=new Array,o=new Array,s=[],l=[],h=[],u=[],c=[],d=[],f=[],C=[],p=new Array,m=new Array,v=new Array,g=new Array,S=!0,I=!1,x=void 0;try{for(var T,A=(0,P.default)(this.MapStock);!(S=(T=A.next()).done);S=!0){var b=T.value,E=b[1],F=b[0];E.BaseDataTagID.size>0&&(D(F)?e.push(F):t.push(F)),E.BuySellTagID.size>0&&i.push(F),E.CapitalFlowDayID.size>0&&s.push(F),E.CapitalFlowDay3ID.size>0&&l.push(F),E.CapitalFlowDay5ID.size>0&&h.push(F),E.CapitalFlowDay10ID.size>0&&u.push(F),E.DDEID.size>0&&c.push(F),E.DDE3ID.size>0&&d.push(F),E.DDE5ID.size>0&&f.push(F),E.DDE10ID.size>0&&C.push(F),E.HeatTagID.size>0&&a.push(F),E.DealTagID.size>0&&r.push(F),E.DerivativeTagID.size>0&&n.push(F),E.FinanceTagID.size>0&&o.push(F),E.CapitalTagID.size>0&&g.push(F),null==E.Event&&E.EventTagID.size>0&&p.push(F),null==E.Company&&E.CompanyTagID.size>0&&m.push(F),null==b[1].Plate&&b[1].PlateTagID.size>0&&v.push(b[0])}}catch(t){I=!0,x=t}finally{try{!S&&A.return&&A.return()}finally{if(I)throw x}}i.length>0&&this.RequestBuySellData(i),t.length>0&&this.RequestBaseData(t),e.length>0&&this.RequestIndexBaseData(e),a.length>0&&this.RequestIndexHeatData(a),r.length>0&&this.RequestDealData(r),n.length>0&&this.RequestDerivativeData(n),o.length>0&&this.RequestFinanceData(o),g.length>0&&this.RequestCapitalData(g),s.length>0&&this.RequestSubDocumentData(s,"flowday"),l.length>0&&this.RequestSubDocumentData(l,"flowday3"),h.length>0&&this.RequestSubDocumentData(h,"flowday5"),u.length>0&&this.RequestSubDocumentData(u,"flowday10"),c.length>0&&this.RequestSubDocumentData(c,"dde"),d.length>0&&this.RequestSubDocumentData(d,"dde3"),f.length>0&&this.RequestSubDocumentData(f,"dde5"),C.length>0&&this.RequestSubDocumentData(C,"dde10"),p.length>0&&this.RequestEventData(p),m.length>0&&this.RequestCompanyData(m),v.length>0&&this.RequestPlateData(v),this.ReqeustAllSortData()},this.ReqeustData=this.RequestData,this.RequestBaseData=function(t){var e=this,a=["name","symbol","yclose","open","price","high","low","vol","amount","date","time","week","increase","exchangerate","amplitude","volratio"];if(this.NetworkFilter){var i={Name:"JSStock::RequestBaseData",Explain:"股票基础数据",ID:K.BASE_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.BASE_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.BASE_DATA)},error:function(t){e.RecvError(t,K.BASE_DATA)}})},this.RequestDerivativeData=function(t){var e=this,a=["name","symbol","marketvalue","flowmarketvalue","pe","pe2","pe3","pb","bookrate","bookdiffer"];if(this.NetworkFilter){var i={Name:"JSStock::RequestDerivativeData",Explain:"实时衍生数据",ID:K.DERIVATIVE_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.DERIVATIVE_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.DERIVATIVE_DATA)},error:function(t){e.RecvError(t,K.DERIVATIVE_DATA)}})},this.RequestFinanceData=function(t){var e=this,a=["name","symbol","roe","finance"];if(this.NetworkFilter){var i={Name:"JSStock::RequestFinanceData",Explain:"财务数据",ID:K.FINANCE_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.FINANCE_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.FINANCE_DATA)},error:function(t){e.RecvError(t,K.FINANCE_DATA)}})},this.RequestCapitalData=function(t){var e=this,a=["name","symbol","capital"];if(this.NetworkFilter){var i={Name:"JSStock::RequestCapitalData",Explain:"股本数据",ID:K.CAPITAL_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.CAPITAL_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.CAPITAL_DATA)},error:function(t){e.RecvError(t,K.CAPITAL_DATA)}})},this.RequestBuySellData=function(t){var e=this,a=["name","symbol","yclose","open","price","high","low","vol","amount","date","time","week","increase","buy","sell","exchangerate","amplitude"];if(this.NetworkFilter){var i={Name:"JSStock::RequestBuySellData",Explain:"买卖盘数据",ID:K.BUY_SELL_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.BUY_SELL_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.BUY_SELL_DATA)},error:function(t){e.RecvError(t,K.BUY_SELL_DATA)}})},this.RequestDealData=function(t){var e=this,a=["name","symbol","price","high","low","vol","amount","date","time","increase","deal"];if(this.NetworkFilter){var i={Name:"JSStock::RequestDealData",Explain:"分笔数据",ID:K.DEAL_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.DEAL_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.DEAL_DATA)},error:function(t){e.RecvError(t,K.DEAL_DATA)}})},this.RequestIndexBaseData=function(t){var e=this,a=["name","symbol","yclose","open","price","high","low","vol","amount","date","time","week","indextop","increase"];if(this.NetworkFilter){var i={Name:"JSStock::RequestIndexBaseData",Explain:"指数基础数据(包含上涨下跌家数)",ID:K.INDEX_BASE_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:a,symbol:t},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvData(t,K.INDEX_BASE_DATA)}),1==i.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:a,symbol:t},type:"post",dataType:"json",async:!0,success:function(t){console.log(t),e.RecvData(t,K.INDEX_BASE_DATA)},error:function(t){e.RecvError(t,K.INDEX_BASE_DATA)}})},this.RequestIndexHeatData=function(t){var e=this;Y.default.ajax({url:this.PlateQuadrantApiUrl,data:{plate:t},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.HEAT_DATA)},error:function(t){e.RecvError(t,K.HEAT_DATA)}})},this.ReqeustAllSortData=function(){var t=new Array,e=!0,a=!1,i=void 0;try{for(var r,n=(0,P.default)(this.MapStock);!(e=(r=n.next()).done);e=!0){var o=r.value;if(D(o[0])&&!(null==o[1].Sort||o[1].Sort.size<=0)){var s=!0,l=!1,h=void 0;try{for(var u,c=(0,P.default)(o[1].Sort);!(s=(u=c.next()).done);s=!0){var d=u.value,f=d[1],C={Plate:o[0],SortField:f.SortField,Order:f.Order,TagID:f.TagID};t.push(C)}}catch(t){l=!0,h=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw h}}}}}catch(t){a=!0,i=t}finally{try{!e&&n.return&&n.return()}finally{if(a)throw i}}for(var p in t){var d=t[p];this.ReqeustSortData(d)}},this.ReqeustSortData=function(t){var e=this,a=t,i="";switch(a.SortField){case W.INCREASE:i="increase";break;case W.PRICE:i="price";break;default:return}var r=["name","symbol","yclose","open","price","high","low","vol","amount","date","time","week","increase","exchangerate"];if(this.NetworkFilter){var n={Name:"JSStock::ReqeustSortData",Explain:"板块排序数据",ID:K.SORT_DATA,Request:{Url:e.RealtimeApiUrl,Data:{field:r,plate:[t.Plate],orderfield:i,order:t.Order,ordernull:1,filterstop:1},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(n,function(t){e.RecvData(t,K.SORT_DATA,a)}),1==n.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:r,plate:[t.Plate],orderfield:i,order:t.Order,ordernull:1,filterstop:1},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,K.SORT_DATA,a)},error:function(t){e.RecvError(t,K.SORT_DATA,a)}})},this.RequestSubDocumentData=function(t,e){var a=this,i=new k.default([["flowday",{Field:"flowday",RecvID:K.CAPITAL_FLOW_DAY_DATA}],["flowday3",{Field:"flowday3",RecvID:K.CAPITAL_FLOW_DAY3_DATA}],["flowday5",{Field:"flowday5",RecvID:K.CAPITAL_FLOW_DAY5_DATA}],["flowday10",{Field:"flowday10",RecvID:K.CAPITAL_FLOW_DAY10_DATA}],["dde",{Field:"dde",RecvID:K.DDE_DAY_DATA}],["dde3",{Field:"dde3",RecvID:K.DDE_DAY3_DATA}],["dde5",{Field:"dde5",RecvID:K.DDE_DAY5_DATA}],["dde10",{Field:"dde10",RecvID:K.DDE_DAY10_DATA}]]);if(i.has(e)){var r=i.get(e);if(this.NetworkFilter){var n={Name:"JSStock::RequestSubDocumentData",Explain:"子文档数据",ID:r.RecvID,Request:{Url:a.RealtimeApiUrl,Data:{field:["symbol",r.Field],symbol:t,start:0,end:50},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(n,function(t){a.RecvData(t,r.RecvID)}),1==n.PreventDefault)return}Y.default.ajax({url:this.RealtimeApiUrl,data:{field:["symbol",r.Field],symbol:t,start:0,end:50},type:"post",dataType:"json",success:function(t){a.RecvData(t,r.RecvID)},error:function(t){a.RecvError(t,r.RecvID)}})}},this.RequestEventData=function(t){var e=this;Y.default.ajax({url:this.RealtimeApiUrl,data:{field:["symbol","events.margin","events.shhk","events.hk","events.st","events.hksymbol","events.hkname","events.szhk"],symbol:t,start:0,end:50},type:"POST",dataType:"json",success:function(t){e.RecvData(t,K.EVENT_DATA)},error:function(t){e.RecvError(t,K.EVENT_DATA)}})},this.RequestCompanyData=function(t){var e=this;Y.default.ajax({url:this.RealtimeApiUrl,data:{field:["name","symbol","company"],symbol:t,start:0,end:50},type:"POST",dataType:"json",success:function(t){e.RecvData(t,K.COMPANY_DATA)},error:function(t){e.RecvError(t,K.COMPANY_DATA)}})},this.RequestPlateData=function(t){var e=this;Y.default.ajax({url:this.RealtimeApiUrl,data:{field:["name","symbol","industry","region","concept"],symbol:t,start:0,end:50},type:"POST",dataType:"json",success:function(t){e.RecvData(t,K.PLATE_DATA)},error:function(t){e.RecvError(t,K.PLATE_DATA)}})},this.RecvError=function(t,e,a){console.log("RecvError: datatype="+e.toString()),console.log(t);var i=this;this.Timeout&&clearTimeout(this.Timeout),this.Timeout=setTimeout(function(){i.ReqeustData()},2*this.AutoUpateTimeout)},this.RecvData=function(t,e,a){var i;switch(e){case K.BASE_DATA:case K.INDEX_BASE_DATA:i=this.RecvBaseData(t,e);break;case K.HEAT_DATA:i=this.RecvHeatData(t,e);break;case K.SORT_DATA:i=this.RecvSortData(t,e,a);break;case K.BUY_SELL_DATA:i=this.RecvBuySellData(t,e);break;case K.DEAL_DATA:i=this.RecvDealData(t,e);break;case K.DERIVATIVE_DATA:i=this.RecvDerivativeData(t,e);break;case K.FINANCE_DATA:i=this.RecvFinanceData(t,e);break;case K.CAPITAL_DATA:i=this.RecvCapitalData(t,e);break;case K.CAPITAL_FLOW_DAY_DATA:case K.CAPITAL_FLOW_DAY3_DATA:case K.CAPITAL_FLOW_DAY5_DATA:case K.CAPITAL_FLOW_DAY10_DATA:case K.DDE_DAY_DATA:case K.DDE_DAY3_DATA:case K.DDE_DAY5_DATA:case K.DDE_DAY10_DATA:i=this.RecvSubDocumentData(t,e);break;case K.EVENT_DATA:i=this.RecvEventData(t,e);break;case K.COMPANY_DATA:i=this.RecvCompanyData(t,e);break;case K.PLATE_DATA:i=this.RecvPlateData(t,e)}var r=!0,n=!1,o=void 0;try{for(var s,l=(0,P.default)(i);!(r=(s=l.next()).done);r=!0){var h=s.value;this.MapTagCallback.has(h[0])&&this.MapTagCallback.get(h[0])(h[0],h[1],e,this)}}catch(t){n=!0,o=t}finally{try{!r&&l.return&&l.return()}finally{if(n)throw o}}this.AutoUpdate()},this.ClearTimer=function(){this.Timeout&&(clearTimeout(this.Timeout),this.Timeout=null)},this.AutoUpdate=function(){if(this.ClearTimer(),this.IsAutoUpdate){var t=this,e=!1,a=!0,i=!1,r=void 0;try{for(var n,o=(0,P.default)(this.MapStock);!(a=(n=o.next()).done);a=!0){var s=n.value,l=z.GetMarketStatus(s[0]);if(2==l)return void(this.Timeout=setTimeout(function(){t.ReqeustData()},this.AutoUpateTimeout));1==l&&(e=!0)}}catch(t){i=!0,r=t}finally{try{!a&&o.return&&o.return()}finally{if(i)throw r}}e&&(this.Timeout=setTimeout(function(){t.AutoUpdate()},this.AutoUpateTimeout))}},this.RecvBaseData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n){switch(e){case K.BASE_DATA:n.SetBaseData(r);break;case K.INDEX_BASE_DATA:n.SetIndexBaseData(r);break;default:continue}if(n.TagID.size>0){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.TagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}}return a},this.RecvBuySellData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n){if(n.SetBuySellData(r),n.TagID.size>0){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.TagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}if(n.BuySellTagID.size>0){var d=!0,f=!1,C=void 0;try{for(var p,D=(0,P.default)(n.BuySellTagID);!(d=(p=D.next()).done);d=!0){var c=p.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){f=!0,C=t}finally{try{!d&&D.return&&D.return()}finally{if(f)throw C}}}}}return a},this.RecvDerivativeData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetDerivativeData(r),n.DerivativeTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.DerivativeTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvFinanceData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetFinanceData(r),n.FinanceTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.FinanceTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvCapitalData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetCapitalData(r),n.CapitalTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.CapitalTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvDealData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetDealData(r),n.DealTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.DealTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvHeatData=function(t,e){var a=new k.default;for(var i in t.data){var r=t.data[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetHeatData(r),n.HeatTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.HeatTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvSortData=function(t,e,a){var i=new k.default,r=new Array,n=this.MapStock.get(a.Plate);for(var o in t.stock){var s=t.stock[o];if(r.push(s.symbol),this.MapStock.has(s.symbol)){var l=this.MapStock.get(s.symbol);l.SetBaseData(s)}else{var l=new m(s.symbol);l.SetBaseData(s),this.MapStock.set(s.symbol,l)}}var h=a.SortField.toString()+"-"+a.Order.toString();if(!n.Sort.has(h))return i;n.Sort.get(h).arySymbol=r;var u=!0,c=!1,d=void 0;try{for(var f,C=(0,P.default)(a.TagID);!(u=(f=C.next()).done);u=!0){var s=f.value;i.set(s,new Array([n.Symbol]))}}catch(t){c=!0,d=t}finally{try{!u&&C.return&&C.return()}finally{if(c)throw d}}return i},this.RecvSubDocumentData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n){var o=null;switch(e){case K.CAPITAL_FLOW_DAY_DATA:n.SetCapitalFlowDayData(r.flowday,e),o=n.CapitalFlowDayID;break;case K.CAPITAL_FLOW_DAY3_DATA:n.SetCapitalFlowDayData(r.flowday3,e),o=n.CapitalFlowDay3ID;break;case K.CAPITAL_FLOW_DAY5_DATA:n.SetCapitalFlowDayData(r.flowday5,e),o=n.CapitalFlowDay5ID;break;case K.CAPITAL_FLOW_DAY10_DATA:n.SetCapitalFlowDayData(r.flowday10,e),o=n.CapitalFlowDay10ID;break;case K.DDE_DAY_DATA:n.SetDDE(r.dde,e),o=n.DDEID;break;case K.DDE_DAY3_DATA:n.SetDDE(r.dde3,e),o=n.DDE3ID;break;case K.DDE_DAY5_DATA:n.SetDDE(r.dde5,e),o=n.DDE5ID;break;case K.DDE_DAY10_DATA:n.SetDDE(r.dde10,e),o=n.DDE10ID}if(o&&o.size>0){var s=!0,l=!1,h=void 0;try{for(var u,c=(0,P.default)(o);!(s=(u=c.next()).done);s=!0){var d=u.value;a.has(d)?a.get(d).push(n.Symbol):a.set(d,new Array(n.Symbol))}}catch(t){l=!0,h=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw h}}}}}return a},this.RecvEventData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetEventData(r),n.EventTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.EventTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvCompanyData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetCompanyData(r),n.CompanyTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.CompanyTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a},this.RecvPlateData=function(t,e){var a=new k.default;for(var i in t.stock){var r=t.stock[i],n=this.MapStock.get(r.symbol);if(n&&(n.SetPlateData(r),n.PlateTagID.size>0)){var o=!0,s=!1,l=void 0;try{for(var h,u=(0,P.default)(n.PlateTagID);!(o=(h=u.next()).done);o=!0){var c=h.value;a.has(c)?a.get(c).push(n.Symbol):a.set(c,new Array(n.Symbol))}}catch(t){s=!0,l=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}}}return a}}function I(t){this.SearchStockApiUrl=U.Domain+"/API/StockSpell",this.UpdateUICallback=t,this.PageSize=50,this.Count,this.EndOffset,this.Data=new Array,this.SearchString="",this.SearchType=0,this.Search=function(t,e){if(this.SearchString==t&&this.SearchType==e)"function"==typeof this.UpdateUICallback&&this.UpdateUICallback(this);else{this.SearchString=t,this.SearchType=e,this.Count=0,this.EndOffset=0,this.Data=[];var a=this.PageSize-1;this.ReqeustSearchStock(this.SearchString,this.SearchType,this.EndOffset,a)}},this.IsEndPage=function(){return this.Count<=0||this.EndOffset>this.Count-1},this.NextPage=function(){if(!(this.EndOffset+1>this.Count)){var t=this.EndOffset+this.PageSize;this.ReqeustSearchStock(this.SearchString,this.SearchType,this.EndOffset,t)}},this.ReqeustSearchStock=function(t,e,a,i){var r=this;Y.default.ajax({url:this.SearchStockApiUrl,data:{input:t,start:a,end:i,type:e},type:"post",dataType:"json",async:!0,success:function(t){r.RecvSearchStockData(t,K.SEARCH_STOCK_DATA)},error:function(t){r.RecvError(t,K.SEARCH_STOCK_DATA)}})},this.RecvSearchStockData=function(t){for(var e in t.stock){var a=t.stock[e];this.Data.push({Name:a.name,Symbol:a.symbol,Type:a.type})}0==t.count?(this.Count=0,this.EndOffset=0):(0==this.Count&&(this.Count=t.count),this.EndOffset=t.end,this.Count>0&&this.EndOffset>this.Count&&(this.EndOffset=this.Count-1)),"function"==typeof this.UpdateUICallback&&this.UpdateUICallback(this)},this.RecvError=function(t,e){console.log("[SearchStock::RecvError] datatype="+e.toString()),console.log(t),"function"==typeof this.UpdateUICallback&&this.UpdateUICallback(this,"error")}}function x(){this.IsAutoUpdate=!0,this.AutoUpateTimeout=5e3,this.Timeout,this.ApiUrl,this.Data,this.Error,this.UpdateUICallback,this.RequestData=function(){},this.Stop=function(){this.IsAutoUpdate=!1,this.Timeout&&clearTimeout(this.Timeout)},this.AutoUpate=function(){if(this.Timeout&&clearTimeout(this.Timeout),this.IsAutoUpdate&&(this.Timeout&&clearTimeout(this.Timeout),this.IsAutoUpdate)){var t=this;if(this.Symbol){var e=z.GetMarketStatus(this.Symbol);2==e?this.Timeout=setTimeout(function(){t.RequestData()},this.AutoUpateTimeout):1==e&&(this.Timeout=setTimeout(function(){t.AutoUpdate()},this.AutoUpateTimeout))}else{var t=this,a=new Date,i=100*a.getHours()+a.getMinutes();a.getDay()>0&&a.getDay()<6&&i>=930&&i<1530&&(this.Timeout=setTimeout(function(){t.RequestData()},this.AutoUpateTimeout))}}},this.InvokeUpdateUICallback=function(){this.UpdateUICallback&&this.UpdateUICallback(this)}}function T(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.Symbol=t,this.ApiUrl=U.Domain+"/API/StockShortTerm",this.Count=20,this.RequestData=function(){var t=this,e={count:this.Count};this.Symbol&&(e.symbol=this.Symbol),Y.default.ajax({url:this.ApiUrl,data:e,type:"post",dataType:"json",async:!0,success:function(e){t.RecvData(e,K.SHORT_TERM_DATA)},fail:function(e){t.RecvError(e,K.SHORT_TERM_DATA)}})},this.RecvData=function(t,e){this.Data=[];for(var a in t.shortterm){var i=t.shortterm[a];this.Data.push({Date:i.date,Name:i.name,Symbol:i.symbol,Time:i.time,Content:i.content,TypeInfo:i.typeinfo,Type:i.type})}this.UpdateUICallback&&this.UpdateUICallback(this),this.AutoUpate()},this.RecvError=function(t,e){}}function A(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.Symbol=t,this.Date,this.RequestData=function(){this.Data=null,this.Error=null;var t=this,e=U.CacheDomain+"/cache/dealday/day/"+this.Date+"/"+this.Symbol+".json";console.log("[DealDay::RequestData] cache url ",e),Y.default.ajax({url:e,type:"get",dataType:"json",async:!0,success:function(e){t.RecvData(e,K.DEAL_DAY_DATA)},error:function(e){t.RecvError(e,K.DEAL_DAY_DATA)}})},this.RecvData=function(t,e){if(!t.day||!t.deal)return void this.InvokeUpdateUICallback();var a=t.deal.amount,i=t.deal.price,r=t.deal.time,n=t.deal.vol,o=t.deal.flag;if(!(o&&n&&r&&i&&a))return void this.InvokeUpdateUICallback();for(var s={Date:t.date,Open:t.day.open,Close:t.day.price,YClose:t.day.yclose,Symbol:t.symbol,Name:t.name,Deal:[],PriceList:[]},l=new k.default,h=0,u=Math.min(r.length,n.length,o.length,i.length,a.length),c=0;c<u;++c){var d={Time:r[c],Vol:n[c],Flag:"",Price:i[c],Amount:a[c]};0===o[c]?d.Flag="B":1===o[c]&&(d.Flag="S"),d.Time>15e4&&(d.Time=15e4),s.Deal.push(d);var f;l.has(d.Price)?(f=l.get(d.Price),f.Vol+=d.Vol):(f={Vol:d.Vol,Price:d.Price,BuyVol:0,SellVol:0,NoneVol:0},l.set(d.Price,f)),0===o[c]?f.BuyVol+=d.Vol:1===o[c]?f.SellVol+=d.Vol:f.NoneVol+=d.Vol,h+=d.Vol}var C=!0,p=!1,D=void 0;try{for(var m,v=(0,P.default)(l);!(C=(m=v.next()).done);C=!0){var g=m.value,S=g[1];h>0&&(S.Proportion=S.Vol/h),s.PriceList.push(S)}}catch(t){p=!0,D=t}finally{try{!C&&v.return&&v.return()}finally{if(p)throw D}}s.PriceList.sort(function(t,e){return e.Price-t.Price}),this.Data=s,this.InvokeUpdateUICallback()},this.RecvError=function(t,e){console.log("[DealDay::RecvError] status="+t.status+" statusText="+t.statusText+" responseText="+t.responseText),this.Error={Status:t.status,Message:t.responseText},this.InvokeUpdateUICallback()}}function b(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.ApiUrl=U.Domain+"/API/StockBlockMember",this.PageSize=10,this.Start=0,this.OrderField,this.Order,this.Symbol=t,this.OrderNull=0,this.Field=new Array,this.Data=new Array,this.PageInfo,this.SetField=function(t){this.Field=new Array;for(var e in t){var a=t[e],i=X.GetFieldName(a);null!=i&&this.Field.push(i)}return this.Field.length>0},this.SetOrder=function(t,e){this.Order=null,this.OrderField=null;var a=X.GetFieldName(t);return null!=a&&(this.OrderField=a,this.Order=e,!0)},this.RequestData=function(){this.Data=[];var t=this;Y.default.ajax({url:this.ApiUrl,data:{symbol:this.Symbol,field:this.Field,order:this.Order,orderfield:this.OrderField,start:this.Start,end:this.Start+this.PageSize,ordernull:this.OrderNull},type:"post",dataType:"json",success:function(e){t.RecvData(e,K.BLOCK_MEMBER_DATA)},error:function(e){t.RecvError(e,K.BLOCK_MEMBER_DATA)}})},this.RecvData=function(t,e){for(var a in t.stock){var i=t.stock[a];if(null!=i.symbol){var r=new m(i.symbol);r.SetData(i),this.Data.push(r)}}this.PageInfo={Count:t.count,Start:t.start,End:t.end},"function"==typeof this.UpdateUICallback&&this.UpdateUICallback(this),this.AutoUpate()},this.RecvError=function(t,e){}}function E(){this.newMethod=x,this.newMethod(),delete this.newMethod,this.BlockType=1,this.Count=20,this.OrderField="increase",this.Order=-1,this.Field=["symbol","price","name","vol","increase","indextop","risefall"],this.ApiUrl=U.Domain+"/API/StockBlockTop",this.SetField=function(t){},this.ReqeustData=function(){var t=this;Y.default.ajax({url:this.ApiUrl,data:{blocktype:this.BlockType,start:0,end:this.Count,field:this.Field,orderfield:this.OrderField,order:this.Order},type:"post",dataType:"json",async:!0,success:function(e){t.RecvData(e,K.BLOCK_TOP_DATA)},fail:function(e){t.RecvError(e,K.BLOCK_TOP_DATA)}})},this.RecvData=function(t,e){var a=t;this.Data=[],this.resCount=a.count;for(var i in a.stock){var r=a.stock[i];if(null!=r.indextop)var n={Down:r.indextop.down,Stop:r.indextop.stop,Up:r.indextop.up,Unchanged:r.indextop.unchanged,DownStock:{Name:r.indextop.downstock.name,Symbol:r.indextop.downstock.symbol},UpStock:{Name:r.indextop.upstock.name,Symbol:r.indextop.upstock.symbol}};this.Data.push({Name:r.name,Symbol:r.symbol,Increase:r.increase,Risefall:r.risefall,IndexTop:n})}this.UpdateUICallback&&this.UpdateUICallback(this),this.AutoUpate()},this.RecvError=function(t,e){}}function F(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.ApiUrl=U.Domain+"/API/StockMinuteImage",this.Symbol=[t],this.Data=[],this.RequestData=function(){this.Data=[];var t=this;Y.default.ajax({url:this.ApiUrl,data:{symbol:this.Symbol},type:"post",dataType:"json",success:function(e){t.RecvData(e,K.IMAGE_MINUTE_DATA)},error:function(e){t.RecvError(e,K.IMAGE_MINUTE_DATA)}})},this.RecvData=function(t,e){for(var a in t.symbol){var i={Symbol:t.symbol[a],Image:t.imagerelative[a]};this.Data.push(i)}"function"==typeof this.UpdateUICallback&&this.UpdateUICallback(this)},this.RecvError=function(t,e){}}function y(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.Symbol=t,this.RequestData=function(){this.Data=null,this.Error=null;var t=this,e=U.CacheDomain+"/cache/historyday/all/"+this.Symbol+".json";console.log("[HistoryDayData::RequestData] cache url ",e),Y.default.ajax({url:e,type:"get",dataType:"json",async:!0,success:function(e){t.RecvData(e,K.HISTORY_DAY_DATA)},error:function(e){t.RecvError(e,K.HISTORY_DAY_DATA)}})},this.RecvData=function(t,e){if(!t.symbol||!t.name)return void this.InvokeUpdateUICallback();var a=t.amount,i=t.close,r=t.date,n=t.high,o=t.low,s=t.open,l=t.vol,h=t.yclose;if(!(a&&i&&r&&n&&o&&s&&l&&h))return void this.InvokeUpdateUICallback();for(var u={UpdateDate:t.update,Symbol:t.symbol,Name:t.name,KLine:[]},c=0;c<r.length;++c){var d={Date:r[c],YClose:h[c],Open:s[c],High:n[c],Low:o[c],Close:i[c],Vol:l[c],Amount:a[c]};u.KLine.push(d)}this.Data=u,this.InvokeUpdateUICallback()},this.RecvError=function(t,e){console.log("[HistoryDayData::RecvError] status="+t.status+" statusText="+t.statusText+" responseText="+t.responseText),this.Error={Status:t.status,Message:t.responseText},this.InvokeUpdateUICallback()},this.GetWeekData=function(){return this.Data&&this.Data.KLine?this.GetDayPeriodData(1):[]},this.GetMonthData=function(){return this.Data&&this.Data.KLine?this.GetDayPeriodData(2):[]},this.GetDayPeriodData=function(t){var e=new Array,a=0,i=null;for(var r in this.Data.KLine){var n=!1,o=this.Data.KLine[r];switch(t){case 1:var s=this.GetFirday(o.Date);s!=a&&(n=!0,a=s);break;case 2:parseInt(o.Date/100)!=parseInt(a/100)&&(n=!0,a=o.Date);break;case 3:parseInt(o.Date/1e4)!=parseInt(a/1e4)&&(n=!0,a=o.Date)}if(n){if(i={},i.Date=o.Date,e.push(i),null==o.Open||null==o.Close)continue;i.Open=o.Open,i.High=o.High,i.Low=o.Low,i.YClose=o.YClose,i.Close=o.Close,i.Vol=o.Vol,i.Amount=o.Amount}else{if(null==i)continue;if(null==o.Open||null==o.Close)continue;null==i.Open||null==i.Close?(i.Open=o.Open,i.High=o.High,i.Low=o.Low,i.YClose=o.YClose,i.Close=o.Close,i.Vol=o.Vol,i.Amount=o.Amount):(i.High<o.High&&(i.High=o.High),i.Low>o.Low&&(i.Low=o.Low),i.Close=o.Close,i.Vol+=o.Vol,i.Amount+=o.Amount,i.Date=o.Date)}}return e},this.GetFirday=function(t){var e=new Date(parseInt(t/1e4),t/100%100-1,t%100),a=e.getDay();if(5==a)return t;var i=e.getTime();if(a<5){var r=864e5*(5-a);i+=r}else{var r=864e5*(a-5);i-=r}e.setTime(i);var n=1e4*e.getFullYear()+100*(e.getMonth()+1)+e.getDate();e.getDay();return n}}function L(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.Symbol=t,this.ApiUrl=U.Domain+"/API/StockPriceList",this.RequestData=function(){if(this.Symbol){var t=this,e={};Array.isArray(this.Symbol)?e.Symbol=this.Symbol:e.Symbol=[this.Symbol],Y.default.ajax({url:this.ApiUrl,data:e,type:"post",dataType:"json",async:!0,success:function(e){t.RecvData(e,K.DEAL_PRICE_LIST_DATA)},fail:function(e){t.RecvError(e,K.DEAL_PRICE_LIST_DATA)}})}},this.RecvData=function(t,e){if(this.Data=null,!(t.statistics.length<=0)){this.Data={Day:{},PriceList:[]};var a=t.data[0];this.Data.Day={Date:a.date,YClose:a.yclose,Price:a.price,Vol:a.vol,Time:a.time},this.Data.Stock={Symbol:a.symbol,Name:a.name};var i=t.statistics[0];for(var r in i.list){var n=i.list[r],o={Price:n[0],Vol:n[1],BuyVol:n[2],SellVol:n[3],NoneVol:n[4]};a.vol>0&&(o.Proportion=o.Vol/a.vol),this.Data.PriceList.push(o)}this.UpdateUICallback&&this.UpdateUICallback(this),this.AutoUpate()}},this.RecvError=function(t,e){}}function M(t){this.newMethod=x,this.newMethod(),delete this.newMethod,this.IsAutoUpdate=!1,this.Symbol=t,this.PageSize=20,this.Request=function(t,e){this.Error=null;var a=this,i=t*e,r=i+e,n=U.Domain+"/API/StockDetail";console.log("[LatestDetailData::RequestData] url="+n+", start="+i+" , end="+r),Y.default.ajax({url:n,data:{symbol:this.Symbol,start:i,end:r},type:"post",dataType:"json",async:!0,success:function(t){a.RecvData(t,K.LATEST_DETAIL_DATA)},error:function(t){a.RecvError(t,K.LATEST_DETAIL_DATA)}})},this.RequestData=function(){this.Data={Deal:[],Count:0,Reqeust:{PageIndex:0},Response:{}},this.Request(0,this.PageSize)},this.RequestPage=function(t){this.Data||(this.Data={Deal:[],Count:0}),this.Data.Reqeust={PageIndex:t},this.Data.Response={};for(var e=t*this.PageSize,a=e+this.PageSize,i=!0,r=e;r<a;++r)if(!this.Data.Deal[r]){i=!1;break}i?(this.Data.Response={Start:e,End:a},this.InvokeUpdateUICallback()):this.Request(t,this.PageSize)},this.RecvData=function(t,e){if(this.Data.Count=t.count,!t.detail)return void this.InvokeUpdateUICallback();this.Data.Day={YClose:t.yclose,Open:t.open,Close:t.price,Date:t.date},this.Data.Stock={Symbol:t.symbol,Name:t.name};for(var a=t.start,i=0,r=a;i<t.detail.length;++i,++r){var n=t.detail[i],o={Time:n[0],Price:n[1],Vol:n[2],Amount:n[3],Flag:""};0===n[4]?o.Flag="B":1===n[4]&&(o.Flag="S"),this.Data.Deal[r]=o}this.Data.Response={Start:t.start,End:t.end},this.InvokeUpdateUICallback()},this.RecvError=function(t,e){console.log("[LatestDetailData::RecvError] status="+t.status+" statusText="+t.statusText+" responseText="+t.responseText),this.Error={Status:t.status,Message:t.responseText},this.InvokeUpdateUICallback()}}function w(){this.newMethod=x,this.newMethod(),delete this.newMethod,this.ApiUrl=U.Domain+"/api/StockListAnalyze",this.PolicyGuid,this.Plate="",this.SymbolList=[],this.RequestData=function(){var t=this;Y.default.ajax({url:t.ApiUrl,data:{PolicyGuid:t.PolicyGuid,Plate:t.Plate,Symbol:t.SymbolList},type:"post",dataType:"json",async:!0,success:function(e){t.RecvData(e)},error:function(e){t.RecvError(e)}})},this.RecvData=function(t){this.Data={};var e=t;if(0!=e.count){if(e.concept){var a=[];for(var i in e.concept.data){var r=e.concept.data[i],n={};n.Name=r[0],n.Symbol=r[1],n.Ratio=r[2],n.Count=r[3],n.Increase=r[4],n.Price=r[5],n.Week1=r[6],n.Week4=r[7],a.push(n)}this.Data.Concept=a}e.distributed&&(this.Data.Distributed=e.distributed),e.industry&&(this.Data.Industry=e.industry),e.quadrant&&(this.Data.Quadrant=e.quadrant),e.region&&(this.Data.Region=e.region),this.UpdateUICallback&&this.UpdateUICallback(this)}},this.RecvError=function(t){console.log(t)}}Object.defineProperty(e,"__esModule",{value:!0});var N,O=a(31),_=i(O),R=a(33),P=i(R),B=a(28),k=i(B),H=a(32),V=i(H),G=a(12),Y=i(G),U=new r,W={SYMBOL:0,NAME:1,OPEN:2,PRICE:3,HIGH:4,LOW:5,YCLOSE:6,VOL:7,AMOUNT:8,DATE:9,TIME:10,INCREASE:11,BUY5:12,SELL5:13,DEAL:14,AMPLITUDE:15,MARKET_VALUE:16,FLOW_MARKET_VALUE:17,BOOK_RATE:18,BOOK_DIFFER:19,PE:20,PB:21,EXCHANGE_RATE:23,ROE:24,FINANCE_DATE:25,FINANCE_PERSEARNING:26,FINANCE_PERNETASSET:27,FINANCE_NPROFIT:28,FINANCE_NPROFITINCREASE:29,FINANCE_NNETPROFIT:30,FINANCE_NNPROFITINCREASE:31,FINANCE_NNPROFITSPEED:32,FINANCE_EPS:33,MAX_PRICE:34,MIN_PRICE:35,RISE_FALL_PRICE:36,FINANCE_BENFORD:37,RISEFALLSPEED_1:38,RISEFALLSPEED_3:39,RISEFALLSPEED_5:40,RISEFALLSPEED_10:41,RISEFALLSPEED_15:42,MINUTE_AMPLITUDE_1:43,MINUTE_AMPLITUDE_3:44,MINUTE_AMPLITUDE_5:45,MINUTE_AMPLITUDE_10:46,MINUTE_AMPLITUDE_15:47,MINUTE_AMOUNT_1:48,MINUTE_AMOUNT_3:49,MINUTE_AMOUNT_5:50,MINUTE_AMOUNT_10:51,MINUTE_AMOUNT_15:52,COMPANY_NAME:53,PLATE_INDUSTRY:54,PLATE_CONCEPT:55,PLATE_REGION:56,COMPANY_BUSINESS:57,COMPANY_VOL:58,COMPANY_PRICE:59,COMPANY_RELEASEDATE:60,COMPANY_COMPETENCE:61,CAPITAL_FLOW_DAY:67,CAPITAL_FLOW_DAY3:68,CAPITAL_FLOW_DAY5:69,CAPITAL_FLOW_DAY10:70,DDE:71,DDE3:72,DDE5:73,DDE10:74,EVENTS:75,CAPITAL_A:76,CAPITAL_TOTAL:77,CAPTIAL_ARATE:78,VOLRATIO:79,PE2:80,PE3:81,INDEXTOP:100,WEEK:101,HEAT:102},X={m_mapFiled:new k.default([[W.NAME,"name"],[W.SYMBOL,"symbol"],[W.PRICE,"price"],[W.INCREASE,"increase"],[W.PE,"pe"],[W.FINANCE_BENFORD,"finance.benford"],[W.YCLOSE,"yclose"],[W.RISEFALLSPEED_1,"risefallspeed.1"],[W.RISEFALLSPEED_3,"risefallspeed.3"],[W.RISEFALLSPEED_5,"risefallspeed.5"],[W.RISEFALLSPEED_10,"risefallspeed.10"],[W.RISEFALLSPEED_15,"risefallspeed.15"],[W.MINUTE_AMPLITUDE_1,"mamplitude.1"],[W.MINUTE_AMPLITUDE_3,"mamplitude.3"],[W.MINUTE_AMPLITUDE_5,"mamplitude.5"],[W.MINUTE_AMPLITUDE_10,"mamplitude.10"],[W.MINUTE_AMPLITUDE_15,"mamplitude.15"],[W.MINUTE_AMOUNT_1,"mamount.1"],[W.MINUTE_AMOUNT_3,"mamount.3"],[W.MINUTE_AMOUNT_5,"mamount.5"],[W.MINUTE_AMOUNT_10,"mamount.10"],[W.MINUTE_AMOUNT_15,"mamount.15"]]),GetFieldName:function(t){return this.m_mapFiled.has(t)?this.m_mapFiled.get(t):null}};S.Init=function(){return new S},S.SetDomain=function(t,e){t&&(U.Domain=t),e&&(U.CacheDomain=e)},S.GetSearchStock=function(t){return new I(t)},S.GetShortTerm=function(t){return new T(t)},S.GetDealDay=function(t){return new A(t)},S.GetBlockMember=function(t){return new b(t)},S.GetBlockTop=function(){return new E},S.GetMinuteImage=function(t){return new F(t)},S.GetHistoryDayData=function(t){return new y(t)},S.GetDealPriceListData=function(t){return new L(t)},S.GetLatestDetailData=function(t){return new M(t)},S.GetAnalylisPlate=function(){return new w},S.GetStockHistory=function(){return new g};var K={BASE_DATA:1,INDEX_BASE_DATA:2,HEAT_DATA:3,SORT_DATA:4,BUY_SELL_DATA:5,DEAL_DATA:6,DERIVATIVE_DATA:7,FINANCE_DATA:8,SEARCH_STOCK_DATA:9,SELF_STOCK_DATA:10,LOGON_DATA:11,BLOCK_MEMBER_DATA:13,SHORT_TERM_DATA:14,COMPANY_DATA:15,PLATE_DATA:16,CAPITAL_DATA:17,CAPITAL_FLOW_DAY_DATA:23,CAPITAL_FLOW_DAY3_DATA:24,CAPITAL_FLOW_DAY5_DATA:25,CAPITAL_FLOW_DAY10_DATA:26,DDE_DAY_DATA:27,DDE_DAY3_DATA:28,DDE_DAY5_DATA:29,DDE_DAY10_DATA:30,DEAL_DAY_DATA:105,EVENT_DATA:106,IMAGE_MINUTE_DATA:107,HISTORY_DAY_DATA:108,DEAL_PRICE_LIST_DATA:109,LATEST_DETAIL_DATA:110},z={SH:".SH",SZ:".SZ",HK:".HK",SHFE:".SHF",CFFEX:".CFE",DCE:".DCE",CZCE:".CZC",USA:".USA",IsUSA:function(t){return!!t&&t.indexOf(this.USA)>0},IsSH:function(t){var e=t.length-this.SH.length;return t.indexOf(this.SH)==e},IsSZ:function(t){var e=t.length-this.SZ.length;return t.indexOf(this.SZ)==e},IsHK:function(t){var e=t.length-this.HK.length;return t.indexOf(this.HK)==e},IsSHFE:function(t){return t.indexOf(this.SHFE)>0},IsCFFEX:function(t){return t.indexOf(this.CFFEX)>0},IsDCE:function(t){return t.indexOf(this.DCE)>0},IsCZCE:function(t){return t.indexOf(this.CZCE)>0},IsChinaFutures:function(t){return this.IsCFFEX(t)||this.IsCZCE(t)||this.IsDCE(t)||this.IsSHFE(t)},IsSHSZ:function(t){return this.IsSZ(t)||this.IsSH(t)},IsSHSZFund:function(t){if(!t)return!1;if(this.IsSH(t)){if("5"==t.charAt(0)&&"1"==t.charAt(1))return!0}else if(this.IsSZ(t)&&"1"==t.charAt(0)&&("5"==t.charAt(1)||"6"==t.charAt(1)||"7"==t.charAt(1)||"8"==t.charAt(1)))return!0;return!1},IsSHSZIndex:function(t){if(!t)return!1;var e=t.toUpperCase();if(this.IsSH(e)){var a=e.replace(".SH","");if("0"==e.charAt(0)&&parseInt(a)<=3e3)return!0}else if(this.IsSZ(e)){if("3"==e.charAt(0)&&"9"==e.charAt(1))return!0}else if(e.indexOf(".CI")>0)return!0;return!1},IsSHSZStockA:function(t){if(!t)return!1;var e=t.toUpperCase();if(this.IsSH(e)){e.replace(".SH","");if("6"==e.charAt(0))return!0}else if(this.IsSZ(e)&&"0"==e.charAt(0)){if("0"==e.charAt(1)&&"2"==e.charAt(1))return!0;if("7"!=e.charAt(1)&&"8"!=e.charAt(1))return!0}return!1},IsSHStockSTAR:function(t){if(!t)return!1;var e=t.toUpperCase();return!!this.IsSH(e)&&("6"==e.charAt(0)&&"8"==e.charAt(1)&&"8"==e.charAt(2))},GetMarketStatus:function(t){if(!t)return 0;var e=t.toUpperCase();if(this.IsUSA(e)){var a=GetLocalTime(-4);return r=a.getDay(),n=100*a.getHours()+a.getMinutes(),6==r||0==r?0:n>1730?3:n<930?1:2}var i=new Date,r=i.getDay(),n=100*i.getHours()+i.getMinutes();return 6==r||0==r?0:n>1540?3:n<925?1:2}};e.default=(N={JSStockInit:S.Init,STOCK_FIELD_NAME:W,JSStock:S,StockRead:v},(0,_.default)(N,"STOCK_FIELD_NAME",W),(0,_.default)(N,"RECV_DATA_TYPE",K),N)},,function(t,e,a){"use strict";function i(t){var e,a;this.promise=new t(function(t,i){if(void 0!==e||void 0!==a)throw TypeError("Bad Promise constructor");e=t,a=i}),this.resolve=r(e),this.reject=r(a)}var r=a(27);t.exports.f=function(t){return new i(t)}},,,function(t,e,a){var i=a(66);"string"==typeof i&&(i=[[t.i,i,""]]);a(20)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,a){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",year:"",month1:"Jan",month2:"Feb",month3:"Mar",month4:"Apr",month5:"May",month6:"Jun",month7:"Jul",month8:"Aug",month9:"Sep",month10:"Oct",month11:"Nov",month12:"Dec",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:""},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"}}}},,function(t,e){t.exports=function(t,e){for(var a=[],i={},r=0;r<e.length;r++){var n=e[r],o=n[0],s=n[1],l=n[2],h=n[3],u={id:t+":"+r,css:s,media:l,sourceMap:h};i[o]?i[o].parts.push(u):a.push(i[o]={id:o,parts:[u]})}return a}},function(t,e,a){t.exports={default:a(57),__esModule:!0}},,,function(t,e,a){a(29),a(14),a(15),a(47),a(53),a(55),a(56),t.exports=a(0).Map},function(t,e,a){"use strict";var i=a(21),r=a(13);t.exports=a(23)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},function(t,e,a){var i=a(9);t.exports=function(t,e,a,r){try{return r?e(i(a)[0],a[1]):e(a)}catch(e){var n=t.return;throw void 0!==n&&i(n.call(t)),e}}},function(t,e,a){var i=a(41),r=a(2)("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||n[r]===t)}},function(t,e,a){var i=a(6),r=a(99),n=a(100),o=a(44),s=a(51);t.exports=function(t,e){var a=1==t,l=2==t,h=3==t,u=4==t,c=6==t,d=5==t||c,f=e||s;return function(e,s,C){for(var p,D,m=n(e),v=r(m),g=i(s,C,3),S=o(v.length),I=0,x=a?f(e,S):l?f(e,0):void 0;S>I;I++)if((d||I in v)&&(p=v[I],D=g(p,I,m),t))if(a)x[I]=D;else if(D)switch(t){case 3:return!0;case 5:return p;case 6:return I;case 2:x.push(p)}else if(u)return!1;return c?-1:h||u?u:x}}},function(t,e,a){var i=a(52);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,a){var i=a(8),r=a(103),n=a(2)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[n])&&(e=void 0)),void 0===e?Array:e}},function(t,e,a){var i=a(1);i(i.P+i.R,"Map",{toJSON:a(24)("Map")})},function(t,e,a){var i=a(4);t.exports=function(t,e){var a=[];return i(t,!1,a.push,a,e),a}},function(t,e,a){a(25)("Map")},function(t,e,a){a(26)("Map")},function(t,e,a){a(58);var i=a(0).Object;t.exports=function(t,e,a){return i.defineProperty(t,e,a)}},function(t,e,a){var i=a(1);i(i.S+i.F*!a(7),"Object",{defineProperty:a(10).f})},function(t,e,a){a(29),a(14),a(15),a(60),a(61),a(62),a(63),t.exports=a(0).Set},function(t,e,a){"use strict";var i=a(21),r=a(13);t.exports=a(23)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,a){var i=a(1);i(i.P+i.R,"Set",{toJSON:a(24)("Set")})},function(t,e,a){a(25)("Set")},function(t,e,a){a(26)("Set")},function(t,e,a){a(15),a(14),t.exports=a(65)},function(t,e,a){var i=a(9),r=a(22);t.exports=a(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,'.el-breadcrumb:after,.el-breadcrumb:before,.el-button-group:after,.el-button-group:before,.el-form-item:after,.el-form-item:before,.el-form-item__content:after,.el-form-item__content:before{display:table;content:""}.el-breadcrumb:after,.el-button-group:after,.el-color-dropdown__main-wrapper:after,.el-dialog__header:after,.el-form-item:after,.el-form-item__content:after,.el-menu:after,.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after,.el-row:after,.el-slider:after,.el-tabs{clear:both}.el-checkbox-button__original,.el-pagination--small .arrow.disabled,.el-table--hidden,.el-table .hidden-columns,.el-table td.is-hidden>*,.el-table th.is-hidden>*{visibility:hidden}.el-autocomplete-suggestion.is-loading li:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-dialog__header:after,.el-dialog__header:before{display:table;content:""}@font-face{font-family:element-icons;src:url('+a(67)+') format("woff"),url('+a(68)+') format("truetype");font-weight:400;font-style:normal}[class*=" el-icon-"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-arrow-down:before{content:"\\E600"}.el-icon-arrow-left:before{content:"\\E601"}.el-icon-arrow-right:before{content:"\\E602"}.el-icon-arrow-up:before{content:"\\E603"}.el-icon-caret-bottom:before{content:"\\E604"}.el-icon-caret-left:before{content:"\\E605"}.el-icon-caret-right:before{content:"\\E606"}.el-icon-caret-top:before{content:"\\E607"}.el-icon-check:before{content:"\\E608"}.el-icon-circle-check:before{content:"\\E609"}.el-icon-circle-close:before{content:"\\E60A"}.el-icon-circle-cross:before{content:"\\E60B"}.el-icon-close:before{content:"\\E60C"}.el-icon-upload:before{content:"\\E60D"}.el-icon-d-arrow-left:before{content:"\\E60E"}.el-icon-d-arrow-right:before{content:"\\E60F"}.el-icon-d-caret:before{content:"\\E610"}.el-icon-date:before{content:"\\E611"}.el-icon-delete:before{content:"\\E612"}.el-icon-document:before{content:"\\E613"}.el-icon-edit:before{content:"\\E614"}.el-icon-information:before{content:"\\E615"}.el-icon-loading:before{content:"\\E616"}.el-icon-menu:before{content:"\\E617"}.el-icon-message:before{content:"\\E618"}.el-icon-minus:before{content:"\\E619"}.el-icon-more:before{content:"\\E61A"}.el-icon-picture:before{content:"\\E61B"}.el-icon-plus:before{content:"\\E61C"}.el-icon-search:before{content:"\\E61D"}.el-icon-setting:before{content:"\\E61E"}.el-icon-share:before{content:"\\E61F"}.el-icon-star-off:before{content:"\\E620"}.el-icon-star-on:before{content:"\\E621"}.el-icon-time:before{content:"\\E622"}.el-icon-warning:before{content:"\\E623"}.el-icon-delete2:before{content:"\\E624"}.el-icon-upload2:before{content:"\\E627"}.el-icon-view:before{content:"\\E626"}.el-icon-loading{animation:rotating 1s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-pagination{white-space:nowrap;padding:2px 5px;color:#48576a}.el-pagination:after,.el-pagination:before{display:table;content:""}.el-pagination:after{clear:both}.el-pagination button,.el-pagination span{display:inline-block;font-size:13px;min-width:28px;height:28px;line-height:28px;vertical-align:top;box-sizing:border-box}.el-pagination .el-select .el-input{width:110px}.el-pagination .el-select .el-input input{padding-right:25px;border-radius:2px;height:28px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:#20a0ff}.el-pagination button.disabled{color:#e4e4e4;background-color:#fff;cursor:not-allowed}.el-pager li,.el-pager li.btn-quicknext:hover,.el-pager li.btn-quickprev:hover{cursor:pointer}.el-pagination .btn-next,.el-pagination .btn-prev{background:50% no-repeat #fff;background-size:16px;border:1px solid #d1dbe5;cursor:pointer;margin:0;color:#97a8be}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px}.el-pagination .btn-prev{border-radius:2px 0 0 2px;border-right:0}.el-pagination .btn-next{border-radius:0 2px 2px 0;border-left:0}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:12px;line-height:22px;height:22px;min-width:22px}.el-pagination--small .el-pager li{border-radius:2px}.el-pagination__sizes{margin:0 10px 0 0}.el-pagination__sizes .el-input .el-input__inner{font-size:13px;border-color:#d1dbe5}.el-pagination__sizes .el-input .el-input__inner:hover{border-color:#20a0ff}.el-pagination__jump{margin-left:10px}.el-pagination__total{margin:0 10px}.el-pagination__rightwrapper{float:right}.el-pagination__editor{border:1px solid #d1dbe5;border-radius:2px;line-height:18px;padding:4px 2px;width:30px;text-align:center;margin:0 6px;box-sizing:border-box;transition:border .3s;-moz-appearance:textfield}.el-pager,.el-pager li{vertical-align:top;display:inline-block;margin:0}.el-pagination__editor::-webkit-inner-spin-button,.el-pagination__editor::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__editor:focus{outline:0;border-color:#20a0ff}.el-autocomplete-suggestion__wrap,.el-pager li{border:1px solid #d1dbe5;box-sizing:border-box}.el-pager{-moz-user-select:none;user-select:none;list-style:none;font-size:0;padding:0}.el-date-table,.el-pager,.el-radio{-webkit-user-select:none;-ms-user-select:none}.el-date-table,.el-radio,.el-time-panel{-moz-user-select:none}.el-pager li{padding:0 4px;border-right:0;background:#fff;font-size:13px;min-width:28px;height:28px;line-height:28px;text-align:center}.el-pager li:last-child{border-right:1px solid #d1dbe5}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:28px;color:#97a8be}.el-pager li.active+li{border-left:0;padding-left:5px}.el-pager li:hover{color:#20a0ff}.el-pager li.active{border-color:#20a0ff;background-color:#20a0ff;color:#fff;cursor:default}.el-dialog{position:absolute;left:50%;transform:translateX(-50%);background:#fff;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.3);box-sizing:border-box;margin-bottom:50px}.el-dialog--tiny{width:30%}.el-dialog--small{width:50%}.el-dialog--large{width:90%}.el-dialog--full{width:100%;top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{top:0;right:0;bottom:0;left:0;position:fixed;overflow:auto;margin:0}.el-autocomplete,.el-dropdown{display:inline-block;position:relative}.el-dialog__header{padding:20px 20px 0}.el-dialog__headerbtn{float:right;background:0 0;border:none;outline:0;padding:0;cursor:pointer;font-size:16px}.el-dialog__headerbtn .el-dialog__close{color:#bfcbd9}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:#20a0ff}.el-dialog__title{line-height:1;font-size:16px;font-weight:700;color:#1f2d3d}.el-dialog__body{padding:30px 20px;color:#48576a;font-size:14px}.el-dialog__footer{padding:10px 20px 15px;text-align:right;box-sizing:border-box}.dialog-fade-enter-active{animation:dialog-fade-in .3s}.dialog-fade-leave-active{animation:dialog-fade-out .3s}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-autocomplete-suggestion{margin:5px 0;box-shadow:0 0 6px 0 rgba(0,0,0,.04),0 2px 4px 0 rgba(0,0,0,.12)}.el-autocomplete-suggestion li{list-style:none;line-height:36px;padding:0 10px;margin:0;cursor:pointer;color:#48576a;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li:hover{background-color:#e4e8f1}.el-autocomplete-suggestion li.highlighted{background-color:#20a0ff;color:#fff}.el-autocomplete-suggestion li:active{background-color:#0082e6}.el-autocomplete-suggestion.is-loading li:hover,.el-dropdown-menu{background-color:#fff}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid #d1dbe5}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:#999}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-autocomplete-suggestion__wrap{max-height:280px;overflow:auto;background-color:#fff;padding:6px 0;border-radius:2px}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-dropdown{color:#48576a;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-right:5px;padding-left:5px}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown-menu{margin:5px 0;border:1px solid #d1dbe5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.12);padding:6px 0;z-index:10;position:absolute;top:0;left:0;min-width:100px}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 10px;margin:0;cursor:pointer}.el-dropdown-menu__item:not(.is-disabled):hover{background-color:#e4e8f1;color:#48576a}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bfcbd9;pointer-events:none}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #d1dbe5}.el-dropdown-menu__item--divided:before{content:"";height:6px;display:block;margin:0 -10px;background-color:#fff}.el-menu-item,.el-submenu__title{height:56px;line-height:56px;font-size:14px;color:#48576a;padding:0 20px;cursor:pointer;position:relative;transition:border-color .3s,background-color .3s,color .3s;box-sizing:border-box;white-space:nowrap}.el-menu{border-radius:2px;list-style:none;position:relative;margin:0;padding-left:0;background-color:#eef1f6}.el-menu:after,.el-menu:before{display:table;content:""}.el-menu li{list-style:none}.el-menu--dark{background-color:#324157}.el-menu--dark .el-menu-item,.el-menu--dark .el-submenu__title{color:#bfcbd9}.el-menu--dark .el-menu-item:hover,.el-menu--dark .el-submenu__title:hover{background-color:#48576a}.el-menu--dark .el-submenu .el-menu{background-color:#1f2d3d}.el-menu--dark .el-submenu .el-menu .el-menu-item:hover{background-color:#48576a}.el-menu--horizontal .el-menu-item{float:left;height:60px;line-height:60px;margin:0;cursor:pointer;position:relative;box-sizing:border-box;border-bottom:5px solid transparent}.el-menu--horizontal .el-menu-item a,.el-menu--horizontal .el-menu-item a:hover{color:inherit}.el-menu--horizontal .el-submenu{float:left;position:relative}.el-menu--horizontal .el-submenu>.el-menu{position:absolute;top:65px;left:0;border:1px solid #d1dbe5;padding:5px 0;background-color:#fff;z-index:100;min-width:100%;box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.el-menu--horizontal .el-submenu .el-submenu__title{height:60px;line-height:60px;border-bottom:5px solid transparent}.el-menu--horizontal .el-submenu .el-menu-item{background-color:#fff;float:none;height:36px;line-height:36px;padding:0 10px}.el-menu--horizontal .el-submenu .el-submenu__icon-arrow{position:static;vertical-align:middle;margin-left:5px;color:#97a8be;margin-top:-3px}.el-menu--horizontal .el-menu-item:hover,.el-menu--horizontal .el-submenu__title:hover{background-color:#eef1f6}.el-menu--horizontal>.el-menu-item:hover,.el-menu--horizontal>.el-submenu.is-active .el-submenu__title,.el-menu--horizontal>.el-submenu:hover .el-submenu__title{border-bottom:5px solid #20a0ff}.el-menu--horizontal.el-menu--dark .el-menu-item:hover,.el-menu--horizontal.el-menu--dark .el-submenu__title:hover{background-color:#324157}.el-menu--horizontal.el-menu--dark .el-submenu .el-menu-item:hover,.el-menu--horizontal.el-menu--dark .el-submenu .el-submenu-title:hover,.el-menu-item:hover{background-color:#d1dbe5}.el-menu--horizontal.el-menu--dark .el-submenu .el-menu-item,.el-menu--horizontal.el-menu--dark .el-submenu .el-submenu-title{color:#48576a}.el-menu--horizontal.el-menu--dark .el-submenu .el-menu-item.is-active,.el-menu-item.is-active{color:#20a0ff}.el-menu--collapse{width:64px}.el-menu--collapse>.el-menu-item [class^=el-icon-],.el-menu--collapse>.el-submenu>.el-submenu__title [class^=el-icon-]{margin:0;vertical-align:middle;width:24px;text-align:center}.el-menu--collapse>.el-menu-item .el-submenu__icon-arrow,.el-menu--collapse>.el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item span,.el-menu--collapse>.el-submenu>.el-submenu__title span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse .el-menu .el-submenu{min-width:200px}.el-menu--collapse .el-submenu{position:relative}.el-menu--collapse .el-submenu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;z-index:10}.el-menu--collapse .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{transform:none}.el-menu-item [class^=el-icon-]{margin-right:5px;width:24px;text-align:center}.el-menu-item *{vertical-align:middle}.el-menu-item:first-child{margin-left:0}.el-menu-item:last-child{margin-right:0}.el-submenu [class^=el-icon-]{vertical-align:middle;margin-right:5px;width:24px;text-align:center}.el-submenu .el-menu{background-color:#e4e8f1}.el-submenu .el-menu-item:hover,.el-submenu__title:hover{background-color:#d1dbe5}.el-submenu .el-menu-item{height:50px;line-height:50px;padding:0 45px;min-width:200px}.el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{transform:rotate(180deg)}.el-submenu.is-active .el-submenu__title{border-bottom-color:#20a0ff}.el-submenu__title{position:relative}.el-submenu__title *{vertical-align:middle}.el-submenu__icon-arrow{position:absolute;top:50%;right:20px;margin-top:-7px;transition:transform .3s;font-size:12px}.el-radio,.el-radio__inner,.el-radio__input{position:relative;display:inline-block}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding-top:15px;line-height:normal;font-size:14px;padding-left:20px;color:#97a8be}.el-radio-button__inner,.el-radio-group,.el-radio__input{line-height:1;vertical-align:middle}.horizontal-collapse-transition .el-submenu__title .el-submenu__icon-arrow{transition:.2s;opacity:0}.el-radio{color:#1f2d3d;cursor:pointer;white-space:nowrap}.el-radio+.el-radio{margin-left:15px}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0}.el-radio__input.is-focus .el-radio__inner{border-color:#20a0ff}.el-radio__input.is-checked .el-radio__inner{border-color:#20a0ff;background:#20a0ff}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-disabled .el-radio__inner{background-color:#eef1f6;border-color:#d1dbe5;cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:#eef1f6}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:#d1dbe5;border-color:#d1dbe5}.el-radio__inner,.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:#fff}.el-radio__input.is-disabled+.el-radio__label{color:#bbb;cursor:not-allowed}.el-radio__inner{border:1px solid #bfcbd9;width:18px;height:18px;border-radius:50%;cursor:pointer;box-sizing:border-box}.el-radio__inner:hover{border-color:#20a0ff}.el-radio__inner:after{width:6px;height:6px;border-radius:50%;background-color:#fff;content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s cubic-bezier(.71,-.46,.88,.6)}.el-switch__core,.el-switch__label{width:46px;height:22px;cursor:pointer}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio-button,.el-radio-button__inner{display:inline-block;position:relative}.el-radio__label{font-size:14px;padding-left:5px}.el-radio-group{display:inline-block;font-size:0}.el-radio-group .el-radio{font-size:14px}.el-radio-button:first-child .el-radio-button__inner{border-left:1px solid #bfcbd9;border-radius:4px 0 0 4px;box-shadow:none!important}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 4px 4px 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:4px}.el-radio-button__inner{white-space:nowrap;background:#fff;border:1px solid #bfcbd9;border-left:0;color:#1f2d3d;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);padding:10px 15px;font-size:14px;border-radius:0}.el-radio-button__inner:hover{color:#20a0ff}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button__orig-radio{opacity:0;outline:0;position:absolute;z-index:-1;left:-999px}.el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#fff;background-color:#20a0ff;border-color:#20a0ff;box-shadow:-1px 0 0 0 #20a0ff}.el-radio-button__orig-radio:disabled+.el-radio-button__inner{color:#bfcbd9;cursor:not-allowed;background-image:none;background-color:#eef1f6;border-color:#d1dbe5;box-shadow:none}.el-radio-button--large .el-radio-button__inner{padding:11px 19px;font-size:16px;border-radius:0}.el-radio-button--small .el-radio-button__inner{padding:7px 9px;font-size:12px;border-radius:0}.el-radio-button--mini .el-radio-button__inner{padding:4px;font-size:12px;border-radius:0}.el-switch,.el-switch__label,.el-switch__label *{font-size:14px;display:inline-block}.el-switch{position:relative;line-height:22px;height:22px;vertical-align:middle}.el-switch .label-fade-enter,.el-switch .label-fade-leave-active{opacity:0}.el-switch.is-disabled .el-switch__core{border-color:#e4e8f1!important;background:#e4e8f1!important}.el-switch.is-disabled .el-switch__core span{background-color:#fbfdff!important}.el-switch.is-disabled .el-switch__core~.el-switch__label *{color:#fbfdff!important}.el-switch.is-checked .el-switch__core{border-color:#20a0ff;background-color:#20a0ff}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:.2s;position:absolute;left:0;top:0;z-index:2}.el-switch__label *{line-height:1;top:4px;position:absolute;color:#fff}.el-switch__label--left i{left:6px}.el-switch__label--right i{right:6px}.el-switch__input{display:none}.el-switch__input.allow-focus{z-index:0;display:inline;display:initial;position:absolute;left:0;top:0;outline:0;opacity:0}.el-switch__input.allow-focus:focus+.el-switch__core{box-shadow:0 0 2px #20a0ff}.el-switch__core{margin:0;display:inline-block;position:relative;border:1px solid #bfcbd9;outline:0;border-radius:12px;box-sizing:border-box;background:#bfcbd9;transition:border-color .3s,background-color .3s;z-index:1}.el-switch__core .el-switch__button{top:0;left:0;position:absolute;border-radius:100%;transition:transform .3s;width:16px;height:16px;background-color:#fff}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-select-dropdown{position:absolute;z-index:1001;border:1px solid #d1dbe5;border-radius:2px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-sizing:border-box;margin:5px 0}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:#20a0ff;background-color:#fff}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover,.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:#e4e8f1}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{position:absolute;right:10px;font-family:element-icons;content:"\\E608";font-size:11px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:#999;font-size:14px}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select-dropdown__item{font-size:14px;padding:8px 10px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#48576a;height:36px;line-height:1.5;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.selected{color:#fff;background-color:#20a0ff}.el-select-dropdown__item.selected.hover{background-color:#1c8de0}.el-select-dropdown__item span{line-height:1.5!important}.el-select-dropdown__item.is-disabled{color:#bfcbd9;cursor:not-allowed}.el-select-dropdown__item.is-disabled:hover{background-color:#fff}.el-select-group{margin:0;padding:0}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select-group__wrap{list-style:none;margin:0;padding:0}.el-select-group__title{padding-left:10px;font-size:12px;color:#999;height:30px;line-height:30px}.el-select{display:inline-block;position:relative}.el-select:hover .el-input__inner{border-color:#8391a5}.el-select .el-input__inner{cursor:pointer;padding-right:35px}.el-select .el-input__inner:focus{border-color:#20a0ff}.el-select .el-input .el-input__icon{color:#bfcbd9;font-size:12px;transition:transform .3s;transform:translateY(-50%) rotate(180deg);line-height:16px;top:50%;cursor:pointer}.el-select .el-input .el-input__icon.is-show-close{transition:0s;width:16px;height:16px;font-size:14px;right:8px;text-align:center;transform:translateY(-50%) rotate(180deg);border-radius:100%;color:#bfcbd9}.el-select .el-input .el-input__icon.is-show-close:hover{color:#97a8be}.el-select .el-input .el-input__icon.is-reverse{transform:translateY(-50%)}.el-select .el-input.is-disabled .el-input__inner{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__inner:hover{border-color:#d1dbe5}.el-select>.el-input{display:block}.el-select .el-tag__close{margin-top:-2px}.el-select .el-tag{height:24px;line-height:24px;box-sizing:border-box;margin:3px 0 3px 6px}.el-select__input{border:none;outline:0;padding:0;margin-left:10px;color:#666;font-size:14px;vertical-align:baseline;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-mini{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:1000;right:25px;color:#bfcbd9;line-height:18px;font-size:12px}.el-select__close:hover{color:#97a8be}.el-select__tags{position:absolute;line-height:normal;white-space:normal;z-index:1;top:50%;transform:translateY(-50%)}.el-table,.el-table td,.el-table th{box-sizing:border-box;position:relative}.el-select__tag{display:inline-block;height:24px;line-height:24px;font-size:14px;border-radius:4px;color:#fff;background-color:#20a0ff}.el-select__tag .el-icon-close{font-size:12px}.el-table{overflow:hidden;width:100%;max-width:100%;background-color:#fff;border:1px solid #dfe6ec;font-size:14px;color:#1f2d3d}.el-table .el-tooltip.cell{white-space:nowrap;min-width:50px}.el-table td,.el-table th{height:40px;min-width:0;text-overflow:ellipsis;vertical-align:middle}.el-table:after,.el-table:before{content:"";position:absolute;background-color:#dfe6ec;z-index:1}.el-table td.is-right,.el-table th.is-right{text-align:right}.el-table td.is-left,.el-table th.is-left{text-align:left}.el-table td.is-center,.el-table th.is-center{text-align:center}.el-table td,.el-table th.is-leaf{border-bottom:1px solid #dfe6ec}.el-table td.gutter,.el-table th.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .cell,.el-table th>div{padding-left:18px;padding-right:18px;box-sizing:border-box;text-overflow:ellipsis}.el-table:before{left:0;bottom:0;width:100%;height:1px}.el-table:after{top:0;right:0;width:1px;height:100%}.el-table .caret-wrapper,.el-table th>.cell{position:relative;display:inline-block;vertical-align:middle}.el-table th{white-space:nowrap;overflow:hidden;background-color:#eef1f6;text-align:left}.el-table th.is-sortable{cursor:pointer}.el-table th>div{display:inline-block;line-height:40px;overflow:hidden;white-space:nowrap}.el-table td>div{box-sizing:border-box}.el-table th.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table th>.cell{word-wrap:normal;text-overflow:ellipsis;line-height:30px;width:100%;box-sizing:border-box}.el-table th>.cell.highlight{color:#20a0ff}.el-table .caret-wrapper{cursor:pointer;margin-left:5px;margin-top:-2px;width:16px;height:30px;overflow:visible;overflow:initial}.el-table .cell,.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table .sort-caret{display:inline-block;width:0;height:0;border:0;content:"";position:absolute;left:3px;z-index:2}.el-table .sort-caret.ascending,.el-table .sort-caret.descending{border-right:5px solid transparent;border-left:5px solid transparent}.el-table .sort-caret.ascending{top:9px;border-top:none;border-bottom:5px solid #97a8be}.el-table .sort-caret.descending{bottom:9px;border-top:5px solid #97a8be;border-bottom:none}.el-table .ascending .sort-caret.ascending{border-bottom-color:#48576a}.el-table .descending .sort-caret.descending{border-top-color:#48576a}.el-table td.gutter{width:0}.el-table .cell{white-space:normal;word-break:break-all;line-height:24px}.el-badge__content,.el-message__group p,.el-progress-bar__inner,.el-steps.is-horizontal,.el-tabs__nav,.el-tag,.el-time-spinner,.el-tree-node,.el-upload-list__item-name{white-space:nowrap}.el-table tr input[type=checkbox]{margin:0}.el-table tr{background-color:#fff}.el-table .hidden-columns{position:absolute;z-index:-1}.el-table__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-table__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#5e7382}.el-table__expand-column .cell{padding:0;text-align:center}.el-table__expand-icon{position:relative;cursor:pointer;color:#666;font-size:12px;transition:transform .2s ease-in-out;height:40px}.el-table__expand-icon>.el-icon{position:absolute;left:50%;top:50%;margin-left:-5px;margin-top:-5px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expanded-cell{padding:20px 50px;background-color:#fbfdff;box-shadow:inset 0 2px 0 #f4f4f4}.el-table__expanded-cell:hover{background-color:#fbfdff!important}.el-table--fit{border-right:0;border-bottom:0}.el-table--border th,.el-table__fixed-right-patch{border-bottom:1px solid #dfe6ec}.el-table--fit td.gutter,.el-table--fit th.gutter{border-right-width:1px}.el-table--border td,.el-table--border th{border-right:1px solid #dfe6ec}.el-table__fixed,.el-table__fixed-right{position:absolute;top:0;left:0;box-shadow:1px 0 8px #d3d4d6;overflow-x:hidden}.el-table__fixed-right:before,.el-table__fixed:before{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#dfe6ec;z-index:4}.el-table__fixed-right-patch{position:absolute;top:-1px;right:0;background-color:#eef1f6}.el-table__fixed-right{top:0;left:auto;right:0;box-shadow:-1px 0 8px #d3d4d6}.el-table__fixed-right .el-table__fixed-body-wrapper,.el-table__fixed-right .el-table__fixed-footer-wrapper,.el-table__fixed-right .el-table__fixed-header-wrapper{left:auto;right:0}.el-table__fixed-header-wrapper{position:absolute;left:0;top:0;z-index:3}.el-table__fixed-header-wrapper thead div{background-color:#eef1f6;color:#1f2d3d}.el-table__fixed-footer-wrapper{position:absolute;left:0;bottom:0;z-index:3}.el-table__fixed-footer-wrapper tbody td{border-top:1px solid #dfe6ec;background-color:#fbfdff;color:#1f2d3d}.el-table__fixed-body-wrapper{position:absolute;left:0;top:37px;overflow:hidden;z-index:3}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__footer-wrapper{margin-top:-1px}.el-table__footer-wrapper td{border-top:1px solid #dfe6ec}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed}.el-table__footer-wrapper thead div,.el-table__header-wrapper thead div{background-color:#eef1f6;color:#1f2d3d}.el-table__footer-wrapper tbody td,.el-table__header-wrapper tbody td{background-color:#fbfdff;color:#1f2d3d}.el-table__body-wrapper{overflow:auto;position:relative}.el-table--striped .el-table__body tr.el-table__row--striped td{background:#fafafa;background-clip:padding-box}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td{background:#edf7ff}.el-table__body tr.hover-row.current-row>td,.el-table__body tr.hover-row.el-table__row--striped.current-row>td,.el-table__body tr.hover-row.el-table__row--striped>td,.el-table__body tr.hover-row>td{background-color:#eef1f6}.el-table__body tr.current-row>td{background:#edf7ff}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:1px solid #dfe6ec;z-index:10}.el-table__column-filter-trigger{display:inline-block;line-height:34px;margin-left:5px;cursor:pointer}.el-table__column-filter-trigger i{color:#97a8be}.el-table--enable-row-transition .el-table__body td{transition:background-color .25s ease}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active,.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.el-table--enable-row-hover .el-table__body tr:hover>td{background-color:#eef1f6;background-clip:padding-box}.el-table--fluid-height .el-table__fixed,.el-table--fluid-height .el-table__fixed-right{bottom:0;overflow:hidden}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:1px solid #d1dbe5;border-radius:2px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.12);box-sizing:border-box;margin:2px 0}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:14px}.el-table-filter__list-item:hover{background-color:#e4e8f1;color:#48576a}.el-table-filter__list-item.is-active{background-color:#20a0ff;color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid #d1dbe5;padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:#8391a5;cursor:pointer;font-size:14px;padding:0 3px}.el-table-filter__bottom button:hover{color:#20a0ff}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:#bfcbd9;cursor:not-allowed}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:block;margin-bottom:8px;margin-left:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-date-table{font-size:12px;min-width:224px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table td{width:32px;height:32px;box-sizing:border-box;text-align:center;cursor:pointer}.el-date-table td.next-month,.el-date-table td.prev-month{color:#ddd}.el-date-table td.today{color:#20a0ff;position:relative}.el-date-table td.today:before{content:" ";position:absolute;top:0;right:0;width:0;height:0;border-top:.5em solid #20a0ff;border-left:.5em solid transparent}.el-month-table td .cell,.el-year-table td .cell{width:48px;height:32px;display:block;line-height:32px}.el-date-table td.available:hover{background-color:#e4e8f1}.el-date-table td.in-range{background-color:#d2ecff}.el-date-table td.in-range:hover{background-color:#afddff}.el-date-table td.current:not(.disabled),.el-date-table td.end-date,.el-date-table td.start-date{background-color:#20a0ff!important;color:#fff}.el-date-table td.disabled{background-color:#f4f4f4;opacity:1;cursor:not-allowed;color:#ccc}.el-fade-in-enter,.el-fade-in-leave-active,.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active,.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-date-table td.week{font-size:80%;color:#8391a5}.el-month-table,.el-year-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-date-table th{padding:5px;color:#8391a5;font-weight:400}.el-date-table.is-week-mode .el-date-table__row:hover{background-color:#e4e8f1}.el-date-table.is-week-mode .el-date-table__row.current{background-color:#d2ecff}.el-month-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-month-table td .cell{color:#48576a}.el-month-table td .cell:hover{background-color:#e4e8f1}.el-month-table td.disabled .cell{background-color:#f4f4f4;cursor:not-allowed;color:#ccc}.el-month-table td.current:not(.disabled) .cell{background-color:#20a0ff!important;color:#fff}.el-year-table .el-icon{color:#97a8be}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td .cell{color:#48576a}.el-year-table td .cell:hover{background-color:#e4e8f1}.el-year-table td.disabled .cell{background-color:#f4f4f4;cursor:not-allowed;color:#ccc}.el-year-table td.current:not(.disabled) .cell{background-color:#20a0ff!important;color:#fff}.el-date-range-picker{min-width:520px}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker.has-sidebar.has-time{min-width:766px}.el-date-range-picker.has-sidebar{min-width:620px}.el-date-range-picker.has-time{min-width:660px}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header button{float:left}.el-date-range-picker__header div{font-size:14px;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-right .el-date-range-picker__header button{float:right}.el-date-range-picker__content.is-right .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__content.is-left{border-right:1px solid #e4e4e4}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:#97a8be}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#fff}.el-time-range-picker{min-width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-picker-panel,.el-time-range-picker__body{border-radius:2px;border:1px solid #d1dbe5}.el-picker-panel{color:#48576a;box-shadow:0 2px 6px #ccc;background:#fff;line-height:20px;margin:5px 0}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{content:"";display:table}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid #e4e4e4;padding:4px;text-align:right;background-color:#fff;position:relative}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:#48576a;padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{background-color:#e4e8f1}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:#20a0ff}.el-picker-panel__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:#ccc;cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:#97a8be;border:0;background:0 0;cursor:pointer;outline:0;margin-top:3px}.el-date-picker__header-label.active,.el-date-picker__header-label:hover,.el-picker-panel__icon-btn:hover{color:#20a0ff}.el-picker-panel__link-btn{cursor:pointer;color:#20a0ff;text-decoration:none;padding:15px;font-size:12px}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid #e4e4e4;box-sizing:border-box;padding-top:6px;background-color:#fbfdff;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{min-width:254px}.el-date-picker .el-picker-panel__content{min-width:224px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker.has-sidebar.has-time{min-width:434px}.el-date-picker.has-sidebar{min-width:370px}.el-date-picker.has-time{min-width:324px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header-label{font-size:14px;padding:0 5px;line-height:22px;text-align:center;cursor:pointer}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px}.time-select-item.selected:not(.disabled){background-color:#20a0ff;color:#fff}.time-select-item.selected:not(.disabled):hover{background-color:#20a0ff}.time-select-item.disabled{color:#d1dbe5;cursor:not-allowed}.time-select-item:hover{background-color:#e4e8f1;cursor:pointer}.el-fade-in-enter-active,.el-fade-in-leave-active,.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active,.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active,.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{transition:transform .3s cubic-bezier(.23,1,.32,1) .1s,opacity .3s cubic-bezier(.23,1,.32,1) .1s}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:height .3s ease-in-out,padding-top .3s ease-in-out,padding-bottom .3s ease-in-out}.horizontal-collapse-transition{transition:width .3s ease-in-out,padding-left .3s ease-in-out,padding-right .3s ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}.el-date-editor{position:relative;display:inline-block}.el-date-editor .el-picker-panel{position:absolute;min-width:180px;box-sizing:border-box;box-shadow:0 2px 6px #ccc;background:#fff;z-index:10;top:41px}.el-date-editor.el-input{width:193px}.el-date-editor--daterange.el-input{width:220px}.el-date-editor--datetimerange.el-input{width:350px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33%}.el-time-spinner.has-seconds .el-time-spinner__wrapper:nth-child(2){margin-left:1%}.el-time-spinner__wrapper{max-height:190px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__list{padding:0;margin:0;list-style:none;text-align:center}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px}.el-time-spinner__item:hover:not(.disabled):not(.active){background:#e4e8f1;cursor:pointer}.el-time-spinner__item.active:not(.disabled){color:#fff}.el-time-spinner__item.disabled{color:#d1dbe5;cursor:not-allowed}.el-time-panel{margin:5px 0;border:1px solid #d1dbe5;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);border-radius:2px;position:absolute;width:180px;left:0;z-index:1000;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.el-popover,.el-tabs--border-card{box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.el-slider__button,.el-slider__button-wrapper{-webkit-user-select:none;-moz-user-select:none}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content:after,.el-time-panel__content:before{content:":";top:50%;color:#fff;position:absolute;font-size:14px;margin-top:-15px;line-height:16px;background-color:#20a0ff;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left}.el-time-panel__content:after{left:50%;margin-left:-2px}.el-time-panel__content:before{padding-left:50%;margin-right:-2px}.el-time-panel__content.has-seconds:after{left:66.66667%}.el-time-panel__content.has-seconds:before{padding-left:33.33333%}.el-time-panel__footer{border-top:1px solid #e4e4e4;padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:#8391a5}.el-time-panel__btn.confirm{font-weight:800;color:#20a0ff}.el-popover{position:absolute;background:#fff;min-width:150px;border-radius:2px;border:1px solid #d1dbe5;padding:10px;z-index:2000;font-size:12px}.el-popover .popper__arrow,.el-popover .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popover .popper__arrow{border-width:6px}.el-popover .popper__arrow:after{content:" ";border-width:6px}.el-popover[x-placement^=top]{margin-bottom:12px}.el-popover[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#d1dbe5;border-bottom-width:0}.el-popover[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popover[x-placement^=bottom]{margin-top:12px}.el-popover[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#d1dbe5}.el-popover[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popover[x-placement^=right]{margin-left:12px}.el-popover[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#d1dbe5;border-left-width:0}.el-popover[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popover[x-placement^=left]{margin-right:12px}.el-popover[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#d1dbe5}.el-popover[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-popover__title{color:#1f2d3d;font-size:13px;line-height:1;margin-bottom:9px}.v-modal-enter{animation:v-modal-in .2s ease}.v-modal-leave{animation:v-modal-out .2s ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.el-message-box{text-align:left;display:inline-block;vertical-align:middle;background-color:#fff;width:420px;border-radius:3px;font-size:16px;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box__wrapper{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center}.el-message-box__wrapper:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box__header{position:relative;padding:20px 20px 0}.el-message-box__headerbtn{position:absolute;top:19px;right:20px;background:0 0;border:none;outline:0;padding:0;cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:#999}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:#20a0ff}.el-message-box__content{padding:30px 20px;color:#48576a;font-size:14px;position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input input.invalid,.el-message-box__input input.invalid:focus{border-color:#ff4949}.el-message-box__errormsg{color:#ff4949;font-size:12px;min-height:18px;margin-top:2px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:16px;font-weight:700;height:18px;color:#333}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:1.4}.el-message-box__btns{padding:10px 20px 15px;text-align:right}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:36px!important}.el-message-box__status.el-icon-circle-check{color:#13ce66}.el-message-box__status.el-icon-information{color:#50bfff}.el-message-box__status.el-icon-warning{color:#f7ba2a}.el-message-box__status.el-icon-circle-cross{color:#ff4949}.msgbox-fade-enter-active{animation:msgbox-fade-in .3s}.msgbox-fade-leave-active{animation:msgbox-fade-out .3s}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-breadcrumb{font-size:13px;line-height:1}.el-breadcrumb__separator{margin:0 8px;color:#bfcbd9}.el-breadcrumb__item{float:left}.el-breadcrumb__item:last-child .el-breadcrumb__item__inner,.el-breadcrumb__item:last-child .el-breadcrumb__item__inner:hover,.el-breadcrumb__item:last-child .el-breadcrumb__item__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__item__inner a:hover{color:#97a8be;cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-breadcrumb__item__inner,.el-breadcrumb__item__inner a{transition:color .15s linear;color:#48576a}.el-breadcrumb__item__inner:hover,.el-breadcrumb__item__inner a:hover{color:#20a0ff;cursor:pointer}.el-form--label-left .el-form-item__label{text-align:left}.el-form--label-top .el-form-item__label{float:none;display:inline-block;text-align:left;padding:0 0 10px}.el-form--inline .el-form-item{display:inline-block;margin-right:10px;vertical-align:top}.el-form--inline .el-form-item__label{float:none;display:inline-block}.el-form--inline .el-form-item__content{display:inline-block;vertical-align:top}.el-form--inline.el-form--label-top .el-form-item__content{display:block}.el-form-item{margin-bottom:22px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item.is-error .el-input-group__append .el-input__inner,.el-form-item.is-error .el-input-group__prepend .el-input__inner,.el-form-item.is-error .el-input__inner{border-color:transparent}.el-form-item.is-error .el-input__inner,.el-form-item.is-error .el-textarea__inner{border-color:#ff4949}.el-form-item.is-required .el-form-item__label:before{content:"*";color:#ff4949;margin-right:4px}.el-form-item__label{text-align:right;vertical-align:middle;float:left;font-size:14px;color:#48576a;line-height:1;padding:11px 12px 11px 0;box-sizing:border-box}.el-form-item__content{line-height:36px;position:relative;font-size:14px}.el-form-item__error{color:#ff4949;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0}.el-tabs__header{border-bottom:1px solid #d1dbe5;padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:3px;background-color:#20a0ff;z-index:1;transition:transform .3s cubic-bezier(.645,.045,.355,1);list-style:none}.el-tabs__new-tab{float:right;border:1px solid #d3dce6;height:18px;width:18px;line-height:18px;margin:12px 0 9px 10px;border-radius:3px;text-align:center;font-size:12px;color:#d3dce6;cursor:pointer;transition:all .15s}.el-tabs__new-tab .el-icon-plus{transform:scale(.8)}.el-tabs__new-tab:hover{color:#20a0ff}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap.is-scrollable{padding:0 15px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:#8391a5}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{position:relative;transition:transform .3s;float:left}.el-tabs__item{padding:0 16px;height:42px;box-sizing:border-box;line-height:42px;display:inline-block;list-style:none;font-size:14px;color:#8391a5;position:relative}.el-tabs__item .el-icon-close{border-radius:50%;text-align:center;transition:all .3s cubic-bezier(.645,.045,.355,1);margin-left:5px}.el-tabs__item .el-icon-close:before{transform:scale(.7);display:inline-block}.el-tabs__item .el-icon-close:hover{background-color:#97a8be;color:#fff}.el-tabs__item:hover{color:#1f2d3d;cursor:pointer}.el-tabs__item.is-disabled{color:#bbb;cursor:default}.el-tabs__item.is-active{color:#20a0ff}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tag,.slideInLeft-transition,.slideInRight-transition{display:inline-block}.el-tabs--card>.el-tabs__header .el-tabs__item .el-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .el-icon-close,.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .el-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item{border:1px solid transparent;transition:all .3s cubic-bezier(.645,.045,.355,1)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-right:9px;padding-left:9px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border:1px solid #d1dbe5;border-bottom-color:#fff;border-radius:4px 4px 0 0}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-right:16px;padding-left:16px}.el-tabs--border-card{background:#fff;border:1px solid #d1dbe5}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:#eef1f6;margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all .3s cubic-bezier(.645,.045,.355,1);border:1px solid transparent;border-top:0;margin-right:-1px;margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:#fff;border-right-color:#d1dbe5;border-left-color:#d1dbe5}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active:first-child{border-left-color:#d1dbe5}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active:last-child{border-right-color:#d1dbe5}.slideInRight-enter{animation:slideInRight-enter .3s}.slideInRight-leave{position:absolute;left:0;right:0;animation:slideInRight-leave .3s}.slideInLeft-enter{animation:slideInLeft-enter .3s}.slideInLeft-leave{position:absolute;left:0;right:0;animation:slideInLeft-leave .3s}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}to{transform-origin:0 0;transform:translateX(100%);opacity:0}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(-100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}to{transform-origin:0 0;transform:translateX(-100%);opacity:0}}.el-tag{background-color:#8391a5;padding:0 5px;height:24px;line-height:22px;font-size:12px;color:#fff;border-radius:4px;box-sizing:border-box;border:1px solid transparent}.el-tag .el-icon-close{border-radius:50%;text-align:center;position:relative;cursor:pointer;font-size:12px;transform:scale(.75);height:18px;width:18px;line-height:18px;vertical-align:middle;top:-1px;right:-2px}.el-tag .el-icon-close:hover{background-color:#fff;color:#8391a5}.el-tag--gray{background-color:#e4e8f1;border-color:#e4e8f1;color:#48576a}.el-tag--gray .el-tag__close:hover{background-color:#48576a;color:#fff}.el-tag--gray.is-hit{border-color:#48576a}.el-tag--primary{background-color:rgba(32,160,255,.1);border-color:rgba(32,160,255,.2);color:#20a0ff}.el-tag--primary .el-tag__close:hover{background-color:#20a0ff;color:#fff}.el-tag--primary.is-hit{border-color:#20a0ff}.el-tag--success{background-color:rgba(18,206,102,.1);border-color:rgba(18,206,102,.2);color:#13ce66}.el-tag--success .el-tag__close:hover{background-color:#13ce66;color:#fff}.el-tag--success.is-hit{border-color:#13ce66}.el-tag--warning{background-color:rgba(247,186,41,.1);border-color:rgba(247,186,41,.2);color:#f7ba2a}.el-tag--warning .el-tag__close:hover{background-color:#f7ba2a;color:#fff}.el-tag--warning.is-hit{border-color:#f7ba2a}.el-tag--danger{background-color:rgba(255,73,73,.1);border-color:rgba(255,73,73,.2);color:#ff4949}.el-tag--danger .el-tag__close:hover{background-color:#ff4949;color:#fff}.el-tag--danger.is-hit{border-color:#ff4949}.el-tree{cursor:default;background:#fff;border:1px solid #d1dbe5}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#5e7382}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree-node__expand-icon,.el-tree-node__label,.el-tree-node__loading-icon{display:inline-block;vertical-align:middle}.el-tree-node__content{line-height:36px;height:36px;cursor:pointer}.el-tree-node__content>.el-checkbox,.el-tree-node__content>.el-tree-node__expand-icon{margin-right:8px}.el-tree-node__content>.el-checkbox{vertical-align:middle}.el-tree-node__content:hover{background:#e4e8f1}.el-tree-node__expand-icon{cursor:pointer;width:0;height:0;margin-left:10px;border:6px solid transparent;border-right-width:0;border-left-color:#97a8be;border-left-width:7px;transform:rotate(0);transition:transform .3s ease-in-out}.el-tree-node__expand-icon:hover{border-left-color:#999}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{border-color:transparent;cursor:default}.el-tree-node__label{font-size:14px}.el-tree-node__loading-icon{margin-right:4px;font-size:14px;color:#97a8be}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#edf7ff}.el-alert{width:100%;padding:8px 16px;margin:0;box-sizing:border-box;border-radius:4px;position:relative;background-color:#fff;overflow:hidden;color:#fff;opacity:1;display:table;transition:opacity .2s}.el-alert .el-alert__description{color:#fff;font-size:12px;margin:5px 0 0}.el-alert--success{background-color:#13ce66}.el-alert--info{background-color:#50bfff}.el-alert--warning{background-color:#f7ba2a}.el-alert--error{background-color:#ff4949}.el-alert__content{display:table-cell;padding:0 8px}.el-alert__icon{font-size:16px;width:16px;display:table-cell;color:#fff;vertical-align:middle}.el-alert__icon.is-big{font-size:28px;width:28px}.el-alert__title{font-size:13px;line-height:18px}.el-alert__title.is-bold{font-weight:700}.el-alert__closebtn{font-size:12px;color:#fff;opacity:1;top:12px;right:15px;position:absolute;cursor:pointer}.el-alert-fade-enter,.el-alert-fade-leave-active,.el-loading-fade-enter,.el-loading-fade-leave-active,.el-notification-fade-leave-active{opacity:0}.el-alert__closebtn.is-customed{font-style:normal;font-size:13px;top:9px}.el-notification{width:330px;padding:20px;box-sizing:border-box;border-radius:2px;position:fixed;right:16px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);transition:opacity .3s,transform .3s,right .3s,top .4s;overflow:hidden}.el-notification .el-icon-circle-check{color:#13ce66}.el-notification .el-icon-circle-cross{color:#ff4949}.el-notification .el-icon-information{color:#50bfff}.el-notification .el-icon-warning{color:#f7ba2a}.el-notification__group{margin-left:0}.el-notification__group.is-with-icon{margin-left:55px}.el-notification__title{font-weight:400;font-size:16px;color:#1f2d3d;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:10px 0 0;color:#8391a5;text-align:justify}.el-notification__icon{width:40px;height:40px;font-size:40px;float:left;position:relative;top:3px}.el-notification__closeBtn{top:20px;right:20px;position:absolute;cursor:pointer;color:#bfcbd9;font-size:14px}.el-notification__closeBtn:hover{color:#97a8be}.el-notification-fade-enter{transform:translateX(100%);right:0}.el-input-number{display:inline-block;width:180px;position:relative;line-height:normal}.el-input-number .el-input{display:block}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:82px}.el-input-number.is-without-controls .el-input__inner{padding-right:10px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:#d1dbe5;color:#d1dbe5}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:#d1dbe5;cursor:not-allowed}.el-input-number__decrease,.el-input-number__increase{height:auto;border-left:1px solid #bfcbd9;width:36px;line-height:34px;top:1px;text-align:center;color:#97a8be;cursor:pointer;position:absolute;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:#20a0ff}.el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled),.el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled){border-color:#20a0ff}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:#d1dbe5;cursor:not-allowed}.el-input-number__increase{right:0}.el-input-number__decrease{right:37px}.el-input-number--large{width:200px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{line-height:40px;width:42px;font-size:16px}.el-input-number--large .el-input-number__decrease{right:43px}.el-input-number--large .el-input__inner{padding-right:94px}.el-input-number--small{width:130px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{line-height:28px;width:30px;font-size:13px}.el-input-number--small .el-input-number__decrease{right:31px}.el-input-number--small .el-input__inner{padding-right:70px}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:12px;line-height:1.2}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow:after{content:" ";border-width:5px}.el-progress-bar__inner:after,.el-row:after,.el-row:before,.el-slider:after,.el-slider:before,.el-slider__button-wrapper:after,.el-upload-cover:after{content:""}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#1f2d3d;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-5px;border-top-color:#1f2d3d;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#1f2d3d}.el-tooltip__popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#1f2d3d}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#1f2d3d;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow:after{bottom:-5px;left:1px;border-right-color:#1f2d3d;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#1f2d3d}.el-tooltip__popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#1f2d3d}.el-tooltip__popper.is-light{background:#fff;border:1px solid #1f2d3d}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#1f2d3d}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow:after{border-top-color:#fff}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#1f2d3d}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#fff}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#1f2d3d}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow:after{border-left-color:#fff}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#1f2d3d}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow:after{border-right-color:#fff}.el-tooltip__popper.is-dark{background:#1f2d3d;color:#fff}.el-slider:after,.el-slider:before{display:table}.el-slider__button-wrapper .el-tooltip,.el-slider__button-wrapper:after{display:inline-block;vertical-align:middle}.el-slider.is-vertical{position:relative}.el-slider.is-vertical .el-slider__runway{width:4px;height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:4px;height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:-16px;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical.el-slider--with-input{padding-bottom:64px}.el-slider.is-vertical.el-slider--with-input .el-slider__input{overflow:visible;float:none;position:absolute;bottom:22px;width:36px;margin-top:15px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input__inner{text-align:center;padding-left:5px;padding-right:5px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{top:30px;margin-top:-1px;border:1px solid #bfcbd9;line-height:20px;box-sizing:border-box;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease{width:18px;right:18px;border-bottom-left-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{width:19px;border-bottom-right-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase~.el-input .el-input__inner{border-bottom-left-radius:0;border-bottom-right-radius:0}.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__increase{border-color:#8391a5}.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__increase{border-color:#20a0ff}.el-slider__runway{width:100%;height:4px;margin:16px 0;background-color:#e4e8f1;border-radius:3px;position:relative;cursor:pointer;vertical-align:middle}.el-slider__runway.show-input{margin-right:160px;width:auto}.el-slider__runway.disabled{cursor:default}.el-slider__runway.disabled .el-slider__bar,.el-slider__runway.disabled .el-slider__button{background-color:#bfcbd9}.el-slider__runway.disabled .el-slider__button-wrapper.dragging,.el-slider__runway.disabled .el-slider__button-wrapper.hover,.el-slider__runway.disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.disabled .el-slider__button.dragging,.el-slider__runway.disabled .el-slider__button.hover,.el-slider__runway.disabled .el-slider__button:hover{transform:scale(1);cursor:not-allowed}.el-slider__input{float:right;margin-top:3px}.el-slider__bar{height:4px;background-color:#20a0ff;border-top-left-radius:3px;border-bottom-left-radius:3px;position:absolute}.el-slider__button-wrapper{width:36px;height:36px;position:absolute;z-index:1001;top:-16px;transform:translateX(-50%);background-color:transparent;text-align:center;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-slider__button-wrapper:after{height:100%}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{width:12px;height:12px;background-color:#20a0ff;border-radius:50%;transition:.2s;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.5);background-color:#1c8de0}.el-slider__button.hover,.el-slider__button:hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{position:absolute;width:4px;height:4px;border-radius:100%;background-color:#bfcbd9;transform:translateX(-50%)}.el-loading-mask{position:absolute;z-index:10000;background-color:hsla(0,0%,100%,.9);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity .3s}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:-25px}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{width:50px;height:50px}.el-loading-spinner{top:50%;margin-top:-21px;width:100%;text-align:center;position:absolute}.el-col-pull-0,.el-col-pull-1,.el-col-pull-2,.el-col-pull-3,.el-col-pull-4,.el-col-pull-5,.el-col-pull-6,.el-col-pull-7,.el-col-pull-8,.el-col-pull-9,.el-col-pull-10,.el-col-pull-11,.el-col-pull-13,.el-col-pull-14,.el-col-pull-15,.el-col-pull-16,.el-col-pull-17,.el-col-pull-18,.el-col-pull-19,.el-col-pull-20,.el-col-pull-21,.el-col-pull-22,.el-col-pull-23,.el-col-pull-24,.el-col-push-0,.el-col-push-1,.el-col-push-2,.el-col-push-3,.el-col-push-4,.el-col-push-5,.el-col-push-6,.el-col-push-7,.el-col-push-8,.el-col-push-9,.el-col-push-10,.el-col-push-11,.el-col-push-12,.el-col-push-13,.el-col-push-14,.el-col-push-15,.el-col-push-16,.el-col-push-17,.el-col-push-18,.el-col-push-19,.el-col-push-20,.el-col-push-21,.el-col-push-22,.el-col-push-23,.el-col-push-24,.el-row{position:relative}.el-loading-spinner .el-loading-text{color:#20a0ff;margin:3px 0;font-size:14px}.el-loading-spinner .circular{width:42px;height:42px;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:#20a0ff;stroke-linecap:round}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-row{box-sizing:border-box}.el-row:after,.el-row:before{display:table}.el-row--flex{display:-ms-flexbox;display:flex}.el-row--flex:after,.el-row--flex:before{display:none}.el-row--flex.is-align-bottom{-ms-flex-align:end;align-items:flex-end}.el-row--flex.is-align-middle{-ms-flex-align:center;align-items:center}.el-row--flex.is-justify-space-around{-ms-flex-pack:distribute;justify-content:space-around}.el-row--flex.is-justify-space-between{-ms-flex-pack:justify;justify-content:space-between}.el-row--flex.is-justify-end{-ms-flex-pack:end;justify-content:flex-end}.el-row--flex.is-justify-center{-ms-flex-pack:center;justify-content:center}.el-col-1,.el-col-2,.el-col-3,.el-col-4,.el-col-5,.el-col-6,.el-col-7,.el-col-8,.el-col-9,.el-col-10,.el-col-11,.el-col-12,.el-col-13,.el-col-14,.el-col-15,.el-col-16,.el-col-17,.el-col-18,.el-col-19,.el-col-20,.el-col-21,.el-col-22,.el-col-23,.el-col-24{float:left;box-sizing:border-box}.el-col-0{width:0}.el-col-offset-0{margin-left:0}.el-col-pull-0{right:0}.el-col-push-0{left:0}.el-col-1{width:4.16667%}.el-col-offset-1{margin-left:4.16667%}.el-col-pull-1{right:4.16667%}.el-col-push-1{left:4.16667%}.el-col-2{width:8.33333%}.el-col-offset-2{margin-left:8.33333%}.el-col-pull-2{right:8.33333%}.el-col-push-2{left:8.33333%}.el-col-3{width:12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{right:12.5%}.el-col-push-3{left:12.5%}.el-col-4{width:16.66667%}.el-col-offset-4{margin-left:16.66667%}.el-col-pull-4{right:16.66667%}.el-col-push-4{left:16.66667%}.el-col-5{width:20.83333%}.el-col-offset-5{margin-left:20.83333%}.el-col-pull-5{right:20.83333%}.el-col-push-5{left:20.83333%}.el-col-6{width:25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{right:25%}.el-col-push-6{left:25%}.el-col-7{width:29.16667%}.el-col-offset-7{margin-left:29.16667%}.el-col-pull-7{right:29.16667%}.el-col-push-7{left:29.16667%}.el-col-8{width:33.33333%}.el-col-offset-8{margin-left:33.33333%}.el-col-pull-8{right:33.33333%}.el-col-push-8{left:33.33333%}.el-col-9{width:37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{right:37.5%}.el-col-push-9{left:37.5%}.el-col-10{width:41.66667%}.el-col-offset-10{margin-left:41.66667%}.el-col-pull-10{right:41.66667%}.el-col-push-10{left:41.66667%}.el-col-11{width:45.83333%}.el-col-offset-11{margin-left:45.83333%}.el-col-pull-11{right:45.83333%}.el-col-push-11{left:45.83333%}.el-col-12{width:50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%}.el-col-13{width:54.16667%}.el-col-offset-13{margin-left:54.16667%}.el-col-pull-13{right:54.16667%}.el-col-push-13{left:54.16667%}.el-col-14{width:58.33333%}.el-col-offset-14{margin-left:58.33333%}.el-col-pull-14{right:58.33333%}.el-col-push-14{left:58.33333%}.el-col-15{width:62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{right:62.5%}.el-col-push-15{left:62.5%}.el-col-16{width:66.66667%}.el-col-offset-16{margin-left:66.66667%}.el-col-pull-16{right:66.66667%}.el-col-push-16{left:66.66667%}.el-col-17{width:70.83333%}.el-col-offset-17{margin-left:70.83333%}.el-col-pull-17{right:70.83333%}.el-col-push-17{left:70.83333%}.el-col-18{width:75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{right:75%}.el-col-push-18{left:75%}.el-col-19{width:79.16667%}.el-col-offset-19{margin-left:79.16667%}.el-col-pull-19{right:79.16667%}.el-col-push-19{left:79.16667%}.el-col-20{width:83.33333%}.el-col-offset-20{margin-left:83.33333%}.el-col-pull-20{right:83.33333%}.el-col-push-20{left:83.33333%}.el-col-21{width:87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{right:87.5%}.el-col-push-21{left:87.5%}.el-col-22{width:91.66667%}.el-col-offset-22{margin-left:91.66667%}.el-col-pull-22{right:91.66667%}.el-col-push-22{left:91.66667%}.el-col-23{width:95.83333%}.el-col-offset-23{margin-left:95.83333%}.el-col-pull-23{right:95.83333%}.el-col-push-23{left:95.83333%}.el-col-24{width:100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{right:100%}.el-col-push-24{left:100%}@media (max-width:768px){.el-col-xs-0{width:0}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{width:4.16667%}.el-col-xs-offset-1{margin-left:4.16667%}.el-col-xs-pull-1{position:relative;right:4.16667%}.el-col-xs-push-1{position:relative;left:4.16667%}.el-col-xs-2{width:8.33333%}.el-col-xs-offset-2{margin-left:8.33333%}.el-col-xs-pull-2{position:relative;right:8.33333%}.el-col-xs-push-2{position:relative;left:8.33333%}.el-col-xs-3{width:12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{width:16.66667%}.el-col-xs-offset-4{margin-left:16.66667%}.el-col-xs-pull-4{position:relative;right:16.66667%}.el-col-xs-push-4{position:relative;left:16.66667%}.el-col-xs-5{width:20.83333%}.el-col-xs-offset-5{margin-left:20.83333%}.el-col-xs-pull-5{position:relative;right:20.83333%}.el-col-xs-push-5{position:relative;left:20.83333%}.el-col-xs-6{width:25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{width:29.16667%}.el-col-xs-offset-7{margin-left:29.16667%}.el-col-xs-pull-7{position:relative;right:29.16667%}.el-col-xs-push-7{position:relative;left:29.16667%}.el-col-xs-8{width:33.33333%}.el-col-xs-offset-8{margin-left:33.33333%}.el-col-xs-pull-8{position:relative;right:33.33333%}.el-col-xs-push-8{position:relative;left:33.33333%}.el-col-xs-9{width:37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{width:41.66667%}.el-col-xs-offset-10{margin-left:41.66667%}.el-col-xs-pull-10{position:relative;right:41.66667%}.el-col-xs-push-10{position:relative;left:41.66667%}.el-col-xs-11{width:45.83333%}.el-col-xs-offset-11{margin-left:45.83333%}.el-col-xs-pull-11{position:relative;right:45.83333%}.el-col-xs-push-11{position:relative;left:45.83333%}.el-col-xs-12{width:50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{width:54.16667%}.el-col-xs-offset-13{margin-left:54.16667%}.el-col-xs-pull-13{position:relative;right:54.16667%}.el-col-xs-push-13{position:relative;left:54.16667%}.el-col-xs-14{width:58.33333%}.el-col-xs-offset-14{margin-left:58.33333%}.el-col-xs-pull-14{position:relative;right:58.33333%}.el-col-xs-push-14{position:relative;left:58.33333%}.el-col-xs-15{width:62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{width:66.66667%}.el-col-xs-offset-16{margin-left:66.66667%}.el-col-xs-pull-16{position:relative;right:66.66667%}.el-col-xs-push-16{position:relative;left:66.66667%}.el-col-xs-17{width:70.83333%}.el-col-xs-offset-17{margin-left:70.83333%}.el-col-xs-pull-17{position:relative;right:70.83333%}.el-col-xs-push-17{position:relative;left:70.83333%}.el-col-xs-18{width:75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{width:79.16667%}.el-col-xs-offset-19{margin-left:79.16667%}.el-col-xs-pull-19{position:relative;right:79.16667%}.el-col-xs-push-19{position:relative;left:79.16667%}.el-col-xs-20{width:83.33333%}.el-col-xs-offset-20{margin-left:83.33333%}.el-col-xs-pull-20{position:relative;right:83.33333%}.el-col-xs-push-20{position:relative;left:83.33333%}.el-col-xs-21{width:87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{width:91.66667%}.el-col-xs-offset-22{margin-left:91.66667%}.el-col-xs-pull-22{position:relative;right:91.66667%}.el-col-xs-push-22{position:relative;left:91.66667%}.el-col-xs-23{width:95.83333%}.el-col-xs-offset-23{margin-left:95.83333%}.el-col-xs-pull-23{position:relative;right:95.83333%}.el-col-xs-push-23{position:relative;left:95.83333%}.el-col-xs-24{width:100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media (min-width:768px){.el-col-sm-0{width:0}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{width:4.16667%}.el-col-sm-offset-1{margin-left:4.16667%}.el-col-sm-pull-1{position:relative;right:4.16667%}.el-col-sm-push-1{position:relative;left:4.16667%}.el-col-sm-2{width:8.33333%}.el-col-sm-offset-2{margin-left:8.33333%}.el-col-sm-pull-2{position:relative;right:8.33333%}.el-col-sm-push-2{position:relative;left:8.33333%}.el-col-sm-3{width:12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{width:16.66667%}.el-col-sm-offset-4{margin-left:16.66667%}.el-col-sm-pull-4{position:relative;right:16.66667%}.el-col-sm-push-4{position:relative;left:16.66667%}.el-col-sm-5{width:20.83333%}.el-col-sm-offset-5{margin-left:20.83333%}.el-col-sm-pull-5{position:relative;right:20.83333%}.el-col-sm-push-5{position:relative;left:20.83333%}.el-col-sm-6{width:25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{width:29.16667%}.el-col-sm-offset-7{margin-left:29.16667%}.el-col-sm-pull-7{position:relative;right:29.16667%}.el-col-sm-push-7{position:relative;left:29.16667%}.el-col-sm-8{width:33.33333%}.el-col-sm-offset-8{margin-left:33.33333%}.el-col-sm-pull-8{position:relative;right:33.33333%}.el-col-sm-push-8{position:relative;left:33.33333%}.el-col-sm-9{width:37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{width:41.66667%}.el-col-sm-offset-10{margin-left:41.66667%}.el-col-sm-pull-10{position:relative;right:41.66667%}.el-col-sm-push-10{position:relative;left:41.66667%}.el-col-sm-11{width:45.83333%}.el-col-sm-offset-11{margin-left:45.83333%}.el-col-sm-pull-11{position:relative;right:45.83333%}.el-col-sm-push-11{position:relative;left:45.83333%}.el-col-sm-12{width:50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{width:54.16667%}.el-col-sm-offset-13{margin-left:54.16667%}.el-col-sm-pull-13{position:relative;right:54.16667%}.el-col-sm-push-13{position:relative;left:54.16667%}.el-col-sm-14{width:58.33333%}.el-col-sm-offset-14{margin-left:58.33333%}.el-col-sm-pull-14{position:relative;right:58.33333%}.el-col-sm-push-14{position:relative;left:58.33333%}.el-col-sm-15{width:62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{width:66.66667%}.el-col-sm-offset-16{margin-left:66.66667%}.el-col-sm-pull-16{position:relative;right:66.66667%}.el-col-sm-push-16{position:relative;left:66.66667%}.el-col-sm-17{width:70.83333%}.el-col-sm-offset-17{margin-left:70.83333%}.el-col-sm-pull-17{position:relative;right:70.83333%}.el-col-sm-push-17{position:relative;left:70.83333%}.el-col-sm-18{width:75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{width:79.16667%}.el-col-sm-offset-19{margin-left:79.16667%}.el-col-sm-pull-19{position:relative;right:79.16667%}.el-col-sm-push-19{position:relative;left:79.16667%}.el-col-sm-20{width:83.33333%}.el-col-sm-offset-20{margin-left:83.33333%}.el-col-sm-pull-20{position:relative;right:83.33333%}.el-col-sm-push-20{position:relative;left:83.33333%}.el-col-sm-21{width:87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{width:91.66667%}.el-col-sm-offset-22{margin-left:91.66667%}.el-col-sm-pull-22{position:relative;right:91.66667%}.el-col-sm-push-22{position:relative;left:91.66667%}.el-col-sm-23{width:95.83333%}.el-col-sm-offset-23{margin-left:95.83333%}.el-col-sm-pull-23{position:relative;right:95.83333%}.el-col-sm-push-23{position:relative;left:95.83333%}.el-col-sm-24{width:100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media (min-width:992px){.el-col-md-0{width:0}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{width:4.16667%}.el-col-md-offset-1{margin-left:4.16667%}.el-col-md-pull-1{position:relative;right:4.16667%}.el-col-md-push-1{position:relative;left:4.16667%}.el-col-md-2{width:8.33333%}.el-col-md-offset-2{margin-left:8.33333%}.el-col-md-pull-2{position:relative;right:8.33333%}.el-col-md-push-2{position:relative;left:8.33333%}.el-col-md-3{width:12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{width:16.66667%}.el-col-md-offset-4{margin-left:16.66667%}.el-col-md-pull-4{position:relative;right:16.66667%}.el-col-md-push-4{position:relative;left:16.66667%}.el-col-md-5{width:20.83333%}.el-col-md-offset-5{margin-left:20.83333%}.el-col-md-pull-5{position:relative;right:20.83333%}.el-col-md-push-5{position:relative;left:20.83333%}.el-col-md-6{width:25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{width:29.16667%}.el-col-md-offset-7{margin-left:29.16667%}.el-col-md-pull-7{position:relative;right:29.16667%}.el-col-md-push-7{position:relative;left:29.16667%}.el-col-md-8{width:33.33333%}.el-col-md-offset-8{margin-left:33.33333%}.el-col-md-pull-8{position:relative;right:33.33333%}.el-col-md-push-8{position:relative;left:33.33333%}.el-col-md-9{width:37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{width:41.66667%}.el-col-md-offset-10{margin-left:41.66667%}.el-col-md-pull-10{position:relative;right:41.66667%}.el-col-md-push-10{position:relative;left:41.66667%}.el-col-md-11{width:45.83333%}.el-col-md-offset-11{margin-left:45.83333%}.el-col-md-pull-11{position:relative;right:45.83333%}.el-col-md-push-11{position:relative;left:45.83333%}.el-col-md-12{width:50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{width:54.16667%}.el-col-md-offset-13{margin-left:54.16667%}.el-col-md-pull-13{position:relative;right:54.16667%}.el-col-md-push-13{position:relative;left:54.16667%}.el-col-md-14{width:58.33333%}.el-col-md-offset-14{margin-left:58.33333%}.el-col-md-pull-14{position:relative;right:58.33333%}.el-col-md-push-14{position:relative;left:58.33333%}.el-col-md-15{width:62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{width:66.66667%}.el-col-md-offset-16{margin-left:66.66667%}.el-col-md-pull-16{position:relative;right:66.66667%}.el-col-md-push-16{position:relative;left:66.66667%}.el-col-md-17{width:70.83333%}.el-col-md-offset-17{margin-left:70.83333%}.el-col-md-pull-17{position:relative;right:70.83333%}.el-col-md-push-17{position:relative;left:70.83333%}.el-col-md-18{width:75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{width:79.16667%}.el-col-md-offset-19{margin-left:79.16667%}.el-col-md-pull-19{position:relative;right:79.16667%}.el-col-md-push-19{position:relative;left:79.16667%}.el-col-md-20{width:83.33333%}.el-col-md-offset-20{margin-left:83.33333%}.el-col-md-pull-20{position:relative;right:83.33333%}.el-col-md-push-20{position:relative;left:83.33333%}.el-col-md-21{width:87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{width:91.66667%}.el-col-md-offset-22{margin-left:91.66667%}.el-col-md-pull-22{position:relative;right:91.66667%}.el-col-md-push-22{position:relative;left:91.66667%}.el-col-md-23{width:95.83333%}.el-col-md-offset-23{margin-left:95.83333%}.el-col-md-pull-23{position:relative;right:95.83333%}.el-col-md-push-23{position:relative;left:95.83333%}.el-col-md-24{width:100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media (min-width:1200px){.el-col-lg-0{width:0}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{width:4.16667%}.el-col-lg-offset-1{margin-left:4.16667%}.el-col-lg-pull-1{position:relative;right:4.16667%}.el-col-lg-push-1{position:relative;left:4.16667%}.el-col-lg-2{width:8.33333%}.el-col-lg-offset-2{margin-left:8.33333%}.el-col-lg-pull-2{position:relative;right:8.33333%}.el-col-lg-push-2{position:relative;left:8.33333%}.el-col-lg-3{width:12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{width:16.66667%}.el-col-lg-offset-4{margin-left:16.66667%}.el-col-lg-pull-4{position:relative;right:16.66667%}.el-col-lg-push-4{position:relative;left:16.66667%}.el-col-lg-5{width:20.83333%}.el-col-lg-offset-5{margin-left:20.83333%}.el-col-lg-pull-5{position:relative;right:20.83333%}.el-col-lg-push-5{position:relative;left:20.83333%}.el-col-lg-6{width:25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{width:29.16667%}.el-col-lg-offset-7{margin-left:29.16667%}.el-col-lg-pull-7{position:relative;right:29.16667%}.el-col-lg-push-7{position:relative;left:29.16667%}.el-col-lg-8{width:33.33333%}.el-col-lg-offset-8{margin-left:33.33333%}.el-col-lg-pull-8{position:relative;right:33.33333%}.el-col-lg-push-8{position:relative;left:33.33333%}.el-col-lg-9{width:37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{width:41.66667%}.el-col-lg-offset-10{margin-left:41.66667%}.el-col-lg-pull-10{position:relative;right:41.66667%}.el-col-lg-push-10{position:relative;left:41.66667%}.el-col-lg-11{width:45.83333%}.el-col-lg-offset-11{margin-left:45.83333%}.el-col-lg-pull-11{position:relative;right:45.83333%}.el-col-lg-push-11{position:relative;left:45.83333%}.el-col-lg-12{width:50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{width:54.16667%}.el-col-lg-offset-13{margin-left:54.16667%}.el-col-lg-pull-13{position:relative;right:54.16667%}.el-col-lg-push-13{position:relative;left:54.16667%}.el-col-lg-14{width:58.33333%}.el-col-lg-offset-14{margin-left:58.33333%}.el-col-lg-pull-14{position:relative;right:58.33333%}.el-col-lg-push-14{position:relative;left:58.33333%}.el-col-lg-15{width:62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{width:66.66667%}.el-col-lg-offset-16{margin-left:66.66667%}.el-col-lg-pull-16{position:relative;right:66.66667%}.el-col-lg-push-16{position:relative;left:66.66667%}.el-col-lg-17{width:70.83333%}.el-col-lg-offset-17{margin-left:70.83333%}.el-col-lg-pull-17{position:relative;right:70.83333%}.el-col-lg-push-17{position:relative;left:70.83333%}.el-col-lg-18{width:75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{width:79.16667%}.el-col-lg-offset-19{margin-left:79.16667%}.el-col-lg-pull-19{position:relative;right:79.16667%}.el-col-lg-push-19{position:relative;left:79.16667%}.el-col-lg-20{width:83.33333%}.el-col-lg-offset-20{margin-left:83.33333%}.el-col-lg-pull-20{position:relative;right:83.33333%}.el-col-lg-push-20{position:relative;left:83.33333%}.el-col-lg-21{width:87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{width:91.66667%}.el-col-lg-offset-22{margin-left:91.66667%}.el-col-lg-pull-22{position:relative;right:91.66667%}.el-col-lg-push-22{position:relative;left:91.66667%}.el-col-lg-23{width:95.83333%}.el-col-lg-offset-23{margin-left:95.83333%}.el-col-lg-pull-23{position:relative;right:95.83333%}.el-col-lg-push-23{position:relative;left:95.83333%}.el-col-lg-24{width:100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}.el-progress-bar__inner:after{display:inline-block;height:100%;vertical-align:middle}.el-upload{display:inline-block;text-align:center;cursor:pointer}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:#8391a5;margin-top:7px}.el-upload--picture-card{background-color:#fbfdff;border:1px dashed #c0ccda;border-radius:6px;box-sizing:border-box;width:148px;height:148px;cursor:pointer;line-height:146px;vertical-align:top}.el-upload--picture-card i{font-size:28px;color:#8c939d}.el-upload--picture-card:hover{border-color:#20a0ff;color:#20a0ff}.el-upload-dragger{background-color:#fff;border:1px dashed #d9d9d9;border-radius:6px;box-sizing:border-box;width:360px;height:180px;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-upload__text{color:#97a8be;font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:#20a0ff;font-style:normal}.el-upload-dragger .el-icon-upload{font-size:67px;color:#97a8be;margin:40px 0 16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:1px solid rgba(191,203,217,.2);margin-top:7px;padding-top:5px}.el-upload-dragger:hover{border-color:#20a0ff}.el-upload-dragger.is-dragover{background-color:rgba(32,159,255,.06);border:2px dashed #20a0ff}.el-upload-list{margin:0;padding:0;list-style:none}.el-upload-list.is-disabled .el-upload-list__item:hover .el-upload-list__item-status-label{display:block}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:#48576a;line-height:1.8;margin-top:5px;box-sizing:border-box;border-radius:4px;width:100%;position:relative}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;top:-13px;right:0}.el-upload-list__item:first-child{margin-top:10px}.el-upload-list__item .el-icon-upload-success{color:#13ce66}.el-upload-list__item .el-icon-close{display:none;position:absolute;top:5px;right:5px;cursor:pointer;opacity:.75;color:#48576a;transform:scale(.7)}.el-upload-list__item .el-icon-close:hover{opacity:1}.el-upload-list__item:hover{background-color:#eef1f6}.el-upload-list__item:hover .el-icon-close{display:inline-block}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:block}.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:#20a0ff;cursor:pointer}.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none}.el-upload-list__item-name{color:#48576a;display:block;margin-right:40px;overflow:hidden;padding-left:4px;text-overflow:ellipsis;transition:color .3s}.el-upload-list__item-name [class^=el-icon]{color:#97a8be;margin-right:7px;height:100%;line-height:inherit}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:#48576a;display:none}.el-upload-list__item-delete:hover{color:#20a0ff}.el-upload-list--picture-card{margin:0;display:inline;vertical-align:top}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;width:148px;height:148px;margin:0 8px 8px 0;display:inline-block}.el-upload-list--picture-card .el-upload-list__item .el-icon-check,.el-upload-list--picture-card .el-upload-list__item .el-icon-circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon-close,.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg) scale(.8)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;text-align:center;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);transition:opacity .3s}.el-upload-list--picture-card .el-upload-list__item-actions:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:15px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-block}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px 10px 10px 90px;height:92px}.el-upload-list--picture .el-upload-list__item .el-icon-check,.el-upload-list--picture .el-upload-list__item .el-icon-circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{background:0 0;box-shadow:none;top:-2px;right:-12px}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name{line-height:70px;margin-top:0}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item-thumbnail{vertical-align:middle;display:inline-block;width:70px;height:70px;float:left;position:relative;z-index:1;margin-left:-80px}.el-upload-list--picture .el-upload-list__item-name{display:block;margin-top:20px}.el-upload-list--picture .el-upload-list__item-name i{font-size:70px;line-height:1;position:absolute;left:9px;top:10px}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 1px 1px #ccc}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg) scale(.8)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-upload-cover__label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg) scale(.8);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.72);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:transform .3s cubic-bezier(.23,1,.32,1) .1s,opacity .3s cubic-bezier(.23,1,.32,1) .1s;margin-top:60px}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:#48576a}.el-progress{position:relative;line-height:1}.el-progress.is-exception .el-progress-bar__inner{background-color:#ff4949}.el-progress.is-exception .el-progress__text{color:#ff4949}.el-progress.is-success .el-progress-bar__inner{background-color:#13ce66}.el-progress.is-success .el-progress__text{color:#13ce66}.el-progress__text{font-size:14px;color:#48576a;display:inline-block;vertical-align:middle;margin-left:10px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle{display:inline-block}.el-progress--circle .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress-bar,.el-progress-bar__innerText,.el-spinner{display:inline-block;vertical-align:middle}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress-bar{padding-right:50px;width:100%;margin-right:-55px;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:#e4e8f1;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:#20a0ff;text-align:right;border-radius:100px;line-height:1}.el-progress-bar__innerText{color:#fff;font-size:12px;margin:0 5px}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}.el-time-spinner{width:100%}.el-spinner-inner{animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:#ececec;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(1turn)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-message{box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);min-width:300px;padding:10px 12px;box-sizing:border-box;border-radius:2px;position:fixed;left:50%;top:20px;transform:translateX(-50%);background-color:#fff;transition:opacity .3s,transform .4s;overflow:hidden}.el-message .el-icon-circle-check{color:#13ce66}.el-message .el-icon-circle-cross{color:#ff4949}.el-message .el-icon-information{color:#50bfff}.el-message .el-icon-warning{color:#f7ba2a}.el-message__group{margin-left:38px;position:relative;height:20px;line-height:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.el-message__group p{font-size:14px;margin:0 34px 0 0;color:#8391a5;text-align:justify}.el-step__head,.el-steps.is-horizontal.is-center{text-align:center}.el-message__group.is-with-icon{margin-left:0}.el-message__img{width:40px;height:40px;position:absolute;left:0;top:0}.el-message__icon{vertical-align:middle;margin-right:8px}.el-message__closeBtn{top:3px;right:0;position:absolute;cursor:pointer;color:#bfcbd9;font-size:14px}.el-message__closeBtn:hover{color:#97a8be}.el-message-fade-enter,.el-message-fade-leave-active{opacity:0;transform:translate(-50%,-100%)}.el-badge{position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:#ff4949;border-radius:10px;color:#fff;display:inline-block;font-size:12px;height:18px;line-height:18px;padding:0 6px;text-align:center;border:1px solid #fff}.el-badge__content.is-dot{width:8px;height:8px;padding:0;right:0;border-radius:50%}.el-badge__content.is-fixed{top:0;right:10px;position:absolute;transform:translateY(-50%) translateX(100%)}.el-rate__icon,.el-rate__item{position:relative;display:inline-block}.el-badge__content.is-fixed.is-dot{right:5px}.el-card{border:1px solid #d1dbe5;border-radius:4px;background-color:#fff;overflow:hidden;box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.el-card__header{padding:18px 20px;border-bottom:1px solid #d1dbe5;box-sizing:border-box}.el-card__body{padding:20px}.el-rate{height:20px;line-height:1}.el-rate__item{font-size:0;vertical-align:middle}.el-rate__icon{font-size:18px;margin-right:6px;color:#bfcbd9;transition:.3s}.el-rate__decimal,.el-rate__icon .path2{position:absolute;top:0;left:0}.el-rate__icon.hover{transform:scale(1.15)}.el-rate__decimal{display:inline-block;overflow:hidden}.el-rate__text{font-size:14px;vertical-align:middle}.el-steps{font-size:0}.el-steps>:last-child .el-step__line{display:none}.el-step.is-horizontal,.el-step.is-vertical .el-step__head,.el-step.is-vertical .el-step__main,.el-step__line{display:inline-block}.el-step{position:relative;vertical-align:top}.el-step:last-child .el-step__main{padding-right:0}.el-step.is-vertical .el-step__main{padding-left:10px}.el-step__line{position:absolute;border-color:inherit;background-color:#bfcbd9}.el-step__line.is-vertical{width:2px;box-sizing:border-box;top:32px;bottom:0;left:15px}.el-step__line.is-horizontal{top:15px;height:2px;left:32px;right:0}.el-step__line.is-icon.is-horizontal{right:4px}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:all .15s;box-sizing:border-box;width:0;height:0}.el-step__icon{display:block;line-height:28px}.el-step__icon>*{line-height:inherit;vertical-align:middle}.el-step__head{width:28px;height:28px;border-radius:50%;background-color:transparent;line-height:28px;font-size:28px;vertical-align:top;transition:all .15s}.el-carousel__arrow,.el-carousel__button{margin:0;transition:.3s;cursor:pointer;outline:0}.el-step__head.is-finish{color:#20a0ff;border-color:#20a0ff}.el-step__head.is-error{color:#ff4949;border-color:#ff4949}.el-step__head.is-success{color:#13ce66;border-color:#13ce66}.el-step__head.is-process,.el-step__head.is-wait{color:#bfcbd9;border-color:#bfcbd9}.el-step__head.is-text{font-size:14px;border-width:2px;border-style:solid}.el-step__head.is-text.is-finish{color:#fff;background-color:#20a0ff;border-color:#20a0ff}.el-step__head.is-text.is-error{color:#fff;background-color:#ff4949;border-color:#ff4949}.el-step__head.is-text.is-success{color:#fff;background-color:#13ce66;border-color:#13ce66}.el-step__head.is-text.is-wait{color:#bfcbd9;background-color:#fff;border-color:#bfcbd9}.el-step__head.is-text.is-process{color:#fff;background-color:#bfcbd9;border-color:#bfcbd9}.el-step__main{white-space:normal;padding-right:10px;text-align:left}.el-step__title{font-size:14px;line-height:32px;display:inline-block}.el-step__title.is-finish{font-weight:700;color:#20a0ff}.el-step__title.is-error{font-weight:700;color:#ff4949}.el-step__title.is-success{font-weight:700;color:#13ce66}.el-step__title.is-wait{font-weight:400;color:#97a8be}.el-step__title.is-process{font-weight:700;color:#48576a}.el-step__description{font-size:12px;font-weight:400;line-height:14px}.el-step__description.is-finish{color:#20a0ff}.el-step__description.is-error{color:#ff4949}.el-step__description.is-success{color:#13ce66}.el-step__description.is-wait{color:#bfcbd9}.el-step__description.is-process{color:#8391a5}.el-carousel{overflow-x:hidden;position:relative}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;padding:0;width:36px;height:36px;border-radius:50%;background-color:rgba(31,45,61,.11);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:12px}.el-carousel__arrow:hover{background-color:rgba(31,45,61,.23)}.el-carousel__arrow i{cursor:pointer}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__indicators{position:absolute;list-style:none;bottom:0;left:50%;transform:translateX(-50%);margin:0;padding:0;z-index:2}.el-carousel__indicators--outside{bottom:26px;text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:#8391a5;opacity:.24}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{width:auto;height:auto;padding:2px 18px;font-size:12px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{display:inline-block;background-color:transparent;padding:12px 4px;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:30px;height:2px;background-color:#fff;border:none;padding:0}.carousel-arrow-left-enter,.carousel-arrow-left-leave-active{transform:translateY(-50%) translateX(-10px);opacity:0}.carousel-arrow-right-enter,.carousel-arrow-right-leave-active{transform:translateY(-50%) translateX(10px);opacity:0}.el-scrollbar{overflow:hidden;position:relative}.el-scrollbar:active .el-scrollbar__bar,.el-scrollbar:focus .el-scrollbar__bar,.el-scrollbar:hover .el-scrollbar__bar{opacity:1;transition:opacity .34s ease-out}.el-scrollbar__wrap{overflow:scroll}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{width:0;height:0}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(151,168,190,.3);transition:background-color .3s}.el-scrollbar__thumb:hover{background-color:rgba(151,168,190,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px;opacity:0;transition:opacity .12s ease-out}.el-carousel__item--card,.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:0}.el-carousel__item.is-active{z-index:2}.el-carousel__item--card{width:50%}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:1}.el-carousel__item--card.is-active,.el-cascader-menus,.el-cascader .el-icon-circle-close{z-index:2}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#fff;opacity:.24;transition:.2s}.el-collapse{border:1px solid #dfe6ec;border-radius:0}.el-collapse-item:last-child{margin-bottom:-1px}.el-collapse-item.is-active>.el-collapse-item__header .el-collapse-item__header__arrow{transform:rotate(90deg)}.el-collapse-item__header{height:43px;line-height:43px;padding-left:15px;background-color:#fff;color:#48576a;cursor:pointer;border-bottom:1px solid #dfe6ec;font-size:13px}.el-collapse-item__header__arrow{margin-right:8px;transition:transform .3s}.el-collapse-item__wrap{will-change:height;background-color:#fbfdff;overflow:hidden;box-sizing:border-box;border-bottom:1px solid #dfe6ec}.el-collapse-item__content{padding:10px 15px;font-size:13px;color:#1f2d3d;line-height:1.769230769230769}.el-cascader{display:inline-block;position:relative}.el-cascader .el-input,.el-cascader .el-input__inner{cursor:pointer}.el-cascader .el-input__icon{transition:none}.el-cascader .el-icon-caret-bottom{transition:transform .3s}.el-cascader .el-icon-caret-bottom.is-reverse{transform:rotate(180deg)}.el-cascader.is-disabled .el-cascader__label{z-index:2;color:#bbb}.el-cascader__label{position:absolute;left:0;top:0;height:100%;line-height:36px;padding:0 25px 0 10px;color:#1f2d3d;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;cursor:pointer;font-size:14px;text-align:left}.el-cascader__label span{color:#97a8be}.el-cascader--large{font-size:16px}.el-cascader--large .el-cascader__label{line-height:40px}.el-cascader--small{font-size:13px}.el-cascader--small .el-cascader__label{line-height:28px}.el-cascader-menus{white-space:nowrap;background:#fff;position:absolute;margin:5px 0;border:1px solid #d1dbe5;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.el-cascader-menu{display:inline-block;vertical-align:top;height:204px;overflow:auto;border-right:1px solid #d1dbe5;background-color:#fff;box-sizing:border-box;margin:0;padding:6px 0;min-width:160px}.el-cascader-menu:last-child{border-right:0}.el-cascader-menu__item{font-size:14px;padding:8px 30px 8px 10px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#48576a;height:36px;line-height:1.5;box-sizing:border-box;cursor:pointer}.el-cascader-menu__item:hover{background-color:#e4e8f1}.el-cascader-menu__item.selected{color:#fff;background-color:#20a0ff}.el-cascader-menu__item.selected.hover{background-color:#1c8de0}.el-cascader-menu__item.is-active{color:#fff;background-color:#20a0ff}.el-cascader-menu__item.is-active:hover{background-color:#1c8de0}.el-cascader-menu__item.is-disabled{color:#bfcbd9;background-color:#fff;cursor:not-allowed}.el-cascader-menu__item.is-disabled:hover{background-color:#fff}.el-cascader-menu__item__keyword{font-weight:700}.el-cascader-menu__item--extensible:after{font-family:element-icons;content:"\\E606";font-size:12px;transform:scale(.8);color:#bfcbd9;position:absolute;right:10px;margin-top:1px}.el-cascader-menu--flexible{height:auto;max-height:180px;overflow:auto}.el-cascader-menu--flexible .el-cascader-menu__item{overflow:visible}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-hue-slider__bar{position:relative;background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.el-color-svpanel__black{background:linear-gradient(0deg,#000,transparent)}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table}.el-color-dropdown__btns{margin-top:6px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#1f2d3d}.el-color-dropdown__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-color-dropdown__btn[disabled]{color:#ccc;cursor:not-allowed}.el-color-dropdown__btn:hover{color:#20a0ff;border-color:#20a0ff}.el-color-dropdown__link-btn{cursor:pointer;color:#20a0ff;text-decoration:none;padding:15px;font-size:12px}.el-color-dropdown__link-btn:hover{color:#4db3ff}.el-color-picker{display:inline-block;position:relative;line-height:normal}.el-color-picker__trigger{display:inline-block;box-sizing:border-box;height:36px;padding:6px;border:1px solid #bfcbd9;border-radius:4px;font-size:0}.el-color-picker__color{position:relative;display:inline-block;box-sizing:border-box;border:1px solid #666;width:22px;height:22px;text-align:center}.el-color-picker__color.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-picker__color-inner{position:absolute;left:0;top:0;right:0;bottom:0}.el-color-picker__empty{font-size:12px;vertical-align:middle;color:#666;position:absolute;top:4px;left:4px}.el-color-picker__icon{display:inline-block;position:relative;top:-6px;margin-left:8px;width:12px;color:#888;font-size:12px}.el-input,.el-input__inner{width:100%;display:inline-block}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;background-color:#fff;border:1px solid #d1dbe5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.12)}.el-input{position:relative;font-size:14px}.el-input.is-disabled .el-input__inner{background-color:#eef1f6;border-color:#d1dbe5;color:#bbb;cursor:not-allowed}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:#bfcbd9}.el-input.is-disabled .el-input__inner::placeholder{color:#bfcbd9}.el-input.is-active .el-input__inner{outline:0;border-color:#20a0ff}.el-input__inner{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-image:none;border-radius:4px;border:1px solid #bfcbd9;box-sizing:border-box;color:#1f2d3d;font-size:inherit;height:36px;line-height:1;outline:0;padding:3px 10px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-button,.el-checkbox-button__inner{-webkit-appearance:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;outline:0;text-align:center}.el-input__inner:-ms-input-placeholder{color:#97a8be}.el-input__inner::placeholder{color:#97a8be}.el-input__inner:hover{border-color:#8391a5}.el-input__inner:focus{outline:0;border-color:#20a0ff}.el-input__icon{position:absolute;width:35px;height:100%;right:0;top:0;text-align:center;color:#bfcbd9;transition:all .3s}.el-input__icon:after{content:"";height:100%;width:0;display:inline-block;vertical-align:middle}.el-input__icon+.el-input__inner{padding-right:35px}.el-input__icon.is-clickable:hover{cursor:pointer;color:#8391a5}.el-input__icon.is-clickable:hover+.el-input__inner{border-color:#8391a5}.el-input--large{font-size:16px}.el-input--large .el-input__inner{height:42px}.el-input--small{font-size:13px}.el-input--small .el-input__inner{height:30px}.el-input--mini{font-size:12px}.el-input--mini .el-input__inner{height:22px}.el-input-group{line-height:normal;display:inline-table;width:100%;border-collapse:separate}.el-input-group>.el-input__inner{vertical-align:middle;display:table-cell}.el-input-group__append,.el-input-group__prepend{background-color:#fbfdff;color:#97a8be;vertical-align:middle;display:table-cell;position:relative;border:1px solid #bfcbd9;border-radius:4px;padding:0 10px;width:1px;white-space:nowrap}.el-input-group--prepend .el-input__inner,.el-input-group__append{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--append .el-input__inner,.el-input-group__prepend{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:block;margin:-10px}.el-input-group__append button.el-button,.el-input-group__append div.el-select .el-input__inner,.el-input-group__append div.el-select:hover .el-input__inner,.el-input-group__prepend button.el-button,.el-input-group__prepend div.el-select .el-input__inner,.el-input-group__prepend div.el-select:hover .el-input__inner{border-color:transparent;background-color:transparent;color:inherit;border-top:0;border-bottom:0}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-button,.el-textarea__inner{font-size:14px;box-sizing:border-box}.el-input-group__prepend{border-right:0}.el-input-group__append{border-left:0}.el-textarea{display:inline-block;width:100%;vertical-align:bottom}.el-textarea.is-disabled .el-textarea__inner{background-color:#eef1f6;border-color:#d1dbe5;color:#bbb;cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:#bfcbd9}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:#bfcbd9}.el-textarea__inner{display:block;resize:vertical;padding:5px 7px;line-height:1.5;width:100%;color:#1f2d3d;background-color:#fff;background-image:none;border:1px solid #bfcbd9;border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-textarea__inner:-ms-input-placeholder{color:#97a8be}.el-textarea__inner::placeholder{color:#97a8be}.el-textarea__inner:hover{border-color:#8391a5}.el-textarea__inner:focus{outline:0;border-color:#20a0ff}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #c4c4c4;color:#1f2d3d;margin:0;padding:10px 15px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button:focus,.el-button:hover{color:#20a0ff;border-color:#20a0ff}.el-button:active{color:#1d90e6;border-color:#1d90e6;outline:0}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:hsla(0,0%,100%,.35)}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:#bfcbd9;cursor:not-allowed;background-image:none;background-color:#eef1f6;border-color:#d1dbe5}.el-checkbox,.el-checkbox__input{cursor:pointer;display:inline-block;position:relative;white-space:nowrap}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:focus,.el-button.is-disabled.is-plain:hover{background-color:#fff;border-color:#d1dbe5;color:#bfcbd9}.el-button.is-active{color:#1d90e6;border-color:#1d90e6}.el-button.is-plain:focus,.el-button.is-plain:hover{background:#fff;border-color:#20a0ff;color:#20a0ff}.el-button.is-plain:active{background:#fff;border-color:#1d90e6;color:#1d90e6;outline:0}.el-button--primary{color:#fff;background-color:#20a0ff;border-color:#20a0ff}.el-button--primary:focus,.el-button--primary:hover{background:#4db3ff;border-color:#4db3ff;color:#fff}.el-button--primary.is-active,.el-button--primary:active{background:#1d90e6;border-color:#1d90e6;color:#fff}.el-button--primary:active{outline:0}.el-button--primary.is-plain{background:#fff;border:1px solid #bfcbd9;color:#1f2d3d}.el-button--primary.is-plain:focus,.el-button--primary.is-plain:hover{background:#fff;border-color:#20a0ff;color:#20a0ff}.el-button--primary.is-plain:active{background:#fff;border-color:#1d90e6;color:#1d90e6;outline:0}.el-button--success{color:#fff;background-color:#13ce66;border-color:#13ce66}.el-button--success:focus,.el-button--success:hover{background:#42d885;border-color:#42d885;color:#fff}.el-button--success.is-active,.el-button--success:active{background:#11b95c;border-color:#11b95c;color:#fff}.el-button--success:active{outline:0}.el-button--success.is-plain{background:#fff;border:1px solid #bfcbd9;color:#1f2d3d}.el-button--success.is-plain:focus,.el-button--success.is-plain:hover{background:#fff;border-color:#13ce66;color:#13ce66}.el-button--success.is-plain:active{background:#fff;border-color:#11b95c;color:#11b95c;outline:0}.el-button--warning{color:#fff;background-color:#f7ba2a;border-color:#f7ba2a}.el-button--warning:focus,.el-button--warning:hover{background:#f9c855;border-color:#f9c855;color:#fff}.el-button--warning.is-active,.el-button--warning:active{background:#dea726;border-color:#dea726;color:#fff}.el-button--warning:active{outline:0}.el-button--warning.is-plain{background:#fff;border:1px solid #bfcbd9;color:#1f2d3d}.el-button--warning.is-plain:focus,.el-button--warning.is-plain:hover{background:#fff;border-color:#f7ba2a;color:#f7ba2a}.el-button--warning.is-plain:active{background:#fff;border-color:#dea726;color:#dea726;outline:0}.el-button--danger{color:#fff;background-color:#ff4949;border-color:#ff4949}.el-button--danger:focus,.el-button--danger:hover{background:#ff6d6d;border-color:#ff6d6d;color:#fff}.el-button--danger.is-active,.el-button--danger:active{background:#e64242;border-color:#e64242;color:#fff}.el-button--danger:active{outline:0}.el-button--danger.is-plain{background:#fff;border:1px solid #bfcbd9;color:#1f2d3d}.el-button--danger.is-plain:focus,.el-button--danger.is-plain:hover{background:#fff;border-color:#ff4949;color:#ff4949}.el-button--danger.is-plain:active{background:#fff;border-color:#e64242;color:#e64242;outline:0}.el-button--info{color:#fff;background-color:#50bfff;border-color:#50bfff}.el-button--info:focus,.el-button--info:hover{background:#73ccff;border-color:#73ccff;color:#fff}.el-button--info.is-active,.el-button--info:active{background:#48ace6;border-color:#48ace6;color:#fff}.el-button--info:active{outline:0}.el-button--info.is-plain{background:#fff;border:1px solid #bfcbd9;color:#1f2d3d}.el-button--info.is-plain:focus,.el-button--info.is-plain:hover{background:#fff;border-color:#50bfff;color:#50bfff}.el-button--info.is-plain:active{background:#fff;border-color:#48ace6;color:#48ace6;outline:0}.el-button--large{padding:11px 19px;font-size:16px;border-radius:4px}.el-button--small{padding:7px 9px;font-size:12px;border-radius:4px}.el-button--mini{padding:4px;font-size:12px;border-radius:4px}.el-button--text{border:none;color:#20a0ff;background:0 0;padding-left:0;padding-right:0}.el-button--text:focus,.el-button--text:hover{color:#4db3ff}.el-button--text:active{color:#1d90e6}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group .el-button--primary:first-child{border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--primary:last-child{border-left-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:hsla(0,0%,100%,.5);border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--success:first-child{border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--success:last-child{border-left-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:hsla(0,0%,100%,.5);border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--warning:first-child{border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--warning:last-child{border-left-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:hsla(0,0%,100%,.5);border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--danger:first-child{border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--danger:last-child{border-left-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:hsla(0,0%,100%,.5);border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--info:first-child{border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--info:last-child{border-left-color:hsla(0,0%,100%,.5)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:hsla(0,0%,100%,.5);border-right-color:hsla(0,0%,100%,.5)}.el-button-group .el-button{float:left;position:relative}.el-button-group .el-button+.el-button{margin-left:0}.el-button-group .el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group .el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group .el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group .el-button:not(:last-child){margin-right:-1px}.el-button-group .el-button.is-active,.el-button-group .el-button:active,.el-button-group .el-button:focus,.el-button-group .el-button:hover{z-index:1}.el-checkbox{color:#1f2d3d;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.el-checkbox+.el-checkbox{margin-left:15px}.el-checkbox__input{outline:0;line-height:1;vertical-align:middle}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#20a0ff;border-color:#0190fe}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{content:"";position:absolute;display:block;border:1px solid #fff;margin-top:-1px;left:3px;right:3px;top:50%}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__input.is-focus .el-checkbox__inner{border-color:#20a0ff}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:#20a0ff;border-color:#0190fe}.el-checkbox__input.is-checked .el-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:#eef1f6;border-color:#d1dbe5;cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{cursor:not-allowed;border-color:#eef1f6}.el-checkbox__input.is-disabled .el-checkbox__inner+.el-checkbox__label{cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#d1dbe5;border-color:#d1dbe5}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:#fff}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:#d1dbe5;border-color:#d1dbe5}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{border-color:#fff}.el-checkbox__input.is-disabled+.el-checkbox__label{color:#bbb;cursor:not-allowed}.el-checkbox__inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:4px;box-sizing:border-box;width:18px;height:18px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:#20a0ff}.el-checkbox__inner:after{box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:5px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:4px;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;left:-999px}.el-checkbox-button,.el-checkbox-button__inner{position:relative;display:inline-block}.el-checkbox__label{font-size:14px;padding-left:5px}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:#fff;background-color:#20a0ff;border-color:#20a0ff;box-shadow:-1px 0 0 0 #20a0ff}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:#bfcbd9;cursor:not-allowed;background-image:none;background-color:#eef1f6;border-color:#d1dbe5;box-shadow:none}.el-checkbox-button__inner,.el-transfer-panel{background:#fff;vertical-align:middle;box-sizing:border-box}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:#20a0ff}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:1px solid #bfcbd9;border-radius:4px 0 0 4px;box-shadow:none!important}.el-checkbox-button:last-child .el-checkbox-button__inner{border-radius:0 4px 4px 0}.el-checkbox-button__inner{line-height:1;white-space:nowrap;border:1px solid #bfcbd9;border-left:0;color:#1f2d3d;margin:0;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);padding:10px 15px;font-size:14px;border-radius:0}.el-checkbox-button__inner:hover{color:#20a0ff}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;left:-999px}.el-checkbox-button--large .el-checkbox-button__inner{padding:11px 19px;font-size:16px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner{padding:7px 9px;font-size:12px;border-radius:0}.el-checkbox-button--mini .el-checkbox-button__inner{padding:4px;font-size:12px;border-radius:0}.el-transfer{font-size:14px}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 10px}.el-transfer__buttons .el-button{display:block;margin:0 auto;padding:8px 12px}.el-transfer-panel__item+.el-transfer-panel__item,.el-transfer__buttons .el-button [class*=el-icon-]+span{margin-left:0}.el-transfer__buttons .el-button:first-child{margin-bottom:6px}.el-transfer-panel{border:1px solid #d1dbe5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);display:inline-block;width:200px;position:relative}.el-transfer-panel .el-transfer-panel__header{height:36px;line-height:36px;background:#fbfdff;margin:0;padding-left:20px;border-bottom:1px solid #d1dbe5;box-sizing:border-box;color:#1f2d3d}.el-transfer-panel .el-transfer-panel__footer{height:36px;background:#fff;margin:0;padding:0;border-top:1px solid #d1dbe5;position:absolute;bottom:0;left:0;width:100%;z-index:1}.el-transfer-panel .el-transfer-panel__footer:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:#8391a5}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:32px;line-height:32px;padding:6px 20px 0;color:#8391a5}.el-transfer-panel .el-checkbox__label{padding-left:14px}.el-transfer-panel .el-checkbox__inner{width:14px;height:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner:after{height:6px;width:3px;left:4px}.el-transfer-panel__body{padding-bottom:36px;height:246px}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:246px;overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:214px}.el-transfer-panel__item{height:32px;line-height:32px;padding-left:20px;display:block}.el-transfer-panel__item .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:28px}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:9px}.el-transfer-panel__item.el-checkbox{color:#48576a}.el-transfer-panel__item:hover{background:#e4e8f1}.el-transfer-panel__filter{margin-top:10px;text-align:center;padding:0 10px;width:100%;box-sizing:border-box}.el-transfer-panel__filter .el-input__inner{height:22px;width:100%;display:inline-block;box-sizing:border-box}.el-transfer-panel__filter .el-input__icon{right:10px}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}',""])},function(t,e){t.exports="data:application/font-woff;base64,d09GRgABAAAAAB9EABAAAAAANAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABbAAAABoAAAAcdCWJ3kdERUYAAAGIAAAAHQAAACAAWAAET1MvMgAAAagAAABNAAAAYFdvXOBjbWFwAAAB+AAAAFAAAAFS5mHtc2N2dCAAAAJIAAAAGAAAACQNZf70ZnBnbQAAAmAAAAT8AAAJljD3npVnYXNwAAAHXAAAAAgAAAAIAAAAEGdseWYAAAdkAAAUPAAAIUw4RPqwaGVhZAAAG6AAAAAvAAAANgxJKwtoaGVhAAAb0AAAAB4AAAAkCQwFDGhtdHgAABvwAAAAVgAAAKyk5AaSbG9jYQAAHEgAAABYAAAAWJwQpAxtYXhwAAAcoAAAACAAAAAgAU4CJG5hbWUAABzAAAABNQAAAit/uX3PcG9zdAAAHfgAAACyAAABsMLAXoJwcmVwAAAerAAAAJUAAACVpbm+ZnicY2BgYGQAgjO2i86D6MufP7fDaABY8wj8AAB4nGNgZGBg4ANiCQYQYGJgBEItIGYB8xgABhgAXQAAAHicY2Bh4WX8wsDKwMA0k+kMAwNDP4RmfM1gzMgJFGVgY2aAAUYBBgQISHNNYTjAUPFMnbnhfwNDDHMDQwNIDUiOWQKsRIGBEQCQ/wz4AAAAeJxjYGBgZoBgGQZGBhDwAfIYwXwWBgMgzQGETEC64pnKM/X//8Eshmdq////75ZikWKG6gIDRjYGOJcRpIeJARUwMtAMMNPOaJIAAAr1C6J4nGNgQANGDEbMEv8fMjf8b4DRAEVmCF94nJ1VaXfTRhSVvGRP2pLEUETbMROnNBqZsAUDLgQpsgvp4kBoJegiJzFd+AN87Gf9mqfQntOP/LTeO14SWnpO2xxL776ZO2/TexNxjKjseSCuUUdKXveksv5UKvGzpK7rXp4o6fWSumynnpIWUStNlczF/SO5RHUuVrJJsEnG616inqs874PSSzKsKEsi2iLayrwsTVNPHD9NtTi9ZJCmgZSMgp1Ko48QqlEvkaoOZUqHXr2eipsFUjYa8aijonoQKu4czzmljTpgpHKVw1yxWW3ke0nW8/qP0kSn2Nt+nGDDY/QjV4FUjMzA9jQeh08k09FeIjORf+y4TpSFUhtcAK9qsMegSvGhuPFBthPI1HjN8XVRqTQyFee6z7LZLB2PlRDlwd/YoZQbur+Ds9OmqFZjcfvAMwY5KZQoekgWgA5Tmaf2CNo8tEBmjfqj4hzwdQgvshBlKs+ULOhQBzJndveTYtrdSddkcaBfBjJvdveS3cfDRa+O9WW7vmAKZzF6khSLixHchzLrp0y71AhHGRdzwMU8XuLWtELIyAKMSiPMUVv4ntmoa5wdY290Ho/VU2TSRfzdTH49OKlY4TjLekfcSJy7x67rwlUgiwinGu8njizqUGWw+vvSkussOGGYZ8VCxZcXvncR+S8xbj+Qd0zhUr5rihLle6YoU54xRYVyGYWlXDHFFOWqKaYpa6aYoTxrilnKc0am/X/p+334Pocz5+Gb0oNvygvwTfkBfFN+CN+UH8E3pYJvyjp8U16Eb0pt4G0pUxGqmLF0+O0lWrWhajkzuMA+D2TNiPZFbwTSMEp11Ukpdb+lVf4k+euix2Prk5K6NWlsiLu6abP4+HTGb25dMuqGnatPjCPloT109dg0oVP7zeHfzl3dKi65q4hqw6g2IpgEgDbotwLxTfNsOxDzll18/EMwAtTPqTVUU3Xt1JUaD/K8q7sYnuTA44hjoI3rrq7ASxNTVkPz4WcpMhX7g7yplWrnsHX5ZFs1hzakwtsi9pVknKbtveRVSZWV96q0Xj6fhiF6ehbXhLZs3cmkEqFRM87x8K4qRdmRlnLUP0Lnl6K+B5xxdkHrwzHuRN1BtTXsdPj5ZiNrCyaGprS9E6BkLF0VY1HlWZxjdA1rHW/cEp6upycW8Sk2mY/CSnV9lI9uI80rdllm0ahKdXSX9lnsqzb9MjtoWB1nP2mqNu7qYVuNKlI9Vb4GtAd2Vt34UA8rPuqgUVU12+jayGM0LmvGfwzIYlz560arJtPv4JZqp81izV1Bc9+YLPdOL2+9yX4r56aRpv9Woy0jl/0cjvltEeDfOSh2U9ZAvTVpiHEB2QsYLtVE5w7N3cYg4jr7H53T/W/NwiA5q22N2Tz14erpKJI7THmcZZtZ1vUozVG0k8Q+RWKrw4nBTY3hWG7KBgbk7j+s38M94K4siw+8bSSAuM/axKie6uDuHlcjNOwruQ8YmWPHuQ2wA+ASxObYtSsdALvSJecOwGfkEDwgh+AhOQS75NwE+Jwcgi/IIfiSHIKvyLkF0COHYI8cgkfkEDwmpw2wTw7BE3IIviaH4BtyWgAJOQQpOQRPySF4ZmRzUuZvqch1oO8sugH0ve0aKFtQfjByZcLOqFh23yKyDywi9dDI1Qn1iIqlDiwi9blFpP5o5NqE+hMVS/3ZIlJ/sYjUF8aXmYGU13oveUcHfwIrvqx+AAEAAf//AA94nKVaC3Bc1Xk+/zn3uXe1e3fva6V9aXe1u5JWXq32aUlIun7IGGTZlsAPGTABHEUOIQkUcAgMESUEKMnQItl0SId2mEwyzWNipqV5kpB0ChNDQzLBtBPaztQJM23iaWdo+gi1rvufu7ItOWCcZnX3nHPP8z/nf33/WRFKsoRAlX6RMCKTPrdACGGUsH2EAtApQinsErAEWwiRJVHAbiwihku1SCZSrEVyWdD/7ZVX6BdX9mbpPI4VycDZf2bfZjFikwoZIbPkIByZOm7s3u9eTYF0hDpIaJ6wEITYQQKKAtfroCoBST0YgaAkSMGDRBO0w2FQiBRUpP0kIItU0ALCXBRCoY4Z0tERCG2OTx13cMapS8yoqIH533LKGE654/KmFOYva05350XTwTzOFwLl0P9vwrm5Obf3mmtGR6tDjnPNwWsOXrd/dHZ0dmpLqzE0Uh1xKk5lJjIUi/RarmGXQCpBNkSTkGnUC416mZbAyoiWaZshmpMKJShmZOxRzJbpGDhZybRr1Wa94EhyiKVgVKo2i2UoForQqI/TUajaSYDOeNc10Xwiyv4QArFi6iHvavoMWOlcKJQOdW/wrhpIZs3Ozm5DORKMRoMd0einFUnUBCqEQ/ktM7vdHsdWRVUUJe9zYrjL+na6j6Yh2Fns2tGnJ4SO7nj0pkfqzshI3lEBFhfBiHeHvjAR6Yrgc1+XbfSE9A4l1tWRixgmHPm5FjOCycLPUIRR9h4QCF0kSdLvFgNAiQMCpS4AoWSBARXoggiCcCN2TJKk4ZiOFC3l7WYLmmWQZBXKIEuW6UClZjs2/zrwL9H+EDwfpYVG1Lvdu9WoG2YUvgf8QwMAn1KkDljSN3RT3TsGCxHQ9Zite7fzZhE4SQSLZxdRZzhdWTed7HSsAJGAgMvbyDTvMoPUw2SfRfUSFDg9KZ+eFNKTyxah0igUC/xbBOnSC8LCpen16SFnF+nZy6aniasWQmAjO0KAx1JtIT3NVpN/W/RtpMe7zacHPuj98So98PhvQQ9+F5Fvn2jzzUE+BZBj1EVeUYHzjdAF3nM936AgySCloNni54Tk1PGccnhG/FukMVzX2+Kvi8Qc9df1Js6vSz9+abp9uhg5yr5OnyQacVyT0wnT/IRmeNtkPYKH0xaeQi6TlRx4KrErAR9ppadXxOl069kExOH9jR07Gv6Za2c/wzrYZhIk0l8EREDVK9RxqG1FTKkIUIhj5+aOHU3vs5CP745fmAc+8i7jm7jhgoTj7RbQt+Jx7ym+GMy/43jcy7E1e7mI0f5eoFl1wJZwL4XWRXuh9+H0n21OTTX9ucbP/rtYZgdIlIw8p+J4cKeO96DljKDHoAt8RuQawaXQ/IXX190495xlWroQLYko14U6rqniwraJvMzRnt6Ed29yeCYBLj2U3D2cWNmX6Isk4CFe9l6ghxLDu5NYh/qMMixwnQqTAhl1N6aAMi7AAlkggigsSCAycQH9GFvw3dg0d2OzBL3YNl3XC3rBjHU6umyUCJpHM0Wr47ReBgZSdpAW6hNIUhr8BCmjH3ztW4/t3v3Yt9qZ7D2mGIr8Q1muyab8R1DFtKoobPF8D5553/Mek2Xlh4rf+AQMKUoVh+H5XaA9TUqk4VZjukIErn94QCKIBOaRYgGl/xD6UkGcJqIozPBdTVrRLrMrKpkllPeqY5th1EdJRprRTmSLnO4iWg9sinaPg16G7hDoNg2c0FKapp04oUEAS5inAxdeG2CffvTR094vMIWvnNC0QJq3pbRA4OWXA2sGrKiPnj7fd90+wqTG91Hrz8QEgfJ9UBBQjedxDwSfQ3ju63THTJgJR8d9COh40LNUU9QMAWvWB6GQDeMmMJHMNO4KE7s6gdvEhDdfxIsRWW7g8S8fxaQhSUePShJ/P7rM32X56Hqe0EnZUmqKsrSkYGbJy0uY1GV5eVnGzFKWuI6f503eza7lDNcYLsEwg9xBneGcQDFWkWIZ7aKKBCOVaIwwQdVUuX6iP6HEu8caNU2w4GEsWeYoFuBhrLIs7x4s+DU/Xy149/i9rd/ojOPJqq0kHIGRPvKkq+mAIutG0WZNTB3XUAPz6O+AyQzkeY7mJCbPKSARIk1jJpFZEYhEtiHQsbFz6kJnbPWb9hJZZjOEsYCMunt5syEg0XrMTE/ejJjdqlPK1MYRLhRylVwFs6xkVaxKDjPTdmqNXLbQVi4bkQltnpx/fHlBWfrxsrKw/Pj8mwfMoPZp2ZA/EwgaB9jy/OGjyuHl5cPK0cPzy+zLtv56IPC6bvuyB6t8SpJRMugOjLYatd5U25cFOcdom2PU5xjzOTa4oSfXZwl6ybiki81fsvU9/C8lv5t/pu/pLtfoXQLRdcXdMNyoDVWKyUSMb77jXTZfHshl/c2/iz+fgAq68/w7NJ739RX2tiKG3tlpUgnAI+/a/B57p8HL2Dkl7z/7EHsY940+jGsnAURVQHjM8QFCGfONPJdeyibrZj3CnQwq43n/vNa/fb1rexcM1OPbVj61LV6DDeteb4nFIFHZurVCvxqLeW8Obd06xGMiUkIcdxLXd0gc7cMzqyrnowW4XgOVKLKq7AuATFBp9hJUkRnUIEICEo8tqti5h3eGhffo65ba3fwKSSXS/rUDGJOnMJPZLB/K1c9JJGKxRDqRTiVj8Vg8Gsk3MhE9aJUQ9ucsrnsIEmqZarMRqSNwaOQAQzf+pT/wPvxkNVEsJFghUSjGa0+u/B19wXsZ4ULojjuKiTP/kygWE0xJFO8482E6tvLXMHbWt0ESWcSzwD/SidHjANlItpLd5Ab3ADdPQIS5sBhiWKAy0DkiBwNUUWVlrkOjqiSp0zxXpRkdJFWazOe6ugjZOb39ys2brhhtNiqDfb25gfxAV7Yrm07iAp1NoxaJlLhRwVhFSkLO5DC9vaN6YRDERr1Z82MTf48Z3C0gsvCxVbbQYO9Spr+fiT3S2fcKHcrF6B/EcqlQ2Lu3J5HM4R4XG1Mri1NwT9jWdTv8dNgOh89n9Pv3x/OFrvsB7P6uQqErlhEF6nbjxz3zwlQDLT5pTMHPtUhE874Y1PUg7H3nMpfpPXiOX8Jz7ECJGnabaNAFxDEMkS+j81wMBAbCHFd6X7y5A6VkEoFwPGYbOg4L1qUweqE1HM4Zpi/ljUiNV+DJWPAN709mR+j4yOzsSKY/6YVSfb9O9uPDFr0nVn49PDs7TH8xPHvmuWR/XwqW+1MA/cl1tkZA5Bl1w7KE9IhkDNtujEO41GJ5KLZkB11eIXvttVCDN089f8/P7ipf/+Bfeq/sgTffeP6eN+4qP3g9158LeCFGekjdHSIgcdyGIsIQ3zDcp0iID3j4PkUyGdGzmUTcMvVYJIZwTV8PGIAHrDxeNXw/E+EvjYsQgvdGur801l9KZqtZfC4CBCdLYyV8vNNOJuN4/xvr7o6twQB+PEIEypAZGLUTKrRJJWwaXSQnkZFJy8rlDdEoRcwUtFFXrh1HpwBJzJbBd4LnoNNjuuPod790550vnX7pTifjwOJjvJo34ptfe+dLd2Mn7uYvnFeaDJIJst2d1CSVoVIxtHdzAUFhvp33C2jpfasxWa1ku6M6JSOtykR1or/YPZgd7HL0dDQdkEmYhoOhEicxCaaNEX1zDO0ju+h9fXv9ovZ6AeZ/Nbhly+CvKpvplqELRfhvzDZXzlW0S3DdlsH/rGzFmqGtNH+hYeUNrOc931pf78vcSdx3iZikQj7qhnosXURbkrMpqgWGGnE0pLYPJrmDC2wigsBtIdMYN7P92Gr6ng+x59zaNrdzTTVjwvRqo8CN6F+VWrFYN/IRMnyvKaE6zlocxkAkJaBmjdMJiISEHMrfILDFFdK3Lzr69AP3D9z/wNOj0X19Zxap3JkoOYxYpaQjSeHaZ+77dF/fIw/fWyyw0khPNFxdvHn3rps/UQsbPSPe2ytvMdWOhkKGIctUD234vf3bJ2+6OZv1MR4MIZGvop9Lu4l1vtyP1hBjiESjGguVjAyGTr6y15u72M2Zcjlz5mlM4dXy5jI+xPdbBAI4338RZD/6roybEpk/3TTPoe14EJUb/MNReZTrFAqxcFE+efMkPvDquizQrl3ztNdc5WGYDJFR0N3gaJVSeah3lYdB5FKVyCIV5YOESiKVDhFJECWMeQQmCuyQbwOUNn8Z46EbaMD5y7lfa4+k87/dUC4aQ5ccykeJMhHn1g50m5c7Bq339OpIBtv4VZ0NZHhjo14u9eQSXZahSiQMIRUZt94p51iZoo6FgSHcLAzSMsUXGkG3luHuCri/8j3X0tjevWP0pzz9FEhxw0yJ4vGAo0UFdgMNJOMJWd7en6ZLqX7vKvc6Fx9W2ju28iN/WGVsr/dJqgQ1UfT+1QgI4m1Mi0ZVdR+8kiqVUt4+SG4Yn9g/Pj6wGmus2p+4j7ZEQsVp1EPGUS6qkCjSGayik0YuZ+S6eVSa8S1fpm2IIxkuNrlMxDfO8DVvKV0qpeG20hUluI0XvSVe/AEmv9HUxrnFs99nz7MRlNskKbo9NsqqgqEl5RdV/EIPyxjd0xsJScSxk2wI4VJPW1RtMQQFjL/Gqe3YURljZR4hU+HYsdeOHYMDU9/42tar6/WlF1+8+n2JK182jGjDfIk3vXZs4Iqe1uTVL/7Ncr1+9fu8//jICaOBarHqC7+M53Et+RC5m9zuqh+69YN1gV87tO+N7VWfgGKHfoJyZV2VO343Ygj81CjsOd+LW6Su1bv2OWzltxTnBlKYROEJ3n3XHbd/+LadO2KOiEa7DBgeF3n8xAMR/w0lhkf//N4Sg1AULcDISpZ4wYdIaYxgsMaxsR+/zvTfEOsjXEr7t2atcZiAcT5Vq8kLrTaiGoK2vKFtYWdYIqJPZDJhUdQ69AGjW5L0YjA4+FBFCxZ1c8BAEewIimI4k5nQIwnUb1SDRCTs+kOCHeEBsz1Eq2zeUtG0Xt0Y4GLboYmCnsm4up4QuB3yhGs/9rE/P3JkD7yoJwVmbNw4EdaLWkenFmZUUjuCAwPBDlWSY0FDEAKFSHhi43CUCUndrNo5SX7HMdqGDZo/RjMFphV0fWLjRuPCGO+tuz5/Fz4oTjXEYX+Lsn4L2exO1IbQ4+/fi6ETjYQpEZnLAQplPhADkcJvAJVbbtq+7YrR3kKiy0E4lufwhPqX6vUWvyzNc37wUJLzDdEqHnut6vPDyfO4kl/O88oqr7JMzsx236KIXUzkgyXJpixyBrWQeey2eJ/j9DXHm30OP7olzQ51hEJ6eti0YzHbHE6Hw1hha3CYB1Axy9o4fqEpyVu8J+Hc50OBWBBHh9J/qvU1J5r+zGlVZPicVHVRoqzTtFsZf3LGJFFXX2OiKIiqiFVWZ6eFk2Y2WmZMkAU98BNRFUQlEBDROgqvqyE0maytz/TsI8IonvEV5BDZ4rqpLgpCfxG9Kp6zWxMpwkoBhAVuPBfQQYnkMMF1fJMqziIXxG2Hbtm9a3Sk2UjGo3jMou1kJbmJwstFuoUSXhhc1RIeufpqgIIvj0PR1wQsO2iReOeqgy++KrVHczVoVtvqkjqnSBK/jmLD4QDTgAp1NZE+HkICmWL8sne7fgM6blnGQOwGfXvvLw0FgbsQejaVUGsCBKmqn8gdyD5wojkcqovR6LOD9vhpp6ze0Hll5w1q2Tk9bg8+G42K9dBw84Q1PKKCwtToqd49XU8FFRYCgdqs0XMyIqPTjJzsaTAbwWcYbfdTXXt6T0VVpoB6xLJqR7r7x045zfBTfZsli2atkyMjJ60staTNfU+Fm86psf7uI0FuLs+dfZHEXOviu2x0MRSl1r92e89DKdLd1rB1ORsLBIOXQd8qRln1NTpJkA1k0t1M0NNSUfJxt8hxt6Tg0UvCgTUAXOb32pOpJJC+Yk8uuSE1EHOiEVUhOujoZEUffa9GCzSaDQFi9Oo4B7DZwpgfIiZRD7mVowRx+Myj3/nRdx6dwUz86TdvvfWbPPF+aiYSvYk/w9RcRPy+0O7A+7En2l0w8Y4mjTeNZNJ4LlFMkvWxjkNypOT28l9GBY4SsBqty9yFa+m2vbcsw/HvRNfdSJNVO9zwI9aIjwEujnB+5Uc27eeiW+iVcnYolxv6p85crhOMzmy2k8fuebR1b5yPK0bJFvIBssO9ioSIqoTUfeEOlLMAlUCR5jhC5PAQTxrjeE2Tp4ksazNEk7XJ+UM3Hbxu7trZXTuuunKTa9SNBv/UdKeE0Sj/4dEnmP9q6LzHu8Fj9hRwmI0xPDo3tM2ixftEzoWyuTbHRgGtJB+S5oyD+4NqCaUsUFKDXwmqA2rQT77iV/hN+1aeCQQordJAwBuBcrcov472aCaobprYsPLDDRObeL8fDwYa8b+PNwKDP1aD8EtvkU8Ji7zpXcqeST+28kg4FgzG6D/slCiVbsEVVx5pzexs0XtxZTX40VguF/tocK0sxEmNuFy2y0kq8zBfAmmByIJ8GIVcgGmqoK8Bhn0PoG7yO38QJoEMVXpyGOxHwx0BBUUoDnGVh3B+XJlsR5uj6DRsHpv5P99CcdwHP1yQuENpthweJqP+luk4TaFeffyJZG/yCS7T7UIyCbec2lKc2Dnxuc9/7v5NmyZ2vfranlPh/pT3hU3Hjz9YLj/op/D2Eh+zlOhLnC+s/OPP9vzk1Z3upk2fwLE4Q++WU+FUP0QwAPnkV48/ODj44PGvXri33IXnYGFMsMvd0d1JBRlcSeUZnsc8IjpRBvEQYjmRymL71oP/AwKZVfhvuNscm5JSf082mbCHnCE9HNQUmVjUCqCuZ87rBwrTuVseQHDUvuyJ+N63sfrTjo3CJYTPDMXz+UaezeTrhbz37YSxG992G4l4Xv+uMWx8V88vFrrAxU5xfu3Fc++FrgL9kjXn3cdvfuCTc1Y+Hou+blmvR2Px/P8BEpxdcHicY2BkYGAA4iUXFTLj+W2+MsizMIDA5c+f2xH0/wZWPeYGIJeDgQkkCgBf1AyCAHicY2BkYGBu+N/AEMOawAAErHoMjAyoQBsAVCkDJAAAeJxjLGNQYgACxlAGBuaXDDosQDYLAyMjEDOA2YwMzEA2NxgD2awJDHYQNWiYkYERiEHsVCDWBuIGIA7FqhYTq0P1GrPYMTCBMUJOFUz7MzAAAGi0Bh0AAAAAACgAKAAoAWQBsAH4AkACjAKyAtIC8gMYA1oDuAQcBIYE1gVaBdgGVAaUBxoHvggOCDQIiAjMCUgJyAnwCioLDAtMC5QMgg00DfIOQg6qDvgPsBA0EKYAAQAAACsAdwAGAAAAAAACACYANABsAAAAigF3AAAAAHicdY9Na8JAEIbfaNQWivTY45BL9bBhE6L4cZX4D3oXSTSQGkjWj0v/QQs99dxjf2ZfN0uhBxNm55mZd2dnADzgCx6un4cBHh134CNw3CW9Ovap+XbcQ+pNHfcx8D6o9Px7Zob21pU7uMOT4y5WeHbsU/PpuId3/DjuY+i9IUMJhQJbVDgAWamKbUX4y7RhagNjfY0drwlihND0C9r/Nm1uysycFlMVMUJaHUxa1btM4lDLQtxjpKmaq1hH1Nya54WVGg0r7QORe3xJM/xzbHCkr7Cn5jqqYIQTNSGHSDBmrNhbMLNU85zYDgpru4x20cV2TyyfeQasBzbK7dlwmKxuCg4ecY2lGJNvjqbaFwcjo5MO58lYVCkzUbVMtKi1xJruIlEi6izBOhCVi2puLvsLTjBRRQAAAHicbc3LNsJxGEbh3/47JHKIQomcwlomfV8Uw5Cb6ApMzLoCF46lPfSu9a49fEpV/vb9VbL8t/vfU6oyp2KFVdZYp8YGdTbZosE2O+yyR5N9DmjR5pAjjunQ5YQep5zR55wLLrnimgE33HJXW3x+zMbDoQ2bdmQf7KMd24l9ss92al/sq32zM/u+bOiHfuiHfuiHfuiHfuiHfuiHfuiHfuiHfuqnfuqnfuqnbk5+APaSXBUAAEu4AMhSWLEBAY5ZuQgACABjILABI0QgsAMjcLAORSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhsAFFYyNisAIjRLMKCQUEK7MKCwUEK7MODwUEK1myBCgJRVJEswoNBgQrsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAAA"},function(t,e,a){t.exports=a.p+"b02bdc1b846fd65473922f5f62832108.ttf"},,function(t,e,a){var i=a(9),r=a(27),n=a(2)("species");t.exports=function(t,e){var a,o=i(t).constructor;return void 0===o||void 0==(a=i(o)[n])?e:r(a)}},function(t,e,a){var i,r,n,o=a(6),s=a(82),l=a(122),h=a(119),u=a(5),c=u.process,d=u.setImmediate,f=u.clearImmediate,C=u.MessageChannel,p=u.Dispatch,D=0,m={},v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},g=function(t){v.call(t.data)};d&&f||(d=function(t){for(var e=[],a=1;arguments.length>a;)e.push(arguments[a++]);return m[++D]=function(){s("function"==typeof t?t:Function(t),e)},i(D),D},f=function(t){delete m[t]},"process"==a(38)(c)?i=function(t){c.nextTick(o(v,t,1))}:p&&p.now?i=function(t){p.now(o(v,t,1))}:C?(r=new C,n=r.port2,r.port1.onmessage=g,i=o(n.postMessage,n,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",g,!1)):i="onreadystatechange"in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),v.call(t)}}:function(t){setTimeout(o(v,t,1),0)}),t.exports={set:d,clear:f}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,a){var i=a(9),r=a(8),n=a(36);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var a=n.f(t);return(0,a.resolve)(e),a.promise}},,function(t,e,a){(function(e){!function(a){function i(){}function r(t,e){return function(){t.apply(e,arguments)}}function n(t){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function o(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,n._immediateFn(function(){var a=1===t._state?e.onFulfilled:e.onRejected;if(null===a)return void(1===t._state?s:l)(e.promise,t._value);var i;try{i=a(t._value)}catch(t){return void l(e.promise,t)}s(e.promise,i)})}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var a=e.then;if(e instanceof n)return t._state=3,t._value=e,void h(t);if("function"==typeof a)return void c(r(a,e),t)}t._state=1,t._value=e,h(t)}catch(e){l(t,e)}}function l(t,e){t._state=2,t._value=e,h(t)}function h(t){2===t._state&&0===t._deferreds.length&&n._immediateFn(function(){t._handled||n._unhandledRejectionFn(t._value)});for(var e=0,a=t._deferreds.length;e<a;e++)o(t,t._deferreds[e]);t._deferreds=null}function u(t,e,a){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=a}function c(t,e){var a=!1;try{t(function(t){a||(a=!0,s(e,t))},function(t){a||(a=!0,l(e,t))})}catch(t){if(a)return;a=!0,l(e,t)}}var d=setTimeout;n.prototype.catch=function(t){return this.then(null,t)},n.prototype.then=function(t,e){var a=new this.constructor(i);return o(this,new u(t,e,a)),a},n.all=function(t){return new n(function(e,a){function i(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(e){i(t,e)},a)}r[t]=o,0==--n&&e(r)}catch(t){a(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);for(var n=r.length,o=0;o<r.length;o++)i(o,r[o])})},n.resolve=function(t){return t&&"object"==typeof t&&t.constructor===n?t:new n(function(e){e(t)})},n.reject=function(t){return new n(function(e,a){a(t)})},n.race=function(t){return new n(function(e,a){for(var i=0,r=t.length;i<r;i++)t[i].then(e,a)})},n._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){d(t,0)},n._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},n._setImmediateFn=function(t){n._immediateFn=t},n._setUnhandledRejectionFn=function(t){n._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=n:a.Promise||(a.Promise=n)}(this)}).call(e,a(107).setImmediate)},function(t,e,a){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function n(){}function o(){this.DataMap=new xi.default,this.Get=function(t){return this.DataMap.has(t)?this.DataMap.get(t):null},this.Add=function(t){this.DataMap.set(t.ID,t)}}function s(){this.DataMap=new xi.default([["MA",this.MA],["均线",this.MA],["BOLL",this.BOLL],["BOLL副图",this.BOLL2],["BBI",this.BBI],["DKX",this.DKX],["MIKE",this.MIKE],["PBX",this.PBX],["ENE",this.ENE],["MACD",this.MACD],["KDJ",this.KDJ],["VOL",this.VOL],["RSI",this.RSI],["BRAR",this.BRAR],["WR",this.WR],["BIAS",this.BIAS],["OBV",this.OBV],["DMI",this.DMI],["CR",this.CR],["PSY",this.PSY],["CCI",this.CCI],["DMA",this.DMA],["TRIX",this.TRIX],["VR",this.VR],["EMV",this.EMV],["ROC",this.ROC],["MTM",this.MTM],["FSL",this.FSL],["CYR",this.CYR],["MASS",this.MASS],["WAD",this.WAD],["CHO",this.CHO],["ADTM",this.ADTM],["HSL",this.HSL],["BIAS36",this.BIAS36],["BIAS_QL",this.BIAS_QL],["DPO",this.DPO],["OSC",this.OSC],["ATR",this.ATR],["NVI",this.NVI],["PVI",this.PVI],["UOS",this.UOS],["CYW",this.CYW],["LON",this.LON],["NDB",this.NDB],["SKDJ",this.SKDJ],["KD",this.KD],["FKX",this.FKX],["DKCOL",this.DKCOL],["UDL",this.UDL],["MFI",this.MFI],["LWR",this.LWR],["MARSI",this.MARSI],["CYD",this.CYD],["CYF",this.CYF],["TAPI",this.TAPI],["VMACD",this.VMACD],["QACD",this.QACD],["VPT",this.VPT],["WVAD",this.WVAD],["DBQR",this.DBQR],["JS",this.JS],["CYE",this.CYE],["QR",this.QR],["GDX",this.GDX],["JLHB",this.JLHB],["PCNT",this.PCNT],["BTX",this.BTX],["AMO",this.AMO],["VRSI",this.VRSI],["HSCOL",this.HSCOL],["DBQRV",this.DBQRV],["DBLB",this.DBLB],["ACD",this.ACD],["EXPMA",this.EXPMA],["EXPMA_S",this.EXPMA_S],["HMA",this.HMA],["LMA",this.LMA],["VMA",this.VMA],["AMV",this.AMV],["BBIBOLL",this.BBIBOLL],["ALLIGAT",this.ALLIGAT],["ZX",this.ZX],["XS",this.XS],["XS2",this.XS2],["SG-XDT",this.SG_XDT],["SG-SMX",this.SG_SMX],["SG-LB",this.SG_LB],["SG-PF",this.SG_PF],["RAD",this.RAD],["SHT",this.SHT],["ZLJC",this.ZLJC],["ZLMM",this.ZLMM],["SLZT",this.SLZT],["ADVOL",this.ADVOL],["CYC",this.CYC],["CYS",this.CYS],["CYQKL",this.CYQKL],["SCR",this.SCR],["ASR",this.ASR],["SAR",this.SAR],["TJCJL",this.TJCJL],["量比",this.VOLRate],["平均K线",this.HeikinAshi],["ADL",this.ADL],["EMPTY",this.EMPTY],["CJL2",this.CJL],["飞龙四式",this.Dragon4_Main],["飞龙四式-附图",this.Dragon4_Fig],["资金分析",this.FundsAnalysis],["融资占比",this.MarginProportion],["负面新闻",this.NewsNegative],["涨跌趋势",this.UpDownAnalyze],["北上资金",this.HK2SHSZ],["股东人数",this.ShareHolder],["Zealink-资金吸筹",this.Zealink_Index1],["Zealink-牛熊区间",this.Zealink_Index2],["Zealink-持仓信号",this.Zealink_Index3],["Zealink-增减持",this.Zealink_Index4],["Zealink-大宗交易",this.Zealink_Index5],["Zealink-信托持股",this.Zealink_Index6],["Zealink-官网新闻",this.Zealink_Index7],["Zealink-高管要闻",this.Zealink_Index8],["Zealink-股权质押",this.Zealink_Index9],["Zealink-操盘BS点",this.Zealink_Index10],["Zealink-操盘BS点2",this.Zealink_Index11],["放心股-操盘BS点",this.FXG_BSPoint],["放心股-涨停多空线",this.FXG_INDEX],["放心股-涨停吸筹区",this.FXG_INDEX2],["放心股-量能黄金点",this.FXG_INDEX3],["五彩K线-十字星",this.COLOR_KSTAR1],["五彩K线-早晨之星",this.COLOR_KSTAR2],["五彩K线-黄昏之星",this.COLOR_KSTAR3],["五彩K线-长十字",this.COLOR_SHI1],["五彩K线-身怀六甲",this.COLOR_K220],["五彩K线-三个白武士",this.COLOR_K300],["五彩K线-三只乌鸦",this.COLOR_K310],["五彩K线-光头阳线",this.COLOR_K380],["五彩K线-光脚阴线",this.COLOR_K390],["五彩K线-垂死十字",this.COLOR_K134],["五彩K线-早晨十字星",this.COLOR_K140],["五彩K线-黄昏十字星",this.COLOR_K150],["五彩K线-射击之星",this.COLOR_K160],["五彩K线-倒转锤头",this.COLOR_K165],["五彩K线-锤头",this.COLOR_K170],["五彩K线-吊颈",this.COLOR_K180],["五彩K线-穿头破脚",this.COLOR_K190],["五彩K线-出水芙蓉",this.COLOR_CSFR],["五彩K线-乌云盖顶",this.COLOR_WYGD],["五彩K线-曙光初现",this.COLOR_SGCJ],["五彩K线-十字胎",this.COLOR_SZTAI],["五彩K线-剑",this.COLOR_SWORD],["五彩K线-平顶",this.COLOR_PINGDING],["五彩K线-平底",this.COLOR_PINGDI],["五彩K线-大阳烛",this.COLOR_DAYANZHU],["五彩K线-大阴烛",this.COLOR_DAYINGZHU],["五彩K线-好友反攻",this.COLOR_HYFG],["五彩K线-跳空缺口",this.COLOR_TKQK],["五彩K线-双飞乌鸦",this.COLOR_SFWY],["五彩K线-上升三部曲",this.COLOR_SSSBQ],["五彩K线-下跌三部曲",this.COLOR_XDSBQ],["五彩K线-长下影",this.COLOR_CHXY],["五彩K线-长上影",this.COLOR_CHSY],["五彩K线-分离",this.COLOR_FENLI],["交易系统-BIAS",this.TRADE_BIAS],["交易系统-CCI",this.TRADE_CCI],["交易系统-DMI",this.TRADE_DMI],["交易系统-KD",this.TRADE_KD],["交易系统-BOLL",this.TRADE_BOLL],["交易系统-KDJ",this.TRADE_KDJ],["交易系统-MA",this.TRADE_MA],["交易系统-MACD",this.TRADE_MACD],["交易系统-MTM",this.TRADE_MTM],["交易系统-PSY",this.TRADE_PSY],["交易系统-ROC",this.TRADE_ROC],["交易系统-RSI",this.TRADE_RSI],["交易系统-VR",this.TRADE_VR],["交易系统-DPSJ",this.TRADE_DPSJ],["TEST",this.TEST]])}function l(t){this.DivElement=t,this.DivToolElement=null,this.JSChartContainer,this.CanvasElement=document.createElement("canvas"),this.CanvasElement.className="jschart-drawing",this.CanvasElement.id=f(),this.CanvasElement.setAttribute("tabindex",0),this.CanvasElement.style&&(this.CanvasElement.style.outline="none"),t.hasChildNodes("canvas")||t.appendChild(this.CanvasElement),this.ModifyIndexDialog=new Sa(t),this.ChangeIndexDialog=new Ia(t),this.MinuteDialog=new xa(t),this.OnSize=function(){var t=parseInt(this.DivElement.style.height.replace("px",""));this.ToolElement&&(t-=this.ToolElement.style.height.replace("px","")),this.CanvasElement.height=t,this.CanvasElement.width=parseInt(this.DivElement.style.width.replace("px","")),this.CanvasElement.style.width=this.CanvasElement.width+"px",this.CanvasElement.style.height=this.CanvasElement.height+"px";var e=u();this.CanvasElement.height*=e,this.CanvasElement.width*=e,bi.Chart.Log("[JSChart::OnSize] devicePixelRatio="+window.devicePixelRatio+", height="+this.CanvasElement.height+", width="+this.CanvasElement.width),this.JSChartContainer&&this.JSChartContainer.Frame&&this.JSChartContainer.Frame.SetSizeChage(!0),this.JSChartContainer&&this.JSChartContainer.Draw()},this.AdjustChartBorder=function(t){var e=u();t.Frame.ChartBorder.Left*=e,t.Frame.ChartBorder.Right*=e,t.Frame.ChartBorder.Top*=e,t.Frame.ChartBorder.Bottom*=e},this.AdjustTitleHeight=function(t){var e=u();for(var a in t.Frame.SubFrame)t.Frame.SubFrame[a].Frame.ChartBorder.TitleHeight*=e;t.ChartCorssCursor.TextHeight*=e},this.CreateKLineChartContainer=function(t){var e=null;if(e="历史K线图横屏"===t.Type?new Ue(this.CanvasElement):new ke(this.CanvasElement),t.NetworkFilter&&(e.NetworkFilter=t.NetworkFilter),e.ModifyIndexDialog=this.ModifyIndexDialog,e.ChangeIndexDialog=this.ChangeIndexDialog,e.MinuteDialog=this.MinuteDialog,1==t.IsShowRightMenu&&(e.RightMenu=new Ea(this.DivElement)),t.ScriptError&&(e.ScriptErrorCallback=t.ScriptError),e.SelectRectRightMenu=new Fa(this.DivElement),1==t.EnableScrollUpDown&&(e.EnableScrollUpDown=t.EnableScrollUpDown),1==t.DisableMouse&&(e.DisableMouse=t.DisableMouse),t.TouchMoveMinAngle&&(e.TouchMoveMinAngle=t.TouchMoveMinAngle),t.KLine&&(t.KLine.DragMode>=0&&(e.DragMode=t.KLine.DragMode),t.KLine.Right>=0&&(e.Right=t.KLine.Right),t.KLine.Period>=0&&(e.Period=t.KLine.Period),t.KLine.MaxReqeustDataCount>0&&(e.MaxReqeustDataCount=t.KLine.MaxReqeustDataCount),t.KLine.Info&&t.KLine.Info.length>0&&e.SetKLineInfo(t.KLine.Info,!1),t.KLine.IndexTreeApiUrl&&(e.ChangeIndexDialog.IndexTreeApiUrl=t.KLine.IndexTreeApiUrl),0==t.KLine.KLineDoubleClick&&(e.MinuteDialog=this.MinuteDialog=null),null!=t.KLine.IndexTreeApiUrl&&(e.ChangeIndexDialog.IndexTreeApiUrl=t.KLine.IndexTreeApiUrl),0==t.KLine.IsShowTooltip&&(e.IsShowTooltip=!1),t.KLine.MaxRequestMinuteDayCount>0&&(e.MaxRequestMinuteDayCount=t.KLine.MaxRequestMinuteDayCount),t.KLine.DrawType&&(e.KLineDrawType=t.KLine.DrawType),t.KLine.FirstShowDate>19910101&&(e.CustomShow={Date:t.KLine.FirstShowDate,PageSize:t.KLine.PageSize}),t.KLine.RightSpaceCount>0&&(e.RightSpaceCount=t.KLine.RightSpaceCount),t.KLine.ZoomType>0&&(e.ZoomType=t.KLine.ZoomType)),t.Page&&(t.Page.Day&&1==t.Page.Day.Enable&&(e.Page.Day.Enable=!0),t.Page.Minute&&1==t.Page.Minute.Enable&&(e.Page.Minute.Enable=!0)),t.DragDownload&&(t.DragDownload.Day&&1==t.DragDownload.Day.Enable&&(e.DragDownload.Day.Enable=!0),t.DragDownload.Minute&&1==t.DragDownload.Minute.Enable&&(e.DragDownload.Minute.Enable=!0)),t.Language&&("CN"===t.Language?e.LanguageID=Ki.LANGUAGE_CHINESE_ID:"EN"===t.Language&&(e.LanguageID=Ki.LANGUAGE_ENGLISH_ID)),t.SourceDatatLimit&&e.SetSourceDatatLimit(t.SourceDatatLimit),t.DrawPicture&&t.DrawPicture.StorageKey&&e.ChartDrawStorage&&e.ChartDrawStorage.Load(t.DrawPicture.StorageKey),t.DrawTool&&t.DrawTool.StorageKey&&e.ChartDrawStorage&&e.ChartDrawStorage.Load(t.DrawTool.StorageKey),t.StepPixel>0&&(e.StepPixel=t.StepPixel),t.ZoomStepPixel>0&&(e.ZoomStepPixel=t.ZoomStepPixel),1==t.IsApiPeriod&&(e.IsApiPeriod=t.IsApiPeriod),!t.Windows||t.Windows.length<=0)return null;if(e.Create(t.Windows.length),t.Border&&(Ht.IsNumber(t.Border.Left)?e.Frame.ChartBorder.Left=t.Border.Left:t.Border.Left=e.Frame.ChartBorder.Left,Ht.IsNumber(t.Border.Right)?e.Frame.ChartBorder.Right=t.Border.Right:t.Border.Right=e.Frame.ChartBorder.Right,Ht.IsNumber(t.Border.Top)?e.Frame.ChartBorder.Top=t.Border.Top:t.Border.Top=e.Frame.ChartBorder.Top,Ht.IsNumber(t.Border.Bottom)?e.Frame.ChartBorder.Bottom=t.Border.Bottom:t.Border.Bottom=e.Frame.ChartBorder.Bottom),this.AdjustChartBorder(e),t.KLine&&t.KLine.PageSize>0){var a=e.GetMaxMinPageSize();a.Max>10&&a.Max<t.KLine.PageSize?e.PageSize=a.Max:a.Min>10&&a.Min>t.KLine.PageSize?e.PageSize=a.Min:e.PageSize=t.KLine.PageSize}if(!0===t.IsCorssOnlyDrawKLine&&(e.ChartCorssCursor.IsOnlyDrawKLine=t.IsCorssOnlyDrawKLine),!0===t.CorssCursorTouchEnd&&(e.CorssCursorTouchEnd=t.CorssCursorTouchEnd),1==t.IsClickShowCorssCursor&&(e.IsClickShowCorssCursor=t.IsClickShowCorssCursor),t.CorssCursorInfo&&(isNaN(t.CorssCursorInfo.Left)||(e.ChartCorssCursor.ShowTextMode.Left=t.CorssCursorInfo.Left),isNaN(t.CorssCursorInfo.Right)||(e.ChartCorssCursor.ShowTextMode.Right=t.CorssCursorInfo.Right),isNaN(t.CorssCursorInfo.Bottom)||(e.ChartCorssCursor.ShowTextMode.Bottom=t.CorssCursorInfo.Bottom),!1===t.CorssCursorInfo.IsShowCorss&&(e.ChartCorssCursor.IsShowCorss=t.CorssCursorInfo.IsShowCorss),1==t.CorssCursorInfo.IsShowClose&&(e.ChartCorssCursor.IsShowClose=t.CorssCursorInfo.IsShowClose),t.CorssCursorInfo.PressTime&&(e.PressTime=t.CorssCursorInfo.PressTime),t.CorssCursorInfo.HPenType>0&&(e.ChartCorssCursor.HPenType=t.CorssCursorInfo.HPenType),t.CorssCursorInfo.VPenType>0&&(e.ChartCorssCursor.VPenType=t.CorssCursorInfo.VPenType)),t.CorssCursor={},t.CorssCursor.TitleHeight=e.ChartCorssCursor.TextHeight,t.SplashTitle&&(e.ChartSplashPaint.SplashTitle=t.SplashTitle),t.Frame)for(var i in t.Frame){var r=t.Frame[i];e.Frame.SubFrame[i]&&(r.SplitCount&&(e.Frame.SubFrame[i].Frame.YSplitOperator.SplitCount=r.SplitCount),r.StringFormat&&(e.Frame.SubFrame[i].Frame.YSplitOperator.StringFormat=r.StringFormat),Ht.IsNumber(r.FloatPrecision)&&(e.Frame.SubFrame[i].Frame.YSplitOperator.FloatPrecision=r.FloatPrecision),r.Custom&&(e.Frame.SubFrame[i].Frame.YSplitOperator.Custom=r.Custom),Ht.IsNumber(r.SplitType)&&(e.Frame.SubFrame[i].Frame.YSplitOperator.SplitType=r.SplitType),isNaN(r.Height)||(e.Frame.SubFrame[i].Height=r.Height),!1!==r.IsShowLeftText&&!0!==r.IsShowLeftText||(e.Frame.SubFrame[i].Frame.IsShowYText[0]=r.IsShowLeftText,e.Frame.SubFrame[i].Frame.YSplitOperator.IsShowLeftText=r.IsShowLeftText),!1!==r.IsShowRightText&&!0!==r.IsShowRightText||(e.Frame.SubFrame[i].Frame.IsShowYText[1]=r.IsShowRightText,e.Frame.SubFrame[i].Frame.YSplitOperator.IsShowRightText=r.IsShowRightText),r.TopSpace>=0&&(e.Frame.SubFrame[i].Frame.ChartBorder.TopSpace=r.TopSpace),r.BottomSpace>=0&&(e.Frame.SubFrame[i].Frame.ChartBorder.BottomSpace=r.BottomSpace),r.RightTextPosition>0&&(e.Frame.SubFrame[i].Frame.YTextPosition[1]=r.RightTextPosition),r.LeftTextPosition>0&&(e.Frame.SubFrame[i].Frame.YTextPosition[0]=r.LeftTextPosition))}if(t.KLine&&(0==t.KLine.ShowKLine&&(e.ChartPaint[0].IsShow=!1),t.KLine.InfoPosition>0&&(e.ChartPaint[0].InfoPosition=t.KLine.InfoPosition),0==t.KLine.IsShowMaxMinPrice&&(e.ChartPaint[0].IsShowMaxMinPrice=t.KLine.IsShowMaxMinPrice)),t.KLineTitle&&(0==t.KLineTitle.IsShowName&&(e.TitlePaint[0].IsShowName=!1),0==t.KLineTitle.IsShowSettingInfo&&(e.TitlePaint[0].IsShowSettingInfo=!1),0==t.KLineTitle.IsShow&&(e.TitlePaint[0].IsShow=!1)),t.Overlay)for(var i in t.Overlay){var r=t.Overlay[i];e.OverlaySymbol(r.Symbol,r)}if(t.ExtendChart)for(var i in t.ExtendChart){var r=t.ExtendChart[i];e.CreateExtendChart(r.Name,r)}var n=new s;if(t.ColorIndex){var r=t.ColorIndex,o=n.Get(r.Index);o&&(o.ID=r.Index,e.ColorIndex=new ja(o.Name,o.Script,o.Args,o))}if(t.TradeIndex){var r=t.TradeIndex,l=n.Get(r.Index);l&&(l.ID=r.Index,e.TradeIndex=new ja(l.Name,l.Script,l.Args,l))}for(var i in t.Windows){var r=t.Windows[i];if(r.Script)e.WindowIndex[i]=new ja(r.Name,r.Script,r.Args,r);else if(r.JsonData)e.WindowIndex[i]=new oa(r.Name,r.Script,r.Args,r);else if(r.Local&&r.Local.Data)e.WindowIndex[i]=new ti(r.Local.Name,r.Local.Args,{JsonData:r.Local.Data});else if(r.API){var h=r.API;e.WindowIndex[i]=new $a(h.Name,h.Script,h.Args,r)}else{var u=Pe.Get(r.Index);if(u)e.WindowIndex[i]=u.Create(),e.CreateWindowIndex(i);else{var c=n.Get(r.Index);if(!c)continue;r.Lock&&(c.Lock=r.Lock),c.ID=r.Index;var d=c.Args;r.Args&&(d=r.Args),r.IsShortTitle&&(c.IsShortTitle=r.IsShortTitle),r.TitleFont&&(c.TitleFont=r.TitleFont),e.WindowIndex[i]=new ja(c.Name,c.Script,d,c),r.StringFormat>0&&(e.WindowIndex[i].StringFormat=r.StringFormat),r.FloatPrecision>=0&&(e.WindowIndex[i].FloatPrecision=r.FloatPrecision)}}null!=r.Modify&&(e.Frame.SubFrame[i].Frame.ModifyIndex=r.Modify),null!=r.Change&&(e.Frame.SubFrame[i].Frame.ChangeIndex=r.Change),null!=r.Close&&(e.Frame.SubFrame[i].Frame.CloseIndex=r.Close),null!=r.Overlay&&(e.Frame.SubFrame[i].Frame.OverlayIndex=r.Overlay),1==r.IsDrawTitleBG&&(e.Frame.SubFrame[i].Frame.IsDrawTitleBG=r.IsDrawTitleBG),Ht.IsNumber(r.TitleHeight)?e.Frame.SubFrame[i].Frame.ChartBorder.TitleHeight=r.TitleHeight:r.TitleHeight=e.Frame.SubFrame[i].Frame.ChartBorder.TitleHeight}t.OverlayIndexFrameWidth>40&&(e.OverlayIndexFrameWidth=t.OverlayIndexFrameWidth);for(var i in t.OverlayIndex){var r=t.OverlayIndex[i];if(!(r.Windows>=e.Frame.SubFrame.length)){var f={WindowIndex:r.Windows,IndexName:r.Index,ShowRightText:r.ShowRightText};r.Args&&(f.Args=r.Args),r.API&&(f.API=r.API),e.CreateOverlayWindowsIndex(f)}}return this.AdjustTitleHeight(e),e},this.CreateCustomKLineChartContainer=function(t){var e=new Ge(this.CanvasElement);if(e.ModifyIndexDialog=this.ModifyIndexDialog,e.ChangeIndexDialog=this.ChangeIndexDialog,e.MinuteDialog=this.MinuteDialog,1==t.IsShowRightMenu&&(e.RightMenu=new Ea(this.DivElement)),t.KLine&&(t.KLine.DragMode>=0&&(e.DragMode=t.KLine.DragMode),t.KLine.Right>=0&&(e.Right=t.KLine.Right),t.KLine.Period>=0&&(e.Period=t.KLine.Period),t.KLine.MaxReqeustDataCount>0&&(e.MaxReqeustDataCount=t.KLine.MaxReqeustDataCount),t.KLine.Info&&t.KLine.Info.length>0&&e.SetKLineInfo(t.KLine.Info,!1),t.KLine.IndexTreeApiUrl&&(e.ChangeIndexDialog.IndexTreeApiUrl=t.KLine.IndexTreeApiUrl),0==t.KLine.KLineDoubleClick&&(e.MinuteDialog=this.MinuteDialog=null),null!=t.KLine.IndexTreeApiUrl&&(e.ChangeIndexDialog.IndexTreeApiUrl=t.KLine.IndexTreeApiUrl),t.KLine.PageSize>0&&(e.PageSize=t.KLine.PageSize),0==t.KLine.IsShowTooltip&&(e.IsShowTooltip=!1)),t.CustomStock&&(e.CustomStock=t.CustomStock),t.QueryDate&&(e.QueryDate=t.QueryDate),!t.Windows||t.Windows.length<=0)return null;if(e.Create(t.Windows.length),t.Border&&(isNaN(t.Border.Left)||(e.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(e.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(e.Frame.ChartBorder.Top=t.Border.Top)),0==t.IsShowCorssCursorInfo&&(e.ChartCorssCursor.IsShowText=t.IsShowCorssCursorInfo),t.Frame)for(var a in t.Frame){var i=t.Frame[a];i.SplitCount&&(e.Frame.SubFrame[a].Frame.YSplitOperator.SplitCount=i.SplitCount),i.StringFormat&&(e.Frame.SubFrame[a].Frame.YSplitOperator.StringFormat=i.StringFormat)}t.KLineTitle&&(0==t.KLineTitle.IsShowName&&(e.TitlePaint[0].IsShowName=!1),0==t.KLineTitle.IsShowSettingInfo&&(e.TitlePaint[0].IsShowSettingInfo=!1));var r=new s;for(var a in t.Windows){var i=t.Windows[a];if(i.Script)e.WindowIndex[a]=new ja(i.Name,i.Script,i.Args,i);else{var n=Pe.Get(i.Index);if(n)e.WindowIndex[a]=n.Create(),e.CreateWindowIndex(a);else{var o=r.Get(i.Index);if(!o)continue;i.Lock&&(o.Lock=i.Lock),e.WindowIndex[a]=new ja(o.Name,o.Script,o.Args,o)}}null!=i.Modify&&(e.Frame.SubFrame[a].Frame.ModifyIndex=i.Modify),null!=i.Change&&(e.Frame.SubFrame[a].Frame.ChangeIndex=i.Change),isNaN(i.TitleHeight)||(e.Frame.SubFrame[a].Frame.ChartBorder.TitleHeight=i.TitleHeight)}return e},this.CreateMinuteChartContainer=function(t){var e=null;e="分钟走势图横屏"===t.Type?new We(this.CanvasElement):new He(this.CanvasElement),t.NetworkFilter&&(e.NetworkFilter=t.NetworkFilter);var a=2;if(t.Windows&&t.Windows.length>0&&(a+=t.Windows.length),1==t.EnableScrollUpDown&&(e.EnableScrollUpDown=t.EnableScrollUpDown),1==t.DisableMouse&&(e.DisableMouse=t.DisableMouse),t.Minute&&0==t.Minute.IsShowTooltip&&(e.IsShowTooltip=!1),t.Language&&("CN"===t.Language?e.LanguageID=Ki.LANGUAGE_CHINESE_ID:"EN"===t.Language&&(e.LanguageID=Ki.LANGUAGE_ENGLISH_ID)),t.Info&&t.Info.length>0&&e.SetMinuteInfo(t.Info,!1),e.Create(a),t.CorssCursorInfo&&(isNaN(t.CorssCursorInfo.Left)||(e.ChartCorssCursor.ShowTextMode.Left=t.CorssCursorInfo.Left),isNaN(t.CorssCursorInfo.Right)||(e.ChartCorssCursor.ShowTextMode.Right=t.CorssCursorInfo.Right),isNaN(t.CorssCursorInfo.Bottom)||(e.ChartCorssCursor.ShowTextMode.Bottom=t.CorssCursorInfo.Bottom),!1===t.CorssCursorInfo.IsShowCorss&&(e.ChartCorssCursor.IsShowCorss=t.CorssCursorInfo.IsShowCorss)),t.MinuteInfo&&e.CreateMinuteInfo(t.MinuteInfo),1==t.IsShowRightMenu&&(e.RightMenu=new ya(this.DivElement)),t.DayCount>1&&(e.DayCount=t.DayCount),t.Border&&(isNaN(t.Border.Left)||(e.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(e.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(e.Frame.ChartBorder.Top=t.Border.Top),isNaN(t.Border.Bottom)||(e.Frame.ChartBorder.Bottom=t.Border.Bottom)),t.SplashTitle&&(e.ChartSplashPaint.SplashTitle=t.SplashTitle),this.AdjustChartBorder(e),t.Frame)for(var i in t.Frame){var r=t.Frame[i];e.Frame.SubFrame[i]&&(r.SplitCount&&(e.Frame.SubFrame[i].Frame.YSplitOperator.SplitCount=r.SplitCount),r.StringFormat&&(e.Frame.SubFrame[i].Frame.YSplitOperator.StringFormat=r.StringFormat),0==r.IsShowLeftText&&(e.Frame.SubFrame[i].Frame.YSplitOperator.IsShowLeftText=r.IsShowLeftText),0==r.IsShowRightText&&(e.Frame.SubFrame[i].Frame.YSplitOperator.IsShowRightText=r.IsShowRightText),r.Height>0&&(e.Frame.SubFrame[i].Height=r.Height),r.Custom&&(e.Frame.SubFrame[i].Frame.YSplitOperator.Custom=r.Custom))}if(t.ExtendChart)for(var i in t.ExtendChart){var r=t.ExtendChart[i];e.CreateExtendChart(r.Name,r)}if(t.Overlay)for(var i in t.Overlay){var r=t.Overlay[i];e.OverlaySymbol(r.Symbol,r)}t.MinuteLine&&(0==t.MinuteLine.IsDrawAreaPrice&&(e.ChartPaint[0].IsDrawArea=!1),0==t.MinuteLine.IsShowLead&&(e.IsShowLead=!1),0==t.MinuteLine.IsShowAveragePrice&&(e.ChartPaint[1].IsShow=!1),1===t.MinuteLine.SplitType&&(e.Frame.SubFrame[0].Frame.YSplitOperator.SplitType=t.MinuteLine.SplitType)),t.MinuteTitle&&(0==t.MinuteTitle.IsShowName&&(e.TitlePaint[0].IsShowName=!1),!1!==t.MinuteTitle.IsShowDate&&!0!==t.MinuteTitle.IsShowDate||(e.TitlePaint[0].IsShowDate=t.MinuteTitle.IsShowDate)),!0===t.CorssCursorTouchEnd&&(e.CorssCursorTouchEnd=t.CorssCursorTouchEnd),!0===t.IsShowBeforeData&&(e.IsShowBeforeData=t.IsShowBeforeData);var n=new s;for(var i in t.Windows){var r=t.Windows[i];if(r.Script)e.WindowIndex[2+parseInt(i)]=new ja(r.Name,r.Script,r.Args);else if(r.API){var o=r.API;e.WindowIndex[2+parseInt(i)]=new $a(o.Name,o.Script,o.Args,r)}else{var l=Pe.Get(r.Index);if(l)e.WindowIndex[2+parseInt(i)]=l.Create(),e.CreateWindowIndex(2+parseInt(i));else{var h=n.Get(r.Index);if(!h)continue;h.ID=r.Index;var u=h.Args;r.Args&&(u=r.Args),e.WindowIndex[2+parseInt(i)]=new ja(h.Name,h.Script,u,h),r.StringFormat>0&&(e.WindowIndex[2+parseInt(i)].StringFormat=r.StringFormat),r.FloatPrecision>=0&&(e.WindowIndex[2+parseInt(i)].FloatPrecision=r.FloatPrecision)}}isNaN(r.TitleHeight)||(e.Frame.SubFrame[2+parseInt(i)].Frame.ChartBorder.TitleHeight=r.TitleHeight)}if(this.AdjustTitleHeight(e),t.Function){var c=t.Function;c.RequestMinuteData&&(e.RequestMinuteData=c.RequestMinuteData),c.RecvMinuteData&&(e.RecvMinuteData=c.RecvMinuteData)}return e},this.CreateHistoryMinuteChartContainer=function(t){var e=new Ve(this.CanvasElement),a=2;t.Windows&&t.Windows.length>0&&(a+=t.Windows.length),e.Create(a),0==t.IsShowCorssCursorInfo&&(e.ChartCorssCursor.IsShowText=t.IsShowCorssCursorInfo),t.Border&&(isNaN(t.Border.Left)||(e.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(e.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(e.Frame.ChartBorder.Top=t.Border.Top),isNaN(t.Border.Bottom)||(e.Frame.ChartBorder.Bottom=t.Border.Bottom));var i=new s;for(var r in t.Windows){var n=t.Windows[r];if(n.Script)e.WindowIndex[2+parseInt(r)]=new ja(n.Name,n.Script,n.Args);else{var o=Pe.Get(n.Index);if(o)e.WindowIndex[2+parseInt(r)]=o.Create(),e.CreateWindowIndex(2+parseInt(r));else{var l=i.Get(n.Index);if(!l)continue;e.WindowIndex[2+parseInt(r)]=new ja(l.Name,l.Script,l.Args)}}isNaN(n.TitleHeight)||(e.Frame.SubFrame[2+parseInt(r)].Frame.ChartBorder.TitleHeight=n.TitleHeight)}return e.TradeDate=20181009,t.HistoryMinute.TradeDate&&(e.TradeDate=t.HistoryMinute.TradeDate),null!=t.HistoryMinute.IsShowName&&(e.TitlePaint[0].IsShowName=t.HistoryMinute.IsShowName),null!=t.HistoryMinute.IsShowDate&&(e.TitlePaint[0].IsShowDate=t.HistoryMinute.IsShowDate),e},this.CreateKLineTrainChartContainer=function(t){var e="K线训练横屏"==t.Type,a=new Ye(this.CanvasElement,e);if(t.NetworkFilter&&(a.NetworkFilter=t.NetworkFilter),1==t.IsApiPeriod&&(a.IsApiPeriod=t.IsApiPeriod),a.ModifyIndexDialog=this.ModifyIndexDialog,a.ChangeIndexDialog=this.ChangeIndexDialog,t.ScriptError&&(a.ScriptErrorCallback=t.ScriptError),t.KLine&&(t.KLine.Right>=0&&(a.Right=t.KLine.Right),t.KLine.Period>=0&&(a.Period=t.KLine.Period),t.KLine.MaxReqeustDataCount>0&&(a.MaxReqeustDataCount=t.KLine.MaxReqeustDataCount),t.KLine.Info&&t.KLine.Info.length>0&&a.SetKLineInfo(t.KLine.Info,!1),t.KLine.PageSize>0&&(a.PageSize=t.KLine.PageSize),0==t.KLine.IsShowTooltip&&(a.IsShowTooltip=!1),t.KLine.MaxRequestMinuteDayCount>0&&(a.MaxRequestMinuteDayCount=t.KLine.MaxRequestMinuteDayCount),t.KLine.DrawType&&(a.KLineDrawType=t.KLine.DrawType)),t.Train&&(t.Train.DataCount&&(a.TrainDataCount=t.Train.DataCount),t.Train.Callback&&(a.TrainCallback=t.Train.Callback)),!t.Windows||t.Windows.length<=0)return null;if(a.Create(t.Windows.length),t.Border&&(isNaN(t.Border.Left)||(a.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(a.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(a.Frame.ChartBorder.Top=t.Border.Top),isNaN(t.Border.Bottom)||(a.Frame.ChartBorder.Bottom=t.Border.Bottom)),this.AdjustChartBorder(a),0==t.IsShowCorssCursorInfo&&(a.ChartCorssCursor.IsShowText=t.IsShowCorssCursorInfo),!0===t.IsCorssOnlyDrawKLine&&(a.ChartCorssCursor.IsOnlyDrawKLine=t.IsCorssOnlyDrawKLine),!0===t.CorssCursorTouchEnd&&(a.CorssCursorTouchEnd=t.CorssCursorTouchEnd),1==t.IsClickShowCorssCursor&&(a.IsClickShowCorssCursor=t.IsClickShowCorssCursor),t.Frame)for(var i in t.Frame){var r=t.Frame[i];a.Frame.SubFrame[i]&&(r.SplitCount&&(a.Frame.SubFrame[i].Frame.YSplitOperator.SplitCount=r.SplitCount),r.StringFormat&&(a.Frame.SubFrame[i].Frame.YSplitOperator.StringFormat=r.StringFormat),0==r.IsShowLeftText&&(a.Frame.SubFrame[i].Frame.YSplitOperator.IsShowLeftText=r.IsShowLeftText),0==r.IsShowRightText&&(a.Frame.SubFrame[i].Frame.YSplitOperator.IsShowRightText=r.IsShowRightText))}if(t.ExtendChart)for(var i in t.ExtendChart){var r=t.ExtendChart[i];a.CreateExtendChart(r.Name,r)}a.TitlePaint[0].IsShowName=!1,a.TitlePaint[0].IsShowSettingInfo=!1,a.TitlePaint[0].IsShowDateTime=!1;var n=new s;for(var i in t.Windows){var r=t.Windows[i];if(r.Script)a.WindowIndex[i]=new ja(r.Name,r.Script,r.Args,r);else{var o=Pe.Get(r.Index);if(o)a.WindowIndex[i]=o.Create(),a.CreateWindowIndex(i);else{var l=n.Get(r.Index);if(!l)continue;r.Lock&&(l.Lock=r.Lock),a.WindowIndex[i]=new ja(l.Name,l.Script,l.Args,l)}}null!=r.Modify&&(a.Frame.SubFrame[i].Frame.ModifyIndex=r.Modify),null!=r.Change&&(a.Frame.SubFrame[i].Frame.ChangeIndex=r.Change),null!=r.Close&&(a.Frame.SubFrame[i].Frame.CloseIndex=r.Close),isNaN(r.TitleHeight)||(a.Frame.SubFrame[i].Frame.ChartBorder.TitleHeight=r.TitleHeight)}return this.AdjustTitleHeight(a),a},this.SetOption=function(t){var e=null;switch(t.Type){case"历史K线图":case"历史K线图横屏":e=this.CreateKLineChartContainer(t);break;case"自定义指数历史K线图":e=this.CreateCustomKLineChartContainer(t);break;case"分钟走势图":case"分钟走势图横屏":e=this.CreateMinuteChartContainer(t);break;case"历史分钟走势图":e=this.CreateHistoryMinuteChartContainer(t);break;case"K线训练":case"K线训练横屏":e=this.CreateKLineTrainChartContainer(t);break;case"简单图形":return this.CreateSimpleChart(t);case"饼图":case"雷达图":return this.CreatePieChart(t);case"地图":return this.CreateMapChart(t);default:return!1}return!!e&&(null!=t.IsAutoUpdate&&(e.IsAutoUpdate=t.IsAutoUpdate),t.AutoUpdateFrequency>0&&(e.AutoUpdateFrequency=t.AutoUpdateFrequency),!!t.Symbol&&(e.Draw(),e.ChangeSymbol(t.Symbol),this.JSChartContainer=e,this.DivElement.JSChart=this,void this.JSChartContainer.Draw()))},this.CreateSimpleChart=function(t){var e=new Xe(this.CanvasElement);t.MainDataControl&&(e.MainDataControl=t.MainDataControl),e.Create(),t.Border&&(isNaN(t.Border.Left)||(e.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(e.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(e.Frame.ChartBorder.Top=t.Border.Top)),e.Draw(),e.RequestData(),this.JSChartContainer=e,this.DivElement.JSChart=this,this.JSChartContainer.Draw()},this.CreatePieChart=function(t){var e=new Ke(this.CanvasElement);t.MainDataControl&&(e.MainDataControl=t.MainDataControl),t.Radius&&(e.Radius=t.Radius),e.Create(),t.Border&&(isNaN(t.Border.Left)||(e.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(e.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(e.Frame.ChartBorder.Top=t.Border.Top)),this.AdjustChartBorder(e),t.Frame&&0==t.Frame[0].IsShowBorder&&(e.Frame.IsShowBorder=t.Frame[0].IsShowBorder),e.Draw(),e.RequestData(),this.JSChartContainer=e,this.DivElement.JSChart=this,this.JSChartContainer.Draw()},this.CreateMapChart=function(t){var e=new ze(this.CanvasElement);t.MainDataControl&&(e.MainDataControl=t.MainDataControl),e.Create(),t.Border&&(isNaN(t.Border.Left)||(e.Frame.ChartBorder.Left=t.Border.Left),isNaN(t.Border.Right)||(e.Frame.ChartBorder.Right=t.Border.Right),isNaN(t.Border.Top)||(e.Frame.ChartBorder.Top=t.Border.Top)),e.Draw(),e.RequestData(),this.JSChartContainer=e,this.DivElement.JSChart=this,this.JSChartContainer.Draw()},this.CreateToolbar=function(t){},this.CreateSettingDiv=function(t){},this.Focus=function(){this.CanvasElement&&this.CanvasElement.focus()},this.ChangeSymbol=function(t){this.JSChartContainer&&this.JSChartContainer.ChangeSymbol(t)},this.ChangeIndex=function(t,e,a){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeIndex&&this.JSChartContainer.ChangeIndex(t,e,a)},this.ChangeScriptIndex=function(t,e){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeScriptIndex&&this.JSChartContainer.ChangeScriptIndex(t,e)},this.ChangePyScriptIndex=function(t,e){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangePyScriptIndex&&this.JSChartContainer.ChangePyScriptIndex(t,e)},this.GetIndexInfo=function(){return this.JSChartContainer&&"function"==typeof this.JSChartContainer.GetIndexInfo?this.JSChartContainer.GetIndexInfo():[]},this.ChangeInstructionIndex=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeInstructionIndex&&this.JSChartContainer.ChangeInstructionIndex(t)},this.ChangeInstructionScriptIndex=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeInstructionIndex&&this.JSChartContainer.ChangeInstructionScriptIndex(t)},this.CancelInstructionIndex=function(){this.JSChartContainer&&"function"==typeof this.JSChartContainer.CancelInstructionIndex&&this.JSChartContainer.CancelInstructionIndex()},this.ChangePeriod=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangePeriod&&this.JSChartContainer.ChangePeriod(t)},this.ChangeRight=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeRight&&this.JSChartContainer.ChangeRight(t)},this.OverlaySymbol=function(t,e){this.JSChartContainer&&"function"==typeof this.JSChartContainer.OverlaySymbol&&this.JSChartContainer.OverlaySymbol(t,e)},this.DeleteOverlaySymbol=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.DeleteOverlaySymbol&&this.JSChartContainer.DeleteOverlaySymbol(t)},this.SetFirstShowDate=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.SetFirstShowDate&&this.JSChartContainer.SetFirstShowDate(t)},this.ChangeKLineDrawType=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeKLineDrawType&&this.JSChartContainer.ChangeKLineDrawType(t)},this.ChangeIndexWindowCount=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeIndexWindowCount&&this.JSChartContainer.ChangeIndexWindowCount(t)},this.ClearOverlaySymbol=function(){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ClearOverlaySymbol&&this.JSChartContainer.ClearOverlaySymbol()},this.DeleteKLineInfo=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.DeleteKLineInfo&&this.JSChartContainer.DeleteKLineInfo(t)},this.ClearKLineInfo=function(){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ClearKLineInfo&&this.JSChartContainer.ClearKLineInfo()},this.AddKLineInfo=function(t,e){this.JSChartContainer&&"function"==typeof this.JSChartContainer.AddKLineInfo&&this.JSChartContainer.AddKLineInfo(t,e)},this.ChangMainDataControl=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.SetMainDataConotrl&&this.JSChartContainer.SetMainDataConotrl(t)},this.AddOverlayIndex=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.AddOverlayIndex&&this.JSChartContainer.AddOverlayIndex(t)},this.DeleteOverlayWindowsIndex=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.DeleteOverlayWindowsIndex&&this.JSChartContainer.DeleteOverlayWindowsIndex(t)},this.StopAutoUpdate=function(){this.JSChartContainer&&"function"==typeof this.JSChartContainer.StopAutoUpdate&&this.JSChartContainer.StopAutoUpdate()},this.SetDepthMapData=function(t,e){this.JSChartContainer&&"function"==typeof this.JSChartContainer.SetDepthMapData&&this.JSChartContainer.SetDepthMapData(t,e)},this.ForceLandscape=function(t){this.JSChartContainer&&(bi.Chart.Log("[JSChart::ForceLandscape] bForceLandscape="+t),this.JSChartContainer.IsForceLandscape=t)},this.LockIndex=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.LockIndex&&(bi.Chart.Log("[JSChart:LockIndex] lockData",t),this.JSChartContainer.LockIndex(t))},this.ChangeTradeDate=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeTradeDate&&(bi.Chart.Log("[JSChart:ChangeTradeDate] date",t),this.JSChartContainer.ChangeTradeDate(t))},this.ChangeDayCount=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeDayCount&&(bi.Chart.Log("[JSChart:ChangeDayCount] count",t),this.JSChartContainer.ChangeDayCount(t))},this.StartAnimation=function(t){if(this.JSChartContainer&&"function"==typeof this.JSChartContainer.StartAnimation)return bi.Chart.Log("[JSChart:StartAnimation] start."),this.JSChartContainer.StartAnimation(t)},this.StopAnimation=function(){if(this.JSChartContainer&&"function"==typeof this.JSChartContainer.StopAnimation)return bi.Chart.Log("[JSChart:StopAnimation] start."),this.JSChartContainer.StopAnimation()},this.SaveToImage=function(t,e){if(this.JSChartContainer&&"function"==typeof this.JSChartContainer.SaveToImage)return this.JSChartContainer.SaveToImage(t,e)},this.SaveToImageUrl=function(t,e){if(this.JSChartContainer&&"function"==typeof this.JSChartContainer.SaveToImageUrl)return this.JSChartContainer.SaveToImageUrl(t,e)},this.AddEventCallback=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.AddEventCallback&&(bi.Chart.Log("[JSChart:AddEventCallback] ",t),this.JSChartContainer.AddEventCallback(t))},this.SetLanguage=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.SetLanguage&&(bi.Chart.Log("[JSChart:SetLanguage] ",t),this.JSChartContainer.SetLanguage(t))},this.ChangeIndexTemplate=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ChangeIndexTemplate&&(bi.Chart.Log("[JSChart:ChangeIndexTemplate] ",t),this.JSChartContainer.ChangeIndexTemplate(t))},this.SetChartDrawOption=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.SetChartDrawOption&&(bi.Chart.Log("[JSChart:SetChartDrawOption] ",t),this.JSChartContainer.SetChartDrawOption(t))},this.CreateChartDrawPicture=function(t,e){this.JSChartContainer&&"function"==typeof this.JSChartContainer.CreateChartDrawPicture&&(bi.Chart.Log("[JSChart:CreateChartDrawPicture] ",t),this.JSChartContainer.CreateChartDrawPicture(t,e))},this.ReloadResource=function(t){this.JSChartContainer&&"function"==typeof this.JSChartContainer.ReloadResource&&(bi.Chart.Log("[JSChart:ReloadResource] "),this.JSChartContainer.ReloadResource(t))}}function h(t){var e=this;this.ClassName="JSChartContainer";this.Frame,this.ChartPaint=new Array,this.ChartPaintEx=[],this.ChartInfo=new Array,this.ChartInfoPaint,this.ExtendChartPaint=new Array,this.TitlePaint=new Array,this.OverlayChartPaint=new Array,this.ChartDrawPicture=new Array,this.ChartDrawStorage,this.ChartDrawOption={IsLockScreen:!1,Zoom:5},this.CurrentChartDrawPicture=null,this.SelectChartDrawPicture=null,this.ChartCorssCursor,this.IsClickShowCorssCursor=!1,this.ChartSplashPaint=null,this.Canvas=t.getContext("2d"),this.UIElement=t,this.MouseDrag,this.DragMode=1,this.TouchStatus={CorssCursorShow:!1},this.DragTimer,this.EnableScrollUpDown=!1,this.CursorIndex=0,this.LastPoint=new m,this.IsForceLandscape=!1,this.CorssCursorTouchEnd=!1,this.StepPixel=4,this.ZoomStepPixel=5,this.TouchMoveMinAngle=70,this.EnableAnimation=!1,this.Tooltip=document.createElement("div"),this.Tooltip.className="jschart-tooltip",this.Tooltip.style.background=Xi.TooltipBGColor,this.Tooltip.style.opacity=Xi.TooltipAlpha,this.Tooltip.id=f(),t.parentNode.appendChild(this.Tooltip),this.IsShowTooltip=!0,this.SelectRect=document.createElement("div"),this.SelectRect.className="jschart-selectrect",this.SelectRect.style.background=Xi.SelectRectBGColor,this.SelectRect.id=f(),this.SelectRect.oncontextmenu=function(){return!1},t.parentNode.appendChild(this.SelectRect),this.SelectRectRightMenu,this.FrameSplitData=new xi.default,this.FrameSplitData.set("double",new Ne),this.FrameSplitData.set("price",new Oe),this.mapEvent=new xi.default,this.IsOnTouch=!1,this.TouchDrawCount=0,this.DisableMouse=!1,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.PressTime=500,this.NetworkFilter,this.AddEventCallback=function(t){if(t&&t.event&&t.callback){var e={Callback:t.callback,Source:t};this.mapEvent.set(t.event,e)}},this.RemoveEventCallback=function(t){this.mapEvent.has(t)&&this.mapEvent.delete(t)},this.GetEventCallback=function(t){return this.mapEvent.has(t)?this.mapEvent.get(t):null},this.GetIndexEvent=function(){return this.GetEventCallback(yi.RECV_INDEX_DATA)},this.GetOverlayIndexEvent=function(){return this.GetEventCallback(yi.RECV_OVERLAY_INDEX_DATA)},t.onmousemove=function(t){e.UIOnMouseMove(t)},t.oncontextmenu=function(t){return e.UIOnContextMenu(t)},t.ondblclick=function(t){e.UIOnDblClick(t)},t.onmousedown=function(t){e.UIOnMouseDown(t)},this.UIOnMouseMove=function(t){var e=u(),a=(t.clientX-this.UIElement.getBoundingClientRect().left)*e,i=(t.clientY-this.UIElement.getBoundingClientRect().top)*e;this.ChartSplashPaint&&1==this.ChartSplashPaint.IsEnableSplash||1!=this.DisableMouse&&this.OnMouseMove(a,i,t)},this.UIOnContextMenu=function(t){var e=t.clientX-this.UIElement.getBoundingClientRect().left,a=t.clientY-this.UIElement.getBoundingClientRect().top;return"function"==typeof this.OnRightMenu&&this.OnRightMenu(e,a,t),!1},this.UIOnDblClick=function(t){var e=t.clientX-this.UIElement.getBoundingClientRect().left,a=t.clientY-this.UIElement.getBoundingClientRect().top;this.OnDoubleClick(e,a,t)},this.UIOnMouseDown=function(t){var e=this;if(0!=this.DragMode){var a=u();if(this.IsOnTouch=!0,this.TryClickLock){var i=(t.clientX-this.UIElement.getBoundingClientRect().left)*a,r=(t.clientY-this.UIElement.getBoundingClientRect().top)*a;if(this.TryClickLock(i,r))return}this.HideSelectRect(),this.SelectRectRightMenu&&this.SelectRectRightMenu.Hide(),this.ChartPictureMenu&&this.ChartPictureMenu.Hide();var n={Click:{},LastMove:{}};if(n.Click.X=t.clientX,n.Click.Y=t.clientY,n.LastMove.X=t.clientX,n.LastMove.Y=t.clientY,this.MouseDrag=n,this.SelectChartDrawPicture=null,this.CurrentChartDrawPicture){2==this.CurrentChartDrawPicture.Status?this.SetChartDrawPictureThirdPoint(n.Click.X,n.Click.Y):(this.SetChartDrawPictureFirstPoint(n.Click.X,n.Click.Y),this.FinishChartDrawPicturePoint()&&this.DrawDynamicInfo())}else{var o={},a=u();o.X=(t.clientX-this.UIElement.getBoundingClientRect().left)*a,o.Y=(t.clientY-this.UIElement.getBoundingClientRect().top)*a,this.GetChartDrawPictureByPoint(o)&&(o.ChartDrawPicture.Status=20,o.ChartDrawPicture.ValueToPoint(),o.ChartDrawPicture.MovePointIndex=o.PointIndex,this.CurrentChartDrawPicture=o.ChartDrawPicture,this.SelectChartDrawPicture=o.ChartDrawPicture,this.OnSelectChartPicture(o.ChartDrawPicture))}document.onmousemove=function(t){e.DocOnMouseMove(t)},document.onmouseup=function(t){e.DocOnMouseUp(t)}}},this.DocOnMouseMove=function(e){if(!this.ChartSplashPaint||1!=this.IsEnableSplash){var a=this.MouseDrag;if(a){var i=Math.abs(a.LastMove.X-e.clientX);if(this.CurrentChartDrawPicture){var r=this.CurrentChartDrawPicture;if(1==r.Status||2==r.Status){if(Math.abs(a.LastMove.X-e.clientX)<5&&Math.abs(a.LastMove.Y-e.clientY)<5)return;this.SetChartDrawPictureSecondPoint(e.clientX,e.clientY)&&this.DrawDynamicInfo()}else if(3==r.Status)this.SetChartDrawPictureThirdPoint(e.clientX,e.clientY)&&this.DrawDynamicInfo();else if(20==r.Status){if(Math.abs(a.LastMove.X-e.clientX)<5&&Math.abs(a.LastMove.Y-e.clientY)<5)return;this.MoveChartDrawPicture(e.clientX-a.LastMove.X,e.clientY-a.LastMove.Y)&&this.DrawDynamicInfo()}a.LastMove.X=e.clientX,a.LastMove.Y=e.clientY}else if(1==this.DragMode){if(i<5)return;var n=!0;a.LastMove.X<e.clientX&&(n=!1),this.UIElement.style.cursor="pointer",this.DataMove(i,n)?(this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.ResetFrameXYSplit(),this.Draw()):this.DragDownloadData&&this.DragDownloadData(),a.LastMove.X=e.clientX,a.LastMove.Y=e.clientY}else if(2==this.DragMode){var o=Math.abs(a.LastMove.Y-e.clientY);if(i<5&&o<5)return;var s=a.Click.X-t.getBoundingClientRect().left,l=a.Click.Y-t.getBoundingClientRect().top,h=e.clientX-t.getBoundingClientRect().left,u=e.clientY-t.getBoundingClientRect().top;this.ShowSelectRect(s,l,h,u),a.LastMove.X=e.clientX,a.LastMove.Y=e.clientY}}}},this.DocOnMouseUp=function(e){document.onmousemove=null,document.onmouseup=null;var a=!0;if(this.CurrentChartDrawPicture){var i=this.CurrentChartDrawPicture;2==i.Status||1==i.Status||3==i.Status?(i.PointStatus=i.Status,this.FinishChartDrawPicturePoint()?this.DrawDynamicInfo():a=!1):20==i.Status&&this.FinishMoveChartDrawPicture()&&this.DrawDynamicInfo()}else if(2==this.DragMode){var r=this.MouseDrag,n=new v;if(n.XStart=r.Click.X-t.getBoundingClientRect().left,n.XEnd=r.LastMove.X-t.getBoundingClientRect().left,n.JSChartContainer=this.JSChartContainer,n.Stock={Symbol:this.Symbol,Name:this.Name},this.GetSelectRectData(n)){var o=this.GetEventCallback(yi.ON_SELECT_RECT);if(o&&o.Callback){var s={X:r.LastMove.X-t.getBoundingClientRect().left,Y:r.LastMove.Y-t.getBoundingClientRect().top,SelectData:n};o.Callback(o,s,this)}this.SelectRectRightMenu&&(e.data={Chart:this,X:r.LastMove.X-t.getBoundingClientRect().left,Y:r.LastMove.Y-t.getBoundingClientRect().top,SelectData:n},this.SelectRectRightMenu.DoModal(e))}}bi.Chart.Log("[KLineChartContainer::document.onmouseup]",e),this.UIElement.style.cursor="default",this.MouseDrag=null,this.IsOnTouch=!1,!0===a&&(this.CurrentChartDrawPicture=null)},this.IsPhoneDragging=function(t){var e=t.changedTouches.length,a=t.touches.length;return 1==e&&1==a},this.IsPhonePinching=function(t){var e=t.changedTouches.length,a=t.touches.length;return(1==e||2==e)&&2==a},this.PreventTouchEvent=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()},this.GetToucheData=function(t,e){for(var a=new Array,i=u(),r=0;r<t.touches.length;++r){var n=t.touches[r];e?a.push({clientX:n.clientY*i,clientY:n.clientX*i,pageX:n.pageY*i,pageY:n.pageX*i}):a.push({clientX:n.clientX*i,clientY:n.clientY*i,pageX:n.pageX*i,pageY:n.pageY*i})}return a},this.IsSingleTouch=function(t){return 1==t.touches.length},this.StopDragTimer=function(){Ht.IsNumber(this.DragTimer)&&(clearTimeout(this.DragTimer),this.DragTimer=null)},this.GetMoveAngle=function(t,e){var a=Math.abs(t.X-e.X),i=Math.abs(t.Y-e.Y);return 180*Math.atan(a/i)/Math.PI},t.ontouchstart=function(t){e.OnTouchStart(t)},t.ontouchmove=function(t){e.OnTouchMove(t)},t.ontouchend=function(t){e.OnTouchEnd(t)},this.OnTouchStart=function(e){this.IsOnTouch=!0,this.TouchDrawCount=0,this.PhonePinch=null,this.StopDragTimer();var a=this.IsSingleTouch(e);if((0==this.EnableScrollUpDown||!a||this.DragMode==Mi.CLICK_TOUCH_MODE_ID&&1==this.TouchStatus.CorssCursorShow)&&e.cancelable&&e.preventDefault(),this.IsPhoneDragging(e)){if(this.TryClickLock||this.TryClickIndexTitle){var i=this.GetToucheData(e,this.IsForceLandscape),r=i[0].clientX,n=i[0].clientY,o=u();if(r-=t.getBoundingClientRect().left*o,n-=t.getBoundingClientRect().top*o,this.TryClickLock&&this.TryClickLock(r,n))return;if(this.TryClickIndexTitle&&this.TryClickIndexTitle(r,n))return}var s=!0;this.ChartDrawOption.IsLockScreen?s=!1:this.DragMode==Mi.CLICK_TOUCH_MODE_ID?1==this.TouchStatus.CorssCursorShow&&(s=!1):this.DragMode==Mi.DISABLE_DRAG_ID?s=!1:a||(s=!1);var l={Click:{},LastMove:{}},i=this.GetToucheData(e,this.IsForceLandscape);l.Click.X=i[0].clientX,l.Click.Y=i[0].clientY,l.LastMove.X=i[0].clientX,l.LastMove.Y=i[0].clientY,this.MouseDrag=l,this.SelectChartDrawPicture&&(this.SelectChartDrawPicture.IsSelected=!1),this.SelectChartDrawPicture=null;if(this.CurrentChartDrawPicture){return 2==this.CurrentChartDrawPicture.Status?this.SetChartDrawPictureThirdPoint(l.Click.X,l.Click.Y,!0):(this.SetChartDrawPictureFirstPoint(l.Click.X,l.Click.Y,!0),this.FinishChartDrawPicturePoint()&&this.DrawDynamicInfo({Corss:!1,Tooltip:!1})),void(e.cancelable&&e.preventDefault())}var h={},o=u();if(h.X=i[0].clientX-t.getBoundingClientRect().left,h.Y=i[0].clientY-t.getBoundingClientRect().top,this.GetChartDrawPictureByPoint(h)){h.ChartDrawPicture.Status=20,h.ChartDrawPicture.ValueToPoint(),h.ChartDrawPicture.MovePointIndex=h.PointIndex,h.ChartDrawPicture.IsSelected=!0,this.CurrentChartDrawPicture=h.ChartDrawPicture,this.SelectChartDrawPicture=h.ChartDrawPicture;var c=this.GetEventCallback(yi.ON_CLICK_DRAWPICTURE);if(c&&c.Callback){var d={DrawPicture:h.ChartDrawPicture};c.Callback(c,d,this)}return void(e.cancelable&&e.preventDefault())}if(s){var f=this;this.DragTimer=setTimeout(function(){if(l.Click.X==l.LastMove.X&&l.Click.Y==l.LastMove.Y){f.MouseDrag;f.MouseDrag=null,f.DragMode==Mi.CLICK_TOUCH_MODE_ID&&(f.TouchStatus.CorssCursorShow=!0),f.MoveCorssCursor(l.Click,e)}},f.PressTime)}this.ChartDrawOption.IsLockScreen?this.MouseDrag=null:this.DragMode==Mi.CLICK_TOUCH_MODE_ID||(this.DragMode==Mi.DISABLE_DRAG_ID?(this.MouseDrag=null,this.MoveCorssCursor(l.Click,e)):this.IsClickShowCorssCursor&&this.MoveCorssCursor(l.Click,e))}else if(this.IsPhonePinching(e)){var C={Start:{},Last:{}},i=this.GetToucheData(e,this.IsForceLandscape);C.Start={X:i[0].pageX,Y:i[0].pageY,X2:i[1].pageX,Y2:i[1].pageY},C.Last={X:i[0].pageX,Y:i[0].pageY,X2:i[1].pageX,Y2:i[1].pageY},this.PhonePinch=C,this.SelectChartDrawPicture=null}},this.OnTouchMove=function(e){var a=this.GetToucheData(e,this.IsForceLandscape);if(this.IsPhoneDragging(e)){var i=this.MouseDrag;if(null==i)this.IsForceLandscape&&(y=t.getBoundingClientRect().width-a[0].clientY),this.ChartDrawOption.IsLockScreen||this.MoveCorssCursor({X:a[0].clientX,Y:a[0].clientY},e);else{var r=this.GetMoveAngle(i.LastMove,{X:a[0].clientX,Y:a[0].clientY}),n=Math.abs(i.LastMove.X-a[0].clientX),o=Math.abs(i.LastMove.Y-a[0].clientY);n=parseInt(n);var s=this.DragMode==Mi.CLICK_TOUCH_MODE_ID&&1==this.TouchStatus.CorssCursorShow;if(this.CurrentChartDrawPicture){var l=this.CurrentChartDrawPicture;if(1==l.Status||2==l.Status){if(n<5&&o<5)return;this.SetChartDrawPictureSecondPoint(a[0].clientX,a[0].clientY,!0)&&this.DrawDynamicInfo()}else if(3==l.Status)this.SetChartDrawPictureThirdPoint(a[0].clientX,a[0].clientY,!0)&&this.DrawDynamicInfo();else if(20==l.Status){if(n<5&&o<5)return;this.MoveChartDrawPicture(a[0].clientX-i.LastMove.X,a[0].clientY-i.LastMove.Y,!0)&&this.DrawDynamicInfo()}i.LastMove.X=a[0].clientX,i.LastMove.Y=a[0].clientY}else if(s){this.MouseDrag;this.MouseDrag=null,this.MoveCorssCursor(i.Click,e)}else if(1==this.DragMode||0==s){if((o>0&&n<=3||r<=this.TouchMoveMinAngle)&&1==this.EnableScrollUpDown)return void this.StopDragTimer();if(n<5||r<=this.TouchMoveMinAngle)return void this.PreventTouchEvent(e);var h=!0;i.LastMove.X<a[0].clientX&&(h=!1),this.DataMove(n,h)?(this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.ResetFrameXYSplit(),this.Draw()):this.DragDownloadData&&this.DragDownloadData(),i.LastMove.X=a[0].clientX,i.LastMove.Y=a[0].clientY}}}else if(this.IsPhonePinching(e)){if(this.DragMode==Mi.DISABLE_DRAG_ID)return;this.PreventTouchEvent(e);var u=this.PhonePinch;if(!u)return;var c=Math.abs(a[0].pageY-a[1].pageY),d=Math.abs(u.Last.Y-u.Last.Y2),f=c-d,C=Math.abs(a[0].pageX-a[1].pageX),p=Math.abs(u.Last.X-u.Last.X2),D=C-p,m=this.ZoomStepPixel;if(Math.abs(f)<m&&Math.abs(D)<m)return;var v=f;if(Math.abs(f)<m&&(v=D),v>0){var g={};if(g.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomUp(g))return;this.CursorIndex=g.Index,this.UpdatePointByCursorIndex(),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown(),this.StopDragTimer()}else{var g={};if(g.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomDown(g))return;this.CursorIndex=g.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown(),this.StopDragTimer()}u.Last={X:a[0].pageX,Y:a[0].pageY,X2:a[1].pageX,Y2:a[1].pageY}}this.PreventTouchEvent(e)},this.OnTouchEnd=function(t){bi.Chart.Log("[KLineChartContainer:OnTouchEnd]",t);var e=!0;if(this.CurrentChartDrawPicture){var a=this.CurrentChartDrawPicture;2==a.Status||1==a.Status||3==a.Status?(a.PointStatus=a.Status,this.FinishChartDrawPicturePoint()?this.DrawDynamicInfo():e=!1):20==a.Status&&this.FinishMoveChartDrawPicture()&&this.DrawDynamicInfo()}this.IsOnTouch=!1,!0===e&&(this.CurrentChartDrawPicture=null),this.StopDragTimer(),this.OnTouchFinished(),this.TouchDrawCount=0},this.MoveCorssCursor=function(t,e){var a=u(),i=t.X-this.UIElement.getBoundingClientRect().left*a,r=t.Y-this.UIElement.getBoundingClientRect().top*a;this.DragMode==Mi.CLICK_TOUCH_MODE_ID&&(this.TouchStatus.CorssCursorShow=!0),this.OnMouseMove(i,r,e)},this.Draw=function(){var t=this;if(!(this.UIElement.width<=0||this.UIElement.height<=0)){this.Canvas.clearRect(0,0,this.UIElement.width,this.UIElement.height);var e=u();if(this.Canvas.lineWidth=e,this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash)return this.Frame.Draw(),void this.ChartSplashPaint.Draw();if(this.Frame.SetDrawDepthMap(function(){for(var e in t.ExtendChartPaint){var a=t.ExtendChartPaint[e];a.IsCallbackDraw&&a.Draw()}}),this.Frame.Draw(),this.Frame.DrawCustomVertical){var a=this.GetEventCallback(yi.ON_CUSTOM_VERTICAL_DRAW);this.Frame.DrawCustomVertical(a)}this.Frame.CalculateLock();for(var i in this.ChartPaint){var r=this.ChartPaint[i];r.IsDrawFirst&&r.Draw()}for(var i in this.ChartPaint){var r=this.ChartPaint[i];r.IsDrawFirst||r.Draw()}for(var i in this.ChartPaintEx){var r=this.ChartPaintEx[i];r.Draw()}for(var i in this.OverlayChartPaint){var r=this.OverlayChartPaint[i];r.Draw()}this.Frame.DrawOveraly&&this.Frame.DrawOveraly();for(var i in this.ExtendChartPaint){var r=this.ExtendChartPaint[i];r.IsCallbackDraw||(r.IsDynamic||0!=r.IsAnimation||r.Draw())}this.Frame.DrawInsideHorizontal&&this.Frame.DrawInsideHorizontal(),this.Frame.DrawCustomHorizontal&&this.Frame.DrawCustomHorizontal(),this.ChartInfoPaint&&this.ChartInfoPaint.Draw(),this.Frame.DrawLock(),this.Frame.Snapshot();for(var i in this.ExtendChartPaint){var r=this.ExtendChartPaint[i];r.IsCallbackDraw||r.IsDynamic&&!1===r.DrawAfterTitle&&r.Draw()}null==this.LastPoint.X&&null==this.LastPoint.Y||this.ChartCorssCursor&&(this.ChartCorssCursor.LastPoint=this.LastPoint,this.ChartCorssCursor.CursorIndex=this.CursorIndex,this.DragMode==Mi.CLICK_TOUCH_MODE_ID?1==this.TouchStatus.CorssCursorShow&&this.ChartCorssCursor.Draw():!0===this.CorssCursorTouchEnd&&this.MouseDrag||1==this.CorssCursorTouchEnd&&0==this.IsOnTouch||this.ChartCorssCursor.Draw());var n=this.GetEventCallback(yi.ON_TITLE_DRAW),o=this.GetEventCallback(yi.ON_INDEXTITLE_DRAW);for(var i in this.TitlePaint){var r=this.TitlePaint[i];r.IsDynamic&&(r.CursorIndex=this.CursorIndex,"DynamicChartTitlePainting"==r.ClassName?r.OnDrawEvent=o:r.OnDrawEvent=n,r.OnDrawEvent&&(r.OnDrawEvent.FunctionName="Draw",r.OnDrawEvent.PointPosition=null),r.Draw())}for(var i in this.ExtendChartPaint){var r=this.ExtendChartPaint[i];r.IsCallbackDraw||r.IsDynamic&&!0===r.DrawAfterTitle&&0==r.IsAnimation&&r.Draw()}if(this.EnableAnimation)for(var i in this.ExtendChartPaint){var r=this.ExtendChartPaint[i];!0===r.IsAnimation&&r.Draw()}for(var i in this.ChartDrawPicture){var r=this.ChartDrawPicture[i];r.Draw()}if(this.CurrentChartDrawPicture&&10!=this.CurrentChartDrawPicture.Status&&this.CurrentChartDrawPicture.Draw(),this.mapEvent.has(yi.CHART_STATUS)){var s=this.mapEvent.get(yi.CHART_STATUS),l={};"function"==typeof this.GetChartStatus&&(l=this.GetChartStatus()),s.Callback(s,l,this)}++this.TouchDrawCount}},this.DrawDynamicInfo=function(t){if(null!=this.Frame.ScreenImageData){var e=!1;if(this.ChartCorssCursor&&(null==this.ChartCorssCursor.PointX&&null==this.ChartCorssCursor.PointY||(e=!0)),0==(e=!0))for(var a in this.ExtendChartPaint){var i=this.ExtendChartPaint[a];if(!i.IsCallbackDraw&&(i.IsDynamic&&i.IsEraseBG)){e=!0;break}}e&&this.Canvas.putImageData(this.Frame.ScreenImageData,0,0);for(var a in this.ExtendChartPaint){var i=this.ExtendChartPaint[a];i.IsCallbackDraw||i.IsDynamic&&!1===i.DrawAfterTitle&&0==i.IsAnimation&&i.Draw()}this.ChartCorssCursor&&(this.ChartCorssCursor.LastPoint=this.LastPoint,this.ChartCorssCursor.CursorIndex=this.CursorIndex,t&&0==t.Corss||(this.DragMode==Mi.CLICK_TOUCH_MODE_ID?1==this.TouchStatus.CorssCursorShow&&this.ChartCorssCursor.Draw():!1===this.IsOnTouch&&!0===this.CorssCursorTouchEnd||this.CurrentChartDrawPicture||this.ChartCorssCursor.Draw()));var r=null;t&&"OnMouseMove"==t.ParentFunction&&t.Point&&(r=this.Frame.PtInFrame(t.Point.X,t.Point.Y));for(var a in this.TitlePaint){var i=this.TitlePaint[a];i.IsDynamic&&(i.CursorIndex=this.CursorIndex,i.OnDrawEvent&&(i.OnDrawEvent.FunctionName="DrawDynamicInfo",i.OnDrawEvent.PointPosition=r),i.Draw())}for(var a in this.ExtendChartPaint){var i=this.ExtendChartPaint[a];i.IsCallbackDraw||("KLineTooltipPaint"==i.ClassName&&t&&0==t.Tooltip||i.IsDynamic&&!0===i.DrawAfterTitle&&i.Draw())}if(this.EnableAnimation)for(var a in this.ExtendChartPaint){var i=this.ExtendChartPaint[a];!0===i.IsAnimation&&i.Draw()}for(var a in this.ChartDrawPicture){var i=this.ChartDrawPicture[a];i.Draw()}this.CurrentChartDrawPicture&&10!=this.CurrentChartDrawPicture.Status&&this.CurrentChartDrawPicture.Draw(),++this.TouchDrawCount}},this.DrawAnimation=function(){if(this.EnableAnimation){if(this.Frame.ScreenImageData&&!this.IsOnTouch){for(var t in this.ExtendChartPaint){var e=this.ExtendChartPaint[t];!0===e.IsAnimation&&(e.IsMoveStep=!0)}this.DrawDynamicInfo()}var a=this;window.requestAnimationFrame(function(){a.DrawAnimation()})}},this.StartAnimation=function(t){var e=!1,a=null;for(var i in this.ExtendChartPaint){var r=this.ExtendChartPaint[i];if("BarragePaint"===r.ClassName){e=!0,a=r.BarrageList;break}}if(!e){var n=new kt;n.Canvas=this.Canvas,n.ChartBorder=this.Frame.ChartBorder,n.ChartFrame=this.Frame,n.HQChart=this,n.SetOption(t),this.ExtendChartPaint.push(n),a=n.BarrageList}this.EnableAnimation=!0;var o=this;return window.requestAnimationFrame(function(){o.DrawAnimation()}),a},this.StopAnimation=function(){this.EnableAnimation=!1,this.DrawDynamicInfo()},this.OnMouseMove=function(t,e,a){this.LastPoint.X=t,this.LastPoint.Y=e,this.CursorIndex=this.Frame.GetXData(t);var i=!1;if(this.CurrentChartDrawPicture)this.CurrentChartDrawPicture.SetLastPoint&&this.CurrentChartDrawPicture.SetLastPoint({X:t,Y:e}),i=!0;else{var r={};r.X=t,r.Y=e,this.GetChartDrawPictureByPoint(r)?(100===r.PointIndex?this.UIElement.style.cursor="move":this.UIElement.style.cursor="pointer",i=!0):this.MouseDrag||(this.UIElement.style.cursor="default")}var n={ParentFunction:"OnMouseMove",Point:{X:t,Y:e}};if(this.DrawDynamicInfo(n),this.IsShowTooltip&&0==i){var o=new U;for(var s in this.ChartPaint){var l=this.ChartPaint[s];if(l.GetTooltipData(t,e,o))break}if(this.ChartInfoPaint&&this.ChartInfoPaint.GetTooltipData(t,e,o),!o.Data)for(var s in this.OverlayChartPaint){var l=this.OverlayChartPaint[s];if(l.GetTooltipData(t,e,o))break}if(o.Data){var h=a.clientX-this.UIElement.getBoundingClientRect().left,u=a.clientY-this.UIElement.getBoundingClientRect().top;this.ShowTooltip(h,u,o)}else this.HideTooltip()}},this.OnKeyDown=function(t){switch(t.keyCode?t.keyCode:t.which){case 37:if(this.CursorIndex<=.99999){if(!this.DataMoveLeft())break;this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown()}else--this.CursorIndex,this.UpdatePointByCursorIndex(),this.DrawDynamicInfo(),this.ShowTooltipByKeyDown();break;case 39:var e=0;if(e=this.Frame.XPointCount?this.Frame.XPointCount:this.Frame.SubFrame[0].Frame.XPointCount,this.CursorIndex+1>=e){if(!this.DataMoveRight())break;this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown()}else{var a=null;if(!(a=this.Frame.Data?this.Frame.Data:this.Frame.SubFrame[0].Frame.Data))break;if(this.CursorIndex+a.DataOffset+1>=a.Data.length)break;++this.CursorIndex,this.UpdatePointByCursorIndex(),this.DrawDynamicInfo(),this.ShowTooltipByKeyDown()}break;case 38:var i={ZoomType:this.ZoomType};if(i.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomUp(i))break;this.CursorIndex=i.Index,this.UpdatePointByCursorIndex(),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown();break;case 40:var i={ZoomType:this.ZoomType};if(i.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomDown(i))break;this.CursorIndex=i.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown();break;case 46:if(!this.SelectChartDrawPicture)break;var r=this.SelectChartDrawPicture;bi.Chart.Log(r,"drawPicturedrawPicturedrawPicture"),this.SelectChartDrawPicture=null,this.ClearChartDrawPicture(r);break;default:return}t.preventDefault?t.preventDefault():t.returnValue=!1},this.OnDoubleClick=function(t,e,a){},this.UpdatePointByCursorIndex=function(){this.LastPoint.X=this.Frame.GetXFromIndex(this.CursorIndex);var t=Math.abs(this.CursorIndex-.5);t=parseInt(t.toFixed(0)),"KLineChartContainer"==this.ClassName&&(t=this.CursorIndex);var e=this.Frame.Data;if(!(e.DataOffset+t>=e.Data.length)){var a=e.Data[e.DataOffset+t].Close;this.LastPoint.Y=this.Frame.GetYFromData(a)}},this.ShowTooltipByKeyDown=function(){var t=Math.abs(this.CursorIndex-.5);t=parseInt(t.toFixed(0)),"KLineChartContainer"==this.ClassName&&(t=this.CursorIndex);var e=this.Frame.Data,a=new U;a.Data=e.Data[e.DataOffset+t],a.ChartPaint=this.ChartPaint[0];var i=u();0===i&&(i=1),this.ShowTooltip(this.LastPoint.X/i,this.LastPoint.Y/i,a)},this.ShowTooltip=function(t,e,a){if(this.IsShowTooltip){var i=u(),r=15/i;if(0===a.Type){var n=(C(),t),o=e,s=Yi.Create("HistoryDataStringFormat");if(s.Value=a,s.Symbol=this.Symbol,s.LanguageID=this.LanguageID,!s.Operator())return;var l=25*s.LineCount;s.Height>0&&(l=s.Height);var h=s.Width;this.Tooltip.style.width=h+"px",this.Tooltip.style.height=l+"px",this.Tooltip.style.position="absolute",n+h>this.UIElement.getBoundingClientRect().width?this.Tooltip.style.left=n-h+"px":this.Tooltip.style.left=n+"px",this.Tooltip.style.top=o+r+"px",this.Tooltip.className="jschart-tooltip",this.Tooltip.innerHTML=s.Text,this.Tooltip.style.display="block"}else if(1===a.Type){var n=(C(),t),o=e,s=Yi.Create("KLineInfoDataStringFormat");if(s.Value=a,s.Symbol=this.Symbol,s.LanguageID=this.LanguageID,!s.Operator())return;var h=s.Width;this.Tooltip.className="jchart-klineinfo-tooltip",this.Tooltip.style.position="absolute",n+h>this.UIElement.getBoundingClientRect().width?this.Tooltip.style.left=n-h+"px":this.Tooltip.style.left=n+"px",this.Tooltip.style.top=o+r+"px",this.Tooltip.style.width=h+"px",this.Tooltip.style.height=null,this.Tooltip.innerHTML=s.Text,this.Tooltip.style.display="block"}else if(2==a.Type){var n=t,o=e,s=Yi.Create("KLineTradeDataStringFormat");if(s.Value=a,s.Symbol=this.Symbol,s.LanguageID=this.LanguageID,!s.Operator())return;var h=s.Width;this.Tooltip.className="jchart-klinetrade-tooltip",this.Tooltip.style.position="absolute",this.Tooltip.style.left=n+"px",this.Tooltip.style.top=o+r+"px",this.Tooltip.style.width=h+"px",this.Tooltip.style.height=null,this.Tooltip.innerHTML=s.Text,this.Tooltip.style.display="block"}else if(3==a.Type){var n=t,o=e,s=Yi.Create("MinuteInfoDataStringFormat");if(s.Value=a,s.Symbol=this.Symbol,s.LanguageID=this.LanguageID,!s.Operator())return;var h=s.Width;this.Tooltip.className="jchart-minuteinfo-tooltip",this.Tooltip.style.position="absolute",this.Tooltip.style.left=n+"px",this.Tooltip.style.top=o+r+"px",this.Tooltip.style.width=h+"px",this.Tooltip.style.height=null,this.Tooltip.innerHTML=s.Text,this.Tooltip.style.display="block"}}},this.HideTooltip=function(){this.Tooltip.style.display="none"},this.ShowSelectRect=function(t,e,a,i){var r=t,n=e,o=this.Frame.ChartBorder.GetRight(),s=this.Frame.ChartBorder.GetLeft();t>o&&(t=o),a>o&&(a=o),t<s&&(t=s),a<s&&(a=s),t>a&&(r=a),e>i&&(n=i);var l=Math.abs(t-a),h=Math.abs(e-i);this.SelectRect.style.width=l+"px",this.SelectRect.style.height=h+"px",this.SelectRect.style.position="absolute",this.SelectRect.style.left=r+"px",this.SelectRect.style.top=n+"px",this.SelectRect.style.display="block"},this.UpdateSelectRect=function(t,e){if(this.ChartPaint[0].Data){var a=this.ChartPaint[0].Data,i=a.DataOffset,r=t-i,n=e-i,o=this.Frame.GetXFromIndex(r),s=this.Frame.GetXFromIndex(n);bi.Chart.Log("[JSChartContainer::UpdateSelectRect]",t,e,o,s);var l=C();this.SelectRect.style.left=o+l.Left+"px",this.SelectRect.style.width=s-o+"px"}},this.HideSelectRect=function(){this.SelectRect.style.display="none"},this.ResetFrameXYSplit=function(){"function"==typeof this.Frame.ResetXYSplit&&this.Frame.ResetXYSplit()},this.UpdateFrameMaxMin=function(){var t=new Array,e=new Array;for(var a in this.ChartPaint){var i=this.ChartPaint[a];0!=i.IsShow&&e.push(this.ChartPaint[a])}for(var a in this.OverlayChartPaint)e.push(this.OverlayChartPaint[a]);for(var a in e){var r=e[a],n=r.GetMaxMin();if(null!=n&&null!=n.Max&&null!=n.Min){var o=null;for(var s in t)if(t[s].Frame==r.ChartFrame){o=t[s];break}o?(o.Range.Max<n.Max&&(o.Range.Max=n.Max),o.Range.Min>n.Min&&(o.Range.Min=n.Min)):(o={},o.Frame=r.ChartFrame,o.Range=n,t.push(o))}}for(var a in t){var i=t[a];i.Frame&&i.Range&&(null!=i.Range.Max&&null!=i.Range.Min&&(i.Frame.YSpecificMaxMin?(i.Frame.HorizontalMax=i.Frame.YSpecificMaxMin.Max,i.Frame.HorizontalMin=i.Frame.YSpecificMaxMin.Min):(i.Frame.HorizontalMax=i.Range.Max,i.Frame.HorizontalMin=i.Range.Min),i.Frame.XYSplit=!0))}for(var a in this.Frame.SubFrame){var l=this.Frame.SubFrame[a];for(var s in l.OverlayIndex){l.OverlayIndex[s].UpdateFrameMaxMin()}}},this.DataMoveLeft=function(){var t=null;return!!(t=this.Frame.Data?this.Frame.SubFrame[0].Frame.Data:this.Frame.Data)&&(!(t.DataOffset<=0)&&(--t.DataOffset,!0))},this.DataMoveRight=function(){var t=null;if(!(t=this.Frame.Data?this.Frame.SubFrame[0].Frame.Data:this.Frame.Data))return!1;var e=0;return!!(e=this.Frame.XPointCount?this.Frame.XPointCount:this.Frame.SubFrame[0].Frame.XPointCount)&&(!(e+t.DataOffset>=t.Data.length)&&(++t.DataOffset,!0))},this.UpdataDataoffset=function(){var t=null;if(t=this.Frame.Data?this.Frame.Data:this.Frame.SubFrame[0].Frame.Data){for(var e in this.ChartPaint){var a=this.ChartPaint[e];a.Data&&(a.Data.DataOffset=t.DataOffset)}for(var e in this.OverlayChartPaint){var a=this.OverlayChartPaint[e];a.Data&&(a.Data.DataOffset=t.DataOffset)}for(var e in this.Frame.SubFrame){var i=this.Frame.SubFrame[e];for(var r in i.OverlayIndex){var n=i.OverlayIndex[r];for(var o in n.ChartPaint){var a=n.ChartPaint[o];a.Data&&(a.Data.DataOffset=t.DataOffset)}}}}},this.DataMove=function(t,e){var a=t;if((t=parseInt(t/this.StepPixel))<=0)return!1;var i=null;if(!(i=this.Frame.Data?this.Frame.SubFrame[0].Frame.Data:this.Frame.Data))return!1;var r=0;if(!(r=this.Frame.XPointCount?this.Frame.XPointCount:this.Frame.SubFrame[0].Frame.XPointCount))return!1;if(this.Frame.SubFrame&&this.Frame.SubFrame.length>0&&this.Frame.SubFrame[0].Frame){var n=this.Frame.SubFrame[0].Frame;(n.DataWidth<=1||n.DistanceWidth<=1)&&(t=a*this.StepPixel)}if(e){if(this.RightSpaceCount>0){if(r+i.DataOffset>=i.Data.length+this.RightSpaceCount-1)return!1;i.DataOffset+=t,i.DataOffset+r>=i.Data.length+this.RightSpaceCount&&(i.DataOffset=i.Data.length-(r-this.RightSpaceCount))}else{if(r+i.DataOffset>=i.Data.length)return!1;i.DataOffset+=t,i.DataOffset+r>=i.Data.length&&(i.DataOffset=i.Data.length-r)}return!0}return!(i.DataOffset<=0)&&(i.DataOffset-=t,i.DataOffset<0&&(i.DataOffset=0),!0)},this.GetSubFrameIndex=function(t,e){if(!this.Frame.SubFrame||this.Frame.SubFrame.length<=0)return-1;for(var a in this.Frame.SubFrame){var i=this.Frame.SubFrame[a].Frame,r=i.ChartBorder.GetLeft(),n=i.ChartBorder.GetTop(),o=i.ChartBorder.GetHeight(),s=i.ChartBorder.GetWidth();if(this.Canvas.beginPath(),this.Canvas.rect(r,n,s,o),this.Canvas.isPointInPath(t,e))return parseInt(a)}return 0},this.GetDataIndexByPoint=function(t){var e=this.Frame;this.Frame.SubFrame&&this.Frame.SubFrame.length>0&&(e=this.Frame.SubFrame[0].Frame);var a=null;if((a=this.Frame.Data?this.Frame.Data:this.Frame.SubFrame[0].Frame.Data)&&e){var i=parseInt(e.GetXData(t));return a.DataOffset+i}},this.GetSelectRectData=function(t){if(Math.abs(t.XStart-t.XEnd)<5)return!1;var e=null;if(!(e=this.Frame.Data?this.Frame.Data:this.Frame.SubFrame[0].Frame.Data))return!1;var a=this.GetDataIndexByPoint(t.XStart),i=this.GetDataIndexByPoint(t.XEnd);return!(Math.abs(a-i)<2)&&(t.Data=e,a>i?(t.Start=i,t.End=a):(t.Start=a,t.End=i),!0)},this.GetChartDrawPictureByPoint=function(t){for(var e in this.ChartDrawPicture){var a=this.ChartDrawPicture[e],i=a.IsPointIn(t.X,t.Y);if(!1!==i&&i>=0)return t.ChartDrawPicture=a,t.PointIndex=i,!0}return!1},this.SaveToImage=function(t,e){if(this.UIElement.width<=0||this.UIElement.height<=0)return null;if(this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash)return null;bi.Chart.Log("[JSChartContainer::SaveToImage]",this.UIElement);var a="rgb(255,255,255)";e&&(a=e),this.Canvas.clearRect(0,0,this.UIElement.width,this.UIElement.height),this.Canvas.fillStyle=a,this.Canvas.fillRect(0,0,this.UIElement.width,this.UIElement.height);var i=u();this.Canvas.lineWidth=i,this.Frame.Draw();for(var r in this.ChartPaint){var n=this.ChartPaint[r];n.IsDrawFirst&&n.Draw()}for(var r in this.ChartPaint){var n=this.ChartPaint[r];n.IsDrawFirst||n.Draw()}for(var r in this.ChartPaintEx){var n=this.ChartPaintEx[r];n.Draw()}for(var r in this.OverlayChartPaint){var n=this.OverlayChartPaint[r];n.Draw()}for(var r in this.ExtendChartPaint){var n=this.ExtendChartPaint[r];n.IsDynamic||0!=n.IsAnimation||n.Draw()}this.Frame.DrawInsideHorizontal&&this.Frame.DrawInsideHorizontal(),this.Frame.DrawLock();for(var r in this.ExtendChartPaint){var n=this.ExtendChartPaint[r];n.IsDynamic&&!1===n.DrawAfterTitle&&n.Draw()}null==this.LastPoint.X&&null==this.LastPoint.Y||this.ChartCorssCursor&&(this.ChartCorssCursor.LastPoint=this.LastPoint,this.ChartCorssCursor.CursorIndex=this.CursorIndex);for(var r in this.TitlePaint){var n=this.TitlePaint[r];n.IsDynamic&&(n.CursorIndex=this.CursorIndex,n.Draw())}for(var r in this.ExtendChartPaint){var n=this.ExtendChartPaint[r];n.IsDynamic&&!0===n.DrawAfterTitle&&0==n.IsAnimation&&n.Draw()}if(this.EnableAnimation)for(var r in this.ExtendChartPaint){var n=this.ExtendChartPaint[r];!0===n.IsAnimation&&n.Draw()}for(var r in this.ChartDrawPicture){var n=this.ChartDrawPicture[r];n.Draw()}this.CurrentChartDrawPicture&&10!=this.CurrentChartDrawPicture.Status&&this.CurrentChartDrawPicture.Draw();var o=this.UIElement.toDataURL(t||"image/png",1);return bi.Chart.Log("[JSChartContainer::SaveToImage] data= ",o),o},this.SaveToImageUrl=function(t,e){t||(t={Format:"image/png",ColorGB:"rgb(255,255,255)"});var a=this.SaveToImage(t.Format,t.ColorGB),i={Base64:a,BucketName:"downloadcache",Path:"hqchart/hq_snapshot"},r=Xi.Domain+"/API/FileUploadForBase64";n.HttpRequest({url:r,method:"POST",dataType:"json",data:i,success:function(t){bi.Chart.Log("[JSChartContainer::SaveToImageUrl] recv data",t);var a={Path:t.relativeurl,Domain:"https://opensourcedownload.zealink.com"};a.Url=a.Domain+"/"+a.Path,e&&e(!0,a,"")},error:function(t){bi.Chart.Log("[JSChartContainer::SaveToImageUrl] error ",t),e&&e(!1,null,"upload failed")}})},this.SetLanguage=function(t){var e=null;switch(t){case"EN":e=Ki.LANGUAGE_ENGLISH_ID;break;case"CN":e=Ki.LANGUAGE_CHINESE_ID;break;default:return void console.warn("[JSChartContainer::SetLanguage] language="+t+" error")}if(this.LanguageID!=e){this.LanguageID=e,this.ChartCorssCursor&&this.ChartCorssCursor.StringFormatY&&(this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID);for(var a in this.TitlePaint){var i=this.TitlePaint[a];i&&(i.LanguageID=this.LanguageID)}this.Frame&&this.Frame.SetLanguage&&this.Frame.SetLanguage(this.LanguageID),this.Frame.SetSizeChage(!0),this.Draw()}},this.ReloadTiltePaintResource=function(t){for(var e in this.TitlePaint){var a=this.TitlePaint[e];a.ReloadResource&&a.ReloadResource(t)}},this.ReloadResource=function(t){this.ReloadBorder(t),this.ReloadTiltePaintResource(t.Resource),this.ReloadChartPaint(t.Resource),this.ReloadFrame(t.Resource),this.ReloadChartCorssCursor(t,t.Resource)},this.ReloadBorder=function(t){if(t){var e=u();if(t.Border){var a=t.Border;Ht.IsNumber(a.Left)&&(this.Frame.ChartBorder.Left=a.Left*e),Ht.IsNumber(a.Right)&&(this.Frame.ChartBorder.Right=a.Right*e),Ht.IsNumber(a.Top)&&(this.Frame.ChartBorder.Top=a.Top*e),Ht.IsNumber(a.Bottom)&&(this.Frame.ChartBorder.Bottom=a.Bottom*e)}for(var i in t.Windows){var a=t.Windows[i];if(!(i>=this.Frame.SubFrame.length)){var r=this.Frame.SubFrame[i],n=r.Frame.ChartBorder;Ht.IsNumber(a.TitleHeight)&&(n.TitleHeight=a.TitleHeight*e)}}for(var i in t.Frame){var a=t.Frame[i];if(!(i>=this.Frame.SubFrame.length)){var r=this.Frame.SubFrame[i],n=r.Frame.ChartBorder;a.TopSpace>=0&&(n.TopSpace=a.TopSpace*e),a.BottomSpace>=0&&(n.BottomSpace=a.BottomSpace*e)}}}},this.ReloadFrame=function(t){for(var e in this.Frame.SubFrame){var a=this.Frame.SubFrame[e],i=a.Frame;i&&i.ReloadResource&&i.ReloadResource(t)}},this.ReloadChartPaint=function(t){for(var e in this.ChartPaint){var a=this.ChartPaint[e];a&&a.ReloadResource&&a.ReloadResource(t)}},this.ReloadChartCorssCursor=function(t,e){var a=u();if(t&&t.CorssCursor){var i=t.CorssCursor;Ht.IsNumber(i.TitleHeight)&&(this.ChartCorssCursor.TextHeight=i.TitleHeight*a)}this.ChartCorssCursor.ReloadResource&&this.ChartCorssCursor.ReloadResource(e)},this.SetDepthMapData=function(t,e){for(var a in t){var i=t[a];for(var r in this.ExtendChartPaint){var n=this.ExtendChartPaint[r];if(n.ID==i.ID){n.Data=i.Data;break}}}e&&this.Draw()}}function u(){return"undefined"==typeof window?1:window.devicePixelRatio||1}function c(t){this.JSChartContainer&&this.JSChartContainer.OnKeyDown&&this.JSChartContainer.OnKeyDown(t)}function d(t,e){var a=1;if(isNaN(t))return t;t<0&&(a=-1);var i=Math.pow(10,e),r=Math.round(Math.abs(t)*i)/i*a;if(/^(\d+(?:\.\d+)?)(e)([\-]?\d+)$/.test(r))var n=r.toFixed2(e);else var n=r.toString();var o=n.indexOf(".");for(o<0&&e>0&&(o=n.length,n+=".");n.length<=o+e;)n+="0";return n}function f(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function C(){var t={},e=0,a=0;return document.documentElement&&document.documentElement.scrollTop?(e=document.documentElement.scrollTop,a=document.documentElement.scrollLeft):document.body&&(e=document.body.scrollTop,a=document.body.scrollLeft),t.Top=e,t.Left=a,t}function p(t){return parseInt(t)+.5}function D(t){return.5+t<<0}function m(){this.X,this.Y}function v(){this.Data,this.JSChartContainer,this.Start,this.End,this.XStart,this.XEnd}function g(){this.Value,this.Message=new Array,this.TextColor=Xi.FrameSplitTextColor,this.Font=Xi.FrameSplitTextFont,this.LineColor=Xi.FrameSplitPen,this.LineType=1}function S(){this.UIElement,this.Left=50,this.Right=80,this.Top=50,this.Bottom=50,this.TitleHeight=24,this.TopSpace=0,this.BottomSpace=0,this.GetChartWidth=function(){return this.UIElement.width},this.GetChartHeight=function(){return this.UIElement.height},this.GetLeft=function(){return this.Left},this.GetRight=function(){return this.UIElement.width-this.Right},this.GetTop=function(){return this.Top},this.GetTopEx=function(){return this.Top+this.TitleHeight+this.TopSpace},this.GetTopTitle=function(){return this.Top+this.TitleHeight},this.GetBottom=function(){return this.UIElement.height-this.Bottom},this.GetBottomEx=function(){return this.UIElement.height-this.Bottom-this.BottomSpace},this.GetWidth=function(){return this.UIElement.width-this.Left-this.Right},this.GetHeight=function(){return this.UIElement.height-this.Top-this.Bottom},this.GetHeightEx=function(){return this.UIElement.height-this.Top-this.Bottom-this.TitleHeight-this.TopSpace-this.BottomSpace},this.GetRightEx=function(){return this.UIElement.width-this.Right-this.TitleHeight-this.TopSpace},this.GetWidthEx=function(){return this.UIElement.width-this.Left-this.Right-this.TitleHeight-this.TopSpace-this.BottomSpace},this.GetLeftEx=function(){return this.Left+this.BottomSpace},this.GetRightTitle=function(){return this.UIElement.width-this.Right-this.TitleHeight},this.GetTitleHeight=function(){return this.TitleHeight}}function I(){this.HorizontalInfo=new Array,this.VerticalInfo=new Array,this.ClassName="IChartFramePainting",this.Canvas,this.Identify,this.ChartBorder,this.PenBorder=Xi.FrameBorderPen,this.TitleBGColor=Xi.FrameTitleBGColor,this.IsShow=!0,this.SizeChange=!0,this.XYSplit=!0,this.HorizontalMax,this.HorizontalMin,this.XPointCount=10,this.YSplitOperator,this.XSplitOperator,this.Data,this.IsLocked=!1,this.LockPaint=null,this.YSpecificMaxMin=null,this.IsShowBorder=!0,this.Draw=function(){this.DrawFrame(),this.DrawBorder(),this.SizeChange=!1,this.XYSplit=!1},this.DrawFrame=function(){},this.DrawBorder=function(){if(this.IsShowBorder){var t=p(this.ChartBorder.GetLeft()),e=p(this.ChartBorder.GetTop()),a=p(this.ChartBorder.GetRight()),i=p(this.ChartBorder.GetBottom()),r=a-t,n=i-e;this.Canvas.strokeStyle=this.PenBorder,this.Canvas.strokeRect(t,e,r,n)}},this.DrawTitleBG=function(){if(!(this.ChartBorder.TitleHeight<=0)){var t=p(this.ChartBorder.GetLeft()),e=p(this.ChartBorder.GetTop()),a=p(this.ChartBorder.GetRight()),i=p(this.ChartBorder.GetTopTitle()),r=a-t,n=i-e;this.Canvas.fillStyle=this.TitleBGColor,this.Canvas.fillRect(t,e,r,n)}},this.DrawLock=function(){this.IsLocked&&(null==this.LockPaint&&(this.LockPaint=new bt),this.LockPaint.Canvas=this.Canvas,this.LockPaint.ChartBorder=this.ChartBorder,this.LockPaint.ChartFrame=this,this.LockPaint.Draw(!0))},this.CalculateLock=function(){this.IsLocked&&(null==this.LockPaint&&(this.LockPaint=new bt),this.LockPaint.Canvas=this.Canvas,this.LockPaint.ChartBorder=this.ChartBorder,this.LockPaint.ChartFrame=this,this.LockPaint.Draw(!1))},this.SetLock=function(t){if(!t)return void(this.IsLocked=!1);this.IsLocked=!0,this.LockPaint||(this.LockPaint=new bt),t.Callback&&(this.LockPaint.Callback=t.Callback),t.IndexName&&(this.LockPaint.IndexName=t.IndexName),t.ID&&(this.LockPaint.LockID=t.ID),t.BG&&(this.LockPaint.BGColor=t.BG),t.Text&&(this.LockPaint.Title=t.Text),t.TextColor&&(this.LockPaint.TextColor=t.TextColor),t.Font&&(this.LockPaint.Font=t.Font),t.Count&&(this.LockPaint.LockCount=t.Count),t.MinWidth>0&&(this.LockPaint.MinWidth=t.MinWidth)},this.GetLockRect=function(){return this.IsLocked&&this.LockPaint?this.LockPaint.LockRect:null},this.ReloadResource=function(t){for(var e in this.HorizontalInfo){var a=this.HorizontalInfo[e];a.Font&&(a.Font=Xi.FrameSplitTextFont)}for(var e in this.VerticalInfo){var a=this.VerticalInfo[e];a.Font&&(a.Font=Xi.FrameSplitTextFont)}}}function x(){this.newMethod=I,this.newMethod(),delete this.newMethod,this.Snapshot=function(){},this.SetSizeChage=function(t){this.SizeChange=t,this.Position={X:this.ChartBorder.UIElement.offsetLeft,Y:this.ChartBorder.UIElement.offsetTop,W:this.ChartBorder.UIElement.clientWidth,H:this.ChartBorder.UIElement.clientHeight}}}function T(){this.newMethod=I,this.newMethod(),delete this.newMethod,this.DataWidth=50*u(),this.DistanceWidth=10*u(),this.MinXDistance=30*u(),this.MinYDistance=10*u(),this.CoordinateType=0,this.IsShowYText=[!0,!0],this.XBottomOffset=Xi.Frame.XBottomOffset,this.YTextPosition=[0,0],this.DrawDepthMapCallback,this.DrawFrame=function(){if(this.XPointCount>0){var t=this.ChartBorder.GetWidth()/(6*this.XPointCount);this.DistanceWidth=2*t,this.DataWidth=4*t}this.DrawHorizontal(),this.DrawVertical()},this.GetYFromData=function(t,e){if(!1===e){if(1==this.CoordinateType){var a=this.ChartBorder.GetHeightEx()*(t-this.HorizontalMin)/(this.HorizontalMax-this.HorizontalMin);return this.ChartBorder.GetTopEx()+a}var a=this.ChartBorder.GetHeightEx()*(t-this.HorizontalMin)/(this.HorizontalMax-this.HorizontalMin);return this.ChartBorder.GetBottomEx()-a}if(1==this.CoordinateType){if(t<=this.HorizontalMin)return this.ChartBorder.GetTopEx();if(t>=this.HorizontalMax)return this.ChartBorder.GetBottomEx();var a=this.ChartBorder.GetHeightEx()*(t-this.HorizontalMin)/(this.HorizontalMax-this.HorizontalMin);return this.ChartBorder.GetTopEx()+a}if(t<=this.HorizontalMin)return this.ChartBorder.GetBottomEx();if(t>=this.HorizontalMax)return this.ChartBorder.GetTopEx();var a=this.ChartBorder.GetHeightEx()*(t-this.HorizontalMin)/(this.HorizontalMax-this.HorizontalMin);return this.ChartBorder.GetBottomEx()-a},this.DrawHorizontal=function(){for(var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRight(),a=this.ChartBorder.GetBottom(),i=this.ChartBorder.GetTopTitle(),r=this.ChartBorder.Right,n=this.ChartBorder.Left,o=n>10&&!0===this.IsShowYText[0]&&2!=this.YTextPosition[0],s=r>10&&!0===this.IsShowYText[1]&&2!=this.YTextPosition[1],l=null,h=this.HorizontalInfo.length-1;h>=0;--h){var u=this.HorizontalInfo[h],c=this.GetYFromData(u.Value);null!=c&&Math.abs(c-l)<this.MinYDistance||(this.Canvas.strokeStyle=u.LineColor,2==u.LineType?(this.Canvas.save(),this.Canvas.setLineDash([5,5]),this.Canvas.beginPath(),this.Canvas.moveTo(t,p(c)),this.Canvas.lineTo(e,p(c)),this.Canvas.stroke(),this.Canvas.restore()):(this.Canvas.beginPath(),this.Canvas.moveTo(t,p(c)),this.Canvas.lineTo(e,p(c)),this.Canvas.stroke()),this.Canvas.textBaseline=c>=a-2?"bottom":c<=i+2?"top":"middle",null!=u.Message[0]&&o&&(null!=u.Font&&(this.Canvas.font=u.Font),this.Canvas.fillStyle=u.TextColor,this.Canvas.textAlign="right",this.Canvas.fillText(u.Message[0],t-2,c)),null!=u.Message[1]&&s&&(null!=u.Font&&(this.Canvas.font=u.Font),this.Canvas.fillStyle=u.TextColor,this.Canvas.textAlign="left",this.Canvas.fillText(u.Message[1],e+2,c)),l=c)}},this.DrawInsideHorizontal=function(){if(!0!==this.IsHScreen&&(!1!==this.IsShowYText[0]||!1!==this.IsShowYText[1])){var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRight(),a=this.ChartBorder.GetBottom(),i=this.ChartBorder.GetTopTitle(),r=this.ChartBorder.Right,n=this.ChartBorder.Left,o=(this.ChartBorder.TitleHeight,(n<10||2==this.YTextPosition[0])&&!0===this.IsShowYText[0]),s=(r<10||2==this.YTextPosition[1])&&!0===this.IsShowYText[1];if(o||s)for(var l=u(),h=null,c=this.HorizontalInfo.length-1;c>=0;--c){var d=this.HorizontalInfo[c],f=this.GetYFromData(d.Value);if(!(null!=f&&null!=h&&Math.abs(f-h)<this.MinYDistance)){if(null!=d.Message[0]&&o){null!=d.Font&&(this.Canvas.font=d.Font),this.Canvas.fillStyle=d.TextColor,this.Canvas.textAlign="left",this.Canvas.textBaseline=f>=a-2?"bottom":f<=i+2?"top":"middle";var C={X:t,Y:f,Text:{BaseLine:this.Canvas.textBaseline,TextAlign:this.Canvas.textAlign,Font:this.Canvas.font,Value:d.Message[0]}};this.IsOverlayMaxMin&&this.IsOverlayMaxMin(C)||this.Canvas.fillText(d.Message[0],t+1*l,f)}if(null!=d.Message[1]&&s){null!=d.Font&&(this.Canvas.font=d.Font),this.Canvas.fillStyle=d.TextColor,this.Canvas.textAlign="right",this.Canvas.textBaseline=f>=a-2?"bottom":f<=i+2?"top":"middle";var p=this.Canvas.measureText(d.Message[1]).width,C={X:e-p,Y:f,Text:{BaseLine:this.Canvas.textBaseline,TextAlign:this.Canvas.textAlign,Font:this.Canvas.font,Value:d.Message[1]}};this.IsOverlayMaxMin&&this.IsOverlayMaxMin(C)||this.Canvas.fillText(d.Message[1],e-1*l,f)}h=f}}}},this.GetXFromIndex=function(t){var e=this.XPointCount;return 1==e?0==t?this.ChartBorder.GetLeft():this.ChartBorder.GetRight():e<=0?this.ChartBorder.GetLeft():t>=e?this.ChartBorder.GetRight():this.ChartBorder.GetLeft()+this.ChartBorder.GetWidth()*t/e},this.DrawVertical=function(){var t=this.ChartBorder.GetTopTitle(),e=this.ChartBorder.GetBottom(),a=this.ChartBorder.GetRight(),i=(u(),null),r=null;for(var n in this.VerticalInfo){var o=this.GetXFromIndex(this.VerticalInfo[n].Value);if(o>a)break;if(!(null!=i&&Math.abs(o-i)<this.MinXDistance)){if(this.VerticalInfo[n].LineType>0&&(this.Canvas.strokeStyle=this.VerticalInfo[n].LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(p(o),t),this.Canvas.lineTo(p(o),e),this.Canvas.stroke()),null!=this.VerticalInfo[n].Message[0]){null!=this.VerticalInfo[n].Font&&(this.Canvas.font=this.VerticalInfo[n].Font);var s=0;this.Canvas.fillStyle=this.VerticalInfo[n].TextColor;var l=this.Canvas.measureText(this.VerticalInfo[n].Message[0]).width;o<l/2?(this.Canvas.textAlign="left",this.Canvas.textBaseline="top",s=o):o+l/2>=this.ChartBorder.GetChartWidth()?(this.Canvas.textAlign="right",this.Canvas.textBaseline="top",s=o-l):(this.Canvas.textAlign="center",this.Canvas.textBaseline="top",s=o-l/2),(null==r||s>r)&&(this.Canvas.fillText(this.VerticalInfo[n].Message[0],o,e+this.XBottomOffset),r=s+l)}i=o}}},this.GetYData=function(t){return 1==this.CoordinateType?t<this.ChartBorder.GetTopEx()?this.HorizontalMin:t>this.ChartBorder.GetBottomEx()?this.HorizontalMax:(t-this.ChartBorder.GetTopEx())/this.ChartBorder.GetHeightEx()*(this.HorizontalMax-this.HorizontalMin)+this.HorizontalMin:t<this.ChartBorder.GetTopEx()?this.HorizontalMax:t>this.ChartBorder.GetBottomEx()?this.HorizontalMin:(this.ChartBorder.GetBottomEx()-t)/this.ChartBorder.GetHeightEx()*(this.HorizontalMax-this.HorizontalMin)+this.HorizontalMin},this.GetXData=function(t){return t<=this.ChartBorder.GetLeft()?0:t>=this.ChartBorder.GetRight()?this.XPointCount:(t-this.ChartBorder.GetLeft())*(1*this.XPointCount/this.ChartBorder.GetWidth())},this.DrawCustomItem=function(t){if((t.Message[1]||t.Message[0])&&!(t.Value>this.HorizontalMax||t.Value<this.HorizontalMin)){var e=this.ChartBorder.GetLeft(),a=this.ChartBorder.GetRight(),i=this.ChartBorder.GetBottom(),r=this.ChartBorder.GetTopTitle(),n=this.ChartBorder.Right,o=this.ChartBorder.Left;this.ChartBorder.TitleHeight;this.IsHScreen&&(o=this.ChartBorder.Top,n=this.ChartBorder.Bottom,r=this.ChartBorder.GetTop(),i=this.ChartBorder.GetBottom());var s=u(),l=18*s,h=this.GetYFromData(t.Value);if(t.Message[0])if(o<10){null!=t.Font&&(this.Canvas.font=t.Font),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle";var c=this.Canvas.measureText(t.Message[0]).width+2*s,d=t.LineColor,f=this.RGBToStruct(t.LineColor);if(f&&(d="rgba("+f.R+", "+f.G+", "+f.B+", "+Xi.FrameLatestPrice.BGAlpha+")"),this.Canvas.fillStyle=d,this.IsHScreen){var C=r,p=h-l/2-1*s;this.Canvas.fillRect(p,C,l,c),this.DrawHScreenText({X:h,Y:C},{Text:t.Message[0],Color:t.TextColor,XOffset:1*s,YOffset:2*s}),-1!=t.LineType&&this.DrawDotLine(C+c,i,h,t.LineColor)}else{var C=h-l/2-1*s,p=e+1*s;this.Canvas.fillRect(p,C,c,l),this.Canvas.fillStyle=t.TextColor,this.Canvas.fillText(t.Message[0],p+1*s,h),-1!=t.LineType&&this.DrawDotLine(p+c,a,h,t.LineColor)}}else{null!=t.Font&&(this.Canvas.font=t.Font),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle";var c=this.Canvas.measureText(t.Message[0]).width+2*s;if(this.Canvas.fillStyle=t.LineColor,this.IsHScreen){var C=r-c,p=h-l/2-1*s;this.Canvas.fillRect(p,C,l,c),this.DrawHScreenText({X:h,Y:C},{Text:t.Message[0],Color:t.TextColor,XOffset:1*s,YOffset:2*s}),-1!=t.LineType&&this.DrawDotLine(C+c,i,h,t.LineColor)}else{var C=h-l/2-1*s;this.Canvas.fillRect(e-c,C,c,l),this.Canvas.fillStyle=t.TextColor,this.Canvas.fillText(t.Message[0],e-1*s,h),-1!=t.LineType&&this.DrawDotLine(e,a,h,t.LineColor)}}else if(t.Message[1])if(n<10){null!=t.Font&&(this.Canvas.font=t.Font),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle";var c=this.Canvas.measureText(t.Message[1]).width+2*s,d=t.LineColor,f=this.RGBToStruct(t.LineColor);if(f&&(d="rgba("+f.R+", "+f.G+", "+f.B+", "+Xi.FrameLatestPrice.BGAlpha+")"),this.Canvas.fillStyle=d,this.IsHScreen){var C=i-c,p=h-l/2-1*s;this.Canvas.fillRect(p,C,l,c),this.DrawHScreenText({X:h,Y:C},{Text:t.Message[1],Color:t.TextColor,XOffset:1*s,YOffset:2*s}),-1!=t.LineType&&this.DrawDotLine(r,C,h,t.LineColor)}else{var C=h-l/2-1*s,p=a-c;this.Canvas.fillRect(p,C,c,l),this.Canvas.fillStyle=t.TextColor,this.Canvas.fillText(t.Message[1],p+1*s,h),-1!=t.LineType&&this.DrawDotLine(e,p,h,t.LineColor)}}else{null!=t.Font&&(this.Canvas.font=t.Font),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle";var c=this.Canvas.measureText(t.Message[1]).width+2*s;if(this.Canvas.fillStyle=t.LineColor,this.IsHScreen){var C=i,p=h-l/2-1*s;this.Canvas.fillRect(p,C,l,c),this.DrawHScreenText({X:h,Y:C},{Text:t.Message[1],Color:t.TextColor,XOffset:1*s,YOffset:2*s}),-1!=t.LineType&&this.DrawDotLine(r,C,h,t.LineColor)}else{var C=h-l/2-1*s;this.Canvas.fillRect(a,C,c,l),this.Canvas.fillStyle=t.TextColor,this.Canvas.fillText(t.Message[1],a+1*s,h),-1!=t.LineType&&this.DrawDotLine(e,a,h,t.LineColor)}}}},this.DrawDotLine=function(t,e,a,i){var r=u();this.Canvas.save(),this.Canvas.strokeStyle=i,this.Canvas.setLineDash([5*r,5*r]),this.Canvas.beginPath(),this.IsHScreen?(this.Canvas.moveTo(p(a),t),this.Canvas.lineTo(p(a),e)):(this.Canvas.moveTo(t,p(a)),this.Canvas.lineTo(e,p(a))),this.Canvas.stroke(),this.Canvas.restore()},this.DrawHScreenText=function(t,e){this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=e.Color,this.Canvas.save(),this.Canvas.translate(t.X,t.Y),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(e.Text,e.XOffset,e.YOffset),this.Canvas.restore()},this.RGBToStruct=function(t){if(/^(rgb|RGB)/.test(t)){var e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),a={};return 3!=e.length?null:(a.R=Number(e[0]),a.G=Number(e[1]),a.B=Number(e[2]),a)}return null}}function A(){this.newMethod=T,this.newMethod(),delete this.newMethod,this.MinuteCount=243,this.IsBeforeData=!1,this.BeforeBGColor=Xi.Minute.BeforeBGColor,this.CustomHorizontalInfo=[],this.RightFrame=null,this.DrawFrame=function(){this.SplitXYCoordinate(),this.IsBeforeData&&this.DrawBeforeDataBG(),this.DrawTitleBG(),this.DrawHorizontal(),this.DrawVertical()},this.DrawBeforeDataBG=function(){var t=p(this.ChartBorder.GetLeft()),e=p(this.ChartBorder.GetTopEx()),a=this.GetXFromIndex(14),i=p(this.ChartBorder.GetBottom()),r=a-t,n=i-e;this.Canvas.fillStyle=this.BeforeBGColor,this.Canvas.fillRect(t,e,r,n)},this.SplitXYCoordinate=function(){0!=this.XYSplit&&(null!=this.YSplitOperator&&this.YSplitOperator.Operator(),null!=this.XSplitOperator&&this.XSplitOperator.Operator())},this.GetXFromIndex=function(t){var e=this.XPointCount-1;return 1==e?0==t?this.ChartBorder.GetLeft():this.ChartBorder.GetRight():e<=0?this.ChartBorder.GetLeft():t>=e?this.ChartBorder.GetRight():this.ChartBorder.GetLeft()+this.ChartBorder.GetWidth()*t/e},this.GetXData=function(t){var e=this.XPointCount-1;return e<0&&(e=0),t<=this.ChartBorder.GetLeft()?0:t>=this.ChartBorder.GetRight()?e:(t-this.ChartBorder.GetLeft())*(1*e/this.ChartBorder.GetWidth())},this.DrawCustomHorizontal=function(){for(var t in this.CustomHorizontalInfo){var e=this.CustomHorizontalInfo[t];switch(e.Type){case 1:this.DrawCustomItem(e)}}}}function b(){this.newMethod=A,this.newMethod(),delete this.newMethod,this.IsShow=!0,this.Draw=function(){this.SplitXYCoordinate(),this.IsShow,this.SizeChange=!1,this.XYSplit=!1}}function E(){this.newMethod=A,this.newMethod(),delete this.newMethod,this.IsHScreen=!0,this.DrawTitleBG=function(){if(!(this.ChartBorder.TitleHeight<=0)){var t=p(this.ChartBorder.GetRightEx()),e=p(this.ChartBorder.GetTop()),a=p(this.ChartBorder.GetBottom()),i=this.ChartBorder.TitleHeight,r=a-e;this.Canvas.fillStyle=this.TitleBGColor,this.Canvas.fillRect(t,e,i,r)}},this.DrawBeforeDataBG=function(){var t=p(this.ChartBorder.GetLeft()),e=p(this.ChartBorder.GetRightEx()),a=p(this.ChartBorder.GetTop()),i=this.GetXFromIndex(14),r=e-t,n=i-a;this.Canvas.fillStyle=this.BeforeBGColor,this.Canvas.fillRect(t,a,r,n)},this.GetYData=function(t){return t<this.ChartBorder.GetLeft()?this.HorizontalMin:t>this.ChartBorder.GetRightEx()?this.HorizontalMax:(t-this.ChartBorder.GetLeft())/this.ChartBorder.GetWidthEx()*(this.HorizontalMax-this.HorizontalMin)+this.HorizontalMin},this.GetXData=function(t){return t<=this.ChartBorder.GetTop()?0:t>=this.ChartBorder.GetBottom()?this.XPointCount:(t-this.ChartBorder.GetTop())*(1*this.XPointCount/this.ChartBorder.GetHeight())},this.GetXFromIndex=function(t){var e=this.XPointCount-1;return 1==e?0==t?this.ChartBorder.GetTop():this.ChartBorder.GetBottom():e<=0?this.ChartBorder.GetTop():t>=e?this.ChartBorder.GetBottom():this.ChartBorder.GetTop()+this.ChartBorder.GetHeight()*t/e},this.GetYFromData=function(t){if(t<=this.HorizontalMin)return this.ChartBorder.GetLeft();if(t>=this.HorizontalMax)return this.ChartBorder.GetRightEx();var e=this.ChartBorder.GetWidthEx()*(t-this.HorizontalMin)/(this.HorizontalMax-this.HorizontalMin);return this.ChartBorder.GetLeft()+e},this.DrawHorizontal=function(){for(var t=this.ChartBorder.GetTop(),e=this.ChartBorder.GetBottom(),a=this.ChartBorder.GetLeft(),i=this.ChartBorder.GetRight(),r=this.ChartBorder.Top,n=this.ChartBorder.Bottom,o=null,s=this.HorizontalInfo.length-1;s>=0;--s){var l=this.HorizontalInfo[s],h=this.GetYFromData(l.Value);if(!(null!=h&&Math.abs(h-o)<this.MinYDistance)){if(this.Canvas.strokeStyle=l.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(p(h),t),this.Canvas.lineTo(p(h),e),this.Canvas.stroke(),h>=i-2)this.Canvas.textBaseline="top",h=i;else if(h<=a+2){if(this.Canvas.textBaseline="bottom",null!=(h=a)&&Math.abs(h-o)<2*this.MinYDistance)continue}else this.Canvas.textBaseline="middle";if(null!=l.Message[0]&&r>10){null!=l.Font&&(this.Canvas.font=l.Font),this.Canvas.fillStyle=l.TextColor,this.Canvas.textAlign="right";var u=h,c=t;this.Canvas.save(),this.Canvas.translate(u,c),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(l.Message[0],-2,0),this.Canvas.restore()}if(null!=l.Message[1]&&n>10){null!=l.Font&&(this.Canvas.font=l.Font),this.Canvas.fillStyle=l.TextColor,this.Canvas.textAlign="left";var u=h,c=e;this.Canvas.save(),this.Canvas.translate(u,c),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(l.Message[1],2,0),this.Canvas.restore()}o=h}}},this.DrawVertical=function(){var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRightEx(),a=this.ChartBorder.GetBottom(),i=null;for(var r in this.VerticalInfo){var n=this.GetXFromIndex(this.VerticalInfo[r].Value);if(n>a)break;if(!(null!=i&&Math.abs(n-i)<this.MinXDistance)){if(this.Canvas.strokeStyle=this.VerticalInfo[r].LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(t,p(n)),this.Canvas.lineTo(e,p(n)),this.Canvas.stroke(),null!=this.VerticalInfo[r].Message[0]){null!=this.VerticalInfo[r].Font&&(this.Canvas.font=this.VerticalInfo[r].Font),this.Canvas.fillStyle=this.VerticalInfo[r].TextColor;var o=this.Canvas.measureText(this.VerticalInfo[r].Message[0]).width;n<o/2?(this.Canvas.textAlign="left",this.Canvas.textBaseline="top"):n+o/2>=this.ChartBorder.GetChartHeight()?(this.Canvas.textAlign="right",this.Canvas.textBaseline="top"):(this.Canvas.textAlign="center",this.Canvas.textBaseline="top");var s=t,l=n;this.Canvas.save(),this.Canvas.translate(s,l),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(this.VerticalInfo[r].Message[0],0,0),this.Canvas.restore()}i=n}}},this.DrawInsideHorizontal=function(){if(!1!==this.IsShowYText[0]||!1!==this.IsShowYText[1]){var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRightEx(),a=this.ChartBorder.GetTop(),i=this.ChartBorder.GetBottom(),r=this.ChartBorder.Top,n=this.ChartBorder.Bottom,o=(this.ChartBorder.TitleHeight,u());if(r<10*o&&!0===this.IsShowYText[0]||n<10*o&&!0===this.IsShowYText[1])for(var o=u(),s=null,l=this.HorizontalInfo.length-1;l>=0;--l){var h=this.HorizontalInfo[l],c=this.GetYFromData(h.Value);if(!(null!=c&&null!=s&&Math.abs(c-s)<this.MinYDistance)){if(null!=h.Message[0]&&r<10*o&&!0===this.IsShowYText[0]){null!=h.Font&&(this.Canvas.font=h.Font),this.Canvas.fillStyle=h.TextColor,this.Canvas.textAlign="left",this.Canvas.textBaseline=c>=e-2?"top":c<=t+2?"bottom":"middle";var d=(this.Canvas.textBaseline,this.Canvas.textAlign,this.Canvas.font,h.Message[0],c),f=a;this.Canvas.save(),this.Canvas.translate(d,f),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(h.Message[0],-2,0),this.Canvas.restore()}if(null!=h.Message[1]&&n<10*o&&!0===this.IsShowYText[1]){null!=h.Font&&(this.Canvas.font=h.Font),this.Canvas.fillStyle=h.TextColor,this.Canvas.textAlign="right",this.Canvas.textBaseline=c>=e-2?"top":c<=t+2?"bottom":"middle";var C=this.Canvas.measureText(h.Message[1]).width,d=(this.Canvas.textBaseline,this.Canvas.textAlign,this.Canvas.font,h.Message[1],c),f=i;this.Canvas.save(),this.Canvas.translate(d,f),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(h.Message[1],2,0),this.Canvas.restore()}s=c}}}}}function F(){this.newMethod=T,this.newMethod(),delete this.newMethod,this.ClassName="KLineFrame",this.ToolbarID=f(),this.ModifyIndex=!0,this.ChangeIndex=!0,this.CloseIndex=!0,this.OverlayIndex=!1,this.ModifyIndexEvent,this.ChangeIndexEvent,this.ToolbarRect=null,this.LastCalculateStatus={Width:0,XPointCount:0},this.CustomHorizontalInfo=[],this.IsDrawTitleBG=!1,this.CustomVerticalInfo=[],this.DrawCustomVerticalEvent,this.RightSpaceCount=0,this.DrawToolbar=function(){if(this.ChartBorder.UIElement){var t=document.getElementById(this.ToolbarID);if(!t||0!=this.SizeChange){if(t||(t=document.createElement("div"),t.className="klineframe-toolbar",t.id=this.ToolbarID,t.oncontextmenu=function(){return!1},t.setAttribute("identify",this.Identify.toString()),this.ChartBorder.UIElement.parentNode.appendChild(t)),!this.ModifyIndex&&!this.ChangeIndex&&!this.OverlayIndex)return void("none"!=t.style.display&&(t.style.display="none"));var e=u(),a=parseInt(this.ChartBorder.UIElement.parentElement.style.width.replace("px","")),i=(parseInt(this.ChartBorder.UIElement.parentElement.style.height.replace("px","")),this.ChartBorder.GetTitleHeight()),r=a-this.ChartBorder.Right/e-100,n=this.ChartBorder.GetTop()/e;if(!this.ToolbarRect||this.ToolbarRect.Left!=r||this.ToolbarRect.Top!=n||100!=this.ToolbarRect.Width||this.ToolbarRect.Height!=i/e){this.ToolbarRect={Left:r,Top:n,Width:100,Height:i/e};var o="<span class='index_param icon iconfont icon-index_param' id='modifyindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='调整指标参数'></span><span class='index_change icon iconfont icon-change_index' id='changeindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='切换指标'></span><span class='index_overlay icon iconfont icon-overlay_index' id='overlayindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='叠加指标'></span>";0!==this.Identify&&this.CloseIndex&&(o+="<span class='index_close icon iconfont icon-close' id='closeindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='关闭指标窗口'></span>"),t.style.left=r+"px",t.style.top=n+"px",t.style.width="100px",t.style.height=i/e+"px",t.innerHTML=o;this.ChartBorder.UIElement.JSChartContainer,this.Identify;this.ModifyIndex?"function"==typeof this.ModifyIndexEvent&&(0,Ai.default)("#"+t.id+" .index_param").click({Chart:this.ChartBorder.UIElement.JSChartContainer,Identify:this.Identify},this.ModifyIndexEvent):(0,Ai.default)("#"+t.id+" .index_param").hide(),this.ChangeIndex?"function"==typeof this.ChangeIndexEvent&&(0,Ai.default)("#"+t.id+" .index_change").click({Chart:this.ChartBorder.UIElement.JSChartContainer,Identify:this.Identify,IsOverlay:!1},this.ChangeIndexEvent):(0,Ai.default)("#"+t.id+" .index_change").hide(),this.OverlayIndex?(0,Ai.default)("#"+t.id+" .index_overlay").click({Chart:this.ChartBorder.UIElement.JSChartContainer,Identify:this.Identify,IsOverlay:!0},this.ChangeIndexEvent):(0,Ai.default)("#"+t.id+" .index_overlay").hide(),(0,Ai.default)("#"+t.id+" .index_close").click({Chart:this.ChartBorder.UIElement.JSChartContainer,Identify:this.Identify},function(t){var e=t.data.Chart,a=t.data.Identify;e.RemoveIndexWindow(a)}),t.style.display="block"}}}},this.ClearToolbar=function(){var t=document.getElementById(this.ToolbarID);t&&this.ChartBorder.UIElement.parentNode.removeChild(t)},this.DrawFrame=function(){this.SplitXYCoordinate(),1==this.SizeChange&&this.CalculateDataWidth(),this.DrawDepthMapCallback&&this.DrawDepthMapCallback(),this.DrawTitleBG(),this.DrawHorizontal(),this.DrawVertical(),1==this.SizeChange&&this.DrawToolbar()},this.GetXFromIndex=function(t,e){if(!1===e)if(t>=0)for(var a=this.ChartBorder.GetLeft()+2+this.DistanceWidth/2+this.DataWidth/2,i=1;i<=t;++i)a+=this.DistanceWidth+this.DataWidth;else for(var a=this.ChartBorder.GetLeft()+2+this.DistanceWidth/2+this.DataWidth/2,r=Math.abs(t),i=0;i<r;++i)a-=this.DistanceWidth+this.DataWidth;else{t<0&&(t=0),t>this.xPointCount-1&&(t=this.xPointCount-1);for(var a=this.ChartBorder.GetLeft()+2+this.DistanceWidth/2+this.DataWidth/2,i=1;i<=t;++i)a+=this.DistanceWidth+this.DataWidth}return a},this.GetXData=function(t){if(t<=this.ChartBorder.GetLeft())return 0;if(t>=this.ChartBorder.GetRight())return this.XPointCount;for(var e=this.ChartBorder.GetLeft(),a=this.ChartBorder.GetRight(),i=this.DistanceWidth,r=this.DataWidth,n=0,o=e+r+i;o<a&&n<1e4&&!(o>t);)o+=r+i,++n;return n},this.CalculateDataWidth=function(){if(!(this.XPointCount<2)){var t=this.GetFrameWidth()-Xi.FrameMargin;if(!(this.ZoomIndex>0&&this.LastCalculateStatus.Width==t&&this.LastCalculateStatus.XPointCount==this.XPointCount&&(this.DataWidth+this.DistanceWidth)*this.XPointCount<=t)){this.LastCalculateStatus.Width=t,this.LastCalculateStatus.XPointCount=this.XPointCount;for(var e=0;e<ki.length;++e)if((ki[e][0]+ki[e][1])*this.XPointCount<t)return this.ZoomIndex=e,this.DataWidth=ki[e][0],this.DistanceWidth=ki[e][1],this.TrimKLineDataWidth(t),void bi.Chart.Log("[KLineFrame::CalculateDataWidth] ZOOM_SEED, DataWidth, DistanceWidth, XPointCount",ki[this.ZoomIndex],this.DataWidth,this.DistanceWidth,this.XPointCount);this.ZoomIndex=ki.length-1,this.DataWidth=t/this.XPointCount,this.DistanceWidth=0}}},this.TrimKLineDataWidth=function(t){var e=ki[this.ZoomIndex][0],a=ki[this.ZoomIndex][1];if(1==e&&0==a)return void(this.DataWidth=t/this.XPointCount);for(;;){if((this.DistanceWidth+this.DataWidth)*this.XPointCount+this.DistanceWidth>t){this.DistanceWidth-=.01;break}this.DistanceWidth+=.01}},this.IsOverlayMaxMin=function(t){if(!this.ChartKLine)return!1;if(!this.ChartKLine.Max||!this.ChartKLine.Min)return!1;var e=this.Canvas.measureText(t.Text.Value).width+4;"right"===t.Text.TextAlign&&(t.X-=e);var a=this.ChartKLine.Max,i=this.ChartKLine.Min,r=!1,n=!1;if(a.X>=t.X&&a.X<=t.X+e){var o=a.Y+20,s=a.Y-20;(o>=t.Y-20&&o<=t.Y+20||s>=t.Y-20&&s<=t.Y+20)&&(r=!0)}if(1==r)return!0;if(i.X>=t.X&&i.X<=t.X+e){var o=i.Y+20,s=i.Y-20;(o>=t.Y-20&&o<=t.Y+20||s>=t.Y-20&&s<=t.Y+20)&&(n=!0)}return r||n},this.SplitXYCoordinate=function(){0!=this.XYSplit&&(null!=this.YSplitOperator&&this.YSplitOperator.Operator(),null!=this.XSplitOperator&&this.XSplitOperator.Operator())},this.CalculateCount=function(t){var e=this.GetFrameWidth()-Xi.FrameMargin;return parseInt(e/(ki[t][0]+ki[t][1]))},this.ZoomUp=function(t){if(this.ZoomIndex<=0)return!1;if(this.Data.DataOffset<0)return!1;var e=this.Data.Data.length,a=e+this.RightSpaceCount,i=0,r=this.Data.DataOffset+this.XPointCount-1,n=this.Data.DataOffset+t.Index;r>=e&&(i=r-(this.Data.Data.length-1),r=this.Data.Data.length-1,i>this.RightSpaceCount&&(i=this.RightSpaceCount));var o=this.CalculateCount(this.ZoomIndex-1);if(bi.Chart.Log("[KLineFrame::ZoomUp] old status. XPointCount="+o+" ZoomIndex="+this.ZoomIndex+" DataCount= "+this.Data.Data.length+" rightSpaceCount="+i),--this.ZoomIndex,o>=a)o=a,this.XPointCount=o,this.Data.DataOffset=0,bi.Chart.Log("[KLineFrame::ZoomUp] Show all data. XPointCount="+o+" ZoomIndex="+this.ZoomIndex+" DataCount= "+e);else{var s=r-(o-i)+1;if(1==t.ZoomType)var l=this.XPointCount-o+1,h=parseInt(t.Index/this.XPointCount*l),s=this.Data.DataOffset+h;this.XPointCount=o,this.Data.DataOffset=s,this.Data.DataOffset<0&&(this.Data.DataOffset=0),bi.Chart.Log("[KLineFrame::ZoomUp] calculate. XPointCount="+o+" ZoomIndex="+this.ZoomIndex+" DataCount= "+e+" DataOffset="+this.Data.DataOffset)}this.DataWidth=ki[this.ZoomIndex][0],this.DistanceWidth=ki[this.ZoomIndex][1];var u=this.GetFrameWidth()-Xi.FrameMargin;return this.TrimKLineDataWidth(u),this.LastCalculateStatus.XPointCount=this.XPointCount,t.Index=n-this.Data.DataOffset,!0},this.ZoomDown=function(t){if(this.ZoomIndex+1>=ki.length)return!1;if(this.Data.DataOffset<0)return!1;var e=this.Data.Data.length,a=e+this.RightSpaceCount;if(this.XPointCount>=e)return!1;var i=0,r=this.Data.DataOffset+this.XPointCount-1;r>=this.Data.Data.length&&(i=r-(this.Data.Data.length-1),r=this.Data.Data.length-1,i>this.RightSpaceCount&&(i=this.RightSpaceCount));var n=this.CalculateCount(this.ZoomIndex+1),o=this.Data.DataOffset+t.Index;if(bi.Chart.Log("[KLineFrame::ZoomDown] old status. XPointCount="+n+" ZoomIndex="+this.ZoomIndex+" DataCount= "+this.Data.Data.length+" lastCursorIndex="+o+" rightSpaceCount="+i),++this.ZoomIndex,n>=a)n=a,this.XPointCount=n,this.Data.DataOffset=0,bi.Chart.Log("[KLineFrame::ZoomDown] Show all data. XPointCount="+n+" ZoomIndex="+this.ZoomIndex+" DataCount= "+e);else{var s=r-(n-i)+1;if(1==t.ZoomType){var l=n-this.XPointCount+1,h=parseInt(t.Index/this.XPointCount*l),s=this.Data.DataOffset-h;s+(n-this.RightSpaceCount)>=e&&(s=this.Data.DataOffset-l)}this.XPointCount=n,this.Data.DataOffset=s,this.Data.DataOffset<0&&(this.Data.DataOffset=0),bi.Chart.Log("[KLineFrame::ZoomDown] calculate. XPointCount="+n+" ZoomIndex="+this.ZoomIndex+" DataCount= "+e+" DataOffset="+this.Data.DataOffset)}this.DataWidth=ki[this.ZoomIndex][0],this.DistanceWidth=ki[this.ZoomIndex][1];var u=this.GetFrameWidth()-Xi.FrameMargin;return this.TrimKLineDataWidth(u),this.LastCalculateStatus.XPointCount=this.XPointCount,t.Index=o-this.Data.DataOffset,!0},this.GetFrameWidth=function(){return this.IsHScreen?this.ChartBorder.GetHeight():this.ChartBorder.GetWidth()},this.DrawCustomHorizontal=function(){for(var t in this.CustomHorizontalInfo){var e=this.CustomHorizontalInfo[t];switch(e.Type){case 0:case 1:this.DrawCustomItem(e)}}},this.DrawCustomVerticalItem=function(t){this.Canvas.save(),1==t.Data.Line.Type&&this.Canvas.setLineDash([5,5]),this.Canvas.strokeStyle=t.Data.Line.Color,this.Canvas.beginPath(),t.IsHScreen?(this.Canvas.moveTo(t.Top,p(t.X)),this.Canvas.lineTo(t.Bottom,p(t.X))):(this.Canvas.moveTo(p(t.X),t.Top),this.Canvas.lineTo(p(t.X),t.Bottom)),this.Canvas.stroke(),this.Canvas.restore()},this.DrawCustomVertical=function(){if(this.CustomVerticalInfo&&!(this.CustomVerticalInfo.length<=0)&&this.Data){var t=this.IsHScreen,e=this.ChartBorder.GetTopEx(),a=this.ChartBorder.GetBottomEx(),i=this.DataWidth,r=this.DistanceWidth,n=this.ChartBorder.GetLeft()+r/2+2;t&&(n=this.ChartBorder.GetTop()+r/2+2,e=this.ChartBorder.GetLeftEx(),a=this.ChartBorder.GetRightEx());for(var o=0,s=this.Data.DataOffset;s<this.Data.Data.length&&o<this.XPointCount;++s,++o,n+=i+r){var l=this.Data.Data[s];for(var h in this.CustomVerticalInfo){var u=this.CustomVerticalInfo[h];if(0==u.Type){if(Ht.IsNumber(u.Time)){if(l.Date!=u.Date||l.Time!=u.Time)continue}else if(l.Date!=u.Date)continue;var c=n,d=n+i,f=c+(d-c)/2,C={X:f,Top:e,Bottom:a,Data:u,IsHScreen:t};this.DrawCustomVerticalItem(C),this.DrawCustomVerticalEvent&&this.DrawCustomVerticalEvent.Callback(this.DrawCustomVerticalEvent,C,this);break}}}for(var s=1;o<this.XPointCount;++s,++o,n+=i+r)for(var h in this.CustomVerticalInfo){var u=this.CustomVerticalInfo[h];if(1==u.Type&&u.Space==s){var c=n,d=n+i,f=c+(d-c)/2,C={X:f,Top:e,Bottom:a,Data:u,IsHScreen:t};this.DrawCustomVerticalItem(C),this.DrawCustomVerticalEvent&&this.DrawCustomVerticalEvent.Callback(this.DrawCustomVerticalEvent,C,this);break}}}}}function L(){this.newMethod=F,this.newMethod(),delete this.newMethod,this.ClassName="OverlayKLineFrame",this.MainFrame=null,this.RightOffset=50,this.PenBorder=Xi.OverlayFrame.BolderPen,this.IsShow=!0,this.Title=null,this.TitleColor=Xi.OverlayFrame.TitleColor,this.TitleFont=Xi.OverlayFrame.TitleFont,this.Draw=function(){this.SplitXYCoordinate(),this.IsShow&&(this.DrawVertical(),this.DrawHorizontal(),this.DrawTitle()),this.SizeChange=!1,this.XYSplit=!1},this.DrawTitle=function(){if(this.Title){var t=this.ChartBorder.GetTopTitle(),e=this.ChartBorder.GetBottom(),a=this.ChartBorder.GetRight();a+=this.RightOffset,this.Canvas.fillStyle=this.TitleColor,this.Canvas.font=this.TitleFont,this.Canvas.textAlign="center",this.Canvas.textBaseline="top";var i=a-2,r=t+(e-t)/2;this.Canvas.save(),this.Canvas.translate(i,r),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(this.Title,0,0),this.Canvas.restore()}},this.SplitXYCoordinate=function(){0!=this.XYSplit&&null!=this.YSplitOperator&&this.YSplitOperator.Operator()},this.DrawHorizontal=function(){var t=(this.ChartBorder.GetLeft(),this.ChartBorder.GetRight()),e=this.ChartBorder.GetBottom(),a=this.ChartBorder.GetTopTitle(),i=this.ChartBorder.Right;t+=this.RightOffset;for(var r=null,n=this.HorizontalInfo.length-1;n>=0;--n){var o=this.HorizontalInfo[n],s=this.GetYFromData(o.Value);null!=s&&Math.abs(s-r)<this.MinYDistance||(this.Canvas.textBaseline=s>=e-2?"bottom":s<=a+2?"top":"middle",this.Canvas.strokeStyle=this.PenBorder,this.Canvas.beginPath(),this.Canvas.moveTo(t-2,p(s)),this.Canvas.lineTo(t,p(s)),this.Canvas.stroke(),null!=o.Message[1]&&i>10&&(null!=o.Font&&(this.Canvas.font=o.Font),this.Canvas.fillStyle=o.TextColor,this.Canvas.textAlign="left",this.Canvas.fillText(o.Message[1],t+2,s)),r=s)}},this.DrawVertical=function(){var t=this.ChartBorder.GetTopEx(),e=this.ChartBorder.GetRight(),a=this.ChartBorder.GetBottomEx();e+=this.RightOffset,this.Canvas.strokeStyle=this.PenBorder,this.Canvas.beginPath(),this.Canvas.moveTo(p(e),p(t)),this.Canvas.lineTo(p(e),p(a)),this.Canvas.stroke()}}function M(){this.newMethod=F,this.newMethod(),delete this.newMethod,this.ClassName="KLineHScreenFrame",this.IsHScreen=!0,this.DrawTitleBG=function(){if(!(this.ChartBorder.TitleHeight<=0)){var t=p(this.ChartBorder.GetRightTitle()),e=p(this.ChartBorder.GetTop()),a=p(this.ChartBorder.GetBottom()),i=this.ChartBorder.TitleHeight,r=a-e;this.Canvas.fillStyle=this.TitleBGColor,this.Canvas.fillRect(t,e,i,r)}},this.DrawToolbar=function(){},this.GetYFromData=function(t){if(t<=this.HorizontalMin)return this.ChartBorder.GetLeftEx();if(t>=this.HorizontalMax)return this.ChartBorder.GetRightEx();var e=this.ChartBorder.GetWidthEx()*(t-this.HorizontalMin)/(this.HorizontalMax-this.HorizontalMin);return this.ChartBorder.GetLeftEx()+e},this.DrawHorizontal=function(){for(var t=this.ChartBorder.GetTop(),e=this.ChartBorder.GetBottom(),a=this.ChartBorder.Top,i=this.ChartBorder.Bottom,r=null,n=u(),o=a>10*n&&!0===this.IsShowYText[0]&&2!=this.YTextPosition[0],s=i>10*n&&!0===this.IsShowYText[1]&&2!=this.YTextPosition[1],l=this.HorizontalInfo.length-1;l>=0;--l){var h=this.HorizontalInfo[l],c=this.GetYFromData(h.Value);if(!(null!=c&&Math.abs(c-r)<this.MinYDistance)){if(this.Canvas.strokeStyle=h.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(p(c),t),this.Canvas.lineTo(p(c),e),this.Canvas.stroke(),null!=h.Message[0]&&o){null!=h.Font&&(this.Canvas.font=h.Font),this.Canvas.fillStyle=h.TextColor,this.Canvas.textAlign="right",this.Canvas.textBaseline="middle";var d=c,f=t;this.Canvas.save(),this.Canvas.translate(d,f),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(h.Message[0],-2,0),this.Canvas.restore()}if(null!=h.Message[1]&&s){null!=h.Font&&(this.Canvas.font=h.Font),this.Canvas.fillStyle=h.TextColor,this.Canvas.textAlign="left",this.Canvas.textBaseline="middle";var d=c,f=e;this.Canvas.save(),this.Canvas.translate(d,f),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(h.Message[1],2,0),this.Canvas.restore()}r=c}}},this.DrawInsideHorizontal=function(){if(!1!==this.IsShowYText[0]||!1!==this.IsShowYText[1]){var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRightEx(),a=this.ChartBorder.GetTop(),i=this.ChartBorder.GetBottom(),r=this.ChartBorder.Top,n=this.ChartBorder.Bottom,o=(this.ChartBorder.TitleHeight,u()),s=(r<10*o||2==this.YTextPosition[0])&&!0===this.IsShowYText[0],l=(n<10*o||2==this.YTextPosition[1])&&!0===this.IsShowYText[1];if(s||l)for(var o=u(),h=null,c=this.HorizontalInfo.length-1;c>=0;--c){var d=this.HorizontalInfo[c],f=this.GetYFromData(d.Value);if(!(null!=f&&null!=h&&Math.abs(f-h)<this.MinYDistance)){if(null!=d.Message[0]&&s){null!=d.Font&&(this.Canvas.font=d.Font),this.Canvas.fillStyle=d.TextColor,this.Canvas.textAlign="left",this.Canvas.textBaseline=f>=e-2?"top":f<=t+2?"bottom":"middle";var C=(this.Canvas.textBaseline,this.Canvas.textAlign,this.Canvas.font,d.Message[0],f),p=a;this.Canvas.save(),this.Canvas.translate(C,p),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(d.Message[0],-2,0),this.Canvas.restore()}if(null!=d.Message[1]&&l){null!=d.Font&&(this.Canvas.font=d.Font),this.Canvas.fillStyle=d.TextColor,this.Canvas.textAlign="right",this.Canvas.textBaseline=f>=e-2?"top":f<=t+2?"bottom":"middle";var D=this.Canvas.measureText(d.Message[1]).width,C=(this.Canvas.textBaseline,this.Canvas.textAlign,this.Canvas.font,d.Message[1],f),p=i;this.Canvas.save(),this.Canvas.translate(C,p),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(d.Message[1],2,0),this.Canvas.restore()}h=f}}}},this.GetXFromIndex=function(t){t<0&&(t=0),t>this.xPointCount-1&&(t=this.xPointCount-1);for(var e=this.ChartBorder.GetTop()+2+this.DistanceWidth/2+this.DataWidth/2,a=1;a<=t;++a)e+=this.DistanceWidth+this.DataWidth;return e},this.DrawVertical=function(){var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRightTitle(),a=this.ChartBorder.GetBottom(),i=null;for(var r in this.VerticalInfo){var n=this.GetXFromIndex(this.VerticalInfo[r].Value);if(n>=a)break;if(!(null!=i&&Math.abs(n-i)<80)){if(this.Canvas.strokeStyle=this.VerticalInfo[r].LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(t,p(n)),this.Canvas.lineTo(e,p(n)),this.Canvas.stroke(),null!=this.VerticalInfo[r].Message[0]){null!=this.VerticalInfo[r].Font&&(this.Canvas.font=this.VerticalInfo[r].Font),this.Canvas.fillStyle=this.VerticalInfo[r].TextColor;n<this.Canvas.measureText(this.VerticalInfo[r].Message[0]).width/2?(this.Canvas.textAlign="left",this.Canvas.textBaseline="top"):(this.Canvas.textAlign="center",this.Canvas.textBaseline="top");var o=t,s=n;this.Canvas.save(),this.Canvas.translate(o,s),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(this.VerticalInfo[r].Message[0],0,0),this.Canvas.restore()}i=n}}},this.GetYData=function(t){return t<this.ChartBorder.GetLeftEx()?this.HorizontalMin:t>this.ChartBorder.GetRightEx()?this.HorizontalMax:(t-this.ChartBorder.GetLeftEx())/this.ChartBorder.GetWidthEx()*(this.HorizontalMax-this.HorizontalMin)+this.HorizontalMin},this.GetXData=function(t){if(t<=this.ChartBorder.GetTop())return 0;if(t>=this.ChartBorder.GetBottom())return this.XPointCount;for(var e=this.ChartBorder.GetTop(),a=this.ChartBorder.GetBottom(),i=this.DistanceWidth,r=this.DataWidth,n=0,o=e+r+i;o<a&&n<1e4&&!(o>t);)o+=r+i,++n;return n}}function w(){this.newMethod=M,this.newMethod(),delete this.newMethod,this.ClassName="OverlayKLineHScreenFrame",this.MainFrame=null,this.RightOffset=50,this.PenBorder=Xi.OverlayFrame.BolderPen,this.IsShow=!0,this.Title=null,this.TitleColor=Xi.OverlayFrame.TitleColor,this.TitleFont=Xi.OverlayFrame.TitleFont,this.Draw=function(){this.SplitXYCoordinate(),this.IsShow&&(this.DrawVertical(),this.DrawHorizontal(),this.DrawTitle()),this.SizeChange=!1,this.XYSplit=!1},this.DrawTitle=function(){},this.SplitXYCoordinate=function(){0!=this.XYSplit&&null!=this.YSplitOperator&&this.YSplitOperator.Operator()},this.DrawHorizontal=function(){},this.DrawVertical=function(){}}function N(){this.Frame,this.Height,this.OverlayIndex=[],this.Interval=60}function O(){this.Frame,this.ChartPaint=[],this.Identify=f(),this.Scprit,this.UpdateFrameMaxMin=function(){var t={Max:null,Min:null};if(this.Frame.YSpecificMaxMin)t.Max=this.Frame.YSpecificMaxMin.Max,t.Min=this.Frame.YSpecificMaxMin.Min;else for(var e in this.ChartPaint){var a=this.ChartPaint[e],i=a.GetMaxMin();Ht.IsNumber(i.Max)&&(null==t.Max||t.Max<i.Max)&&(t.Max=i.Max),Ht.IsNumber(i.Min)&&(null==t.Min||t.Min>i.Min)&&(t.Min=i.Min)}null!=t.Max&&null!=t.Min&&(this.Frame.HorizontalMax=t.Max,this.Frame.HorizontalMin=t.Min,this.Frame.XYSplit=!0)}}function _(){this.SubFrame=new Array,this.SizeChange=!0,this.ChartBorder,this.Canvas,this.ScreenImageData,this.Data,this.Position,this.SizeChange=!0,this.CalculateChartBorder=function(){if(!(this.SubFrame.length<=0)){var t=this.ChartBorder.GetTop(),e=this.ChartBorder.GetHeight(),a=0;for(var i in this.SubFrame){var r=this.SubFrame[i];a+=r.Height}for(var i in this.SubFrame){var r=this.SubFrame[i];r.Frame.ChartBorder.Top=t,r.Frame.ChartBorder.Left=this.ChartBorder.Left,r.Frame.ChartBorder.Right=this.ChartBorder.Right;var n=e*(r.Height/a)+t;r.Frame.ChartBorder.Bottom=this.ChartBorder.GetChartHeight()-n,t=n}}},this.CalculateChartBorder2=function(){if(!(this.SubFrame.length<=0)){var t=this.ChartBorder.Top,e=this.ChartBorder.Bottom,a=this.ChartBorder.GetHeight(),i=0;for(var r in this.SubFrame){var n=this.SubFrame[r];i+=n.Height}var o=0;for(var r in this.SubFrame){var n=this.SubFrame[r];n.Frame.ChartBorder.Top=t,n.Frame.ChartBorder.Left=this.ChartBorder.Left,n.Frame.ChartBorder.Right=this.ChartBorder.Right,n.Frame.ChartBorder.X=this.ChartBorder.X,n.Frame.ChartBorder.Y=this.ChartBorder.Y,n.Frame.ChartBorder.Width=this.ChartBorder.Width,n.Frame.ChartBorder.Height=this.ChartBorder.Height;var s=a*(n.Height/i);o+=s,e=this.ChartBorder.Bottom+(a-o),n.Frame.ChartBorder.Bottom=e,t+=s}}},this.Draw=function(){!0===this.SizeChange&&this.CalculateChartBorder();for(var t in this.SubFrame){var e=this.SubFrame[t];e.Frame.Draw();var a=e.Interval;for(var i in e.OverlayIndex){var r=e.OverlayIndex[i];r.Frame.DataWidth=e.Frame.DataWidth,r.Frame.DistanceWidth=e.Frame.DistanceWidth,r.Frame.XPointCount=e.Frame.XPointCount,r.ChartPaint.length>0&&r.Frame.IsShow&&(r.Frame.RightOffset=a,r.Frame.Draw(),a+=e.Interval)}}this.SizeChange=!1},this.DrawOveraly=function(){for(var t in this.SubFrame){var e=this.SubFrame[t];for(var a in e.OverlayIndex){var i=e.OverlayIndex[a];for(var r in i.ChartPaint)i.ChartPaint[r].IsShow&&i.ChartPaint[r].Draw()}}},this.DrawLock=function(){for(var t in this.SubFrame){this.SubFrame[t].Frame.DrawLock()}},this.CalculateLock=function(){for(var t in this.SubFrame){this.SubFrame[t].Frame.CalculateLock()}},this.DrawInsideHorizontal=function(){for(var t in this.SubFrame){var e=this.SubFrame[t];e.Frame.DrawInsideHorizontal&&e.Frame.DrawInsideHorizontal()}},this.DrawCustomHorizontal=function(){for(var t in this.SubFrame){var e=this.SubFrame[t];e.Frame.DrawCustomHorizontal&&e.Frame.DrawCustomHorizontal()}},this.DrawCustomVertical=function(t){for(var e in this.SubFrame){var a=this.SubFrame[e];a.Frame.DrawCustomVerticalEvent=t,a.Frame.DrawCustomVertical&&a.Frame.DrawCustomVertical()}},this.SetSizeChage=function(t){this.SizeChange=t;for(var e in this.SubFrame){var a=this.SubFrame[e];a.Frame.SizeChange=t;for(var i in a.OverlayIndex){var r=a.OverlayIndex[i];r.Frame&&(r.Frame.SizeChange=t)}}this.ChartBorder.UIElement&&(this.Position={X:this.ChartBorder.UIElement.offsetLeft,Y:this.ChartBorder.UIElement.offsetTop,W:this.ChartBorder.UIElement.clientWidth,H:this.ChartBorder.UIElement.clientHeight})},this.SetDrawDepthMap=function(t){for(var e in this.SubFrame){this.SubFrame[e].Frame.DrawDepthMapCallback=t}},this.Snapshot=function(){this.ScreenImageData=this.Canvas.getImageData(0,0,this.ChartBorder.GetChartWidth(),this.ChartBorder.GetChartHeight())},this.GetXData=function(t){return this.SubFrame[0].Frame.GetXData(t)},this.GetYData=function(t,e){var a;for(var i in this.SubFrame){var r=this.SubFrame[i],n=r.Frame.ChartBorder.GetLeft(),o=r.Frame.ChartBorder.GetTopEx(),s=r.Frame.ChartBorder.GetWidth(),l=r.Frame.ChartBorder.GetHeightEx();if(r.Frame.Canvas.beginPath(),r.Frame.Canvas.rect(n,o,s,l),r.Frame.Canvas.isPointInPath(n,t)){a=r.Frame,e&&(e.FrameID=parseInt(i));break}}if(null!=a){a.RightFrame&&(e.RightYValue=a.RightFrame.GetYData(t));var h=a.GetYData(t);if(1==a.YSplitOperator.CoordinateType){var u=a.YSplitOperator.GetFirstOpenPrice();e.RightYValue=((h-u)/u*100).toFixed(2)+"%"}return h}},this.PtInFrame=function(t,e){for(var a in this.SubFrame){var i=this.SubFrame[a],r=i.Frame.ChartBorder.GetLeft(),n=i.Frame.ChartBorder.GetTop(),o=i.Frame.ChartBorder.GetWidth(),s=i.Frame.ChartBorder.GetHeight();if(i.Frame.Canvas.beginPath(),i.Frame.Canvas.rect(r,n,o,s),i.Frame.Canvas.isPointInPath(t,e))return parseInt(a)}return-1},this.GetXFromIndex=function(t){return this.SubFrame[0].Frame.GetXFromIndex(t)},this.GetYFromData=function(t){return this.SubFrame[0].Frame.GetYFromData(t)},this.ZoomUp=function(t){for(var e=this.SubFrame[0].Frame.ZoomUp(t),a=this.SubFrame[0].Frame,i=0;i<this.SubFrame.length;++i){var r=this.SubFrame[i];i>0&&(r.Frame.XPointCount=a.XPointCount,r.Frame.ZoomIndex=a.ZoomIndex,r.Frame.DataWidth=a.DataWidth,r.Frame.DistanceWidth=a.DistanceWidth,r.Frame.LastCalculateStatus.Width=a.LastCalculateStatus.Width,r.Frame.LastCalculateStatus.XPointCount=a.LastCalculateStatus.XPointCount);for(var n in r.OverlayIndex){var o=this.SubFrame[i].OverlayIndex[n];o.Frame.XPointCount=a.XPointCount,o.Frame.ZoomIndex=a.ZoomIndex,o.Frame.DataWidth=a.DataWidth,o.Frame.DistanceWidth=a.DistanceWidth,o.Frame.LastCalculateStatus.Width=a.LastCalculateStatus.Width,o.Frame.LastCalculateStatus.XPointCount=a.LastCalculateStatus.XPointCount}}return e},this.ZoomDown=function(t){for(var e=this.SubFrame[0].Frame.ZoomDown(t),a=this.SubFrame[0].Frame,i=0;i<this.SubFrame.length;++i){var r=this.SubFrame[i];i>0&&(r.Frame.XPointCount=a.XPointCount,r.Frame.ZoomIndex=a.ZoomIndex,r.Frame.DataWidth=a.DataWidth,r.Frame.DistanceWidth=a.DistanceWidth,r.Frame.LastCalculateStatus.Width=a.LastCalculateStatus.Width,r.Frame.LastCalculateStatus.XPointCount=a.LastCalculateStatus.XPointCount);for(var n in r.OverlayIndex){var o=this.SubFrame[i].OverlayIndex[n];o.Frame.XPointCount=a.XPointCount,o.Frame.ZoomIndex=a.ZoomIndex,o.Frame.DataWidth=a.DataWidth,o.Frame.DistanceWidth=a.DistanceWidth,o.Frame.LastCalculateStatus.Width=a.LastCalculateStatus.Width,o.Frame.LastCalculateStatus.XPointCount=a.LastCalculateStatus.XPointCount}}return e},this.ResetXYSplit=function(){for(var t in this.SubFrame)this.SubFrame[t].Frame.XYSplit=!0},this.SetLanguage=function(t){for(var e in this.SubFrame){var a=this.SubFrame[e];a&&a.Frame&&(a.Frame.YSplitOperator&&(a.Frame.YSplitOperator.LanguageID=t),a.Frame.XSplitOperator&&(a.Frame.XSplitOperator.LanguageID=t))}}}function R(){this.newMethod=_,this.newMethod(),delete this.newMethod,this.IsHScreen=!0,this.CalculateChartBorder=function(){if(!(this.SubFrame.length<=0)){var t=this.ChartBorder.Right,e=this.ChartBorder.GetRight(),a=this.ChartBorder.GetWidth(),i=0;for(var r in this.SubFrame){var n=this.SubFrame[r];i+=n.Height}for(var r in this.SubFrame){var n=this.SubFrame[r];n.Frame.ChartBorder.Top=this.ChartBorder.Top,n.Frame.ChartBorder.Bottom=this.ChartBorder.Bottom;var o=a*(n.Height/i);n.Frame.ChartBorder.Right=t,n.Frame.ChartBorder.Left=e-o,t+=o,e-=o}}},this.GetYData=function(t,e){var a;for(var i in this.SubFrame){var r=this.SubFrame[i],n=r.Frame.ChartBorder.GetLeftEx(),o=r.Frame.ChartBorder.GetTop(),s=r.Frame.ChartBorder.GetWidthEx(),l=r.Frame.ChartBorder.GetHeight();if(r.Frame.Canvas.beginPath(),r.Frame.Canvas.rect(n,o,s,l),r.Frame.Canvas.isPointInPath(t,o)){a=r.Frame,e&&(e.FrameID=i);break}}if(null!=a)return a.GetYData(t)}}function P(){this.newMethod=T,this.newMethod(),delete this.newMethod,this.ScreenImageData,this.Position,this.DrawFrame=function(){if(this.XPointCount>0){var t=this.ChartBorder.GetWidth()/(6*this.XPointCount);this.DistanceWidth=2*t,this.DataWidth=4*t}this.SplitXYCoordinate(),this.DrawHorizontal(),this.DrawVertical()},this.GetXFromIndex=function(t){t<0&&(t=0),t>this.xPointCount-1&&(t=this.xPointCount-1);for(var e=this.ChartBorder.GetLeft()+2+this.DistanceWidth/2+this.DataWidth/2,a=1;a<=t;++a)e+=this.DistanceWidth+this.DataWidth;return e},this.SplitXYCoordinate=function(){0!=this.XYSplit&&(null!=this.YSplitOperator&&this.YSplitOperator.Operator(),null!=this.XSplitOperator&&this.XSplitOperator.Operator())},this.Snapshot=function(){this.ScreenImageData=this.Canvas.getImageData(0,0,this.ChartBorder.GetChartWidth(),this.ChartBorder.GetChartHeight())},this.SetSizeChage=function(t){this.SizeChange=t,this.Position={X:this.ChartBorder.UIElement.offsetLeft,Y:this.ChartBorder.UIElement.offsetTop,W:this.ChartBorder.UIElement.clientWidth,H:this.ChartBorder.UIElement.clientHeight}}}function B(){this.Date,this.YClose,this.Open,this.Close,this.High,this.Low,this.Vol,this.Amount,this.Time,this.FlowCapital=0,this.Position=null,this.Stop,this.Up,this.Down,this.Unchanged}function k(){this.Close,this.Open,this.High,this.Low,this.Vol,this.Amount,this.DateTime,this.Increase,this.Risefall,this.AvPrice,this.Lead=null,this.Time,this.Date,this.Position=null}function H(){this.Date,this.Time,this.Value}function V(){this.ID,this.Date,this.Title,this.InfoType,this.ExtendData}function G(){}function Y(){this.Data=new Array,this.DataOffset=0,this.Period=0,this.Right=0,this.Symbol,this.Data2=new Array,this.GetCloseMA=function(t){for(var e=new Array,a=0,i=this.Data.length;a<i;a++)if(a<t)e[a]=null;else{for(var r=0,n=0;n<t;n++)r+=this.Data[a-n].Close;e[a]=r/t}return e},this.GetVolMA=function(t){for(var e=new Array,a=0,i=this.Data.length;a<i;a++)if(a<t)e[a]=null;else{for(var r=0,n=0;n<t;n++)r+=this.Data[a-n].Vol;e[a]=r/t}return e},this.GetAmountMA=function(t){for(var e=new Array,a=0,i=this.Data.length;a<i;a++)if(a<t)e[a]=null;else{for(var r=0,n=0;n<t;n++)r+=this.Data[a-n].Amount;e[a]=r/t}return e},this.GetClose=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Close;return t},this.GetYClose=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].YClose;return t},this.GetHigh=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].High;return t},this.GetLow=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Low;return t},this.GetOpen=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Open;return t},this.GetVol=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Vol;return t},this.GetAmount=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Amount;return t},this.GetPosition=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Position;return t},this.GetLead=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Lead;return t},this.GetDate=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Date;return t},this.GetTime=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].Time;return t},this.GetUp=function(){var t=[];for(var e in this.Data)t[e]=this.Data[e].Up;return t},this.GetDown=function(){var t=[];for(var e in this.Data)t[e]=this.Data[e].Down;return t},this.GetYear=function(){var t=new Array;for(var e in this.Data)t[e]=parseInt(this.Data[e].Date/1e4);return t},this.GetMonth=function(){var t=new Array;for(var e in this.Data)t[e]=parseInt(this.Data[e].Date%1e4/100);return t},this.GetMinutePeriodData=function(t){if(G.GetMinutePeriodData)return G.GetMinutePeriodData(t,this.Data,this);var e=new Array,a=5;if(5==t)a=5;else if(6==t)a=15;else if(7==t)a=30;else if(8==t)a=60;else if(11==t)a=120;else{if(12!=t)return t>_i&&t<=Ri?(a=t-_i,this.GetMinuteCustomPeriodData(a)):this.Data;a=240}for(var i=!1,r=null,n=null,o=0;o<this.Data.length;){i=!0;for(var s=0;s<a&&o<this.Data.length;++o){i&&(r=new B,e.push(r),i=!1);var l=this.Data[o];if(null!=l){if((925!=l.Time||null!=n&&924==n)&&(930!=l.Time||null!=n&&929==n)&&(1300!=l.Time||null!=n&&1259==n)&&++s,r.Date=l.Date,r.Time=l.Time,n=r.Time,null!=l.Open&&null!=l.Close&&(null==r.Open||null==r.Close?(r.Open=l.Open,r.High=l.High,r.Low=l.Low,r.YClose=l.YClose,r.Close=l.Close,r.Vol=l.Vol,r.Amount=l.Amount,r.FlowCapital=l.FlowCapital,r.Position=l.Position):(r.High<l.High&&(r.High=l.High),r.Low>l.Low&&(r.Low=l.Low),r.Close=l.Close,r.Vol+=l.Vol,null!=l.Amount&&(r.Amount+=l.Amount),r.Position=l.Position,r.FlowCapital=l.FlowCapital),o+1<this.Data.length)){var h=this.Data[o+1];if(h&&h.Date!=l.Date){++o;break}}}else++s}}return e},this.GetMinuteCustomPeriodData=function(t){for(var e=new Array,a=t,i=!1,r=null,n=0;n<this.Data.length;){i=!0;for(var o=0;o<a&&n<this.Data.length;++n,++o){i&&(r=new B,e.push(r),i=!1);var s=this.Data[n];null!=s&&(r.Date=s.Date,r.Time=s.Time,null!=s.Open&&null!=s.Close&&(null==r.Open||null==r.Close?(r.Open=s.Open,r.High=s.High,r.Low=s.Low,r.YClose=s.YClose,r.Close=s.Close,r.Vol=s.Vol,r.Amount=s.Amount,r.FlowCapital=s.FlowCapital,r.Position=s.Position):(r.High<s.High&&(r.High=s.High),r.Low>s.Low&&(r.Low=s.Low),r.Close=s.Close,r.Vol+=s.Vol,null!=s.Amount&&(r.Amount+=s.Amount),r.Position=s.Position,r.FlowCapital=s.FlowCapital)))}}return e},this.GetDayPeriodData=function(t){if(t>Ni&&t<=Oi)return this.GetDayCustomPeriodData(t-Ni);var e=Ji.IsBIT(this.Symbol),a=new Array,i=0,r=2,n=null;for(var o in this.Data){var s=!1,l=this.Data[o];switch(t){case 1:if(e)var h=Y.GetSunday(l.Date);else var h=Y.GetFirday(l.Date);h!=i&&(s=!0,i=h);break;case 21:if(e)var h=Y.GetSunday(l.Date);else var h=Y.GetFirday(l.Date);h!=i&&(++r,r>=2&&(s=!0,r=0),i=h);break;case 2:parseInt(l.Date/100)!=parseInt(i/100)&&(s=!0,i=l.Date);break;case 3:parseInt(l.Date/1e4)!=parseInt(i/1e4)&&(s=!0,i=l.Date);break;case 9:var u=Y.GetQuarter(l.Date);u=10*parseInt(l.Date/1e4)+u;var c=Y.GetQuarter(i);c=10*parseInt(i/1e4)+c,u!=c&&(s=!0,i=l.Date)}if(s){if(n=new B,n.Date=l.Date,a.push(n),null==l.Open||null==l.Close)continue;n.Open=l.Open,n.High=l.High,n.Low=l.Low,n.YClose=l.YClose,n.Close=l.Close,n.Vol=l.Vol,n.Amount=l.Amount,n.FlowCapital=l.FlowCapital,n.Position=l.Position}else{if(null==n)continue;if(null==l.Open||null==l.Close)continue;null==n.Open||null==n.Close?(n.Open=l.Open,n.High=l.High,n.Low=l.Low,n.YClose=l.YClose,n.Close=l.Close,n.Vol=l.Vol,n.Amount=l.Amount,n.FlowCapital=l.FlowCapital,n.Position=l.Position):(n.High<l.High&&(n.High=l.High),n.Low>l.Low&&(n.Low=l.Low),n.Close=l.Close,n.Vol+=l.Vol,null!=l.Amount&&(n.Amount+=l.Amount),n.Position=l.Position,n.FlowCapital=l.FlowCapital,n.Date=l.Date)}}return a},this.GetDayCustomPeriodData=function(t){for(var e=[],a=t,i=!1,r=null,n=0;n<this.Data.length;){i=!0;for(var o=0;o<a&&n<this.Data.length;++n,++o){i&&(r=new B,e.push(r),i=!1);var s=this.Data[n];null!=s&&(r.Date=s.Date,null!=s.Open&&null!=s.Close&&(null==r.Open||null==r.Close?(r.Open=s.Open,r.High=s.High,r.Low=s.Low,r.YClose=s.YClose,r.Close=s.Close,r.Vol=s.Vol,r.Amount=s.Amount,r.FlowCapital=s.FlowCapital,r.Position=s.Position):(r.High<s.High&&(r.High=s.High),r.Low>s.Low&&(r.Low=s.Low),r.Close=s.Close,r.Vol+=s.Vol,null!=s.Amount&&(r.Amount+=s.Amount),r.Position=s.Position,r.FlowCapital=s.FlowCapital)))}}return e},this.GetPeriodData=function(t){if(Ji.IsBIT(this.Symbol)&&(5==t||6==t||7==t||8==t||t>_i&&t<=Ri)){var e=5;return 5==t?e=5:6==t?e=15:7==t?e=30:8==t?e=60:11==t?e=120:12==t?e=240:t>_i&&t<=Ri&&(e=t-_i),this.GetMinuteCustomPeriodData(e)}return 1==t||2==t||3==t||9==t||21==t||t>Ni&&t<=Oi?this.GetDayPeriodData(t):5==t||6==t||7==t||8==t||11==t||12==t||t>_i&&t<=Ri?this.GetMinutePeriodData(t):void 0},this.GetRightDate=function(t){var e=[];if(this.Data.length<=0)return e;if(1==t){var a=this.Data.length-1,i=1,r=this.Data[a].YClose;for(e[a]=B.Copy(this.Data[a]),--a;a>=0&&r==this.Data[a].Close;--a)e[a]=B.Copy(this.Data[a]),r=this.Data[a].YClose;for(;a>=0;--a)r!=this.Data[a].Close&&(i*=r/this.Data[a].Close),e[a]=B.CopyRight(this.Data[a],i),r=this.Data[a].YClose}else if(2==t){var a=0,i=1,n=this.Data[a].Close;for(e[a]=B.Copy(this.Data[a]),++a;a<this.Data.length&&n==this.Data[a].YClose;++a)e[a]=B.Copy(this.Data[a]),n=this.Data[a].Close;for(;a<this.Data.length;++a)n!=this.Data[a].YClose&&(i*=n/this.Data[a].YClose),e[a]=B.CopyRight(this.Data[a],i),n=this.Data[a].Close}return e},this.GetRightData=this.GetRightDate,this.GetOverlayData=function(t){for(var e=[],a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date;if(i>=t.length)e[a]=new B,e[a].Date=r,++a;else{var n=t[i].Date;n==r?(e[a]=new B,e[a].Date=t[i].Date,e[a].YClose=t[i].YClose,e[a].Open=t[i].Open,e[a].High=t[i].High,e[a].Low=t[i].Low,e[a].Close=t[i].Close,e[a].Vol=t[i].Vol,e[a].Amount=t[i].Amount,e[a].Stop=t[i].Stop,e[a].Up=t[i].Up,e[a].Down=t[i].Down,e[a].Unchanged=t[i].Unchanged,++i,++a):n<r?++i:(e[a]=new B,e[a].Date=r,++a)}}return e},this.GetOverlayMinuteData=function(t){for(var e=[],a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date,n=this.Data[a].Time;if(i>=t.length)e[a]=new B,e[a].Date=r,e[a].Time=n,++a;else{var o=t[i].Date,s=t[i].Time;o==r&&s==n?(e[a]=new B,e[a].Date=t[i].Date,e[a].Time=t[i].Time,e[a].YClose=t[i].YClose,e[a].Open=t[i].Open,e[a].High=t[i].High,e[a].Low=t[i].Low,e[a].Close=t[i].Close,e[a].Vol=t[i].Vol,e[a].Amount=t[i].Amount,e[a].Stop=t[i].Stop,e[a].Up=t[i].Up,e[a].Down=t[i].Down,e[a].Unchanged=t[i].Unchanged,++i,++a):o<r||o==r&&s<n?++i:(e[a]=new B,e[a].Date=r,e[a].Time=n,++a)}}return e},this.GetFittingData=function(t){for(var e=new Array,a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date;if(i>=t.length)e[a]=null,++a;else{var n=t[i].Date;if(n==r){var o=new H;o.Date=t[i].Date,o.Value=t[i].Value,e[a]=o,++i,++a}else n<r?++i:(e[a]=new H,e[a].Date=r,++a)}}return e},this.GetFittingData2=function(t,e){for(var a=new Array,i=0,r=0;i<this.Data.length;){var n=this.Data[i].Date;if(r>=t.length)a[i]=new H,a[i].Date=n,a[i].Value=e,++i;else{var o=t[r].Date;if(o==n){var s=new H;s.Date=t[r].Date,s.Value=t[r].Value,a[i]=s,++r,++i}else o<n?++r:(a[i]=new H,a[i].Date=n,a[i].Value=e,++i)}}return a},this.GetDateIndex=function(t){for(var e=0,a=0;e<this.Data.length;){var i=this.Data[e].Date;if(a>=t.length)break;var r=t[a];r.Date==i?(r.Index=e,++a):r.Date<i?++a:++e}},this.GetDateTimeIndex=function(t){for(var e=0,a=0;e<this.Data.length;){var i=this.Data[e].Date,r=this.Data[e].Time;if(a>=t.length)break;var n=t[a];n.Date==i&&n.Time==r?(n.Index=e,++a):n.Date<i||n.Date==i&&n.Time<r?++a:++e}},this.GetMinuteFittingData=function(t){for(var e=[],a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date,n=this.Data[a].Time;if(i>=t.length)e[a]=null,++a;else{var o=t[i].Date,s=t[i].Time,l=t[i];if(o==r&&s==n){var h=new H;h.Date=l.Date,h.Time=l.Time,h.Value=l.Value,e[a]=h,++i,++a}else if(o<r||o==r&&s<n)++i;else{var h=new H;h.Date=r,h.Time=n,e[a]=h,++a}}}return e},this.GetFittingFinanceData=function(t){for(var e=[],a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date;if(i+1<t.length&&t[i].Date<r&&t[i+1].Date<=r)++i;else{var n=new H;n.Date=r,i<t.length?(n.Value=t[i].Value,n.FinanceDate=t[i].Date):(n.Value=null,n.FinanceDate=null),e[a]=n,++a}}return e},this.GetMinuteFittingFinanceData=function(t){for(var e=[],a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date,n=this.Data[a].Time;if(i+1<t.length&&t[i].Date<r&&t[i+1].Date<=r)++i;else{var o=new H;o.Date=r,o.Time=n,i<t.length?(o.Value=t[i].Value,o.FinanceDate=t[i].Date):(o.Value=null,o.FinanceDate=null),e[a]=o,++a}}return e},this.GetFittingMarketValueData=function(t){for(var e=[],a=0,i=0;a<this.Data.length;){var r=this.Data[a].Date,n=this.Data[a].Close;if(i+1<t.length&&t[i].Date<r&&t[i+1].Date<=r)++i;else{var o=new H;o.Date=r,o.Value=t[i].Value*n,o.FinanceDate=t[i].Date,e[a]=o,++a}}return e},this.GetFittingMonthData=function(t){for(var e=new Array,a=null,i=0,r=0;i<this.Data.length;){var n=this.Data[i].Date;if(r>=t.length)e[i]=null,++i;else{var o=t[r].Date;if(o==n){var s=new H;s.Date=t[r].Date,s.Value=t[r].Value,s.Text=t[r].Text,e[i]=s,++r,++i}else if(null!=a&&a<o&&n>o){var s=new H;s.Date=n,s.OverlayDate=t[r].Date,s.Value=t[r].Value,s.Text=t[r].Text,e[i]=s,++r,++i}else o<n?++r:(e[i]=new H,e[i].Date=n,++i);a=n}}return e},this.GetValue=function(){var t=[];for(var e in this.Data)if(this.Data[e]&&null!=this.Data[e].Value){var a=this.Data[e].Value;isNaN(a)?a instanceof Array?t[e]=a:t[e]=null:t[e]=a}else t[e]=null;return t},this.GetObject=function(){var t=[];for(var e in this.Data)if(this.Data[e]&&this.Data[e].Value){var a=this.Data[e].Value;t[e]=a}else t[e]=null;return t},this.GetPeriodSingleData=function(t){var e=new Array,a=0,i=2,r=null;for(var n in this.Data){var o=!1,s=this.Data[n];if(null!=s&&null!=s.Date){switch(t){case 1:var l=Y.GetFirday(s.Date);l!=a&&(o=!0,a=l);break;case 21:var l=Y.GetFirday(s.Date);l!=a&&(++i,i>=2&&(o=!0,i=0),a=l);break;case 2:parseInt(s.Date/100)!=parseInt(a/100)&&(o=!0,a=s.Date);break;case 3:parseInt(s.Date/1e4)!=parseInt(a/1e4)&&(o=!0,a=s.Date);break;case 9:var h=Y.GetQuarter(s.Date);h=10*parseInt(s.Date/1e4)+h;var u=Y.GetQuarter(a);u=10*parseInt(a/1e4)+u,h!=u&&(o=!0,a=s.Date)}if(o)r=new H,r.Date=s.Date,r.Value=s.Value,e.push(r);else{if(null==r)continue;if(null==s.Value||isNaN(s.Value))continue;(null==r.Value||isNaN(r.Value))&&(r.Value=s.Value)}}}return e},this.GetMinuteAvPrice=function(){var t=new Array;for(var e in this.Data)t[e]=this.Data[e].AvPrice;return t},this.MergeMinuteData=function(t){for(var e=this.Data[0],a=0,i=null,r=0;r<t.length;++r){var n=t[r];if(n.Date>e.Date){a=r,i=n;break}if(n.Date==e.Date&&n.Time>=e.Time){a=r,i=n;break}}if(null==i)return!1;for(var o=null,s=!1,r=this.Data.length-1;r>=0;--r){var l=this.Data[r].Date,h=this.Data[r].Time;if(i.Date>l||i.Date==l&&i.Time>=h){o=r,i.Date==l&&i.Time==h&&(s=!0);break}}if(null==o)return!1;var u=o,r=a;if(1==s){var n=t[r];u-1>0&&!n.YClose&&(n.YClose=this.Data[u-1].Close);var c=B.Copy(n);this.Data[u]=c,++u,++r}else++u;for(;r<t.length;){var n=t[r];if(u>=this.Data.length-1){u-1>0&&!n.YClose&&(n.YClose=this.Data[u-1].YClose);var c=B.Copy(n);this.Data[u]=c,++u,++r}else{var d=this.Data[u];d.Date==n.Date&&d.Time==n.Time?(B.CopyTo(d,n),++u,++r):++u}}return!0},this.CoverTo=function(t,e,a){for(var i=[],r=null,n=Y.IsMinutePeriod(e,!0),o=Y.IsMinutePeriod(a,!0),s=n&&o,l=n&&!o,h=!n&&!o,u=0,c=0;u<this.Data.length;++u){for(var d=this.Data[u];c<t.length;++c){var f=t[c];if(s){if(f.Date==d.Date&&f.Time>=d.Time){r=f;break}}else if((l||h)&&f.Date>=d.Date){r=f;break}}var C=null;r?(C=B.Copy(r),C.PDate=r.Date,C.PTime=r.Time):C=new B,C.Date=d.Date,s&&l&&(C.Time=d.Time),i.push(C)}return bi.Chart.Log("[ChartData::CoverTo] result",i),i},this.GetRef=function(t){for(var e=[],a=0;a<this.Data.length;++a){e[a]=null;var i=this.Data[a];if(a-t<0){var r=new B;r.Date=i.Date,r.Time=i.Time,e[a]=r}else{var n=this.Data[a-t],r=B.Copy(n);r.Date=i.Date,r.Time=i.Time,e[a]=r}}return e},this.FitKLineIndex=function(t,e,a,i){for(var r=this.Data.length,n=t.length,o=[Y.IsMinutePeriod(a,!0),Y.IsMinutePeriod(i,!0)],s=[Y.IsDayPeriod(a,!0),Y.IsDayPeriod(i,!0)],l=Y.GetKLineDataTime(this.Data[0]),h=[],u=n,c=0;c<n;++c){var d=Y.GetKLineDataTime(t[c]);if(s[0]&&s[1]||o[0]&&s[1]){if(d.Date>=l.Date){u=c;break}}else if(o[0]&&o[1]){if(d.Date>l.Date){u=c;break}if(d.Date==l.Date&&d.Time>=l.Time){u=c;break}}}for(var c=0,f=u;c<r;){var d=Y.GetKLineDataTime(this.Data[c]);if(f>=n){var C={Date:d.Date,Time:d.Time,Index:-1};h[c]=C,++c}else{var p=Y.GetKLineDataTime(t[f]);if(s[0]&&s[1]||o[0]&&s[1])if(p.Date==d.Date){var C={Date:d.Date,Time:d.Time,Index:f,Data2:p.Date,Time2:p.Time};h[c]=C,++c}else if(f+1<n){var D=Y.GetKLineDataTime(t[f+1]);if(p.Date<=d.Date&&D.Date>d.Date){var C={Date:d.Date,Time:d.Time,Index:f,Data2:p.Date,Time2:p.Time};h[c]=C,++c}else if(D.Date<=d.Date)++f;else{var C={Date:d.Date,Time:d.Time,Index:-1};h[c]=C,++c}}else++f;else if(o[0]&&o[1])if(p.Date==d.Date&&p.Time==d.Time){var C={Date:d.Date,Time:d.Time,Index:f,Data2:p.Date,Time2:p.Time};h[c]=C,++c}else if(f+1<n){var D=Y.GetKLineDataTime(t[f+1]);if(p.Date<d.Date&&D.Date>d.Date||p.Date==d.Date&&p.Time<d.Time&&D.Date==d.Date&&D.Time>d.Time||p.Date==d.Date&&p.Time<d.Time&&D.Date>d.Date||p.Date<d.Date&&D.Date==d.Date&&D.Time>d.Time){var C={Date:d.Date,Time:d.Time,Index:f,Data2:p.Date,Time2:p.Time};h[c]=C,++c}else if(D.Date<d.Date||D.Date==d.Date&&D.Time<=d.Time)++f;else{var C={Date:d.Date,Time:d.Time,Index:-1};h[c]=C,++c}}else++f}}var m=[];for(var c in e){var d=e[c];if(Array.isArray(d.Data)){var v=[];m[c]={Data:v,Name:d.Name};for(var f=0;f<h.length;++f){var g=h[f];v[f]=null,g&&g.Index>=0&&g.Index<d.Data.length&&(v[f]=d.Data[g.Index])}}else m[c]={Data:d.Data,Name:d.Name}}return m},this.FindDataIndexByDateTime=function(t){var e=0;for(var a in t)t[a].Index=-1;for(var a in this.Data){var i=this.Data[a];for(var r in t){var n=t[r];if(!(n.Index>=0)){if(Ht.IsNumber(n.Time)){if(n.Date==i.Date&&n.Time==i.Time){n.Index=parseInt(a),++e;break}}else if(n.Date==i.Date){n.Index=parseInt(a),++e;break}if(e>=t.length)break}}}}}function U(){this.ChartPaint,this.Data,this.Type=0}function W(t,e,a,i){this.X=t,this.Y=e,this.Width=a,this.Height=i}function X(){this.Canvas,this.ChartBorder,this.ChartFrame,this.Name,this.ClassName="IChartPainting",this.Data=new Y,this.NotSupportMessage=null,this.MessageFont=Xi.Index.NotSupport.Font,this.MessageColor=Xi.Index.NotSupport.TextColor,this.IsDrawFirst=!1,this.IsShow=!0,this.Draw=function(){},this.DrawNotSupportmessage=function(){this.Canvas.font=this.MessageFont,this.Canvas.fillStyle=this.MessageColor;var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetWidth(),a=this.ChartBorder.GetTopEx(),i=this.ChartBorder.GetHeightEx(),r=t+e/2,n=a+i/2;this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillText(this.NotSupportMessage,r,n)},this.GetTooltipData=function(t,e,a){return!1},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(e.Min=null,e.Max=null,!this.Data||!this.Data.Data)return e;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];null==r||isNaN(r)||(null==e.Max&&(e.Max=r),null==e.Min&&(e.Min=r),e.Max<r&&(e.Max=r),e.Min>r&&(e.Min=r))}return e},this.GetDynamicFont=function(t){var e=u();return t<5?4*e+"px Arial":t<7?6*e+"px Arial":t<9?8*e+"px Arial":t<11?10*e+"px Arial":t<13?12*e+"px Arial":t<15?14*e+"px Arial":16*e+"px Arial"},this.GetLockRect=function(){return this.ChartFrame.GetLockRect()},this.SetFillStyle=function(t,e,a,i,r){if(Array.isArray(t)){var n=this.Canvas.createLinearGradient(e,a,i,r),o=1/t.length;for(var s in t)n.addColorStop(s*o,t[s]);this.Canvas.fillStyle=n}else this.Canvas.fillStyle=t}}function K(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartKLine",this.Symbol,this.DrawType=0,this.CloseLineColor=Xi.CloseLineColor,this.CloseLineAreaColor=Xi.CloseLineAreaColor,this.UpColor=Xi.UpBarColor,this.DownColor=Xi.DownBarColor,this.UnchagneColor=Xi.UnchagneBarColor,this.ColorData,this.TradeData,this.TradeIcon=Xi.KLine.TradeIcon,this.TooltipRect=[],this.InfoTooltipRect=[],this.TradeIconTooltipRect=[],this.IsShowMaxMinPrice=!0,this.IsShowKTooltip=!0,this.TextFont=Xi.KLine.MaxMin.Font,this.TextColor=Xi.KLine.MaxMin.Color,this.InfoData,this.InfoPosition=0,this.PtMax,this.PtMin,this.TickSymbol="╳",this.TickFontName="arial",this.Period,this.ReloadResource=function(t){this.TextFont=Xi.KLine.MaxMin.Font,this.TextColor=Xi.KLine.MaxMin.Color,this.CloseLineColor=Xi.CloseLineColor,this.CloseLineAreaColor=Xi.CloseLineAreaColor,this.UpColor=Xi.UpBarColor,this.DownColor=Xi.DownBarColor,this.UnchagneColor=Xi.UnchagneBarColor},this.DrawAKLine=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2;t&&(i=this.ChartBorder.GetTop()+a/2+2);var r=this.ChartBorder.GetRight();t&&(r=this.ChartBorder.GetBottom());for(var n=this.ChartFrame.XPointCount,o=(this.UpColor,this.DownColor,this.UnchagneColor,{X:null,Y:null,Value:null,Align:"left"}),s={X:null,Y:null,Value:null,Align:"left"},l=this.Data.DataOffset,h=0;l<this.Data.Data.length&&h<n;++l,++h,i+=e+a){var u=this.Data.Data[l];if(null!=u.Open&&null!=u.High&&null!=u.Low&&null!=u.Close){var c=i,d=i+e;if(d>r)break;var f=c+(d-c)/2,C=this.ChartFrame.GetYFromData(u.Low),D=this.ChartFrame.GetYFromData(u.High),m=this.ChartFrame.GetYFromData(u.Open),v=this.ChartFrame.GetYFromData(u.Close);if((null==o.Value||o.Value<u.High)&&(o.X=f,o.Y=D,o.Value=u.High,o.Align=h<n/2?"left":"right"),(null==s.Value||s.Value>u.Low)&&(s.X=f,s.Y=C,s.Value=u.Low,s.Align=h<n/2?"left":"right"),u.Open<u.Close?this.Canvas.strokeStyle=this.UpColor:u.Open>u.Close?this.Canvas.strokeStyle=this.DownColor:this.Canvas.strokeStyle=this.UnchagneColor,this.ColorData&&(l<this.ColorData.length&&this.ColorData[l]>0?this.UpColor:this.DownColor),this.Canvas.beginPath(),t?(this.Canvas.moveTo(D,p(f)),this.Canvas.lineTo(C,p(f))):(this.Canvas.moveTo(p(f),D),this.Canvas.lineTo(p(f),C)),this.Canvas.stroke(),e>=4&&(this.Canvas.beginPath(),t?(this.Canvas.moveTo(p(m),c),this.Canvas.lineTo(p(m),f)):(this.Canvas.moveTo(c,p(m)),this.Canvas.lineTo(f,p(m))),this.Canvas.stroke(),this.Canvas.beginPath(),t?(this.Canvas.moveTo(p(v),d),this.Canvas.lineTo(p(v),f)):(this.Canvas.moveTo(d,p(v)),this.Canvas.lineTo(f,p(v))),this.Canvas.stroke()),0==this.Data.DataType){var g={Xleft:c,XRight:d,YMax:D,XCenter:f,YMin:C,DayData:u,Index:h};this.DrawInfo(g)}}}this.PtMax=o,this.PtMin=s},this.DrawCloseArea=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2;t&&(i=this.ChartBorder.GetTop()+a/2+2);var r=this.ChartBorder.GetRight();t&&(r=this.ChartBorder.GetBottom());var n=this.ChartFrame.XPointCount,o=!0,s=null;this.Canvas.beginPath(),this.Canvas.strokeStyle=this.CloseLineColor;for(var l=this.Data.DataOffset,h=0;l<this.Data.Data.length&&h<n;++l,++h,i+=e+a){var u=this.Data.Data[l];if(null!=u.Open&&null!=u.High&&null!=u.Low&&null!=u.Close){var c=i,d=i+e;if(d>r)break;var f=c+(d-c)/2,C=this.ChartFrame.GetYFromData(u.Close);o?(t?(this.Canvas.moveTo(C,f),s={X:C,Y:f}):(this.Canvas.moveTo(f,C),s={X:f,Y:C}),o=!1):t?this.Canvas.lineTo(C,f):this.Canvas.lineTo(f,C)}}if(!o){if(this.Canvas.stroke(),t?(this.Canvas.lineTo(this.ChartBorder.GetLeft(),f),this.Canvas.lineTo(this.ChartBorder.GetLeft(),s.Y)):(this.Canvas.lineTo(f,this.ChartBorder.GetBottom()),this.Canvas.lineTo(s.X,this.ChartBorder.GetBottom())),this.Canvas.closePath(),Array.isArray(this.CloseLineAreaColor))if(t){var p=this.Canvas.createLinearGradient(this.ChartBorder.GetRightEx(),this.ChartBorder.GetTop(),this.ChartBorder.GetLeft(),this.ChartBorder.GetTop());p.addColorStop(0,this.CloseLineAreaColor[0]),p.addColorStop(1,this.CloseLineAreaColor[1]),this.Canvas.fillStyle=p}else{var D=this.Canvas.createLinearGradient(s.X,this.ChartBorder.GetTopEx(),s.X,this.ChartBorder.GetBottom());D.addColorStop(0,this.CloseLineAreaColor[0]),D.addColorStop(1,this.CloseLineAreaColor[1]),this.Canvas.fillStyle=D}else this.Canvas.fillStyle=this.CloseLineAreaColor;this.Canvas.fill()}},this.DrawCloseLine=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2;t&&(i=this.ChartBorder.GetTop()+a/2+2);var r=this.ChartBorder.GetRight();t&&(r=this.ChartBorder.GetBottom());var n=this.ChartFrame.XPointCount,o=!0;this.Canvas.beginPath(),this.Canvas.strokeStyle=this.CloseLineColor;for(var s=this.Data.DataOffset,l=0;s<this.Data.Data.length&&l<n;++s,++l,i+=e+a){var h=this.Data.Data[s];if(null!=h.Open&&null!=h.High&&null!=h.Low&&null!=h.Close){var u=i,c=i+e;if(c>r)break;var d=u+(c-u)/2,f=this.ChartFrame.GetYFromData(h.Close);o?(t?this.Canvas.moveTo(f,d):this.Canvas.moveTo(d,f),o=!1):t?this.Canvas.lineTo(f,d):this.Canvas.lineTo(d,f)}}0==o&&this.Canvas.stroke()},this.DrawKBar=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2,r=this.ChartBorder.GetRight(),n=this.ChartFrame.XPointCount;t&&(i=this.ChartBorder.GetTop()+a/2+2,r=this.ChartBorder.GetBottom());for(var o={X:null,Y:null,Value:null,Align:"left"},s={X:null,Y:null,Value:null,Align:"left"},l=this.UpColor,h=this.DownColor,u=this.UnchagneColor,c=this.Data.DataOffset,d=0;c<this.Data.Data.length&&d<n;++c,++d,i+=e+a){var f=this.Data.Data[c];if(null!=f.Open&&null!=f.High&&null!=f.Low&&null!=f.Close){var C=i,m=i+e;if(m>r)break;var v=C+(m-C)/2,g=this.ChartFrame.GetYFromData(f.Low),S=this.ChartFrame.GetYFromData(f.High),I=this.ChartFrame.GetYFromData(f.Open),x=this.ChartFrame.GetYFromData(f.Close),T=S;if((null==o.Value||o.Value<f.High)&&(o.X=v,o.Y=S,o.Value=f.High,o.Align=d<n/2?"left":"right"),(null==s.Value||s.Value>f.Low)&&(s.X=v,s.Y=g,s.Value=f.Low,s.Align=d<n/2?"left":"right"),this.ColorData&&(l=h=u=c<this.ColorData.length&&this.ColorData[c]>0?this.UpColor:this.DownColor),f.Open<f.Close?e>=4?(this.Canvas.strokeStyle=l,f.High>f.Close?(this.Canvas.beginPath(),t?(this.Canvas.moveTo(p(T),p(v)),this.Canvas.lineTo(p(3==this.DrawType?Math.max(x,I):x),p(v))):(this.Canvas.moveTo(p(v),p(T)),this.Canvas.lineTo(p(v),p(3==this.DrawType?Math.min(x,I):x))),this.Canvas.stroke(),T=x):T=x,this.Canvas.fillStyle=l,t?Math.abs(I-T)<1?this.Canvas.fillRect(D(T),D(C),1,D(e)):3==this.DrawType?(this.Canvas.beginPath(),this.Canvas.rect(p(T),p(C),D(I-T),D(e)),this.Canvas.stroke()):this.Canvas.fillRect(D(T),D(C),D(I-T),D(e)):Math.abs(I-T)<1?this.Canvas.fillRect(D(C),D(T),D(e),1):3==this.DrawType?(this.Canvas.beginPath(),this.Canvas.rect(p(C),p(T),D(e),D(I-T)),this.Canvas.stroke()):this.Canvas.fillRect(D(C),D(Math.min(T,I)),D(e),D(Math.abs(I-T))),f.Open>f.Low&&(this.Canvas.beginPath(),t?(this.Canvas.moveTo(p(3==this.DrawType?Math.min(x,I):T),p(v)),this.Canvas.lineTo(p(g),p(v))):(this.Canvas.moveTo(p(v),p(3==this.DrawType?Math.max(x,I):T)),this.Canvas.lineTo(p(v),p(g))),this.Canvas.stroke())):(this.Canvas.beginPath(),t?(this.Canvas.moveTo(S,p(v)),this.Canvas.lineTo(g,p(v))):(this.Canvas.moveTo(p(v),S),this.Canvas.lineTo(p(v),g)),this.Canvas.strokeStyle=l,this.Canvas.stroke()):f.Open>f.Close?e>=4?(this.Canvas.strokeStyle=h,f.High>f.Close?(this.Canvas.beginPath(),t?(this.Canvas.moveTo(p(T),p(v)),this.Canvas.lineTo(p(I),p(v))):(this.Canvas.moveTo(p(v),p(T)),this.Canvas.lineTo(p(v),p(I))),this.Canvas.stroke(),T=I):T=I,this.Canvas.fillStyle=h,t?Math.abs(x-T)<1?this.Canvas.fillRect(D(T),D(C),1,D(e)):this.Canvas.fillRect(D(T),D(C),D(x-T),D(e)):Math.abs(x-T)<1?this.Canvas.fillRect(D(C),D(T),D(e),1):this.Canvas.fillRect(D(C),D(Math.min(T,x)),D(e),D(Math.abs(x-T))),f.Open>f.Low&&(this.Canvas.beginPath(),t?(this.Canvas.moveTo(p(T),p(v)),this.Canvas.lineTo(p(g),p(v))):(this.Canvas.moveTo(p(v),p(T)),this.Canvas.lineTo(p(v),p(g))),this.Canvas.stroke())):(this.Canvas.beginPath(),t?(this.Canvas.moveTo(S,p(v)),this.Canvas.lineTo(g,p(v))):(this.Canvas.moveTo(p(v),S),this.Canvas.lineTo(p(v),g)),this.Canvas.strokeStyle=h,this.Canvas.stroke()):e>=4?(this.Canvas.strokeStyle=u,this.Canvas.beginPath(),f.High>f.Close?(t?(this.Canvas.moveTo(T,p(v)),this.Canvas.lineTo(I,p(v))):(this.Canvas.moveTo(p(v),T),this.Canvas.lineTo(p(v),I)),T=I):T=I,t?(this.Canvas.moveTo(p(T),p(C)),this.Canvas.lineTo(p(T),p(m))):(this.Canvas.moveTo(p(C),p(T)),this.Canvas.lineTo(p(m),p(T))),f.Open>f.Low&&(t?(this.Canvas.moveTo(p(T),p(v)),this.Canvas.lineTo(p(g),p(v))):(this.Canvas.moveTo(p(v),p(T)),this.Canvas.lineTo(p(v),p(g)))),this.Canvas.stroke()):(this.Canvas.beginPath(),t?(this.Canvas.moveTo(S,p(v)),this.Canvas.lineTo(g,p(v))):(this.Canvas.moveTo(p(v),S),this.Canvas.lineTo(p(v),g)),this.Canvas.strokeStyle=u,this.Canvas.stroke()),this.IsShowKTooltip&&!t){var A=Math.min(I,x),b=Math.max(I,x);Math.abs(I-x)<5&&(A=Math.min(S,A-5),b=Math.max(g,b+5));var E=new W(C,A,e,b-A);this.TooltipRect.push([c,E])}if(0==this.Data.DataType){var F={Xleft:C,XRight:m,XCenter:v,YMax:S,YMin:g,DayData:f,Index:d};this.DrawInfo(F)}}}this.PtMax=o,this.PtMin=s},this.DrawTrade=function(){if(this.TradeData){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2,r=this.ChartBorder.GetRight(),n=this.ChartFrame.XPointCount;t&&(i=this.ChartBorder.GetTop()+a/2+2,r=this.ChartBorder.GetBottom());var o=this.TradeData.Sell,s=this.TradeData.Buy,l=e;l>10&&(l=10);for(var h=this.Data.DataOffset,u=0;h<this.Data.Data.length&&u<n;++h,++u,i+=e+a){var c=this.Data.Data[h];if(null!=c.Open&&null!=c.High&&null!=c.Low&&null!=c.Close){var d=!1,f=!1;if(o&&h<o.length&&(f=o[h]>0),s&&h<s.length&&(d=s[h]>0),f||d){var C=i,p=i+e;if(p>r)break;var D=C+(p-C)/2,m=this.ChartFrame.GetYFromData(c.Low),v=this.ChartFrame.GetYFromData(c.High);this.ChartFrame.GetYFromData(c.Open),this.ChartFrame.GetYFromData(c.Close);d&&(this.Canvas.fillStyle=this.UpColor,this.Canvas.strokeStyle=this.UnchagneColor,this.Canvas.beginPath(),t?(this.Canvas.moveTo(m-1,D),this.Canvas.lineTo(m-l-1,D-l/2),this.Canvas.lineTo(m-l-1,D+l/2)):(this.Canvas.moveTo(D,m+1),this.Canvas.lineTo(D-l/2,m+l+1),this.Canvas.lineTo(D+l/2,m+l+1)),this.Canvas.closePath(),this.Canvas.fill(),this.Canvas.stroke()),f&&(this.Canvas.fillStyle=this.DownColor,this.Canvas.strokeStyle=this.UnchagneColor,this.Canvas.beginPath(),t?(this.Canvas.moveTo(v+1,D),this.Canvas.lineTo(v+l+1,D-l/2),this.Canvas.lineTo(v+l+1,D+l/2)):(this.Canvas.moveTo(D,v-1),this.Canvas.lineTo(D-l/2,v-l-1),this.Canvas.lineTo(D+l/2,v-l-1)),this.Canvas.closePath(),this.Canvas.fill(),this.Canvas.stroke())}}}}},this.DrawTick=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2;t&&(i=this.ChartBorder.GetTop()+a/2+2);var r=this.ChartBorder.GetRight();t&&(r=this.ChartBorder.GetBottom());var n=this.ChartFrame.XPointCount,o=parseInt(e);o<=1?o=2:o>=18&&(o=18);this.Canvas.beginPath(),this.Canvas.font=o*u()+"px "+this.TickFontName;for(var s=this.Data.DataOffset,l=0;s<this.Data.Data.length&&l<n;++s,++l,i+=e+a){var h=this.Data.Data[s];if(null!=h.Open&&null!=h.High&&null!=h.Low&&null!=h.Close){var c=i,d=i+e;if(d>r)break;var f=c+(d-c)/2,C=this.ChartFrame.GetYFromData(h.Close);0===h.Flag?this.Canvas.fillStyle=this.UpColor:1==h.Flag?this.Canvas.fillStyle=this.DownColor:this.Canvas.fillStyle=this.UnchagneColor,this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",t?this.Canvas.fillText(this.TickSymbol,C,f):this.Canvas.fillText(this.TickSymbol,f,C)}}},this.Draw=function(){if(this.TooltipRect=[],this.InfoTooltipRect=[],this.TradeIconTooltipRect=[],this.PtMax={X:null,Y:null,Value:null,Align:"left"},this.PtMin={X:null,Y:null,Value:null,Align:"left"},this.ChartFrame.ChartKLine={Max:null,Min:null},this.IsShow){if(Y.IsTickPeriod(this.Period))return void this.DrawTick();if(1==this.DrawType)return void this.DrawCloseLine();2==this.DrawType?this.DrawAKLine():4==this.DrawType?this.DrawCloseArea():this.DrawKBar(),this.TradeIcon?this.DrawTradeIcon():this.DrawTrade(),this.IsShowMaxMinPrice&&(!0===this.ChartFrame.IsHScreen?this.HScreenDrawMaxMinPrice(this.PtMax,this.PtMin):this.DrawMaxMinPrice(this.PtMax,this.PtMin))}},this.DrawMaxMinPrice=function(t,e){if(null!=t.X&&null!=t.Y&&null!=t.Value&&null!=e.X&&null!=e.Y&&null!=e.Value){var a=Ha(this.Symbol);this.Canvas.font=this.TextFont,this.Canvas.fillStyle=this.TextColor;var i=t;t.Y>e.Y&&(i=e),this.Canvas.textAlign=i.Align,this.Canvas.textBaseline="bottom";var r=(i.Align,i.X),n=i.Value.toFixed(a);"left"==i.Align?n="←"+n:n+="→",this.Canvas.fillText(n,r,i.Y),this.ChartFrame.ChartKLine.Max={X:r,Y:i.Y,Text:{BaseLine:"bottom"}};var o=e;e.Y<t.Y&&(o=t),this.Canvas.textAlign=o.Align,this.Canvas.textBaseline="top";var r=(o.Align,o.X),n=e.Value.toFixed(a);"left"==o.Align?n="←"+n:n+="→",this.Canvas.fillText(n,r,o.Y),this.ChartFrame.ChartKLine.Min={X:r,Y:o.Y,Text:{BaseLine:"top"}}}},this.HScreenDrawMaxMinPrice=function(t,e){if(null!=t.X&&null!=t.Y&&null!=t.Value&&null!=e.X&&null!=e.Y&&null!=e.Value){var a=Ha(this.Symbol),i=t.Y,r=t.X;this.Canvas.save(),this.Canvas.translate(i,r),this.Canvas.rotate(90*Math.PI/180),this.Canvas.font=this.TextFont,this.Canvas.fillStyle=this.TextColor,this.Canvas.textAlign=t.Align,this.Canvas.textBaseline="bottom";var n=t.Value.toFixed(a);"left"==t.Align?n="←"+n:n+="→",this.Canvas.fillText(n,0,0),this.Canvas.restore();var i=e.Y,r=e.X;this.Canvas.save(),this.Canvas.translate(i,r),this.Canvas.rotate(90*Math.PI/180),this.Canvas.font=this.TextFont,this.Canvas.fillStyle=this.TextColor,this.Canvas.textAlign=e.Align,this.Canvas.textBaseline="top";var n=e.Value.toFixed(a);"left"==e.Align?n="←"+n:n+="→",this.Canvas.fillText(n,0,0),this.Canvas.restore()}},this.DrawInfo=function(t){if(this.InfoData&&!(this.InfoData.length<=0)){var e=!0===this.ChartFrame.IsHScreen,a=this.ChartFrame.DataWidth,i=this.ChartFrame.DistanceWidth,r=this.ChartBorder.GetBottom(),n=this.InfoData.get(t.DayData.Date.toString());if(n&&!(n.Data.length<=0)){var o=u(),s=a+i,l=18*o,h=!0;s<=15&&(h=!1),s<l&&(s=l);var c="",d=new xi.default,f=t.YMax+1*o,C=0;for(var p in n.Data){var D=n.Data[p],m=d.get(D.InfoType);if(m)m.Data.push(D);else{var v=la.GetIconFont(D.InfoType);if(this.Canvas.fillStyle=v.Color,this.Canvas.font=s+"px "+v.Family,e){this.Canvas.textBaseline="middle",this.Canvas.textAlign="left",this.Canvas.fillText(v.HScreenText,f,t.XCenter,s);var g=new W(t.XCenter-s/2,f-s,s,s),S={Data:new Array(D),Rect:g,Type:D.InfoType,TextRect:{X:f,Y:t.XCenter}};d.set(D.InfoType,S),f+=s}else if(this.Canvas.textBaseline="bottom",this.Canvas.textAlign="center",1===this.InfoPosition){var I=r+C;this.Canvas.fillText(v.Text,t.XCenter,I,s);var g=new W(t.XCenter-s/2,I-s,s,s),S={Data:new Array(D),Rect:g,Type:D.InfoType,TextRect:{X:t.XCenter,Y:I}};d.set(D.InfoType,S),C-=s}else{this.Canvas.fillText(v.Text,t.XCenter,f,s);var g=new W(t.XCenter-s/2,f-s,s,s),S={Data:new Array(D),Rect:g,Type:D.InfoType,TextRect:{X:t.XCenter,Y:f}};d.set(D.InfoType,S),f-=s}}}var x;Xi.KLine.NumIcon&&(x=e?Xi.KLine.NumIcon.HScreenText:Xi.KLine.NumIcon.Text);var T=!0,A=!1,b=void 0;try{for(var E,F=(0,Si.default)(d);!(T=(E=F.next()).done);T=!0){var t=E.value,y=t[1];if(y.Data.length>=2&&x&&h){var L=y.Data.length;L>=x.length&&(L=0),this.Canvas.fillStyle=Xi.KLine.NumIcon.Color;var c=x[L];this.Canvas.fillText(c,y.TextRect.X,y.TextRect.Y,s)}e||this.InfoTooltipRect.push(y)}}catch(t){A=!0,b=t}finally{try{!T&&F.return&&F.return()}finally{if(A)throw b}}}}},this.DrawTradeIcon=function(){if(this.TradeData){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetLeft()+a/2+2,r=this.ChartBorder.GetRight(),n=this.ChartFrame.XPointCount;t&&(i=this.ChartBorder.GetTop()+a/2+2,r=this.ChartBorder.GetBottom());var o=this.TradeData.Sell,s=this.TradeData.Buy,l=e+a,h=u(),c=24*h,d=12*h;l<d?l=d:l>c&&(l=c),this.Canvas.font=l+"px "+this.TradeIcon.Family;for(var f=this.Data.DataOffset,C=0;f<this.Data.Data.length&&C<n;++f,++C,i+=e+a){var p=this.Data.Data[f];if(null!=p.Open&&null!=p.High&&null!=p.Low&&null!=p.Close){var D=!1,m=!1;if(o&&f<o.length&&(m=o[f]>0),s&&f<s.length&&(D=s[f]>0),m||D){var v=i,g=i+e;if(g>r)break;var S=v+(g-v)/2,I=this.ChartFrame.GetYFromData(p.Low),x=this.ChartFrame.GetYFromData(p.High);this.ChartFrame.GetYFromData(p.Open),this.ChartFrame.GetYFromData(p.Close);if(D)if(this.Canvas.fillStyle=this.TradeIcon.Buy.Color,t)this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillText(this.TradeIcon.Buy.HScreenText,I,S);else{this.Canvas.textAlign="center",this.Canvas.textBaseline="top",this.Canvas.fillText(this.TradeIcon.Buy.Text,S,I);var T=new W(S-l/2,I,l,l),A={Data:{Type:1,KData:p,Name:this.TradeData.Name,Param:this.TradeData.Param},Rect:T,TextRect:{X:S,Y:I}};this.TradeIconTooltipRect.push(A)}if(m)if(this.Canvas.fillStyle=this.TradeIcon.Sell.Color,t)this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillText(this.TradeIcon.Sell.HScreenText,x,S);else{this.Canvas.textAlign="center",this.Canvas.textBaseline="bottom",this.Canvas.fillText(this.TradeIcon.Sell.Text,S,x);var T=new W(S-l/2,x-l,l,l),A={Data:{Type:2,KData:p,Name:this.TradeData.Name,Param:this.TradeData.Param},Rect:T,TextRect:{X:S,Y:x}};this.TradeIconTooltipRect.push(A)}}}}}},this.GetTooltipData=function(t,e,a){for(var i in this.TradeIconTooltipRect){var r=this.TradeIconTooltipRect[i];if(r.Rect){var n=r.Rect;if(this.Canvas.beginPath(),this.Canvas.rect(n.X,n.Y,n.Width,n.Height),this.Canvas.isPointInPath(t,e))return bi.Chart.Log("[ChartKLine::GetTooltipData] trade icon ",r),a.Data=r,a.ChartPaint=this,a.Type=2,!0}}for(var i in this.InfoTooltipRect){var r=this.InfoTooltipRect[i];if(r.Rect){var n=r.Rect;if(this.Canvas.beginPath(),this.Canvas.rect(n.X,n.Y,n.Width,n.Height),this.Canvas.isPointInPath(t,e))return a.Data=r,a.ChartPaint=this,a.Type=1,!0}}for(var i in this.TooltipRect){var n=this.TooltipRect[i][1];if(this.Canvas.beginPath(),this.Canvas.rect(n.X,n.Y,n.Width,n.Height),this.Canvas.isPointInPath(t,e)){var o=this.TooltipRect[i][0];return a.Data=this.Data.Data[o],a.ChartPaint=this,a.Type=0,!0}}return!1},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(e.Max=null,e.Min=null,1==this.DrawType||4==this.DrawType)for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];Ht.IsNumber(r.Close)&&(null==e.Max&&(e.Max=r.Close),null==e.Min&&(e.Min=r.Close),e.Max<r.Close&&(e.Max=r.Close),e.Min>r.Close&&(e.Min=r.Close))}else for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];null!=r.Open&&null!=r.High&&null!=r.Low&&null!=r.Close&&(null==e.Max&&(e.Max=r.High),null==e.Min&&(e.Min=r.Low),e.Max<r.High&&(e.Max=r.High),e.Min>r.Low&&(e.Min=r.Low))}return e},this.GetAllPrice=function(){for(var t=this.ChartFrame.XPointCount,e=new vi.default,a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];if(null!=r.Open&&null!=r.High&&null!=r.Low&&null!=r.Close){var n=r.Close;e.add(n)}}var o=[],s=!0,l=!1,h=void 0;try{for(var u,c=(0,Si.default)(e);!(s=(u=c.next()).done);s=!0){var d=u.value;o.push(d)}}catch(t){l=!0,h=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw h}}return o.sort(function(t,e){return t-e}),o}}function z(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartColorKline",this.Symbol,this.Color="rgb(0,255,44)",this.DrawType=0,this.KLineColor,this.Draw=function(){this.IsShow&&this.KLineColor&&this.DrawBar()},this.DrawUpBarItem=function(t,e,a,i){var r=!0===this.ChartFrame.IsHScreen,n=e,o=e+a,s=n+(o-n)/2,l=this.ChartFrame.GetYFromData(t.Low),h=this.ChartFrame.GetYFromData(t.High),u=this.ChartFrame.GetYFromData(t.Open),c=this.ChartFrame.GetYFromData(t.Close),d=h;a>=4?(t.High>t.Close?(this.Canvas.beginPath(),r?(this.Canvas.moveTo(p(d),p(s)),this.Canvas.lineTo(p(3==this.DrawType?Math.max(c,u):c),p(s))):(this.Canvas.moveTo(p(s),p(d)),this.Canvas.lineTo(p(s),p(3==this.DrawType?Math.min(c,u):c))),this.Canvas.stroke(),d=c):d=c,r?Math.abs(u-d)<1?this.Canvas.fillRect(D(d),D(n),1,D(a)):3==this.DrawType?(this.Canvas.beginPath(),this.Canvas.rect(p(d),p(n),D(u-d),D(a)),this.Canvas.stroke()):this.Canvas.fillRect(D(d),D(n),D(u-d),D(a)):Math.abs(u-d)<1?this.Canvas.fillRect(D(n),D(d),D(a),1):3==this.DrawType?(this.Canvas.beginPath(),this.Canvas.rect(p(n),p(d),D(a),D(u-d)),this.Canvas.stroke()):this.Canvas.fillRect(D(n),D(Math.min(d,u)),D(a),D(Math.abs(u-d))),t.Open>t.Low&&(this.Canvas.beginPath(),r?(this.Canvas.moveTo(p(3==this.DrawType?Math.min(c,u):d),p(s)),this.Canvas.lineTo(p(l),p(s))):(this.Canvas.moveTo(p(s),p(3==this.DrawType?Math.max(c,u):d)),this.Canvas.lineTo(p(s),p(l))),this.Canvas.stroke())):(this.Canvas.beginPath(),r?(this.Canvas.moveTo(h,p(s)),this.Canvas.lineTo(l,p(s))):(this.Canvas.moveTo(p(s),h),this.Canvas.lineTo(p(s),l)),this.Canvas.stroke())},this.DrawDownBarItem=function(t,e,a,i){var r=!0===this.ChartFrame.IsHScreen,n=e,o=e+a,s=n+(o-n)/2,l=this.ChartFrame.GetYFromData(t.Low),h=this.ChartFrame.GetYFromData(t.High),u=this.ChartFrame.GetYFromData(t.Open),c=this.ChartFrame.GetYFromData(t.Close),d=h;a>=4?(t.High>t.Close?(this.Canvas.beginPath(),r?(this.Canvas.moveTo(p(d),p(s)),this.Canvas.lineTo(p(u),p(s))):(this.Canvas.moveTo(p(s),p(d)),this.Canvas.lineTo(p(s),p(u))),this.Canvas.stroke(),d=u):d=u,r?Math.abs(c-d)<1?this.Canvas.fillRect(D(d),D(n),1,D(a)):this.Canvas.fillRect(D(d),D(n),D(c-d),D(a)):Math.abs(c-d)<1?this.Canvas.fillRect(D(n),D(d),D(a),1):this.Canvas.fillRect(D(n),D(Math.min(d,c)),D(a),D(Math.abs(c-d))),t.Open>t.Low&&(this.Canvas.beginPath(),r?(this.Canvas.moveTo(p(d),p(s)),this.Canvas.lineTo(p(l),p(s))):(this.Canvas.moveTo(p(s),p(d)),this.Canvas.lineTo(p(s),p(l))),this.Canvas.stroke())):(this.Canvas.beginPath(),r?(this.Canvas.moveTo(h,p(s)),this.Canvas.lineTo(l,p(s))):(this.Canvas.moveTo(p(s),h),this.Canvas.lineTo(p(s),l)),this.Canvas.stroke())},this.DrawUnChangeBarItem=function(t,e,a,i){var r=!0===this.ChartFrame.IsHScreen,n=e,o=e+a,s=n+(o-n)/2,l=this.ChartFrame.GetYFromData(t.Low),h=this.ChartFrame.GetYFromData(t.High),u=this.ChartFrame.GetYFromData(t.Open),c=(this.ChartFrame.GetYFromData(t.Close),h);a>=4?(this.Canvas.beginPath(),t.High>t.Close?(r?(this.Canvas.moveTo(c,p(s)),this.Canvas.lineTo(u,p(s))):(this.Canvas.moveTo(p(s),c),this.Canvas.lineTo(p(s),u)),c=u):c=u,r?(this.Canvas.moveTo(p(c),p(n)),this.Canvas.lineTo(p(c),p(o))):(this.Canvas.moveTo(p(n),p(c)),this.Canvas.lineTo(p(o),p(c))),t.Open>t.Low&&(r?(this.Canvas.moveTo(p(c),p(s)),this.Canvas.lineTo(p(l),p(s))):(this.Canvas.moveTo(p(s),p(c)),this.Canvas.lineTo(p(s),p(l)))),this.Canvas.stroke()):(this.Canvas.beginPath(),r?(this.Canvas.moveTo(h,p(s)),this.Canvas.lineTo(l,p(s))):(this.Canvas.moveTo(p(s),h),this.Canvas.lineTo(p(s),l)),this.Canvas.stroke())},this.DrawBar=function(){var t=this.ChartFrame.DataWidth,e=this.ChartFrame.DistanceWidth,a=this.ChartBorder.GetLeft()+e/2+2,i=this.ChartBorder.GetRight(),r=this.ChartFrame.XPointCount;this.IsHScreen&&(a=this.ChartBorder.GetTop()+e/2+2,i=this.ChartBorder.GetBottom());for(var n=this.Data.DataOffset,o=0;n<this.Data.Data.length&&o<r;++n,++o,a+=t+e){var s=this.Data.Data[n];if(null!=s.Open&&null!=s.High&&null!=s.Low&&null!=s.Close&&this.KLineColor.has(n)){var l=this.KLineColor.get(n);if(a+t>i)break;l.Color?(this.Canvas.strokeStyle=l.Color,this.Canvas.fillStyle=l.Color):(this.Canvas.strokeStyle=this.Color,this.Canvas.fillStyle=this.Color),s.Open<s.Close?this.DrawUpBarItem(s,a,t,l):s.Open>s.Close?this.DrawDownBarItem(s,a,t,l):this.DrawUnChangeBarItem(s,a,t,l)}}},this.GetMaxMin=function(){return{Max:null,Min:null}}}function J(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartOverlayKLine",this.Color="rgb(65,105,225)",this.MainData,this.SourceData,this.Title,this.DrawType=0,this.CustomDrawType=null,this.Status=Hi.STATUS_NONE_ID,this.IsDelete=!1,this.SetOption=function(t){t&&Ht.IsNumber(t.DrawType)&&(this.CustomDrawType=t.DrawType)},this.DrawKBar=function(t){var e=!0===this.ChartFrame.IsHScreen,a=this.ChartFrame.DataWidth,i=this.ChartFrame.DistanceWidth,r=this.ChartBorder.GetLeft()+i/2+2;e&&(r=this.ChartBorder.GetTop()+i/2+2);var n=this.ChartBorder.GetRight();e&&(n=this.ChartBorder.GetBottom());var o=this.ChartFrame.XPointCount,s=this.DrawType;null!=this.CustomDrawType&&(s=this.CustomDrawType);for(var l=!0,h=null,u=this.Data.DataOffset,c=0;u<this.Data.Data.length&&c<o;++u,++c,r+=a+i){var d=this.Data.Data[u];if(d&&null!=d.Open&&null!=d.High&&null!=d.Low&&null!=d.Close){null==h&&(h=d.Open),l&&(this.Canvas.strokeStyle=this.Color,this.Canvas.fillStyle=this.Color,this.Canvas.beginPath(),l=!1);var f=r,C=r+a;if(C>n)break;var m=f+(C-f)/2,v=this.ChartFrame.GetYFromData(d.Low/h*t),g=this.ChartFrame.GetYFromData(d.High/h*t),S=this.ChartFrame.GetYFromData(d.Open/h*t),I=this.ChartFrame.GetYFromData(d.Close/h*t),x=g;d.Open<d.Close?a>=4?(d.High>d.Close?(e?(this.Canvas.moveTo(p(x),p(m)),this.Canvas.lineTo(p(3==this.DrawType?Math.max(I,S):I),p(m))):(this.Canvas.moveTo(p(m),p(x)),this.Canvas.lineTo(p(m),p(3==this.DrawType?Math.min(I,S):I))),x=I):x=I,e?Math.abs(S-x)<1?this.Canvas.fillRect(D(x),D(f),1,D(a)):3==s?this.Canvas.rect(p(x),p(f),D(S-x),D(a)):this.Canvas.fillRect(D(x),D(f),D(S-x),D(a)):Math.abs(S-x)<1?this.Canvas.fillRect(D(f),D(x),D(a),1):3==s?this.Canvas.rect(p(f),p(x),D(a),D(S-x)):this.Canvas.fillRect(D(f),D(x),D(a),D(S-x)),d.Open>d.Low&&(e?(this.Canvas.moveTo(p(3==this.DrawType?Math.min(I,S):x),p(m)),this.Canvas.lineTo(p(v),p(m))):(this.Canvas.moveTo(p(m),p(3==this.DrawType?Math.max(I,S):x)),this.Canvas.lineTo(p(m),p(v))))):e?(this.Canvas.moveTo(g,p(m)),this.Canvas.lineTo(v,p(m))):(this.Canvas.moveTo(p(m),g),this.Canvas.lineTo(p(m),v)):d.Open>d.Close?a>=4?(d.High>d.Close?(e?(this.Canvas.moveTo(p(x),p(m)),this.Canvas.lineTo(p(S),p(m))):(this.Canvas.moveTo(p(m),p(x)),this.Canvas.lineTo(p(m),p(S))),x=S):x=S,e?Math.abs(I-x)<1?this.Canvas.fillRect(D(x),D(f),1,D(a)):this.Canvas.fillRect(D(x),D(f),D(I-x),D(a)):Math.abs(I-x)<1?this.Canvas.fillRect(D(f),D(x),D(a),1):this.Canvas.fillRect(D(f),D(x),D(a),D(I-x)),d.Open>d.Low&&(e?(this.Canvas.moveTo(p(x),p(m)),this.Canvas.lineTo(p(v),p(m))):(this.Canvas.moveTo(p(m),p(x)),this.Canvas.lineTo(p(m),p(v))))):e?(this.Canvas.moveTo(g,p(m)),this.Canvas.lineTo(v,p(m))):(this.Canvas.moveTo(p(m),g),this.Canvas.lineTo(p(m),v)):a>=4?(d.High>d.Close?(e?(this.Canvas.moveTo(x,p(m)),this.Canvas.lineTo(S,p(m))):(this.Canvas.moveTo(p(m),x),this.Canvas.lineTo(p(m),S)),x=S):x=S,e?(this.Canvas.moveTo(p(x),p(f)),this.Canvas.lineTo(p(x),p(C))):(this.Canvas.moveTo(p(f),p(x)),this.Canvas.lineTo(p(C),p(x))),d.Open>d.Low&&(e?(this.Canvas.moveTo(p(x),p(m)),this.Canvas.lineTo(p(v),p(m))):(this.Canvas.moveTo(p(m),p(x)),this.Canvas.lineTo(p(m),p(v))))):e?(this.Canvas.moveTo(g,p(m)),this.Canvas.lineTo(v,p(m))):(this.Canvas.moveTo(p(m),g),this.Canvas.lineTo(p(m),v));var T=Math.min(v,g,S,I),A=Math.max(v,g,S,I),b=new W(f,T,a,A-T);this.TooltipRect.push([u,b])}}0==l&&this.Canvas.stroke()},this.DrawAKLine=function(t){var e=!0===this.ChartFrame.IsHScreen,a=this.ChartFrame.DataWidth,i=this.ChartFrame.DistanceWidth,r=this.ChartBorder.GetLeft()+i/2+2;e&&(r=this.ChartBorder.GetTop()+i/2+2);var n=this.ChartBorder.GetRight();e&&(n=this.ChartBorder.GetBottom());var o=this.ChartFrame.XPointCount,s=null;this.Canvas.strokeStyle=this.Color;for(var l=this.Data.DataOffset,h=0;l<this.Data.Data.length&&h<o;++l,++h,r+=a+i){var u=this.Data.Data[l];if(null!=u.Open&&null!=u.High&&null!=u.Low&&null!=u.Close){null==s&&(s=u.Open);var c=r,d=r+a;if(d>n)break;var f=c+(d-c)/2,C=this.ChartFrame.GetYFromData(u.Low/s*t),D=this.ChartFrame.GetYFromData(u.High/s*t),m=this.ChartFrame.GetYFromData(u.Open/s*t),v=this.ChartFrame.GetYFromData(u.Close/s*t);this.Canvas.beginPath(),e?(this.Canvas.moveTo(D,p(f)),this.Canvas.lineTo(C,p(f))):(this.Canvas.moveTo(p(f),D),this.Canvas.lineTo(p(f),C)),this.Canvas.stroke(),a>=4&&(this.Canvas.beginPath(),e?(this.Canvas.moveTo(p(m),c),this.Canvas.lineTo(p(m),f)):(this.Canvas.moveTo(c,p(m)),this.Canvas.lineTo(f,p(m))),this.Canvas.stroke(),this.Canvas.beginPath(),e?(this.Canvas.moveTo(p(v),d),this.Canvas.lineTo(p(v),f)):(this.Canvas.moveTo(d,p(v)),this.Canvas.lineTo(f,p(v))),this.Canvas.stroke())}}},this.DrawCloseLine=function(t){var e=!0===this.ChartFrame.IsHScreen,a=this.ChartFrame.DataWidth,i=this.ChartFrame.DistanceWidth,r=this.ChartBorder.GetLeft()+i/2+2;e&&(r=this.ChartBorder.GetTop()+i/2+2);var n=this.ChartBorder.GetRight();e&&(n=this.ChartBorder.GetBottom());var o=this.ChartFrame.XPointCount,s=null,l=!0;this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath();for(var h=this.Data.DataOffset,u=0;h<this.Data.Data.length&&u<o;++h,++u,r+=a+i){var c=this.Data.Data[h];if(null!=c.Open&&null!=c.High&&null!=c.Low&&null!=c.Close){null==s&&(s=c.Open);var d=r,f=r+a;if(f>n)break;var C=d+(f-d)/2,p=this.ChartFrame.GetYFromData(c.Close/s*t);l?(e?this.Canvas.moveTo(p,C):this.Canvas.moveTo(C,p),l=!1):e?this.Canvas.lineTo(p,C):this.Canvas.lineTo(C,p)}}0==l&&this.Canvas.stroke()},this.Draw=function(){if(this.TooltipRect=[],this.InfoTooltipRect=[],this.MainData&&this.Data){for(var t=this.ChartFrame.XPointCount,e=null,a=this.Data.DataOffset,i=0;a<this.MainData.Data.length&&i<t;++a,++i){var r=this.MainData.Data[a];if(null!=r.Open&&null!=r.High&&null!=r.Low&&null!=r.Close){e=r.Open;break}}if(null!=e){var n=this.DrawType;null!=this.CustomDrawType&&(n=this.CustomDrawType),1==n?this.DrawCloseLine(e):2==n?this.DrawAKLine(e):this.DrawKBar(e)}}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(e.Max=null,e.Min=null,!this.MainData||!this.Data)return e;for(var a=null,i=this.Data.DataOffset,r=0;i<this.MainData.Data.length&&r<t;++i,++r){var n=this.MainData.Data[i];if(null!=n.Open&&null!=n.High&&null!=n.Low&&null!=n.Close){a=n.Close;break}}if(null==a)return e;for(var o,s,l=null,i=this.Data.DataOffset,r=0;i<this.Data.Data.length&&r<t;++i,++r){var n=this.Data.Data[i];n&&null!=n.Open&&null!=n.High&&null!=n.Low&&null!=n.Close&&(null==l&&(l=n.Open),o=n.High/l*a,s=n.Low/l*a,null==e.Max&&(e.Max=o),null==e.Min&&(e.Min=s),e.Max<o&&(e.Max=o),e.Min>s&&(e.Min=s))}return e},this.GetTooltipData=function(t,e,a){for(var i in this.TooltipRect){var r=this.TooltipRect[i][1];if(this.Canvas.beginPath(),this.Canvas.rect(r.X,r.Y,r.Width,r.Height),this.Canvas.isPointInPath(t,e)){var n=this.TooltipRect[i][0];return a.Data=this.Data.Data[n],a.ChartPaint=this,!0}}return!1}}function q(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMinuteVolumBar",this.UpColor=Xi.UpBarColor,this.DownColor=Xi.DownBarColor,this.YClose,this.Draw=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartBorder.GetRight();t&&(e=this.ChartBorder.GetBottom());for(var a=this.ChartFrame.XPointCount,i=this.ChartFrame.GetYFromData(0),r=this.YClose,n=this.Data,o=n.DataOffset,s=0;o<n.Data.length&&s<a;++o,++s){var l=n.Data[o],h=null;if(l){var u=null;if(l.Before?(h=l.Before.Vol,u=l.Before.Close):(h=l.Vol,u=l.Close),h){var c=this.ChartFrame.GetYFromData(h),d=this.ChartFrame.GetXFromIndex(o);if(d>e)break;this.Canvas.strokeStyle=u>=r?this.UpColor:this.DownColor,this.Canvas.beginPath(),t?(this.Canvas.moveTo(c,p(d)),this.Canvas.lineTo(i,p(d))):(this.Canvas.moveTo(p(d),c),this.Canvas.lineTo(p(d),i)),this.Canvas.stroke(),u&&(r=u)}}}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};e.Min=0,e.Max=null;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];r&&r.Vol&&(null==e.Max&&(e.Max=r.Vol),e.Max<r.Vol&&(e.Max=r.Vol))}return e}}function Z(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartErrorMessage",this.Draw=function(){this.IsShow&&this.NotSupportMessage&&this.DrawNotSupportmessage()}}function Q(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartLine",this.Color="rgb(255,193,37)",this.LineWidth,this.DrawType=0,this.IsDotLine=!1,this.Draw=function(){if(this.IsShow){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Data&&this.Data.Data)switch(this.DrawType){case 0:return this.DrawLine();case 1:return this.DrawStraightLine()}}},this.DrawLine=function(){var t=!0===this.ChartFrame.IsHScreen,e=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());t&&(e=this.ChartBorder.GetBottom());var a=this.ChartFrame.XPointCount;this.Canvas.save(),this.LineWidth>0&&(this.Canvas.lineWidth=this.LineWidth*u());for(var i=!0,r=0,n=this.Data.DataOffset,o=0;n<this.Data.Data.length&&o<a;++n,++o){var s=this.Data.Data[n];if(null!=s){var l=this.ChartFrame.GetXFromIndex(o),h=this.GetYFromData(s);if(l>e)break;i?(this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath(),t?this.Canvas.moveTo(h,l):this.Canvas.moveTo(l,h),i=!1):t?this.Canvas.lineTo(h,l):this.Canvas.lineTo(l,h),++r}}r>0&&this.Canvas.stroke(),this.Canvas.restore()},this.DrawStraightLine=function(){var t=!0===this.ChartFrame.IsHScreen,e=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());t&&(e=this.ChartBorder.GetBottom());var a=this.ChartFrame.XPointCount,i=this.GetLockRect();i&&(e=t?i.Top:i.Left),this.Canvas.save(),this.LineWidth>0&&(this.Canvas.lineWidth=this.LineWidth*u()),this.Canvas.strokeStyle=this.Color,this.IsDotLine&&this.Canvas.setLineDash([3,5]);for(var r=!0,n=0,o=this.Data.DataOffset,s=0;o<this.Data.Data.length&&s<a;++o,++s){var l=this.Data.Data[o];if(null!=l){var h=this.ChartFrame.GetXFromIndex(s),c=this.GetYFromData(l);if(h>e)break;r?(this.Canvas.beginPath(),t?this.Canvas.moveTo(c,h):this.Canvas.moveTo(h,c),r=!1):t?this.Canvas.lineTo(c,h):this.Canvas.lineTo(h,c),++n}else n>0&&this.Canvas.stroke(),r=!0,n=0}n>0&&this.Canvas.stroke(),this.Canvas.restore()},this.GetYFromData=function(t){return this.ChartFrame.GetYFromData(t)}}function $(){this.newMethod=Q,this.newMethod(),delete this.newMethod,this.ClassName="ChartSubLine",this.Color="rgb(255,193,37)",this.LineWidth,this.DrawType=0,this.IsDotLine=!1,this.SubFrame={Max:null,Min:null},this.Draw=function(){if(this.IsShow&&this.Data&&this.Data.Data)switch(this.CalculateDataMaxMin(),this.DrawType){case 0:return this.DrawLine();case 1:return this.DrawStraightLine()}},this.GetYFromData=function(t){if(!0===this.ChartFrame.IsHScreen){if(t<=this.SubFrame.Min)return this.ChartBorder.GetLeftEx();if(t>=this.SubFrame.Max)return this.ChartBorder.GetRightEx();var e=this.ChartBorder.GetWidthEx()*(t-this.SubFrame.Min)/(this.SubFrame.Max-this.SubFrame.Min);return this.ChartBorder.GetLeftEx()+e}if(t<=this.SubFrame.Min)return this.ChartBorder.GetBottomEx();if(t>=this.SubFrame.Max)return this.ChartBorder.GetTopEx();var a=this.ChartBorder.GetHeightEx()*(t-this.SubFrame.Min)/(this.SubFrame.Max-this.SubFrame.Min);return this.ChartBorder.GetBottomEx()-a},this.CalculateDataMaxMin=function(){this.SubFrame={Max:null,Min:null};var t=!0===this.ChartFrame.IsHScreen,e=this.ChartBorder.GetRight();t&&(e=this.ChartBorder.GetBottom());for(var a=this.ChartFrame.XPointCount,i=this.Data.DataOffset,r=0;i<this.Data.Data.length&&r<a;++i,++r){var n=this.Data.Data[i];if(null!=n){if(this.ChartFrame.GetXFromIndex(r)>e)break;(null==this.SubFrame.Min||this.SubFrame.Min>n)&&(this.SubFrame.Min=n),(null==this.SubFrame.Max||this.SubFrame.Max<n)&&(this.SubFrame.Max=n)}}},this.GetMaxMin=function(){return{Min:null,Max:null}}}function tt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartPartLine",this.LineWidth,this.Draw=function(){if(this.IsShow)return this.NotSupportMessage?void this.DrawNotSupportmessage():void(this.Data&&this.Data.Data&&this.DrawLine())},this.DrawLine=function(){var t=!0===this.ChartFrame.IsHScreen,e=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());t&&(e=this.ChartBorder.GetBottom());var a=this.ChartFrame.XPointCount;this.Canvas.save(),this.LineWidth>0&&(this.Canvas.lineWidth=this.LineWidth*u());for(var i,r=0,n={X:null,Y:null},o=this.Data.DataOffset,s=0;o<this.Data.Data.length&&s<a;++o,++s){var l=this.Data.Data[o];if(null!=l){var h=l.Value;if(null!=h){var c=l.RGB,d=this.ChartFrame.GetXFromIndex(s),f=this.ChartFrame.GetYFromData(h);if(d>e)break;c!=i?(i&&r>0&&this.Canvas.stroke(),r=0,i=c,this.Canvas.strokeStyle=c,this.Canvas.beginPath(),null!=n.X&&null!=n.Y?(t?this.Canvas.moveTo(n.Y,n.X):this.Canvas.moveTo(n.X,n.Y),t?this.Canvas.lineTo(f,d):this.Canvas.lineTo(d,f),++r):t?this.Canvas.moveTo(f,d):this.Canvas.moveTo(d,f)):(t?this.Canvas.lineTo(f,d):this.Canvas.lineTo(d,f),++r),n.X=d,n.Y=f}}}r>0&&this.Canvas.stroke(),this.Canvas.restore()},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};e.Min=null,e.Max=null;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];r&&r.Value&&((null==e.Max||e.Max<r.Value)&&(e.Max=r.Value),(null==e.Min||e.Min>r.Value)&&(e.Min=r.Value))}return e}}function et(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartPointDot",this.Color="rgb(255,193,37)",this.Radius=1,this.Draw=function(){if(this.IsShow){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());!0===t&&(e=this.ChartBorder.GetBottom());var a=this.ChartFrame.XPointCount;this.Canvas.save(),this.Canvas.fillStyle=this.Color;for(var i=this.Data.DataOffset,r=0;i<this.Data.Data.length&&r<a;++i,++r){var n=this.Data.Data[i];if(null!=n){var o=this.ChartFrame.GetXFromIndex(r),s=this.ChartFrame.GetYFromData(n);if(o>e)break;this.Canvas.beginPath(),t?this.Canvas.arc(s,o,this.Radius,0,2*Math.PI,!0):this.Canvas.arc(o,s,this.Radius,0,2*Math.PI,!0),this.Canvas.closePath(),this.Canvas.fill()}}this.Canvas.restore()}}}}function at(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.Color="rgb(255,193,37)",this.LineWidth,this.ClassName="ChartStick",this.DrawLine=function(){if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());!0===t&&(e=this.ChartBorder.GetBottom());var a=this.ChartFrame.XPointCount;this.Canvas.save(),this.LineWidth>0&&(this.Canvas.lineWidth=this.LineWidth*u());for(var i=!0,r=0,n=this.Data.DataOffset,o=0;n<this.Data.Data.length&&o<a;++n,++o){var s=this.Data.Data[n];if(null!=s){var l=this.ChartFrame.GetXFromIndex(o),h=this.ChartFrame.GetYFromData(s);if(l>e)break;i?(this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath(),t?this.Canvas.moveTo(h,l):this.Canvas.moveTo(l,h),i=!1):t?this.Canvas.lineTo(h,l):this.Canvas.lineTo(l,h),++r}}r>0&&this.Canvas.stroke(),this.Canvas.restore()}},this.DrawStick=function(){if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartBorder.GetRight();t&&(e=this.ChartBorder.GetBottom());var a=this.ChartFrame.XPointCount,i=this.ChartBorder.GetBottom(),r=this.ChartBorder.GetLeft();this.Canvas.save(),this.Canvas.strokeStyle=this.Color,this.LineWidth&&(this.Canvas.lineWidth=this.LineWidth*u());for(var n=this.Data.DataOffset,o=0;n<this.Data.Data.length&&o<a;++n,++o){var s=this.Data.Data[n];if(null!=s){var l=this.ChartFrame.GetXFromIndex(o),h=this.ChartFrame.GetYFromData(s);if(l>e)break;if(this.Canvas.beginPath(),t)this.Canvas.moveTo(r,l),this.Canvas.lineTo(h,l),this.Canvas.stroke();else{var c=parseInt(l.toString())+.5;this.Canvas.moveTo(c,h),this.Canvas.lineTo(c,i)}this.Canvas.stroke()}}this.Canvas.restore()}},this.Draw=function(){if(this.IsShow)return this.NotSupportMessage?void this.DrawNotSupportmessage():void(this.Data&&this.Data.Data&&this.DrawStick())}}function it(){this.newMethod=at,this.newMethod(),delete this.newMethod,this.ClassName="ChartLineStick",this.Draw=function(){if(this.IsShow){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();this.DrawStick(),this.DrawLine()}}}function rt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.UpColor=Xi.UpBarColor,this.DownColor=Xi.DownBarColor,this.HistoryData,this.KLineDrawType=0,this.ClassName="ChartVolStick",this.Draw=function(){if(!0===this.ChartFrame.IsHScreen)return void this.HScreenDraw();var t=this.ChartFrame.DataWidth,e=this.ChartFrame.DistanceWidth,a=this.ChartBorder.GetLeft()+e/2+2,i=this.ChartBorder.GetRight(),r=this.ChartFrame.XPointCount,n=this.GetLockRect();n&&(i=n.Left);var o=this.ChartFrame.GetYFromData(0);if(t>=4){o=D(o);for(var s=this.Data.DataOffset,l=0;s<this.Data.Data.length&&l<r;++s,++l,a+=t+e){var h=this.Data.Data[s],u=this.HistoryData.Data[s];if(null!=h&&null!=u){var c=a;if(a+t>i)break;var d=this.ChartFrame.GetYFromData(h),f=!1;u.Close>=u.Open?(this.Canvas.fillStyle=this.UpColor,f=!0):this.Canvas.fillStyle=this.DownColor;var C=D(o-d);d=o-C,!f||1!=this.KLineDrawType&&2!=this.KLineDrawType&&3!=this.KLineDrawType?this.Canvas.fillRect(D(c),d,D(t),C):(this.Canvas.strokeStyle=this.UpColor,this.Canvas.beginPath(),this.Canvas.rect(p(c),p(d),D(t),C),this.Canvas.stroke())}}}else for(var s=this.Data.DataOffset,l=0;s<this.Data.Data.length&&l<r;++s,++l,a+=t+e){var h=this.Data.Data[s],u=this.HistoryData.Data[s];if(null!=h&&null!=u){var d=this.ChartFrame.GetYFromData(h),m=this.ChartFrame.GetXFromIndex(l);if(m>i)break;u.Close>=u.Open?this.Canvas.strokeStyle=this.UpColor:this.Canvas.strokeStyle=this.DownColor;var m=this.ChartFrame.GetXFromIndex(l);this.Canvas.beginPath(),this.Canvas.moveTo(p(m),d),this.Canvas.lineTo(p(m),o),this.Canvas.stroke()}}},this.HScreenDraw=function(){var t=this.ChartFrame.DataWidth,e=this.ChartFrame.DistanceWidth,a=this.ChartBorder.GetTop()+e/2+2,i=this.ChartBorder.GetBottom(),r=this.ChartFrame.XPointCount,n=this.GetLockRect();n&&(i=n.Top);var o=this.ChartFrame.GetYFromData(0);if(t>=4){o=D(o);for(var s=this.Data.DataOffset,l=0;s<this.Data.Data.length&&l<r;++s,++l,a+=t+e){var h=this.Data.Data[s],u=this.HistoryData.Data[s];if(null!=h&&null!=u){var c=a;if(a+t>i)break;var d=this.ChartFrame.GetYFromData(h),f=!1;u.Close>=u.Open?(f=!0,this.Canvas.fillStyle=this.UpColor):this.Canvas.fillStyle=this.DownColor;var C=D(d-o);!f||1!=this.KLineDrawType&&2!=this.KLineDrawType&&3!=this.KLineDrawType?this.Canvas.fillRect(o,D(c),C,D(t)):(this.Canvas.strokeStyle=this.UpColor,this.Canvas.beginPath(),this.Canvas.rect(p(o),p(c),C,D(t)),this.Canvas.stroke())}}}else for(var s=this.Data.DataOffset,l=0;s<this.Data.Data.length&&l<r;++s,++l,a+=t+e){var h=this.Data.Data[s],u=this.HistoryData.Data[s];if(null!=h&&null!=u){var d=this.ChartFrame.GetYFromData(h),m=this.ChartFrame.GetXFromIndex(l);if(m>i)break;u.Close>u.Open?this.Canvas.strokeStyle=this.UpColor:this.Canvas.strokeStyle=this.DownColor;var m=this.ChartFrame.GetXFromIndex(l);this.Canvas.beginPath(),this.Canvas.moveTo(d,p(m)),this.Canvas.lineTo(o,p(m)),this.Canvas.stroke()}}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};e.Min=0,e.Max=null;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];null==e.Max&&(e.Max=r),e.Max<r&&(e.Max=r)}return e}}function nt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartLineMultiData",this.Color="rgb(255,193,37)",this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());t&&(e=this.ChartBorder.GetBottom());for(var a=this.ChartFrame.XPointCount,i=!0,r=0,n=this.Data.DataOffset,o=0;n<this.Data.Data.length&&o<a;++n,++o){var s=this.Data.Data[n];if(null!=s){var l=this.ChartFrame.GetXFromIndex(o);if(l>e)break;for(var h in s){var u=s[h].Value,c=this.ChartFrame.GetYFromData(u);i?(this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath(),t?this.Canvas.moveTo(c,l):this.Canvas.moveTo(l,c),i=!1):t?this.Canvas.lineTo(c,l):this.Canvas.lineTo(l,c),++r}}}r>0&&this.Canvas.stroke()}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(e.Min=null,e.Max=null,!this.Data||!this.Data.Data)return e;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];if(null!=r)for(var n in r){var o=r[n].Value;null==e.Max&&(e.Max=o),null==e.Min&&(e.Min=o),e.Max<o&&(e.Max=o),e.Min>o&&(e.Min=o)}}return e}}function ot(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartStickLine",this.Color="rgb(255,193,37)",this.LineWidth=2*u(),this.BarType=0,this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetRight();t&&(i=this.ChartBorder.GetBottom());var r=this.ChartFrame.XPointCount,n=this.ChartBorder.GetLeft()+a/2+2;t&&(n=this.ChartBorder.GetTop()+a/2+2),this.Canvas.save();var o=!1,s=!1;if(50==this.LineWidth)e>=4?(s=!0,this.Canvas.fillStyle=this.Color,this.Canvas.strokeStyle=this.Color):(this.Canvas.lineWidth=u(),this.Canvas.strokeStyle=this.Color);else if(this.LineWidth<100){var l=this.LineWidth;e<=4?l=u():e<l&&(l=parseInt(e)),this.Canvas.lineWidth=l,this.Canvas.strokeStyle=this.Color}else{o=!0,this.Canvas.fillStyle=this.Color;var h=2*u()}for(var c=this.Data.DataOffset,d=0;c<this.Data.Data.length&&d<r;++c,++d,n+=e+a){var f=this.Data.Data[c];if(null!=f){var C=f.Value,m=f.Value2;null==m&&(m=0);var v=this.ChartFrame.GetXFromIndex(d),g=this.ChartFrame.GetYFromData(C),S=this.ChartFrame.GetYFromData(m);if(v>i)break;if(o)if(t){var I=n-h;this.Canvas.fillRect(Math.min(g,S),I,Math.abs(g-S),e+a+2*h)}else{var I=n-h,x=e+a+2*h;I+x>i&&(x=i-I),this.Canvas.fillRect(D(I),D(Math.min(g,S)),D(x),D(Math.abs(g-S)))}else if(s)1==this.BarType?t?(this.Canvas.beginPath(),this.Canvas.fillRect(D(Math.min(g,S)),D(n),D(Math.abs(g-S)),D(e)),this.Canvas.stroke()):(this.Canvas.beginPath(),this.Canvas.rect(D(n),D(Math.min(g,S)),D(e),D(Math.abs(g-S))),this.Canvas.stroke()):t?this.Canvas.fillRect(D(Math.min(g,S)),D(n),D(Math.abs(g-S)),D(e)):this.Canvas.fillRect(D(n),D(Math.min(g,S)),D(e),D(Math.abs(g-S)));else if(t)this.Canvas.beginPath(),this.Canvas.moveTo(g,p(v)),this.Canvas.lineTo(S,p(v)),this.Canvas.stroke();else{var T=parseInt(v.toString())+.5;this.Canvas.beginPath(),this.Canvas.moveTo(T,g),this.Canvas.lineTo(T,S),this.Canvas.stroke()}}}this.Canvas.restore()}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(e.Min=null,e.Max=null,!this.Data||!this.Data.Data)return e;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];if(null!=r){var n=r.Value2;if(null==n&&(n=0),null!=r&&!isNaN(r.Value)&&!isNaN(n)){var o=Math.max(r.Value,n),s=Math.min(r.Value,n);null==e.Max&&(e.Max=o),null==e.Min&&(e.Min=s),e.Max<o&&(e.Max=o),e.Min>s&&(e.Min=s)}}}return e}}function st(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartText",this.TextFont="14px 微软雅黑",this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Data&&this.Data.Data){var t=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight());this.ChartFrame.XPointCount;for(var e in this.Data.Data){var a=this.Data.Data[e];if(null!=a){var i=a.Value;if("Left"==a.Position){var r=this.ChartFrame.GetXFromIndex(0),n=this.ChartFrame.GetYFromData(i);if(r>t)continue;this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=a.Color,this.Canvas.font=this.TextFont,this.Canvas.fillText(a.Message,r,n)}}}}},this.GetMaxMin=function(){var t=(this.ChartFrame.XPointCount,{});if(t.Min=null,t.Max=null,!this.Data||!this.Data.Data)return t;for(var e in this.Data.Data){var a=this.Data.Data[e];if(null!=a&&!isNaN(a.Value)){var i=a.Value;null==t.Max&&(t.Max=i),null==t.Min&&(t.Min=i),t.Max<i&&(t.Max=i),t.Min>i&&(t.Min=i)}}return t}}function lt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartSingleText",this.Color="rgb(255,193,37)",this.TextFont="14px 微软雅黑",this.Text,this.TextAlign="left",this.Direction=0,this.YOffset=0,this.Position,this.IconFont,this.Draw=function(){if(this.IsShow){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Position)return void this.DrawPosition();if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=(this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight()),i=this.ChartBorder.GetTopEx(),r=this.ChartBorder.GetBottomEx();t&&(a=this.ChartBorder.GetBottom(),i=this.ChartBorder.GetRightEx(),r=this.ChartBorder.GetLeftEx());var n=this.ChartFrame.XPointCount,o=Array.isArray(this.Text),s=u();if(1==this.Direction?this.Canvas.textBaseline="bottom":2==this.Direction?this.Canvas.textBaseline="top":this.Canvas.textBaseline="middle",this.IconFont){this.Color=this.IconFont.Color,this.Text=this.IconFont.Text;var l=e,h=12*s,c=24*s;l<h?l=h:l>c&&(l=c),this.Canvas.font=l+"px "+this.IconFont.Family}else this.TextFont=this.GetDynamicFont(2*e*s),this.Canvas.font=this.TextFont;for(var d=this.Data.DataOffset,f=0;d<this.Data.Data.length&&f<n;++d,++f){var C=this.Data.Data[d];if(null!=C){var D=this.ChartFrame.GetXFromIndex(f),m=this.ChartFrame.GetYFromData(C);if(D>a)break;if(this.Canvas.textAlign=this.TextAlign,this.Canvas.fillStyle=this.Color,this.YOffset>0&&this.Direction>0){var v=m;this.Canvas.save(),this.Canvas.setLineDash([5,10]),this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath(),t?(1==this.Direction?(m=i-this.YOffset*s,v+=5*s):(m=r+this.YOffset*s,v-=5*s),this.Canvas.moveTo(p(v),p(D)),this.Canvas.lineTo(p(m),p(D))):(1==this.Direction?(m=i+this.YOffset*s,v+=5*s):(m=r-this.YOffset*s,v-=5*s),this.Canvas.moveTo(p(D),p(v)),this.Canvas.lineTo(p(D),p(m))),this.Canvas.stroke(),this.Canvas.restore()}if(o){var g=this.Text[d];if(!g)continue;this.DrawText(g,D,m,t)}else this.DrawText(this.Text,D,m,t)}}}}},this.DrawPosition=function(){if(this.Text){var t=!0===this.ChartFrame.IsHScreen;if(t)var e=this.ChartBorder.GetLeft()+this.ChartBorder.GetWidthEx()*this.Position.Y,a=this.ChartBorder.GetTop()+this.ChartBorder.GetHeight()*this.Position.X;else var e=this.ChartBorder.GetLeft()+this.ChartBorder.GetWidth()*this.Position.X,a=this.ChartBorder.GetTopEx()+this.ChartBorder.GetHeight()*this.Position.Y;t&&(chartright=this.ChartBorder.GetBottom(),top=this.ChartBorder.GetRightEx(),bottom=this.ChartBorder.GetLeftEx()),this.Canvas.fillStyle=this.Color,0==this.Position.Type?this.Canvas.textAlign="left":2==this.Position.Type?this.Canvas.textAlign="center":this.Canvas.textAlign="right",this.DrawText(this.Text,e,a,t)}},this.DrawText=function(t,e,a,i){i?(this.Canvas.save(),this.Canvas.translate(a,e),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(t,0,0),this.Canvas.restore()):this.Canvas.fillText(t,e,a)}}function ht(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartStraightLine",this.Color="rgb(255,193,37)",this.Draw=function(){if(this.Data&&this.Data.Data&&1==this.Data.Data.length){var t=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight(),this.ChartFrame.XPointCount),e=this.Data.Data[0],a=this.ChartFrame.GetYFromData(e),i=this.ChartFrame.GetXFromIndex(0),r=this.ChartFrame.GetXFromIndex(t-1),n=parseInt(a.toString())+.5;this.Canvas.beginPath(),this.Canvas.moveTo(i,n),this.Canvas.lineTo(r,n),this.Canvas.strokeStyle=this.Color,this.Canvas.stroke()}},this.GetMaxMin=function(){var t=(this.ChartFrame.XPointCount,{});return t.Min=null,t.Max=null,this.Data&&this.Data.Data?1!=this.Data.Data.length?t:(t.Min=this.Data.Data[0],t.Max=this.Data.Data[0],t):t}}function ut(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartStraightArea",this.Color="rgb(255,193,37)",this.Font="11px 微软雅黑",this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.Data&&this.Data.Data){if(!0===this.ChartFrame.IsHScreen)return void this.HScreenDraw();var t=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight(),this.ChartBorder.GetBottom(),this.ChartBorder.GetLeft()),e=this.ChartFrame.XPointCount,a=this.ChartFrame.GetXFromIndex(e-1);for(var i in this.Data.Data){var r=this.Data.Data[i];if(null!=r&&!isNaN(r.Value)&&!isNaN(r.Value2)&&null!=r.Color){var n=Math.max(r.Value,r.Value2),o=Math.min(r.Value,r.Value2),s=this.ChartFrame.GetYFromData(n),l=this.ChartFrame.GetYFromData(o);if(this.Canvas.fillStyle=r.Color,this.Canvas.fillRect(D(t),D(s),D(a-t),D(l-s)),r.Title&&r.TitleColor){this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=r.TitleColor,this.Canvas.font=this.Font;var h=s+(l-s)/2;this.Canvas.fillText(r.Title,a,h)}}}}},this.HScreenDraw=function(){var t=this.ChartBorder.GetBottom(),e=this.ChartBorder.GetTop(),a=this.ChartBorder.GetHeight();for(var i in this.Data.Data){var r=this.Data.Data[i];if(null!=r&&!isNaN(r.Value)&&!isNaN(r.Value2)&&null!=r.Color){var n=Math.max(r.Value,r.Value2),o=Math.min(r.Value,r.Value2),s=this.ChartFrame.GetYFromData(n),l=this.ChartFrame.GetYFromData(o);if(this.Canvas.fillStyle=r.Color,this.Canvas.fillRect(D(l),D(e),D(s-l),D(a)),r.Title&&r.TitleColor){var h=s+(l-s)/2,u=t;this.Canvas.save(),this.Canvas.translate(h,u),this.Canvas.rotate(90*Math.PI/180),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=r.TitleColor,this.Canvas.font=this.Font,this.Canvas.fillText(r.Title,0,-2),this.Canvas.restore()}}}},this.GetMaxMin=function(){var t=(this.ChartFrame.XPointCount,{});if(t.Min=null,t.Max=null,!this.Data||!this.Data.Data)return t;for(var e in this.Data.Data){var a=this.Data.Data[e];if(null!=a&&!isNaN(a.Value)&&!isNaN(a.Value2)){var i=Math.max(a.Value,a.Value2),r=Math.min(a.Value,a.Value2);null==t.Max&&(t.Max=i),null==t.Min&&(t.Min=r),t.Max<i&&(t.Max=i),t.Min>r&&(t.Min=r)}}return t}}function ct(){this.newMethod=Q,this.newMethod(),delete this.newMethod,this.ClassName="ChartMinutePriceLine",this.YClose,this.IsDrawArea=!0,this.AreaColor="rgba(0,191,255,0.1)",this.SourceData,this.IsShowLead=!1,this.LeadData,this.UpColor=Xi.UpBarColor,this.DownColor=Xi.DownBarColor,this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(this.IsShow){var t=!0===this.ChartFrame.IsHScreen;this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight();!0===t&&this.ChartBorder.GetBottom();var e=this.ChartFrame.XPointCount,a=this.ChartFrame.MinuteCount,i=this.ChartBorder.GetBottomEx(),r=this.ChartBorder.GetLeftEx(),n=this.Data,o=!1;if(this.SourceData&&(n=this.SourceData,o=!0),this.IsShowLead&&this.DrawLead(),n){for(var s=!0,l={},h=0,u=n.DataOffset,c=0;u<n.Data.length&&c<e;++u,++c){var d=null;if(o){var f=n.Data[u];d=f.Before?f.Before.Close:f.Close}else d=n.Data[u];if(null!=d){var C=this.ChartFrame.GetXFromIndex(c),p=this.ChartFrame.GetYFromData(d);s?(this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath(),t?this.Canvas.moveTo(p,C):this.Canvas.moveTo(C,p),s=!1,l={X:C,Y:p}):t?this.Canvas.lineTo(p,C):this.Canvas.lineTo(C,p),++h,h>=a&&(s=!0,this.Canvas.stroke(),this.IsDrawArea&&(t?(this.Canvas.lineTo(r,C),this.Canvas.lineTo(r,l.X),this.SetFillStyle(this.AreaColor,this.ChartBorder.GetRightEx(),i,this.ChartBorder.GetLeftEx(),i)):(this.Canvas.lineTo(C,i),this.Canvas.lineTo(l.X,i),this.SetFillStyle(this.AreaColor,r,this.ChartBorder.GetTopEx(),r,i)),this.Canvas.fill()),h=0)}}h>0&&(this.Canvas.stroke(),this.IsDrawArea&&(t?(this.Canvas.lineTo(r,C),this.Canvas.lineTo(r,l.X),this.SetFillStyle(this.AreaColor,this.ChartBorder.GetRightEx(),i,this.ChartBorder.GetLeftEx(),i)):(this.Canvas.lineTo(C,i),this.Canvas.lineTo(l.X,i),this.SetFillStyle(this.AreaColor,r,this.ChartBorder.GetTopEx(),r,i)),this.Canvas.fill()))}}},this.DrawLead=function(){if(this.LeadData){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.XPointCount,a=this.ChartFrame.MinuteCount,i=(this.ChartBorder.GetBottomEx(),this.ChartBorder.GetTopEx());if(!0===t&&(i=this.ChartBorder.GetRightEx()),!(e>a)){for(var r=[],n=null,o=null,s=this.ChartFrame.GetYFromData(this.YClose),l=(s-i)/3,h=this.LeadData,u=h.DataOffset,c=0;u<h.Data.length&&c<e;++u,++c){var d=h.Data[u];if(Ht.IsNumber(d)&&0!=d){var f=this.ChartFrame.GetXFromIndex(c);(null==n||n<d)&&(n=d),(null==o||o>d)&&(o=d),r.push({X:f,Value:d})}}if(!(r.length<=0)){var C=Math.max(Math.abs(n),Math.abs(o));for(var u in r){var D=r[u];D.Value>0?this.Canvas.strokeStyle=this.UpColor:this.Canvas.strokeStyle=this.DownColor;var m=s-D.Value*l/C,f=p(D.X);this.Canvas.beginPath(),!0===t?(this.Canvas.moveTo(s,f),this.Canvas.lineTo(m,f)):(this.Canvas.moveTo(f,s),this.Canvas.lineTo(f,m)),this.Canvas.stroke()}}}}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(null==this.YClose)return e;if(!this.IsShow)return e;e.Min=this.YClose,e.Max=this.YClose;var a=this.Data,i=!1;this.SourceData&&(a=this.SourceData,i=!0);for(var r=a.DataOffset,n=0;r<a.Data.length&&n<t;++r,++n){var o=null;if(i){var s=a.Data[r];o=s.Before?s.Before.Close:s.Close}else o=a.Data[r];null!=o&&(null==e.Max&&(e.Max=o),null==e.Min&&(e.Min=o),e.Max<o&&(e.Max=o),e.Min>o&&(e.Min=o))}if(e.Max==this.YClose&&e.Min==this.YClose)return e.Max=this.YClose+.1*this.YClose,e.Min=this.YClose-.1*this.YClose,e;var l=Math.max(Math.abs(this.YClose-e.Max),Math.abs(this.YClose-e.Min));return e.Max=this.YClose+l,e.Min=this.YClose-l,e}}function dt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.Color="rgb(65,105,225)",this.MainData,this.MainYClose,this.SourceData,this.BeforeDataCount=0,this.IsBeforeData=!1,this.ClassName="ChartOverlayMinutePriceLine",this.Title,this.Symbol,this.YClose,this.Status=Hi.STATUS_NONE_ID,this.Draw=function(){if(this.Data){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();var t=!0===this.ChartFrame.IsHScreen;this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight();!0===t&&this.ChartBorder.GetBottom();var e=this.ChartFrame.XPointCount,a=this.ChartFrame.MinuteCount,i=!0,r=0,n=0;this.IsBeforeData&&(n=1);for(var o=this.Data.DataOffset+n,s=0;o<this.Data.Data.length&&s<e;++o,++s){var l=this.Data.Data[o].Close;if(null!=l){var h=l/this.YClose*this.MainYClose,u=this.ChartFrame.GetXFromIndex(s+this.BeforeDataCount),c=this.ChartFrame.GetYFromData(h);i?(this.Canvas.strokeStyle=this.Color,this.Canvas.beginPath(),t?this.Canvas.moveTo(c,u):this.Canvas.moveTo(u,c),i=!1):t?this.Canvas.lineTo(c,u):this.Canvas.lineTo(u,c),++r,r>=a&&(i=!0,this.Canvas.stroke(),r=0)}}r>0&&this.Canvas.stroke()}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};if(null==this.YClose)return e;e.Min=this.MainYClose,e.Max=this.MainYClose;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a].Close;if(null!=r){var r=r/this.YClose*this.MainYClose;null==e.Max&&(e.Max=r),null==e.Min&&(e.Min=r),e.Max<r&&(e.Max=r),e.Min>r&&(e.Min=r)}}if(e.Max==this.MainYClose&&e.Min==this.MainYClose)return e.Max=this.MainYClose+.1*this.MainYClose,e.Min=this.MainYClose-.1*this.MainYClose,e;var n=Math.max(Math.abs(this.MainYClose-e.Max),Math.abs(this.MainYClose-e.Min));return e.Max=this.MainYClose+n,e.Min=this.MainYClose-n,e}}function ft(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMinuteInfo",this.Data=new xi.default,this.SourceData,this.ChartMinutePrice,this.YClose,this.HQChartBorder,this.TextColor=Xi.MinuteInfo.TextColor,this.Font=Xi.MinuteInfo.Font,this.PointColor=Xi.MinuteInfo.PointColor,this.LineColor=Xi.MinuteInfo.LineColor,this.TextBGColor=Xi.MinuteInfo.TextBGColor,this.PixelTatio=u(),this.TextHeight=20,this.TextRectCache=[],this.InfoDrawCache=[],this.FrameBottom,this.FrameTop,this.FrameLeft,this.FrameRight,this.YOffset=5,this.IsHScreen=!1,this.IsDrawFull=!1,this.TooltipRect=[],this.SetOption=function(t){t.TextColor&&(this.TextColor=t.TextColor),t.TextBGColor&&(this.TextBGColor=t.TextBGColor),t.Font&&(this.Font=t.Font),t.PointColor&&(this.PointColor=t.PointColor),t.LineColor&&(this.LineColor=t.LineColor),t.TextHeight>0&&(this.TextHeight=t.TextHeight),1==t.IsDrawFull&&(this.IsDrawFull=!0)},this.Draw=function(){if(this.TooltipRect=[],this.ChartMinutePrice&&this.Data&&!(this.Data.size<=0)){this.TextRectCache=[],this.InfoDrawCache=[],this.PixelTatio=u(),this.YOffset=5*this.PixelTatio,this.IsHScreen=!0===this.ChartFrame.IsHScreen;var t=this.ChartFrame.XPointCount;this.ChartFrame.MinuteCount;this.FrameBottom=this.ChartBorder.GetBottom(),this.IsDrawFull&&this.HQChartBorder&&(this.FrameBottom=this.HQChartBorder.GetBottom()),this.FrameTop=this.ChartBorder.GetTop(),this.FrameLeft=this.ChartBorder.GetLeft(),this.FrameRight=this.ChartBorder.GetRight(),this.IsHScreen&&(this.FrameRight=this.ChartBorder.GetBottom(),this.FrameLeft=this.ChartBorder.GetTop(),this.FrameBottom=this.ChartBorder.GetLeft(),this.FrameTop=this.ChartBorder.GetRight()),this.YClose=this.ChartMinutePrice.YClose;var e=this.ChartMinutePrice.Data,a=!1;this.ChartMinutePrice.SourceData&&(e=this.ChartMinutePrice.SourceData,a=!0);for(var i=e.DataOffset,r=0;i<e.Data.length&&r<t;++i,++r){var n=this.SourceData.Data[i];if((!a||!n.Before)&&n){var o=n.DateTime;this.Data.has(o)&&(this.IsHScreen?this.CalcuateInfoHScreenPosition(this.Data.get(o),r,n):this.CalcuateInfoPosition(this.Data.get(o),r,n))}}for(var i in this.InfoDrawCache){var n=this.InfoDrawCache[i];this.DrawInfoLines(n)}for(var i in this.InfoDrawCache){var n=this.InfoDrawCache[i];if(this.DrawInfoText(n),!this.IsHScreen){var s=n.Border,l=new W(s.X,s.Y,s.Width,s.Height),h={Data:{Item:n},Rect:l};this.TooltipRect.push(h)}}this.TextRectCache=[],this.InfoDrawCache=[]}},this.CalcuateInfoPosition=function(t,e,a){if(t&&t.Data&&!(t.Data.length<=0)){var i=t.Data[0];this.Canvas.font=this.Font;var r,n=this.Canvas.measureText(i.Title).width+4*this.PixelTatio,o=this.TextHeight*this.PixelTatio,s=this.ChartFrame.GetXFromIndex(e);r=Ht.IsNumber(i.Price)?this.ChartFrame.GetYFromData(i.Price):this.ChartFrame.GetYFromData(a.Close),s=p(s);var l=s<this.FrameLeft+Math.abs(this.FrameLeft-this.FrameRight)/2,h=[2,4,6,8,3,5,7],u=o+h[e%h.length]*this.PixelTatio,c={Y:[{Value:r+(o+this.YOffset),Offset:u},{Value:r-(2*o+this.YOffset),Offset:-u}]};a.Close<this.YClose&&(c.Y=c.Y.reverse());var d={X:s,Y:null,Width:n,Height:o};l||(d.X-=d.Width),this.FixTextRect(d,c);var f={Border:d,Start:{X:s,Y:r},IsLeft:l,Title:i.Title,Date:i.Date,Time:i.Time};i.Content&&(f.Content=i.Content),i.Link&&(f.Link=i.Link),i.Color&&(f.Color=i.Color),i.BGColor&&(f.BGColor=i.BGColor),this.InfoDrawCache.push(f),this.TextRectCache.push(d)}},this.CalcuateInfoHScreenPosition=function(t,e,a){if(t&&t.Data&&!(t.Data.length<=0)){var i=t.Data[0];this.Canvas.font=this.Font;var r,n=this.Canvas.measureText(i.Title).width+4*this.PixelTatio,o=this.TextHeight*this.PixelTatio,s=this.ChartFrame.GetXFromIndex(e);r=Ht.IsNumber(i.Price)?this.ChartFrame.GetYFromData(i.Price):this.ChartFrame.GetYFromData(a.Close),s=p(s);var l=s<this.FrameLeft+Math.abs(this.FrameLeft-this.FrameRight)/2,h=[2,4,6,8,3,5,7],u=o+h[e%h.length]*this.PixelTatio,c={X:[{Value:r+(o+this.YOffset),Offset:u},{Value:r-(2*o+this.YOffset),Offset:-u}]};a.Close>this.YClose&&(c.X=c.X.reverse());var d={X:null,Y:s,Width:o,Height:n};l||(d.Y-=d.Height),this.FixHScreenTextRect(d,c);var f={Border:d,Start:{X:r,Y:s},IsLeft:l,Title:i.Title};this.InfoDrawCache.push(f),this.TextRectCache.push(d)}},this.DrawInfoLines=function(t){var e=t.Border,a=t.IsLeft;this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(p(t.Start.X),t.Start.Y),a?this.Canvas.lineTo(p(t.Start.X),e.Y):this.IsHScreen?this.Canvas.lineTo(e.X,e.Y+e.Height):this.Canvas.lineTo(p(t.Start.X),e.Y),this.Canvas.stroke(),this.Canvas.fillStyle=this.PointColor,this.Canvas.beginPath(),this.Canvas.arc(t.Start.X,t.Start.Y,5,0,2*Math.PI),this.Canvas.closePath(),this.Canvas.fill()},this.DrawInfoText=function(t){var e=t.Border,a=e.X,i=e.Y;t.BGColor?this.Canvas.fillStyle=t.BGColor:this.Canvas.fillStyle=this.TextBGColor,this.Canvas.fillRect(a,i,e.Width,e.Height),this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.rect(a,i,e.Width,e.Height),this.Canvas.stroke(),this.IsHScreen&&(this.Canvas.save(),this.Canvas.translate(e.X,e.Y),this.Canvas.rotate(90*Math.PI/180),a=0,i=0),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",t.Color?this.Canvas.fillStyle=t.Color:this.Canvas.fillStyle=this.TextColor,this.Canvas.font=this.Font,this.IsHScreen?this.Canvas.fillText(t.Title,a+2*this.PixelTatio,i-e.Width/2):this.Canvas.fillText(t.Title,a+2*this.PixelTatio,i+e.Height/2),this.IsHScreen&&this.Canvas.restore()},this.FixTextRect=function(t,e){for(var a in e.Y){var i=e.Y[a];t.Y=i.Value;for(var r,n=0;n<10;++n){var o=!1;for(var s in this.TextRectCache){var l=this.TextRectCache[s];if(this.IsOverlap(l,t)){o=!0;break}}if(0==o)return;if(r=t.Y,(r+=i.Offset)+t.Height>this.FrameBottom||r<this.FrameTop)break;t.Y=r}}},this.FixHScreenTextRect=function(t,e){for(var a in e.X){var i=e.X[a];t.X=i.Value;for(var r,n=0;n<10;++n){var o=!1;for(var s in this.TextRectCache){var l=this.TextRectCache[s];if(this.IsOverlap(l,t)){o=!0;break}}if(0==o)return;if(r=t.X,(r+=i.Offset)+t.Width<this.FrameBottom||r>this.FrameTop)break;t.X=r}}},this.IsOverlap=function(t,e){return t.X+t.Width>e.X&&e.X+e.Width>t.X&&t.Y+t.Height>e.Y&&e.Y+e.Height>t.Y},this.GetMaxMin=function(){return{Min:null,Max:null}},this.GetTooltipData=function(t,e,a){for(var i in this.TooltipRect){var r=this.TooltipRect[i];if(r.Rect){var n=r.Rect;if(this.Canvas.beginPath(),this.Canvas.rect(n.X,n.Y,n.Width,n.Height),this.Canvas.isPointInPath(t,e))return a.Data=r,a.ChartPaint=this,a.Type=3,!0}}return!1}}function Ct(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMACD",this.UpColor=Xi.UpBarColor,this.DownColor=Xi.DownBarColor,this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();if(!0===this.ChartFrame.IsHScreen)return void this.HScreenDraw();var t=(this.ChartFrame.DataWidth,this.ChartFrame.DistanceWidth,this.ChartBorder.GetRight()),e=this.ChartFrame.XPointCount,a=this.GetLockRect();a&&(t=a.Left);for(var i=this.ChartFrame.GetYFromData(0),r=this.Data.DataOffset,n=0;r<this.Data.Data.length&&n<e;++r,++n){var o=this.Data.Data[r];if(null!=o){var s=this.ChartFrame.GetXFromIndex(n),l=this.ChartFrame.GetYFromData(o);if(s>t)break;var h=parseInt(s.toString())+.5;this.Canvas.beginPath(),this.Canvas.moveTo(h,i),this.Canvas.lineTo(h,l),this.Canvas.strokeStyle=o>=0?this.UpColor:this.DownColor,this.Canvas.stroke(),this.Canvas.closePath()}}},this.HScreenDraw=function(){var t=this.ChartBorder.GetBottom(),e=this.ChartFrame.XPointCount,a=this.GetLockRect();a&&(t=a.Top);for(var i=this.ChartFrame.GetYFromData(0),r=this.Data.DataOffset,n=0;r<this.Data.Data.length&&n<e;++r,++n){var o=this.Data.Data[r];if(null!=o){var s=this.ChartFrame.GetXFromIndex(n),l=this.ChartFrame.GetYFromData(o);if(s>t)break;this.Canvas.beginPath(),this.Canvas.moveTo(i,p(s)),this.Canvas.lineTo(l,p(s)),this.Canvas.strokeStyle=o>=0?this.UpColor:this.DownColor,this.Canvas.stroke(),this.Canvas.closePath()}}}}function pt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartBar",this.UpBarColor=Xi.UpBarColor,this.DownBarColor=Xi.DownBarColor,this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();var t=this.ChartFrame.DataWidth,e=this.ChartFrame.DistanceWidth,a=this.ChartBorder.GetRight(),i=this.ChartFrame.XPointCount,r=this.ChartBorder.GetLeft()+e/2+2,n=this.ChartFrame.GetYFromData(0);if(t>=4){n=D(n);for(var o=this.Data.DataOffset,s=0;o<this.Data.Data.length&&s<i;++o,++s,r+=t+e){var l=this.Data.Data[o];if(null!=l&&0!=l){var h=r,u=r+t;if(u>a)break;var c=this.ChartFrame.GetXFromIndex(s),d=this.ChartFrame.GetYFromData(l);this.Canvas.fillStyle=l>0?this.UpBarColor:this.DownBarColor;var f=D(Math.abs(n-d));d=n-d>0?n-f:n+f,this.Canvas.fillRect(D(h),d,D(t),f)}}}else for(var o=this.Data.DataOffset,s=0;o<this.Data.Data.length&&s<i;++o,++s,r+=t+e){var l=this.Data.Data[o];if(null!=l&&0!=l){var h=r,u=r+t;if(u>a)break;var c=this.ChartFrame.GetXFromIndex(s),d=this.ChartFrame.GetYFromData(l);this.Canvas.strokeStyle=l>0?this.UpBarColor:this.DownBarColor,this.Canvas.beginPath(),this.Canvas.moveTo(p(c),d),this.Canvas.lineTo(p(c),n),this.Canvas.stroke()}}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};e.Min=0,e.Max=null;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];null==e.Max&&(e.Max=r),e.Max<r&&(e.Max=r)}return e}}function Dt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.IsDrawFirst=!0,this.ClassName="ChartBand",this.FirstColor=Xi.Index.LineColor[0],this.SecondColor=Xi.Index.LineColor[1],this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();for(var t=this.ChartFrame.DataWidth,e=this.ChartFrame.DistanceWidth,a=this.ChartFrame.XPointCount,i=this.ChartBorder.GetLeft()+e/2+2,r=0,n=0,o=0,s=[],l=[],h=0,u=this.Data.DataOffset,c=0;u<this.Data.Data.length&&c<a;++u,++c,i+=t+e){var d=this.Data.Data[u];null!=d&&null!=d.Value&&null!=d.Value2&&(r=this.ChartFrame.GetXFromIndex(c),n=this.ChartFrame.GetYFromData(d.Value),o=this.ChartFrame.GetYFromData(d.Value2),s[h]={x:r,y:n},l[h]={x:r,y:o},h++)}if(s.length>1){this.Canvas.save(),this.Canvas.beginPath();for(var u=0;u<s.length;++u)0==u?this.Canvas.moveTo(s[u].x,s[u].y):this.Canvas.lineTo(s[u].x,s[u].y);for(var c=l.length-1;c>=0;--c)this.Canvas.lineTo(l[c].x,l[c].y);this.Canvas.closePath(),this.Canvas.clip(),this.Canvas.beginPath(),this.Canvas.moveTo(s[0].x,this.ChartBorder.GetBottom());for(var u=0;u<s.length;++u)this.Canvas.lineTo(s[u].x,s[u].y);this.Canvas.lineTo(s[s.length-1].x,this.ChartBorder.GetBottom()),this.Canvas.closePath(),this.Canvas.fillStyle=this.FirstColor,this.Canvas.fill(),this.Canvas.beginPath(),this.Canvas.moveTo(l[0].x,this.ChartBorder.GetBottom());for(var u=0;u<l.length;++u)this.Canvas.lineTo(l[u].x,l[u].y);this.Canvas.lineTo(l[l.length-1].x,this.ChartBorder.GetBottom()),this.Canvas.closePath(),this.Canvas.fillStyle=this.SecondColor,this.Canvas.fill(),this.Canvas.restore()}},this.GetMaxMin=function(){var t=this.ChartFrame.XPointCount,e={};e.Min=null,e.Max=null;for(var a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];if(null!=r&&null!=r.Value&&null!=r.Value2){var n=r.Value>r.Value2?r.Value:r.Value2,o=r.Value<r.Value2?r.Value:r.Value2;null==e.Max?e.Max=n:e.Max<n&&(e.Max=n),null==e.Min?e.Min=o:e.Min>o&&(e.Min=o)}}return e}}function mt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.IsDrawFirst=!0,this.ClassName="ChartChannel",this.IsHScreen=!1,this.PointCount=0,this.DataWidth=0,this.DistanceWidth=0,this.ChartRight=0,this.LineColor="RGB(255,0,0)",this.LineDotted=[3,3],this.AreaColor="RGB(255,222,173)",this.LineWidth=1,this.CalculateData=function(){for(var t=[],e=[],a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<this.PointCount;++a,++i){var r=this.Data.Data[a];if(r&&Ht.IsNumber(r.Value)&&Ht.IsNumber(r.Value2)){var n=this.ChartFrame.GetXFromIndex(i);if(n>this.ChartRight)break;var o=this.ChartFrame.GetYFromData(r.Value),s=this.ChartFrame.GetYFromData(r.Value2);e.push({X:n,Y:o,Y2:s})}else e.length>0&&(t.push(e),e=[])}return e.length>0&&t.push(e),t},this.DrawArea=function(t){if(!(t.length<=0)){this.Canvas.beginPath();var e=0,a=t[0];this.IsHScreen?this.Canvas.moveTo(a.Y,a.X):this.Canvas.moveTo(a.X,a.Y);for(var i=1;i<t.length;++i){var r=t[i];this.IsHScreen?this.Canvas.lineTo(r.Y,r.X):this.Canvas.lineTo(r.X,r.Y),++e}for(var i=t.length-1;i>=0;--i){var r=t[i];this.IsHScreen?this.Canvas.lineTo(r.Y2,r.X):this.Canvas.lineTo(r.X,r.Y2),++e}this.Canvas.closePath(),this.Canvas.fillStyle=this.AreaColor,this.Canvas.fill()}},this.DrawLine=function(t){this.Canvas.strokeStyle=this.LineColor;for(var e=0;e<2;++e){for(var a=!0,i=0,r=0;r<t.length;++r){var n=t[r];a?(this.Canvas.beginPath(),this.IsHScreen?this.Canvas.moveTo(0===e?n.Y:n.Y2,n.X):this.Canvas.moveTo(n.X,0===e?n.Y:n.Y2),a=!1):this.IsHScreen?this.Canvas.lineTo(0===e?n.Y:n.Y2,n.X):this.Canvas.lineTo(n.X,0===e?n.Y:n.Y2),++i}i>0&&this.Canvas.stroke()}},this.Draw=function(){if(this.NotSupportMessage)return void this.DrawNotSupportmessage();this.IsHScreen=!0===this.ChartFrame.IsHScreen,this.PointCount=this.ChartFrame.XPointCount,this.DataWidth=this.ChartFrame.DataWidth,this.DistanceWidth=this.ChartFrame.DistanceWidth,this.IsHScreen?this.ChartRight=this.ChartBorder.GetBottom():this.ChartRight=this.ChartBorder.GetRight();var t=this.CalculateData();if(t&&!(t.length<=0)){this.Canvas.save(),this.Canvas.lineWidth=this.LineWidth*u(),this.Canvas.setLineDash(this.LineDotted);for(var e=0;e<t.length;++e){var a=t[e];this.DrawArea(a),this.DrawLine(a)}this.Canvas.restore()}},this.GetMaxMin=function(){for(var t=this.ChartFrame.XPointCount,e={Min:null,Max:null},a=this.Data.DataOffset,i=0;a<this.Data.Data.length&&i<t;++a,++i){var r=this.Data.Data[a];if(null!=r&&null!=r.Value&&null!=r.Value2){var n=r.Value>r.Value2?r.Value:r.Value2,o=r.Value<r.Value2?r.Value:r.Value2;null==e.Max?e.Max=n:e.Max<n&&(e.Max=n),null==e.Min?e.Min=o:e.Min>o&&(e.Min=o)}}return e}}function vt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartBackground",this.Color=null,this.ColorAngle=0,this.Draw=function(){if(this.IsShow&&this.Color&&!(this.Color.length<=0)){if(2==this.Color.length){if(0==this.ColorAngle)var t={X:this.ChartBorder.GetLeft(),Y:this.ChartBorder.GetTopEx()},e={X:this.ChartBorder.GetLeft(),Y:this.ChartBorder.GetBottomEx()};else var t={X:this.ChartBorder.GetLeft(),Y:this.ChartBorder.GetTopEx()},e={X:this.ChartBorder.GetRight(),Y:this.ChartBorder.GetTopEx()};var a=this.Canvas.createLinearGradient(t.X,t.Y,e.X,e.Y);a.addColorStop(0,this.Color[0]),a.addColorStop(1,this.Color[1]),this.Canvas.fillStyle=a}else{if(1!=this.Color.length)return;this.Canvas.fillStyle=this.Color[0]}var i=this.ChartBorder.GetLeft(),r=this.ChartBorder.GetTopEx(),n=this.ChartBorder.GetWidth(),o=this.ChartBorder.GetHeightEx();this.Canvas.fillRect(i,r,n,o)}}}function gt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartRectangle",this.Color=[],this.Rect,this.BorderColor=Xi.FrameBorderPen,this.Draw=function(){if(this.IsShow&&this.Color&&this.Rect&&!(this.Color.length<=0)){this.Canvas.strokeStyle=this.BorderColor;var t=!1;if(2==this.Color.length)this.Canvas.fillStyle=this.Color[0],t=!0;else{if(1!=this.Color.length)return;this.Color[0]&&(this.Canvas.fillStyle=this.Color[0],t=!0)}var e=this.ChartBorder.GetWidth(),a=this.ChartBorder.GetHeightEx(),i=this.Rect.Left/1e3*e,r=this.Rect.Top/1e3*a,n=this.Rect.Right/1e3*e,o=this.Rect.Bottom/1e3*a;i=this.ChartBorder.GetLeft()+i,r=this.ChartBorder.GetTopEx()+r,n=this.ChartBorder.GetLeft()+n,o=this.ChartBorder.GetTopEx()+o;var s=Math.abs(i-n),l=Math.abs(r-o);t&&this.Canvas.fillRect(i,r,s,l),this.Canvas.rect(p(i),p(r),D(s),D(l)),this.Canvas.stroke()}}}function St(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartTextLine",this.Text,this.Line,this.Price,this.Draw=function(){if(this.IsShow&&this.Text&&this.Line&&Ht.IsNumber(this.Price)){this.IsHScreen=!0===this.ChartFrame.IsHScreen;var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRight(),a=this.ChartBorder.GetBottomEx(),i=this.ChartBorder.GetTopEx(),r=this.ChartFrame.GetYFromData(this.Price),n=0;if(this.Text.Title){var o=t+2*u(),s=r;this.Canvas.textAlign="left",this.Canvas.textBaseline="middle";var l=8*u();r-l<i?(this.Canvas.textBaseline="top",s=i):r+l>a&&(this.Canvas.textBaseline="bottom",s=a),this.Canvas.fillStyle=this.Text.Color,this.Canvas.font=this.Text.Font,this.Canvas.fillText(this.Text.Title,o,s),n=this.Canvas.measureText(this.Text.Title).width+4*u()}if(this.Line.Type>0){2==this.Line.Type&&(this.Canvas.save(),this.Canvas.setLineDash([3,5]));var o=t+n;this.Canvas.strokeStyle=this.Line.Color,this.Canvas.beginPath(),this.Canvas.moveTo(o,p(r)),this.Canvas.lineTo(e,p(r)),this.Canvas.stroke(),2==this.Line.Type&&this.Canvas.restore()}}},this.GetMaxMin=function(){var t={Min:null,Max:null};return Ht.IsNumber(this.Price)&&(t.Min=this.Price,t.Max=this.Price),t}}function It(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMultiBar",this.Bars=[],this.IsHScreen=!1,this.Draw=function(){if(this.IsShow&&this.Data&&!(this.Data.length<=0)){this.IsHScreen=!0===this.ChartFrame.IsHScreen;var t=this.ChartFrame.XPointCount,e=this.Data.DataOffset,a=this.ChartFrame.DataWidth,i=u(),r=[];for(var n in this.Bars){var o=this.Bars[n],s={Point:[],Color:o.Color,Width:a,Type:0};o.Type>0&&(s.Type=o.Type),o.Width>0?(s.Width=o.Width*i,s.Width>a&&(s.Width=a)):s.Width<4&&(s.Width=1*i);for(var l in o.Point){var h=o.Point[l];if(Ht.IsNumber(h.Index)){var c=h.Index-e;if(c>=0&&c<t){var d=this.ChartFrame.GetXFromIndex(c),f=this.ChartFrame.GetYFromData(h.Value),C=this.ChartFrame.GetYFromData(h.Value2);s.Point.push({X:d,Y:f,Y2:C})}}}s.Point.length>0&&r.push(s)}for(var n in r){var o=r[n];o.Width>=4?1==o.Type?this.DrawHollowBar(o):this.DrawFillBar(o):this.DrawLineBar(o)}}},this.DrawLineBar=function(t){this.Canvas.strokeStyle=t.Color;var e=this.Canvas.lineWidth;this.Canvas.lineWidth=t.Width;for(var a in t.Point){var i=t.Point[a];this.Canvas.beginPath(),this.IsHScreen?(this.Canvas.moveTo(p(i.Y),p(i.X)),this.Canvas.lineTo(p(i.Y2),p(i.X))):(this.Canvas.moveTo(p(i.X),p(i.Y)),this.Canvas.lineTo(p(i.X),p(i.Y2))),this.Canvas.stroke()}this.Canvas.lineWidth=e},this.DrawFillBar=function(t){this.Canvas.fillStyle=t.Color;for(var e in t.Point){var a=t.Point[e],i=a.X-t.Width/2,r=Math.min(a.Y,a.Y2),n=t.Width,o=Math.abs(a.Y-a.Y2);this.IsHScreen?this.Canvas.fillRect(D(r),D(i),D(o),D(n)):this.Canvas.fillRect(D(i),D(r),D(n),D(o))}},this.DrawHollowBar=function(t){this.Canvas.strokeStyle=t.Color;for(var e in t.Point){var a=t.Point[e],i=a.X-t.Width/2,r=Math.min(a.Y,a.Y2),n=t.Width,o=Math.abs(a.Y-a.Y2);this.Canvas.beginPath(),this.IsHScreen?this.Canvas.rect(p(r),p(i),D(o),D(n)):this.Canvas.rect(p(i),p(r),D(n),D(o)),this.Canvas.stroke()}this.Canvas.lineWidth=1},this.GetMaxMin=function(){var t={Min:null,Max:null},e=this.ChartFrame.XPointCount,a=this.Data.DataOffset,i=a+e;for(var r in this.Bars){var n=this.Bars[r];for(var o in n.Point){var s=n.Point[o];if(s.Index>=a&&s.Index<i){var l=Math.min(s.Value,s.Value2),h=Math.max(s.Value,s.Value2);null==t.Max?t.Max=h:t.Max<h&&(t.Max=h),null==t.Min?t.Min=l:t.Min>l&&(t.Min=l)}}}return t}}function xt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMultiLine",this.Lines=[],this.IsHScreen=!1,this.Draw=function(){if(this.IsShow&&this.Data&&!(this.Data.length<=0)){this.IsHScreen=!0===this.ChartFrame.IsHScreen;var t=this.ChartFrame.XPointCount,e=this.Data.DataOffset,a=[];for(var i in this.Lines){var r=this.Lines[i],n={Point:[],Color:r.Color};r.BGColor&&(n.BGColor=r.BGColor);for(var o in r.Point){var s=r.Point[o];if(Ht.IsNumber(s.Index)){var l=s.Index-e;if(l>=0&&l<t){var h=this.ChartFrame.GetXFromIndex(l),u=this.ChartFrame.GetYFromData(s.Value);n.Point.push({X:h,Y:u,End:!1})}else n.Point.length>0&&(n.Point[n.Point.length-1].End=!0)}}n.Point.length>=2&&a.push(n)}for(var i in a){var c=a[i];this.DrawLine(c)}}},this.DrawLine=function(t){if(t.BGColor){this.Canvas.fillStyle=t.BGColor;for(var e in t.Point){var a=t.Point[e];0==e?(this.Canvas.beginPath(),this.IsHScreen?this.Canvas.moveTo(a.Y,a.X):this.Canvas.moveTo(a.X,a.Y)):this.IsHScreen?this.Canvas.lineTo(a.Y,a.X):this.Canvas.lineTo(a.X,a.Y)}this.Canvas.closePath(),this.Canvas.fill()}this.Canvas.strokeStyle=t.Color;var i=0;for(var e in t.Point){var a=t.Point[e];0==i?(this.Canvas.beginPath(),this.IsHScreen?this.Canvas.moveTo(a.Y,a.X):this.Canvas.moveTo(a.X,a.Y),++i):(this.IsHScreen?this.Canvas.lineTo(a.Y,a.X):this.Canvas.lineTo(a.X,a.Y),++i),1==a.End&&(i>0&&this.Canvas.stroke(),i=0)}i>0&&this.Canvas.stroke()},this.GetMaxMin=function(){var t={Min:null,Max:null},e=this.ChartFrame.XPointCount,a=this.Data.DataOffset,i=a+e;for(var r in this.Lines){var n=this.Lines[r];for(var o in n.Point){var s=n.Point[o];s.Index>=a&&s.Index<i&&(null==t.Max?t.Max=s.Value:t.Max<s.Value&&(t.Max=s.Value),null==t.Min?t.Min=s.Value:t.Min>s.Value&&(t.Min=s.Value))}}return t}}function Tt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMultiText",this.Texts=[],this.Font=Xi.DefaultTextFont,this.Color=Xi.DefaultTextColor,this.IsHScreen=!1,this.Draw=function(){if(this.IsShow&&this.Data&&!(this.Data.length<=0)&&this.Texts){this.IsHScreen=!0===this.ChartFrame.IsHScreen;var t=this.ChartFrame.XPointCount,e=this.Data.DataOffset,a=this.ChartBorder.GetLeft(),i=this.ChartBorder.GetRight();this.IsHScreen&&(a=this.ChartBorder.GetTop(),i=this.ChartBorder.GetBottom());for(var r in this.Texts){var n=this.Texts[r];if(n.Text&&Ht.IsNumber(n.Index)){var o=n.Index-e;if(o>=0&&o<t){var s=this.ChartFrame.GetXFromIndex(o),l=this.ChartFrame.GetYFromData(n.Value);n.Color?this.Canvas.fillStyle=n.Color:this.Canvas.fillStyle=this.Color,n.Font?this.Canvas.font=n.Font:this.Canvas.font=this.Font;var h=this.Canvas.measureText(n.Text).width;this.Canvas.textAlign="center",s+h/2>=i?(this.Canvas.textAlign="right",s=i):s-h/2<a&&(this.Canvas.textAlign="left",s=a),1==n.Baseline?this.Canvas.textBaseline="top":2==n.Baseline?this.Canvas.textBaseline="bottom":this.Canvas.textBaseline="middle",this.IsHScreen?(this.Canvas.save(),this.Canvas.translate(l,s),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(n.Text,0,0),this.Canvas.restore()):this.Canvas.fillText(n.Text,s,l)}}}}},this.GetMaxMin=function(){var t={Min:null,Max:null};if(!this.Texts)return t;var e=this.ChartFrame.XPointCount,a=this.Data.DataOffset,i=a+e;for(var r in this.Texts){var n=this.Texts[r];n.Index>=a&&n.Index<i&&(null==t.Max?t.Max=n.Value:t.Max<n.Value&&(t.Max=n.Value),null==t.Min?t.Min=n.Value:t.Min>n.Value&&(t.Min=n.Value))}return t}}function At(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartMultiSVGIcon",this.Icon,this.Family,this.Color=Xi.DefaultTextColor,this.IsHScreen=!1,this.Draw=function(){if(this.IsShow&&this.Data&&!(this.Data.length<=0)&&this.Family&&this.Icon){this.IsHScreen=!0===this.ChartFrame.IsHScreen;var t=this.ChartFrame.XPointCount,e=this.Data.DataOffset,a=this.ChartBorder.GetLeft(),i=this.ChartBorder.GetRight();this.DataWidth=this.ChartFrame.DataWidth,this.DistanceWidth=this.ChartFrame.DistanceWidth,this.IsHScreen&&(a=this.ChartBorder.GetTop(),i=this.ChartBorder.GetBottom());var r=this.DataWidth+this.DistanceWidth-2;r<8&&(r=8),this.Canvas.font=r+"px "+this.Family;for(var n in this.Icon){var o=this.Icon[n];if(Ht.IsNumber(o.Index)){var s=o.Index-e;if(s>=0&&s<t){var l=this.ChartFrame.GetXFromIndex(s),h=this.ChartFrame.GetYFromData(o.Value);o.Color?this.Canvas.fillStyle=o.Color:this.Canvas.fillStyle=this.Color;var u=this.Canvas.measureText(o.Text).width;this.Canvas.textAlign="center",l+u/2>=i?(this.Canvas.textAlign="right",l+=this.DataWidth/2):l-u/2<a&&(this.Canvas.textAlign="left",l-=this.DataWidth/2),1==o.Baseline?this.Canvas.textBaseline="top":2==o.Baseline?this.Canvas.textBaseline="bottom":this.Canvas.textBaseline="middle",this.IsHScreen?(this.Canvas.save(),this.Canvas.translate(h,l),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(o.Symbol,0,0),this.Canvas.restore()):this.Canvas.fillText(o.Symbol,l,h)}}}}},this.GetMaxMin=function(){var t={Min:null,Max:null};if(!this.Texts)return t;var e=this.ChartFrame.XPointCount,a=this.Data.DataOffset,i=a+e;for(var r in this.Icon){var n=this.Icon[r];n.Index>=a&&n.Index<i&&(null==t.Max?t.Max=n.Value:t.Max<n.Value&&(t.Max=n.Value),null==t.Min?t.Min=n.Value:t.Min>n.Value&&(t.Min=n.Value))}return t}}function bt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ClassName="ChartLock",this.WidthDiv=.2,this.LockCount=20,this.BGColor=Xi.LockBGColor,this.TextColor=Xi.LockTextColor,this.Font=Xi.DefaultTextFont,this.Title="🔒开通权限",this.LockRect=null,this.LockID,this.Callback,this.IndexName,this.MinWidth=null,this.Draw=function(t){if(this.LockRect=null,this.NotSupportMessage)return void this.DrawNotSupportmessage();if(!0===this.ChartFrame.IsHScreen)return void this.HScreenDraw(t);var e=this.ChartBorder.GetRight(),a=0;if(null!=this.ChartFrame.Data){var i=this.ChartFrame.DataWidth,r=this.ChartFrame.DistanceWidth;e=this.ChartBorder.GetLeft()+r/2+2;for(var n=this.ChartBorder.GetRight(),o=this.ChartFrame.XPointCount,s=this.ChartFrame.Data.DataOffset,l=0;s<this.ChartFrame.Data.Data.length&&l<o;++s,++l,e+=i+r){var h=this.ChartFrame.Data.Data[s];if(null!=h.Open&&null!=h.High&&null!=h.Low&&null!=h.Close){if(e+i>n)break}}a=(i+r)*this.LockCount}0==a&&(a=(e-this.ChartBorder.GetLeft())*this.WidthDiv);var u=e-a;u<this.ChartBorder.GetLeft()&&(u=this.ChartBorder.GetLeft());var c=this.ChartBorder.GetBottom()-this.ChartBorder.GetTop(),d=this.ChartBorder.GetRight()-u;if(this.MinWidth>10&&d<this.MinWidth&&(d=this.MinWidth,(u=this.ChartBorder.GetRight()-d)<this.ChartBorder.GetLeft()&&(u=this.ChartBorder.GetLeft())),t){this.Canvas.fillStyle=this.BGColor,this.Canvas.fillRect(u,this.ChartBorder.GetTop(),d,c);var f=u+d/2,C=this.ChartBorder.GetTop()+c/2;this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.font=this.Font,this.Canvas.fillText(this.Title,f,C)}this.LockRect={Left:u,Top:this.ChartBorder.GetTop(),Width:d,Heigh:c}},this.HScreenDraw=function(t){var e=this.ChartBorder.GetBottom(),a=0;if(null!=this.ChartFrame.Data){var i=this.ChartFrame.DataWidth,r=this.ChartFrame.DistanceWidth;e=this.ChartBorder.GetTop()+r/2+2;for(var n=this.ChartBorder.GetBottom(),o=this.ChartFrame.XPointCount,s=this.ChartFrame.Data.DataOffset,l=0;s<this.ChartFrame.Data.Data.length&&l<o;++s,++l,e+=i+r){var h=this.ChartFrame.Data.Data[s];if(null!=h.Open&&null!=h.High&&null!=h.Low&&null!=h.Close){if(e+i>n)break}}a=(i+r)*this.LockCount}0==a&&(a=(e-this.ChartBorder.GetTop())*this.WidthDiv);var u=e-a;u<this.ChartBorder.GetTop()&&(u=this.ChartBorder.GetTop());var c=this.ChartBorder.GetRight()-this.ChartBorder.GetLeft(),d=this.ChartBorder.GetBottom()-u;this.Canvas.fillStyle=this.BGColor,this.Canvas.fillRect(this.ChartBorder.GetLeft(),u,c,d);var f=this.ChartBorder.GetLeft()+c/2,C=u+d/2;this.Canvas.save(),this.Canvas.translate(f,C),this.Canvas.rotate(90*Math.PI/180),this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.font=this.Font,this.Canvas.fillText(this.Title,0,0),this.Canvas.restore(),this.LockRect={Left:this.ChartBorder.GetLeft(),Top:u,Width:c,Heigh:d}},this.GetTooltipData=function(t,e,a){return null!=this.LockRect&&(this.Canvas.beginPath(),this.Canvas.rect(this.LockRect.Left,this.LockRect.Top,this.LockRect.Width,this.LockRect.Heigh),!!this.Canvas.isPointInPath(t,e)&&(a.Data={ID:this.LockID,Callback:this.Callback,IndexName:this.IndexName},a.ChartPaint=this,!0))}}function Et(){this.newMethod=lt,this.newMethod(),delete this.newMethod,this.ClassName="ChartBuySell",this.TextFont=Xi.KLineTrain.Font,this.LastDataIcon=Xi.KLineTrain.LastDataIcon,this.BuyIcon=Xi.KLineTrain.BuyIcon,this.SellIcon=Xi.KLineTrain.SellIcon,this.BuySellData=new xi.default,this.LastData={},this.IconFont=Xi.KLineTrain.IconFont,this.Draw=function(){if(this.Data&&this.Data.Data){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.DataWidth,a=this.ChartFrame.DistanceWidth,i=this.ChartBorder.GetRight();!0===t&&(i=this.ChartBorder.GetBottom());var r=this.ChartFrame.XPointCount;if(this.IconFont){var n=u(),o=e+a,s=18*n;o<s&&(o=s),this.Canvas.font=o+"px "+this.IconFont.Family}else this.Canvas.font=this.TextFont;for(var l=this.Data.DataOffset,h=0;l<this.Data.Data.length&&h<r;++l,++h){var c=this.Data.Data[l];if(null!=c){if(C>i)break;this.LastData={ID:h,Data:c};var d=1e4*c.Date;if(Ht.IsNumber(c.Time)&&(d+=c.Time),this.BuySellData.has(d)){var f=this.BuySellData.get(d),C=this.ChartFrame.GetXFromIndex(h),p=this.ChartFrame.GetYFromData(c.High),D=this.ChartFrame.GetYFromData(c.Low);0==f.Op?(this.Canvas.textAlign="center",this.Canvas.textBaseline="top",this.IconFont?(this.Canvas.fillStyle=this.IconFont.Buy.Color,this.DrawText(this.IconFont.Buy.Text,C,D,t)):(this.Canvas.fillStyle=this.BuyIcon.Color,this.DrawText(this.BuyIcon.Text,C,D,t))):(this.Canvas.textAlign="center",this.Canvas.textBaseline="bottom",this.IconFont?(this.Canvas.fillStyle=this.IconFont.Sell.Color,this.DrawText(this.IconFont.Sell.Text,C,p,t)):(this.Canvas.fillStyle=this.SellIcon.Color,this.DrawText(this.SellIcon.Text,C,p,t)))}}}var C=this.ChartFrame.GetXFromIndex(this.LastData.ID),p=this.ChartFrame.GetYFromData(this.LastData.Data.High);this.Canvas.textAlign="center",this.Canvas.textBaseline="bottom",this.IconFont?(this.Canvas.fillStyle=this.IconFont.Last.Color,this.DrawText(this.IconFont.Last.Text,C,p,t)):(this.Canvas.fillStyle=this.LastDataIcon.Color,this.Canvas.font=this.TextFont,this.DrawText(this.LastDataIcon.Text,C,p,t))}}}function Ft(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.Radius=100,this.Distance=30,this.txtLine=20,this.paddingX=20/3,this.Draw=function(){if(!(this.Data&&this.Data.Data&&this.Data.Data.length>0))return this.DrawEmptyData();var t=(this.ChartBorder.GetLeft(),this.ChartBorder.GetRight(),this.ChartBorder.GetTop(),this.ChartBorder.GetBottom(),this.ChartBorder.GetWidth()),e=this.ChartBorder.GetHeight();if(isNaN(this.Radius)){var a=this.Radius.replace("%","");a/=100,t>=e&&(this.Radius=a*e),t<e&&(this.Radius=a*t)}this.Canvas.save(),this.Canvas.translate(t/2,e/2);var i=0;for(var r in this.Data.Data)i+=this.Data.Data[r].Value;var n=0,o=0;for(var s in this.Data.Data){var l=this.Data.Data[s],h=(l.Value/i).toFixed(2);this.Canvas.beginPath(),this.Canvas.moveTo(0,0),o+=2*h*Math.PI,this.Canvas.strokeStyle="white",this.Canvas.fillStyle=l.Color,this.Canvas.arc(0,0,this.Radius,n,o),this.Canvas.fill(),this.Canvas.closePath(),this.Canvas.stroke(),this.Canvas.beginPath(),this.Canvas.strokeStyle=l.Color,this.Canvas.moveTo(0,0);var u=(this.Radius+this.Distance)*Math.cos(o-(o-n)/2),c=(this.Radius+this.Distance)*Math.sin(o-(o-n)/2);this.Canvas.lineTo(u,c);var d=this.txtLine,f=this.paddingX;if(this.Canvas.textAlign="left",o-(o-n)/2<1.5*Math.PI&&o-(o-n)/2>.5*Math.PI&&(d=-this.txtLine,f=-this.paddingX,this.Canvas.textAlign="right"),this.Canvas.lineTo(u+d,c),this.Canvas.stroke(),l.Text)this.Canvas.fillText(l.Text,u+d+f,c);else{var C=l.Name+":"+l.Value;this.Canvas.fillText(C,u+d+f,c)}n+=2*h*Math.PI}this.Canvas.restore()},this.DrawEmptyData=function(){bi.Chart.Log("[ChartPie::DrawEmptyData]")}}function yt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.BorderPoint=[],this.DataPoint=[],this.CenterPoint={},this.StartAngle=0,this.Color="rgb(198,198,198)",this.AreaColor="rgba(242,154,118,0.4)",this.AreaLineColor="rgb(242,154,118)",this.TitleFont=24*u()+"px 微软雅黑",this.TitleColor="rgb(102,102,102)",this.BGColor=["rgb(255,255,255)","rgb(224,224,224)"],this.DrawBorder=function(){if(!(this.BorderPoint.length<=0)){this.Canvas.font=this.TitleFont,this.Canvas.strokeStyle=this.Color;var t=[1,.8,.6,.4,.2];for(var e in t){var a=t[e],i=!0;for(var r in this.BorderPoint){var n=this.BorderPoint[r];n.X=this.CenterPoint.X+n.Radius*Math.cos(n.Angle*Math.PI/180)*a,n.Y=this.CenterPoint.Y+n.Radius*Math.sin(n.Angle*Math.PI/180)*a,i?(this.Canvas.beginPath(),this.Canvas.moveTo(n.X,n.Y),i=!1):this.Canvas.lineTo(n.X,n.Y)}this.Canvas.closePath(),this.Canvas.stroke(),this.Canvas.fillStyle=this.BGColor[e%2==0?0:1],this.Canvas.fill()}this.Canvas.beginPath();for(var o in this.BorderPoint){var n=this.BorderPoint[o];n.X=this.CenterPoint.X+n.Radius*Math.cos(n.Angle*Math.PI/180),n.Y=this.CenterPoint.Y+n.Radius*Math.sin(n.Angle*Math.PI/180),this.Canvas.moveTo(this.CenterPoint.X,this.CenterPoint.Y),this.Canvas.lineTo(n.X,n.Y),this.DrawText(n)}this.Canvas.stroke()}},this.DrawArea=function(){if(this.DataPoint&&!(this.DataPoint.length<=0)){this.Canvas.fillStyle=this.AreaColor,this.Canvas.strokeStyle=this.AreaLineColor,this.Canvas.beginPath();var t=!0;for(var e in this.DataPoint){var a=this.DataPoint[e];t?(this.Canvas.beginPath(),this.Canvas.moveTo(a.X,a.Y),t=!1):this.Canvas.lineTo(a.X,a.Y)}this.Canvas.closePath(),this.Canvas.fill(),this.Canvas.stroke()}},this.DrawText=function(t){if(t.Text){this.Canvas.fillStyle=this.TitleColor;var e=t.X,a=t.Y;t.Angle>0&&t.Angle<45?(this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",e+=2):t.Angle>=0&&t.Angle<90?(this.Canvas.textAlign="left",this.Canvas.textBaseline="top",e+=2):t.Angle>=90&&t.Angle<135?(this.Canvas.textAlign="right",this.Canvas.textBaseline="top",e-=2):t.Angle>=135&&t.Angle<180?(this.Canvas.textAlign="right",this.Canvas.textBaseline="top",e-=2):t.Angle>=180&&t.Angle<225?(this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",e-=2):t.Angle>=225&&t.Angle<=270?(this.Canvas.textAlign="center",this.Canvas.textBaseline="bottom"):t.Angle>270&&t.Angle<315?(this.Canvas.textAlign="left",this.Canvas.textBaseline="bottom",e+=2):(this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",e+=2),this.Canvas.fillText(t.Text,e,a)}},this.Draw=function(){this.BorderPoint=[],this.DataPoint=[],this.CenterPoint={},this.Data&&this.Data.Data&&this.Data.Data.length>0?this.CalculatePoints(this.Data.Data):this.CalculatePoints(null),this.DrawBorder(),this.DrawArea()},this.CalculatePoints=function(t){for(var e=this.ChartBorder.GetLeft(),a=(this.ChartBorder.GetRight(),this.ChartBorder.GetTop()),i=(this.ChartBorder.GetBottom(),this.ChartBorder.GetWidth()),r=this.ChartBorder.GetHeight(),n={X:e+i/2,Y:a+r/2},o=Math.min(i/2,r/2)-2,s=Math.max(5,t?t.length:0),l=360/s,h=0;h<s;++h){var u={Index:h,Radius:o,Angle:h*l+this.StartAngle},c=u.Angle;if(t&&h<t.length){var d=t[h],f={Index:h,Text:d.Text};if(u.Text=d.Name,d.Value){var C=d.Value;C>=1&&(C=1);var p=o*C;f.X=n.X+p*Math.cos(c*Math.PI/180),f.Y=n.Y+p*Math.sin(c*Math.PI/180)}else f.X=n.X,f.Y=n.Y;this.DataPoint.push(f)}this.BorderPoint.push(u)}this.CenterPoint=n},this.DrawEmptyData=function(){bi.Chart.Log("[ChartPie::DrawEmptyData]")}}function Lt(){this.newMethod=X,this.newMethod(),delete this.newMethod,this.ImageData=null,this.Left,this.Top,this.Width,this.Height,this.ImageWidth,this.ImageHeight,this.DefaultColor=[217,222,239],this.Color=[{Name:"海南",Color:"rgb(217,222,223)"},{Name:"内蒙古",Color:"rgb(217,222,225)"},{Name:"新疆",Color:"rgb(217,222,226)"},{Name:"青海",Color:"rgb(217,222,227)"},{Name:"西藏",Color:"rgb(217,222,228)"},{Name:"云南",Color:"rgb(217,222,229)"},{Name:"黑龙江",Color:"rgb(217,222,230)"},{Name:"吉林",Color:"rgb(217,222,231)"},{Name:"辽宁",Color:"rgb(217,222,232)"},{Name:"河北",Color:"rgb(217,222,233)"},{Name:"山东",Color:"rgb(217,222,234)"},{Name:"江苏",Color:"rgb(217,222,235)"},{Name:"浙江",Color:"rgb(217,222,236)"},{Name:"福建",Color:"rgb(217,222,237)"},{Name:"广东",Color:"rgb(217,222,238)"},{Name:"广西",Color:"rgb(217,222,239)"},{Name:"贵州",Color:"rgb(217,222,240)"},{Name:"湖南",Color:"rgb(217,222,241)"},{Name:"江西",Color:"rgb(217,222,242)"},{Name:"安徽",Color:"rgb(217,222,243)"},{Name:"湖北",Color:"rgb(217,222,244)"},{Name:"重庆",Color:"rgb(217,222,245)"},{Name:"四川",Color:"rgb(217,222,246)"},{Name:"甘肃",Color:"rgb(217,222,247)"},{Name:"陕西",Color:"rgb(217,222,248)"},{Name:"山西",Color:"rgb(217,222,249)"},{Name:"河南",Color:"rgb(217,222,250)"}],this.Draw=function(){var t=this.ChartBorder.GetLeft()+1,e=(this.ChartBorder.GetRight(),this.ChartBorder.GetTop()+1),a=(this.ChartBorder.GetBottom(),this.ChartBorder.GetWidth()-2),i=this.ChartBorder.GetHeight()-2,r=CHINA_MAP_IMAGE.width,n=CHINA_MAP_IMAGE.height,o=r,s=n;if(i<s||a<o)return void(this.ImageData=null);if(this.Left==t&&this.Top==e&&this.Width==a&&this.Height==i&&this.ImageWidth==r&&this.ImageHeight==n||(this.ImageData=null,this.ImageWidth=r,this.ImageHeight=n,this.Left=t,this.Top=e,this.Width=a,this.Height=i,bi.Chart.Log(r,n)),null==this.ImageData){this.Canvas.drawImage(CHINA_MAP_IMAGE,0,0,r,n,t,e,o,s),this.ImageData=this.Canvas.getImageData(t,e,o,s);var l=new vi.default,h=new xi.default,u=new xi.default;if(this.Data.length>0)for(var c in this.Data){var d=this.Data[c];u.set(d.Name,d.Color)}bi.Chart.Log(this.Data);for(var f in this.Color){var C=this.Color[f];u.has(C.Name)?h.set(C.Color,u.get(C.Name)):l.add(C.Color)}for(var p,D=0;D<this.ImageData.data.length;D+=4)if(p="rgb("+this.ImageData.data[D]+","+this.ImageData.data[D+1]+","+this.ImageData.data[D+2]+")",l.has(p))this.ImageData.data[D]=this.DefaultColor[0],this.ImageData.data[D+1]=this.DefaultColor[1],this.ImageData.data[D+2]=this.DefaultColor[2];else if(h.has(p)){var m=h.get(p);this.ImageData.data[D]=m[0],this.ImageData.data[D+1]=m[1],this.ImageData.data[D+2]=m[2]}this.Canvas.clearRect(t,e,o,s),this.Canvas.putImageData(this.ImageData,t,e,0,0,o,s)}else this.Canvas.putImageData(this.ImageData,t,e,0,0,o,s)}}function Mt(){this.Canvas,this.ChartBorder,this.ChartFrame,this.Name,this.Data,this.IsDynamic=!1,this.IsAnimation=!1,this.ClassName="IExtendChartPainting",this.SizeChange=!0,this.IsEraseBG=!1,this.DrawAfterTitle=!1,this.IsCallbackDraw=!1,this.Left=5,this.Right=5,this.Top=5,this.Bottom=5,this.Draw=function(){},this.SetOption=function(t){}}function wt(){this.newMethod=Mt,this.newMethod(),delete this.newMethod,this.IsDynamic=!0,this.IsEraseBG=!0,this.DrawAfterTitle=!0,this.ClassName="KLineTooltipPaint",this.BorderColor=Xi.TooltipPaint.BorderColor,this.BGColor=Xi.TooltipPaint.BGColor,this.TitleColor=Xi.TooltipPaint.TitleColor,this.Left=1*u(),this.Top=5*u(),this.Width=50,this.Height=100,this.LineHeight=15*u(),this.Font=[Xi.TooltipPaint.TitleFont],this.HQChart,this.KLineTitlePaint,this.IsHScreen=!1,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.GetLeft=function(){return this.IsHScreen?this.ChartBorder.GetRightEx()-this.Height-this.Top:this.ChartBorder.GetLeft()+this.Left},this.GetTop=function(){return this.IsHScreen?this.ChartBorder.GetTop():this.ChartBorder.GetTopEx()+this.Top},this.IsEnableDraw=function(){if(!this.HQChart||!this.HQChart.TitlePaint||!this.HQChart.TitlePaint[0])return!1;if(this.HQChart.DragMode==Mi.CLICK_TOUCH_MODE_ID){if(0==this.HQChart.TouchStatus.CorssCursorShow)return!1}else if(!this.HQChart.IsOnTouch)return!1;return!this.HQChart.CurrentChartDrawPicture},this.Draw=function(){if(this.IsEnableDraw()){this.KLineTitlePaint=this.HQChart.TitlePaint[0];var t=this.KLineTitlePaint.GetCurrentKLineData();if(t){var e,a=8;this.HQChart.Symbol&&(e=this.HQChart.Symbol.toUpperCase()),"MinuteTooltipPaint"===this.ClassName?(a=7,Ji.IsFutures(e)&&++a):(Ht.IsNumber(t.Time)&&++a,Ji.IsSHSZStockA(this.HQChart.Symbol)&&t.FlowCapital>0&&++a,Ji.IsFutures(e)&&Ht.IsNumber(t.Position)&&++a),this.IsHScreen=!0===this.ChartFrame.IsHScreen,this.Canvas.font=this.Font[0];var i=Ha(this.HQChart.Symbol),r=" 擎: 9999.99亿 ";i>=5&&(r=" 擎: "+99.99.toFixed(i)+" "),this.Width=this.Canvas.measureText(r).width,this.Height=this.LineHeight*a+2*u()*2,this.DrawBG(),this.DrawTooltipData(t),this.DrawBorder()}}},this.DrawTooltipData=function(t){var e=Ha(this.HQChart.Symbol),a=this.GetLeft()+2*u(),i=this.GetTop()+3*u();if(this.IsHScreen){this.Canvas.save();var r=this.GetLeft()+this.Height,n=this.GetTop();this.Canvas.translate(r,n),this.Canvas.rotate(90*Math.PI/180),a=2*u(),i=3*u()}this.Canvas.textBaseline="top",this.Canvas.textAlign="left",this.Canvas.font=this.Font[0];var o=this.Canvas.measureText("擎: ").width,s=Ht.FormatDateString(t.Date);this.Canvas.fillStyle=this.TitleColor,this.Canvas.fillText(s,a,i);var l=this.HQChart.Period;Y.IsMinutePeriod(l,!0)&&t.Time?(i+=this.LineHeight,s=Ht.FormatTimeString(t.Time),this.Canvas.fillText(s,a,i)):Y.IsSecondPeriod(l)&&t.Time&&(i+=this.LineHeight,s=Ht.FormatTimeString(t.Time,"HH:MM:SS"),this.Canvas.fillText(s,a,i)),i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,s=zi.GetText("Tooltip-Open",this.LanguageID),this.Canvas.fillText(s,a,i);var h=this.KLineTitlePaint.GetColor(t.Open,t.YClose);s=t.Open.toFixed(e),this.Canvas.fillStyle=h,this.Canvas.fillText(s,a+o,i),i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,s=zi.GetText("Tooltip-High",this.LanguageID),this.Canvas.fillText(s,a,i);var h=this.KLineTitlePaint.GetColor(t.High,t.YClose),s=t.High.toFixed(e);this.Canvas.fillStyle=h,this.Canvas.fillText(s,a+o,i),i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,s=zi.GetText("Tooltip-Low",this.LanguageID),this.Canvas.fillText(s,a,i);var h=this.KLineTitlePaint.GetColor(t.Low,t.YClose),s=t.Low.toFixed(e);this.Canvas.fillStyle=h,this.Canvas.fillText(s,a+o,i),i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,s=zi.GetText("Tooltip-Close",this.LanguageID),this.Canvas.fillText(s,a,i);var h=this.KLineTitlePaint.GetColor(t.Close,t.YClose),s=t.Close.toFixed(e);if(this.Canvas.fillStyle=h,this.Canvas.fillText(s,a+o,i),i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,s=zi.GetText("Tooltip-Increase",this.LanguageID),this.Canvas.fillText(s,a,i),t.YClose>0)var c=(t.Close-t.YClose)/t.YClose*100,h=this.KLineTitlePaint.GetColor(c,0),s=c.toFixed(2)+"%";else var s="--.--",h=this.KLineTitlePaint.GetColor(0,0);this.Canvas.fillStyle=h,this.Canvas.fillText(s,a+o,i),this.Canvas.fillStyle=this.TitleColor,i+=this.LineHeight,s=zi.GetText("Tooltip-Vol",this.LanguageID),this.Canvas.fillText(s,a,i);var s=Ht.FromatIntegerString(t.Vol,2,this.LanguageID);if(this.Canvas.fillText(s,a+o,i),Ht.IsNumber(t.Amount)){i+=this.LineHeight,s=zi.GetText("Tooltip-Amount",this.LanguageID),this.Canvas.fillText(s,a,i);var s=Ht.FormatValueString(t.Amount,2,this.LanguageID);this.Canvas.fillText(s,a+o,i)}if(Ji.IsSHSZStockA(this.HQChart.Symbol)&&t.FlowCapital>0){i+=this.LineHeight,s=zi.GetText("Tooltip-Exchange",this.LanguageID),this.Canvas.fillText(s,a,i);var c=t.Vol/t.FlowCapital*100,s=c.toFixed(2)+"%";this.Canvas.fillText(s,a+o,i)}var d=this.HQChart.Symbol.toUpperCase();if(Ji.IsFutures(d)&&Ht.IsNumber(t.Position)){this.Canvas.fillStyle=this.TitleColor,i+=this.LineHeight,s=zi.GetText("Tooltip-Position",this.LanguageID),this.Canvas.fillText(s,a,i);var s=Ht.FromatIntegerString(t.Position,2,this.LanguageID);this.Canvas.fillText(s,a+o,i)}this.IsHScreen&&this.Canvas.restore()},this.DrawBorder=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.GetLeft(),a=this.GetTop();this.Canvas.strokeStyle=this.BorderColor,t?this.Canvas.strokeRect(p(e),p(a),this.Height,this.Width):this.Canvas.strokeRect(p(e),p(a),this.Width,this.Height)},this.DrawBG=function(){var t=!0===this.ChartFrame.IsHScreen,e=this.GetLeft(),a=this.GetTop();this.Canvas.fillStyle=this.BGColor,t?this.Canvas.fillRect(e,a,this.Height,this.Width):this.Canvas.fillRect(e,a,this.Width,this.Height)},this.SetOption=function(t){t.LineHeight>0&&(this.LineHeight=t.LineHeight*u()),t.BGColor&&(this.BGColor=t.BGColor),t.LanguageID>0&&(this.LanguageID=t.LanguageID)}}function Nt(){this.newMethod=wt,this.newMethod(),delete this.newMethod,this.ClassName="MinuteTooltipPaint",this.Left=1*u(),this.Top=1*u(),this.YClose,this.GetTop=function(){return this.IsHScreen?this.ChartBorder.GetTop():this.ChartBorder.GetTop()+this.Top},this.DrawTooltipData=function(t){var e=Ha(this.HQChart.Symbol),a=this.GetLeft()+2*u(),i=this.GetTop()+3*u();this.YClose=this.KLineTitlePaint.YClose;var r=this.HQChart.Symbol.toUpperCase();if(this.IsHScreen){this.Canvas.save();var n=this.GetLeft()+this.Height,o=this.GetTop();this.Canvas.translate(n,o),this.Canvas.rotate(90*Math.PI/180),a=2*u(),i=3*u()}this.Canvas.textBaseline="top",this.Canvas.textAlign="left",this.Canvas.font=this.Font[0];var s=this.Canvas.measureText("擎: ").width,l=t.DateTime.split(" ");if(l&&2==l.length){var h=Ht.FormatDateString(l[0]);this.Canvas.fillStyle=this.TitleColor,this.Canvas.fillText(h,a,i),i+=this.LineHeight,h=Ht.FormatTimeString(l[1]),this.Canvas.fillText(h,a,i)}var c=t.Close,d=(t.Increase,t.Vol),f=t.Amount;t.Before&&(c=t.Before.Close,t.Before.Increase,d=t.Before.Vol,f=t.Before.Amount),i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,h=zi.GetText("Tooltip-Price",this.LanguageID),this.Canvas.fillText(h,a,i);var C=this.KLineTitlePaint.GetColor(c,this.YClose),h=c.toFixed(e);this.Canvas.fillStyle=C,this.Canvas.fillText(h,a+s,i);var p=!0;if(t.Before?p=!1:Ji.IsForeignExchange(r)?p=!1:Ji.IsET(r)&&!Ji.IsETShowAvPrice(r)&&(p=!1),p&&Ht.IsNumber(t.AvPrice)){i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,h=zi.GetText("Tooltip-AvPrice",this.LanguageID),this.Canvas.fillText(h,a,i);var C=this.KLineTitlePaint.GetColor(t.AvPrice,this.YClose),h=t.AvPrice.toFixed(e);this.Canvas.fillStyle=C,this.Canvas.fillText(h,a+s,i)}i+=this.LineHeight,this.Canvas.fillStyle=this.TitleColor,h=zi.GetText("Tooltip-Increase",this.LanguageID),this.Canvas.fillText(h,a,i);var D=(c-this.YClose)/this.YClose*100,C=this.KLineTitlePaint.GetColor(D,0),h=D.toFixed(2)+"%";if(this.Canvas.fillStyle=C,this.Canvas.fillText(h,a+s,i),Ht.IsNumber(d)){this.Canvas.fillStyle=this.TitleColor,i+=this.LineHeight,h=zi.GetText("Tooltip-Vol",this.LanguageID),this.Canvas.fillText(h,a,i);var h=Ht.FromatIntegerString(d,2,this.LanguageID);this.Canvas.fillText(h,a+s,i)}if(Ht.IsNumber(f)){i+=this.LineHeight,h=zi.GetText("Tooltip-Amount",this.LanguageID),this.Canvas.fillText(h,a,i);var h=Ht.FormatValueString(f,2,this.LanguageID);this.Canvas.fillText(h,a+s,i)}if(Ht.IsNumber(t.Position)){i+=this.LineHeight,h=zi.GetText("Tooltip-Position",this.LanguageID),this.Canvas.fillText(h,a,i);var h=Ht.FormatValueString(t.Position,2,this.LanguageID);this.Canvas.fillText(h,a+s,i)}this.IsHScreen&&this.Canvas.restore()}}function Ot(){this.newMethod=Mt,this.newMethod(),delete this.newMethod,this.Left=80,this.Right=1,this.Top=1,this.Bottom=1,this.BorderColor=Xi.FrameBorderPen,this.Symbol,this.Name,this.TitleFont=["14px 微软雅黑"],this.Draw=function(){var t=this.ChartBorder.GetRight()+this.Left,e=this.ChartBorder.GetChartWidth()-this.Right,a=this.Top+18,i=t+(e-t)/2;this.Symbol&&this.Name&&(this.Canvas.font=this.TitleFont[0],this.Canvas.textAlign="right",this.Canvas.textBaseline="bottom",this.Canvas.fillText(this.Symbol,i-2,a),this.Canvas.textAlign="left",this.Canvas.fillText(this.Name,i+2,a)),this.Canvas.strokeStyle=this.BorderColor,this.Canvas.moveTo(t,a),this.Canvas.lineTo(e,a),this.Canvas.stroke(),a+=30,this.DrawBorder()},this.DrawBorder=function(){var t=this.ChartBorder.GetRight()+this.Left,e=this.ChartBorder.GetChartWidth()-this.Right,a=this.Top,i=this.ChartBorder.GetChartHeight()-this.Bottom;this.Canvas.strokeStyle=this.BorderColor,this.Canvas.strokeRect(t,a,e-t,i-a)}}function _t(){this.newMethod=Mt,this.newMethod(),delete this.newMethod,this.Name="筹码分布",this.ClassName="StockChip",this.HQChart,this.PenBorder=Xi.FrameBorderPen,this.ColorProfit="rgb(255,0,0)",this.ColorNoProfit="rgb(90,141,248)",this.ColorAveragePrice="rgb(0,139,0)",this.ColorBG="rgb(190,190,190)",this.PixelRatio=u(),this.ShowType=0,this.IsDynamic=!0,this.ClientRect={},this.Font=Xi.TitleFont,this.InfoColor="rgb(0,0,0)",this.DayInfoColor="rgb(255,255,255)",this.LineHeight=16,this.Left=50*this.PixelRatio,this.IsShowX=!1,this.ShowXCount=3,this.Width=150*this.PixelRatio,this.CalculateType=0,this.ButtonID=f(),this.DAY_COLOR=[["rgb(255,0,0)","rgb(255,128,128)","rgb(255,0,128)","rgb(255,100,0)","rgb(192,128,0)","rgb(255,192,0)"],["rgb(120,80,225)","rgb(160,160,225)","rgb(80,80,255)","rgb(120,120,255)","rgb(32,64,192)","rgb(0,64,128)"]],this.SetOption=function(t){t&&(t.ShowType>0&&(this.ShowType=t.ShowType),t.IsShowX&&(this.IsShowX=t.IsShowX),t.ShowXCount>0&&(this.ShowXCount=t.ShowXCount),t.Width>100&&(this.Width=t.Width*u()),t.CalculateType>0&&(this.CalculateType=t.CalculateType))},this.Draw=function(){this.PixelRatio=u();var t=p(this.ChartBorder.GetRight()+this.Left),e=p(this.ChartBorder.GetTop()),a=p(t+this.Width-1*this.PixelRatio),i=p(this.ChartBorder.GetBottom()),r=a-t,n=i-e;this.ClientRect={Left:t,Top:e,Width:r,Height:n},this.CalculateChip()?(this.DrawFrame(),this.DrawAllChip(),1!=this.ShowType&&2!=this.ShowType||this.DrawDayChip(),this.CalculateCast(),this.DrawChipInfo()):bi.Chart.Log("[StockChip::Draw] no data"),this.DrawBorder(),1==this.SizeChange&&this.DrawButton(),this.SizeChange=!1},this.DrawChipInfo=function(){var t=this.ClientRect.Top+this.ClientRect.Height-1,e=this.ClientRect.Left+2,a=this.ClientRect.Left+this.ClientRect.Width;this.Canvas.font=this.Font,this.Canvas.fillStyle=this.InfoColor,this.Canvas.textBaseline="bottom",this.Canvas.textAlign="left";var i=this.LineHeight*u(),r="70%成本价"+this.Data.Cast[1].MinPrice.toFixed(2)+"-"+this.Data.Cast[1].MaxPrice.toFixed(2)+"集中"+this.Data.Cast[1].Rate.toFixed(2)+"%";this.Canvas.fillText(r,e,t),t-=i,r="90%成本价"+this.Data.Cast[0].MinPrice.toFixed(2)+"-"+this.Data.Cast[0].MaxPrice.toFixed(2)+"集中"+this.Data.Cast[0].Rate.toFixed(2)+"%",this.Canvas.fillText(r,e,t),t-=i,r="平均成本:"+this.Data.ChipInfo.AveragePrice.toFixed(2)+"元",this.Canvas.fillText(r,e,t),t-=i,r=+this.Data.YPrice.toFixed(2)+"处获利盘:"+this.Data.ChipInfo.YProfitRate.toFixed(2)+"%",this.Canvas.fillText(r,e,t),t-=i,r="获利比例:",this.Canvas.fillText(r,e,t);var n=this.Canvas.measureText(r).width+2,o=e+n,s=a-5-o;if(this.Canvas.strokeStyle=this.ColorNoProfit,this.Canvas.strokeRect(o,t-i,s,i),this.Canvas.strokeStyle=this.ColorProfit,this.Canvas.strokeRect(o,t-i,s*(this.Data.ChipInfo.ProfitRate/100),i),r=this.Data.ChipInfo.ProfitRate.toFixed(2)+"%",this.Canvas.textAlign="center",this.Canvas.fillText(r,o+s/2,t),t-=i,this.Canvas.textAlign="left",r="成本分布,日期:"+Ht.FormatDateString(this.Data.SelectData.Date),this.Data.SelectData.Time&&(r+=" "+Ht.FormatTimeString(this.Data.SelectData.Time)),this.Canvas.fillText(r,e,t),t-=i,1==this.ShowType||2==this.ShowType){var a=this.ClientRect.Left+this.ClientRect.Width-1;this.Canvas.textAlign="right";var n=50;this.Data.DayChip.sort(function(t,e){return e.Day-t.Day});for(var l in this.Data.DayChip){var h=this.Data.DayChip[l],c=0;this.Data.ChipInfo&&this.Data.ChipInfo.Vol>0&&(c=h.Vol/this.Data.ChipInfo.Vol*100),r=h.Day+"周期"+(1==this.ShowType?"前":"内")+"成本"+c.toFixed(2)+"%",0==l&&(n=this.Canvas.measureText(r).width+8),this.Canvas.fillStyle=h.Color,this.Canvas.fillRect(a-n,t-i,n,i),this.Canvas.fillStyle=this.DayInfoColor,this.Canvas.fillText(r,a,t),t-=i}}},this.DrawDayChip=function(){var t=this.HQChart.Frame.SubFrame[0].Frame;for(var e in this.Data.DayChip){var a=[],i=this.Data.DayChip[e].Chip;if(i){for(var r=0,n=0;n<i.length;++n){var o=i[n];if(o){r+=o;var s=(n+this.Data.MinPrice)/100,l=t.GetYFromData(s),h=o/this.Data.MaxVol*this.ClientRect.Width+this.ClientRect.Left;a.push({X:h,Y:l})}}this.Data.DayChip[e].Vol=r,this.DrawArea(a,this.Data.DayChip[e].Color)}}},this.Clear=function(){var t=document.getElementById(this.ButtonID);t&&this.ChartBorder.UIElement.parentNode.removeChild(t)},this.DrawButton=function(){var t=document.getElementById(this.ButtonID);t||(t=document.createElement("div"),t.className="klineframe-button",t.id=this.ButtonID,this.ChartBorder.UIElement.parentNode.appendChild(t));var e=this.PixelRatio,a=(this.ClientRect.Left,this.ClientRect.Left+this.ClientRect.Width),i=this.ChartBorder.GetChartWidth(),r=this.ChartBorder.GetTitleHeight(),n=this.ChartBorder.GetTop()/e,o=[{Class:"chip_default icon iconfont icon-chip_default",ID:"chip_default",Color:["#808080","#FF0000"],Title:"默认筹码分布图"},{Class:"chip_long icon iconfont icon-chip_date",ID:"chip_long",Color:["#808080","#FF8000"],Title:"远期筹码分布图"},{Class:"chip_recent icon iconfont icon-chip_date",ID:"chip_recent",Color:["#808080","#0000CC"],Title:"近期筹码分布图"}],s="";for(var l in o){var h=o[l],u="<span class='{iconclass}' id='{iconid}' title='{icontitle}' style='cursor:pointer;display:inline-block;color:{iconcolor};font-size:{iconsize}px'></span>";u=u.replace("{iconclass}",h.Class),u=u.replace("{iconid}",h.ID),u=u.replace("{iconcolor}",h.Color[l==this.ShowType?1:0]),u=u.replace("{iconsize}",r),u=u.replace("{icontitle}",h.Title),s.length>0&&(s+=" "),s+=u}t.style.right=Math.floor((i-a+2)/e)+"px",t.style.top=n+"px",t.style.height=r+"px",t.innerHTML=s;var c=this;for(var l in o){var h=o[l];(0,Ai.default)("#"+this.ButtonID+" ."+h.ID).click({IconID:h.ID,ShowType:l},function(t){var e=(t.data.IconID,t.data.ShowType);c.ShowType=e,c.HQChart&&c.HQChart.Draw();for(var a in o){var i=o[a];(0,Ai.default)("#"+c.ButtonID+" ."+i.ID)[0].style.color=i.Color[a==e?1:0]}})}},this.DrawAllChip=function(){for(var t=this.HQChart.Frame.SubFrame[0].Frame,e=this.Data.SelectData.Close,a=[],i=[],r=0,n=0,o=0,s=0,l=this.Data.YPrice,h=t.HorizontalMax,u=t.HorizontalMin,c=1,d=0;d<this.Data.AllChip.length;++d){var f=this.Data.AllChip[d];if(f){var C=(d+this.Data.MinPrice)/100;r+=f,n+=C*f,C<l&&(s+=f),C<e&&(o+=f),C<=h&&C>=u&&c<f&&(c=f)}}this.Data.MaxVol=c;for(var d=0;d<this.Data.AllChip.length;++d){var f=this.Data.AllChip[d];if(f){var C=(d+this.Data.MinPrice)/100;if(!(C>h||C<u)){var p=t.GetYFromData(C),D=f/this.Data.MaxVol*this.ClientRect.Width+this.ClientRect.Left;C<e?a.push({X:D,Y:p}):i.push({X:D,Y:p})}}}if(this.Data.ChipInfo={Vol:r,AveragePrice:n/r,ProfitVol:o,ProfitRate:r>0?o/r*100:0,YProfitRate:r>0?s/r*100:0},0==this.ShowType){this.DrawLines(a,this.ColorProfit),this.DrawLines(i,this.ColorNoProfit);var m=this.Data.ChipInfo.AveragePrice;m>0&&m<=h&&m>=u&&(m=m.toFixed(2),this.DrawAveragePriceLine(a,i,t.GetYFromData(m),this.ColorAveragePrice))}else this.DrawLines(a,this.ColorBG),this.DrawLines(i,this.ColorBG)},this.CalculateCast=function(){if(this.Data.ChipInfo&&this.Data.ChipInfo.Vol){for(var t=[{Start:.05,End:.95,MaxPrice:0,MinPrice:0,Rate:0},{Start:.15,End:.85,MaxPrice:0,MinPrice:0,Rate:0}],e=(this.Data.ChipInfo.AveragePrice,this.Data.ChipInfo.ProfitVol),a=0,i=0,r=0;i<this.Data.AllChip.length&&4!=r;++i){var n=this.Data.AllChip[i];if(!(n<=0)){var o=(i+this.Data.MinPrice)/100;a+=n;var s=a/e;for(var l in t){var h=t[l];h.MinPrice<=0&&s>h.Start&&(h.MinPrice=o,++r),h.MaxPrice<=0&&s>h.End&&(h.MaxPrice=o,++r)}}}for(var i in t){var u=t[i],c=u.MaxPrice+u.MinPrice;c&&(u.Rate=Math.abs(u.MaxPrice-u.MinPrice)/c*100)}this.Data.Cast=t}},this.DrawArea=function(t,e){if(!(t.length<=0)){this.Canvas.fillStyle=e,this.Canvas.beginPath(),this.Canvas.moveTo(this.ClientRect.Left,t[0].Y);for(var a in t){var i=t[a];this.Canvas.lineTo(i.X,i.Y)}this.Canvas.lineTo(this.ClientRect.Left,t[t.length-1].Y),this.Canvas.fill()}},this.DrawLines=function(t,e){if(!(t.length<=0)){this.Canvas.strokeStyle=e,this.Canvas.beginPath();for(var a in t){var i=t[a];this.Canvas.moveTo(this.ClientRect.Left,i.Y),this.Canvas.lineTo(i.X,i.Y)}this.Canvas.stroke()}},this.DrawAveragePriceLine=function(t,e,a,i){for(var r in t){var n=t[r];if(n.Y==a)return this.Canvas.strokeStyle=i,this.Canvas.beginPath(),this.Canvas.moveTo(this.ClientRect.Left,n.Y),this.Canvas.lineTo(n.X,n.Y),void this.Canvas.stroke()}for(var r in e){var n=e[r];if(n.Y==a)return this.Canvas.strokeStyle=i,this.Canvas.beginPath(),this.Canvas.moveTo(this.ClientRect.Left,n.Y),this.Canvas.lineTo(n.X,n.Y),void this.Canvas.stroke()}},this.DrawBorder=function(){this.Canvas.strokeStyle=this.PenBorder,this.Canvas.strokeRect(this.ClientRect.Left,this.ClientRect.Top,this.ClientRect.Width,this.ClientRect.Height)},this.EvenlyDistribute=function(t,e){for(var a=e.Low,i=e.High,r=e.MaxPrice,n=e.MinPrice,o=1,s=e.Vol/(i-a),l=a;l<=i&&l<=r;++l){var h=l-n;t[h]+=s,o<t[h]&&(o=t[h])}e.MaxVol=o},this.TriangleDistribute=function(t,e){for(var a=e.Low,i=e.High,r=(e.MaxPrice,e.MinPrice),n=1,o=3.1415926535,s=(i-a)/2+a,l=0,h=[],u=a+1,c=1;u<=s;++u,++c){var d=Math.tan(45*o/180)*c;l+=d,h.push({Index:u-r,Value:d})}for(var u=i-1,c=1;u>s;--u,++c){var d=Math.tan(45*o/180)*c;l+=d,h.push({Index:u-r,Value:d})}if(l>0){for(var u=0;u<h.length;++u){var f=h[u];t[f.Index]+=f.Value*e.Vol/l,n<t[f.Index]&&(n=t[f.Index])}e.MaxVol=n}},this.CalculateDistribute=function(t,e){1==this.CalculateType?this.TriangleDistribute(t,e):this.EvenlyDistribute(t,e)},this.CalculateChip=function(){if(!this.HQChart)return!1;if(!this.HQChart.FlowCapitalReady)return!1;var t=this.HQChart.Symbol;if(!t)return!1;if(Ji.IsSHSZIndex(t))return!1;var e=this.HQChart.ChartPaint[0].Data,a=e.DataOffset+parseInt(this.HQChart.CursorIndex);a>=e.Data.length&&(a=e.Data.length-1);var i=e.Data[a],r=i.Close,n=this.HQChart.LastPoint.Y;n&&(r=this.HQChart.Frame.SubFrame[0].Frame.GetYData(n));for(var o,s,l,h=[],u=1,c=a;c>=0;--c){var d=e.Data[c],f=1;d.FlowCapital>0&&(f=d.Vol/d.FlowCapital),o=c==a?d.Vol*f:d.Vol*u;var C={Vol:o,High:d.High,Low:d.Low};h.push(C),u*=1-1*f,(!s||s<d.High)&&(s=d.High),(!l||l>d.Low)&&(l=d.Low)}if(!s||!l)return!0;s=parseInt(100*s),l=parseInt(100*l);for(var p=s-l,D=new Array,m=0;m<=p;++m)D.push(0);var v,g=[];if(2==this.ShowType){var g=[{Day:100,Color:this.DAY_COLOR[1][5]},{Day:60,Color:this.DAY_COLOR[1][4]},{Day:30,Color:this.DAY_COLOR[1][3]},{Day:20,Color:this.DAY_COLOR[1][2]},{Day:10,Color:this.DAY_COLOR[1][1]},{Day:5,Color:this.DAY_COLOR[1][0]}];for(var S in h){var d=h[S],I=parseInt(100*d.High),x=parseInt(100*d.Low),T=d.Vol;if(I-x>0&&(T=d.Vol/(I-x)),!(T<=1e-9)){for(var A=0;A<g.length;++A)if(S==g[A].Day){g[A].Chip=D.slice(0);break}v={Low:x,High:I,Vol:d.Vol,MaxPrice:s,MinPrice:l},this.CalculateDistribute(D,v)}}}else if(1==this.ShowType)for(var g=[{Day:5,Color:this.DAY_COLOR[0][0]},{Day:10,Color:this.DAY_COLOR[0][1]},{Day:20,Color:this.DAY_COLOR[0][2]},{Day:30,Color:this.DAY_COLOR[0][3]},{Day:60,Color:this.DAY_COLOR[0][4]},{Day:100,Color:this.DAY_COLOR[0][5]}],b=h.length-1;b>=0;--b){var d=h[b],I=parseInt(100*d.High),x=parseInt(100*d.Low),T=d.Vol;if(I-x>0&&(T=d.Vol/(I-x)),!(T<=1e-9)){for(var A=0;A<g.length;++A)if(b==g[A].Day){g[A].Chip=D.slice(0);break}v={Low:x,High:I,Vol:d.Vol,MaxPrice:s,MinPrice:l},this.CalculateDistribute(D,v)}}else for(var E in h){var d=h[E],I=parseInt(100*d.High),x=parseInt(100*d.Low),T=d.Vol;I-x>0&&(T=d.Vol/(I-x)),T<=1e-9||(v={Low:x,High:I,Vol:d.Vol,MaxPrice:s,MinPrice:l},this.CalculateDistribute(D,v))}return this.Data={AllChip:D,MaxVol:v.MaxVol,MaxPrice:s,MinPrice:l,SelectData:i,DayChip:g,YPrice:r},!0},this.DrawFrame=function(){if(0!=this.IsShowX&&!(this.Data.MaxVol<=0)){var t=1!==this.HQChart.Frame.SubFrame.length,e=this.HQChart.Frame.SubFrame[0].Frame,a=e.ChartBorder,r=p(a.GetBottomEx()+1);t||(r=this.ClientRect.Top+this.ClientRect.Height);var n=this.ClientRect.Left,o=n+this.ClientRect.Width;this.Canvas.strokeStyle=this.PenBorder,this.Canvas.beginPath(),t&&(this.Canvas.moveTo(n,r),this.Canvas.lineTo(o,r));var s=this.ShowXCount,l=this.Data.MaxVol,h=Math.floor(l/s);this.Canvas.font=this.Font,this.Canvas.textBaseline="top",this.Canvas.fillStyle=this.InfoColor;u();for(i=1;i<=s;++i){var c=h*i,d=c/this.Data.MaxVol*this.ClientRect.Width+this.ClientRect.Left;if(d=p(d),i==s){this.Canvas.textAlign="right";var f=Ht.FormatValueString(l,1);this.Canvas.fillText(f,d,r+2)}else{this.Canvas.moveTo(d,this.ClientRect.Top),this.Canvas.lineTo(d,r),this.Canvas.textAlign="center";var f=Ht.FormatValueString(c,1),C=this.Canvas.measureText(f).width;this.Canvas.fillText(f,Math.floor(d-.25*C),r+2)}}this.Canvas.stroke()}}}function Rt(){this.newMethod=Mt,this.newMethod(),delete this.newMethod,this.ClassName="DrawToolsButton",this.HQChart,this.ID=f(),this.ToolsDiv,this.Color="#696969",this.Top=5*u(),this.Width=45*u(),this.SetOption=function(t){var e=u();t&&t.Width>10&&(this.Width=t.Width*e)},this.Clear=function(){this.ToolsDiv&&this.ChartBorder.UIElement.parentNode.removeChild(this.ToolsDiv)},this.Draw=function(){var t=this;if(0!=this.SizeChange){var e=[[{HTML:{Title:"线段",IClass:"iconfont icon-draw_line",ID:"icon-segment"},Name:"线段"},{HTML:{Title:"射线",IClass:"iconfont icon-draw_rays",ID:"icon-beam"},Name:"射线"},{HTML:{Title:"趋势线",IClass:"iconfont icon-draw_trendline",ID:"icon-trendline"},Name:"趋势线"},{HTML:{Title:"水平线",IClass:"iconfont icon-draw_hline",ID:"icon-hline"},Name:"水平线"},{HTML:{Title:"平行线",IClass:"iconfont icon-draw_parallel_lines",ID:"icon-parallellines"},Name:"平行线"},{HTML:{Title:"平行通道",IClass:"iconfont icon-draw_parallelchannel",ID:"icon-parallelchannel"},Name:"平行通道"},{HTML:{Title:"价格通道线",IClass:"iconfont icon-draw_pricechannel",ID:"icon-pricechannel"},Name:"价格通道线"},{HTML:{Title:"M头W底",IClass:"iconfont icon-draw_wavemw",ID:"icon-wavemw"},Name:"M头W底"}],[{HTML:{Title:"圆弧",IClass:"iconfont icon-draw_arc",ID:"icon-arc"},Name:"圆弧线"},{HTML:{Title:"矩形",IClass:"iconfont icon-rectangle",ID:"icon-rect"},Name:"矩形"},{HTML:{Title:"平行四边形",IClass:"iconfont icon-draw_quadrangle",ID:"icon-quad"},Name:"平行四边形"},{HTML:{Title:"三角形",IClass:"iconfont icon-draw_triangle",ID:"icon-triangle"},Name:"三角形"},{HTML:{Title:"圆",IClass:"iconfont icon-draw_circle",ID:"icon-circle"},Name:"圆"},{HTML:{Title:"对称角度",IClass:"iconfont icon-draw_symangle",ID:"icon-symangle"},Name:"对称角度"}],[{HTML:{Title:"文本",IClass:"iconfont icon-draw_text",ID:"icon-text"},Name:"文本"},{HTML:{Title:"向上箭头",IClass:"iconfont icon-arrow_up",ID:"icon-arrowup"},Name:"icon-arrow_up"},{HTML:{Title:"向下箭头",IClass:"iconfont icon-arrow_down",ID:"icon-arrowdown"},Name:"icon-arrow_down"},{HTML:{Title:"向左箭头",IClass:"iconfont icon-arrow_left",ID:"icon-arrowleft"},Name:"icon-arrow_left"},{HTML:{Title:"向右箭头",IClass:"iconfont icon-arrow_right",ID:"icon-arrowright"},Name:"icon-arrow_right"}],[{HTML:{Title:"江恩角度线",IClass:"iconfont icon-draw_gannfan",ID:"icon-gannfan"},Name:"江恩角度线"},{HTML:{Title:"斐波那契周期线",IClass:"iconfont icon-draw_fibonacci",ID:"icon-fibonacci"},Name:"斐波那契周期线"},{HTML:{Title:"阻速线",IClass:"iconfont icon-draw_resline",ID:"icon-resline"},Name:"阻速线"},{HTML:{Title:"黄金分割",IClass:"iconfont icon-draw_goldensection",ID:"icon-goldensection"},Name:"黄金分割"},{HTML:{Title:"百分比线",IClass:"iconfont icon-draw_percentage",ID:"icon-percentage"},Name:"百分比线"},{HTML:{Title:"波段线",IClass:"iconfont icon-draw_waveband",ID:"icon-waveband"},Name:"波段线"}],[{HTML:{Title:"全部删除",IClass:"iconfont icon-recycle_bin",ID:"icon-delete"},Name:"全部删除"}]],a=this.HQChart;if(!this.ToolsDiv){var i=document.createElement("div");i.className="drawtools",i.id=this.ID;var r="",n="",o=new Array;e.forEach(function(t,e){o.push(t[0])});for(var s=0;s<e.length;s++){for(var l=o[s],h=e[s],c="",d="",f=0;f<h.length;f++){var D=h[f],m=D.Name;m.indexOf("up")>-1?m="向上箭头":m.indexOf("down")>-1?m="向下箭头":m.indexOf("left")>-1?m="向左箭头":m.indexOf("right")>-1&&(m="向右箭头"),c+='<p class="menuTwoItem '+D.HTML.ID+'">'+m+'<i class="'+D.HTML.IClass+'" title="'+D.HTML.Title+'"></i></p>'}s!==e.length-1?(n='<div class="menuTwo">'+c+"</div>",d='<i class="contentArrow iconfont icon-menu_arraw_left"></i>'):(n="",d="");r+='<div class="icon-image first-'+l.HTML.ID+'"><i class="'+l.HTML.IClass+'" title="'+l.HTML.Title+'"></i>'+n+d+"</div>"}this.ChartBorder.UIElement.parentNode.appendChild(i),i.innerHTML=r,this.ToolsDiv=i;for(var s in e){var v=e[s][0];if((0,Ai.default)("#"+this.ID+" .first-"+v.HTML.ID).hover(function(){(0,Ai.default)(".drawtools").find(".contentArrow").hide(),(0,Ai.default)(this).find(".contentArrow").removeClass("trans").show()}),(0,Ai.default)("#"+this.ID+" .first-"+v.HTML.ID+" .contentArrow").click(function(t){t.stopPropagation(),(0,Ai.default)(".drawtools").find(".menuTwo").hide(),(0,Ai.default)(this).siblings(".menuTwo").show()}),(0,Ai.default)("#"+this.ID+" .first-"+v.HTML.ID+" .trans").click(function(){event.stopPropagation(),(0,Ai.default)(this).siblings(".menuTwo").hide()}),"全部删除"==v.Name)(0,Ai.default)("#"+this.ID+" .first-icon-delete").click(function(){(0,Ai.default)(".drawtools").find(".menuTwo").hide(),(0,Ai.default)(this).siblings().removeClass("active"),(0,Ai.default)(this).addClass("active"),a.ClearChartDrawPicture(),(0,Ai.default)(".subTolls").css("display","none")});else{(0,Ai.default)("#"+this.ID+" .first-"+o[s].HTML.ID).click({CurrentIndex:s},function(t){(0,Ai.default)(".drawtools").find(".menuTwo").hide(),(0,Ai.default)(this).siblings().removeClass("active"),(0,Ai.default)(this).addClass("active"),a.CreateChartDrawPicture(o[t.data.CurrentIndex].Name)});for(var f in e[s]){var g;!function(){g=e[s][f];var i=g.HTML.IClass;(0,Ai.default)("#"+t.ID+" ."+g.HTML.ID).hover(function(t){t.stopPropagation(),(0,Ai.default)(this).closest(".icon-image").find(".contentArrow").addClass("trans")}),(0,Ai.default)("#"+t.ID+" ."+g.HTML.ID).click({DrawName:g.Name,CurrentIndex:s,CurrentData:g},function(t){t.stopPropagation(),(0,Ai.default)(this).closest(".icon-image").find(".contentArrow").hide(),(0,Ai.default)(this).siblings().removeClass("current"),(0,Ai.default)(this).addClass("current"),(0,Ai.default)(this).closest(".icon-image").children("i").eq(0).removeClass().addClass(i,"active").attr("title",t.data.CurrentData.HTML.Title),o.splice(t.data.CurrentIndex,1,t.data.CurrentData),(0,Ai.default)(this).parent().hide(),a.CreateChartDrawPicture(t.data.DrawName)})}()}}}}var S=this.ID;(0,Ai.default)(document).click(function(t){(0,Ai.default)("#"+S).is(t.target)||0!==(0,Ai.default)("#"+S).has(t.target).length||((0,Ai.default)("#"+S+" .menuTwo").hide(),(0,Ai.default)("#"+S+" .contentArrow").hide())});var I=(C(),u()),x=p(this.ChartBorder.GetRight()+this.Left),T=this.ChartBorder.GetTop();this.ToolsDiv.style.left=x/I+"px",this.ToolsDiv.style.top=T/I+"px",this.ToolsDiv.style.width=(this.Width-5)/I+"px",this.ToolsDiv.style.height="auto",this.ToolsDiv.style.position="absolute",this.ToolsDiv.style.display="block",this.SizeChange}}}function Pt(){this.newMethod=Mt,this.newMethod(),delete this.newMethod,this.ClassName="DepthMapPaint",this.LineColor="rgba(0,139,0,0.6)",this.AreaColor=["rgba(0,139,0,0.5)","rgba(0,139,0,0.4)","rgba(0,139,0,0.3)","rgba(0,139,0,0.2)"],this.TextColor="rgba(0,0,0)",this.TextBGColor="rgba(0,139,0)",this.Width=200*u(),this.FrameID=0,this.ID=f(),this.IsDynamic=!1,this.IsCallbackDraw=!0,this.YRange,this.SetOption=function(t){t.FrameID>0&&(this.FrameID=t.FrameID),t.Width>0&&(this.Width=t.Width),Ht.IsObjectExist(t.ID)&&(this.ID=t.ID),t.IsShowCorssCursor&&(this.IsShowCorssCursor=t.IsShowCorssCursor)},this.Draw=function(){if(this.Data&&this.ChartFrame&&this.ChartFrame.SubFrame&&!(this.ChartFrame.SubFrame.length<=this.FrameID)){var t=!0===this.ChartFrame.IsHScreen,e=this.ChartFrame.SubFrame[this.FrameID].Frame,a=e.ChartBorder,i=a.GetHeightEx(),r=a.GetRight(),n=a.GetTopEx(),o=a.GetBottomEx(),s=this.Width;if(s>this.ChartBorder.Right&&(s=this.ChartBorder.Right),t){r=a.GetBottom(),n=a.GetRight(),o=a.GetLeft();var s=this.Width;s>this.ChartBorder.Bottom&&(s=this.ChartBorder.Bottom)}var l={Left:r,Top:n,Right:r+s,Bottom:o,Height:i,Width:s};this.YRange={Max:null,Min:0};for(var h in this.Data){var u=this.Data[h];this.CalculateYRange(u,this.YRange)}for(var h in this.Data){var u=this.Data[h];u.Height>0&&u.Height<=1?l.Height=i*u.Height:l.Height=i,1==u.Type?(l.Top=n,l.Bottom=n+l.Height,this.DrawUpArea(u,l)):2==u.Type?(l.Bottom=o,l.Top=l.Bottom-l.Height,this.DrawDownArea(u,l)):(l.Top=n,l.Bottom=o,this.DrawDefaultArea(u,l))}}},this.CalculateYRange=function(t,e){for(var a in t.Data){var i=t.Data[a];(null==e.Max||e.Max<i.Y)&&(e.Max=i.Y),(null==e.Min||e.Min>i.Y)&&(e.Min=i.Y)}},this.GetXFromData=function(t,e,a){var i=e.Width*(t-a.Min)/(a.Max-a.Min);return e.Left+i},this.GetYFromData=function(t,e,a,i){if(i){var r=e.Height*(t-a.Min)/(a.Max-a.Min);return e.Bottom-r}var r=e.Height*(t-a.Min)/(a.Max-a.Min);return e.Top+r},this.DrawDefaultArea=function(t,e){var a=this.ChartFrame.SubFrame[this.FrameID].Frame,i=t.Range&&t.Range.Y?t.Range.Y:this.YRange,r=[];for(var n in t.Data){var o=t.Data[n],s=this.GetXFromData(o.Y,e,i);if(!(o.X>a.HorizontalMax||o.X<a.HorizontalMin)){var l=a.GetYFromData(o.X);r.push({X:s,Y:l})}}var h=t.LineColor?t.LineColor:this.LineColor,u=t.AreaColor?t.AreaColor:this.AreaColor;r.length>0&&this.DrawLine(r,h,u,e)},this.DrawUpArea=function(t,e){var a=[];for(var i in t.Data){var r=t.Data[i],n=this.GetXFromData(r.Y,e,t.Range.Y),o=this.GetYFromData(r.X,e,t.Range.X,t.IsASC);a.push({X:n,Y:o})}var s=t.LineColor?t.LineColor:this.LineColor,l=t.AreaColor?t.AreaColor:this.AreaColor;a.length>0&&this.DrawLine(a,s,l,e)},this.DrawDownArea=function(t,e){var a=[];for(var i in t.Data){var r=t.Data[i],n=this.GetXFromData(r.Y,e,t.Range.Y),o=this.GetYFromData(r.X,e,t.Range.X,t.IsASC);a.push({X:n,Y:o})}var s=t.LineColor?t.LineColor:this.LineColor,l=t.AreaColor?t.AreaColor:this.AreaColor;a.length>0&&this.DrawLine(a,s,l,e)},this.DrawLine=function(t,e,a,i){var r=!0===this.ChartFrame.IsHScreen,n=!0,o=0;this.Canvas.strokeStyle=e;for(var s in t){var l=t[s];n?(this.Canvas.beginPath(),r?this.Canvas.moveTo(l.Y,l.X):this.Canvas.moveTo(l.X,l.Y),n=!1):r?this.Canvas.lineTo(l.Y,l.X):this.Canvas.lineTo(l.X,l.Y),++o}o>0&&this.Canvas.stroke();var h=t[0],u=t[t.length-1];if(r?(this.Canvas.lineTo(u.Y,i.Left),this.Canvas.lineTo(h.Y,i.Left)):(this.Canvas.lineTo(i.Left,u.Y),this.Canvas.lineTo(i.Left,h.Y)),this.Canvas.closePath(),Array.isArray(a))if(r){var c=this.Canvas.createLinearGradient(this.ChartBorder.GetRightEx(),this.ChartBorder.GetTop(),this.ChartBorder.GetLeft(),this.ChartBorder.GetTop());c.addColorStop(0,a[0]),c.addColorStop(1,a[1]),this.Canvas.fillStyle=c}else{var d=this.Canvas.createLinearGradient(i.Right,i.Top,i.Left,i.Top),f=1/a.length;for(var s in a)d.addColorStop(s*f,a[s]);this.Canvas.fillStyle=d}else this.Canvas.fillStyle=a;this.Canvas.fill()},this.GetYValueByXValue=function(t,e){var a=[],i=Vi[e];for(var r in this.Data){var n=this.Data[r];if(0==n.Type&&n.Data&&!(n.Data.length<0)&&0!=n.IsShowCorssCursor){var o=!1;for(var s in n.Data){var l=n.Data[s];if(parseInt(l.X*i)==t){o=!0;var h={X:l.X,Y:l.Y,TextColor:n.TextColor?n.TextColor:this.TextColor,TextBGColor:n.TextBGColor?n.TextBGColor:this.TextBGColor};l.YText&&(h.YText=l.YText),a.push(h);break}}if(!o){var u=n.Data[0],c=n.Data[n.Data.length-1];t>u.X*i&&t<c.X*i&&a.push({X:null,Y:null,TextColor:n.TextColor?n.TextColor:this.TextColor,TextBGColor:n.TextBGColor?n.TextBGColor:this.TextBGColor})}}}return a}}function Bt(){this.PlayList=[],this.Cache=[],this.MinLineHeight=40*u(),this.Height,this.Step=1,this.GetPlayList=function(t){for(var e=t.Canves,a=t.Right,i=t.Left,r=a-i,n=t.IsMoveStep,o=[],s=0,l=0;l<this.PlayList.length;++l){var h=this.PlayList[l],u=this.MinLineHeight;h.Height>this.MinLineHeight&&(u=h.Height);for(var c=!0,d=!1,f=0;f<h.Data.length;++f){var C=h.Data[f],p={X:C.X,Y:s,Text:C.Text,Color:C.Color,Height:u,Font:C.Font,Info:C.Info};o.push(p),n&&(f==h.Data.length-1&&this.Cache.length>0?(c=!1,C.TextWidth||(C.Font&&C.Font.Name?e.font=C.Font.Name:e.font=t.Font,C.TextWidth=e.measureText(p.Text+"擎擎").width),C.X>=C.TextWidth&&(c=!0)):0==f&&(d=!1,C.TextWidth||(C.Font&&C.Font.Name?e.font=C.Font.Name:e.font=t.Font,C.TextWidth=e.measureText(p.Text+"擎擎").width),C.X>r+C.TextWidth&&(d=!0)),C.X+=this.Step)}if(n&&c&&this.Cache.length>0){var D=this.Cache.shift(),m={X:0,Text:D.Text,Color:D.Color,Font:D.Font,Info:D.Info};h.Data.push(m)}if(n&&d&&h.Data.length>0){var v=h.Data.shift();this.OnItemPlayEnd(t.HQChart,v)}s+=u}return o},this.CacluatePlayLine=function(t){this.Height=t;var e=parseInt(t/this.MinLineHeight);if(this.PlayList.length<e)for(var a=e-this.PlayList.length,i=0;i<a;++i)this.PlayList.push({Data:[]});else if(this.PlayList.length>e)for(var r=this.PlayList.length-e,i=0;i<r;++i)for(var n=this.PlayList.pop(),o=0;o<n.Data.length;++o){var s=n.Data[o],l={Text:s.Text,Color:s.Color,Font:s.Font,Info:s.Info};this.Cache.unshift(l)}bi.Chart.Log("[BarrageList::CacluatePlayLine] LineCount="+this.PlayList.length+" Height="+this.Height)},this.AddBarrage=function(t){for(var e in t){var a=t[e];this.Cache.push(a)}},this.OnItemPlayEnd=function(t,e){if(t.mapEvent.has(yi.BARRAGE_PLAY_END)){var a=t.mapEvent.get(yi.BARRAGE_PLAY_END);a.Callback&&a.Callback(a,e,this)}},this.Count=function(){return this.Cache.length}}function kt(){this.newMethod=Mt,this.newMethod(),delete this.newMethod,this.ClassName="BarragePaint",this.IsAnimation=!0,this.IsEraseBG=!0,this.HQChart,this.Font=Xi.Barrage.Font,this.TextColor=Xi.Barrage.Color,this.FontHeight=Xi.Barrage.Height,this.BarrageList=new Bt,this.IsMoveStep=!1,this.SetOption=function(t){t&&(t.Step>0&&(this.BarrageList.Step=t.Step),t.MinLineHeight&&(this.Barrage.MinLineHeight=t.MinLineHeight))},this.DrawHScreen=function(){var t=this.ChartBorder.GetWidth(),e=this.ChartBorder.GetTop(),a=this.ChartBorder.GetBottom(),i=this.ChartBorder.GetRightEx();this.ChartBorder.GetChartWidth();t!=this.BarrageList.Height&&this.BarrageList.CacluatePlayLine(t),this.Canvas.textBaseline="middle",this.Canvas.textAlign="left";var r=this.BarrageList.GetPlayList({Canves:this.Canvas,Right:a,Left:e,Font:this.Font,IsMoveStep:this.IsMoveStep,HQChart:this.HQChart});if(this.IsMoveStep=!1,r){this.Canvas.save(),this.Canvas.translate(this.ChartBorder.GetChartHeight(),0),this.Canvas.rotate(90*Math.PI/180);for(var n=0;n<r.length;++n){var o=r[n];o.Color?this.Canvas.fillStyle=o.Color:this.Canvas.fillStyle=this.TextColor,o.Font?this.Canvas.font=o.Font.Name:this.Canvas.font=this.Font;var s=this.FontHeight;o.Font&&o.Font.Height>0&&(s=o.Font.Height);var l=o.Y+parseInt((o.Height-s)/2);this.Canvas.fillText(o.Text,a-o.X,i+l)}this.Canvas.restore()}},this.Draw=function(){if(this.ChartFrame.IsHScreen)return void this.DrawHScreen();var t=this.ChartBorder.GetLeft(),e=this.ChartBorder.GetRight(),a=this.ChartBorder.GetTopEx(),i=this.ChartBorder.GetHeight();i!=this.BarrageList.Height&&this.BarrageList.CacluatePlayLine(i),this.Canvas.textBaseline="middle",this.Canvas.textAlign="left";var r=this.BarrageList.GetPlayList({Canves:this.Canvas,Right:e,Left:t,Font:this.Font,IsMoveStep:this.IsMoveStep,HQChart:this.HQChart});if(this.IsMoveStep=!1,r)for(var n=0;n<r.length;++n){var o=r[n];o.Color?this.Canvas.fillStyle=o.Color:this.Canvas.fillStyle=this.TextColor,o.Font?this.Canvas.font=o.Font.Name:this.Canvas.font=this.Font;var s=this.FontHeight;o.Font&&o.Font.Height>0&&(s=o.Font.Height);var l=o.Y+parseInt((o.Height-s)/2);this.Canvas.fillText(o.Text,e-o.X,a+l)}}}function Ht(){this.ChartBorder,this.Frame,this.FrameSplitData,this.SplitCount=5,this.StringFormat=0,this.IsShowLeftText=!0,this.IsShowRightText=!0,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.IntegerCoordinateSplit=function(t){var e=this.FrameSplitData.Find(t.Interval);if(!e)return!1;if(t.Interval==e.FixInterval)return!0;var a=parseInt((t.Max/e.FixInterval+.5).toFixed(0))*e.FixInterval,i=parseInt((t.Min/e.FixInterval-.5).toFixed(0))*e.FixInterval;0==t.Min&&(i=0),i<0&&t.Min>0&&(i=0);for(var r=0,n=i;n-a<1e-8;n+=e.FixInterval)++r;return t.Interval=e.FixInterval,t.Max=a,t.Min=i,t.Count=r,!0},this.Filter=function(t,e){if(this.SplitCount<=0||t.length<=0||t.length<this.SplitCount)return t;var a=parseInt(t.length/this.SplitCount);a<=1&&(a=2);for(var i=[],r=0;r<t.length;r+=a)r+a>=t.length&&r!=t.length-1?i.push(t[t.length-1]):i.push(t[r]);if(2==this.SplitCount&&i.length>2)for(var r=1;r<i.length-1;++r){var n=i[r];n.Message[0]=null,n.Message[1]=null}if(e){for(var o=!1,r=0;r<i;++r){var n=i[r];if(Math.abs(n.Value)<1e-8){o=!0;break}}if(0==o){var s=new g;s.Value=0,s.Message[0]=null,s.Message[1]=null,i.push(s)}}return i},this.RemoveZero=function(t){var e=[!0,!0];for(var a in t){var i=t[a],r=i.Message[0];this.IsDecimalZeroEnd(r)||(e[0]=!1);var r=i.Message[1];this.IsDecimalZeroEnd(r)||(e[1]=!1)}if(0!=e[0]||0!=e[1])for(var a in t){var i=t[a];if(e[0]){var r=i.Message[0];null!=r&&("number"==typeof r&&(r=r.toString()),i.Message[0]=r.replace(/[.][0]+/g,""))}if(e[1]){var r=i.Message[1];null!=r&&("number"==typeof r&&(r=r.toString()),i.Message[1]=r.replace(/[.][0]+/g,""))}}},this.IsDecimalZeroEnd=function(t){if(null==t)return!0;if("number"==typeof t&&(t=t.toString()),"0"==t)return!0;var e=t.search(/[.]/);if(e<0)return!1;for(var a=e+1;a<t.length;++a){var i=t.charAt(a);if(i>="1"&&i<="9")return!1}return!0}}function Vt(){this.newMethod=Ht,this.newMethod(),delete this.newMethod,this.CoordinateType=0,this.Symbol,this.Data,this.FrameSplitData2,this.FloatPrecision=null,this.Period,this.KLineChart,this.Custom=[],this.SplitType=0,this.Operator=function(){var t={};t.Max=this.Frame.HorizontalMax,t.Min=this.Frame.HorizontalMin,t.Count=this.SplitCount,t.Interval=(t.Max-t.Min)/(t.Count-1);var e=u(),a=this.Frame.ChartBorder.GetChartWidth(),i=a<450*e,r=Ha(this.Symbol);i&&Ji.IsSHSZIndex(this.Symbol)&&(r=0),null!=this.FloatPrecision&&(r=this.FloatPrecision),bi.Chart.Log("[FrameSplitKLinePriceY::Operator] Max="+t.Max+" Min="+t.Min+" Count="+t.Count+" isPhoneModel="+i+" defaultfloatPrecision="+r+" ");var n=!0;if(Y.IsTickPeriod(this.Period))this.SplitTickData(t,r);else switch(this.CoordinateType){case 1:this.SplitPercentage(t,r);break;default:1==this.SplitType?(this.SplitFixed(t,r),n=!1):this.SplitDefault(t,r)}this.CustomCoordinate(r),n&&(this.Frame.HorizontalInfo=this.Filter(this.Frame.HorizontalInfo,!1)),this.Frame.HorizontalMax=t.Max,this.Frame.HorizontalMin=t.Min,bi.Chart.Log("[FrameSplitKLinePriceY::Operator] fixed . Max="+t.Max+" Min="+t.Min+" Count="+t.Count)},this.SplitTickData=function(t,e){var a=this.KLineChart.GetAllPrice();this.Frame.HorizontalInfo=[];for(var i in a){var r=a[i];this.Frame.HorizontalInfo[i]=new g,this.Frame.HorizontalInfo[i].Value=r,this.IsShowLeftText&&(this.Frame.HorizontalInfo[i].Message[0]=r.toFixed(e)),this.IsShowRightText&&(this.Frame.HorizontalInfo[i].Message[1]=r.toFixed(e))}},this.SplitPercentage=function(t,e){var a=this.GetFirstOpenPrice();t.Max=(t.Max-a)/a,t.Min=(t.Min-a)/a,t.Interval=(t.Max-t.Min)/(t.Count-1),this.IntegerCoordinateSplit2(t),this.Frame.HorizontalInfo=[];for(var i=0,r=t.Min;i<t.Count;++i,r+=t.Interval){var n=(r+1)*a;this.Frame.HorizontalInfo[i]=new g,this.Frame.HorizontalInfo[i].Value=n,this.IsShowLeftText&&(this.Frame.HorizontalInfo[i].Message[0]=n.toFixed(e)),this.IsShowRightText&&(this.Frame.HorizontalInfo[i].Message[1]=(100*r).toFixed(2)+"%")}t.Min=(1+t.Min)*a,t.Max=(1+t.Max)*a},this.SplitDefault=function(t,e){this.IntegerCoordinateSplit(t),this.Frame.HorizontalInfo=[];for(var a=0,i=t.Min;a<t.Count;++a,i+=t.Interval)this.Frame.HorizontalInfo[a]=new g,this.Frame.HorizontalInfo[a].Value=i,this.IsShowLeftText&&(this.Frame.HorizontalInfo[a].Message[0]=i.toFixed(e)),this.IsShowRightText&&(this.Frame.HorizontalInfo[a].Message[1]=i.toFixed(e))},this.SplitFixed=function(t,e){this.Frame.HorizontalInfo=[];for(var a=0,i=t.Min;a<t.Count;++a,i+=t.Interval)this.Frame.HorizontalInfo[a]=new g,this.Frame.HorizontalInfo[a].Value=i,this.IsShowLeftText&&(this.Frame.HorizontalInfo[a].Message[0]=i.toFixed(e)),this.IsShowRightText&&(this.Frame.HorizontalInfo[a].Message[1]=i.toFixed(e))},this.CustomCoordinate=function(t){this.Frame.CustomHorizontalInfo=[];for(var e in this.Custom){var a=this.Custom[e];if(0==a.Type){var i=this.GetLatestPrice(t,a);i&&this.Frame.CustomHorizontalInfo.push(i)}else 1==a.Type&&this.CustomFixedCoordinate(a)}},this.GetLatestPrice=function(t,e){if(!this.Data||!this.Data.Data)return null;if(this.Data.Data.length<=0)return null;var a=this.Data.Data[this.Data.Data.length-1],i=new g;return i.Type=0,i.Value=a.Close,i.TextColor=Xi.FrameLatestPrice.TextColor,"left"==e.Position?i.Message[0]=a.Close.toFixed(t):i.Message[1]=a.Close.toFixed(t),a.Close>a.Open?i.LineColor=Xi.FrameLatestPrice.UpBarColor:a.Close<a.Open?i.LineColor=Xi.FrameLatestPrice.DownBarColor:i.LineColor=Xi.FrameLatestPrice.UnchagneBarColor,0==e.IsShowLine&&(i.LineType=-1),i},this.GetFirstOpenPrice=function(){if(!this.Data)return null;for(var t=this.Frame.XPointCount,e=this.Data.DataOffset,a=0;e<this.Data.Data.length&&a<t;++e,++a){var i=this.Data.Data[e];if(null!=i.Open&&null!=i.High&&null!=i.Low&&null!=i.Close)return i.Open}return null},this.CustomFixedCoordinate=function(t){var e=Ha(this.Symbol);for(var a in t.Data){var i=t.Data[a],r=new g;r.Type=1,r.TextColor=i.TextColor,r.LineColor=i.Color,r.LineType=2,0==t.IsShowLine&&(r.LineType=-1),r.Value=i.Value;var n;n=i.Text?i.Text:r.Value.toFixed(e),"left"==t.Position?r.Message[0]=n:r.Message[1]=n,this.Frame.CustomHorizontalInfo.push(r)}},this.IntegerCoordinateSplit2=function(t){var e=this.FrameSplitData2.Find(t.Interval);if(!e)return!1;if(t.Interval==e.FixInterval)return!0;var a=parseInt((t.Max/e.FixInterval+.5).toFixed(0))*e.FixInterval,i=parseInt((t.Min/e.FixInterval-.5).toFixed(0))*e.FixInterval;0==t.Min&&(i=0),i<0&&t.Min>0&&(i=0);for(var r=0,n=i;n-a<1e-8;n+=e.FixInterval)++r;return t.Interval=e.FixInterval,t.Max=a,t.Min=i,t.Count=r,!0}}function Gt(){this.newMethod=Ht,this.newMethod(),delete this.newMethod,this.SplitCount=3,this.FloatPrecision=2,this.FLOATPRECISION_RANGE=[1,.1,.01,.001,1e-4],this.SplitType=0,this.GetFloatPrecision=function(t,e){if(t>this.FLOATPRECISION_RANGE[0])return e;if(e<0)return 2;for(;e<this.FLOATPRECISION_RANGE.length&&!(t>this.FLOATPRECISION_RANGE[e]);++e);return e},this.Operator=function(){var t={};if(t.Max=this.Frame.HorizontalMax,t.Min=this.Frame.HorizontalMin,this.Frame.YSpecificMaxMin?(t.Count=this.Frame.YSpecificMaxMin.Count,t.Interval=(t.Max-t.Min)/(t.Count-1)):1==this.SplitType?(t.Count=this.SplitCount,t.Interval=(t.Max-t.Min)/(t.Count-1)):(t.Count=this.SplitCount,t.Interval=(t.Max-t.Min)/(t.Count-1),this.IntegerCoordinateSplit(t)),this.Frame.HorizontalInfo=[],this.Frame.YSplitScale)for(var e in this.Frame.YSplitScale){var a=this.Frame.YSplitScale[e],i=new g;i.Value=a;var r=Math.abs(a);if(r<1e-10)i.Message[1]=0;else if(r<this.FLOATPRECISION_RANGE[this.FLOATPRECISION_RANGE.length-1])i.Message[1]=a.toExponential(2).toString();else{var n=this.GetFloatPrecision(r,this.FloatPrecision);i.Message[1]=Ht.FormatValueString(a,n,this.LanguageID)}i.Message[0]=i.Message[1],0==this.IsShowLeftText&&(this.Frame.HorizontalInfo[e].Message[0]=null),0==this.IsShowRightText&&(this.Frame.HorizontalInfo[e].Message[1]=null),this.Frame.HorizontalInfo.push(i)}else for(var e=0,a=t.Min;e<t.Count;++e,a+=t.Interval){if(this.Frame.HorizontalInfo[e]=new g,this.Frame.HorizontalInfo[e].Value=a,1==this.StringFormat){var n=this.FloatPrecision;!isNaN(a)&&Math.abs(a)>1e3&&(n=0),this.Frame.HorizontalInfo[e].Message[1]=Ht.FormatValueString(a,n,this.LanguageID)}else{var r=Math.abs(a);if(r<1e-10)this.Frame.HorizontalInfo[e].Message[1]=0;else if(r<this.FLOATPRECISION_RANGE[this.FLOATPRECISION_RANGE.length-1])this.Frame.HorizontalInfo[e].Message[1]=a.toExponential(2).toString();else{var n=this.GetFloatPrecision(r,this.FloatPrecision);this.Frame.HorizontalInfo[e].Message[1]=Ht.FormatValueString(a,n,this.LanguageID)}}this.Frame.HorizontalInfo[e].Message[0]=this.Frame.HorizontalInfo[e].Message[1],0==this.IsShowLeftText&&(this.Frame.HorizontalInfo[e].Message[0]=null),0==this.IsShowRightText&&(this.Frame.HorizontalInfo[e].Message[1]=null)}1!=this.SplitType&&(this.Frame.HorizontalInfo=this.Filter(this.Frame.HorizontalInfo,t.Max>0&&t.Min<0)),this.RemoveZero(this.Frame.HorizontalInfo),this.Frame.HorizontalMax=t.Max,this.Frame.HorizontalMin=t.Min,this.RightFrameSplitY()},this.RightFrameSplitY=function(){if(this.Frame.RightFrame){var t=this.Frame.RightFrame;for(var e in this.Frame.HorizontalInfo){var a=this.Frame.HorizontalInfo[e],i=this.Frame.GetYFromData(a.Value),r=t.GetYData(i);a.Message[1]=Ht.FormatValueString(r,this.FloatPrecision,this.LanguageID)}}}}function Yt(){this.newMethod=Ht,this.newMethod(),delete this.newMethod,this.ShowText=!0,this.Period,this.Symbol,this.MinTextDistance=50*u(),this.MinBarDistance=5,this.SplitDateTime=function(){this.Frame.VerticalInfo=[];for(var t=this.Frame.DistanceWidth+this.Frame.DataWidth,e=this.Frame.Data.DataOffset,a=this.Frame.XPointCount,i=0,r=0,n=0,o=e;n<a&&o<this.Frame.Data.Data.length;++n,++o){i+=t,++r;var s=null;if(0==n){s={Value:o-e,Text:Ht.FormatDateString(this.Frame.Data.Data[o].Date,"MM-DD")}}else if(i>this.MinTextDistance&&r>=this.MinBarDistance){var l=Ht.FormatTimeString(this.Frame.Data.Data[o].Time);s={Value:o-e,Text:l}}if(s){var h=new g;h.Value=s.Value,this.ShowText&&(h.Message[0]=s.Text),this.Frame.VerticalInfo.push(h),i=0,r=0,0==n&&(i=-this.MinTextDistance/2)}}},this.SplitSecond=function(){this.Frame.VerticalInfo=[];for(var t=this.Frame.DistanceWidth+this.Frame.DataWidth,e=this.Frame.Data.DataOffset,a=this.Frame.XPointCount,i=0,r=0,n=0,o=e;n<a&&o<this.Frame.Data.Data.length;++n,++o){i+=t,++r;var s=null;if(0==n){s={Value:o-e,Text:Ht.FormatDateString(this.Frame.Data.Data[o].Date,"MM-DD")}}else if(i>this.MinTextDistance&&r>=this.MinBarDistance){var l=Ht.FormatTimeString(this.Frame.Data.Data[o].Time,"HH:MM:SS");s={Value:o-e,Text:l}}if(s){var h=new g;h.Value=s.Value,this.ShowText&&(h.Message[0]=s.Text),this.Frame.VerticalInfo.push(h),i=0,r=0,0==n&&(i=-this.MinTextDistance/2)}}},this.SplitDate=function(){this.Frame.VerticalInfo=[];for(var t=this.Frame.Data.DataOffset,e=this.Frame.XPointCount,a=null,i=null,r=0,n=t,o=12;r<e&&n<this.Frame.Data.Data.length;++r,++n){var s=parseInt(this.Frame.Data.Data[n].Date/1e4),l=parseInt(this.Frame.Data.Data[n].Date/100)%100;if(o<12||null!=a&&a==s&&null!=i&&i==l)i=l,++o;else{var h=new g;h.Value=n-t;var u;null==a||a!=s?u=s.toString():null!=i&&i==l||(u=l.toString()+"月",u=zi.GetText(u,this.LanguageID)),a=s,i=l,this.ShowText&&(h.Message[0]=u),this.Frame.VerticalInfo.push(h),o=0}}},this.Operator=function(){null!=this.Frame.Data&&(Yt.SplitCustom?Yt.SplitCustom(this):Y.IsMinutePeriod(this.Period,!0)?this.SplitDateTime():Y.IsSecondPeriod(this.Period)?this.SplitSecond():this.SplitDate())},this.CreateCoordinateInfo=function(){return new g}}function Ut(){this.newMethod=Ht,this.newMethod(),delete this.newMethod,this.High=null,this.Low=null,this.YClose,this.Data,this.AverageData,this.SourceData,this.OverlayChartPaint,this.SplitCount=7,this.Symbol,this.SplitType=0,this.LimitPrice,this.Custom,this.Operator=function(){if(this.Frame.HorizontalInfo=[],this.Frame.CustomHorizontalInfo=[],this.Data){var t=this.GetMaxMin();this.Symbol&&Ji.IsUSA(this.Symbol.toUpperCase())?this.USASplit(t):this.DefaultSplit(t),this.CustomCoordinate()}},this.CustomCoordinate=function(){if(this.Custom)for(var t in this.Custom){var e=this.Custom[t];1==e.Type&&this.CustomFixedCoordinate(e)}},this.CustomFixedCoordinate=function(t){var e=Ha(this.Symbol);for(var a in t.Data){var i=t.Data[a],r=new g;r.Type=1,r.TextColor=i.TextColor,r.LineColor=i.Color,r.LineType=2,0==t.IsShowLine&&(r.LineType=-1),Ht.IsNumber(i.Increase)?(Ht.IsNumber(this.YClose)||conintue,r.Value=this.YClose*(1+i.Increase)):r.Value=i.Value;var n;n=i.Text?i.Text:r.Value.toFixed(e),"left"==t.Position?r.Message[0]=n:r.Message[1]=n,this.Frame.CustomHorizontalInfo.push(r)}},this.GetMaxMin=function(){var t=this.YClose,e=this.YClose,a=this.Data,i=!1;this.SourceData&&(a=this.SourceData,i=!0);for(var r in a.Data){var n=null;if(i){var o=a.Data[r];n=o.Before?o.Before.Close:o.Close}else n=a.Data[r];null!=n&&(t<n&&(t=n),e>n&&(e=n))}if(this.AverageData)for(var r in this.AverageData.Data)null!=this.AverageData.Data[r]&&(t<this.AverageData.Data[r]&&(t=this.AverageData.Data[r]),e>this.AverageData.Data[r]&&(e=this.AverageData.Data[r]));for(var r in this.OverlayChartPaint){var o=this.OverlayChartPaint[r],s=o.GetMaxMin();s.Max&&s.Max>t&&(t=s.Max),s.Min&&s.Min<e&&(e=s.Min)}return 1==this.SplitType&&this.LimitPrice&&(t<this.LimitPrice.Max&&(t=this.LimitPrice.Max),e>this.LimitPrice.Min&&(e=this.LimitPrice.Min)),Ht.IsNumber(this.High)&&Ht.IsNumber(this.Low)&&(t<this.High&&(t=this.High),e>this.Low&&(e=this.Low)),{Max:t,Min:e}},this.USASplit=function(t){var e=t.Max,a=t.Min;if(e==a)e+=.1*e,a-=.1*a;else{var i=u(),r=this.Frame.ChartBorder.GetHeight(),n=5*i*(e-a)/r;e+=n,a-=n}var o=this.SplitCount,s=(e-a)/(o-1),l=[1,.1,.01,.001,1e-4],h=Ha(this.Symbol);s<l[h]&&(s=l[h],e=a+s*o);for(var c=0;c<o;++c){var d=a+s*c,f=new g;if(f.Value=d,this.IsShowLeftText&&(f.Message[0]=d.toFixed(h)),this.YClose){var C=100*(d/this.YClose-1);C>0?f.TextColor=Xi.UpTextColor:C<0&&(f.TextColor=Xi.DownTextColor),this.IsShowRightText&&(f.Message[1]=Ht.FormatValueString(C,2)+"%")}this.Frame.HorizontalInfo.push(f)}if(this.YClose>a&&this.YClose<e){var f=new g;f.Value=this.YClose,this.Frame.HorizontalInfo.push(f)}this.Frame.HorizontalInfo.sort(function(t,e){return t.Value-e.Value}),this.Frame.HorizontalMax=e,this.Frame.HorizontalMin=a},this.DefaultSplit=function(t){var e=t.Max,a=t.Min;if(this.YClose==e&&this.YClose==a)e=this.YClose+.1*this.YClose,a=this.YClose-.1*this.YClose;else{var i=Math.max(Math.abs(this.YClose-e),Math.abs(this.YClose-a));e=this.YClose+i,a=this.YClose-i}var r=u(),n=this.Frame.ChartBorder.GetChartWidth(),o=n<450*r;bi.Chart.Log("[FrameSplitMinutePriceY]max="+e+" min="+a+" isPhoneModel="+o);var s=this.SplitCount,l=(e-a)/(s-1),h=[1,.1,.01,.001,1e-4],c=Ha(this.Symbol);o&&Ji.IsSHSZIndex(this.Symbol)&&(c=0),l<h[c]&&(l=h[c],e=this.YClose+l*(s-1)/2,a=this.YClose-l*(s-1)/2);for(var d=0;d<s;++d){var f=a+l*d;if(this.Frame.HorizontalInfo[d]=new g,this.Frame.HorizontalInfo[d].Value=f,this.IsShowLeftText&&(this.Frame.HorizontalInfo[d].Message[0]=f.toFixed(c)),f==this.YClose&&(this.Frame.HorizontalInfo[d].LineType=2,Xi.FrameDotSplitPen&&(this.Frame.HorizontalInfo[d].LineColor=Xi.FrameDotSplitPen)),this.YClose){var C=100*(f/this.YClose-1);C>0?this.Frame.HorizontalInfo[d].TextColor=Xi.UpTextColor:C<0&&(this.Frame.HorizontalInfo[d].TextColor=Xi.DownTextColor),this.IsShowRightText&&(this.Frame.HorizontalInfo[d].Message[1]=Ht.FormatValueString(C,2)+"%")}}this.Frame.HorizontalMax=e,this.Frame.HorizontalMin=a}}function Wt(){this.newMethod=Ht,this.newMethod(),delete this.newMethod,this.ShowText=!0,this.Symbol=null,this.DayCount=1,this.ShowDateFormate=1,this.IsBeforeData=!1,this.Operator=function(){this.Frame.VerticalInfo=[];var t=(this.Frame.XPointCount,this.Frame.ChartBorder.GetWidth());!0===this.Frame.IsHScreen&&(t=this.Frame.ChartBorder.GetHeight()),t/=u();var e=Zi,a=e.GetCoordinateData(this.Symbol,t),i=a.Count,r=a.MiddleCount>0?a.MiddleCount:parseInt(i/2),n=a.Data;if(this.Frame.XPointCount=i*this.DayCount,this.Frame.MinuteCount=i,this.Frame.VerticalInfo=[],this.DayCount<=1){this.IsBeforeData&&(this.Frame.XPointCount=i+14,this.Frame.MinuteCount=i+14);for(var o in n){var s=new g;s.Value=n[o][0],this.IsBeforeData&&(s.Value+=14),this.ShowText&&(s.Message[0]=n[o][3]),this.Frame.VerticalInfo[o]=s}}else for(var o=this.DayData.length-1,l=0;o>=0;--o,++l){var s=new g;s.Value=l*i+r,s.LineType=-1,this.ShowText&&(s.Message[0]=Ht.FormatDateString(this.DayData[o].Date,0==this.ShowFormate?"YYYY-MM-DD":"MM-DD")),this.Frame.VerticalInfo.push(s);var s=new g;s.Value=(l+1)*i,this.Frame.VerticalInfo.push(s)}}}function Xt(){this.newMethod=Ht,this.newMethod(),delete this.newMethod,this.ShowText=!0,this.Operator=function(){if(null!=this.Frame.Data&&null!=this.Frame.XData){this.Frame.VerticalInfo=[];for(var t=this.Frame.Data.DataOffset,e=this.Frame.XPointCount,a=0,i=t;a<e&&i<this.Frame.Data.Data.length;++a,++i){var r=new g;r.Value=i-t,this.ShowText&&(r.Message[0]=this.Frame.XData[a]),this.Frame.VerticalInfo.push(r),distance=0}}}}function Kt(){this.Frame,this.Canvas,this.HPenColor=Xi.CorssCursorHPenColor,this.HPenType=0,this.VPenColor=Xi.CorssCursorVPenColor,this.VPenType=0,this.Font=Xi.CorssCursorTextFont,this.TextColor=Xi.CorssCursorTextColor,this.TextBGColor=Xi.CorssCursorBGColor,this.TextHeight=20,this.LastPoint,this.CursorIndex,this.IsOnlyDrawKLine=!1,this.PointX,this.PointY,this.StringFormatX,this.StringFormatY,this.ShowTextMode={Left:1,Right:1,Bottom:1},this.IsShowCorss=!0,this.IsShow=!0,this.IsShowClose=!1,this.Close=null,this.ReloadResource=function(t){this.Font=Xi.CorssCursorTextFont,this.HPenColor=Xi.CorssCursorHPenColor,this.VPenColor=Xi.CorssCursorVPenColor,this.TextColor=Xi.CorssCursorTextColor,this.TextBGColor=Xi.CorssCursorBGColor},this.GetCloseYPoint=function(t){if(!this.StringFormatX.Data)return null;var e=this.StringFormatX.Data;if(!e.Data||e.Data.length<=0)return null;var a=e.DataOffset+t;if(a>=e.Data.length&&(a=e.Data.length-1),a<0)return null;var i=e.Data[a];return i?(this.Close=i.Close,this.Frame.GetYFromData(this.Close)):null},this.Draw=function(){if(this.LastPoint){this.Close=null;var t=this.LastPoint.X,e=this.LastPoint.Y,a=!1;if(this.Canvas.beginPath(),this.Canvas.rect(this.Frame.ChartBorder.GetLeft(),this.Frame.ChartBorder.GetTop(),this.Frame.ChartBorder.GetWidth(),this.Frame.ChartBorder.GetHeight()),a=this.Canvas.isPointInPath(t,e),this.PointY=null,this.PointY,a){if(!0===this.Frame.IsHScreen)return void this.HScreenDraw();var i=this.Frame.ChartBorder.GetLeft(),r=this.Frame.ChartBorder.GetRight(),n=this.Frame.ChartBorder.GetTopTitle(),o=this.Frame.ChartBorder.GetBottom(),s=this.Frame.ChartBorder.Right,l=this.Frame.ChartBorder.GetChartWidth();if(this.IsOnlyDrawKLine&&(t=this.Frame.GetXFromIndex(this.CursorIndex),this.IsShowClose)){var h=this.GetCloseYPoint(this.CursorIndex);null!=h&&(e=h)}if(this.PointY=[[i,e],[r,e]],this.PointX=[[t,n],[t,o]],this.IsShowCorss){var c=u();if(this.Canvas.save(),this.Canvas.strokeStyle=this.HPenColor,0==this.HPenType&&this.Canvas.setLineDash([3*c,2*c]),this.Canvas.beginPath(),this.Canvas.moveTo(i,p(e)),this.Canvas.lineTo(r,p(e)),this.Canvas.stroke(),this.Canvas.restore(),this.Canvas.save(),this.Canvas.strokeStyle=this.VPenColor,0==this.VPenType)this.Canvas.setLineDash([3*c,2*c]);else if(2==this.VPenType){var d=this.Frame.SubFrame[0].Frame.DataWidth;d>2*c&&(this.Canvas.lineWidth=d)}if(this.Canvas.beginPath(),this.Frame.SubFrame.length>0)for(var f in this.Frame.SubFrame){var C=this.Frame.SubFrame[f].Frame;n=C.ChartBorder.GetTopTitle(),o=C.ChartBorder.GetBottom(),this.Canvas.moveTo(p(t),n),this.Canvas.lineTo(p(t),o)}else this.Canvas.moveTo(p(t),n),this.Canvas.lineTo(p(t),o);this.Canvas.stroke(),this.Canvas.restore()}var D=this.Frame.GetXData(t),m={},v=this.Frame.GetYData(e,m);if(this.IsShowClose&&null!=this.Close&&(v=this.Close),this.StringFormatX.Value=D,this.StringFormatY.Value=v,this.StringFormatY.RValue=m.RightYValue,this.StringFormatY.FrameID=m.FrameID,(1==this.ShowTextMode.Left&&this.Frame.ChartBorder.Left>=30||2==this.ShowTextMode.Left||1==this.ShowTextMode.Right&&this.Frame.ChartBorder.Right>=30||2==this.ShowTextMode.Right)&&this.StringFormatY.Operator()){var g=this.StringFormatY.Text;this.Canvas.font=this.Font;var S=this.Canvas.measureText(g).width+4;if(this.Frame.ChartBorder.Left>=30&&1==this.ShowTextMode.Left?(this.Canvas.fillStyle=this.TextBGColor,i<S?(this.Canvas.fillRect(2,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,4,e,S)):(this.Canvas.fillRect(i-2,e-this.TextHeight/2,-S,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,i-4,e,S))):2==this.ShowTextMode.Left&&(this.Canvas.fillStyle=this.TextBGColor,this.Canvas.fillRect(i,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,i+2,e,S)),this.StringFormatY.PercentageText&&(g=this.StringFormatY.PercentageText+"%",S=this.Canvas.measureText(g).width+4),this.StringFormatY.RText){g=this.StringFormatY.RText;var S=this.Canvas.measureText(g).width+4}if(this.Frame.ChartBorder.Right>=30&&1==this.ShowTextMode.Right){var I=!1,x=null;if(m.FrameID>=0){var C=this.Frame.SubFrame[m.FrameID];I=C.OverlayIndex.length>0,x=C.Interval}if(this.Canvas.fillStyle=this.TextBGColor,I&&S>x){var T=r+x;T>l&&(T=l),this.Canvas.fillRect(T-2-S,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,T-4,e,S)}else s<S?(this.Canvas.fillRect(l-2-S,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,l-4,e,S)):(this.Canvas.fillRect(r+2,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,r+4,e,S));if(this.StringFormatY.RExtendText&&this.StringFormatY.RExtendText.length>0){var A=0;for(var f in this.StringFormatY.RExtendText){var b=this.StringFormatY.RExtendText[f],E="--.--";b.YText?E=b.YText:Ht.IsNumber(b.Y)&&(E=b.Y.toFixed(0));var F=this.Canvas.measureText(E).width+4;this.Canvas.fillStyle=b.TextBGColor,s<F?(this.Canvas.fillRect(l-2-F,e+A+this.TextHeight/2,F,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=b.TextColor,this.Canvas.fillText(E,l-4,e+A+this.TextHeight,F)):(this.Canvas.fillRect(r+2,e+A+this.TextHeight/2,F,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=b.TextColor,this.Canvas.fillText(E,r+4,e+A+this.TextHeight,F)),A+=this.TextHeight}}}else if(2==this.ShowTextMode.Right){this.Canvas.fillStyle=this.TextBGColor;var y=r-S;this.Canvas.fillRect(y,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,y+2,e,S)}}if(1==this.ShowTextMode.Bottom&&this.StringFormatX.Operator()){var g=this.StringFormatX.Text;this.Canvas.font=this.Font,this.Canvas.fillStyle=this.TextBGColor;var S=this.Canvas.measureText(g).width+4,L=o+2+this.TextHeight/2;t-S/2<3?(this.Canvas.fillRect(t-1,o+2,S,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,t+1,L,S)):t+S/2>=r?(this.Canvas.fillRect(r-S,o+2,S,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,r-2,L,S)):(this.Canvas.fillRect(t-S/2,o+2,S,this.TextHeight),this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,t,L,S))}if(m.FrameID>=0){var C=this.Frame.SubFrame[m.FrameID],M=r;this.Canvas.font=this.Font;for(var f in C.OverlayIndex){var b=C.OverlayIndex[f];if(!1!==b.Frame.IsShow){if((M+=C.Interval)+30>l)break;for(var v=b.Frame.GetYData(e),f=2;f>=0;--f){var g=Ht.FormatValueString(v,f),S=this.Canvas.measureText(g).width+4;if(S<C.Interval)break}this.Canvas.fillStyle=this.TextBGColor,this.Canvas.fillRect(M+2,e-this.TextHeight/2,S,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(g,M+4,e,S)}}}}}},this.HScreenDraw=function(){var t=this.LastPoint.X,e=this.LastPoint.Y;this.IsOnlyDrawKLine&&(e=this.Frame.GetXFromIndex(this.CursorIndex));var a=this.Frame.ChartBorder.GetLeft(),i=this.Frame.ChartBorder.GetRightEx(),r=this.Frame.ChartBorder.GetTop(),n=this.Frame.ChartBorder.GetBottom(),o=this.Frame.ChartBorder.Bottom;if(this.PointY=[[a,e],[i,e]],this.PointX=[[t,r],[t,n]],this.IsShowCorss){var s=u();if(this.Canvas.save(),this.Canvas.strokeStyle=this.HPenColor,0==this.HPenType&&this.Canvas.setLineDash([3*s,2*s]),this.Canvas.beginPath(),this.Canvas.moveTo(p(t),r),this.Canvas.lineTo(p(t),n),this.Canvas.stroke(),this.Canvas.restore(),this.Canvas.save(),this.Canvas.strokeStyle=this.VPenColor,0==this.VPenType)this.Canvas.setLineDash([3*s,2*s]);else if(2==this.VPenType){var l=this.Frame.SubFrame[0].Frame.DataWidth;l>2*s&&(this.Canvas.lineWidth=l)}if(this.Canvas.beginPath(),this.Frame.SubFrame.length>0)for(var h in this.Frame.SubFrame){var c=this.Frame.SubFrame[h].Frame;this.Canvas.moveTo(c.ChartBorder.GetLeft(),p(e)),this.Canvas.lineTo(c.ChartBorder.GetRightTitle(),p(e))}else this.Canvas.moveTo(a,p(e)),this.Canvas.lineTo(i,p(e));this.Canvas.stroke(),this.Canvas.restore()}var d=this.Frame.GetXData(e),f={},C=this.Frame.GetYData(t,f);if(this.StringFormatX.Value=d,this.StringFormatY.Value=C,this.StringFormatY.FrameID=f.FrameID,(1==this.ShowTextMode.Left&&this.Frame.ChartBorder.Top>=30||2==this.ShowTextMode.Left||1==this.ShowTextMode.Right&&this.Frame.ChartBorder.Bottom>=30||2==this.ShowTextMode.Right)&&this.StringFormatY.Operator()){var D=this.StringFormatY.Text;this.Canvas.font=this.Font;var m=this.Canvas.measureText(D).width+4;if(this.Frame.ChartBorder.Top>=30&&1==this.ShowTextMode.Left){var v=t,g=r;this.Canvas.save(),this.Canvas.translate(v,g),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillStyle=this.TextBGColor,r>=m?(this.Canvas.fillRect(0,-this.TextHeight/2,-m,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,-2,0,m)):(this.Canvas.fillRect(m-r,-this.TextHeight/2,-m,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,m-r-2,0,m)),this.Canvas.restore()}else if(2==this.ShowTextMode.Left){var v=t,g=r;this.Canvas.save(),this.Canvas.translate(v,g),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillStyle=this.TextBGColor,this.Canvas.fillRect(0,-this.TextHeight/2,m,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,2,0,m),this.Canvas.restore()}if(this.Frame.ChartBorder.Bottom>=30&&1==this.ShowTextMode.Right){var v=t,g=n;if(this.Canvas.save(),this.Canvas.translate(v,g),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillStyle=this.TextBGColor,o>m?(this.Canvas.fillRect(0,-this.TextHeight/2,m,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,2,0,m)):(this.Canvas.fillRect(o-m,-this.TextHeight/2,m,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,o-m+2,0,m)),this.StringFormatY.RExtendText&&this.StringFormatY.RExtendText.length>0){var S=0;for(var h in this.StringFormatY.RExtendText){var I=this.StringFormatY.RExtendText[h],x="--.--";I.YText?x=I.YText:Ht.IsNumber(I.Y)&&(x=I.Y.toFixed(0));var T=this.Canvas.measureText(x).width+4;if(this.Canvas.fillStyle=I.TextBGColor,o>T)this.Canvas.fillRect(0,S+this.TextHeight/2,T,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=I.TextColor,this.Canvas.fillText(x,2,S+this.TextHeight,T);else{var A=o-T;this.Canvas.fillRect(A,S+this.TextHeight/2,T,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=I.TextColor,this.Canvas.fillText(x,A+2,S+this.TextHeight,T)}S+=this.TextHeight}}this.Canvas.restore()}else if(2==this.ShowTextMode.Right){var v=t,g=n;this.Canvas.save(),this.Canvas.translate(v,g),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillStyle=this.TextBGColor,this.Canvas.fillRect(0,-this.TextHeight/2,-m,this.TextHeight),this.Canvas.textAlign="right",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,-2,0,m),this.Canvas.restore()}}if(1===this.ShowTextMode.Bottom&&this.StringFormatX.Operator()){var D=this.StringFormatX.Text;this.Canvas.font=this.Font,this.Canvas.fillStyle=this.TextBGColor;var m=this.Canvas.measureText(D).width+4;if(e-m/2<3){var v=a,g=e;this.Canvas.save(),this.Canvas.translate(v,g),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillRect(0,0,m,this.TextHeight),this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,0,this.TextHeight/2,m),this.Canvas.restore()}else{var v=a,g=e;this.Canvas.save(),this.Canvas.translate(v,g),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillRect(-m/2,0,m,this.TextHeight),this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.fillText(D,0,this.TextHeight/2,m),this.Canvas.restore()}}}}function zt(){this.Frame,this.Canvas,this.Font=Xi.DefaultTextFont,this.TextColor=Xi.DefaultTextColor,this.IsEnableSplash=!1,this.SplashTitle="数据加载中",this.Draw=function(){if(this.IsEnableSplash){if(!0===this.Frame.IsHScreen)return void this.HScreenDraw();var t=(this.Frame.ChartBorder.GetLeft()+this.Frame.ChartBorder.GetRight())/2,e=(this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.GetBottom())/2;this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.font=this.Font,this.Canvas.fillText(this.SplashTitle,t,e)}},this.HScreenDraw=function(){var t=(this.Frame.ChartBorder.GetLeft()+this.Frame.ChartBorder.GetRight())/2,e=(this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.GetBottom())/2;this.Canvas.save(),this.Canvas.translate(t,e),this.Canvas.rotate(90*Math.PI/180),this.Canvas.textAlign="center",this.Canvas.textBaseline="middle",this.Canvas.fillStyle=this.TextColor,this.Canvas.font=this.Font,this.Canvas.fillText(this.SplashTitle,0,0),this.Canvas.restore()}}function Jt(){this.Data,this.Value,this.Text,this.Operator=function(){return!1}}function qt(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.Symbol,this.FrameID,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.YClose,this.PercentageText,this.RValue,this.RText,this.ExtendChartPaint,this.RExtendText=[],this.Operator=function(){if(this.RText=null,this.RExtendText=[],Ht.IsString(this.RValue)&&(this.RText=this.RValue),!this.Value)return!1;this.PercentageText=null;var t=2;if(0==this.FrameID){var t=Ha(this.Symbol);this.Text=this.Value.toFixed(t),this.YClose>0&&(this.PercentageText=(100*(this.Value-this.YClose)/this.YClose).toFixed(2)),this.GetExtendPaintData(t)}else 1==this.FrameID?(this.Text=Ht.FormatValueString(this.Value,t,this.LanguageID),Ht.IsNumber(this.RValue)&&(this.RText=Ht.FormatValueString(this.RValue,t,this.LanguageID))):this.Text=Ht.FormatValueString(this.Value,t,this.LanguageID);return!0},this.GetExtendPaintData=function(t){var e=parseInt(this.Value*Vi[t]);for(var a in this.ExtendChartPaint){var i=this.ExtendChartPaint[a];if("DepthMapPaint"==i.ClassName&&i.FrameID==this.FrameID){var r=i.GetYValueByXValue(e,t);for(var n in r)this.RExtendText.push(r[n])}}}}function Zt(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.Operator=function(){if(!Ht.IsNumber(this.Value))return!1;if(!this.Data)return!1;var t=this.Value;if(t=parseInt(t.toFixed(0)),this.Data.DataOffset+t>=this.Data.Data.length)return!1;var e=this.Data.Data[this.Data.DataOffset+t];if(this.Text=Ht.FormatDateString(e.Date),Y.IsMinutePeriod(this.Data.Period,!0)){var a=Ht.FormatTimeString(e.Time);this.Text=this.Text+" "+a}else if(Y.IsSecondPeriod(this.Data.Period)){var a=Ht.FormatTimeString(e.Time,"HH:MM:SS");this.Text=this.Text+" "+a}else if(Y.IsTickPeriod(this.Data.Period)){var a=Ht.FormatTimeString(e.Time);this.Text=this.Text+" "+a}return!0}}function jt(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.Frame,this.Symbol,this.IsBeforeData=!1,this.Operator=function(){if(null==this.Value||isNaN(this.Value))return!1;var t=Math.abs(this.Value);t=parseInt(t.toFixed(0));var e=t;this.Frame&&this.Frame.MinuteCount&&(e=t%this.Frame.MinuteCount);var a=qi,i=a.GetTimeData(this.Symbol);if(!i)return!1;if(this.IsBeforeData){var r=[915,916,917,918,919,920,921,922,923,924,925,926,927,928,929];for(var n in i)925!=i[n]&&r.push(i[n]);i=r}e<0?e=0:e>i.length&&(e=i.length-1),this.Frame&&t>=this.Frame.XPointCount&&(e=i.length-1);var o=i[e];return this.Text=Ht.FormatTimeString(o),!0}}function Qt(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.Symbol,this.UpColor=Xi.UpTextColor,this.DownColor=Xi.DownTextColor,this.UnchagneColor=Xi.UnchagneTextColor,this.VolColor=Xi.DefaultTextColor,this.AmountColor=Xi.DefaultTextColor,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.LineCount=0,this.Width=157,this.Height=125,this.Operator=function(){var t=this.Value.Data;if(!t)return!1;this.Width=157,this.LanguageID==Ki.LANGUAGE_ENGLISH_ID&&(this.Width=180);var e=new Date(parseInt(t.Date/1e4),t.Date/100%100-1,t.Date%100),a=Ht.FormatDateString(t.Date),i=zi.GetText(Gi[e.getDay()],this.LanguageID);Y.IsMinutePeriod(this.Value.ChartPaint.Data.Period,!0)?i=Ht.FormatTimeString(t.Time):Y.IsSecondPeriod(this.Value.ChartPaint.Data.Period)&&(i=Ht.FormatTimeString(t.Time,"HH:MM:SS"));var r=this.Symbol.toUpperCase(),n=Ha(this.Symbol),o=null;t.YClose>0&&(o=(t.Close-t.YClose)/t.YClose*100);var s="<span class='tooltip-title'>"+a+"  "+i+"</span><span class='tooltip-con'>"+zi.GetText("DivTooltip-Open",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.GetColor(t.Open,t.YClose)+";'>"+t.Open.toFixed(n)+"</span><br/><span class='tooltip-con'>"+zi.GetText("DivTooltip-High",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.GetColor(t.High,t.YClose)+";'>"+t.High.toFixed(n)+"</span><br/><span class='tooltip-con'>"+zi.GetText("DivTooltip-Low",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.GetColor(t.Low,t.YClose)+";'>"+t.Low.toFixed(n)+"</span><br/><span class='tooltip-con'>"+zi.GetText("DivTooltip-Close",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.GetColor(t.Close,t.YClose)+";'>"+t.Close.toFixed(n)+"</span><br/><span class='tooltip-con'>"+zi.GetText("DivTooltip-Vol",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.VolColor+";'>"+Ht.FormatValueString(t.Vol,2,this.LanguageID)+"</span><br/><span class='tooltip-con'>"+zi.GetText("DivTooltip-Amount",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.AmountColor+";'>"+Ht.FormatValueString(t.Amount,2,this.LanguageID)+"</span><br/><span class='tooltip-con'>"+zi.GetText("DivTooltip-Increase",this.LanguageID)+"</span>"+(null==o?"<span class='tooltip-num' style='color:"+this.GetColor(0,0)+";'>--</span><br/>":"<span class='tooltip-num' style='color:"+this.GetColor(o,0)+";'>"+o.toFixed(2)+"%</span><br/>");if(this.LineCount=8,Ji.IsSHSZStockA(this.Symbol)&&t.FlowCapital>0){var l=t.Vol/t.FlowCapital*100;s+="<span class='tooltip-con'>"+zi.GetText("DivTooltip-Exchange",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.AmountColor+";'>"+l.toFixed(2)+"%</span><br/>",++this.LineCount}if(Ji.IsFutures(r)&&Ht.IsNumber(t.Position)&&(s+="<span class='tooltip-con'>"+zi.GetText("DivTooltip-Position",this.LanguageID)+"</span><span class='tooltip-num' style='color:"+this.VolColor+";'>"+t.Position+"</span><br/>",++this.LineCount),"Overlay-KLine"==this.Value.ChartPaint.Name){s="<span style='color:rgb(0,0,0);font:微软雅黑;font-size:12px;text-align:center;display: block;'>"+this.Value.ChartPaint.Title+"</span>"+s,++this.LineCount}return this.Text=s,this.Height=25*this.LineCount,!0},this.GetColor=function(t,e){return t>e?this.UpColor:t<e?this.DownColor:this.UnchagneColor}}function $t(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.UpColor=Xi.UpTextColor,this.DownColor=Xi.DownTextColor,this.UnchagneColor=Xi.UnchagneTextColor,this.Width=500,this.Operator=function(){if(!this.Value)return!1;var t=this.Value.Data.Data,e=this.Value.Data.Type,a="";for(var i in t){var r=t[i],n="";switch(e){case wi.BLOCKTRADING:n=this.BlockTradingFormat(r);break;case wi.TRADEDETAIL:n=this.TradeDetailFormat(r);break;case wi.RESEARCH:n=this.ResearchFormat(r);break;case wi.PFORECAST:n=this.PerformanceForecastFormat(r);break;default:n=this.DefaultFormat(r)}a+=n}var o="<div class='title-length'>"+a+"</div>";if(t.length>8){o+="<div class='total-list'>共"+t.length+"条</div>"}return this.Text=o,!0},this.DefaultFormat=function(t){return"<span>"+Ht.FormatDateString(t.Date)+" "+t.Title+"</span>"},this.BlockTradingFormat=function(t){var e=t.ExtendData;return"<span><i class='date-tipbox'>"+Ht.FormatDateString(t.Date)+"</i> <i class='tipBoxTitle'>成交价: "+e.Price.toFixed(2)+"</i><i class='tipBoxTitle'>收盘价: "+e.ClosePrice.toFixed(2)+"</i><br/><i class='rate-discount tipBoxTitle'>溢折价率: <strong style='color:"+this.GetColor(e.Premium.toFixed(2))+"'>"+e.Premium.toFixed(2)+"%</strong></i><i class='tipBoxTitle'>成交量(万股): "+e.Vol.toFixed(2)+"</i></span>"},this.TradeDetailFormat=function(t){var e=t.ExtendData.Detail,a=Ht.FormatDateString(t.Date),i=[];for(var r in e)i+="<i>"+e[r].TypeExplain+"</i><br/>";return"<span><i class='trade-time'>"+a+" 上榜原因: </i><i class='reason-list'>"+i+"</i><br/><i class='trade-detall'>一周后涨幅: <strong style='color:"+this.GetColor(t.ExtendData.FWeek.Week1.toFixed(2))+"'>"+t.ExtendData.FWeek.Week1.toFixed(2)+"%</strong> 四周后涨幅: <strong style='color:"+this.GetColor(t.ExtendData.FWeek.Week4.toFixed(2))+";'>"+t.ExtendData.FWeek.Week4.toFixed(2)+"%</strong></i></span>"},this.ResearchFormat=function(t){var e=t.ExtendData.Level,a="";if(0==e.length)a="<i>一般调研</i>";else{for(var i in e)0==e[i]?a+="<i style='color:#00a0e9'>证券代表 </i>":1==e[i]?a+="<i>董秘 </i>":2==e[i]?a+="<i style='color:#00a0e9'>总经理 </i>":3==e[i]&&(a+="<i style='color:#00a0e9'>董事长 </i>");a="接待: "+a}var r="";return t.ExtendData.Type&&"其他"!=t.ExtendData.Type&&(r=" <i>"+t.ExtendData.Type+"</i>",0==e.length&&(a="")),"<span>"+Ht.FormatDateString(t.Date)+" "+r+a+"</span>"},this.PerformanceForecastFormat=function(t){var e,a=t.ExtendData.ReportDate,i=parseInt(a/1e4),r=a%1e4;1231==r?e="年报":331==r?e="一季度报":630==r?e="半年度报":930==r&&(e="三季度报");var n="";return t.ExtendData.FWeek&&(null!=t.ExtendData.FWeek.Week1&&(n+="一周后涨幅:<i class='increase' style='color:"+this.GetColor(t.ExtendData.FWeek.Week1.toFixed(2))+"'>"+t.ExtendData.FWeek.Week1.toFixed(2)+"%</i>"),null!=t.ExtendData.FWeek.Week4&&(n+=" 四周后涨幅:<i class='increase' style='color:"+this.GetColor(t.ExtendData.FWeek.Week4.toFixed(2))+"'>"+t.ExtendData.FWeek.Week4.toFixed(2)+"%</i>"),n.length>0&&(n="<br/> <i class='prorecast-week'>"+n+"</i>")),"<span>"+Ht.FormatDateString(t.Date)+" "+i+e+t.Title+" "+n+"</span>"},this.GetColor=function(t){return t>0?this.UpColor:t<0?this.DownColor:this.UnchagneColor}}function te(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.Width=100,this.Operator=function(){var t=this.Value.Data;if(!t)return!1;var e,a=t.Data,i="<span class='tooltip-index-name'>"+a.Name+a.Param+":</span>";return e=1==a.Type?"<span class='tooltip-index-buy'>买入</span>":"<span class='tooltip-index-sell'>卖出</span>",this.Text=i+e,!0}}function ee(){this.newMethod=Jt,this.newMethod(),delete this.newMethod,this.Width=200,this.Operator=function(){var t=this.Value.Data;if(!t)return!1;var e=t.Data.Item,a=Ht.FormatTimeString(e.Time),i="<span class='tooltip-minuteinfo-time'>"+a+" </span>",r="<span class='tooltip-minuteinfo-content'>"+e.Title+"</span>";return e.Content&&(r="<span class='tooltip-minuteinfo-content'>"+e.Content+"</span>"),this.Text=i+r,!0}}function ae(){this.DataMap=new xi.default([["KLineTradeDataStringFormat",{Create:function(){return new te}}],["MinuteInfoDataStringFormat",{Create:function(){return new ee}}],["HistoryDataStringFormat",{Create:function(){return new Qt}}],["KLineInfoDataStringFormat",{Create:function(){return new $t}}]]),this.Create=function(t){return this.DataMap.has(t)?this.DataMap.get(t).Create():null}}function ie(){this.Frame,this.Data=new Array,this.Canvas,this.IsDynamic=!1,this.Position=0,this.CursorIndex,this.Font=Xi.TitleFont,this.Title,this.TitleColor=Xi.DefaultTextColor,this.ClassName="IChartTitlePainting",this.ReloadResource=function(){this.Font=Xi.TitleFont,this.TitleColor=Xi.DefaultTextColor}}function re(){this.newMethod=ie,this.newMethod(),delete this.newMethod,this.ClassName="DynamicKLineTitlePainting",this.IsDynamic=!0,this.IsShow=!0,this.Period,this.UpColor=Xi.UpTextColor,this.DownColor=Xi.DownTextColor,this.UnchagneColor=Xi.UnchagneTextColor,this.VolColor=Xi.DefaultTextColor,this.AmountColor=Xi.DefaultTextColor,this.DateTimeColor=Xi.DefaultTextColor,this.NameColor=Xi.DefaultTextColor,this.Symbol,this.Name,this.SpaceWidth=2*u(),this.OverlayChartPaint,this.IsShowName=!0,this.IsShowSettingInfo=!0,this.IsShowDateTime=!0,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.OnDrawEvent,this.ReloadResource=function(){this.Font=Xi.TitleFont,this.TitleColor=Xi.DefaultTextColor,this.UpColor=Xi.UpTextColor,this.DownColor=Xi.DownTextColor,this.UnchagneColor=Xi.UnchagneTextColor,this.VolColor=Xi.DefaultTextColor,this.AmountColor=Xi.DefaultTextColor,this.DateTimeColor=Xi.DefaultTextColor,this.NameColor=Xi.DefaultTextColor},this.GetCurrentKLineData=function(){if(null==this.CursorIndex||!this.Data)return null;if(this.Data.length<=0)return null;var t=this.CursorIndex;t=parseInt(t.toFixed(0));var e=this.Data.DataOffset+t;return e>=this.Data.Data.length&&(e=this.Data.Data.length-1),e<0?null:this.Data.Data[e]},this.DrawItem=function(t){var e=!0===this.Frame.IsHScreen,a=this.Frame.ChartBorder.GetLeft(),i=this.Frame.ChartBorder.GetTop()-this.Frame.ChartBorder.Top/2,r=(this.Frame.ChartBorder.GetRight(),Ha(this.Symbol)),n=this.Symbol.toUpperCase();if(e){if(this.Frame.ChartBorder.Right<5)return;var a=2,i=this.Frame.ChartBorder.Right/2,o=(this.Frame.ChartBorder.GetHeight(),this.Frame.ChartBorder.GetChartWidth()),s=this.Frame.ChartBorder.GetTop();this.Canvas.translate(o,s),this.Canvas.rotate(90*Math.PI/180)}else if(this.Frame.ChartBorder.Top<5*u())return;this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.font=this.Font;var l={Left:a,Bottom:i,IsHScreen:e};if(!this.IsShowName||this.DrawText(this.Name,this.UnchagneColor,l)){if(this.IsShowSettingInfo){this.Canvas.fillStyle=this.NameColor;var h="";h=this.Data.Period>_i&&this.Data.Period<=Ri?this.Data.Period-_i+zi.GetText("自定义分钟",this.LanguageID):this.Data.Period>Ni&&this.Data.Period<=Oi?this.Data.Period-Ni+zi.GetText("自定义日线",this.LanguageID):this.Data.Period>Pi&&this.Data.Period<=Bi?this.Data.Period-Pi+zi.GetText("自定义秒",this.LanguageID):zi.GetText(Y.GetPeriodName(this.Data.Period),this.LanguageID);var c=zi.GetText(Ui[this.Data.Right],this.LanguageID),d="("+h+" "+c+")",f=Ji.IsSHSZStockA(this.Symbol);if(null==t.Time&&f||(d="("+h+")"),!this.DrawText(d,this.NameColor,l))return}if(this.IsShowDateTime){this.Canvas.fillStyle=this.DateTimeColor;var d=Ht.FormatDateString(t.Date);if(!this.DrawText(d,this.DateTimeColor,l))return}if(Y.IsMinutePeriod(this.Period,!0)&&t.Time){var d=Ht.FormatTimeString(t.Time);if(!this.DrawText(d,this.DateTimeColor,l))return}else if(Y.IsSecondPeriod(this.Period)&&t.Time){var d=Ht.FormatTimeString(t.Time,"HH:MM:SS");if(!this.DrawText(d,this.DateTimeColor,l))return}var C=this.GetColor(t.Open,t.YClose),d=zi.GetText("KTitle-Open",this.LanguageID)+t.Open.toFixed(r);if(this.DrawText(d,C,l)){var C=this.GetColor(t.High,t.YClose),d=zi.GetText("KTitle-High",this.LanguageID)+t.High.toFixed(r);if(this.DrawText(d,C,l)){var C=this.GetColor(t.Low,t.YClose),d=zi.GetText("KTitle-Low",this.LanguageID)+t.Low.toFixed(r);if(this.DrawText(d,C,l)){var C=this.GetColor(t.Close,t.YClose),d=zi.GetText("KTitle-Close",this.LanguageID)+t.Close.toFixed(r);if(this.DrawText(d,C,l)){if(t.YClose>0){var p=(t.Close-t.YClose)/t.YClose*100,C=this.GetColor(p,0),d=zi.GetText("KTitle-Increase",this.LanguageID)+p.toFixed(2)+"%";if(!this.DrawText(d,C,l))return}var d=zi.GetText("KTitle-Vol",this.LanguageID)+Ht.FromatIntegerString(t.Vol,2,this.LanguageID);if(this.DrawText(d,this.VolColor,l)){if(Ht.IsNumber(t.Amount)){var d=zi.GetText("KTitle-Amount",this.LanguageID)+Ht.FormatValueString(t.Amount,2,this.LanguageID);if(!this.DrawText(d,this.AmountColor,l))return}if(Ji.IsSHSZStockA(this.Symbol)&&t.FlowCapital>0){var p=t.Vol/t.FlowCapital*100,d=zi.GetText("KTitle-Exchange",this.LanguageID)+Ht.FormatValueString(p,2,this.LanguageID)+"%";if(!this.DrawText(d,this.AmountColor,l))return}if(Ji.IsFutures(n)&&Ht.IsNumber(t.Position)){var d=zi.GetText("KTitle-Position",this.LanguageID)+t.Position;if(!this.DrawText(d,this.AmountColor,l))return}for(var D in this.OverlayChartPaint){var t=this.OverlayChartPaint[D];if(t.Symbol&&t.Title){var m=t.Title,v=t.Color,d="["+m+"]";if(!this.DrawText(d,v,l))return}}}}}}}}},this.Draw=function(){if(this.IsShow){if(null==this.CursorIndex||!this.Data||this.Data.length<=0)return void this.OnDrawEventCallback(null);this.Canvas.font=this.Font,this.SpaceWidth=this.Canvas.measureText("0").width;var t=this.CursorIndex;t=parseInt(t.toFixed(0));var e=this.Data.DataOffset+t;if(e>=this.Data.Data.length&&(e=this.Data.Data.length-1),e<0)return void this.OnDrawEventCallback(null);var a=this.Data.Data[e];this.OnDrawEventCallback(a),this.Canvas.save(),this.DrawItem(a),this.Canvas.restore()}},this.OnDrawEventCallback=function(t){if(this.OnDrawEvent&&this.OnDrawEvent.Callback){var e={Draw:t,Name:this.ClassName};this.OnDrawEvent.Callback(this.OnDrawEvent,e,this)}},this.GetColor=function(t,e){return t>e?this.UpColor:t<e?this.DownColor:this.UnchagneColor},this.DrawText=function(t,e,a){if(!t)return!0;var i=!0===this.Frame.IsHScreen,r=this.Frame.ChartBorder.GetRight();i&&(r=this.Frame.ChartBorder.GetHeight()),this.Canvas.fillStyle=e;var n=this.Canvas.measureText(t).width;return!(a.Left+n>r)&&(this.Canvas.fillText(t,a.Left,a.Bottom,n),a.Left+=n+this.SpaceWidth,!0)}}function ne(){this.newMethod=re,this.newMethod(),delete this.newMethod,this.ClassName="DynamicMinuteTitlePainting",this.SpaceWidth=1*u(),this.YClose,this.IsShowDate=!1,this.IsShowName=!0,this.OverlayChartPaint,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.LastShowData,this.OnDrawEvent,this.GetCurrentKLineData=function(){if(this.LastShowData)return this.LastShowData;if(null==this.CursorIndex||!this.Data)return null;if(this.Data.length<=0)return null;var t=Math.abs(this.CursorIndex-.5);t=parseInt(t.toFixed(0));var e=this.Data.DataOffset+t;return e>=this.Data.Data.length&&(e=this.Data.Data.length-1),e<0?null:this.Data.Data[e]},this.DrawItem=function(t){var e=!0===this.Frame.IsHScreen,a=this.Frame.ChartBorder.GetLeft(),i=this.Frame.ChartBorder.GetTop()-this.Frame.ChartBorder.Top/2,r=(this.Frame.ChartBorder.GetRight(),Ha(this.Symbol));if(e){if(this.Frame.ChartBorder.Right<5)return;var a=2,i=this.Frame.ChartBorder.Right/2,n=(this.Frame.ChartBorder.GetHeight(),this.Frame.ChartBorder.GetChartWidth()),o=this.Frame.ChartBorder.GetTop();this.Canvas.translate(n,o),this.Canvas.rotate(90*Math.PI/180)}else if(this.Frame.ChartBorder.Top<5)return;this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.font=this.Font;var s={Left:a,Bottom:i,IsHScreen:e};if(!this.IsShowName||this.DrawText(this.Name,this.NameColor,s)){var l=Ht.FormatDateTimeString(t.DateTime,this.IsShowDate);if(this.DrawText(l,this.DateTimeColor,s)){var h=t.Close,u=t.Increase,c=t.Vol,d=t.Amount;if(t.Before&&(h=t.Before.Close,u=t.Before.Increase,c=t.Before.Vol,d=t.Before.Amount),h){var f=this.GetColor(h,this.YClose),l=zi.GetText("MTitle-Close",this.LanguageID)+h.toFixed(r);if(!this.DrawText(l,f,s))return}if(null!=u){var f=this.GetColor(u,0),l=zi.GetText("MTitle-Increase",this.LanguageID)+u.toFixed(2)+"%";if(!this.DrawText(l,f,s))return}var C=!0,p=this.Symbol.toUpperCase();if(Ji.IsET(p)&&!Ji.IsETShowAvPrice(p)&&(C=!1),t.AvPrice&&C){var f=this.GetColor(t.AvPrice,this.YClose),l=zi.GetText("MTitle-AvPrice",this.LanguageID)+t.AvPrice.toFixed(r);if(!this.DrawText(l,f,s))return}var l=zi.GetText("MTitle-Vol",this.LanguageID)+Ht.FromatIntegerString(c,2);if(this.DrawText(l,this.VolColor,s)){if(Ht.IsNumber(d)){var l=zi.GetText("MTitle-Amount",this.LanguageID)+Ht.FormatValueString(d,2);if(!this.DrawText(l,this.AmountColor,s))return}if(Ht.IsNumber(t.Position)){var l=zi.GetText("MTitle-Position",this.LanguageID)+Ht.FromatIntegerString(t.Position,2);if(!this.DrawText(l,this.VolColor,s))return}for(var D in this.OverlayChartPaint){var t=this.OverlayChartPaint[D];if(t.Symbol&&t.Title){var m=t.Title,v=t.Color,l="["+m+"]";if(!this.DrawText(l,v,s))return}}}}}},this.Draw=function(){if(this.LastShowData=null,this.IsShow){if(null==this.CursorIndex||!this.Data||!this.Data.Data||this.Data.Data.length<=0)return void this.OnDrawEventCallback(null);this.Canvas.font=this.Font,this.SpaceWidth=this.Canvas.measureText("0").width;var t=this.CursorIndex;t=parseInt(t.toFixed(0));var e=t+this.Data.DataOffset;e>=this.Data.Data.length&&(e=this.Data.Data.length-1);var a=this.Data.Data[e];this.LastShowData=a,this.Canvas.save(),this.OnDrawEventCallback(a),this.DrawItem(a),this.Canvas.restore()}}}function oe(t,e,a){this.Data=t,this.Name=e,this.Color=a,this.DataType,this.StringFormat=Wi.DEFAULT,this.FloatPrecision=2}function se(){this.newMethod=ie,this.newMethod(),delete this.newMethod,this.ClassName="DynamicChartTitlePainting",this.IsDynamic=!0,this.Data=new Array,this.Explain,this.ColorIndex,this.IsShowColorIndexTitle=!0,this.TradeIndex,this.IsShowTradeIndexTitle=!0,this.OverlayIndex=new xi.default,this.LanguageID=Ki.LANGUAGE_CHINESE_ID,this.TitleRect,this.IsDrawTitleBG=!1,this.BGColor=Xi.IndexTitleBGColor,this.OnDrawEvent,this.IsKLineFrame=!1,this.IsClickTitle=function(t,e){return!!this.TitleRect&&(t>this.TitleRect.Left&&t<this.TitleRect.Left+this.TitleRect.Width&&e>this.TitleRect.Top&&e<this.TitleRect.Top+this.TitleRect.Height)},this.FormatValue=function(t,e){return e.StringFormat==Wi.DEFAULT?Ht.FormatValueString(t,e.FloatPrecision,this.LanguageID):e.StringFormat==Wi.THOUSANDS?Ht.FormatValueThousandsString(t,e.FloatPrecision):e.StringFormat==Wi.ORIGINAL?t.toFixed(e.FloatPrecision).toString():e.StringFormat==Wi.INTEGER?Ht.FromatIntegerString(t,e.FloatPrecision,this.LanguageID):void 0},this.FormatMultiReport=function(t,e){var a="";for(var i in t){var r=t[i],n=r.Quarter,o=r.Year,s=r.Value;switch(a.length>0&&(a+=","),a+=o.toString(),n){case 1:a+="一季报 ";break;case 2:a+="半年报 ";break;case 3:a+="三季报 ";break;case 4:a+="年报 "}a+=this.FormatValue(s,e)}return a},this.Draw=function(){if(this.IsKLineFrame="KLineFrame"==this.Frame.ClassName||"KLineHScreenFrame"==this.Frame.ClassName,this.IsDrawTitleBG=this.Frame.IsDrawTitleBG,this.TitleRect=null,null!=this.CursorIndex&&this.Data&&!(this.Frame.ChartBorder.TitleHeight<5)){if(!0===this.Frame.IsHScreen)return this.Canvas.save(),this.HScreenDraw(),void this.Canvas.restore();var t=this.Frame.ChartBorder.GetLeft()+1,e=this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.TitleHeight/2,a=this.Frame.ChartBorder.GetRight();if(this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.font=this.Font,this.Title){var i=this.Canvas.measureText(this.Title).width+2;if(this.IsDrawTitleBG){var r=2*u();this.Canvas.fillStyle=this.BGColor,this.TitleRect={Left:t,Top:this.Frame.ChartBorder.GetTop()+r,Width:i,Height:this.Frame.ChartBorder.TitleHeight-2*r},this.Canvas.fillRect(this.TitleRect.Left,this.TitleRect.Top,this.TitleRect.Width,this.TitleRect.Height)}this.Canvas.fillStyle=this.TitleColor,this.Canvas.fillText(this.Title,t,e,i),t+=i}var n=this.Frame.GetLockRect();if(n){var o=Math.abs(this.CursorIndex-.5);this.IsKLineFrame&&(o=this.CursorIndex);if(this.Frame.GetXFromIndex(o.toFixed(0))>=n.Left)return}for(var s in this.Data){var l=this.Data[s];if(l&&l.Data&&l.Data.Data&&l.Name&&!(l.Data.Data.length<=0)){var h=null,c=null;if("StraightLine"==l.DataType)h=l.Data.Data[0],c=this.FormatValue(h,l);else{var o=Math.abs(this.CursorIndex-.5);o=parseInt(o.toFixed(0)),this.IsKLineFrame&&(o=this.CursorIndex);var d=l.Data.DataOffset+o;if(d>=l.Data.Data.length&&(d=l.Data.Data.length-1),d<0)continue;if(null==(h=l.Data.Data[d]))continue;"HistoryData-Vol"==l.DataType?(h=h.Vol,c=this.FormatValue(h,l)):c="MultiReport"==l.DataType?this.FormatMultiReport(h,l):this.FormatValue(h,l)}this.Canvas.fillStyle=l.Color;var f=l.Name+":"+c,i=this.Canvas.measureText(f).width+2;this.Canvas.fillText(f,t,e,i),t+=i}}if(this.Explain){this.Canvas.fillStyle=this.TitleColor;var f="说明:"+this.Explain,i=this.Canvas.measureText(f).width+2;t+i<a&&(this.Canvas.fillText(f,t,e,i),t+=i)}if(this.ColorIndex&&this.IsShowColorIndexTitle){this.Canvas.fillStyle=Xi.Title.ColorIndexColor;var C=this.ColorIndex.Name+this.ColorIndex.Param,i=this.Canvas.measureText(C).width+2;this.Canvas.fillText(C,t,e,i),t+=i}if(this.TradeIndex&&this.IsShowTradeIndexTitle){this.Canvas.fillStyle=Xi.Title.TradeIndexColor;var C=this.TradeIndex.Name+this.TradeIndex.Param,i=this.Canvas.measureText(C).width+2;this.Canvas.fillText(C,t,e,i),t+=i}this.DrawOverlayIndex(t+10*u())}},this.DrawOverlayIndex=function(t){var e=this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.TitleHeight/2,a=this.Frame.ChartBorder.GetRight();if(!0===this.Frame.IsHScreen&&(e=-this.Frame.ChartBorder.TitleHeight/2,a=this.Frame.ChartBorder.GetHeight()),!(t>a)){var i=5*u(),r=t,n=!0,o=!1,s=void 0;try{for(var l,h=(0,Si.default)(this.OverlayIndex);!(n=(l=h.next()).done);n=!0){C=l.value,t+=i;var c=C[1];if(c.Title){this.Canvas.fillStyle=this.TitleColor;var d=this.Canvas.measureText(c.Title).width+2;if(r=t,(t+=d)>a)break;this.Canvas.fillText(c.Title,r,e,d)}for(var f in c.Data){var C=c.Data[f];if(C&&C.Data&&C.Data.Data&&C.Name&&!(C.Data.Data.length<=0)){var p=null,D=null;if("StraightLine"==C.DataType)p=C.Data.Data[0],D=this.FormatValue(p,C);else{var m=Math.abs(this.CursorIndex-.5);m=parseInt(m.toFixed(0)),this.IsKLineFrame&&(m=this.CursorIndex);var v=C.Data.DataOffset+m;if(v>=C.Data.Data.length&&(v=C.Data.Data.length-1),v<0)continue;if(null==(p=C.Data.Data[v]))continue;"HistoryData-Vol"==C.DataType?(p=p.Vol,D=this.FormatValue(p,C)):D="MultiReport"==C.DataType?this.FormatMultiReport(p,C):this.FormatValue(p,C)}this.Canvas.fillStyle=C.Color;var g=C.Name+":"+D,d=this.Canvas.measureText(g).width+2;if(r=t,(t+=d)>a)break;this.Canvas.fillText(g,r,e,d)}}if(t>a)break}}catch(t){o=!0,s=t}finally{try{!n&&h.return&&h.return()}finally{if(o)throw s}}}},this.HScreenDraw=function(){var t=this.Frame.ChartBorder.GetRightTitle(),e=this.Frame.ChartBorder.GetTop();this.Canvas.translate(t,e),this.Canvas.rotate(90*Math.PI/180);var a=1,i=-this.Frame.ChartBorder.TitleHeight/2,r=this.Frame.ChartBorder.GetHeight();if(this.Canvas.textAlign="left",this.Canvas.textBaseline="middle",this.Canvas.font=this.Font,this.Title){var n=this.Canvas.measureText(this.Title).width+2;if(this.IsDrawTitleBG){var o=2*u();this.Canvas.fillStyle=this.BGColor,this.TitleRect={Left:this.Frame.ChartBorder.GetRightTitle(),Top:this.Frame.ChartBorder.GetTop(),Width:this.Frame.ChartBorder.TitleHeight,Height:n};var s={Left:a,Top:-this.Frame.ChartBorder.TitleHeight+o,Width:n,Height:this.Frame.ChartBorder.TitleHeight-2*o};this.Canvas.fillRect(s.Left,s.Top,s.Width,s.Height)}this.Canvas.fillStyle=this.TitleColor,this.Canvas.fillText(this.Title,a,i,n),a+=n}var l=this.Frame.GetLockRect();if(l){var h=Math.abs(this.CursorIndex-.5);this.IsKLineFrame&&(h=this.CursorIndex);if(this.Frame.GetXFromIndex(h.toFixed(0))>=l.Top)return}for(var c in this.Data){var d=this.Data[c];if(d&&d.Data&&d.Data.Data&&d.Name&&!(d.Data.Data.length<=0)){var f=null,C=null;if("StraightLine"==d.DataType)f=d.Data.Data[0],C=this.FormatValue(f,d);else{var h=Math.abs(this.CursorIndex-.5);h=parseInt(h.toFixed(0)),this.IsKLineFrame&&(h=this.CursorIndex);var p=d.Data.DataOffset+h;if(p>=d.Data.Data.length&&(p=d.Data.Data.length-1),p<0)continue;if(null==(f=d.Data.Data[p]))continue;"HistoryData-Vol"==d.DataType?(f=f.Vol,C=this.FormatValue(f,d)):C="MultiReport"==d.DataType?this.FormatMultiReport(f,d):this.FormatValue(f,d)}this.Canvas.fillStyle=d.Color;var D=d.Name+":"+C,n=this.Canvas.measureText(D).width+2;this.Canvas.fillText(D,a,i,n),a+=n}}if(this.Explain){this.Canvas.fillStyle=this.TitleColor;var D="说明:"+this.Explain,n=this.Canvas.measureText(D).width+2;a+n<r&&(this.Canvas.fillText(D,a,i,n),a+=n)}this.DrawOverlayIndex(a+5*u())},this.OnDrawEventCallback=function(t){if(this.OnDrawEvent&&this.OnDrawEvent.Callback){var e={Draw:t,Name:"DynamicChartTitlePainting"};this.OnDrawEvent.Callback(this.OnDrawEvent,e,this)}}}function le(){this.Frame,this.Canvas,this.Point=new Array,this.Value=new Array,this.LinePoint=[],this.PointCount=2,this.Status=0,this.PointStatus=0,this.MovePointIndex=null,this.ClassName="IChartDrawPicture",this.FinishedCallback,this.Guid=f(),this.Symbol,this.Period,this.IsSelected=!1,this.Option,this.LineColor="#1e90ff",this.LineWidth=2,this.BackupLineWidth=null,this.AreaColor="rgba(25,25,25,0.4)",this.PointColor=Xi.DrawPicture.PointColor[0],this.SetLastPoint=null,this.Update=null,this.Draw=function(){},this.SetOption=function(t){t&&(t.LineColor&&(this.LineColor=t.LineColor),t.LineWidth>0&&(this.LineWidth=t.LineWidth),t.AreaColor&&(this.AreaColor=t.AreaColor),t.PointColor&&(this.PointColor=t.PointColor))},this.SetLineWidth=function(){this.BackupLineWidth=null,this.LineWidth>0&&(this.BackupLineWidth=this.Canvas.lineWidth,this.Canvas.lineWidth=this.LineWidth*u())},this.RestoreLineWidth=function(){null!=this.BackupLineWidth&&(this.Canvas.lineWidth=this.BackupLineWidth)},this.PointToValue=function(){if(!this.Frame)return!1;var t=this.Frame.Data;if(!t)return!1;if(this.Frame.IsHScreen)for(var e in this.Point){var a=this.Point[e],i=parseInt(this.Frame.GetXData(a.Y))+t.DataOffset,r=this.Frame.GetYData(a.X),n={XValue:i,YValue:r},o=t.Data[i];n.DateTime={Date:o.Date},Ht.IsNumber(o.Time)&&(n.DateTime.Time=o.Time),this.Value[e]=n}else for(var e in this.Point){var a=this.Point[e],i=parseInt(this.Frame.GetXData(a.X))+t.DataOffset,r=this.Frame.GetYData(a.Y),n={XValue:i,YValue:r},o=t.Data[i];n.DateTime={Date:o.Date},Ht.IsNumber(o.Time)&&(n.DateTime.Time=o.Time),this.Value[e]=n}return!0},this.IsPointIn=function(t,e){return!1},this.ValueToPoint=function(){if(!this.Frame)return!1;var t=this.Frame.Data;if(!t)return!1;var e=this.Frame.IsHScreen;this.Point=[];for(var a in this.Value){var i=this.Value[a],r=new m;e?(r.Y=this.Frame.GetXFromIndex(i.XValue-t.DataOffset),r.X=this.Frame.GetYFromData(i.YValue)):(r.X=this.Frame.GetXFromIndex(i.XValue-t.DataOffset),r.Y=this.Frame.GetYFromData(i.YValue)),this.Point[a]=r}},this.UpdateXValue=function(){if(!this.Frame)return!1;var t=this.Frame.Data;if(!t)return!1;var e=[];for(var a in this.Value){var i=this.Value[a],r={Date:i.DateTime.Date};Ht.IsNumber(i.DateTime.Time)&&(r.Time=i.DateTime.Time),e[a]=r}t.FindDataIndexByDateTime(e);for(var a in e){var n=e[a],o=this.Value[a];n.Index>=0&&(o.XValue=n.Index)}},this.Move=function(t,e){if(20!=this.Status)return fasle;if(!this.Frame)return!1;if(!this.Frame.Data)return!1;if(null==this.MovePointIndex)return!1;var a=parseInt(this.MovePointIndex);if(100===a)for(var i in this.Point)this.Point[i].X+=t,this.Point[i].Y+=e;else{if(0!==a&&1!==a&&2!==a&&3!==a&&4!==a&&5!==a)return!1;a<this.Point.length&&(this.Point[a].X+=t,this.Point[a].Y+=e)}},this.ClipFrame=function(){if(this.Frame.IsHScreen)var t=this.Frame.ChartBorder.GetLeftEx(),e=this.Frame.ChartBorder.GetTop(),a=this.Frame.ChartBorder.GetWidthEx(),i=this.Frame.ChartBorder.GetHeight();else var t=this.Frame.ChartBorder.GetLeft(),e=this.Frame.ChartBorder.GetTopEx(),a=this.Frame.ChartBorder.GetWidth(),i=this.Frame.ChartBorder.GetHeightEx();this.Canvas.save(),this.Canvas.beginPath(),this.Canvas.rect(t,e,a,i),this.Canvas.clip()},this.CalculateDrawPoint=function(t){if(this.Status<2)return null;if(!this.Point.length||!this.Frame)return null;var e=new Array;if(10==this.Status){var a=this.Frame.Data;if(!a)return null;var i=this.Frame.XPointCount,r=0,n=this.Frame.IsHScreen;for(var o in this.Value){var s=this.Value[o],l=s.XValue-a.DataOffset;(l<0||l>=i)&&++r;var h=new m;n?(h.Y=this.Frame.GetXFromIndex(s.XValue-a.DataOffset,!1),h.X=this.Frame.GetYFromData(s.YValue,!1)):(h.X=this.Frame.GetXFromIndex(s.XValue-a.DataOffset,!1),h.Y=this.Frame.GetYFromData(s.YValue,!1)),e.push(h)}if(t&&!0===t.IsCheckX&&r==this.Value.length)return null}else e=this.Point;return e},this.IsYValueInFrame=function(t){return!!this.Frame&&!(t>this.Frame.HorizontalMax||t<this.Frame.HorizontalMin)},this.DrawPoint=function(t){if(t&&!(t.length<=0)){this.ClipFrame();var e=u();for(var a in t){var i=t[a];this.Canvas.beginPath(),this.Canvas.arc(i.X,i.Y,5*e,0,360,!1),this.Canvas.fillStyle=this.PointColor,this.Canvas.fill(),this.Canvas.closePath()}this.Canvas.restore()}},this.CalculateExtendLinePoint=function(t,e){var a={},i=(this.Frame.ChartBorder.GetLeft(),this.Frame.ChartBorder.GetRight(),this.Frame.ChartBorder.GetTopEx()),r=this.Frame.ChartBorder.GetBottom(),n=e.X-t.X,o=e.Y-t.Y;if(n>0){var s=r-t.Y,l=n*s/o,h=new m;h.X=t.X+l,h.Y=r,a.End=h;var s=e.Y-i,l=n*s/o,u=new m;u.Y=i,u.X=e.X-l,a.Start=u}else{var s=r-t.Y,l=Math.abs(n)*s/o,h=new m;h.X=t.X-l,h.Y=r,a.End=h;var s=e.Y-i,l=Math.abs(n)*s/o,u=new m;u.Y=i,u.X=e.X+l,a.Start=u}return a},this.IsPointInXYValue=function(t,e){if(!this.Frame)return-1;var a=this.Frame.Data;if(!a)return-1;if(!this.Value)return-1;var i=5;this.Option&&(i+=this.Option.Zoom);var r=this.Frame.IsHScreen;i*=u();for(var n=0;n<this.Value.length;++n){var o=this.Value[n],s=new m;if(r?(s.Y=this.Frame.GetXFromIndex(o.XValue-a.DataOffset),s.X=this.Frame.GetYFromData(o.YValue)):(s.X=this.Frame.GetXFromIndex(o.XValue-a.DataOffset),s.Y=this.Frame.GetYFromData(o.YValue)),this.Canvas.beginPath(),this.Canvas.arc(s.X,s.Y,i,0,360),this.Canvas.isPointInPath(t,e))return n}return-1},this.IsPointInLine=function(t,e){if(!this.LinePoint)return-1;var a=5;this.Option&&(a+=this.Option.Zoom),a*=u();for(var i in this.LinePoint){var r=this.LinePoint[i],n=r.Start,o=r.End;if(this.Canvas.beginPath(),n.X==o.X?(this.Canvas.moveTo(n.X-a,n.Y),this.Canvas.lineTo(n.X+a,n.Y),this.Canvas.lineTo(o.X+a,o.Y),this.Canvas.lineTo(o.X-a,o.Y)):(this.Canvas.moveTo(n.X,n.Y+a),this.Canvas.lineTo(n.X,n.Y-a),this.Canvas.lineTo(o.X,o.Y-a),this.Canvas.lineTo(o.X,o.Y+a)),this.Canvas.closePath(),this.Canvas.isPointInPath(t,e))return i}return-1},this.IsPointIn_XYValue_Line=function(t,e){if(10!=this.Status)return-1;var a=this.IsPointInXYValue(t,e);return a>=0?a:(a=this.IsPointInLine(t,e),a>=0?100:-1)},this.DrawLine=function(t,e,a){a&&this.Canvas.setLineDash([5,10]),this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.X,t.Y),this.Canvas.lineTo(e.X,e.Y),this.Canvas.stroke(),a&&this.Canvas.setLineDash([])},this.CreateLineData=function(t,e){var a={Start:new m,End:new m};return a.Start.Y=t.Y,a.Start.X=t.X,a.End.Y=e.Y,a.End.X=e.X,a},this.ExportStorageData=function(){var t={ClassName:this.ClassName,Symbol:this.Symbol,Guid:this.Guid,Period:this.Period,Value:[],FrameID:this.Frame.Identify,LineColor:this.LineColor,AreaColor:this.AreaColor};for(var e in this.Value){var a=this.Value[e];t.Value.push({XValue:a.XValue,YValue:a.YValue,DateTime:a.DateTime})}return this.Text&&(t.Text=this.Text),this.FontOption&&(t.FontOption=this.FontOption),t}}function he(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureLine",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t&&2==t.length){this.ClipFrame();var e=t[0],a=t[1];this.SetLineWidth(),this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(e.X,e.Y),this.Canvas.lineTo(a.X,a.Y),this.Canvas.stroke(),this.RestoreLineWidth();var i={Start:e,End:a};this.LinePoint.push(i),this.DrawPoint(t),this.Canvas.restore()}}}function ue(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureHaflLine",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t&&2==t.length){var e=t[0],a=t[1];this.ClipFrame(),this.Canvas.strokeStyle=this.LineColor,this.SetLineWidth(),this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y),this.Canvas.lineTo(t[1].X,t[1].Y);var i=this.CalculateEndPoint(t);this.Canvas.lineTo(i.X,i.Y),this.Canvas.stroke(),this.RestoreLineWidth();var r={Start:e,End:a};this.LinePoint.push(r),this.DrawPoint(t),this.Canvas.restore()}},this.CalculateEndPoint=function(t){var e=this.Frame.ChartBorder.GetLeft(),a=this.Frame.ChartBorder.GetRight(),i=t[1].X-t[0].X,r=t[1].Y-t[0].Y;if(i>0){var n=a-t[0].X,o=n*r/i,s=o+t[0].Y,l=new m;return l.X=a,l.Y=s,l}var n=t[0].X-e,o=n*r/Math.abs(i),s=o+t[0].Y,l=new m;return l.X=e,l.Y=s,l}}function ce(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.PointCount=1,this.ClassName="ChartDrawPictureHorizontalLine",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Font=16*u()+"px 微软雅黑",this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint();if(t&&1==t.length&&this.Frame&&1==this.Value.length){if(!this.IsYValueInFrame(this.Value[0].YValue))return null;var e=this.Frame.ChartBorder.GetLeft(),a=this.Frame.ChartBorder.GetRight();this.ClipFrame(),this.Canvas.strokeStyle=this.LineColor,this.SetLineWidth(),this.Canvas.beginPath(),this.Canvas.moveTo(e,t[0].Y),this.Canvas.lineTo(a,t[0].Y),this.Canvas.stroke(),this.RestoreLineWidth();var i={Start:new m,End:new m};i.Start.X=e,i.Start.Y=t[0].Y,i.End.X=a,i.End.Y=t[0].Y,this.LinePoint.push(i);var r=this.Frame.GetYData(t[0].Y);this.Canvas.fillStyle=this.LineColor,this.Canvas.textAlign="let",this.Canvas.textBaseline="bottom",this.Canvas.font=this.Font,this.Canvas.fillText(r.toFixed(2),e,t[0].Y),this.DrawPoint(t),this.Canvas.restore()}}}function de(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureTrendLine",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t&&2==t.length){var e=t[0],a=t[1],i=this.CalculateExtendLinePoint(e,a);this.ClipFrame(),this.Canvas.strokeStyle=this.LineColor,this.SetLineWidth(),this.Canvas.beginPath(),this.Canvas.moveTo(i.Start.X,i.Start.Y),this.Canvas.lineTo(i.End.X,i.End.Y),this.Canvas.stroke(),this.RestoreLineWidth();var r={Start:e,End:a};this.LinePoint.push(r),this.DrawPoint(t),this.Canvas.restore()}}}function fe(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureRect",this.Draw=function(){var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});t&&2==t.length&&(this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame(),this.Canvas.strokeStyle=this.LineColor,this.SetLineWidth(),this.Canvas.beginPath(),this.Canvas.rect(t[0].X,t[0].Y,t[1].X-t[0].X,t[1].Y-t[0].Y),this.Canvas.stroke(),this.RestoreLineWidth(),this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.fillRect(t[0].X,t[0].Y,t[1].X-t[0].X,t[1].Y-t[0].Y),this.Canvas.restore(),this.DrawPoint(t))},this.IsPointIn=function(t,e){if(!this.Frame||10!=this.Status)return-1;if(!this.Frame.Data)return-1;var a=this.IsPointInXYValue(t,e);if(a>=0)return a;var i=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(!i||2!=i.length)return-1;var r=[{X:i[0].X,Y:i[0].Y},{X:i[1].X,Y:i[0].Y}];return this.IsPointInLine(r,t,e)?100:(r=[{X:i[1].X,Y:i[0].Y},{X:i[1].X,Y:i[1].Y}],this.IsPointInLine2(r,t,e)?100:(r=[{X:i[1].X,Y:i[1].Y},{X:i[0].X,Y:i[1].Y}],this.IsPointInLine(r,t,e)?100:(r=[{X:i[0].X,Y:i[1].Y},{X:i[0].X,Y:i[0].Y}],this.IsPointInLine2(r,t,e)?100:-1)))},this.IsPointInLine=function(t,e,a){var i=5;if(this.Option&&(i+=this.Option.Zoom),i*=u(),this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y+i),this.Canvas.lineTo(t[0].X,t[0].Y-i),this.Canvas.lineTo(t[1].X,t[1].Y-i),this.Canvas.lineTo(t[1].X,t[1].Y+i),this.Canvas.closePath(),this.Canvas.isPointInPath(e,a))return!0},this.IsPointInLine2=function(t,e,a){var i=5;if(this.Option&&(i+=this.Option.Zoom),i*=u(),this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X-i,t[0].Y),this.Canvas.lineTo(t[0].X+i,t[0].Y),this.Canvas.lineTo(t[1].X+i,t[1].Y),this.Canvas.lineTo(t[1].X-i,t[1].Y),this.Canvas.closePath(),this.Canvas.isPointInPath(e,a))return!0}}function Ce(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureArc",this.Draw=function(){var t=this.CalculateDrawPoint();if(t&&2==t.length){if(this.ClipFrame(),this.SetLineWidth(),t[0].X<t[1].X&&t[0].Y>t[1].Y){var e=t[1].X-t[0].X,a=t[0].Y-t[1].Y,i=e>a?1/e:1/a,r=t[0].X,n=t[1].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var o=1.5*Math.PI;o<2*Math.PI;o+=i)this.Canvas.lineTo(r+e*Math.cos(o),n+a*Math.sin(o)*-1);for(var s=0;s<=.5*Math.PI;s+=i)this.Canvas.lineTo(r+e*Math.cos(s),n+a*Math.sin(s)*-1)}else if(t[0].X>t[1].X&&t[0].Y>t[1].Y){var e=t[0].X-t[1].X,a=t[0].Y-t[1].Y,i=e>a?1/e:1/a,r=t[1].X,n=t[0].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var o=0;o<=Math.PI;o+=i)this.Canvas.lineTo(r+e*Math.cos(o),n+a*Math.sin(o)*-1)}else if(t[0].X>t[1].X&&t[0].Y<t[1].Y){var e=t[0].X-t[1].X,a=t[1].Y-t[0].Y,i=e>a?1/e:1/a,r=t[0].X,n=t[1].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var o=.5*Math.PI;o<=1.5*Math.PI;o+=i)this.Canvas.lineTo(r+e*Math.cos(o),n+a*Math.sin(o)*-1)}else if(t[0].X<t[1].X&&t[0].Y<t[1].Y){var e=t[1].X-t[0].X,a=t[1].Y-t[0].Y,i=e>a?1/e:1/a,r=t[1].X,n=t[0].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var o=Math.PI;o<=2*Math.PI;o+=i)this.Canvas.lineTo(r+e*Math.cos(o),n+a*Math.sin(o)*-1)}this.Canvas.strokeStyle=this.LineColor,this.Canvas.stroke(),this.RestoreLineWidth(),this.Canvas.restore(),this.DrawPoint(t)}},this.IsPointIn=function(t,e){if(!this.Frame||10!=this.Status)return-1;if(!this.Frame.Data)return-1;var a=this.IsPointInXYValue(t,e);if(a>=0)return a;var i=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(!i||2!=i.length)return-1;var r=[{X:i[0].X,Y:i[0].Y},{X:i[1].X,Y:i[1].Y}];return this.IsPointInArc(r,t,e)?100:-1},this.IsPointInArc=function(t,e,a){if(2!=t.length)return!1;if(t[0].X<t[1].X&&t[0].Y>t[1].Y){var i=t[1].X-t[0].X,r=t[0].Y-t[1].Y,n=i>r?1/i:1/r,o=.8*i,s=.8*r,l=o>s?1/o:1/s,h=t[0].X,u=t[1].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var c=1.5*Math.PI;c<2*Math.PI;c+=n)this.Canvas.lineTo(h+i*Math.cos(c),u+r*Math.sin(c)*-1);for(var d=0;d<=.5*Math.PI;d+=n)this.Canvas.lineTo(h+i*Math.cos(d),u+r*Math.sin(d)*-1);for(var f=.5*Math.PI;f>=0;f-=l)this.Canvas.lineTo(h+o*Math.cos(f),u+s*Math.sin(d)*-1);for(var C=2*Math.PI;C>=1.5*Math.PI;C-=l)this.Canvas.lineTo(h+o*Math.cos(C),u+s*Math.sin(C)*-1);this.Canvas.closePath()}else if(t[0].X>t[1].X&&t[0].Y>t[1].Y){var i=t[0].X-t[1].X,r=t[0].Y-t[1].Y,n=i>r?1/i:1/r,o=.8*i,s=.8*r,l=o>s?1/o:1/s,h=t[1].X,u=t[0].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var c=0;c<=Math.PI;c+=n)this.Canvas.lineTo(h+i*Math.cos(c),u+r*Math.sin(c)*-1);for(var d=Math.PI;d>=0;d-=l)this.Canvas.lineTo(h+o*Math.cos(d),u+s*Math.sin(d)*-1);this.Canvas.closePath()}else if(t[0].X>t[1].X&&t[0].Y<t[1].Y){var i=t[0].X-t[1].X,r=t[1].Y-t[0].Y,n=i>r?1/i:1/r,o=.8*i,s=.8*r,l=o>s?1/o:1/s,h=t[0].X,u=t[1].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var c=.5*Math.PI;c<=1.5*Math.PI;c+=n)this.Canvas.lineTo(h+i*Math.cos(c),u+r*Math.sin(c)*-1);for(var d=1.5*Math.PI;d>=.5*Math.PI;d-=l)this.Canvas.lineTo(h+o*Math.cos(d),u+s*Math.sin(d)*-1);this.Canvas.closePath()}else if(t[0].X<t[1].X&&t[0].Y<t[1].Y){var i=t[1].X-t[0].X,r=t[1].Y-t[0].Y,n=i>r?1/i:1/r,o=.8*i,s=.8*r,l=o>s?1/o:1/s,h=t[1].X,u=t[0].Y;this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y);for(var c=Math.PI;c<=2*Math.PI;c+=n)this.Canvas.lineTo(h+i*Math.cos(c),u+r*Math.sin(c)*-1);for(var d=2*Math.PI;d>=Math.PI;d-=l)this.Canvas.lineTo(h+o*Math.cos(d),u+s*Math.sin(d)*-1);this.Canvas.closePath()}return!!this.Canvas.isPointInPath(e,a)}}function pe(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureWaveMW",this.PointCount=2,this.IsPointIn=this.IsPointIn_XYValue_Line,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t){this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame(),this.CalculateLines(t),this.SetLineWidth();for(var e in this.LinePoint){var a=this.LinePoint[e];this.DrawLine(a.Start,a.End)}this.RestoreLineWidth(),this.DrawPoint(t),this.Canvas.restore()}},this.CalculateLines=function(t){if(this.Frame&&!(t.length<2))if(2==this.Status){var e={Start:new m,End:new m};e.Start.Y=t[0].Y,e.Start.X=t[0].X,e.End.Y=t[1].Y,e.End.X=t[1].X,this.LinePoint.push(e);var a=t[1].X-t[0].X;e={Start:new m,End:new m},e.Start.Y=t[1].Y,e.Start.X=t[1].X,e.End.Y=t[0].Y,e.End.X=t[1].X+a,this.LinePoint.push(e);var i=e.End,r=new m;r.X=i.X,r.Y=i.Y,this.Point[2]=r,e={Start:new m,End:new m},e.Start.Y=i.Y,e.Start.X=i.X,e.End.Y=t[1].Y,e.End.X=i.X+a,this.LinePoint.push(e);var i=e.End,r=new m;r.X=i.X,r.Y=i.Y,this.Point[3]=r,e={Start:new m,End:new m},e.Start.Y=i.Y,e.Start.X=i.X,e.End.Y=t[0].Y,e.End.X=i.X+a,this.LinePoint.push(e);var i=e.End,r=new m;r.X=i.X,r.Y=i.Y,this.Point[4]=r,this.PointCount=this.Point.length}else if(5==t.length){var e={Start:new m,End:new m};e.Start.Y=t[0].Y,e.Start.X=t[0].X,e.End.Y=t[1].Y,e.End.X=t[1].X,this.LinePoint.push(e);var e={Start:new m,End:new m};e.Start.Y=t[1].Y,e.Start.X=t[1].X,e.End.Y=t[2].Y,e.End.X=t[2].X,this.LinePoint.push(e);var e={Start:new m,End:new m};e.Start.Y=t[2].Y,e.Start.X=t[2].X,e.End.Y=t[3].Y,e.End.X=t[3].X,this.LinePoint.push(e);var e={Start:new m,End:new m};e.Start.Y=t[3].Y,e.Start.X=t[3].X,e.End.Y=t[4].Y,e.End.X=t[4].X,this.LinePoint.push(e)}}}function De(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureParallelLines",this.IsPointIn=this.IsPointIn_XYValue_Line,this.PointCount=3,this.LastPoint,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t){this.AreaColor=le.ColorToRGBA(this.LineColor,.3);var e=t.slice(0);this.CalculateLines(e),this.ClipFrame();for(var a in this.LinePoint){var i=this.LinePoint[a];this.DrawLine(i.Start,i.End)}this.DrawArea(),this.DrawPoint(e),this.Canvas.restore()}},this.SetLastPoint=function(t){this.LastPoint={X:t.X,Y:t.Y}},this.DrawArea=function(){2==this.LinePoint.length&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(this.LinePoint[0].Start.X,this.LinePoint[0].Start.Y),this.Canvas.lineTo(this.LinePoint[0].End.X,this.LinePoint[0].End.Y),this.Canvas.lineTo(this.LinePoint[1].End.X,this.LinePoint[1].End.Y),this.Canvas.lineTo(this.LinePoint[1].Start.X,this.LinePoint[1].Start.Y),this.Canvas.closePath(),this.Canvas.fill())},this.CalculateLines=function(t){if(2==this.PointStatus&&this.LastPoint){var e=new m;e.X=this.LastPoint.X,e.Y=this.LastPoint.Y,t[2]=e}if(2==t.length){var a=this.CalculateExtendLinePoint(t[0],t[1]);this.LinePoint.push(a)}else if(3==t.length){var a=this.CalculateExtendLinePoint(t[0],t[1]);this.LinePoint.push(a);var i=t[2].X-t[1].X,r=t[2].Y-t[1].Y,n=new m,o=new m;n.X=t[0].X+i,n.Y=t[0].Y+r,o.X=t[1].X+i,o.Y=t[1].Y+r,a=this.CalculateExtendLinePoint(n,o),this.LinePoint.push(a)}}}function me(){this.newMethod=De,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPicturePriceChannel",this.CalculateLines=function(t){if(2==this.PointStatus&&this.LastPoint){var e=new m;e.X=this.LastPoint.X,e.Y=this.LastPoint.Y,t[2]=e}if(2==t.length){var a=this.CalculateExtendLinePoint(t[0],t[1]);this.LinePoint.push(a)}else if(3==t.length){var a=this.CalculateExtendLinePoint(t[0],t[1]);this.LinePoint.push(a);var i=t[2].X-t[1].X,r=t[2].Y-t[1].Y,n=new m,o=new m;n.X=t[0].X+i,n.Y=t[0].Y+r,o.X=t[1].X+i,o.Y=t[1].Y+r,a=this.CalculateExtendLinePoint(n,o),this.LinePoint.push(a);var n=new m,o=new m;n.X=t[0].X-i,n.Y=t[0].Y-r,o.X=t[1].X-i,o.Y=t[1].Y-r,a=this.CalculateExtendLinePoint(n,o),this.LinePoint.push(a)}},this.DrawArea=function(){3==this.LinePoint.length&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(this.LinePoint[1].Start.X,this.LinePoint[1].Start.Y),this.Canvas.lineTo(this.LinePoint[1].End.X,this.LinePoint[1].End.Y),this.Canvas.lineTo(this.LinePoint[2].End.X,this.LinePoint[2].End.Y),this.Canvas.lineTo(this.LinePoint[2].Start.X,this.LinePoint[2].Start.Y),this.Canvas.closePath(),this.Canvas.fill())}}function ve(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureParallelChannel",this.ChannelWidth=50,this.AreaColor="rgba(25,25,25,0.4)",this.LinePoint=[],this.CalculateDrawPoint=function(){if(this.Status<2)return null;if(!this.Point.length||!this.Frame)return null;var t=this.Frame.Data;if(!t)return null;var e=[];if(10==this.Status)for(var a=0;a<2;++a){var i=this.Value[a],r=new m;r.X=this.Frame.GetXFromIndex(i.XValue-t.DataOffset),r.Y=this.Frame.GetYFromData(i.YValue),e.push(r)}else for(var a=0;a<this.Point.length;++a){var i=this.Point[a],r=new m;r.X=i.X,r.Y=i.Y,e.push(r)}if(e.length>=2){var n={Start:new m,End:new m};if(n.Start.X=e[0].X,n.Start.Y=e[0].Y,n.End.X=e[1].X,n.End.Y=e[1].Y,this.LinePoint.push(n),3==e.length||10==this.Status){var o=n.End.X-n.Start.X,s=n.End.Y-n.Start.Y,l=Math.atan(Math.abs(o/s)),h=this.ChannelWidth/Math.sin(l);n={Start:new m,End:new m},n.Start.X=e[0].X,n.Start.Y=e[0].Y-h,n.End.X=e[1].X,n.End.Y=e[1].Y-h,this.LinePoint.push(n);var u=new m;u.X=n.Start.X+(n.End.X-n.Start.X)/2,u.Y=n.Start.Y+(n.End.Y-n.Start.Y)/2,e[3]=u,this.Point[2]=u;var c=parseInt(this.Frame.GetXData(u.X))+t.DataOffset,d=this.Frame.GetYData(u.Y);this.Value[2]={XValue:c,YValue:d},this.PointCount=this.Point.length}}return e},this.DrawLine=function(t,e){this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.X,t.Y),this.Canvas.lineTo(e.X,e.Y),this.Canvas.stroke()},this.DrawArea=function(t,e,a,i){this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.X,t.Y),this.Canvas.lineTo(e.X,e.Y),this.Canvas.lineTo(a.X,a.Y),this.Canvas.lineTo(i.X,i.Y),this.Canvas.closePath(),this.Canvas.fill()},this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint();if(t){this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame();for(var e in this.LinePoint){var a=this.LinePoint[e];this.DrawLine(a.Start,a.End)}2==this.LinePoint.length&&this.DrawArea(this.LinePoint[0].Start,this.LinePoint[0].End,this.LinePoint[1].End,this.LinePoint[1].Start),this.Canvas.restore(),this.DrawPoint(t)}},this.Move=function(t,e){if(20!=this.Status)return fasle;if(!this.Frame)return!1;if(!this.Frame.Data)return!1;if(100==this.MovePointIndex)for(var a in this.Point)this.Point[a].X+=t,this.Point[a].Y+=e;else if(0==this.MovePointIndex||1==this.MovePointIndex)this.MovePointIndex<this.Point.length&&(this.Point[this.MovePointIndex].X+=t,this.Point[this.MovePointIndex].Y+=e);else if(2==this.MovePointIndex){this.Point[this.MovePointIndex].X+=t,this.Point[this.MovePointIndex].Y+=e;var i=this.Point[1].X-this.Point[0].X,r=this.Point[1].Y-this.Point[0].Y,n=Math.atan(Math.abs(i/r)),o=this.ChannelWidth/Math.sin(n)-e;this.ChannelWidth=Math.sin(n)*o}},this.IsPointIn=function(t,e){if(!this.Frame||10!=this.Status)return-1;var a=this.Frame.Data;if(!a)return-1;for(var i=0;i<this.Value.length;++i){var r=this.Value[i],n=new m;if(i<2)n.X=this.Frame.GetXFromIndex(r.XValue-a.DataOffset),n.Y=this.Frame.GetYFromData(r.YValue);else{if(i>=this.Point.length)continue;n.X=this.Point[i].X,n.Y=this.Point[i].Y}if(this.Canvas.beginPath(),this.Canvas.arc(n.X,n.Y,5,0,360),this.Canvas.isPointInPath(t,e))return i}for(var i in this.LinePoint){var r=this.LinePoint[i],o=r.Start,s=r.End;if(this.Canvas.beginPath(),this.Canvas.moveTo(o.X,o.Y+5),this.Canvas.lineTo(o.X,o.Y-5),this.Canvas.lineTo(s.X,s.Y-5),this.Canvas.lineTo(s.X,s.Y+5),this.Canvas.closePath(),this.Canvas.isPointInPath(t,e))return 100}return-1}}function ge(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureText",this.Text="文本",this.PointCount=1,this.FontOption={Family:"微软雅黑",Size:20,Weight:null,Style:null},this.TextRect=null,this.IsInitialized=!1,this.SettingMenu,this.HQChart,this.Draw=function(t){this.TextRect=null;var e=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(e&&1==e.length){this.ClipFrame(),this.Canvas.fillStyle=this.LineColor,this.Canvas.textAlign="center",this.Canvas.textBaseline="bottom",this.Canvas.font=this.GetTextFont(),this.Canvas.fillText(this.Text,e[0].X,e[0].Y);var a=this.Canvas.measureText(this.Text).width,i=this.FontOption.Size*u();this.TextRect={},this.TextRect.Left=e[0].X-a/2,this.TextRect.Top=e[0].Y-i,this.TextRect.Width=a,this.TextRect.Height=i,this.Canvas.restore(),!1===this.IsInitialized&&(this.SetTextOption(),this.IsInitialized=!0)}},this.GetTextFont=function(){var t=16*u()+"px 微软雅黑";if(!this.FontOption||!this.FontOption.Family||this.FontOption.Size<=0)return t;var e="";return this.FontOption.Color&&(e+=this.FontOption.Color+" "),this.FontOption.Style&&(e+=this.FontOption.Style+" "),this.FontOption.Weight&&(e+=this.FontOption.Weight+" "),this.FontOption.Size>=0&&(e+=this.FontOption.Size*u()+"px "),e+=this.FontOption.Family},this.SetTextOption=function(){bi.Chart.Log("[ChartDrawPictureText::SetTextOption]"),this.SettingMenu||(this.SettingMenu=new Ma(this.Frame.ChartBorder.UIElement.parentNode)),this.SettingMenu.ChartPicture=this,this.SettingMenu.HQChart=this.HQChart,this.SettingMenu.Position={Left:this.TextRect.Left+this.TextRect.Width,Top:this.TextRect.Top},this.SettingMenu.DoModal()},this.IsPointIn=function(t,e){return this.Frame&&10==this.Status&&this.Frame.Data&&this.TextRect?(this.Canvas.beginPath(),this.Canvas.rect(this.TextRect.Left,this.TextRect.Top,this.TextRect.Width,this.TextRect.Height),this.Canvas.isPointInPath(t,e)?100:-1):-1}}function Se(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureIconFont",this.PointCount=1,this.Text="",this.FontOption={Family:"iconfont",Size:24},this.TextRect=null,this.SettingMenu,this.Draw=function(){this.TextRect=null;var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t&&1==t.length){var e=this.GetTextFont();if(e){this.ClipFrame();var a=this.Frame.IsHScreen,i=u();this.Canvas.fillStyle=this.LineColor,this.Canvas.textAlign="center",this.Canvas.textBaseline="bottom",this.Canvas.font=e,a?(this.Canvas.translate(t[0].X,t[0].Y),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(this.Text,0,0)):this.Canvas.fillText(this.Text,t[0].X,t[0].Y);var r=this.Canvas.measureText(this.Text).width;this.TextRect={},this.TextRect.Left=t[0].X-r/2,this.TextRect.Top=t[0].Y-this.FontOption.Size*i,this.TextRect.Width=r,this.TextRect.Height=this.FontOption.Size*i,this.Canvas.restore()}}},this.GetTextFont=function(){if(!this.FontOption||!this.FontOption.Family||this.FontOption.Size<=0)return null;var t="";return this.FontOption.Size>=0&&(t+=this.FontOption.Size*u()+"px "),t+=this.FontOption.Family},this.IsPointIn=function(t,e){if(!this.Frame||10!=this.Status)return-1;if(!this.Frame.Data)return-1;if(!this.TextRect)return-1;var a=0;return this.Option&&this.Option.Zoom>=1&&(a=this.Option.Zoom*u()),this.Canvas.beginPath(),this.Canvas.rect(this.TextRect.Left-a,this.TextRect.Top-a,this.TextRect.Width+2*a,this.TextRect.Height+2*a),this.Canvas.isPointInPath(t,e)?100:-1}}function Ie(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureGannFan",this.IsPointIn=this.IsPointIn_XYValue_Line,this.LinePoint=[],this.Font=16*u()+"px 微软雅黑",this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t&&2==t.length){this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame();var e=this.GetQuadrant(t[0],t[1]);if(this.SetLineWidth(),1===e||4===e){this.CalculateLines(t[0],t[1],e),this.DrawArea();for(var a in this.LinePoint){var i=this.LinePoint[a];this.DrawLine(i.Start,i.End,i.IsDottedLine)}for(var a in this.LinePoint){var i=this.LinePoint[a];i.Text&&i.PtEnd&&this.DrawTitle(i.PtEnd,i.Text)}}else this.DrawLine(t[0],t[1],!1);this.RestoreLineWidth(),this.Canvas.restore(),this.DrawPoint(t)}},this.GetQuadrant=function(t,e){return t.X<e.X&&t.Y>e.Y?1:t.X<e.X&&t.Y>e.Y?2:t.X<e.X&&t.Y<e.Y?4:3},this.DrawLine=function(t,e,a){a&&this.Canvas.setLineDash([5,10]),this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.X,t.Y),this.Canvas.lineTo(e.X,e.Y),this.Canvas.stroke(),a&&this.Canvas.setLineDash([])},this.DrawTitle=function(t,e){this.Canvas.fillStyle=this.LineColor,this.Canvas.textAlign="left",this.Canvas.textBaseline="bottom",this.Canvas.font=this.Font,this.Canvas.fillText(e,t.X,t.Y)},this.DrawArea=function(){var t=null,e=null;for(var a in this.LinePoint){var i=this.LinePoint[a];"1:8"==i.Text?t=this.LinePoint[a]:"8:1"==i.Text&&(e=this.LinePoint[a])}t&&e&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.End.X,t.End.Y),this.Canvas.lineTo(t.Start.X,t.Start.Y),this.Canvas.lineTo(e.End.X,e.End.Y),this.Canvas.closePath(),this.Canvas.fill())},this.CalculateLines=function(t,e,a){if(!this.Frame)return!1;var i=(this.Frame.ChartBorder.GetTopEx(),this.Frame.ChartBorder.GetRight(),this.Frame.ChartBorder.GetBottom(),[.5,1/3,.25,.125,2/3]),r=["1:2","1:3","1:4","1:8","2:3"],n=["2:1","3:1","4:1","8:1","3:2"],o=new m,s=new m;o.X=t.X,o.Y=t.Y,s.X=e.X,s.Y=e.Y;var l=Math.abs(t.X-e.X),h=Math.abs(t.Y-e.Y);if(1===a){var u=this.CalculateExtendLinePoint(t,e),c={Start:o,End:u.Start,IsDottedLine:!1,PtEnd:s,Text:"1:1"};this.LinePoint.push(c);for(var d in i){if(l>5){c={Start:o,End:null,IsDottedLine:!1,PtEnd:new m,Text:r[d]},c.PtEnd.Y=e.Y,c.PtEnd.X=t.X+l*i[d];var u=this.CalculateExtendLinePoint(c.Start,c.PtEnd);c.End=u.Start,this.LinePoint.push(c)}if(h>5){c={Start:o,End:null,IsDottedLine:!1,PtEnd:new m,Text:n[d]},c.PtEnd.Y=t.Y-h*i[d],c.PtEnd.X=e.X;var u=this.CalculateExtendLinePoint(c.Start,c.PtEnd);c.End=u.Start,this.LinePoint.push(c)}}}else{if(4!=a)return!1;var u=this.CalculateExtendLinePoint(t,e),c={Start:o,End:u.End,IsDottedLine:!1,PtEnd:s,Text:"1:1"};this.LinePoint.push(c);for(var d in i){if(l>5){c={Start:o,End:null,IsDottedLine:!1,PtEnd:new m,Text:r[d]},c.PtEnd.Y=e.Y,c.PtEnd.X=t.X+l*i[d];var u=this.CalculateExtendLinePoint(c.Start,c.PtEnd);c.End=u.End,this.LinePoint.push(c)}if(h>5){c={Start:o,End:null,IsDottedLine:!1,PtEnd:new m,Text:n[d]},c.PtEnd.Y=t.Y+h*i[d],c.PtEnd.X=e.X;var u=this.CalculateExtendLinePoint(c.Start,c.PtEnd);c.End=u.End,this.LinePoint.push(c)}}}return!0}}function xe(){this.newMethod=Ie,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureResistanceLine",this.CalculateLines=function(t,e,a){if(!this.Frame)return!1;var i=(this.Frame.ChartBorder.GetTopEx(),this.Frame.ChartBorder.GetRight(),this.Frame.ChartBorder.GetBottom(),[1/3,2/3]),r=["3:1","3:2"],n=new m,o=new m;n.X=t.X,n.Y=t.Y,o.X=e.X,o.Y=e.Y;var s=(Math.abs(t.X-e.X),Math.abs(t.Y-e.Y));if(1===a){var l=this.CalculateExtendLinePoint(t,e),h={Start:n,End:l.Start,IsDottedLine:!1,PtEnd:o,Text:"1:1"};this.LinePoint.push(h);for(var u in i)if(s>5){h={Start:n,End:null,IsDottedLine:!1,PtEnd:new m,Text:r[u]},h.PtEnd.Y=t.Y-s*i[u],h.PtEnd.X=e.X;var l=this.CalculateExtendLinePoint(h.Start,h.PtEnd);h.End=l.Start,this.LinePoint.push(h)}}else{if(4!=a)return!1;var l=this.CalculateExtendLinePoint(t,e),h={Start:n,End:l.End,IsDottedLine:!1,PtEnd:o,Text:"1:1"};this.LinePoint.push(h);for(var u in i)if(s>5){h={Start:n,End:null,IsDottedLine:!1,PtEnd:new m,Text:r[u]},h.PtEnd.Y=t.Y+s*i[u],h.PtEnd.X=e.X;var l=this.CalculateExtendLinePoint(h.Start,h.PtEnd);h.End=l.End,this.LinePoint.push(h)}}return!0},this.DrawArea=function(){var t=null,e=null;for(var a in this.LinePoint){var i=this.LinePoint[a];"1:1"==i.Text?t=this.LinePoint[a]:"3:1"==i.Text&&(e=this.LinePoint[a])}t&&e&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.End.X,t.End.Y),this.Canvas.lineTo(t.Start.X,t.Start.Y),this.Canvas.lineTo(e.End.X,e.End.Y),this.Canvas.closePath(),this.Canvas.fill())}}function Te(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureGoldenSectionLine",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Font=14*u()+"px 微软雅黑",this.GetSectionData=function(){return[0,.236,.382,.5,.618,.8,1,1.236,1.382,1.5,1.618,1.8,2]},this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint();if(t&&2==t.length){this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.CalculateLines(t[0],t[1]),this.ClipFrame(),this.SetLineWidth();for(var e in this.LinePoint){var a=this.LinePoint[e];this.DrawLine(a.Start,a.End,a.IsDottedLine)}this.RestoreLineWidth();for(var e in this.LinePoint){var a=this.LinePoint[e];a.Text&&this.DrawTitle(a.Start,a.Text)}this.DrawPoint(t),this.Canvas.restore()}},this.CalculateHSCreenLines=function(t,e){for(var a=this.GetSectionData(),i=this.Frame.ChartBorder.GetTop(),r=this.Frame.ChartBorder.GetBottom(),n=t.X-e.X,o=0;o<a.length;++o){var s=n*a[o],l={Start:new m,End:new m};l.Start.X=t.X-s,l.Start.Y=i,l.End.X=t.X-s,l.End.Y=r;var h="";h=0==o?"Base ":(100*a[o]).toFixed(2)+"% ";h+=this.Frame.GetYData(l.Start.Y).toFixed(2),l.Text=h,this.LinePoint.push(l)}},this.CalculateLines=function(t,e){if(this.Frame.IsHScreen)return void this.CalculateHSCreenLines(t,e);for(var a=this.GetSectionData(),i=this.Frame.ChartBorder.GetLeft(),r=this.Frame.ChartBorder.GetRight(),n=t.Y-e.Y,o=0;o<a.length;++o){var s=n*a[o],l={Start:new m,End:new m};l.Start.Y=t.Y-s,l.Start.X=i,l.End.Y=t.Y-s,l.End.X=r;var h="";h=0==o?"Base ":(100*a[o]).toFixed(2)+"% ";h+=this.Frame.GetYData(l.Start.Y).toFixed(2),l.Text=h,this.LinePoint.push(l)}},this.DrawLine=function(t,e){this.Canvas.strokeStyle=this.LineColor,this.Canvas.beginPath(),this.Canvas.moveTo(t.X,t.Y),this.Canvas.lineTo(e.X,e.Y),this.Canvas.stroke()},this.DrawTitle=function(t,e){this.Canvas.fillStyle=this.LineColor,this.Canvas.textAlign="left",this.Canvas.textBaseline="bottom",this.Canvas.font=this.Font,this.Frame.IsHScreen?(this.Canvas.save(),this.Canvas.translate(t.X,t.Y),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(e,0,0),this.Canvas.restore()):this.Canvas.fillText(e,t.X,t.Y)}}function Ae(){this.newMethod=Te,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPicturePercentage",this.GetSectionData=function(){return[0,.25,.333,.5,1]}}function be(){this.newMethod=Te,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureWaveBand",this.GetSectionData=function(){return[0,.125,.25,.375,.5,.625,.75,.875,1]}}function Ee(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureTriangle",this.PointCount=3,this.Font=16*u()+"px 微软雅黑",this.IsPointIn=this.IsPointIn_XYValue_Line,this.LastPoint,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t){var e=t.slice(0);this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame(),this.CalculateLines(e);for(var a in this.LinePoint){var i=this.LinePoint[a];this.DrawLine(i.Start,i.End)}this.DrawArea(e),this.DrawPoint(e),this.DrawTitle(e),this.Canvas.restore()}},this.DrawArea=function(t){3==t.length&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(t[0].X,t[0].Y),this.Canvas.lineTo(t[1].X,t[1].Y),this.Canvas.lineTo(t[2].X,t[2].Y),this.Canvas.lineTo(t[0].X,t[0].Y),this.Canvas.closePath(),this.Canvas.fill())},this.DrawTitle=function(t){this.Status},this.SetLastPoint=function(t){this.LastPoint={X:t.X,Y:t.Y}},this.CalculateLines=function(t){if(2==this.PointStatus&&this.LastPoint){var e=new m;e.X=this.LastPoint.X,e.Y=this.LastPoint.Y,t[2]=e}if(2===t.length){var a={Start:new m,End:new m};a.Start.Y=t[0].Y,a.Start.X=t[0].X,a.End.Y=t[1].Y,a.End.X=t[1].X,this.LinePoint.push(a)}else if(3===t.length){var a={Start:new m,End:new m};a.Start.Y=t[0].Y,a.Start.X=t[0].X,a.End.Y=t[1].Y,a.End.X=t[1].X,this.LinePoint.push(a),a={Start:new m,End:new m},a.Start.Y=t[1].Y,a.Start.X=t[1].X,a.End.Y=t[2].Y,a.End.X=t[2].X,this.LinePoint.push(a),a={Start:new m,End:new m},a.Start.Y=t[2].Y,a.Start.X=t[2].X,a.End.Y=t[0].Y,a.End.X=t[0].X,this.LinePoint.push(a)}}}function Fe(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureSymmetryAngle",this.PointCount=2,this.Font=16*u()+"px 微软雅黑",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t){this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame(),this.CalculateLines(t);for(var e in this.LinePoint){var a=this.LinePoint[e];this.DrawLine(a.Start,a.End)}this.DrawArea(),this.DrawPoint(t),this.DrawTitle(t),this.Canvas.restore()}},this.CalculateLines=function(t){if(2==t.length&&this.Frame){var e={Start:new m,End:new m};e.Start.Y=t[0].Y,e.Start.X=t[0].X,e.End.Y=t[1].Y,e.End.X=t[1].X,this.LinePoint.push(e),e={Start:new m,End:new m},e.Start.Y=t[0].Y,e.Start.X=t[0].X,e.End.Y=t[1].Y,e.End.X=t[0].X,this.LinePoint.push(e);var a=t[0].X-t[1].X;e={Start:new m,End:new m},e.Start.Y=t[0].Y,e.Start.X=t[0].X,e.End.Y=t[1].Y,e.End.X=t[0].X+a,this.LinePoint.push(e)}},this.DrawArea=function(){3==this.LinePoint.length&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(this.LinePoint[0].Start.X,this.LinePoint[0].Start.Y),this.Canvas.lineTo(this.LinePoint[0].End.X,this.LinePoint[0].End.Y),this.Canvas.lineTo(this.LinePoint[2].End.X,this.LinePoint[2].End.Y),this.Canvas.moveTo(this.LinePoint[0].Start.X,this.LinePoint[0].Start.Y),this.Canvas.closePath(),this.Canvas.fill())},this.DrawTitle=function(t){this.Status}}function ye(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureCircle",this.PointCount=2,this.CircleData,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t&&2==t.length){this.AreaColor=le.ColorToRGBA(this.LineColor,.3),this.ClipFrame();var e=t[0].X-t[1].X,a=t[0].Y-t[1].Y,i=Math.sqrt(e*e+a*a);this.Canvas.fillStyle=this.AreaColor,this.Canvas.strokeStyle=this.LineColor,this.DrawLine(t[0],t[1]),this.Canvas.beginPath(),this.Canvas.arc(t[0].X,t[0].Y,i,0,2*Math.PI),this.Canvas.stroke(),this.Canvas.fill(),this.CircleData={X:t[0].X,Y:t[0].Y,R:i},this.DrawPoint(t),this.Canvas.restore()}},this.IsPointIn=function(t,e){if(10!=this.Status)return-1;var a=this.IsPointInXYValue(t,e);if(a>=0)return a;if(this.CircleData&&this.CircleData.R>8){var i=this.CircleData.X-t,r=this.CircleData.Y-e,n=Math.sqrt(i*i+r*r);if(n<this.CircleData.R&&n>this.CircleData.R-8)return 100}return-1}}function Le(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureQuadrangle",this.IsPointIn=this.IsPointIn_XYValue_Line,this.PointCount=3,this.LastPoint,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint({IsCheckX:!0,IsCheckY:!0});if(t){this.AreaColor=le.ColorToRGBA(this.LineColor,.3);var e=t.slice(0);this.CalculateLines(e),this.ClipFrame();for(var a in this.LinePoint){var i=this.LinePoint[a];this.DrawLine(i.Start,i.End)}this.DrawArea(),this.DrawPoint(e),this.Canvas.restore()}},this.SetLastPoint=function(t){this.LastPoint={X:t.X,Y:t.Y}},this.DrawArea=function(){4==this.LinePoint.length&&(this.Canvas.fillStyle=this.AreaColor,this.Canvas.beginPath(),this.Canvas.moveTo(this.LinePoint[0].Start.X,this.LinePoint[0].Start.Y),this.Canvas.lineTo(this.LinePoint[0].End.X,this.LinePoint[0].End.Y),this.Canvas.lineTo(this.LinePoint[1].End.X,this.LinePoint[1].End.Y),this.Canvas.lineTo(this.LinePoint[2].End.X,this.LinePoint[2].End.Y),this.Canvas.closePath(),this.Canvas.fill())},this.CalculateLines=function(t){if(2==this.PointStatus&&this.LastPoint){var e=new m;e.X=this.LastPoint.X,e.Y=this.LastPoint.Y,t[2]=e}if(2==t.length){var a=this.CreateLineData(t[0],t[1]);this.LinePoint.push(a)}else if(3==t.length){var a=this.CreateLineData(t[0],t[1]);this.LinePoint.push(a);var a=this.CreateLineData(t[1],t[2]);this.LinePoint.push(a);var i=t[2].X-t[1].X,r=t[2].Y-t[1].Y,n=new m;n.X=t[0].X+i,n.Y=t[0].Y+r;var a=this.CreateLineData(t[2],n);this.LinePoint.push(a);var a=this.CreateLineData(n,t[0]);this.LinePoint.push(a)}}}function Me(){this.newMethod=le,this.newMethod(),delete this.newMethod,this.ClassName="ChartDrawPictureFibonacci",this.PointCount=1,this.Font=14*u()+"px 微软雅黑",this.IsPointIn=this.IsPointIn_XYValue_Line,this.Draw=function(){this.LinePoint=[];var t=this.CalculateDrawPoint();if(t&&(this.CalculateLines(),!(this.LinePoint.length<=0))){this.ClipFrame(),this.SetLineWidth();for(var e in this.LinePoint){var a=this.LinePoint[e];this.DrawLine(a.Start,a.End),this.DrawTitle(a.Start,a.Title)}this.RestoreLineWidth(),this.DrawPoint(t),this.Canvas.restore()}},this.DrawTitle=function(t,e){this.Canvas.fillStyle=this.LineColor,this.Canvas.textAlign="left",this.Canvas.textBaseline="top",this.Canvas.font=this.Font,this.Frame.IsHScreen?(this.Canvas.save(),this.Canvas.translate(t.X,t.Y),this.Canvas.rotate(90*Math.PI/180),this.Canvas.fillText(e,2,10),this.Canvas.restore()):this.Canvas.fillText(e,t.X+2,t.Y+10)},this.CalculateHSCreenLines=function(){var t=this.Frame.Data;if(t){var e=null;if(10==this.Status){if(1!=this.Value.length)return;e=this.Value[0].XValue}else{if(1!=this.Point.length)return;e=parseInt(this.Frame.GetXData(this.Point[0].Y))+t.DataOffset}for(var a=this.Frame.ChartBorder.GetRightEx(),i=this.Frame.ChartBorder.GetLeftEx(),r=this.Frame.XPointCount,n=[1,2,3,5,8,13,21,34,55,89,144,233],o=0;o<n.length;++o){var s=e+n[o],l=s-t.DataOffset;if(!(l<0||l>=r)){var h=this.Frame.GetXFromIndex(s-t.DataOffset,!1),u={Start:new m,End:new m,Title:n[o]};u.Start.X=a,u.Start.Y=h,u.End.X=i,u.End.Y=h,this.LinePoint.push(u)}}}},this.CalculateLines=function(){if(!(this.Status<2)&&this.Frame){var t=this.Frame.Data;if(t){if(this.Frame.IsHScreen)return void this.CalculateHSCreenLines();var e=null;if(10==this.Status){if(1!=this.Value.length)return;e=this.Value[0].XValue}else{if(1!=this.Point.length)return;e=parseInt(this.Frame.GetXData(this.Point[0].X))+t.DataOffset}for(var a=this.Frame.ChartBorder.GetTopEx(),i=this.Frame.ChartBorder.GetBottom(),r=this.Frame.XPointCount,n=[1,2,3,5,8,13,21,34,55,89,144,233],o=0;o<n.length;++o){var s=e+n[o],l=s-t.DataOffset;if(!(l<0||l>=r)){var h=this.Frame.GetXFromIndex(s-t.DataOffset,!1),u={Start:new m,End:new m,Title:n[o]};u.Start.Y=a,u.Start.X=h,u.End.Y=i,u.End.X=h,this.LinePoint.push(u)}}}}}}function we(){this.DrawData=new xi.default,this.StorageKey,this.Load=function(t){if(t){this.StorageKey=t;var e=localStorage[this.StorageKey];if(bi.Chart.Log("[ChartDrawStorage::Save] Load to localStorage, key="+this.StorageKey+", cache="+e),e&&"string"==typeof e){var a=JSON.parse(e);for(var i in a){var r=a[i],n=new xi.default;for(var o in r.Value){var s=r.Value[o];n.set(s.Key,s.Value)}this.DrawData.set(r.Key,n)}}}},this.Save=function(){if(this.StorageKey){var t=[],e=!0,a=!1,i=void 0;try{for(var r,n=(0,Si.default)(this.DrawData);!(e=(r=n.next()).done);e=!0){var o=r.value,s=o[0],l=o[1],h={Key:s,Value:[]},u=!0,c=!1,d=void 0;try{for(var f,C=(0,Si.default)(l);!(u=(f=C.next()).done);u=!0){var p=f.value;h.Value.push({Key:p[0],Value:p[1]})}}catch(t){c=!0,d=t}finally{try{!u&&C.return&&C.return()}finally{if(c)throw d}}t.push(h)}}catch(t){a=!0,i=t}finally{try{!e&&n.return&&n.return()}finally{if(a)throw i}}bi.Chart.Log("[ChartDrawStorage::Save] save to localStorage, key="+this.StorageKey);var D=(0,Di.default)(t);localStorage[this.StorageKey]=D}},this.SaveDrawData=function(t){var e=t.Symbol+"-"+t.Period,a=t.ExportStorageData();if(a){if(this.DrawData.has(e))bi.Chart.Log("[ChartDrawStorage::SaveDrawData] Upate: key, drawPicture, data",e,t,a),this.DrawData.get(e).set(a.Guid,a);else{bi.Chart.Log("[ChartDrawStorage::SaveDrawData] Insert: key, drawPicture, data",e,t,a);var i=new xi.default;i.set(a.Guid,a),this.DrawData.set(e,i)}bi.Chart.Log("[ChartDrawStorage::SaveDrawData] All draw data: ",this.DrawData),this.Save()}},this.DeleteDrawData=function(t){var e=t.Symbol+"-"+t.Period;this.DrawData.has(e)&&(this.DrawData.delete(e),this.Save())},this.Clear=function(){this.DrawData=new xi.default,this.Save()},this.GetDrawData=function(t){var e=[],a=t.Symbol+"-"+t.Period;if(!this.DrawData.has(a))return e;var i=this.DrawData.get(a),r=!0,n=!1,o=void 0;try{for(var s,l=(0,Si.default)(i);!(r=(s=l.next()).done);r=!0){var h=s.value;e.push(h[1])}}catch(t){n=!0,o=t}finally{try{!r&&l.return&&l.return()}finally{if(n)throw o}}return e}}function Ne(){this.Data=[[1e-6,2e-6,1e-6,1e-7],[2e-6,4e-6,2e-6,2e-7],[4e-6,5e-6,4e-6,1e-7],[5e-6,1e-5,5e-6,5e-7],[1e-5,2e-5,1e-5,1e-6],[2e-5,4e-5,2e-5,2e-6],[4e-5,5e-5,4e-5,1e-6],[5e-5,1e-4,5e-5,5e-6],[1e-4,2e-4,1e-4,1e-5],[2e-4,4e-4,2e-4,2e-5],[4e-4,5e-4,4e-4,1e-5],[5e-4,.001,5e-4,5e-5],[.001,.002,.001,1e-4],[.002,.004,.002,2e-4],[.004,.005,.004,1e-4],[.005,.01,.005,5e-4],[.01,.02,.01,.001],[.02,.04,.02,.002],[.04,.05,.04,.001],[.05,.1,.05,.005],[.1,.2,.1,.01],[.2,.4,.2,.02],[.4,.5,.4,.01],[.5,1,.5,.05],[1,2,.5,.05],[2,4,.5,.05],[4,5,.5,.05],[5,10,.5,.05],[10,12,10,2],[20,40,20,5],[40,50,40,2],[50,100,50,10],[100,200,100,10],[200,400,200,20],[400,500,400,10],[500,1e3,500,50],[1e3,2e3,1e3,50],[2e3,4e3,2e3,50],[4e3,5e3,4e3,50],[5e3,1e4,5e3,100],[1e4,2e4,1e4,1e3],[2e4,4e4,1e4,1e3],[4e4,5e4,1e4,1e3],[5e4,1e5,1e4,1e3],[1e5,2e5,1e5,1e4],[2e5,4e5,1e5,1e4],[4e5,5e5,1e5,1e4],[5e5,1e6,1e5,1e4],[1e6,2e6,1e6,1e5],[2e6,4e6,1e6,1e5],[4e6,5e6,1e6,1e5],[5e6,1e7,1e6,1e5],[1e7,2e7,1e7,1e6],[2e7,4e7,1e7,1e6],[4e7,5e7,1e7,1e6],[5e7,1e8,1e7,1e6],[1e8,2e8,1e8,1e7],[2e8,4e8,1e8,1e7],[4e8,5e8,1e8,1e7],[5e8,1e9,1e8,1e7],[1e9,2e9,1e9,1e8],[2e9,4e9,1e9,1e8],[4e9,5e9,1e9,1e8],[5e9,1e10,1e9,1e8]],this.Find=function(t){for(var e in this.Data){var a=this.Data[e];if(t>a[0]&&t<=a[1]){var i={};return i.FixInterval=a[2],i.Increase=a[3],i}}return null}}function Oe(){this.newMethod=Ne,this.newMethod(),delete this.newMethod,this.Data=[[1e-6,2e-6,1e-6,1e-7],[2e-6,4e-6,2e-6,2e-7],[4e-6,5e-6,4e-6,1e-7],[5e-6,1e-5,5e-6,5e-7],[1e-5,2e-5,1e-5,1e-6],[2e-5,4e-5,2e-5,2e-6],[4e-5,5e-5,4e-5,1e-6],[5e-5,1e-4,5e-5,5e-6],[1e-4,2e-4,1e-4,1e-5],[2e-4,4e-4,2e-4,2e-5],[4e-4,5e-4,4e-4,1e-5],[5e-4,.001,5e-4,5e-5],[.001,.002,.001,1e-4],[.002,.004,.002,1e-4],[.004,.005,.004,1e-4],[.005,.01,.005,5e-4],[.01,.02,.01,.001],[.02,.04,.02,.001],[.04,.05,.04,.001],[.05,.1,.05,.001],[.1,.2,.1,.01],[.2,.4,.2,.01],[.4,.5,.2,.01],[.5,.8,.2,.01],[.8,1,.5,.01],[1,2,.5,.05],[2,4,.5,.05],[4,5,.5,.05],[5,10,.5,.05],[10,12,10,2],[20,40,20,5],[40,50,40,2],[50,100,50,10],[100,200,100,10],[200,400,200,20],[400,500,400,10],[500,1e3,500,50],[1e3,2e3,1e3,50],[2e3,4e3,2e3,50],[4e3,5e3,4e3,50],[5e3,1e4,5e3,100],[1e4,2e4,1e4,1e3],[2e4,4e4,2e4,2e3],[4e4,5e4,4e4,1e3],[5e4,1e5,5e4,5e3],[1e5,2e5,1e5,1e4],[2e5,4e5,2e5,2e4],[4e5,5e5,4e5,1e4],[5e5,1e6,5e5,5e4],[1e6,2e6,1e6,1e5],[2e6,4e6,2e6,2e5],[4e6,5e6,4e6,1e5],[5e6,1e7,5e6,5e5],[1e7,2e7,1e7,1e6],[2e7,4e7,2e7,2e6],[4e7,5e7,4e7,1e6],[5e7,1e8,5e7,5e6],[1e8,2e8,1e8,1e7],[2e8,4e8,2e8,2e7],[4e8,5e8,4e8,1e7],[5e8,1e9,5e8,5e7],[1e9,2e9,1e9,1e8],[2e9,4e9,2e9,2e8],[4e9,5e9,4e9,1e8],[5e9,1e10,5e9,5e8]]}function _e(){this.TooltipBGColor="rgb(255, 255, 255)",this.TooltipAlpha=.92,this.SelectRectBGColor="rgba(1,130,212,0.06)",this.UpBarColor="rgb(238,21,21)",this.DownBarColor="rgb(25,158,0)",this.UnchagneBarColor="rgb(0,0,0)",this.Minute={},this.Minute.VolBarColor="rgb(238,127,9)",this.Minute.PriceColor="rgb(50,171,205)",this.Minute.AreaPriceColor="rgba(50,171,205,0.1)",this.Minute.AvPriceColor="rgb(238,127,9)",this.Minute.BeforeBGColor="rgba(240,240,240,0.7)",this.Minute.PositionColor="rgb(218,165,32)",this.DefaultTextColor="rgb(43,54,69)",this.DefaultTextFont=14*u()+"px 微软雅黑",this.TitleFont=13*u()+"px 微软雅黑",this.IndexTitleBGColor="rgb(217,219,220)",this.Title={TradeIndexColor:"rgb(105,105,105)",ColorIndexColor:"rgb(112,128,144)"},this.UpTextColor="rgb(238,21,21)",this.DownTextColor="rgb(25,158,0)",this.UnchagneTextColor="rgb(0,0,0)",this.CloseLineColor="rgb(0,191,255)",this.CloseLineAreaColor=["rgba(0,191,255,0.8)","rgba(0,191,255,0.2)"],this.FrameBorderPen="rgb(225,236,242)",this.FrameSplitPen="rgb(225,236,242)",this.FrameDotSplitPen="rgb(105,105,105)",this.FrameSplitTextColor="rgb(117,125,129)",this.FrameSplitTextFont=14*u()+"px 微软雅黑",this.FrameTitleBGColor="rgb(246,251,253)",this.Frame={XBottomOffset:1*u()},this.FrameLatestPrice={TextColor:"rgb(255,255,255)",UpBarColor:"rgb(238,21,21)",DownBarColor:"rgb(25,158,0)",UnchagneBarColor:"rgb(0,0,0)",BGAlpha:.6},this.FrameMargin=4,this.FrameLeftMargin=2,this.OverlayFrame={BolderPen:"rgb(190,190,190)",TitleColor:"rgb(105,105,105)",TitleFont:11*u()+"px arial"},this.CorssCursorBGColor="rgb(43,54,69)",this.CorssCursorTextColor="rgb(255,255,255)",this.CorssCursorTextFont=14*u()+"px 微软雅黑",this.CorssCursorHPenColor="rgb(130,130,130)",this.CorssCursorVPenColor="rgb(130,130,130)",this.LockBGColor="rgb(220, 220, 220)",this.LockTextColor="rgb(210, 34, 34)",this.Domain="https://opensource.zealink.com",this.CacheDomain="https://opensourcecache.zealink.com",this.PyIndexDomain="https://py.zealink.com",this.KLine={MaxMin:{Font:12*u()+"px 微软雅黑",Color:"rgb(43,54,69)"},Info:{Investor:{ApiUrl:"https://opensource.zealink.com/API/NewsInteract",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#1c65db"}},Announcement:{ApiUrl:"https://opensource.zealink.com/API/ReportList",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#f5a521"},IconFont2:{Family:"iconfont",Text:"",HScreenText:"",Color:"#ed7520"}},Pforecast:{ApiUrl:"https://opensource.zealink.com/API/StockHistoryDay",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#986cad"}},Research:{ApiUrl:"https://opensource.zealink.com/API/InvestorRelationsList",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#19b1b7"}},BlockTrading:{ApiUrl:"https://opensource.zealink.com/API/StockHistoryDay",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#f39f7c"}},TradeDetail:{ApiUrl:"https://opensource.zealink.com/API/StockHistoryDay",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#b22626"}}},NumIcon:{Color:"rgb(251,80,80)",Family:"iconfont",Text:["","","","","","","","","","","","","","","","","","","","",""]},TradeIcon:{Family:"iconfont",Buy:{Color:"rgb(255,15,4)",Text:"",HScreenText:""},Sell:{Color:"rgb(64,122,22)",Text:"",HScreenText:""}}},this.Index={},this.Index.LineColor=["rgb(255,174,0)","rgb(25,199,255)","rgb(175,95,162)","rgb(236,105,65)","rgb(68,114,196)","rgb(229,0,79)","rgb(0,128,255)","rgb(252,96,154)","rgb(42,230,215)","rgb(24,71,178)"],this.OverlaySymbol={Random:0},this.OverlaySymbol.Color=["rgb(38,198,218)","rgb(103,58,183)","rgb(0,191,165)","rgb(130,177,255)"],this.Index.StockHistoryDayApiUrl="https://opensource.zealink.com/API/StockHistoryDay",this.Index.MarketLongShortApiUrl="https://opensource.zealink.com/API/FactorTiming",this.Index.MarketAttentionApiUrl="https://opensource.zealink.com/API/MarketAttention",this.Index.MarketHeatApiUrl="https://opensource.zealink.com/API/MarketHeat",this.Index.CustomIndexHeatApiUrl="https://opensource.zealink.com/API/QuadrantCalculate",this.Index.NotSupport={Font:"14px 微软雅黑",TextColor:"rgb(52,52,52)"},this.DrawPicture={},this.DrawPicture.LineColor=["rgb(30,144,255)"],this.DrawPicture.PointColor=["rgb(105,105,105)"],this.KLineTrain={Font:"bold 14px arial",LastDataIcon:{Color:"rgb(0,0,205)",Text:"⬇"},BuyIcon:{Color:"rgb(0,205,102 )",Text:"B"},SellIcon:{Color:"rgb(255,127,36 )",Text:"S"},IconFont:{Family:"iconfont",Buy:{Text:"",HScreenText:"",Color:"rgb(255,140,0)"},Sell:{Text:"",HScreenText:"",Color:"rgb(6,79,18)"},Last:{Text:"",HScreenText:"",Color:"rgb(55,0,255)"}}},this.TooltipPaint={BGColor:"rgba(250,250,250,0.8)",BorderColor:"rgb(120,120,120)",TitleColor:"rgb(120,120,120)",TitleFont:13*u()+"px 微软雅黑"},this.Barrage={Font:16*u()+"px 微软雅黑",Height:20,Color:"RGB(109,109,109)"},this.MinuteInfo={TextColor:"rgb(84,143,255)",Font:14*u()+"px 微软雅黑",PointColor:"rgb(38,113,254)",LineColor:"rgb(120,167,255)",TextBGColor:"rgba(255,255,255,0.8)"},this.SetStyle=function(t){t.TooltipBGColor&&(this.TooltipBGColor=t.TooltipBGColor),t.TooltipAlpha&&(this.TooltipAlpha=t.TooltipAlpha),t.SelectRectBGColor&&(this.SelectRectBGColor=t.SelectRectBGColor),t.UpBarColor&&(this.UpBarColor=t.UpBarColor),t.DownBarColor&&(this.DownBarColor=t.DownBarColor),t.UnchagneBarColor&&(this.UnchagneBarColor=t.UnchagneBarColor),t.Minute&&(t.Minute.VolBarColor&&(this.Minute.VolBarColor=t.Minute.VolBarColor),t.Minute.PriceColor&&(this.Minute.PriceColor=t.Minute.PriceColor),t.Minute.AvPriceColor&&(this.Minute.AvPriceColor=t.Minute.AvPriceColor),t.Minute.AreaPriceColor&&(this.Minute.AreaPriceColor=t.Minute.AreaPriceColor),t.Minute.PositionColor&&(this.Minute.PositionColor=t.Minute.PositionColor)),t.DefaultTextColor&&(this.DefaultTextColor=t.DefaultTextColor),t.DefaultTextFont&&(this.DefaultTextFont=t.DefaultTextFont),t.TitleFont&&(this.TitleFont=t.TitleFont),t.UpTextColor&&(this.UpTextColor=t.UpTextColor),t.DownTextColor&&(this.DownTextColor=t.DownTextColor),t.UnchagneTextColor&&(this.UnchagneTextColor=t.UnchagneTextColor),t.CloseLineColor&&(this.CloseLineColor=t.CloseLineColor),t.CloseLineAreaColor&&(this.CloseLineAreaColor=t.CloseLineAreaColor),t.FrameBorderPen&&(this.FrameBorderPen=t.FrameBorderPen),t.FrameSplitPen&&(this.FrameSplitPen=t.FrameSplitPen),t.FrameDotSplitPen&&(this.FrameDotSplitPen=t.FrameDotSplitPen),t.FrameSplitTextColor&&(this.FrameSplitTextColor=t.FrameSplitTextColor),t.FrameSplitTextFont&&(this.FrameSplitTextFont=t.FrameSplitTextFont),t.FrameTitleBGColor&&(this.FrameTitleBGColor=t.FrameTitleBGColor),t.Frame&&t.Frame.XBottomOffset&&(this.Frame.XBottomOffset=t.Frame.XBottomOffset),t.FrameLatestPrice&&(t.FrameLatestPrice.TextColor&&(this.FrameLatestPrice.TextColor=t.FrameLatestPrice.TextColor),t.FrameLatestPrice.UpBarColor&&(this.FrameLatestPrice.UpBarColor=t.FrameLatestPrice.UpBarColor),t.FrameLatestPrice.DownBarColor&&(this.FrameLatestPrice.DownBarColor=t.FrameLatestPrice.DownBarColor),t.FrameLatestPrice.UnchagneBarColor&&(this.FrameLatestPrice.UnchagneBarColor=t.FrameLatestPrice.UnchagneBarColor),t.FrameLatestPrice.BGAlpha&&(this.FrameLatestPrice.BGAlpha=t.FrameLatestPrice.BGAlpha)),t.CorssCursorBGColor&&(this.CorssCursorBGColor=t.CorssCursorBGColor),t.CorssCursorTextColor&&(this.CorssCursorTextColor=t.CorssCursorTextColor),t.CorssCursorTextFont&&(this.CorssCursorTextFont=t.CorssCursorTextFont),t.CorssCursorVPenColor&&(this.CorssCursorVPenColor=t.CorssCursorVPenColor),t.CorssCursorHPenColor&&(this.CorssCursorHPenColor=t.CorssCursorHPenColor),t.KLine&&(this.KLine=t.KLine),t.Index&&(t.Index.LineColor&&(this.Index.LineColor=t.Index.LineColor),t.Index.NotSupport&&(this.Index.NotSupport=t.Index.NotSupport)),t.ColorArray&&(this.ColorArray=t.ColorArray),t.DrawPicture&&(this.DrawPicture.LineColor=t.DrawPicture.LineColor,this.DrawPicture.PointColor=t.DrawPicture.PointColor),t.TooltipPaint&&(t.TooltipPaint.BGColor&&(this.TooltipPaint.BGColor=t.TooltipPaint.BGColor),t.TooltipPaint.BorderColor&&(this.TooltipPaint.BorderColor=t.TooltipPaint.BorderColor),t.TooltipPaint.TitleColor&&(this.TooltipPaint.TitleColor=t.TooltipPaint.TitleColor),t.TooltipPaint.TitleFont&&(this.TooltipPaint.TitleFont=t.TooltipPaint.TitleFont)),t.MinuteInfo&&(t.MinuteInfo.TextColor&&(this.MinuteInfo.TextColor=t.MinuteInfo.TextColor),t.MinuteInfo.Font&&(this.MinuteInfo.Font=t.MinuteInfo.Font),t.MinuteInfo.PointColor&&(this.MinuteInfo.PointColor=t.MinuteInfo.PointColor),t.MinuteInfo.LineColor&&(this.MinuteInfo.LineColor=t.MinuteInfo.LineColor),t.MinuteInfo.TextBGColor&&(this.MinuteInfo.TextBGColor=t.MinuteInfo.TextBGColor)),t.Title&&(t.Title.TradeIndexColor&&(this.Title.TradeIndexColor=t.Title.TradeIndexColor),t.Title.ColorIndexColor&&(this.Title.ColorIndexColor=t.Title.ColorIndexColor))}}function Re(){this.TextResource=new xi.default([["Tooltip-Open",{CN:"开:",EN:"O:"}],["Tooltip-High",{CN:"高:",EN:"H:"}],["Tooltip-Low",{CN:"低:",EN:"L:"}],["Tooltip-Close",{CN:"收:",EN:"C:"}],["Tooltip-Increase",{CN:"幅:",EN:"I:"}],["Tooltip-Vol",{CN:"量:",EN:"V:"}],["Tooltip-Amount",{CN:"额:",EN:"A:"}],["Tooltip-AvPrice",{CN:"均:",EN:"AP:"}],["Tooltip-Price",{CN:"价:",EN:"P:"}],["Tooltip-Exchange",{CN:"换:",EN:"E:"}],["Tooltip-Position",{CN:"持:",EN:"P:"}],["DivTooltip-Open",{CN:"开盘:",EN:"Open:"}],["DivTooltip-High",{CN:"最高:",EN:"High:"}],["DivTooltip-Low",{CN:"最低:",EN:"Low:"}],["DivTooltip-Close",{CN:"收盘:",EN:"Close:"}],["DivTooltip-Increase",{CN:"涨幅:",EN:"Increase:"}],["DivTooltip-Vol",{CN:"数量:",EN:"Volume:"}],["DivTooltip-Amount",{CN:"金额:",EN:"Amount:"}],["DivTooltip-Exchange",{CN:"换手:",EN:"Exchange:"}],["DivTooltip-Position",{CN:"持仓:",EN:"Position:"}],["KTitle-Open",{CN:"开:",EN:"O:"}],["KTitle-High",{CN:"高:",EN:"H:"}],["KTitle-Low",{CN:"低:",EN:"L:"}],["KTitle-Close",{CN:"收:",EN:"C:"}],["KTitle-Increase",{CN:"幅:",EN:"I:"}],["KTitle-Vol",{CN:"量:",EN:"V:"}],["KTitle-Amount",{CN:"额:",EN:"A:"}],["KTitle-Exchange",{CN:"换:",EN:"E:"}],["KTitle-Position",{CN:"持:",EN:"P:"}],["MTitle-Close",{CN:"价:",EN:"C:"}],["MTitle-AvPrice",{CN:"均:",EN:"AC:"}],["MTitle-Increase",{CN:"幅:",EN:"I:"}],["MTitle-Vol",{CN:"量:",EN:"V:"}],["MTitle-Amount",{CN:"额:",EN:"A:"}],["MTitle-Position",{CN:"持:",EN:"P:"}],["日线",{CN:"日线",EN:"1D"}],["周线",{CN:"周线",EN:"1W"}],["双周",{CN:"双周",EN:"2W"}],["月线",{CN:"月线",EN:"1M"}],["年线",{CN:"年线",EN:"1Y"}],["1分",{CN:"1分",EN:"1Min"}],["5分",{CN:"5分",EN:"5Min"}],["15分",{CN:"15分",EN:"15Min"}],["30分",{CN:"30分",EN:"30Min"}],["60分",{CN:"60分",EN:"60Min"}],["季线",{CN:"季线",EN:"1Q"}],["分笔",{CN:"分笔",EN:"Tick"}],["2小时",{CN:"2小时",EN:"2H"}],["4小时",{CN:"4小时",EN:"4H"}],["不复权",{CN:"不复权",EN:"No Right"}],["前复权",{CN:"前复权",EN:"Pro Right"}],["后复权",{CN:"后复权",EN:"Post Right"}],["日",{CN:"日",EN:"Sun."}],["一",{CN:"一",EN:"Mon."}],["二",{CN:"二",EN:"Tues."}],["三",{CN:"三",EN:"Wed."}],["四",{CN:"四",EN:"Thur."}],["五",{CN:"五",EN:"Fri."}],["六",{CN:"六",EN:"Sat."}],["1月",{CN:"1月",EN:"Jan"}],["2月",{CN:"2月",EN:"Feb"}],["3月",{CN:"3月",EN:"Mar"}],["4月",{CN:"4月",EN:"Apr"}],["5月",{CN:"5月",EN:"May"}],["6月",{CN:"6月",EN:"Jun"}],["7月",{CN:"7月",EN:"Jul"}],["8月",{CN:"8月",EN:"Aug"}],["9月",{CN:"9月",EN:"Sept"}],["10月",{CN:"10月",EN:"Oct"}],["11月",{CN:"11月",EN:"Nov"}],["12月",{CN:"12月",EN:"Dec"}],["自定义分钟",{CN:"分",EN:"Min"}],["自定义日线",{CN:"日",EN:"D"}],["自定义秒",{CN:"秒",EN:"S"}]]),this.GetText=function(t,e){var a=this.TextResource.get(t);if(!a)return"";switch(e){case Ki.LANGUAGE_CHINESE_ID:return a.CN;case Ki.LANGUAGE_ENGLISH_ID:return a.EN;default:return a.CN}},this.SetTextResource=function(t,e){this.TextResource.set(t,e)}}function Pe(){}function Be(){}function ke(t){this.newMethod=h,this.newMethod(t),delete this.newMethod,this.ClassName="KLineChartContainer",this.WindowIndex=new Array,this.ColorIndex,this.TradeIndex,this.Symbol,this.Name,this.Period=0,this.IsApiPeriod=!1,this.Right=0,this.SourceData,this.MaxReqeustDataCount=3e3,this.MaxRequestMinuteDayCount=5,this.PageSize=200,this.KLineDrawType=0,this.ScriptErrorCallback,this.FlowCapitalReady=!1,this.ChartDrawStorage=new we,this.ChartDrawStorageCache=null,this.RightSpaceCount=0,this.SourceDataLimit=new xi.default,this.CustomShow=null,this.OverlayIndexFrameWidth=60,this.ZoomType=0,this.Page={Day:{Enable:!1,Index:0,Finish:!1},Minute:{Enable:!1,Index:0,Finish:!1}},this.DragDownload={Day:{Enable:!1,IsEnd:!1,Status:0},Minute:{Enable:!1,IsEnd:!1,status:0}},this.IsAutoUpdate=!1,this.AutoUpdateFrequency=3e4,this.AutoUpdateTimer,this.KLineApiUrl=Xi.Domain+"/API/KLine2",this.MinuteKLineApiUrl=Xi.Domain+"/API/KLine3",this.DragMinuteKLineApiUrl=Xi.Domain+"/API/KLine4",this.DragKLineApiUrl=Xi.Domain+"/API/KLine5",this.RealtimeApiUrl=Xi.Domain+"/API/Stock",this.KLineMatchUrl=Xi.Domain+"/API/KLineMatch",this.StockHistoryDayApiUrl=Xi.Domain+"/API/StockHistoryDay",this.TickApiUrl=Xi.Domain+"/API/StockDetail",this.MinuteDialog,this.RightMenu,this.ChartPictureMenu,this.ResetDragDownload=function(){this.DragDownload.Day.Status=0,this.DragDownload.Day.IsEnd=!1,this.DragDownload.Minute.Status=0,this.DragDownload.Minute.IsEnd=!1},this.ResetPage=function(){this.Page.Day.Finish=!1,this.Page.Day.Index=0,this.Page.Minute.Finish=!1,this.Page.Minute.Index=0},this.StopAutoUpdate=function(){this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::StopAutoUpdate"),this.IsAutoUpdate&&(this.IsAutoUpdate=!1)},this.ChartOperator=function(t){var e=t.ID;if(e===Li.OP_SCROLL_LEFT||e===Li.OP_SCROLL_RIGHT){var a=e===Li.OP_SCROLL_LEFT,i=1;t.Step>0&&(i=t.Step),this.DataMove(i*this.StepPixel,a)&&(this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.ResetFrameXYSplit(),this.Draw())}else if(e===Li.OP_ZOOM_IN||e===Li.OP_ZOOM_OUT){var r={};if(r.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),e===Li.OP_ZOOM_IN){if(!this.Frame.ZoomUp(r))return}else if(!this.Frame.ZoomDown(r))return;this.CursorIndex=r.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw()}else if(e===Li.OP_GOTO_HOME){var n=null;if(!(n=this.Frame.Data?this.Frame.SubFrame[0].Frame.Data:this.Frame.Data))return;var o=this.PageSize,s=this.GetMaxMinPageSize();s.Max<o?o=s.Max:s.Min>o&&(o=s.Min);for(var l in this.Frame.SubFrame){var h=this.Frame.SubFrame[l].Frame;h.XPointCount=o}var u=n.Data.length-o;n.DataOffset=u,this.CursorIndex=0,this.LastPoint.X=null,this.LastPoint.Y=null,bi.Chart.Log("[KLineChartContainer::ChartOperator] OP_GOTO_HOME, dataOffset="+n.DataOffset+" CursorIndex="+this.CursorIndex+" PageSize="+o),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.UpdatePointByCursorIndex()}},this.OnWheel=function(t){bi.Chart.Log("[KLineChartContainer::OnWheel]",t);var e=t.clientX-this.UIElement.getBoundingClientRect().left,a=t.clientY-this.UIElement.getBoundingClientRect().top,i=!1;this.Canvas.beginPath(),this.Canvas.rect(this.Frame.ChartBorder.GetLeft(),this.Frame.ChartBorder.GetTop(),this.Frame.ChartBorder.GetWidth(),this.Frame.ChartBorder.GetHeight()),i=this.Canvas.isPointInPath(e,a);var r=t.wheelDelta;if(Ht.IsObjectExist(t.wheelDelta)||(r=-.01*t.deltaY),i&&r<0){var n={ZoomType:this.ZoomType};n.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),this.Frame.ZoomDown(n)&&(this.CursorIndex=n.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw())}else if(i&&r>0){var n={ZoomType:this.ZoomType};n.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),this.Frame.ZoomUp(n)&&(this.CursorIndex=n.Index,this.UpdatePointByCursorIndex(),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw())}t.preventDefault?t.preventDefault():t.returnValue=!1},this.Create=function(t){var e=this;this.UIElement.JSChartContainer=this,this.ChartCorssCursor=new Kt,this.ChartCorssCursor.Canvas=this.Canvas,this.ChartCorssCursor.StringFormatX=new Zt,this.ChartCorssCursor.StringFormatY=new qt,this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID,this.ChartCorssCursor.StringFormatY.ExtendChartPaint=this.ExtendChartPaint,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new _,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=30,this.Frame.ChartBorder.Left=5,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartCorssCursor.Frame=this.Frame,this.ChartSplashPaint.Frame=this.Frame,this.CreateChildWindow(t),this.CreateMainKLine();for(var a in this.Frame.SubFrame){var i=new se;i.Frame=this.Frame.SubFrame[a].Frame,i.Canvas=this.Canvas,i.LanguageID=this.LanguageID,this.TitlePaint.push(i)}this.UIElement.addEventListener("keydown",function(t){e.OnKeyDown(t)},!0),this.UIElement.addEventListener("wheel",function(t){e.OnWheel(t)},!0)},this.CreateChildWindow=function(t){for(var e=0;e<t;++e){var a=new S;a.UIElement=this.UIElement;var i=new F;if(i.Canvas=this.Canvas,i.ChartBorder=a,i.Identify=e,i.RightSpaceCount=this.RightSpaceCount,this.ModifyIndexDialog&&(i.ModifyIndexEvent=this.ModifyIndexDialog.DoModal),this.ChangeIndexDialog&&(i.ChangeIndexEvent=this.ChangeIndexDialog.DoModal),i.HorizontalMax=20,i.HorizontalMin=10,0==e){i.YSplitOperator=new Vt,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("price"),i.YSplitOperator.FrameSplitData2=this.FrameSplitData.get("double");var r=u();a.BottomSpace=12*r,a.TopSpace=12*r}else i.YSplitOperator=new Gt,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double"),i.YSplitOperator.LanguageID=this.LanguageID;i.YSplitOperator.Frame=i,i.YSplitOperator.ChartBorder=a,i.XSplitOperator=new Yt,i.XSplitOperator.Frame=i,i.XSplitOperator.ChartBorder=a,i.XSplitOperator.LanguageID=this.LanguageID,e!=t-1&&(i.XSplitOperator.ShowText=!1);for(var n=i.HorizontalMin;n<=i.HorizontalMax;n+=1)i.HorizontalInfo[n]=new g,i.HorizontalInfo[n].Value=n,0==e&&n==i.HorizontalMin||(i.HorizontalInfo[n].Message[1]=n.toString(),i.HorizontalInfo[n].Font="14px 微软雅黑");var o=new N;o.Frame=i,o.Height=0==e?20:10,this.Frame.SubFrame[e]=o}},this.CreateSubFrameItem=function(t){var e=new S;e.UIElement=this.UIElement;var a=new F;a.Canvas=this.Canvas,a.ChartBorder=e,a.Identify=t,this.ModifyIndexDialog&&(a.ModifyIndexEvent=this.ModifyIndexDialog.DoModal),this.ChangeIndexDialog&&(a.ChangeIndexEvent=this.ChangeIndexDialog.DoModal),a.HorizontalMax=20,a.HorizontalMin=10,a.YSplitOperator=new Gt,a.YSplitOperator.LanguageID=this.LanguageID,a.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double"),a.YSplitOperator.Frame=a,a.YSplitOperator.ChartBorder=e,a.XSplitOperator=new Yt,a.XSplitOperator.Frame=a,a.XSplitOperator.ChartBorder=e,a.XSplitOperator.ShowText=!1;var i=this.Frame.SubFrame[0].Frame.XPointCount;a.XPointCount=i,a.Data=this.ChartPaint[0].Data;for(var r=a.HorizontalMin;r<=a.HorizontalMax;r+=1)a.HorizontalInfo[r]=new g,a.HorizontalInfo[r].Value=r,a.HorizontalInfo[r].Message[1]=r.toString(),a.HorizontalInfo[r].Font="14px 微软雅黑";var n=new N;return n.Frame=a,n.Height=10,n},this.CreateMainKLine=function(){var t=new K;t.Canvas=this.Canvas,t.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,t.ChartFrame=this.Frame.SubFrame[0].Frame,t.Name="Main-KLine",t.DrawType=this.KLineDrawType,this.ChartPaint[0]=t,this.TitlePaint[0]=new re,this.TitlePaint[0].Frame=this.Frame.SubFrame[0].Frame,this.TitlePaint[0].Canvas=this.Canvas,this.TitlePaint[0].OverlayChartPaint=this.OverlayChartPaint,this.TitlePaint[0].LanguageID=this.LanguageID},this.BindMainData=function(t,e){this.ChartPaint[0].Data=t,this.ChartPaint[0].Symbol=this.Symbol;for(var a in this.Frame.SubFrame){var i=this.Frame.SubFrame[a].Frame;i.XPointCount=e+this.RightSpaceCount,i.Data=this.ChartPaint[0].Data,i.XSplitOperator.Symbol=this.Symbol,i.XSplitOperator.Period=this.Period}this.TitlePaint[0].Data=this.ChartPaint[0].Data,this.TitlePaint[0].Symbol=this.Symbol,this.TitlePaint[0].Name=this.Name,this.TitlePaint[0].Period=this.Period,this.ChartCorssCursor.StringFormatX.Data=this.ChartPaint[0].Data,this.Frame.Data=this.ChartPaint[0].Data;for(var a in this.OverlayChartPaint){var i=this.OverlayChartPaint[a];i.MainData=this.ChartPaint[0].Data}var r=t.Data.length-e;r<0&&(r=0),this.ChartPaint[0].Data.DataOffset=r,this.ChartPaint[0].Period=this.Period,this.ChartCorssCursor.StringFormatY.Symbol=this.Symbol,this.CursorIndex=e,this.CursorIndex+r>=t.Data.length&&(this.CursorIndex=t.Data.length-1-r),this.CursorIndex<0&&(this.CursorIndex=0),this.CustomShow&&(this.SetCustomShow(this.CustomShow,t),this.CustomShow=null)},this.UpdateMainData=function(t,e){var a=null;if(this.Frame.Data?this.Frame.SubFrame&&this.Frame.SubFrame[0]&&(a=this.Frame.SubFrame[0].Frame.Data):a=this.Frame.Data,a){var i=0;e>0&&t.Data.length>e&&(i=t.Data.length-e,bi.Chart.Log("[KLineChartContainer::UpdateMainData] [count="+e+"->"+t.Data.length+"], [newDataCount="+i+"]")),this.ChartPaint[0].Data=t,this.ChartPaint[0].Symbol=this.Symbol,this.ChartPaint[0].Data.DataOffset=a.DataOffset+i;for(var r in this.Frame.SubFrame){var n=this.Frame.SubFrame[r].Frame;n.Data=this.ChartPaint[0].Data}this.TitlePaint[0].Data=this.ChartPaint[0].Data,this.TitlePaint[0].Symbol=this.Symbol,this.TitlePaint[0].Name=this.Name,this.ChartCorssCursor.StringFormatX.Data=this.ChartPaint[0].Data,this.Frame.Data=this.ChartPaint[0].Data;for(var r in this.OverlayChartPaint){var n=this.OverlayChartPaint[r];n.MainData=this.ChartPaint[0].Data}this.ChartCorssCursor.StringFormatY.Symbol=this.Symbol}},this.SetCustomShow=function(t,e){if(t&&t.Date&&!(t.Date<19910101)){for(var a=t.Date,i=null,r=0;r<e.Data.length;++r){var n=e.Data[r];if(n.Date>=a){i=r;break}}if(null===i)return void bi.Chart.Log("[KLineChartContainer::SetCustomShow] Can't find first date="+a);var o=e.Data.length-i;t.PageSize>0&&(o=t.PageSize);var s=o,l=this.GetMaxMinPageSize();o>l.Max?s=l.Max:o<l.Min&&(s=l.Min);for(var r in this.Frame.SubFrame){var n=this.Frame.SubFrame[r].Frame;n.XPointCount=s}this.ChartPaint[0].Data.DataOffset=i,this.CursorIndex=0}},this.ShowSelectData=function(t){this.HideSelectRect(),this.SelectRectRightMenu&&this.SelectRectRightMenu.Hide(),bi.Chart.Log("[KLineChartContainer::ShowSelectData] selectData",t);var e=t.Start,a=t.End-t.Start+1;bi.Chart.Log("[KLineChartContainer::ShowSelectData] DataOffset="+e+", ShowCount="+a);for(var i in this.Frame.SubFrame){this.Frame.SubFrame[i].Frame.XPointCount=a}this.ChartPaint[0].Data.DataOffset=e,this.CursorIndex=0,this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.UpdatePointByCursorIndex()},this.CreateWindowIndex=function(t){this.WindowIndex[t].Create(this,t)},this.BindIndexData=function(t,e){if(this.WindowIndex[t])return"function"==typeof this.WindowIndex[t].RequestData?void this.WindowIndex[t].RequestData(this,t,e):"function"==typeof this.WindowIndex[t].ExecuteScript?void this.WindowIndex[t].ExecuteScript(this,t,e):void this.WindowIndex[t].BindData(this,t,e)},this.BindOverlayIndexData=function(t,e,a){if(t.Script)return"function"==typeof t.Script.RequestData?void t.Script.RequestData(this,e,a):"function"==typeof t.Script.ExecuteScript?void t.Script.ExecuteScript(this,e,a):void t.Script.BindData(this,e,a)},this.BindInstructionIndexData=function(t){this.ColorIndex&&"function"==typeof this.ColorIndex.ExecuteScript&&this.ColorIndex.ExecuteScript(this,0,t),this.TradeIndex&&"function"==typeof this.TradeIndex.ExecuteScript&&this.TradeIndex.ExecuteScript(this,0,t)},this.GetChartPaint=function(t){var e=new Array;for(var a in this.ChartPaint)if(0!=a){var i=this.ChartPaint[a];i.ChartFrame==this.Frame.SubFrame[t].Frame&&e.push(i)}return e},this.AutoUpdateEvent=function(t,e){var a=t?yi.RECV_START_AUTOUPDATE:yi.RECV_STOP_AUTOUPDATE;if(this.mapEvent.has(a)){var i=this,r=this.mapEvent.get(a),n={Stock:{Symbol:this.Symbol,Name:this.Name,Right:this.Right,Period:this.Period},Explain:e};t&&(n.Callback=function(t){Y.IsDayPeriod(i.Period,!0)?i.RecvRealtimeData(t):Y.IsMinutePeriod(i.Period,!0)?i.RecvMinuteRealtimeData(t):Y.IsSecondPeriod(i.Period)&&i.RecvMinuteRealtimeData(t)}),r.Callback(r,n,this)}},this.SendKLineUpdateEvent=function(t){var e=this.GetEventCallback(yi.RECV_KLINE_UPDATE_DATA);if(e&&e.Callback){var a={HistoryData:t,Stock:{Symbol:this.Symbol,Name:this.Name}};return e.Callback(e,a,this),!0}return!1},this.RequestHistoryData=function(){var t=this;if(this.ChartSplashPaint.IsEnableSplash=!0,this.FlowCapitalReady=!1,this.ResetPage(),this.ResetDragDownload(),this.Draw(),this.NetworkFilter){var e={Name:"KLineChartContainer::RequestHistoryData",Explain:"日K数据",Request:{Url:t.KLineApiUrl,Type:"POST",Data:{symbol:t.Symbol,count:t.MaxReqeustDataCount,field:["name","symbol","yclose","open","price","high","low","vol"]}},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryData(e);var a=t.Page.Day;1==a.Enable&&0==a.Finish?t.RequestHistoryPageData():(t.AutoUpdateEvent(!0,"KLineChartContainer::RequestHistoryData"),t.AutoUpdate())}),1==e.PreventDefault)return}n.HttpRequest({url:this.KLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxReqeustDataCount},type:"post",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryData(e);var a=t.Page.Day;1==a.Enable&&0==a.Finish?t.RequestHistoryPageData():(t.AutoUpdateEvent(!0,"KLineChartContainer::RequestHistoryData"),t.AutoUpdate())}})},this.RecvHistoryData=function(t){var e=ke.JsonDataToHistoryData(t),a=new Y;a.Data=e,a.DataType=0,a.Symbol=t.symbol;var i=new Y;if(i.Data=e,i.Right=this.Right,i.Period=this.Period,i.DataType=0,i.Symbol=t.symbol,i.Right>0&&!this.IsApiPeriod){var r=i.GetRightDate(i.Right);i.Data=r}if(Y.IsDayPeriod(i.Period,!1)&&!this.IsApiPeriod){var n=i.GetPeriodData(i.Period);i.Data=n}this.SourceData=a,this.Symbol=t.symbol,this.Name=t.name,this.BindMainData(i,this.PageSize),this.Frame.SetSizeChage(!0),this.BindInstructionIndexData(i);for(var o,s=0;s<this.Frame.SubFrame.length;++s)0==s&&(o=this.Frame.SubFrame[s].Frame),this.BindIndexData(s,i);o&&o.YSplitOperator&&(o.YSplitOperator.Symbol=this.Symbol,o.YSplitOperator.Data=this.ChartPaint[0].Data,o.YSplitOperator.Period=this.Period);var l=this.Page.Day;(0==l.Enable||1==l.Enable&&1==l.Finish)&&(this.RequestFlowCapitalData(),this.RequestOverlayHistoryData(),this.CreateChartDrawPictureByStorage()),l.Enable&&(l.Index=1),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.UpdatePointByCursorIndex();for(var s=0;s<this.Frame.SubFrame.length;++s){var h=this.Frame.SubFrame[s];for(var u in h.OverlayIndex){var c=h.OverlayIndex[u];this.BindOverlayIndexData(c,s,i)}}if(this.mapEvent.has(yi.RECV_HISTROY_DATA)){var d=this.mapEvent.get(yi.RECV_HISTROY_DATA),t={HistoryData:i,Stock:{Symbol:this.Symbol,Name:this.Name}};d.Callback(d,t,this)}},this.RequestHistoryPageData=function(){var t=this;if(this.NetworkFilter){var e=this.SourceData.Data[0],a={Name:"KLineChartContainer::RequestHistoryPageData",Explain:"日K数据分页",Request:{Url:"none",Type:"POST",Data:{symbol:t.Symbol,index:t.Page.Day.Index,field:["name","symbol","yclose","open","price","high","low","vol"],firstDate:e.Date,first:{date:e.Date}}},Page:t.Page.Day,Self:this,PreventDefault:!1};if(this.NetworkFilter(a,function(e){t.RecvHistoryPageData(e);var a=t.Page.Day;1==a.Enable&&0==a.Finish?t.RequestHistoryPageData():t.AutoUpdate()}),1==a.PreventDefault)return}setTimeout(function(){var e=t.Page.Day;e.Finish=!0;var a={data:[[20150218,12.54,12.5,12.74,11.95,12.27,117632441,1459671045],[20150219,12.27,12.1,12.23,11.9,12.23,95889423,1157078548],[20150220,12.23,12.17,12.17,11.9,12.05,67763439,815652761]],symbol:t.Symbol,name:t.Name};t.RecvHistoryPageData(a),1==e.Enable&&0==e.Finish?t.RequestHistoryPageData():t.AutoUpdate()},500)},this.RecvHistoryPageData=function(t){var e=ke.JsonDataToHistoryData(t),a=this.GetHistoryDataCount();for(var i in e){var r=e[i];this.SourceData.Data.splice(i,0,r)}var n=new Y;if(n.Data=this.SourceData.Data,n.Period=this.Period,n.Right=this.Right,n.DataType=this.SourceData.DataType,n.Right>0&&n.Period<=3){var o=n.GetRightDate(n.Right);n.Data=o}if(Y.IsDayPeriod(n.Period,!1)||Y.IsMinutePeriod(n.Period,!1)){var s=n.GetPeriodData(n.Period);n.Data=s}this.UpdateMainData(n,a),this.BindInstructionIndexData(n);for(var i=0;i<this.Frame.SubFrame.length;++i)this.BindIndexData(i,n);var l=this.Page.Day;++l.Index,1==l.Enable&&1==l.Finish&&(this.RequestFlowCapitalData(),this.RequestOverlayHistoryData(),this.CreateChartDrawPictureByStorage()),this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()},this.ReqeustHistoryMinuteData=function(){var t=this;if(this.ChartSplashPaint.IsEnableSplash=!0,this.FlowCapitalReady=!1,this.ResetPage(),this.ResetDragDownload(),this.Draw(),this.NetworkFilter){var e={Name:"KLineChartContainer::ReqeustHistoryMinuteData",Explain:"1分钟K线数据",Request:{Url:t.MinuteKLineApiUrl,Type:"POST",Data:{symbol:t.Symbol,count:t.MaxRequestMinuteDayCount,field:["name","symbol","yclose","open","price","high","low","vol"]}},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvMinuteHistoryData(e);var a=t.Page.Minute;1==a.Enable&&0==a.Finish?t.ReqeustHistoryMinutePageData():(t.AutoUpdateEvent(!0,"KLineChartContainer::ReqeustHistoryMinuteData"),t.AutoUpdate())}),1==e.PreventDefault)return}n.HttpRequest({url:this.MinuteKLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxRequestMinuteDayCount},type:"post",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvMinuteHistoryData(e);var a=t.Page.Minute;1==a.Enable&&0==a.Finish?t.ReqeustHistoryMinutePageData():(t.AutoUpdateEvent(!0,"KLineChartContainer::ReqeustHistoryMinuteData"),t.AutoUpdate())}})},this.RecvMinuteHistoryData=function(t){var e=ke.JsonDataToMinuteHistoryData(t),a=new Y;a.Data=e,a.DataType=1,a.Symbol=t.symbol;var i=new Y;if(i.Data=e,i.Right=this.Right,i.Period=this.Period,i.DataType=1,i.Symbol=t.symbol,Y.IsMinutePeriod(i.Period,!1)&&!this.IsApiPeriod){var r=a.GetPeriodData(i.Period);i.Data=r}this.SourceData=a,this.Symbol=t.symbol,this.Name=t.name,this.BindMainData(i,this.PageSize),this.Frame.SetSizeChage(!0),this.BindInstructionIndexData(i);for(var n,o=0;o<this.Frame.SubFrame.length;++o)0==o&&(n=this.Frame.SubFrame[o].Frame),this.BindIndexData(o,i);n&&n.YSplitOperator&&(n.YSplitOperator.Symbol=this.Symbol,n.YSplitOperator.Data=this.ChartPaint[0].Data,n.YSplitOperator.Period=this.Period);for(var o in this.OverlayChartPaint){var s=this.OverlayChartPaint[o];s.Data=null}var l=this.Page.Minute;(0==l.Enable||1==l.Enable&&1==l.Finish)&&(this.RequestFlowCapitalData(),this.RequestOverlayHistoryMinuteData(),this.CreateChartDrawPictureByStorage()),l.Enable&&++l.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw();for(var o=0;o<this.Frame.SubFrame.length;++o){var s=this.Frame.SubFrame[o];for(var h in s.OverlayIndex){var u=s.OverlayIndex[h];this.BindOverlayIndexData(u,o,i)}}if(this.mapEvent.has(yi.RECV_HISTROY_DATA)){var c=this.mapEvent.get(yi.RECV_HISTROY_DATA),t={HistoryData:i,Stock:{Symbol:this.Symbol,Name:this.Name}};c.Callback(c,t,this)}},this.ReqeustHistoryMinutePageData=function(){var t=this;if(this.NetworkFilter){var e=this.SourceData.Data[0],a={Name:"KLineChartContainer::RecvHistoryMinutePageData",Explain:"1分钟K线数据分页",Request:{Url:"none",Type:"POST",Data:{symbol:t.Symbol,index:t.Page.Minute.Index,field:["name","symbol","yclose","open","price","high","low","vol"],firstDate:e.Date,first:{date:e.Date,time:e.Time}}},Page:t.Page.Minute,Self:this,PreventDefault:!1};if(this.NetworkFilter(a,function(e){t.RecvHistoryMinutePageData(e);var a=t.Page.Minute;1==a.Enable&&0==a.Finish?t.ReqeustHistoryMinutePageData():t.AutoUpdate()}),1==a.PreventDefault)return}setTimeout(function(){var e=t.Page.Minute;e.Finish=!0;var a={data:[[20190906,14.58,14.71,14.71,14.71,14.71,1096425,16128411,925],[20190906,14.71,14.73,14.74,14.71,14.71,2154859,31731820,930],[20190906,14.71,14.71,14.71,14.68,14.69,1427516,20989208,931],[20190906,14.69,14.69,14.71,14.68,14.7,1680503,24694143,932],[20190906,14.7,14.69,14.7,14.65,14.65,1315900,19310964,933],[20190906,14.65,14.66,14.69,14.65,14.68,702955,10313842,934],[20190906,14.68,14.7,14.71,14.67,14.67,1735266,25495875,935],[20190906,14.67,14.68,14.7,14.67,14.67,739e3,10845398,936],[20190906,14.67,14.67,14.68,14.67,14.68,389800,5721266,937],[20190906,14.68,14.68,14.7,14.68,14.69,648477,9527859,938],[20190906,14.69,14.7,14.71,14.69,14.7,1128400,16589794,939],[20190906,14.7,14.7,14.71,14.69,14.71,714858,10509708,940],[20190906,14.71,14.71,14.71,14.69,14.69,401500,5900477,941],[20190906,14.69,14.69,14.71,14.69,14.69,1165684,17131034,942],[20190906,14.69,14.69,14.7,14.67,14.67,498516,7321024,943],[20190906,14.67,14.68,14.68,14.67,14.67,350126,5139012,944],[20190906,14.67,14.67,14.69,14.67,14.69,561600,8246789,945]]};t.RecvHistoryMinutePageData(a),1==e.Enable&&0==e.Finish?t.ReqeustHistoryMinutePageData():t.AutoUpdate()},500)},this.RecvHistoryMinutePageData=function(t){var e=ke.JsonDataToMinuteHistoryData(t),a=this.GetHistoryDataCount();for(var i in e){var r=e[i];this.SourceData.Data.splice(i,0,r)}var n=new Y;if(n.Data=this.SourceData.Data,n.Period=this.Period,n.Right=this.Right,n.DataType=this.SourceData.DataType,n.Right>0&&Y.IsDayPeriod(n.Period,!1)){var o=n.GetRightDate(n.Right);n.Data=o}if(Y.IsDayPeriod(n.Period,!1)||Y.IsMinutePeriod(n.Period,!1)){var s=n.GetPeriodData(n.Period);n.Data=s}this.UpdateMainData(n,a),this.BindInstructionIndexData(n);for(var i=0;i<this.Frame.SubFrame.length;++i)this.BindIndexData(i,n);var l=this.Page.Minute;(0==l.Enable||1==l.Enable&&1==l.Finish)&&(this.RequestFlowCapitalData(),this.CreateChartDrawPictureByStorage()),l.Enable&&++l.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()},this.RequestRealtimeData=function(){var t=this,e=[t.Symbol];for(var a in this.OverlayChartPaint){var i=this.OverlayChartPaint[a];i.Symbol&&(i.MainData&&i.Status==Hi.STATUS_FINISHED_ID&&e.push(i.Symbol))}if(this.NetworkFilter){var r={Name:"KLineChartContainer::RequestRealtimeData",Explain:"当天最新日线数据",Request:{Url:t.RealtimeApiUrl,Data:{symbol:e,field:["name","symbol","yclose","open","price","high","low","vol","amount","date","time"]},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(r,function(e){t.RecvRealtimeData(e),t.AutoUpdate()}),1==r.PreventDefault)return}n.HttpRequest({url:this.RealtimeApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol","amount","date","time"],symbol:e,start:-1},type:"post",dataType:"json",async:!0,success:function(e){t.RecvRealtimeData(e),t.AutoUpdate()}})},this.RecvRealtimeData=function(t){if(1!=this.IsOnTouch){var e=ke.JsonDataToRealtimeData(t,this.Symbol);if(e){var a=this.SourceData.Data[this.SourceData.Data.length-1],i=this.GetHistoryDataCount();if(a.Date==e.Date)bi.Chart.Log("[KLineChartContainer::RecvRealtimeData] update kline by minute data",e),a.Close=e.Close,a.High=e.High,a.Low=e.Low,a.Vol=e.Vol,a.Amount=e.Amount,a.Position=e.Position;else{if(!(a.Date<e.Date))return;bi.Chart.Log("[KLineChartContainer::RecvRealtimeData] insert kline by minute data",e);var r=new B;r.YClose=e.YClose,r.Open=e.Open,r.Close=e.Close,r.High=e.High,r.Low=e.Low,r.Vol=e.Vol,r.Amount=e.Amount,r.Date=e.Date,r.Position=e.Position,this.SourceData.Data.push(r)}var n=new Y;if(n.Data=this.SourceData.Data,n.Period=this.Period,n.Right=this.Right,n.DataType=this.SourceData.DataType,n.Symbol=this.Symbol,n.Right>0&&Y.IsDayPeriod(n.Period,!0)){var o=n.GetRightDate(n.Right);n.Data=o}if(Y.IsDayPeriod(n.Period,!1)||Y.IsMinutePeriod(n.Period,!1)){var s=n.GetPeriodData(n.Period);n.Data=s}this.UpdateMainData(n,i),this.UpdateOverlayRealtimeData(t),this.BindInstructionIndexData(n);for(var l=0;l<this.Frame.SubFrame.length;++l)this.BindIndexData(l,n);this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.SendKLineUpdateEvent(n)}}},this.UpdateOverlayRealtimeData=function(t){for(var e in this.OverlayChartPaint){var a=this.OverlayChartPaint[e];if(a.Symbol&&(a.MainData&&a.Status==Hi.STATUS_FINISHED_ID)){var i=ke.JsonDataToRealtimeData(t,a.Symbol);if(i){var r=a.SourceData,n=r.Data[r.Data.length-1];if(n.Date==i.Date)bi.Chart.Log("[KLineChartContainer::UpdateOverlayRealtimeData] update kline by minute data",i),n.Close=i.Close,n.High=i.High,n.Low=i.Low,n.Vol=i.Vol,n.Amount=i.Amount;else{if(!(a.Date<i.Date))continue;bi.Chart.Log("[KLineChartContainer::UpdateOverlayRealtimeData] insert kline by minute data",i);var o=new B;o.YClose=i.YClose,o.Open=i.Open,o.Close=i.Close,o.High=i.High,o.Low=i.Low,o.Vol=i.Vol,o.Amount=i.Amount,o.Date=i.Date,r.Data.push(o)}var s=new Y;if(s.Data=r.Data,s.Period=this.Period,s.Right=this.Right,s.DataType=0,s.Right>0&&Ji.IsSHSZStockA(t.symbol)){var l=s.GetRightDate(s.Right);s.Data=l}var h=this.SourceData.GetOverlayData(s.Data);if(s.Data=h,Y.IsDayPeriod(s.Period,!1)){var u=s.GetPeriodData(s.Period);s.Data=u}a.Data=s}}}},this.RequestMinuteRealtimeData=function(){var t=this,e=[t.Symbol];for(var a in this.OverlayChartPaint){var i=this.OverlayChartPaint[a];i.Symbol&&(i.MainData&&i.Status==Hi.STATUS_FINISHED_ID&&e.push(i.Symbol))}if(this.NetworkFilter){var r={Name:"KLineChartContainer::RequestMinuteRealtimeData",Explain:"当天1分钟K线数据",Request:{Url:t.RealtimeApiUrl,Data:{symbol:e,field:["name","symbol","price","yclose","minutecount","minute","date","time"]},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(r,function(e){t.RecvMinuteRealtimeData(e),t.AutoUpdate()}),1==r.PreventDefault)return}n.HttpRequest({url:this.RealtimeApiUrl,data:{field:["name","symbol","price","yclose","minutecount","minute","date","time"],symbol:e,start:-1},type:"post",dataType:"json",async:!0,success:function(e){t.RecvMinuteRealtimeData(e),t.AutoUpdate()}})},this.SetSourceDatatLimit=function(t){this.SourceDataLimit=new xi.default;for(var e in t){var a=t[e];this.SourceDataLimit.set(a.Period,a.MaxCount),bi.Chart.Log("[KLineChartContainer::SetSourceDatatLimit] Period="+a.Period+", MaxCount="+a.MaxCount)}},this.ReduceSourceData=function(){if(this.SourceDataLimit&&this.SourceDataLimit.has(this.Period)){var t=this.SourceDataLimit.get(this.Period),e=null;if(this.Frame.Data?this.Frame.SubFrame&&this.Frame.SubFrame[0]&&(e=this.Frame.SubFrame[0].Frame.Data):e=this.Frame.Data,e&&!(t<50)){for(var a=e.DataOffset,i=0;this.SourceData.Data.length>t;)this.SourceData.Data.shift(),--a,++i;i>0&&(a<0&&(a=0),e.DataOffset=a,bi.Chart.Log("[KLineChartContainer::ReduceSourceData] remove data "+i+", dataOffset="+a))}}},this.RecvMinuteRealtimeDataV2=function(t){if(1!=this.IsOnTouch){var e=ke.JsonDataToMinuteHistoryData(t);if(e&&!(e.length<=0)){this.IsApiPeriod&&this.ReduceSourceData();var a=this.GetHistoryDataCount();if(this.SourceData.MergeMinuteData(e)){bi.Chart.Log("[KLineChartContainer::RecvMinuteRealtimeDataV2] update kline by 1 minute data ["+a+"->"+this.SourceData.Data.length+"]");var i=new Y;if(i.Data=this.SourceData.Data,i.Period=this.Period,i.Right=this.Right,i.DataType=this.SourceData.DataType,i.Symbol=this.Symbol,i.Right>0&&Y.IsDayPeriod(i.Period,!0)&&!this.IsApiPeriod){var r=i.GetRightDate(i.Right);i.Data=r}if((Y.IsDayPeriod(i.Period,!1)||Y.IsMinutePeriod(i.Period,!1))&&!this.IsApiPeriod){var n=i.GetPeriodData(i.Period);i.Data=n}this.UpdateMainData(i,a),this.BindInstructionIndexData(i);for(var o=0;o<this.Frame.SubFrame.length;++o)this.BindIndexData(o,i);this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.SendKLineUpdateEvent(i)}}}},this.RecvMinuteRealtimeData=function(t){if(1!=this.IsOnTouch){if(2==t.ver)return void this.RecvMinuteRealtimeDataV2(t);var e=ke.JsonDataToMinuteRealtimeData(t,this.Symbol);if(e){this.IsApiPeriod&&this.ReduceSourceData();var a=this.GetHistoryDataCount(),i=this.SourceData.Data.length;if(this.SourceData.MergeMinuteData(e)){bi.Chart.Log("[KLineChartContainer::RecvMinuteRealtimeData] update kline by 1 minute data ["+i+"->"+this.SourceData.Data.length+"]");var r=new Y;if(r.Data=this.SourceData.Data,r.Period=this.Period,r.Right=this.Right,r.DataType=this.SourceData.DataType,r.Symbol=this.Symbol,r.Right>0&&Y.IsDayPeriod(r.Period,!0)){var n=r.GetRightDate(r.Right);r.Data=n}if(Y.IsDayPeriod(r.Period,!1)||Y.IsMinutePeriod(r.Period,!1)){var o=r.GetPeriodData(r.Period);r.Data=o}this.UpdateMainData(r,a),this.UpdateOverlayMinuteRealtimeData(t),this.BindInstructionIndexData(r);for(var s=0;s<this.Frame.SubFrame.length;++s)this.BindIndexData(s,r);this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.SendKLineUpdateEvent(r)}}}},this.UpdateOverlayMinuteRealtimeData=function(t){for(var e in this.OverlayChartPaint){var a=this.OverlayChartPaint[e];if(a.Symbol&&(a.MainData&&a.Status==Hi.STATUS_FINISHED_ID)){var i=ke.JsonDataToMinuteRealtimeData(t,a.Symbol);if(i){var r=a.SourceData;if(!r.MergeMinuteData(i))return;var n=new Y;n.Data=r.Data,n.Period=this.Period,n.Right=this.Right,n.DataType=0;var o=this.SourceData.GetOverlayMinuteData(n.Data);if(n.Data=o,Y.IsMinutePeriod(n.Period,!1)){var s=n.GetPeriodData(n.Period);n.Data=s}a.Data=n}}}},this.GetHistoryDataCount=function(){var t=null;return this.Frame.Data?this.Frame.SubFrame&&this.Frame.SubFrame[0]&&(t=this.Frame.SubFrame[0].Frame.Data):t=this.Frame.Data,t?t.Data.length:-1},this.GetRequestDataCount=function(){var t={MaxRequestDataCount:this.MaxReqeustDataCount,MaxRequestMinuteDayCount:this.MaxRequestMinuteDayCount};if(!this.SourceData||!this.SourceData.Data||this.SourceData.Data.length<=0)return t;if(Y.IsDayPeriod(this.Period,!0)){var e=this.SourceData.Data.length;e>t.MaxRequestDataCount&&(t.MaxRequestDataCount=e)}else if(Y.IsMinutePeriod(this.Period,!0)){var a,e=0;for(var i in this.SourceData.Data){var r=this.SourceData.Data[i];r.Date!=a&&++e,a=r.Date}e>t.MaxRequestMinuteDayCount&&(t.MaxRequestMinuteDayCount=e)}return t},this.RequestTickData=function(){var t=this;t.ChartSplashPaint.IsEnableSplash=!0,t.Draw();var e=Xi.CacheDomain+"/cache/dealday/today/"+t.Symbol+".json";if(this.NetworkFilter){var a={Name:"KLineChartContainer::RequestTickData",Explain:"当天分笔数据",Request:{Url:e,Data:{symbol:t.Symbol},Type:"GET"},Self:this,PreventDefault:!1};if(this.NetworkFilter(a,function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvTickData(e),t.AutoUpdate()}),1==a.PreventDefault)return}n.HttpRequest({url:e,data:{symbol:t.Symbol},type:"get",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvTickData(e),t.AutoUpdate(1)},error:function(e,a){t.ChartSplashPaint.IsEnableSplash=!1,t.AutoUpdate()}})},this.RecvTickData=function(t){var e=ke.JsonDataToTickData(t),a=new Y;a.Data=e,a.DataType=2;var i=new Y;i.Data=e,i.Right=this.Right,i.Period=this.Period,i.DataType=2,this.SourceData=a,this.Symbol=t.symbol,this.Name=t.name,this.BindMainData(i,this.PageSize),this.BindInstructionIndexData(i);for(var r,n=0;n<this.Frame.SubFrame.length;++n)0==n&&(r=this.Frame.SubFrame[n].Frame),this.BindIndexData(n,i);if(r&&r.YSplitOperator&&(r.YSplitOperator.Symbol=this.Symbol,r.YSplitOperator.Data=this.ChartPaint[0].Data,r.YSplitOperator.Period=this.Period,r.YSplitOperator.KLineChart=this.ChartPaint[0]),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.UpdatePointByCursorIndex(),this.mapEvent.has(yi.RECV_HISTROY_DATA)){var o=this.mapEvent.get(yi.RECV_HISTROY_DATA),t={HistoryData:i,Stock:{Symbol:this.Symbol,Name:this.Name}};o.Callback(o,t,this)}},this.RequestTickRealtimeData=function(){var t=this,e=0;if(this.SourceData&&this.SourceData.Data&&(e=this.SourceData.Data.length),this.NetworkFilter){var a={Name:"KLineChartContainer::RequestTickRealtimeData",Explain:"当天最新分笔数据",Request:{Url:t.TickApiUrl,Data:{symbol:t.Symbol,start:e,end:e+1e3},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(a,function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvTickData(e),t.AutoUpdate()}),1==a.PreventDefault)return}n.HttpRequest({url:t.TickApiUrl,data:{symbol:t.Symbol,start:e-10,end:e+1e3},type:"post",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvTickRealtimeData(e),t.AutoUpdate()}})},this.RecvTickRealtimeData=function(t){var e=ke.JsonDataToTickData(t);if(e&&!(e.length<=0)){var a=this.SourceData.Data,i=this.SourceData.Data.length,r=0;a.length>0&&(r=a[a.length-1].Time);var n=0;for(var o in e){var s=e[o];s.Time<=r||(a.push(s),++n)}if(!(n<=0)){var l=new Y;l.Data=a,l.Right=this.Right,l.Period=this.Period,l.DataType=2,this.Symbol=t.symbol,this.Name=t.name,this.UpdateMainData(l,i),this.BindInstructionIndexData(l);for(var o=0;o<this.Frame.SubFrame.length;++o)this.BindIndexData(o,l);this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.UpdatePointByCursorIndex()}}},this.ChangePeriod=function(t){if(this.Period!=t){var e=!1;if(t>Ni&&t<=Oi)0!=this.SourceData.DataType&&(e=!0);else if(t>_i&&t<=Ri||t>Pi&&t<=Bi)1!=this.SourceData.DataType&&(e=!0);else switch(t){case 0:case 1:case 2:case 3:case 9:case 21:0!=this.SourceData.DataType&&(e=!0);break;case 4:case 5:case 6:case 7:case 8:case 11:case 12:1!=this.SourceData.DataType&&(e=!0);break;case 10:2!=this.SourceData.DataType&&(e=!0)}if(this.Period=t,this.ReloadChartDrawPicture(),0==e&&!this.IsApiPeriod)return void this.Update();Y.IsDayPeriod(this.Period,!0)?(this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::ChangePeriod"),this.ResetOverlaySymbolStatus(),this.RequestHistoryData(),this.ReqeustKLineInfoData()):Y.IsMinutePeriod(this.Period,!0)||Y.IsSecondPeriod(this.Period)?(this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::ChangePeriod"),this.ResetOverlaySymbolStatus(),this.ReqeustHistoryMinuteData()):Y.IsTickPeriod(this.Period)&&(this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::ChangePeriod"),this.RequestTickData())}},this.ChangeRight=function(t){if(Ji.IsSHSZStockA(this.Symbol)&&!Y.IsTickPeriod(this.Period)){var e=this.Symbol.toUpperCase();if(!(Ji.IsBIT(e)||t<0||t>2||this.Right==t)){if(this.Right=t,!this.IsApiPeriod)return void this.Update();Y.IsDayPeriod(this.Period,!0)?(this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::ChangeRight"),this.ResetOverlaySymbolStatus(),this.RequestHistoryData()):(Y.IsMinutePeriod(this.Period,!0)||Y.IsSecondPeriod(this.Period))&&(this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::ChangeRight"),this.ResetOverlaySymbolStatus(),this.ReqeustHistoryMinuteData())}}},this.SetFirstShowDate=function(t){if(t&&t.Date){bi.Chart.Log("[KLineChartContainer::SetFirstShowDate] obj=",t);var e=null;if(e=this.Frame.Data?this.Frame.SubFrame[0].Frame.Data:this.Frame.Data){var a=null;if(Y.IsDayPeriod(this.Period,!0))for(var i=0;i<e.Data.length;++i){var r=e.Data[i];if(r.Date>=t.Date){a=i;break}}else if(Y.IsMinutePeriod(this.Period,!0)){var n=t.Time;Ht.IsPlusNumber(t.Time)||(n=0);for(var i=0;i<e.Data.length;++i){var r=e.Data[i];if(r.Date>=t.Date&&r.Time>=n){a=i;break}}}if(null===a)return void bi.Chart.Log("[KLineChartContainer::SetFirstShowDate] an't find first date="+t.Date+" time="+t.Time,t);var o=e.Data.length-a,s=o;t.PageSize>0&&(s=t.PageSize);var l=this.GetMaxMinPageSize();l.Max<s?s=l.Max:l.Min>s&&(s=l.Min);for(var i in this.Frame.SubFrame){var r=this.Frame.SubFrame[i].Frame;r.XPointCount=s}e.DataOffset=a,this.CursorIndex=0,this.LastPoint.X=null,this.LastPoint.Y=null,bi.Chart.Log("[KLineChartContainer::SetFirstShowDate] dataOffset="+e.DataOffset+" CursorIndex="+this.CursorIndex+" PageSize="+s),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.UpdatePointByCursorIndex()}}},this.DeleteIndexPaint=function(t){var e=new Array;for(var a in this.ChartPaint){var i=this.ChartPaint[a];0!=a&&i.ChartFrame==this.Frame.SubFrame[t].Frame||e.push(i)}this.Frame.SubFrame[t].Frame.YSpecificMaxMin=null,this.Frame.SubFrame[t].Frame.IsLocked=!1,this.Frame.SubFrame[t].Frame.YSplitScale=null,this.ChartPaint=e;var r=t+1;this.TitlePaint[r].Data=[],this.TitlePaint[r].Title=null},this.ShowKLine=function(t){this.ChartPaint.length<=0||!this.ChartPaint[0]||(this.ChartPaint[0].IsShow=t)},this.SetInstructionData=function(t,e){if(!(this.ChartPaint.length<=0)&&this.ChartPaint[0]){var a=this.TitlePaint[1];2==t?(this.ChartPaint[0].ColorData=e.Data,a&&(a.ColorIndex={Name:e.Name,Param:e.Param})):1==t&&(this.ChartPaint[0].TradeData={Sell:e.Sell,Buy:e.Buy,Name:e.Name,Param:e.Param},a&&(a.TradeIndex={Name:e.Name,Param:e.Param}))}},this.ChangeInstructionIndex=function(t){var e=new s,a=e.Get(t);a&&(1!=a.InstructionType&&2!=a.InstructionType||(a.ID=t,this.ChangeInstructionScriptIndex(a)))},this.ChangeInstructionScriptIndex=function(t){if(1==t.InstructionType)this.TradeIndex=new ja(t.Name,t.Script,t.Args,t);else{if(2!=t.InstructionType)return;this.ColorIndex=new ja(t.Name,t.Script,t.Args,t)}var e=this.ChartPaint[0].Data;this.BindInstructionIndexData(e),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.CancelInstructionIndex=function(){if(!(this.ChartPaint.length<=0)&&this.ChartPaint[0]){this.ColorIndex=null,this.TradeIndex=null,this.ChartPaint[0].ColorData=null,this.ChartPaint[0].TradeData=null;var t=this.TitlePaint[1];t&&(t.TradeIndex=null,t.ColorIndex=null),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()}},this.ChangeScriptIndex=function(t,e){this.DeleteIndexPaint(t),this.WindowIndex[t]=new ja(e.Name,e.Script,e.Args,e);var a=this.ChartPaint[0].Data;this.BindIndexData(t,a),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.ChangeAPIIndex=function(t,e){this.DeleteIndexPaint(t);var a=e.API;this.WindowIndex[t]=new $a(a.Name,a.Script,a.Args,e);var i=this.ChartPaint[0].Data;this.BindIndexData(t,i),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.ChangeIndex=function(t,e,a){if(a&&a.API)return this.ChangeAPIIndex(t,a);var i=Pe.Get(e);if(!i){var r=new s,n=r.Get(e);if(!n)return;n.IsMainIndex?t=0:0==t&&(t=1);var o={Name:n.Name,Script:n.Script,Args:n.Args,ID:e,KLineType:n.KLineType,YSpecificMaxMin:n.YSpecificMaxMin,YSplitScale:n.YSplitScale,FloatPrecision:n.FloatPrecision,Condition:n.Condition,StringFormat:n.StringFormat};return a&&(a.FloatPrecision>=0&&(o.FloatPrecision=a.FloatPrecision),a.StringFormat>0&&(o.StringFormat=a.StringFormat),a.Args&&(o.Args=a.Args),a.TitleFont&&(o.TitleFont=a.TitleFont),a.IsShortTitle&&(o.IsShortTitle=a.IsShortTitle)),this.ChangeScriptIndex(t,o)}i.IsMainIndex?t>0&&(t=0):0==t&&(t=1);var l=new Array;for(var h in this.ChartPaint){var u=this.ChartPaint[h];0!=h&&u.ChartFrame==this.Frame.SubFrame[t].Frame||l.push(u)}this.Frame.SubFrame[t].Frame.YSpecificMaxMin=null,this.Frame.SubFrame[t].Frame.IsLocked=!1,this.Frame.SubFrame[t].Frame.YSplitScale=null,this.ChartPaint=l;var c=t+1;this.TitlePaint[c].Data=[],this.TitlePaint[c].Title=null,this.WindowIndex[t]=i.Create(),this.CreateWindowIndex(t);var d=this.ChartPaint[0].Data;this.BindIndexData(t,d),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.ChangePyScriptIndex=function(t,e){this.DeleteIndexPaint(t),this.WindowIndex[t]=new na(e.Name,e.Script,e.Args,e);var a=this.ChartPaint[0].Data;this.BindIndexData(t,a),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.AddOverlayIndex=function(t){var e=this.CreateOverlayWindowsIndex(t);if(e){var a=this.ChartPaint[0].Data;this.BindOverlayIndexData(e,t.WindowIndex,a),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()}},this.CreateOverlayWindowsIndex=function(t){var e=t.IndexName,a=t.WindowIndex,i=null,r=null,n=null;if(t.API)i=t.API;else{if(!(r=(new s).Get(e))&&!(n=Pe.Get(e)))return console.warn("[KLineChartContainer::CreateOverlayIndex] can not find index["+e+"]"),null}var o=this.Frame.SubFrame[a];o.Interval=this.OverlayIndexFrameWidth;var l=new O;t.Identify&&(l.Identify=t.Identify);var h="KLineChartHScreenContainer"===this.ClassName?new w:new L;if(h.Canvas=this.Canvas,h.MainFrame=o.Frame,h.ChartBorder=o.Frame.ChartBorder,!0===t.ShowRightText?h.IsShow=!0:!1===t.ShowRightText&&(h.IsShow=!1),h.YSplitOperator=new Gt,h.YSplitOperator.LanguageID=this.LanguageID,h.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double"),h.YSplitOperator.Frame=h,h.YSplitOperator.ChartBorder=h.ChartBorder,h.YSplitOperator.SplitCount=o.Frame.YSplitOperator.SplitCount,l.Frame=h,i){var u=new $a(i.Name,i.Script,i.Args,t,!0);u.OverlayIndex={IsOverlay:!0,Identify:l.Identify,WindowIndex:a,Frame:l},l.Script=u}else if(r){var c={Name:r.Name,Script:r.Script,Args:r.Args,ID:e,KLineType:r.KLineType,YSpecificMaxMin:r.YSpecificMaxMin,YSplitScale:r.YSplitScale,FloatPrecision:r.FloatPrecision,Condition:r.Condition};t.Args&&(c.Args=t.Args);var d=new Qa(c.Name,c.Script,c.Args,c);d.OverlayIndex={IsOverlay:!0,Identify:l.Identify,WindowIndex:a,Frame:l},l.Script=d}else{var d=n.Create();d.OverlayIndex={IsOverlay:!0,Identify:l.Identify,WindowIndex:a,Frame:l},d.Create(this,a),l.Script=d}return o.OverlayIndex.push(l),l},this.DeleteOverlayWindowsIndex=function(t){var e=null;for(var a in this.Frame.SubFrame){var i=this.Frame.SubFrame[a];for(var r in i.OverlayIndex){if(i.OverlayIndex[r].Identify===t){i.OverlayIndex.splice(r,1),e=parseInt(a);break}}}if(null==e)return void console.warn("[KLineChartContainer::DeleteOverlayWindowsIndex] can't find overlay index. [identify="+t+"]");var n=e+1,o=this.TitlePaint[n];o.OverlayIndex.has(t)&&o.OverlayIndex.delete(t),this.Draw()},this.ChangeKLineDrawType=function(t){if(this.KLineDrawType!=t){this.KLineDrawType=t;for(var e in this.ChartPaint){var a=this.ChartPaint[e];0==e?a.DrawType=this.KLineDrawType:"ChartVolStick"==a.ClassName&&(a.KLineDrawType=this.KLineDrawType)}for(var e in this.OverlayChartPaint){var a=this.OverlayChartPaint[e];a.DrawType=this.KLineDrawType}this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}},this.ChangeCoordinateType=function(t){if((this.Frame||this.Frame.SubFrame)&&this.Frame.SubFrame.length){if(2==t)this.Frame.SubFrame[0].Frame.CoordinateType=1;else if(1==t)this.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType=t;else{if(0!=t)return;this.Frame.SubFrame[0].Frame.CoordinateType=0,this.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType=0}this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}},this.ChangeIndexWindowCount=function(t){if(!(t<=0)&&this.Frame.SubFrame.length!=t){var e=this.Frame.SubFrame.length;if(e>t){for(var a=e-1;a>=t;--a)this.DeleteIndexPaint(a),this.Frame.SubFrame[a].Frame.ClearToolbar();this.Frame.SubFrame.splice(t,e-t),this.WindowIndex.splice(t,e-t);for(var a=0;a<this.Frame.SubFrame.length;++a){var i=this.Frame.SubFrame[a].Frame;a==this.Frame.SubFrame.length-1?i.XSplitOperator.ShowText=!0:i.XSplitOperator.ShowText=!1}}else{for(var a=e;a<t;++a){var r=this.CreateSubFrameItem(a);this.Frame.SubFrame[a]=r;var n=new se;n.Frame=this.Frame.SubFrame[a].Frame,n.Canvas=this.Canvas,n.LanguageID=this.LanguageID,this.TitlePaint[a+1]=n}for(var o=["RSI","MACD","VOL","UOS","CHO","BRAR"],l=new s,a=e;a<t;++a){var h=o[a%o.length],u=l.Get(h);this.WindowIndex[a]=new ja(u.Name,u.Script,u.Args,u);var c=this.ChartPaint[0].Data;this.BindIndexData(a,c)}for(var a=0;a<this.Frame.SubFrame.length;++a){var i=this.Frame.SubFrame[a].Frame;a==this.Frame.SubFrame.length-1?i.XSplitOperator.ShowText=!0:i.XSplitOperator.ShowText=!1}this.UpdataDataoffset()}this.Frame.SetSizeChage(!0),this.ResetFrameXYSplit(),this.UpdateFrameMaxMin(),this.Draw()}},this.ChangeIndexTemplate=function(t){if(t.Windows){var e=t.Windows.length;if(!(e<=0)){for(var a=this.Frame.SubFrame.length,i=0;i<a;++i){this.DeleteIndexPaint(i);var r=this.Frame.SubFrame[i];r.YSpecificMaxMin=null,r.IsLocked=!1,r.YSplitScale=null}if(a>e){for(var i=a-1;i>=e;--i)this.Frame.SubFrame[i].Frame.ClearToolbar();this.Frame.SubFrame.splice(e,a-e),this.WindowIndex.splice(e,a-e)}else for(var i=a;i<e;++i){var n=this.CreateSubFrameItem(i);this.Frame.SubFrame[i]=n;var o=new se;o.Frame=this.Frame.SubFrame[i].Frame,o.Canvas=this.Canvas,o.LanguageID=this.LanguageID,this.TitlePaint[i+1]=o}for(var l=new s,h=this.ChartPaint[0].Data,i=0;i<e;++i){var u=i,c=t.Windows[i].Index,d=Pe.Get(c),f=u+1;if(this.TitlePaint[f].Data=[],this.TitlePaint[f].Title=null,d)this.WindowIndex[i]=d.Create(),this.CreateWindowIndex(u),this.BindIndexData(u,h);else{var C=l.Get(c);if(C){var p=C.Args;t.Windows[i].Args&&(p=t.Windows[i].Args);var D={Name:C.Name,Script:C.Script,Args:p,ID:c,KLineType:C.KLineType,YSpecificMaxMin:C.YSpecificMaxMin,YSplitScale:C.YSplitScale,FloatPrecision:C.FloatPrecision,Condition:C.Condition};this.WindowIndex[i]=new ja(D.Name,D.Script,D.Args,D),this.BindIndexData(u,h)}}}for(var i=0;i<this.Frame.SubFrame.length;++i){var m=this.Frame.SubFrame[i].Frame;i==this.Frame.SubFrame.length-1?m.XSplitOperator.ShowText=!0:m.XSplitOperator.ShowText=!1}this.UpdataDataoffset(),this.Frame.SetSizeChage(!0),this.ResetFrameXYSplit(),this.UpdateFrameMaxMin(),this.Draw()}}},this.RemoveIndexWindow=function(t){if(bi.Chart.Log("[KLineChartContainer::RemoveIndexWindow] remove id",t),0!=t&&this.Frame.SubFrame&&!(t>=this.Frame.SubFrame.length)){var e=this.Frame.SubFrame[t].Frame;this.DeleteIndexPaint(t),this.Frame.SubFrame[t].Frame.ClearToolbar(),this.Frame.SubFrame.splice(t,1),this.WindowIndex.splice(t,1),this.TitlePaint.splice(t+1,1);for(var a=0;a<this.Frame.SubFrame.length;++a){var i=this.Frame.SubFrame[a].Frame;a==this.Frame.SubFrame.length-1?i.XSplitOperator.ShowText=!0:i.XSplitOperator.ShowText=!1,i.Identify=a}if(this.ChartDrawPicture.length>0){var r=[];for(var a in this.ChartDrawPicture){var i=this.ChartDrawPicture[a];i.Frame!=e&&r.push(i)}this.ChartDrawPicture=r}this.Frame.SetSizeChage(!0),this.UpdateFrameMaxMin(),this.ResetFrameXYSplit(),this.Draw()}},this.GetIndexInfo=function(){var t=[];for(var e in this.WindowIndex){var a=this.WindowIndex[e],i={Name:a.Name};a.ID&&(i.ID=a.ID),t.push(i)}return t},this.CreateExtendChart=function(t,e){var a;switch(t){case"筹码分布":return a=new _t,a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.HQChart=this,a.Left=this.Frame.ChartBorder.Right,a.SetOption(e),this.ExtendChartPaint.push(a),this.Frame.ChartBorder.Right+=a.Width,a;case"画图工具":return a=new Rt,a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.HQChart=this,a.Left=this.Frame.ChartBorder.Right,a.SetOption(e),this.ExtendChartPaint.push(a),this.Frame.ChartBorder.Right+=a.Width,a;case"KLineTooltip":return a=e.Create&&"function"==typeof e.Create?e.Create():new wt,a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.HQChart=this,e.LanguageID=this.LanguageID,a.SetOption(e),this.ExtendChartPaint.push(a),a;case"深度图":return a=new Pt,a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.HQChart=this,a.SetOption(e),this.ExtendChartPaint.push(a),a;default:return null}},this.OnTouchFinished=function(){if(this.DragMode==Mi.CLICK_TOUCH_MODE_ID){if(1==this.TouchStatus.CorssCursorShow&&this.TouchDrawCount>0)return;return this.TouchStatus.CorssCursorShow=!1,void this.DrawDynamicInfo()}if(!0===this.CorssCursorTouchEnd)return void(this.TouchDrawCount>0&&this.DrawDynamicInfo());for(var t in this.ExtendChartPaint){"KLineTooltipPaint"===this.ExtendChartPaint[t].ClassName&&this.DrawDynamicInfo()}},this.GetExtendChartByClassName=function(t){for(var e in this.ExtendChartPaint){var a=this.ExtendChartPaint[e];if(a.ClassName==t)return{Index:e,Chart:a}}return null},this.DeleteExtendChart=function(t){t.Index>=this.ExtendChartPaint.length||this.ExtendChartPaint[t.Index]==t.Chart&&("function"==typeof t.Chart.Clear&&t.Chart.Clear(),this.ExtendChartPaint.splice(t.Index,1))},this.LockIndex=function(t){if(t&&t.IndexName)for(var e in this.WindowIndex){var a=this.WindowIndex[e];if(a||conintue,a.Name==t.IndexName){a.SetLock(t),this.Update();break}}},this.TryClickLock=function(t,e){for(var a in this.Frame.SubFrame){var i=this.Frame.SubFrame[a];if(i.Frame.IsLocked&&i.Frame.LockPaint){var r=new U;if(i.Frame.LockPaint.GetTooltipData(t,e,r))return r.HQChart=this,r.Data.Callback&&r.Data.Callback(r),!0}}return!1},this.TryClickIndexTitle=function(t,e){for(var a in this.TitlePaint){var i=this.TitlePaint[a];if(i.IsClickTitle&&i.IsClickTitle(t,e)){var r={Point:{X:t,Y:e},Title:i.Title,FrameID:i.Frame.Identify};bi.Chart.Log("[KLineChartContainer::TryClickIndexTitle] click title ",r);var n=this.GetEventCallback(yi.ON_CLICK_INDEXTITLE);return n&&n.Callback&&n.Callback(n,r,this),!0}}return!1},this.SetSizeChage=function(t){this.Frame.SetSizeChage(t);for(var e in this.ExtendChartPaint){this.ExtendChartPaint[e].SizeChange=t}},this.Update=function(){if(this.SourceData){var t=new Y;if(t.Data=this.SourceData.Data,t.Period=this.Period,t.Right=this.Right,t.DataType=this.SourceData.DataType,t.Symbol=this.Symbol,t.Right>0&&Y.IsDayPeriod(t.Period,!0)){var e=t.GetRightDate(t.Right);t.Data=e}if(Y.IsDayPeriod(t.Period,!1)||Y.IsMinutePeriod(t.Period,!1)){var a=t.GetPeriodData(t.Period);t.Data=a}this.BindMainData(t,this.PageSize);for(var i=0;i<this.Frame.SubFrame.length;++i)this.BindIndexData(i,t);for(var i in this.OverlayChartPaint){var r=this.OverlayChartPaint[i];if(r.SourceData)if(Y.IsMinutePeriod(this.Period,!0)){var t=new Y;t.Data=r.SourceData.Data,t.Period=this.Period,t.Right=this.Right;var n=this.SourceData.GetOverlayMinuteData(t.Data);if(t.Data=n,Y.IsMinutePeriod(t.Period,!1)){var a=t.GetPeriodData(t.Period);t.Data=a}r.Data=t}else{var t=new Y;if(t.Data=r.SourceData.Data,t.Period=this.Period,t.Right=this.Right,t.Right>0&&Ji.IsSHSZStockA(r.Symbol)){var e=t.GetRightDate(t.Right);t.Data=e}var n=this.SourceData.GetOverlayData(t.Data);if(t.Data=n,Y.IsDayPeriod(t.Period,!1)){var a=t.GetPeriodData(t.Period);t.Data=a}r.Data=t}}this.ReqeustKLineInfoData(),this.CreateChartDrawPictureByStorage(),this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw();for(var i=0;i<this.Frame.SubFrame.length;++i){var r=this.Frame.SubFrame[i];for(var o in r.OverlayIndex){var s=r.OverlayIndex[o];this.BindOverlayIndexData(s,i,t)}}}},this.ChangeSymbol=function(t){if(this.CancelAutoUpdate(),this.AutoUpdateEvent(!1,"KLineChartContainer::ChangeSymbol"),this.Symbol=t,Ji.IsSHSZIndex(t)&&(this.Right=0),this.Frame&&this.Frame.SubFrame)for(var e=0;e<this.Frame.SubFrame.length;++e)this.DeleteIndexPaint(e);this.ReloadChartDrawPicture(),Y.IsDayPeriod(this.Period,!0)?(this.RequestHistoryData(),this.ReqeustKLineInfoData()):Y.IsMinutePeriod(this.Period,!0)||Y.IsSecondPeriod(this.Period)?this.ReqeustHistoryMinuteData():Y.IsTickPeriod(this.Period)&&this.RequestTickData()},this.ReqeustKLineInfoData=function(){if(this.ChartPaint.length>0){this.ChartPaint[0].InfoData=new xi.default}for(var t in this.ChartInfo)this.ChartInfo[t].RequestData(this)},this.SetKLineInfo=function(t,e){this.ChartInfo=[];for(var a in t){var i=la.Get(t[a]);if(i){var r=i.Create();r.MaxReqeustDataCount=this.MaxReqeustDataCount,this.ChartInfo.push(r)}}1==e&&this.ReqeustKLineInfoData()},this.AddKLineInfo=function(t,e){var a=la.GetClassInfo(t);if(!a)return void console.warn("[KLineChartContainer::AddKLineInfo] can't find infoname=",t);for(var i in this.ChartInfo){var r=this.ChartInfo[i];if(r.ClassName==a.ClassName)return}var n=la.Get(t);if(n){var r=n.Create();r.MaxReqeustDataCount=this.MaxReqeustDataCount,this.ChartInfo.push(r),1==e&&r.RequestData(this)}},this.DeleteKLineInfo=function(t){var e=la.GetClassInfo(t);if(!e)return void console.warn("[KLineChartContainer::DeleteKLineInfo] can't find infoname=",t);for(var a in this.ChartInfo){if(this.ChartInfo[a].ClassName==e.ClassName){this.ChartInfo.splice(a,1),this.UpdataChartInfo(),this.Draw();break}}},this.ClearKLineInfo=function(){if(this.ChartInfo&&!(this.ChartInfo.length<=0)){this.ChartInfo=[];this.ChartPaint[0].InfoData=null,this.Draw()}},this.OverlaySymbol=function(t,e){for(var a in this.OverlayChartPaint){if(this.OverlayChartPaint[a].Symbol===t)return console.warn("[KLineChartContainer::OverlaySymbol] overlay symbol="+t+" exist."),!1}var i=new J;return i.Canvas=this.Canvas,i.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,i.ChartFrame=this.Frame.SubFrame[0].Frame,i.Name="Overlay-KLine",i.DrawType=this.KLineDrawType,i.Symbol=t,e&&e.Color?i.Color=e.Color:i.Color=Xi.OverlaySymbol.Color[Xi.OverlaySymbol.Random%Xi.OverlaySymbol.Color.length],i.SetOption(e),++Xi.OverlaySymbol.Random,this.ChartPaint[0]&&this.ChartPaint[0].Data&&this.SourceData&&(i.MainData=this.ChartPaint[0].Data),this.OverlayChartPaint.push(i),Y.IsDayPeriod(this.Period,!0)?this.RequestOverlayHistoryData():Y.IsMinutePeriod(this.Period,!0)&&this.RequestOverlayHistoryMinuteData(),!0},this.RequestOverlayHistoryData=function(){var t=this;if(this.OverlayChartPaint.length&&this.SourceData&&this.SourceData.Data){var e=this,a=this.GetRequestDataCount(),i=this.SourceData.Data[0].Date;for(var r in this.OverlayChartPaint){var o,s=function(){var s=t.OverlayChartPaint[r];if(!s.MainData)return"continue";if(s.Status!=Hi.STATUS_NONE_ID)return"continue";var l=s.Symbol;return l?(s.Status=Hi.STATUS_REQUESTDATA_ID,t.NetworkFilter&&(o={Name:"KLineChartContainer::RequestOverlayHistoryData",Explain:"叠加股票日K线数据",Request:{Url:e.KLineApiUrl,Data:{symbol:l,count:a.MaxRequestDataCount,first:{date:i},field:["name","symbol","yclose","open","price","high","vol","amount"]},Type:"POST"},Self:t,PreventDefault:!1},t.NetworkFilter(o,function(t){s.Status=Hi.STATUS_RECVDATA_ID,e.RecvOverlayHistoryData(t,s)}),1==o.PreventDefault)?{v:void 0}:void n.HttpRequest({url:t.KLineApiUrl,data:{field:["name","symbol","yclose","open","price","high"],symbol:l,start:-1,count:a.MaxRequestDataCount},type:"post",dataType:"json",async:!0,success:function(t){s.Status=Hi.STATUS_RECVDATA_ID,e.RecvOverlayHistoryData(t,s)}})):"continue"}();switch(s){case"continue":continue;default:if("object"===(void 0===s?"undefined":(0,Ci.default)(s)))return s.v}}}},this.RecvOverlayHistoryData=function(t,e){if(!e.IsDelete){var a=ke.JsonDataToHistoryData(t),i=new Y;i.Data=a,i.DataType=0;var r=new Y;if(r.Data=a,r.Period=this.Period,r.Right=this.Right,r.DataType=0,r.Right>0&&Ji.IsSHSZStockA(t.symbol)){var n=r.GetRightDate(r.Right);r.Data=n}var o=this.SourceData.GetOverlayData(r.Data);if(r.Data=o,Y.IsDayPeriod(r.Period,!1)){var s=r.GetPeriodData(r.Period);r.Data=s}e.Data=r,e.SourceData=i,e.Title=t.name,e.Symbol=t.symbol,e.Status=Hi.STATUS_FINISHED_ID,this.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType=1,this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}},this.RequestOverlayHistoryMinuteData=function(){var t=this;if(this.OverlayChartPaint.length&&this.SourceData&&this.SourceData.Data){var e=this,a=this.GetRequestDataCount(),i=this.SourceData.Data[0].Date,r=this.SourceData.Data[0].Time;for(var o in this.OverlayChartPaint){var s,l=function(){var l=t.OverlayChartPaint[o];if(!l.MainData)return"continue";if(l.Status!=Hi.STATUS_NONE_ID)return"continue";var h=l.Symbol;return h?(l.Status=Hi.STATUS_REQUESTDATA_ID,t.NetworkFilter&&(s={Name:"KLineChartContainer::RequestOverlayHistoryMinuteData",Explain:"叠加股票分钟K线数据",Request:{Url:e.MinuteKLineApiUrl,Data:{symbol:h,count:a.MaxRequestMinuteDayCount,first:{date:i,time:r},field:["name","symbol","yclose","open","price","high","vol","amount"]},Type:"POST"},Self:t,PreventDefault:!1},t.NetworkFilter(s,function(t){l.Status=Hi.STATUS_RECVDATA_ID,e.RecvOveralyHistoryMinuteData(t,l)}),1==s.PreventDefault)?{v:void 0}:void n.HttpRequest({url:t.MinuteKLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","vol","amount"],symbol:h,start:-1,count:a.MaxRequestMinuteDayCount},type:"post",dataType:"json",async:!0,success:function(t){l.Status=Hi.STATUS_RECVDATA_ID,e.RecvOveralyHistoryMinuteData(t,l)}})):"continue"}();switch(l){case"continue":continue;default:if("object"===(void 0===l?"undefined":(0,Ci.default)(l)))return l.v}}}},this.RecvOveralyHistoryMinuteData=function(t,e){var a=ke.JsonDataToMinuteHistoryData(t);if(a){var i=new Y;i.Data=a,i.DataType=1;var r=new Y;r.Data=a,r.Period=this.Period,r.Right=this.Right,r.DataType=1;var n=this.SourceData.GetOverlayMinuteData(r.Data);if(r.Data=n,Y.IsMinutePeriod(r.Period,!1)){var o=r.GetPeriodData(r.Period);r.Data=o}e.Data=r,e.SourceData=i,e.Title=t.name,e.Symbol=t.symbol,e.Status=Hi.STATUS_FINISHED_ID,this.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType=1,this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}},this.ResetOverlaySymbolStatus=function(){for(var t in this.OverlayChartPaint){this.OverlayChartPaint[t].Status=Hi.STATUS_NONE_ID}},this.ClearOverlaySymbol=function(){for(var t in this.OverlayChartPaint){this.OverlayChartPaint[t].IsDelete=!0}this.OverlayChartPaint=[],this.TitlePaint[0].OverlayChartPaint=this.OverlayChartPaint,this.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType=0,this.UpdateFrameMaxMin(),this.Draw()},this.DeleteOverlaySymbol=function(t){for(var e in this.OverlayChartPaint){var a=this.OverlayChartPaint[e];if(a.Symbol===t)return a.IsDelete=!0,this.OverlayChartPaint.splice(e,1),this.OverlayChartPaint.length<=0&&(this.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType=0),this.UpdateFrameMaxMin(),this.Draw(),!0}return console.warn("[KLineChartContainer::DeleteOverlaySymbol] overlay symbol="+t+" not exist."),!1},this.RequestFlowCapitalData=function(){if(this.Symbol&&1!=this.FlowCapitalReady){var t=this.Symbol.toUpperCase();if(Ji.IsBIT(t)||Ji.IsFutures(t))return bi.Chart.Log("[KLineChartContainer::RequestFlowCapitalData] symbol="+this.Symbol+" not need download data."),void(this.FlowCapitalReady=!0);var e=this,a=["name","date","symbol","capital.a"];if(this.NetworkFilter){var i={Name:"KLineChartContainer::RequestFlowCapitalData",Explain:"流通股本数据",Request:{Url:e.StockHistoryDayApiUrl,Data:{symbol:[this.Symbol],orderfield:"date",field:a},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){e.RecvFlowCapitalData(t)}),1==i.PreventDefault)return}n.HttpRequest({url:this.StockHistoryDayApiUrl,data:{field:a,symbol:[this.Symbol],orderfield:"date"},type:"post",dataType:"json",async:!0,success:function(t){e.RecvFlowCapitalData(t)}})}},this.RecvFlowCapitalData=function(t){if(t.stock&&1==t.stock.length){var e=t.stock[0],a=new Array;for(var i in e.stockday){var r=e.stockday[i],n=new H;n.Date=r.date;var o=r.capital;o&&(o.a>0&&(n.Value=o.a,a.push(n)))}if(Y.IsMinutePeriod(this.Period,!0)){var s=this.SourceData.GetMinuteFittingFinanceData(a);for(var l in this.SourceData.Data){var r=this.SourceData.Data[l];r.FlowCapital=s[l].Value}var h=this.ChartPaint[0].Data,u=new Y;if(u.Data=this.SourceData.Data,Y.IsMinutePeriod(h.Period,!1)){var c=u.GetPeriodData(h.Period);u.Data=c}h.Data=u.Data}else{var s=this.SourceData.GetFittingFinanceData(a);for(var d in this.SourceData.Data){var r=this.SourceData.Data[d];r.FlowCapital=s[d].Value}var h=this.ChartPaint[0].Data,u=new Y;if(u.Data=this.SourceData.Data,h.Right>0){var f=u.GetRightDate(h.Right);u.Data=f}if(Y.IsDayPeriod(h.Period,!1)){var c=u.GetPeriodData(h.Period);u.Data=c}h.Data=u.Data}this.FlowCapitalReady=!0;var C=!1;for(var p in this.ExtendChartPaint){var r=this.ExtendChartPaint[p];if("StockChip"==r.ClassName){C=!0;break}}C&&this.Draw()}},this.SetChartDrawOption=function(t){Ht.IsBool(t.IsLockScreen)&&(this.ChartDrawOption.IsLockScreen=t.IsLockScreen),Ht.IsNumber(t.Zoom)&&t.Zoom>=0&&(this.ChartDrawOption.Zoom=t.Zoom)},this.CreateChartDrawPicture=function(t,e,a){var i=null;switch(t){case"线段":i=new he;break;case"射线":i=new ue;break;case"水平线":i=new ce;break;case"趋势线":i=new de;break;case"矩形":i=new fe;break;case"圆弧线":i=new Ce;break;case"M头W底":i=new pe;break;case"平行线":i=new De;break;case"平行通道":i=new ve;break;case"价格通道线":i=new me;break;case"文本":i=new ge,i.HQChart=this;break;case"江恩角度线":i=new Ie;break;case"阻速线":i=new xe;break;case"黄金分割":i=new Te;break;case"百分比线":i=new Ae;break;case"波段线":i=new be;break;case"三角形":i=new Ee;break;case"对称角度":i=new Fe;break;case"圆":i=new ye;break;case"平行四边形":i=new Le;break;case"斐波那契周期线":i=new Me;break;default:var r=new xi.default([["icon-arrow_up",{Text:"",Color:"#318757"}],["icon-arrow_down",{Text:"",Color:"#db563e"}],["icon-arrow_right",{Text:"",Color:"#318757"}],["icon-arrow_left",{Text:"",Color:"#318757"}]]);if(r.has(t)){var n=r.get(t);i=new Se,i.FontOption.Family="iconfont",i.Text=n.Text,n.Color&&(i.LineColor=n.Color);break}return!1}i.Canvas=this.Canvas,i.Status=0,i.Symbol=this.Symbol,i.Period=this.Period,i.Option=this.ChartDrawOption,a&&(i.FinishedCallback=a),e&&i.SetOption(e);var o=this;return i.Update=function(){o.DrawDynamicInfo()},this.CurrentChartDrawPicture=i,!0},this.SetChartDrawPictureFirstPoint=function(t,e,a){var i=this.CurrentChartDrawPicture;if(!i)return!1;if(!this.Frame.SubFrame||this.Frame.SubFrame.length<=0)return!1;var r=u();a&&(r=1);var n=(t-this.UIElement.getBoundingClientRect().left)*r,o=(e-this.UIElement.getBoundingClientRect().top)*r;for(var s in this.Frame.SubFrame){var l=this.Frame.SubFrame[s].Frame,h=l.ChartBorder.GetLeft(),c=l.ChartBorder.GetTopEx(),d=l.ChartBorder.GetHeight(),f=l.ChartBorder.GetWidth();if(this.Canvas.beginPath(),this.Canvas.rect(h,c,f,d),this.Canvas.isPointInPath(n,o)){i.Frame=l;break}}return!!i.Frame&&(i.Point[0]=new m,i.Point[0].X=(t-this.UIElement.getBoundingClientRect().left)*r,i.Point[0].Y=(e-this.UIElement.getBoundingClientRect().top)*r,i.Status=1,!0)},this.SetChartDrawPictureSecondPoint=function(t,e,a){var i=this.CurrentChartDrawPicture;if(!i)return!1;var r=u();return a&&(r=1),i.Point[1]=new m,i.Point[1].X=(t-this.UIElement.getBoundingClientRect().left)*r,i.Point[1].Y=(e-this.UIElement.getBoundingClientRect().top)*r,i.Status=2,!0},this.SetChartDrawPictureThirdPoint=function(t,e,a){var i=this.CurrentChartDrawPicture;if(!i)return!1;var r=u();return a&&(r=1),i.Point[2]=new m,i.Point[2].X=(t-this.UIElement.getBoundingClientRect().left)*r,i.Point[2].Y=(e-this.UIElement.getBoundingClientRect().top)*r,i.Status=3,!0},this.MoveChartDrawPicture=function(t,e,a){var i=this.CurrentChartDrawPicture;if(!i)return!1;var r=u();a&&(r=1);var n=t*r,o=e*r;return i.Move(n,o),!0},this.FinishChartDrawPicturePoint=function(){var t=this.CurrentChartDrawPicture;if(!t)return!1;if(t.PointCount!=t.Point.length)return!1;t.Status=10,t.PointToValue(),this.ChartDrawPicture.push(t),this.CurrentChartDrawPicture=null;var e=this.GetEventCallback(yi.ON_FINISH_DRAWPICTURE);if(e&&e.Callback){var a={DrawPicture:t};e.Callback(e,a,this)}else t.FinishedCallback&&t.FinishedCallback(t);return this.ChartDrawStorage&&this.ChartDrawStorage.SaveDrawData(t),!0},this.UpdateChartDrawXValue=function(){for(var t in this.ChartDrawPicture){this.ChartDrawPicture[t].UpdateXValue()}},this.OnRightMenu=function(t,e,a){if(this.RightMenu){var i=this.Frame.PtInFrame(t,e);a.data={Chart:this,FrameID:i},this.RightMenu.DoModal(a)}var r=this.GetEventCallback(yi.ON_CONTEXT_MENU);if(r){var i=this.Frame.PtInFrame(t,e),n={X:t,Y:e,Event:a,FrameID:i};r.Callback(r,n,this)}},this.FinishMoveChartDrawPicture=function(){var t=this.CurrentChartDrawPicture;return!!t&&(t.PointCount==t.Point.length&&(t.Status=10,t.PointToValue(),this.ChartDrawStorage&&this.ChartDrawStorage.SaveDrawData(t),this.CurrentChartDrawPicture=null,!0))},this.ClearChartDrawPicture=function(t){if(t)for(var e in this.ChartDrawPicture)this.ChartDrawPicture[e]==t&&(this.ChartDrawStorage&&this.ChartDrawStorage.DeleteDrawData(t),this.ChartDrawPicture.splice(e,1),this.Draw());else this.ChartDrawPicture=[],this.ChartDrawStorage&&this.ChartDrawStorage.Clear(),this.Draw()},this.ReloadChartDrawPicture=function(){this.ChartDrawPicture=[],this.ChartDrawStorageCache,this.ChartDrawStorage&&(this.ChartDrawStorageCache=this.ChartDrawStorage.GetDrawData({Symbol:this.Symbol,Period:this.Period}))},this.CreateChartDrawPictureByStorage=function(){if(this.ChartDrawStorageCache&&!(this.ChartDrawStorageCache.length<=0)){for(var t in this.ChartDrawStorageCache){var e=this.ChartDrawStorageCache[t];if(!(e.FrameID<0||!this.Frame.SubFrame||this.Frame.SubFrame.length<e.FrameID)){var a=le.CreateChartDrawPrictrue(e);a&&(a.Canvas=this.Canvas,a.Status=10,a.Frame=this.Frame.SubFrame[e.FrameID].Frame,a.UpdateXValue(),a.ValueToPoint(),"ChartDrawPictureText"===a.ClassName&&(a.IsInitialized=!0),this.ChartDrawPicture.push(a))}}this.ChartDrawStorageCache=null}},this.OnSelectChartPicture=function(t){},this.RequestKLineMatch=function(t,e){var a=this,i=e.Scope,r=e.WaitDialog;bi.Chart.Log("[KLineChartContainer::RequestKLineMatch",t,i);for(var n=new Array,o=new Array,s=t.Start;s<t.End&&s<t.Data.Data.length;++s){var l=t.Data.Data[s];n.push(l.Date),o.push(l.Close)}var h={Stock:t.Stock,Index:{Start:t.Start,End:t.End},Date:{Start:n[0],End:n[n.length-1]},Minsimilar:i.Minsimilar,Plate:i.Plate,DayRegion:300};Ai.default.ajax({url:this.KLineMatchUrl,data:{userid:"guest",plate:i.Plate,period:this.Period,right:this.Right,dayregion:h.DayRegion,minsimilar:i.Minsimilar,sampledate:n,samplevalue:o},type:"post",dataType:"json",async:!0,success:function(t){r&&r.Close(),a.RecvKLineMatchData(t,h)},error:function(t,e,a){console.warn("[KLineChartContainer::RequestKLineMatch] failed",t,e,a),r&&r.Close()}})},this.RecvKLineMatchData=function(t,e){bi.Chart.Log("[KLineChartContainer::RecvKLineMatchData] recv",t,e);var a=[];for(var i in t.match){var r=t.match[i];if(r.symbol!=e.Stock.Symbol)for(var n in r.data){var o=r.data[n],s={Symbol:r.symbol,Name:r.name,Similar:o.similar,Start:o.start,End:o.end};a.push(s)}}if(a.sort(function(t,e){return e.Similar-t.Similar}),bi.Chart.Log("[KLineChartContainer::RecvKLineMatchData] filterData",a),this.mapEvent.has(yi.RECV_KLINE_MATCH)){var r=this.mapEvent.get(yi.RECV_KLINE_MATCH),t={Sample:e,Match:a,Source:t};r.Callback(r,t,this)}else{var l=new Aa(this.Frame.ChartBorder.UIElement.parentNode),h={data:{Chart:this,MatchData:a,Sample:e,Source:t}};l.DoModal(h)}},this.UpdataChartInfo=function(){var t=null;if(0==this.Period){t=new xi.default;for(var e in this.ChartInfo){var a=this.ChartInfo[e].Data;for(var i in a){var r=a[i];t.has(r.Date.toString())?t.get(r.Date.toString()).Data.push(r):t.set(r.Date.toString(),{Data:new Array(r)})}}}else if(Y.IsDayPeriod(this.Period,!1)){t=new xi.default;var n=this.ChartPaint[0].Data;for(var e in this.ChartInfo)this.ChartInfo[e].TempID=this.ChartInfo[e].Data.length-1;for(var e=0;e<n.Data.length;++e){var o=n.Data[e];for(var i in this.ChartInfo)for(var s=this.ChartInfo[i],a=s.Data;s.TempID>=0;--s.TempID){var l=a[s.TempID];if(l.Date>o.Date)break;t.has(o.Date.toString())?t.get(o.Date.toString()).Data.push(l):t.set(o.Date.toString(),{Data:new Array(l)})}}for(var e in this.ChartInfo)delete this.ChartInfo[e].TempID}this.ChartPaint[0].InfoData=t},this.UpdateWindowIndex=function(t){var e=new Y;if(e.Data=this.SourceData.Data,e.Period=this.Period,e.Right=this.Right,e.Right>0){var a=e.GetRightDate(e.Right);e.Data=a}if(Y.IsDayPeriod(e.Period,!1)||Y.IsMinutePeriod(e.Period,!1)){var i=e.GetPeriodData(e.Period);e.Data=i}if("function"==typeof this.WindowIndex[t].ExecuteScript){var r=this.ChartPaint[0].Data;this.WindowIndex[t].ExecuteScript(this,t,r)}else this.WindowIndex[t].BindData(this,t,e);this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.ChangeWindowIndexParam=function(t){this.WindowIndex[t].Index[0].Param+=1,this.WindowIndex[t].Index[1].Param+=1,this.UpdateWindowIndex(t)},this.OnDoubleClick=function(t,e,a){var i=null;if(this.mapEvent.has(yi.DBCLICK_KLINE)&&(i=this.mapEvent.get(yi.DBCLICK_KLINE)),this.MinuteDialog||i){var r=new U;for(var n in this.ChartPaint){if(this.ChartPaint[n].GetTooltipData(t,e,r))break}if(r.Data){if(i){var o={Tooltip:r,Stock:{Symbol:this.Symbol,Name:this.Name}};i.Callback(i,o,this)}this.MinuteDialog&&(a.data={Chart:this,Tooltip:r},this.MinuteDialog.DoModal(a))}}},this.OnSelectChartPicture=function(t){bi.Chart.Log("[KLineChartContainer::OnSelectChartPicture",t),this.ChartPictureMenu||(this.ChartPictureMenu=new La(this.UIElement.parentNode));var e={data:{ChartPicture:t,HQChart:this}};this.ChartPictureMenu.DoModal(e)},this.CancelAutoUpdate=function(){"number"==typeof this.AutoUpdateTimer&&(clearTimeout(this.AutoUpdateTimer),this.AutoUpdateTimer=void 0)},this.AutoUpdate=function(t){if(this.CancelAutoUpdate(),this.IsAutoUpdate&&this.Symbol){var e=this,a=Ji.GetMarketStatus(this.Symbol);if(0!=a&&3!=a){var i=this.AutoUpdateFrequency;1==a?this.AutoUpdateTimer=setTimeout(function(){e.AutoUpdate()},i):2==a&&(this.AutoUpdateTimer=setTimeout(function(){Y.IsDayPeriod(e.Period,!0)?e.RequestRealtimeData():Y.IsMinutePeriod(e.Period,!0)||Y.IsSecondPeriod(e.Period)?e.RequestMinuteRealtimeData():Y.IsTickPeriod(e.Period)&&e.RequestTickRealtimeData()},i))}}},this.GetMaxMinPageSize=function(){var t={},e=this.Frame.ChartBorder.GetWidth(),a=ki[ki.length-1][0]+ki[ki.length-1][1];return t.Max=parseInt(e/a)-2,a=ki[0][0]+ki[0][1],t.Min=parseInt(e/a)-2,bi.Chart.Log("[KLineChartContainer::GetMaxMinPageSize] Max="+t.Max+" Min="+t.Min),t},this.GetChartStatus=function(){var t=this.Frame.SubFrame[0].Frame;if(!t)return null;var e=t.Data;if(!e)return null;var a={KLine:{},Zoom:{}};return a.KLine.Count=e.Data.length,a.KLine.Offset=e.DataOffset,a.KLine.PageSize=t.XPointCount,a.Zoom.Index=t.ZoomIndex,a.Zoom.Max=ki.length,a},this.DragDownloadData=function(){var t=null;if(!(t=this.Frame.Data?this.Frame.SubFrame[0].Frame.Data:this.Frame.Data))return!1;if(!(t.DataOffset>0))if(Y.IsMinutePeriod(this.Period,!0)){if(bi.Chart.Log("[KLineChartContainer.DragDownloadData] Minute:[Enable="+this.DragDownload.Minute.Enable+", IsEnd="+this.DragDownload.Minute.IsEnd+", Status="+this.DragDownload.Minute.Status+"]"),!this.DragDownload.Minute.Enable)return;if(this.DragDownload.Minute.IsEnd)return;if(0!=this.DragDownload.Minute.Status)return;this.RequestDragMinuteData()}else if(Y.IsDayPeriod(this.Period,!0)){if(bi.Chart.Log("[KLineChartContainer.DragDownloadData] Day:[Enable="+this.DragDownload.Minute.Enable+", IsEnd="+this.DragDownload.Minute.IsEnd+", Status="+this.DragDownload.Minute.Status+"]"),!this.DragDownload.Day.Enable)return;if(this.DragDownload.Day.IsEnd)return;if(0!=this.DragDownload.Day.Status)return;this.RequestDragDayData()}},this.RequestDragMinuteData=function(){var t=this;this.AutoUpdateEvent(!1,"KLineChartContainer::RequestDragMinuteData"),this.CancelAutoUpdate();var e=this.DragDownload.Minute;e.Status=1;var a=this.SourceData.Data[0],i={field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,enddate:a.Date,endtime:a.Time,count:t.MaxRequestMinuteDayCount,first:{date:a.Date,time:a.Time}};if(this.NetworkFilter){var r={Name:"KLineChartContainer::RequestDragMinuteData",Explain:"拖拽1分钟K线数据下载",Request:{Url:this.DragMinuteKLineApiUrl,Type:"POST",Data:i},DragDownload:e,Self:this,PreventDefault:!1};if(this.NetworkFilter(r,function(a){t.RecvDragMinuteData(a),e.Status=0,t.AutoUpdateEvent(!0,"KLineChartContainer::RequestDragMinuteData"),t.AutoUpdate()}),1==r.PreventDefault)return}n.HttpRequest({url:this.DragMinuteKLineApiUrl,data:i,type:"post",dataType:"json",async:!0,success:function(a){t.RecvDragMinuteData(a),e.Status=0,t.AutoUpdateEvent(!0,"KLineChartContainer::RequestDragMinuteData"),t.AutoUpdate()}})},this.RecvDragMinuteData=function(t){var e=ke.JsonDataToMinuteHistoryData(t),a=this.GetHistoryDataCount();for(var i in e){var r=e[i];this.SourceData.Data.splice(i,0,r)}var n=new Y;if(n.Data=this.SourceData.Data,n.Period=this.Period,n.Right=this.Right,n.DataType=this.SourceData.DataType,n.Symbol=this.Symbol,Y.IsDayPeriod(n.Period,!1)||Y.IsMinutePeriod(n.Period,!1)){var o=n.GetPeriodData(n.Period);n.Data=o}this.UpdateMainData(n,a),this.BindInstructionIndexData(n);for(var i=0;i<this.Frame.SubFrame.length;++i)this.BindIndexData(i,n);this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.UpdateChartDrawXValue(),this.Draw()},this.RequestDragDayData=function(){var t=this;this.AutoUpdateEvent(!1,"KLineChartContainer::RequestDragDayData"),this.CancelAutoUpdate();var e=this.DragDownload.Day;e.Status=1;var a=this.SourceData.Data[0],i={field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,enddate:a.Date,count:t.MaxReqeustDataCount,first:{date:a.Date}};if(this.NetworkFilter){var r={Name:"KLineChartContainer::RequestDragDayData",Explain:"拖拽日K数据下载",Request:{Url:this.DragKLineApiUrl,Type:"POST",Data:i},DragDownload:e,Self:this,PreventDefault:!1};if(this.NetworkFilter(r,function(a){t.RecvDragDayData(a),e.Status=0,t.AutoUpdateEvent(!0,"KLineChartContainer::RequestDragDayData"),t.AutoUpdate()}),1==r.PreventDefault)return}n.HttpRequest({url:this.DragKLineApiUrl,data:i,type:"post",dataType:"json",async:!0,success:function(a){t.RecvDragDayData(a),e.Status=0,t.AutoUpdateEvent(!0,"KLineChartContainer::RequestDragDayData"),t.AutoUpdate()}})},this.RecvDragDayData=function(t){var e=ke.JsonDataToHistoryData(t);if(e.length<=0)return void(this.DragDownload.Day.IsEnd=!0);var a=this.GetHistoryDataCount();for(var i in e){var r=e[i];this.SourceData.Data.splice(i,0,r)}var n=new Y;if(n.Data=this.SourceData.Data,n.Period=this.Period,n.Right=this.Right,n.DataType=this.SourceData.DataType,n.Symbol=this.Symbol,Y.IsDayPeriod(n.Period,!1)||Y.IsMinutePeriod(n.Period,!1)){var o=n.GetPeriodData(n.Period);n.Data=o}this.UpdateMainData(n,a),this.BindInstructionIndexData(n);for(var i=0;i<this.Frame.SubFrame.length;++i)this.BindIndexData(i,n);this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.UpdateChartDrawXValue(),this.Draw()},this.SetCustomVerical=function(t,e){if(this.Frame&&!(t>=this.Frame.SubFrame.length)){var a=this.Frame.SubFrame[t];a.Frame&&(a.Frame.CustomVerticalInfo=e)}}}function He(t){this.newMethod=h,this.newMethod(t),delete this.newMethod,this.ClassName="MinuteChartContainer",this.WindowIndex=new Array,this.Symbol,this.Name,this.SourceData,this.IsAutoUpdate=!0,this.AutoUpdateFrequency=3e4,this.AutoUpdateTimer,this.TradeDate=0,this.DayCount=1,this.DayData,this.LimitPrice,this.IsShowBeforeData=!1,this.BeforeData=null,this.IsBeforeData=!1,this.IsShowLead=!0,this.MinuteApiUrl=Xi.Domain+"/API/Stock",this.HistoryMinuteApiUrl=Xi.Domain+"/API/StockMinuteData",this.StopAutoUpdate=function(){this.CancelAutoUpdate(),this.IsAutoUpdate&&(this.IsAutoUpdate=!1)},this.OnTouchStart=function(e){if(0!=this.DragMode&&(this.IsOnTouch=!0,this.TouchDrawCount=0,this.PhonePinch=null,this.StopDragTimer(),0==this.EnableScrollUpDown&&e.preventDefault(),this.IsPhoneDragging(e))){var a={Click:{},LastMove:{}},i=this.GetToucheData(e,this.IsForceLandscape);a.Click.X=i[0].clientX,a.Click.Y=i[0].clientY,a.LastMove.X=i[0].clientX,a.LastMove.Y=i[0].clientY;var r=this,n=function(){if(!0===r.ChartCorssCursor.IsShow){var i=u(),n=a.Click.X-t.getBoundingClientRect().left*i,o=a.Click.Y-t.getBoundingClientRect().top*i;r.OnMouseMove(n,o,e)}};1==this.EnableScrollUpDown&&(this.DragTimer=setTimeout(function(){if(a.Click.X==a.LastMove.X&&a.Click.Y==a.LastMove.Y){r.MouseDrag;r.MouseDrag=null,n(),r.PreventTouchEvent(e)}},800)),this.MouseDrag=a,this.SelectChartDrawPicture=null,0==this.EnableScrollUpDown&&n()}},this.OnTouchMove=function(e){var a=this.GetToucheData(e,this.IsForceLandscape);if(this.IsPhoneDragging(e)){var i=this.MouseDrag;if(null==i){var r=u(),n=a[0].clientX-t.getBoundingClientRect().left*r,o=a[0].clientY-t.getBoundingClientRect().top*r;this.OnMouseMove(n,o,e)}else{var s=this.GetMoveAngle(i.LastMove,{X:a[0].clientX,Y:a[0].clientY}),l=Math.abs(i.LastMove.X-a[0].clientX),h=Math.abs(i.LastMove.Y-a[0].clientY);if(l=parseInt(l),(h>0&&l<=3||s<=this.TouchMoveMinAngle)&&1==this.EnableScrollUpDown)return void this.StopDragTimer();this.PreventTouchEvent(e),this.MouseDrag=null;var r=u(),n=a[0].clientX-t.getBoundingClientRect().left*r,o=a[0].clientY-t.getBoundingClientRect().top*r;this.OnMouseMove(n,o,e)}}0==this.EnableScrollUpDown?e.preventDefault():null==i?this.PreventTouchEvent(e):this.StopDragTimer()},this.OnTouchEnd=function(t){bi.Chart.Log("[MinuteChartContainer::OnTouchEnd]",t),this.IsOnTouch=!1,this.StopDragTimer(),this.OnTouchFinished(),this.TouchDrawCount=0},this.OnKeyDown=function(t){switch(t.keyCode?t.keyCode:t.which){case 37:if(this.CursorIndex=parseInt(this.CursorIndex),this.CursorIndex<=.99999){if(!this.DataMoveLeft())break;this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw()}else--this.CursorIndex,this.UpdatePointByCursorIndex(),this.DrawDynamicInfo();break;case 39:var e=0;if(e=this.Frame.XPointCount?this.Frame.XPointCount:this.Frame.SubFrame[0].Frame.XPointCount,this.CursorIndex=parseInt(this.CursorIndex),this.CursorIndex+1>=e){if(!this.DataMoveRight())break;this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw()}else{var a=null;if(!(a=this.Frame.Data?this.Frame.Data:this.Frame.SubFrame[0].Frame.Data))break;if(this.CursorIndex+a.DataOffset+1>=a.Data.length)break;++this.CursorIndex,this.UpdatePointByCursorIndex(),this.DrawDynamicInfo()}break;default:return}t.preventDefault?t.preventDefault():t.returnValue=!1},this.OnRightMenu=function(t,e,a){if(this.RightMenu){var i=this.Frame.PtInFrame(t,e);a.data={Chart:this,FrameID:i},this.RightMenu.DoModal(a)}var r=this.GetEventCallback(yi.ON_CONTEXT_MENU);if(r){var i=this.Frame.PtInFrame(t,e),n={X:t,Y:e,Event:a,FrameID:i};r.Callback(r,n,this)}},this.UpdatePointByCursorIndex=function(){this.LastPoint.X=this.Frame.GetXFromIndex(this.CursorIndex);var t=this.CursorIndex;t=parseInt(t.toFixed(0));var e=this.Frame.SourceData;if(!(e.DataOffset+t>=e.Data.length)){var a=e.Data[e.DataOffset+t],i=null;i=a.Before?a.Before.Close:a.Close,this.LastPoint.Y=this.Frame.GetYFromData(i)}},this.Create=function(t){this.UIElement.JSChartContainer=this,this.ChartCorssCursor=new Kt,this.ChartCorssCursor.Canvas=this.Canvas,this.ChartCorssCursor.StringFormatX=new jt,this.ChartCorssCursor.StringFormatY=new qt,this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new _,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=25,this.Frame.ChartBorder.Left=50,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartCorssCursor.Frame=this.Frame,this.ChartSplashPaint.Frame=this.Frame,this.CreateChildWindow(t),this.CreateMainKLine();for(var e in this.Frame.SubFrame){var a=new se;a.Frame=this.Frame.SubFrame[e].Frame,a.Canvas=this.Canvas,a.LanguageID=this.LanguageID,this.TitlePaint.push(a)}this.ChartCorssCursor.StringFormatX.Frame=this.Frame.SubFrame[0].Frame,this.UIElement.addEventListener("keydown",c,!0)},this.CreateChildWindow=function(t){for(var e=0;e<t;++e){var a=new S;a.UIElement=this.UIElement;var i=new A;i.Canvas=this.Canvas,i.ChartBorder=a,e<2&&(i.ChartBorder.TitleHeight=0),i.XPointCount=243;var r=[9,8,7,6,5,4,3,2,1];i.HorizontalMax=r[0],i.HorizontalMin=r[r.length-1],0==e?(i.YSplitOperator=new Ut,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("price")):(i.YSplitOperator=new Gt,i.YSplitOperator.LanguageID=this.LanguageID,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double")),i.YSplitOperator.Frame=i,i.YSplitOperator.ChartBorder=a,i.XSplitOperator=new Wt,i.XSplitOperator.Frame=i,i.XSplitOperator.ChartBorder=a,e!=t-1&&(i.XSplitOperator.ShowText=!1),i.XSplitOperator.Operator();for(var n in r)i.HorizontalInfo[n]=new g,i.HorizontalInfo[n].Value=r[n],0==e&&n==i.HorizontalMin||(i.HorizontalInfo[n].Message[1]=r[n].toString(),i.HorizontalInfo[n].Font="14px 微软雅黑");var o=new N;o.Frame=i,o.Height=0==e?20:10,this.Frame.SubFrame[e]=o}},this.CreateSubFrameItem=function(t){var e=new S;e.UIElement=this.UIElement;var a=new A;a.Canvas=this.Canvas,a.ChartBorder=e,a.Identify=t,a.XPointCount=243;var i=[9,8,7,6,5,4,3,2,1];a.HorizontalMax=i[0],a.HorizontalMin=i[i.length-1],a.YSplitOperator=new Gt,a.YSplitOperator.LanguageID=this.LanguageID,a.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double"),a.YSplitOperator.Frame=a,a.YSplitOperator.ChartBorder=e,a.XSplitOperator=new Wt,a.XSplitOperator.Frame=a,a.XSplitOperator.ChartBorder=e,a.XSplitOperator.ShowText=!1;var r=this.Frame.SubFrame[0].Frame.XPointCount;a.XPointCount=r,a.Data=this.ChartPaint[0].Data;for(var n in i)a.HorizontalInfo[n]=new g,a.HorizontalInfo[n].Value=i[n],a.HorizontalInfo[n].Message[1]=i[n].toString(),a.HorizontalInfo[n].Font="14px 微软雅黑";var o=new N;return o.Frame=a,o.Height=10,o},this.DeleteIndexPaint=function(t){var e=new Array;for(var a in this.ChartPaint){var i=this.ChartPaint[a];0!=a&&i.ChartFrame==this.Frame.SubFrame[t].Frame||e.push(i)}this.Frame.SubFrame[t].Frame.YSpecificMaxMin=null,this.Frame.SubFrame[t].Frame.IsLocked=!1,this.ChartPaint=e;var r=t+1;this.TitlePaint[r].Data=[],this.TitlePaint[r].Title=null},this.CreateStockInfo=function(){this.ExtendChartPaint[0]=new Ot,this.ExtendChartPaint[0].Canvas=this.Canvas,this.ExtendChartPaint[0].ChartBorder=this.Frame.ChartBorder,this.ExtendChartPaint[0].ChartFrame=this.Frame,this.Frame.ChartBorder.Right=300},this.CreateMainKLine=function(){var t=new ct;t.Canvas=this.Canvas,t.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,t.ChartFrame=this.Frame.SubFrame[0].Frame,t.Name="Minute-Line",t.Color=Xi.Minute.PriceColor,t.AreaColor=Xi.Minute.AreaPriceColor,this.ChartPaint[0]=t;var e=new ct;e.Canvas=this.Canvas,e.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,e.ChartFrame=this.Frame.SubFrame[0].Frame,e.Name="Minute-Average-Line",e.Color=Xi.Minute.AvPriceColor,e.IsDrawArea=!1,this.ChartPaint[1]=e;var a=new q;a.Color=Xi.Minute.VolBarColor,a.Canvas=this.Canvas,a.ChartBorder=this.Frame.SubFrame[1].Frame.ChartBorder,a.ChartFrame=this.Frame.SubFrame[1].Frame,a.Name="Minute-Vol-Bar",this.ChartPaint[2]=a,this.TitlePaint[0]=new ne,this.TitlePaint[0].Frame=this.Frame.SubFrame[0].Frame,this.TitlePaint[0].Canvas=this.Canvas,this.TitlePaint[0].OverlayChartPaint=this.OverlayChartPaint,this.TitlePaint[0].LanguageID=this.LanguageID},this.ChangeScriptIndex=function(t,e){this.DeleteIndexPaint(t),this.WindowIndex[t]=new ja(e.Name,e.Script,e.Args,e);var a=this.SourceData;this.BindIndexData(t,a),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw()},this.ChangeIndex=function(t,e,a){if(!(this.Frame.SubFrame.length<3)){var i=new s,r=i.Get(e);if(r){t<2&&(t=2),t>=this.Frame.SubFrame.length&&(t=2);var n={Name:r.Name,Script:r.Script,Args:r.Args,ID:e,KLineType:r.KLineType,YSpecificMaxMin:r.YSpecificMaxMin,YSplitScale:r.YSplitScale,FloatPrecision:r.FloatPrecision,Condition:r.Condition,StringFormat:r.StringFormat};return a&&(a.FloatPrecision>=0&&(n.FloatPrecision=a.FloatPrecision),a.StringFormat>0&&(n.StringFormat=a.StringFormat),a.Args&&(n.Args=a.Args)),this.ChangeScriptIndex(t,n)}}},this.ChangeIndexWindowCount=function(t){if(!(t<2)&&this.Frame.SubFrame.length!=t){var e=this.Frame.SubFrame.length;if(e>t){for(var a=e-1;a>=t;--a){this.DeleteIndexPaint(a);var i=this.Frame.SubFrame[a].Frame;i.ClearToolbar&&i.ClearToolbar()}this.Frame.SubFrame.splice(t,e-t),this.WindowIndex.splice(t,e-t)}else{for(var a=e;a<t;++a){var r=this.CreateSubFrameItem(a);this.Frame.SubFrame[a]=r;var n=new se;n.Frame=this.Frame.SubFrame[a].Frame,n.Canvas=this.Canvas,n.LanguageID=this.LanguageID,this.TitlePaint[a+1]=n}for(var o=["RSI","MACD","DMA","DMI","KDJ","WR"],l=new s,a=e;a<t;++a){var h=o[a%o.length],u=l.Get(h);this.WindowIndex[a]=new ja(u.Name,u.Script,u.Args,u);var c=this.SourceData;this.BindIndexData(a,c)}for(var a=0;a<this.Frame.SubFrame.length;++a){var i=this.Frame.SubFrame[a].Frame;a==this.Frame.SubFrame.length-1?i.XSplitOperator.ShowText=!0:i.XSplitOperator.ShowText=!1}this.UpdataDataoffset()}this.Frame.SetSizeChage(!0),this.ResetFrameXYSplit(),this.UpdateFrameMaxMin(),this.Draw()}},this.ChangeSymbol=function(t){this.CancelAutoUpdate(),this.Symbol=t,this.ResetOverlaySymbolStatus(),this.ChartSplashPaint.IsEnableSplash=!0,this.Draw(),this.RequestData()},this.ChangeDayCount=function(t){t<0||t>10||(this.DayCount=t,this.ResetOverlaySymbolStatus(),this.RequestData())},this.OverlaySymbol=function(t,e){for(var a in this.OverlayChartPaint){if(this.OverlayChartPaint[a].Symbol==t)return console.warn("[MinuteChartContainer::OverlaySymbol] overlay symbol="+t+" exist."),!1}var i=new dt;return i.Canvas=this.Canvas,i.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,i.ChartFrame=this.Frame.SubFrame[0].Frame,i.Name="Overlay-Minute",i.Symbol=t,e&&e.Color?i.Color=e.Color:i.Color=Xi.OverlaySymbol.Color[Xi.OverlaySymbol.Random%Xi.OverlaySymbol.Color.length],++Xi.OverlaySymbol.Random,this.ChartPaint[0].YClose>0&&this.ChartPaint[0].Data&&(i.MainData=this.ChartPaint[0].Data,i.MainYClose=this.ChartPaint[0].YClose),this.OverlayChartPaint.push(i),this.DayCount<=1?this.RequestOverlayMinuteData():this.RequestOverlayHistoryMinuteData(),!0},this.ResetOverlaySymbolStatus=function(){for(var t in this.OverlayChartPaint){this.OverlayChartPaint[t].Status=Hi.STATUS_NONE_ID}},this.DeleteOverlaySymbol=function(t){for(var e in this.OverlayChartPaint){var a=this.OverlayChartPaint[e];if(a.Symbol===t)return a.IsDelete=!0,this.OverlayChartPaint.splice(e,1),this.UpdateFrameMaxMin(),this.Draw(),!0}return console.warn("[MinuteChartContainer::DeleteOverlaySymbol] overlay symbol="+t+" not exist."),!1},this.ClearOverlaySymbol=function(){for(var t in this.OverlayChartPaint){this.OverlayChartPaint[t].IsDelete=!0}this.OverlayChartPaint=[],this.Frame.SubFrame[0].Frame.YSplitOperator.OverlayChartPaint=this.OverlayChartPaint,this.TitlePaint[0].OverlayChartPaint=this.OverlayChartPaint,this.UpdateFrameMaxMin(),this.Draw()},this.ShowBeforeData=function(t){this.IsShowBeforeData!=t&&(this.IsShowBeforeData=t,this.RequestData())},this.RequestData=function(){this.DayCount<=1?this.RequestMinuteData():this.RequestHistoryMinuteData()},this.ChangeDrawType=function(t){if(!(this.ChartPaint.length<=0)){if(0==t)this.ChartPaint[0].IsDrawArea=!0;else{if(1!=t)return;this.ChartPaint[0].IsDrawArea=!1}this.Draw()}},this.RequestHistoryMinuteData=function(){var t=this;if(this.IsBeforeData=!1,this.ChartSplashPaint.IsEnableSplash=!0,this.Draw(),this.NetworkFilter){var e={Name:"MinuteChartContainer::RequestHistoryMinuteData",Explain:"多日分时数据",Request:{Url:t.HistoryMinuteApiUrl,Data:{daycount:t.DayCount,symbol:t.Symbol},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryMinuteData(e)}),1==e.PreventDefault)return}n.HttpRequest({url:t.HistoryMinuteApiUrl,data:{symbol:t.Symbol,daycount:t.DayCount},type:"post",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryMinuteData(e)}})},this.RecvHistoryMinuteData=function(t){this.DayData=He.JsonDataToMinuteDataArray(t),this.Symbol=t.symbol,this.Name=t.name,this.CaclutateLimitPrice(this.DayData[0].YClose,t.data[0].limitprice),this.UpdateHistoryMinuteUI(),this.RecvMinuteDataEvent(),this.RequestOverlayHistoryMinuteData(),this.AutoUpdate()},this.UpdateHistoryMinuteUI=function(){var t=this.HistoryMinuteDataToArray(this.DayData),e=new Y;e.Data=t,this.SourceData=e,this.TradeDate=this.DayData[0].Date,this.BindMainData(e,this.DayData[0].YClose);var a=this.Symbol.toUpperCase();if(Ji.IsForeignExchange(a)&&(this.ChartPaint[1].Data=null),this.Frame.SubFrame.length>2){var i=new Y;i.Data=t;for(var r=2;r<this.Frame.SubFrame.length;++r)this.BindIndexData(r,i)}for(var n in this.Frame.SubFrame){var o=this.Frame.SubFrame[n];o.Frame.XSplitOperator.Symbol=this.Symbol,o.Frame.XSplitOperator.DayCount=this.DayData.length,o.Frame.XSplitOperator.DayData=this.DayData,o.Frame.XSplitOperator.Operator(),o.Frame.XSplitOperator.IsBeforeData=this.IsBeforeData,o.Frame.YSplitOperator.Symbol=this.Symbol,o.Frame.IsBeforeData=this.IsBeforeData;for(var s in o.OverlayIndex){var l=o.OverlayIndex[s];l.Frame.XPointCount=o.Frame.XPointCount,l.Frame.MinuteCount=o.Frame.MinuteCount}}this.ChartCorssCursor.StringFormatY.Symbol=this.Symbol,this.ChartCorssCursor.StringFormatX.Symbol=this.Symbol,this.ChartCorssCursor.StringFormatX.IsBeforeData=this.IsBeforeData,this.TitlePaint[0].IsShowDate=!0,this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()},this.HistoryMinuteDataToArray=function(t){for(var e=[],a=t.length-1;a>=0;--a){var i=t[a];for(var r in i.Data)e.push(i.Data[r])}return e},this.UpdateLatestMinuteData=function(t,e){for(var a in this.DayData){var i=this.DayData[a];if(i.Date===e){i.Data=t;break}}},this.RequestMinuteData=function(){var t=this,e=["name","symbol","yclose","open","price","high","low","vol","amount","date","time","minute","minutecount"],a=this.Symbol.toUpperCase();if(Ji.IsFutures(a)&&(e.push("clearing"),e.push("yclearing")),this.IsBeforeData=!1,this.IsShowBeforeData&&1===this.DayCount&&Ji.IsSHSZStockA(t.Symbol)&&(this.IsBeforeData=!0,e.push("before")),this.NetworkFilter){var i={Name:"MinuteChartContainer::RequestMinuteData",Explain:"最新分时数据",Request:{Url:t.MinuteApiUrl,Data:{field:e,symbol:[t.Symbol]},Type:"POST"},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvMinuteData(e)}),1==i.PreventDefault)return}n.HttpRequest({url:t.MinuteApiUrl,data:{field:e,symbol:[t.Symbol],start:-1},type:"post",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvMinuteData(e)}})},this.RecvMinuteDataEvent=function(){if(this.mapEvent.has(yi.RECV_MINUTE_DATA)){var t=this.mapEvent.get(yi.RECV_MINUTE_DATA),e={MinuteData:this.SourceData,Stock:{Symbol:this.Symbol,Name:this.Name}};t.Callback(t,e,this)}},this.RecvMinuteData=function(t){if(this.IsBeforeData)var e=He.JsonDataToMinuteData2(t);else var e=He.JsonDataToMinuteData(t);if(this.DayCount>1)return this.UpdateLatestMinuteData(e,t.stock[0].date),this.UpdateHistoryMinuteUI(),this.RecvMinuteDataEvent(),this.RequestOverlayMinuteData(),void this.AutoUpdate();var a=new Y;a.Data=e,this.TradeDate=t.stock[0].date,this.SourceData=a,this.Symbol=t.stock[0].symbol,this.Name=t.stock[0].name;var i=t.stock[0].yclose,r=this.Symbol.toUpperCase(),n=Ji.IsFutures(r);t.stock[0].yclearing>0&&n&&(i=t.stock[0].yclearing),this.CaclutateLimitPrice(i,t.stock[0].limitprice);var o=null;if(t.stock[0].high>0&&t.stock[0].low>0&&(o={High:t.stock[0].high,Low:t.stock[0].low}),this.BindMainData(a,i,o),this.Frame.SubFrame.length>2){var s=new Y;s.Data=e;for(var l=2;l<this.Frame.SubFrame.length;++l)this.BindIndexData(l,s)}for(var h in this.Frame.SubFrame){var u=this.Frame.SubFrame[h];u.Frame.XSplitOperator.Symbol=this.Symbol,u.Frame.XSplitOperator.DayCount=1,u.Frame.XSplitOperator.Operator(),u.Frame.XSplitOperator.IsBeforeData=this.IsBeforeData,u.Frame.YSplitOperator.Symbol=this.Symbol,u.Frame.IsBeforeData=this.IsBeforeData;for(var c in u.OverlayIndex){var d=u.OverlayIndex[c];d.Frame.XPointCount=u.Frame.XPointCount,d.Frame.MinuteCount=u.Frame.MinuteCount}}this.ChartCorssCursor.StringFormatY.Symbol=this.Symbol,this.ChartCorssCursor.StringFormatX.Symbol=this.Symbol,this.ChartCorssCursor.StringFormatX.IsBeforeData=this.IsBeforeData,Ji.IsSHSZ(r)&&(this.TitlePaint[0].IsShowDate=!1);var f=this.GetChartMinuteInfo();f&&(f.SourceData=this.SourceData),this.RecvMinuteDataEvent(),this.RequestMinuteInfoData(),this.RequestOverlayMinuteData(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw(),this.AutoUpdate()},this.CaclutateLimitPrice=function(t,e){if(this.LimitPrice=null,e&&e.max>0&&e.min>0)return void(this.LimitPrice={Max:e.max,Min:e.min});var a=Ji.GetLimitPriceRange(this.Symbol,this.Name);if(!a)return void bi.Chart.Log("[MinuteChartContainer::CaclutateLimitPrice] "+this.Symbol+" no limit price.");t<=0||(this.LimitPrice={Max:t*(1+a.Max),Min:t*(1+a.Min)},bi.Chart.Log("[MinuteChartContainer::CaclutateLimitPrice] "+this.Symbol+" yClose:"+t+" max:"+this.LimitPrice.Max+" min:"+this.LimitPrice.Min),this.LimitPrice.Max=parseFloat(this.LimitPrice.Max.toFixed(2)),this.LimitPrice.Min=parseFloat(this.LimitPrice.Min.toFixed(2)),bi.Chart.Log("[MinuteChartContainer::CaclutateLimitPrice] "+this.Symbol+" tofixed(2) max:"+this.LimitPrice.Max+" min:"+this.LimitPrice.Min))},this.RequestOverlayMinuteData=function(){var t=this,e=this,a=this.TradeDate;for(var i in this.OverlayChartPaint){var r,o,s=function(){var s=t.OverlayChartPaint[i];return s.MainData&&s.MainYClose>0?s.Status!=Hi.STATUS_NONE_ID?"continue":(r=s.Symbol)?(s.Status=Hi.STATUS_REQUESTDATA_ID,t.NetworkFilter&&(o={Name:"MinuteChartContainer::RequestOverlayMinuteData",Explain:"叠加股票最新分时数据",Request:{Url:e.HistoryMinuteApiUrl,Data:{days:[a],symbol:r},Type:"POST"},Self:t,PreventDefault:!1},t.NetworkFilter(o,function(t){s.Status=Hi.STATUS_RECVDATA_ID,e.RecvOverlayMinuteData(t,s)}),1==o.PreventDefault)?"continue":void n.HttpRequest({url:e.HistoryMinuteApiUrl,data:{symbol:r,days:[a]},type:"post",dataType:"json",async:!0,success:function(t){s.Status=Hi.STATUS_RECVDATA_ID,e.RecvOverlayMinuteData(t,s)}})):{v:void 0}:"continue"}();switch(s){case"continue":continue;default:if("object"===(void 0===s?"undefined":(0,Ci.default)(s)))return s.v}}},this.RecvOverlayMinuteData=function(t,e){if(!e.IsDelete){var a,i=He.JsonDataToMinuteDataArray(t),r=null;if(this.DayCount>1){if(i.length<=0)return;var n=i[0];for(var o in e.SourceData){if(e.SourceData[o].Date==n.Date){e.SourceData[o]=n;var s=this.HistoryMinuteDataToArray(e.SourceData),r=new Y;r.Data=s,a=n.YClose;break}}if(null==r)return}else r=i.length>0?i[0]:new Y,a=r.YClose;e.Data=r,e.Title=t.name,e.Symbol=t.symbol,e.YClose=a,e.Status=Hi.STATUS_FINISHED_ID,this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}},this.RequestOverlayHistoryMinuteData=function(){var t=this,e=this,a=[];for(var i in this.DayData){var r=this.DayData[i];a.push(r.Date)}if(!(a.length<=0)){for(var i in this.OverlayChartPaint){var o,s,l=function(){var r=t.OverlayChartPaint[i];return(o=r.Symbol)?r.Status!=Hi.STATUS_NONE_ID?"continue":(r.Status=Hi.STATUS_REQUESTDATA_ID,t.NetworkFilter&&(s={Name:"MinuteChartContainer::RequestOverlayHistoryMinuteData",Explain:"叠加股票多日分时数据",Request:{Url:e.HistoryMinuteApiUrl,Data:{days:a,symbol:o},Type:"POST"},Self:t,PreventDefault:!1},t.NetworkFilter(s,function(t){r.Status=Hi.STATUS_RECVDATA_ID,e.RecvOverlayHistoryMinuteData(t,r)}),1==s.PreventDefault)?{v:void 0}:void n.HttpRequest({url:e.HistoryMinuteApiUrl,data:{symbol:o,days:a},type:"post",dataType:"json",async:!0,success:function(t){r.Status=Hi.STATUS_RECVDATA_ID,e.RecvOverlayHistoryMinuteData(t,r)}})):{v:void 0}}();switch(l){case"continue":continue;default:if("object"===(void 0===l?"undefined":(0,Ci.default)(l)))return l.v}}}},this.RecvOverlayHistoryMinuteData=function(t,e){var a=He.JsonDataToMinuteDataArray(t),i=[];for(var r in this.DayData){var n=this.DayData[r],o=!1;for(var s in a)if(n.Date==a[s].Date){i.push(a[r]),o=!0;break}if(!o){(new Y).Date=n.Date}}e.SourceData=i;var l=this.HistoryMinuteDataToArray(i),h=i[0].YClose,u=new Y;u.Data=l,e.Data=u,e.Title=t.name,e.Symbol=t.symbol,e.YClose=h,e.Status=Hi.STATUS_FINISHED_ID,this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()},this.CancelAutoUpdate=function(){"number"==typeof this.AutoUpdateTimer&&(clearTimeout(this.AutoUpdateTimer),this.AutoUpdateTimer=void 0)},this.AutoUpdate=function(){if(this.CancelAutoUpdate(),this.IsAutoUpdate&&this.Symbol){var t=this,e=Ji.GetMarketStatus(this.Symbol);if(0!=e&&3!=e){var a=this.AutoUpdateFrequency;1==e?this.AutoUpdateTimer=setTimeout(function(){t.AutoUpdate()},a):2==e&&(this.AutoUpdateTimer=setTimeout(function(){t.ResetOverlaySymbolStatus(),t.RequestMinuteData()},a))}}},this.BindIndexData=function(t,e){if(this.WindowIndex[t])return"function"==typeof this.WindowIndex[t].RequestData?void this.WindowIndex[t].RequestData(this,t,e):"function"==typeof this.WindowIndex[t].ExecuteScript?void this.WindowIndex[t].ExecuteScript(this,t,e):void this.WindowIndex[t].BindData(this,t,e)},this.BindMainData=function(t,e,a){var i=new Y;if(i.Data=t.GetClose(),this.ChartPaint[0].Data=i,this.ChartPaint[0].YClose=e,this.ChartPaint[0].NotSupportMessage=null,this.ChartPaint[0].SourceData=this.IsBeforeData?t:null,this.ChartPaint[0].IsShowLead=!1,this.ChartPaint[0].LeadData=null,Ji.IsSHSZIndex(this.Symbol)&&1==this.DayCount&&this.IsShowLead){var r=new Y;r.Data=t.GetLead(),this.ChartPaint[0].LeadData=r,this.ChartPaint[0].IsShowLead=!0}this.Frame.SubFrame[0].Frame.YSplitOperator.YClose=e,this.Frame.SubFrame[0].Frame.YSplitOperator.Data=i,this.Frame.Data=this.ChartPaint[0].Data,this.Frame.SourceData=t,i=new Y,i.Data=t.GetMinuteAvPrice(),this.ChartPaint[1].Data=i;var n=this.Symbol.toUpperCase();Ji.IsForeignExchange(n)&&(this.ChartPaint[1].Data=null),this.Frame.SubFrame[0].Frame.YSplitOperator.AverageData=i,this.Frame.SubFrame[0].Frame.YSplitOperator.SourceData=this.IsBeforeData?t:null,this.Frame.SubFrame[0].Frame.YSplitOperator.OverlayChartPaint=this.OverlayChartPaint,this.Frame.SubFrame[0].Frame.YSplitOperator.LimitPrice=this.LimitPrice,a&&(this.Frame.SubFrame[0].Frame.YSplitOperator.High=a.High,this.Frame.SubFrame[0].Frame.YSplitOperator.Low=a.Low),this.ChartPaint[2].Data=t,this.ChartPaint[2].YClose=e,Ji.IsFutures(n)||Ji.IsSHO(n)?this.BindOverlayMainData(t,e):this.ClearBindOverlayMainData(),this.TitlePaint[0].Data=this.SourceData,this.TitlePaint[0].Symbol=this.Symbol,this.TitlePaint[0].Name=this.Name,this.TitlePaint[0].YClose=e,this.ChartCorssCursor&&this.ChartCorssCursor.StringFormatY&&(this.ChartCorssCursor.StringFormatY.YClose=e),this.ExtendChartPaint[0]&&(this.ExtendChartPaint[0].Symbol=this.Symbol,this.ExtendChartPaint[0].Name=this.Name);var o=0,s=this.IsBeforeData;this.DayCount>1&&(s=!1),s&&(o=15);for(var l in this.OverlayChartPaint){var h=this.OverlayChartPaint[l];h.MainData=this.ChartPaint[0].Data,h.MainYClose=e,h.BeforeDataCount=o,h.IsBeforeData=s}},this.BindOverlayMainData=function(t,e){if(!(this.Frame.SubFrame.length<2)){var a=null,i=null,r=this.Frame.SubFrame[1];if(r.OverlayIndex.length<=0){var n=new O;n.Identify="Position_Line_Frame",i=new b,i.Canvas=this.Canvas,i.MainFrame=r.Frame,i.ChartBorder=r.Frame.ChartBorder,n.Frame=i,i.YSplitOperator=new Gt,i.YSplitOperator.LanguageID=this.LanguageID,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double"),i.YSplitOperator.Frame=i,i.YSplitOperator.ChartBorder=i.ChartBorder,i.YSplitOperator.SplitCount=r.Frame.YSplitOperator.SplitCount;var a=new Q;a.Canvas=this.Canvas,a.Name="Position-Line",a.ChartBorder=i.ChartBorder,a.ChartFrame=i,a.Identify=n.Identify,a.Color=Xi.Minute.PositionColor,n.ChartPaint.push(a),r.OverlayIndex.push(n),r.Frame.RightFrame=i}else a=r.OverlayIndex[0].ChartPaint[0],i=r.OverlayIndex[0].Frame;var o=this.Frame.SubFrame[0].Frame.XPointCount;i.XPointCount=o;var s=new Y;s.Data=t.GetPosition(),a.Data=s}},this.ClearBindOverlayMainData=function(){if(!(this.Frame.SubFrame.length<2)){var t=this.Frame.SubFrame[1];t.Frame.RightFrame=null,t.OverlayIndex=[]}},this.GetChartPaint=function(t){var e=new Array;for(var a in this.ChartPaint)if(!(a<3)){var i=this.ChartPaint[a];i.ChartFrame==this.Frame.SubFrame[t].Frame&&e.push(i)}return e},this.CreateWindowIndex=function(t){this.WindowIndex[t].Create(this,t)},this.GetIndexInfo=function(){var t=[];for(var e in this.WindowIndex){var a=this.WindowIndex[e],i={Name:a.Name};a.ID&&(i.ID=a.ID),t.push(i)}return t},this.OnTouchFinished=function(){if(!0===this.CorssCursorTouchEnd)return void this.DrawDynamicInfo()},this.CreateExtendChart=function(t,e){var a;switch(t){case"MinuteTooltip":return a=new Nt,a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.HQChart=this,e.LanguageID=this.LanguageID,a.SetOption(e),this.ExtendChartPaint.push(a),a;default:return null}},this.SetMinuteInfo=function(t,e){this.ChartInfo=[];for(var a in t){var i=Da.Get(t[a]);if(i){var r=i.Create();this.ChartInfo.push(r)}}1==e&&this.RequestMinuteInfoData()},this.GetChartMinuteInfo=function(){return this.ChartInfoPaint},this.CreateMinuteInfo=function(t){var e=new ft;return e.Canvas=this.Canvas,e.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,e.ChartFrame=this.Frame.SubFrame[0].Frame,e.HQChartBorder=this.Frame.ChartBorder,e.ChartMinutePrice=this.ChartPaint[0],t&&e.SetOption&&e.SetOption(t),this.ChartInfoPaint=e,e},this.RequestMinuteInfoData=function(){if(!(this.ChartInfo.length<=0)){var t=this.GetChartMinuteInfo();t||(t=this.CreateMinuteInfo(null)),t.SourceData=this.SourceData;for(var e in this.ChartInfo)this.ChartInfo[e].RequestData(this)}},this.UpdataChartInfo=function(){var t=this.GetChartMinuteInfo();if(t){var e=new xi.default;for(var a in this.ChartInfo){var i=this.ChartInfo[a].Data;for(var r in i){var n=i[r],o=n.Date+" "+n.Time;e.has(o)?e.get(o).Data.push(n):e.set(o,{Data:new Array(n)})}}t.Data=e}}}function Ve(t){this.newMethod=He,this.newMethod(t),delete this.newMethod,this.HistoryMinuteApiUrl="https://opensourcecache.zealink.com/cache/minuteday/day/",this.ClassName="HistoryMinuteChartContainer",this.CreateMainKLine=function(){var t=new ct;t.Canvas=this.Canvas,t.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,t.ChartFrame=this.Frame.SubFrame[0].Frame,t.Name="Minute-Line",t.Color=Xi.Minute.PriceColor,this.ChartPaint[0]=t;var e=new Q;e.Canvas=this.Canvas,e.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,e.ChartFrame=this.Frame.SubFrame[0].Frame,e.Name="Minute-Average-Line",e.Color=Xi.Minute.AvPriceColor,this.ChartPaint[1]=e;var e=new q;e.Color=Xi.Minute.VolBarColor,e.Canvas=this.Canvas,e.ChartBorder=this.Frame.SubFrame[1].Frame.ChartBorder,e.ChartFrame=this.Frame.SubFrame[1].Frame,e.Name="Minute-Vol-Bar",this.ChartPaint[2]=e,this.TitlePaint[0]=new ne,this.TitlePaint[0].Frame=this.Frame.SubFrame[0].Frame,this.TitlePaint[0].Canvas=this.Canvas,this.TitlePaint[0].IsShowDate=!0},this.ChangeTradeDate=function(t){t&&(this.TradeDate=t,this.RequestData())},this.RequestData=function(){var t=new Date;1e4*t.getFullYear()+100*(t.getMonth()+1)+t.getDate()==this.TradeDate?this.RequestMinuteData():this.RequestHistoryMinuteData()},this.RequestHistoryMinuteData=function(){var t=this,e=this.HistoryMinuteApiUrl+this.TradeDate.toString()+"/"+this.Symbol+".json";n.HttpRequest({url:e,type:"get",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryMinuteData(e)},error:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryMinuteError(e)}})},this.RecvHistoryMinuteError=function(t){if(404==t.status){var e=new Y;this.SourceData=e;for(var a in this.ChartPaint)this.ChartPaint[a].Data=e,0==a&&(this.ChartPaint[a].NotSupportMessage="没有权限访问!");this.TitlePaint[0].Data=this.SourceData,this.TitlePaint[0].Symbol=this.Symbol,this.TitlePaint[0].Name=null,this.Draw()}},this.RecvHistoryMinuteData=function(t){var e=Ve.JsonDataToMinuteData(t),a=new Y;if(a.Data=e,this.TradeDate=t.date,this.SourceData=a,this.Symbol=t.symbol,this.Name=t.name,this.BindMainData(a,t.day.yclose),this.Frame.SubFrame.length>2){var i=new Y;i.Data=e;for(var r=2;r<this.Frame.SubFrame.length;++r)this.BindIndexData(r,i)}this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}}function Ge(t){this.newMethod=ke,this.newMethod(t),delete this.newMethod,this.ClassName="CustomKLineChartContainer",this.CustomKLineApiUrl=Xi.Domain+"/API/IndexCalculate",this.CustomStock,this.QueryDate={Start:20180101,End:20180627},this.RequestHistoryData=function(){var t=this;this.ChartSplashPaint.IsEnableSplash=!0,this.Draw(),n.HttpRequest({url:this.CustomKLineApiUrl,data:{stock:t.CustomStock,Name:t.Symbol,date:{startdate:t.QueryDate.Start,enddate:t.QueryDate.End}},type:"post",dataType:"json",async:!0,success:function(e){t.ChartSplashPaint.IsEnableSplash=!1,t.RecvHistoryData(e)}})},this.RecvHistoryData=function(t){var e=ke.JsonDataToHistoryData(t),a=new Y;a.Data=e,a.DataType=0;var i=new Y;if(i.Data=e,i.Right=this.Right,i.Period=this.Period,i.DataType=0,i.Right>0){var r=i.GetRightDate(i.Right);i.Data=r}if(Y.IsDayPeriod(this.Period,!1)){var n=a.GetPeriodData(i.Period);i.Data=n}this.SourceData=a,this.Name=t.name,this.BindMainData(i,this.PageSize);for(var o=0;o<this.Frame.SubFrame.length;++o)this.BindIndexData(o,i);this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}}function Ye(t,e){var a=this;!0===e?(this.newMethod=Ue,this.newMethod(t),delete this.newMethod):(this.newMethod=ke,this.newMethod(t),delete this.newMethod),this.BuySellPaint,this.TrainDataCount=300,this.AutoRunTimer=null,this.BuySellData=[],this.TrainDataIndex,this.TrainCallback,this.DragMode=0,this.TrainStartEnd={},this.OnKeyDown=function(t){switch(t.keyCode?t.keyCode:t.which){case 37:this.CursorIndex>1&&(--this.CursorIndex,this.UpdatePointByCursorIndex(),this.DrawDynamicInfo(),this.ShowTooltipByKeyDown());break;case 39:var e=0;if(e=this.Frame.XPointCount?this.Frame.XPointCount:this.Frame.SubFrame[0].Frame.XPointCount,this.CursorIndex+1<e){var a=null;if(!(a=this.Frame.Data?this.Frame.Data:this.Frame.SubFrame[0].Frame.Data))break;if(this.CursorIndex+a.DataOffset+1>=a.Data.length)break;++this.CursorIndex,this.UpdatePointByCursorIndex(),this.DrawDynamicInfo(),this.ShowTooltipByKeyDown()}break;case 38:var i={ZoomType:this.ZoomType};if(i.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomUp(i))break;this.CursorIndex=i.Index,this.UpdatePointByCursorIndex(),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown();break;case 40:var i={ZoomType:this.ZoomType};if(i.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomDown(i))break;this.CursorIndex=i.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown()}t.preventDefault?t.preventDefault():t.returnValue=!1},t.ontouchstart=function(t){a.OnTouchStart(t)},t.ontouchmove=function(t){a.OnTouchMove(t)},t.ontouchend=function(t){a.OnTouchEnd(t)},this.OnTouchStart=function(t){if(this.PhonePinch=null,this.IsOnTouch=!0,this.TouchDrawCount=0,t.preventDefault(),this.IsPhoneDragging(t)){var e={Click:{},LastMove:{}},a=this.GetToucheData(t,!1);if(e.Click.X=a[0].clientX,e.Click.Y=a[0].clientY,e.LastMove.X=a[0].clientX,e.LastMove.Y=a[0].clientY,e.Click.X==e.LastMove.X&&e.Click.Y==e.LastMove.Y){jsChart.MouseDrag;jsChart.MouseDrag=null;var i=u(),r=e.Click.X-this.UIElement.getBoundingClientRect().left*i,n=e.Click.Y-this.UIElement.getBoundingClientRect().top*i;this.OnMouseMove(r,n,t)}this.SelectChartDrawPicture=null}else if(this.IsPhonePinching(t)){var o={Start:{},Last:{}},a=this.GetToucheData(t,!1);o.Start={X:a[0].pageX,Y:a[0].pageY,X2:a[1].pageX,Y2:a[1].pageY},o.Last={X:a[0].pageX,Y:a[0].pageY,X2:a[1].pageX,Y2:a[1].pageY},this.PhonePinch=o,this.SelectChartDrawPicture=null}},this.OnTouchMove=function(t){t.preventDefault();var e=this.GetToucheData(t,!1);if(this.IsPhoneDragging(t)){if(null==this.MouseDrag){var a=u(),i=e[0].clientX-this.UIElement.getBoundingClientRect().left*a,r=e[0].clientY-this.UIElement.getBoundingClientRect().top*a;this.OnMouseMove(i,r,t)}}else this.IsPhonePinching(t)&&(phonePinch.Last={X:e[0].pageX,Y:e[0].pageY,X2:e[1].pageX,Y2:e[1].pageY})},this.CreateBuySellPaint=function(){var t=new Et;t.Canvas=this.Canvas,t.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder,t.ChartFrame=this.Frame.SubFrame[0].Frame,t.Name="KLine-Train-BuySell",this.ChartPaintEx[0]=t},this.BindMainData=function(t,e){this.ChartPaint[0].Data=t;for(var a in this.Frame.SubFrame){var i=this.Frame.SubFrame[a].Frame;i.XPointCount=e,i.Data=this.ChartPaint[0].Data}this.TitlePaint[0].Data=this.ChartPaint[0].Data,this.TitlePaint[0].Symbol=this.Symbol,this.TitlePaint[0].Name=this.Name,this.ChartCorssCursor.StringFormatX.Data=this.ChartPaint[0].Data,this.Frame.Data=this.ChartPaint[0].Data,this.ChartPaintEx[0]||this.CreateBuySellPaint(),this.ChartPaintEx[0].Data=this.ChartPaint[0].Data;for(var a in this.OverlayChartPaint){var i=this.OverlayChartPaint[a];i.MainData=this.ChartPaint[0].Data}var r=t.Data.length-e-this.TrainDataCount-20;r<0&&(r=0),this.ChartPaint[0].Data.DataOffset=r,this.CursorIndex=e,this.CursorIndex+r>=t.Data.length&&(this.CursorIndex=r),this.TrainDataIndex=this.CursorIndex,this.TrainStartEnd.Start=t.Data[this.TrainDataIndex+r-1]},this.Run=function(){if(!(this.AutoRunTimer||this.TrainDataCount<=0)){var t=this;this.AutoRunTimer=setInterval(function(){t.MoveNextKLineData()||clearInterval(t.AutoRunTimer)},1e3)}},this.MoveNextKLineData=function(){if(this.TrainDataCount<=0)return!1;var t=0;return this.Frame.XPointCount&&(t=this.Frame.XPointCount),this.TrainDataIndex+1>=t&&(this.CursorIndex=this.TrainDataIndex,!!this.DataMoveRight()&&(this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),++this.TrainDataIndex,--this.TrainDataCount<=0?(this.FinishTrainData(),this.UpdateTrainUICallback(),!1):(this.UpdateTrainUICallback(),!0)))},this.UpdateTrainUICallback=function(){var t=this.ChartPaintEx[0],e=t.LastData.Data;if(this.TrainStartEnd.End=e,this.TrainCallback&&this.TrainCallback(this),this.mapEvent.has(yi.RECV_TRAIN_MOVE_STEP)){var a=this.mapEvent.get(yi.RECV_TRAIN_MOVE_STEP);if(a.Callback){var i={TrainDataCount:this.TrainDataCount,BuySellData:this.BuySellData,Operator:this.GetOperator(),KLine:this.TrainStartEnd};a.Callback(a,i,this)}}},this.FinishTrainData=function(){var t=this.ChartPaintEx[0];if(t&&this.BuySellData.length){var e=t.LastData.Data,a=this.BuySellData[this.BuySellData.length-1];a.Sell||(a.Sell={Price:e.Close,Date:e.Date},t.BuySellData.set(e.Date,{Op:1}))}},this.GetLastBuySellData=function(){if(!this.ChartPaintEx[0])return null;if(this.BuySellData.length){return this.BuySellData[this.BuySellData.length-1]}return null},this.GetOperator=function(){var t=this.GetLastBuySellData();return t&&t.Buy&&!t.Sell?1:0},this.Stop=function(){null!=this.AutoRunTimer&&clearInterval(this.AutoRunTimer),this.AutoRunTimer=null},this.BuyOrSell=function(){var t=Y.IsMinutePeriod(this.Period,!0),e=this.ChartPaintEx[0],a=e.LastData.Data,i=this.GetLastBuySellData();if(i&&i.Buy&&!i.Sell){var r=1e4*a.Date;return i.Sell={Price:a.Close,Date:a.Date},t&&(i.Sell.Time=a.Time,r+=a.Time),e.BuySellData.set(r,{Op:1}),void this.MoveNextKLineData()}var r=1e4*a.Date,n={Buy:{Price:a.Close,Date:a.Date},Sell:null};t&&(n.Buy.Time=a.Time,r+=a.Time),this.BuySellData.push(n),e.BuySellData.set(r,{Op:0}),this.MoveNextKLineData()}}function Ue(t){this.newMethod=ke,this.newMethod(t),delete this.newMethod,this.ClassName="KLineChartHScreenContainer",this.OnMouseMove=function(t,e,a){this.LastPoint.X=t,this.LastPoint.Y=e,this.CursorIndex=this.Frame.GetXData(e),this.DrawDynamicInfo()},t.onmousedown=function(e){if(this.JSChartContainer&&0!=this.JSChartContainer.DragMode){var a=u();if(this.JSChartContainer.TryClickLock){var i=(e.clientX-this.getBoundingClientRect().left)*a,r=(e.clientY-this.getBoundingClientRect().top)*a;if(this.JSChartContainer.TryClickLock(i,r))return}var n={Click:{},LastMove:{}};n.Click.X=e.clientX,n.Click.Y=e.clientY,n.LastMove.X=e.clientX,n.LastMove.Y=e.clientY,this.JSChartContainer.MouseDrag=n,document.JSChartContainer=this.JSChartContainer,this.JSChartContainer.SelectChartDrawPicture=null,t.ondblclick=function(t){var e=t.clientX-this.getBoundingClientRect().left,a=t.clientY-this.getBoundingClientRect().top;this.JSChartContainer&&this.JSChartContainer.OnDoubleClick(e,a,t)},document.onmousemove=function(t){if(this.JSChartContainer&&(!this.JSChartContainer.ChartSplashPaint||1!=this.JSChartContainer.ChartSplashPaint.IsEnableSplash)){var e=this.JSChartContainer.MouseDrag;if(e){var a=Math.abs(e.LastMove.Y-t.clientY);if(1==this.JSChartContainer.DragMode){if(a<5)return;var i=!0;e.LastMove.Y<t.clientY&&(i=!1),this.JSChartContainer.DataMove(a,i)&&(this.JSChartContainer.UpdataDataoffset(),this.JSChartContainer.UpdatePointByCursorIndex(),this.JSChartContainer.UpdateFrameMaxMin(),this.JSChartContainer.ResetFrameXYSplit(),this.JSChartContainer.Draw()),e.LastMove.X=t.clientX,e.LastMove.Y=t.clientY}}}},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null,this.JSChartContainer.MouseDrag=null,this.JSChartContainer.CurrentChartDrawPicture=null,this.JSChartContainer=null}}},this.OnTouchStart=function(e){this.PhonePinch=null,this.IsOnTouch=!0,this.TouchDrawCount=0,this.StopDragTimer();var a=this.IsSingleTouch(e);if(e.cancelable&&e.preventDefault(),this.IsPhoneDragging(e)){if(this.TryClickLock||this.TryClickIndexTitle){var i=this.GetToucheData(e,this.IsForceLandscape),r=i[0].clientX,n=i[0].clientY,o=u();if(r-=t.getBoundingClientRect().left*o,n-=t.getBoundingClientRect().top*o,this.TryClickLock&&this.TryClickLock(r,n))return;if(this.TryClickIndexTitle&&this.TryClickIndexTitle(r,n))return}var s=!0;this.ChartDrawOption.IsLockScreen?s=!1:this.DragMode==Mi.CLICK_TOUCH_MODE_ID?1==this.TouchStatus.CorssCursorShow&&(s=!1):this.DragMode==Mi.DISABLE_DRAG_ID?s=!1:a||(s=!1);var l={Click:{},LastMove:{}},i=this.GetToucheData(e,!1);if(l.Click.X=i[0].clientX,l.Click.Y=i[0].clientY,l.LastMove.X=i[0].clientX,l.LastMove.Y=i[0].clientY,this.MouseDrag=l,this.SelectChartDrawPicture&&(this.SelectChartDrawPicture.IsSelected=!1),this.SelectChartDrawPicture=null,this.CurrentChartDrawPicture){return 2==this.CurrentChartDrawPicture.Status?this.SetChartDrawPictureThirdPoint(l.Click.X,l.Click.Y,!0):(this.SetChartDrawPictureFirstPoint(l.Click.X,l.Click.Y,!0),this.FinishChartDrawPicturePoint()&&this.DrawDynamicInfo({Corss:!1,Tooltip:!1})),void(e.cancelable&&e.preventDefault())}var h={},o=u();if(h.X=i[0].clientX-t.getBoundingClientRect().left,h.Y=i[0].clientY-t.getBoundingClientRect().top,this.GetChartDrawPictureByPoint(h)){h.ChartDrawPicture.Status=20,h.ChartDrawPicture.ValueToPoint(),h.ChartDrawPicture.MovePointIndex=h.PointIndex,h.ChartDrawPicture.IsSelected=!0,this.CurrentChartDrawPicture=h.ChartDrawPicture,this.SelectChartDrawPicture=h.ChartDrawPicture;var c=this.GetEventCallback(yi.ON_CLICK_DRAWPICTURE);if(c&&c.Callback){var d={DrawPicture:h.ChartDrawPicture};c.Callback(c,d,this)}return void(e.cancelable&&e.preventDefault())}if(s){var f=this;this.DragTimer=setTimeout(function(){if(l.Click.X==l.LastMove.X&&l.Click.Y==l.LastMove.Y){f.MouseDrag;f.MouseDrag=null,f.MoveCorssCursor(l.Click,e)}},f.PressTime)}this.ChartDrawOption.IsLockScreen?this.MouseDrag=null:this.DragMode==Mi.CLICK_TOUCH_MODE_ID||(this.DragMode==Mi.DISABLE_DRAG_ID?(this.MouseDrag=null,this.MoveCorssCursor(l.Click,e)):this.IsClickShowCorssCursor&&this.MoveCorssCursor(l.Click,e))}else if(this.IsPhonePinching(e)){var C={Start:{},Last:{}},i=this.GetToucheData(e,!1);C.Start={X:i[0].pageX,Y:i[0].pageY,X2:i[1].pageX,Y2:i[1].pageY},C.Last={X:i[0].pageX,Y:i[0].pageY,X2:i[1].pageX,Y2:i[1].pageY},this.PhonePinch=C,this.SelectChartDrawPicture=null}},this.OnTouchMove=function(t){t.cancelable&&t.preventDefault();var e=this.GetToucheData(t,!1);if(this.IsPhoneDragging(t)){var a=this.MouseDrag;if(null==a)this.ChartDrawOption.IsLockScreen||this.MoveCorssCursor({X:e[0].clientX,Y:e[0].clientY},t);else{var i=Math.abs(a.LastMove.Y-e[0].clientY),r=Math.abs(a.LastMove.X-e[0].clientX),n=this.DragMode==Mi.CLICK_TOUCH_MODE_ID&&1==this.TouchStatus.CorssCursorShow;if(this.CurrentChartDrawPicture){var o=this.CurrentChartDrawPicture;if(1==o.Status||2==o.Status){if(i<5&&r<5)return;this.SetChartDrawPictureSecondPoint(e[0].clientX,e[0].clientY,!0)&&this.DrawDynamicInfo()}else if(3==o.Status)this.SetChartDrawPictureThirdPoint(e[0].clientX,e[0].clientY,!0)&&this.DrawDynamicInfo();else if(20==o.Status){if(i<5&&r<5)return;this.MoveChartDrawPicture(e[0].clientX-a.LastMove.X,e[0].clientY-a.LastMove.Y,!0)&&this.DrawDynamicInfo()}a.LastMove.X=e[0].clientX,a.LastMove.Y=e[0].clientY}if(n){this.MouseDrag;this.MouseDrag=null,this.MoveCorssCursor(a.Click,t)}else if(1==this.DragMode||0==n){if(i<5)return;var s=!0;a.LastMove.Y<e[0].clientY&&(s=!1),this.DataMove(i,s)?(this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.ResetFrameXYSplit(),this.Draw()):this.DragDownloadData&&this.DragDownloadData(),a.LastMove.X=e[0].clientX,a.LastMove.Y=e[0].clientY}}}else if(this.IsPhonePinching(t)){if(this.DragMode==Mi.DISABLE_DRAG_ID)return;var l=this.PhonePinch;if(!l)return;var h=Math.abs(e[0].pageX-e[1].pageX),u=Math.abs(l.Last.X-l.Last.X2),c=h-u;if(Math.abs(c)<5)return;if(c>0){var d={};if(d.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomUp(d))return;this.CursorIndex=d.Index,this.UpdatePointByCursorIndex(),this.UpdataDataoffset(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown()}else{var d={};if(d.Index=parseInt(Math.abs(this.CursorIndex-.5).toFixed(0)),!this.Frame.ZoomDown(d))return;this.CursorIndex=d.Index,this.UpdataDataoffset(),this.UpdatePointByCursorIndex(),this.UpdateFrameMaxMin(),this.Draw(),this.ShowTooltipByKeyDown()}l.Last={X:e[0].pageX,Y:e[0].pageY,X2:e[1].pageX,Y2:e[1].pageY}}},this.OnTouchEnd=function(t){bi.Chart.Log("[KLineChartHScreenContainer:OnTouchEnd]",t);if(this.CurrentChartDrawPicture){var e=this.CurrentChartDrawPicture;2==e.Status||1==e.Status||3==e.Status?(e.PointStatus=e.Status,this.FinishChartDrawPicturePoint()?this.DrawDynamicInfo():!1):20==e.Status&&this.FinishMoveChartDrawPicture()&&this.DrawDynamicInfo()}this.IsOnTouch=!1,this.StopDragTimer(),this.OnTouchFinished(),this.TouchDrawCount=0},this.Create=function(t){this.UIElement.JSChartContainer=this,this.ChartCorssCursor=new Kt,this.ChartCorssCursor.Canvas=this.Canvas,this.ChartCorssCursor.StringFormatX=new Zt,this.ChartCorssCursor.StringFormatY=new qt,this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID,this.ChartCorssCursor.StringFormatY.ExtendChartPaint=this.ExtendChartPaint,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new R,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=30,this.Frame.ChartBorder.Left=5,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartCorssCursor.Frame=this.Frame,this.ChartSplashPaint.Frame=this.Frame,this.CreateChildWindow(t),this.CreateMainKLine();for(var e in this.Frame.SubFrame){var a=new se;a.Frame=this.Frame.SubFrame[e].Frame,a.Canvas=this.Canvas,a.LanguageID=this.LanguageID,this.TitlePaint.push(a)}this.UIElement.addEventListener("keydown",c,!0)},this.CreateChildWindow=function(t){for(var e=0;e<t;++e){var a=new S;a.UIElement=this.UIElement;var i=new M;if(i.Canvas=this.Canvas,i.ChartBorder=a,i.Identify=e,i.RightSpaceCount=this.RightSpaceCount,this.ModifyIndexDialog&&(i.ModifyIndexEvent=this.ModifyIndexDialog.DoModal),this.ChangeIndexDialog&&(i.ChangeIndexEvent=this.ChangeIndexDialog.DoModal),i.HorizontalMax=20,i.HorizontalMin=10,0==e){i.YSplitOperator=new Vt,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("price");var r=u();a.TopSpace=12*r,a.BottomSpace=12*r}else i.YSplitOperator=new Gt,i.YSplitOperator.LanguageID=this.LanguageID,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double");i.YSplitOperator.Frame=i,i.YSplitOperator.ChartBorder=a,i.XSplitOperator=new Yt,i.XSplitOperator.Frame=i,i.XSplitOperator.ChartBorder=a,e!=t-1&&(i.XSplitOperator.ShowText=!1);for(var n=i.HorizontalMin;n<=i.HorizontalMax;n+=1)i.HorizontalInfo[n]=new g,i.HorizontalInfo[n].Value=n,0==e&&n==i.HorizontalMin||(i.HorizontalInfo[n].Message[1]=n.toString(),i.HorizontalInfo[n].Font="14px 微软雅黑");var o=new N;o.Frame=i,o.Height=0==e?20:10,this.Frame.SubFrame[e]=o}}}function We(t){this.newMethod=He,this.newMethod(t),delete this.newMethod,this.ClassName="MinuteChartHScreenContainer",this.OnMouseMove=function(t,e,a){this.LastPoint.X=t,this.LastPoint.Y=e,this.CursorIndex=this.Frame.GetXData(e),this.DrawDynamicInfo()},this.Create=function(t){this.UIElement.JSChartContainer=this,this.ChartCorssCursor=new Kt,this.ChartCorssCursor.Canvas=this.Canvas,this.ChartCorssCursor.StringFormatX=new jt,this.ChartCorssCursor.StringFormatY=new qt,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new R,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=25,this.Frame.ChartBorder.Left=50,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartCorssCursor.Frame=this.Frame,this.ChartSplashPaint.Frame=this.Frame,this.CreateChildWindow(t),this.CreateMainKLine();for(var e in this.Frame.SubFrame){var a=new se;a.Frame=this.Frame.SubFrame[e].Frame,a.Canvas=this.Canvas,a.LanguageID=this.LanguageID,this.TitlePaint.push(a)}this.ChartCorssCursor.StringFormatX.Frame=this.Frame.SubFrame[0].Frame,this.UIElement.addEventListener("keydown",c,!0)},this.CreateChildWindow=function(t){for(var e=0;e<t;++e){var a=new S;a.UIElement=this.UIElement;var i=new E;i.Canvas=this.Canvas,i.ChartBorder=a,e<2&&(i.ChartBorder.TitleHeight=0),i.XPointCount=243;var r=[9,8,7,6,5,4,3,2,1];i.HorizontalMax=r[0],i.HorizontalMin=r[r.length-1],0==e?(i.YSplitOperator=new Ut,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("price")):(i.YSplitOperator=new Gt,i.YSplitOperator.LanguageID=this.LanguageID,i.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double")),i.YSplitOperator.Frame=i,i.YSplitOperator.ChartBorder=a,i.XSplitOperator=new Wt,i.XSplitOperator.Frame=i,i.XSplitOperator.ChartBorder=a,e!=t-1&&(i.XSplitOperator.ShowText=!1),i.XSplitOperator.Operator();for(var n in r)i.HorizontalInfo[n]=new g,i.HorizontalInfo[n].Value=r[n],0==e&&n==i.HorizontalMin||(i.HorizontalInfo[n].Message[1]=r[n].toString(),i.HorizontalInfo[n].Font="14px 微软雅黑");var o=new N;o.Frame=i,o.Height=0==e?20:10,this.Frame.SubFrame[e]=o}}}function Xe(t){this.newMethod=h,this.newMethod(t),delete this.newMethod,this.MainDataControl,this.Create=function(){this.UIElement.JSChartContainer=this,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new P,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=30,this.Frame.ChartBorder.Left=5,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartCorssCursor&&(this.ChartCorssCursor.Frame=this.Frame),this.ChartSplashPaint.Frame=this.Frame,this.CreateMainChart(),this.UIElement.addEventListener("keydown",c,!0)},this.SetMainDataConotrl=function(t){t&&(this.MainDataControl=t,this.ChartPaint=[],this.CreateMainChart(),this.Draw(),this.RequestData())},this.CreateMainChart=function(){if(this.MainDataControl){for(var t in this.MainDataControl.DataType){var e=this.MainDataControl.DataType[t];if("BAR"==e.Type){var a=new pt;a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.Name=e.Name,e.Color&&(a.UpBarColor=e.Color),e.Color2&&(a.DownBarColor=e.Color2),this.ChartPaint.push(a)}else if("LINE"==e.Type){var a=new Q;a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.Name=e.Name,e.Color&&(a.Color=e.Color),this.ChartPaint.push(a)}}this.Frame.YSplitOperator=new Gt,this.Frame.YSplitOperator.FrameSplitData=this.FrameSplitData.get("double"),this.Frame.YSplitOperator.Frame=this.Frame,this.Frame.YSplitOperator.ChartBorder=this.Frame.ChartBorder,this.Frame.XSplitOperator=new Xt,this.Frame.XSplitOperator.Frame=this.Frame,this.Frame.XSplitOperator.ChartBorder=this.Frame.ChartBorder}},this.RequestData=function(){this.MainDataControl&&(this.MainDataControl.JSChartContainer=this,this.MainDataControl.RequestData())},this.UpdateMainData=function(t){var e=0;for(var a in t.Data){var i=new Y;i.Data=t.Data[a],this.ChartPaint[a].Data=i,e<i.Data.length&&(e=i.Data.length)}this.Frame.XPointCount=e,this.Frame.Data=this.ChartPaint[0].Data,this.Frame.XData=t.XData,this.UpdateFrameMaxMin(),this.Frame.SetSizeChage(!0),this.Draw()}}function Ke(t){this.Radius,this.newMethod=h,this.newMethod(t),delete this.newMethod,this.MainDataControl,this.OnMouseMove=function(t,e,a){},this.Create=function(){this.UIElement.JSChartContainer=this,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new x,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=30,this.Frame.ChartBorder.Left=5,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartSplashPaint.Frame=this.Frame,this.CreateMainChart()},this.SetMainDataConotrl=function(t){t&&(this.MainDataControl=t,this.ChartPaint=[],this.CreateMainChart(),this.Draw(),this.RequestData())},this.CreateMainChart=function(){if(this.MainDataControl)for(var t in this.MainDataControl.DataType){var e=this.MainDataControl.DataType[t];if("PIE"==e.Type){var a=new Ft;a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.Name=e.Name,this.Radius&&(a.Radius=this.Radius),this.ChartPaint.push(a)}else if("RADAR"==e.Type){var a=new yt;a.Canvas=this.Canvas,a.ChartBorder=this.Frame.ChartBorder,a.ChartFrame=this.Frame,a.Name=e.Name,e.StartAngle&&(a.StartAngle=e.StartAngle),this.ChartPaint.push(a)}}},this.RequestData=function(){this.MainDataControl&&(this.MainDataControl.JSChartContainer=this,this.MainDataControl.RequestData())},this.UpdateMainData=function(t){for(var e in t.Data){var a=new Y;a.Data=t.Data[e],this.ChartPaint[e].Data=a}this.Frame.SetSizeChage(!0),this.Draw()}}function ze(t){this.newMethod=h,this.newMethod(t),delete this.newMethod,this.MainDataControl,this.OnMouseMove=function(t,e,a){},this.Create=function(){this.UIElement.JSChartContainer=this,this.ChartSplashPaint=new zt,this.ChartSplashPaint.Canvas=this.Canvas,this.Frame=new x,this.Frame.ChartBorder=new S,this.Frame.ChartBorder.UIElement=this.UIElement,this.Frame.ChartBorder.Top=30,this.Frame.ChartBorder.Left=5,this.Frame.ChartBorder.Bottom=20,this.Frame.Canvas=this.Canvas,this.ChartSplashPaint.Frame=this.Frame,this.CreateMainChart()},this.SetMainDataConotrl=function(t){t&&(this.MainDataControl=t,this.ChartPaint=[],this.CreateMainChart(),this.Draw(),this.RequestData())},this.CreateMainChart=function(){if(this.MainDataControl){var t=new Lt;t.Canvas=this.Canvas,t.ChartBorder=this.Frame.ChartBorder,t.ChartFrame=this.Frame,t.Name=this.MainDataControl.DataType[0].Name,this.Radius&&(t.Radius=this.Radius),this.ChartPaint.push(t)}},this.RequestData=function(){this.MainDataControl&&(this.MainDataControl.JSChartContainer=this,this.MainDataControl.RequestData())},this.UpdateMainData=function(t){this.ChartPaint[0].Data=t.Data[0],this.Frame.SetSizeChage(!0),this.Draw()}}function Je(t,e){this.Name=t,this.Param=e,this.LineColor,this.ReqeustData=null}function qe(t){this.Index,this.Name=t,this.Script=null,this.OverlayIndex=null,this.Create=function(t,e){},this.NotSupport=function(t,e,a){if(!this.IsOverlay()){t.DeleteIndexPaint(e);var i=t.Frame.SubFrame[e].Frame,r=new Z;r.Canvas=t.Canvas,r.ChartBorder=i.ChartBorder,r.ChartFrame=i,r.NotSupportMessage=a,t.ChartPaint.push(r)}},this.FormatIndexTitle=function(){var t=this.Name,e=null;for(var a in this.Index){var i=this.Index[a];null!=i.Param&&(e?e+=","+i.Param.toString():e=i.Param.toString())}return e&&(t+="("+e+")"),t},this.IsOverlay=function(){return!(!this.OverlayIndex||1!=this.OverlayIndex.IsOverlay)},this.CreateChart=function(t){return new Q},this.CreatePaints=function(t,e){var a=null,i=this.IsOverlay();i?(a=this.OverlayIndex.Frame.Frame,this.OverlayIndex.Frame.ChartPaint=[]):(a=t.Frame.SubFrame[e].Frame,t.DeleteIndexPaint(e));var r=[];for(var n in this.Index){var o=this.CreateChart(n);o.Color=this.Index[n].LineColor,o.Canvas=t.Canvas,o.Name=this.Name+"-"+n.toString(),o.ChartBorder=a.ChartBorder,o.ChartFrame=a,i?this.OverlayIndex.Frame.ChartPaint.push(o):t.ChartPaint.push(o),r.push(o)}return r},this.SendEvent=function(t,e,a,i){if(t.GetIndexEvent){var r=t.GetIndexEvent();if(r){var n={Data:this.GetOutData(),WindowIndex:e,Name:this.Name,HistoryData:a,Stock:{Symbol:t.Symbol,Name:t.Name}};i&&(n.Error=i),r.Callback(r,n,self)}}},this.GetOutData=function(){return null}}function Ze(){this.newMethod=qe,this.newMethod("CJL"),delete this.newMethod,this.Index=new Array(new Je("VOL",null),new Je("OPID",null)),this.Index[0].LineColor=Xi.Index.LineColor[0],this.Index[1].LineColor=Xi.Index.LineColor[1],this.CreateChart=function(t){if(0==t){var e=new rt;return e}if(1==t){var e=new $;return e.LineWidth=1*u(),e}},this.RequestData=function(t,e,a){return this.BindData(t,e,a),t.UpdataDataoffset(),t.UpdateFrameMaxMin(),t.Draw(),!0},this.BindData=function(t,e,a){var i=this.CreatePaints(t,e),r=this.IsOverlay();if(i.length!=this.Index.length)return!1;var n=a.GetVol(),o=a.GetPosition();i[0].HistoryData=a,i[0].Data.Data=n,i[1].Data.Data=o;var s=e+1;if(r){var l=t.TitlePaint[s],h={Data:[],Title:""};l.OverlayIndex.set(this.OverlayIndex.Identify,h);for(var u in i){var c=new oe(i[u].Data,this.Index[u].Name,this.Index[u].LineColor);l.OverlayIndex.get(this.OverlayIndex.Identify).Data[u]=c}}else t.TitlePaint[s].Data[0]=new oe(i[0].Data,this.Index[0].Name,this.Index[0].LineColor),t.TitlePaint[s].Data[1]=new oe(i[1].Data,this.Index[1].Name,this.Index[1].LineColor),t.TitlePaint[s].Title=this.Name;return!0}}function je(){this.newMethod=qe,this.newMethod("Long-Short"),delete this.newMethod,this.Index=new Array(new Je("多头区域",null),new Je("空头区域",null),new Je("市场多空指标",null)),this.Index[0].LineColor=Xi.UpBarColor,this.Index[1].LineColor=Xi.DownBarColor,this.Index[2].LineColor=Xi.Index.LineColor[0],this.LongShortData,this.CreateChart=function(t){if(2==t){var e=new Q;return e.LineWidth=2,e}return new ht},this.GetOutData=function(){return{LongShortData:this.LongShortData}},this.RequestData=function(t,e,a){var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a};return this.LongShortData=[],r.HQChart.Period>0?(this.NotSupport(r.HQChart,r.WindowIndex,"不支持周期切换"),r.HQChart.Draw(),this.SendEvent(t,e,a,"不支持周期切换"),!1):(n.HttpRequest({url:Xi.Index.MarketLongShortApiUrl,data:{},type:"post",dataType:"json",async:!0,success:function(n){i.RecvData(n,r),i.SendEvent(t,e,a)}}),!0)},this.RecvData=function(t,e){if(!(t.data.length<=0)){var a=new Array;for(var i in t.data){var r=t.data[i],n=new H;n.Date=r[0],n.Value=r[1],a.push(n)}var o=e.HistoryData.GetFittingData(a),s=new Y;s.Data=o,s.Period=e.HQChart.Period,s.Right=e.HQChart.Right,this.LongShortData=s.GetValue(),this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()}},this.BindData=function(t,e,a){var i=this.CreatePaints(t,e),r=this.IsOverlay();if(i.length!=this.Index.length)return!1;i[2].Data.Data=this.LongShortData,i[0].Data.Data[0]=8,i[1].Data.Data[0]=1;var n=e+1;if(r){this.OverlayIndex.Frame.Frame.YSpecificMaxMin={Max:9,Min:0,Count:3};var o=t.TitlePaint[n],s={Data:[],Title:""};o.OverlayIndex.set(this.OverlayIndex.Identify,s);for(var l in i){var h=new oe(i[l].Data,this.Index[l].Name,this.Index[l].LineColor);2!=l&&(h.DataType="StraightLine"),o.OverlayIndex.get(this.OverlayIndex.Identify).Data[l]=h}}else{t.Frame.SubFrame[e].Frame.YSpecificMaxMin={Max:9,Min:0,Count:3};for(var l in i)t.TitlePaint[n].Data[l]=new oe(i[l].Data,this.Index[l].Name,this.Index[l].LineColor),2!=l&&(t.TitlePaint[n].Data[l].DataType="StraightLine")}return!0}}function Qe(){this.newMethod=qe,this.newMethod("Market-Timing"),delete this.newMethod,this.Index=new Array(new Je("因子择时",null)),this.TimingData,this.TitleColor=Xi.FrameSplitTextColor,this.CreateChart=function(t){return new Ct},this.GetOutData=function(){return{TimingData:this.TimingData}},this.RequestData=function(t,e,a){var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a};return this.LongShortData=[],r.HQChart.Period>0?(this.NotSupport(r.HQChart,r.WindowIndex,"不支持周期切换"),r.HQChart.Draw(),this.SendEvent(t,e,a,"不支持周期切换"),!1):(n.HttpRequest({url:Xi.Index.MarketLongShortApiUrl,data:{},type:"post",dataType:"json",async:!0,success:function(n){i.RecvData(n,r),i.SendEvent(t,e,a)}}),!0)},this.RecvData=function(t,e){if(!(t.data.length<=0)){var a=new Array;for(var i in t.data){var r=t.data[i],n=new H;n.Date=r[0],n.Value=r[2],a.push(n)}var o=e.HistoryData.GetFittingData(a),s=new Y;s.Data=o,s.Period=e.HQChart.Period,s.Right=e.HQChart.Right,this.TimingData=s.GetValue(),this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()}},this.BindData=function(t,e,a){var i=this.CreatePaints(t,e),r=this.IsOverlay();if(i.length!=this.Index.length)return!1;i[0].Data.Data=this.TimingData,i[0].NotSupportMessage=null;var n=e+1;if(r){var o=t.TitlePaint[n],s={Data:[],Title:""};o.OverlayIndex.set(this.OverlayIndex.Identify,s);for(var l in i){var h=new oe(i[l].Data,this.Index[l].Name,this.Index[l].LineColor);h.StringFormat=Wi.THOUSANDS,h.FloatPrecision=0,o.OverlayIndex.get(this.OverlayIndex.Identify).Data[l]=h}}else for(var l in i)t.TitlePaint[n].Data[l]=new oe(i[l].Data,this.Index[l].Name,this.TitleColor),t.TitlePaint[n].Data[l].StringFormat=Wi.THOUSANDS,t.TitlePaint[n].Data[l].FloatPrecision=0;return!0}}function $e(){this.newMethod=qe,this.newMethod("Market-Attention"),delete this.newMethod,this.Index=new Array(new Je("市场关注度",null)),this.Data,this.TitleColor=Xi.FrameSplitTextColor,this.ApiUrl=Xi.Index.MarketAttentionApiUrl,this.CreateChart=function(t){return new Ct},this.GetOutData=function(){return{Data:this.Data}},this.SetFrame=function(t,e,a){this.IsOverlay()?this.OverlayIndex.Frame.Frame.YSpecificMaxMin={Max:6,Min:0,Count:3}:t.Frame.SubFrame[e].Frame.YSpecificMaxMin={Max:6,Min:0,Count:3}},this.RequestData=function(t,e,a){var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a};return this.Data=[],r.HQChart.Period>0?(this.NotSupport(r.HQChart,r.WindowIndex,"不支持周期切换"),r.HQChart.Draw(),this.SendEvent(t,e,a,"不支持周期切换"),!1):(n.HttpRequest({url:this.ApiUrl,data:{symbol:r.HQChart.Symbol,startdate:20100101},type:"post",dataType:"json",async:!0,success:function(n){i.RecvData(n,r),i.SendEvent(t,e,a)}}),!0)},this.RecvData=function(t,e){if(!(t.date.length<0)){var a=new Array;for(var i in t.date){var r=new H;r.Date=t.date[i],r.Value=t.value[i],a.push(r)}var n=e.HistoryData.GetFittingData(a),o=new Y;o.Data=n,o.Period=e.HQChart.Period,o.Right=e.HQChart.Right,this.Data=o.GetValue(),this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),this.SetFrame(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()}},this.BindData=function(t,e,a){var i=this.CreatePaints(t,e),r=this.IsOverlay();if(i.length!=this.Index.length)return!1;i[0].Data.Data=this.Data,i[0].NotSupportMessage=null;var n=e+1;if(r){var o=t.TitlePaint[n],s={Data:[],Title:""};o.OverlayIndex.set(this.OverlayIndex.Identify,s);for(var l in i){var h=new oe(i[l].Data,this.Index[l].Name,this.Index[l].LineColor);h.StringFormat=Wi.THOUSANDS,h.FloatPrecision=0,o.OverlayIndex.get(this.OverlayIndex.Identify).Data[l]=h}}else for(var l in i)t.TitlePaint[n].Data[l]=new oe(i[l].Data,this.Index[l].Name,this.TitleColor),t.TitlePaint[n].Data[l].StringFormat=Wi.THOUSANDS,t.TitlePaint[n].Data[l].FloatPrecision=0;return!0}}function ta(){this.newMethod=qe,this.newMethod("Market-Heat"),delete this.newMethod,this.Index=new Array(new Je("热度",5),new Je("MA",10),new Je("MA",null)),this.Data,this.ApiUrl=Xi.Index.MarketHeatApiUrl,this.Index[0].LineColor=Xi.FrameSplitTextColor,this.Index[1].LineColor=Xi.Index.LineColor[0],this.Index[2].LineColor=Xi.Index.LineColor[1],this.CreateChart=function(t){return 0==t?new Ct:new Q},this.RequestData=function(t,e,a){var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a};return this.Data=[],r.HQChart.Period>0?(this.NotSupport(r.HQChart,r.WindowIndex,"不支持周期切换"),r.HQChart.Draw(),!1):(n.HttpRequest({url:this.ApiUrl,data:{symbol:r.HQChart.Symbol,startdate:20100101},type:"post",dataType:"json",async:!0,success:function(t){i.RecvData(t,r)}}),!0)},this.RecvData=function(t,e){if(!(t.date.length<0)){var a=new Array;for(var i in t.date){var r=new H;r.Date=t.date[i],r.Value=t.value[i],a.push(r)}var n=e.HistoryData.GetFittingData(a),o=new Y;o.Data=n,o.Period=e.HQChart.Period,o.Right=e.HQChart.Right,this.Data=o.GetValue(),this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()}},this.BindData=function(t,e,a){var i=this.CreatePaints(t,e),r=this.IsOverlay();if(i.length!=this.Index.length)return!1;i[0].Data.Data=this.Data,i[0].NotSupportMessage=null;var n=Be.MA(this.Data,this.Index[0].Param);i[1].Data.Data=n;var o=Be.MA(this.Data,this.Index[1].Param);i[2].Data.Data=o;var s=e+1;if(r){var l=t.TitlePaint[s],h={Data:[],Title:""};l.OverlayIndex.set(this.OverlayIndex.Identify,h);for(var u in i){var c="";c=0==u?t.Name+this.Index[u].Name:"MA"+this.Index[u-1].Param;var d=new oe(i[u].Data,c,this.Index[u].LineColor);d.StringFormat=Wi.DEFAULT,d.FloatPrecision=2,l.OverlayIndex.get(this.OverlayIndex.Identify).Data[u]=d}}else for(var u in i){var c="";c=0==u?t.Name+this.Index[u].Name:"MA"+this.Index[u-1].Param,t.TitlePaint[s].Data[u]=new oe(i[u].Data,c,this.Index[u].LineColor),t.TitlePaint[s].Data[u].StringFormat=Wi.DEFAULT,t.TitlePaint[s].Data[u].FloatPrecision=2}return!0}}function ea(){this.newMethod=qe,this.newMethod("Market-Heat"),delete this.newMethod,this.Index=new Array(new Je("区域",3),new Je("热度指数",10),new Je("MA",5),new Je("MA",10)),this.Data,this.ApiUrl=Xi.Index.CustomIndexHeatApiUrl,this.Index[1].LineColor=Xi.Index.LineColor[1],this.Index[2].LineColor=Xi.Index.LineColor[2],this.Index[3].LineColor=Xi.Index.LineColor[3],this.Create=function(t,e){for(var a in this.Index){var i=null;0==a?i=new ut:(i=new Q,i.Color=this.Index[a].LineColor),i.Canvas=t.Canvas,i.Name=this.Name+"-"+a.toString(),i.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,i.ChartFrame=t.Frame.SubFrame[e].Frame,t.ChartPaint.push(i)}},this.RequestData=function(t,e,a){var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a};return this.Data=[],r.HQChart.Period>0?(this.NotSupport(r.HQChart,r.WindowIndex,"不支持周期切换"),r.HQChart.Draw(),!1):(n.HttpRequest({url:this.ApiUrl,data:{stock:r.HQChart.CustomStock,date:{startdate:r.HQChart.QueryDate.Start,enddate:r.HQChart.QueryDate.End},day:[this.Index[0].Param,this.Index[1].Param]},type:"post",dataType:"json",async:!0,success:function(t){i.RecvData(t,r)}}),!0)},this.RecvData=function(t,e){if(!(null==t.data||t.data.length<0)){var a=new Array;for(var i in t.data){var r=t.data[i],n=new H;n.Date=r[0],n.Value=r[1],a.push(n)}var o=e.HistoryData.GetFittingData(a),s=new Y;s.Data=o,s.Period=e.HQChart.Period,s.Right=e.HQChart.Right,this.Data=s.GetValue(),this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()}},this.BindData=function(t,e,a){var i=t.GetChartPaint(e);if(i.length!=this.Index.length)return!1;i[0].NotSupportMessage=null,i[0].Data.Data=[{Value:0,Value2:.2,Color:"rgb(50,205,50)",Title:"热度1",TitleColor:"rgb(245,255 ,250)"},{Value:.2,Value2:.4,Color:"rgb(255,140,0)",Title:"热度2",TitleColor:"rgb(245,255 ,250)"},{Value:.4,Value2:.8,Color:"rgb(255,106,106)",Title:"热度3",TitleColor:"rgb(245,255 ,250)"},{Value:.8,Value2:1,Color:"rgb(208, 32 ,144)",Title:"热度4",TitleColor:"rgb(245,255 ,250)"}],i[1].Data.Data=this.Data;var r=Be.MA(this.Data,this.Index[2].Param);i[2].Data.Data=r;var n=Be.MA(this.Data,this.Index[3].Param);i[3].Data.Data=n,t.Frame.SubFrame[e].Frame.YSpecificMaxMin={Max:1,Min:0,Count:3};for(var o=e+1,s=1;s<i.length;++s){var l=this.Index[s].Name;"MA"==l&&(l="MA"+this.Index[s].Param),t.TitlePaint[o].Data[s]=new oe(i[s].Data,l,this.Index[s].LineColor),t.TitlePaint[o].Data[s].StringFormat=Wi.DEFAULT,t.TitlePaint[o].Data[s].FloatPrecision=2}return t.TitlePaint[o].Title="热度("+this.Index[0].Param+","+this.Index[1].Param+","+this.Index[2].Param+","+this.Index[3].Param+")",!0}}function aa(){this.newMethod=qe,this.newMethod("财务粉饰"),delete this.newMethod,this.Index=new Array(new Je("区域",null),new Je("系数",null)),this.Data,this.ApiUrl=Xi.Index.StockHistoryDayApiUrl,this.Index[0].LineColor=Xi.Index.LineColor[0],this.Index[1].LineColor="rgb(105,105,105)",this.CreateChart=function(t){return 0==t?new ut:new nt},this.GetOutData=function(){return{Data:this.Data}},this.RequestData=function(t,e,a){var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a};if(this.Data=[],2!=r.HQChart.Period)return this.NotSupport(r.HQChart,r.WindowIndex,"只支持月线"),r.HQChart.Draw(),this.SendEvent(t,e,a,"只支持月线"),!1;var o=["finance.benford","announcement2.quarter","announcement1.quarter","announcement3.quarter","announcement4.quarter"],s=[{item:["date","int32","gte","20130101"]},{item:["announcement1.year","int32","gte",0,"announcement2.year","int32","gte",0,"announcement3.year","int32","gte",0,"announcement4.year","int32","gte",0,"or"]}];return n.HttpRequest({url:this.ApiUrl,data:{symbol:[r.HQChart.Symbol],field:o,condition:s},type:"post",dataType:"json",async:!0,success:function(n){i.RecvData(n,r),i.SendEvent(t,e,a)}}),!0},this.JsonDataToMapSingleData=function(t){var e=t.stock[0].stockday,a=new xi.default;for(var i in e){var r=e[i],n=new H;if(n.Date=r.date,n.Value=new Array,null!=r.finance1&&null!=r.announcement1){var o=r.announcement1.year,s=r.announcement1.quarter,l=r.finance1.benford;n.Value.push({Year:o,Quarter:s,Value:l})}if(null!=r.finance2&&null!=r.announcement2){var h=r.announcement2.year,u=r.announcement2.quarter,c=r.finance2.benford;n.Value.push({Year:h,Quarter:u,Value:c})}if(null!=r.finance3&&null!=r.announcement3){var d=r.announcement3.year,f=r.announcement3.quarter,C=r.finance3.benford;n.Value.push({Year:d,Quarter:f,Value:C})}if(null!=r.finance4&&null!=r.announcement4){var p=r.announcement4.year,D=r.announcement4.quarter,m=r.finance4.benford;n.Value.push({Year:p,Quarter:D,Value:m})}a.set(n.Date,n)}var v=new Array,g=!0,S=!1,I=void 0;try{for(var x,T=(0,Si.default)(a);!(g=(x=T.next()).done);g=!0){var r=x.value;v.push(r[1])}}catch(t){S=!0,I=t}finally{try{!g&&T.return&&T.return()}finally{if(S)throw I}}return v},this.RecvData=function(t,e){if(bi.Chart.Log(t),!(null==t.stock||t.stock.length<=0)){var a=this.JsonDataToMapSingleData(t),i=e.HistoryData.GetFittingMonthData(a),r=new Y;r.Data=i,r.Period=e.HQChart.Period,r.Right=e.HQChart.Right,this.Data=r.GetValue(),this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()}},this.BindData=function(t,e,a){var i=this.CreatePaints(t,e);if(i.length!=this.Index.length)return!1;i[0].NotSupportMessage=null,i[0].Data.Data=[{Value:0,Value2:.2,Color:"rgb(50,205,50)",Title:"安全区",TitleColor:"rgb(245,255 ,250)"},{Value:.2,Value2:.4,Color:"rgb(255,140,0)",Title:"预警区",TitleColor:"rgb(245,255 ,250)"},{Value:.4,Value2:1,Color:"rgb(255,106,106)",Title:"警示区",TitleColor:"rgb(245,255 ,250)"}],i[1].Data.Data=this.Data,t.Frame.SubFrame[e].Frame.YSpecificMaxMin={Max:1,Min:0,Count:3};var r=e+1;return t.TitlePaint[r].Data[1]=new oe(i[1].Data,this.Index[1].Name,this.Index[1].LineColor),t.TitlePaint[r].Data[1].DataType="MultiReport",t.TitlePaint[r].Title=this.FormatIndexTitle(),!0}}function ia(){this.newMethod=qe,this.newMethod("Lighter-Trend"),delete this.newMethod,this.Index=new Array(new Je("STICKLINE",null),new Je("STICKLINE",null)),this.Index[0].LineColor="rgb(255,0,0)",this.Index[1].LineColor="rgb(0,0,255)",this.Create=function(t,e){for(var a in this.Index){var i=new ot;i.Canvas=t.Canvas,i.Name=this.Name,i.Name=this.Name+"-"+a.toString(),i.Color=this.Index[a].LineColor,i.LineWidth=2,i.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,i.ChartFrame=t.Frame.SubFrame[e].Frame,t.ChartPaint.push(i)}},this.BindData=function(t,e,a){var i=t.GetChartPaint(e);if(2!=i.length)return!1;var r=a.GetClose(),n=Be.SMA(r,6.5,1),o=Be.SMA(r,13.5,1),s=Be.STICKLINE(Be.ARRAY_GT(n,o),n,o),l=Be.STICKLINE(Be.ARRAY_GT(o,n),n,o);i[0].Data.Data=s,i[1].Data.Data=l;var h=e+1;return t.TitlePaint[h].Title="大盘/个股 趋势函数",!0}}function ra(){this.newMethod=qe,this.newMethod("位置研判函数"),delete this.newMethod,this.Index=new Array(new Je("STICKLINE",34),new Je("STICKLINE",3),new Je("STICKLINE",null),new Je("STICKLINE",null),new Je("STICKLINE",null),new Je("STICKLINE",null),new Je("LINE",null),new Je("TEXT",null)),this.Index[0].LineColor="rgb(0,0,138)",this.Index[1].LineColor="rgb(133,0,138)",this.Index[2].LineColor="rgb(101,118,0)",this.Index[3].LineColor="rgb(105,0,121)",this.Index[4].LineColor="rgb(121,183,21)",this.Index[5].LineColor="rgb(0,0,138)",this.Index[6].LineColor="rgb(255,0,0)",this.Create=function(t,e){for(var a in this.Index){var i=null;"LINE"==this.Index[a].Name?(i=new Q,i.Color=this.Index[a].LineColor):"TEXT"==this.Index[a].Name?i=new st:(i=new ot,i.Color=this.Index[a].LineColor,i.LineWidth=5),i.Canvas=t.Canvas,i.Name=this.Name,i.Name=this.Name+"-"+a.toString(),i.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,i.ChartFrame=t.Frame.SubFrame[e].Frame,t.ChartPaint.push(i)}},this.BindData=function(t,e,a){var i=t.GetChartPaint(e);if(i.length!=this.Index.length)return!1;var r=a.GetClose(),n=a.GetHigh(),o=a.GetLow();i[0].Data.Data=Be.STICKLINE(Be.ARRAY_GT(r,0),0,2),i[1].Data.Data=Be.STICKLINE(Be.ARRAY_GT(r,0),2,5),i[2].Data.Data=Be.STICKLINE(Be.ARRAY_GT(r,0),5,10),i[3].Data.Data=Be.STICKLINE(Be.ARRAY_GT(r,0),10,21.5),i[4].Data.Data=Be.STICKLINE(Be.ARRAY_GT(r,0),21.5,23,5),i[5].Data.Data=Be.STICKLINE(Be.ARRAY_GT(r,0),23,28,5);var s=Be.ARRAY_DIVIDE(Be.EMA(Be.ARRAY_MULTIPLY(Be.ARRAY_DIVIDE(Be.ARRAY_SUBTRACT(r,Be.LLV(o,this.Index[0].Param)),Be.ARRAY_SUBTRACT(Be.HHV(n,this.Index[0].Param),Be.LLV(o,this.Index[0].Param))),100),this.Index[1].Param),4);i[6].Data.Data=s;var l=new Array;l[0]={Value:1,Message:"底部区域",Color:"rgb(0,255,255)",Position:"Left"},l[1]={Value:3.5,Message:"介入区域",Color:"rgb(0,255,255)",Position:"Left"},l[2]={Value:7.5,Message:"稳健区域",Color:"rgb(0,255,255)",Position:"Left"},l[3]={Value:16,Message:"高位区域",Color:"rgb(0,255,255)",Position:"Left"},l[4]={Value:22,Message:"风险区域",Color:"rgb(0,0,255)",Position:"Left"},l[5]={Value:25.5,Message:"顶部区域",Color:"rgb(255,0,255)",Position:"Left"},i[7].Data.Data=l;var h=e+1;return t.TitlePaint[h].Data[0]=new oe(i[6].Data,"财貌双拳",i[6].Color),t.TitlePaint[h].Title=this.FormatIndexTitle(),!0}}function na(t,e,a,i){this.newMethod=qe,this.newMethod(t),delete this.newMethod,this.Script=e,this.Arguments=[],this.OutVar=[],this.ApiUrl=Xi.PyIndexDomain+"/hq/code",a&&(this.Arguments=a),this.RequestData=function(t,e,a){this.OutVar=[];var i=this,r={HQChart:t,WindowIndex:e,HistoryData:a},o="";for(var s in this.Arguments){o.length>0&&(o+=",");var l=this.Arguments[s];o+='"'+l.Name+'":'+l.Value}o="{"+o+"}";var h=JSON.parse(o),u=(0,Di.default)({code:this.Script,symbol:r.HQChart.Symbol,period:r.HQChart.Period,right:r.HQChart.Right,params:h,numcount:t.MaxReqeustDataCount});return n.HttpRequest({url:this.ApiUrl,data:u,type:"post",dataType:"json",contentType:" application/json; charset=utf-8",async:!0,success:function(t){i.RecvData(t,r)},complete:function(t){},error:function(t,e){i.RecvError(t,e,r)}}),!0},this.RecvError=function(t,e,a){bi.Chart.Log("[PyScriptIndex::RecvError] error",e),a.HQChart.ScriptErrorCallback&&a.HQChart.ScriptErrorCallback(e)},this.RecvData=function(t,e){if(0!=t.code)return bi.Chart.Log("[PyScriptIndex::RecvData] failed.",t),void(e.HQChart.ScriptErrorCallback&&e.HQChart.ScriptErrorCallback(t.msg));bi.Chart.Log("[PyScriptIndex::RecvData] recv data.",t);var a=t.date;for(var i in t.data){for(var r=t.data[i],n=[],o=0;o<a.length&&o<a.length;++o)if(!(o>=r.data.length)){var s=new H;s.Date=a[o],s.Value=r.data[o],n.push(s)}var l=e.HistoryData.GetFittingData(n),h=new Y;h.Data=l,h.Period=e.HQChart.Period,h.Right=e.HQChart.Right;var u={Name:r.name,Type:r.graph,LineWidth:r.width,Data:h.GetValue(),Color:r.color};this.OutVar.push(u)}this.BindData(e.HQChart,e.WindowIndex,e.HistoryData),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw()},this.BindData=function(t,e,a){t.DeleteIndexPaint(e);for(var i in this.OutVar){var r=this.OutVar[i];switch(r.Type){case"line":this.CreateLine(t,e,r,i);break;case"colorstick":this.CreateColorStock(t,e,r,i)}}var n=e+1;t.TitlePaint[n].Title=this.Name;var o="";for(var s in this.Arguments){var l=this.Arguments[s];o.length>0&&(o+=","),o+=l.Value.toString()}return o.length>0&&(t.TitlePaint[n].Title=this.Name+"("+o+")"),!0},this.CreateLine=function(t,e,a,i){var r=new Q;r.Canvas=t.Canvas,r.DrawType=1,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=a.Color:r.Color=this.GetDefaultColor(i),a.LineWidth>0&&(r.LineWidth=a.LineWidth),0==a.IsShow&&(r.IsShow=!1);var n=e+1;r.Data.Data=a.Data,t.TitlePaint[n].Data[i]=new oe(r.Data,a.Name,r.Color),t.ChartPaint.push(r)},this.CreateColorStock=function(t,e,a,i){var r=new Ct;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame;var n=e+1;r.Data.Data=a.Data,t.TitlePaint[n].Data[i]=new oe(r.Data,a.Name,this.GetDefaultColor(i)),t.ChartPaint.push(r)},this.GetDefaultColor=function(t){var e=["rgb(255,174,0)","rgb(25,199,255)","rgb(175,95,162)","rgb(236,105,65)","rgb(68,114,196)","rgb(229,0,79)","rgb(0,128,255)","rgb(252,96,154)","rgb(42,230,215)","rgb(24,71,178)"];return e[parseInt(t)%(e.length-1)]}}function oa(t,e,a,i){this.newMethod=na,this.newMethod(t),delete this.newMethod,this.JsonData,i.JsonData&&(this.JsonData=i.JsonData),this.RequestData=function(t,e,a){if(this.JsonData){var i={HQChart:t,WindowIndex:e,HistoryData:a};this.JsonData.code=0;var r=this.JsonData;this.RecvData(r,i)}else console.warn("[PyScriptIndex::RequestData] JsonData is null"),i.HQChart.ScriptErrorCallback&&i.HQChart.ScriptErrorCallback("json 数据不能为空")}}function sa(){this.newMethod=qe,this.newMethod("点位研判函数"),delete this.newMethod,this.Index=new Array(new Je("启动买点",null)),this.Index[0].LineColor="rgb(255,0,0)",this.BindData=function(t,e,a){var i=t.GetChartPaint(e);if(i.length!=this.Index.length)return!1;var r=a.GetClose(),n=(a.GetHigh(),a.GetLow()),o=Be.REF(n,1),s=Be.ARRAY_MULTIPLY(Be.ARRAY_DIVIDE(Be.SMA(Be.ABS(Be.ARRAY_SUBTRACT(n,o)),13,1),Be.SMA(Be.MAX(Be.ARRAY_SUBTRACT(n,o),0),13,1)),100),l=Be.EMA(Be.ARRAY_IF(Be.ARRAY_MULTIPLY(r,1.2),Be.ARRAY_MULTIPLY(s,13),Be.ARRAY_DIVIDE(s,13)),13),h=Be.LLV(n,34),u=Be.HHV(l,34),c=Be.ARRAY_IF(Be.LLV(n,56),1,0),d=Be.ARRAY_DIVIDE(Be.ARRAY_ADD(l,Be.ARRAY_MULTIPLY(u,2)),2),f=Be.ARRAY_MULTIPLY(Be.ARRAY_DIVIDE(Be.EMA(Be.ARRAY_IF(Be.ARRAY_LTE(n,h),d,0),3),618),c),C=Be.ARRAY_GT(f,Be.REF(f,1)),p=Be.REF(Be.LLV(n,100),3),D=Be.REFDATE(p,-1),m=Be.ARRAY_EQ(n,D),v=Be.ARRAY_AND(C,m);i[0].Data.Data=v;var g=e+1;for(var S in i)t.TitlePaint[g].Data[S]=new oe(i[S].Data,this.Index[S].Name,this.Index[S].LineColor);return t.TitlePaint[g].Title=this.FormatIndexTitle(),!0}}function la(){}function ha(){this.MaxReqeustDataCount=1e3,this.StartDate=20160101,this.Data,this.ClassName="IKLineInfo",this.GetToday=function(){var t=new Date;return 1e4*t.getFullYear()+100*(t.getMonth()+1)+t.getDate()}}function ua(){this.newMethod=ha,this.newMethod(),delete this.newMethod,this.ClassName="InvestorInfo",this.RequestData=function(t){var e=this,a={HQChart:t};this.Data=[];var i={filed:["question","answerdate","symbol","id"],symbol:[a.HQChart.Symbol],querydate:{StartDate:this.StartDate,EndDate:this.GetToday()},start:0,end:this.MaxReqeustDataCount};if(t.NetworkFilter){var r={Name:"InvestorInfo::RequestData",Explain:"互动易",Request:{Url:Xi.KLine.Info.Investor.ApiUrl,Type:"post",Data:{postData:i}},Self:this,HQChart:t,PreventDefault:!1};if(t.NetworkFilter(r,function(t){e.RecvData(t,a)}),1==r.PreventDefault)return}return n.HttpRequest({url:Xi.KLine.Info.Investor.ApiUrl,data:i,type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)}}),!0},this.RecvData=function(t,e){if(!(t.list.length<=0)){for(var a in t.list){var i=t.list[a],r=new V;r.Date=i.answerdate,r.Title=i.question,r.InfoType=wi.INVESTOR,this.Data.push(r)}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}}}function ca(){this.newMethod=ha,this.newMethod(),delete this.newMethod,this.ClassName="AnnouncementInfo",this.ApiType=1,this.RequestData=function(t){var e=this,a={HQChart:t};if(this.Data=[],1==this.ApiType){var i=Xi.CacheDomain+"/cache/analyze/shszreportlist/"+a.HQChart.Symbol+".json";n.HttpRequest({url:i,type:"get",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)},error:function(t,i){e.RecvError(t,i,a)}})}else n.HttpRequest({url:Xi.KLine.Info.Announcement.ApiUrl,data:{filed:["title","releasedate","symbol","id"],symbol:[a.HQChart.Symbol],querydate:{StartDate:this.StartDate,EndDate:this.GetToday()},start:0,end:this.MaxReqeustDataCount},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)},error:function(t,i){e.RecvError(t,i,a)}})},this.RecvData=function(t,e){if(!(t.report.length<=0)){for(var a in t.report){var i=t.report[a],r=new V;r.Date=i.releasedate,r.Title=i.title,r.InfoType=wi.ANNOUNCEMENT;for(var n in i.type){switch(i.type[n]){case"一季度报告":r.InfoType=wi.ANNOUNCEMENT_QUARTER_1;break;case"半年度报告":r.InfoType=wi.ANNOUNCEMENT_QUARTER_2;break;case"三季度报告":r.InfoType=wi.ANNOUNCEMENT_QUARTER_3;break;case"年度报告":r.InfoType=wi.ANNOUNCEMENT_QUARTER_4}}this.Data.push(r)}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}},this.RecvError=function(t,e,a){console.warn("[AnnouncementInfo::RecvError] error, http ",e,t)}}function da(){this.newMethod=ha,this.newMethod(),delete this.newMethod,this.ClassName="PforecastInfo",this.RequestData=function(t){var e=this,a={HQChart:t};return this.Data=[],n.HttpRequest({url:Xi.KLine.Info.Pforecast.ApiUrl,data:{field:["pforecast.type","pforecast.reportdate","fweek"],condition:[{item:["pforecast.reportdate","int32","gte",this.StartDate]}],symbol:[a.HQChart.Symbol],start:0,end:this.MaxReqeustDataCount},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)}}),!0},this.RecvData=function(t,e){if(1==t.stock.length&&!(t.stock[0].stockday.length<=0)){for(var a in t.stock[0].stockday){var i=t.stock[0].stockday[a];if(i.pforecast.length>0){var r=i.pforecast[0],n=new V;n.Date=i.date,n.Title=r.type,n.InfoType=wi.PFORECAST,n.ExtendData={Type:r.type,ReportDate:r.reportdate},i.fweek&&(n.ExtendData.FWeek={},null!=i.fweek.week1&&(n.ExtendData.FWeek.Week1=i.fweek.week1),null!=i.fweek.week4&&(n.ExtendData.FWeek.Week4=i.fweek.week4)),this.Data.push(n)}}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}}}function fa(){this.newMethod=ha,this.newMethod(),delete this.newMethod,this.ClassName="ResearchInfo",this.RequestData=function(t){var e=this,a={HQChart:t};return this.Data=[],n.HttpRequest({url:Xi.KLine.Info.Research.ApiUrl,data:{filed:["releasedate","researchdate","level","symbol","id","type"],querydate:{StartDate:this.StartDate,EndDate:this.GetToday()},symbol:[a.HQChart.Symbol],start:0,end:this.MaxReqeustDataCount},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)}}),!0},this.RecvData=function(t,e){if(!(t.list.length<=0)){for(var a in t.list){var i=t.list[a],r=new V;r.ID=i.id,r.Date=i.researchdate,r.InfoType=wi.RESEARCH,r.ExtendData={Level:i.level,Type:i.type},this.Data.push(r)}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}}}function Ca(){this.newMethod=ha,this.newMethod(),delete this.newMethod,this.ClassName="BlockTrading",this.RequestData=function(t){var e=this,a={HQChart:t};return this.Data=[],n.HttpRequest({url:Xi.KLine.Info.BlockTrading.ApiUrl,data:{field:["blocktrading.price","blocktrading.vol","blocktrading.premium","fweek","price"],condition:[{item:["date","int32","gte",this.StartDate]},{item:["blocktrading.vol","int32","gte","0"]}],symbol:[a.HQChart.Symbol],start:0,end:this.MaxReqeustDataCount},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)}}),!0},this.RecvData=function(t,e){if(1==t.stock.length&&!(t.stock[0].stockday.length<=0)){for(var a in t.stock[0].stockday){var i=t.stock[0].stockday[a],r=new V;r.Date=i.date,r.InfoType=wi.BLOCKTRADING,r.ExtendData={Price:i.blocktrading.price,Premium:i.blocktrading.premium,Vol:i.blocktrading.vol,ClosePrice:i.price},i.fweek&&(r.ExtendData.FWeek={},null!=i.fweek.week1&&(r.ExtendData.FWeek.Week1=i.fweek.week1),null!=i.fweek.week4&&(r.ExtendData.FWeek.Week4=i.fweek.week4)),this.Data.push(r)}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}}}function pa(){this.newMethod=ha,this.newMethod(),delete this.newMethod,this.ClassName="TradeDetail",this.RequestData=function(t){var e=this,a={HQChart:t};return this.Data=[],n.HttpRequest({url:Xi.KLine.Info.TradeDetail.ApiUrl,data:{field:["tradedetail.typeexplain","tradedetail.type","fweek"],condition:[{item:["date","int32","gte",this.StartDate]},{item:["tradedetail.type","int32","gte","0"]}],symbol:[a.HQChart.Symbol],start:0,end:this.MaxReqeustDataCount},type:"post",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)}}),!0},this.RecvData=function(t,e){if(1==t.stock.length&&!(t.stock[0].stockday.length<=0)){for(var a in t.stock[0].stockday){var i=t.stock[0].stockday[a],r=new V;r.Date=i.date,r.InfoType=wi.TRADEDETAIL,r.ExtendData={Detail:new Array};for(var n in i.tradedetail){var o=i.tradedetail[n];r.ExtendData.Detail.push({Type:o.type,TypeExplain:o.typeexplain})}i.fweek&&(r.ExtendData.FWeek={},null!=i.fweek.week1&&(r.ExtendData.FWeek.Week1=i.fweek.week1),null!=i.fweek.week4&&(r.ExtendData.FWeek.Week4=i.fweek.week4)),this.Data.push(r)}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}}}function Da(){}function ma(){this.Data,this.ClassName="IMinuteInfo"}function va(){this.newMethod=ma,this.newMethod(),delete this.newMethod,this.ClassName="MarketEventInfo",this.RequestData=function(t){var e=this;this.Data=[];var a={HQChart:t},i=Xi.CacheDomain+"/cache/analyze/shszevent/marketevent/concept/"+t.TradeDate+".json";if(t.NetworkFilter){var r={Name:"MarketEventInfo::RequestData",Explain:"大盘异动",Request:{Url:i,Type:"Get",Data:{Date:t.TradeDate,Symbol:t.Symbol}},Self:this,PreventDefault:!1};if(t.NetworkFilter(r,function(t){e.RecvData(t,a),a.HQChart.UpdataChartInfo(),a.HQChart.Draw()}),1==r.PreventDefault)return}return n.HttpRequest({url:i,type:"get",dataType:"json",async:!0,success:function(t){e.RecvData(t,a)},error:function(t,e){console.warn("[MarketEventInfo::RequestData] error, http ",e,t)}}),!0},this.RecvData=function(t,e){for(var a in t.event){var i=t.event[a];for(var r in i.data){var n=i.data[r];if(Array.isArray(n)){if(n.length<2)continue;var o={Date:i.date,Time:n[0],Title:n[1],Type:0};n.length>=3&&n[2]&&"string"==typeof n[2]&&(o.Color=n[2]),n.length>=4&&n[3]&&"string"==typeof n[3]&&(o.BGColor=n[3]),this.Data.push(o)}else{if(!Ht.IsNumber(n.Date)||!Ht.IsNumber(n.Time)||!n.Title)continue;var o={Date:n.Date,Time:n.Time,Title:n.Title,Type:0};n.Color&&(o.Color=n.Color),n.BGColor&&(o.BGColor=n.BGColor),Ht.IsNumber(n.Price)&&(o.Price=n.Price),n.Content&&(o.Content=n.Content),n.Link&&(o.Link=n.Link),this.Data.push(o)}}}e.HQChart.UpdataChartInfo(),e.HQChart.Draw()}}function ga(t){this.DivElement=t,this.ID=null,this.TimeOut=null,this.Hide=function(){(0,Ai.default)("#"+this.ID).hide()},this.Show=function(t,e,a,i){var r={display:"block"};Ht.IsNumber(t)&&(r.left=t+"px"),Ht.IsNumber(e)&&(r.top=e+"px"),Ht.IsNumber(a)&&(r.width=a+"px"),Ht.IsNumber(i)&&(r.height=i+"px"),(0,Ai.default)("#"+this.ID).css(r)}}function Sa(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.Title={ID:f()},this.ParamList={ID:f()},this.ParamData=[],this.Identify,this.HQChart,this.Create=function(){this.ID=f();var t=document.createElement("div");t.className="jchart-modifyindex-box",t.id=this.ID,t.innerHTML="<div class='parameter'> <div class='parameter-header'> <span></span> <strong id='close' class='icon iconfont icon-close'></strong> </div> <div class='parameter-content'><input/>MA</div> <div class='parameter-footer'> <button class='submit' >确定</button> <button class='cancel' >取消</button> </div> </div>",this.DivElement.appendChild(t),(0,Ai.default)("#"+this.ID+" .submit").click({divBox:this},function(t){t.data.divBox.Hide()}),t.getElementsByTagName("span")[0].id=this.Title.ID,t.getElementsByClassName("parameter-content")[0].id=this.ParamList.ID},this.SetTitle=function(t){(0,Ai.default)("#"+this.Title.ID).html(t)},this.ClearParamList=function(){(0,Ai.default)("#"+this.ParamList.ID).empty(),this.ParamData=[]},this.BindParam=function(t,e){var a=t.WindowIndex[e];for(var i in a.Arguments){var r=a.Arguments[i];if(null==r.Name||isNaN(r.Value))break;var n=f(),o='<input class="row-line" id="'+n+'" value="'+r.Value+'" type="number" step="1"/>'+r.Name+"<br>";(0,Ai.default)("#"+this.ParamList.ID).append(o),this.ParamData.push({ID:n,Value:r.Value})}var s=this;for(var i in this.ParamData){var r=this.ParamData[i];(0,Ai.default)("#"+r.ID).mouseup({Chart:t,Identify:e,ParamIndex:i},function(t){var e=parseInt((0,Ai.default)(this).val()),a=s.HQChart,i=s.Identify,r=t.data.ParamIndex;a.WindowIndex[i].Arguments[r].Value=e,a.UpdateWindowIndex(i)}),(0,Ai.default)("#"+r.ID).keyup({Chart:t,Identify:e,ParamIndex:i},function(t){var e=parseInt((0,Ai.default)(this).val()),a=s.HQChart,i=s.Identify,r=t.data.ParamIndex;a.WindowIndex[i].Arguments[r].Value=e,a.UpdateWindowIndex(i)})}},this.BindCancel=function(){var t=this;(0,Ai.default)("#"+this.ID+" .cancel").click(function(){var e=t.HQChart,a=t.Identify;t.RestoreParam(e.WindowIndex[a]),e.UpdateWindowIndex(a),t.Hide()}),(0,Ai.default)("#"+this.ID+" #close").click(function(){var e=t.HQChart,a=t.Identify;t.RestoreParam(e.WindowIndex[a]),e.UpdateWindowIndex(a),t.Hide()})},this.RestoreParam=function(t){for(var e in this.ParamData){var a=this.ParamData[e];t.Arguments[e].Value=a.Value}},this.DoModal=function(t){var e=t.data.Chart,a=t.data.Identify,i=e.ModifyIndexDialog;i&&(null==i.ID&&i.Create(),i.Identify=a,i.HQChart=e,i.SetTitle(e.WindowIndex[a].Name+" 指标参数设置"),i.ClearParamList(),i.BindParam(e,a),i.BindCancel(),i.Show())}}function Ia(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.DivElement=t,this.IndexTreeApiUrl="https://opensourcecache.zealink.com/cache/hqh5/index/commonindextree.json",this.OverlayIndexTreeApiUrl="https://opensourcecache.zealink.com/cache/hqh5/index/commonindextree.json",this.IsOverlayIndex=!1,this.Create=function(){var t=document.createElement("div");t.className="jchart-changeindex-box",t.id=this.ID=f(),t.innerHTML='<div class="target-panel">\n <div class="target-header">\n <span>换指标</span>\n <strong class="close-tar icon iconfont icon-close"></strong>\n </div>\n <div class="target-content">\n <div class="target-left">\n <input type="text">\n <ul></ul>\n </div>\n <div class="target-right">\n <ul></ul>\n </div>\n </div>\n </div>',this.DivElement.appendChild(t)},this.ReqeustData=function(){function t(t){(0,Ai.default)(".target-left ul").html(""),Ai.default.each(t,function(t,e){var a;a="<li>"+e.node+"</li>",(0,Ai.default)(".target-left ul").append(a)}),(0,Ai.default)(".target-left ul li:first-child").addClass("active-list")}function e(t){var e,a=[];Ai.default.each(t,function(t,e){a.push(e.list)}),Ai.default.each(a[0],function(t,a){e="<li id="+a.id+">"+a.name+"</li>",(0,Ai.default)(".target-right ul").append(e)}),(0,Ai.default)(".target-left ul").delegate("li","click",function(){(0,Ai.default)(this).addClass("active-list").siblings().removeClass("active-list");var t=(0,Ai.default)(this).index();(0,Ai.default)(".target-right ul").html(""),Ai.default.each(a[t],function(t,a){e="<li id="+a.id+">"+a.name+"</li>",(0,Ai.default)(".target-right ul").append(e)})})}if((0,Ai.default)("#"+this.ID+" .target-left ul li").length>0)return!1;var a=this.IndexTreeApiUrl;1==this.IsOverlayIndex&&(a=this.OverlayIndexTreeApiUrl),n.HttpRequest({url:a,type:"get",success:function(a){var i=a.list;t(i),e(i)}})},this.BindClose=function(t){(0,Ai.default)("#"+this.ID+" .close-tar").click({Chart:t},function(t){t.data.Chart.ChangeIndexDialog.Hide()})},this.BindSearch=function(t){(0,Ai.default)(".target-left input").on("input",{Chart:t},function(t){var e=new s,a=e.Search(t.target.value);(0,Ai.default)(".target-right ul").html("");for(var i in a){var r=a[i],n="<li id="+r+">"+r+"</li>";(0,Ai.default)(".target-right ul").append(n)}})},this.DoModal=function(t){var e=t.data.Chart,a=t.data.Identify,i=e.ChangeIndexDialog,r=t.data.IsOverlay;i&&(null==i.ID&&i.Create(),i.IsOverlayIndex=r,i.ReqeustData(),function(){(0,Ai.default)(".target-right ul").undelegate().delegate("li","click",function(){var t=(0,Ai.default)(this).attr("id");r?e.AddOverlayIndex({WindowIndex:a,IndexName:t}):e.ChangeIndex(a,t),(0,Ai.default)(this).addClass("active-list").siblings().removeClass("active-list")})}(),i.BindSearch(e),i.BindClose(e),i.Show())}}function xa(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.JSChart=null,this.Height=500,this.Width=600,this.Symbol,this.TradeDate,this.HistoryData,this.Create=function(){this.ID=f();var t=document.createElement("div");t.className="jchart-kline-minute-box",t.id=this.ID;var e=f();t.innerHTML="<div><div class='minute-dialog-title'><span></span><strong class='close-munite icon iconfont icon-close'></strong></div><div class='minute-hqchart' id='"+e+"' ></div></div>",t.style.width=this.Height+"px",t.style.height=this.Width+"px",this.DivElement.appendChild(t),this.JSChart=l.Init(document.getElementById(e));var a={Type:"历史分钟走势图",Symbol:this.Symbol,IsAutoUpdate:!1,IsShowRightMenu:!1,HistoryMinute:{TradeDate:this.TradeDate,IsShowName:!1,IsShowDate:!1}};this.JSChart.SetOption(a)},this.BindClose=function(t){(0,Ai.default)("#"+this.ID+" .close-munite").click({Chart:t},function(t){t.data.Chart.MinuteDialog.Hide()})},this.DoModal=function(t){this.UpColor=Xi.UpTextColor,this.DownColor=Xi.DownTextColor,this.UnchagneColor=Xi.UnchagneTextColor;var e=t.data.Chart,a=t.data.Tooltip,i=e.MinuteDialog;if(i.Symbol=e.Symbol,i.TradeDate=a.Data.Date,i){null==i.ID?i.Create():(i.JSChart.JSChartContainer.TradeDate=i.TradeDate,i.JSChart.ChangeSymbol(this.Symbol));t.clientX,t.clientY;i.Show(500,100,600,500),i.JSChart.OnSize(),this.BindClose(e),this.GetColor=function(t,e){return t>e?this.UpColor:t<e?this.DownColor:this.UnchagneColor};var r=t.data.Chart.Name,n=t.data.Tooltip.Data,o=(new Date(parseInt(n.Date/1e4),n.Date/100%100-1,n.Date%100),n.Date.toString()),s=o.substring(0,4)+"-"+o.substring(4,6)+"-"+o.substring(6,8),l="<span>"+r+"</span><span>"+s+"</span> <span style='color:"+this.GetColor(n.Open,n.YClose)+";'>开:"+n.Open.toFixed(2)+"</span><span style='color:"+this.GetColor(n.High,n.YClose)+";'>高:"+n.High.toFixed(2)+"</span><span style='color:"+this.GetColor(n.Low,n.YClose)+";'>低:"+n.Low.toFixed(2)+"</span><span style='color:"+this.GetColor(n.Close,n.YClose)+";'>收:"+n.Close.toFixed(2)+"</span><span style='color:"+this.VolColor+";'>量:"+Ht.FormatValueString(n.Vol,2)+"</span><span style='color:"+this.AmountColor+";'>额:"+Ht.FormatValueString(n.Amount,2)+"</span>";(0,Ai.default)(".minute-dialog-title span").html(l)}}}function Ta(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.SelectData,this.Dialog,this.HQChart,this.Close=function(){this.Dialog&&(this.DivElement.removeChild(this.Dialog),this.Dialog=null),this.HQChart.HideSelectRect()},this.Create=function(){this.ID=f();var t=document.createElement("div");t.className="jchart-select-statistics-box",t.id=this.ID,t.innerHTML="<div class='parameter jchart-select-section'> <div class='parameter-header'> <span>区间统计</span> <strong id='close' class='icon iconfont icon-close'></strong> </div> <div class='parameter-content'>统计数据</div> <div class='parameter-footer'> <button id='close' class='submit' >确定</button> <button id='match' class='submit' >形态匹配</button> </div> </div>",this.DivElement.appendChild(t),this.Dialog=t,(0,Ai.default)("#"+this.ID+" #close").click({divBox:this},function(t){t.data.divBox.Close()}),(0,Ai.default)("#"+this.ID+" #match").click({divBox:this},function(t){t.data.divBox.KLineMatch()})},this.BindData=function(){for(var t=this.SelectData.Data,e=this.SelectData.Start,a=this.SelectData.End,i={Open:0,Close:0,High:0,Low:0,YClose:0,Vol:0,Amount:0,Date:{Start:0,End:0},Count:0,KLine:{Up:0,Down:0,Unchanged:0}},r=e;r<=a&&r<t.Data.length;++r){var n=t.Data[r];r==e&&(i.Date.Start=n.Date,i.Open=n.Open,i.High=n.High,i.Low=n.Low,i.YClose=n.YClose),i.Date.End=n.Date,i.Close=n.Close,i.Vol+=n.Vol,i.Amount+=n.Amount,++i.Count,i.High<n.High&&(i.High=n.High),i.Low>n.Low&&(i.Low=n.Low),n.Close>n.Open?++i.KLine.Up:n.Close<n.Open?++i.KLine.Down:++i.KLine.Unchanged}i.Vol>0&&(i.AvPrice=i.Amount/i.Vol),n.YClose>0&&(i.Increase=(i.Close-i.YClose)/i.YClose*100,i.Amplitude=(i.High-i.Low)/i.YClose*100);var o=Ha(this.SelectData.Symbol),s=i.Date.Start.toString().substring(0,4)+"/"+i.Date.Start.toString().substring(4,6)+"/"+i.Date.Start.toString().substring(6,8),l=i.Date.End.toString().substring(0,4)+"/"+i.Date.End.toString().substring(4,6)+"/"+i.Date.End.toString().substring(6,8),h="",u="",c="",d="";e<=0&&(h="BtnBackground"),e>=a&&(u="BtnBackground",c="BtnBackground"),a>=t.Data.length-1&&(d="BtnBackground");var f=document.createElement("div");f.className="jchart-select-table-right",f.innerHTML='<div class="jchart-select-date">\n <span>开始: '+s+'<i class="start-date-left '+h+'"><</i><i class="start-date-right '+u+'">></i></span>\n <span>结束: '+l+'<i class="end-date-left '+c+'"><</i><i class="end-date-right '+d+'">></i></span>\n <span>总个数: '+i.Count+"</span>\n </div>\n <table>\n <tr><td><strong>起始价: </strong><span>"+i.YClose.toFixed(o)+"</span></td> <td><strong>最终价: </strong><span>"+i.Close.toFixed(o)+"</span></td> <td><strong>均价: </strong><span>"+i.AvPrice.toFixed(o)+"</span></td></tr>\n <tr><td><strong>最低价: </strong><span>"+i.Low.toFixed(o)+"</span></td> <td><strong>最高价: </strong><span>"+i.High.toFixed(o)+'</span></td> <td><strong>涨跌幅: </strong><span class="'+Ht.FormatValueColor(i.Increase)+'">'+i.Increase.toFixed(2)+"%</span></td></tr>\n <tr><td><strong>振幅: </strong><span>"+i.Amplitude.toFixed(2)+"%</span></td> <td><strong>成交量: </strong><span>"+Ht.FormatValueString(i.Vol,2)+"股</span></td> <td><strong>金额: </strong><span>"+Ht.FormatValueString(i.Amount,2)+"元</span></td></tr>\n <tr><td><strong>阴线: </strong><span>"+i.KLine.Up+"</span></td> <td><strong>阳线: </strong><span>"+i.KLine.Down+"</span></td> <td><strong>平线: </strong><span>"+i.KLine.Unchanged+"</span></td></tr>\n </table>",(0,Ai.default)(".parameter-content").html(f),this.BindEvent()},this.BindEvent=function(){var t=this;t.SelectData.Start>0&&(0,Ai.default)(".jchart-select-date .start-date-left").click(function(){t.SelectData.Start--,t.BindData(),t.HQChart.UpdateSelectRect(t.SelectData.Start,t.SelectData.End)}),t.SelectData.Start<t.SelectData.End&&((0,Ai.default)(".jchart-select-date .start-date-right").click(function(){t.SelectData.Start++,t.BindData(),t.HQChart.UpdateSelectRect(t.SelectData.Start,t.SelectData.End)}),(0,Ai.default)(".jchart-select-date .end-date-left").click(function(){t.SelectData.End--,t.BindData(),t.HQChart.UpdateSelectRect(t.SelectData.Start,t.SelectData.End)})),t.SelectData.End<t.SelectData.Data.Data.length-1&&(0,Ai.default)(".jchart-select-date .end-date-right").click(function(){t.SelectData.End++,t.BindData(),t.HQChart.UpdateSelectRect(t.SelectData.Start,t.SelectData.End)})},this.DoModal=function(t){var e=t.data.Chart;null==this.ID&&this.Create(),this.SelectData=t.data.SelectData,this.HQChart=e,this.BindData(),this.Show()},this.KLineMatch=function(t){var e=new ba(this.DivElement);e.DoModal({data:{Title:"计算中......",Chart:this.HQChart}}),this.Close();var a=this.HQChart,i={Scope:{Plate:["CNA.ci"],Minsimilar:.9},WaitDialog:e};a.RequestKLineMatch(this.SelectData,i)}}function Aa(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.MatchData,this.Sample,this.Dialog,this.HQChart,this.PageData,this.Close=function(){this.DivElement.removeChild(this.Dialog)},this.Create=function(){this.ID=f();var t=document.createElement("div");t.className="jchart-kline-match-box",t.id=this.ID,t.innerHTML="<div class='parameter jchart-kline-match-box'>\n <div class='parameter-header'>\n <span>形态匹配</span>\n <strong id='close' class='icon iconfont icon-close'></strong>\n </div>\n <div class='parameter-content'>\n <p class='dataCount'></p>\n <table class='matchTable'>\n <thead>\n <tr>\n <td>股票名称</td>\n <td>匹配度</td>\n <td>时间段</td>\n </tr>\n </thead>\n <tbody>\n </tbody>\n </table>\n <div class='pagination' data-current='1'></div>\n </div>\n <div class='parameter-footer'>\n <button id='close' class='submit' >确定</button>\n </div>\n </div>".trim(),this.DivElement.appendChild(t),this.Dialog=t,(0,Ai.default)("#"+this.ID+" #close").click({divBox:this},function(t){t.data.divBox.Close()})},this.BindData=function(){bi.Chart.Log("[KLineMatchDialog::BindData] 形态源: "+this.Sample.Stock.Name+" 区间:"+this.Sample.Date.Start+" - "+this.Sample.Date.End);var t=this.MatchData.length+1,e={NewData:{},MetaData:[],PageCount:0,Count:t},a=0;(0,Ai.default)("#"+this.ID+" .dataCount").html("个数:"+t);for(var i=0;i<t;i++){var r={};if(0==i)r={Symbol:this.Sample.Stock.Symbol,Name:this.Sample.Stock.Name,Rate:"形态源",Color:"red",Date:this.Sample.Date.Start+"-"+this.Sample.Date.End};else{var n=this.MatchData[i-1];r={Symbol:n.Symbol,Name:n.Name,Rate:Number(100*n.Similar).toFixed(2),Color:"",Date:n.Start+"-"+n.End}}e.MetaData.push(r)}a=e.Count%10==0?e.Count/10:Math.floor(e.Count/10)+1,e.PageCount=a,this.PaginationMetaData(e),this.PageData=e,bi.Chart.Log("[KLineMatchDialog::DoModal pageData]",e),this.RenderDom(1),this.PaginationInit("#"+this.ID,e.PageCount,this.paginationCallback)},this.RenderDom=function(t){var e=this.PageData.NewData[t];bi.Chart.Log("[KLineMatchDialog::RenderDom currentPageData]",e);for(var a="",i=0;i<e.length;i++)a+=("<tr>\n <td class="+e[i].Color+">"+e[i].Name+"</td>\n <td class="+e[i].Color+">"+e[i].Rate+"</td>\n <td class="+e[i].Color+">"+e[i].Date+"</td>\n </tr>").trim();(0,Ai.default)("#"+this.ID+" .matchTable tbody").html(a)};var e=this;this.paginationCallback=function(t){e.RenderDom(t),e.PaginationInit("#"+e.ID,e.PageData.PageCount,e.paginationCallback)},this.PaginationInit=function(t,e,a){var i="",r=(0,Ai.default)(t+" .pagination").data("current"),n=0;if(r<5)if(e>=5)for(var o=0;o<5;o++)i+=o+1!=r?"<span>"+(o+1)+"</span>":"<span class='active'>"+(o+1)+"</span>";else for(var o=0;o<e;o++)i+=o+1!=r?"<span>"+(o+1)+"</span>":"<span class='active'>"+(o+1)+"</span>";else{n=r+1>e?r:r+1;for(var s=r-3;s<=n;s++)i+=s!=r?"<span>"+s+"</span>":"<span class='active'>"+s+"</span>"}i="<span class='beforePage'>上一页</span>"+i+"<span class='nextPage'>下一页</span>",(0,Ai.default)(t+" .pagination").html(i),(0,Ai.default)(t+" .pagination span").bind("click",{maxpage:e,Callback:a},this.PaginationCurrentIndex)},this.PaginationCurrentIndex=function(t){var e=(0,Ai.default)(this).text();bi.Chart.Log("[::PaginationCurrentIndex text]",e);var a=Number((0,Ai.default)(this).parent().data("current")),i=t.data.maxpage,r=t.data.Callback,n=1;n="上一页"===e?1===a?a:a-1:"下一页"===e?a===i?a:a+1:Number(e),(0,Ai.default)(this).parent().data("current",n),r(n)},this.PaginationMetaData=function(t){for(var e={},a=t.MetaData,i=t.PageCount,r=0;r<i;r++){for(var n=[],o=0;o<10;o++){var s=10*r+o;if(!(s<=a.length-1))break;var l=a[s];n.push(l)}e[r+1]=n}t.NewData=e},this.DoModal=function(t){var e=t.data.Chart;null==this.ID&&this.Create(),this.MatchData=t.data.MatchData,this.Sample=t.data.Sample,this.HQChart=e,this.BindData();var a=e.Frame.ChartBorder,i=(C(),a.GetWidth()/2),r=a.GetHeight()/2;this.Show(i,r,200,200)}}function ba(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.Title="加载中......",this.Dialog,this.Close=function(){this.Dialog&&(this.DivElement.removeChild(this.Dialog),this.Dialog=null)},this.SetTitle=function(t){this.Title=t,this.Dialog},this.Create=function(){this.ID=f();var t=document.createElement("div");t.className="jchart-wait-box",t.id=this.ID,t.innerHTML=("<div class='parameter jchart-kline-match-box'>\n <div class='parameter-header'>\n <span>"+this.Title+"</span>\n </div>\n </div>").trim(),this.DivElement.appendChild(t),this.Dialog=t},this.DoModal=function(t){this.Title=t.data.Title;var e=t.data.Chart;null==this.ID&&this.Create();var a=e.Frame.ChartBorder,i=(C(),a.GetWidth()/2),r=a.GetHeight()/2;this.Show(i,r,200,40)}}function Ea(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.option={},this.Create=function(){var t=this;this.ID=f(),t.BindData(),t.BindEvent()},this.BindData=function(){var t=this,e=this.DivElement.id,a=(0,Ai.default)("#"+e);a.find("div[id^='topMenu_']").remove(),a.find("div[id^='childMenu_']").remove();var i=(0,Ai.default)("<div />");i.attr("id","topMenu_"+t.ID).addClass("context-menu-wrapper topmenu").hide(),a.append(i);var r=(0,Ai.default)("<table />");r.attr({id:"topTable_"+t.ID,cellspacing:"0",cellpadding:"0"}).addClass("context-menu"),i.append(r),r.append(t.childrenList(t.option.data));for(var n=0;n<t.option.data.length;n++){if(void 0!==t.option.data[n].children){var o=(0,Ai.default)("<div />");o.attr({id:"childMenu_"+t.ID+n,"data-index":n}).addClass("context-menu-wrapper").hide(),a.append(o);var s=(0,Ai.default)("<table />");s.attr({id:"childTable_"+t.ID+n,cellspacing:"0",cellpadding:"0"}).addClass("context-menu"),o.append(s),s.append(t.childrenList(t.option.data[n].children))}}},this.Update=function(){var t=this;t.BindData(),t.BindEvent()},this.childrenList=function(t){for(var e=[],a=0;a<t.length;a++){var i=void 0!==t[a].isBorder&&t[a].isBorder,r=(0,Ai.default)("<tr />");r.addClass("font_Arial context-menu"),i&&r.addClass("border");var n=(0,Ai.default)("<td />");t[a].selected?n.addClass("spacer context-menu").html("√"):n.addClass("spacer context-menu");var o=(0,Ai.default)("<td />");o.addClass("text").html(t[a].text);var s=(0,Ai.default)("<td />");s.addClass("right shortcut");var l=(0,Ai.default)("<td />");l.addClass(void 0!==t[a].children?"submenu-arrow":"context-menu spacer"),r.append(n).append(o).append(s).append(l),e.push(r)}return e},this.Show=function(t){var e=this;Ai.default.extend(e.option,t),e.ID?e.Update():e.Create();var a=(0,Ai.default)("#topMenu_"+e.ID),i=a.outerWidth(),r=a.outerHeight(),n=e.option.x,o=e.option.y;i>e.option.position.X+e.option.position.W-n&&(n-=i),r>e.option.position.Y+e.option.position.H-o&&(o-=r),a.hide(),a.css({position:"absolute",left:n+"px",top:o+"px"}).show(),this.isInit=!0},this.Hide=function(){var t=this;(0,Ai.default)("#topMenu_"+t.ID).hide(),(0,Ai.default)("[id^='childMenu_"+t.ID+"']").hide()},this.BindEvent=function(){var t=this,e=(0,Ai.default)("[id^='childMenu_"+t.ID+"']");(0,Ai.default)("#topTable_"+t.ID).find("tr").mouseenter(function(){var a=(0,Ai.default)(this),i=a.index(),r=(0,Ai.default)("#topMenu_"+t.ID),n=(0,Ai.default)("#childMenu_"+t.ID+i),o=a.outerWidth(),s=a.outerHeight(),l=r.position().left+o+1,h=r.position().top+s*i;o>t.option.position.X+t.option.position.W-l&&(l=l-o-r.outerWidth()-2),n.outerHeight()>t.option.position.Y+t.option.position.H-h&&(h=r.position().top+r.outerHeight()-n.outerHeight()),e.hide(),n.css({left:l+"px",top:h+"px"}).show()}).mouseleave(function(){var e=(0,Ai.default)(this).index();setTimeout(function(){1!=(0,Ai.default)("#childMenu_"+t.ID+e).attr("data-isShow")&&(0,Ai.default)("#childMenu_"+t.ID+e).hide()},10)}).click(function(){var e=(0,Ai.default)(this),a=e.index();"function"==Ai.default.type(t.option.data[a].click)&&(t.option.data[a].click(t.option.returnData),e.hide())}).contextmenu(function(){return!1}),e.mouseenter(function(){(0,Ai.default)(this).attr("data-isShow","1")}).mouseleave(function(){(0,Ai.default)(this).attr("data-isShow","0")}).contextmenu(function(){return!1}),e.find("tr").click(function(){var a=(0,Ai.default)(this),i=parseInt(a.closest("div").attr("data-index")),r=a.index();"function"==Ai.default.type(t.option.data[i].children[r].click)&&(t.option.data[i].children[r].click(t.option.windowIndex||1),e.hide())})},this.GetPeriod=function(t){var e=[{text:"日线",Value:0,click:function(){t.ChangePeriod(0)}},{text:"周线",Value:1,click:function(){t.ChangePeriod(1)}},{text:"双周线",Value:21,click:function(){t.ChangePeriod(21)}},{text:"月线",Value:2,click:function(){t.ChangePeriod(2)}},{text:"季线",Value:9,click:function(){t.ChangePeriod(9)}},{text:"年线",Value:3,click:function(){t.ChangePeriod(3)}},{text:"1分",Value:4,click:function(){t.ChangePeriod(4)}},{text:"5分",Value:5,click:function(){t.ChangePeriod(5)}},{text:"15分",Value:6,click:function(){t.ChangePeriod(6)}},{text:"30分",Value:7,click:function(){t.ChangePeriod(7)}},{text:"60分",Value:8,click:function(){t.ChangePeriod(8)}},{text:"2小时",Value:11,click:function(){t.ChangePeriod(11)}},{text:"4小时",Value:12,click:function(){t.ChangePeriod(12)}},{text:"分笔",Value:10,click:function(){t.ChangePeriod(10)}},{text:"自定义周期:3分钟",Value:20003,click:function(){t.ChangePeriod(20003)}},{text:"自定义周期:35分钟",Value:20035,click:function(){t.ChangePeriod(20035)}},{text:"自定义周期:8日",Value:40008,click:function(){t.ChangePeriod(40008)}}];for(var a in e){var i=e[a];if(i.Value==t.Period){i.selected=!0;break}}return e},this.GetRight=function(t){var e=[{text:"不复权",click:function(){t.ChangeRight(0)}},{text:"前复权",click:function(){t.ChangeRight(1)}},{text:"后复权",click:function(){t.ChangeRight(2)}}];return t.Right>=0&&t.Right<e.length&&(e[t.Right].selected=!0),e},this.GetIndex=function(t){return[{text:"均线",click:function(e){t.ChangeIndex(e,"均线")}},{text:"BOLL",click:function(e){t.ChangeIndex(e,"BOLL")},isBorder:!0},{text:"MACD",click:function(e){t.ChangeIndex(e,"MACD")}},{text:"KDJ",click:function(e){t.ChangeIndex(e,"KDJ")}},{text:"VOL",click:function(e){t.ChangeIndex(e,"VOL")}},{text:"RSI",click:function(e){t.ChangeIndex(e,"RSI")}},{text:"BRAR",click:function(e){t.ChangeIndex(e,"BRAR")}},{text:"WR",click:function(e){t.ChangeIndex(e,"WR")}},{text:"BIAS",click:function(e){t.ChangeIndex(e,"BIAS")}},{text:"OBV",click:function(e){t.ChangeIndex(e,"OBV")}},{text:"DMI",click:function(e){t.ChangeIndex(e,"DMI")}},{text:"CR",click:function(e){t.ChangeIndex(e,"CR")}},{text:"PSY",click:function(e){t.ChangeIndex(e,"PSY")}},{text:"CCI",click:function(e){t.ChangeIndex(e,"CCI")}},{text:"DMA",click:function(e){t.ChangeIndex(e,"DMA")}},{text:"TRIX",click:function(e){t.ChangeIndex(e,"TRIX")}},{text:"VR",click:function(e){t.ChangeIndex(e,"VR")}},{text:"EMV",click:function(e){t.ChangeIndex(e,"EMV")}},{text:"ROC",click:function(e){t.ChangeIndex(e,"ROC")}},{text:"MIM",click:function(e){t.ChangeIndex(e,"MIM")}},{text:"FSL",click:function(e){t.ChangeIndex(e,"FSL")}}]},this.GetColorIndex=function(t){var e=[{text:"十字星",click:function(e){t.ChangeInstructionIndex("五彩K线-十字星")}},{text:"早晨之星",click:function(e){t.ChangeInstructionIndex("五彩K线-早晨之星")}},{text:"垂死十字",click:function(e){t.ChangeInstructionIndex("五彩K线-垂死十字")}},{text:"三只乌鸦",click:function(e){t.ChangeInstructionIndex("五彩K线-三只乌鸦")}},{text:"光脚阴线",click:function(e){t.ChangeInstructionIndex("五彩K线-光脚阴线")}},{text:"黄昏之星",click:function(e){t.ChangeInstructionIndex("五彩K线-黄昏之星")}}];return t.ColorIndex&&(e[e.length-1].isBorder=!0,e.push({text:"删除五彩K线",click:function(e){t.CancelInstructionIndex()}})),e},this.GetTradeIndex=function(t){var e=[{text:"BIAS",click:function(e){t.ChangeInstructionIndex("交易系统-BIAS")}},{text:"CCI",click:function(e){t.ChangeInstructionIndex("交易系统-CCI")}},{text:"DMI",click:function(e){t.ChangeInstructionIndex("交易系统-DMI")}},{text:"KD",click:function(e){t.ChangeInstructionIndex("交易系统-KD")}},{text:"BOLL",click:function(e){t.ChangeInstructionIndex("交易系统-BOLL")}},{text:"KDJ",click:function(e){t.ChangeInstructionIndex("交易系统-KDJ")}}];return t.TradeIndex&&(e[e.length-1].isBorder=!0,e.push({text:"删除专家系统",click:function(e){t.CancelInstructionIndex()}})),e},this.GetOverlay=function(t){var e=[{text:"上证指数",click:function(){t.OverlaySymbol("000001.sh")}},{text:"深证成指",click:function(){t.OverlaySymbol("399001.sz")}},{text:"中小板指",click:function(){t.OverlaySymbol("399005.sz")}},{text:"创业板指",click:function(){t.OverlaySymbol("399006.sz")}},{text:"沪深300",click:function(){t.OverlaySymbol("000300.sh")}}];for(var a in t.OverlayChartPaint){var i=t.OverlayChartPaint[a],r=i.Symbol,n=new xi.default([["000001.sh",0],["399001.sz",1],["399005.sz",2],["399006.sz",3],["000300.sh",4]]);if(n.has(r)){var o;!function(){o=e[n.get(r)];var a=r;o.selected=!0,o.click=function(){t.DeleteOverlaySymbol(a)}}()}}return t.OverlayChartPaint&&t.OverlayChartPaint.length>0&&(e[e.length-1].isBorder=!0,e.push({text:"取消叠加",click:function(){t.ClearOverlaySymbol()}})),e},this.GetKLineType=function(t){var e=[{text:"K线(空心阳线)",click:function(){t.ChangeKLineDrawType(3)}},{text:"K线(实心阳线)",click:function(){t.ChangeKLineDrawType(0)}},{text:"美国线",click:function(){t.ChangeKLineDrawType(2)}},{text:"收盘线",click:function(){t.ChangeKLineDrawType(1)}},{text:"收盘面积",click:function(){t.ChangeKLineDrawType(4)}}];switch(t.KLineDrawType){case 0:e[1].selected=!0;break;case 1:e[3].selected=!0;break;case 2:e[2].selected=!0;break;case 3:e[0].selected=!0;break;case 4:e[4].selected=!0}return e},this.GetIndexWindowCount=function(t){var e=[{text:"1个窗口",click:function(){t.ChangeIndexWindowCount(1)}},{text:"2个窗口",click:function(){t.ChangeIndexWindowCount(2)}},{text:"3个窗口",click:function(){t.ChangeIndexWindowCount(3)}},{text:"4个窗口",click:function(){t.ChangeIndexWindowCount(4)}},{text:"5个窗口",click:function(){t.ChangeIndexWindowCount(5)}}],a=t.Frame.SubFrame.length;return a-1>=0&&a-1<e.length&&(e[a-1].selected=!0),e},this.GetCoordinateType=function(t){var e=[{text:"普通坐标",click:function(){t.ChangeCoordinateType(0)}},{text:"百分比坐标",click:function(){t.ChangeCoordinateType(1)}},{text:"反转坐标",click:function(){t.ChangeCoordinateType(2)}}];return t.Frame&&t.Frame.SubFrame&&t.Frame.SubFrame.length>0&&(1==t.Frame.SubFrame[0].Frame.CoordinateType?e[2].selected=!0:e[0].selected=!0,1==t.Frame.SubFrame[0].Frame.YSplitOperator.CoordinateType&&(e[1].selected=!0)),e},this.GetDragModeType=function(t){var e=[{text:"禁止拖拽",click:function(){t.DragMode=0}},{text:"启动拖拽",click:function(){t.DragMode=1}},{text:"区间选择",click:function(){t.DragMode=2}}];return t.DragMode>=0&&t.DragMode<e.length&&(e[t.DragMode].selected=!0),e},this.GetTools=function(t){var e=[],a=t.GetExtendChartByClassName("DrawToolsButton");a?e.push({text:"关闭画图工具",click:function(){for(var e=a.Chart.Width,i=parseInt(a.Index),r=i+1;r<t.ExtendChartPaint.length;++r){var n=t.ExtendChartPaint[r];"StockChip"==n.ClassName&&(n.Left-=e)}t.DeleteExtendChart(a),t.Frame.ChartBorder.Right-=e,t.SetSizeChage(!0),t.Draw()}}):e.push({text:"画图工具",click:function(){var e={Name:"画图工具",Top:t.Frame.ChartBorder.Top};t.CreateExtendChart(e.Name,e);t.SetSizeChage(!0),t.Draw()}});var i=t.GetExtendChartByClassName("StockChip");return i?e.push({text:"关闭移动筹码",click:function(){for(var e=i.Chart.Width,a=parseInt(i.Index),r=a+1;r<t.ExtendChartPaint.length;++r){var n=t.ExtendChartPaint[r];"DrawToolsButton"==n.ClassName&&(n.Left-=e)}t.DeleteExtendChart(i),t.Frame.ChartBorder.Right-=e,t.SetSizeChage(!0),t.Draw()}}):e.push({text:"移动筹码",click:function(){var e={Name:"筹码分布",ShowType:1,Width:230};t.CreateExtendChart(e.Name,e);t.SetSizeChage(!0),t.Draw()}}),e},this.GetKLineInfo=function(t){var e=new vi.default;for(var a in t.ChartInfo){var i=t.ChartInfo[a];e.add(i.ClassName)}var r=["公告","业绩预告","调研","大宗交易","龙虎榜","互动易"],n=[];for(var a in r){var o=r[a],s=la.GetClassInfo(o);if(s){var i=this.CreateKlineInfoItem(o,e.has(s.ClassName),t);n.push(i)}}if(t.ChartInfo.length>0){n[n.length-1].isBorder=!0;var i={text:"删除所有",click:function(){t.ClearKLineInfo()}};n.push(i)}return n},this.CreateKlineInfoItem=function(t,e,a){var i={text:t,selected:e};return i.click=e?function(){a.DeleteKLineInfo(t)}:function(){a.AddKLineInfo(t,!0)},i},this.DoModal=function(t){var e=t.data.Chart,a=e.RightMenu,i=t.offsetX,r=t.offsetY,n=[{text:"分析周期",children:this.GetPeriod(e)},{text:"复权处理",children:this.GetRight(e)},{text:"指标切换",children:this.GetIndex(e)},{text:"五彩K线",children:this.GetColorIndex(e)},{text:"专家系统",children:this.GetTradeIndex(e)},{text:"信息地雷",children:this.GetKLineInfo(e)},{text:"叠加品种",children:this.GetOverlay(e)},{text:"主图线型",children:this.GetKLineType(e)},{text:"坐标类型",children:this.GetCoordinateType(e)},{text:"指标窗口个数",children:this.GetIndexWindowCount(e)},{text:"鼠标拖拽",children:this.GetDragModeType(e)},{text:"工具",children:this.GetTools(e)}],o=e.Symbol.toUpperCase();(Ji.IsSHSZIndex(e.Symbol)||Ji.IsBIT(o))&&n.splice(1,1);var s=t.data.FrameID,l=this.GetOverlayIndex(e,s);if(l&&l.length>0){var h={text:"删除叠加指标",children:this.GetDeleteOverlayIndex(e,l)};n.splice(3,0,h)}bi.Chart.Log("[KLineRightMenu::DoModal]",s),a.Show({windowIndex:s,x:i+e.UIElement.offsetLeft,y:r+e.UIElement.offsetTop,position:e.Frame.Position,data:n}),(0,Ai.default)(document).click(function(){a.Hide()})},this.GetOverlayIndex=function(t,e){if(e>=t.Frame.SubFrame.length)return[];var a=[],i=t.Frame.SubFrame[e];for(var r in i.OverlayIndex){var n=i.OverlayIndex[r];a.push({Name:n.Script.Name,Identify:n.Identify})}return a},this.GetDeleteOverlayIndex=function(t,e){var a=[];for(var i in e)!function(){var r=e[i].Identify;a.push({text:e[i].Name,click:function(){t.DeleteOverlayWindowsIndex(r)}})}();return a}}function Fa(t){this.newMethod=Ea,this.newMethod(t),delete this.newMethod,this.DoModal=function(e){var a=e.data.Chart,i=this,r=e.data.X,n=e.data.Y,o=[{text:"区间统计",click:function(){bi.Chart.Log("[KLineSelectRightMenu::click] 区间统计"),new Ta(t).DoModal(e)}},{text:"区间放大",click:function(){bi.Chart.Log("[KLineSelectRightMenu::click] 区间放大"),e.data.Chart.ShowSelectData(e.data.SelectData)}}];i.Show({x:r,y:n,position:a.Frame.Position,data:o})},this.Show=function(t){var e=this;Ai.default.extend(e.option,t),e.ID||e.Create();var a="topMenu_"+e.ID;document.getElementById(a)||e.Create();var i=(0,Ai.default)("#topMenu_"+e.ID),r=i.outerWidth(),n=i.outerHeight();i.contextmenu(function(){return!1});var o=e.option.x,s=e.option.y;r>e.option.position.X+e.option.position.W-o&&(o-=r),n>e.option.position.Y+e.option.position.H-s&&(s-=n),i.hide(),i.css({position:"absolute",left:o+"px",top:s+"px"}).show(),(0,Ai.default)("#topMenu_"+e.ID).find("tr").show(),this.isInit=!0}}function ya(t){this.newMethod=Ea,this.newMethod(t),delete this.newMethod,this.DoModal=function(t){var e=t.data.Chart,a=e.RightMenu,i=t.offsetX,r=t.offsetY,n=[{text:"叠加品种",children:this.GetOverlay(e)},{text:"多日分时图",children:this.GetDayCount(e)},{text:"指标窗口个数",children:this.GetIndexWindowCount(e)},{text:"副图指标切换",children:this.GetIndex(e)}],o=e.Symbol;Ji.IsSHSZStockA(o)&&n.push({text:"集合竞价",children:this.GetShowBeforeData(e)});var s=t.data.FrameID;bi.Chart.Log("[MinuteRightMenu::DoModal]",s),a.Show({windowIndex:s,x:i+e.UIElement.offsetLeft,y:r+e.UIElement.offsetTop,position:e.Frame.Position,data:n}),(0,Ai.default)(document).click(function(){a.Hide()})},this.GetDayCount=function(t){var e=[{text:"当日分时图",click:function(){t.ChangeDayCount(1)},isBorder:!0},{text:"最近2日",click:function(){t.ChangeDayCount(2)}},{text:"最近3日",click:function(){t.ChangeDayCount(3)}},{text:"最近4日",click:function(){t.ChangeDayCount(4)}},{text:"最近5日",click:function(){t.ChangeDayCount(5)}},{text:"最近6日",click:function(){t.ChangeDayCount(6)}}];return t.DayCount-1>=0&&t.DayCount-1<e.length&&(e[t.DayCount-1].selected=!0),e},this.GetIndex=function(t){return[{text:"MACD",click:function(e){t.ChangeIndex(e,"MACD")}},{text:"DMI",click:function(e){t.ChangeIndex(e,"DMI")}},{text:"DMA",click:function(e){t.ChangeIndex(e,"DMA")}},{text:"BRAR",click:function(e){t.ChangeIndex(e,"BRAR")}},{text:"KDJ",click:function(e){t.ChangeIndex(e,"KDJ")}},{text:"RSI",click:function(e){t.ChangeIndex(e,"RSI")}},{text:"WR",click:function(e){t.ChangeIndex(e,"WR")}},{text:"CCI",click:function(e){t.ChangeIndex(e,"CCI")}},{text:"TRIX",click:function(e){t.ChangeIndex(e,"TRIX")}}]},this.GetShowBeforeData=function(t){if(t.IsShowBeforeData){var e=[{text:"隐藏",click:function(){t.ShowBeforeData(!1)}}];return e}var e=[{text:"显示",click:function(){t.ShowBeforeData(!0)}}];return e},this.GetIndexWindowCount=function(t){var e=[{text:"1个窗口",click:function(){t.ChangeIndexWindowCount(2)}},{text:"2个窗口",click:function(){t.ChangeIndexWindowCount(3)}},{text:"3个窗口",click:function(){t.ChangeIndexWindowCount(4)}}],a=t.Frame.SubFrame.length-1;return a-1>=0&&a-1<e.length&&(e[a-1].selected=!0),e}}function La(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.HQChart,this.ChartPicture,this.SubToolsDiv,this.SettingMenu,this.DoModal=function(t){if(!this.SubToolsDiv){this.ID=f();var e=document.createElement("div");e.className="subTolls",e.id=this.ID,this.DivElement.appendChild(e),this.SubToolsDiv=e}this.HQChart=t.data.HQChart,this.ChartPicture=t.data.ChartPicture;var a=u(),i=this.HQChart.Frame.SubFrame[0].Frame,r=i.ChartBorder.Top+40,n=i.ChartBorder.Right,o=i.ChartBorder.GetLeft(),s=this.ChartPicture.ClassName,l="";l="ChartDrawPictureText"===s?'<span class="changes-color" title="改变图形颜色"><i class="iconfont icon-bianji"></i><input type="color" name="color" id="color" class="change-color" value="'+this.ChartPicture.LineColor+'"></span>\n<span class="subtool-set" title="设置"><i class="iconfont icon-shezhi"></i></span><span class="subtool-del"><i class="iconfont icon-recycle_bin"></i></span>':'<p class="changes-color" title="改变图形颜色"><i class="iconfont icon-bianji"></i><input type="color" name="color" id="color" class="change-color" value="'+this.ChartPicture.LineColor+'"></p>\n <p class="subtool-del"><i class="iconfont icon-recycle_bin"></i></p>',this.SubToolsDiv.style.right=n/a+"px",this.SubToolsDiv.style.top=r/a+"px",this.SubToolsDiv.innerHTML=l,this.SubToolsDiv.style.position="absolute",this.SubToolsDiv.style.display="block";var h=this.HQChart,c=this.ChartPicture;this.SubToolsDiv;(0,Ai.default)(".subtool-del").click(function(){h.ClearChartDrawPicture(c),(0,Ai.default)(".subTolls").css("display","none")});var d=this;(0,Ai.default)(".subtool-set").click(function(){(0,Ai.default)(d.SubToolsDiv).hide(),this.SettingMenu||(d.SettingMenu=new Ma(i.ChartBorder.UIElement.parentNode)),d.SettingMenu.ChartPicture=c,d.SettingMenu.HQChart=h,d.SettingMenu.Position={Left:n+80,Top:r+20},d.SettingMenu.DoModal()}),(0,Ai.default)(".changes-color").click(function(){document.getElementById("color").click(),(0,Ai.default)(".change-color").change(function(){var t=(0,Ai.default)(".change-color").val();c.LineColor=t,c.PointColor=t,h.ChartDrawStorage&&h.ChartDrawStorage.SaveDrawData(c)})}),bi.Chart.Log("[ChartPictureSettingMenu::DoModal]",{Top:r,Left:o,Right:n})}}function Ma(t){this.newMethod=ga,this.newMethod(t),delete this.newMethod,this.ChartPicture,this.SettingDiv,this.Position,this.BackupData,this.Close=function(){this.SettingDiv&&this.DivElement.removeChild(this.SettingDiv)},this.DoModal=function(){var t=this.ChartPicture.Text,e=this.ChartPicture.FontOption,a=this.ChartPicture.LineColor;this.BackupData={Text:t,LineColor:a,FontOption:{Family:e.Family,Size:e.Size,Weight:e.Weight,Style:e.Style}},bi.Chart.Log("[ChartPictureTextSettingMenu::DoModal] picture info",this.BackupData);var i=this,r=this.DivElement.getElementsByClassName("chartpicture-text-setting")[0];r?this.SettingDiv=r:(r=document.createElement("div"),r.className="chartpicture-text-setting",this.DivElement.appendChild(r),this.SettingDiv=r);var n=[10,11,12,14,16,20,24,28,32,40],o=["微软雅黑","宋体","Arial","仿宋"],s="",l="";o.forEach(function(t,e){l+=0!==e?"<p>"+t+"</P>":'<p class="active">'+t+"</P>"}),n.forEach(function(t,e){s+=5!==e?"<p>"+t+"</P>":'<p class="active">'+t+"</P>"});var h='<div class="contentWrap"><div class="styleOptions"><span class="colorPicker"><input type="color" id="fontColor" value="#1e90ff"></span><div class="likeSelect fontSelect"><span class="choicedText">微软雅黑</span><div class="selectList">'+l+'</div><i class="iconfont icon-xia"></i></div><div class="likeSelect fontSizeSelect"><span class="choicedText">20</span><div class="selectList">'+s+'</div><i class="iconfont icon-xia"></i></div><span class="strongFont likeBtn"><i class="iconfont icon-jiacu"></i></span><span class="italicsFont likeBtn"><i class="iconfont icon-qingxieL"></i></span></div><textarea class="tArea" id="tArea" placeholder="Text"></textarea></div>',c=u(),d='<div class="titleWrap"><span class="titleName">样式设置</span><i class="closeBtn iconfont icon-close"></i></div>'+h+'<div class="btnsContainer"><span class="okBtn btn">确认</span><span class="cancelBtn btn">取消</span></div>';this.SettingDiv.style.left=this.Position.Left/c+"px",this.SettingDiv.style.top=this.Position.Top/c+"px",this.SettingDiv.innerHTML=d,this.SettingDiv.style.position="absolute",this.SettingDiv.style.display="block",(0,Ai.default)(".chartpicture-text-setting .colorPicker").css({borderColor:i.ChartPicture.LineColor,"background-color":i.ChartPicture.LineColor});var f=this.ChartPicture.FontOption.Family;(0,Ai.default)(".chartpicture-text-setting .fontSelect .choicedText").html(f),o.forEach(function(t,e){t==f&&((0,Ai.default)(".chartpicture-text-setting .fontSelect p").removeClass("active"),(0,Ai.default)(".chartpicture-text-setting .fontSelect p").eq(e).addClass("active"))});var C=this.ChartPicture.FontOption.Size;(0,Ai.default)(".chartpicture-text-setting .fontSizeSelect .choicedText").html(C),n.forEach(function(t,e){t==C&&((0,Ai.default)(".chartpicture-text-setting .fontSizeSelect p").removeClass("active"),(0,Ai.default)(".chartpicture-text-setting .fontSizeSelect p").eq(e).addClass("active"))});var p=this.ChartPicture.FontOption.Weight;null!=p&&"bold"==p&&(0,Ai.default)(".chartpicture-text-setting .strongFont").addClass("hot");var D=this.ChartPicture.FontOption.Style;null!=D&&"italic"==D&&(0,Ai.default)(".chartpicture-text-setting .italicsFont").addClass("hot");var t=this.ChartPicture.Text;(0,Ai.default)(".chartpicture-text-setting .tArea").val(t);(0,Ai.default)(".chartpicture-text-setting #fontColor").change({Picture:this.ChartPicture},function(t){var e=(0,Ai.default)(this).val();(0,Ai.default)(this).parent().css({borderColor:e,"background-color":e});var a=t.data.Picture;a.LineColor=e,a.Update&&a.Update()}),(0,Ai.default)(".chartpicture-text-setting .fontSelect,.chartpicture-text-setting .fontSizeSelect").click(function(){(0,Ai.default)(this).find(".selectList").toggle(),(0,Ai.default)(this).toggleClass("hot")}),(0,Ai.default)(".chartpicture-text-setting .fontSelect p").click({Picture:this.ChartPicture},function(t){var e=(0,Ai.default)(this).closest(".fontSelect").find(".choicedText").html(),a=t.currentTarget.innerHTML;if(e!==a){(0,Ai.default)(this).closest(".fontSelect").find(".choicedText").html(a),(0,Ai.default)(this).siblings().removeClass("active"),(0,Ai.default)(this).addClass("active");var i=t.data.Picture;i.FontOption.Family=a,i.Update&&i.Update()}}),(0,Ai.default)(".chartpicture-text-setting .fontSizeSelect p").click({Picture:this.ChartPicture},function(t){var e=(0,Ai.default)(this).closest(".fontSizeSelect").find(".choicedText").html(),a=t.currentTarget.innerHTML;if(e!==a){(0,Ai.default)(this).closest(".fontSizeSelect").find(".choicedText").html(a),(0,Ai.default)(this).siblings().removeClass("active"),(0,Ai.default)(this).addClass("active");var i=t.data.Picture;i.FontOption.Size=Number(a),i.Update&&i.Update()}}),(0,Ai.default)(".chartpicture-text-setting .strongFont").click({Picture:this.ChartPicture},function(t){if((0,Ai.default)(this).toggleClass("hot"),(0,Ai.default)(this).attr("class").indexOf("hot")>0){var e=t.data.Picture;e.FontOption.Weight="bold",e.Update&&e.Update()}}),(0,Ai.default)(".chartpicture-text-setting .italicsFont").click({Picture:this.ChartPicture},function(t){if((0,Ai.default)(this).toggleClass("hot"),(0,Ai.default)(this).attr("class").indexOf("hot")>0){var e=t.data.Picture;e.FontOption.Style="italic",e.Update&&e.Update()}}),(0,Ai.default)(".chartpicture-text-setting .titleWrap .closeBtn,.chartpicture-text-setting .btnsContainer .cancelBtn").click({Picture:this.ChartPicture},function(t){var e=t.data.Picture;e.Text=i.BackupData.Text,e.LineColor=i.BackupData.LineColor,e.FontOption=i.BackupData.FontOption,e.Update&&e.Update(),i.Close()}),(0,Ai.default)(".chartpicture-text-setting .tArea").keyup({Picture:this.ChartPicture},function(t){bi.Chart.Log('[ChartPictureTextSettingMenu::DoModal] $(".chartpicture-text-setting .tArea").keyup()');var e=(0,Ai.default)(this).val(),a=t.data.Picture;a.Text=e,a.Update&&a.Update()}),(0,Ai.default)(".chartpicture-text-setting .btnsContainer .okBtn").click(function(){i.Close(),i.HQChart&&i.HQChart.ChartDrawStorage&&i.HQChart.ChartDrawStorage.SaveDrawData(i.ChartPicture)})}}function wa(){this.SHSZ=null,this.SHO=null,this.HK=null,this.Futures=new xi.default,this.USA=null,this.FTSE=null,this.FHK=null,this.ForeEx=null,this.Initialize=function(){},this.GetET=function(t){throw{Name:"MinuteTimeStringData::GetET",Error:"not implement"}},this.GetSHSZ=function(){return this.SHSZ||(this.SHSZ=this.CreateSHSZData()),this.SHSZ},this.GetSHO=function(){return this.SHO||(this.SHO=this.CreateSHOData()),this.SHO},this.GetHK=function(){return this.HK||(this.HK=this.CreateHKData()),this.HK},this.GetFutures=function(t){if(!this.Futures.has(t.Name)){var e=this.CreateTimeData(t.Data);this.Futures.set(t.Name,e)}return this.Futures.get(t.Name)},this.GetUSA=function(){return this.USA||(this.USA=this.CreateUSAData(0)),this.USA},this.GetFTSE=function(){return this.FTSE||(this.FTSE=this.CreateFTSEData()),this.FTSE},this.GetFHK=function(){return this.FHK||(this.FHK=this.CreateFHKData()),this.FHK},this.GetForeignExchange=function(){return this.ForeEx||(this.ForeEx=this.CreateForeignExchangeData()),this.ForeEx},this.CreateSHSZData=function(){var t=[{Start:925,End:925},{Start:930,End:1130},{Start:1300,End:1500}];return this.CreateTimeData(t)},this.CreateSHOData=function(){var t=[{Start:930,End:1129},{Start:1300,End:1500}];return this.CreateTimeData(t)},this.CreateHKData=function(){var t=[{Start:930,End:1200},{Start:1300,End:1600}];return this.CreateTimeData(t)},this.CreateFTSEData=function(){var t=[{Start:1700,End:2359},{Start:0,End:445},{Start:900,End:1630}];return this.CreateTimeData(t)},this.CreateFHKData=function(){var t=[{Start:1715,End:2359},{Start:0,End:300},{Start:915,End:1200},{Start:1300,End:1630}];return this.CreateTimeData(t)},this.CreateUSAData=function(t){if(1==t){var e=[{Start:2130,End:2359},{Start:0,End:400}];return this.CreateTimeData(e)}if(2==t){var a=[{Start:2230,End:2359},{Start:0,End:500}];return this.CreateTimeData(a)}var i=[{Start:930,End:1600}];return this.CreateTimeData(i)},this.CreateForeignExchangeData=function(){var t=[{Start:600,End:2359},{Start:0,End:559}];return this.CreateTimeData(t)},this.CreateTimeData=function(t){var e=[];for(var a in t)for(var i=t[a],r=i.Start;r<=i.End;++r)r%100>=60||e.push(r);return e},this.GetTimeData=function(t){if(!t)return this.SHSZ;var e=t.toLocaleUpperCase();if(Ji.IsSH(e)||Ji.IsSZ(e))return this.GetSHSZ();if(Ji.IsSHO(e))return this.GetSHO();if(Ji.IsHK(e))return this.GetHK();if(Ji.IsUSA(e))return this.GetUSA(!0);if(Ji.IsCFFEX(e)||Ji.IsCZCE(e)||Ji.IsDCE(e)||Ji.IsSHFE(e)){var a=ji.GetSplitData(e);return a?this.GetFutures(a):null}if(Ji.IsFTSE(e))return this.GetFTSE();if(Ji.IsFHK(e))return this.GetFHK();if(Ji.IsForeignExchange(e))return this.GetForeignExchange();if(Ji.IsET(e))return this.GetET(e);if(Ji.IsNYMEX(e)){var a=Qi.GetSplitData(e);return a?this.GetFutures(a):null}if(Ji.IsCOMEX(e)){var a=$i.GetSplitData(e);return a?this.GetFutures(a):null}if(Ji.IsNYBOT(e)){var a=tr.GetSplitData(e);return a?this.GetFutures(a):null}if(Ji.IsCBOT(e)){var a=er.GetSplitData(e);return a?this.GetFutures(a):null}if(Ji.IsLME(e)){var a=ar.GetSplitData(e);return a?this.GetFutures(a):null}}}function Na(){var t={Full:[[0,0,"rgb(200,200,200)","09:30"],[31,0,"RGB(200,200,200)","10:00"],[61,0,"RGB(200,200,200)","10:30"],[91,0,"RGB(200,200,200)","11:00"],[122,1,"RGB(200,200,200)","13:00"],[152,0,"RGB(200,200,200)","13:30"],[182,0,"RGB(200,200,200)","14:00"],[212,0,"RGB(200,200,200)","14:30"],[242,1,"RGB(200,200,200)","15:00"]],Simple:[[0,0,"rgb(200,200,200)","09:30"],[61,0,"RGB(200,200,200)","10:30"],[122,1,"RGB(200,200,200)","13:00"],[182,0,"RGB(200,200,200)","14:00"],[242,1,"RGB(200,200,200)","15:00"]],Min:[[0,0,"rgb(200,200,200)","09:30"],[122,1,"RGB(200,200,200)","13:00"],[242,1,"RGB(200,200,200)","15:00"]],Count:243,MiddleCount:122,GetData:function(t){return t<200?this.Min:t<400?this.Simple:this.Full}},e={Full:[[0,0,"rgb(200,200,200)","09:30"],[30,0,"RGB(200,200,200)","10:00"],[60,0,"RGB(200,200,200)","10:30"],[90,0,"RGB(200,200,200)","11:00"],[120,1,"RGB(200,200,200)","13:00"],[150,0,"RGB(200,200,200)","13:30"],[180,0,"RGB(200,200,200)","14:00"],[210,0,"RGB(200,200,200)","14:30"],[240,1,"RGB(200,200,200)","15:00"]],Simple:[[0,0,"rgb(200,200,200)","09:30"],[60,0,"RGB(200,200,200)","10:30"],[120,1,"RGB(200,200,200)","13:00"],[180,0,"RGB(200,200,200)","14:00"],[240,1,"RGB(200,200,200)","15:00"]],Min:[[0,0,"rgb(200,200,200)","09:30"],[120,1,"RGB(200,200,200)","13:00"],[240,1,"RGB(200,200,200)","15:00"]],Count:241,MiddleCount:120,GetData:function(t){return t<200?this.Min:t<400?this.Simple:this.Full}},a={Full:[[0,1,"RGB(200,200,200)","09:30"],[30,0,"RGB(200,200,200)","10:00"],[60,1,"RGB(200,200,200)","10:30"],[90,0,"RGB(200,200,200)","11:00"],[120,1,"RGB(200,200,200)","11:30"],[151,0,"RGB(200,200,200)","13:00"],[181,1,"RGB(200,200,200)","13:30"],[211,0,"RGB(200,200,200)","14:00"],[241,1,"RGB(200,200,200)","14:30"],[271,0,"RGB(200,200,200)","15:00"],[301,1,"RGB(200,200,200)","15:30"],[331,1,"RGB(200,200,200)","16:00"]],Simple:[[0,1,"RGB(200,200,200)","09:30"],[60,1,"RGB(200,200,200)","10:30"],[120,1,"RGB(200,200,200)","11:30"],[211,0,"RGB(200,200,200)","14:00"],[271,0,"RGB(200,200,200)","15:00"],[331,1,"RGB(200,200,200)","16:00"]],Min:[[0,1,"RGB(200,200,200)","09:30"],[151,0,"RGB(200,200,200)","13:00"],[331,1,"RGB(200,200,200)","16:00"]],Count:332,MiddleCount:151,GetData:function(t){return t<200?this.Min:t<450?this.Simple:this.Full}},i={Full:[[0,0,"rgb(200,200,200)","9:30"],[30,0,"RGB(200,200,200)","10:00"],[90,1,"RGB(200,200,200)","11:00"],[150,0,"RGB(200,200,200)","12:00"],[210,0,"RGB(200,200,200)","13:00"],[270,0,"RGB(200,200,200)","14:00"],[330,0,"RGB(200,200,200)","15:00"],[390,0,"RGB(200,200,200)","16:00"]],Simple:[[30,0,"rgb(200,200,200)","10:00"],[150,1,"RGB(200,200,200)","12:00"],[270,0,"RGB(200,200,200)","14:00"],[390,0,"RGB(200,200,200)","16:00"]],Min:[[30,0,"rgb(200,200,200)","10:00"],[210,1,"RGB(200,200,200)","13:00"],[390,0,"RGB(200,200,200)","16:00"]],Count:391,MiddleCount:211,GetData:function(t){return t<200?this.Min:t<400?this.Simple:this.Full}},r={Full:[[0,1,"RGB(200,200,200)","17:00"],[120,1,"RGB(200,200,200)","19:00"],[240,1,"RGB(200,200,200)","21:00"],[360,1,"RGB(200,200,200)","23:00"],[480,1,"RGB(200,200,200)","01:00"],[600,1,"RGB(200,200,200)","03:00"],[706,1,"RGB(200,200,200)","09:00"],[826,1,"RGB(200,200,200)","11:00"],[946,1,"RGB(200,200,200)","13:00"],[1066,1,"RGB(200,200,200)","15:00"],[1156,1,"RGB(200,200,200)","16:30"]],Simple:[[0,1,"RGB(200,200,200)","17:00"],[240,1,"RGB(200,200,200)","21:00"],[480,1,"RGB(200,200,200)","01:00"],[706,1,"RGB(200,200,200)","09:00"],[946,1,"RGB(200,200,200)","13:00"],[1156,1,"RGB(200,200,200)","16:30"]],Min:[[0,1,"RGB(200,200,200)","17:00"],[706,1,"RGB(200,200,200)","09:00"],[1156,1,"RGB(200,200,200)","16:30"]],Count:1157,MiddleCount:707,GetData:function(t){return t<200?this.Min:t<450?this.Simple:this.Full}},n={Full:[[0,1,"RGB(200,200,200)","17:15"],[105,1,"RGB(200,200,200)","19:00"],[225,1,"RGB(200,200,200)","21:00"],[345,1,"RGB(200,200,200)","23:00"],[586,0,"RGB(200,200,200)","09:15"],[691,1,"RGB(200,200,200)","11:00"],[812,1,"RGB(200,200,200)","14:00"],[963,1,"RGB(200,200,200)","16:30"]],Simple:[[0,1,"RGB(200,200,200)","17:15"],[225,1,"RGB(200,200,200)","21:00"],[586,0,"RGB(200,200,200)","09:15"],[752,1,"RGB(200,200,200)","13:00"],[963,1,"RGB(200,200,200)","16:30"]],Min:[[0,1,"RGB(200,200,200)","17:15"],[586,0,"RGB(200,200,200)","09:15"],[963,1,"RGB(200,200,200)","16:30"]],Count:963,MiddleCount:526,GetData:function(t){return t<200?this.Min:t<450?this.Simple:this.Full}},o={Full:[[0,1,"RGB(200,200,200)","06:00"],[120,1,"RGB(200,200,200)","08:00"],[240,1,"RGB(200,200,200)","10:00"],[360,1,"RGB(200,200,200)","12:00"],[480,0,"RGB(200,200,200)","14:00"],[600,1,"RGB(200,200,200)","16:00"],[720,1,"RGB(200,200,200)","18:00"],[840,1,"RGB(200,200,200)","20:00"],[960,1,"RGB(200,200,200)","22:00"],[1080,1,"RGB(200,200,200)","0:00"],[1200,1,"RGB(200,200,200)","02:00"],[1320,1,"RGB(200,200,200)","04:00"]],Simple:[[0,1,"RGB(200,200,200)","06:00"],[240,1,"RGB(200,200,200)","10:00"],[480,0,"RGB(200,200,200)","14:00"],[720,1,"RGB(200,200,200)","18:00"],[960,1,"RGB(200,200,200)","22:00"],[1200,1,"RGB(200,200,200)","02:00"]],Min:[[0,1,"RGB(200,200,200)","06:00"],[480,0,"RGB(200,200,200)","14:00"],[960,1,"RGB(200,200,200)","22:00"]],Count:1440,MiddleCount:600,GetData:function(t){return t<200?this.Min:t<450?this.Simple:this.Full}};this.GetCoordinateData=function(e,i){var r=null;if(e){var n=e.toLocaleUpperCase();if(Ji.IsSH(n)||Ji.IsSZ(n)||Ji.IsSHSZIndex(n))r=this.GetSHSZData(n,i);else if(Ji.IsSHO(n))r=this.GetSHOData(n,i);else if(Ji.IsHK(n))r=a;else{if(Ji.IsCFFEX(n)||Ji.IsCZCE(n)||Ji.IsDCE(n)||Ji.IsSHFE(n))return this.GetChinatFuturesData(n,i);if(Ji.IsUSA(n))r=this.GetUSAData(n,i);else if(Ji.IsFTSE(n))r=this.GetFTSEData(n,i);else if(Ji.IsFHK(n))r=this.GetFHKData(n,i);else if(Ji.IsForeignExchange(n))r=this.GetForeignExchangeData(n,i);else if(Ji.IsET(n))r=this.GetETData(n,i);else{if(Ji.IsNYMEX(n,i))return r=this.GetNYMEXData(n,i);if(Ji.IsCOMEX(n,i))return r=this.GetCOMEXData(n,i);if(Ji.IsNYBOT(n,i))return r=this.GetNYBOTData(n,i);if(Ji.IsCBOT(n,i))return r=this.GetCBOTData(n,i);if(Ji.IsLME(n,i))return r=this.GetLMEData(n,i)}}}else r=t;return{Count:r.Count,MiddleCount:r.MiddleCount,Data:r.GetData(i)}},this.GetSHSZData=function(e,a){return t},this.GetUSAData=function(t,e){return i},this.GetSHOData=function(t,a){return e},this.GetFuturesData=function(t,e,a){var i=a.GetSplitData(t);if(!i)return null;var r=qi.GetFutures(i);if(!r)return null;var n={Count:r.length},o=null;o=e<200?i.Coordinate.Min:e<480?i.Coordinate.Simple:i.Coordinate.Full;for(var s=[],l=0;l<r.length;++l)for(var h=r[l],u=0;u<o.length;++u){var c=o[u];if(h==c.Value){var d=[l,0,"RGB(200,200,200)",c.Text];s.push(d);break}}return n.Data=s,n},this.GetChinatFuturesData=function(t,e){return this.GetFuturesData(t,e,ji)},this.GetNYMEXData=function(t,e){return this.GetFuturesData(t,e,Qi)},this.GetCOMEXData=function(t,e){return this.GetFuturesData(t,e,$i)},this.GetNYBOTData=function(t,e){return this.GetFuturesData(t,e,tr)},this.GetCBOTData=function(t,e){return this.GetFuturesData(t,e,er)},this.GetLMEData=function(t,e){return this.GetFuturesData(t,e,ar)},this.GetFTSEData=function(t,e){return r},this.GetFHKData=function(t,e){return n},this.GetForeignExchangeData=function(t,e){return o},this.GetETData=function(t,e){throw{Name:"MinuteCoordinateData::GetETData",Error:"not implement"}}}function Oa(){var t=[{Name:"9:00-10:15,10:30-11:30,13:30-15:00",Data:[{Start:900,End:1015},{Start:1031,End:1130},{Start:1331,End:1500}],Coordinate:{Full:[{Value:900,Text:"9:00"},{Value:930,Text:"9:30"},{Value:1e3,Text:"10:00"},{Value:1030,Text:"10:30"},{Value:1100,Text:"11:00"},{Value:1330,Text:"13:30"},{Value:1400,Text:"14:00"},{Value:1430,Text:"14:30"},{Value:1500,Text:"15:00"}],Simple:[{Value:900,Text:"9:00"},{Value:1e3,Text:"10:00"},{Value:1330,Text:"13:30"},{Value:1430,Text:"14:30"},{Value:1500,Text:"15:00"}],Min:[{Value:900,Text:"9:00"},{Value:1330,Text:"13:30"},{Value:1500,Text:"15:00"}]}},{Name:"9:15-11:30,13:00-15:15",Data:[{Start:915,End:1130},{Start:1301,End:1515}],Coordinate:{Full:[{Value:930,Text:"9:30"},{Value:1e3,Text:"10:00"},{Value:1030,Text:"10:30"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1330,Text:"13:30"},{Value:1400,Text:"14:00"},{Value:1430,Text:"14:30"},{Value:1515,Text:"15:15"}],Simple:[{Value:930,Text:"9:30"},{Value:1030,Text:"10:30"},{Value:1300,Text:"13:00"},{Value:1400,Text:"14:00"},{Value:1515,Text:"15:15"}],Min:[{Value:930,Text:"9:30"},{Value:1300,Text:"13:00"},{Value:1515,Text:"15:15"}]}},{Name:"9:30-11:30,13:00-15:00",Data:[{Start:930,End:1130},{Start:1301,End:1500}],Coordinate:{Full:[{Value:930,Text:"9:30"},{Value:1e3,Text:"10:00"},{Value:1030,Text:"10:30"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1330,Text:"13:30"},{Value:1400,Text:"14:00"},{Value:1430,Text:"14:30"},{Value:1500,Text:"15:00"}],Simple:[{Value:930,Text:"9:30"},{Value:1030,Text:"10:30"},{Value:1300,Text:"13:00"},{Value:1400,Text:"14:00"},{Value:1500,Text:"15:00"}],Min:[{Value:930,Text:"9:30"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"}]}},{Name:"21:00-23:30,9:00-10:15,10:30-11:30,13:30-15:00",Data:[{Start:2100,End:2330},{Start:901,End:1015},{Start:1031,End:1130},{Start:1331,End:1500}],Coordinate:{Full:[{Value:2100,Text:"21:00"},{Value:2200,Text:"22:00"},{Value:2300,Text:"23:00"},{Value:901,Text:"9:00"},{Value:1031,Text:"10:30"},{Value:1331,Text:"13:30"},{Value:1430,Text:"14:30"},{Value:1500,Text:"15:00"}],Simple:[{Value:2100,Text:"21:00"},{Value:901,Text:"9:00"},{Value:1331,Text:"13:30"},{Value:1500,Text:"15:00"}],Min:[{Value:2100,Text:"21:00"},{Value:901,Text:"9:00"},{Value:1500,Text:"15:00"}]}},{Name:"21:00-1:00,9:00-10:15,10:30-11:30,13:30-15:00",Data:[{Start:2100,End:2359},{Start:0,End:100},{Start:901,End:1015},{Start:1031,End:1130},{Start:1331,End:1500}],Coordinate:{Full:[{Value:2100,Text:"21:00"},{Value:2200,Text:"22:00"},{Value:2300,Text:"23:00"},{Value:901,Text:"9:00"},{Value:1031,Text:"10:30"},{Value:1331,Text:"13:30"},{Value:1500,Text:"15:00"}],Simple:[{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:901,Text:"9:00"},{Value:1031,Text:"10:30"},{Value:1500,Text:"15:00"}],Min:[{Value:2100,Text:"21:00"},{Value:901,Text:"9:00"},{Value:1500,Text:"15:00"}]}},{Name:"21:00-2:30,9:00-10:15,10:30-11:30,13:30-15:00",Data:[{Start:2100,End:2359},{Start:0,End:230},{Start:901,End:1015},{Start:1031,End:1130},{Start:1331,End:1500}],Coordinate:{Full:[{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:100,Text:"1:00"},{Value:901,Text:"9:00"},{Value:1031,Text:"10:30"},{Value:1331,Text:"13:30"},{Value:1500,Text:"15:00"}],Simple:[{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:901,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1500,Text:"15:00"}],Min:[{Value:2100,Text:"21:00"},{Value:901,Text:"9:00"},{Value:1500,Text:"15:00"}]}},{Name:"21:00-23:00,9:00-10:15,10:30-11:30,13:30-15:00",Data:[{Start:2100,End:2300},{Start:901,End:1015},{Start:1031,End:1130},{Start:1331,End:1500}],Coordinate:{Full:[{Value:2100,Text:"21:00"},{Value:2200,Text:"22:00"},{Value:2300,Text:"23:00"},{Value:1030,Text:"10:30"},{Value:1331,Text:"13:30"},{Value:1430,Text:"14:30"},{Value:1500,Text:"15:00"}],Simple:[{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:1331,Text:"13:30"},{Value:1500,Text:"15:00"}],Min:[{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:1500,Text:"15:00"}]}}],e=new xi.default([[Ji.DCE+"-JD",{Time:0,Decimal:0}],[Ji.DCE+"-FB",{Time:0,Decimal:2}],[Ji.DCE+"-BB",{Time:0,Decimal:2}],[Ji.DCE+"-PP",{Time:0,Decimal:0}],[Ji.DCE+"-JM",{Time:3,Decimal:1}],[Ji.SHFE+"-CU",{Time:4,Decimal:0}],[Ji.SHFE+"-AL",{Time:4,Decimal:0}],[Ji.SHFE+"-NI",{Time:4,Decimal:0}],[Ji.SHFE+"-SN",{Time:4,Decimal:0}],[Ji.SHFE+"-ZN",{Time:4,Decimal:0}],[Ji.SHFE+"-PB",{Time:4,Decimal:0}],[Ji.SHFE+"-RU",{Time:6,Decimal:0}],[Ji.SHFE+"-FU",{Time:6,Decimal:0}],[Ji.SHFE+"-RB",{Time:6,Decimal:0}],[Ji.SHFE+"-BU",{Time:6,Decimal:0}],[Ji.SHFE+"-HC",{Time:6,Decimal:0}],[Ji.SHFE+"-WR",{Time:0,Decimal:0}],[Ji.SHFE+"-AG",{Time:5,Decimal:0}],[Ji.SHFE+"-AU",{Time:5,Decimal:2}],[Ji.SHFE+"-NR",{Time:5,Decimal:1}],[Ji.SHFE+"-SC",{Time:5,Decimal:1}],[Ji.CZCE+"-CF",{Time:3,Decimal:0}],[Ji.CZCE+"-SR",{Time:3,Decimal:0}],[Ji.CZCE+"-MA",{Time:3,Decimal:0}],[Ji.CZCE+"-ZC",{Time:3,Decimal:1}],[Ji.CZCE+"-TA",{Time:3,Decimal:0}],[Ji.CZCE+"-RM",{Time:3,Decimal:0}],[Ji.CZCE+"-OI",{Time:3,Decimal:0}],[Ji.CZCE+"-ME",{Time:3,Decimal:0}],[Ji.CZCE+"-FG",{Time:3,Decimal:0}],[Ji.CZCE+"-WS",{Time:0,Decimal:0}],[Ji.CZCE+"-WT",{Time:0,Decimal:0}],[Ji.CZCE+"-GN",{Time:0,Decimal:0}],[Ji.CZCE+"-RO",{Time:0,Decimal:0}],[Ji.CZCE+"-RS",{Time:0,Decimal:0}],[Ji.CZCE+"-ER",{Time:0,Decimal:0}],[Ji.CZCE+"-RI",{Time:0,Decimal:0}],[Ji.CZCE+"-WH",{Time:0,Decimal:0}],[Ji.CZCE+"-AP",{Time:0,Decimal:0}],[Ji.CZCE+"-PM",{Time:0,Decimal:0}],[Ji.CZCE+"-QM",{Time:0,Decimal:0}],[Ji.CZCE+"-TC",{Time:0,Decimal:0}],[Ji.CZCE+"-JR",{Time:0,Decimal:0}],[Ji.CZCE+"-LR",{Time:0,Decimal:0}],[Ji.CZCE+"-SF",{Time:0,Decimal:0}],[Ji.CZCE+"-SM",{Time:0,Decimal:0}],[Ji.CFFEX+"-TF",{Time:1,Decimal:3}],[Ji.CFFEX+"-TS",{Time:1,Decimal:3}],[Ji.CFFEX+"-IH",{Time:2,Decimal:1}],[Ji.CFFEX+"-IC",{Time:2,Decimal:1}],[Ji.CFFEX+"-IF",{Time:2,Decimal:1}]]),a=new xi.default([[Ji.DCE+"-C",{Time:0,Decimal:0}],[Ji.DCE+"-L",{Time:0,Decimal:0}],[Ji.DCE+"-V",{Time:0,Decimal:0}],[Ji.DCE+"-A",{Time:3,Decimal:0}],[Ji.DCE+"-B",{Time:3,Decimal:0}],[Ji.DCE+"-M",{Time:3,Decimal:0}],[Ji.DCE+"-Y",{Time:3,Decimal:0}],[Ji.DCE+"-P",{Time:3,Decimal:0}],[Ji.DCE+"-J",{Time:3,Decimal:1}],[Ji.DCE+"-I",{Time:3,Decimal:1}],[Ji.CFFEX+"-T",{Time:1,Decimal:3}]]);this.GetData=function(t){var i=t.charAt(0),r=t.substr(0,2),n=null,o=null;return Ji.IsDCE(t)?(n=Ji.DCE+"-"+i,o=Ji.DCE+"-"+r):Ji.IsSHFE(t)?(n=Ji.SHFE+"-"+i,o=Ji.SHFE+"-"+r):Ji.IsCFFEX(t)?(n=Ji.CFFEX+"-"+i,o=Ji.CFFEX+"-"+r):Ji.IsCZCE(t)&&(n=Ji.CZCE+"-"+i,o=Ji.CZCE+"-"+r),e.has(o)?e.get(o):a.has(n)?a.get(n):null},this.GetSplitData=function(e){var a=this.GetData(e);return a?t[a.Time]:null},this.GetDecimal=function(t){var e=this.GetData(t);return e?e.Decimal:2}}function _a(){this.TIME_SPLIT=[{Name:"6:00-5:00",Data:[{Start:600,End:2359},{Start:0,End:500}],Coordinate:{Full:[{Value:600,Text:"6:00"},{Value:800,Text:"8:00"},{Value:1e3,Text:"10:00"},{Value:1200,Text:"12:00"},{Value:1400,Text:"14:00"},{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"},{Value:200,Text:"2:00"},{Value:400,Text:"4:00"}],Simple:[{Value:600,Text:"6:00"},{Value:1e3,Text:"10:00"},{Value:1400,Text:"14:00"},{Value:1800,Text:"18:00"},{Value:2200,Text:"22:00"},{Value:200,Text:"2:00"}],Min:[{Value:600,Text:"6:00"},{Value:1800,Text:"18:00"},{Value:500,Text:"5:00"}]}}],this.TIME_SPLIT2=[{Name:"7:00-6:00",Data:[{Start:700,End:2359},{Start:0,End:600}],Coordinate:{Full:[{Value:700,Text:"7:00"},{Value:900,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"},{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:1,Text:"1:00"},{Value:300,Text:"3:00"},{Value:500,Text:"5:00"}],Simple:[{Value:700,Text:"7:00"},{Value:1100,Text:"11:00"},{Value:1500,Text:"15:00"},{Value:1900,Text:"19:00"},{Value:2300,Text:"23:00"},{Value:300,Text:"3:00"}],Min:[{Value:700,Text:"7:00"},{Value:1900,Text:"19:00"},{Value:500,Text:"5:00"}]}}],this.FUTURES_LIST=[{Symbol:"CL",Decimal:2,Time:0},{Symbol:"NG",Decimal:3,Time:0},{Symbol:"RB",Decimal:4,Time:0},{Symbol:"PL",Decimal:1,Time:0},{Symbol:"PA",Decimal:2,Time:0},{Symbol:"HR",Decimal:0,Time:0},{Symbol:"QM",Decimal:3,Time:0},{Symbol:"HO",Decimal:4,Time:0}],this.MarketSuffix=".NYMEX",this.TimeType=0,this.GetFuturesInfo=function(t){if(t.indexOf(this.MarketSuffix)<=0)return null;for(var e in this.FUTURES_LIST){var a=this.FUTURES_LIST[e];if(0==t.indexOf(a.Symbol))return a}return null},this.GetSplitData=function(t){var e=0==this.TimeType?this.TIME_SPLIT:this.TIME_SPLIT2,a=this.GetFuturesInfo(t);return a?e[a.Time]:e[0]},this.GetDecimal=function(t){var e=this.GetFuturesInfo(t);return e?e.Decimal:3},this.GetMarketStatus=function(t){var e=Va(-4),a=new Date,i=e.getDay(),r=100*a.getHours()+a.getMinutes();return 6==i||0==i?0:r>430&&r<730?1:2}}function Ra(){this.newMethod=_a,this.newMethod(),delete this.newMethod,this.FUTURES_LIST=[{Symbol:"GC",Decimal:1,Time:0},{Symbol:"QO",Decimal:2,Time:0},{Symbol:"MG",Decimal:1,Time:0},{Symbol:"QI",Decimal:4,Time:0},{Symbol:"SI",Decimal:3,Time:0},{Symbol:"QI",Decimal:4,Time:0},{Symbol:"HG",Decimal:4,Time:0}],this.MarketSuffix=".COMEX"}function Pa(){this.newMethod=_a,this.newMethod(),delete this.newMethod,this.TIME_SPLIT=[{Name:"9:00-2:20",Data:[{Start:900,End:2359},{Start:0,End:220}],Coordinate:{Full:[{Value:900,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"},{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:100,Text:"1:00"}],Simple:[{Value:900,Text:"9:00"},{Value:1300,Text:"13:00"},{Value:1700,Text:"17:00"},{Value:2100,Text:"21:00"},{Value:100,Text:"1:00"}],Min:[{Value:900,Text:"9:00"},{Value:1700,Text:"17:00"},{Value:100,Text:"1:00"}]}},{Name:"15:30-1:00",Data:[{Start:1530,End:2359},{Start:0,End:100}],Coordinate:{Full:[{Value:1600,Text:"16:00"},{Value:1700,Text:"17:00"},{Value:1800,Text:"18:00"},{Value:1900,Text:"19:00"},{Value:2e3,Text:"20:00"},{Value:2100,Text:"21:00"},{Value:2200,Text:"22:00"},{Value:2300,Text:"23:00"},{Value:0,Text:"0:00"},{Value:100,Text:"1:00"}],Simple:[{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"}],Min:[{Value:1600,Text:"16:00"},{Value:2100,Text:"21:00"},{Value:100,Text:"1:00"}]}}],this.TIME_SPLIT2=[{Name:"10:00-3:20",Data:[{Start:1e3,End:2359},{Start:0,End:320}],Coordinate:{Full:[{Value:1e3,Text:"10:00"},{Value:1200,Text:"12:00"},{Value:1400,Text:"14:00"},{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"},{Value:200,Text:"2:00"}],Simple:[{Value:1e3,Text:"10:00"},{Value:1400,Text:"14:00"},{Value:1800,Text:"18:00"},{Value:2200,Text:"22:00"},{Value:200,Text:"2:00"}],Min:[{Value:1e3,Text:"10:00"},{Value:1800,Text:"18:00"},{Value:200,Text:"2:00"}]}},{Name:"16:30-2:00",Data:[{Start:1630,End:2359},{Start:0,End:200}],Coordinate:{Full:[{Value:1700,Text:"17:00"},{Value:1800,Text:"18:00"},{Value:1900,Text:"19:00"},{Value:2e3,Text:"20:00"},{Value:2100,Text:"21:00"},{Value:2200,Text:"22:00"},{Value:2300,Text:"23:00"},{Value:0,Text:"0:00"},{Value:100,Text:"1:00"},{Value:200,Text:"2:00"}],Simple:[{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:100,Text:"1:00"}],Min:[{Value:1700,Text:"17:00"},{Value:2100,Text:"21:00"},{Value:200,Text:"2:00"}]}}],this.FUTURES_LIST=[{Symbol:"SB",Decimal:2,Time:1},{Symbol:"CT",Decimal:2,Time:0}],this.MarketSuffix=".NYBOT",this.GetMarketStatus=function(t){var e=Va(-4),a=e.getDay(),i=100*e.getHours()+e.getMinutes();if(6==a||0==a)return 0;var r=this.GetFuturesInfo(t);if(!r)return 2;if("SB"==r.Symbol){if(i>300&&i<1400)return 2}else if("CT"==r.Symbol)return i>=0&&i<=1500||i>=2e3&&i<=2359?2:1;return 0}}function Ba(){this.newMethod=_a,this.newMethod(),delete this.newMethod,this.TIME_SPLIT=[{Name:"8:00-2:20",Data:[{Start:800,End:2359},{Start:0,End:220}],Coordinate:{Full:[{Value:800,Text:"8:00"},{Value:1e3,Text:"10:00"},{Value:1200,Text:"12:00"},{Value:1400,Text:"14:00"},{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"},{Value:200,Text:"2:00"}],Simple:[{Value:800,Text:"8:00"},{Value:1200,Text:"12:00"},{Value:1600,Text:"16:00"},{Value:2e3,Text:"20:00"},{Value:0,Text:"0:00"}],Min:[{Value:800,Text:"8:00"},{Value:1800,Text:"18:00"},{Value:200,Text:"2:00"}]}},{Name:"8:00-2:45",Data:[{Start:800,End:2359},{Start:0,End:245}],Coordinate:{Full:[{Value:800,Text:"8:00"},{Value:1e3,Text:"10:00"},{Value:1200,Text:"12:00"},{Value:1400,Text:"14:00"},{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"},{Value:200,Text:"2:00"}],Simple:[{Value:800,Text:"8:00"},{Value:1200,Text:"12:00"},{Value:1600,Text:"16:00"},{Value:2e3,Text:"20:00"},{Value:0,Text:"0:00"}],Min:[{Value:800,Text:"8:00"},{Value:1800,Text:"18:00"},{Value:200,Text:"2:00"}]}},{Name:"6:00-5:00",Data:[{Start:600,End:2359},{Start:0,End:500}],Coordinate:{Full:[{Value:600,Text:"6:00"},{Value:800,Text:"8:00"},{Value:1e3,Text:"10:00"},{Value:1200,Text:"12:00"},{Value:1400,Text:"14:00"},{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"},{Value:200,Text:"2:00"},{Value:400,Text:"4:00"}],Simple:[{Value:600,Text:"6:00"},{Value:1e3,Text:"10:00"},{Value:1400,Text:"14:00"},{Value:1800,Text:"18:00"},{Value:2200,Text:"22:00"},{Value:200,Text:"2:00"}],Min:[{Value:600,Text:"6:00"},{Value:1800,Text:"18:00"},{Value:500,Text:"5:00"}]}}],this.TIME_SPLIT2=[{Name:"9:00-3:20",Data:[{Start:900,End:2359},{Start:0,End:320}],Coordinate:{Full:[{Value:900,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"},{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:1,Text:"1:00"},{Value:300,Text:"3:00"}],Simple:[{Value:900,Text:"9:00"},{Value:1300,Text:"13:00"},{Value:1700,Text:"17:00"},{Value:2100,Text:"21:00"},{Value:1,Text:"1:00"}],Min:[{Value:900,Text:"9:00"},{Value:1900,Text:"19:00"},{Value:300,Text:"3:00"}]}},{Name:"9:00-3:45",Data:[{Start:900,End:2359},{Start:0,End:345}],Coordinate:{Full:[{Value:900,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"},{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:1,Text:"1:00"},{Value:300,Text:"3:00"}],Simple:[{Value:900,Text:"9:00"},{Value:1300,Text:"13:00"},{Value:1700,Text:"17:00"},{Value:2100,Text:"21:00"},{Value:1,Text:"1:00"}],Min:[{Value:900,Text:"9:00"},{Value:1900,Text:"19:00"},{Value:300,Text:"3:00"}]}},{Name:"7:00-6:00",Data:[{Start:700,End:2359},{Start:0,End:600}],Coordinate:{Full:[{Value:700,Text:"7:00"},{Value:900,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"},{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:1,Text:"1:00"},{Value:300,Text:"3:00"},{Value:500,Text:"5:00"}],Simple:[{Value:700,Text:"7:00"},{Value:1100,Text:"11:00"},{Value:1500,Text:"15:00"},{Value:1900,Text:"19:00"},{Value:2300,Text:"23:00"},{Value:300,Text:"3:00"}],Min:[{Value:700,Text:"7:00"},{Value:1800,Text:"18:00"},{Value:500,Text:"5:00"}]}}],this.FUTURES_LIST=[{Symbol:"ZC",Decimal:2,Time:0},{Symbol:"XC",Decimal:2,Time:1},{Symbol:"ZS",Decimal:2,Time:0},{Symbol:"XK",Decimal:2,Time:1},{Symbol:"ZL",Decimal:2,Time:0},{Symbol:"ZR",Decimal:2,Time:0},{Symbol:"ZO",Decimal:2,Time:0},{Symbol:"ZW",Decimal:2,Time:0},{Symbol:"XW",Decimal:2,Time:1},{Symbol:"ZM",Decimal:1,Time:0},{Symbol:"EH",Decimal:3,Time:2},{Symbol:"YM",Decimal:0,Time:2},{Symbol:"ES",Decimal:2,Time:2},{Symbol:"NQ",Decimal:2,Time:2},{Symbol:"TY",Decimal:4,Time:2},{Symbol:"TU",Decimal:4,Time:2},{Symbol:"FV",Decimal:4,Time:2},{Symbol:"US",Decimal:4,Time:2},{Symbol:"UL",Decimal:4,Time:2}],this.MarketSuffix=".CBOT"}function ka(){this.newMethod=_a,this.newMethod(),delete this.newMethod,this.TIME_SPLIT=[{Name:"LME 9:00-3:00",Data:[{Start:900,End:2359},{Start:0,End:300}],Coordinate:{Full:[{Value:900,Text:"9:00"},{Value:1100,Text:"11:00"},{Value:1300,Text:"13:00"},{Value:1500,Text:"15:00"},{Value:1700,Text:"17:00"},{Value:1900,Text:"19:00"},{Value:2100,Text:"21:00"},{Value:2300,Text:"23:00"},{Value:100,Text:"1:00"},{Value:300,Text:"3:00"}],Simple:[{Value:900,Text:"9:00"},{Value:1300,Text:"13:00"},{Value:1700,Text:"17:00"},{Value:2100,Text:"21:00"},{Value:100,Text:"1:00"}],Min:[{Value:900,Text:"9:00"},{Value:1800,Text:"18:00"},{Value:300,Text:"3:00"}]}}],this.TIME_SPLIT=[{Name:"LME 8:00-2:00",Data:[{Start:800,End:2359},{Start:0,End:200}],Coordinate:{Full:[{Value:800,Text:"8:00"},{Value:1e3,Text:"10:00"},{Value:1200,Text:"12:00"},{Value:1400,Text:"14:00"},{Value:1600,Text:"16:00"},{Value:1800,Text:"18:00"},{Value:2e3,Text:"20:00"},{Value:2200,Text:"22:00"},{Value:0,Text:"0:00"},{Value:200,Text:"2:00"}],Simple:[{Value:800,Text:"8:00"},{Value:1200,Text:"12:00"},{Value:1600,Text:"16:00"},{Value:2e3,Text:"20:00"},{Value:0,Text:"0:00"}],Min:[{Value:800,Text:"8:00"},{Value:1800,Text:"18:00"},{Value:200,Text:"2:00"}]}}],this.FUTURES_LIST=[{Symbol:"SND",Decimal:0,Time:0},{Symbol:"AHD",Decimal:2,Time:0},{Symbol:"PBD",Decimal:2,Time:0},{Symbol:"ZSD",Decimal:2,Time:0},{Symbol:"CAD",Decimal:2,Time:0},{Symbol:"NID",Decimal:0,Time:0}],this.MarketSuffix=".LME"}function Ha(t){var e=2;if(!t)return e;var a=t.toUpperCase();return Ji.IsSHSZFund(a)?e=3:Ji.IsSHO(a)?e=Ji.GetSHODecimal(a):Ji.IsChinaFutures(a)?e=ji.GetDecimal(a):Ji.IsFHK(a)?e=Ji.GetFHKDecimal(a):Ji.IsFTSE(a)?e=Ji.GetFTSEDecimal(a):Ji.IsBIT(a)?e=Ji.GetBITDecimal(a):Ji.IsET(a)?e=Ji.GetETDecimal(a):Ji.IsForeignExchange(a)?e=Ji.GetForeignExchangeDecimal(a):Ji.IsNYMEX(a)?e=Qi.GetDecimal(a):Ji.IsCOMEX(a)?e=$i.GetDecimal(a):Ji.IsNYBOT(a)?e=tr.GetDecimal(a):Ji.IsCBOT(a)&&(e=er.GetDecimal(a)),e}function Va(t){if("number"==typeof t){var e=new Date,a=e.getTime(),i=6e4*e.getTimezoneOffset(),r=a+i;return new Date(r+36e5*t)}}function Ga(){this.Error=[],this.RecordError=function(t){this.Error.push(t)},this.ConstructError=function(t,e){var a=new Error(t);try{throw a}catch(t){di.default&&ui.default&&(a=(0,di.default)(t),a.Column=e)}return a},this.CreateError=function(t,e,a,i){var r="Line "+e+": "+i,n=this.ConstructError(r,a);return n.Index=t,n.LineNumber=e,n.Description=i,n},this.ThrowError=function(t,e,a,i){throw this.CreateError(t,e,a,i)},this.ThrowDownloadJob=function(t,e,a,i,r){var n=this.CreateError(t,e,a,i);throw n.Job=r,n}}function Ya(t,e){this.Source=t,this.ErrorHandler=e,this.Length=t.length,this.Index=0,this.LineNumber=t.length>0?1:0,this.LineStart=0,this.CurlyStack=[],this.SaveState=function(){return{Index:this.Index,LineNumber:this.LineNumber,LineStart:this.LineStart}},this.RestoreState=function(t){this.Index=t.Index,this.LineNumber=t.LineNumber,this.LineStart=t.LineStart},this.IsEOF=function(){return this.Index>=this.Length},this.IsKeyword=function(t){return!1},this.CodePointAt=function(t){var e=this.Source.charCodeAt(t);if(e>=55296&&e<=56319){var a=this.Source.charCodeAt(t+1);if(a>=56320&&a<=57343){e=1024*(e-55296)+a-56320+65536}}return e},this.Lex=function(){if(this.IsEOF())return{Type:2,Value:"",LineNumber:this.LineNumber,LineStart:this.LineStart,Start:this.Index,End:this.Index};var t=this.Source.charCodeAt(this.Index);return or.IsIdentifierStart(t)?this.ScanIdentifier():40===t||41===t||59===t?this.ScanPunctuator():39===t||34===t?this.ScanStringLiteral():46==t?or.IsDecimalDigit(this.Source.charCodeAt(this.Index+1))?this.ScanNumericLiteral():this.ScanPunctuator():or.IsDecimalDigit(t)?this.ScanNumericLiteral():t>=55296&&t<57343&&or.IsIdentifierStart(this.CodePointAt(this.Index))?this.ScanIdentifier():this.ScanPunctuator()},this.ScanIdentifier=function(){var t=void 0,e=this.Index,a=92===this.Source.charCodeAt(e)?this.GetComplexIdentifier():this.GetIdentifier();if(3!=(t=a.length?3:this.IsKeyword(a)?4:null==a?5:"true"==a||"false"==a?1:3)&&e+a.length!=this.Index){this.Index;throw this.Index=e,rr.InvalidEscapedReservedWord}return"AND"!=a&&"OR"!=a||(t=7),{Type:t,Value:a,LineNumber:this.LineNumber,LineStart:this.LineStart,Start:e,End:this.Index}},this.GetIdentifier=function(){for(var t=this.Index++;!this.IsEOF();){var e=this.Source.charCodeAt(this.Index);if(92==e)return this.Index=t,this.GetComplexIdentifier();if(e>=55296&&e<57343)return this.Index=t,this.GetComplexIdentifier();if(!or.IsIdentifierPart(e))break;++this.Index}return this.Source.slice(t,this.Index)},this.ScanPunctuator=function(){var t=this.Index,e=this.Source[this.Index];switch(e){case"(":++this.Index;break;case")":case";":case",":case".":++this.Index;break;default:e=this.Source.substr(this.Index,3),"AND"==e?this.Index+=3:(e=this.Source.substr(this.Index,2),"&&"===e||"||"===e||"=="===e||"!="===e||"<="===e||">="===e||"=>"===e||":="==e||"OR"==e||"<>"==e?this.Index+=2:(e=this.Source[this.Index],"<>=!+-*%&|^/:".indexOf(e)>=0&&++this.Index))}return this.Index==t&&this.ThrowUnecpectedToken(),{Type:7,Value:e,LineNumber:this.LineNumber,LineStart:this.LineStart,Start:t,End:this.Index}},this.ScanStringLiteral=function(){var t=this.Index,e=this.Source[this.Index];++this.Index;for(var a="";!this.IsEOF();){var i=this.Source[this.Index++];if(i==e){e="";break}if("\\"==i)throw"not complete";if(or.IsLineTerminator(i.charCodeAt(0)))break;a+=i}return""!=e&&(this.Index=t,this.ThrowUnecpectedToken()),{Type:8,Value:a,LineNumber:this.LineNumber,LineStart:this.LineStart,Start:t,End:this.Index}},this.ScanNumericLiteral=function(){var t=this.Index,e=this.Source[this.Index],a="";if("."!=e){if(a=this.Source[this.Index++],e=this.Source[this.Index],"0"==a&&("x"==e||"X"==e))return++this.Index,this.ScanHexLiteral(t);for(;or.IsDecimalDigit(this.Source.charCodeAt(this.Index));)a+=this.Source[this.Index++];e=this.Source[this.Index]}if("."==e){for(a+=this.Source[this.Index++];or.IsDecimalDigit(this.Source.charCodeAt(this.Index));)a+=this.Source[this.Index++];e=this.Source[this.Index]}if("e"==e||"E"==e)if(a+=this.Source[this.Index++],e=this.Source[this.Index],"+"!=e&&"-"!=e||(a+=this.Source[this.Index]),or.IsDecimalDigit(this.Source.charCodeAt(this.Index)))for(;or.IsDecimalDigit(this.Source.charCodeAt(this.Index));)a+=this.Source[this.Index++];else this.ThrowUnecpectedToken();return or.IsIdentifierStart(this.Source.charCodeAt(this.Index))&&this.ThrowUnecpectedToken(),{Type:6,Value:parseFloat(a),LineNumber:this.LineNumber,LineStart:this.LineStart,Start:t,End:this.Index}},this.ScanComments=function(){for(this.Index;!this.IsEOF();){var t=this.Source.charCodeAt(this.Index);if(or.IsWhiteSpace(t))++this.Index;else if(or.IsLineTerminator(t))++this.Index,13==t&&10==this.Source.charCodeAt(this.Index)&&++this.Index,++this.LineNumber,this.LineStart=this.Index,!0;else if(47==t){if(47!=(t=this.Source.charCodeAt(this.Index+1)))break;this.Index+=2;this.SkipSingleLineComment(2);!0}else{if(123!=t)break;this.Index+=1;this.SkipMultiLineComment()}}},this.SkipMultiLineComment=function(){for(var t=[];!this.IsEOF();){var e=this.Source.charCodeAt(this.Index);if(or.IsLineTerminator(e))++this.LineNumber,++this.Index,this.LineStart=this.Index;else{if(125==e)return this.Index+=1,t;++this.Index}}return t},this.SkipSingleLineComment=function(t){for(var e=[];!this.IsEOF();){var a=this.Source.charCodeAt(this.Index);if(++this.Index,or.IsLineTerminator(a))return 13===a&&10===this.Source.charCodeAt(this.Index)&&++this.Index,++this.LineNumber,this.LineStart=this.Index,e}return e},this.ThrowUnecpectedToken=function(t){return t||(t=rr.UnexpectedTokenIllegal),this.ErrorHandler.ThrowError(this.Index,this.LineNumber,this.Index-this.LineStart+1,t)}}function Ua(t){this.ErrorHandler=new Ga,this.Scanner=new Ya(t,this.ErrorHandler),this.Buffer=[],this.GetNextToken=function(){if(0==this.Buffer.length){this.Scanner.ScanComments();if(!this.Scanner.IsEOF()){var t=this.Scanner.Lex(),e={Type:sr[t.Type],Value:this.Scanner.Source.slice(t.Start,t.End)};this.Buffer.push(e)}}return this.Buffer.shift()}}function Wa(){this.IsNeedIndexData=!1,this.IsNeedLatestIndexData=!1,this.IsNeedLatestData=!1,this.IsNeedSymbolData=!1,this.IsNeedSymbolDayData=!1,this.IsNeedFinanceData=new vi.default,this.IsNeedMarginData=new vi.default,this.IsNeedNewsAnalysisData=new vi.default,this.NeedBlockIncreaseData=[],this.IsNeedSymbolExData=new vi.default,this.IsNeedHK2SHSZData=new vi.default,this.IsNeedSectionFinance=new xi.default,this.IsCustomFunction=[],this.IsCustomVariant=[],this.IsAPIData=[],this.ExecuteIndex=[],this.GetDataJobList=function(){var t=[];this.IsNeedSymbolData&&t.push({ID:cr.JOB_DOWNLOAD_SYMBOL_DATA}),this.IsNeedIndexData&&t.push({ID:cr.JOB_DOWNLOAD_INDEX_DATA}),this.IsNeedLatestData&&t.push({ID:cr.JOB_DOWNLOAD_SYMBOL_LATEST_DATA}),this.IsNeedSymbolDayData&&t.push({ID:cr.JOB_DOWNLOAD_SYMBOL_DAY_DATA}),this.IsNeedLatestIndexData&&t.push({ID:cr.JOB_DOWNLOAD_LATEST_INDEX_DATA});for(var e in this.NeedBlockIncreaseData)t.push(this.NeedBlockIncreaseData[e]);var a=!0,i=!1,r=void 0;try{for(var n,o=(0,Si.default)(this.IsNeedFinanceData);!(a=(n=o.next()).done);a=!0){var s=n.value;s==cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA&&t.push({ID:cr.JOB_DOWNLOAD_MARKETVALUE_DATA}),t.push({ID:s})}}catch(t){i=!0,r=t}finally{try{!a&&o.return&&o.return()}finally{if(i)throw r}}var l=!0,h=!1,u=void 0;try{for(var c,d=(0,Si.default)(this.IsNeedMarginData);!(l=(c=d.next()).done);l=!0){var s=c.value;t.push({ID:s})}}catch(t){h=!0,u=t}finally{try{!l&&d.return&&d.return()}finally{if(h)throw u}}var f=!0,C=!1,p=void 0;try{for(var D,m=(0,Si.default)(this.IsNeedHK2SHSZData);!(f=(D=m.next()).done);f=!0){var s=D.value;t.push({ID:s})}}catch(t){C=!0,p=t}finally{try{!f&&m.return&&m.return()}finally{if(C)throw p}}var v=!0,g=!1,S=void 0;try{for(var I,x=(0,Si.default)(this.IsNeedNewsAnalysisData);!(v=(I=x.next()).done);v=!0){var s=I.value;t.push({ID:s})}}catch(t){g=!0,S=t}finally{try{!v&&x.return&&x.return()}finally{if(g)throw S}}var T=!0,A=!1,b=void 0;try{for(var E,F=(0,Si.default)(this.IsNeedSymbolExData);!(T=(E=F.next()).done);T=!0){var s=E.value;t.push({ID:s})}}catch(t){A=!0,b=t}finally{try{!T&&F.return&&F.return()}finally{if(A)throw b}}var y=!0,L=!1,M=void 0;try{for(var w,N=(0,Si.default)(this.IsNeedSectionFinance);!(y=(w=N.next()).done);y=!0){var O=w.value;t.push({ID:cr.JOB_DOWNLOAD_SECTION_SF,SF:O})}}catch(t){L=!0,M=t}finally{try{!y&&N.return&&N.return()}finally{if(L)throw M}}for(var e in this.IsCustomVariant){var O=this.IsCustomVariant[e];t.push({ID:O.ID,Name:O.Name})}for(var e in this.IsAPIData){var O=this.IsAPIData[e];t.push(O)}for(var e in this.IsCustomFunction){var O=this.IsCustomFunction[e];t.push(O)}for(var e in this.ExecuteIndex){var O=this.ExecuteIndex[e];t.push(O)}return t},this.VerifySymbolVariable=function(t,e){if(new vi.default(["INDEXA","INDEXC","INDEXH","INDEXL","INDEXO","INDEXV","INDEXDEC","INDEXADV"]).has(t))return void(this.IsNeedIndexData=!0);if(new vi.default(["CLOSE","C","VOL","V","OPEN","O","HIGH","H","LOW","L","AMOUNT","AMO","VOLINSTK"]).has(t))return void(this.IsNeedSymbolData=!0);if("VOLR"===t&&(this.IsNeedSymbolExData.has(cr.JOB_DOWNLOAD_VOLR_DATA)||this.IsNeedSymbolExData.add(cr.JOB_DOWNLOAD_VOLR_DATA)),"HYBLOCK"!=t&&"DYBLOCK"!=t&&"GNBLOCK"!=t||this.IsNeedSymbolExData.has(cr.JOB_DOWNLOAD_GROUP_DATA)||this.IsNeedSymbolExData.add(cr.JOB_DOWNLOAD_GROUP_DATA),"CAPITAL"===t&&(this.IsNeedFinanceData.has(cr.JOB_DOWNLOAD_CAPITAL_DATA)||this.IsNeedFinanceData.add(cr.JOB_DOWNLOAD_CAPITAL_DATA)),"EXCHANGE"===t&&(this.IsNeedFinanceData.has(cr.JOB_DOWNLOAD_EXCHANGE_DATA)||this.IsNeedFinanceData.add(cr.JOB_DOWNLOAD_EXCHANGE_DATA)),"FROMOPEN"==t)return void(this.IsNeedLatestIndexData=!0);if("ADVANCE"==t||"DECLINE"==t){var a={ID:cr.JOB_DOWNLOAD_INDEX_INCREASE_DATA,IsSelfSymbol:!0,FunctionName:t};return e&&(a.Token={Index:e.Start,Line:e.LineNumber}),void this.NeedBlockIncreaseData.push(a)}if(ir.IsCustomVariant(t)){var a={Name:t,ID:cr.JOB_CUSTOM_VARIANT_DATA};this.IsCustomVariant.push(a)}},this.VerifySymbolFunction=function(t,e,a){if(ir.IsCustomFunction(t.Name)){var i={Name:t.Name,ID:cr.JOB_CUSTOM_FUNCTION_DATA,Args:e};return a&&(i.Token={Index:a.Start,Line:a.LineNumber}),void this.IsCustomFunction.push(i)}if("DYNAINFO"==t.Name)return void(this.IsNeedLatestData=!0);if("FINANCE"==t.Name){var r=cr.GetFinnanceJobID(e[0].Value);return void(r&&!this.IsNeedFinanceData.has(r)&&this.IsNeedFinanceData.add(r))}if("MARGIN"===t.Name){var n=cr.GetMarginJobID(e[0].Value);return void(n&&!this.IsNeedMarginData.has(n)&&this.IsNeedMarginData.add(n))}if("NEWS"===t.Name){var o=cr.GetNewsAnalysisID(e[0].Value);return void(o&&!this.IsNeedNewsAnalysisData.has(o)&&this.IsNeedNewsAnalysisData.add(o))}if("HK2SHSZ"===t.Name){var s=cr.GetHK2SHSZJobID(e[0].Value);return void(s&&!this.IsNeedHK2SHSZData.has(s)&&this.IsNeedHK2SHSZData.add(s))}if("COST"==t.Name||"WINNER"==t.Name)return void(this.IsNeedFinanceData.has(cr.JOB_DOWNLOAD_EXCHANGE_DATA)||this.IsNeedFinanceData.add(cr.JOB_DOWNLOAD_EXCHANGE_DATA));if("BETA"===t.Name)return void(this.IsNeedIndexData=!0);if("UPCOUNT"==t.Name||"DOWNCOUNT"==t.Name){var i={ID:cr.JOB_DOWNLOAD_INDEX_INCREASE_DATA,Args:e,FunctionName:t.Name};return a&&(i.Token={Index:a.Start,Line:a.LineNumber}),void this.NeedBlockIncreaseData.push(i)}if("STKINDI"==t.Name){var i={ID:cr.JOB_EXECUTE_INDEX,Args:e,FunctionName:t.Name};return a&&(i.Token={Index:a.Start,Line:a.LineNumber}),void this.ExecuteIndex.push(i)}if("COVER_C"==t.Name||"COVER_O"==t.Name||"COVER_H"==t.Name||"COVER_L"==t.Name||"COVER_A"==t.Name||"COVER_V"==t.Name){var l=e[0].Value;return void("DAY"!=l&&"WEEK"!=l&&"YEAR"!=l&&"MONTH"!=l||(this.IsNeedSymbolDayData=!0))}if("SF"!=t.Name){if("LOADAPIDATA"==t.Name){var i={Name:t.Name,ID:cr.JOB_DOWNLOAD_CUSTOM_API_DATA,Args:e};return a&&(i.Token={Index:a.Start,Line:a.LineNumber}),void this.IsAPIData.push(i)}}else{var h=cr.GetSectionReportPeriod(e[0].Value,e[1].Value);if(!h)return;var u=cr.GetSectionFinanceID(e[2].Value);if(!u)return;var c=h.Year+"-"+h.Quarter;if(this.IsNeedSectionFinance.has(c)){var d=this.IsNeedSectionFinance.get(c);d.Fields.has(u)||d.Fields.add(u)}else{var d={Period:h,Fields:new vi.default([u])};this.IsNeedSectionFinance.set(c,d)}}},this.ExpressionStatement=function(t){return{Type:lr.ExpressionStatement,Expression:t}},this.Script=function(t){return{Type:lr.Program,Body:t,SourceType:"通达信脚本"}},this.SequenceExpression=function(t){return{Type:lr.SequenceExpression,Expression:t}},this.BinaryExpression=function(t,e,a){return{Type:"||"===t||"&&"===t||"AND"==t||"OR"==t?lr.LogicalExpression:lr.BinaryExpression,Operator:t,Left:e,Right:a}},this.Literal=function(t,e){return{Type:lr.Literal,Value:t,Raw:e}},this.Identifier=function(t,e){return this.VerifySymbolVariable(t,e),{Type:lr.Identifier,Name:t}},this.AssignmentExpression=function(t,e,a){return{Type:lr.AssignmentExpression,Operator:t,Left:e,Right:a}},this.UnaryExpression=function(t,e){return{Type:lr.UnaryExpression,Operator:t,Argument:e,Prefix:!0}},this.EmptyStatement=function(){return{Type:lr.EmptyStatement}},this.CallExpression=function(t,e,a){return this.VerifySymbolFunction(t,e,a),{Type:lr.CallExpression,Callee:t,Arguments:e}},this.StaticMemberExpression=function(t,e){return{Type:lr.MemberExpression,Computed:!1,Object:t,Property:e}}}function Xa(t){this.ErrorHandler=new Ga,this.Scanner=new Ya(t,this.ErrorHandler),this.Node=new Wa,this.LookAhead={Type:2,Value:"",LineNumber:this.Scanner.LineNumber,LineStart:0,Start:0,End:0},this.HasLineTerminator=!1,this.Context={IsModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,FirstCoverInitializedNameError:null,IsAssignmentTarget:!1,IsBindingElement:!1,InFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},Strict:!1},this.PeratorPrecedence={")":0,";":0,",":0,"]":0,"||":1,OR:1,"&&":2,AND:2,"|":3,"^":4,"&":5,"==":6,"=":6,"!=":6,"<>":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.StartMarker={Index:0,Line:this.Scanner.LineNumber,Column:0},this.LastMarker={Index:0,Line:this.Scanner.LineNumber,Column:0},this.Initialize=function(){this.NextToken(),this.LastMarker={Index:this.Scanner.Index,Line:this.Scanner.LineNumber,Column:this.Scanner.Index-this.Scanner.LineStart}},this.CreateNode=function(){return{Index:this.StartMarker.Index,Line:this.StartMarker.Line,Column:this.StartMarker.Column}},this.StartNode=function(t,e){void 0==e&&(e=0);var a=t.Start-t.LineStart,i=t.LineNumber;return a<0&&(a+=e,i--),{Index:t.Start,Line:i,Column:a}},this.Match=function(t){return 7==this.LookAhead.Type&&this.LookAhead.Value==t},this.Expect=function(t){var e=this.NextToken();7==e.Type&&e.Value==t||this.ThrowUnexpectedToken(e)},this.MatchAssign=function(){if(7!=this.LookAhead.Type)return!1;var t=this.LookAhead.Value;return":"==t||":="==t},this.GetTokenRaw=function(t){return this.Scanner.Source.slice(t.Start,t.End)},this.NextToken=function(){var t=this.LookAhead;this.LastMarker.Index=this.Scanner.Index,this.LastMarker.Line=this.Scanner.LineNumber,this.LastMarker.Column=this.Scanner.Index-this.Scanner.LineStart,this.CollectComments(),this.Scanner.Index!==this.StartMarker.Index&&(this.StartMarker.Index=this.Scanner.Index,this.StartMarker.Line=this.Scanner.LineNumber,this.StartMarker.Column=this.Scanner.Index-this.Scanner.LineStart);var e=this.Scanner.Lex();return this.HasLineTerminator=t.LineNumber!=e.LineNumber,e&&this.Context.Strict&&e.Type,this.LookAhead=e,t},this.CollectComments=function(){this.Scanner.ScanComments()},this.ParseScript=function(){for(var t=this.CreateNode(),e=this.ParseDirectivePrologues();2!=this.LookAhead.Type;)e.push(this.ParseStatementListItem());return this.Finalize(t,this.Node.Script(e))},this.ParseDirective=function(){this.LookAhead,this.CreateNode(),this.ParseExpression()},this.ParseDirectivePrologues=function(){for(var t=[];;){if(8!=this.LookAhead.Type)break;var e=this.ParseDirective();t.push(e)}return t},this.ParseStatementListItem=function(){var t=void 0;return this.Context.IsAssignmentTarget=!0,this.Context.IsBindingElement=!0,4==this.LookAhead.Type||(t=this.ParseStatement()),t},this.ParseStatement=function(){var t=void 0;switch(this.LookAhead.Type){case 1:case 5:case 6:case 8:case 10:case 9:t=this.ParseExpressionStatement();break;case 7:var e=this.LookAhead.Value;t="("===e?this.ParseExpressionStatement():";"===e?this.ParseEmptyStatement():this.ParseExpressionStatement();break;case 3:t=this.ParseLabelledStatement();break;case 4:break;default:t="error"}return t},this.ParseEmptyStatement=function(){var t=this.CreateNode();return this.Expect(";"),this.Finalize(t,this.Node.EmptyStatement())},this.ParseLabelledStatement=function(){var t=this.CreateNode(),e=this.ParseExpression();this.ConsumeSemicolon();var a=new this.Node.ExpressionStatement(e);return this.Finalize(t,a)},this.ParseExpression=function(){var t=this.LookAhead,e=this.IsolateCoverGrammar(this.ParseAssignmentExpression);if(this.Match(",")){var a=[];for(a.push(e);2!=this.LookAhead.Type&&this.Match(",");)this.NextToken(),a.push(this.IsolateCoverGrammar(this.ParseAssignmentExpression));e=this.Finalize(this.StartNode(t),this.Node.SequenceExpression(a))}return e},this.ParseAssignmentExpression=function(){var t=void 0,e=this.LookAhead,a=e;if(t=this.ParseConditionalExpression(),this.MatchAssign()){if(!this.Context.IsAssignmentTarget){var i=t.Marker;this.ThrowUnexpectedError(i.Index,i.Line,i.Column,rr.InvalidLHSInAssignment)}this.Match("=")||this.Match(":")?this.ReinterpretExpressionAsPattern(t):(this.Context.IsAssignmentTarget=!1,this.Context.IsBindingElement=!1),a=this.NextToken();var r=a.Value,n=this.IsolateCoverGrammar(this.ParseAssignmentExpression);t=this.Finalize(this.StartNode(e),this.Node.AssignmentExpression(r,t,n)),this.Context.FirstCoverInitializedNameError=null}return t},this.ParseConditionalExpression=function(){this.LookAhead;return this.InheritCoverGrammar(this.ParseBinaryExpression)},this.ParseBinaryExpression=function(){var t=this.LookAhead,e=this.InheritCoverGrammar(this.ParseExponentiationExpression),a=this.LookAhead,i=this.BinaryPrecedence(a);if(i>0){this.NextToken(),this.Context.IsAssignmentTarget=!1,this.Context.IsBindingElement=!1;for(var r=[t,this.LookAhead],n=e,o=this.IsolateCoverGrammar(this.ParseExponentiationExpression),s=[n,a.Value,o],l=[i];;){if((i=this.BinaryPrecedence(this.LookAhead))<=0)break;for(;s.length>2&&i<=l[l.length-1];){o=s.pop();var h=s.pop();l.pop(),n=s.pop(),r.pop();var u=this.StartNode(r[r.length-1]);s.push(this.Finalize(u,this.Node.BinaryExpression(h,n,o)))}s.push(this.NextToken().Value),l.push(i),r.push(this.LookAhead),s.push(this.IsolateCoverGrammar(this.ParseExponentiationExpression))}var c=s.length-1;e=s[c];for(var d=r.pop();c>1;){var f=r.pop(),C=d&&d.LineStart,p=this.StartNode(f,C),D=s[c-1];e=this.Finalize(p,this.Node.BinaryExpression(D,s[c-2],e)),c-=2,d=f}}return e},this.ParseExponentiationExpression=function(){this.LookAhead;return this.InheritCoverGrammar(this.ParseUnaryExpression)},this.ParseUnaryExpression=function(){var t=void 0;if(this.Match("+")||this.Match("-")){var e=this.StartNode(this.LookAhead),a=this.NextToken();t=this.InheritCoverGrammar(this.ParseUnaryExpression),t=this.Finalize(e,this.Node.UnaryExpression(a.Value,t)),this.Context.IsAssignmentTarget=!1,this.Context.IsBindingElement=!1}else t=this.ParseUpdateExpression();return t},this.ParseUpdateExpression=function(){this.LookAhead;return this.InheritCoverGrammar(this.ParseLeftHandSideExpressionAllowCall)},this.ParseLeftHandSideExpressionAllowCall=function(){var t=this.LookAhead,e=void 0;for(e=this.InheritCoverGrammar(this.ParsePrimaryExpression);;)if(this.Match(".")){this.Context.IsBindingElement=!1,this.Context.IsAssignmentTarget=!0,this.Expect(".");var a=this.ParseIdentifierName();e=this.Finalize(this.StartNode(t),this.Node.StaticMemberExpression(e,a))}else{if(!this.Match("("))break;this.Context.IsBindingElement=!1,this.Context.IsAssignmentTarget=!1;var i=this.ParseArguments();e=this.Finalize(this.StartNode(t),this.Node.CallExpression(e,i,t))}return e},this.IsIdentifierName=function(t){return 3===t.Type||4===t.Type||1===t.Type||5===t.Type},this.ParseIdentifierName=function(){var t=this.CreateNode(),e=this.NextToken();return this.IsIdentifierName(e)||this.ThrowUnexpectedToken(e),this.Finalize(t,this.Node.Identifier(e.Value,e))},this.ParseArguments=function(){this.Expect("(");var t=[];if(!this.Match(")"))for(;;){var e=this.IsolateCoverGrammar(this.ParseAssignmentExpression);if(t.push(e),this.Match(")"))break;if(this.ExpectCommaSeparator(),this.Match(")"))break}return this.Expect(")"),t},this.ExpectCommaSeparator=function(){this.Expect(",")},this.ParsePrimaryExpression=function(){var t,e,a=this.CreateNode(),i=void 0;switch(this.LookAhead.Type){case 3:t=this.NextToken(),i=this.Finalize(a,this.Node.Identifier(t.Value,t));break;case 6:case 8:this.Context.IsAssignmentTarget=!1,this.Context.IsBindingElement=!1,t=this.NextToken(),e=this.GetTokenRaw(t),i=this.Finalize(a,this.Node.Literal(t.Value,e));break;case 7:switch(this.LookAhead.Value){case"(":this.Context.IsBindingElement=!1,i=this.InheritCoverGrammar(this.ParseGroupExpression);break;default:i=this.ThrowUnexpectedToken(this.NextToken())}break;default:i=this.ThrowUnexpectedToken(this.NextToken())}return i},this.ParseGroupExpression=function(){var t=void 0;if(this.Expect("("),this.Match(")"))this.NextToken();else{this.LookAhead;if(this.Context.IsBindingElement=!0,t=this.InheritCoverGrammar(this.ParseAssignmentExpression),this.Match(",")){var e=[];for(this.Context.IsAssignmentTarget=!1,e.push(t);2!=this.LookAhead.Type&&this.Match(",");)this.NextToken(),this.Match(")")}this.Expect(")"),this.Context.IsBindingElement=!1}return t},this.ParseExpressionStatement=function(){var t=this.CreateNode(),e=this.ParseExpression();return this.ConsumeSemicolon(),this.Finalize(t,this.Node.ExpressionStatement(e))},this.ConsumeSemicolon=function(){this.Match(";")?this.NextToken():this.HasLineTerminator||(this.LastMarker.Index=this.StartMarker.Index,this.LastMarker.Line=this.StartMarker.Line,this.LastMarker.Column=this.StartMarker.Column)},this.ReinterpretExpressionAsPattern=function(t){switch(t.Type){case lr.Identifier:case lr.MemberExpression:case lr.AssignmentExpression:}},this.Finalize=function(t,e){return e.Marker={Line:t.Line,Column:t.Column,Index:t.Index},e},this.BinaryPrecedence=function(t){var e=t.Value;return 7===t.Type?this.PeratorPrecedence[e]||0:0},this.IsolateCoverGrammar=function(t){var e=this.Context.IsBindingElement,a=this.Context.IsAssignmentTarget,i=this.Context.FirstCoverInitializedNameError;this.Context.IsBindingElement=!0,this.Context.IsAssignmentTarget=!0,this.Context.FirstCoverInitializedNameError=null;var r=t.call(this);return this.Context.FirstCoverInitializedNameError,this.Context.IsBindingElement=e,this.Context.IsAssignmentTarget=a,this.Context.FirstCoverInitializedNameError=i,r},this.InheritCoverGrammar=function(t){var e=this.Context.IsBindingElement,a=this.Context.IsAssignmentTarget,i=this.Context.FirstCoverInitializedNameError;this.Context.IsBindingElement=!0,this.Context.IsAssignmentTarget=!0,this.Context.FirstCoverInitializedNameError=null;var r=t.call(this);return this.Context.IsBindingElement=this.Context.IsBindingElement&&e,this.Context.IsAssignmentTarget=this.Context.IsAssignmentTarget&&a,this.Context.FirstCoverInitializedNameError=i||this.Context.FirstCoverInitializedNameError,r},this.ThrowUnexpectedToken=function(t,e){throw this.UnexpectedTokenError(t,e)},this.ThrowUnexpectedError=function(t,e,a,i){var r=i||"执行异常";return this.ErrorHandler.ThrowError(t,e,a,r)},this.UnexpectedTokenError=function(t,e){var a=e||rr.UnexpectedToken,i="ILLEGAL";if(t&&(i=t.Value),a=a.replace("%0",i),t&&"number"==typeof t.LineNumber){var r=t.Start,n=t.LineNumber,o=this.LastMarker.Index-this.LastMarker.Column,s=t.Start-o+1;return this.ErrorHandler.CreateError(r,n,s,a)}var l=this.LastMarker.Index,h=this.LastMarker.Line,u=this.LastMarker.Column+1;return this.ErrorHandler.CreateError(l,h,u,a)}}function Ka(t,e){this.ErrorHandler=t,this.SymbolData=e,this.Add=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t+e;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&this.IsNumber(t[o])&&this.IsNumber(e[o])&&(r[o]=t[o]+e[o]);return r}var s=void 0,l=void 0;a?(s=t,l=e):(s=e,l=t);for(var h in l)r[h]=null,this.IsNumber(l[h])&&this.IsNumber(s)&&(r[h]=s+l[h]);return r},this.Subtract=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t-e;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&this.IsNumber(t[o])&&this.IsNumber(e[o])&&(r[o]=t[o]-e[o]);return r}if(a)for(var s in e)r[s]=null,this.IsNumber(t)&&this.IsNumber(e[s])&&(r[s]=t-e[s]);else for(var l in t)r[l]=null,this.IsNumber(t[l])&&this.IsNumber(e)&&(r[l]=t[l]-e);return r},this.Multiply=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t*e;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&this.IsNumber(t[o])&&this.IsNumber(e[o])&&(r[o]=t[o]*e[o]);return r}var s=void 0,l=void 0;a?(s=t,l=e):(s=e,l=t);for(var h in l)r[h]=null,this.IsNumber(l[h])&&this.IsNumber(s)&&(r[h]=s*l[h]);return r},this.Divide=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return 0==e?null:t/e;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&this.IsNumber(t[o])&&this.IsDivideNumber(e[o])&&(r[o]=t[o]/e[o]);return r}if(a)for(var s in e)r[s]=null,this.IsNumber(t)&&this.IsDivideNumber(e[s])&&(r[s]=t/e[s]);else for(var l in t)r[l]=null,this.IsNumber(t[l])&&this.IsDivideNumber(e)&&(r[l]=t[l]/e);return r},this.GT=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t>e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]>e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t>e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]>e?1:0);return r},this.GTE=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t>=e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]>=e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t>=e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]>=e?1:0);return r},this.LT=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t<e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]<e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t<e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]<e?1:0);return r},this.LTE=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t>=e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]<=e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t<=e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]<=e?1:0);return r},this.EQ=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t==e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]==e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t==e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]==e?1:0);return r},this.NEQ=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t!=e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]!=e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t!=e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]!=e?1:0);return r},this.And=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t&&e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]&&e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t&&e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]&&e?1:0);return r},this.Or=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return t||e?1:0;var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=t[o]||e[o]?1:0));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=t||e[s]?1:0);else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=t[l]||e?1:0);return r},this.IF=function(t,e,a){var i="number"==typeof t,r="number"==typeof e,n="number"==typeof a;if(i)return t?e:a;var o=[];for(var s in t)t[s]?o[s]=r?e:e[s]:o[s]=n?a:a[s];return o},this.IFN=function(t,e,a){return this.IF(t,a,e)},this.REF=function(t,e){var a=[];if("number"==typeof e){if(t.length<=0)return a;if(e>=t.length)return a;a=t.slice(0,t.length-e);for(var i=0;i<e;++i)a.unshift(null)}else for(var r=0;r<t.length;++r)if(a[r]=null,!(r>=e.length)){var n=e[r];a[r]=n>0&&n<=r?t[r-n]:r?a[r-1]:t[r]}return a},this.MAX=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return Math.max(t,e);var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=Math.max(t[o],e[o])));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=Math.max(t,e[s]));else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=Math.max(t[l],e));return r},this.MIN=function(t,e){var a="number"==typeof t,i="number"==typeof e;if(a&&i)return Math.min(t,e);var r=[];if(!a&&!i){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)r[o]=null,o<t.length&&o<e.length&&(isNaN(t[o])||isNaN(e[o])||(r[o]=Math.min(t[o],e[o])));return r}if(a)for(var s in e)r[s]=null,isNaN(t)||isNaN(e[s])||(r[s]=Math.min(t,e[s]));else for(var l in t)r[l]=null,isNaN(t[l])||isNaN(e)||(r[l]=Math.min(t[l],e));return r},this.ABS=function(t){var e=[];for(var a in t)e[a]=null,isNaN(t[a])||(e[a]=Math.abs(t[a]));return e},this.MA=function(t,e){var a=[];if(Array.isArray(e)){for(var i=0;i<t.length;++i)if(a[i]=null,!(i>=e.length)){var r=e[i];if(this.IsNumber(r)){r<=0&&(r=i);for(var n=0,o=i,s=0;o>=0&&s<r;--o,++s)n+=t[o];a[i]=n/r}}}else{if(e<=0&&(e=1),!t||!t.length)return a;for(var i=0;i<t.length&&(a[i]=null,!this.IsNumber(t[i]));++i);for(var t=t.slice(0),l=0;i<t.length;++i,++l)if(l<e-1)a[i]=null;else{for(var h=t[i-(e-1)],u=0,c=e-1;c>=0;--c){var d=t[i-c];this.IsNumber(d)?h=d:(d=h,t[i-c]=d),u+=d}a[i]=u/e}}return a},this.EMA=function(t,e){var a=[],i=0;if(i>=t.length)return a;for(;i<t.length&&(null==t[i]||isNaN(t[i]));++i);var r=i,n=i+1;a[r]=t[r];for(var o=i+1;o<t.length;++o,++r,++n)a[n]=(2*t[n]+(e-1)*a[r])/(e+1);return a},this.XMA=function(t,e){for(var a=[],i=0;i<t.length&&!this.IsNumber(t[i]);++i);for(var r=parseInt((e-2)/2),n=0,o=0,s=0,l=0,h=i,u=0;h<t.length;++h){for(s=h-r-1,l=h+(e-r)-1,u=s;u<l;++u)u>=0&&u<t.length&&this.IsNumber(t[u])&&(n+=t[u],++o);a[h]=0!=o?n/o:null,n=0,o=0}return a},this.SMA=function(t,e,a){for(var i=[],r=0,n=null;r<t.length;++r)if(null!=t[r]&&!isNaN(t[r])){n=t[r],i[r]=n;break}for(++r;r<t.length;++r)i[r]=(a*t[r]+(e-a)*n)/e,n=i[r];return i},this.DMA=function(t,e){var a=[];if(t.length<0||t.length!=e.length)return a;for(var i=0;i<t.length;++i)if(null!=t[i]&&!isNaN(t[i])&&null!=e[i]&&!isNaN(e[i])){a[i]=t[i];break}for(i+=1;i<t.length;++i)null==t[i]||null==e[i]?a[i]=null:e[i]<1?a[i]=e[i]*t[i]+(1-e[i])*a[i-1]:a[i]=t[i];return a},this.WMA=function(t,e){var a=[];if(!t||!t.length)return a;e<1&&(e=1);var i=0;for(i=0;i<t.length&&!this.IsNumber(t[i]);++i)a[i]=null;for(var t=t.slice(0),r=0;i<t.length;++i,++r)if(r<e-1)a[i]=null;else{for(var n=t[i-(e-1)],o=0,s=0,l=e-1;l>=0;--l){var h=t[i-l];this.IsNumber(h)?n=h:(h=n,t[i-l]=h),s+=e-l,o+=h*(e-l)}a[i]=o/s}return a},this.MEMA=function(t,e){var a=[];if(!t||!t.length)return a;var i=0,r=0;for(r=0;r<t.length&&!this.IsNumber(t[r]);++r)a[r]=null;if(i=r,e<1||i+e>=t.length)return a;for(var n=0,t=t.slice(0);i<r+e;++i)a[i]=null,!this.IsNumber(t[i])&&i-1>=0&&(t[i]=t[i-1]),n+=t[i];for(a[i-1]=n/e;i<t.length;++i)this.IsNumber(a[i-1])&&this.IsNumber(t[i])?a[i]=(t[i]+a[i-1]*(e-1))/e:i-1>-1&&this.IsNumber(a[i-1])?a[i]=a[i-1]:a[i]=null;return a},this.EXPMA=function(t,e){var a=[];if(e>=t.length)return a;for(var i=e;i<t.length;++i)if(null!=t[i]){a[i]=t[i];break}for(i+=1;i<t.length;++i)null!=a[i-1]&&null!=t[i]?a[i]=(2*t[i]+(e-1)*a[i-1])/(e+1):null!=a[i-1]&&(a[i]=a[i-1]);return a},this.EXPMEMA=function(t,e){var a=[];if(e>=t.length)return a;for(var i=0;i<t.length&&(!t[i]||isNaN(t[i]));++i);for(var r=0,n=0;i<t.length&&n<e;++n,++i)t[i]&&!isNaN(t[i])?r+=t[i]:r+=t[i-1];for(a[i-1]=r/e;i<t.length;++i)null!=a[i-1]&&null!=t[i]?a[i]=(2*t[i]+(e-1)*a[i-1])/(e+1):null!=a[i-1]&&(a[i]=a[i-1]);return a},this.SUMBARS=function(t,e){var a=[];if(!(t&&t.length&&e&&e.length))return a;for(var i=0,r=0,n=0;i<t.length&&!this.IsNumber(t[i]);++i)a[i]=null;for(r=t.length-1;r>=i;--r){var o=0;for(n=r,o=0;n>=i&&o<e[r];--n)o+=t[n];a[r]=n<i?null:r-n}for(r=i+1;r<t.length;++r)null==a[r]&&(a[r]=a[r-1]);return a},this.REVERSE=function(t){for(var e=[],a=0;a<t.length&&!this.isNumber(t[a]);++a)e[a]=null;for(;a<t.length;++a)this.isNumber(t[a])?e[a]=0-t[a]:e[a]=null;return e},this.COUNT=function(t,e){for(var a=[],i=0;i<t.length;++i){for(var r=0,n=0;n<e&&i-n>=0;++n)t[i-n]&&++r;a[i]=r}return a},this.HHV=function(t,e){var a=[];if(Array.isArray(e)){for(var i=null,r=0,n=0;r<t.length;++r)if(a[r]=null,!(r>=e.length)){i=null;var o=e[r];if(o>0&&o<=r)for(n=r-o;n<=r;++n)(null==i||i<t[n])&&(i=t[n]);else for(o=r,n=0;n<=r;++n)(null==i||i<t[n])&&(i=t[n]);a[r]=i}}else{if(e>t.length)return a;e<=0&&(e=t.length-1);var s=0;for(s=0;s<t.length&&!this.IsNumber(t[s]);++s);s<t.length&&(a[s]=t[s]);for(var r=s+1,n=2;r<t.length&&n<e;++r,++n)t[r]>=t[s]&&(s=r),a[r]=t[s];for(;r<t.length;++r){if(r-s<e)s=t[r]<t[s]?s:r;else for(n=s=r-e+2;n<=r;++n)s=t[n]<t[s]?s:n;a[r]=t[s]}}return a},this.LLV=function(t,e){var a=[];if(Array.isArray(e)){for(var i=0;i<t.length;++i)if(a[i]=null,!(i>=e.length)){var r=null,n=e[i];if(n>0&&n<=i)for(var o=i-n;o<=i;++o)(null==r||r>t[o])&&(r=t[o]);else{n=i;for(var o=0;o<=i;++o)(null==r||r>t[o])&&(r=t[o])}a[i]=r}}else{if(e>t.length)return a;e<=0&&(e=t.length-1);for(var r=null,i=e;i<t.length;++i,++o){if(null==r||i<e+r)r=t[i]>t[r]?r:i;else for(var o=1+(r=i-e+1);o<=i;++o)t[o]<t[r]&&(r=o);a[i]=t[r]}}return a},this.STD=function(t,e){for(var a=[],i=0,r=[],n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=t[n-o];r[n]=i/e}for(var n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=Math.pow(t[n-o]-r[n],2);a[n]=Math.sqrt(i/e)}return a},this.AVEDEV=function(t,e){for(var a=[],i=0,r=[],n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=t[n-o];r[n]=i/e}for(var n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=Math.abs(t[n-o]-r[n]);a[n]=i/e}return a},this.CROSS=function(t,e){var a=[];if(Array.isArray(t)&&Array.isArray(e)){if(t.length!=e.length)return a=[];for(var i=0;i<t.length&&(!this.IsNumber(t[i])||!this.IsNumber(e[i]));++i);for(++i;i<t.length;++i)a[i]=t[i]>e[i]&&t[i-1]<e[i-1]?1:0}else if(Array.isArray(t)&&"number"==typeof e){for(var i=0;i<t.length&&!this.IsNumber(t[i]);++i);for(++i;i<t.length;++i)a[i]=t[i]>e&&t[i-1]<e?1:0}else if("number"==typeof t&&Array.isArray(e)){for(var i=0;i<e.length&&!this.IsNumber(e[i]);++i);for(++i;i<e.length;++i)a[i]=e[i]<t&&e[i-1]>t?1:0}return a},this.MULAR=function(t,e){var a=[];if(t.length<e)return a;for(var i=e;i<t.length;++i)if(null!=t[i]&&!isNaN(t[i])){a[i]=t[i];break}for(++i;i<t.length;++i)a[i]=a[i-1]*t[i];return a},this.SUM=function(t,e){var a=[];if(Array.isArray(e))for(var i=0;i<t.length;++i){a[i]=null;var r=e[i];if(r>0)for(var n=i,o=0;n>=0&&o<r;--n,++o)0==o?a[i]=t[n]:a[i]+=t[n]}else if(0==e){a[0]=t[0];for(var i=1;i<t.length;++i)a[i]=a[i-1]+t[i]}else for(var i=e-1,n=0;i<t.length;++i,++n)for(var o=0;o<e;++o)0==o?a[i]=t[o+n]:a[i]+=t[o+n];return a},this.BARSCOUNT=function(t){var e=[],a=null;for(var i in t){if(e[i]=0,null==a){if(!this.IsNumber(t[i]))continue;a=0}e[i]=a,++a}return e},this.DEVSQ=function(t,e){var a=[];"number"!=typeof e&&(e=parseInt(e));var i=e,r=t.length,n=0,o=0,s=0,l=0,h=0;for(n=0;n<r&&!this.isNumber(t[n]);++n)a[n]=null;if(i<1||n+i>r)return a;for(l=0;n<r&&o<i;++n,++o)l+=t[n]/i;if(o==i){for(h=0,n--;s<i;s++)h+=(t[n-s]-l)*(t[n-s]-l);a[n]=h,n++}for(;n<r;++n){for(l+=(t[n]-t[n-i])/i,h=0,s=0;s<i;++s)h+=(t[n-s]-l)*(t[n-s]-l);a[n]=h}return a},this.NOT=function(t){if("number"==typeof t)return t?0:1;var e=[];for(var a in t)e[a]=null,this.IsNumber(t[a])&&(e[a]=t[a]?0:1);return e},this.FORCAST=function(t,e){var a=[];"number"!=typeof e&&(e=parseInt(e));var i=e,r=t.length;if(i<1||i>=r)return a;var n,o,s,l,h,u=0,c=0,d=0,f=0;for(l=0;l<r&&!this.IsNumber(t[l]);++l)a[l]=null;for(s=l+i-1;s<r;++s){for(u=c=d=f=0,l=0,h=i;l<i&&l<=s;++l,--h)u+=h,c+=t[s-l];for(u/=i,c/=i,l=0,h=i;l<i&&l<=s;++l,--h)d+=(h-u)*(t[s-l]-c),f+=(h-u)*(h-u);o=d/f,n=c-u*o,a[s]=o*i+n}return a},this.SLOPE=function(t,e){var a=[];if("number"!=typeof e&&(e=parseInt(e)),e<1||!t.length)return a;if(e>=t.length)return a;for(var i=0,r=0;r<t.length&&(a[r]=null,!this.IsNumber(t[r]));++r,++i);for(var n=void 0,o=void 0,s=void 0,l=void 0,h=i+e-1;h<t.length;++h){a[h]=null,n=o=s=l=0;for(var u=0;u<e&&u<=h;++u)n+=h-u,o+=t[h-u];for(n/=e,o/=e,u=0;u<e&&u<=h;++u)s+=(h-u-n)*(t[h-u]-o),l+=(h-u-n)*(h-u-n);l?a[h]=s/l:h&&(a[h]=a[h-1])}return a},this.STDP=function(t,e){var a=[];"number"!=typeof e&&(e=parseInt(e));var i=e,r=t.length;if(i<1||i>=r)return a;var n=0,o=0;for(n=0;n<r&&!this.IsNumber(t[n]);++n)a[n]=null;for(var s,l=0,h=0;n<r&&o<i;++n,++o)l+=t[n]*t[n],h+=t[n];for(o==i&&(s=i*l-h*h,a[n-1]=Math.sqrt(s)/i);n<r;++n)l+=t[n]*t[n]-t[n-i]*t[n-i],h+=t[n]-t[n-i],s=i*l-h*h,a[n]=Math.sqrt(s)/i;return a},this.VAR=function(t,e){var a=[];"number"!=typeof e&&(e=parseInt(e));var i=e,r=t.length;if(i<=1||i>=r)return a;var n,o;for(n=0;n<r&&!this.IsNumber(t[n]);++n)a[n]=null;var s,l;for(o=0,n=n+i-1;n<r;++n){for(s=l=0,o=0;o<i&&o<=n;++o)s+=t[n-o]*t[n-o],l+=t[n-o];a[n]=(i*s-l*l)/i*(i-1)}return a},this.VARP=function(t,e){var a=[];"number"!=typeof e&&(e=parseInt(e));var i=e,r=t.length;if(i<1||i>=r)return a;var n=0,o=0;for(n=0;n<r&&!this.IsNumber(t[n]);++n)a[n]=null;for(var s=0,l=0;n<r&&o<i;++n,++o)s+=t[n]*t[n],l+=t[n];for(o==i&&(a[n-1]=(i*s-l*l)/(i*i));n<r;++n)s+=t[n]*t[n]-t[n-i]*t[n-i],l+=t[n]-t[n-i],a[n]=(i*s-l*l)/(i*i);return a},this.RANGE=function(t,e,a){var i="number"==typeof t,r="number"==typeof e,n="number"==typeof a;if(i&&r&&n)return t>Math.min(e,a)&&t<Math.max(e,a)?1:0;for(var o=[],s=void 0,l=void 0,h=0;h<t.length;++h)if(o[h]=null,s=t[h],this.IsNumber(s)){if(r)l=e;else{if(h>=e.length)continue;l=e[h]}if(this.IsNumber(l)){if(n)rangeValue2=a;else{if(h>=a.length)continue;rangeValue2=a[h]}this.IsNumber(rangeValue2)&&(o[h]=s>Math.min(l,rangeValue2)&&s<Math.max(l,rangeValue2)?1:0)}}return o},this.EXIST=function(t,e){if(e=parseInt(e),"number"==typeof t)return 0;for(var a,i=null,r=[],n=0;n<t.length;++n)r[n]=null,a=t[n],this.IsNumber(a)&&a>0&&(i=n),r[n]=null!=i&&n-i<e?1:0;return r},this.TFILTER=function(t,e,a){a=parseInt(a);for(var i=[],r=Math.max(t.length,e.length),n=0;n<r;++n);return i},this.FILTER=function(t,e){for(var a=[],i=0,r=0;i<t.length;++i)if(t[i]){for(a[i]=1,r=0;r<e&&r+i+1<t.length;++r)a[r+i+1]=0;i+=e}else a[i]=0;return a},this.BARSLAST=function(t){var e=[];if(!t)return e;for(var a=null,i=0;i<t.length;++i)e[i]=null,t[i]>0?a=0:null!=a&&++a,null!=a&&(e[i]=a);return e},this.BARSSINCEN=function(t,e){for(var a=[],i=null,r=0;r<t.length;++r)a[r]=null,null==i?t[r]&&(i=0):t[r]?i+1<e&&++i:i=null,i&&(a[r]=i);return a},this.BARSSINCE=function(t){for(var e=[],a=null,i=0;i<t.length;++i)e[i]=null,null==a?t[i]&&(a=0):++a,a&&(e[i]=a);return e},this.Trigonometric=function(t,e){if(Array.isArray(t)){var a=[];for(var i in t){var r=t[i];this.IsNumber(r)?a[i]=e(r):a[i]=null}return a}return this.IsNumber(t)?e(t):null},this.ASIN=function(t){if(Array.isArray(t)){var e=[];for(var a in t){var i=t[a];if(e[a]=null,this.IsNumber(i))if(i>=-1&&i<=1)e[a]=Math.asin(i);else if(a-1>=0){var r=e[a-1];this.IsNumber(r)&&(e[a]=r)}}return e}return this.IsNumber(t)?Math.acos(t):null},this.ACOS=function(t){if(Array.isArray(t)){var e=[];for(var a in t){var i=t[a];if(e[a]=null,this.IsNumber(i))if(i>=-1&&i<=1)e[a]=Math.acos(i);else if(a-1>=0){var r=e[a-1];this.IsNumber(r)&&(e[a]=r)}}return e}return this.IsNumber(t)?Math.acos(t):null},this.LAST=function(t,e,a){if(!Array.isArray(t))return[];for(var i=[],r=t.length,n=e,o=a,s=0,l=0,h=0,u=0;s<r&&!t[s];++s);for(l=s,u=s-o+1;l<r;++l,++u){for(h=0==n?s:Math.max(s,l-n);h<u&&!(t[h]<=0);++h);i[l]=h<u?0:1}return i},this.ZIG=function(t,e){var a=this.SymbolData.Data,i=[];if("number"==typeof t)switch(t){case 0:t=a.GetOpen();break;case 1:t=a.GetHigh();break;case 2:t=a.GetLow();break;case 3:t=a.GetClose();break;default:return i}return this.ZIG_Calculate(t,e)},this.GetFirstVaildIndex=function(t){for(var e=0;e<t.length;++e)if(this.IsNumber(t[e]))return e;return t.length},this.ZIG_Calculate=function(t,e){var a=[],i=t.length,r=this.GetFirstVaildIndex(t),n=0,o=0,s=0,l=0,h=0;for(n=r+1,o=s=r;n<i-1&&s==r;++n)s=100*Math.abs(t[n]-t[r])>=e*t[r]?t[n]>t[r]?n:-n:r;for(;n<i-1;++n)if(t[n]>=t[n-1]&&t[n]>=t[n+1])if(s<0){if(100*(t[n]-t[-s])<e*t[-s])continue;for(h=(t[o]-t[l=-s])/(-s-o),a[l--]=t[-s];l>=o;l--)a[l]=t[-s]+(-s-l)*h;o=-s,s=n}else t[n]>t[s]&&(s=n);else if(t[n]<=t[n-1]&&t[n]<=t[n+1])if(s>0){if(100*(t[s]-t[n])<e*t[s])continue;for(h=(t[s]-t[l=o])/(s-o),a[l++]=t[o];l<=s;++l)a[l]=t[o]+(l-o)*h;o=s,s=-n}else t[n]<t[-s]&&(s=-n);if(Math.abs(s)>=i-2&&(s>0&&t[i-1]>=t[s]&&(s=i-1),s<0&&t[i-1]<=t[-s]&&(s=1-i)),s>0)for(h=(t[s]-t[l=o])/(s-o),a[l++]=t[o];l<=s;++l)a[l]=t[o]+(l-o)*h;else for(h=(t[o]-t[l=-s])/(-s-o),a[l--]=t[-s];l>=o;l--)a[l]=t[-s]+(-s-l)*h;if((s=Math.abs(s))<i-1)if(t[i-1]>=t[s])for(h=(t[i-1]-t[l=s])/(i-s),a[l++]=t[s];l<i;++l)a[l]=t[s]+(l-s)*h;else for(h=(t[s]-t[l=i-1])/(i-s),a[l--]=t[i-1];l>=s;l--)a[l]=t[i-1]+(i-l)*h;return a},this.JSDraw=null,this.CalculateZIGLine=function(t,e,a,i,r){null==this.JSDraw&&(this.JSDraw=new za(this.ErrorHandler));var n=e.Up,o=t;if(n)for(var s=t.ID+1;s<a.ID;++s){var l=i[s];this.IsNumber(l)&&(o.Value<l&&(o={ID:s,Value:l}))}else for(var s=t.ID+1;s<a.ID;++s){var l=i[s];this.IsNumber(l)&&(o.Value>l&&(o={ID:s,Value:l}))}e.Value=o.Value,e.ID=o.ID;var h={Start:{ID:t.ID,Value:t.Value},End:{ID:e.ID,Value:e.Value}},u=this.JSDraw.CalculateDrawLine(h);for(var s in u){var c=u[s];r[c.ID]=c.Value}if(a.ID==i.length-1){h={Start:{ID:e.ID,Value:e.Value},End:{ID:a.ID,Value:a.Value}},u=this.JSDraw.CalculateDrawLine(h);for(var s in u){var c=u[s];r[c.ID]=c.Value}}else t.ID=e.ID,t.Value=e.Value,e.ID=a.ID,e.Value=a.Value,e.Up=t.Value<e.Value},this.TROUGHBARS=function(t,e,a){var i=this.ZIG(t,e),r=[],n=a;if(n<1)return r;for(var o=i.length,s=[],l=0;l<n;++l)s[l]=0;var h=0,l=this.GetFirstVaildIndex(i)+1;for(n--;l<o&&i[l]>i[l-1];++l);for(;l<o&&i[l]<i[l-1];++l);for(s[0]=--l;l<o-1;++l){if(i[l]<i[l+1]){if(h){if(n)for(var u=s.slice(0),c=0;c<n;++c)s[c+1]=u[c];s[h=0]=l}}else h=1;s[n]&&(r[l]=l-s[n])}return s[n]&&(r[l]=l-s[n]),r},this.TROUGH=function(t,e,a){var i=this.ZIG(t,e),r=[],n=a;if(n<1)return r;for(var o=i.length,s=[],l=0;l<n;++l)s[l]=0;var l=1,h=0,l=this.GetFirstVaildIndex(i)+1;for(n--;l<o&&i[l]>i[l-1];++l);for(;l<o&&i[l]<i[l-1];++l);for(s[0]=--l;l<o-1;++l){if(i[l]<i[l+1]){if(h){if(n)for(var u=s.slice(0),c=0;c<n;++c)s[c+1]=u[c];s[h=0]=l}}else h=1;s[n]&&(r[l]=i[s[n]])}return s[n]&&(r[l]=i[s[n]]),r},this.PEAKBARS=function(t,e,a){var i=this.ZIG(t,e),r=[],n=i.length,o=a;if(o<1)return r;for(var s=[],l=0;l<o;++l)s[l]=0;var h=0,l=this.GetFirstVaildIndex(i)+1;for(o--;l<n&&i[l]<i[l-1];++l);for(;l<n&&i[l]>i[l-1];++l);for(s[0]=--l;l<n-1;++l){if(i[l]>i[l+1]){if(h){if(o)for(var u=s.slice(0),c=0;c<o;++c)s[c+1]=u[c];s[h=0]=l}}else h=1;s[o]&&(r[l]=l-s[o])}return s[o]&&(r[l]=l-s[o]),r},this.PEAK=function(t,e,a){var i=this.ZIG(t,e),r=[],n=i.length,o=a;if(o<1)return r;for(var s=0,l=[],h=0;h<o;++h)l[h]=0;var h=this.GetFirstVaildIndex(i)+1;for(o--;h<n&&i[h]<i[h-1];++h);for(;h<n&&i[h]>i[h-1];++h);for(l[0]=--h;h<n-1;++h){if(i[h]>i[h+1]){if(s){if(o)for(var u=l.slice(0),c=0;c<o;++c)l[c+1]=u[c];l[s=0]=h}}else s=1;l[o]&&(r[h]=i[l[o]])}return l[o]&&(r[h]=i[l[o]]),r},this.EVERY=function(t,e){var a=[];if(e<1)return a;for(var i=0;i<t.length&&(a[i]=null,!this.IsNumber(t[i]));++i);for(var r=0;i<t.length;++i)t[i]?r+=1:r=0,r==e?(a[i]=1,--r):a[i]=0;return a},this.COST=function(t){var e=[],a=this.SymbolData.GetFinanceCacheData(201);if(!a)return e;var i=!Array.isArray(t),r=null;i&&(r=parseFloat(t));for(var n=null,o=this.SymbolData.Data.Data.length-1,s=0,l=0;o>=0;--o){e[o]=null;var h=this.CalculateChip(o,a,this.SymbolData.Data.Data,1);if(!(null==h.Max||null==h.Min||h.Max<=0||h.Min<=0)){var u=parseInt(100*h.Max);parseInt(100*h.Min);if(null!=r)n=r;else{if(o>=t.length)continue;n=t[o]}var c=0,d=0,f=new xi.default;for(s=o;s>=0;--s){var C=h.Data[s],p=parseInt(100*C.Low),D=parseInt(100*C.High);if(!(D-p+1<=0)){var m=C.Vol;if(!((m/=D-p+1)<=0)){for(l=p;l<=D&&l<=u;++l)f.has(l)?(d=f.get(l),f.set(l,d+m)):f.set(l,m);c+=C.Vol}}}d=0;var v=!0,g=!1,S=void 0;try{for(var I,x=(0,Si.default)(f);!(v=(I=x.next()).done);v=!0){var T=I.value;if(d+=T[1],e[o]=T[0]/100,d/c*100>n)break}}catch(t){g=!0,S=t}finally{try{!v&&x.return&&x.return()}finally{if(g)throw S}}}}return e},this.WINNER=function(t){var e=[],a=this.SymbolData.GetFinanceCacheData(201);if(!a)return e;var i=!Array.isArray(t),r=null;i&&(r=parseInt(100*parseFloat(t)));for(var n=null,o=this.SymbolData.Data.Data.length-1,s=0;o>=0;--o){e[o]=null;var l=this.CalculateChip(o,a,this.SymbolData.Data.Data,1);if(!(null==l.Max||null==l.Min||l.Max<=0||l.Min<=0)){parseInt(100*l.Max),parseInt(100*l.Min);if(null!=r)n=r;else{if(o>=t.length)continue;n=parseInt(100*t[o])}var h=0,u=0;for(s=o;s>=0;--s){var c=l.Data[s],d=parseInt(100*c.Low),f=parseInt(100*c.High);if(!(f-d+1<=0)){var C=c.Vol;if(!((C/=f-d+1)<=0)){var p=0;p=n>f?c.Vol:n<d?0:c.Vol*(n-d+1)/(f-d+1),u+=p,h+=c.Vol}}}h>0&&(e[o]=u/h)}}return e},this.CalculateChip=function(t,e,a,i){for(var r={Min:null,Max:null,Data:[]},n=1,o=null,s=null,l=t;l>=0;--l){var h={},u=a[l];h.Vol=l==t?u.Vol*e[l]:u.Vol*n,h.Date=u.Date,h.High=u.High,h.Low=u.Low,null==o?o=h.High:o<h.High&&(o=h.High),null==s?s=h.Low:s<h.Low&&(s=h.Low),r.Data[l]=h,n*=1-e[l]/100*i}return r.Max=o,r.Min=s,r},this.UPNDAY=function(t,e){var a=[];if(e<1)return a;if(null==t||e>t.length)return a;for(var i=0,r=0;r<t.length;++r)a[r]=0,r-1<0||(this.IsNumber(t[r])&&this.IsNumber(t[r-1])?(t[r]>t[r-1]?++i:i=0,i==e&&(a[r]=1,--i)):i=0);return a},this.DOWNNDAY=function(t,e){var a=[];if(e<1)return a;if(null==t||e>t.length)return a;for(var i=0,r=0;r<t.length;++r)a[r]=0,r-1<0||(this.IsNumber(t[r])&&this.IsNumber(t[r-1])?(t[r]<t[r-1]?++i:i=0,i==e&&(a[r]=1,--i)):i=0);return a},this.NDAY=function(t,e,a){var i=[];if(a<1)return i;if(!Array.isArray(t)&&!Array.isArray(e))return i;if(null==t||null==e)return i;if(Array.isArray(t)&&Array.isArray(e)){if(a>=t.length||a>=e.length)return i;for(var r=Math.max(t.length,e.length),n=0,o=0;o<r;++o)i[o]=0,o>=t.length||o>=e.length||(this.IsNumber(t[o])&&this.IsNumber(e[o])?(t[o]>e[o]?++n:n=0,n==a&&(i[o]=1,--n)):n=0)}else if(Array.isArray(t)&&!Array.isArray(e)){if(a>=t.length||!this.IsNumber(e))return;var n=0;for(var s in t)i[s]=0,this.IsNumber(t[s])?(t[s]>e?++n:n=0,n==a&&(i[s]=1,--n)):n=0}else if(!Array.isArray(t)&&Array.isArray(e)){if(a>=e.length||!this.IsNumber(t))return;var n=0;for(var l in e)i[l]=0,this.IsNumber(e[l])?(t>e[l]?++n:n=0,n==a&&(i[l]=1,--n)):n=0}return i},this.LONGCROSS=function(t,e,a){for(var i=[],r=Math.max(t.length,e.length),n=0;n<r;++n)i[n]=0,n-1<0||n>=t.length||n>=e.length||this.IsNumber(t[n])&&this.IsNumber(e[n])&&this.IsNumber(t[n-1])&&this.IsNumber(e[n-1])&&t[n]>e[n]&&t[n-1]<e[n-1]&&(i[n]=1);for(var o=0,s=0;o<r;++o)if(i[o])for(s=1;s<=a&&o-s>=0;++s)if(t[o-s]>=e[o-s]){i[o]=0;break}return i},this.EXISTR=function(t,e,a){var i=[];if(!Array.isArray(t))return i;if(e=parseInt(e),a=parseInt(a),e<=0&&(e=t.length),a<=0&&(a=1),a>e)return i;for(var r,i=[],n=0,o=0;n<t.length;++n)if(i[n]=null,!(n-e<0||n-a<0))for(i[n]=0,o=e;o>=a;--o){var r=t[n-o];if(this.IsNumber(r)&&r){i[n]=1;break}}return i},this.RELATE=function(t,e,a){var i=[];if(a<1&&(a=1),!Array.isArray(t)||!Array.isArray(e))return i;for(var r=this.CalculateAverage(t,a),n=this.CalculateAverage(e,a),o=Math.max(t.length,e.length),s=0,l=0;s<o;++s)if(i[s]=null,!(s>=t.length||s>=e.length||s>=r.length||s>=n.length)){var h=r[s],u=n[s],c=0,d=0,f=0;for(l=s-a+1;l<=s;++l)c+=(t[l]-h)*(e[l]-u),d+=Math.pow(t[l]-h,2),f+=Math.pow(e[l]-u,2);i[s]=c/a/(Math.sqrt(d/a)*Math.sqrt(f/a))}return i},this.CalculateAverage=function(t,e){var a=[];if(e<1)return a;for(var i=0,r=0;r<t.length&&!this.IsNumber(t[r]);++r);for(;r<t.length&&r<e;++r){a[r]=null;var n=t[r];this.IsNumber(n)&&(i+=n)}for(a[r-1]=i/e;r<t.length;++r){var n=t[r],o=t[r-e];this.IsNumber(n)||(n=0),this.IsNumber(o)||(o=0),i=i-o+n,a[r]=i/e}return a},this.COVAR=function(t,e,a){var i=[];if(a<1&&(a=1),!Array.isArray(t)||!Array.isArray(e))return i;for(var r=this.CalculateAverage(t,a),n=this.CalculateAverage(e,a),o=Math.max(t.length,e.length),o=Math.max(t.length,e.length),s=0,l=0;s<o;++s)if(i[s]=null,!(s>=t.length||s>=e.length||s>=r.length||s>=n.length)){var h=r[s],u=n[s],c=0;for(l=s-a+1;l<=s;++l)c+=(t[l]-h)*(e[l]-u);i[s]=c/a}return i},this.HHVBARS=function(t,e){var a=[];if(!Array.isArray(t))return a;e<1&&(e=t.length);for(var i=null,r=0;r<t.length;++r)if(a[r]=null,this.IsNumber(t[r])){i=r;break}var n=0;for(r=i+1;r<t.length&&n<e;++r,++n)t[r]>=t[i]&&(i=r),e==t.length&&(a[r]=r-i);for(;r<t.length;++r){if(r-i<e)t[r]>=t[i]&&(i=r);else for(i=r-e+1,n=i;n<=r;++n)t[n]>=t[i]&&(i=n);a[r]=r-i}return a},this.LLVBARS=function(t,e){var a=[];if(!Array.isArray(t))return a;e<1&&(e=t.length);for(var i=null,r=0;r<t.length;++r)if(a[r]=null,this.IsNumber(t[r])){i=r;break}var n=0;for(r=i+1;r<t.length&&n<e;++r,++n)t[r]<=t[i]&&(i=r),e==t.length&&(a[r]=r-i);for(;r<t.length;++r){if(r-i<e)t[r]<=t[i]&&(i=r);else for(i=r-e+1,n=i;n<=r;++n)t[n]<=t[i]&&(i=n);a[r]=r-i}return a},this.BETA=function(t){var e=[],a=this.SymbolData.Data,i=this.SymbolData.IndexData;t<=0&&(t=1);for(var r=[],n=[],o=0;o<a.Data.length;++o){r[o]=0,n[o]=0;var s=a.Data[o],l=i.Data[o];s.Close>0&&s.YClose>0&&(r[o]=(s.Close-s.YClose)/s.YClose),l.Close>0&&l.YClose>0&&(n[o]=(l.Close-l.YClose)/l.YClose)}for(var h=this.CalculateAverage(r,t),u=this.CalculateAverage(n,t),c=0,d=0;c<a.Data.length;++c)if(e[c]=null,!(c>=r.length||c>=n.length||c>=h.length||c>=u.length)){var f=h[c],C=u[c],p=0,D=0;for(d=c-t+1;d<=c;++d){var m=n[d]-C,v=r[d]-f;p+=m*v,D+=m*m}this.IsDivideNumber(D)&&this.IsNumber(p)&&(e[c]=p/D)}return e},this.BETA2=function(t,e,a){var i=[];a<=0&&(a=1);for(var r=[null],n=[null],o=Math.max(t.length,e.length),s={X:t[0],Y:e[0]},l=1;l<o;++l){r[l]=0,n[l]=0;var h=t[l],u=e[l];s.X>0&&(r[l]=(h-s.X)/s.X),s.Y>0&&(n[l]=(u-s.Y)/s.Y),s={X:h,Y:u}}for(var c=this.CalculateAverage(r,a),d=this.CalculateAverage(n,a),l=0,f=0;l<o;++l)if(i[l]=null,!(l>=r.length||l>=n.length||l>=c.length||l>=d.length)){var C=c[l],p=d[l],D=0,m=0;for(f=l-a+1;f<=l;++f){var v=r[f]-C,g=n[f]-p;D+=v*g,m+=v*v}this.IsDivideNumber(m)&&this.IsNumber(D)&&(i[l]=D/m)}return i},this.SAR=function(t,e,a){var i=[],r=this.SymbolData.Data;if(t>=r.Data.length)return i;for(var n=null,o=null,s=0;s<t;++s){var l=r.Data[s];null==n?n=l.High:n<l.High&&(n=l.High),null==o?o=l.Low:o>l.Low&&(o=l.Low)}var h=0;i[t-1]=o;for(var u=o,c=r.Data[0].High,d=e/100,s=t;s<r.Data.length;++s){var f=c,l=r.Data[s],C=r.Data[s-1];0==h?l.Low<i[s-1]?(h=1,c=l.Low,d=e/100,u=Math.max(l.High,C.High),u=Math.max(u,f+d*(c-f))):(h=0,l.High>f&&(c=l.High,d=Math.min(d+e/100,a/100)),u=Math.min(l.Low,C.Low),u=Math.min(u,i[s-1]+d*(c-i[s-1]))):1==h&&(l.High>i[s-1]?(h=0,c=l.High,d=e/100,u=Math.min(l.Low,C.Low),u=Math.min(u,i[s-1]+d*(c-f))):(h=1,l.Low<f&&(c=l.Low,d=Math.min(d+e/100,a/100)),u=Math.max(l.High,C.High),u=Math.max(u,i[s-1]+d*(c-i[s-1])))),i[s]=u}return i},this.SARTURN=function(t,e,a){var i=[],r=this.SAR(t,e,a),n=this.SymbolData.Data,o=0;for(o=0;o<r.length&&!this.IsNumber(r[o]);++o);var s=0;o<n.Data.length&&(s=n.Data[o].Close>r[o]);for(var l=o+1;l<n.Data.length;++l){var h=n.Data[l];h.Close<r[l]&&s?i[l]=-1:i[l]=h.Close>r[l]&&!s?1:0,s=h.Close>r[l]}return i},this.BACKSET=function(t,e){var a=[];if(!t)return a;var i=t.length;if(!this.IsNumber(i)||i<=0)return a;for(var r=0;r<i;++r)a[r]=0;for(var n=0;n<i&&!this.IsNumber(t[n]);++n);if(n==i)return a;for(var o=Math.min(i-n,Math.max(e,1)),r=i-1,s=0;r>=0;--r){var l=t[r];if(this.IsNumber(l)&&l)for(s=r;s>r-o;--s)a[s]=1}if(t[r])for(s=r;s>=n;--s)a[s]=1;return a},this.BETWEEN=function(t,e,a){var i=[],r="number"==typeof t,n="number"==typeof e,o="number"==typeof a;if(r&&n&&o)return t>=e&&t<=a?1:0;for(var s in t){i[s]=0;var l=t[s],h=null,u=null;n?h=e:s<e.length-1&&(h=e[s]),o?u=a:s<a.length-1&&(u=a[s]),null!=h&&null!=u&&(h>u?l>=u&&l<=h&&(i[s]=1):l<=u&&l>=h&&(i[s]=1))}return i},this.STRCAT=function(t,e){return t+e},this.CON2STR=function(t,e){var a=[];if(Array.isArray(t))for(var i=t.length-1;i>=0;--i){var r=t[i];if(this.IsNumber(r))return a=r.toFixed(e)}else this.IsNumber(t)&&(a=t.toFixed(e));return a},this.CoverPeriod=function(t,e,a){var i=this.GetPeriodInfo({Name:e});if(!i)return null;var r=this.GetPeriodInfo({PeriodID:this.SymbolData.Data.Period});if(!r)return null;if(r.Order>i.Order)return null;var n;if(r.Period==i.Period)n=this.SymbolData.Data;else{var o;if(Y.IsMinutePeriod(r.Period,!0)&&Y.IsDayPeriod(i.Period,!0))o=0==i.Period?this.SymbolData.DayData.Data:this.SymbolData.DayData.GetPeriodData(i.Period);else{var s=new Y;if(s.Data=this.SymbolData.SourceData.Data,s.Period=this.SymbolData.Period,s.Right=this.SymbolData.Right,Y.IsDayPeriod(i.Period,!0)&&s.Right>0){var l=s.GetRightData(s.Right);s.Data=l}o=s.GetPeriodData(i.Period)}var h=this.SymbolData.Data.CoverTo(o,r.Period,i.Period);n=new Y,n.Data=h}if(Ht.IsPlusNumber(a)){var u=new Y,h=n.GetRef(a);u.Data=h,n=u}switch(t){case"COVER_C":return n.GetClose();case"COVER_O":return n.GetOpen();case"COVER_H":return n.GetHigh();case"COVER_L":return n.GetLow();case"COVER_A":return n.GetAmount();case"COVER_V":return n.GetVol();default:return null}},this.MOD=function(t,e){var a=[],i="number"==typeof t,r="number"==typeof e;if(i&&r)return Ka.MOD(t,e);if(!i&&!r){for(var n=Math.max(t.length,e.length),o=0;o<n;++o)a[o]=null,o<t.length&&o<e.length&&this.IsNumber(t[o])&&this.IsNumber(e[o])&&(a[o]=Ka.MOD(t[o],e[o]));return a}if(i&&!r){for(var s in e)a[s]=null,this.IsNumber(t)&&this.IsNumber(e[s])&&(a[s]=Ka.MOD(t,e[s]));return a}if(!i&&r){for(var s in t)a[s]=null,this.IsNumber(t[s])&&this.IsNumber(e)&&(a[s]=Ka.MOD(t[s],e));return a}return a},this.POW=function(t,e){var a=[];if(!Ht.IsNumber(e))return a;if("number"==typeof t)return Math.pow(t,e);for(var i in t){var r=t[i];this.IsNumber(r)?a[i]=Math.pow(r,e):a[i]=null}return a},this.CEILING=function(t){if("number"==typeof t)return parseInt(t);var e=[];for(var a in t){var i=t[a];this.IsNumber(i)?e[a]=parseInt(i):e[a]=null}return e},this.FLOOR=function(t){if("number"==typeof t)return parseInt(t-1);var e=[];for(var a in t){var i=t[a];this.IsNumber(i)?e[a]=parseInt(i-1):e[a]=null}return e},this.ZTPRICE=function(t,e){if(!this.IsNumber(e))return null;if(Array.isArray(t)){var a=[];for(var i in t){var r=t[i];this.IsNumber(r)?a[i]=(1+e)*r:a[i]=null}return a}if(this.IsNumber(t)){var a=(1+e)*t;return a}},this.DTPRICE=function(t,e){if(!this.IsNumber(e))return null;if(Array.isArray(t)){var a=[];for(var i in t){var r=t[i];this.IsNumber(r)?a[i]=(1-e)*r:a[i]=null}return a}if(this.IsNumber(t)){var a=(1-e)*t;return a}},this.FRACPART=function(t){if(Array.isArray(t)){var e=[],a=0;for(var i in t){var r=t[i];this.IsNumber(r)?(a=parseInt(r),e[i]=r-a):e[i]=null}return e}if(this.IsNumber(t)){a=parseInt(t);var e=t-a;return e}},this.CallFunction=function(t,e,a,i){switch(t){case"MAX":return this.MAX(e[0],e[1]);case"MIN":return this.MIN(e[0],e[1]);case"REF":return this.REF(e[0],e[1]);case"ABS":return this.ABS(e[0]);case"MA":return this.MA(e[0],e[1]);case"EMA":return this.EMA(e[0],e[1]);case"SMA":return this.SMA(e[0],e[1],e[2]);case"DMA":return this.DMA(e[0],e[1]);case"XMA":return this.XMA(e[0],e[1]);case"EXPMA":return this.EXPMA(e[0],e[1]);case"EXPMEMA":return this.EXPMEMA(e[0],e[1]);case"COUNT":return this.COUNT(e[0],e[1]);case"LLV":return this.LLV(e[0],e[1]);case"LLVBARS":return this.LLVBARS(e[0],e[1]);case"HHV":return this.HHV(e[0],e[1]);case"HHVBARS":return this.HHVBARS(e[0],e[1]);case"MULAR":return this.MULAR(e[0],e[1]);case"CROSS":return this.CROSS(e[0],e[1]);case"LONGCROSS":return this.LONGCROSS(e[0],e[1],e[2]);case"AVEDEV":return this.AVEDEV(e[0],e[1]);case"STD":return this.STD(e[0],e[1]);case"IF":case"IFF":return this.IF(e[0],e[1],e[2]);case"IFN":return this.IFN(e[0],e[1],e[2]);case"NOT":return this.NOT(e[0]);case"SUM":return this.SUM(e[0],e[1]);case"RANGE":return this.RANGE(e[0],e[1],e[2]);case"EXIST":return this.EXIST(e[0],e[1]);case"EXISTR":return this.EXISTR(e[0],e[1],e[2]);case"FILTER":return this.FILTER(e[0],e[1]);case"TFILTER":return this.TFILTER(e[0],e[1],e[2]);case"SLOPE":return this.SLOPE(e[0],e[1]);case"BARSLAST":return this.BARSLAST(e[0]);case"BARSCOUNT":return this.BARSCOUNT(e[0]);case"BARSSINCEN":return this.BARSSINCEN(e[0],e[1]);case"BARSSINCE":return this.BARSSINCE(e[0]);case"LAST":return this.LAST(e[0],e[1],e[2]);case"EVERY":return this.EVERY(e[0],e[1]);case"DEVSQ":return this.DEVSQ(e[0],e[1]);case"ZIG":return this.ZIG(e[0],e[1]);case"TROUGHBARS":return this.TROUGHBARS(e[0],e[1],e[2]);case"TROUGH":return this.TROUGH(e[0],e[1],e[2]);case"PEAKBARS":return this.PEAKBARS(e[0],e[1],e[2]);case"PEAK":return this.PEAK(e[0],e[1],e[2]);case"COST":return this.COST(e[0]);case"WINNER":return this.WINNER(e[0]);case"FORCAST":return this.FORCAST(e[0],e[1]);case"STDP":return this.STDP(e[0],e[1]);case"VAR":return this.VAR(e[0],e[1]);case"VARP":return this.VARP(e[0],e[1]);case"UPNDAY":return this.UPNDAY(e[0],e[1]);case"DOWNNDAY":return this.DOWNNDAY(e[0],e[1]);case"NDAY":return this.NDAY(e[0],e[1],e[2]);case"RELATE":return this.RELATE(e[0],e[1],e[2]);case"COVAR":return this.COVAR(e[0],e[1],e[2]);case"BETA":return this.BETA(e[0]);case"BETA2":return this.BETA2(e[0],e[1],e[2]);case"WMA":return this.WMA(e[0],e[1]);case"MEMA":return this.MEMA(e[0],e[1]);case"SUMBARS":return this.SUMBARS(e[0],e[1]);case"REVERSE":return this.REVERSE(e[0]);case"SAR":return this.SAR(e[0],e[1],e[2]);case"SARTURN":return this.SARTURN(e[0],e[1],e[2]);case"BACKSET":return this.BACKSET(e[0],e[1]);case"BETWEEN":return this.BETWEEN(e[0],e[1],e[2]);case"STRCAT":return this.STRCAT(e[0],e[1]);case"CON2STR":return this.CON2STR(e[0],e[1]);case"DTPRICE":return this.DTPRICE(e[0],e[1]);case"ZTPRICE":return this.ZTPRICE(e[0],e[1]);case"COVER_C":case"COVER_O":case"COVER_H":case"COVER_L":case"COVER_A":case"COVER_V":return 2==e.length?this.CoverPeriod(t,e[0],e[1]):this.CoverPeriod(t,e[0]);case"MOD":return this.MOD(e[0],e[1]);case"POW":return this.POW(e[0],e[1]);case"CEILING":return this.CEILING(e[0]);case"FLOOR":return this.FLOOR(e[0]);case"FRACPART":return this.FRACPART(e[0]);case"ATAN":return this.Trigonometric(e[0],Math.atan);case"ACOS":return this.ACOS(e[0]);case"ASIN":return this.ASIN(e[0]);case"COS":return this.Trigonometric(e[0],Math.cos);case"SIN":return this.Trigonometric(e[0],Math.sin);case"TAN":return this.Trigonometric(e[0],Math.tan);case"LN":return this.Trigonometric(e[0],Math.log);case"LOG":return this.Trigonometric(e[0],li.default);case"EXP":return this.Trigonometric(e[0],Math.exp);case"SQRT":return this.Trigonometric(e[0],Math.sqrt);default:this.ThrowUnexpectedNode(a,"函数"+t+"不存在")}},this.CallCustomFunction=function(t,e,a,i){var r=ir.CustomFunction.Data.get(t);if(!r||!r.Invoke)return[];var n=this,o={Name:t,Args:e,Symbol:a.Symbol,Period:a.Period,Right:a.Right,KData:a.Data,ThrowError:function(t){n.ThrowUnexpectedNode(i,t)}};return r.Invoke(o)},this.ThrowUnexpectedNode=function(t,e){var a=t.Marker,i=e||"执行异常";return this.ErrorHandler.ThrowError(a.Index,a.Line,a.Column,i)}}function za(t,e){this.ErrorHandler=t,this.SymbolData=e,this.DRAWTEXT=function(t,e,a){var i=[],r={DrawData:i,DrawType:"DRAWTEXT",Text:a};if(t.length<=0)return r;var n="number"==typeof e;for(var o in t)i[o]=null,!isNaN(t[o])&&t[o]&&(n?i[o]=e:this.IsNumber(e[o])&&(i[o]=e[o]));return r},this.DRAWTEXT_FIX=function(t,e,a,i,r){var n={Position:null,DrawType:"DRAWTEXT_FIX",Text:r};if(t.length<=0)return n;for(var o in t)if(!isNaN(t[o])&&t[o])return n.Position={X:e,Y:a,Type:i},n;return n},this.SUPERDRAWTEXT=function(t,e,a,i,r){var n=[],o={DrawData:n,DrawType:"SUPERDRAWTEXT",Text:a,YOffset:r,Direction:i,TextAlign:"center"};if(t.length<=0)return o;var s="number"==typeof e;for(var l in t)n[l]=null,!isNaN(t[l])&&t[l]&&(s?n[l]=e:this.IsNumber(e[l])&&(n[l]=e[l]));return o},this.STICKLINE=function(t,e,a,i,r){var n=[],o={DrawData:n,DrawType:"STICKLINE",Width:i,Type:r};if(t.length<=0)return o;var s="number"==typeof e,l="number"==typeof a;for(var h in t)if(n[h]=null,!isNaN(t[h])&&t[h])if(s&&l)n[h]={Value:e,Value2:a};else if(s&&!l){if(isNaN(a[h]))continue;n[h]={Value:e,Value2:a[h]}}else if(!s&&l){if(isNaN(e[h]))continue;n[h]={Value:e[h],Value2:a}}else{if(isNaN(e[h])||isNaN(a[h]))continue;n[h]={Value:e[h],Value2:a[h]}}return o},this.DRAWLINE=function(t,e,a,i,r){var n=[],o={DrawData:n,DrawType:"DRAWLINE",Expand:r};if(t.length<=0)return o;for(var s=Math.max(t.length,a.length),l=!1,h=!1,u={Start:{},End:{},List:new Array},c=0;c<s;++c)if(n[c]=null,c<t.length&&c<a.length){if(0==l&&0==h){if(null==t[c]||!t[c])continue;l=!0,u.Start={ID:c,Value:e[c]}}else if(1==l&&0==h){var d=null!=a[c]&&a[c];if(!d)continue;d&&(h=!0,u.End={ID:c,Value:i[c]})}if(1==l&&1==h){var f=this.CalculateDrawLine(u);for(var C in f){var p=f[C];n[p.ID]=p.Value}l=h=!1,u={Start:{},End:{}}}}return o},this.DRAWBAND=function(t,e,a,i){for(var r=[],n={DrawData:r,DrawType:"DRAWBAND",Color:[e.toLowerCase(),i.toLowerCase()]},o=Math.max(t.length,a.length),s=0;s<o;++s){var l={Value:null,Value2:null};s<t.length&&(l.Value=t[s]),s<a.length&&(l.Value2=a[s]),r.push(l)}return n},this.DRAWKLINE=function(t,e,a,i){for(var r=[],n={DrawData:r,DrawType:"DRAWKLINE"},o=Math.max(t.length,e.length,a.length,i.length),s=0;s<o;++s){var l={Open:null,High:null,Low:null,Close:null};s<t.length&&s<e.length&&s<a.length&&s<i.length&&(l.Open=e[s],l.High=t[s],l.Low=a[s],l.Close=i[s]),r[s]=l}return n},this.DRAWKLINE_IF=function(t,e,a,i,r){for(var n=[],o={DrawData:n,DrawType:"DRAWKLINE_IF"},s=Math.max(t.length,e.length,a.length,i.length,r.length),l=0;l<s;++l){var h={Open:null,High:null,Low:null,Close:null};l<e.length&&l<a.length&&l<i.length&&l<r.length&&l<t.length&&t[l]&&(h.Open=a[l],h.High=e[l],h.Low=i[l],h.Close=r[l]),n[l]=h}return o},this.POLYLINE=function(t,e){var a=[],i={DrawData:a,DrawType:"POLYLINE"},r="number"==typeof e,n=!1;if(r)for(var o in t)if(a[o]=null,0==n){if(!t[o])continue;a[o]=e,n=!0}else a[o]=e;else{var s={Start:{},End:{},List:new Array};for(var l in t)if(a[l]=null,0==n){if(null==t[l]||!t[l])continue;if(l>=e.length||!this.IsNumber(e[l]))continue;n=!0,s.Start={ID:parseInt(l),Value:e[l]}}else if(1==n){if(null==t[l]||!t[l])continue;if(l>=e.length||!this.IsNumber(e[l]))continue;s.End={ID:parseInt(l),Value:e[l]};var h=this.CalculateDrawLine(s);for(var u in h){var c=h[u];a[c.ID]=c.Value}var d={ID:s.End.ID,Value:s.End.Value};s={Start:d,End:{}}}}return i},this.DRAWNUMBER=function(t,e,a){var i={Value:new Array,Text:new Array},r={DrawData:i,DrawType:"DRAWNUMBER"},n="number"==typeof a,o=void 0;n&&(o=a.toFixed(2));for(var s in t)if(i.Value[s]=null,t[s]&&!(s>=e.length)&&this.IsNumber(e[s]))if(n)i.Value[s]=e[s],i.Text[s]=o;else{if(s>=a.length||!a[s])continue;i.Value[s]=e[s],"number"==typeof a[s]?i.Text[s]=a[s].toFixed(2):i.Text[s]=a[s].toString()}return r},this.DRAWICON=function(t,e,a){var i=ir.GetDrawIcon(a);if(!i){i=new xi.default([[1,{Symbol:"↑",Color:"rgb(238,44,44)"}],[2,{Symbol:"↓",Color:"rgb(0,139,69)"}],[3,{Symbol:"😧"}],[4,{Symbol:"😨"}],[5,{Symbol:"😁"}],[6,{Symbol:"😱"}],[7,{Symbol:"B",Color:"rgb(238,44,44)"}],[8,{Symbol:"S",Color:"rgb(0,139,69)"}],[9,{Symbol:"💰"}],[10,{Symbol:"📪"}],[11,{Symbol:"👆"}],[12,{Symbol:"👇"}],[13,{Symbol:"B",Color:"rgb(178,34,34)"}],[14,{Symbol:"S",Color:"rgb(0,139,69)"}],[36,{Symbol:"Χ",Color:"rgb(238,44,44)"}],[37,{Symbol:"X",Color:"rgb(0,139,69)"}],[38,{Symbol:"▲",Color:"rgb(238,44,44)"}],[39,{Symbol:"▼",Color:"rgb(0,139,69)"}],[40,{Symbol:"◉",Color:"rgb(238,44,44)"}],[41,{Symbol:"◈",Color:"rgb(238,44,44)"}],[42,{Symbol:"📌"}],[43,{Symbol:"💎"}],[44,{Symbol:"🥇"}],[45,{Symbol:"🥈"}],[46,{Symbol:"🥉"}],[47,{Symbol:"🏅"}]]).get(a)}i||(i={Symbol:"🚩"});var r=[],n={DrawData:r,DrawType:"DRAWICON",Icon:i};if(t.length<=0)return n;var o="number"==typeof e;if("number"==typeof t){if(!t)return n;for(var s=0;s<this.SymbolData.Data.Data.length;++s)o?r[s]=e:s<e.length&&this.IsNumber(e[s])?r[s]=e[s]:r[s]=null;return n}for(var s in t)r[s]=null,t[s]&&(o?r[s]=e:this.IsNumber(e[s])&&(r[s]=e[s]));return n},this.DRAWCHANNEL=function(t,e,a,i,r,n,o){var s=[],l={DrawData:s,DrawType:"DRAWCHANNEL",Border:{}};if(t.length<=0)return l;if(i&&(l.Border.Color=i),o&&(l.AreaColor=o),r>0&&(l.Border.Width=r),n){var h=n.split(",");l.Border.Dotted=[];for(var u in h){if(h[u]){var c=parseInt(h[u]);c<=0||l.Border.Dotted.push(c)}}l.Border.Dotted.length<=0&&(l.Border.Dotted=null)}var d="number"==typeof e,f="number"==typeof a;if("number"==typeof t){if(!t)return l;for(var u=0;u<this.SymbolData.Data.Data.length;++u)if(s[u]=null,d&&f)s[u]={Value:e,Value2:a};else if(d&&!f){if(isNaN(a[u]))continue;s[u]={Value:e,Value2:a[u]}}else if(!d&&f){if(isNaN(e[u]))continue;s[u]={Value:e[u],Value2:a}}else{if(isNaN(e[u])||isNaN(a[u]))continue;s[u]={Value:e[u],Value2:a[u]}}}else for(var u=0;u<t.length;++u)if(s[u]=null,!isNaN(t[u])&&t[u])if(d&&f)s[u]={Value:e,Value2:a};else if(d&&!f){if(isNaN(a[u]))continue;s[u]={Value:e,Value2:a[u]}}else if(!d&&f){if(isNaN(e[u]))continue;s[u]={Value:e[u],Value2:a}}else{if(isNaN(e[u])||isNaN(a[u]))continue;s[u]={Value:e[u],Value2:a[u]}}return l},this.RGB=function(t,e,a){return"RGB("+t+","+e+","+a+")"},this.RGBA=function(t,e,a,i){return"RGB("+t+","+e+","+a+","+i+")"},this.PARTLINE=function(t){var e=[],a={DrawData:e,DrawType:"PARTLINE"};if(t.length<3)return a;for(var i=t[0],r=[],n=1;n<t.length&&n+1<t.length;n+=2)r.push({Cond:t[n],RGB:t[n+1]});for(var n in i){var o={Value:null,RGB:null};e[n]=o;var s=i[n];if(this.IsNumber(s)){var l=null;for(var h in r){var u=r[h];if(n<u.Cond.length&&u.Cond[n]){l=u.RGB;break}}l&&(o.Value=s,o.RGB=l)}}return a},this.DRAWGBK=function(t,e,a,i){var r={Color:[],Angle:i};e&&r.Color.push(e),a&&r.Color.push(a);var n={DrawData:null,DrawType:"DRAWGBK"};if(Array.isArray(t))for(var o in t){var s=t[o];if(s){n.DrawData=r;break}}else t&&(n.DrawData=r);return n},this.DRAWTEXT_LINE=function(t,e,a,i,r,n,o){var s={Text:{Title:a,Color:i},Line:{Type:n,Color:o}};r<=0&&(r=12),s.Text.Font=r*u()+"px 微软雅黑";var l={DrawData:null,DrawType:"DRAWTEXT_LINE"};if(Array.isArray(t))for(var h in t){var c=t[h];if(c){Array.isArray(e)?s.Price=e[h]:s.Price=e,l.DrawData=s;break}}else t&&(Array.isArray(e)?s.Price=e[0]:s.Price=e,l.DrawData=s);return l},this.DRAWRECTREL=function(t,e,a,i,r){var n={Rect:{Left:t,Top:e,Right:a,Bottom:i},Color:r};return 0==r&&(n.Color=null),{DrawData:n,DrawType:"DRAWRECTREL"}}}function Ja(t,e,a){this.AST=t,this.Execute=a,this.Symbol="600000.sh",this.Name,this.Data=null,this.DayData=null,this.SourceData=null,this.MarketValue=null,this.Period=0,this.Right=0,this.DataType=0,this.IsBeforeData=!1,this.DayCount,this.Arguments=[],this.KLineApiUrl=ir.Domain+"/API/KLine2",this.MinuteKLineApiUrl=ir.Domain+"/API/KLine3",this.RealtimeApiUrl=ir.Domain+"/API/stock",this.HistoryMinuteApiUrl=Xi.Domain+"/API/StockMinuteData",this.StockHistoryDayApiUrl=ir.Domain+"/API/StockHistoryDay",this.StockHistoryDay3ApiUrl=ir.Domain+"/API/StockHistoryDay3",this.StockNewsAnalysisApiUrl=ir.CacheDomain+"/cache/newsanalyze",this.HKToSHSZApiUrl=[ir.CacheDomain+"/cache/historyday/all/hk2shsz.json",ir.CacheDomain+"/cache/analyze/hk2shsz/hk2shsz.json",ir.Domain+"/API/HKToSHSZMinuteData"],this.MaxRequestDataCount=1e3,this.MaxRequestMinuteDayCount=5,this.KLineDateTimeRange,this.LatestData,this.IndexData,this.LatestIndexData,this.FinanceData=new xi.default,this.MarginData=new xi.default,this.HKToSHSZData=new xi.default,this.NewsAnalysisData=new xi.default,this.ExtendData=new xi.default,this.UserData=new xi.default,this.CustomAPIData=new xi.default,this.ScriptIndexOutData=new xi.default,this.SectionFinanceData=new xi.default,this.ThrowSFPeirod=new vi.default,this.NetworkFilter,e&&(e.HQDataType&&(this.DataType=e.HQDataType),e.Data&&(this.Data=e.Data,this.DataType!=dr.MINUTE_ID&&this.DataType!=dr.MULTIDAY_MINUTE_ID&&this.DataType!=dr.HISTORY_MINUTE_ID&&(this.Period=e.Data.Period,this.Right=e.Data.Right)),e.SourceData&&(this.SourceData=e.SourceData),e.Symbol&&(this.Symbol=e.Symbol),e.Name&&(this.Name=e.Name),e.MaxRequestDataCount>0&&(this.MaxRequestDataCount=e.MaxRequestDataCount),e.MaxRequestMinuteDayCount>0&&(this.MaxRequestMinuteDayCount=e.MaxRequestMinuteDayCount),e.KLineApiUrl&&(this.KLineApiUrl=e.KLineApiUrl),e.Right&&(this.Right=e.Right),e.Period&&(this.Period=e.Period),!0===e.IsBeforeData&&(this.IsBeforeData=e.IsBeforeData),e.NetworkFilter&&(this.NetworkFilter=e.NetworkFilter),e.DayCount>0&&(this.DayCount=e.DayCount),e.Arguments&&(this.Arguments=e.Arguments),e.KLineRange&&(this.KLineDateTimeRange=e.KLineRange)),this.RecvError=function(t){throw bi.Complier.Log("[JSSymbolData::RecvError] ajax error.",t.status),{FunctionName:"RecvError",Request:t}},this.GetLatestData=function(){if(this.LatestData)return this.Execute.RunNextJob();var t=this;if(this.NetworkFilter){var e={Name:"JSSymbolData::GetLatestData",Explain:"DYNAINFO()",Request:{Url:t.RealtimeApiUrl,Type:"POST",Data:{symbol:[this.Symbol],field:["name","symbol","yclose","open","price","high","low","vol","amount","date","time","increase","exchangerate","amplitude"]}},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.RecvLatestData(e),t.Execute.RunNextJob()}),1==e.PreventDefault)return}n.HttpRequest({url:t.RealtimeApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol","amount","date","time","increase","exchangerate","amplitude"],symbol:[this.Symbol]},type:"post",dataType:"json",async:!0,success:function(e){t.RecvLatestData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})},this.RecvLatestData=function(t){if(t.stock&&1==t.stock.length){var e=t.stock[0];this.LatestData={Symbol:e.symbol,Name:e.name,Date:e.date,Time:e.time,YClose:e.yclose,Price:e.price,Open:e.open,High:e.high,Low:e.low,Vol:e.vol,Amount:e.amount,Increase:e.increase,Exchangerate:e.exchangerate,Amplitude:e.amplitude},bi.Complier.Log("[JSSymbolData::RecvLatestData]",this.LatestData)}},this.GetLatestCacheData=function(t){if(!this.LatestData)return null;switch(t){case hr.YCLOSE:return this.LatestData.YClose;case hr.OPEN:return this.LatestData.Open;case hr.HIGH:return this.LatestData.High;case hr.LOW:return this.LatestData.Low;case hr.VOL:return this.LatestData.Vol;case hr.AMOUNT:return this.LatestData.Amount;case hr.INCREASE:return this.LatestData.Increase;case hr.EXCHANGERATE:return this.LatestData.Exchangerate;case hr.AMPLITUDE:return this.LatestData.Amplitude;case hr.CLOSE:return this.LatestData.Price;default:return null}},this.GetLatestIndexData=function(){if(this.LatestIndexData)return this.Execute.RunNextJob();var t=this;if(this.NetworkFilter){var e={Name:"JSSymbolData::GetLatestIndexData",Explain:"最新大盘数据",Request:{Url:t.RealtimeApiUrl,Type:"POST",Data:{symbol:["000001.sh"],field:["name","symbol","yclose","open","price","high","low","vol","amount","date","time","increase","amplitude"]}},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.RecvLatestIndexData(e),t.Execute.RunNextJob()}),1==e.PreventDefault)return}n.HttpRequest({url:t.RealtimeApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol","amount","date","time","increase","amplitude"],symbol:["000001.sh"]},type:"post",dataType:"json",async:!0,success:function(e){t.RecvLatestIndexData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})},this.RecvLatestIndexData=function(t){if(t.stock&&1==t.stock.length){var e=t.stock[0];this.LatestIndexData={Symbol:e.symbol,Name:e.name,Date:e.date,Time:e.time,YClose:e.yclose,Price:e.price,Open:e.open,High:e.high,Low:e.low,Vol:e.vol,Amount:e.amount,Increase:e.increase,Amplitude:e.amplitude},bi.Complier.Log("[JSSymbolData::RecvLatestIndexData]",this.LatestIndexData)}},this.GetLatestIndexCacheData=function(t){if(!this.LatestIndexData)return null;switch(t){case"FROMOPEN":var e=parseInt(this.LatestIndexData.Time/100),a=60*parseInt(e/100)+e%100;return a<=565?0:a<570?1:a<=690?a-570+1:a<780?121:a<=900?122+a-780:242;default:return null}},this.GetVolRateData=function(t,e){var a=t.ID.toString()+"-VolRate-"+this.Symbol;if(this.ExtendData.has(a))return this.Execute.RunNextJob();var i=this;n.HttpRequest({url:i.RealtimeApiUrl,data:{field:["name","symbol","avgvol5","date"],symbol:[this.Symbol]},type:"post",dataType:"json",async:!0,success:function(t){i.RecvVolRateData(t,a),i.Execute.RunNextJob()},error:function(t){i.RecvError(t)}})},this.RecvVolRateData=function(t,e){if(t.stock&&1==t.stock.length){var a=t.stock[0].avgvol5,i=t.stock[0].date,r={AvgVol5:a,Date:i};this.ExtendData.set(e,r),bi.Complier.Log("[JSSymbolData::RecvVolRateData]",r)}},this.GetVolRateCacheData=function(t){var e=cr.JOB_DOWNLOAD_VOLR_DATA.toString()+"-VolRate-"+this.Symbol;e&&this.ExtendData.has(e)||this.Execute.ThrowUnexpectedNode(t,"不支持VOLR");for(var a=[],i=this.ExtendData.get(e),r=i.AvgVol5/241,n=0,o=0,s=0;o<this.Data.Data.length;++o){a[o]=null;var l=this.Data.Data[o],h=l.DateTime;if(h){var u=h.split(" ");if(2==u.length){parseInt(u[0])==i.Date&&(n+=l.Vol,r>0&&(a[o]=n/(s+1)/r*100),++s)}}}return a},this.GetGroupData=function(t){var e=t.ID.toString()+"-Group-"+this.Symbol;if(this.ExtendData.has(e))return this.Execute.RunNextJob();var a=this;if(this.NetworkFilter){var i={Name:"JSSymbolData::GetGroupData",Explain:"HYBLOCK|DYBLOCK",Request:{Url:a.RealtimeApiUrl,Type:"POST",Data:{symbol:[this.Symbol],field:["name","symbol","industry","concept","region"]}},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(t){a.RecvGroupData(t,e),a.Execute.RunNextJob()}),1==i.PreventDefault)return}n.HttpRequest({url:a.RealtimeApiUrl,data:{field:["name","symbol","industry","concept","region"],symbol:[this.Symbol]},type:"post",dataType:"json",async:!0,success:function(t){a.RecvGroupData(t,e),a.Execute.RunNextJob()},error:function(t){a.RecvError(t)}})},this.RecvGroupData=function(t,e){if(t.stock&&1==t.stock.length){var a=t.stock[0],i=a.industry,r=a.concept,n=a.region,o={Industry:[],Concept:[],Region:[]};if(i)for(var s in i){var l=i[s];o.Industry.push({Name:l.name,Symbol:l.symbol})}if(r)for(var s in r){var l=r[s];o.Concept.push({Name:l.name,Symbol:l.symbol})}if(n)for(var s in n){var l=n[s];o.Region.push({Name:l.name,Symbol:l.symbol})}this.ExtendData.set(e,o)}},this.GetIndexData=function(){if(this.IndexData)return this.Execute.RunNextJob();var t=this;if(Y.IsDayPeriod(this.Period,!0)){if(this.NetworkFilter){var e={Name:"JSSymbolData::GetIndexData",Explain:"大盘数据",Period:t.Period,Request:{Url:t.KLineApiUrl,Type:"POST",Data:{field:["name","symbol","yclose","open","price","high","low","vol","up","down","stop","unchanged"],symbol:"000001.sh",start:-1,count:t.MaxRequestDataCount+500}},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.RecvIndexHistroyData(e),t.Execute.RunNextJob()}),1==e.PreventDefault)return}n.HttpRequest({url:t.KLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol","up","down","stop","unchanged"],symbol:"000001.sh",start:-1,count:t.MaxRequestDataCount+500},type:"post",dataType:"json",async:!0,success:function(e){t.RecvIndexHistroyData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})}else if(Y.IsMinutePeriod(this.Period,!0)){if(this.NetworkFilter){var e={Name:"JSSymbolData::GetIndexData",Explain:"大盘数据",Period:t.Period,Request:{Url:t.MinuteKLineApiUrl,Type:"POST",Data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:"000001.sh",start:-1,count:t.MaxRequestDataCount+5}},Self:this,PreventDefault:!1};if(this.NetworkFilter(e,function(e){t.RecvIndexMinuteHistroyData(e),t.Execute.RunNextJob()}),1==e.PreventDefault)return}n.HttpRequest({url:t.MinuteKLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:"000001.sh",start:-1,count:t.MaxRequestMinuteDayCount+5},type:"post",dataType:"json",async:!0,success:function(e){t.RecvIndexMinuteHistroyData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})}},this.RecvIndexHistroyData=function(t){bi.Complier.Log("[JSSymbolData::RecvIndexHistroyData] recv data",t);var e=this.JsonDataToHistoryData(t);this.IndexData=new Y,this.IndexData.DataType=0,this.IndexData.Data=e;var a=this.SourceData.GetOverlayData(this.IndexData.Data);if(this.IndexData.Data=a,Y.IsDayPeriod(this.Period,!1)){var i=this.IndexData.GetPeriodData(this.Period);this.IndexData.Data=i}},this.RecvIndexMinuteHistroyData=function(t){bi.Complier.Log("[JSSymbolData::RecvIndexMinuteHistroyData] recv data",t);var e=this.JsonDataToMinuteHistoryData(t);if(this.IndexData=new Y,this.IndexData.DataType=1,this.IndexData.Data=e,Y.IsMinutePeriod(this.Period,!1)){var a=this.IndexData.GetPeriodData(this.Period);this.IndexData.Data=a}},this.GetIndexCacheData=function(t){if(!this.IndexData)return new Array;switch(t){case"INDEXA":return this.IndexData.GetAmount();case"INDEXC":return this.IndexData.GetClose();case"INDEXH":return this.IndexData.GetHigh();case"INDEXL":return this.IndexData.GetLow();case"INDEXO":return this.IndexData.GetOpen();case"INDEXV":return this.IndexData.GetVol();case"INDEXADV":return this.IndexData.GetUp();case"INDEXDEC":return this.IndexData.GetDown()}},this.GetBlockSymbol=function(t){var e=new xi.default([["沪深A股","CNA.ci"],["创业板","GEM.ci"],["沪市A股","SHA.ci"],["中小板","SME.ci"],["深市A股","SZA.ci"]]);if(e.has(t))return e.get(t);if(!t)return null;var a=null,i=t.toUpperCase();if(i.indexOf(".SH")>0||i.indexOf(".SZ")>0){if(!new vi.default(["000001.SH","000003.SH","000016.SH","000300.SH","000905.SH","399001.SZ"," 399005.SZ","399006.SZ"]).has(i))return null;a=t.replace(".SH",".sh"),a=t.replace(".SZ",".sz")}else t.indexOf(".CI")>0&&(a=t.replace(".CI",".ci"));return a},this.GetIndexIncreaseData=function(t){var e=null;if(t.IsSelfSymbol)e=this.Symbol;else{if(!t.Args||t.Args.length<=0){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,t.FunctionName+" Error: 参数不能为空")}e=t.Args[0].Value}var i=this.GetBlockSymbol(e);if(!i){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,t.FunctionName+" Error: can't support "+e)}var r=t.ID.toString()+"-UpCount-"+i,o=t.ID.toString()+"-DownCount-"+i;if(this.ExtendData.has(r)&&this.ExtendData.has(o))return this.Execute.RunNextJob();var s=this;if(this.DataType===dr.MINUTE_ID||this.DataType===dr.MULTIDAY_MINUTE_ID){var l=ir.CacheDomain+"/cache/analyze/increaseanalyze/"+i+".json";bi.Complier.Log("[JSSymbolData::GetIndexIncreaseData] minute Get url=",l),n.HttpRequest({url:l,type:"get",dataType:"json",async:!0,success:function(t){s.RecvMinuteIncreaseData(t,{UpKey:r,DownKey:o}),s.Execute.RunNextJob()},error:function(t){s.RecvError(t)}})}else this.DataType===dr.KLINE_ID&&Y.IsDayPeriod(this.Period,!0)?(bi.Complier.Log("[JSSymbolData::GetIndexIncreaseData] K day Get url=",s.KLineApiUrl),n.HttpRequest({url:s.KLineApiUrl,data:{symbol:i,start:-1,count:s.MaxRequestDataCount,field:["up","down"]},type:"post",dataType:"json",async:!0,success:function(t){s.RecvHistoryIncreaseData(t,{UpKey:r,DownKey:o}),s.Execute.RunNextJob()},error:function(t){s.RecvError(t)}})):this.Execute.RunNextJob()},this.RecvHistoryIncreaseData=function(t,e){bi.Complier.Log("[JSSymbolData::RecvHistoryIncreaseData] recv data",t);var a=[],i=[];for(var r in t.data){var n=t.data[r],o=new H,s=new H;o.Date=n[0],o.Value=n[8],a[r]=o,s.Date=n[0],s.Value=n[9],i[r]=s}var l,h;l=this.SourceData?this.SourceData.GetFittingData(a):this.Data.GetFittingData(aryData),h=this.SourceData?this.SourceData.GetFittingData(i):this.Data.GetFittingData(aryData),this.ExtendData.set(e.UpKey,l),this.ExtendData.set(e.DownKey,h)},this.RecvMinuteIncreaseData=function(t,e){if(bi.Complier.Log("[JSSymbolData::RecvMinuteIncreaseData] recv data",t),t.minute){var a=t.minute;if(a.time&&a.up&&a.down){var i=[],r=[];if(this.IsBeforeData)for(var n=0,o=0;n<this.Data.Data.length;++n){i[n]=null,r[n]=null;var s=this.Data.Data[n];if(!s.Before){var l=s.DateTime;if(l){var h=l.split(" ");if(2==h.length){var u=parseInt(h[0]);u==t.date&&(i[n]=a.up[o],r[n]=a.down[o],++o)}}}}else for(var n=0,o=0;n<this.Data.Data.length;++n){i[n]=null,r[n]=null;var s=this.Data.Data[n],l=s.DateTime;if(l){var h=l.split(" ");if(2==h.length){var u=parseInt(h[0]);u==t.date&&(i[n]=a.up[o],r[n]=a.down[o],++o)}}}this.ExtendData.set(e.UpKey,i),this.ExtendData.set(e.DownKey,r)}}},this.GetIndexIncreaseCacheData=function(t,e,a){var i=this.GetBlockSymbol(e);i||this.Execute.ThrowUnexpectedNode(a,"不支持函数"+t+"("+e+")");var r;if("UPCOUNT"==t||"ADVANCE"==t?r=cr.JOB_DOWNLOAD_INDEX_INCREASE_DATA.toString()+"-UpCount-"+i:"DOWNCOUNT"!=t&&"DECLINE"!=t||(r=cr.JOB_DOWNLOAD_INDEX_INCREASE_DATA.toString()+"-DownCount-"+i),r&&this.ExtendData.has(r)||this.Execute.ThrowUnexpectedNode(a,"不支持函数"+t+"("+e+")"),this.DataType===dr.MINUTE_ID||this.DataType===dr.MULTIDAY_MINUTE_ID)return this.ExtendData.get(r);if(this.DataType===dr.KLINE_ID&&Y.IsDayPeriod(this.Period,!0)){var n=this.ExtendData.get(r),o=new Y;if(o.Data=n,o.Period=this.Period,o.Period>0){var s=o.GetPeriodSingleData(o.Period);o.Data=s}return o.GetValue()}return null},this.GetSymbolData=function(){if(this.Data)return this.Execute.RunNextJob();var t=this;if(this.DataType===dr.MINUTE_ID)return void n.HttpRequest({url:t.RealtimeApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol","amount","date","minute","time","minutecount"],symbol:[t.Symbol],start:-1},type:"post",dataType:"json",async:!0,success:function(e){t.RecvMinuteData(e),t.Execute.RunNextJob()}});if(this.DataType===dr.MULTIDAY_MINUTE_ID)return void n.HttpRequest({url:t.HistoryMinuteApiUrl,data:{symbol:t.Symbol,daycount:t.DayCount},type:"post",dataType:"json",async:!0,success:function(e){t.RecvMultiDayMinuteData(e),t.Execute.RunNextJob()}});if(Y.IsDayPeriod(this.Period,!0)){if(this.NetworkFilter){var e={Name:"JSSymbolData::GetSymbolData",Explain:"日线数据",Request:{Url:t.RealtimeApiUrl,Type:"POST",Data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxRequestDataCount}},Self:this,PreventDefault:!1};if(this.KLineDateTimeRange&&(e.Request.KLineDataTimeRange={Start:{Date:this.KLineDateTimeRange.Start.Date},End:{Date:this.KLineDateTimeRange.End.Date}},this.IsNumber(this.KLineDateTimeRange.Start.Time)&&(e.Request.KLineDataTimeRange.Start.Time=this.KLineDateTimeRange.Start.Time),this.IsNumber(this.KLineDateTimeRange.End.Time)&&(e.Request.KLineDataTimeRange.End.Time=this.KLineDateTimeRange.End.Time)),this.NetworkFilter(e,function(e){t.RecvHistroyData(e),t.Execute.RunNextJob()}),1==e.PreventDefault)return}n.HttpRequest({url:t.KLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxRequestDataCount},type:"post",dataType:"json",async:!0,success:function(e){t.RecvHistroyData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})}else if(Y.IsMinutePeriod(this.Period,!0)){if(this.NetworkFilter){var e={Name:"JSSymbolData::GetSymbolData",Explain:"分钟K线数据",Request:{Url:t.MinuteKLineApiUrl,Type:"POST",Data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxRequestMinuteDayCount}},Self:this,PreventDefault:!1};if(this.KLineDateTimeRange&&(e.Request.KLineDataTimeRange={Start:{Date:this.KLineDateTimeRange.Start.Date},End:{Date:this.KLineDateTimeRange.End.Date}},this.IsNumber(this.KLineDateTimeRange.Start.Time)&&(e.Request.KLineDataTimeRange.Start.Time=this.KLineDateTimeRange.Start.Time),this.IsNumber(this.KLineDateTimeRange.End.Time)&&(e.Request.KLineDataTimeRange.End.Time=this.KLineDateTimeRange.End.Time)),this.NetworkFilter(e,function(e){t.RecvMinuteHistroyData(e),t.Execute.RunNextJob()}),1==e.PreventDefault)return}n.HttpRequest({url:this.MinuteKLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxRequestMinuteDayCount},type:"post",dataType:"json",async:!0,success:function(e){t.RecvMinuteHistroyData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})}},this.RecvHistroyData=function(t){bi.Complier.Log("[JSSymbolData::RecvHistroyData] recv data",t);var e=this.JsonDataToHistoryData(t);if(this.Data=new Y,this.Data.DataType=0,this.Data.Data=e,this.SourceData=new Y,this.SourceData.Data=e,this.Right>0){var a=this.Data.GetRightDate(this.Right);this.Data.Data=a}if(Y.IsDayPeriod(this.Period,!1)){var i=this.Data.GetPeriodData(this.Period);this.Data.Data=i}this.Data.Right=this.Right,this.Data.Period=this.Period,this.Name=t.name},this.RecvMinuteHistroyData=function(t){bi.Complier.Log("[JSSymbolData::RecvMinuteHistroyData] recv data",t);var e=this.JsonDataToMinuteHistoryData(t);if(this.Data=new Y,this.Data.DataType=1,this.Data.Data=e,this.SourceData=new Y,this.SourceData.Data=e,Y.IsMinutePeriod(this.Period,!1)){var a=this.Data.GetPeriodData(this.Period);this.Data.Data=a}this.Data.Period=this.Period,this.Name=t.name},this.RecvMinuteData=function(t){bi.Complier.Log("[JSSymbolData::RecvMinuteData] recv data",t);var e=this.JsonDataToMinuteData(t);this.Data=new Y,this.Data.DataType=2,this.Data.Data=e,this.Name=t.stock[0].name},this.RecvMultiDayMinuteData=function(t){var e=this.JsonDataToMultiDayMinuteData(t);this.Data=new Y,this.Data.DataType=2,this.Data.Data=e,this.Name=t.name},this.GetSymbolCacheData=function(t){if(!this.Data)return new Array;switch(t){case"CLOSE":case"C":return this.Data.GetClose();case"VOL":case"V":return this.Data.GetVol();case"OPEN":case"O":return this.Data.GetOpen();case"HIGH":case"H":return this.Data.GetHigh();case"LOW":case"L":return this.Data.GetLow();case"AMOUNT":case"AMO":return this.Data.GetAmount();case"VOLINSTK":return this.Data.GetPosition()}},this.GetSymbolDayData=function(){if(this.DataType!=dr.KLINE_ID||!Y.IsMinutePeriod(this.Period,!0)||this.DayData)return this.Execute.RunNextJob();var t=this;n.HttpRequest({url:t.KLineApiUrl,data:{field:["name","symbol","yclose","open","price","high","low","vol"],symbol:t.Symbol,start:-1,count:t.MaxRequestDataCount},type:"post",dataType:"json",async:!0,success:function(e){t.RecvSymbolDayData(e),t.Execute.RunNextJob()},error:function(e){t.RecvError(e)}})},this.RecvSymbolDayData=function(t){bi.Complier.Log("[JSSymbolData::RecvSymbolDayData] recv data",t);var e=this.JsonDataToHistoryData(t),a=new Y;a.DataType=0,a.Data=e,a.Right=this.Right,a.Period=this.Period,this.DayData=a},this.GetCurrBarsCount=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;for(var e=this.Data.Data.length,a=e-1;a>=0;--a)t.push(a);return t},this.GetTotalBarsCount=function(){return this.Data.Data.length},this.GetIsLastBar=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;for(var e=this.Data.Data.length,a=0;a<e;++a)a==e-1?t.push(1):t.push(0);return t},this.GetFinanceCacheData=function(t,e){var a=cr.GetFinnanceJobID(t);return a||this.Execute.ThrowUnexpectedNode(e,"不支持FINANCE("+t+")"),this.FinanceData.has(a)?this.FinanceData.get(a):[]},this.GetCompanyReleaseDate=function(t){if(this.FinanceData.has(t))return this.Execute.RunNextJob();var e=this;n.HttpRequest({url:e.RealtimeApiUrl,data:{field:["name","symbol","company.releasedate"],symbol:[this.Symbol]},type:"post",dataType:"json",async:!0,success:function(a){e.RecvCompanyReleaseDate(t,a),e.Execute.RunNextJob()},error:function(t){e.RecvError(t)}})},this.RecvCompanyReleaseDate=function(t,e){if(e.stock&&1==e.stock.length){var a=e.stock[0].company.releasedate,i=new Date(a/1e4,a%1e4/100,a%100),r=[];for(var n in this.Data.Data){a=this.Data.Data[n].Date;var o=new Date(a/1e4,a%1e4/100,a%100),s=new H;s.Date=a,s.Value=parseInt((o-i)/864e5),r[n]=s}bi.Complier.Log("[JSSymbolData::RecvCompanyReleaseDate] jobID=",t,r);var l=new Y;if(l.Data=r,l.Period=this.Period,l.Period>0){var h=l.GetPeriodSingleData(l.Period);l.Data=h}var u=l.GetValue();this.FinanceData.set(t,u)}},this.GetFinanceData=function(t){if(this.FinanceData.has(t))return this.Execute.RunNextJob();bi.Complier.Log("[JSSymbolData::GetFinanceData] jobID=",t);var e=this,a=["name","date","symbol"];switch(t){case cr.JOB_DOWNLOAD_FLOW_EQUITY_DATA:case cr.JOB_DOWNLOAD_CAPITAL_DATA:case cr.JOB_DOWNLOAD_FLOW_MARKETVALUE_DATA:case cr.JOB_DOWNLOAD_EXCHANGE_DATA:a.push("capital.a");break;case cr.JOB_DOWNLOAD_TOTAL_EQUITY_DATA:case cr.JOB_DOWNLOAD_MARKETVALUE_DATA:a.push("capital.total");break;case cr.JOB_DOWNLOAD_PER_U_PROFIT_DATA:a.push("finance.peruprofit");break;case cr.JOB_DOWNLOAD_PER_NETASSET_DATA:a.push("finance.pernetasset");break;case cr.JOB_DOWNLOAD_PER_C_RESERVE_DATA:a.push("finance.percreserve");break;case cr.JOB_DOWNLOAD_PER_S_EARNING_DATA:case cr.JOB_DOWNLOAD_PER_S_EARNING2_DATA:a.push("finance.persearning");break;case cr.JOB_DOWNLOAD_N_PROFIT_DATA:a.push("finance.nprofit");break;case cr.JOB_DOWNLOAD_AL_RATIO_DATA:a.push("finance.alratio");break;case cr.JOB_DOWNLOAD_PROFIT_YOY_DATA:a.push("finance.profityoy");break;case cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA:a.push("execdividend.quarter4");break;case cr.JOB_DOWNLOAD_SHAREHOLDER_DATA:a.push("shareholder")}if(this.NetworkFilter){var i={Name:"JSSymbolData::GetFinanceData",Explain:"财务数据",JobID:t,Request:{Url:e.StockHistoryDayApiUrl,Type:"POST",Data:{field:a,symbol:[this.Symbol],orderfield:"date"}},Self:this,PreventDefault:!1};if(this.NetworkFilter(i,function(a){e.RecvFinanceData(a,t),e.Execute.RunNextJob()}),1==i.PreventDefault)return}n.HttpRequest({url:this.StockHistoryDayApiUrl,data:{field:a,symbol:[this.Symbol],orderfield:"date"},type:"post",dataType:"json",async:!0,success:function(a){e.RecvFinanceData(a,t),e.Execute.RunNextJob()}})},this.RecvFinanceData=function(t,e){switch(e){case cr.JOB_DOWNLOAD_FLOW_EQUITY_DATA:case cr.JOB_DOWNLOAD_CAPITAL_DATA:case cr.JOB_DOWNLOAD_TOTAL_EQUITY_DATA:case cr.JOB_DOWNLOAD_PER_U_PROFIT_DATA:case cr.JOB_DOWNLOAD_PER_NETASSET_DATA:case cr.JOB_DOWNLOAD_PER_C_RESERVE_DATA:case cr.JOB_DOWNLOAD_PER_S_EARNING_DATA:case cr.JOB_DOWNLOAD_PER_S_EARNING2_DATA:case cr.JOB_DOWNLOAD_N_PROFIT_DATA:case cr.JOB_DOWNLOAD_FLOW_MARKETVALUE_DATA:case cr.JOB_DOWNLOAD_MARKETVALUE_DATA:case cr.JOB_DOWNLOAD_EXCHANGE_DATA:case cr.JOB_DOWNLOAD_AL_RATIO_DATA:case cr.JOB_DOWNLOAD_PROFIT_YOY_DATA:case cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA:case cr.JOB_DOWNLOAD_SHAREHOLDER_DATA:return this.RecvStockDayData(t,e)}},this.RecvStockDayData=function(t,e){if(t.stock&&1==t.stock.length){var a=t.stock[0],i=!1,r=!1,n=new Array;for(var o in a.stockday){var s=a.stockday[o],l=new H;switch(l.Date=s.date,e){case cr.JOB_DOWNLOAD_CAPITAL_DATA:var h=s.capital;if(!h)continue;if(!this.IsNumber(h.a))continue;l.Value=h.a/100,i=!0;break;case cr.JOB_DOWNLOAD_TOTAL_EQUITY_DATA:var h=s.capital;if(!h)continue;if(!this.IsNumber(h.total))continue;l.Value=h.total/1e4,i=!0;break;case cr.JOB_DOWNLOAD_FLOW_EQUITY_DATA:var h=s.capital;if(!h)continue;if(!this.IsNumber(h.a))continue;l.Value=h.a/1e4,i=!0;break;case cr.JOB_DOWNLOAD_FLOW_MARKETVALUE_DATA:var h=s.capital;if(!h)continue;if(!this.IsNumber(h.a))continue;l.Value=h.a,r=!0;break;case cr.JOB_DOWNLOAD_MARKETVALUE_DATA:var h=s.capital;if(!h)continue;if(!this.IsNumber(h.total))continue;l.Value=h.total,r=!0;break;case cr.JOB_DOWNLOAD_EXCHANGE_DATA:var h=s.capital;if(!h)continue;if(!this.IsNumber(h.a))continue;l.Value=h.a,i=!0;break;case cr.JOB_DOWNLOAD_PER_U_PROFIT_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.peruprofit))continue;l.Value=h.Finance.peruprofit,i=!0;break;case cr.JOB_DOWNLOAD_PER_NETASSET_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.pernetasset))continue;l.Value=h.Finance.pernetasset,i=!0;break;case cr.JOB_DOWNLOAD_PER_C_RESERVE_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.percreserve))continue;l.Value=h.Finance.percreserve,i=!0;break;case cr.JOB_DOWNLOAD_PER_S_EARNING_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.persearning))continue;l.Value=h.Finance.persearning,i=!0;break;case cr.JOB_DOWNLOAD_PER_S_EARNING2_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.persearning))continue;l.Value=h.Finance.persearning/h.Announcement.quarter*4,i=!0;break;case cr.JOB_DOWNLOAD_N_PROFIT_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.nprofit))continue;l.Value=h.Finance.nprofit,i=!0;break;case cr.JOB_DOWNLOAD_AL_RATIO_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.alratio))continue;l.Value=h.Finance.alratio,i=!0;break;case cr.JOB_DOWNLOAD_PROFIT_YOY_DATA:var h=this.JsonDataToFinance(s);if(!h)continue;if(!this.IsNumber(h.Finance.profityoy))continue;l.Value=h.Finance.profityoy,i=!0;break;case cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA:var h=s.execdividend;if(!h)continue;if(!this.IsNumber(h.quarter4))continue;l.Value=h.quarter4,i=!0;break;case cr.JOB_DOWNLOAD_SHAREHOLDER_DATA:var u=s.shareholder;if(!u||!this.IsNumber(u.count))continue;l.Value=u.count,i=!0;break;default:continue}n.push(l)}if(e==cr.JOB_DOWNLOAD_CAPITAL_DATA){var c=null;return n.length>0&&(c=parseInt(n[n.length-1].Value)),void this.FinanceData.set(e,c)}var d=void 0;i?d=this.SourceData?this.SourceData.GetFittingFinanceData(n):this.Data.GetFittingFinanceData(n):r?(d=this.SourceData?this.SourceData.GetFittingMarketValueData(n):this.Data.GetFittingMarketValueData(n),e==cr.JOB_DOWNLOAD_MARKETVALUE_DATA&&(this.MarketValue=d)):d=e==cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA?this.CalculateDividendYield(n):this.SourceData.GetFittingData(n);var f=new Y;if(f.Data=d,f.Period=this.Period,f.Period>0){var C=f.GetPeriodSingleData(f.Period);f.Data=C}if(e==cr.JOB_DOWNLOAD_EXCHANGE_DATA)for(var p in this.Data.Data)f.Data[p]&&(this.IsNumber(f.Data[p].Value)&&0!=f.Data[p].Value?f.Data[p].Value=this.Data.Data[p].Vol/f.Data[p].Value*100:f.Data[p].Value=1);var D=f.GetValue();this.FinanceData.set(e,D)}},this.CalculateDividendYield=function(t){var e=[];if(!this.MarketValue)return e;for(var a=0,i=0;a<this.Data.Data.length;++a){var r=this.Data.Data[a],n=this.MarketValue[a];if(r&&n){var o=new H;if(o.Date=r.Date,o.Value=0,i+1<t.length&&t[i].Date<r.Date&&t[i+1].Date<=r.Date)++i,--a;else{if(i<t.length){var s=t[i],l=s.Date+1e4;r.Date>=s.Date&&r.Date<=l&&this.IsDivideNumber(n.Value)&&this.IsNumber(s.Value)&&(o.Value=s.Value/n.Value*100)}e.push(o)}}}return e},this.GetMarginCacheData=function(t,e){var a=cr.GetMarginJobID(t);return a||this.Execute.ThrowUnexpectedNode(e,"不支持MARGIN("+t+")"),this.MarginData.has(a)?this.MarginData.get(a):[]},this.GetMarginData=function(t){if(this.MarginData.has(t))return this.Execute.RunNextJob();bi.Complier.Log("[JSSymbolData::GetMarginData] jobID=",t);var e=this,a=["name","date","symbol"];switch(t){case cr.JOB_DOWNLOAD_MARGIN_BALANCE:a.push("margin.balance");break;case cr.JOB_DOWNLOAD_MARGIN_RATE:a.push("margin.rate");break;case cr.JOB_DOWNLOAD_MARGIN_BUY_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_BUY_AMOUNT:case cr.JOB_DOWNLOAD_MARGIN_BUY_REPAY:case cr.JOB_DOWNLOAD_MARGIN_BUY_NET:a.push("margin.buy");break;case cr.JOB_DOWNLOAD_MARGIN_SELL_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_SELL_VOLUME:case cr.JOB_DOWNLOAD_MARGIN_SELL_REPAY:case cr.JOB_DOWNLOAD_MARGIN_SELL_NET:a.push("margin.sell")}n.HttpRequest({url:this.StockHistoryDayApiUrl,data:{field:a,symbol:[this.Symbol],orderfield:"date"},type:"post",dataType:"json",async:!0,success:function(a){e.RecvMarginData(a,t),e.Execute.RunNextJob()}})},this.RecvMarginData=function(t,e){if(bi.Complier.Log(t),t.stock&&1==t.stock.length){var a=t.stock[0],i=new Array,r=[],n=[],o=[];for(var s in a.stockday){var l=a.stockday[s],h=l.margin;if(h){var u=new H;switch(u.Date=l.date,e){case cr.JOB_DOWNLOAD_MARGIN_BALANCE:if(!this.IsNumber(h.balance))continue;u.Value=h.balance,i.push(u);break;case cr.JOB_DOWNLOAD_MARGIN_RATE:if(!this.IsNumber(h.rate))continue;u.Value=h.rate,i.push(u);break;case cr.JOB_DOWNLOAD_MARGIN_BUY_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_BUY_AMOUNT:case cr.JOB_DOWNLOAD_MARGIN_BUY_REPAY:case cr.JOB_DOWNLOAD_MARGIN_BUY_NET:var c=h.buy;if(!c)continue;if(!(this.IsNumber(c.balance)&&this.IsNumber(c.amount)&&this.IsNumber(c.repay)&&this.IsNumber(c.net)))continue;u.Value=c.balance;var d=new H;d.Date=l.date,d.Value=c.amount;var f=new H;f.Date=l.date,f.Value=c.repay;var C=new H;C.Date=l.date,C.Value=c.net,i.push(u),r.push(d),n.push(f),o.push(C);break;case cr.JOB_DOWNLOAD_MARGIN_SELL_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_SELL_VOLUME:case cr.JOB_DOWNLOAD_MARGIN_SELL_REPAY:case cr.JOB_DOWNLOAD_MARGIN_SELL_NET:var p=h.sell;if(!p)continue;if(!(this.IsNumber(p.balance)&&this.IsNumber(p.volume)&&this.IsNumber(p.repay)&&this.IsNumber(p.net)))continue;u.Value=c.balance;var d=new H;d.Date=l.date,d.Value=c.volume;var f=new H;f.Date=l.date,f.Value=c.repay;var C=new H;C.Date=l.date,C.Value=c.net,i.push(u),r.push(d),n.push(f),o.push(C);break;default:continue}}}var D=[];e===cr.JOB_DOWNLOAD_MARGIN_BALANCE||e===cr.JOB_DOWNLOAD_MARGIN_RATE?D.push({JobID:e,Data:i}):e===cr.JOB_DOWNLOAD_MARGIN_BUY_BALANCE||e===cr.JOB_DOWNLOAD_MARGIN_BUY_AMOUNT||e===cr.JOB_DOWNLOAD_MARGIN_BUY_REPAY||e===cr.JOB_DOWNLOAD_MARGIN_BUY_NET?(D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_BUY_BALANCE,Data:i}),D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_BUY_AMOUNT,Data:r}),D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_BUY_REPAY,Data:n}),D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_BUY_NET,Data:o})):e!==cr.JOB_DOWNLOAD_MARGIN_SELL_BALANCE&&e!==cr.JOB_DOWNLOAD_MARGIN_SELL_VOLUME&&e!==cr.JOB_DOWNLOAD_MARGIN_SELL_REPAY&&e!==cr.JOB_DOWNLOAD_MARGIN_SELL_NET||(D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_SELL_BALANCE,Data:i}),D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_SELL_VOLUME,Data:r}),D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_SELL_REPAY,Data:n}),D.push({JobID:cr.JOB_DOWNLOAD_MARGIN_SELL_NET,Data:o}));for(var m in D){var v=this.SourceData.GetFittingData(D[m].Data),g=new Y;if(g.Data=v,g.Period=this.Period,g.Period>0){var S=g.GetPeriodSingleData(g.Period);g.Data=S}var I=g.GetValue();this.MarginData.set(D[m].JobID,I)}}},this.GetNewsAnalysisCacheData=function(t,e){var a=cr.GetNewsAnalysisID(t);return a||this.Execute.ThrowUnexpectedNode(e,"不支持NEWS("+t+")"),this.NewsAnalysisData.has(a)?this.NewsAnalysisData.get(a):[]},this.GetHKToSHSZData=function(t){if(this.HKToSHSZData.has(t))return this.Execute.RunNextJob();var e,a=0;this.DataType===dr.MINUTE_ID?a=1:this.DataType==dr.MULTIDAY_MINUTE_ID?a=2:this.Period<=3&&(a=0),e=this.HKToSHSZApiUrl[a];var i=this;bi.Complier.Log("[JSSymbolData::GetHKToSHSZData] jobID="+t+", url="+e+", dataType="+a),2===a?n.HttpRequest({url:e,data:{symbol:this.Symbol,daycount:this.MaxRequestMinuteDayCount},type:"post",dataType:"json",async:!0,success:function(e){i.RecvMulitMinuteHKToSHSZData(e,t),i.Execute.RunNextJob()}}):n.HttpRequest({url:e,type:"get",dataType:"json",async:!0,success:function(e){0==a?i.RecvHKToSHSZData(e,t):1==a&&i.RecvMinuteHKToSHSZData(e,t),i.Execute.RunNextJob()}})},this.RecvMinuteHKToSHSZData=function(t,e){var a=[],i=[],r=[];if(this.IsBeforeData){for(o in this.SourceData.Data){var n=this.SourceData.Data[o];if(!n.Before)break;a.push(null),i.push(null),r.push(null)}for(var o=0;o<t.time.length;++o){if(925!==t.time[o]){var s=t.hk2sh[o],l=t.hk2sz[o],h=s+l;a.push(h),i.push(s),r.push(l)}}}else for(var o=0;o<t.time.length;++o){var s=(t.time[o],t.hk2sh[o]),l=t.hk2sz[o],h=s+l;a.push(h),i.push(s),r.push(l)}var u=[{Data:a,JobID:cr.JOB_DOWNLOAD_HK_TO_SH_SZ},{Data:i,JobID:cr.JOB_DOWNLOAD_HK_TO_SH},{Data:r,JobID:cr.JOB_DOWNLOAD_HK_TO_SZ}];for(var o in u){var n=u[o];this.HKToSHSZData.set(n.JobID,n.Data)}},this.RecvHKToSHSZData=function(t,e){for(var a=[],i=[],r=[],n=0;n<t.date.length;++n){var o=t.date[n],s=1e6*t.hk2sh[n],l=1e6*t.hk2sz[n],h=s+l,u=new H;u.Date=o,u.Value=h;var c=new H;c.Date=o,c.Value=s;var d=new H;d.Date=o,d.Value=l,a.push(u),i.push(c),r.push(d)}var f=[{Data:a,JobID:cr.JOB_DOWNLOAD_HK_TO_SH_SZ},{Data:i,JobID:cr.JOB_DOWNLOAD_HK_TO_SH},{Data:r,JobID:cr.JOB_DOWNLOAD_HK_TO_SZ}];for(var C in f){var p=this.Data.GetFittingData(f[C].Data),D=new Y;if(D.Data=p,D.Period=this.Period,D.Period>0){var m=D.GetPeriodSingleData(D.Period);D.Data=m}var v=D.GetValue();this.HKToSHSZData.set(f[C].JobID,v)}},this.RecvMulitMinuteHKToSHSZData=function(t,e){if(t.data&&!(t.data.length<=0)){for(var a=[],i=[],r=[],n=0,o=0;n<this.Data.Data.length&&o<t.data.length;){a[n]=null,i[n]=null,r[n]=null;var s=this.Data.Data[n],l=s.DateTime;if(l){var h=l.split(" ");if(2==h.length){var u=parseInt(h[0]),c=t.data[o];if(!c.minute||c.minute.length<=0)++o;else if(c.date>u)++n;else if(c.date<u)++o;else{for(var d in c.minute){var f=c.minute[d],C=f[1],p=f[2],D=C+p;a[n]=D,i[n]=C,r[n]=p,++n}++o}}else++n}else++n}var m=[{Data:a,JobID:cr.JOB_DOWNLOAD_HK_TO_SH_SZ},{Data:i,JobID:cr.JOB_DOWNLOAD_HK_TO_SH},{Data:r,JobID:cr.JOB_DOWNLOAD_HK_TO_SZ}];for(var n in m){var s=m[n];this.HKToSHSZData.set(s.JobID,s.Data)}}},this.GetHKToSHSZCacheData=function(t,e){var a=cr.GetHK2SHSZJobID(t);return a||this.Execute.ThrowUnexpectedNode(e,"不支持HK2SHSZ("+t+")"),this.HKToSHSZData.has(a)?this.HKToSHSZData.get(a):[]},this.GetNewsAnalysisData=function(t){if(this.NewsAnalysisData.has(t))return this.Execute.RunNextJob();var e=this,a=new xi.default([[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_NEGATIVE,"negative"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_RESEARCH,"research"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_INTERACT,"interact"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE,"holderchange"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE2,"holderchange"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_TRUSTHOLDER,"trustholder"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_BLOCKTRADING,"Blocktrading"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_COMPANYNEWS,"companynews"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_TOPMANAGERS,"topmanagers"],[cr.JOB_DOWNLOAD_NEWS_ANALYSIS_PLEDGE,"Pledge"]]);if(!a.has(t))return void this.Execute.RunNextJob();var i=a.get(t),r=this.StockNewsAnalysisApiUrl+"/"+i+"/"+this.Symbol+".json";n.HttpRequest({url:r,type:"get",dataType:"json",async:!0,success:function(a){e.RecvNewsAnalysisData(a,t),e.Execute.RunNextJob()},error:function(a,i){e.RecvNewsAnalysisDataError(a,i,t),e.Execute.RunNextJob()}})},this.RecvNewsAnalysisDataError=function(t,e,a){bi.Complier.Log("[JSSymbolData::RecvNewsAnalysisDataError] ajax error.",t.status);for(var i=[],r=0;r<this.Data.Data.length;++r){var n=new H;n.Date=this.Data.Data[r].Date,n.Value=0,i.push(n)}var o=new Y;o.Data=i,this.NewsAnalysisData.set(a,o.GetValue())},this.RecvNewsAnalysisData=function(t,e){if(t.data&&t.date&&!(t.data.length<=0||t.data.length!=t.date.length))if(bi.Complier.Log("[JSSymbolData::RecvNewsAnalysisData] jobID",e,t.update),e==cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE||e==cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE2){for(var a=[],i=[],r=0;r<t.data.length;++r){var n=new H;n.Date=t.date[r],n.Value=t.data[r],this.IsNumber(n.Value)&&a.push(n),r<t.data2.length&&(n=new H,n.Date=t.date[r],n.Value=t.data2[r],this.IsNumber(n.Value)&&i.push(n))}var o=this.Data.GetFittingData2(a,0),s=new Y;s.Data=o,this.NewsAnalysisData.set(cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE,s.GetValue()),o=this.Data.GetFittingData2(i,0),s=new Y,s.Data=o,this.NewsAnalysisData.set(cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE2,s.GetValue())}else{for(var a=[],r=0;r<t.data.length;++r){var n=new H;n.Date=t.date[r],n.Value=t.data[r],a.push(n)}var l=this.Data.GetFittingData2(a,0),s=new Y;s.Data=l,this.NewsAnalysisData.set(e,s.GetValue())}},this.GetSectionFinanceData=function(t){var e=t.SF[0],a=t.SF[1].Period;if(this.SectionFinanceData.has(e))return this.Execute.RunNextJob();bi.Complier.Log("[JSSymbolData::GetSectionFinanceData] "+a.Year+"-"+a.Quarter);var i="announcement"+a.Quarter,r=this,o=["name","date","symbol",i,"finance"+a.Quarter],s=[i+".year","int32","eq",a.Year.toString()];n.HttpRequest({url:this.StockHistoryDayApiUrl,data:{field:o,symbol:[this.Symbol],condition:[{item:s}]},type:"post",dataType:"json",async:!0,success:function(e){r.RecvSectionFinanceData(e,t),r.Execute.RunNextJob()}})},this.RecvSectionFinanceData=function(t,e){if(t.stock&&1==t.stock.length){var a=t.stock[0];if(a.stockday&&!(a.stockday.length<=0)){var i=a.stockday[0],r=e.SF[1].Period,n=null;if(1===r.Quarter?n=i.finance1:2===r.Quarter?n=i.finance2:3===r.Quarter?n=i.finance3:4===r.Quarter&&(n=i.finance4),n){var t=new xi.default([[cr.JOB_DOWNLOAD_SECTION_F_01,n.currentassets],[cr.JOB_DOWNLOAD_SECTION_F_02,n.monetaryfunds],[cr.JOB_DOWNLOAD_SECTION_F_03,n.inventory],[cr.JOB_DOWNLOAD_SECTION_F_04,n.currentliabilities],[cr.JOB_DOWNLOAD_SECTION_F_05,n.ncurrentliabilities],[cr.JOB_DOWNLOAD_SECTION_F_06,n.expenses3],[cr.JOB_DOWNLOAD_SECTION_F_07,n.investmentincome],[cr.JOB_DOWNLOAD_SECTION_F_08,n.pcnprofit],[cr.JOB_DOWNLOAD_SECTION_F_09,n.nnetprofit],[cr.JOB_DOWNLOAD_SECTION_F_10,n.npersearning],[cr.JOB_DOWNLOAD_SECTION_F_11,n.woewa],[cr.JOB_DOWNLOAD_SECTION_F_12,n.inprocess],[cr.JOB_DOWNLOAD_SECTION_F_13,n.accdepreciation],[cr.JOB_DOWNLOAD_SECTION_F_14,n.mholderprofit],[cr.JOB_DOWNLOAD_SECTION_F_15,n.lossexchange],[cr.JOB_DOWNLOAD_SECTION_F_16,n.baddebts],[cr.JOB_DOWNLOAD_SECTION_F_17,n.fixedassets],[cr.JOB_DOWNLOAD_SECTION_F_18,n.curdepreciation],[cr.JOB_DOWNLOAD_SECTION_F_19,n.orevenues],[cr.JOB_DOWNLOAD_SECTION_F_20,n.moprofit],[cr.JOB_DOWNLOAD_SECTION_F_21,n.oprofit],[cr.JOB_DOWNLOAD_SECTION_F_22,n.nprofit],[cr.JOB_DOWNLOAD_SECTION_F_23,n.areceivable],[cr.JOB_DOWNLOAD_SECTION_F_24,n.financialcost],[cr.JOB_DOWNLOAD_SECTION_F_25,n.ccfo],[cr.JOB_DOWNLOAD_SECTION_F_26,n.totalassets],[cr.JOB_DOWNLOAD_SECTION_F_27,n.totalliabilities],[cr.JOB_DOWNLOAD_SECTION_F_28,n.totalownersequity],[cr.JOB_DOWNLOAD_SECTION_F_29,n.grossmargin],[cr.JOB_DOWNLOAD_SECTION_F_30,n.percreserve],[cr.JOB_DOWNLOAD_SECTION_F_31,n.peruprofit],[cr.JOB_DOWNLOAD_SECTION_F_32,n.persearning],[cr.JOB_DOWNLOAD_SECTION_F_33,n.pernetasset],[cr.JOB_DOWNLOAD_SECTION_F_34,n.perccfo],[cr.JOB_DOWNLOAD_SECTION_F_38,n.alratio],[cr.JOB_DOWNLOAD_SECTION_F_39,n.profityoy]]);4===r.Quarter&&(t.set(cr.JOB_DOWNLOAD_SECTION_F_35,n.nnprofitincrease),t.set(cr.JOB_DOWNLOAD_SECTION_F_36,n.nnprofitspeed),t.set(cr.JOB_DOWNLOAD_SECTION_F_37,n.nprofitincrease));var o=e.SF[0];this.SectionFinanceData.set(o,t)}}}},this.GetSectionFinanceCacheData=function(t,e,a,i){var r=cr.GetSectionReportPeriod(t,e);r||this.Execute.ThrowUnexpectedNode(i,"不支持FS("+t+", "+e+", '"+a+"') 报告期错误");var n=cr.GetSectionFinanceID(a);n||this.Execute.ThrowUnexpectedNode(i,"不支持FS("+t+", "+e+",'"+a+"') 财务数据字段名称错误");var o=r.Year+"-"+r.Quarter;if(!this.SectionFinanceData.has(o)&&!this.ThrowSFPeirod.has(o)){this.ThrowSFPeirod.add(o);var s={ID:cr.JOB_DOWNLOAD_SECTION_SF,SF:[o,{Period:r,Fields:new vi.default([n])}]};this.Execute.ThrowDownloadSF(i,s,"FS("+t+", "+e+", '"+a+"') 动态下载")}if(!this.SectionFinanceData.has(o))return this.Execute.ThrowUnexpectedNode(i,"不支持FS("+t+", "+e+", '"+a+"') 没有这期财务数据");var l=this.SectionFinanceData.get(o);return l.has(n)||this.Execute.ThrowUnexpectedNode(i,"不支持FS("+t+", "+e+", '"+a+"') 没有这期财务数据字段"),l.get(n)},this.DownloadCustomVariantData=function(t){var e=ir.CustomVariant.Data.get(t.Name);if(!e||!e.Download)return this.Execute.RunNextJob();var a=this,i={Name:t.Name,Symbol:this.Symbol,KData:this.Data,Period:this.Period,Right:this.Right,Success:function(){a.Execute.RunNextJob()}};e.Download(i)},this.DownloadCustomFunctionData=function(t){var e=ir.CustomFunction.Data.get(t.Name);if(!e||!e.Download)return this.Execute.RunNextJob();var a=[];for(var i in t.Args){var r=t.Args[i];if(r.Type==lr.Literal)a.push(r.Value);else{if(r.Type!=lr.Identifier)return this.Execute.RunNextJob();var n=!1;for(var o in this.Arguments){var s=this.Arguments[o];if(s.Name==r.Name){a.push(s.Value),n=!0;break}}if(!n){var l=t.Token;this.Execute.ErrorHandler.ThrowError(l.Index,l.Line,0,"DownloadCustomFunctionData() Error: can't read "+r.Name)}}}var h=this,u={Symbol:this.Symbol,KData:this.Data,Period:this.Period,Right:this.Right,Args:a,Name:t.Name,Token:t.Token,ThrowError:function(e){var a=t.Token;h.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,e)},Success:function(){h.Execute.RunNextJob()}};e.Download(u)},this.DownloadCustomAPIData=function(t){if(!this.NetworkFilter)return this.Execute.RunNextJob();var e=[];for(var a in t.Args){var i=t.Args[a];if(i.Type==lr.Literal)e.push(i.Value);else{if(i.Type!=lr.Identifier)return this.Execute.RunNextJob();var r=!1;for(var n in this.Arguments){var o=this.Arguments[n];if(o.Name==i.Name){e.push(o.Value),r=!0;break}}if(!r){var s=t.Token;this.Execute.ErrorHandler.ThrowError(s.Index,s.Line,0,"LoadAPIData() Error: can't read "+i.Name)}}}var l=this,h={Name:"JSSymbolData::DownloadCustomAPIData",Explain:"下载自定义api数据",Period:this.Period,Right:this.Right,Symbol:this.Symbol,KData:this.Data,Cache:this.CustomAPIData,Args:e,Self:this,PreventDefault:!1};this.NetworkFilter(h,function(t){l.RecvCustomAPIData(t,e),l.Execute.RunNextJob()}),1!=h.PreventDefault&&this.Execute.RunNextJob()},this.RecvCustomAPIData=function(t,e){if(t&&t.data){var a=t.data,i=this.GenerateCustomAPIKey(e);if(Y.IsMinutePeriod(this.Period,!0)){if(!a.date||!a.time)return;var r=a.date;a.time;for(var n in a)if("date"!=n&&"time"!=n)var o=a[n]}else if(Y.IsDayPeriod(this.Period,!0)){if(!a.date)return;var r=a.date,s={__Type__:"Object"};for(var n in a)if("date"!=n){var o=a[n];if(Array.isArray(o)){var l=this.FittingCustomAPIArray(o,r);s[n]=l}else this.IsNumber(o)&&(s[n]=o)}this.CustomAPIData.set(i,s)}}},this.FittingCustomAPIArray=function(t,e,a){var i=this.Data,r=[];for(var n in t){var o=t[n],s=new H;s.Date=e[n],a&&n<a.length&&(s.Time=a[n]),s.Value=o,r.push(s)}var l;if(Y.IsDayPeriod(this.Period,!0))l=i.GetFittingData(r);else{if(!Y.IsMinutePeriod(this.Period,!0))return null;l=i.GetMinuteFittingData(r)}var h=new Y;return h.Data=l,h.GetValue()},this.GenerateCustomAPIKey=function(t){if(t.length<=0)return"__12_EMPTY_ARGS__";var e="";for(var a in t)e.length>0&&(e+=","),e+=t[a];return e},this.GetCustomApiData=function(t){var e=this.GenerateCustomAPIKey(t);return this.CustomAPIData.has(e)?this.CustomAPIData.get(e):(bi.Complier.Log("[JSSymbolData::GetCustomApiData] can't find api data key=["+e+"]"),null)},this.ReadArgumentValue=function(t,e){if(e.Name=t.Name,t.Type==lr.Literal)return e.Value=t.Value,!0;if(t.Type==lr.Identifier){var a=!1;for(var i in this.Arguments){var r=this.Arguments[i];if(r.Name==t.Name)return e.Value=r.Value,a=!0,!0}if(!a)return e.Error="can't read "+t.Name,!1}return e.Error="can't read "+t.Name+", type error.",!1},this.ReadIndexFunctionValue=function(t,e){var a={};if("object"===(void 0===t?"undefined":(0,Ci.default)(t))){if(!this.ReadArgumentValue(t,a))return e.Error=a.Error,!1}else a.Value=t;var i=a.Value.indexOf(".");if(-1!=i){e.Name=a.Value.slice(0,i);var r=a.Value.indexOf("#",i+1);-1!=r?(e.Out=a.Value.slice(i+1,r),e.Period=a.Value.slice(r+1)):e.Out=a.Value.slice(i+1)}else{var r=a.Value.indexOf("#");-1!=r?(e.Name=a.Value.slice(0,r),e.Period=a.Value.slice(r+1)):e.Name=a.Value}var n=new xi.default([["DAY",0],["WEEK",1],["MONTH",2],["SEASON",9],["YEAR",3],["MIN1",4],["MIN5",5],["MIN15",6],["MIN30",7],["MIN60",8]]);if(e.Period){if(!n.has(e.Period))return e.Error=e.Period+", 周期错误",!1;e.PeriodID=n.get(e.Period)}return!0},this.ReadSymbolArgumentValue=function(t,e){var a={};if("object"===(void 0===t?"undefined":(0,Ci.default)(t))){if(!this.ReadArgumentValue(t,a))return e.Error=a.Error,!1}else a.Value=t;return""==a.Value&&(a.Value=this.Symbol),a.Value.indexOf(".SH")>0?e.Symbol=a.Value.replace(".SH",".sh"):a.Value.indexOf(".SZ")>0?e.Symbol=a.Value.replace(".SZ",".sz"):e.Symbol=a.Value,!0},this.ReadIndexArgumentValue=function(t,e){e.Args=[];for(var a in e.SytemIndex.Args){var i=e.SytemIndex.Args[a];e.Args.push({Value:i.Value,Name:i.Name})}if(t.length>2&&e.SytemIndex.Args&&e.SytemIndex.Args.length>0)for(var a=2,r=0;a<t.length&&r<e.SytemIndex.Args.length;++a,++r){var n={},i=t[a];if("object"===(void 0===i?"undefined":(0,Ci.default)(i))){if(!this.ReadArgumentValue(i,n))return e.Error=n.Error,!1}else n.Value=i;e.Args[r].Value=n.Value}return!0},this.GenerateScriptIndexKey=function(t){var e="",a=t.Args;for(var i in a){e.length>0&&(e+=",");e+=a[i].Value.toString()}var r=t.Out?t.Out:"ALL";return"("+t.Symbol+","+t.PeriodID+"), "+t.Name+"("+e+")=>"+r},this.CallScriptIndex=function(t){var e=this;if(!(t.Args&&t.Args.length>=2)){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,"CallScriptIndex() Error: "+t.FunctionName+" 参数错误")}var i={Job:t,PeriodID:this.Period};if(!this.ReadSymbolArgumentValue(t.Args[0],i)){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,"CallScriptIndex() Error: "+i.Error)}if(!this.ReadIndexFunctionValue(t.Args[1],i)){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,"CallScriptIndex() Error: "+i.Error)}var r=new s,n=r.Get(i.Name);if(!n){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,"CallScriptIndex() "+i.Name+" 指标不存在")}if(i.SytemIndex=n,!this.ReadIndexArgumentValue(t.Args,i)){var a=t.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,"CallScriptIndex() "+i.Name+" 指标参数错误 : "+i.Error+" ")}bi.Complier.Log("[JSSymbolData::CallScriptIndex] call script index",i);var o=null;if(this.Data&&this.Data.Data.length>0){var l=this.Data.Data[0],h=this.Data.Data[this.Data.Data.length-1];o={Start:{Date:l.Date,Time:l.Time},End:{Date:h.Date,Time:h.Time}}}var u={HQDataType:this.DataType,Symbol:i.Symbol,Name:"",Right:this.Right,Period:i.PeriodID,Data:null,SourceData:null,Callback:function(t,a,i){e.RecvScriptIndexData(t,a,i),e.Execute.RunNextJob()},CallbackParam:i,Async:!0,MaxRequestDataCount:this.MaxRequestDataCount+60,MaxRequestMinuteDayCount:this.MaxRequestMinuteDayCount+2,Arguments:i.Args,IsBeforeData:this.IsBeforeData,NetworkFilter:this.NetworkFilter,KLineRange:o};Za.Execute(i.SytemIndex.Script,u,function(t,a){e.ExecuteScriptIndexError(t,a)})},this.RecvScriptIndexData=function(t,e,a){var i=this.GenerateScriptIndexKey(e);bi.Complier.Log("[JSSymbolData::RecvScriptIndexData] ",t,e,a,i);var r=a.Data.Data,n=t;if(e.Out){for(var o in t){var s=t[o];if(s.Name==e.Out){n=[s];break}}var l=this.Data.FitKLineIndex(r,n,this.Period,e.PeriodID);this.ScriptIndexOutData.set(i,l[0].Data)}else{var l=this.Data.FitKLineIndex(r,n,this.Period,e.PeriodID),h={__Type__:"Object"};for(var o in l){var s=l[o];h[s.Name]=s.Data}this.ScriptIndexOutData.set(i,h)}},this.ExecuteScriptIndexError=function(t,e){var a=e.Job.Token;this.Execute.ErrorHandler.ThrowError(a.Index,a.Line,0,"CallScriptIndex() "+e.Name+" 指标执行错误 : "+t+" ")},this.GetScriptIndexOutData=function(t,e){var a={PeriodID:this.Period};this.ReadSymbolArgumentValue(t[0],a)||this.Execute.ThrowUnexpectedNode(e,"STKINDI() 股票代码错误: "+a.Error),this.ReadIndexFunctionValue(t[1],a)||this.Execute.ThrowUnexpectedNode(e,"STKINDI() 指标错误: "+a.Error);var i=new s,r=i.Get(a.Name);r||this.Execute.ThrowUnexpectedNode(e,"STKINDI() 指标错误: "+a.Name+" 指标不存在"),a.SytemIndex=r,this.ReadIndexArgumentValue(t,a)||this.Execute.ThrowUnexpectedNode(e,"STKINDI() 指标参数错误: "+a.Error);var n=this.GenerateScriptIndexKey(a);return this.ScriptIndexOutData.has(n)?this.ScriptIndexOutData.get(n):null},this.JsonDataToHistoryData=function(t){for(var e=t.data,a=new Array,i=0;i<e.length;++i){var r=new B;r.Date=e[i][0],r.Open=e[i][2],r.YClose=e[i][1],r.Close=e[i][5],r.High=e[i][3],r.Low=e[i][4],r.Vol=e[i][6],r.Amount=e[i][7],e[i].length>8&&(r.Up=e[i][8]),e[i].length>9&&(r.Down=e[i][9]),e[i].length>10&&(r.Stop=e[i][10]),e[i].length>11&&(r.Unchanged=e[i][11]),isNaN(r.Open)||r.Open<=0||a.push(r)}return a},this.JsonDataToMinuteHistoryData=function(t){for(var e=t.data,a=new Array,i=0;i<e.length;++i){var r=new B;r.Date=e[i][0],r.Open=e[i][2],r.YClose=e[i][1],r.Close=e[i][5],r.High=e[i][3],r.Low=e[i][4],r.Vol=e[i][6],r.Amount=e[i][7],r.Time=e[i][8],a.push(r)}for(var n=0;n<a.length;++n){var o=a[n];if(null==o&&coninue,isNaN(o.Open)||o.Open<=0||isNaN(o.High)||o.High<=0||isNaN(o.Low)||o.Low<=0||isNaN(o.Close)||o.Close<=0||isNaN(o.YClose)||o.YClose<=0)if(0==n)o.YClose>0&&(o.Open=o.YClose,o.High=o.YClose,o.Low=o.YClose,o.Close=o.YClose);else for(var s=n-1;s>=0;--s){var l=a[s];if(null==l&&coninue,l.Open>0&&l.High>0&&l.Low>0&&l.Close>0){o.YClose<=0&&(o.YClose=l.Close),o.Open=l.Open,o.High=l.High,o.Low=l.Low,o.Close=l.Close;break}}}return a},this.JsonDataToMinuteData=function(t){var e=new Array;for(var a in t.stock[0].minute){var i=t.stock[0].minute[a],r=new k;r.Close=i.price,r.Open=i.open,r.High=i.high,r.Low=i.low,r.Vol=i.vol,r.Amount=i.amount,r.DateTime=0==a?t.stock[0].date.toString()+" 0925":t.stock[0].date.toString()+" "+i.time.toString(),r.Date=t.stock[0].date,r.Time=i.time,r.Increase=i.increase,r.Risefall=i.risefall,r.AvPrice=i.avprice,e[a]=r}return e},this.JsonDataToMultiDayMinuteData=function(t){var e=t.symbol,a=e.toUpperCase(),i=Ji.IsSHSZ(a),r=(Ji.IsChinaFutures(a),[]);for(var n in t.data){var o=[],s=t.data[n],l=s.date,h=s.yclose,u=h,c=null;for(var d in s.minute){var f=s.minute[d];f[2]&&(u=f[2]);var C=new k;C.Close=f[2],C.Open=f[1],C.High=f[3],C.Low=f[4],C.Vol=f[5]/100,C.Amount=f[6],7<f.length&&f[7]>0&&(C.AvPrice=f[7],c=f[7]),C.DateTime=l.toString()+" "+f[0].toString(),C.Date=l,C.Time=f[0],C.Close||(C.Close=u,C.Open=C.High=C.Low=C.Close),!C.AvPrice&&c&&(C.AvPrice=c),C.Close&&h?C.Increase=(C.Close-h)/h*100:C.Increase=null,0==d&&(i&&(C.DateTime=l.toString()+" 0925"),C.IsFristData=!0),C.Open<=0&&(C.Open=null),C.Close<=0&&(C.Close=null),C.AvPrice<=0&&(C.AvPrice=null),C.High<=0&&(C.High=null),C.Low<=0&&(C.Low=null),C.AvPrice<=0&&(C.AvPrice=null),o[d]=C}var p=new Y;p.Data=o,p.YClose=h,p.Close=s.close,p.Date=l,r.push(p)}for(var o=[],n=r.length-1;n>=0;--n){var C=r[n];for(var d in C.Data)o.push(C.Data[d])}return o},this.CODELIKE=function(t){return this.Symbol&&0==this.Symbol.indexOf(t)?1:0},this.NAMELIKE=function(t){return this.Name&&0==this.Name.indexOf(t)?1:0},this.SETCODE=function(){return this.Symbol.indexOf(".sh")?1:(this.Symbol.indexOf(".sz"),0)},this.GetSymbol=function(){return this.Symbol},this.GetName=function(){return this.Name},this.GetIndustry=function(){var t=cr.JOB_DOWNLOAD_GROUP_DATA.toString()+"-Group-"+this.Symbol;if(!this.ExtendData.has(t))return"";var e=this.ExtendData.get(t);if(!e.Industry||e.Industry.length<=0)return"";var a="";for(var i in e.Industry){var r=e.Industry[i];a.length>0&&(a+=" "),a+=r.Name}return a},this.GetRegion=function(){var t=cr.JOB_DOWNLOAD_GROUP_DATA.toString()+"-Group-"+this.Symbol;if(!this.ExtendData.has(t))return"";var e=this.ExtendData.get(t);if(!e.Region||e.Region.length<=0)return"";var a="";for(var i in e.Region){var r=e.Region[i];a.length>0&&(a+=" "),a+=r.Name}return a},this.GetConcept=function(){var t=cr.JOB_DOWNLOAD_GROUP_DATA.toString()+"-Group-"+this.Symbol;if(!this.ExtendData.has(t))return"";var e=this.ExtendData.get(t);if(!e.Concept||e.Concept.length<=0)return"";var a="";for(var i in e.Concept){var r=e.Concept[i];a.length>0&&(a+=" "),a+=r.Name}return a},this.DATE=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;for(var e in this.Data.Data){var a=this.Data.Data[e];t[e]=a.Date-19e6}return t},this.YEAR=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;for(var e in this.Data.Data){var a=this.Data.Data[e];this.IsNumber(a.Date)?t[e]=parseInt(a.Date/1e4):t[e]=null}return t},this.MONTH=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;for(var e in this.Data.Data){var a=this.Data.Data[e];this.IsNumber(a.Date)?t[e]=parseInt(a.Date%1e4/100):t[e]=null}return t},this.WEEK=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;var e=new Date;for(var a in this.Data.Data){var i=this.Data.Data[a];if(t[a]=null,this.IsNumber(i.Date)){var r=parseInt(i.Date/1e4),n=parseInt(i.Date%1e4/100),o=i.Date%100;e.setFullYear(r),e.setMonth(n-1),e.setDate(o),t[a]=e.getDay()}}return t},this.REFDATE=function(t,e){var a=null;for(var i in this.Data.Data)if(this.Data.Data[i].Date==e){a=parseInt(i);break}return null==a||a>=t.length?null:t[a]},this.PERIOD=function(){var t=[5,6,7,11,0,1,2,3,4,5,9];return this.Period>=0&&this.Period<=t.length-1?t[this.Period]:this.Period},this.GetDrawNull=function(){var t=[];if(!this.Data||!this.Data.Data||!this.Data.Data.length)return t;for(var e in this.Data.Data)t[e]=null;return t}}function qa(t,e){this.AST=t,this.ErrorHandler=new Ga,this.VarTable=new xi.default,this.OutVarTable=[],this.Arguments=[],this.ErrorCallback,this.ConstVarTable=new xi.default([["CLOSE",null],["VOL",null],["OPEN",null],["HIGH",null],["LOW",null],["AMOUNT",null],["C",null],["V",null],["O",null],["H",null],["L",null],["AMO",null],["VOLR",null],["VOLINSTK",null],["DATE",null],["YEAR",null],["MONTH",null],["PERIOD",null],["WEEK",null],["INDEXA",null],["INDEXC",null],["INDEXH",null],["INDEXL",null],["INDEXO",null],["INDEXV",null],["INDEXADV",null],["INDEXDEC",null],["ADVANCE",null],["DECLINE",null],["FROMOPEN",null],["CURRBARSCOUNT",null],["TOTALBARSCOUNT",null],["ISLASTBAR",null],["CAPITAL",null],["EXCHANGE",null],["SETCODE",null],["CODE",null],["STKNAME",null],["HYBLOCK",null],["DYBLOCK",null],["GNBLOCK",null],["DRAWNULL",null]]),this.SymbolData=new Ja(this.AST,e,this),this.Algorithm=new Ka(this.ErrorHandler,this.SymbolData),this.Draw=new za(this.ErrorHandler,this.SymbolData),this.JobList=[],this.UpdateUICallback=null,this.CallbackParam=null,this.IsSectionMode=!1,e&&(e.Callback&&(this.UpdateUICallback=e.Callback),e.CallbackParam&&(this.CallbackParam=e.CallbackParam),e.Arguments&&(this.Arguments=e.Arguments),e.IsSectionMode&&(this.IsSectionMode=e.IsSectionMode)),this.Execute=function(){this.OutVarTable=[],this.VarTable=new xi.default,bi.Complier.Log("[JSExecute::Execute] Load Arguments",this.Arguments);for(var t in this.Arguments){var e=this.Arguments[t];this.VarTable.set(e.Name,e.Value)}this.RunNextJob()},this.RunNextJob=function(){if(!(this.JobList.length<=0)){bi.Complier.Log("[JSExecute::Execute] JobList",this.JobList);var t=this.JobList.shift();switch(t.ID){case cr.JOB_DOWNLOAD_SYMBOL_DATA:return this.SymbolData.GetSymbolData();case cr.JOB_DOWNLOAD_SYMBOL_DAY_DATA:return this.SymbolData.GetSymbolDayData();case cr.JOB_DOWNLOAD_INDEX_DATA:return this.SymbolData.GetIndexData();case cr.JOB_DOWNLOAD_LATEST_INDEX_DATA:return this.SymbolData.GetLatestIndexData();case cr.JOB_DOWNLOAD_INDEX_INCREASE_DATA:return this.SymbolData.GetIndexIncreaseData(t);case cr.JOB_DOWNLOAD_SYMBOL_LATEST_DATA:return this.SymbolData.GetLatestData();case cr.JOB_DOWNLOAD_VOLR_DATA:return this.SymbolData.GetVolRateData(t);case cr.JOB_DOWNLOAD_GROUP_DATA:return this.SymbolData.GetGroupData(t);case cr.JOB_DOWNLOAD_TOTAL_EQUITY_DATA:case cr.JOB_DOWNLOAD_CAPITAL_DATA:case cr.JOB_DOWNLOAD_FLOW_EQUITY_DATA:case cr.JOB_DOWNLOAD_PER_NETASSET_DATA:case cr.JOB_DOWNLOAD_PER_U_PROFIT_DATA:case cr.JOB_DOWNLOAD_PER_C_RESERVE_DATA:case cr.JOB_DOWNLOAD_PER_S_EARNING_DATA:case cr.JOB_DOWNLOAD_PER_S_EARNING2_DATA:case cr.JOB_DOWNLOAD_N_PROFIT_DATA:case cr.JOB_DOWNLOAD_FLOW_MARKETVALUE_DATA:case cr.JOB_DOWNLOAD_MARKETVALUE_DATA:case cr.JOB_DOWNLOAD_EXCHANGE_DATA:case cr.JOB_DOWNLOAD_AL_RATIO_DATA:case cr.JOB_DOWNLOAD_PROFIT_YOY_DATA:case cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA:case cr.JOB_DOWNLOAD_SHAREHOLDER_DATA:return this.SymbolData.GetFinanceData(t.ID);case cr.JOB_DOWNLOAD_RELEASE_DATE_DATA:return this.SymbolData.GetCompanyReleaseDate(t.ID);case cr.JOB_DOWNLOAD_MARGIN_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_RATE:case cr.JOB_DOWNLOAD_MARGIN_BUY_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_BUY_AMOUNT:case cr.JOB_DOWNLOAD_MARGIN_BUY_REPAY:case cr.JOB_DOWNLOAD_MARGIN_BUY_NET:case cr.JOB_DOWNLOAD_MARGIN_SELL_BALANCE:case cr.JOB_DOWNLOAD_MARGIN_SELL_VOLUME:case cr.JOB_DOWNLOAD_MARGIN_SELL_REPAY:case cr.JOB_DOWNLOAD_MARGIN_SELL_NET:return this.SymbolData.GetMarginData(t.ID);case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_NEGATIVE:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_RESEARCH:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_INTERACT:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE2:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_TRUSTHOLDER:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_BLOCKTRADING:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_COMPANYNEWS:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_TOPMANAGERS:case cr.JOB_DOWNLOAD_NEWS_ANALYSIS_PLEDGE:return this.SymbolData.GetNewsAnalysisData(t.ID);case cr.JOB_DOWNLOAD_HK_TO_SH_SZ:case cr.JOB_DOWNLOAD_HK_TO_SH:case cr.JOB_DOWNLOAD_HK_TO_SZ:return this.SymbolData.GetHKToSHSZData(t.ID);case cr.JOB_DOWNLOAD_SECTION_SF:return this.SymbolData.GetSectionFinanceData(t);case cr.JOB_CUSTOM_VARIANT_DATA:return this.SymbolData.DownloadCustomVariantData(t);case cr.JOB_CUSTOM_FUNCTION_DATA:return this.SymbolData.DownloadCustomFunctionData(t);case cr.JOB_DOWNLOAD_CUSTOM_API_DATA:return this.SymbolData.DownloadCustomAPIData(t);case cr.JOB_EXECUTE_INDEX:return this.SymbolData.CallScriptIndex(t);case cr.JOB_RUN_SCRIPT:return this.Run()}}},this.ReadSymbolData=function(t,e){switch(t){case"CLOSE":case"C":case"VOL":case"V":case"OPEN":case"O":case"HIGH":case"H":case"LOW":case"L":case"AMOUNT":case"AMO":case"VOLINSTK":return this.SymbolData.GetSymbolCacheData(t);case"VOLR":return this.SymbolData.GetVolRateCacheData(e);case"INDEXA":case"INDEXC":case"INDEXH":case"INDEXH":case"INDEXO":case"INDEXV":case"INDEXL":case"INDEXADV":case"INDEXDEC":return this.SymbolData.GetIndexCacheData(t);case"CURRBARSCOUNT":return this.SymbolData.GetCurrBarsCount();case"TOTALBARSCOUNT":return this.SymbolData.GetTotalBarsCount();case"ISLASTBAR":return this.SymbolData.GetIsLastBar();case"CAPITAL":return this.SymbolData.GetFinanceCacheData(cr.JOB_DOWNLOAD_CAPITAL_DATA);case"EXCHANGE":return this.SymbolData.GetFinanceCacheData(cr.JOB_DOWNLOAD_EXCHANGE_DATA);case"SETCODE":return this.SymbolData.SETCODE();case"CODE":return this.SymbolData.GetSymbol();case"STKNAME":return this.SymbolData.GetName();case"HYBLOCK":return this.SymbolData.GetIndustry();case"DYBLOCK":return this.SymbolData.GetRegion();case"GNBLOCK":return this.SymbolData.GetConcept();case"DATE":return this.SymbolData.DATE();case"YEAR":return this.SymbolData.YEAR();case"MONTH":return this.SymbolData.MONTH();case"WEEK":return this.SymbolData.WEEK();case"PERIOD":return this.SymbolData.PERIOD();case"FROMOPEN":return this.SymbolData.GetLatestIndexCacheData("FROMOPEN");case"DRAWNULL":return this.SymbolData.GetDrawNull();case"ADVANCE":case"DECLINE":return this.SymbolData.GetIndexIncreaseCacheData(t,this.SymbolData.Symbol,e)}},this.ReadCustomVariant=function(t,e){var a=ir.CustomVariant.Data.get(t);if(!a||!a.Read)return[];var i={Name:t,Symbol:this.SymbolData.Symbol,KData:this.SymbolData.Data,Period:this.SymbolData.Period,Right:this.SymbolData.Right};return a.Read(i)},this.ReadVariable=function(t,e){if(this.ConstVarTable.has(t)){var a=this.ConstVarTable.get(t);return null==a&&(a=this.ReadSymbolData(t,e),this.ConstVarTable.set(t,a)),a}return ir.IsCustomVariant(t)?this.ReadCustomVariant(t,e):this.VarTable.has(t)?this.VarTable.get(t):(this.ThrowUnexpectedNode(e,"变量"+t+"不存在"),null)},this.ReadMemberVariable=function(t){var e=t.Object,a=t.Property,i=void 0;if(!(i=e.Type==lr.BinaryExpression||e.Type==lr.LogicalExpression?this.VisitBinaryExpression(e):e.Type==lr.CallExpression?this.VisitCallExpression(e):this.GetNodeValue(e)))return null;var r=i[a.Name];return r||null},this.SingleDataToArrayData=function(t){for(var e=this.SymbolData.Data.Data.length,a=[],i=0;i<e;++i)a[i]=t;return a},this.RunAST=function(){this.AST||this.ThrowError(),this.AST.Body||this.ThrowError();for(var t in this.AST.Body){var e=this.AST.Body[t];if(this.VisitNode(e),e.Type==lr.ExpressionStatement&&e.Expression)if(e.Expression.Type==lr.AssignmentExpression&&":"==e.Expression.Operator&&e.Expression.Left){var a=e.Expression,i=a.Left.Name,r=this.VarTable.get(i),n=0;r&&"object"==(void 0===r?"undefined":(0,Ci.default)(r))&&"Object"==r.__Type__?n=1e3:this.IsSectionMode||Array.isArray(r)||(r="string"==typeof r?this.SingleDataToArrayData(parseFloat(r)):this.SingleDataToArrayData(r)),this.OutVarTable.push({Name:i,Data:r,Type:n})}else if(e.Expression.Type==lr.CallExpression){var o=e.Expression;if(this.Draw.IsDrawFunction(o.Callee.Name)){var s=o.Draw;s.Name=o.Callee.Name,this.OutVarTable.push({Name:s.Name,Draw:s,Type:1})}}else if(e.Expression.Type==lr.SequenceExpression){var l=void 0,h=void 0,u=void 0,c=void 0,d=!1,f=!1,C=!1,p=!1,D=!1,m=!1,v=!0,g=!1,S=!1,I=!1;for(var x in e.Expression.Expression){var T=e.Expression.Expression[x];if(T.Type==lr.AssignmentExpression&&":"==T.Operator&&T.Left){l=T.Left.Name;var A=this.VarTable.get(l);Array.isArray(A)||(A=this.SingleDataToArrayData(A),this.VarTable.set(l,A))}else if(T.Type==lr.Identifier){var b=T.Name;"COLORSTICK"===b?d=!0:"POINTDOT"===b?f=!0:"CIRCLEDOT"===b?C=!0:"DOTLINE"==b?S=!0:"LINESTICK"===b?p=!0:"STICK"===b?D=!0:"VOLSTICK"===b?m=!0:0==b.indexOf("COLOR")?u=b:0==b.indexOf("LINETHICK")?c=b:0==b.indexOf("NODRAW")?v=!1:0==b.indexOf("EXDATA")?g=!0:0==b.indexOf("LINEOVERLAY")&&(I=!0)}else if(T.Type==lr.Literal){var E=this.SingleDataToArrayData(T.Value);l=T.Value.toString(),this.VarTable.set(l,E)}else T.Type==lr.CallExpression&&this.Draw.IsDrawFunction(T.Callee.Name)&&(h=T.Draw,h.Name=T.Callee.Name)}if(f&&l){var F=this.VarTable.get(l);Array.isArray(F)||(F=this.SingleDataToArrayData(F));var y={Name:l,Data:F,Radius:2,Type:3};u&&(y.Color=u),c&&(y.LineWidth=c),this.OutVarTable.push(y)}else if(C&&l){var L=this.VarTable.get(l);Array.isArray(L)||(L=this.SingleDataToArrayData(L));var M={Name:l,Data:L,Radius:1.3,Type:3};u&&(M.Color=u),c&&(M.LineWidth=c),this.OutVarTable.push(M)}else if(p&&l){var w=this.VarTable.get(l),N={Name:l,Data:w,Type:4};u&&(N.Color=u),c&&(N.LineWidth=c),this.OutVarTable.push(N)}else if(D&&l){var O=this.VarTable.get(l),_={Name:l,Data:O,Type:5};u&&(_.Color=u),c&&(_.LineWidth=c),this.OutVarTable.push(_)}else if(m&&l){var R=this.VarTable.get(l),P={Name:l,Data:R,Type:6};u&&(P.Color=u),this.OutVarTable.push(P)}else if(l&&u){var B=this.VarTable.get(l);Array.isArray(B)||(B=this.SingleDataToArrayData(B));var k={Name:l,Data:B,Color:u,Type:0};c&&(k.LineWidth=c),0==v&&(k.IsShow=!1),1==g&&(k.IsExData=!0),1==S&&(k.IsDotLine=!0),1==I&&(k.IsOverlayLine=!0),this.OutVarTable.push(k)}else if(h){var H={Name:h.Name,Draw:h,Type:1};u&&(H.Color=u),c&&(H.LineWidth=c),this.OutVarTable.push(H)}else if(d&&l){var V=this.VarTable.get(l),G={Name:l,Data:V,Color:u,Type:2};this.OutVarTable.push(G)}else if(l){var Y=this.VarTable.get(l),U={Name:l,Data:Y,Type:0};u&&(U.Color=u),c&&(U.LineWidth=c),0==v&&(U.IsShow=!1),1==g&&(U.IsExData=!0),1==S&&(U.IsDotLine=!0),1==I&&(U.IsOverlayLine=!0),this.OutVarTable.push(U)}}}return bi.Complier.Log("[JSExecute::Run]",this.VarTable),this.OutVarTable},this.Run=function(){try{var t=this.RunAST();bi.Complier.Log("[JSComplier.Run] execute finish",t),this.UpdateUICallback&&(bi.Complier.Log("[JSComplier.Run] invoke UpdateUICallback."),this.CallbackParam&&this.CallbackParam.Job&&this.CallbackParam.Job.ID==cr.JOB_EXECUTE_INDEX?this.UpdateUICallback(t,this.CallbackParam,this.SymbolData):(this.CallbackParam&&this.CallbackParam.Self&&"ScriptIndexConsole"===this.CallbackParam.Self.ClassName&&(this.CallbackParam.JSExecute=this),this.UpdateUICallback(t,this.CallbackParam)))}catch(t){bi.Complier.Log(t),t.Job?(bi.Complier.Log("[JSComplier.Run] download job and reexectue",t.Job),this.JobList.push(t.Job),this.JobList.push({ID:cr.JOB_RUN_SCRIPT}),this.Execute()):this.ErrorCallback&&this.ErrorCallback(t,this.CallbackParam)}},this.VisitNode=function(t){switch(t.Type){case lr.SequenceExpression:this.VisitSequenceExpression(t);break;case lr.ExpressionStatement:this.VisitNode(t.Expression);break;case lr.AssignmentExpression:this.VisitAssignmentExpression(t);break;case lr.BinaryExpression:case lr.LogicalExpression:this.VisitBinaryExpression(t);break;case lr.CallExpression:this.VisitCallExpression(t)}},this.VisitSequenceExpression=function(t){for(var e in t.Expression){var a=t.Expression[e];this.VisitNode(a)}},this.VisitCallExpression=function(t){var e=t.Callee.Name,a=[];for(var i in t.Arguments){var r=t.Arguments[i],n=void 0;n=r.Type==lr.BinaryExpression||r.Type==lr.LogicalExpression?this.VisitBinaryExpression(r):r.Type==lr.CallExpression?this.VisitCallExpression(r):this.GetNodeValue(r),a.push(n)}if(ur&&bi.Complier.Log("[JSExecute::VisitCallExpression]",e,"(",a.toString(),")"),ir.IsCustomFunction(e))return t.Out=this.Algorithm.CallCustomFunction(e,a,this.SymbolData,t),t.Out;switch(e){case"DYNAINFO":t.Out=this.SymbolData.GetLatestCacheData(a[0]);break;case"STICKLINE":t.Draw=this.Draw.STICKLINE(a[0],a[1],a[2],a[3],a[4]),t.Out=[];break;case"DRAWTEXT":t.Draw=this.Draw.DRAWTEXT(a[0],a[1],a[2]),t.Out=[];break;case"DRAWTEXT_FIX":t.Draw=this.Draw.DRAWTEXT_FIX(a[0],a[1],a[2],a[3],a[4]),t.Out=[];break;case"SUPERDRAWTEXT":t.Draw=this.Draw.SUPERDRAWTEXT(a[0],a[1],a[2],a[3],a[4]),t.Out=[];break;case"DRAWICON":t.Draw=this.Draw.DRAWICON(a[0],a[1],a[2]),t.Out=[];break;case"DRAWLINE":t.Draw=this.Draw.DRAWLINE(a[0],a[1],a[2],a[3],a[4]),t.Out=t.Draw.DrawData;break;case"DRAWBAND":t.Draw=this.Draw.DRAWBAND(a[0],a[1],a[2],a[3]),t.Out=[];break;case"DRAWKLINE":t.Draw=this.Draw.DRAWKLINE(a[0],a[1],a[2],a[3]),t.Out=[];break;case"DRAWKLINE_IF":t.Draw=this.Draw.DRAWKLINE_IF(a[0],a[1],a[2],a[3],a[4]),t.Out=[];break;case"PLOYLINE":case"POLYLINE":t.Draw=this.Draw.POLYLINE(a[0],a[1]),t.Out=t.Draw.DrawData;break;case"DRAWNUMBER":t.Draw=this.Draw.DRAWNUMBER(a[0],a[1],a[2]),t.Out=t.Draw.DrawData.Value;break;case"DRAWCHANNEL":t.Draw=this.Draw.DRAWCHANNEL(a[0],a[1],a[2],a[3],a[4],a[5],a[6]),t.Out=[];break;case"RGB":t.Out=this.Draw.RGB(a[0],a[1],a[2]);break;case"PARTLINE":t.Draw=this.Draw.PARTLINE(a),t.Out=[];break;case"DRAWGBK":t.Draw=this.Draw.DRAWGBK(a[0],a[1],a[2],a[3]),t.Out=[];break;case"DRAWTEXT_LINE":t.Draw=this.Draw.DRAWTEXT_LINE(a[0],a[1],a[2],a[3],a[4],a[5],a[6]),t.Out=[];break;case"DRAWRECTREL":t.Draw=this.Draw.DRAWRECTREL(a[0],a[1],a[2],a[3],a[4]),t.Out=[];break;case"CODELIKE":t.Out=this.SymbolData.CODELIKE(a[0]);break;case"NAMELIKE":t.Out=this.SymbolData.NAMELIKE(a[1]);break;case"REFDATE":t.Out=this.SymbolData.REFDATE(a[0],a[1]);break;case"FINANCE":t.Out=this.SymbolData.GetFinanceCacheData(a[0],t);break;case"MARGIN":t.Out=this.SymbolData.GetMarginCacheData(a[0],t);break;case"HK2SHSZ":t.Out=this.SymbolData.GetHKToSHSZCacheData(a[0],t);break;case"NEWS":t.Out=this.SymbolData.GetNewsAnalysisCacheData(a[0],t);break;case"UPCOUNT":case"DOWNCOUNT":t.Out=this.SymbolData.GetIndexIncreaseCacheData(e,a[0],t);break;case"SF":t.Out=this.SymbolData.GetSectionFinanceCacheData(a[0],a[1],a[2],t);break;case"LOADAPIDATA":t.Out=this.SymbolData.GetCustomApiData(a);break;case"STKINDI":t.Out=this.SymbolData.GetScriptIndexOutData(a,t);break;default:t.Out=this.Algorithm.CallFunction(e,a,t,this.SymbolData)}return t.Out},this.VisitAssignmentExpression=function(t){var e=t.Left;e.Type!=lr.Identifier&&this.ThrowUnexpectedNode(t);var a=e.Name,i=t.Right,r=null;i.Type==lr.BinaryExpression||i.Type==lr.LogicalExpression?r=this.VisitBinaryExpression(i):i.Type==lr.CallExpression?r=this.VisitCallExpression(i):i.Type==lr.Literal?r=i.Value:i.Type==lr.Identifier?r=this.ReadVariable(i.Name,i):i.Type==lr.MemberExpression&&(r=this.ReadMemberVariable(i)),ur&&bi.Complier.Log("[JSExecute::VisitAssignmentExpression]",a," = ",r),this.VarTable.set(a,r)},this.VisitBinaryExpression=function(t){var e=[];e.push(t);for(var a=null;0!=e.length;)if(a=e[e.length-1],a.Left&&t!=a.Left&&t!=a.Right)e.push(a.Left);else if(a.Right&&t!=a.Right)e.push(a.Right);else{var i=e.pop();if(i.Type==lr.BinaryExpression){var r=this.GetNodeValue(i.Left),n=this.GetNodeValue(i.Right);switch(ur&&bi.Complier.Log("[JSExecute::VisitBinaryExpression] BinaryExpression",i,r,n),i.Out=null,i.Operator){case"-":i.Out=this.Algorithm.Subtract(r,n);break;case"*":i.Out=this.Algorithm.Multiply(r,n);break;case"/":i.Out=this.Algorithm.Divide(r,n);break;case"+":i.Out=this.Algorithm.Add(r,n);break;case">":i.Out=this.Algorithm.GT(r,n);break;case">=":i.Out=this.Algorithm.GTE(r,n);break;case"<":i.Out=this.Algorithm.LT(r,n);break;case"<=":i.Out=this.Algorithm.LTE(r,n);break;case"==":case"=":i.Out=this.Algorithm.EQ(r,n);break;case"!=":case"<>":i.Out=this.Algorithm.NEQ(r,n)}ur&&bi.Complier.Log("[JSExecute::VisitBinaryExpression] BinaryExpression",i)}else if(i.Type==lr.LogicalExpression){var o=this.GetNodeValue(i.Left),s=this.GetNodeValue(i.Right);switch(ur&&bi.Complier.Log("[JSExecute::VisitBinaryExpression] LogicalExpression",i,o,s),i.Out=null,i.Operator){case"&&":case"AND":i.Out=this.Algorithm.And(o,s);break;case"||":case"OR":i.Out=this.Algorithm.Or(o,s)}ur&&bi.Complier.Log("[JSExecute::VisitBinaryExpression] LogicalExpression",i)}t=a}return t.Out},this.GetNodeValue=function(t){switch(t.Type){case lr.Literal:return t.Value;case lr.UnaryExpression:if("-"==t.Operator){var e=this.GetNodeValue(t.Argument);return this.Algorithm.Subtract(0,e)}return t.Argument.Value;case lr.Identifier:return this.ReadVariable(t.Name,t);case lr.BinaryExpression:case lr.LogicalExpression:return t.Out;case lr.CallExpression:return this.VisitCallExpression(t);default:this.ThrowUnexpectedNode(t)}},this.ThrowUnexpectedNode=function(t,e){var a=t.Marker,i=e||"执行异常";return this.ErrorHandler.ThrowError(a.Index,a.Line,a.Column,i)},this.ThrowDownloadSF=function(t,e,a){var i=t.Marker,r=a;return this.ErrorHandler.ThrowDownloadJob(i.Index,i.Line,i.Column,r,e)},this.ThrowError=function(){}}function Za(){}function ja(t,e,a,i){this.newMethod=qe,this.newMethod(t),delete this.newMethod,this.Script=e,this.Arguments=[],this.OutVar=[],this.ID,this.FloatPrecision=2,this.StringFormat,this.KLineType=null,this.InstructionType,this.YSpecificMaxMin=null,this.YSplitScale=null,this.Condition=null,this.IsLocked=!1,this.LockCallback=null,this.LockID=null,this.LockBG=null,this.LockTextColor=null,this.LockText=null,this.LockFont=null,this.LockCount=20,this.LockMinWidth=null,this.TitleFont=Xi.TitleFont,this.IsShortTitle=!1,i&&(i.FloatPrecision>=0&&(this.FloatPrecision=i.FloatPrecision),i.StringFormat>0&&(this.StringFormat=i.StringFormat),i.ID&&(this.ID=i.ID),(i.KLineType>=0||-1===i.KLineType)&&(this.KLineType=i.KLineType),i.InstructionType&&(this.InstructionType=i.InstructionType),i.YSpecificMaxMin&&(this.YSpecificMaxMin=i.YSpecificMaxMin),i.YSplitScale&&(this.YSplitScale=i.YSplitScale),i.Condition&&(this.Condition=i.Condition),i.TitleFont&&(this.TitleFont=i.TitleFont),i.IsShortTitle&&(this.IsShortTitle=i.IsShortTitle)),i&&i.Lock&&(1==i.Lock.IsLocked&&(this.IsLocked=!0),i.Lock.Callback&&(this.LockCallback=i.Lock.Callback),i.Lock.ID&&(this.LockID=i.Lock.ID),i.Lock.BG&&(this.LockBG=i.Lock.BG),i.Lock.TextColor&&(this.LockTextColor=i.Lock.TextColor),i.Lock.Text&&(this.LockText=i.Lock.Text),i.Lock.Font&&(this.LockFont=i.Lock.Font),i.Lock.Count&&(this.LockCount=i.Lock.Count),i.Lock.MinWidth&&(this.LockMinWidth=i.Lock.MinWidth*u())),a&&(this.Arguments=a),this.SetLock=function(t){1==t.IsLocked?(this.IsLocked=!0,t.Callback&&(this.LockCallback=t.Callback),t.ID&&(this.LockID=t.ID),t.BG&&(this.LockBG=t.BG),t.TextColor&&(this.LockTextColor=t.TextColor),t.Text&&(this.LockText=t.Text),t.Font&&(this.LockFont=t.Font),t.Count&&(this.LockCount=t.Count),t.MinWidth&&(this.LockMinWidth=t.MinWidth*u())):(this.IsLocked=!1,this.LockCallback=null,this.LockID=null,this.LockBG=null,this.LockTextColor=null,this.LockText=null,this.LockFont=null,this.LockCount=20)},this.ExecuteScript=function(t,e,a){this.OutVar=[];var i={HQChart:t,WindowIndex:e,HistoryData:a,Self:this},r=dr.KLINE_ID;"MinuteChartContainer"===t.ClassName||"MinuteChartHScreenContainer"===t.ClassName?r=t.DayCount>1?dr.MULTIDAY_MINUTE_ID:dr.MINUTE_ID:"HistoryMinuteChartContainer"===t.ClassName&&(r=dr.HISTORY_MINUTE_ID);var n={HQDataType:r,Symbol:t.Symbol,Name:t.Name,Data:a,SourceData:t.SourceData,Callback:this.RecvResultData,CallbackParam:i,Async:!0,MaxRequestDataCount:t.MaxReqeustDataCount,MaxRequestMinuteDayCount:t.MaxRequestMinuteDayCount,Arguments:this.Arguments,Condition:this.Condition,IsBeforeData:t.IsBeforeData};if(r===dr.HISTORY_MINUTE_ID&&(n.TrateDate=t.TradeDate),r===dr.MULTIDAY_MINUTE_ID&&(n.DayCount=t.DayCount),t.NetworkFilter&&(n.NetworkFilter=t.NetworkFilter),this.Condition&&!this.IsMeetCondition(i,n))return void this.ShowConditionError(i);var o=this.Script;Za.Execute(o,n,t.ScriptErrorCallback)},this.IsMeetCondition=function(t,e){if(bi.Complier.Log("[ScriptIndex::IsMeetCondition] ",this.Condition),this.Condition.Period){if(!this.IsMeetPeriodCondition(t,e))return!1;if(!this.IsMeetIncludeCondition(t,e))return!1}return!0},this.IsMeetPeriodCondition=function(t,e){if(!this.Condition.Period)return!0;for(var a in this.Condition.Period){var i=this.Condition.Period[a];switch(i){case Ei.MINUTE_ID:if(e.HQDataType==dr.MINUTE_ID)return!0;break;case Ei.MULTIDAY_MINUTE_ID:if(e.HQDataType==dr.MULTIDAY_MINUTE_ID)return!0;break;case Ei.KLINE_DAY_ID:case Ei.KLINE_WEEK_ID:case Ei.KLINE_MONTH_ID:case Ei.KLINE_YEAR_ID:case Ei.KLINE_TWOWEEK_ID:case Ei.KLINE_QUARTER_ID:case Ei.KLINE_MINUTE_ID:case Ei.KLINE_5_MINUTE_ID:case Ei.KLINE_15_MINUTE_ID:case Ei.KLINE_30_MINUTE_ID:case Ei.KLINE_60_MINUTE_ID:if(t.HQChart.Period==i)return!0}}return!1},this.IsMeetIncludeCondition=function(t,e){if(!this.Condition.Include||this.Condition.Include.length<=0)return!0;var a=t.HQChart.Symbol;a&&(a=a.toUpperCase());for(var i in this.Condition.Include){if(a==this.Condition.Include[i])return!0}return!1},this.ShowConditionError=function(t){var e=t.HQChart,a=t.WindowIndex;e.DeleteIndexPaint(a),0==a&&e.ShowKLine(!0);var i=new Q;i.Canvas=e.Canvas,i.ChartBorder=e.Frame.SubFrame[a].Frame.ChartBorder,i.ChartFrame=e.Frame.SubFrame[a].Frame,i.NotSupportMessage="指标不支持当前品种或周期",e.ChartPaint.push(i),e.Draw()},this.RecvResultData=function(t,e){var a=e.HQChart,i=e.WindowIndex,r=e.HistoryData;if(e.Self.OutVar=t,e.Self.BindData(a,i,r),0==e.Self.IsLocked)e.HQChart.Frame.SubFrame[i].Frame.SetLock(null);else{var n={IsLocked:!0,Callback:e.Self.LockCallback,IndexName:e.Self.Name,ID:e.Self.LockID,BG:e.Self.LockBG,Text:e.Self.LockText,TextColor:e.Self.LockTextColor,Font:e.Self.LockFont,Count:e.Self.LockCount,MinWidth:e.Self.LockMinWidth};e.HQChart.Frame.SubFrame[i].Frame.SetLock(n)}if(e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw(),a.GetIndexEvent){var o=a.GetIndexEvent();if(o){var s=e.Self,l={OutVar:s.OutVar,WindowIndex:i,Name:s.Name,Arguments:s.Arguments,HistoryData:r,Stock:{Symbol:a.Symbol,Name:a.Name}};o.Callback(o,l,s)}}},this.CreateLine=function(t,e,a,i){var r=new Q;if(r.Canvas=t.Canvas,r.DrawType=1,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.LineWidth=n)}a.IsDotLine&&(r.IsDotLine=!0),0==a.IsShow&&(r.IsShow=!1);var o=e+1;r.Data.Data=a.Data,t.TitlePaint[o].Data[i]=new oe(r.Data,a.Name,r.Color),t.ChartPaint.push(r)},this.CreateOverlayLine=function(t,e,a,i){var r=new $;if(r.Canvas=t.Canvas,r.DrawType=1,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.LineWidth=n)}a.IsDotLine&&(r.IsDotLine=!0),0==a.IsShow&&(r.IsShow=!1);var o=e+1;r.Data.Data=a.Data,t.TitlePaint[o].Data[i]=new oe(r.Data,a.Name,r.Color),t.ChartPaint.push(r)},this.CreateBar=function(t,e,a,i){var r=new ot;r.Canvas=t.Canvas,a.Draw.Width>0?r.LineWidth=a.Draw.Width:r.LineWidth=1,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i);r.Data.Data=a.Draw.DrawData,r.BarType=a.Draw.Type,t.ChartPaint.push(r)},this.CreateText=function(t,e,a,i){var r=new lt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i);a.Draw.Position&&(r.Position=a.Draw.Position),a.Draw.DrawData&&(r.Data.Data=a.Draw.DrawData),r.Text=a.Draw.Text,a.Draw.Direction>0&&(r.Direction=a.Draw.Direction),a.Draw.YOffset>0&&(r.YOffset=a.Draw.YOffset),a.Draw.TextAlign&&(r.TextAlign=a.Draw.TextAlign),t.ChartPaint.push(r)},this.CreateMACD=function(t,e,a,i){var r=new Ct;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame;var n=e+1;r.Data.Data=a.Data,t.TitlePaint[n].Data[i]=new oe(r.Data,a.Name,this.GetDefaultColor(i)),t.ChartPaint.push(r)},this.CreatePointDot=function(t,e,a,i){var r=new et;if(r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.Radius&&(r.Radius=a.Radius),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.Radius=n)}var o=e+1;r.Data.Data=a.Data,t.TitlePaint[o].Data[i]=new oe(r.Data,a.Name,r.Color),t.ChartPaint.push(r)},this.CreateStick=function(t,e,a,i){var r=new at;if(r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.LineWidth=n)}var o=e+1;r.Data.Data=a.Data,t.TitlePaint[o].Data[i]=new oe(r.Data,a.Name,r.Color),t.ChartPaint.push(r)},this.CreateLineStick=function(t,e,a,i){var r=new it;if(r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.LineWidth=n)}var o=e+1;r.Data.Data=a.Data,t.TitlePaint[o].Data[i]=new oe(r.Data,a.Name,r.Color),t.ChartPaint.push(r)},this.CreateStraightLine=function(t,e,a,i){var r=new Q;if(r.DrawType=1,r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.LineWidth=n)}r.Data.Data=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreateVolStick=function(t,e,a,i,r){var n=new rt;n.Canvas=t.Canvas,n.Name=a.Name,n.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,n.ChartFrame=t.Frame.SubFrame[e].Frame,n.KLineDrawType=t.KLineDrawType,a.Color?n.Color=this.GetColor(a.Color):n.Color=this.GetDefaultColor(i);var o=e+1;n.Data.Data=a.Data,n.HistoryData=r,t.TitlePaint[o].Data[i]=new oe(n.Data,a.Name,n.Color),t.ChartPaint.push(n)},this.CreateBand=function(t,e,a,i){var r=new Dt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.FirstColor=a.Draw.Color[0],r.SecondColor=a.Draw.Color[1],r.Data.Data=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreateKLine=function(t,e,a,i){var r=new K;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data.Data=a.Draw.DrawData,r.IsShowMaxMinPrice=!1,r.IsShowKTooltip=!1,a.Color&&(r.UnchagneColor=r.DownColor=r.UpColor=this.GetColor(a.Color)),t.ChartPaint.push(r)},this.CreatePolyLine=function(t,e,a,i){var r=new Q;if(r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i),a.LineWidth){var n=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(n)&&n>0&&(r.LineWidth=n)}var o=e+1;r.Data.Data=a.Draw.DrawData,t.TitlePaint[o].Data[i]=new oe(r.Data," ",r.Color),t.ChartPaint.push(r)},this.CreateBackgroud=function(t,e,a,i){var r=new vt;if(r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Draw&&a.Draw.DrawData){var n=a.Draw.DrawData;r.Color=n.Color,r.ColorAngle=n.Angle}t.ChartPaint.push(r)},this.CreateTextLine=function(t,e,a,i){var r=new St;if(r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Draw&&a.Draw.DrawData){var n=a.Draw.DrawData;r.Text=n.Text,r.Line=n.Line,r.Price=n.Price}t.ChartPaint.push(r)},this.CreateNumberText=function(t,e,a,i){var r=new lt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Color?r.Color=this.GetColor(a.Color):r.Color=this.GetDefaultColor(i);r.Data.Data=a.Draw.DrawData.Value,r.Text=a.Draw.DrawData.Text,t.ChartPaint.push(r)},this.CreateIcon=function(t,e,a,i){var r=new lt;r.Canvas=t.Canvas,r.TextAlign="center",r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame;r.Data.Data=a.Draw.DrawData;var n=a.Draw.Icon;1==n.IconFont?r.IconFont={Family:n.Family,Text:n.Symbol,Color:n.Color}:(r.Text=n.Symbol,a.Color?r.Color=this.GetColor(a.Color):n.Color?r.Color=n.Color:r.Color="rgb(0,0,0)"),t.ChartPaint.push(r)},this.CreateChannel=function(t,e,a,i){var r=new mt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,a.Draw.AreaColor?r.AreaColor=a.Draw.AreaColor:a.Color?r.AreaColor=this.GetColor(a.Color):r.AreaColor=this.GetDefaultColor(i),a.Draw.Border.Color?r.LineColor=a.Draw.Border.Color:r.LineColor=null,a.Draw.Border.Dotted&&(r.LineDotted=a.Draw.Border.Dotted),a.Draw.Border.Width>0&&(r.LineWidth=a.Draw.Border.Width),r.Data.Data=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreatePartLine=function(t,e,a,i){var r=new tt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data.Data=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreateMultiLine=function(t,e,a,i){var r=new xt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data=t.ChartPaint[0].Data,r.Lines=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreateMultiBar=function(t,e,a,i){var r=new It;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data=t.ChartPaint[0].Data,r.Bars=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreateMultiText=function(t,e,a,i){var r=new Tt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data=t.ChartPaint[0].Data,r.Texts=a.Draw.DrawData,t.ChartPaint.push(r)},this.CreateMultiSVGIcon=function(t,e,a,i){var r=new At;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data=t.ChartPaint[0].Data,r.Family=a.Draw.DrawData.Family,r.Icon=a.Draw.DrawData.Icon,t.ChartPaint.push(r)},this.CreateColorKLine=function(t,e,a,i){var r=new z;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Data=t.ChartPaint[0].Data,r.KLineColor=a.Draw.DrawData.KLine,a.Color&&(r.Color=a.Color),t.ChartPaint.push(r)},this.CreateRectangle=function(t,e,a,i){var r=new gt;r.Canvas=t.Canvas,r.Name=a.Name,r.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,r.ChartFrame=t.Frame.SubFrame[e].Frame,r.Color=[a.Draw.DrawData.Color],r.Rect=a.Draw.DrawData.Rect,a.Color&&(r.BorderColor=this.GetColor(a.Color)),t.ChartPaint.push(r)},this.CreateSelfKLine=function(t,e,a){var i=new K;i.Canvas=t.Canvas,i.Name="Self Kline",i.ChartBorder=t.Frame.SubFrame[e].Frame.ChartBorder,i.ChartFrame=t.Frame.SubFrame[e].Frame,i.Data=a,i.IsShowMaxMinPrice=!1,i.IsShowKTooltip=!1,i.DrawType=this.KLineType,t.ChartPaint.push(i)},this.BindInstructionData=function(t,e,a){if(!(null==this.OutVar||this.OutVar.length<0)){var i="";for(var r in this.Arguments){var n=this.Arguments[r];i.length>0&&(i+=","),i+=n.Value.toString()}if(i.length>0&&(i="("+i+")"),2==this.InstructionType){var o=this.OutVar[this.OutVar.length-1];return t.SetInstructionData(this.InstructionType,{Data:o.Data,Name:this.Name,Param:i,ID:this.ID}),!0}if(1==this.InstructionType){var s,l;for(var h in this.OutVar){var u=this.OutVar[h];"ENTERLONG"==u.Name?s=u.Data:"EXITLONG"==u.Name&&(l=u.Data)}return t.SetInstructionData(this.InstructionType,{Buy:s,Sell:l,Name:this.Name,Param:i,ID:this.ID}),!0}}},this.BindData=function(t,e,a){if(0==e&&this.InstructionType)return void this.BindInstructionData(t,e,a);if(t.DeleteIndexPaint(e),0==e&&t.ShowKLine(!0),!(null==this.OutVar||this.OutVar.length<0)){null!=this.KLineType&&(0===this.KLineType||1===this.KLineType||2===this.KLineType?this.CreateSelfKLine(t,e,a):-1===this.KLineType&&0==e&&t.ShowKLine(!1)),e>=1&&t.Frame&&(t.Frame.SubFrame[e].Frame.YSplitOperator.FloatPrecision=this.FloatPrecision,this.YSpecificMaxMin&&(t.Frame.SubFrame[e].Frame.YSpecificMaxMin=this.YSpecificMaxMin),this.YSplitScale&&(t.Frame.SubFrame[e].Frame.YSplitScale=this.YSplitScale));for(var i in this.OutVar){var r=this.OutVar[i];if(!0!==r.IsExData&&1e3!=r.Type){if(0==r.Type)r.IsOverlayLine?this.CreateOverlayLine(t,e,r,i):this.CreateLine(t,e,r,i);else if(1==r.Type)switch(r.Draw.DrawType){case"STICKLINE":this.CreateBar(t,e,r,i);break;case"DRAWTEXT":case"SUPERDRAWTEXT":case"DRAWTEXT_FIX":this.CreateText(t,e,r,i);break;case"DRAWLINE":this.CreateStraightLine(t,e,r,i);break;case"DRAWBAND":this.CreateBand(t,e,r,i);break;case"DRAWKLINE":case"DRAWKLINE_IF":this.CreateKLine(t,e,r,i);break;case"POLYLINE":this.CreatePolyLine(t,e,r,i);break;case"DRAWGBK":this.CreateBackgroud(t,e,r,i);break;case"DRAWTEXT_LINE":this.CreateTextLine(t,e,r,i);break;case"DRAWNUMBER":this.CreateNumberText(t,e,r,i);break;case"DRAWICON":this.CreateIcon(t,e,r,i);break;case"DRAWCHANNEL":this.CreateChannel(t,e,r,i);break;case"PARTLINE":this.CreatePartLine(t,e,r,i);break;case"DRAWRECTREL":this.CreateRectangle(t,e,r,i);break;case"MULTI_LINE":this.CreateMultiLine(t,e,r,i);break;case"MULTI_BAR":this.CreateMultiBar(t,e,r,i);break;case"MULTI_TEXT":this.CreateMultiText(t,e,r,i);break;case"MULTI_SVGICON":this.CreateMultiSVGIcon(t,e,r,i);break;case"COLOR_KLINE":this.CreateColorKLine(t,e,r,i)}else 2==r.Type?this.CreateMACD(t,e,r,i):3==r.Type?this.CreatePointDot(t,e,r,i):4==r.Type?this.CreateLineStick(t,e,r,i):5==r.Type?this.CreateStick(t,e,r,i):6==r.Type&&this.CreateVolStick(t,e,r,i,a);var n=t.TitlePaint[e+1];n&&n.Data&&i<n.Data.length&&(this.StringFormat>0&&(n.Data[i].StringFormat=this.StringFormat),this.FloatPrecision>=0&&(n.Data[i].FloatPrecision=this.FloatPrecision))}}var o=e+1;if(t.TitlePaint[o].Title=this.Name,!this.IsShortTitle){var s="";for(var l in this.Arguments){var h=this.Arguments[l];s.length>0&&(s+=","),s+=h.Value.toString()}s.length>0&&(t.TitlePaint[o].Title=this.Name+"("+s+")")}return this.TitleFont&&(t.TitlePaint[o].Font=this.TitleFont),!0}},this.GetDefaultColor=function(t){var e=null;return Xi&&Xi.Index&&Xi.Index.LineColor&&(e=Xi.Index.LineColor),e&&Array.isArray(e)||(e=["rgb(255,174,0)","rgb(25,199,255)","rgb(175,95,162)","rgb(236,105,65)","rgb(68,114,196)","rgb(229,0,79)","rgb(0,128,255)","rgb(252,96,154)","rgb(42,230,215)","rgb(24,71,178)"]),e[parseInt(t)%(e.length-1)]},this.GetColor=function(t){var e=new xi.default([["COLORBLACK","rgb(0,0,0)"],["COLORBLUE","rgb(18,95,216)"],["COLORGREEN","rgb(25,158,0)"],["COLORCYAN","rgb(0,255,198)"],["COLORRED","rgb(238,21,21)"],["COLORMAGENTA","rgb(255,0,222)"],["COLORBROWN","rgb(149,94,15)"],["COLORLIGRAY","rgb(218,218,218)"],["COLORGRAY","rgb(133,133,133)"],["COLORLIBLUE","rgb(94,204,255)"],["COLORLIGREEN","rgb(183,255,190)"],["COLORLICYAN","rgb(154,255,242)"],["COLORLIRED","rgb(255,172,172)"],["COLORLIMAGENTA","rgb(255,145,241)"],["COLORWHITE","rgb(255,255,255)"],["COLORYELLOW","rgb(255,198,0)"]]);return e.has(t)?e.get(t):0==t.indexOf("COLOR")?"#"+t.substr(5):"rgb(30,144,255)"}}function Qa(t,e,a,i){this.newMethod=ja,this.newMethod(t,e,a,i),delete this.newMethod,this.OverlayIndex=null,this.BindData=function(t,e,a){if(this.OverlayIndex&&1==this.OverlayIndex.IsOverlay&&(this.OverlayIndex.Frame.ChartPaint=[],!(null==this.OutVar||this.OutVar.length<0))){var i={Data:[],Title:this.Name},r="";for(var n in this.Arguments){var o=this.Arguments[n];r.length>0&&(r+=","),r+=o.Value.toString()}r.length>0&&(i.Title=this.Name+"("+r+")");var s=e+1;t.TitlePaint[s].OverlayIndex.set(this.OverlayIndex.Identify,i),this.OverlayIndex.Frame.Frame.Title=i.Title;for(var n in this.OutVar){var l=this.OutVar[n];if(!0!==l.IsExData)if(0==l.Type)this.CreateLine(t,e,l,n);else if(1==l.Type)switch(l.Draw.DrawType){case"STICKLINE":this.CreateBar(t,e,l,n);break;case"DRAWTEXT":case"SUPERDRAWTEXT":case"DRAWTEXT_FIX":this.CreateText(t,e,l,n);break;case"DRAWLINE":this.CreateStraightLine(t,e,l,n);break;case"DRAWBAND":this.CreateBand(t,e,l,n);break;case"DRAWKLINE":case"DRAWKLINE_IF":this.CreateKLine(t,e,l,n);break;case"POLYLINE":this.CreatePolyLine(t,e,l,n);break;case"DRAWNUMBER":this.CreateNumberText(t,e,l,n);break;case"DRAWICON":this.CreateIcon(t,e,l,n);break;case"DRAWCHANNEL":this.CreateChannel(t,e,l,n);break;case"MULTI_LINE":this.CreateMultiLine(t,e,l,n);break;case"MULTI_BAR":this.CreateMultiBar(t,e,l,n);break;case"MULTI_TEXT":this.CreateMultiText(t,e,l,n);break;case"MULTI_SVGICON":this.CreateMultiSVGIcon(t,e,l,n)}else 2==l.Type?this.CreateMACD(t,e,l,n):3==l.Type?this.CreatePointDot(t,e,l,n):4==l.Type?this.CreateLineStick(t,e,l,n):5==l.Type?this.CreateStick(t,e,l,n):6==l.Type&&this.CreateVolStick(t,e,l,n,a)}return!0}},this.RecvResultData=function(t,e){var a=e.HQChart,i=e.WindowIndex,r=e.HistoryData;e.Self.OutVar=t,e.Self.BindData(a,i,r),e.HQChart.UpdataDataoffset(),e.HQChart.UpdateFrameMaxMin(),e.HQChart.Draw();var n=a.GetOverlayIndexEvent();if(n){var o=e.Self,s={OutVar:o.OutVar,WindowIndex:i,Name:o.Name,Arguments:o.Arguments,HistoryData:r,Identify:o.OverlayIndex.Identify,Stock:{Symbol:a.Symbol,Name:a.Name}};n.Callback(n,s,o)}},this.CreateLine=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new Q;if(o.Canvas=t.Canvas,o.DrawType=1,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i),a.LineWidth){var s=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(s)&&s>0&&(line.LineWidth=s)}0==a.IsShow&&(line.IsShow=!1);var l=e+1;o.Data.Data=a.Data,t.TitlePaint[l].OverlayIndex.get(r.Identify).Data[i]=new oe(o.Data,a.Name,o.Color),n.ChartPaint.push(o)},this.CreateBar=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new ot;o.Canvas=t.Canvas,a.Draw.Width>0?o.LineWidth=a.Draw.Width:o.LineWidth=1,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i);o.Data.Data=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateText=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new lt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i);a.Draw.Position&&(o.Position=a.Draw.Position),a.Draw.DrawData&&(o.Data.Data=a.Draw.DrawData),o.Text=a.Draw.Text,a.Draw.Direction>0&&(o.Direction=a.Draw.Direction),a.Draw.YOffset>0&&(o.YOffset=a.Draw.YOffset),a.Draw.TextAlign&&(o.TextAlign=a.Draw.TextAlign),n.ChartPaint.push(o)},this.CreateMACD=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new Ct;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify;var s=e+1;o.Data.Data=a.Data,t.TitlePaint[s].OverlayIndex.get(r.Identify).Data[i]=new oe(o.Data,a.Name,this.GetDefaultColor(i)),n.ChartPaint.push(o)},this.CreatePointDot=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new et;if(o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i),a.Radius&&(o.Radius=a.Radius),a.LineWidth){var s=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(s)&&s>0&&(o.Radius=s)}var l=e+1;o.Data.Data=a.Data,t.TitlePaint[l].OverlayIndex.get(r.Identify).Data[i]=new oe(o.Data,a.Name,o.Color),n.ChartPaint.push(o)},this.CreateStick=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new at;if(o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i),a.LineWidth){var s=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(s)&&s>0&&(o.LineWidth=s)}var l=e+1;o.Data.Data=a.Data,t.TitlePaint[l].OverlayIndex.get(r.Identify).Data[i]=new oe(o.Data,a.Name,o.Color),n.ChartPaint.push(o)},this.CreateLineStick=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new it;if(o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i),a.LineWidth){var s=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(s)&&s>0&&(o.LineWidth=s)}var l=e+1;o.Data.Data=a.Data,t.TitlePaint[l].OverlayIndex.get(r.Identify).Data[i]=new oe(o.Data,a.Name,o.Color),n.ChartPaint.push(o)},this.CreateStraightLine=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new Q;if(o.DrawType=1,o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i),a.LineWidth){var s=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(s)&&s>0&&(o.LineWidth=s)}o.Data.Data=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateVolStick=function(t,e,a,i,r){var n=this.OverlayIndex,o=n.Frame,s=new rt;s.Canvas=t.Canvas,s.Name=a.Name,s.ChartBorder=o.Frame.ChartBorder,s.ChartFrame=o.Frame,s.Identify=n.Identify,s.KLineDrawType=t.KLineDrawType,a.Color?s.Color=this.GetColor(a.Color):s.Color=this.GetDefaultColor(i);var l=e+1;s.Data.Data=a.Data,s.HistoryData=r,t.TitlePaint[l].OverlayIndex.get(n.Identify).Data[i]=new oe(s.Data,a.Name,s.Color),o.ChartPaint.push(s)},this.CreateBand=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new Dt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.FirstColor=a.Draw.Color[0],o.SecondColor=a.Draw.Color[1],o.Data.Data=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateKLine=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new K;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.Data.Data=a.Draw.DrawData,o.IsShowMaxMinPrice=!1,o.IsShowKTooltip=!1,a.Color&&(o.UnchagneColor=o.DownColor=o.UpColor=this.GetColor(a.Color)),n.ChartPaint.push(o)},this.CreatePolyLine=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new Q;if(o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i),a.LineWidth){var s=parseInt(a.LineWidth.replace("LINETHICK",""));!isNaN(s)&&s>0&&(o.LineWidth=s)}var l=e+1;o.Data.Data=a.Draw.DrawData,t.TitlePaint[l].OverlayIndex.get(r.Identify).Data[i]=new oe(line.Data," ",line.Color),n.ChartPaint.push(o)},this.CreateNumberText=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new lt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Color?o.Color=this.GetColor(a.Color):o.Color=this.GetDefaultColor(i);o.Data.Data=a.Draw.DrawData.Value,o.Text=a.Draw.DrawData.Text,n.ChartPaint.push(o)},this.CreateIcon=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new lt;o.Canvas=t.Canvas,o.TextAlign="center",o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify;o.Data.Data=a.Draw.DrawData;var s=a.Draw.Icon;1==s.IconFont?o.IconFont={Family:s.Family,Text:s.Symbol,Color:s.Color}:(o.Text=s.Symbol,a.Color?o.Color=this.GetColor(a.Color):s.Color?o.Color=s.Color:o.Color="rgb(0,0,0)"),n.ChartPaint.push(o)},this.CreateChannel=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new mt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,a.Draw.AreaColor?o.AreaColor=a.Draw.AreaColor:a.Color?o.AreaColor=this.GetColor(a.Color):o.AreaColor=this.GetDefaultColor(i),a.Draw.Border.Color?o.LineColor=a.Draw.Border.Color:o.LineColor=null,a.Draw.Border.Dotted&&(o.LineDotted=a.Draw.Border.Dotted),a.Draw.Border.Width>0&&(o.LineWidth=a.Draw.Border.Width),o.Data.Data=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreatePartLine=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new tt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.Data.Data=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateMultiLine=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new xt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.Data=t.ChartPaint[0].Data,o.Lines=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateMultiBar=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new It;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.Data=t.ChartPaint[0].Data,o.Bars=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateMultiText=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new Tt;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.Data=t.ChartPaint[0].Data,o.Texts=a.Draw.DrawData,n.ChartPaint.push(o)},this.CreateMultiSVGIcon=function(t,e,a,i){var r=this.OverlayIndex,n=r.Frame,o=new At;o.Canvas=t.Canvas,o.Name=a.Name,o.ChartBorder=n.Frame.ChartBorder,o.ChartFrame=n.Frame,o.Identify=r.Identify,o.Data=t.ChartPaint[0].Data,o.Family=a.Draw.DrawData.Family,o.Icon=a.Draw.DrawData.Icon,n.ChartPaint.push(o)},this.CreateSelfKLine=function(t,e,a){var i=this.OverlayIndex,r=i.Frame,n=new K;n.Canvas=t.Canvas,n.Name="Self Kline",n.ChartBorder=r.Frame.ChartBorder,n.ChartFrame=r.Frame,n.Identify=i.Identify,n.Data=a,n.IsShowMaxMinPrice=!1,n.IsShowKTooltip=!1,n.DrawType=this.KLineType,r.ChartPaint.push(n)},this.GetDefaultColor=function(t){var e=["rgb(24,71,178)","rgb(42,230,215)","rgb(252,96,154)","rgb(0,128,255)","rgb(229,0,79)","rgb(68,114,196)","rgb(255,174,0)","rgb(25,199,255)","rgb(175,95,162)","rgb(236,105,65)"];return e[parseInt(t)%(e.length-1)]}}function $a(t,e,a,i,r){this.newMethod=r?Qa:ja,this.newMethod(t,e,a,i),delete this.newMethod,this.IsOverlayIndex=1==r,this.ApiUrl,this.HQDataType,i.API&&(i.API.Url&&(this.ApiUrl=i.API.Url),i.API.Name&&(this.Name=this.ID=i.API.Name),i.API.ID&&(this.ID=i.API.ID)),this.ExecuteScript=function(t,e,a){bi.Complier.Log("[APIScriptIndex::ExecuteScript] name, Arguments ",this.Name,this.Arguments);var i=dr.KLINE_ID;"MinuteChartContainer"===t.ClassName||"MinuteChartHScreenContainer"===t.ClassName?i=t.DayCount>1?dr.MULTIDAY_MINUTE_ID:dr.MINUTE_ID:"HistoryMinuteChartContainer"===t.ClassName&&(i=dr.HISTORY_MINUTE_ID);var r=[];if(this.Arguments)for(var o in this.Arguments){var s=this.Arguments[o];r.push({name:s.Name,value:s.Value})}var l=t.GetRequestDataCount(),h=this,u={indexname:this.ID,symbol:t.Symbol,script:this.Script,args:r,period:t.Period,right:t.Right,maxdatacount:l.MaxRequestDataCount,maxminutedaycount:l.MaxRequestMinuteDayCount,hqdatatype:i};if(i!=dr.MULTIDAY_MINUTE_ID&&i!=dr.MINUTE_ID||(u.daycount=t.DayCount),this.HQDataType=i,t.NetworkFilter){var c={Name:"APIScriptIndex::ExecuteScript",Explain:"指标计算",Request:{Url:h.ApiUrl,Type:"POST",Data:u},Self:this,HQChart:t,PreventDefault:!1};if(t.NetworkFilter(c,function(i){h.RecvAPIData(i,t,e,a)}),1==c.PreventDefault)return}n.HttpRequest({url:h.ApiUrl,data:u,type:"post",dataType:"json",async:!0,success:function(i){h.RecvAPIData(i,t,e,a)},error:function(t){h.RecvError(t)}})},this.RecvAPIData=function(t,e,a,i){if(bi.Complier.Log("[APIScriptIndex::RecvAPIData] recv data ",this.Name,t),0==t.code){if(t.outdata&&t.outdata.name&&(this.Name=t.outdata.name),this.Arguments=[],t.outdata.args)for(var r in t.outdata.args){var n=t.outdata.args[r];this.Arguments.push({Name:n.name,Value:n.value})}if(this.HQDataType==dr.KLINE_ID?(this.OutVar=this.FittingData(t.outdata,e),bi.Complier.Log("[APIScriptIndex::RecvAPIData] conver to OutVar ",this.OutVar)):this.OutVar=this.FittingMinuteData(t.outdata,e),this.BindData(e,a,i),0==this.IsLocked)e.Frame.SubFrame[a].Frame.SetLock(null);else{var o={IsLocked:!0,Callback:this.LockCallback,IndexName:this.Name,ID:this.LockID,BG:this.LockBG,Text:this.LockText,TextColor:this.LockTextColor,Font:this.LockFont,Count:this.LockCount,MinWidth:this.LockMinWidth};e.Frame.SubFrame[a].Frame.SetLock(o)}if(e.UpdataDataoffset(),e.UpdateFrameMaxMin(),e.Draw(),e.GetIndexEvent){var s=e.GetIndexEvent();if(s){var l=param.Self,t={OutVar:l.OutVar,WindowIndex:a,Name:this.Name,Arguments:this.Arguments,HistoryData:i,Stock:{Symbol:e.Symbol,Name:e.Name}};s.Callback(s,t,this)}}}},this.FittingArray=function(t,e,a,i,r){var n=i.ChartPaint[0].Data,o=[];for(var s in t){var l=t[s],h=new H;h.Date=e[s],a&&s<a.length&&(h.Time=a[s]),h.Value=l,o.push(h)}var u;u=Y.IsDayPeriod(i.Period,!0)?n.GetFittingData(o):n.GetMinuteFittingData(o);var c=new Y;c.Data=u;return 1==r?c.GetObject():c.GetValue()},this.FittingMultiLine=function(t,e,a,i){var r=i.ChartPaint[0].Data;if(Y.IsDayPeriod(i.Period,!0)){var n=[];for(var o in t){var s=t[o];for(var l in s.Point){var h=s.Point[l];n.push(h)}}return n.sort(function(t,e){return t.Date-e.Date}),r.GetDateIndex(n),t}if(Y.IsMinutePeriod(i.Period,!0)){var n=[];for(var o in t){var s=t[o];for(var l in s.Point){var h=s.Point[l];n.push(h)}}return n.sort(function(t,e){return t.Date==e.Date?t.Time-e.Time:t.Date-e.Date}),r.GetDateTimeIndex(n),t}return null},this.FittingMultiText=function(t,e,a,i){var r=i.ChartPaint[0].Data;return Y.IsDayPeriod(i.Period,!0)?(t.sort(function(t,e){return t.Date-e.Date}),r.GetDateIndex(t),t):Y.IsMinutePeriod(i.Period,!0)?(t.sort(function(t,e){return t.Date==e.Date?t.Time-e.Time:t.Date-e.Date}),r.GetDateTimeIndex(t),t):null},this.FittingData=function(t,e){var a=t.outvar,i=t.date,r=t.time,n=(e.ChartPaint[0].Data,[]);for(var o in a){var s=a[o],l={Name:s.name,Type:s.type};if(s.color&&(l.Color=s.color),s.data)l.Data=this.FittingArray(s.data,i,r,e),s.color&&(l.Color=s.color),s.linewidth>=1&&(l.LineWidth=s.linewidth),0==s.isshow&&(l.IsShow=!1),1==s.isexdata&&(l.IsExData=!0),n.push(l);else if(s.Draw){var h=s.Draw,u={};if("DRAWICON"==h.DrawType)u.Icon=h.Icon,u.Name=h.Name,u.DrawType=h.DrawType,u.DrawData=this.FittingArray(h.DrawData,i,r,e),l.Draw=u,n.push(l);else if("DRAWTEXT"==h.DrawType)u.Text=h.Text,u.Name=h.Name,u.DrawType=h.DrawType,u.DrawData=this.FittingArray(h.DrawData,i,r,e),l.Draw=u,n.push(l);else if("STICKLINE"==h.DrawType)u.Name=h.Name,u.Type=h.Type,u.Width=h.Width,u.DrawType=h.DrawType,u.DrawData=this.FittingArray(h.DrawData,i,r,e,1),l.Draw=u,n.push(l);else if("MULTI_LINE"==h.DrawType)u.Text=h.Text,u.Name=h.Name,u.DrawType=h.DrawType,u.DrawData=this.FittingMultiLine(h.DrawData,i,r,e),l.Draw=u,n.push(l);else if("MULTI_BAR"==h.DrawType)u.Text=h.Text,u.Name=h.Name,u.DrawType=h.DrawType,u.DrawData=this.FittingMultiLine(h.DrawData,i,r,e),l.Draw=u,n.push(l);else if("MULTI_TEXT"==h.DrawType)u.Text=h.Text,u.Name=h.Name,u.DrawType=h.DrawType,u.DrawData=this.FittingMultiText(h.DrawData,i,r,e),l.Draw=u,n.push(l);else if("MULTI_SVGICON"==h.DrawType)u.Text=h.Text,u.Name=h.Name,u.DrawType=h.DrawType,u.DrawData={Icon:this.FittingMultiText(h.DrawData.Icon,i,r,e),Family:h.DrawData.Family},l.Draw=u,n.push(l);else if("COLOR_KLINE"==h.DrawType){u.Text=h.Text,u.Name=h.Name,u.DrawType=h.DrawType;var c=this.FittingMultiText(h.DrawData.KLine,i,r,e),d=new xi.default;for(var o in c){var s=c[o];d.set(s.Index,s)}u.DrawData={KLine:d},h.Color&&(l.Color=h.Color),l.Draw=u,n.push(l)}}}return n},this.FittingMinuteData=function(t,e){var a=t.outvar,i=t.date,r=t.time,n=[];for(var o in a){item=a[o];var s={Name:item.name,Type:item.type};item.data&&(s.Data=this.FittingMinuteArray(item.data,i,r,e),item.color&&(s.Color=item.color),item.linewidth>=1&&(s.LineWidth=item.linewidth),0==item.isshow&&(s.IsShow=!1),1==item.isexdata&&(s.IsExData=!0),n.push(s))}return n},this.FittingMinuteArray=function(t,e,a,i){var r=i.SourceData,n=[];for(var o in t){var s=t[o],l=new H;l.Date=e[o],a&&o<a.length&&(l.Time=a[o]),l.Value=s,n.push(l)}var h=r.GetMinuteFittingData(n),u=new Y;return u.Data=h,u.GetValue()}}function ti(t,e,a){this.newMethod=ja,this.newMethod(t,null,e,null),delete this.newMethod,this.JsonData,a.JsonData&&(this.JsonData=a.JsonData),this.RequestData=function(t,e,a){if(!this.JsonData)return console.warn("[LocalJsonDataIndex::RequestData] JsonData is null"),void(param.HQChart.ScriptErrorCallback&¶m.HQChart.ScriptErrorCallback("json 数据不能为空"));this.OutVar=this.FittingData(this.JsonData,a),this.BindData(t,e,a)},this.FittingData=function(t,e){outVar=t.OutVar,date=t.Date,time=t.Time,result=[];for(i in outVar)if(item=outVar[i],bi.Complier.Log("[LocalJsonDataIndex::FittingData] item",item),0==item.Type||3==item.Type){var a=[];outVarItem={Name:item.Name,Type:item.Type};for(j in item.Data){var r=new H;r.Date=date[j],time&&j<time.length&&(r.Time=time[j]),r.Value=item.Data[j],a.push(r)}if(e.Period<4)var n=e.GetFittingData(a);else var n=e.GetMinuteFittingData(a);var o=new Y;o.Data=n,outVarItem.Data=o.GetValue(),result.push(outVarItem)}else console.warn("[LocalJsonDataIndex::FittingData] can't support ",item.Name,item.Type);return result}}function ei(t){this.ID,this.Name,this.Script,this.Arguments=[],this.ClassName="ScriptIndexConsole",this.ErrorCallback,this.FinishCallback,this.IsSectionMode=!1,t&&(t.Name&&(this.Name=t.Name),t.Script&&(this.Script=t.Script),t.ID&&(this.ID=t.ID),t.Args&&(this.Arguments=t.Args),t.ErrorCallback&&(this.ErrorCallback=t.ErrorCallback),t.FinishCallback&&(this.FinishCallback=t.FinishCallback),t.IsSectionMode&&(this.IsSectionMode=t.IsSectionMode)),this.ExecuteScript=function(t){this.OutVar=[];var e={Self:this},a={HQDataType:t.HQDataType,Symbol:t.Stock.Symbol,Name:t.Stock.Name,Period:t.Period,Right:t.Right,Callback:this.RecvResultData,CallbackParam:e,Async:!0,MaxRequestDataCount:t.Request.MaxDataCount,MaxRequestMinuteDayCount:t.Request.MaxMinuteDayCount,Arguments:this.Arguments,IsSectionMode:this.IsSectionMode,ClassName:"ScriptIndexConsole"};t.HQDataType===dr.HISTORY_MINUTE_ID&&(a.TrateDate=t.Request.TradeDate),t.HQDataType==dr.MULTIDAY_MINUTE_ID&&(a.DayCount=t.DayCount);var i=this.Script;Za.Execute(i,a,this.ErrorCallback)},this.RecvResultData=function(t,e){var a=e.Self,i=e.JSExecute,r=null;i.SymbolData.Data&&(r=i.SymbolData.Data.GetDate());var n={Out:t,Date:r,Stock:{Name:i.SymbolData.Name,Symbol:i.SymbolData.Symbol},Index:{Name:a.Name,ID:a.ID}};i.SymbolData.DataType==dr.MULTIDAY_MINUTE_ID||i.SymbolData.DataType==dr.MINUTE_ID?n.Time=i.SymbolData.Data.GetTime():i.SymbolData.DataType==dr.KLINE_ID&&Y.IsMinutePeriod(i.SymbolData.Period,!0)&&(n.Time=i.SymbolData.Data.GetTime()),a.FinishCallback&&a.FinishCallback(n,e.JSExecute)}}function ai(){}Object.defineProperty(e,"__esModule",{value:!0});var ii,ri=a(31),ni=r(ri),oi=a(79),si=(r(oi),a(88)),li=r(si),hi=a(91),ui=r(hi),ci=a(94),di=r(ci),fi=a(110),Ci=r(fi),pi=a(97),Di=r(pi),mi=a(32),vi=r(mi),gi=a(33),Si=r(gi),Ii=a(28),xi=r(Ii),Ti=a(12),Ai=r(Ti),bi={Chart:{Log:console.log},Complier:{Log:console.log},JSTable:{Log:console.log}};n.HttpReqeust=function(t){Ai.default.ajax({url:t.url,data:t.data,type:t.type,dataType:t.dataType,async:t.async,success:t.success,error:t.error})},n.HttpRequest=function(t){Ai.default.ajax({url:t.url,data:t.data,type:t.type,dataType:t.dataType,async:t.async,success:t.success,error:t.error})};var Ei={MINUTE_ID:101,MULTIDAY_MINUTE_ID:102,HISTORY_MINUTE_ID:103,KLINE_DAY_ID:0,KLINE_WEEK_ID:1,KLINE_TWOWEEK_ID:21,KLINE_MONTH_ID:2,KLINE_QUARTER_ID:9,KLINE_YEAR_ID:3,KLINE_MINUTE_ID:4,KLINE_5_MINUTE_ID:5,KLINE_15_MINUTE_ID:6,KLINE_30_MINUTE_ID:7,KLINE_60_MINUTE_ID:8},Fi=new o;if(s.AddIndex=function(t){for(var e in t)Fi.Add(t[e])},s.prototype.Get=function(t){var e=Fi.Get(t);if(e)return e;var a=this.DataMap.get(t);return a?a():null},s.prototype.Search=function(t){var e=[],a=new RegExp(t,"i");return this.DataMap.forEach(function(t,i){0!=i.indexOf("交易系统-")&&0!=i.indexOf("五彩K线-")&&i.search(a)>=0&&e.push(i)}),e},s.prototype.MA=function(){return{Name:"MA",Description:"均线",IsMainIndex:!0,StringFormat:2,Args:[{Name:"M1",Value:5},{Name:"M2",Value:10},{Name:"M3",Value:20}],Script:"MA1:MA(CLOSE,M1);\nMA2:MA(CLOSE,M2);\nMA3:MA(CLOSE,M3);"}},s.prototype.BOLL=function(){return{Name:"BOLL",Description:"布林线",IsMainIndex:!0,Args:[{Name:"M",Value:20}],Script:"BOLL:MA(CLOSE,M);\nUB:BOLL+2*STD(CLOSE,M);\nLB:BOLL-2*STD(CLOSE,M);"}},s.prototype.BOLL2=function(){return{Name:"BOLL2",Description:"布林线",IsMainIndex:!1,KLineType:0,Args:[{Name:"M",Value:20}],Script:"BOLL:MA(CLOSE,M);\nUB:BOLL+2*STD(CLOSE,M);\nLB:BOLL-2*STD(CLOSE,M);"}},s.prototype.BBI=function(){return{Name:"BBI",Description:"多空均线",IsMainIndex:!0,Args:[{Name:"M1",Value:3},{Name:"M2",Value:6},{Name:"M3",Value:12},{Name:"M4",Value:24}],Script:"BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;"}},s.prototype.DKX=function(){return{Name:"DKX",Description:"多空线",IsMainIndex:!1,Args:[{Name:"M",Value:10}],Script:"MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;\nDKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+\n16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+\n13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+\n10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+\n7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+\n4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;\nMADKX:MA(DKX,M);"}},s.prototype.MIKE=function(){return{Name:"MIKE",Description:"麦克支撑压力",IsMainIndex:!0,Args:[{Name:"N",Value:10}],Script:"HLC:=REF(MA((HIGH+LOW+CLOSE)/3,N),1);\nHV:=EMA(HHV(HIGH,N),3);\nLV:=EMA(LLV(LOW,N),3);\nSTOR:EMA(2*HV-LV,3);\nMIDR:EMA(HLC+HV-LV,3);\nWEKR:EMA(HLC*2-LV,3);\nWEKS:EMA(HLC*2-HV,3);\nMIDS:EMA(HLC-HV+LV,3);\nSTOS:EMA(2*LV-HV,3);"}},s.prototype.PBX=function(){return{Name:"PBX",Description:"瀑布线",IsMainIndex:!0,Args:[{Name:"M1",Value:4},{Name:"M2",Value:6},{Name:"M3",Value:9},{Name:"M4",Value:13},{Name:"M5",Value:18},{Name:"M6",Value:24}],Script:"PBX1:(EMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3;\nPBX2:(EMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3;\nPBX3:(EMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3;\nPBX4:(EMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3;\nPBX5:(EMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3;\nPBX6:(EMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;"}},s.prototype.ENE=function(){return{Name:"ENE",Description:"轨道线",IsMainIndex:!0,Args:[{Name:"N",Value:25},{Name:"M1",Value:6},{Name:"M2",Value:6}],Script:"UPPER:(1+M1/100)*MA(CLOSE,N);\nLOWER:(1-M2/100)*MA(CLOSE,N);\nENE:(UPPER+LOWER)/2;"}},s.prototype.MACD=function(){return{Name:"MACD",Description:"平滑异同平均",IsMainIndex:!1,Args:[{Name:"SHORT",Value:12},{Name:"LONG",Value:26},{Name:"MID",Value:9}],Script:"DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);\nDEA:EMA(DIF,MID);\nMACD:(DIF-DEA)*2,COLORSTICK;"}},s.prototype.KDJ=function(){return{Name:"KDJ",Description:"随机指标",IsMainIndex:!1,Args:[{Name:"N",Value:9},{Name:"M1",Value:3},{Name:"M2",Value:3}],Script:"RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;\nK:SMA(RSV,M1,1);\nD:SMA(K,M2,1);\nJ:3*K-2*D;"}},s.prototype.VOL=function(){return{Name:"VOL",Description:"成交量",IsMainIndex:!1,FloatPrecision:0,Args:[{Name:"M1",Value:5},{Name:"M2",Value:10}],Script:"VOL:VOL,VOLSTICK;\nMA1:MA(VOL,M1);\nMA2:MA(VOL,M2);"}},s.prototype.RSI=function(){return{Name:"RSI",Description:"相对强弱指标",IsMainIndex:!1,Args:[{Name:"N1",Value:6},{Name:"N2",Value:12},{Name:"N3",Value:24}],Script:"LC:=REF(CLOSE,1);\nRSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;\nRSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;\nRSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;"}},s.prototype.BRAR=function(){return{Name:"BRAR",Description:"情绪指标",IsMainIndex:!1,Args:[{Name:"N",Value:26}],Script:"BR:SUM(MAX(0,HIGH-REF(CLOSE,1)),N)/SUM(MAX(0,REF(CLOSE,1)-LOW),N)*100;\nAR:SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*100;"}},s.prototype.WR=function(){return{Name:"WR",Description:"威廉指标",IsMainIndex:!1,Args:[{Name:"N",Value:10},{Name:"N1",Value:6}],Script:"WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));\nWR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));"}},s.prototype.BIAS=function(){return{Name:"BIAS",Description:"乖离率",IsMainIndex:!1,Args:[{Name:"N1",Value:6},{Name:"N2",Value:12},{Name:"N3",Value:24}],Script:"BIAS1 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;\nBIAS2 :(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;\nBIAS3 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;"}},s.prototype.OBV=function(){return{Name:"OBV",Description:"累积能量线",IsMainIndex:!1,Args:[{Name:"M",Value:30}],Script:"VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);\nOBV:SUM(IF(CLOSE==REF(CLOSE,1),0,VA),0);\nMAOBV:MA(OBV,M);"}},s.prototype.DMI=function(){return{Name:"DMI",Description:"趋向指标",IsMainIndex:!1,Args:[{Name:"N",Value:14},{Name:"MM",Value:6}],Script:"MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);\nHD :=HIGH-REF(HIGH,1);\nLD :=REF(LOW,1)-LOW;\nDMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);\nDMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);\nPDI: DMP*100/MTR;\nMDI: DMM*100/MTR;\nADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);\nADXR:EXPMEMA(ADX,MM);"}},s.prototype.CR=function(){return{Name:"CR",Description:"带状能量线",IsMainIndex:!1,Args:[{Name:"N",Value:26},{Name:"M1",Value:10},{Name:"M2",Value:20},{Name:"M3",Value:40},{Name:"M4",Value:62}],Script:"MID:=REF(HIGH+LOW,1)/2;\nCR:SUM(MAX(0,HIGH-MID),N)/SUM(MAX(0,MID-LOW),N)*100;\nMA1:REF(MA(CR,M1),M1/2.5+1);\nMA2:REF(MA(CR,M2),M2/2.5+1);\nMA3:REF(MA(CR,M3),M3/2.5+1);\nMA4:REF(MA(CR,M4),M4/2.5+1);"}},s.prototype.PSY=function(){return{Name:"PSY",Description:"心理线",IsMainIndex:!1,Args:[{Name:"N",Value:12},{Name:"M",Value:6}],Script:"PSY:COUNT(CLOSE>REF(CLOSE,1),N)/N*100;\rPSYMA:MA(PSY,M);"}},s.prototype.CCI=function(){return{Name:"CCI",Description:"商品路径指标",IsMainIndex:!1,Args:[{Name:"N",Value:14}],Script:"TYP:=(HIGH+LOW+CLOSE)/3;\nCCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));"}},s.prototype.DMA=function(){return{Name:"DMA",Description:"平均差",IsMainIndex:!1,Args:[{Name:"N1",Value:10},{Name:"N2",Value:50},{Name:"M",Value:10}],Script:"DIF:MA(CLOSE,N1)-MA(CLOSE,N2);\nDIFMA:MA(DIF,M);"}},s.prototype.TRIX=function(){return{Name:"TRIX",Description:"三重指数平均线",IsMainIndex:!1,Args:[{Name:"N",Value:12},{Name:"M",Value:9}],Script:"MTR:=EMA(EMA(EMA(CLOSE,N),N),N);\nTRIX:(MTR-REF(MTR,1))/REF(MTR,1)*100;\nMATRIX:MA(TRIX,M) ;"}},s.prototype.VR=function(){return{Name:"VR",Description:"成交量变异率",IsMainIndex:!1,Args:[{Name:"N",Value:26},{Name:"M",Value:6}],Script:"TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N);\nTL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);\nTQ:=SUM(IF(CLOSE==REF(CLOSE,1),VOL,0),N);\nVR:100*(TH*2+TQ)/(TL*2+TQ);\nMAVR:MA(VR,M);"}},s.prototype.EMV=function(){return{Name:"EMV",Description:"简易波动指标",IsMainIndex:!1,Args:[{Name:"N",Value:14},{Name:"M",Value:9}],Script:"VOLUME:=MA(VOL,N)/VOL;\nMID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);\nEMV:MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,N),N);\nMAEMV:MA(EMV,M);"}},s.prototype.ROC=function(){return{Name:"ROC",Description:"变动率指标",IsMainIndex:!1,Args:[{Name:"N",Value:12},{Name:"M",Value:6}],Script:"ROC:100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N);\nMAROC:MA(ROC,M);"}},s.prototype.MTM=function(){return{Name:"MTM",Description:"动量线",IsMainIndex:!1,Args:[{Name:"N",Value:12},{Name:"M",Value:6}],Script:"MTM:CLOSE-REF(CLOSE,N);\nMAMTM:MA(MTM,M);"}},s.prototype.FSL=function(){return{Name:"FSL",Description:"分水岭",IsMainIndex:!1,Args:[],Script:"SWL:(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;\nSWS:DMA(EMA(CLOSE,12),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL))));"}},s.prototype.CYR=function(){return{Name:"CYR",Description:"市场强弱",IsMainIndex:!1,Args:[{Name:"N",Value:13},{Name:"M",Value:5}],Script:"DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);\nCYR:(DIVE/REF(DIVE,1)-1)*100;\nMACYR:MA(CYR,M);"}},s.prototype.MASS=function(){return{Name:"MASS",Description:"市场强弱",IsMainIndex:!1,Args:[{Name:"N1",Value:9},{Name:"N2",Value:25},{Name:"M",Value:6}],Script:"MASS:SUM(MA(HIGH-LOW,N1)/MA(MA(HIGH-LOW,N1),N1),N2);\nMAMASS:MA(MASS,M);"}},s.prototype.WAD=function(){return{Name:"WAD",Description:"威廉多空力度线",IsMainIndex:!1,Args:[{Name:"M",Value:30}],Script:"MIDA:=CLOSE-MIN(REF(CLOSE,1),LOW);\nMIDB:=IF(CLOSE<REF(CLOSE,1),CLOSE-MAX(REF(CLOSE,1),HIGH),0);\nWAD:SUM(IF(CLOSE>REF(CLOSE,1),MIDA,MIDB),0);\nMAWAD:MA(WAD,M);"}},s.prototype.CHO=function(){return{Name:"CHO",Description:"佳庆指标",IsMainIndex:!1,Args:[{Name:"N1",Value:10},{Name:"N2",Value:20},{Name:"M",Value:6}],Script:"MID:=SUM(VOL*(2*CLOSE-HIGH-LOW)/(HIGH+LOW),0);\nCHO:MA(MID,N1)-MA(MID,N2);\nMACHO:MA(CHO,M);"}},s.prototype.ADTM=function(){return{Name:"ADTM",Description:"动态买卖气指标",IsMainIndex:!1,Args:[{Name:"N",Value:23},{Name:"M",Value:8}],Script:"DTM:=IF(OPEN<=REF(OPEN,1),0,MAX((HIGH-OPEN),(OPEN-REF(OPEN,1))));\nDBM:=IF(OPEN>=REF(OPEN,1),0,MAX((OPEN-LOW),(OPEN-REF(OPEN,1))));\nSTM:=SUM(DTM,N);\nSBM:=SUM(DBM,N);\nADTM:IF(STM>SBM,(STM-SBM)/STM,IF(STM==SBM,0,(STM-SBM)/SBM));\nMAADTM:MA(ADTM,M);"}},s.prototype.HSL=function(){return{Name:"HSL",Description:"换手线",IsMainIndex:!1,Args:[{Name:"N",Value:5}],Script:"HSL:IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100);\nMAHSL:MA(HSL,N);"}},s.prototype.BIAS36=function(){return{Name:"BIAS36",Description:"三六乖离",IsMainIndex:!1,Args:[{Name:"M",Value:6}],Script:"BIAS36:MA(CLOSE,3)-MA(CLOSE,6);\nBIAS612:MA(CLOSE,6)-MA(CLOSE,12);\nMABIAS:MA(BIAS36,M);"}},s.prototype.BIAS_QL=function(){return{Name:"BIAS_QL",Description:"乖离率-传统版",IsMainIndex:!1,Args:[{Name:"N",Value:6},{Name:"M",Value:6}],Script:"BIAS :(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;\nBIASMA :MA(BIAS,M);"}},s.prototype.DPO=function(){return{Name:"DPO",Description:"区间震荡线",IsMainIndex:!1,Args:[{Name:"N",Value:20},{Name:"M",Value:6}],Script:"DPO:CLOSE-REF(MA(CLOSE,N),N/2+1);\nMADPO:MA(DPO,M);"}},s.prototype.OSC=function(){return{Name:"OSC",Description:"变动速率线",IsMainIndex:!1,Args:[{Name:"N",Value:20},{Name:"M",Value:6}],Script:"OSC:100*(CLOSE-MA(CLOSE,N));\nMAOSC:EXPMEMA(OSC,M);"}},s.prototype.ATR=function(){return{Name:"ATR",Description:"真实波幅",IsMainIndex:!1,Args:[{Name:"N",Value:14}],Script:"MTR:MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));\nATR:MA(MTR,N);"}},s.prototype.NVI=function(){return{Name:"ATR",Description:"负成交量",IsMainIndex:!1,Args:[{Name:"N",Value:72}],Script:"NVI:100*MULAR(IF(V<REF(V,1),C/REF(C,1),1),0);\nMANVI:MA(NVI,N);"}},s.prototype.PVI=function(){return{Name:"PVI",Description:"正成交量",IsMainIndex:!1,Args:[{Name:"N",Value:72}],Script:"NVI:100*MULAR(IF(V>REF(V,1),C/REF(C,1),1),0);\nMANVI:MA(NVI,N);"}},s.prototype.UOS=function(){return{Name:"UOS",Description:"终极指标",IsMainIndex:!1,Args:[{Name:"N1",Value:7},{Name:"N2",Value:14},{Name:"N3",Value:28},{Name:"M",Value:6}],Script:"TH:=MAX(HIGH,REF(CLOSE,1));\nTL:=MIN(LOW,REF(CLOSE,1));\nACC1:=SUM(CLOSE-TL,N1)/SUM(TH-TL,N1);\nACC2:=SUM(CLOSE-TL,N2)/SUM(TH-TL,N2);\nACC3:=SUM(CLOSE-TL,N3)/SUM(TH-TL,N3);\nUOS:(ACC1*N2*N3+ACC2*N1*N3+ACC3*N1*N2)*100/(N1*N2+N1*N3+N2*N3);\nMAUOS:EXPMEMA(UOS,M);"}},s.prototype.CYW=function(){return{Name:"CYW",Description:"主力控盘",IsMainIndex:!1,Args:[],Script:"VAR1:=CLOSE-LOW;\nVAR2:=HIGH-LOW;\nVAR3:=CLOSE-HIGH;\nVAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);\nCYW: SUM(VAR4,10)/10000, COLORSTICK;"}},s.prototype.LON=function(){return{Name:"LON",Description:"龙系长线",IsMainIndex:!1,Args:[{Name:"N",Value:10}],Script:"LC := REF(CLOSE,1);\nVID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100);\nRC := (CLOSE-LC)*VID;\nLONG := SUM(RC,0);\nDIFF := SMA(LONG,10,1);\nDEA := SMA(LONG,20,1);\nLON : DIFF-DEA;\nLONMA : MA(LON,10);\nLONT : LON, COLORSTICK;"}},s.prototype.NDB=function(){return{Name:"NDB",Description:"脑电波",IsMainIndex:!1,Args:[{Name:"P1",Value:5},{Name:"P2",Value:10}],Script:"HH:=IF(C/REF(C,1)>1.098 AND L>REF(H,1),2*C-REF(C,1)-H,2*C-H-L);\nV1:= BARSCOUNT(C) - 1;\nV2:= 2 * REF(C, V1) - REF(H, V1) - REF(L, V1);\nDK: SUM(HH, 0) + V2;\nMDK5: MA(DK, P1);\nMDK10: MA(DK, P2);"}},s.prototype.SKDJ=function(){return{Name:"SKDJ",Description:"慢速随机指标",IsMainIndex:!1,Args:[{Name:"N",Value:9},{Name:"M",Value:3}],Script:"LOWV:=LLV(LOW,N);\nHIGHV:=HHV(HIGH,N);\nRSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);\nK:EMA(RSV,M);\nD:MA(K,M);"}},s.prototype.KD=function(){return{Name:"KD",Description:"随机指标KD",IsMainIndex:!1,Args:[{Name:"N",Value:9},{Name:"M1",Value:3},{Name:"M2",Value:3}],Script:"RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;\nK:SMA(RSV,M1,1);\nD:SMA(K,M2,1);"}},s.prototype.FKX=function(){return{Name:"FKX",Description:"反K线",IsMainIndex:!0,Args:[],Script:"DRAWKLINE(-LOW, -OPEN, -HIGH, -CLOSE);"}},s.prototype.DKCOL=function(){return{Name:"DKCOL",Description:"多空能量柱(适用于分时主图)",IsMainIndex:!0,Args:[{Name:"N",Value:5}],Script:"FF:=(C-REF(C,N))/REF(C,N);\nSTICKLINE(FF>0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORRED;\nSTICKLINE(FF<0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORGREEN;"}},s.prototype.UDL=function(){return{Name:"UDL",Description:"引力线",IsMainIndex:!1,Args:[{Name:"N1",Value:3},{Name:"N2",Value:5},{Name:"N3",Value:10},{Name:"N4",Value:20},{Name:"M",Value:6}],Script:"UDL:(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;\nMAUDL:MA(UDL,M);"}},s.prototype.MFI=function(){return{Name:"MFI",Description:"资金流量指标",IsMainIndex:!1,Args:[{Name:"N",Value:14},{Name:"N2",Value:6}],Script:"TYP := (HIGH + LOW + CLOSE)/3;\nV1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),N);\nMFI:100-(100/(1+V1));"}},s.prototype.LWR=function(){return{Name:"LWR",Description:"LWR威廉指标",IsMainIndex:!1,Args:[{Name:"N",Value:9},{Name:"M1",Value:3},{Name:"M2",Value:3}],Script:"RSV:= (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;\nLWR1:SMA(RSV,M1,1);\nLWR2:SMA(LWR1,M2,1);"}},s.prototype.MARSI=function(){return{Name:"MARSI",Description:"相对强弱平均线",IsMainIndex:!1,Args:[{Name:"M1",Value:10},{Name:"M2",Value:6}],Script:"DIF:=CLOSE-REF(CLOSE,1);\nVU:=IF(DIF>=0,DIF,0);\nVD:=IF(DIF<0,-DIF,0);\nMAU1:=MEMA(VU,M1);\nMAD1:=MEMA(VD,M1);\nMAU2:=MEMA(VU,M2);\nMAD2:=MEMA(VD,M2);\nRSI10:MA(100*MAU1/(MAU1+MAD1),M1);\nRSI6:MA(100*MAU2/(MAU2+MAD2),M2);"}},s.prototype.CYD=function(){return{Name:"CYD",Description:"承接因子",IsMainIndex:!1,Args:[{Name:"N",Value:21}],Script:"CYDS:WINNER(CLOSE)/(VOL/CAPITAL);\nCYDN:WINNER(CLOSE)/MA(VOL/CAPITAL,N);"}},s.prototype.CYF=function(){return{Name:"CYF",Description:"市场能量",IsMainIndex:!1,Args:[{Name:"N",Value:21}],Script:"CYF:100-100/(1+EMA(HSL,N));"}},s.prototype.TAPI=function(){return{Name:"TAPI",Description:"加权指数成交值",IsMainIndex:!1,Args:[{Name:"M",Value:6}],Script:"TAPI:AMOUNT/INDEXC;\nMATAIP:MA(TAPI,M);"}},s.prototype.VMACD=function(){return{Name:"VMACD",Description:"量平滑异同平均",IsMainIndex:!1,Args:[{Name:"SHORT",Value:12},{Name:"LONG",Value:26},{Name:"MID",Value:9}],Script:"DIF:EMA(VOL,SHORT)-EMA(VOL,LONG);\nDEA:EMA(DIF,MID);\nMACD:DIF-DEA,COLORSTICK;"}},s.prototype.QACD=function(){return{Name:"QACD",Description:"快速异同平均",IsMainIndex:!1,Args:[{Name:"N1",Value:12},{Name:"N2",Value:26},{Name:"M",Value:9}],Script:"DIF:EMA(CLOSE,N1)-EMA(CLOSE,N2);\nMACD:EMA(DIF,M);\nDDIF:DIF-MACD;"}},s.prototype.VPT=function(){return{Name:"VPT",Description:"量价曲线",IsMainIndex:!1,Args:[{Name:"N",Value:51},{Name:"M",Value:6}],Script:"VPT:SUM(VOL*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),N);\nMAVPT:MA(VPT,M);"}},s.prototype.WVAD=function(){return{Name:"WVAD",Description:"威廉变异离散量",IsMainIndex:!1,Args:[{Name:"N",Value:24},{Name:"M",Value:6}],Script:"WVAD:SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,N)/10000;\nMAWVAD:MA(WVAD,M);"}},s.prototype.DBQR=function(){return{Name:"WVAD",Description:"对比强弱",IsMainIndex:!1,Args:[{Name:"N",Value:5},{Name:"M1",Value:10},{Name:"M2",Value:20},{Name:"M3",Value:60}],Script:"ZS:(INDEXC-REF(INDEXC,N))/REF(INDEXC,N);\nGG:(CLOSE-REF(CLOSE,N))/REF(CLOSE,N);\nMADBQR1:MA(GG,M1);\nMADBQR2:MA(GG,M2);\nMADBQR3:MA(GG,M3);"}},s.prototype.JS=function(){return{Name:"JS",Description:"加速线",IsMainIndex:!1,Args:[{Name:"N",Value:5},{Name:"M1",Value:5},{Name:"M2",Value:10},{Name:"M3",Value:20}],Script:"JS:100*(CLOSE-REF(CLOSE,N))/(N*REF(CLOSE,N));\nMAJS1:MA(JS,M1);\nMAJS2:MA(JS,M2);\nMAJS3:MA(JS,M3);"}},s.prototype.CYE=function(){return{Name:"CYE",Description:"市场趋势",IsMainIndex:!1,Args:[],Script:"MAL:=MA(CLOSE,5);\nMAS:=MA(MA(CLOSE,20),5);\nCYEL:(MAL-REF(MAL,1))/REF(MAL,1)*100;\nCYES:(MAS-REF(MAS,1))/REF(MAS,1)*100;"}},s.prototype.QR=function(){return{Name:"QR",Description:"强弱指标",IsMainIndex:!1,Args:[{Name:"N",Value:21}],Script:"个股: (CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*100; \n大盘: (INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*100; \n强弱值:EMA(个股-大盘,2),COLORSTICK;"}},s.prototype.GDX=function(){return{Name:"GDX",Description:"轨道线",IsMainIndex:!1,Args:[{Name:"N",Value:30},{Name:"M",Value:9}],Script:"AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N); \n轨道:DMA(CLOSE,AA);\n压力线:(1+M/100)*轨道; \n支撑线:(1-M/100)*轨道;"}},s.prototype.JLHB=function(){return{Name:"JLHB",Description:"绝路航标",IsMainIndex:!1,Args:[{Name:"N",Value:7},{Name:"M",Value:5}],Script:"VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80; \nB:SMA(VAR1,N,1); \nVAR2:SMA(B,M,1); \n绝路航标:IF(CROSS(B,VAR2) AND B<40,50,0);"}},s.prototype.PCNT=function(){return{Name:"PCNT",Description:"幅度比",IsMainIndex:!1,Args:[{Name:"M",Value:5}],Script:"PCNT:(CLOSE-REF(CLOSE,1))/CLOSE*100;\nMAPCNT:EXPMEMA(PCNT,M);"}},s.prototype.BTX=function(){return{Name:"BTX",Description:"宝塔线",IsMainIndex:!1,Args:[],Script:"B1:=REF(C,1);\nB2:= REF(C, 2);\nSS:= IF(C > REF(C, 1) AND REF(C, 1) >= REF(C, 2), 1, IF(C < REF(C, 1) AND REF(C, 1) <= REF(C, 2), -1, IF(C > REF(C, 2) AND REF(C, 2) > REF(C, 1), 2, IF(C < REF(C, 2) AND REF(C, 2) < REF(C, 1), -2, 0))));\nSM:= IF(REF(SS, 1) <> 0, REF(SS, 1), IF(REF(SS, 2) <> 0, REF(SS, 2), IF(REF(SS, 3) <> 0, REF(SS, 3), IF(REF(SS, 5) <> 0, REF(SS, 5), IF(REF(SS, 6) <> 0, REF(SS, 6), IF(REF(SS, 7) <> 0, REF(SS, 7), 0))))));\nMC:= IF(REF(SS, 1) <> 0, B2, IF(SM > 0, MIN(B1, B2), MAX(B1, B2)));\nTOW1:= IF(C > REF(C, 1), C, REF(C, 1));\nTOW2:= IF((SS == -1 OR SS == -2) AND SM > 0, B2, TOW1);\nTOWER:= IF(TOW1 > TOW2, TOW1, TOW2);\nSTICKLINE(SS == 1 OR SM >= 1 AND SS == 0, B1, C, 10, 1), COLORRED;\nSTICKLINE(SS == -1 OR SM <= -1 AND SS == 0, B1, C, 10, 0), COLORCYAN;\nSTICKLINE(SS == 2, B2, C, 10, 1), COLORRED;\nSTICKLINE(SS == -2, B2, C, 10, 0), COLORCYAN;\nSTICKLINE((SS == -1 OR SS == -2) AND SM > 0, B2, B1, 10, 1), COLORRED;\nSTICKLINE((SS == 1 OR SS == 2) AND SM < 0, B2, B1, 10, 0), COLORCYAN;"}},s.prototype.AMO=function(){return{Name:"AMO",Description:"成交金额",IsMainIndex:!1,Args:[{Name:"M1",Value:5},{Name:"M2",Value:10}],Script:"AMOW:AMOUNT/10000.0,VOLSTICK;\nAMO1:MA(AMOW,M1);\nAMO2:MA(AMOW,M2);"}},s.prototype.VRSI=function(){return{Name:"VRSI",Description:"相对强弱量",IsMainIndex:!1,Args:[{Name:"N1",Value:6},{Name:"N2",Value:12},{Name:"N3",Value:24}],Script:"LC:=REF(VOL,1);\nRSI1:SMA(MAX(VOL-LC,0),N1,1)/SMA(ABS(VOL-LC),N1,1)*100;\nRSI2:SMA(MAX(VOL-LC,0),N2,1)/SMA(ABS(VOL-LC),N2,1)*100;\nRSI3:SMA(MAX(VOL-LC,0),N3,1)/SMA(ABS(VOL-LC),N3,1)*100;"}},s.prototype.HSCOL=function(){return{Name:"HSCOL",Description:"换手柱",IsMainIndex:!1,Args:[{Name:"N",Value:5}],Script:"HSCOL:IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100),VOLSTICK;\nMAHSL:MA(HSCOL,N);"}},s.prototype.DBQRV=function(){return{Name:"DBQRV",Description:"对比强弱量(需下载日线)",IsMainIndex:!1,Args:[{Name:"N",Value:5}],Script:"ZS:(INDEXV-REF(INDEXV,N))/REF(INDEXV,N);\nGG:(VOL-REF(VOL,N))/REF(VOL,N);"}},s.prototype.DBLB=function(){return{Name:"DBLB",Description:"对比量比(需下载日线)",IsMainIndex:!1,Args:[{Name:"N",Value:5},{Name:"M",Value:5}],Script:"GG:=VOL/SUM(REF(VOL,1),N);\nZS:=INDEXV/SUM(REF(INDEXV,1),N);\nDBLB:GG/ZS;\nMADBLB:MA(DBLB,M);"}},s.prototype.ACD=function(){return{Name:"ACD",Description:"升降线",IsMainIndex:!1,Args:[{Name:"M",Value:20}],Script:"LC:=REF(CLOSE,1);\nDIF:=CLOSE-IF(CLOSE>LC,MIN(LOW,LC),MAX(HIGH,LC));\nACD:SUM(IF(CLOSE==LC,0,DIF),0);\nMAACD:EXPMEMA(ACD,M);"}},s.prototype.EXPMA=function(){return{Name:"EXPMA",Description:"指数平均线",IsMainIndex:!0,Args:[{Name:"M1",Value:12},{Name:"M2",Value:50}],Script:"EXP1:EMA(CLOSE,M1);\nEXP2:EMA(CLOSE,M2);"}},s.prototype.EXPMA_S=function(){return{Name:"EXPMA_S",Description:"指数平均线-副图",IsMainIndex:!1,Args:[{Name:"M1",Value:12},{Name:"M2",Value:50}],Script:"EXP1:EMA(CLOSE,M1);\nEXP2:EMA(CLOSE,M2);"}},s.prototype.HMA=function(){return{Name:"HMA",Description:"高价平均线",IsMainIndex:!0,Args:[{Name:"M1",Value:6},{Name:"M2",Value:12},{Name:"M3",Value:30},{Name:"M4",Value:72},{Name:"M5",Value:144}],Script:"HMA1:MA(HIGH,M1);\nHMA2:MA(HIGH,M2);\nHMA3:MA(HIGH,M3);\nHMA4:MA(HIGH,M4);\nHMA5:MA(HIGH,M5);"}},s.prototype.LMA=function(){return{Name:"LMA",Description:"低价平均线",IsMainIndex:!0,Args:[{Name:"M1",Value:6},{Name:"M2",Value:12},{Name:"M3",Value:30},{Name:"M4",Value:72},{Name:"M5",Value:144}],Script:"LMA1:MA(LOW,M1);\nLMA2:MA(LOW,M2);\nLMA3:MA(LOW,M3);\nLMA4:MA(LOW,M4);\nLMA5:MA(LOW,M5);"}},s.prototype.VMA=function(){return{Name:"VMA",Description:"变异平均线",IsMainIndex:!0,Args:[{Name:"M1",Value:6},{Name:"M2",Value:12},{Name:"M3",Value:30},{Name:"M4",Value:72},{Name:"M5",Value:144}],Script:"VV:=(HIGH+OPEN+LOW+CLOSE)/4;\nVMA1:MA(VV,M1);\nVMA2:MA(VV,M2);\nVMA3:MA(VV,M3);\nVMA4:MA(VV,M4);\nVMA5:MA(VV,M5);"}},s.prototype.AMV=function(){return{Name:"AMV",Description:"成本价均线",IsMainIndex:!1,Args:[{Name:"M1",Value:6},{Name:"M2",Value:12},{Name:"M3",Value:30},{Name:"M4",Value:72},{Name:"M5",Value:144}],Script:"AMOV:=VOL*(OPEN+CLOSE)/2;\nAMV1:SUM(AMOV,M1)/SUM(VOL,M1);\nAMV2:SUM(AMOV,M2)/SUM(VOL,M2);\nAMV3:SUM(AMOV,M3)/SUM(VOL,M3);\nAMV4:SUM(AMOV,M4)/SUM(VOL,M4);"}},s.prototype.BBIBOLL=function(){return{Name:"BBIBOLL",Description:"多空布林线",IsMainIndex:!0,Args:[{Name:"N",Value:11},{Name:"M",Value:6}],Script:"CV:=CLOSE;\nBBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;\nUPR:BBIBOLL+M*STD(BBIBOLL,N);\nDWN:BBIBOLL-M*STD(BBIBOLL,N);"}},s.prototype.ALLIGAT=function(){return{Name:"ALLIGAT",Description:"鳄鱼线",IsMainIndex:!0,Args:[],Script:"NN:=(H+L)/2;\n上唇:REF(MA(NN,5),3),COLOR40FF40;\n牙齿:REF(MA(NN,8),5),COLOR0000C0;\n下颚:REF(MA(NN,13),8),COLORFF4040;"}},s.prototype.ZX=function(){return{Name:"ZX",Description:"重心线",IsMainIndex:!1,Args:[],Script:"AV:0.01*AMOUNT/VOL;"}},s.prototype.XS=function(){return{Name:"XS",Description:"薛斯通道",IsMainIndex:!0,Args:[{Name:"N",Value:13}],Script:"VAR2:=CLOSE*VOL;\nVAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,N);\nSUP:1.06*VAR3;\nSDN:VAR3*0.94;\nVAR4:=EMA(CLOSE,9);\nLUP:EMA(VAR4*1.14,5);\nLDN:EMA(VAR4*0.86,5);"}},s.prototype.XS2=function(){return{Name:"XS2",Description:"薛斯通道II",IsMainIndex:!0,Args:[{Name:"N",Value:102},{Name:"M",Value:7}],Script:"AA:=MA((2*CLOSE+HIGH+LOW)/4,5); \n通道1:AA*N/100; \n通道2:AA*(200-N)/100; \nCC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); \nDD:=DMA(CLOSE,CC); \n通道3:(1+M/100)*DD; \n通道4:(1-M/100)*DD;"}},s.prototype.SG_XDT=function(){return{Name:"SG-XDT",Description:"心电图(需下载日线)",IsMainIndex:!1,Args:[{Name:"P1",Value:5},{Name:"P2",Value:10}],Script:"QR:CLOSE/INDEXC*1000;\nMQR1:MA(QR,5);\nMQR2:MA(QR,10);"}},s.prototype.SG_SMX=function(){return{Name:"SG-SMX",Description:"生命线(需下载日线)",IsMainIndex:!1,Args:[{Name:"N",Value:50}],Script:"H1:=HHV(HIGH,N);\nL1:=LLV(LOW,N);\nH2:=HHV(INDEXH,N);\nL2:=LLV(INDEXL,N);\nZY:=CLOSE/INDEXC*2000;\nZY1:EMA(ZY,3);\nZY2:EMA(ZY,17);\nZY3:EMA(ZY,34);"}},s.prototype.SG_LB=function(){return{Name:"SG-LB",Description:"量比(需下载日线)",IsMainIndex:!1,Args:[],Script:"ZY2:=VOL/INDEXV*1000;\n量比:ZY2;\nMA5:MA(ZY2,5);\nMA10:MA(ZY2,10);"}},s.prototype.SG_PF=function(){return{Name:"SG-PF",Description:"强势股评分(需下载日线)",IsMainIndex:!1,Args:[],Script:"ZY1:=CLOSE/INDEXC*1000;\nA1:=IF(ZY1>HHV(ZY1,3),10,0);\nA2:=IF(ZY1>HHV(ZY1,5),15,0);\nA3:=IF(ZY1>HHV(ZY1,10),20,0);\nA4:=IF(ZY1>HHV(ZY1,2),10,0);\nA5:=COUNT(ZY1>REF(ZY1,1) ,9)*5;\n强势股评分:A1+A2+A3+A4+A5;"}},s.prototype.RAD=function(){return{Name:"RAD",Description:"威力雷达(需下载日线)",IsMainIndex:!1,Args:[{Name:"D",Value:3},{Name:"S",Value:30},{Name:"M",Value:30}],Script:"SM:=(OPEN+HIGH+CLOSE+LOW)/4;\nSMID:=MA(SM,D);\nIM:=(INDEXO+INDEXH+INDEXL+INDEXC)/4;\nIMID:=MA(IM,D);\nSI1:=(SMID-REF(SMID,1))/SMID;\nII:=(IMID-REF(IMID,1))/IMID;\nRADER1:SUM((SI1-II)*2,S)*1000;\nRADERMA:SMA(RADER1,M,1);"}},s.prototype.SHT=function(){return{Name:"SHT",Description:"龙系短线",IsMainIndex:!1,Args:[{Name:"N",Value:5}],Script:"VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);\nVAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;\nMY: VAR2*(1+VAR1);\nSHT: MY, COLORSTICK;\nSHTMA: MA(SHT,N);"}},s.prototype.ZLJC=function(){return{Name:"ZLJC",Description:"主力进出",IsMainIndex:!1,Args:[],Script:"VAR1:=(CLOSE+LOW+HIGH)/3; \nVAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0); \nVAR3:=EMA(VAR2,1); \nJCS:VAR3; \nJCM:MA(VAR3,12); \nJCL:MA(VAR3,26);"}},s.prototype.ZLMM=function(){return{Name:"ZLMM",Description:"主力买卖",IsMainIndex:!1,Args:[],Script:"LC :=REF(CLOSE,1);\nRSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;\nRSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;\nMMS:MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);\nMMM:EMA(MMS,8);\nMML:MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,5);"}},s.prototype.SLZT=function(){return{Name:"SLZT",Description:"神龙在天",IsMainIndex:!1,Args:[],Script:"白龙: MA(CLOSE,125);\n黄龙: 白龙+2*STD(CLOSE,170);\n紫龙: 白龙-2*STD(CLOSE,145);\n青龙: SAR(125,1,7), LINESTICK;\nVAR2:=HHV(HIGH,70);\nVAR3:=HHV(HIGH,20);\n红龙: VAR2*0.83;\n蓝龙: VAR3*0.91;"}},s.prototype.ADVOL=function(){return{Name:"ADVOL",Description:"龙系离散量",IsMainIndex:!1,Args:[],Script:"A:=SUM(((CLOSE-LOW)-(HIGH-CLOSE))*VOL/10000/(HIGH-LOW),0);\nADVOL:A;\nMA1:MA(A,30);\nMA2:MA(MA1,100);"}},s.prototype.CYC=function(){return{Name:"CYC",Description:"成本均线",IsMainIndex:!0,Args:[{Name:"P1",Value:5},{Name:"P2",Value:13},{Name:"P3",Value:34}],Script:"JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));\nDDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);\nJJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));\nCYC1:IF(JJJT,0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((HIGH+LOW+CLOSE)/3,P1));\nCYC2:IF(JJJT,0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((HIGH+LOW+CLOSE)/3,P2));\nCYC3:IF(JJJT,0.01*EMA(AMOUNT,P3)/EMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3));\nCYC4:IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));"}},s.prototype.CYS=function(){return{Name:"CYS",Description:"市场盈亏",IsMainIndex:!1,Args:[],Script:"CYC13:EMA(AMOUNT,13)/EMA(VOL,13);\nCYS:(CLOSE-CYC13)/CYC13*100;"}},s.prototype.CYQKL=function(){return{Name:"CYQKL",Description:"博弈K线长度",IsMainIndex:!1,Args:[],Script:"KL:100*(WINNER(CLOSE)-WINNER(OPEN));"}},s.prototype.SCR=function(){return{Name:"SCR",Description:"筹码集中度",IsMainIndex:!1,Args:[{Name:"P1",Value:90}],Script:"A:=P1+(100-P1)/2;\nB:=(100-P1)/2;\nCC:=COST(A);\nDD:=COST(B);\nSCR:(CC-DD)/(CC+DD)*100/2;"}},s.prototype.ASR=function(){return{Name:"ASR",Description:"浮筹比例",IsMainIndex:!1,Args:[],Script:"ASR:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;"}},s.prototype.SAR=function(){return{Name:"SAR",Description:"抛物转向",IsMainIndex:!0,Args:[{Name:"P",Value:10},{Name:"STEP",Value:2},{Name:"MAXP",Value:20}],Script:"S:SAR(P,STEP,MAXP),CIRCLEDOT;"}},s.prototype.TJCJL=function(){return{Name:"太极成交量",Description:"太极成交量",IsMainIndex:!0,Args:[],Script:"总手:VOL,NODRAW;\nZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);\nV5:=MA(V,5);\nV12:=MA(V,12);\nV34:=MA(V,34);\nC6:=MA(C,6);\nSTICKLINE(VOL,0,VOL,10,0),COLORLIGRAY;\nSTICKLINE(CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,VOL,10,0),COLORRED;\nSTICKLINE(CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,0,VOL,10,0),COLORGREEN;\nSTICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,0,VOL,10,0),COLORYELLOW;\nSTICKLINE(VOL<MA(VOL,5)/2 AND V<V12/2,0,VOL,10,0),COLORBLUE;\nSTICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,VOL*0.5,0,10,0),COLORRED;\nSTICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,VOL*0.5,0,10,0),COLORRED;"}},s.prototype.Dragon4_Main=function(){return{Name:"飞龙四式",Description:"飞龙四式",IsMainIndex:!0,Args:[{Name:"N1",Value:5},{Name:"N2",Value:10},{Name:"N3",Value:50},{Name:"N4",Value:60}],Script:"蜻蜓点水:=EMA(CLOSE,N1),COLORGRAY;\n魔界:=EMA(CLOSE,N2),COLORGREEN;\n水:=EMA(CLOSE,N3),COLORRED;\nDRAWKLINE(HIGH,OPEN,LOW,CLOSE);\n生命线:MA(CLOSE,N4),COLORBLUE,LINETHICK2;\nDRAWBAND(魔界,'RGB(186,225,250)',水,'RGB(253,194,124)');\nDRAWBAND(蜻蜓点水,'RGB(128,138,135)',魔界,'RGB(0,0,255)');"}},s.prototype.Dragon4_Fig=function(){return{Name:"飞龙四式",Description:"飞龙四式",IsMainIndex:!1,Args:[],Script:"倍:VOL>=REF(V,1)*1.90 AND C>REF(C,1),COLORYELLOW;\n低:VOL<REF(LLV(VOL,13),1),COLORGREEN;\n地:VOL<REF(LLV(VOL,100),1),COLORMAGENTA; \n平:=ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,NODRAW,COLORWHITE;\n倍缩:VOL<=REF(V,1)*0.5,COLORFF8000;\n梯量:COUNT(V>REF(V,1),3)==3 AND COUNT(C>O,3)==3,COLORBROWN;\n缩量涨:COUNT(C>REF(C,1),2)==2 AND COUNT(V<REF(V,1),2)==2,COLORBLUE;\nSTICKLINE(C>=REF(C,1),V,0,2,0),COLORRED;\nSTICKLINE(C<REF(C,1),V,0,2,0),COLORGREEN;\nSTICKLINE(倍,0,V,2,0),COLORYELLOW;\nSTICKLINE(低,0,V,2,0),COLORGREEN;\nSTICKLINE(地,0,V,2,0),COLORLIMAGENTA;\nSTICKLINE(平,0,V,2,0),COLORGRAY;\nSTICKLINE(倍缩,0,V,2,0),COLORFF8000;\nSTICKLINE(梯量,0,V,2,0),COLORBROWN;\nSTICKLINE(缩量涨,0,V,2,0),COLORBLUE;"}},s.prototype.FundsAnalysis=function(){return{Name:"资金分析",Description:"资金分析",IsMainIndex:!1,Args:[{Name:"M",Value:55},{Name:"N",Value:34}],Script:"LC:=REF(CLOSE,1);\nRSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);\nFF:=EMA(CLOSE,3);\nMA15:=EMA(CLOSE,21); DRAWTEXT(CROSS(85,RSI),75,'▼'),COLORGREEN;\nVAR1:=IF(YEAR>=2038 AND MONTH>=1,0,1);\nVAR2:=REF(LOW,1)*VAR1;\nVAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;\nVAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;\nVAR5:=LLV(LOW,30)*VAR1;\nVAR6:=HHV(VAR4,30)*VAR1;\nVAR7:=IF(MA(CLOSE,58),1,0)*VAR1;\nVAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;\n吸筹A:IF(VAR8>100,100,VAR8)*VAR1,COLORFB2F3B;\n{吸筹B}STICKLINE(吸筹A>-150,0,吸筹A,8,0),COLORFB2F3B;\n\n散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORAA89BD,LINETHICK2;\nRSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;\nK:=SMA(RSV,3,1);\nD:=SMA(K,3,1);\nJ:=3*K-2*D;\n主力线:EMA(J,5),COLORF39800,LINETHICK2;\nDRAWICON(CROSS(主力线,散户线),主力线,1);\nDRAWICON(CROSS(散户线,主力线),主力线,2);"}},s.prototype.MarginProportion=function(){return{Name:"融资占比(%)",Description:"融资占比",IsMainIndex:!1,Condition:{Period:[Ei.KLINE_DAY_ID]},Args:[],Script:"占比:MARGIN(2);"}},s.prototype.FXG_BSPoint=function(){return{Name:"操盘BS点",Description:"操盘BS点",IsMainIndex:!0,Args:[],Script:"MA5:MA(CLOSE,5);\n MA13:MA(CLOSE,13);\n MA21:MA(CLOSE,21);\n MA34:MA(CLOSE,34);\n {MA55:MA(CLOSE,55),COLOR0000FF;}\n {MA120:=MA(CLOSE,120),COLORFFFF00;}\n 天使:=EMA(C,2),COLOR000000;\n 魔鬼:=EMA(SLOPE(C,21)*20+C,42),COLOR000000;\n 买:=CROSS(天使,魔鬼);\n 卖:=CROSS(魔鬼,天使);\n DRAWICON(买,L*0.97,13);\n DRAWICON(卖,H*1.03,14);\n DRAWKLINE_IF(天使>=魔鬼,HIGH,CLOSE,LOW,OPEN),COLORRED;\n DRAWKLINE_IF(天使<魔鬼,HIGH,CLOSE,LOW,OPEN),COLORBLUE;\n DRAWKLINE_IF(CROSS(天使,魔鬼),HIGH,CLOSE,LOW,OPEN),COLORYELLOW;\n DRAWKLINE_IF(CROSS(魔鬼,天使),HIGH,CLOSE,LOW,OPEN),COLORBLACK;"}},s.prototype.FXG_INDEX=function(){return{Name:"涨停多空线",Description:"涨停多空线",IsMainIndex:!1,Args:[],Script:"做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;\n做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;\n20,POINTDOT,COLORF00FF0;\n50,POINTDOT,COLORGREEN;\n80,POINTDOT,COLORLIBLUE;"}},s.prototype.FXG_INDEX2=function(){return{Name:"涨停吸筹区",Description:"涨停吸筹区",IsMainIndex:!1,Args:[],Script:"VAR0:=EMA(HHV(HIGH,500),21); \nVAR1:=EMA(HHV(HIGH,250),21);\nVAR2:=EMA(HHV(HIGH,90),21); \nVAR3:=EMA(LLV(LOW,500),21); \nVAR4:=EMA(LLV(LOW,250),21); \nVAR5:=EMA(LLV(LOW,90),21);\n\nVAR6:=EMA((VAR3*0.96+VAR4*0.96+VAR5*0.96+VAR0*0.558+VAR1*0.558+VAR2*0.558)/6,21); \nVAR7:=EMA((VAR3*1.25+VAR4*1.23+VAR5*1.2+VAR0*0.55+VAR1*0.55+VAR2*0.65)/6,21); \nVAR8:=EMA((VAR3*1.3+VAR4*1.3+VAR5*1.3+VAR0*0.68+VAR1*0.68+VAR2*0.68)/6,21); \nVAR9:=EMA((VAR6*3+VAR7*2+VAR8)/6*1.738,21); \nVAR10:=REF(LOW,1); \nVAR11:=SMA(ABS(LOW-VAR10),3,1)/SMA(MAX(LOW-VAR10,0),3,1)*100; \nVAR12:=EMA(IFF(CLOSE*1.35<=VAR9,VAR11*10,VAR11/10),3); \nVAR13:=LLV(LOW,30); \nVAR14:=HHV(VAR12,30); \nVAR15:=IFF(MA(CLOSE,58),1,0); \nVAR16:=EMA(IFF(LOW<=VAR13,(VAR12+VAR14*2)/2,0),3)/618*VAR15;\n\n资金入场:IFF(VAR16>0,VAR16,0),LINETHICK,LINETHICK2, COLORFF0000; \n\nA1:IFF(资金入场>0,资金入场*1.2,0),STICK,LINETHICK5, COLORFF0000;\nA2:IFF(资金入场>0,资金入场*0.8,0),STICK,LINETHICK5, COLORFF6600;\nA3:IFF(资金入场>0,资金入场*0.6,0),STICK,LINETHICK5, COLORFF9900;\nA4:IFF(资金入场>0,资金入场*0.4,0) ,STICK,LINETHICK5,COLORFFCC00;\nA5:IFF(资金入场>0,资金入场*0.2,0) ,STICK,LINETHICK5,COLORFFFF00;"}},s.prototype.FXG_INDEX3=function(){return{Name:"量能黄金点",Description:"量能黄金点",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"A:=IFF((CLOSE>126.32),VOL,VOL); \n主力:=MA(A,4),COLORRED;\n游资:=MA(A,8),COLORYELLOW;\n大户:=MA(A,16),COLORF0F000;\n散户:=MA(A,32),COLOR00FF00;\n主比:=ABS(((主力)/(主力 + 游资 + 大户 + 散户))*(100)),LINESTICK,COLORRED;\n游比:=ABS(((游资)/(主力 + 游资 + 大户 + 散户))*(100)),LINESTICK,COLORYELLOW;\n大比:=ABS(((大户)/(主力 + 游资 + 大户 + 散户))*(100)),LINESTICK,COLORF0F000;\n散比:=ABS(((散户)/(主力 + 游资 + 大户 + 散户))*(100)),LINESTICK,COLOR00FF00;\n警戒线:MA(A,180),COLORFF66FF;\nSTICKLINE((主力 > 0),0,主力,2.5,0),COLOR1020BB;\nSTICKLINE((主力 > 0),0,主力,0.7,0),COLORRED;\nSTICKLINE((游资 > 0),0,游资,2.5,0),COLOR009CFF;\nSTICKLINE((游资 > 0),0,游资,0.7,0),COLORYELLOW;\nSTICKLINE((大户 > 0),0,大户,2.5,0),COLORFF8800;\nSTICKLINE((大户 > 0),0,大户,0.7,0),COLORLIBLUE;\nSTICKLINE((散户 > 0),0,散户,2.5,0),COLOR00CA00;\nSTICKLINE((散户 > 0),0,散户,0.7,0),COLORGREEN;"}},s.prototype.NewsNegative=function(){return{Name:"负面新闻",Description:"负面新闻统计",IsMainIndex:!1,FloatPrecision:0,Args:[{Name:"N",Value:5},{Name:"N2",Value:10}],Script:"负面:NEWS(1);\nMA1:MA(负面,N);\nMA2:MA(负面,N2);"}},s.prototype.UpDownAnalyze=function(){return{Name:"涨跌趋势",Description:"涨跌趋势",IsMainIndex:!1,FloatPrecision:0,Condition:{Period:[Ei.MINUTE_ID,Ei.MULTIDAY_MINUTE_ID,Ei.KLINE_DAY_ID]},Args:[],Script:"上涨家数:UPCOUNT('CNA.CI'),COLORRED;\n下跌家数:DOWNCOUNT('CNA.CI'),COLORGREEN;"}},s.prototype.HK2SHSZ=function(){return{Name:"北上资金",Description:"北上资金",IsMainIndex:!1,FloatPrecision:0,Condition:{Period:[Ei.MINUTE_ID,Ei.MULTIDAY_MINUTE_ID,Ei.KLINE_DAY_ID]},Args:[],Script:"净流入:HK2SHSZ(1),COLORSTICK;"}},s.prototype.ShareHolder=function(){return{Name:"股东人数",Description:"股东人数",IsMainIndex:!1,FloatPrecision:0,Condition:{Period:[Ei.KLINE_DAY_ID,Ei.KLINE_MONTH_ID,Ei.KLINE_WEEK_ID,Ei.KLINE_YEAR_ID]},Args:[],Script:"人数:FINANCE(100);"}},s.prototype.VOLRate=function(){return{Name:"量比",Description:"量比",IsMainIndex:!1,Condition:{Period:[Ei.MINUTE_ID,Ei.MULTIDAY_MINUTE_ID]},Args:[],Script:"LIANGBI:VOLR;"}},s.prototype.COLOR_KSTAR1=function(){return{Name:"十字星",Description:"十字星",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:CLOSE==OPEN&&HIGH>LOW;"}},s.prototype.COLOR_KSTAR2=function(){return{Name:"早晨之星",Description:"早晨之星",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:(REF(CLOSE,2)/REF(OPEN,2)<0.95) && (REF(OPEN,1) < REF(CLOSE,2)) && (ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) && CLOSE/OPEN>1.05 && CLOSE>REF(CLOSE,2);"}},s.prototype.COLOR_KSTAR3=function(){return{Name:"黄昏之星",Description:"黄昏之星",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:REF(CLOSE,2)/REF(OPEN,2)>1.05 && REF(OPEN,1)>REF(CLOSE,2) && ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 && CLOSE/OPEN<0.95 && CLOSE<REF(CLOSE,2);"}},s.prototype.COLOR_SHI1=function(){return{Name:"长十字",Description:"长十字",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:CLOSE==OPEN&&HIGH/LOW>1.03;"}},s.prototype.COLOR_K220=function(){return{Name:"身怀六甲",Description:"身怀六甲",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04&&\n ABS(CLOSE-OPEN)/CLOSE<0.005&&\n MAX(CLOSE,OPEN)<MAX(REF(CLOSE,1),REF(OPEN,1))&&\n MIN(CLOSE,OPEN)>MIN(REF(CLOSE,1),REF(OPEN,1));"}},s.prototype.COLOR_K300=function(){return{Name:"三个白武士",Description:"三个白武士",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:UPNDAY(CLOSE,3)&&NDAY(CLOSE,OPEN,3);"}},s.prototype.COLOR_K310=function(){return{Name:"三只乌鸦",Description:"三只乌鸦",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:DOWNNDAY(CLOSE,3)&&NDAY(OPEN,CLOSE,3);"}},s.prototype.COLOR_K380=function(){return{Name:"光头阳线",Description:"光头阳线",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:HIGH==CLOSE&&HIGH>LOW;"}},s.prototype.COLOR_K390=function(){return{Name:"光脚阴线",Description:"光脚阴线",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:LOW==CLOSE&&HIGH>LOW;"}},s.prototype.COLOR_K134=function(){return{Name:"垂死十字",Description:"垂死十字",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:CLOSE==OPEN&&CLOSE==LOW&&CLOSE<HIGH;"}},s.prototype.COLOR_K140=function(){return{Name:"早晨十字星",Description:"早晨十字星",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:REF(CLOSE,2)/REF(OPEN,2)<0.95&&\nREF(OPEN,1)<REF(CLOSE,2)&&\nREF(OPEN,1)==REF(CLOSE,1)&&\nCLOSE/OPEN>1.05&&CLOSE>REF(CLOSE,2);"}},s.prototype.COLOR_K150=function(){return{Name:"黄昏十字星",Description:"黄昏十字星",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:REF(CLOSE,2)/REF(OPEN,2)>1.05&&\nREF(OPEN,1)>REF(CLOSE,2)&&\nREF(OPEN,1)=REF(CLOSE,1)&&\nCLOSE/OPEN<0.95&&CLOSE<REF(CLOSE,2);"}},s.prototype.COLOR_K160=function(){return{Name:"射击之星",Description:"射击之星",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:MIN(OPEN,CLOSE)==LOW&&\nHIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW)&&\nCLOSE>MA(CLOSE,5);"}},s.prototype.COLOR_K165=function(){return{Name:"倒转锤头",Description:"倒转锤头",IsMainIndex:!0,InstructionType:2,Script:"KSTAR:MIN(OPEN,CLOSE)==LOW&&\nHIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW)&&\nCLOSE<MA(CLOSE,5);"}},s.prototype.COLOR_K170=function(){return{Name:"锤头",Description:"锤头",IsMainIndex:!0,InstructionType:2,Script:"OUT:HIGH==MAX(OPEN,CLOSE)&&\nHIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE))&&\nCLOSE<MA(CLOSE,5);"}},s.prototype.COLOR_K180=function(){return{Name:"吊颈",Description:"吊颈",IsMainIndex:!0,InstructionType:2,Script:"OUT:HIGH==MAX(OPEN,CLOSE)&&\nHIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE))&&\nCLOSE>MA(CLOSE,5);"}},s.prototype.COLOR_K190=function(){return{Name:"穿头破脚",Description:"穿头破脚",IsMainIndex:!0,InstructionType:2,Script:"OUT:(REF(CLOSE,1)/REF(OPEN,1)>1.03&&\nCLOSE/OPEN<0.96&&\nCLOSE<REF(OPEN,1)&&OPEN>REF(CLOSE,1))||\n(REF(CLOSE,1)/REF(OPEN,1)<0.97&&\nCLOSE/OPEN>1.04&&\nCLOSE>REF(OPEN,1)&&OPEN<REF(CLOSE,1));"}},s.prototype.COLOR_SWORD=function(){return{Name:"剑",Description:"剑",IsMainIndex:!0,InstructionType:2,Script:"AA:=VOL>REF(VOL,1)||VOL>(CAPITAL*0.1);\nBB:=OPEN>=(REF(HIGH,1))&&REF(HIGH,1)>(REF(HIGH,2)*1.06);\nCC:=CLOSE>(REF(CLOSE,1))-(REF(CLOSE,1)*0.01);\nDD:=CLOSE<(HIGH*0.965) && HIGH>(OPEN*1.05);\nEE:=LOW<OPEN && LOW<CLOSE&&HIGH>(REF(CLOSE,1)*1.06);\nFF:=(HIGH-(MAX(OPEN,CLOSE)))/2>(MIN(OPEN,CLOSE))-LOW;\nGG:=(ABS(OPEN-CLOSE))/2<(MIN(OPEN,CLOSE)-LOW);\nSWORDO:AA&&BB&&CC&&DD&&EE&&FF&&GG;"}},s.prototype.COLOR_CSFR=function(){return{Name:"出水芙蓉",Description:"出水芙蓉",IsMainIndex:!0,InstructionType:2,Script:"A:=CLOSE>OPEN;\nB:=A&&CLOSE>MA(CLOSE,S)&&CLOSE>MA(CLOSE,M)&&CLOSE>MA(CLOSE,LL);\nCC:=B&&OPEN<MA(CLOSE,M)&&OPEN<MA(CLOSE,LL);\nCSFRO:CC&&(CLOSE-OPEN)>0.0618*CLOSE;"}},s.prototype.COLOR_WYGD=function(){return{Name:"乌云盖顶",Description:"乌云盖顶",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( \nREF(CLOSE,1)/REF(OPEN,1)>1.03 AND \nCLOSE/OPEN<0.97 AND \nOPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1), 3);"}},s.prototype.COLOR_SGCJ=function(){return{Name:"曙光初现",Description:"曙光初现",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( \nREF(CLOSE,1)/REF(OPEN,1)<0.97 AND \nCLOSE/OPEN>1.03 AND \nOPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1), 3);"}},s.prototype.COLOR_SZTAI=function(){return{Name:"十字胎",Description:"十字胎",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND \nCLOSE==OPEN AND CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND \nCLOSE > MIN(REF(CLOSE,1),REF(OPEN,1)), 2);"}},s.prototype.COLOR_PINGDING=function(){return{Name:"平顶",Description:"平顶",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET(ABS(HIGH-REF(HIGH,1))/HIGH<0.001,2);"}},s.prototype.COLOR_PINGDI=function(){return{Name:"平底",Description:"平底",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET((ABS(LOW-REF(LOW,1))/LOW<0.001 AND \nABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001),2);"}},s.prototype.COLOR_DAYANZHU=function(){return{Name:"大阳烛",Description:"大阳烛",IsMainIndex:!0,InstructionType:2,Script:"VAR1:CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018;"}},s.prototype.COLOR_DAYINGZHU=function(){return{Name:"大阴烛",Description:"大阴烛",IsMainIndex:!0,InstructionType:2,Script:"VAR1:OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018;"}},s.prototype.COLOR_HYFG=function(){return{Name:"好友反攻",Description:"好友反攻",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( (REF(CLOSE,1)<REF(OPEN,1) AND \nCLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),2);"}},s.prototype.COLOR_TKQK=function(){return{Name:"跳空缺口",Description:"跳空缺口",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),2);"}},s.prototype.COLOR_SFWY=function(){return{Name:"双飞乌鸦",Description:"双飞乌鸦",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98,1);"}},s.prototype.COLOR_SSSBQ=function(){return{Name:"上升三部曲",Description:"上升三部曲",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( \nREF(CLOSE,4)/REF(OPEN,4)>1.03 AND \nREF(CLOSE,3)<REF(OPEN,3) AND \nREF(CLOSE,2)<REF(OPEN,2) AND \nREF(CLOSE,1)<REF(OPEN,1) AND \nREF(LOW,4)<REF(LOW,3) AND \nREF(LOW,4)<REF(LOW,2) AND \nREF(LOW,4)<REF(LOW,1) AND \nREF(HIGH,4)>REF(HIGH,3) AND \nREF(HIGH,4)>REF(HIGH,2) AND \nREF(HIGH,4)>REF(HIGH,1) AND \nCLOSE/OPEN>1.03 AND \nCLOSE>REF(CLOSE,4), 5);"}},s.prototype.COLOR_XDSBQ=function(){return{Name:"下跌三部曲",Description:"下跌三部曲",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( \nREF(CLOSE,4)/REF(OPEN,4)<0.97 AND \nREF(CLOSE,3)>REF(OPEN,3) AND \nREF(CLOSE,2)>REF(OPEN,2) AND \nREF(CLOSE,1)>REF(OPEN,1) AND \nREF(LOW,4)<REF(LOW,3) AND \nREF(LOW,4)<REF(LOW,2) AND \nREF(LOW,4)<REF(LOW,1) AND \nREF(HIGH,4)>REF(HIGH,3) AND \nREF(HIGH,4)>REF(HIGH,2) AND \nREF(HIGH,4)>REF(HIGH,1) AND \nCLOSE/OPEN<0.97 AND \nCLOSE<REF(CLOSE,4), 5);"}},s.prototype.COLOR_CHXY=function(){return{Name:"长下影",Description:"长下影",IsMainIndex:!0,InstructionType:2,Script:"VAR2:(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;"}},s.prototype.COLOR_CHSY=function(){return{Name:"长上影",Description:"长上影",IsMainIndex:!0,InstructionType:2,Script:"VAR2:(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,COLORBLUE;"}},s.prototype.COLOR_FENLI=function(){return{Name:"分离",Description:"分离",IsMainIndex:!0,InstructionType:2,Script:"VAR1:BACKSET( OPEN==REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0,2);"}},s.prototype.TRADE_BIAS=function(){return{Name:"BIAS",Description:"乖离率专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:12},{Name:"LL",Value:6},{Name:"LH",Value:6}],Script:"BIAS:=(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;\nENTERLONG:CROSS(-LL,BIAS);\nEXITLONG:CROSS(BIAS,LH);"}},s.prototype.TRADE_CCI=function(){return{Name:"CCI",Description:"CCI专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:14}],Script:"TYP:=(HIGH+LOW+CLOSE)/3;\nCCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));\nINDEX:=CCI;\nENTERLONG:CROSS(INDEX,-100);\nEXITLONG:CROSS(100,INDEX);"}},s.prototype.TRADE_DMI=function(){return{Name:"DMI",Description:"趋向专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:14}],Script:"MTR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);\nHD :=HIGH-REF(HIGH,1);\nLD :=REF(LOW,1)-LOW;\nPDM:=SUM(IF(HD>0&&HD>LD,HD,0),N);\nMDM:=SUM(IF(LD>0&&LD>HD,LD,0),N);\nPDI:=PDM*100/MTR;\nMDI:=MDM*100/MTR;\nENTERLONG:CROSS(PDI,MDI);\nEXITLONG:CROSS(MDI,PDI);"}},s.prototype.TRADE_KD=function(){return{Name:"KD",Description:"KD指标专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:9},{Name:"M1",Value:3},{Name:"M2",Value:3}],Script:"WRSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;\nWK:=SMA(WRSV,M1,1);\nD:=SMA(WK,M2,1);\nENTERLONG:CROSS(WK,D)&&WK<20;\nEXITLONG:CROSS(D,WK)&&WK>80;"}},s.prototype.TRADE_BOLL=function(){return{Name:"BOLL",Description:"布林带专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:20}],Script:"MID :=MA(CLOSE,N);\nUPPER:=MID+2*STD(CLOSE,N);\nLOWER:=MID-2*STD(CLOSE,N);\nENTERLONG:CROSS(CLOSE,LOWER);\nEXITLONG:CROSS(CLOSE,UPPER);"}},s.prototype.TRADE_KDJ=function(){return{Name:"KDJ",Description:"KDJ专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:9},{Name:"M1",Value:3}],Script:"RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;\nK:=SMA(RSV,M1,1);\nD:=SMA(K,M1,1);\nJ:=3*K-2*D;\nENTERLONG:CROSS(J,0);\nEXITLONG:CROSS(100,J);"}},s.prototype.TRADE_MA=function(){return{Name:"MA",Description:"均线专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"SHORT",Value:5},{Name:"LONG",Value:20}],Script:"ENTERLONG:CROSS(MA(CLOSE,SHORT),MA(CLOSE,LONG));\nEXITLONG:CROSS(MA(CLOSE,LONG),MA(CLOSE,SHORT));"}},s.prototype.TRADE_MACD=function(){return{Name:"MACD",Description:"MACD专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"LONG",Value:26},{Name:"SHORT",Value:12},{Name:"M",Value:9}],Script:"DIFF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);\nDEA := EMA(DIFF,M);\nMACD := 2*(DIFF-DEA);\nENTERLONG:CROSS(MACD,0);\nEXITLONG:CROSS(0,MACD);"}},s.prototype.TRADE_MTM=function(){return{Name:"MTM",Description:"动力指标专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:6}],Script:"WMTM:=C-REF(C,N);\nENTERLONG:CROSS(WMTM,0);\nEXITLONG:CROSS(0,WMTM);"}},s.prototype.TRADE_PSY=function(){return{Name:"PSY",Description:"PSY心理线专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:12},{Name:"LL",Value:10},{Name:"LH",Value:85}],Script:"MYPSY:=COUNT(CLOSE>REF(CLOSE,1),N)/N*100;\nENTERLONG:CROSS(LL,MYPSY);\nEXITLONG:CROSS(MYPSY,LH);"}},s.prototype.TRADE_ROC=function(){return{Name:"ROC",Description:"变动速率专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:12},{Name:"M",Value:6}],Script:"WROC:=MA(100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N),M);\nENTERLONG:CROSS(WROC,0);\nEXITLONG:CROSS(0,WROC);"}},s.prototype.TRADE_RSI=function(){return{Name:"RSI",Description:"相对强弱专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:6},{Name:"LL",Value:20},{Name:"LH",Value:80}],Script:"LC:=REF(CLOSE,1);\nWRSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;\nENTERLONG:CROSS(WRSI,LL);\nEXITLONG:CROSS(LH,WRSI);"}},s.prototype.TRADE_VR=function(){return{Name:"VR",Description:"VR容量比率专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N",Value:26},{Name:"LL",Value:70},{Name:"LH",Value:250}],Script:"WVR := SUM((IF(CLOSE>OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),N)/SUM((IF(CLOSE<OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),N)*100;\nENTERLONG:CROSS(LL,WVR);\nEXITLONG:CROSS(WVR,LH);"}},s.prototype.TRADE_DPSJ=function(){return{Name:"DPSJ",Description:"大盘随机专家系统",IsMainIndex:!0,InstructionType:1,Args:[{Name:"N1",Value:18},{Name:"N2",Value:12}],Script:"RSV:=(INDEXC-LLV(INDEXL,N1))/(HHV(INDEXH,N1)-LLV(INDEXL,N1))*100;\nK:=SMA(RSV,N2,1);\nHSL:VOL/100/(FINANCE(7));\nENTERLONG: CROSS(K,20);\nEXITLONG: (CROSS(HSL,5) OR CROSS(K,80));"}},s.prototype.Zealink_Index1=function(){return{Name:"资金吸筹",Description:"资金吸筹",IsMainIndex:!1,Args:[],Script:"VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); \nVAR2:= SMA(ABS(LOW - VAR1), 13, 1) / SMA(MAX(LOW - VAR1, 0), 10, 1);\nVAR3:= EMA(VAR2, 10);\nVAR4:= LLV(LOW, 33);\nVAR5:= EMA(IF(LOW <= VAR4, VAR3, 0), 3) * 0.2;\n主力进场: IF(VAR5 > REF(VAR5, 1), VAR5,0), COLORRED, NODRAW;\n洗盘: IF(VAR5 < REF(VAR5, 1), VAR5,0), COLORYELLOW, NODRAW;\nSTICKLINE(VAR5> REF(VAR5, 1),0, VAR5, 20, 0), COLORRED;\nSTICKLINE(VAR5 < REF(VAR5, 1), 0, VAR5, 20, 0), COLORYELLOW;"}},s.prototype.Zealink_Index2=function(){return{Name:"牛熊区间",Description:"牛熊区间",IsMainIndex:!1,YSpecificMaxMin:{Max:100,Min:1,Count:4},YSplitScale:[1,50,100],Args:[],Script:"短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)\n+ 13 * REF(H, 7) + 12 * REF(H, 8) + 11 * REF(H, 9) + 10 * REF(H, 10) + 9 * REF(H, 11) + 8 * REF(H, 12)\n+ 7 * REF(H, 13) + 6 * REF(H, 14) + 5 * REF(H, 15) + 4 * REF(H, 16) + 3 * REF(H, 17) + 2 * REF(H, 18) +\nREF(H, 20))/ 210, COLORBLUE, LINETHICK1;\n短低L:= (20 * L + 19 * REF(L, 1) + 18 * REF(L, 2) + 17 * REF(L, 3) + 16 * REF(L, 4) + 15 * REF(L, 5) + 14 * REF(L, 6)\n+ 13 * REF(L, 7) + 12 * REF(L, 8) + 11 * REF(L, 9) + 10 * REF(L, 10) + 9 * REF(L, 11) + 8 * REF(L, 12)\n+ 7 * REF(L, 13) + 6 * REF(L, 14) + 5 * REF(L, 15) + 4 * REF(L, 16) + 3 * REF(L, 17) + 2 * REF(L, 18) +\nREF(L, 20)) / 210, COLORBLUE, LINETHICK1;\nD90H:= EMA(短高H, 90), COLORRED, LINETHICK1;\nD90L:= EMA(短低L, 90), COLORRED, LINETHICK1;\nD90差:= D90H - D90L;\nD90顶:= D90H + D90差 * 2, COLORRED, LINETHICK1;\nD90底:= D90L - D90差 * 2, COLORRED, LINETHICK1;\n高0:= (EMA(EMA(H, 25), 25) - EMA(EMA(L, 25), 25)) * 1 + EMA(EMA(H, 25), 25), LINETHICK1, COLORWHITE;\n低0:= EMA(EMA(L, 25), 25) - (EMA(EMA(H, 25), 25) - EMA(EMA(L, 25), 25)) * 1, LINETHICK1, COLORWHITE;\n多头定位:= 低0 >= D90底 AND 高0 >= D90顶;\n空头定位:= 高0 <= D90顶 AND 低0 <= D90底;\n震荡定位:= 低0 >= D90底 AND 高0 <= D90顶;\n牛市: IF(多头定位 == 1, 100, 1), COLORRED, NODRAW;\n熊市: IF(空头定位 == 1, 100, 1), COLORGREEN, NODRAW;\n震荡: IF(震荡定位 == 1, 100, 1), COLORGRAY, NODRAW;\nSTICKLINE(多头定位 == 1, 100, 1, 100, 0), COLORRED;\nSTICKLINE(空头定位 == 1, 100, 1, 100, 0), COLORGREEN;\nSTICKLINE(震荡定位 == 1, 100, 1, 100, 0), COLORGRAY;"}},s.prototype.Zealink_Index3=function(){return{Name:"持仓信号",Description:"持仓信号",IsMainIndex:!0,Args:[],Script:'买线:=EMA(C,2);\n卖线:=EMA(SLOPE(C,30)*5+C,20); \nBU:=CROSS(买线,卖线);\nSEL:=CROSS(卖线,买线);\n\nSTICKLINE(买线>=卖线 AND CLOSE>OPEN,LOW,HIGH,0,1),COLORRED;\nSTICKLINE(买线>=卖线 AND CLOSE<OPEN,LOW,HIGH,0,1),COLORRED;\nSTICKLINE(买线>=卖线 AND CLOSE>OPEN,CLOSE,OPEN,50,1),COLORRED;\nSTICKLINE(买线>=卖线 AND CLOSE<OPEN,CLOSE,OPEN,50,0),COLORRED;\nSTICKLINE(买线<卖线 AND CLOSE<OPEN,LOW,HIGH,0,1),COLORGREEN;\nSTICKLINE(买线<卖线 AND CLOSE>OPEN,LOW,HIGH,0,1),COLORGREEN;\nSTICKLINE(买线<卖线 AND CLOSE<OPEN,CLOSE,OPEN,50,0),COLORGREEN;\nSTICKLINE(买线<卖线 AND CLOSE>OPEN,CLOSE,OPEN,50,1),COLORGREEN;\n\nHHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;\nHHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)\n+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF\n(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;\nHHJSJDC:MA(HHJSJDB,5),COLORRED;\n\nSVAR11:=HHV(HIGH,34);\nSVAR14:=CLOSE-REF(CLOSE,1);\nSVAR15:=MAX(SVAR14,0);\nSVAR16:=ABS(SVAR14);\nSVAR17:=SMA(SVAR15,7,1)/SMA(SVAR16,7,1)*100;\nSVAR18:=SMA(SVAR15,13,1)/SMA(SVAR16,13,1)*100;\nSVAR19:=BARSCOUNT(CLOSE);\nSVAR20:=SMA(MAX(SVAR14,0),6,1)/SMA(ABS(SVAR14),6,1)*100;\nSVAR21:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;\nSVAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;\nSVAR1B:=SMA((SMA(SVAR1A,4,1)-50)*2,3,1);\nSVAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;\nSVAR1D:=SMA(SVAR1C,4,1);\nSVAR1E:=SMA(SVAR1D,3,1);\nSVAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;\nSVAR22:=SVAR20<=25 AND SVAR21<-95 AND SVAR1F>20 AND SVAR1B<-30 AND SVAR1E<30 AND SVAR11-CLOSE>=-0.25 AND SVAR17<22 AND SVAR18<28 AND SVAR19>50;\nBUY3:=CROSS(SVAR22,0.5) AND COUNT(SVAR22==1,10)==1;\n\nSVARF:=LOW*0.9;\nSVAR10X:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);\nSVAR11X:=SVARF<REF(SVAR10X,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);\nBUY2:=SVAR11X AND COUNT(SVAR11X,30)==1;\n\nVAR1:=(CLOSE+HIGH+LOW+OPEN)/4;\nVAR2:=SUMBARS(VOL,CAPITAL);\nVAR3:=HHV(VAR1,VAR2);\nVAR4:=LLV(VAR1,VAR2);\nVAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);\nVAR6:=(VAR1-VAR4)/(VAR3-VAR4);\nVAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);\nVAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);\nVAR9:=EMA(VAR8,7);\nVARC:=HHV(HIGH,9)-LLV(LOW,9);\nVARD:=HHV(HIGH,9)-CLOSE;\nVARE:=CLOSE-LLV(LOW,9);\nVARF:=VARD/VARC*100-70;\nVAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;\nVAR11:=(2*CLOSE+HIGH+LOW)/4;\nVAR12:=SMA(VARE/VARC*100,3,1);\nVAR13:=LLV(LOW,34);\nVAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);\nVAR15:=IF(VAR14>100,VAR14-100,0);\nVAR16:=HHV(HIGH,34);\nVAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);\nVAR18:=EMA(VAR17,5);\nBUY:=STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1),COLORRED;\nSELL:=STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1),COLORGREEN;\nBUY1:=VAR17>VAR18 AND REF(VAR17,1)<REF(VAR18,1);\nSELL1:=VAR17<VAR18 AND REF(VAR17,1)>REF(VAR18,1);\n\n短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)\n+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)\n+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+\nREF(H,20))/210,COLORBLUE,LINETHICK1;\n短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)\n+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)\n+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+\nREF(L,20))/210,COLORBLUE,LINETHICK1;\nD90H:=EMA(短高H,90),COLORRED,LINETHICK1;\nD90L:=EMA(短低L,90),COLORRED,LINETHICK1;\nD90差:=D90H-D90L;\nD90顶:=D90H+D90差*2,COLORRED,LINETHICK1;\nD90底:=D90L-D90差*2,COLORRED,LINETHICK1;\n高0:=(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1+EMA(EMA(H,25),25),LINETHICK1,COLORWHITE;\n低0:=EMA(EMA(L,25),25)-(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1,LINETHICK1,COLORWHITE;\n多头定位:=低0>=D90底 AND 高0>=D90顶;\n空头定位:=高0<=D90顶 AND 低0<=D90底;\n震荡定位:=低0>=D90底 AND 高0<=D90顶;\n\n牛市:=多头定位==1;\n熊市:=空头定位==1;\n震荡:=震荡定位==1;\n\n非牛市:=熊市 OR 震荡;\n非熊市:=牛市 OR 震荡;\n\nBUY11:=BUY1 AND 非熊市;\nSELL11:=SELL1 AND 震荡定位==0;\n\nBUY111:=BUY11 AND COUNT(BUY11,10)<2;\nBUY0:=BUY111 AND COUNT(BUY111,21)==1;\nSELL111:=SELL11 AND COUNT(SELL11,10)<2;\nSELL0:=SELL111 AND COUNT(SELL111,10)==1;\n\nXK1:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;\n上穿:=REF(XK1,1)<5 AND XK1>=5;\nBUY4:=上穿 AND COUNT(XK1<2,12)<1;\n\nSELL2:=REF(XK1,1)<=22.5 AND XK1>22.5 AND COUNT(REF(XK1,1)>=22.5 AND XK1<22.5,5)>0;\nSELL3:=REF(XK1,1)>=21.5 AND XK1<21.5 AND COUNT(REF(XK1,1)>=22.5 AND XK1<22.5,12)>1;\nSELL4:=SELL2 OR SELL3 AND COUNT((SELL2 OR SELL3)==1,5)==1;\n\nSUPERDRAWTEXT(BUY0,L,"机会",2,10),COLORRED;\nSUPERDRAWTEXT(SELL0,H,"风险",1,10),COLORGREEN;\nSUPERDRAWTEXT(BUY2,L,"机会",2,10),COLORRED;\nSUPERDRAWTEXT(BUY4,L,"机会",2,10),COLORRED;\nSUPERDRAWTEXT(SELL4,H,"风险",1,10),COLORGREEN;'}},s.prototype.Zealink_Index4=function(){return{Name:"股东实际增减持",Description:"股东实际增减持",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"增持:NEWS(4),NODRAW,COLORRED;\n减持:NEWS(5),NODRAW,COLORGREEN;\nSTICKLINE(增持>0,0,增持,1,0),COLORRED;\nSTICKLINE(减持<0,0,减持,1,0),COLORGREEN;"}},s.prototype.Zealink_Index5=function(){return{Name:"大宗交易",Description:"大宗交易",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"交易次数:NEWS(7);"}},s.prototype.Zealink_Index6=function(){return{Name:"信托持股",Description:"信托持股",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"家数:NEWS(6);"}},s.prototype.Zealink_Index7=function(){return{Name:"官网新闻",Description:"官网新闻",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"个数:NEWS(8);"}},s.prototype.Zealink_Index8=function(){return{Name:"高管要闻",Description:"高管要闻",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"个数:NEWS(9);"}},s.prototype.Zealink_Index9=function(){return{Name:"股权质押",Description:"股权质押",IsMainIndex:!1,FloatPrecision:0,Args:[],Script:"次数:NEWS(10);"}},s.prototype.Zealink_Index10=function(){return{Name:"操盘BS点",Description:"操盘BS点",IsMainIndex:!0,FloatPrecision:0,Args:[],Script:"JJ:=(CLOSE+HIGH+LOW)/3; \nA:=EMA(JJ,10); \nB:=REF(A,1);\nM1:=EMA(CLOSE,3);\nM2:=EMA(CLOSE,8); \nM3:=EMA(M2,13); \nM4:=EMA(M2,55); \nB1:=A>B AND REF(A,1)<REF(B,1);\nS1:=A<B AND REF(A,1)>REF(B,1);\nINDEXCLOSE:INDEXC,EXDATA;\nINDEXOPEN:INDEXO,EXDATA;\nDRAWICON(REF(B1,1),L*0.97,13);\nDRAWICON(REF(S1,1),H*1.03,14);"}},s.prototype.Zealink_Index11=function(){return{Name:"操盘BS点",Description:"操盘BS点",IsMainIndex:!0,FloatPrecision:0,Args:[],Script:"JJ:=(CLOSE+HIGH+LOW)/3;\nA:=EMA(JJ,10);\nB:=REF(A,1);\nM1:=EMA(CLOSE,3);\nM2:=EMA(CLOSE,8); \nM3:=EMA(M2,13);\nM4:=EMA(M2,55);\n持股区域:=STICKLINE(A>B,A,B,2,0),COLORYELLOW; \n持币区域:=STICKLINE(A<B,A,B,2,0),COLORBLUE;\n\nVR1:=(C+O+REF(C,1))/3;\nVR3:=HHV(VR1,21);\nVR4:=LLV(VR1,21);\nVR5:=(2*VR1-VR4-REF(VR4,1))/(VR3-VR4);\nVR6:=(VR1-VR4)/(VR3-VR4);\nVR7:=IF(VR1<=VR4,VR5*60,VR6*60);\nVR8:=600*(EMA(C,3)-EMA(L,30))/EMA(L,30);\nVR9:=EMA(VR8,7);\nVRA:=(WINNER(120*C/100)-WINNER(100*C/100))*100;\nVRB:=(-100)*(WINNER(120*C/100)-WINNER(100*C/100))+5;\nVRC:=HHV(H,9)-LLV(L,9);\nVRD:=HHV(H,9)-C;\nVRE:=C-LLV(L,9);\nVRF:=VRD/VRC*100-70;\nVR10:=(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100;\nVR11:=(2*C+H+L)/4;\nVR12:=SMA(VRE/VRC*100,3,1);\nVR13:=LLV(L,34);\nVR14:=SMA(VR12,3,1)-SMA(VRF,9,1);\nVR15:=IF(VR14>100,VR14-100,0);\nVR16:=HHV(H,34);\nVR17:=EMA((VR11-VR13)/(VR16-VR13)*100,8);\nVR18:=EMA(VR17,5);\n\nB1:=A>B AND REF(A,1)<REF(B,1);\nS1:=A<B AND REF(A,1)>REF(B,1);\n\nB9:=BARSLAST(REF(B1,1) AND (REF(VR17>VR18,1) OR MIN(VR17,VR18)>REF(MAX(VR17,VR18),1)));\nS9:=BARSLAST(REF(S1,1) AND (REF(VR17<VR18,1) OR MAX(VR17,VR18)<REF(MIN(VR17,VR18),1)));\n\nDRAWICON(REF(B1,1) AND (REF(VR17>VR18,1) OR MIN(VR17,VR18)>REF(MAX(VR17,VR18),1)) AND REF(B9,2)>=S9,L*0.97,13);\nDRAWICON(REF(S1,1) AND (REF(VR17<VR18,1) OR MAX(VR17,VR18)<REF(MIN(VR17,VR18),1)) AND REF(S9,1)>=B9,H*1.03,14);\n\nDRAWKLINE_IF(VR17>VR18,HIGH,CLOSE,LOW,OPEN),COLORRED;\nDRAWKLINE_IF(VR17<VR18,HIGH,CLOSE,LOW,OPEN),COLORBLUE;\n\nINDEXCLOSE:INDEXC,EXDATA;\t\t//取指数的收盘价 回测的时候计算BATE系数用 "}},s.prototype.HeikinAshi=function(){return{Name:"平均K线",Description:"Heikin-Ashi 平均K线",IsMainIndex:!0,KLineType:-1,Args:[],Script:"HCLOSE:(OPEN+HIGH+LOW+CLOSE)/4, NODRAW;\nHOPEN:(REF(OPEN,1)+REF(CLOSE,1))/2,NODRAW;\nHHIGH:MAX(HIGH,MAX(HOPEN,HCLOSE)),NODRAW;\nHLOW:MIN(LOW,MIN(HOPEN,HCLOSE)),NODRAW;\nDRAWKLINE(HHIGH,HOPEN,HLOW,HCLOSE);"}},s.prototype.ADL=function(){return{Name:"腾落指标",Description:"腾落指标",IsMainIndex:!1,StringFormat:2,Condition:{Period:[Ei.KLINE_DAY_ID,Ei.KLINE_WEEK_ID,Ei.KLINE_TWOWEEK_ID,Ei.KLINE_MONTH_ID,Ei.KLINE_QUARTER_ID,Ei.KLINE_YEAR_ID],Include:["000001.SH","000003.SH","000016.SH","000300.SH","000905.SH","399001.SZ"," 399005.SZ","399006.SZ"]},Args:[{Name:"M",Value:7}],Script:"ADL:SUM(ADVANCE-DECLINE,0);\nMAADL:MA(ADL,M);"}},s.prototype.EMPTY=function(){return{Name:"",Description:"空指标",IsMainIndex:!0,Args:[],Script:"VAR2:=C;"}},s.prototype.CJL=function(){return{Name:"CJL",Description:"期货持仓量",IsMainIndex:!1,Args:[],Script:"成交量:VOL,VOLSTICK;\n持仓量:VOLINSTK,LINEOVERLAY;"}},s.prototype.TEST=function(){return{Name:"TEST",Description:"测试脚本",IsMainIndex:!1,Args:[{Name:"N",Value:10}],Script:"DRAWCHANNEL(OPEN>C,H,L, 'RGB(255,94,102)', 2 ,'5,5','RGBA(58,20,62,0.3)' );"}},!bi)var bi={Chart:{Log:console.log},Complier:{Log:console.log}};l.Init=function(t){var e=new l(t);return e.OnSize(),e},l.SetDomain=function(t,e){t&&(Xi.Domain=t),e&&(Xi.CacheDomain=e)},l.SetPyIndexDomain=function(t){t&&(Xi.PyIndexDomain=t)},l.SetStyle=function(t){t&&Xi.SetStyle(t)},l.SetTextResource=function(t,e){zi.SetTextResource(t,e)},l.GetLocalization=function(){return zi},l.GetDevicePixelRatio=function(){return u()},l.CreateGuid=function(){return f()},l.GetResource=function(){return Xi},l.GetMinuteTimeStringData=function(){return qi},l.GetMinuteCoordinateData=function(){return Zi},l.GetKLineZoom=function(){return ki},l.GetDivTooltipDataFormat=function(){return Yi},l.SetUSATimeType=function(t){Qi.TimeType=t,$i.TimeType=t,tr.TimeType=t,er.TimeType=t};var yi={RECV_KLINE_MATCH:1,RECV_INDEX_DATA:2,RECV_HISTROY_DATA:3,RECV_TRAIN_MOVE_STEP:4,CHART_STATUS:5,BARRAGE_PLAY_END:6,RECV_OVERLAY_INDEX_DATA:7,DBCLICK_KLINE:8,RECV_START_AUTOUPDATE:9,RECV_STOP_AUTOUPDATE:10,ON_CONTEXT_MENU:11,ON_TITLE_DRAW:12,ON_SELECT_RECT:13,RECV_MINUTE_DATA:14,ON_CLICK_INDEXTITLE:15,RECV_KLINE_UPDATE_DATA:16,ON_CLICK_DRAWPICTURE:17,ON_FINISH_DRAWPICTURE:18,ON_INDEXTITLE_DRAW:19,ON_CUSTOM_VERTICAL_DRAW:20},Li={OP_SCROLL_LEFT:1,OP_SCROLL_RIGHT:2,OP_ZOOM_OUT:3,OP_ZOOM_IN:4,OP_GOTO_HOME:5},Mi={DISABLE_DRAG_ID:0,CLICK_TOUCH_MODE_ID:3};Number.prototype.toFixed2=Number.prototype.toFixed,Number.prototype.toFixed=function(t){return d(this,t)},B.Copy=function(t){var e=new B;return e.Date=t.Date,e.YClose=t.YClose,e.Open=t.Open,e.Close=t.Close,e.High=t.High,e.Low=t.Low,e.Vol=t.Vol,e.Amount=t.Amount,e.Time=t.Time,e.FlowCapital=t.FlowCapital,e.Position=t.Position,e.Stop=t.Stop,e.Up=t.Up,e.Down=t.Down,e.Unchanged=t.Unchanged,e},B.CopyTo=function(t,e){t.Date=e.Date,t.YClose=e.YClose,t.Open=e.Open,t.Close=e.Close,t.High=e.High,t.Low=e.Low,t.Vol=e.Vol,t.Amount=e.Amount,t.Time=e.Time,t.FlowCapital=e.FlowCapital,t.Position=e.Position,t.Stop=e.Stop,t.Up=e.Up,t.Down=e.Down,t.Unchanged=e.Unchanged},B.CopyRight=function(t,e){var a=new B;return a.Date=t.Date,a.YClose=t.YClose*e,a.Open=t.Open*e,a.Close=t.Close*e,a.High=t.High*e,a.Low=t.Low*e,a.Vol=t.Vol,a.Amount=t.Amount,a.FlowCapital=t.FlowCapital,a.Position=t.Position,a};var wi={INVESTOR:1,ANNOUNCEMENT:2,PFORECAST:3,ANNOUNCEMENT_QUARTER_1:4,ANNOUNCEMENT_QUARTER_2:5,ANNOUNCEMENT_QUARTER_3:6,ANNOUNCEMENT_QUARTER_4:7,RESEARCH:8,BLOCKTRADING:9,TRADEDETAIL:10};G.GetMinutePeriodData=null,Y.GetKLineDataTime=function(t){var e={Date:t.Date,Time:0};return Ht.IsNumber(t.Time)&&(e.Time=t.Time),e},Y.GetFirday=function(t){var e=new Date(parseInt(t/1e4),t/100%100-1,t%100),a=e.getDay();if(5==a)return t;var i=e.getTime();if(a<5){var r=864e5*(5-a);i+=r}else{var r=864e5*(a-5);i-=r}e.setTime(i);var n=1e4*e.getFullYear()+100*(e.getMonth()+1)+e.getDate();e.getDay();return n},Y.GetSunday=function(t){var e=new Date(parseInt(t/1e4),t/100%100-1,t%100),a=e.getDay();if(0==a)return t;var i=e.getTime();if(a>0){i+=864e5*(7-a)}e.setTime(i);var r=1e4*e.getFullYear()+100*(e.getMonth()+1)+e.getDate();e.getDay();return r},Y.GetQuarter=function(t){var e=parseInt(t%1e4/100);return 1==e||2==e||3==e?1:4==e||5==e||6==e?2:7==e||8==e||9==e?3:10==e||11==e||12==e?4:0};var Ni=4e4,Oi=49999;Y.IsDayPeriod=function(t,e){return 1==t||2==t||3==t||9==t||21==t||(t>Ni&&t<=Oi||0==t&&1==e)};var _i=2e4,Ri=29999;Y.IsMinutePeriod=function(t,e){return 5==t||6==t||7==t||8==t||11==t||12==t||(t>_i&&t<=Ri||4==t&&1==e)};var Pi=3e4,Bi=32e3;Y.IsSecondPeriod=function(t){return t>Pi&&t<=Bi},Y.IsTickPeriod=function(t){return 10==t},Y.GetPeriodName=function(t){var e=new xi.default([[0,"日线"],[1,"周线"],[2,"月线"],[3,"年线"],[9,"季线"],[21,"双周"],[4,"1分"],[5,"5分"],[6,"15分"],[7,"30分"],[8,"60分"],[11,"2小时"],[12,"4小时"],[10,"分笔"]]);return e.has(t)?e.get(t):""};var ki=[[48,10],[44,10],[40,9],[36,9],[32,8],[28,8],[24,7],[20,7],[18,6],[16,6],[14,5],[12,5],[8,4],[6,4],[4,4],[3,3],[3,1],[2,1],[1,1],[1,0]],Hi={STATUS_NONE_ID:0,STATUS_REQUESTDATA_ID:1,STATUS_RECVDATA_ID:2,STATUS_FINISHED_ID:3};Ht.FormatValueThousandsString=function(t,e){if(null==t||isNaN(t)){if(e>0){for(var a="-.",i=0;i<e;++i)a+="-";return a}return"--"}var r="",n=t.toFixed(e);if(e>0){for(var o=n.split(".")[1],s=n.split(".")[0];s.length>3;)r=","+s.slice(-3)+r,s=s.slice(0,s.length-3);s&&(r=s+r+"."+o)}else{for(;n.length>3;)r=","+n.slice(-3)+r,n=n.slice(0,n.length-3);n&&(r=n+r)}return r},Ht.FormatValueString=function(t,e,a){if(null==t||isNaN(t)){if(e>0){for(var i="-.",r=0;r<e;++r)i+="-";return i}return"--"}if(t<1e-11&&t>-1e-11)return"0";var n=Math.abs(t);return a===Ki.LANGUAGE_ENGLISH_ID?n<1e4?t.toFixed(e):n<1e6?(t/1e3).toFixed(e)+"K":n<1e9?(t/1e6).toFixed(e)+"M":n<1e12?(t/1e9).toFixed(e)+"B":(t/1e12).toFixed(e)+"T":n<1e4?t.toFixed(e):n<1e8?(t/1e4).toFixed(e)+"万":n<1e12?(t/1e8).toFixed(e)+"亿":(t/1e12).toFixed(e)+"万亿"},Ht.FromatIntegerString=function(t,e,a){return t<1e4&&Ht.IsInteger(t)&&(e=0),Ht.FormatValueString(t,e,a)},Ht.NumberToString=function(t){return t<10?"0"+t.toString():t.toString()},Ht.FormatDateString=function(t,e){var a=parseInt(t/1e4),i=parseInt(t/100)%100,r=t%100;switch(e){case"MM-DD":return Ht.NumberToString(i)+"-"+Ht.NumberToString(r);default:return a.toString()+"-"+Ht.NumberToString(i)+"-"+Ht.NumberToString(r)}},Ht.FormatTimeString=function(t,e){if("HH:MM:SS"==e){var a=parseInt(t/1e4),i=parseInt(t%1e4/100),r=t%100;return Ht.NumberToString(a)+":"+Ht.NumberToString(i)+":"+Ht.NumberToString(r)}if("HH:MM"==e){var a=parseInt(t/100),i=t%100;return Ht.NumberToString(a)+":"+Ht.NumberToString(i)}if(t<1e4){var a=parseInt(t/100),i=t%100;return Ht.NumberToString(a)+":"+Ht.NumberToString(i)}var a=parseInt(t/1e4),i=parseInt(t%1e4/100),r=t%100;return Ht.NumberToString(a)+":"+Ht.NumberToString(i)+":"+Ht.NumberToString(r)},Ht.FormatReportDateString=function(t){var e,a=parseInt(t/1e4),i=parseInt(t/100)%100;switch(i){case 3:e="一季度报";break;case 6:e="半年报";break;case 9:e="三季度报";break;case 12:e="年报"}return a.toString()+e},Ht.FormatDateTimeString=function(t,e){var a=t.split(" ");if(a.length<2)return"";var i=parseInt(a[1]),r=i%100,n=parseInt(i/100),o=(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString());if(1==e){var s=parseInt(a[0]),l=parseInt(s/1e4),h=parseInt(s%1e4/100),u=s%100;o=l.toString()+"-"+(h<10?"0"+h.toString():h.toString())+"-"+(u<10?"0"+u.toString():u.toString())+" "+o}return o},Ht.FormatValueColor=function(t,e){return null!=t&&null==e?0==t?"PriceNull":t>0?"PriceUp":"PriceDown":null==t||null==e?"PriceNull":t==e?"PriceNull":t>e?"PriceUp":"PriceDown"},Ht.IsNumber=function(t){return null!=t&&!isNaN(t)},Ht.IsPlusNumber=function(t){return null!=t&&(!isNaN(t)&&t>0)},Ht.IsInteger=function(t){return"number"==typeof t&&t%1==0},Ht.IsObjectExist=function(t){return void 0!==t&&null!=t},Ht.IsBool=function(t){return!0===t||!1===t},Ht.IsString=function(t){return!(!t||"string"!=typeof t)};var Vi=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10],Gi=["日","一","二","三","四","五","六"],Yi=new ae,Ui=["不复权","前复权","后复权"],Wi={DEFAULT:1,ORIGINAL:2,INTEGER:3,THOUSANDS:21};le.ColorToRGBA=function(t,e){return"rgba("+parseInt("0x"+t.slice(1,3))+","+parseInt("0x"+t.slice(3,5))+","+parseInt("0x"+t.slice(5,7))+","+e+")"},le.CreateChartDrawPrictrue=function(t){var e=new xi.default([["ChartDrawPictureLine",{Create:function(){return new he}}],["ChartDrawPictureHaflLine",{Create:function(){return new ue}}],["ChartDrawPictureHorizontalLine",{Create:function(){return new ce}}],["ChartDrawPictureTrendLine",{Create:function(){return new de}}],["ChartDrawPictureRect",{Create:function(){return new fe}}],["ChartDrawPictureArc",{Create:function(){return new Ce}}],["ChartDrawPictureWaveMW",{Create:function(){return new pe}}],["ChartDrawPictureParallelLines",{Create:function(){return new De}}],["ChartDrawPictureParallelChannel",{Create:function(){return new ve}}],["ChartDrawPicturePriceChannel",{Create:function(){return new me}}],["ChartDrawPictureText",{Create:function(){return new ge}}],["ChartDrawPictureGannFan",{Create:function(){return new Ie}}],["ChartDrawPictureResistanceLine",{Create:function(){return new xe}}],["ChartDrawPictureGoldenSection",{Create:function(){return new Te}}],["ChartDrawPicturePercentage",{Create:function(){return new Ae}}],["ChartDrawPictureWaveBand",{Create:function(){return new be}}],["ChartDrawPictureTriangle",{Create:function(){return new Ee}}],["ChartDrawPictureSymmetryAngle",{Create:function(){return new Fe}}],["ChartDrawPictureCircle",{Create:function(){return new ye}}],["ChartDrawPictureQuadrangle",{Create:function(){return new Le}}],["ChartDrawPictureFibonacci",{Create:function(){return new Me}}],["ChartDrawPictureIconFont",{Create:function(){return new Se}}]]);if(!e.has(t.ClassName))return null;var a=e.get(t.ClassName),i=a.Create();return t.Period>=0&&(i.Period=t.Period),t.Guid&&(i.Guid=t.Guid),t.Symbol&&(i.Symbol=t.Symbol),t.Value&&(i.Value=t.Value),t.Text&&(i.Text=t.Text),t.LineColor&&(i.LineColor=t.LineColor),t.AreaColor&&(i.AreaColor=t.AreaColor),t.FontOption&&(i.FontOption=t.FontOption),i};var Xi=new _e,Ki={LANGUAGE_CHINESE_ID:0,LANGUAGE_ENGLISH_ID:1},zi=new Re;Pe.Get=function(t){return new xi.default([["市场多空",{IsMainIndex:!1,Create:function(){return new je}}],["市场择时",{IsMainIndex:!1,Create:function(){return new Qe}}],["市场关注度",{IsMainIndex:!1,Create:function(){return new $e}}],["指数热度",{IsMainIndex:!1,Create:function(){return new ta}}],["财务粉饰",{IsMainIndex:!1,Create:function(){return new aa}}],["自定义指数热度",{IsMainIndex:!1,Create:function(){return new ea},Name:"自定义指数热度"}],["能图-趋势",{IsMainIndex:!1,Create:function(){return new ia},Name:"大盘/个股趋势"}],["能图-位置研判",{IsMainIndex:!1,Create:function(){return new ra},Name:"位置研判"}],["能图-点位研判",{IsMainIndex:!1,Create:function(){return new sa},Name:"点位研判"}],["CJL",{IsMainIndex:!1,Create:function(){return new Ze}}]]).get(t)},Be.EMA=function(t,e){var a=[],i=0;if(i>=t.length)return a;for(;i<t.length&&(null==t[i]||isNaN(t[i]));++i);var r=i,n=i+1;a[r]=t[r];for(var o=i+1;o<t.length;++o,++r,++n)a[n]=(2*t[n]+(e-1)*a[r])/(e+1);return a},Be.SMA=function(t,e,a){for(var i=[],r=0,n=null;r<t.length;++r)if(null!=t[r]&&!isNaN(t[r])){n=t[r],i[r]=n;break}for(++r;r<t.length;++r)i[r]=(a*t[r]+(e-a)*n)/e,n=i[r];return i},Be.DMA=function(t,e){var a=[];if(t.length<0||t.length!=e.length)return a;for(var i=0;i<t.length;++i)if(null!=t[i]&&!isNaN(t[i])&&null!=e[i]&&!isNaN(e[i])){a[i]=t[i];break}for(i+=1;i<t.length;++i)null==t[i]||null==e[i]?a[i]=null:t[i]<1?a[i]=e[i]*t[i]+(1-e[i])*a[i-1]:a[i]=t[i];return a},Be.HHV=function(t,e){var a=[];if(e>t.length)return a;for(var i=-1e4,r=e,n=0;r<t.length;++r,++n){if(r<e+i)i=t[r]<t[i]?i:r;else for(n=1+(i=r-e+1);n<=r;++n)t[n]>t[i]&&(i=n);a[r]=t[i]}return a},Be.LLV=function(t,e){var a=[];if(e>t.length)return a;for(var i=-1e4,r=e;r<t.length;++r,++n){if(r<e+i)i=t[r]>t[i]?i:r;else for(var n=1+(i=r-e+1);n<=r;++n)t[n]<t[i]&&(i=n);a[r]=t[i]}return a},Be.REF=function(t,e){var a=[];if(t.length<=0)return a;if(e>=t.length)return a;a=t.slice(0,t.length-e);for(var i=0;i<e;++i)a.unshift(null);return a},Be.REFDATE=function(t,e){var a=[];if(t.length<=0)return a;e=t.length-1;for(var i in t)a[i]=t[e];return a},Be.SUM=function(t,e){var a=[];if(0==e){a[0]=t[0];for(var i=1;i<t.length;++i)a[i]=a[i-1]+t[i]}else for(var i=e-1,r=0;i<t.length;++i,++r)for(var n=0;n<e;++n)0==n?a[i]=t[n+r]:a[i]+=t[n+r];return a},Be.ARRAY_SUBTRACT=function(t,e){var a=[];if("number"==typeof e)for(var i in t)null==t[i]||isNaN(t[i])?a[i]=null:a[i]=t[i]-e;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?null==t[i]||null==e[i]?a[i]=null:a[i]=t[i]-e[i]:a[i]=null;return a},Be.ARRAY_GT=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]>e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]>e[i]?1:0:a[i]=null;return a},Be.ARRAY_GTE=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]>=e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]>=e[i]?1:0:a[i]=null;return a},Be.ARRAY_LT=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]<e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]<e[i]?1:0:a[i]=null;return a},Be.ARRAY_LTE=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]<=e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]<=e[i]?1:0:a[i]=null;return a},Be.ARRAY_EQ=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]==e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]==e[i]?1:0:a[i]=null;return a},Be.ARRAY_IF=function(t,e,a){var i=[],r=["number"==typeof e,"number"==typeof a];for(var n in t)t[n]?i[n]=r[0]?e:e[n]:i[n]=r[1]?a:a[n];return i},Be.ARRAY_AND=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]&&e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]&&e[i]?1:0:a[i]=0;return a},Be.ARRAY_OR=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]||e?1:0;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&t[i]?a[i]=1:i<e.length&&e[i]?a[i]=1:a[i]=0;return a},Be.ARRAY_MULTIPLY=function(t,e){if(2==arguments.length){var a=[];if("number"==typeof e)for(var i in t)null==t[i]||isNaN(t[i])?a[i]=null:a[i]=t[i]*e;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?a[i]=t[i]*e[i]:a[i]=null;return a}for(var a=Be.ARRAY_MULTIPLY(arguments[0],arguments[1]),i=2;i<arguments.length;++i)a=Be.ARRAY_MULTIPLY(a,arguments[i]);return a},Be.ARRAY_DIVIDE=function(t,e){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]/e;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?null==t[i]||null==e[i]||isNaN(t[i])||isNaN(e[i])?a[i]=null:0==e[i]?a[i]=null:a[i]=t[i]/e[i]:a[i]=null;return a},Be.ARRAY_ADD=function(t,e){if(2==arguments.length){var a=[];if("number"==typeof e)for(var i in t)a[i]=t[i]+e;else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?null==t[i]||null==e[i]||isNaN(t[i])||isNaN(e[i])?a[i]=null:a[i]=t[i]+e[i]:a[i]=null;return a}for(var a=Be.ARRAY_ADD(arguments[0],arguments[1]),i=2;i<arguments.length;++i)a=Be.ARRAY_ADD(a,arguments[i]);return a},Be.MAX=function(t,e){var a=[];if("number"==typeof e)for(var i in t)null==t[i]?a[i]=null:a[i]=Math.max(t[i],e);else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?null==t[i]||null==e[i]?a[i]=null:a[i]=Math.max(t[i],e[i]):a[i]=null;return a},Be.MIN=function(t,e){var a=[];if("number"==typeof e)for(var i in t)null==t[i]?a[i]=null:a[i]=Math.min(t[i],e);else for(var r=Math.max(t.length,e.length),i=0;i<r;++i)i<t.length&&i<e.length?null==t[i]||null==e[i]?a[i]=null:a[i]=Math.min(t[i],e[i]):a[i]=null;return a},Be.ABS=function(t){var e=[];for(var a in t)null==t[a]?e[a]=null:e[a]=Math.abs(t[a]);return e},Be.MA=function(t,e){for(var a=[],i=0,r=t.length;i<r;i++)if(i<e)a[i]=null;else{for(var n=0,o=0;o<e;o++)n+=t[i-o];a[i]=n/e}return a},Be.EXPMA=function(t,e){var a=[];if(e>=t.length)return a;for(var i=e;i<t.length;++i)if(null!=t[i]){a[i]=t[i];break}for(i+=1;i<t.length;++i)null!=a[i-1]&&null!=t[i]?a[i]=(2*t[i]+(e-1)*a[i-1])/(e+1):null!=a[i-1]&&(a[i]=a[i-1]);return a},Be.EXPMEMA=function(t,e){var a=[];if(e>=t.length)return a;for(var i=0;i<t.length&&(!t[i]||isNaN(t[i]));++i);for(var r=0,n=0;i<t.length&&n<e;++n,++i)t[i]&&!isNaN(t[i])?r+=t[i]:r+=t[i-1];for(a[i-1]=r/e;i<t.length;++i)null!=a[i-1]&&null!=t[i]?a[i]=(2*t[i]+(e-1)*a[i-1])/(e+1):null!=a[i-1]&&(a[i]=a[i-1]);return a},Be.STD=function(t,e){for(var a=[],i=0,r=[],n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=t[n-o];r[n]=i/e}for(var n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=Math.pow(t[n-o]-r[n],2);a[n]=Math.sqrt(i/e)}return a},Be.AVEDEV=function(t,e){for(var a=[],i=0,r=[],n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=t[n-o];r[n]=i/e}for(var n=e-1;n<t.length;++n){i=0;for(var o=0;o<e;++o)i+=Math.abs(t[n-o]-r[n]);a[n]=i/e}return a},Be.COUNT=function(t,e){for(var a=[],i=e-1;i<t.length;++i){for(var r=0,n=0;n<e;++n)t[i-n]&&++r;a[i]=r}return a},Be.CROSS=function(t,e){var a=[];if(t.length!=e.length)return a=[];for(var i=0;i<t.length&&(null==t[i]||isNaN(t[i])||null==e[i]||!isNaN(e[i]));++i);for(++i;i<t.length;++i)a[i]=t[i]>e[i]&&t[i-1]<e[i-1]?1:0;return a},Be.MULAR=function(t,e){var a=[];if(t.length<e)return a;for(var i=e;i<t.length;++i)if(null!=t[i]&&!isNaN(t[i])){a[i]=t[i];break}for(++i;i<t.length;++i)a[i]=a[i-1]*t[i];return a},Be.STICKLINE=function(t,e,a){var i=[];if(t.length<=0)return i;var r="number"==typeof e,n="number"==typeof a;for(var o in t)if(i[o]=null,!isNaN(t[o])&&t[o])if(r&&n)i[o]={Value:e,Value2:a};else if(r&&!n){if(isNaN(a[o]))continue;i[o]={Value:e,Value2:a[o]}}else if(!r&&n){if(isNaN(e[o]))continue;i[o]={Value:e[o],Value2:a}}else{if(isNaN(e[o])||isNaN(a[o]))continue;i[o]={Value:e[o],Value2:a[o]}}return i},ke.JsonDataToHistoryData=function(t){var e=[];if(!t.data)return e;var a=null;t.symbol&&(a=t.symbol.toUpperCase());Ji.IsFutures(a);for(var i=t.data,r=0;r<i.length;++r){var n=new B,o=i[r];n.Date=o[0],n.Open=o[2],n.YClose=o[1],n.Close=o[5],n.High=o[3],n.Low=o[4],n.Vol=o[6],n.Amount=o[7],Ht.IsNumber(o[8])&&(n.Position=o[8]),isNaN(n.Open)||n.Open<=0||e.push(n)}return e},ke.JsonDataToRealtimeData=function(t,e){if(!t.stock)return null;var a;for(var i in t.stock){var r=t.stock[i];if(r&&r.symbol==e){a=r;break}}if(!a)return null;var n=e.toUpperCase(),o=Ji.IsSHSZ(n),s=new B;return s.Date=a.date,s.Open=a.open,s.YClose=a.yclose,s.High=a.high,s.Low=a.low,s.Vol=o?a.vol/100:a.vol,s.Amount=a.amount,s.Close=a.price,Ht.IsNumber(a.position)&&(s.Position=a.position),s},ke.JsonDataToMinuteRealtimeData=function(t,e){if(!t.stock)return null;var a;for(var i in t.stock){var r=t.stock[i];if(r&&r.symbol==e){a=r;break}}if(!a)return null;var n=e.toUpperCase(),o=Ji.IsSHSZ(n),s=Ji.IsFutures(n),l=new Array,h=a.yclose,u=a.date;s&&a.yclearing&&(h=a.yclearing);for(var i in a.minute){var c=a.minute[i],d=new B;d.Close=c.price,d.Open=c.open,d.High=c.high,d.Low=c.low,d.Vol=o?c.vol/100:c.vol,d.Amount=c.amount,c.date>0?d.Date=c.date:d.Date=u,d.Time=c.time,d.YClose=h,Ht.IsNumber(c.position)&&(d.Position=c.position),d.Close||(d.Close=h,d.Open=d.High=d.Low=d.Close),d.Open<=0&&(d.Open=null),d.Close<=0&&(d.Close=null),d.High<=0&&(d.High=null),d.Low<=0&&(d.Low=null),c.price>0&&(h=c.price),l[i]=d}return l},ke.JsonDataToMinuteHistoryData=function(t){var e=null;t.symbol&&(e=t.symbol.toUpperCase());var a=!1;e&&(a=Ji.IsSHSZ(e));e&&Ji.IsFutures(e);for(var i=t.data,r=new Array,n=0;n<i.length;++n){var o=new B,s=i[n];o.Date=s[0],o.Open=s[2],o.YClose=s[1],o.Close=s[5],o.High=s[3],o.Low=s[4],o.Vol=a?s[6]/100:s[6],o.Amount=s[7],o.Time=s[8],Ht.IsNumber(s[9])&&(o.Position=s[9]),r.push(o)}for(var n=0;n<r.length;++n){var l=r[n];if(null==l&&coninue,isNaN(l.Open)||l.Open<=0||isNaN(l.High)||l.High<=0||isNaN(l.Low)||l.Low<=0||isNaN(l.Close)||l.Close<=0)if(0==n)l.YClose>0&&(l.Open=l.YClose,l.High=l.YClose,l.Low=l.YClose,l.Close=l.YClose);else for(var h=n-1;h>=0;--h){var u=r[h];if(null==u&&coninue,u.Open>0&&u.High>0&&u.Low>0&&u.Close>0){l.YClose<=0&&(l.YClose=u.Close),l.Open=u.Open,l.High=u.High,l.Low=u.Low,l.Close=u.Close;break}}}return r},ke.JsonDataToTickData=function(t){var e=[];if(!t.detail)return e;var a=t.date,i=t.yclose;for(var r in t.detail){var n=new B,o=t.detail[r];o&&(n.Date=a,n.Time=o[0],n.Low=n.High=n.Close=n.Open=o[1],n.YClose=i,n.Vol=o[2],n.Amount=o[3],n.Flag=o[4],isNaN(n.Open)||n.Open<=0||(i=n.Close,e.push(n)))}return e},He.JsonDataToMinuteData2=function(t){var e=(t.stock[0].symbol,t.stock[0].yclose),a=t.stock[0].yclose,i=t.stock[0].yclose,r=[],n=t.stock[0],o=n.date;for(var s in n.before){var l=new k,h=n.before[s],u=h[0];l.Before={},l.Before.Close=h[1],l.Before.Close?e=l.Before.Close:l.Before.Close=e,l.Before.Vol=h[2]/100,l.Before.Amount=h[3],l.DateTime=o.toString()+" "+u.toString(),l.Date=o,l.Time=u,i&&l.Before.Close&&(l.Before.Increase=(l.Before.Close-i)/i*100),r.push(l)}for(var s in n.minute){var h=n.minute[s],l=new k;h.price&&(e=h.price),h.avprice&&(a=h.avprice),925!=h.time&&(l.Close=h.price,l.Open=h.open,l.High=h.high,l.Low=h.low,l.Amount=h.amount,l.Vol=h.vol/100,l.DateTime=t.stock[0].date.toString()+" "+h.time.toString(),l.Date=t.stock[0].date,l.Time=h.time,l.Increase=h.increase,l.Risefall=h.risefall,l.AvPrice=h.avprice,l.Close||(l.Open=l.High=l.Low=l.Close=e),l.AvPrice||(l.AvPrice=a),i&&l.Close&&(l.Increase=(l.Close-i)/i*100),r.push(l))}return r},He.JsonDataToMinuteData=function(t,e){var a=t.stock[0].symbol,i=a.toUpperCase(),r=Ji.IsSHSZ(i),n=Ji.IsFutures(i),o=Ji.IsSHO(i),s=new Array,l=t.stock[0].yclose,h=t.stock[0].yclose,u=t.stock[0].yclose;n&&t.stock[0].yclearing&&(u=l=h=t.stock[0].yclearing);var c=t.stock[0].date;for(var d in t.stock[0].minute){var f=t.stock[0].minute[d],C=new k;C.Close=f.price,C.Open=f.open,C.High=f.high,C.Low=f.low,C.Vol=r?f.vol/100:f.vol,C.Amount=f.amount,f.date>0&&(c=f.date),C.DateTime=c.toString()+" "+f.time.toString(),C.Date=c,C.Time=f.time,(n||o)&&(C.Position=f.position),0==d&&(C.IsFristData=!0,r&&(C.DateTime=t.stock[0].date.toString()+" 0925",C.Time=925)),C.Increase=f.increase,C.Risefall=f.risefall,C.AvPrice=f.avprice,Ht.IsNumber(f.lead)&&(C.Lead=f.lead),C.Close||(C.Close=l,C.Open=C.High=C.Low=C.Close),C.AvPrice||(C.AvPrice=h),C.Open<=0&&(C.Open=null),C.Close<=0&&(C.Close=null),C.AvPrice<=0&&(C.AvPrice=null),C.High<=0&&(C.High=null),C.Low<=0&&(C.Low=null),u&&C.Close&&(C.Increase=(C.Close-u)/u*100);var p=Math.abs(C.AvPrice-C.Close);r&&p>.13*C.Close&&(C.AvPrice=h),f.price>0&&(l=f.price),f.avprice>0&&C.AvPrice===f.avprice&&(h=f.avprice),s[d]=C}return s},He.JsonDataToMinuteDataArray=function(t){var e=t.symbol,a=e.toUpperCase(),i=Ji.IsSHSZ(a),r=Ji.IsSHO(a),n=Ji.IsFutures(a),o=[];for(var s in t.data){var l=[],h=t.data[s],u=h.date,c=h.yclose,d=c,f=null;for(var C in h.minute){var p=h.minute[C];p[2]&&(d=p[2]);var D=new k;if(D.Close=p[2],D.Open=p[1],D.High=p[3],D.Low=p[4],D.Vol=i?p[5]/100:p[5],D.Amount=p[6],7<p.length&&p[7]>0&&(D.AvPrice=p[7]),D.DateTime=u.toString()+" "+p[0].toString(),D.Date=u,D.Time=p[0],8<p.length&&p[8]>0&&(D.Date=p[8]),(n||r)&&9<p.length&&(D.Position=p[9]),D.Close||(D.Close=d,D.Open=D.High=D.Low=D.Close),!D.AvPrice&&f&&(D.AvPrice=f),D.Close&&c?D.Increase=(D.Close-c)/c*100:D.Increase=null,0==C&&(i&&(D.DateTime=u.toString()+" 0925",D.Time=925),D.IsFristData=!0),D.Open<=0&&(D.Open=null),D.Close<=0&&(D.Close=null),D.AvPrice<=0&&(D.AvPrice=null),D.High<=0&&(D.High=null),D.Low<=0&&(D.Low=null),D.AvPrice<=0&&(D.AvPrice=null),D.AvPrice&&i){Math.abs(D.AvPrice-D.Close)>.13*D.Close&&(D.AvPrice=f)}p.length>7&&p[7]>0&&D.AvPrice===p[7]&&(f=p[7]),l[C]=D}var m=new Y;m.Data=l,m.YClose=c,m.Close=h.close,m.Date=u,o.push(m)}return o},Ve.JsonDataToMinuteData=function(t){var e=[];for(var a in t.minute.time){var i=new k;t.minute.price[a]<=0&&a>0?(i.Close=e[a-1].Close,i.Open=e[a-1].Close,i.High=i.Close,i.Low=i.Close,i.Vol=t.minute.vol[a],i.Amount=t.minute.amount[a],i.DateTime=t.date.toString()+" "+t.minute.time[a].toString(),i.AvPrice=e[a-1].AvPrice):(i.Close=t.minute.price[a],i.Open=t.minute.open[a],i.High=t.minute.high[a],i.Low=t.minute.low[a],i.Vol=t.minute.vol[a],i.Amount=t.minute.amount[a],i.DateTime=t.date.toString()+" "+t.minute.time[a].toString(),i.AvPrice=t.minute.avprice[a]),i.Open<=0&&(i.Open=null),i.Close<=0&&(i.Close=null),i.AvPrice<=0&&(i.AvPrice=null),i.High<=0&&(i.High=null),i.Low<=0&&(i.Low=null),e[a]=i}return e},na.prototype.GetDefaultColor=function(t){var e=["rgb(255,174,0)","rgb(25,199,255)","rgb(175,95,162)","rgb(236,105,65)","rgb(68,114,196)","rgb(229,0,79)","rgb(0,128,255)","rgb(252,96,154)","rgb(42,230,215)","rgb(24,71,178)"];return e[parseInt(t)%(e.length-1)]},la.Get=function(t){return new xi.default([["互动易",{Create:function(){return new ua}}],["公告",{Create:function(){return new ca}}],["业绩预告",{Create:function(){return new da}}],["调研",{Create:function(){return new fa}}],["大宗交易",{Create:function(){return new Ca}}],["龙虎榜",{Create:function(){return new pa}}]]).get(t)},la.GetClassInfo=function(t){return new xi.default([["互动易",{ClassName:"InvestorInfo"}],["公告",{ClassName:"AnnouncementInfo"}],["业绩预告",{ClassName:"PforecastInfo"}],["调研",{ClassName:"ResearchInfo"}],["大宗交易",{ClassName:"BlockTrading"}],["龙虎榜",{ClassName:"TradeDetail"}]]).get(t)},la.GetIconUrl=function(t){switch(t){case wi.INVESTOR:return Xi.KLine.Info.Investor.Icon;case wi.PFORECAST:return Xi.KLine.Info.Pforecast.Icon;case wi.ANNOUNCEMENT:return Xi.KLine.Info.Announcement.Icon;case wi.ANNOUNCEMENT_QUARTER_1:case wi.ANNOUNCEMENT_QUARTER_2:case wi.ANNOUNCEMENT_QUARTER_3:case wi.ANNOUNCEMENT_QUARTER_4:return Xi.KLine.Info.Announcement.IconQuarter;case wi.RESEARCH:return Xi.KLine.Info.Research.Icon;case wi.BLOCKTRADING:return Xi.KLine.Info.BlockTrading.Icon;case wi.TRADEDETAIL:return Xi.KLine.Info.TradeDetail.Icon;default:return Xi.KLine.Info.Announcement.Icon}},la.GetIconFont=function(t){switch(t){case wi.INVESTOR:return Xi.KLine.Info.Investor.IconFont;case wi.PFORECAST:return Xi.KLine.Info.Pforecast.IconFont;case wi.ANNOUNCEMENT:return Xi.KLine.Info.Announcement.IconFont;case wi.ANNOUNCEMENT_QUARTER_1:case wi.ANNOUNCEMENT_QUARTER_2:case wi.ANNOUNCEMENT_QUARTER_3:case wi.ANNOUNCEMENT_QUARTER_4:return Xi.KLine.Info.Announcement.IconFont2;case wi.RESEARCH:return Xi.KLine.Info.Research.IconFont;case wi.BLOCKTRADING:return Xi.KLine.Info.BlockTrading.IconFont;case wi.TRADEDETAIL:return Xi.KLine.Info.TradeDetail.IconFont;default:return Xi.KLine.Info.Announcement.IconFont}},Da.InfoMap=new xi.default([["大盘异动",{Create:function(){return new va}}]]),Da.Get=function(t){return Da.InfoMap.get(t)};var Ji={SH:".SH",SZ:".SZ",SHO:".SHO",HK:".HK",FHK:".FHK",SHFE:".SHF",SHFE2:".SHFE",CFFEX:".CFE",DCE:".DCE",CZCE:".CZC",USA:".USA",FTSE:".FTSE",BIT:".BIT",BIZ:".BIZ",FOREX:".FOREX",NYMEX:".NYMEX",COMEX:".COMEX",NYBOT:".NYBOT",CBOT:".CBOT",LME:".LME",ET:".ET",IsET:function(t){return!!t&&t.indexOf(this.ET)>0},IsETShowAvPrice:function(t){return!1},IsNYMEX:function(t){return!!t&&t.indexOf(this.NYMEX)>0},IsCOMEX:function(t){return!!t&&t.indexOf(this.COMEX)>0},IsNYBOT:function(t){return!!t&&t.indexOf(this.NYBOT)>0},IsCBOT:function(t){return!!t&&t.indexOf(this.CBOT)>0},IsLME:function(t){return!!t&&t.indexOf(this.LME)>0},IsForeignExchange:function(t){return!!t&&t.indexOf(this.FOREX)>0},IsFTSE:function(t){return!!t&&t.indexOf(this.FTSE)>0},IsFHK:function(t){return!!t&&t.indexOf(this.FHK)>0},IsBIT:function(t){return!!t&&(t.indexOf(this.BIT)>0||t.indexOf(this.BIZ)>0)},IsUSA:function(t){return!!t&&t.indexOf(this.USA)>0},IsSH:function(t){var e=t.length-this.SH.length;return t.indexOf(this.SH)==e},IsSZ:function(t){var e=t.length-this.SZ.length;return t.indexOf(this.SZ)==e},IsSHO:function(t){var e=t.length-this.SHO.length;return t.indexOf(this.SHO)==e},IsHK:function(t){var e=t.length-this.HK.length;return t.indexOf(this.HK)==e},IsSHFE:function(t){return!!t&&(t.indexOf(this.SHFE)>0||t.indexOf(this.SHFE2)>0)},IsCFFEX:function(t){return!!t&&t.indexOf(this.CFFEX)>0},IsDCE:function(t){return!!t&&t.indexOf(this.DCE)>0},IsCZCE:function(t){return!!t&&t.indexOf(this.CZCE)>0},IsChinaFutures:function(t){return this.IsCFFEX(t)||this.IsCZCE(t)||this.IsDCE(t)||this.IsSHFE(t)},IsFutures:function(t){return this.IsChinaFutures(t)||this.IsNYMEX(t)||this.IsCOMEX(t)||this.IsNYBOT(t)||this.IsCBOT(t)||this.IsLME(t)},IsSHSZ:function(t){return this.IsSZ(t)||this.IsSH(t)},IsSHSZFund:function(t){if(!t)return!1;if(this.IsSH(t)){if("5"==t.charAt(0)&&"1"==t.charAt(1))return!0}else if(this.IsSZ(t)&&"1"==t.charAt(0)&&("5"==t.charAt(1)||"6"==t.charAt(1)||"7"==t.charAt(1)||"8"==t.charAt(1)))return!0;return!1},IsSHSZIndex:function(t){if(!t)return!1;var e=t.toUpperCase();if(this.IsSH(e)){var a=e.replace(".SH","");if("0"==e.charAt(0)&&parseInt(a)<=3e3)return!0}else if(this.IsSZ(e)){if("3"==e.charAt(0)&&"9"==e.charAt(1))return!0}else if(e.indexOf(".CI")>0)return!0;return!1},IsSHSZStockA:function(t){if(!t)return!1;var e=t.toUpperCase();if(this.IsSH(e)){e.replace(".SH","");if("6"==e.charAt(0))return!0}else if(this.IsSZ(e)&&"0"==e.charAt(0)){if("0"==e.charAt(1)&&"2"==e.charAt(2))return!0;if("7"!=e.charAt(1)&&"8"!=e.charAt(1))return!0}return!1},IsSHStockSTAR:function(t){if(!t)return!1;var e=t.toUpperCase();return!!this.IsSH(e)&&("6"==e.charAt(0)&&"8"==e.charAt(1)&&"8"==e.charAt(2))},GetMarketStatus:function(t){if(!t)return 0;var e=t.toUpperCase(),a=new Date,i=a.getDay(),r=100*a.getHours()+a.getMinutes();if(this.IsUSA(e)){var n=Va(-4),i=n.getDay(),r=100*n.getHours()+n.getMinutes();return 6==i||0==i?0:r>1730?3:r<930?1:2}return this.IsBIT(e)?2:this.IsForeignExchange(e)?2:this.IsFTSE(e)?6==i||0==i?0:r>=830&&r<=2359?2:r>=0&&r<=500?2:0:this.IsFHK(e)?6==i||0==i?0:r>=900&&r<=2359?2:r>=0&&r<=320?2:0:this.IsET(e)?this.GetETMarketStatus(t):this.IsHK(e)?6==i||0==i?0:r>1630?3:r<925?1:2:this.IsNYMEX(e)?this.GetNYMEXMarketStatus(e):this.IsCOMEX(e)?this.GetCOMEXMarketStatus(e):this.IsNYBOT(e)?this.GetNYBOTMarketStatus(e):this.IsCBOT(e)?this.GetCBOTMarketStatus(e):this.IsLME(e)?this.GetLMEMarketStatus(e):6==i||0==i?0:r>1540?3:r<925?1:2},GetLimitPriceRange:function(t,e){return this.IsSHSZStockA(t)?this.IsSHStockSTAR(t)?{Max:.2,Min:-.2}:e?e.indexOf("ST")>=0?{Max:.05,Min:-.05}:{Max:.1,Min:-.1}:null:null},GetFHKDecimal:function(t){return 0},GetFTSEDecimal:function(t){return 0},GetBITDecimal:function(t){return 2},GetSHODecimal:function(t){return 4},GetETDecimal:function(t){return 2},GetForeignExchangeDecimal:function(t){return 4},GetNYMEXDecimal:function(t){return Qi.GetDecimal(t)},GetCOMEXDecimal:function(t){return $i.GetDecimal(t)},GetNYBOTDecimal:function(t){return tr.GetDecimal(t)},GetCBOTDecimal:function(t){return er.GetDecimal(t)},GetLMEDecimal:function(t){return ar.GetDecimal(t)},GetETMarketStatus:function(t){return 2},GetNYMEXMarketStatus:function(t){return Qi.GetMarketStatus(t)},GetCOMEXMarketStatus:function(t){return $i.GetMarketStatus(t)},GetNYBOTMarketStatus:function(t){return tr.GetMarketStatus(t)},GetCBOTMarketStatus:function(t){return er.GetMarketStatus(t)},GetLMEMarketStatus:function(t){return ar.GetMarketStatus(t)}},qi=new wa,Zi=new Na,ji=new Oa,Qi=new _a,$i=new Ra,tr=new Pa,er=new Ba,ar=new ka;if(!bi)var bi={Chart:{Log:console.log},Complier:{Log:console.log}};var ir={Domain:"https://opensource.zealink.com",CacheDomain:"https://opensourcecache.zealink.com",DrawIcon:{Family:"iconfont",Data:new xi.default([[1,{Text:"",Color:"rgb(255,106,106)"}],[2,{Text:"",Color:"rgb(46,139,87)"}],[11,{Text:"",Color:"rgb(245,159,40)"}],[12,{Text:"",Color:"rgb(245,159,40)"}],[13,{Text:"",Color:"rgb(209,37,35)"}],[14,{Text:"",Color:"rgb(127,209,59)"}],[9,{Text:"",Color:"rgb(245,159,40)"}],[36,{Text:"",Color:"rgb(255,106,106)"}],[37,{Text:"",Color:"rgb(46,139,87)"}],[38,{Text:"",Color:"rgb(238,44,44)"}],[39,{Text:"",Color:"rgb(0,139,69)"}],[46,{Text:"",Color:"rgb(51,51,51)"}]])},CustomDrawIcon:{Data:new xi.default},CustomFunction:{Data:new xi.default},CustomVariant:{Data:new xi.default},GetDrawIcon:function(t){if(ir.CustomDrawIcon.Data.has(t)){var e=ir.CustomDrawIcon.Data.get(t);return{Symbol:e.Text,Color:e.Color,Family:e.Family,IconFont:!0,ID:t}}if(ir.DrawIcon.Data.has(t)){var a=ir.DrawIcon.Data.get(t);return{Symbol:a.Text,Color:a.Color,Family:ir.DrawIcon.Family,IconFont:!0,ID:t}}return null},IsCustomFunction:function(t){return!!ir.CustomFunction.Data.has(t)},IsCustomVariant:function(t){return!!ir.CustomVariant.Data.has(t)}},rr={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"},nr={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},or={FromCodePoint:function(t){return t<65536?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},IsWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},IsLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},IsIdentifierStart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&nr.NonAsciiIdentifierStart.test(or.FromCodePoint(t))},IsIdentifierPart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&nr.NonAsciiIdentifierPart.test(or.FromCodePoint(t))},IsDecimalDigit:function(t){return t>=48&&t<=57},IsHexDigit:function(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102},isOctalDigit:function(t){return t>=48&&t<=55}},sr={};sr[1]="Boolean",sr[2]="<end>",sr[3]="Identifier",sr[4]="Keyword",sr[5]="Null",sr[6]="Numeric",sr[7]="Punctuator",sr[8]="String",sr[9]="RegularExpression",sr[10]="Template";var lr={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};Ka.prototype.GetPeriodInfo=function(t){var e=[{Name:"MIN1",Period:4,Order:1},{Name:"MIN5",Period:5,Order:2},{Name:"MIN15",Period:6,Order:3},{Name:"MIN30",Period:7,Order:4},{Name:"MIN60",Period:8,Order:5},{Name:"DAY",Period:0,Order:1e3},{Name:"WEEK",Period:1,Order:1001},{Name:"MONTH",Period:2,Order:1002},{Name:"YEAR",Period:3,Order:1003}];if(t.Name){for(var a in e)if(t.Name&&e[a].Name==t.Name)return e[a];return null}if(Ht.IsNumber(t.PeriodID)){for(var a in e)if(e[a].Period==t.PeriodID)return e[a];return null}return null},Ka.prototype.IsNumber=function(t){return null!=t&&!isNaN(t)},Ka.prototype.IsDivideNumber=function(t){return null!=t&&(!isNaN(t)&&0!=t)},Ka.MOD=function(t,e){if(t<0&&e<0||t>=0&&e>=0){if(parseInt(t)==t&&parseInt(e)==e)return t%e;var a=parseFloat((t-Math.floor(t/e)*e).toFixed(1));return a}var i=Math.abs(t),r=Math.abs(e),a=Math.abs(Math.abs(e)*(Math.floor(i/r)+1)-Math.abs(t));return e<0&&(a=-a),a},za.prototype.CalculateDrawLine=function(t){t.List=[];for(var e=t.Start.ID;e<=t.End.ID;++e)t.List.push(e);var a=Math.abs(t.Start.Value-t.End.Value),i=t.List.length-1,r=[];if(r.push({ID:t.Start.ID,Value:t.Start.Value}),t.Start.Value>t.End.Value)for(var n=1;n<t.List.length-1;++n){var o=a*(t.List.length-1-n)/i+t.End.Value;r.push({ID:t.List[n],Value:o})}else for(var s=1;s<t.List.length-1;++s){var o=a*s/i+t.Start.Value;r.push({ID:t.List[s],Value:o})}return r.push({ID:t.End.ID,Value:t.End.Value}),r},za.prototype.IsNumber=function(t){return null!=t&&!isNaN(t)},za.prototype.IsDrawFunction=function(t){return!!new vi.default(["STICKLINE","DRAWTEXT","SUPERDRAWTEXT","DRAWLINE","DRAWBAND","DRAWKLINE","DRAWKLINE_IF","PLOYLINE","POLYLINE","DRAWNUMBER","DRAWICON","DRAWCHANNEL","PARTLINE","DRAWTEXT_FIX","DRAWGBK","DRAWTEXT_LINE","DRAWRECTREL"]).has(t)};var hr={YCLOSE:3,OPEN:4,HIGH:5,LOW:6,CLOSE:7,VOL:8,AMOUNT:10,AMPLITUDE:13,INCREASE:14,EXCHANGERATE:37};Ja.prototype.IsNumber=function(t){return null!=t&&!isNaN(t)},Ja.prototype.IsDivideNumber=function(t){return null!=t&&(!isNaN(t)&&0!=t)},Ja.prototype.JsonDataToFinance=function(t){for(var e,a=1;a<=4;++a){switch(a){case 1:var i=t.finance1,r=t.announcement1;break;case 2:var i=t.finance2,r=t.announcement2;break;case 3:var i=t.finance3,r=t.announcement3;break;case 4:var i=t.finance4,r=t.announcement4}i&&r&&this.IsNumber(r.year)&&this.IsNumber(r.quarter)&&(e?e.Announcement.year<r.year&&(e={Date:t.date,Finance:i,Announcement:r}):e={Date:t.date,Finance:i,Announcement:r})}return e};var ur=!1,cr={JOB_DOWNLOAD_SYMBOL_DATA:1,JOB_DOWNLOAD_INDEX_DATA:2,JOB_DOWNLOAD_SYMBOL_LATEST_DATA:3,JOB_DOWNLOAD_INDEX_INCREASE_DATA:4,JOB_DOWNLOAD_VOLR_DATA:5,JOB_DOWNLOAD_GROUP_DATA:6,JOB_DOWNLOAD_SYMBOL_DAY_DATA:7,JOB_DOWNLOAD_LATEST_INDEX_DATA:8,JOB_DOWNLOAD_TOTAL_EQUITY_DATA:100,JOB_DOWNLOAD_FLOW_EQUITY_DATA:101,JOB_DOWNLOAD_PER_U_PROFIT_DATA:102,JOB_DOWNLOAD_PER_NETASSET_DATA:103,JOB_DOWNLOAD_PER_C_RESERVE_DATA:104,JOB_DOWNLOAD_PER_S_EARNING_DATA:105,JOB_DOWNLOAD_PER_S_EARNING2_DATA:106,JOB_DOWNLOAD_RELEASE_DATE_DATA:107,JOB_DOWNLOAD_N_PROFIT_DATA:108,JOB_DOWNLOAD_FLOW_MARKETVALUE_DATA:109,JOB_DOWNLOAD_MARKETVALUE_DATA:110,JOB_DOWNLOAD_PROFIT_YOY_DATA:111,JOB_DOWNLOAD_AL_RATIO_DATA:112,JOB_DOWNLOAD_DIVIDEND_YIELD_DATA:113,JOB_DOWNLOAD_SHAREHOLDER_DATA:114,JOB_DOWNLOAD_CAPITAL_DATA:200,JOB_DOWNLOAD_EXCHANGE_DATA:201,JOB_DOWNLOAD_MARGIN_BALANCE:1e3,JOB_DOWNLOAD_MARGIN_RATE:1001,JOB_DOWNLOAD_MARGIN_BUY_BALANCE:1010,JOB_DOWNLOAD_MARGIN_BUY_AMOUNT:1011,JOB_DOWNLOAD_MARGIN_BUY_REPAY:1012,JOB_DOWNLOAD_MARGIN_BUY_NET:1013,JOB_DOWNLOAD_MARGIN_SELL_BALANCE:1020,JOB_DOWNLOAD_MARGIN_SELL_VOLUME:1021,JOB_DOWNLOAD_MARGIN_SELL_REPAY:1022,JOB_DOWNLOAD_MARGIN_SELL_NET:1023,JOB_DOWNLOAD_NEWS_ANALYSIS_NEGATIVE:2e3,JOB_DOWNLOAD_NEWS_ANALYSIS_RESEARCH:2001,JOB_DOWNLOAD_NEWS_ANALYSIS_INTERACT:2002,JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE:2003,JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE2:2004,JOB_DOWNLOAD_NEWS_ANALYSIS_TRUSTHOLDER:2005,JOB_DOWNLOAD_NEWS_ANALYSIS_BLOCKTRADING:2006,JOB_DOWNLOAD_NEWS_ANALYSIS_COMPANYNEWS:2007,JOB_DOWNLOAD_NEWS_ANALYSIS_TOPMANAGERS:2008,JOB_DOWNLOAD_NEWS_ANALYSIS_PLEDGE:2009,JOB_DOWNLOAD_HK_TO_SH:2050,JOB_DOWNLOAD_HK_TO_SZ:2051,JOB_DOWNLOAD_HK_TO_SH_SZ:2052,JOB_CUSTOM_FUNCTION_DATA:6e3,JOB_CUSTOM_VARIANT_DATA:6001,JOB_DOWNLOAD_SECTION_SF:2e4,JOB_DOWNLOAD_SECTION_F_01:20001,JOB_DOWNLOAD_SECTION_F_02:20002,JOB_DOWNLOAD_SECTION_F_03:20003,JOB_DOWNLOAD_SECTION_F_04:20004,JOB_DOWNLOAD_SECTION_F_05:20005,JOB_DOWNLOAD_SECTION_F_06:20006,JOB_DOWNLOAD_SECTION_F_07:20007,JOB_DOWNLOAD_SECTION_F_08:20008,JOB_DOWNLOAD_SECTION_F_09:20009,JOB_DOWNLOAD_SECTION_F_10:20010,JOB_DOWNLOAD_SECTION_F_11:20011,JOB_DOWNLOAD_SECTION_F_12:20012,JOB_DOWNLOAD_SECTION_F_13:20013,JOB_DOWNLOAD_SECTION_F_14:20014,JOB_DOWNLOAD_SECTION_F_15:20015,JOB_DOWNLOAD_SECTION_F_16:20016,JOB_DOWNLOAD_SECTION_F_17:20017,JOB_DOWNLOAD_SECTION_F_18:20018,JOB_DOWNLOAD_SECTION_F_19:20019,JOB_DOWNLOAD_SECTION_F_20:20020,JOB_DOWNLOAD_SECTION_F_21:20021,JOB_DOWNLOAD_SECTION_F_22:20022,JOB_DOWNLOAD_SECTION_F_23:20023,JOB_DOWNLOAD_SECTION_F_24:20024,JOB_DOWNLOAD_SECTION_F_25:20025,JOB_DOWNLOAD_SECTION_F_26:20026,JOB_DOWNLOAD_SECTION_F_27:20027,JOB_DOWNLOAD_SECTION_F_28:20028,JOB_DOWNLOAD_SECTION_F_29:20029,JOB_DOWNLOAD_SECTION_F_30:20030,JOB_DOWNLOAD_SECTION_F_31:20031,JOB_DOWNLOAD_SECTION_F_32:20032,JOB_DOWNLOAD_SECTION_F_33:20033,JOB_DOWNLOAD_SECTION_F_34:20034,JOB_DOWNLOAD_SECTION_F_35:20035,JOB_DOWNLOAD_SECTION_F_36:20036,JOB_DOWNLOAD_SECTION_F_37:20037,JOB_DOWNLOAD_SECTION_F_38:20038,JOB_DOWNLOAD_SECTION_F_39:20039,JOB_DOWNLOAD_CUSTOM_API_DATA:3e4,JOB_EXECUTE_INDEX:30010,JOB_RUN_SCRIPT:1e4,GetFinnanceJobID:function(t){var e=new xi.default([[1,cr.JOB_DOWNLOAD_TOTAL_EQUITY_DATA],[7,cr.JOB_DOWNLOAD_FLOW_EQUITY_DATA],[9,cr.JOB_DOWNLOAD_AL_RATIO_DATA],[18,cr.JOB_DOWNLOAD_PER_C_RESERVE_DATA],[30,cr.JOB_DOWNLOAD_N_PROFIT_DATA],[32,cr.JOB_DOWNLOAD_PER_U_PROFIT_DATA],[33,cr.JOB_DOWNLOAD_PER_S_EARNING2_DATA],[34,cr.JOB_DOWNLOAD_PER_NETASSET_DATA],[38,cr.JOB_DOWNLOAD_PER_S_EARNING_DATA],[40,cr.JOB_DOWNLOAD_FLOW_MARKETVALUE_DATA],[41,cr.JOB_DOWNLOAD_MARKETVALUE_DATA],[42,cr.JOB_DOWNLOAD_RELEASE_DATE_DATA],[43,cr.JOB_DOWNLOAD_PROFIT_YOY_DATA],[45,cr.JOB_DOWNLOAD_DIVIDEND_YIELD_DATA],[100,cr.JOB_DOWNLOAD_SHAREHOLDER_DATA],[200,cr.JOB_DOWNLOAD_CAPITAL_DATA],[201,cr.JOB_DOWNLOAD_EXCHANGE_DATA]]);return e.has(t)?e.get(t):null},GetMarginJobID:function(t){var e=new xi.default([[1,cr.JOB_DOWNLOAD_MARGIN_BALANCE],[2,cr.JOB_DOWNLOAD_MARGIN_RATE],[3,cr.JOB_DOWNLOAD_MARGIN_BUY_BALANCE],[4,cr.JOB_DOWNLOAD_MARGIN_BUY_AMOUNT],[5,cr.JOB_DOWNLOAD_MARGIN_BUY_REPAY],[6,cr.JOB_DOWNLOAD_MARGIN_BUY_NET],[7,cr.JOB_DOWNLOAD_MARGIN_SELL_BALANCE],[8,cr.JOB_DOWNLOAD_MARGIN_SELL_VOLUME],[9,cr.JOB_DOWNLOAD_MARGIN_SELL_REPAY],[10,cr.JOB_DOWNLOAD_MARGIN_SELL_NET]]);return e.has(t)?e.get(t):null},GetHK2SHSZJobID:function(t){var e=new xi.default([[1,cr.JOB_DOWNLOAD_HK_TO_SH_SZ],[2,cr.JOB_DOWNLOAD_HK_TO_SH],[3,cr.JOB_DOWNLOAD_HK_TO_SZ]]);return e.has(t)?e.get(t):null},GetNewsAnalysisID:function(t){var e=new xi.default([[1,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_NEGATIVE],[2,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_RESEARCH],[3,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_INTERACT],[4,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE],[5,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_HOLDERCHANGE2],[6,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_TRUSTHOLDER],[7,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_BLOCKTRADING],[8,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_COMPANYNEWS],[9,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_TOPMANAGERS],[10,cr.JOB_DOWNLOAD_NEWS_ANALYSIS_PLEDGE]]);return e.has(t)?e.get(t):null},GetSectionFinanceID:function(t){var e=new xi.default([["流动资产",cr.JOB_DOWNLOAD_SECTION_F_01],["货币资金",cr.JOB_DOWNLOAD_SECTION_F_02],["存货",cr.JOB_DOWNLOAD_SECTION_F_03],["流动负债",cr.JOB_DOWNLOAD_SECTION_F_04],["非流动负债",cr.JOB_DOWNLOAD_SECTION_F_05],["三项费用",cr.JOB_DOWNLOAD_SECTION_F_06],["投资收益",cr.JOB_DOWNLOAD_SECTION_F_07],["归母净利润",cr.JOB_DOWNLOAD_SECTION_F_08],["扣非净利润",cr.JOB_DOWNLOAD_SECTION_F_09],["扣非每股收益",cr.JOB_DOWNLOAD_SECTION_F_10],["加权平均净资产收益",cr.JOB_DOWNLOAD_SECTION_F_11],["在建工程",cr.JOB_DOWNLOAD_SECTION_F_12],["累计折旧",cr.JOB_DOWNLOAD_SECTION_F_13],["少数股东利润",cr.JOB_DOWNLOAD_SECTION_F_14],["汇兑损益",cr.JOB_DOWNLOAD_SECTION_F_15],["坏账计提",cr.JOB_DOWNLOAD_SECTION_F_16],["固定资产",cr.JOB_DOWNLOAD_SECTION_F_17],["当期折旧",cr.JOB_DOWNLOAD_SECTION_F_18],["营业总收入",cr.JOB_DOWNLOAD_SECTION_F_19],["主营业务利润",cr.JOB_DOWNLOAD_SECTION_F_20],["营业利润",cr.JOB_DOWNLOAD_SECTION_F_21],["净利润",cr.JOB_DOWNLOAD_SECTION_F_22],["应收账款",cr.JOB_DOWNLOAD_SECTION_F_23],["财务费用",cr.JOB_DOWNLOAD_SECTION_F_24],["经营性现金流",cr.JOB_DOWNLOAD_SECTION_F_25],["资产总计",cr.JOB_DOWNLOAD_SECTION_F_26],["负债总计",cr.JOB_DOWNLOAD_SECTION_F_27],["所有者权益总计",cr.JOB_DOWNLOAD_SECTION_F_28],["毛利率",cr.JOB_DOWNLOAD_SECTION_F_29],["每股资本公积金",cr.JOB_DOWNLOAD_SECTION_F_30],["每股未分配利润",cr.JOB_DOWNLOAD_SECTION_F_31],["每股收益",cr.JOB_DOWNLOAD_SECTION_F_32],["每股净资产",cr.JOB_DOWNLOAD_SECTION_F_33],["每股经营性现金流",cr.JOB_DOWNLOAD_SECTION_F_34],["扣非净利润涨幅",cr.JOB_DOWNLOAD_SECTION_F_35],["扣非净利润涨速",cr.JOB_DOWNLOAD_SECTION_F_36],["净利润涨幅",cr.JOB_DOWNLOAD_SECTION_F_37],["资产负债率",cr.JOB_DOWNLOAD_SECTION_F_38],["利润同比",cr.JOB_DOWNLOAD_SECTION_F_39]]);return e.has(t)?e.get(t):null},GetSectionReportPeriod:function(t,e){return t>=2e3&&e>=1&&e<=4?{Year:t,Quarter:e}:null}};Za.Tokenize=function(t){bi.Complier.Log("[JSComplier.Tokenize]",t);var e=new Ua(t),a=[];try{for(;;){var i=e.GetNextToken();if(!i)break;a.push(i)}}catch(t){}return a},Za.Parse=function(t){bi.Complier.Log("[JSComplier.Parse]",t);var e=new Xa(t);return e.Initialize(),e.ParseScript()},Za.Execute=function(t,e,a){!function(){try{bi.Complier.Log("[JSComplier.Execute]",t,e),bi.Complier.Log("[JSComplier.Execute] parser .....");var i=new Xa(t);i.Initialize();var r=i.ParseScript(),n=r;bi.Complier.Log("[JSComplier.Execute] parser finish.",n),bi.Complier.Log("[JSComplier.Execute] execute .....");var o=new qa(n,e);o.ErrorCallback=a,o.JobList=i.Node.GetDataJobList(),"ScriptIndexConsole"==e.ClassName&&o.JobList.unshift({ID:cr.JOB_DOWNLOAD_SYMBOL_DATA}),o.JobList.push({ID:cr.JOB_RUN_SCRIPT});o.Execute()}catch(t){bi.Complier.Log(t),a&&a(t,e.CallbackParam)}}(),bi.Complier.Log("[JSComplier.Execute] async execute.")},Za.SetDomain=function(t,e){t&&(ir.Domain=t),e&&(ir.CacheDomain=e)},Za.AddIcon=function(t){ir.CustomDrawIcon.Data.set(t.ID,t)},Za.AddFunction=function(t){if(t&&t){var e=t.Name.toUpperCase();ir.CustomFunction.Data.set(e,t)}},Za.AddVariant=function(t){if(t&&t){var e=t.Name.toUpperCase();ir.CustomVariant.Data.set(e,t)}};var dr={KLINE_ID:0,MINUTE_ID:2,HISTORY_MINUTE_ID:3,MULTIDAY_MINUTE_ID:4};ei.SetDomain=function(t,e){Za.SetDomain(t,e)};var fr={BGColor:"rgb(0,0,0)",TooltipBGColor:"rgb(255, 255, 255)",TooltipAlpha:.92,SelectRectBGColor:"rgba(1,130,212,0.06)",UpBarColor:"rgb(238,21,21)",DownBarColor:"rgb(25,158,0)",UnchagneBarColor:"rgb(228,228,228)",Minute:{VolBarColor:"rgb(255,236,0)",PriceColor:"rgb(25,180,231)",AreaPriceColor:"rgba(63,158,255,.3)",AvPriceColor:"rgb(255,236,0)",PositionColor:"rgb(218,165,32)"},DefaultTextColor:"rgb(101,104,112)",DefaultTextFont:14*u()+"px 微软雅黑",TitleFont:13*u()+"px 微软雅黑",UpTextColor:"rgb(238,21,21)",DownTextColor:"rgb(25,158,0)",UnchagneTextColor:"rgb(101,104,112)",CloseLineColor:"rgb(178,34,34)",FrameBorderPen:"rgba(236,236,236,0.13)",FrameSplitPen:"rgba(236,236,236,0.13)",FrameSplitTextColor:"rgb(101,104,112)",FrameSplitTextFont:12*u()+"px 微软雅黑",FrameTitleBGColor:"rgb(0,0,0)",Frame:{XBottomOffset:1*u()},FrameLatestPrice:{TextColor:"rgb(255,255,255)",UpBarColor:"rgb(238,21,21)",DownBarColor:"rgb(25,158,0)",UnchagneBarColor:"rgb(190,190,190)",BGAlpha:.6},CorssCursorBGColor:"rgb(43,54,69)",CorssCursorTextColor:"rgb(255,255,255)",CorssCursorTextFont:12*u()+"px 微软雅黑",CorssCursorHPenColor:"rgb(130,130,130)",CorssCursorVPenColor:"rgb(130,130,130)",KLine:{MaxMin:{Font:12*u()+"px 微软雅黑",Color:"rgb(255,250,240)"},Info:{Investor:{ApiUrl:"https://opensource.zealink.com/API/NewsInteract",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#1c65db"}},Announcement:{ApiUrl:"https://opensource.zealink.com/API/ReportList",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#f5a521"},IconFont2:{Family:"iconfont",Text:"",HScreenText:"",Color:"#ed7520"}},Pforecast:{ApiUrl:"https://opensource.zealink.com/API/StockHistoryDay",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#986cad"}},Research:{ApiUrl:"https://opensource.zealink.com/API/InvestorRelationsList",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#19b1b7"}},BlockTrading:{ApiUrl:"https://opensource.zealink.com/API/StockHistoryDay",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#f39f7c"}},TradeDetail:{ApiUrl:"https://opensource.zealink.com/API/StockHistoryDay",IconFont:{Family:"iconfont",Text:"",HScreenText:"",Color:"#b22626"}}},NumIcon:{Color:"rgb(251,80,80)",Family:"iconfont",Text:["","","","","","","","","","","","","","","","","","","","",""]},TradeIcon:{Family:"iconfont",Buy:{Color:"rgb(255,15,4)",Text:"",HScreenText:""},Sell:{Color:"rgb(64,122,22)",Text:"",HScreenText:""}}},Index:{LineColor:["rgb(255,189,09)","rgb(22,198,255)","rgb(174,35,161)","rgb(236,105,65)","rgb(68,114,196)","rgb(229,0,79)","rgb(0,128,255)","rgb(252,96,154)","rgb(42,230,215)","rgb(24,71,178)"],NotSupport:{Font:"14px 微软雅黑",TextColor:"rgb(52,52,52)"}},ColorArray:["rgb(255,174,0)","rgb(25,199,255)","rgb(175,95,162)","rgb(236,105,65)","rgb(68,114,196)","rgb(229,0,79)","rgb(0,128,255)","rgb(252,96,154)","rgb(42,230,215)","rgb(24,71,178)"],DrawPicture:{LineColor:"rgb(30,144,255)",PointColor:"rgb(105,105,105)"},TooltipPaint:{BGColor:"rgba(20,20,20,0.8)",BorderColor:"rgb(210,210,210)",TitleColor:"rgb(210,210,210)",TitleFont:13*u()+"px 微软雅黑"},MinuteInfo:{TextColor:"rgb(84,143,255)",Font:14*u()+"px 微软雅黑",PointColor:"rgb(38,113,254)",LineColor:"rgb(120,167,255)",TextBGColor:"rgba(255,255,255,1)"}},Cr={BLACK_ID:1};ai.GetStyleConfig=function(t){switch(t){case Cr.BLACK_ID:return fr;default:return null}},e.default=(ii={jsChartInit:l.Init,jsChartStyle:l.SetStyle,JSChart:l,ChartData:Y,MARKET_SUFFIX_NAME:Ji,IFrameSplitOperator:Ht,JSKLineInfoMap:la,JSCHART_EVENT_ID:yi,JSCHART_OPERATOR_ID:Li,JSAlgorithm:Ka,JSComplier:Za,JSIndexScript:s,GetDevicePixelRatio:u},(0,ni.default)(ii,"GetDevicePixelRatio",u),(0,ni.default)(ii,"ScriptIndexConsole",ei),(0,ni.default)(ii,"STYLE_TYPE_ID",Cr),(0,ni.default)(ii,"HQChartStyle",ai),(0,ni.default)(ii,"JSConsole",bi),ii)},,,function(t,e,a){t.exports={default:a(80),__esModule:!0}},function(t,e,a){a(29),a(14),a(15),a(81),a(86),a(87),t.exports=a(0).Promise},function(t,e,a){"use strict";var i,r,n,o,s=a(109),l=a(5),h=a(6),u=a(19),c=a(1),d=a(8),f=a(27),C=a(18),p=a(4),D=a(70),m=a(71).set,v=a(83)(),g=a(36),S=a(72),I=a(84),x=a(73),T=l.TypeError,A=l.process,b=A&&A.versions,E=b&&b.v8||"",F=l.Promise,y="process"==u(A),L=function(){},M=r=g.f,w=!!function(){try{var t=F.resolve(1),e=(t.constructor={})[a(2)("species")]=function(t){t(L,L)};return(y||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==E.indexOf("6.6")&&-1===I.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var a=t._c;v(function(){for(var i=t._v,r=1==t._s,n=0;a.length>n;)!function(e){var a,n,o,s=r?e.ok:e.fail,l=e.resolve,h=e.reject,u=e.domain;try{s?(r||(2==t._h&&P(t),t._h=1),!0===s?a=i:(u&&u.enter(),a=s(i),u&&(u.exit(),o=!0)),a===e.promise?h(T("Promise-chain cycle")):(n=N(a))?n.call(a,l,h):l(a)):h(i)}catch(t){u&&!o&&u.exit(),h(t)}}(a[n++]);t._c=[],t._n=!1,e&&!t._h&&_(t)})}},_=function(t){m.call(l,function(){var e,a,i,r=t._v,n=R(t);if(n&&(e=S(function(){y?A.emit("unhandledRejection",r,t):(a=l.onunhandledrejection)?a({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=y||R(t)?2:1),t._a=void 0,n&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},P=function(t){m.call(l,function(){var e;y?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},k=function(t){var e,a=this;if(!a._d){a._d=!0,a=a._w||a;try{if(a===t)throw T("Promise can't be resolved itself");(e=N(t))?v(function(){var i={_w:a,_d:!1};try{e.call(t,h(k,i,1),h(B,i,1))}catch(t){B.call(i,t)}}):(a._v=t,a._s=1,O(a,!1))}catch(t){B.call({_w:a,_d:!1},t)}}};w||(F=function(t){C(this,F,"Promise","_h"),f(t),i.call(this);try{t(h(k,this,1),h(B,this,1))}catch(t){B.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=a(17)(F.prototype,{then:function(t,e){var a=M(D(this,F));return a.ok="function"!=typeof t||t,a.fail="function"==typeof e&&e,a.domain=y?A.domain:void 0,this._c.push(a),this._a&&this._a.push(a),this._s&&O(this,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),n=function(){var t=new i;this.promise=t,this.resolve=h(k,t,1),this.reject=h(B,t,1)},g.f=M=function(t){return t===F||t===o?new n(t):r(t)}),c(c.G+c.W+c.F*!w,{Promise:F}),a(69)(F,"Promise"),a(30)("Promise"),o=a(0).Promise,c(c.S+c.F*!w,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(s||!w),"Promise",{resolve:function(t){return x(s&&this===o?F:this,t)}}),c(c.S+c.F*!(w&&a(85)(function(t){F.all(t).catch(L)})),"Promise",{all:function(t){var e=this,a=M(e),i=a.resolve,r=a.reject,n=S(function(){var a=[],n=0,o=1;p(t,!1,function(t){var s=n++,l=!1;a.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,a[s]=t,--o||i(a))},r)}),--o||i(a)});return n.e&&r(n.v),a.promise},race:function(t){var e=this,a=M(e),i=a.reject,r=S(function(){p(t,!1,function(t){e.resolve(t).then(a.resolve,i)})});return r.e&&i(r.v),a.promise}})},function(t,e){t.exports=function(t,e,a){var i=void 0===a;switch(e.length){case 0:return i?t():t.call(a);case 1:return i?t(e[0]):t.call(a,e[0]);case 2:return i?t(e[0],e[1]):t.call(a,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(a,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(a,e[0],e[1],e[2],e[3])}return t.apply(a,e)}},function(t,e,a){var i=a(5),r=a(71).set,n=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l="process"==a(38)(o);t.exports=function(){var t,e,a,h=function(){var i,r;for(l&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?a():e=void 0,i}}e=void 0,i&&i.enter()};if(l)a=function(){o.nextTick(h)};else if(!n||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);a=function(){u.then(h)}}else a=function(){r.call(i,h)};else{var c=!0,d=document.createTextNode("");new n(h).observe(d,{characterData:!0}),a=function(){d.data=c=!c}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,a()),e=r}}},function(t,e,a){var i=a(5),r=i.navigator;t.exports=r&&r.userAgent||""},function(t,e,a){var i=a(2)("iterator"),r=!1;try{var n=[7][i]();n.return=function(){r=!0},Array.from(n,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var a=!1;try{var n=[7],o=n[i]();o.next=function(){return{done:a=!0}},n[i]=function(){return o},t(n)}catch(t){}return a}},function(t,e,a){"use strict";var i=a(1),r=a(0),n=a(5),o=a(70),s=a(73);i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,r.Promise||n.Promise),a="function"==typeof t;return this.then(a?function(a){return s(e,t()).then(function(){return a})}:t,a?function(a){return s(e,t()).then(function(){throw a})}:t)}})},function(t,e,a){"use strict";var i=a(1),r=a(36),n=a(72);i(i.S,"Promise",{try:function(t){var e=r.f(this),a=n(t);return(a.e?e.reject:e.resolve)(a.v),e.promise}})},function(t,e,a){t.exports={default:a(89),__esModule:!0}},function(t,e,a){a(90),t.exports=a(0).Math.log10},function(t,e,a){var i=a(1);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,a){t.exports={default:a(92),__esModule:!0}},function(t,e,a){a(93);var i=a(0).Object;t.exports=function(t,e){return i.defineProperties(t,e)}},function(t,e,a){var i=a(1);i(i.S+i.F*!a(7),"Object",{defineProperties:a(121)})},function(t,e,a){t.exports={default:a(95),__esModule:!0}},function(t,e,a){a(96);var i=a(0).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,a){var i=a(1);i(i.S,"Object",{create:a(74)})},function(t,e,a){t.exports={default:a(98),__esModule:!0}},function(t,e,a){var i=a(0),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},,,,,,function(t,e,a){var i=a(106);"string"==typeof i&&(i=[[t.i,i,""]]);a(20)(i,{});i.locals&&(t.exports=i.locals)},,function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,'@font-face{font-family:iconfont;src:url("//at.alicdn.com/t/font_1040563_76m3u9z5f1.eot?t=1562914444854");src:url("//at.alicdn.com/t/font_1040563_76m3u9z5f1.eot?t=1562914444854#iefix") format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAACeoAAsAAAAAVkwAACdVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCOFAqBhGzpKgE2AiQDgyALgVIABCAFhG0HjBMb70Z1hhxsHAAs/AqOqBg1Zf//1wQyDiusCvgF1yHYia4SNycLjQCySmIRW2WUPsr3vC+0H9Nt2j/6uV3DrqNR9H8g9LnQCN3BrnpxdRLWLi8jBDc+xss7rX/EMLJlM9hQSp7nW3u9s7NhLmHOLwJ/WeWqbWyFeTFyN6cpxfKWHefHHvh5j68FUMtBeTHr8Pw2e4Q2LSpgUJ8wAaPxw0cwABGrwEB7aM8VbjtjVeqiyqWxaFdxm4u6lZuLuoUB0AABIJH/L6dVleUM/JKSnvcMCTc46AFKMkBQUoUaHPIAd7Mv0rV0NUGDHVNoZwPsRkq34LzvviZN17d948sQei3FviROoCi2SIfC4zIsbKLvb/dvH1BmTSo5NZ5QBk35pvMrxETRbEo3/eUqtoywH6C/RmZl+YdLQFBqAuByR80xH6zAKaAgILcdYNQ0uWzwRCsRMeDOJrYATOJ3ExHA88QNNdDEH4BV8u9fEmBYGoB2wTCc2cxx0+v0XaM45HwAdIlvZ97bkWe/J0Xxk6xvK+w4pDgFBa0QKmwq00Y4sZ9dsD7aIfb9seUJNmCccp0yLKV56HUYpi5rx+qmJsp+TQ0dpTt2jM1/D+aq0OfWoCIgYqGr+PlOAWAU9PhAKZTqFGALCMzvCgClsqzECGz3NkARYwFmVYyPWIDzYgUMurOXAvwLfl/eRpItgAZIDJg/PjXFFAH4JfiPgLH8kuMhs7p3MABABaAHaAE0IuZevABmffRggBt/gwX/hoEBGYCkvZzzXz42Fr8TIEdYinIYvxtcfwdvI2UrLcnKySsoiqqJqauoqqlraGpp61hZ6+rpGxja2BrZ+dx56LXrh/Frbu/g6OTs4urm7uHp5S1QNaEbpmU7rucHYVFeka95Wbf9UASZuYmpbxQnaZZXH8/NDZTQ/DoOaP9w/iEAwTCIBT1ixSSIDYeIHVMgDkwTJ2aIC7PEjTniwTzxYoH4MALixyIJxKRBwBIBsUxCWCEQVgmMNYJgC0GxlWDYRnBsJwR2EBKHCYUjhMZOwmAXYbGbcNhDeOwlAo4SEceIhH1ExnGi4AlRMQSiYQxERwEx8JGY+ETC+Ewi+EKi+EpiEdU4BDQBOEGSOElSOEXSOE0yOEOyOEtyOEfyOE8KuECKuEhKuETKuEwquEKquEpquEbquE4auEGauElauEXauE06uEO6uEt6uEf6uE8GeECGeEhGeETGeEwmeEOmeEtmGACZowVZ4BtZ4jtZ4QdZ4yfZ4BfZ4jfZTed994AKcsAEyBENyAn7yRkHyAUHyRVPyS3M6B0C+oCAPiGgLwjoGwL6AbwjX4yD/PCe/PGBTbCu8CGq+g++ASg/889ZfexMqQFb7ssmSaA8QrIFPJ5hlPIU5iPEjEZj5JCZ4J1MS7PFgpDJ4iJd0GvYI0RVTbEMB5Q4Rz4nxCBmyQRqH7KQQqzhztMcq5Eyi5og4xuEFnjsG2FgXdeKkira/UXgiKWdsgpjW8kgQWIhaWAnJcJxbMGqGpTSOrcW2NoQzOwcnfR4SXMqFnnUCSlTUortHXMINdcJcULiaXWKs3YJQd/zZELp5RgVIepRkkmu8sZgIFLYSLrSSaoZXyol4UM1TWaAUsflNGWvYRadR1pxc86cqGppk6prOsD1pxLZe+TCebzvEmZxwIkd0EE9Dx6jiMBM1xE8EnzN2x2+cF3U9kBM+ANi0NRLMel0ZanJsyg3hc5mJ65KVwPrdQPzPHEqq27UVhJNiNpPm1ZknnDnUBSbZqNnmb/ZDdWgCPB16w22bhL9wYX7X1iu2MEwQdesk85Yn1y9qvdk0ybQdBBJjpC4ZLT6yM6dGbNfWrU7iEdhTJyZb65LVbu7HbSU+CyT3jddsNAtob4RZebfZiwf0aI8jJAIkfSYFvWIE5qLKtC5vIuwGtG9THYjL7tPPGQonTXaVPP7t2VG9Bvddry7cKXDduV2BodflSPrnYX13l1Tje+2jI/ySwP8ejT/2ldK14zVPG91ZC+8UITBrZqTSyhRJnpHTPMkN+Rw2J0xX0jND/C8XKIqvRCLebLAj4qmKZsXxg8KPx5ZDTX0z3sE5y3gPWtIfb0gmx2zYAD/xmJivr5OdBtrX8woVmWdvn2QzcSYCUl/exupF1+9JiT56m4pjqLqFbT7QAPev+kGMwS25Vo66zLU5cjcIlLRxrbtyl53YVwP+bh7OFHwkmLKIyRnDgc0SgzTu3rBa4dXyN4GMW+g1Zu55sW4gYMYgQKEw2+MQ1OTT/4+HXwiNF3hPZMldVv3M2fCy2stdXK5v1pfkFX1bbWHymV1i/cptMR3ND9TKlpN7z2ZEwFkBt1+REsoklBEXnI5ImW3FKtiQasMiVgaCxGIQkk8SaTq1SrB6B0jh1omko4PXdW958yPb8SB8xZVjWrazrX1NyV8ZS8PPW3HuS/sQhFSJLr5dSTmxVHPfQ8guGQirSSHNYshgsOc1YEzVgg4iBAGzgRwxIg+gQHFCtRJ6sL8L63WjZcM1ezHMzsMFcaiD63amjm8B7U2CQ4ruhu3wWuh2NFUvMysNTCIDV8jJ7jAR1IyDcRlwL1RdrL32MkcOv2LcsuwYO/kr5yYk6yPRn6VkOgkKxSBOBqcnuByOoT38s+9PONwNEvhnBnWrkhpL4uyBEpvAe/qWe8Px2l9VKsN6p3+CiTxken1J5k/6ukp0J6I+3U6Lie4ocQ6KZSbULzk42uzalMi7aP5lebkBl9rDOe5R5nJtqS0+Q2YqTTjC85Q9M0FrTmZ62bF5abEur7ZklrtlAuZxrg6eSKO1FBqGrvu+y/Yn16zfWeNP6MVjxCr6mW3I1yiO/1FDrX0K+DsowFx6WErAl5Sy+QZvapV/tCqROLcLRJ/FlcetQsa3crJva92+uFp7jkRza26j0cS8XA9jyZT3pOxQll1HQvbfC+PVD1J+9jkZF9wMhAPP4P2OAmBgzaxBtzSbKL3ow1uqLtE78aASYg8AS+Eek8NhNpOdYX6T70Tr3ESQUIiRvpxxWvlOy+oZb2aq/ASG4JRyogwCK1ZMQkFTPRYEZWiwEutHkZkV7YCPFz4wCKEyCfdx5pDTac8oc5Tp/d0PPO7yLmgiuuyu3xIu5gk+6zbdKda/s23HcyvY3CIHLSDjfqElBiD0PL/5RagZYnHwJPewv/20B0uIs+Tl6e9/INjZ1s/fz/hP354S317W3+3pr2zw+USf6Q91ndVhfXSI8Tp0RCnf1HQr5ziMdrHgm0AjZUWOkowo+KkY0oKCkNUEyjRhCNghFT79z6/uzgxeTnhaf/UIedzfk/dURPRHwSdtCdyQFVWjxv+cELd8aDfR8nkNBGkk3hqEotCEIJT4BB/hSESqn+24QU65POjn7eGqqefJE8odcQp4t1DwEcnw+nysjfojWU909GlUsYdiuUqKy7a1tzuqchqlQne1EFHCiIPq+7grR7cR8ANGd75NzhB+vUHWLsP3OXDupvs/FvuA4XoJvLwI9PQCoAHvYJn4Nqg+GsLaQSebwzHG+nZdLl/xLeQU6baAdYRw6kZOEPQwWpADYT542wT/OVehgNFtLeHoPSLA7kDgFSAZHOB6BgzA9wJEKQ+a9KzFjdeRMVjT68khfC/yBICShyAASm0nrA3GAza85N9tlQBTC5gou7l/vIiW143gFRC9I7UgULn2cazABzjtc+So/57/bd25KDRaYmkx+YGZNKXvX25cxljcZQkmwfnniMIsIhAlpAY8Jv0liWIs6U/7JKMvQZ4cUKu5Ry4wADRP8LDr5KjkxcRixMiko5IWJRQMphoutt7vloRnlB1ZPv91y4PZKRmqUYSJIcK/BO52VigJBr0UgkCAjNnQsC2zWUK5uorETDptUqfgbzv5aLfls8N2HJ5MjJoUrgnJ+dcHZStvTyoTRSpH+UH9i/Xk4SOSmcbDTNQewfTkWoBJCED90qkh+u7SDbbG4vBAUEwv398BNOUG49HGXB4zYWLtRYyvFH5mgj/PLT/1oi+PncOqYtbwPvmmbqt17Qd3liigi1S6CGAQPOmFvy12iX6bYYGcjV9G6nprddKJVeCOHnw6RZMqwF3tRB9E4sRjW+3wcL6nFryFeaQ+hD4/XzkYMCslK6UgqmGkB1T3tXFe3eBVom+q/bMynUpUC7yIqa+mvQ8K4nh2dbUpgJlZHYN+COsvbBA9G2qZtK5gQVtnm8lblEuYWm3Ft6gjAkqGXvTraDZtt9xMVD8RvZgr6YlgyZixeTo8PlZtI8suWmWmQrWFMcUA1bGwy/IaqJA9Kq2w9fYzbsJYTpzdgsNJjo+u4Y1xT1vbUUtFyumchjHa4TXHieO+4/68MAwwxESdr5gE7JZ7O2Blqjdm4suMntRZbX3bGJr7yyvilW7q9UVXanqjfKCUk8pHJWrmgqJTO2WKflmmiuvVPYlXXH5WrLBk/J3yluTlDIWDD0BT/72KIUOb0cTMKk16nFYn1is4WL3WaR+fI2wpRT95s9b9+iDYsABmAjDAgyPOIggAT3L9+UeMvB81W9xsvnLRK9JL1ps0oPNRJuBaJ/Nn5Rpy1oKYLgC5j4F+P5kx6dppBKiBBzXu6ykHRg05kvaX+jE4ABLuYh37OllLnabY1uwiKew8d2uVPH33lKP7LoFpacPwcoXHcsfYyCcMyYOgBlgbQgBf8PAG7Z03eeq11zdywzxgxzeTQWJmGDA3ZJTed/lwZtlUUUoT2x99fyDIQWuFL1mfmpBPJtkxV2TSAoqEiDEa9MBy45R/mGJCV5TnOO1GhgPphvThAgBVOxuWxPAEQEwdYAw1GvkuknB0sPmmGBLsQ/oSQm6lhH/ZMBCXYwBcITqL3wcb7xeXU9YI2T+5WKg92LvnVpoepIggkfQl9fnTvkAfMuXkMU1X56CICOie4vtJ78rCoB2imGtsgJ/FsTDVHCaZbaJXsOh+E+s7g7WrthEN/fRpxzke35ae8S89R+kXjSAW6NTZd0fbNZCD61LNu4s5FQq9qD2sjBSy+6G2NMXfMgCM6VgLFWBel5yqe5Q/dWHX3G87H7csPq4oy77aKwKGcHYbBKqX2JHmf0qu+Zs4/h176PKj3fvYVzKsv6LOabW5E9EiUOdXVKS7YVuHWNLCAJRXuggAoCIDNY/l9eI9oBSwgjfXbv1m4TEYfIySbSRVAeJt9ZmdqS72DKoJkhIfTUPirqEEfIEwDKLhzgUYt79n5r0WbLZgHJj6SKgM2B769PK48CaVQrcoEYtm0Z0+1s5crL25Yx1Zo9DN783a2o0Aeun2H9mfmXjc0aIrsCuYP2G2FMp4aE+TIGS5mXqkQjJgLxh5wjteTk0h0ThcgGaJjyOkxwXhlQsSOxzsN2ry4NQEimrJZcYrbwy8m7EhG8kWoIobFSrevVIcCqilnhdIa2eztDLCdfRI6SqupsGHqaNvML3mfGddiFX65YK2wgJ8yjG0Qp8eZF4sRbTI2xhy8e4ihQmRr0g5pUUk+6WRwINn97zFtvJutzjQbJgD0rL5nNkebfNmX54Jlx6TQNFwuE6reIBHvX8u6NYsvViOAy/6wYmp6klDrnoGyFptm3Wu8ZT8ctPdWG1gVRbXV5bSEOxpnLy3ILFCwmzbmS5VeSBRBBvKM0klVUZ9VrKEHNSvJa+W7dB8kvlamSlFYJDJ+Zo1BrNnPVTgA8C667BsOPo1cgpJnKE4Wvrdxk38Nz/y7TeMGolsnqke/yDfobOanT7xqU3MLTb6FpDf6KvpSSHGH/YpMzcuKbYpgPfYfPIY2STb3MId8iQKNkDQHx8QoICpwBpaYGOnbhAtTo+jqxwVKSksvj30I0DzXXcUsrGWt+UCpKaoA5s3voXPXiwKjcKew5xMoT3j+ae8uk0f5+toqVTYMA0H1SeHIw7lt0k8TG1+RRLSBpffMn6ee6oz++aXqKn20dGwK8REuJofw/NiWk3ppGDm9CRBA8Bdqwq+FiBj9y6YLfrEa3nLC0uY+cIEWd9H5XE/O9DRQAS8N69Pi4ATP2Cap/6rF7RKLdpkDcojgm0g4PpDYqGGY3y+l/X7eO2Wmen9MJ+0SFXJV68xeFq5zrOU5W3JqEhtbx4s0JkXZZqK8txVUrVXpB/fFg2o5RVAfMW3tucWQik64h8KutfHoD9P8xpCUHCUrpAFkh9vWlheGw6L3zRu4Mrg0bTjMulICTp3vuQr+XN567Ps7WfsnTD2rvs387Fi9lq6+gH9G3kCKkYgPFzZd0o9/vUHuIElhk8pv1PBHUxzOCJCGRMdB9IJ4OH0uN9x4MxDB58L5VKAtjRUkpAWoDk2rVCh4DgAIeia9dZAcUBHDC2+eCyKWw4zHQZ7BUXQFNHbkHlV61NdRZeF2mY288YhFA5d1qZ/dUUIu5zp1KP5xLkBM5V/WMOUU7k+iPEP0Tm23SbunHYfJlxnmGeDDNx0eJah8cIAY+5r9DjA4kIMRCvJ3CRbz+E+IsIHNbBTAWCQSsUTHhRoDEKRHKe814JQvmgCDlURhARE0EoZEQhuSB6qHyoIrm7rrMUCKeeKQgEROaIakSJn+o1b5ifddbONnbPmDGTIL24DuuKZU2dCiXepLqXeP8TL0jlpAl0vnPBBlkr1NpKYYziIXwr04tg5BnMtg70UT+e/xoHW/WOKdCUVibjAxEitlJuOXmEH+SfDYFzhTnLPxhRtIh/ICLqMOtMqCyXUukJ+1Z+KwWn2663W7tBInFeB/m9oXBuYHr5B70vuONCZWeSTIqMSGqycCXZrRd0szLH0X4Tf3MwnJ3a7WaTvXER/3SCNOG0U8Jl+SFGnnRYyzeriplfY7PBtoaf1cpr+GvA2xlUh6XRLekQC0HIFARhihAEg0aQgPPMSjyfnf1lFUN/mYH37V1zerrmnswQPHjBKiXF0hVLlq7sfgNId65B10oIX1HnoXK47uq1YgSxHBCg4XzY/XR+WLXQ8oJUXKjVm6h8jw5IK8AZH/UapEeJjdhmwjGbjSGgJQktihVd2ezY/4eXXj4zY+jM/ZVTnjHQ7zluiUfsd8f06D1nTxznPdOFfvQmX0K3sD5HLYuRIzv/P2o7tejoyvtH3pw9q5NjZV0m+YcFJGvFp9tp8DGrlVbHYFr7TPHBBUsY07W0lvkHuiTtByqqGBv/0dK75x8Ut3TH2dqBhUvo0xMrne6QdJye30K73NKXLDwgdj9QhG5rQ4+u6AEg21qVGeLirK0XZwi8AOOkqyRHoyOJ4acPgYG9juKMONInz9WwbapFZkm1hVfjSW4kvAwUqqPxLJwMj8LBrasfD4awTzriExwbN0jYx3s/2x7bpoKQ3VaOHS+eH7O4Xnj+wsQ0vv5g/9ooTn3xot1Mchn//HkHOH/ZHsl99yzcJD2r+kxPd1t1O8rs7Xu0vP3osmVLpSDnrAbSxBBiS7CdLOdDZdqkGWkZMSIPr+CCaPm4lRL2pCQZuxRgMTBkgaRBnKSeIIq+Kri166PzBsbR6koJtMJSyMKzgGw1ks4zJ6ATZ8Hvegw7JAojj4twXu0SxvXCh3LiH/nsdfHIj5Xgm+zYSCcgV4VDu11COWH+Am64hDE+8rjAgWTXZGNHCMDRkderiaq9eJXlPyydIiFZ27bbkoDSu6p6uLrKIkqi6eK/2PSjpM8UHukZJdjsYNlfD9qlJE9/egr1qd1SKG6xoPGL35lPwjOLhOZfcYFb/Yepi6iipvxM/FV7zhcaauYdD3JGxJ0uiiJX7jlvlxgXhWhmgQd0p5kNHKZJW6OWC5rxmVflOJm1rNzfRslquplOniQSM5Y7Ndtklchs5BhZNCaG2Pwm/dPkyzx1WTlvhQgSSwevAjIz6Gv5ee+8kEWa7ktWOAANNI0/CZ1ke6HRPQoEbA9ABi5iRLgGSG4s39stRy18kOTUpkmTtkyexP88YcIWKnriA42BcoOea+QmG8r2tYciIhJjhIGGIBoQpgHiPkx36urq6eqWSLq7l3Z3Hf4Hh9uCx5UGL1zYo60AylYyqWcrM7bXWVvXQ7+QWzg6mgqpyzaPPy9gkX2yvllgyzfwYmJ/f0//AOhLj319XkxXjILgAsDP+iIr5dKIgnyXUw4rNEJGN24KlAK2VzVDzS2k0uzp1pC1bitUfAN3LYCt0DmPiqSbrIx8bEyWn2EEy2jlf4vkL0oKkZ0yn0rg3iTJT9V8DAavW6HWoNXoqbypkywWyCIixFviGDHZJ1gzY0vdA+py8a+rSwKHqO/s1zvZDu4wENWOjbhWyN5dW/IAGgrE/72+lS2HHmyuAx+tSl3LLv1Jcx5yWG7/0CkGcCCl0/C85auHqGmX/pa5loHDhzBEeX+Q/9xQ4m6dD1bkGDFO4u0VZMdCdwuf6PXh4b5ZGhiookOAMj8h5z/uvqNzj+y9rga7Nz33Sa4Dd5k5eNnE0MevA5hEfP+TfoLn7tE/IY83R9kQfXlgyhjqRRR4AERg9Uo9tpyIdnifl4gj49YJ7gpSTZzCMv7M8Koba8M/yeEobtxJdyb0PFdYmy0SeqcqCJmRcaEvlBGJYbvfFPjyLpuEbUl59fONOO10gUqwiKid6eb15dQXrzQmkNiLSvamkWi7aXS198RazY2iqhio2lVh17zFZxtHKonian2enMtQhmXMjK2qTWEH+CgDyjSxne2zqsbU2UnJjiPx69df6K+Zhq1XPH7+EEbFJ2oiX4xow2IX+nj934XAmjkFA0TObDSB8Hnru35g/bzKD9mF+CmtJwsnU3Z+0EnV8gBtgqSJopGfI45OndvXZ8JWZlnnpAJRoEBF8QuJKUQpM9ldm3VPKWvk7pPThS37Y55itki5WVrU/t1hkzaP+rpOaNml9ddqMrQi7XQiSUPs+EcPLuYwd0ULy57chuuLv+SfixngvNuSlf78gzZhJq1wCI5gW6hpJ+nuHit+rzAGJUFJIV4hiVBikAF6u3P3wg66oL3DEG+QPW7mdVtKpbOva9a0mJ4aAvUVoenb7RnHbRvtkl5aelLkGm0XVdWiK2/ELLZGmRw0q0IWd6V/iFxZqea5Yqg71jJJLVCbfc0KgWIc3d4NINReqdlANFNINPcVGteb8mgvd6xSxxqd/YLnzSbbPt9AFTBMsDI8nkaLY0dmKwXzXiBc23CZSxkH8qVwl5GTW2YC0dqZH1BFbW3FqCJUW5s3o7itDWx9LHrPeXix/St76GCry2s3LD/absUedtU5/uc1UhCgtni6sPSDXhJ1q6ew6gQnUYkT4WbhRc9pRbdVtUWa3zLwv1jHHCMKvt655Sh4IB5mSAQ/9X9YpKvYxJ/kjFkSfjlkXOPmnqe6ksTvXe2fSa1cgl2duoWHBZD+NNFQK+dFhf6zn8HTe0EOiHgUwvpUMdXloptiAtPS636Ix+Qp2IWWjCmJ+ps5JA//l0qDosgM0q4JX+jz57Br8QmtbjxOYsVaf77ug1PQnkj8XvVnamO1xWr6OeugJCs6HlKJ53752p+QOHEwQnpVM917XHzyzdW+rA2dy8iPdxOcP0d+9Ecp42evLzm1E20+ze5pVChvZ1tCoYIzbJdCQhAFJe9tN9UnNfvSx2iyF/uQ27ag/OvrhByWa55/xgqnlNXHmInM1ko+BjHsovi4q+3E3Ze7txyED8CwPYePqN9sAuNqZkcBobGQ5odU0iEHX++98ipSCxhr8wmG45Kfz/Nlb5ixlDy6xr0qnohQOQxu2+R0NdXzfPwFT6fI9M0b6JAoRcRjnLaWEd70E2lj90BCcCindgs7eD2CbnUtsnj/X19kHcKFFzw7e/Ot4KJoiC4JeaV7xyQ9+qy9R87YXC7RnGdbJRUM2kmiLOqJ++4XeBF+Fk58g5bJn62Zt8kh9RTi5O89zjarA6gcdCqX5zbcWOECP4HXz1jl8cmP6uGGEj0ZW+asl4c16BASZucEDGP+bFYNXu3MZ+sq1rhqnyx+/nbN6kk/1PMUnyRpHD7jQVPFuCeyRZ0rPT778jwYHawV6xBje2D+k3V0LrslHdz0labBFJVFOn04Hlz0dFKrug4wuOIUMeS23wYm3O8juVsH9uVOm809rm6R8pRYsdO5xZafECq9q6azmQEkI+0NPOLsMF1VD28Lqlay7m5wIma/tLix72yAV39yqffXMHNz85grVu80hwS7BIe4hoS4aCvgWe+4caZuorZvI6nJ8fHkOKdt20EoBmAR6gq47quFY48a3yjOSY3+8eu+qRK7IccayKLAqfViv5CUYCUqs4ut2+wnlq2Z4p7eIozZ7yeSbsniaokJDpPC7n7Ld7VoRYDRuM1KHre780ots6W+azSmFr9AQ4U+PfTC6j22x+0aqdW2PTEaeZc2qUVVrsM0Wi8mmjQOPxeHpHf9PVm5UtI16wxHe+9QUWtWR1ERP2ysUTZisqvbSleN/Gb02mtKLGYQ7uZFsyyBmhhKeB0tfj477uQBgdIuj4tYZOFlLs6d55KXJVM2HUqpuHfHcg45LuoxyZspVaIs451beDvKy1ksXxThMeOAUDSIj5FZoXF5EcqwRIedvgUFI8KSUmre/HqjFudM1RKb1VELoc2rPVqRKXlCcFNVD6clfp2VwhnA9tKztH8TtAttk4ojD2zFb9Wb6I72ZlUrCH/cSIyP1OQ9DNMujPV+UqojBzL1K54jyl1y+RcwvA2slZOEk3ZS/kp1cjWirs3AL2LZypaR6Gl2avpEb01tlDKmqhpSuDbbPdYRklC5O2VGRtjm6tiUWrYEu0IvvjW9u/ncbd+49+vjL6z/5RIKq4BYkkJx6ufrumdPn9H4a0T/ZY6nuz9cFl/AcZt2+bNMA2YsTkJyg/13y5t4KvGecP81VWqfveQyKsXVIRSY1z179nQthUqm9u5JtCnZD/HNzgSM8qYPTNgEizwhGcNPrZa56DB5DKX0nMeR342M2Z95nMoYtyC1XgkWkj4+TpVI1UX2cxjF1/ux8WMngZg22jGaipohm7sT6gNvL63grPBrbPlM2Kl8QhAePx6IyX89UGN5O2EM2z8G6/8xl5y7fK70eenJyydLgOjTX1bxaHjUYxSGI59GRvHfFYuaH+8xE9FwDHu3h+rbxkT+bFTORmIQjIoTCeSFYdTYVtU0nIdxqwpkL7zGpDMcUvIS8vT5iUlNcuHzDFnyiJ6nn0aw15/1puIm6VN4Kck5XkkgRv/1GI3WAVMjop+VMGzOD48Jz8yk9wUun48uXxj6Z5Qh5fHNZhFm9aY/cil/RNa0joWXRUtLBSGTf3X/2pddxaxqKMgqSyjLcs+qevLxwUp6hSNiCUw32DUT7ZLkAXVMbnhYGXM+s3PefM/5QArctm51lMzV5iDrLJZ1SK+Ww/C0GeVGOPrgsxPnSq5s2fqHP8wX664uOkbMl1sCOln51m1lYzQxwFiTYd3csLdaa+DF4kq4wqMDhEJhOWNgoWLBuOyuykGnUpLJqfHEKd7TE04mkolacmKQ4QWEfYOEqGAqiD7cja+vd5v98QFejo+dG50M1mLuPsLa1hpzHlMFdlWIM3uv3nyMV20YV2/z/ckn7shRcLZ+AjiO+f06++Y4MdtTCLZoopDx9Dj+n0v9FH1yJ41N6y4u3uaxtdjURWPZzsjcn+DrZ9iyaO0m01aPbabiDjqb1gn6UpnZ6N2TO1o/roIkdhMo/XZ+BCyuAOdE3EZ0CrKwBLE9/TtqL4aqHp/ldkMbS8k0W45RjlnMrzGd/LWabrakUdMmiCYQPqbCrLLF2KnMq9xDVUZ2a4gKt+pU2WFsVcEn2gcyAgaPwSlwbkcI6IHL4ddePO3YNn4Bwv+9Y0m+4GInvvk6VGUlSqcN4Mm2VlG62Fgrq8XpgkuAKWPz6C8Bdkf6nQoAai76akDXr5MMVux0i+DYc33TtGLAfnEreu0FH2ewj0UnmPLfGpaqRV/eDx0AIuygSsMAmtNPygVF0QBViNds4w/mPid4r/O/5Viit0Hd1nMqs6lbMR1ANKkvDZBOANuiDrZPFQtNY2WBqh8dU0XzsCvBPLD+x6YI9CLIe0ONHt5nl/xHaIGqwzjzst5VRxXxOqfQMMnB8dK8q/gSp9sGW6NZ1cZb+KepUHCKo/404ar/qklEBu0g+mqdij4c0P3VCkBeFwqmrC3OcsKYOYutZtWhF5uy0dMh77dp/YvDW1VTV8z1wbi8Dj8086b3r42256JtR8B5X3udPQ59UIY6Eb3lP4XfH/i7f8WafELkV+OABYD/2sRZYOk6BhST/J9dipv6L2CK06ad0POEPnb01xTxogDQB1sBGcQGgNFFJuggc9ZDm3IL3NBHZo/qahqgQVdTgQGTqBaEbzQDwIOLZhAYcNOMgjXVhsdAWS3AAMTaAbDuH0eDINmlyUAEfxoBkiGCwoc1EtSMaBRIYTQO3KMoI/Bg1lReQRRk8EU1KdhFqaPYyqr8LzQ5kM7oYPk/aOLTijs/0WHhFwhUhUIaNvdmdVFr7IrPTvcQQix6jQM4u27N+k83/iZWP65d7KZWBAXEgFdUJv6umROJ+rLNytGL/ws0soBoRJPjXf8DKuE7Xtxd33IQX1jhatKUqslQ496QWCvqrinq1txnbIKwyIuKnu1tABxz3QqIvU83yFHNy17r57pLCqvxNTvH9EOjgERCiS9aFjRo/5zun58xYMQcEwQjKIYTJEUzLMcLoiQrqqYbZjgSjcUTyVQ6k83lC8VSuVKt1RvNlqoJ3TAt23E9Pwh//yhO0iwvyqpu2q4fxmle1m0/Tp3zVO6VRm1o9KWPIZCukGoclQG1rcchNNCkZPEYb8Vq0CElarByYJM206r16zQx+jUqhvxWB8kl6eFtl8pNa5sYpmZY5czM/cb4QV2ICWuuJWmQjdAlIBLvVndTyp4Y3y1TcgIL1lWVJmlZ4QyZA3aPYSxLCAhdTFpMMGNpVjs1Jy6grFjmNZEpZ5WmIORidybSJgYPScpyOMraYWkSqUk2JXuBOohRg/VprRENUZH4eJdQJLOubxjbnjEwb6cLwqrQQ3WjZddyX3oyVWZTzkfY9rWVHQQKHKsLfLPSpFOtMK1W/ZqsMqgpB7Nwvo8jWd2QtaFfGiXkvjCmj0wBVEGVhpeaqyjkHM9zMnP2KjY7ZppPNbOZ5gdMLi+kFv9bXvpgacaMnxssdSz7OiocJdve1Rm9eJQeRhx2ZnlViO6dBUTY9UMrliGSkdqrpUggdW1i7yQSszh0EDt2gJnXVoMyVau3Kbkr7+62u7/d/f3uH3b/uL+nUfl0d8+NhGxewOZxaHM/tH2OafOK7O6zZPM2kmuWM+Qapr2uv+AuKhYqJhnwfvXd/bJNTgE5qLi77MrFfnIxJMMcHNiPlmS/Xys0w8mJLWm64+Oap4fFNt8DC9DtsZRVnmztXzchhJ1LVPxIDLJdu1Kc+34jyvp+pn2fS+1s5oWOtGFZSDGnHBeaTFLxbMrVLHm/qKgVqV1oY7bMix+ltjaZw5htwVEHpSkAAAAA") format("woff2"),url("//at.alicdn.com/t/font_1040563_76m3u9z5f1.woff?t=1562914444854") format("woff"),url("//at.alicdn.com/t/font_1040563_76m3u9z5f1.ttf?t=1562914444854") format("truetype"),url("//at.alicdn.com/t/font_1040563_76m3u9z5f1.svg?t=1562914444854#iconfont") format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-drawicon_dollar:before{content:"\\E626"}.icon-arrow_left:before{content:"\\E680"}.icon-overlay_index:before{content:"\\E655"}.icon-drawicon_message:before{content:"\\E64D"}.icon-drawicon_s:before{content:"\\E64C"}.icon-drawicon_b:before{content:"\\E70F"}.icon-drawicon_good:before{content:"\\E624"}.icon-drawicon_bad:before{content:"\\E600"}.icon-menu_arraw_right:before{content:"\\E60B"}.icon-menu_arraw_left:before{content:"\\E60D"}.icon-drawicon_up:before{content:"\\E625"}.icon-drawicon_close:before{content:"\\E68C"}.icon-change_index:before{content:"\\E656"}.icon-draw_arc:before{content:"\\E602"}.icon-index_param:before{content:"\\E604"}.icon-draw_line:before{content:"\\E605"}.icon-draw_rays:before{content:"\\E606"}.icon-rectangle:before{content:"\\E607"}.icon-draw_parallel_lines:before{content:"\\E608"}.icon-setting:before{content:"\\E609"}.icon-recycle_bin:before{content:"\\E60A"}.icon-close:before{content:"\\E60C"}.icon-draw_trendline:before{content:"\\E60E"}.icon-draw_goldensection:before{content:"\\E60F"}.icon-draw_gannfan:before{content:"\\E610"}.icon-draw_percentage:before{content:"\\E611"}.icon-draw_waveband:before{content:"\\E612"}.icon-draw_resline:before{content:"\\E613"}.icon-draw_text:before{content:"\\E614"}.icon-draw_parallelchannel:before{content:"\\E615"}.icon-draw_wavemw:before{content:"\\E616"}.icon-chip_date:before{content:"\\E617"}.icon-draw_triangle:before{content:"\\E61A"}.icon-draw_pricechannel:before{content:"\\E61B"}.icon-draw_circle:before{content:"\\E61C"}.icon-draw_symangle:before{content:"\\E61D"}.icon-draw_hline:before{content:"\\E61E"}.icon-chip_default:before{content:"\\E621"}.icon-arrow_down:before{content:"\\E681"}.icon-arrow_right:before{content:"\\E682"}.icon-arrow_up:before{content:"\\E683"}.icon-draw_quadrangle:before{content:"\\E62C"}.icon-draw_fibonacci:before{content:"\\E62D"}.icon-right:before{content:"\\E601"}.icon-left:before{content:"\\E603"}.icon-xia:before{content:"\\E618"}.icon-shang:before{content:"\\E619"}.icon-jiacu:before{content:"\\E61F"}.icon-shezhi:before{content:"\\E620"}.icon-qingxieL:before{content:"\\E622"}.icon-info_pforecast:before{content:"\\E62E"}.icon-info_trade_detail:before{content:"\\E62F"}.icon-info_block_trading:before{content:"\\E630"}.icon-info_investor:before{content:"\\E631"}.icon-info_research:before{content:"\\E632"}.icon-info_announcement:before{content:"\\E633"}.icon-info_quarter_announcement:before{content:"\\E634"}.icon-info_num_11:before{content:"\\E635"}.icon-info_num_10:before{content:"\\E636"}.icon-info_num_12:before{content:"\\E637"}.icon-info_num_13:before{content:"\\E638"}.icon-info_num_14:before{content:"\\E639"}.icon-info_num_15:before{content:"\\E63A"}.icon-info_num_1:before{content:"\\E63B"}.icon-info_num_16:before{content:"\\E63C"}.icon-info_num_3:before{content:"\\E63D"}.icon-info_num_17:before{content:"\\E63E"}.icon-info_num_4:before{content:"\\E63F"}.icon-info_num_2:before{content:"\\E640"}.icon-info_num_6:before{content:"\\E641"}.icon-info_num_18:before{content:"\\E642"}.icon-info_num_20:before{content:"\\E643"}.icon-info_num_19:before{content:"\\E644"}.icon-info_num_5:before{content:"\\E645"}.icon-info_num_9:before{content:"\\E646"}.icon-info_num_7:before{content:"\\E647"}.icon-info_num_8:before{content:"\\E648"}.icon-info_num_more:before{content:"\\E649"}.icon-bianji:before{content:"\\E623"}.icon-info_investor_hscreen:before{content:"\\E684"}.icon-info_announcement-copy:before{content:"\\E685"}.icon-info_quarter_announcement-copy:before{content:"\\E686"}.icon-info_pforecast_hscreen:before{content:"\\E687"}.icon-info_research_hscreen:before{content:"\\E688"}.icon-info_block_trading_hscreen:before{content:"\\E689"}.icon-info_trade_detail_hscreen:before{content:"\\E68A"}.icon-kline_train_buy:before{content:"\\E64A"}.icon-kline_train_sell:before{content:"\\E64B"}.icon-drawicon_down-copy:before{content:"\\E68B"}.icon-drawicon_up2:before{content:"\\E68D"}.icon-drawicon_down2:before{content:"\\E68E"}.icon-hk:before{content:"\\E627"}.icon-shhk:before{content:"\\E628"}.icon-margin:before{content:"\\E629"}.icon-sousuo:before{content:"\\E62A"}.icon-guanbi:before{content:"\\E62B"}.icon-sub:before{content:"\\E64E"}.icon-add:before{content:"\\E64F"}.icon-refresh:before{content:"\\E650"}.icon-houtui:before{content:"\\E651"}.icon-qianjin:before{content:"\\E652"}.icon-exit:before{content:"\\E653"}.icon-camera:before{content:"\\E654"}',""])},,,,,,function(t,e,a){var i=a(123);"string"==typeof i&&(i=[[t.i,i,""]]);a(20)(i,{});i.locals&&(t.exports=i.locals)},,function(t,e,a){a(115);var i=a(16)(a(117),a(118),null,null);t.exports=i.exports},function(t,e,a){var i=a(116);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(11)("5193732c",i,!0)},function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,".symbolWrap{position:relative}.symbolWrap .Select{background-color:#fff3d8}.symbolWrap .myInput{width:137px;height:21px;line-height:21px;color:#999;font-family:Microsoft YaHei;border:1px solid #999}.symbolWrap .iconBox{display:inline-block;position:absolute;left:122px;top:0}.symbolWrap .iconBox .myIcon{color:#999;background:#fff;height:19px;width:14px}.symbolWrap .SearchKeywords{display:block;border:1px solid #999;border-top:none;background:#f0f0f0;position:absolute;width:192px;font-size:14px;height:22px;line-height:22px;padding-left:5px;z-index:9999;top:23px}.symbolWrap .SearchKeywords .keyWords{color:red;display:inline-block}.symbolWrap .SearchKeywords .keyWords .widthSure{display:inline-block;max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.symbolWrap .SearchKeywords:hover{background:#999}.symbolWrap .stockList{position:absolute;width:197px;top:45px;left:0;max-height:120px;overflow-y:auto;overflow-x:hidden;border:1px solid #999;border-top:1px solid #ccc;font-size:14px;font-family:Microsoft YaHei;background-color:#fff;padding-right:-17px;z-index:9999}.symbolWrap .stockList .item{padding:2px 0;width:100%}.symbolWrap .stockList .symbol{padding-left:15px;padding-right:25px}.symbolWrap .stockList .name{padding-right:10px}.el-icon-close:before{font-size:1px}::-webkit-scrollbar{width:0;margin-right:2px}::-webkit-scrollbar-thumb{border-radius:5px;background-color:#999}input::-webkit-input-placeholder{font-size:12px;font-family:Microsoft YaHei}input::-moz-input-placeholder{font-size:12px;font-family:Microsoft YaHei}input::-ms-input-placeholder{font-family:Microsoft YaHei;font-size:12px}",""])},function(t,e,a){"use strict";(function(t){function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=a(34),n=i(r),o=a(35),s=i(o),l=a(77),h=i(l);a(39);var u=a(40),c=i(u);s.default.use(h.default,{locale:c.default}),e.default={name:"SearchSymbol",data:function(){return{Symbol:"",SearchStock:null,SpellStockData:[],SpellListEle:!1,SearchKeywords:!1,Select:0,OldSymbol:"",IsQuery:!0}},methods:{KeyUp:function(){this.SpellStockData.length>0&&(this.Select=this.Select-1,this.Select<0&&(this.Select=0),this.SetScrollTo())},KeyDown:function(){this.SpellStockData.length>0&&(this.Select=this.Select+1,this.Select>=this.SpellStockData.length&&(this.Select=this.SpellStockData.length-1),this.SetScrollTo())},KeyEnter:function(){this.Select>-1&&(this.Symbol=this.SpellStockData[this.Select].Symbol,this.SearchKeywords=!1,this.SpellListEle=!1,this.IsQuery=!1,this.$emit("inputValue",this.Symbol))},MouseMove:function(t){this.Select=t},SetScrollTo:function(){if(this.Select>=4){var e=t(".item").height()+4;t(".stockList").scrollTop(e*(this.Select-4))}else t(".stockList").scrollTop(0)},SetSelect:function(t){if(this.Select===t)return"Select"},SpellSock:function(){if(!this.Symbol)return this.SearchKeywords=!1,void(this.SpellListEle=!1);if(this.SearchKeywords=!0,this.SpellListEle=!0,this.OldSymbol!==this.Symbol){if(this.Select=0,this.OldSymbol=this.Symbol,this.IsQuery){this.SearchStock=n.default.JSStock.GetSearchStock(this.SpellCallback);var t=this.Symbol;this.SearchStock.Search(t,6)}this.IsQuery=!0}},SpellCallback:function(t){var e=t.Data;this.SpellStockData=e,this.SpellListEle=!0},HideSpellList:function(t){var e=t.Symbol;this.SpellListEle=!1,this.SearchKeywords=!1,this.Symbol=e,this.$emit("inputValue",this.Symbol),this.IsQuery=!1},DeletSymbel:function(){this.Symbol="",this.SpellListEle=!1,this.SearchKeywords=!1,this.$nextTick(function(){this.$refs.inputSymbol.focus()})}}}}).call(e,a(12))},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"symbolWrap"},[a("div",{staticClass:"inputBox",on:{keyup:[function(e){return e.type.indexOf("key")||38===e.keyCode?t.KeyUp(e):null},function(e){return e.type.indexOf("key")||40===e.keyCode?t.KeyDown(e):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.KeyEnter(e)}]}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.Symbol,expression:"Symbol"}],ref:"inputSymbol",staticClass:"myInput",attrs:{autofocus:"autofocus",placeholder:"请输入股票代码或简称"},domProps:{value:t.Symbol},on:{keyup:function(e){return t.SpellSock()},input:function(e){e.target.composing||(t.Symbol=e.target.value)}}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:""!=t.Symbol,expression:"Symbol != '' "}],staticClass:"iconBox"},[a("i",{staticClass:"el-icon-close myIcon",on:{click:function(e){return t.DeletSymbel()}}})]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.SearchKeywords,expression:"SearchKeywords"}],staticClass:"SearchKeywords"},[t._v("\n 搜\n "),a("span",{staticClass:"keyWords"},[t._v('\n "\n '),a("span",{staticClass:"widthSure"},[t._v(t._s(t.Symbol))]),t._v('"\n ')]),t._v("\n 相关股票\n ")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.SpellListEle,expression:"SpellListEle"}],staticClass:"stockList"},t._l(t.SpellStockData,function(e,i){return a("p",{key:i,staticClass:"item",class:t.SetSelect(i),on:{click:function(a){return t.HideSpellList(e)},mousemove:function(e){return t.MouseMove(i)}}},[a("span",{staticClass:"symbol"},[t._v(t._s(e.Symbol))]),t._v(" "),a("span",{staticClass:"name"},[t._v(t._s(e.Name))])])}),0)])])},staticRenderFns:[]}},,,,,function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,".symbolIkcon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",""])},function(t,e,a){a(125);var i=a(16)(a(127),a(129),"data-v-89aa10d4",null);t.exports=i.exports},function(t,e,a){var i=a(126);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(11)("bef380d2",i,!0)},function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,"[data-v-89aa10d4]{font:14px/normal Microsoft Yahei;padding:0;margin:0}body[data-v-89aa10d4],html[data-v-89aa10d4]{color:#666}.PriceUp>span[data-v-89aa10d4],.PriceUp[data-v-89aa10d4]{color:#ee1515!important}.PriceDown>span[data-v-89aa10d4],.PriceDown[data-v-89aa10d4]{color:#199e00!important}.PriceNull[data-v-89aa10d4]{color:inherit}.topWrap[data-v-89aa10d4]{background-color:#eee;height:47px;padding-top:15px;padding-bottom:12px}.topWrap .otherInfo[data-v-89aa10d4],.topWrap .priceInfo[data-v-89aa10d4],.topWrap .stockInfo[data-v-89aa10d4]{display:inline-block;position:relative}.topWrap .stockInfo[data-v-89aa10d4]{white-space:nowrap}.topWrap .otherInfo div[data-v-89aa10d4]{line-height:1}.topWrap .stockInfo[data-v-89aa10d4]{box-sizing:border-box}.topWrap .stockInfo .codeInfo[data-v-89aa10d4]{position:relative;height:24px;z-index:33333333}.topWrap .stockInfo .codeInfo .code[data-v-89aa10d4]{font-size:18px;line-height:1;color:#333;margin-right:15px}.topWrap .stockInfo .codeInfo .searchBtn[data-v-89aa10d4]{position:absolute;width:55px;left:90px;top:0;height:22px;line-height:22px;font-size:12px;background:#2061a5;border:none;color:#fff}.topWrap .stockInfo .codeInfo .cancelBtn[data-v-89aa10d4]{position:absolute;width:59px;left:139px;top:0;height:24px;font-size:14px;background:#2061a5;border:none;color:#fff;z-index:9999}.topWrap .stockInfo .codeInfo .icon-style[data-v-89aa10d4]{color:#217cd9;font-size:18px;cursor:pointer;position:relative;left:-15px}.topWrap .stockInfo .codeInfo .icon-change[data-v-89aa10d4]{color:#217cd9;font-size:18px;cursor:pointer;position:relative;left:26px}.topWrap .stockInfo .codeInfo .editSymbol[data-v-89aa10d4]{width:169px;box-sizing:border-box;position:absolute;top:0;left:0;z-index:999999}.stockInfo .stockName[data-v-89aa10d4]{height:24px;color:#333}.stockInfo .stockName .nameText[data-v-89aa10d4]{display:inline-block;font-size:20px;line-height:1;padding-bottom:2px}.stockInfo .stockName .iconStockinfo[data-v-89aa10d4]{font-size:22px}.priceInfo .priceCurrentNum[data-v-89aa10d4]{font-size:18px}.priceInfo .priceCurrent[data-v-89aa10d4]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.priceInfo .priceCurrent .riseNum[data-v-89aa10d4]{-ms-flex-positive:1;flex-grow:1}.priceInfo .priceCurrent .risePrecent[data-v-89aa10d4]{-ms-flex-positive:2;flex-grow:2}.topWrap .otherInfo ul[data-v-89aa10d4]{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.topWrap .otherInfo li[data-v-89aa10d4]{-ms-flex-positive:1;flex-grow:1}",""])},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(){}Object.defineProperty(e,"__esModule",{value:!0});var n=a(12),o=i(n),s=a(76),l=i(s),h=a(34),u=i(h),c=a(114),d=i(c);a(128),a(112),r.GetStockData=function(){return{Name:{Text:""},Price:{Text:"",Color:"PriceNull"},RiseFallPrice:{Text:"",Color:"PriceNull"},Increase:{Text:"",Color:"PriceNull"},High:{Text:"",Color:"PriceNull"},Low:{Text:"",Color:"PriceNull"},Open:{Text:"",Color:"PriceNull"},YClose:{Text:""},Excahngerate:{Text:"",Color:"PriceNull"},Amount:{Text:""},Vol:{Text:""},Pe:{Text:""},Roe:{Text:""},MarketV:{Text:""},FlowMarketV:{Text:""},Eps:{Text:""},ScrollEPS:{Text:""},Pb:{Text:""},Amplitude:{Text:""},Down:{Text:""},Up:{Text:""},Unchanged:{Text:""},Stop:{Text:""},HK:{Symbol:"",Name:""},IsMargin:!1,IsSHHK:!1,IsHK:!1}},r.GetCellStyle=function(){return[{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"},{left:0,width:0,display:"none"}]},e.default={JSCommonStock:u.default,JSCommon:l.default,name:"StockInfo",props:["IsShareStock","DefaultSymbol"],components:{SearchSymbol:d.default},data:function(){return{Symbol:"600000.sh",ID:l.default.JSChart.CreateGuid(),JSStock:null,ChangeSymbolCallback:null,StockData:r.GetStockData(),CellStyle:r.GetCellStyle(),WrapWidth:1366,IsIndex:!1,IsShow:{SearchSymbol:!1,IconStyle:!0},IsStockStar:!1}},watch:{},mounted:function(){console.log("[StockInfo::mounted] IsShareStock="+this.IsShareStock+" ID="+this.ID),1==this.IsShareStock||"true"==this.IsShareStock||(this.JSStock=u.default.JSStockInit(),this.InitalStock(),this.JSStock.RequestData()),this.OnSize();var t=this;document.addEventListener("click",function(e){(0,o.default)(".codeInfo").is(e.target)||0!==(0,o.default)(".codeInfo").has(e.target).length||t.CancelSearch()})},created:function(){this.DefaultSymbol&&(this.Symbol=this.DefaultSymbol),this.IsIndex=this.IsSHSZIndex(),console.log("::created IsIndex",this.IsIndex),this.IsStockStar=this.IsSHStockSTAR()},methods:{GoSearch:function(){this.IsShow.SearchSymbol=!0,this.IsShow.IconStyle=!1,this.$refs.mySymbol.DeletSymbel()},CancelSearch:function(){this.IsShow.SearchSymbol=!1,this.IsShow.IconStyle=!0},InitalStock:function(){var t=this.JSStock.GetStockRead(this.ID,this.UpdateData),e=[u.default.STOCK_FIELD_NAME.NAME,u.default.STOCK_FIELD_NAME.DATE,u.default.STOCK_FIELD_NAME.TIME,u.default.STOCK_FIELD_NAME.PRICE,u.default.STOCK_FIELD_NAME.RISE_FALL_PRICE,u.default.STOCK_FIELD_NAME.INCREASE,u.default.STOCK_FIELD_NAME.HIGH,u.default.STOCK_FIELD_NAME.LOW,u.default.STOCK_FIELD_NAME.OPEN,u.default.STOCK_FIELD_NAME.YCLOSE,u.default.STOCK_FIELD_NAME.EXCHANGE_RATE,u.default.STOCK_FIELD_NAME.AMOUNT,u.default.STOCK_FIELD_NAME.VOL,u.default.STOCK_FIELD_NAME.PE,u.default.STOCK_FIELD_NAME.MARKET_VALUE,u.default.STOCK_FIELD_NAME.FLOW_MARKET_VALUE,u.default.STOCK_FIELD_NAME.FINANCE_PERSEARNING,u.default.STOCK_FIELD_NAME.FINANCE_EPS,u.default.STOCK_FIELD_NAME.ROE,u.default.STOCK_FIELD_NAME.PB,u.default.STOCK_FIELD_NAME.AMPLITUDE,u.default.STOCK_FIELD_NAME.EVENTS],a=[u.default.STOCK_FIELD_NAME.NAME,u.default.STOCK_FIELD_NAME.DATE,u.default.STOCK_FIELD_NAME.TIME,u.default.STOCK_FIELD_NAME.PRICE,u.default.STOCK_FIELD_NAME.RISE_FALL_PRICE,u.default.STOCK_FIELD_NAME.INCREASE,u.default.STOCK_FIELD_NAME.HIGH,u.default.STOCK_FIELD_NAME.LOW,u.default.STOCK_FIELD_NAME.OPEN,u.default.STOCK_FIELD_NAME.YCLOSE,u.default.STOCK_FIELD_NAME.AMOUNT,u.default.STOCK_FIELD_NAME.VOL,u.default.STOCK_FIELD_NAME.INDEXTOP];this.IsSHSZIndex()?t.SetQueryField(this.Symbol,a):t.SetQueryField(this.Symbol,e)},IsSHSZIndex:function(){return l.default.MARKET_SUFFIX_NAME.IsSHSZIndex(this.Symbol)},IsSHStockSTAR:function(){return l.default.MARKET_SUFFIX_NAME.IsSHStockSTAR(this.Symbol)},GetHeight:function(){return(0,o.default)("#stockinfo").outerHeight(!0)+1},UpdateData:function(t,e,a,i){if(console.log("[StockInfo::UpdateData] ",t,e,a,i,this.ID),t==this.ID){var r=this.IsSHSZIndex(),n=i.GetStockRead(this.ID,this.UpdateData);if(!(e.indexOf(this.Symbol)<0)){var o={};o.Name={Text:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.NAME)},o.Date={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.DATE),Text:"--"},o.Time={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.TIME),Text:"--"},o.Price={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.PRICE),Color:"",Text:"--"},o.RiseFallPrice={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.RISE_FALL_PRICE)},o.Increase={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.INCREASE),Color:"",Text:"--"},o.High={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.HIGH),Color:"",Text:"--"},o.Low={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.LOW),Color:"",Text:"--"},o.Open={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.OPEN),Color:"",Text:"--"},o.Amount={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.AMOUNT),Text:"--"},o.Vol={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.VOL),Text:"--"};var s=n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.YCLOSE);if(o.YClose={Value:s,Text:"--"},o.Price.Text=l.default.IFrameSplitOperator.FormatValueString(o.Price.Value,2),o.Price.Color=l.default.IFrameSplitOperator.FormatValueColor(o.Price.Value,s),0==o.RiseFallPrice.Value?o.RiseFallPrice.Text="0.00":o.RiseFallPrice.Text=l.default.IFrameSplitOperator.FormatValueString(o.RiseFallPrice.Value,2),o.RiseFallPrice.Color=l.default.IFrameSplitOperator.FormatValueColor(o.RiseFallPrice.Value,0),0==o.Increase.Value?o.Increase.Text="0.00%":o.Increase.Text=l.default.IFrameSplitOperator.FormatValueString(o.Increase.Value,2)+"%",o.Increase.Color=l.default.IFrameSplitOperator.FormatValueColor(o.Increase.Value,0),o.High.Text=l.default.IFrameSplitOperator.FormatValueString(o.High.Value,2),o.High.Color=l.default.IFrameSplitOperator.FormatValueColor(o.High.Value,s),o.Low.Text=l.default.IFrameSplitOperator.FormatValueString(o.Low.Value,2),o.Low.Color=l.default.IFrameSplitOperator.FormatValueColor(o.Low.Value,s),o.Open.Text=l.default.IFrameSplitOperator.FormatValueString(o.Open.Value,2),o.Open.Color=l.default.IFrameSplitOperator.FormatValueColor(o.Open.Value,s),o.YClose.Text=l.default.IFrameSplitOperator.FormatValueString(o.YClose.Value,2),o.Amount.Text=l.default.IFrameSplitOperator.FormatValueString(o.Amount.Value,2),o.Vol.Text=l.default.IFrameSplitOperator.FormatValueString(o.Vol.Value,2),r){o.Down={Text:""},o.Up={Text:""},o.Unchanged={Text:""},o.Stop={Text:""};var h=n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.INDEXTOP);h&&(o.Down.Text=l.default.IFrameSplitOperator.FormatValueString(h.Down,0),o.Up.Text=l.default.IFrameSplitOperator.FormatValueString(h.Up,0),o.Unchanged.Text=l.default.IFrameSplitOperator.FormatValueString(h.Unchanged,0),o.Stop.Text=l.default.IFrameSplitOperator.FormatValueString(h.Stop,0))}else{o.Excahngerate={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.EXCHANGE_RATE),Color:"",Text:"--"},o.Pe={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.PE),Text:"--"},o.MarketV={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.MARKET_VALUE),Text:"--"},o.FlowMarketV={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.FLOW_MARKET_VALUE),Text:"--"},o.Eps={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.FINANCE_PERSEARNING),Text:"--"},o.ScrollEPS={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.FINANCE_EPS),Text:"--"},o.Roe={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.ROE),Color:"",Text:"--"},o.Pb={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.PB),Text:"--"},o.Amplitude={Value:n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.AMPLITUDE),Text:"--"},o.Roe.Text=l.default.IFrameSplitOperator.FormatValueString(o.Roe.Value,2),o.Roe.Color=l.default.IFrameSplitOperator.FormatValueColor(o.Roe.Value,s),o.Excahngerate.Text=l.default.IFrameSplitOperator.FormatValueString(o.Excahngerate.Value,2),o.Excahngerate.Color=l.default.IFrameSplitOperator.FormatValueColor(o.Excahngerate.Value,s),o.MarketV.Text=l.default.IFrameSplitOperator.FormatValueString(o.MarketV.Value,0),o.FlowMarketV.Text=l.default.IFrameSplitOperator.FormatValueString(o.FlowMarketV.Value,0),o.Pe.Text=l.default.IFrameSplitOperator.FormatValueString(o.Pe.Value,2),o.Eps.Text=l.default.IFrameSplitOperator.FormatValueString(o.Eps.Value,2),o.ScrollEPS.Text=l.default.IFrameSplitOperator.FormatValueString(o.ScrollEPS.Value,2),o.Pb.Text=l.default.IFrameSplitOperator.FormatValueString(o.Pb.Value,2),o.Amplitude.Text=l.default.IFrameSplitOperator.FormatValueString(o.Amplitude.Value,2);var c=n.Get(this.Symbol,u.default.STOCK_FIELD_NAME.EVENTS);c&&(console.log("[StockInfo::UpdateData] events data ",this.Symbol,c),o.HK=c.HK,o.IsMargin=c.IsMargin,o.IsHK=c.IsHK,o.IsSHHK=c.IsSHHK)}this.StockData=o,console.log("[StockInfo::UpdateData]",this.Symbol,o)}}},SetJSStock:function(t){this.JSStock=t},OnChangeSymbol:function(t){this.IsShow.SearchSymbol=!1,this.IsShow.IconStyle=!0,this.SetSymbol(t),this.ChangeSymbolCallback&&this.ChangeSymbolCallback(t)},SetChangeSymbolCallback:function(t){this.ChangeSymbolCallback=t},SetSymbol:function(t){this.Symbol!=t&&(this.Symbol=t,this.IsStockStar=this.IsSHStockSTAR(),this.StockData=r.GetStockData(),this.CellStyle=r.GetCellStyle(),this.IsIndex=this.IsSHSZIndex(),this.InitalStock(),this.IsShareStock||this.JSStock.RequestData(),this.OnSize())},OnSize:function(){var t=this.$refs.stockinfo,e=t.offsetWidth;console.log("[StockInfo::OnSize]",e);for(var a=[1.5,1.5,1,1,1.25,1,1.2,1,1],i=0,n=0;n<a.length;++n)i+=a[n];var o=(e-20)/i,s=[];if(o>=100)for(var n=0,l=20;n<a.length;++n){var h=a[n]*o;parseInt(l+h)>e?s.push({width:h+"px",display:"none"}):s.push({left:"20px",width:h-4+"px"}),l+=h}else{s=r.GetCellStyle(),o=100;for(var u=0,n=0,l=20;n<a.length;++n,++u){var h=a[n]*o;if(l+h>e)break;l+=h}if(console.log("[StockInfo::OnSize] showCont="+u),u>0){i=0;for(var n=0;n<u;++n)i+=a[n];for(var o=(e-20)/i,n=0,l=20;n<a.length&&n<u;++n){var h=a[n]*o;s[n]={left:"20px",width:h-4+"px"},l+=h}}}console.log("[StockInfo::OnSize]",s),this.CellStyle=s}}}},function(t,e,a){"use strict";!function(t){var e,a='<svg><symbol id="icon-drawicon_dollar" viewBox="0 0 1024 1024"><path d="M757.206016 645.935104c0 98.934784-68.960256 183.469056-196.706304 204.588032l0 114.562048L450.320384 965.085184 450.320384 859.38176c-74.556416-3.308544-146.753536-24.431616-189.021184-47.838208l33.287168-130.084864c46.696448 25.550848 112.323584 48.960512 184.639488 48.960512 64.533504 0 107.844608-25.550848 107.844608-68.911104 0-42.246144-35.674112-69.011456-119.062528-96.847872-118.890496-40.050688-200.040448-95.58016-200.040448-203.47392 0-98.93888 68.839424-175.731712 187.777024-197.972992L455.744512 57.560064l109.083648 0 0 97.820672c73.389056 2.286592 123.4176 18.878464 162.35008 36.788224l-33.383424 125.657088c-27.83744-13.431808-80.106496-39.027712-160.15872-39.027712-72.19712 0-95.629312 32.264192-95.629312 63.4112 0 35.523584 38.982656 60.101632 134.608896 94.457856C704.891904 483.436544 757.157888 544.610304 757.206016 645.935104z" ></path></symbol><symbol id="icon-arrow_left" viewBox="0 0 1024 1024"><path d="M440.81 701.3l0 142.153-334.226-333.657 334.226-333.654 0 142.148 419.922 0 0 383.009z" ></path></symbol><symbol id="icon-overlay_index" viewBox="0 0 1024 1024"><path d="M708.007651 63.983243h-336.012823c-59.251475 0-112.00598 54.377468-112.00598 112.003934l-32.370245 0.783852c-59.249429 0-107.635439 53.594639-107.63544 111.221104v560.021714c0 57.628512 52.754504 112.003933 112.003934 112.003933h420.018075c59.249429 0 112.003933-54.375421 112.003934-112.003933h28.000727c59.251475 0 112.003933-54.375421 112.003934-112.00598V288.663422L708.007651 63.983243z m-56.002479 840.032059H231.98812c-29.401634 0-56.002478-27.493168-56.002478-56.002479V287.992133c0-28.507264 23.969924-55.107085 53.371558-55.107085l30.688953-0.896416v504.018211c0 57.630558 52.754504 112.00598 112.003933 112.00598H708.059839c-0.052189 28.561499-26.710338 56.002478-56.054667 56.002479z m196.00714-168.008459c0 28.508287-26.599821 56.002478-56.002479 56.002479h-420.016029c-29.401634 0-56.004525-27.493168-56.004525-56.002479V175.987177c0-28.506241 26.601868-56.003502 56.004525-56.003502h280.010345c-0.448208 64.514339 0 112.731504 0 112.731504 0 58.187237 52.358485 111.278409 112.003934 111.278409h84.003205v392.013255zM764.009106 287.992133c-29.847795 0-56.002478-54.155411-56.002478-83.277681v-83.890643L848.012312 287.992133h-84.003206z m-334.111521 101.988836c0-8.824993-7.139607-15.96767-15.965623-15.96767s-15.96767 7.141654-15.96767 15.96767v223.375463c0 8.789177 7.141654 15.933901 15.96767 15.933901h350.956164c8.826016 0 19.037589-7.144724 19.079544-15.933901 0-8.81783-10.216689-15.96153-19.037589-15.96153H429.897585v-207.413933z m307.587424 28.529777c-0.453325 0.487094-0.639566 1.085728-1.050935 1.607614l-75.233472 75.232448-76.126818-76.130911c-0.182149-0.222057-0.264013-0.483001-0.448208-0.708128-6.242168-6.245238-16.376992-6.245238-22.626323 0-0.448208 0.487094-0.63138 1.085728-1.043773 1.607614l-86.709851 86.710874c-6.099928 6.094812-6.099928 16.006556 0 22.101367 6.091742 6.095835 15.999392 6.095835 22.095228 0l77.102029-77.140914 74.561159 74.557066c0.559748 0.859577 0.973164 1.834788 1.717108 2.582825 6.093788 6.095835 16.005532 6.095835 22.103414 0l85.622076-85.630263c0.933255-0.632403 1.836835-1.309832 2.65855-2.169409 6.246261-6.242168 6.246261-16.375969 0-22.620183-6.243191-6.245238-16.378016-6.245238-22.620184 0z" fill="#515151" ></path></symbol><symbol id="icon-drawicon_message" viewBox="0 0 1024 1024"><path d="M423.424 92.16C284.16 117.248 163.84 200.192 105.472 312.32c-31.232 59.392-41.472 102.4-40.96 168.96 1.024 102.912 32.768 175.104 112.64 255.488l48.128 47.616 1.024 96.768 1.536 96.768 91.648-54.784 91.648-55.296h92.672c86.016-0.512 95.744-1.536 138.752-14.336 92.672-28.672 148.992-62.464 209.92-127.488 41.984-44.544 65.024-81.408 82.432-131.584 62.464-179.712-23.04-367.104-209.92-458.752-69.12-34.304-114.176-44.544-202.752-46.592-40.96-0.512-85.504 0.512-98.816 3.072z m193.536 68.608c16.896 4.608 52.224 18.944 78.848 31.744 39.424 19.456 56.32 31.744 90.112 65.536 70.656 70.144 96.256 129.536 96.256 220.672s-25.6 150.528-95.744 220.16c-46.08 45.568-95.232 74.752-161.792 95.232-32.256 10.24-49.664 12.288-107.52 12.288-37.888 0-76.288-1.536-85.504-3.584-13.824-3.072-24.064 1.024-79.36 34.304L289.28 875.52l-1.536-66.56-1.536-66.048-16.896-10.752c-24.576-14.848-77.312-72.192-95.232-103.936-28.672-50.176-38.4-87.04-38.4-149.504 0-58.88 6.656-87.04 30.72-135.68 46.08-91.648 143.872-162.816 258.56-186.88 42.496-9.216 149.504-6.656 192 4.608z" ></path><path d="M263.68 424.448c-23.04 10.24-33.28 27.136-33.28 54.784 0 26.112 27.136 53.248 53.248 53.248 26.624 0 46.08-11.776 56.832-34.304 8.192-16.896 8.192-20.992 2.048-39.424-12.8-35.328-45.056-49.664-78.848-34.304zM467.456 437.76c-16.896 16.896-17.92 19.968-15.36 41.984 6.656 59.904 86.528 73.216 109.568 18.432 16.384-40.448-9.216-78.336-53.248-78.336-19.456 0-25.6 2.56-40.96 17.92zM698.368 429.056c-15.36 12.288-22.528 28.16-22.528 49.664 0 26.624 27.136 53.76 53.248 53.76 26.624 0 46.08-11.776 56.832-33.792 7.168-15.872 7.68-22.016 3.072-38.4-8.192-27.136-27.136-40.448-56.32-40.448-14.336 0-27.648 3.584-34.304 9.216z" ></path></symbol><symbol id="icon-drawicon_s" viewBox="0 0 1024 1024"><path d="M513.41398101 509.01492899m-499.92083899 0a499.920839 499.920839 0 1 0 999.84167797 0 499.920839 499.920839 0 1 0-999.84167797 0Z" fill="#7FD13B" ></path><path d="M662.6675313 261.09692652c39.27725009 28.75094705 61.42961913 73.68412114 66.61421613 134.95663124h-84.68175116c-7.85545002-37.07772405-22.46658704-63.31492713-43.9905201-78.39739114-21.52393302-16.18222702-53.41706012-24.35189504-95.67938118-24.35189506-36.60639708 0-64.88601712 5.49881501-84.68175116 16.49644505-24.03767705 12.56872002-36.13507007 32.99289006-36.13507009 61.1154011 0 25.13744005 13.82559203 44.93317409 41.6338851 59.70142014 13.66848304 7.85545002 46.0329371 19.32440705 97.25047118 34.56398005 77.45473717 24.03767705 126.31563625 42.41943008 146.73980629 54.98815013 48.07535409 29.22227406 72.11303115 69.59928714 72.11303116 120.81682122 0 49.64644411-19.63862503 89.23791218-58.91587513 118.46018624-39.27725009 28.27962006-94.10829119 42.41943008-164.80734134 42.41943008-67.39976113 0-120.81682125-13.66848304-160.0940713-40.84834008-46.0329371-32.99289006-71.32748614-84.68175116-76.04075616-155.38080131h84.68175116c6.28436002 44.46184709 21.99526005 76.04075616 47.13270012 94.89383618 22.93791404 17.28199003 57.81611211 25.92298506 104.32037618 25.92298507 41.31966706 0 75.09810215-7.38412301 101.17819621-21.99526005 25.13744005-14.13981003 37.70616007-33.77843506 37.70616008-58.91587512 0-30.79336407-17.75331703-55.45947711-53.4170601-73.68412114-13.04004703-6.28436002-50.27488011-18.85308003-111.39028123-37.70616007-70.07061413-22.46658704-112.96137123-37.86326908-128.67227126-46.34715511-42.89075709-25.60876705-64.25758112-63.00070912-64.25758111-112.1758262 0-49.1751171 20.58127904-87.82393119 61.9009461-116.10355125 39.27725009-26.70853004 88.60947617-40.06279507 148.3108963-40.06279507 66.14288914 0 117.04620524 13.98270102 153.18127531 41.6338851z" fill="#FFFFFF" ></path></symbol><symbol id="icon-drawicon_b" viewBox="0 0 1024 1024"><path d="M513.41398101 509.01492899m-499.92083899 0a499.920839 499.920839 0 1 0 999.84167797 0 499.920839 499.920839 0 1 0-999.84167797 0Z" fill="#D12523" ></path><path d="M288.27678357 236.58792244h255.7734525c54.9881501 0 97.7217982 13.04004703 128.67227124 39.27725009 29.85071007 25.13744005 44.7760651 59.07298412 44.7760651 101.96374121 0 31.42180006-7.85545002 58.13033011-23.56635005 79.96848116-16.18222702 20.89549705-37.86326908 36.29217908-65.04312613 46.34715508 37.07772405 7.38412301 65.04312613 22.30947806 83.89620616 44.7760651s28.27962006 52.7886241 28.27962006 90.96611118c0 55.93080411-19.32440705 97.2504712-58.13033011 123.95900125-32.99289006 21.99526005-79.18293616 32.99289006-138.88435627 32.99289006H288.27678357V236.58792244z m85.46729615 70.54194117V474.29383993h147.5253513c38.64881408 0 66.92843413-6.75568702 84.68175117-20.42417004 17.28199003-14.13981003 25.92298506-36.13507007 25.92298506-65.82867114 0-28.27962006-8.64099502-48.70379009-25.92298506-61.11540111-16.81066303-13.04004703-44.46184709-19.63862503-83.11066116-19.63862505H373.74407972z m0 236.92037246v181.93222235h158.52298131c35.03530708 0 63.31492713-5.81303301 84.68175116-17.28199003 25.60876705-15.23957303 38.49170507-38.64881408 38.49170509-70.54194115 0-32.99289006-9.89786702-57.0305671-29.85071006-72.11303114-19.32440705-14.61113702-49.64644411-21.99526005-90.96611118-21.99526003H373.74407972z" fill="#FFFFFF" ></path></symbol><symbol id="icon-drawicon_good" viewBox="0 0 1024 1024"><path d="M884.875894 423.143253 646.970506 423.143253c92.185562-340.464205-63.516616-357.853247-63.516616-357.853247-65.993017 0-52.312436 52.182476-57.3031 60.881602 0 166.502152-176.849824 296.971645-176.849824 296.971645l0 472.171899c0 46.607504 63.516616 63.393819 88.433098 63.393819l357.452111 0c33.641191 0 61.036122-88.224344 61.036122-88.224344 88.434122-300.70569 88.434122-390.177444 88.434122-390.177444C944.657442 418.179195 884.875894 423.143253 884.875894 423.143253L884.875894 423.143253 884.875894 423.143253zM884.875894 423.143253" fill="#bfbfbf" ></path><path d="M251.671415 423.299819 109.214912 423.299819c-29.420053 0-29.873378 28.89612-29.873378 28.89612l29.420053 476.202703c0 30.309306 30.361495 30.309306 30.361495 30.309306L262.420223 958.707948c25.686009 0 25.458835-20.049638 25.458835-20.049638L287.879058 459.411271C287.879058 422.837284 251.671415 423.299819 251.671415 423.299819L251.671415 423.299819 251.671415 423.299819zM251.671415 423.299819" fill="#bfbfbf" ></path></symbol><symbol id="icon-drawicon_bad" viewBox="0 0 1024 1024"><path d="M139.124106 600.856747L377.029494 600.856747c-92.185562 340.464205 63.516616 357.853247 63.516616 357.853247 65.993017 0 52.312436-52.18247599 57.3031-60.881602 0-166.502152 176.849824-296.971645 176.849824-296.971645l-1e-8-472.171899c0-46.607504-63.516616-63.393819-88.43309799-63.393819l-357.452111 0c-33.641191 0-61.036122 88.224344-61.036122 88.224344-88.43412199 300.70569-88.434122 390.177444-88.43412199 390.177444C79.342558 605.820805 139.124106 600.856747 139.124106 600.856747L139.124106 600.856747 139.124106 600.856747zM139.124106 600.856747" fill="#bfbfbf" ></path><path d="M772.328585 600.700181L914.785088 600.700181c29.420053 0 29.873378-28.89612 29.873378-28.89612l-29.420053-476.202703c0-30.30930601-30.36149501-30.309306-30.36149499-30.309306L761.57977699 65.292052c-25.68600901 0-25.458835 20.049638-25.458835 20.049638L736.12094199 564.588729C736.120942 601.162716 772.328585 600.700181 772.328585 600.700181L772.328585 600.700181 772.328585 600.700181zM772.328585 600.700181" fill="#bfbfbf" ></path></symbol><symbol id="icon-menu_arraw_right" viewBox="0 0 1024 1024"><path d="M288.4 65.2l446.7 446.7-446.7 446.7V65.2z m0 0" ></path></symbol><symbol id="icon-menu_arraw_left" viewBox="0 0 1024 1024"><path d="M735.3 958.7L288.7 512 735.3 65.3v893.4z m0 0" ></path></symbol><symbol id="icon-drawicon_up" viewBox="0 0 1024 1024"><path d="M876.1 402.4L556.9 83.2c-25-25-65.4-25-90.4 0L147.3 402.4c-25 25-25 65.4 0 90.4s65.4 25 90.4 0l210.2-210.2v611.9c0 35.2 28.6 63.8 63.8 63.8 35.2 0 63.8-28.6 63.8-63.8V282.4l210.2 210.2c12.5 12.5 28.9 18.6 45.2 18.6 16.3 0 32.7-6.1 45.2-18.6 24.8-24.8 24.8-65.2 0-90.2z m0 0" ></path></symbol><symbol id="icon-drawicon_close" viewBox="0 0 1024 1024"><path d="M512 408.17919922L719.64160156 200.53759766c29.66308594-29.66308594 74.15771484-29.66308594 103.82080078 0s29.66308594 74.15771484 0 103.82080078L615.82080078 512l207.64160156 207.64160156c29.66308594 29.66308594 29.66308594 74.15771484 0 103.82080078s-74.15771484 29.66308594-103.82080078 0L512 615.82080078 304.35839844 823.46240234c-29.66308594 29.66308594-74.15771484 29.66308594-103.82080078 0-29.66308594-29.66308594-29.66308594-74.15771484 0-103.82080078L408.17919922 512 200.53759766 304.35839844C170.87451172 274.6953125 170.87451172 230.20068359 200.53759766 200.53759766c29.66308594-29.66308594 74.15771484-29.66308594 103.82080078 0L512 408.17919922z" fill="#999999" ></path></symbol><symbol id="icon-change_index" viewBox="0 0 1024 1024"><path d="M620.544 137.6c103.936 10.432 187.328 72.96 205.12 180.224h-60.16l97.088 144.448 97.152-144.448h-67.008c-17.792-144.448-127.168-238.336-265.344-251.712-19.136-1.536-36.864 14.848-36.864 35.712 1.28 17.92 13.568 34.24 30.016 35.776z m-150.4-73.024H132.416c-19.136 0-34.176 16.384-34.176 37.248v321.728c0 20.864 15.04 37.248 34.176 37.248h337.728c19.136 0 34.176-16.384 34.176-37.248V101.824c0-20.864-15.04-37.248-34.176-37.248z m-32.832 324.736H165.248V136.064h272.128v253.248h-0.064zM404.48 883.84c-116.224-10.432-205.12-87.872-209.216-216h64.256L162.496 523.392l-97.088 144.448h64.256c2.688 165.376 118.912 272.576 268.032 287.488 19.136 1.472 36.928-14.912 36.928-35.776a35.648 35.648 0 0 0-30.144-35.712z m489.6-323.264H556.288c-19.2 0-34.176 16.448-34.176 37.248v323.264c0 20.8 14.976 37.184 34.176 37.184h337.728c19.136 0 34.112-16.384 34.112-37.184V597.824c0.064-20.8-16.32-37.248-34.048-37.248z m-32.896 324.736H589.12V633.536h272.064v251.776z" ></path></symbol><symbol id="icon-draw_arc" viewBox="0 0 1024 1024"><path d="M 186 63.9 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.1 -121 -121 -121 Z m -0.1 203.5 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 c 0.1 45.7 -37 82.7 -82.7 82.7 Z M 839.6 717.1 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.1 -121 -121 -121 Z m -0.1 203.6 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 c 0.1 45.6 -37 82.7 -82.7 82.7 Z M 698.9 197.5 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.2 -121 -121 -121 Z m -0.1 203.6 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 s -37 82.7 -82.7 82.7 Z" fill="#748696" ></path><path d="M 364.3 164.8 c -21.6 0 -43 1.4 -63.9 4.1 c -4.1 0.5 -7.2 4 -7.2 8.2 v 21.7 c 0 5 4.5 8.9 9.4 8.2 c 20.8 -2.9 42 -4.4 63.5 -4.4 c 91.6 0 177 26.8 248.7 72.9 c 5.5 3.6 12.8 -0.4 12.8 -6.9 v -23.8 c 0 -2.9 -1.5 -5.6 -3.9 -7 c -75.5 -46.3 -164.3 -73 -259.4 -73 Z M 772.2 377.7 v 20.9 h -29.4 c 52.5 74.8 83.3 165.8 83.3 264.1 c 0 26.5 -2.3 52.5 -6.6 77.8 h 35.7 c 4.1 -25.6 6.2 -51.8 6.2 -78.5 c 0.2 -105.7 -32.9 -203.7 -89.2 -284.3 Z" fill="#748696" ></path></symbol><symbol id="icon-index_param" viewBox="0 0 1024 1024"><path d="M 165.8 830.1 v 129 h 37.1 V 830.2 c -5.9 0.9 -12 1.4 -18.2 1.4 c -6.4 0 -12.7 -0.5 -18.9 -1.5 Z M 202.9 590.9 V 64.6 h -37.1 V 591 c 6.2 -1 12.5 -1.5 18.9 -1.5 c 6.2 0 12.3 0.5 18.2 1.4 Z M 493.4 606.5 v 352.6 h 37.1 V 607.4 c -5.1 0.7 -10.3 1 -15.5 1 c -7.3 0 -14.6 -0.6 -21.6 -1.9 Z M 530.5 367.3 V 64.6 h -37.1 v 303.7 c 7 -1.3 14.2 -1.9 21.6 -1.9 c 5.3 0 10.5 0.3 15.5 0.9 Z M 856.2 191.9 V 64.6 h -37.1 V 192 c 6.2 -1 12.5 -1.5 18.9 -1.5 c 6.2 0 12.3 0.5 18.2 1.4 Z M 819.1 431.1 v 528 h 37.1 V 431.2 c -5.9 0.9 -12 1.4 -18.2 1.4 c -6.4 0 -12.8 -0.5 -18.9 -1.5 Z M 101.9 710.3 c 0 -39.2 27.3 -72 63.9 -80.5 V 591 c -57.9 9.1 -102.1 59.2 -102.1 119.6 S 107.9 821 165.8 830.1 v -39.2 c -36.6 -8.6 -63.9 -41.4 -63.9 -80.6 Z" fill="#748696" ></path><path d="M 202.9 590.9 v 38.8 c 36.9 8.3 64.5 41.3 64.5 80.7 c 0 39.4 -27.6 72.4 -64.5 80.7 v 39.2 c 58.2 -8.8 102.9 -59 102.9 -119.7 s -44.7 -111 -102.9 -119.7 Z" fill="#748696" ></path><path d="M 184.6 793.1 c -6.5 0 -12.8 -0.8 -18.8 -2.2 v 39.2 c 6.2 1 12.5 1.5 18.9 1.5 c 6.2 0 12.2 -0.5 18.2 -1.4 V 791 c -5.9 1.3 -12 2.1 -18.3 2.1 Z M 184.6 627.6 c 6.3 0 12.4 0.7 18.3 2 v -38.8 c -5.9 -0.9 -12 -1.4 -18.2 -1.4 c -6.4 0 -12.8 0.5 -18.9 1.5 v 38.8 c 6.1 -1.3 12.4 -2.1 18.8 -2.1 Z M 755.2 311.3 c 0 -39.2 27.3 -72 63.9 -80.5 V 192 C 761.2 201.1 717 251.1 717 311.5 S 761.2 422 819.1 431.1 v -39.2 c -36.6 -8.6 -63.9 -41.4 -63.9 -80.6 Z M 959.1 311.5 c 0 -60.7 -44.6 -110.9 -102.9 -119.7 v 38.8 c 36.9 8.3 64.5 41.3 64.5 80.7 c 0 39.4 -27.6 72.4 -64.5 80.7 v 39.2 c 58.2 -8.8 102.9 -59 102.9 -119.7 Z" fill="#748696" ></path><path d="M 837.9 228.6 c 6.3 0 12.4 0.7 18.3 2 v -38.8 c -5.9 -0.9 -12 -1.4 -18.2 -1.4 c -6.4 0 -12.8 0.5 -18.9 1.5 v 38.8 c 6 -1.3 12.3 -2.1 18.8 -2.1 Z M 837.9 394.1 c -6.5 0 -12.8 -0.8 -18.8 -2.2 v 39.2 c 6.2 1 12.5 1.5 18.9 1.5 c 6.2 0 12.2 -0.5 18.2 -1.4 V 392 c -5.9 1.3 -12 2.1 -18.3 2.1 Z M 432.2 487.2 c 0 -38.3 26 -70.4 61.2 -79.9 v -39 c -56.6 10.2 -99.5 59.6 -99.5 119.1 s 42.9 108.9 99.5 119.1 v -39.4 c -35.2 -9.5 -61.2 -41.6 -61.2 -79.9 Z M 530.5 367.3 V 406 c 38.2 7.3 67.1 40.9 67.1 81.2 c 0 40.3 -28.9 73.9 -67.1 81.2 v 39 C 590 599.8 636 548.9 636 487.3 s -45.9 -112.3 -105.5 -120 Z M 514.9 569.9 c -7.4 0 -14.6 -1 -21.5 -2.8 v 39.4 c 7 1.3 14.2 1.9 21.6 1.9 c 5.3 0 10.4 -0.3 15.5 -1 v -39 c -5 1 -10.2 1.5 -15.6 1.5 Z M 514.9 404.5 c 5.3 0 10.6 0.5 15.6 1.5 v -38.6 c -5.1 -0.7 -10.3 -1 -15.5 -1 c -7.4 0 -14.6 0.7 -21.6 1.9 v 39 c 6.9 -1.8 14.1 -2.8 21.5 -2.8 Z" fill="#748696" ></path></symbol><symbol id="icon-draw_line" viewBox="0 0 1024 1024"><path d="M236.1 757.3l533.6-524 25.9 26.6-533.7 524z" fill="#748696" ></path><path d="M837.2 66.4c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7zM185 717.3c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.6c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path></symbol><symbol id="icon-draw_rays" viewBox="0 0 1024 1024"><path d="M238.6 760.3l408.2-399.7 26.2 26.3-408.2 399.7z" fill="#748696" ></path><path d="M717.2 186.4c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7zM185 717.3c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.6c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path><path d="M800.8 253.5l158.5-151.6-25.9-26.6L774 228.1c10.2 7 19.2 15.6 26.8 25.4z" fill="#748696" ></path></symbol><symbol id="icon-rectangle" viewBox="0 0 1024 1024"><path d="M 273.9 168.3 H 739 v 37.1 H 273.9 Z M 273.9 819.6 H 739 v 37.1 H 273.9 Z M 165.812 740.898 v -465.1 h 37.1 v 465.1 Z M 821.11 740.896 v -465.1 h 37.1 v 465.1 Z" fill="#748696" ></path><path d="M 184.7 66.2 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.1 -121 -121 -121 Z m -0.1 203.5 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 c 0.1 45.7 -37 82.7 -82.7 82.7 Z M 184.7 717.5 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.1 -121 -121 -121 Z m -0.1 203.6 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 c 0.1 45.6 -37 82.7 -82.7 82.7 Z M 840 717.5 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.1 -121 -121 -121 Z m -0.1 203.6 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 c 0.1 45.6 -37 82.7 -82.7 82.7 Z M 840 66.2 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.1 -121 -121 -121 Z m -0.1 203.5 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 c 0.1 45.7 -37 82.7 -82.7 82.7 Z" fill="#748696" ></path></symbol><symbol id="icon-draw_parallel_lines" viewBox="0 0 1024 1024"><path d="M 242.242 556.785 l 333.663 -324.036 l 25.847 26.616 L 268.09 583.4 Z" fill="#748696" ></path><path d="M 643.4 65.9 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.2 -121 -121 -121 Z m -0.1 203.5 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 s -37 82.7 -82.7 82.7 Z" fill="#748696" ></path><path d="M 801.1 593.9 L 959.3 442 l -25.9 -26.6 l -159.1 153.1 c 10.2 7 19.2 15.6 26.8 25.4 Z M 603.8 733.9 L 396.6 933.4 l 25.4 26.2 l 206.3 -198.2 c -9.5 -7.9 -17.7 -17.2 -24.5 -27.5 Z M 773.4 620.8 c 9.2 13.3 14.6 29.5 14.6 47 c 0 45.7 -37 82.7 -82.7 82.7 c -18.4 0 -35.4 -6 -49.1 -16.2 l -27.9 27 c 20.9 17.3 47.8 27.7 77.1 27.7 c 66.8 0 121 -54.2 121 -121 c 0 -27.9 -9.4 -53.6 -25.3 -74 l -27.7 26.8 Z M 622.5 667.8 c 0 -45.7 37 -82.7 82.7 -82.7 c 14.9 0 28.8 3.9 40.8 10.8 l 28.2 -27.4 c -19.6 -13.6 -43.3 -21.6 -69 -21.6 c -66.8 0 -121 54.2 -121 121 c 0 24.3 7.2 46.9 19.5 65.9 l 28.3 -27.5 c -6 -11.4 -9.5 -24.6 -9.5 -38.5 Z" fill="#748696" ></path><path d="M 773.4 620.8 l 27.8 -26.9 c -7.6 -9.8 -16.6 -18.4 -26.8 -25.4 l -28.2 27.4 c 10.8 6.1 20.1 14.7 27.2 24.9 Z M 632.1 706.4 l -28.3 27.5 c 6.7 10.3 15 19.6 24.5 27.4 l 27.9 -27 c -10 -7.3 -18.2 -16.9 -24.1 -27.9 Z M 185.2 522.8 c -66.8 0 -121 54.2 -121 121 s 54.2 121 121 121 s 121 -54.2 121 -121 s -54.2 -121 -121 -121 Z m -0.1 203.6 c -45.7 0 -82.7 -37 -82.7 -82.7 s 37 -82.7 82.7 -82.7 s 82.7 37 82.7 82.7 s -37 82.7 -82.7 82.7 Z" fill="#748696" ></path></symbol><symbol id="icon-setting" viewBox="0 0 1024 1024"><path d="M 810.342 334.848 c 16.384 29.184 45.824 46.592 78.592 46.592 c 27.392 0 49.818 22.938 49.818 51.302 v 158.67 c 0 28.16 -22.426 51.2 -49.818 51.2 c -32.87 0 -62.208 17.458 -78.592 46.694 a 94.72 94.72 0 0 0 0 93.286 a 52.07 52.07 0 0 1 -18.278 69.99 L 658.688 931.84 a 49.152 49.152 0 0 1 -67.994 -18.637 a 89.344 89.344 0 0 0 -78.592 -46.745 c -32.768 0 -62.208 17.408 -78.592 46.643 a 49.51 49.51 0 0 1 -43.264 25.6 a 48.589 48.589 0 0 1 -24.73 -6.861 l -133.58 -79.258 a 50.637 50.637 0 0 1 -23.245 -31.078 a 51.763 51.763 0 0 1 4.967 -38.912 a 94.72 94.72 0 0 0 0 -93.286 a 89.446 89.446 0 0 0 -78.592 -46.644 c -27.392 0 -49.818 -23.04 -49.818 -51.25 v -158.72 c 0 -28.16 22.426 -51.2 49.818 -51.2 c 32.768 0 62.208 -17.46 78.592 -46.695 a 94.72 94.72 0 0 0 0 -93.287 a 51.968 51.968 0 0 1 18.227 -69.939 l 133.53 -79.309 a 48.998 48.998 0 0 1 67.993 18.74 a 89.446 89.446 0 0 0 157.184 0 a 49.05 49.05 0 0 1 68.096 -18.842 l 133.376 79.36 c 23.808 14.131 32 45.517 18.278 69.99 a 94.72 94.72 0 0 0 0 93.287 Z M 512 750.899 A 239.258 239.258 0 0 0 750.95 512 A 239.411 239.411 0 0 0 512 273.05 A 239.36 239.36 0 0 0 273.05 512 A 239.36 239.36 0 0 0 512 750.95 Z" fill="#748696" ></path><path d="M 512 642.406 A 130.611 130.611 0 0 1 381.594 512 A 130.611 130.611 0 0 1 512 381.594 A 130.611 130.611 0 0 1 642.406 512 A 130.56 130.56 0 0 1 512 642.406" fill="#748696" ></path></symbol><symbol id="icon-recycle_bin" viewBox="0 0 1024 1024"><path d="M 609.522 769.748 c -17.717 0 -32.041 -14.324 -32.041 -32.04 v -352.46 c 0 -17.718 14.324 -32.042 32.041 -32.042 c 17.718 0 32.042 14.324 32.042 32.042 v 352.46 c 0 17.716 -14.324 32.04 -32.042 32.04 Z m -192.25 0 c -17.718 0 -32.042 -14.324 -32.041 -32.04 v -352.46 c 0 -17.718 14.323 -32.042 32.041 -32.042 s 32.042 14.324 32.042 32.042 v 352.46 c 0 17.716 -14.324 32.04 -32.042 32.04 Z m 512.669 -544.71 H 769.732 v -64.083 c 0 -52.996 -42.777 -96.125 -95.39 -96.125 H 353.187 c -52.997 0 -96.125 43.129 -96.125 96.125 v 64.084 H 96.853 c -17.717 0 -32.041 14.323 -32.041 32.041 c 0 17.718 14.324 32.042 32.042 32.042 h 833.085 c 17.717 0 32.042 -14.324 32.042 -32.042 c 0 -17.717 -14.322 -32.041 -32.04 -32.041 Z m -608.795 -64.083 c 0 -17.656 14.384 -32.041 32.042 -32.041 H 674.34 c 17.558 0 31.308 14.066 31.308 32.041 v 64.084 H 321.146 v -64.084 Z M 737.82 962 H 289.171 c -53 0 -96.125 -43.127 -96.125 -96.126 V 384.768 c 0 -17.689 14.353 -32.042 32.042 -32.042 c 17.685 0 32.041 14.353 32.041 32.042 v 481.106 c 0 17.687 14.387 32.043 32.042 32.043 h 448.65 c 17.682 0 32.04 -14.356 32.04 -32.043 V 386.081 c 0 -17.688 14.32 -32.042 32.043 -32.042 c 17.718 0 32.041 14.354 32.041 32.042 v 479.792 c 0 53.002 -43.132 96.127 -96.126 96.127 Z" fill="#748696" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M 891.264 901.248 a 30.784 30.784 0 0 1 -21.76 -9.024 L 128.256 150.976 a 30.72 30.72 0 1 1 43.52 -43.52 l 741.312 741.312 a 30.848 30.848 0 0 1 -21.824 52.48" fill="#748696" ></path><path d="M 150.016 901.248 a 30.72 30.72 0 0 1 -21.76 -52.544 l 741.312 -741.248 a 30.784 30.784 0 0 1 43.456 43.52 L 171.776 892.224 a 30.72 30.72 0 0 1 -21.76 9.024" fill="#748696" ></path></symbol><symbol id="icon-draw_trendline" viewBox="0 0 1024 1024"><path d="M714 177.3c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7zM301.8 598.2c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.6c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path><path d="M959.5 90.4L806.4 243.5l-26.2-26.2L933.3 64.2zM663.9 386.5L397.3 653.2 371 627l266.7-266.7zM246.3 803.7L90.4 959.6l-26.2-26.3 155.9-155.9z" fill="#748696" ></path></symbol><symbol id="icon-draw_goldensection" viewBox="0 0 1024 1024"><path d="M92.5 184.4h845.2v37.1H92.5zM93 802.4h845.2v37.1H93zM92.8 670.3H938v37.1H92.8zM370.1 578.5c-29.9 17-63.6 25.5-101.2 25.5-43.3 0-78.2-13.7-104.6-41.1-26.5-27.4-39.7-63.9-39.7-109.6 0-46.2 14.6-84.2 43.9-114 29.2-29.8 66.7-44.6 112.4-44.6 32.3 0 59.7 5.2 82.1 15.5v41.7c-24-15.1-52.5-22.6-85.6-22.6-32.6 0-59.4 11.1-80.6 33.4-21.1 22.3-31.7 51.7-31.7 88.1 0 37.5 9.7 66.7 29.2 87.5 19.4 20.9 45.7 31.3 78.8 31.3 22.8 0 42.2-4.4 58.2-13.1v-81h-64.9v-34.2h103.8v137.2z" fill="#748696" ></path></symbol><symbol id="icon-draw_gannfan" viewBox="0 0 1024 1024"><path d="M64 63.9h37.1v895.7H64z" fill="#748696" ></path><path d="M84.475 913.272l849.439-849.44 26.233 26.234-849.439 849.44z" fill="#748696" ></path><path d="M71.998 925.89L943.86 519.35l15.678 33.623-871.86 406.541z" fill="#748696" ></path><path d="M65.179 943.878l406.54-871.861 33.624 15.678-406.54 871.861z" fill="#748696" ></path><path d="M64 922.5h895.7v37.1H64z" fill="#748696" ></path></symbol><symbol id="icon-draw_percentage" viewBox="0 0 1024 1024"><path d="M92 184.4h845.2v37.1H92zM92 802.4h845.2v37.1H92zM92 670.3h845.2v37.1H92zM486.3 508.3h450v37.1h-450zM486.3 346.4h450v37.1h-450zM112.6 378.9c0-22.8 6.1-40.9 18.2-54.3 12.2-13.4 28.5-20.1 49.2-20.1 19.8 0 35.2 6.2 46.3 18.5 11.1 12.3 16.6 29.5 16.6 51.6 0 21.9-6.1 39.7-18.3 53.4-12.2 13.7-28.5 20.5-48.7 20.5-19.2 0-34.5-6.3-46-19.1-11.5-12.7-17.3-29.5-17.3-50.5z m27.7-1.8c0 15.5 3.4 27.4 10.1 35.8 6.7 8.4 15.9 12.6 27.5 12.6 12 0 21.2-4.3 27.8-13 6.5-8.7 9.8-20.9 9.8-36.8 0-15.5-3.2-27.4-9.6-35.9-6.4-8.4-15.4-12.7-27.1-12.7-11.9 0-21.2 4.4-28.1 13.2-6.9 8.9-10.4 21.1-10.4 36.8z m224-68.4L185.4 588.9h-30l178.8-280.2h30.1z m-84.9 213.1c0-22.8 6.1-40.9 18.2-54.5 12.2-13.6 28.5-20.4 49-20.4 19.7 0 35 6.2 46.2 18.6s16.7 29.9 16.7 52.4c0 21.8-6.2 39.5-18.5 53.1-12.3 13.6-28.5 20.4-48.3 20.4-19.3 0-34.7-6.4-46.1-19.3-11.4-12.9-17.2-29.7-17.2-50.3z m27.5-1.6c0 15.1 3.4 26.9 10.1 35.3 6.7 8.4 15.9 12.7 27.5 12.7 12 0 21.2-4.4 27.8-13.1 6.5-8.7 9.8-21 9.8-36.7 0-15.6-3.3-27.5-9.8-35.8-6.5-8.3-15.5-12.4-26.9-12.4-12.2 0-21.7 4.4-28.4 13.2-6.7 8.9-10.1 21.1-10.1 36.8z" fill="#748696" ></path></symbol><symbol id="icon-draw_waveband" viewBox="0 0 1024 1024"><path d="M92 184.4h845.2v37.1H92zM92 802.4h845.2v37.1H92zM92 670.3h845.2v37.1H92zM486.3 508.3h450v37.1h-450zM486.3 346.4h450v37.1h-450zM298.7 607.9h-97.5v-11.2h16.9c6.2 0 10.6-1.3 13.1-3.8s3.7-6.3 3.7-11.3V317.4c0-10-0.6-15.7-1.9-17-1.3-1.3-6.3-1.9-15-1.9-17.5 0-29.7 3.2-36.6 9.7-6.9 6.4-15.3 23.8-25.3 52.2l-11.2-1.9 16.9-71.2H340l15 71.2-9.4 1.9c-10-27.1-17.8-44.1-23.4-51.2-5.6-7.1-17.2-10.6-34.7-10.6-12.5 0-19.4 0.6-20.6 1.9-1.3 1.3-1.9 7.5-1.9 18.8v262.2c0 5 1.6 8.8 4.7 11.3s7.2 3.8 12.2 3.8h16.9v11.3z" fill="#748696" ></path></symbol><symbol id="icon-draw_resline" viewBox="0 0 1024 1024"><path d="M70.768 939.52l622.178-622.178 13.717 13.718L84.486 953.237z" fill="#748696" ></path><path d="M74.678 936.093l773.28-281.432 6.429 17.666L81.107 953.76z" fill="#748696" ></path><path d="M69.06 942.134l286.527-787.281 19.545 7.114-286.527 787.28z" fill="#748696" ></path><path d="M959.7 959.6H64l12-37.1h883.7z" fill="#748696" ></path></symbol><symbol id="icon-draw_text" viewBox="0 0 1024 1024"><path d="M647.5 959.3H375.2v-31.4h47.1c17.4 0 29.6-3.5 36.7-10.6 7-7 10.5-17.5 10.5-31.6V148c0-28.1-1.8-43.9-5.2-47.4-3.5-3.5-17.5-5.3-41.9-5.3-48.9 0-83 9-102.1 27-19.2 18-42.8 66.6-70.7 145.8l-31.4-5.2 47.1-199h497.5l41.9 199-26.2 5.2c-28-75.6-49.7-123.3-65.5-143.1-15.7-19.8-48-29.7-96.9-29.7-34.9 0-54.2 1.8-57.6 5.3-3.5 3.5-5.2 21-5.2 52.6v732.5c0 14.1 4.3 24.5 13.1 31.6 8.7 7 20 10.6 34 10.6h47.1v31.4z" fill="#748696" ></path></symbol><symbol id="icon-draw_parallelchannel" viewBox="0 0 1024 1024"><path d="M242.242 556.785l333.663-324.036 25.847 26.616L268.09 583.4z" fill="#748696" ></path><path d="M643.4 65.9c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path><path d="M801.1 593.9L959.3 442l-25.9-26.6-159.1 153.1c10.2 7 19.2 15.6 26.8 25.4zM603.8 733.9L396.6 933.4l25.4 26.2 206.3-198.2c-9.5-7.9-17.7-17.2-24.5-27.5zM773.4 620.8c9.2 13.3 14.6 29.5 14.6 47 0 45.7-37 82.7-82.7 82.7-18.4 0-35.4-6-49.1-16.2l-27.9 27c20.9 17.3 47.8 27.7 77.1 27.7 66.8 0 121-54.2 121-121 0-27.9-9.4-53.6-25.3-74l-27.7 26.8zM622.5 667.8c0-45.7 37-82.7 82.7-82.7 14.9 0 28.8 3.9 40.8 10.8l28.2-27.4c-19.6-13.6-43.3-21.6-69-21.6-66.8 0-121 54.2-121 121 0 24.3 7.2 46.9 19.5 65.9l28.3-27.5c-6-11.4-9.5-24.6-9.5-38.5z" fill="#748696" ></path><path d="M773.4 620.8l27.8-26.9c-7.6-9.8-16.6-18.4-26.8-25.4l-28.2 27.4c10.8 6.1 20.1 14.7 27.2 24.9zM632.1 706.4l-28.3 27.5c6.7 10.3 15 19.6 24.5 27.4l27.9-27c-10-7.3-18.2-16.9-24.1-27.9zM185.2 522.8c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.6c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path></symbol><symbol id="icon-draw_wavemw" viewBox="0 0 1024 1024"><path d="M507.5 269.2L307 826.9h-37.4L63.7 194.5H102l189.5 565.9c15.8-45.6 32-91.3 48.7-137.1 16.7-45.9 32.9-91.9 48.7-138L490 203.7h36.4l200.5 556.8c15.8-46.8 31.9-93.2 48.3-139.4s32.8-92.9 49.2-140.3L923 194.5h37.4l-216 632.4h-34.6L507.5 269.2z" fill="#748696" ></path></symbol><symbol id="icon-chip_date" viewBox="0 0 1024 1024"><path d="M184.4 65.7s655.4 122.1 655.4 280c0 131.09999999-238.3 125.1-238.3 223.4s122.1 80.4 122.1 184.7c0 163.8-536.2 205.5-536.2 205.5L187.4 65.7l-3 0z" fill="#6C737D" ></path><path d="M190.7 64.6s325 122.29999999 325 280.29999999c0 131.2-119.3 125.2-119.3 223.70000001S455.99999999 649.1 456 753.5c0 163.99999999-268.4 205.8-268.4 205.8L187.6 64.6l3.1 0z" fill="#898C90" ></path></symbol><symbol id="icon-draw_triangle" viewBox="0 0 1024 1024"><path d="M185.8 63.9c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7zM838.2 716.7c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7zM186.2 715.6c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path><path d="M287.2 818.1h447.6v37H287.2zM167.319 733.019v-451h37v451zM750.725 776.404L235.673 261.353l26.163-26.163L776.887 750.24z" fill="#748696" ></path></symbol><symbol id="icon-draw_pricechannel" viewBox="0 0 1024 1024"><path d="M189.9 191.4c-47.2 47.2-47.2 123.9 0 171.1s123.9 47.2 171.1 0 47.2-123.9 0-171.1-123.8-47.2-171.1 0z m143.9 144c-32.3 32.3-84.6 32.3-117 0s-32.3-84.6 0-117 84.6-32.3 117 0 32.3 84.7 0 117z" fill="#748696" ></path><path d="M336.266 190.085L462.484 63.867l26.162 26.163L362.43 216.248zM66.391 459.906L190.416 335.88l26.163 26.163L92.554 486.068zM636.5 214.9c-47.2 47.2-47.2 123.9 0 171.1 47.2 47.2 123.9 47.2 171.1 0 47.2-47.2 47.2-123.9 0-171.1-47.3-47.2-123.9-47.2-171.1 0z m143.8 144c-32.3 32.3-84.6 32.3-117 0-32.3-32.3-32.3-84.6 0-117 32.3-32.3 84.6-32.3 117 0s32.3 84.7 0 117zM222.5 630.6c-47.2 47.2-47.2 123.9 0 171.1 47.2 47.2 123.9 47.2 171.1 0 47.2-47.2 47.2-123.9 0-171.1s-123.8-47.3-171.1 0z m143.8 143.9c-32.3 32.3-84.6 32.3-117 0s-32.3-84.6 0-117c32.3-32.3 84.6-32.3 117 0 32.4 32.4 32.4 84.7 0 117z" fill="#748696" ></path><path d="M779.835 216.483l152.31-152.31 26.162 26.164-152.309 152.309zM242.663 805.981L90 958.644l-26.163-26.163L216.5 779.82zM658.982 389.674L388.658 659.998l-26.163-26.163L632.82 363.511zM527.694 931.128l404.178-404.179 26.163 26.163-404.179 404.179z" fill="#748696" ></path></symbol><symbol id="icon-draw_circle" viewBox="0 0 1024 1024"><path d="M532.138 469.26l274.426-274.426 26.163 26.163L558.3 495.423z" fill="#748696" ></path><path d="M697.4 65.9H325.5l-263 263v371.9l263 263h371.9l263-263V328.9l-263-263z m225.5 619.3l-241 241H341l-241-241V344.4l241-241h340.8l241 241v340.8z" fill="#748696" ></path><path d="M511.1 513.2m-121.2 0a121.2 121.2 0 1 0 242.4 0 121.2 121.2 0 1 0-242.4 0Z" fill="#748696" ></path></symbol><symbol id="icon-draw_symangle" viewBox="0 0 1024 1024"><path d="M485.845 771.49l448.302-448.3 26.163 26.162-448.302 448.302z" fill="#748696" ></path><path d="M512.217 797.631L64.764 350.178l26.163-26.162L538.38 771.469z" fill="#748696" ></path><path d="M494.6 226.1v535.7l17.5 35.9 20.7-20.6-1.2-16.1V226.1z" fill="#748696" ></path></symbol><symbol id="icon-draw_hline" viewBox="0 0 1024 1024"><path d="M512.6 390.1c-66.8 0-121 54.2-121 121s54.2 121 121 121 121-54.2 121-121-54.2-121-121-121z m-0.1 203.5c-45.7 0-82.7-37-82.7-82.7s37-82.7 82.7-82.7 82.7 37 82.7 82.7-37 82.7-82.7 82.7z" fill="#748696" ></path><path d="M606 492.6h353.4v37H606zM64.5 492.6h340.1v37H64.5z" fill="#748696" ></path></symbol><symbol id="icon-chip_default" viewBox="0 0 1024 1024"><path d="M685.1 274H308.7v-37.1h376.4z" fill="#4BDD56" ></path><path d="M685.1 615.5H308.7v-37.1h376.4z" fill="#F74B4B" ></path><path d="M826.7 444.8h-518v-37.1h518z" fill="#4BDD56" ></path><path d="M234.4 236.9v549.4h-37.1V236.9z" fill="#748696" ></path><path d="M826.7 786.3h-518v-37.1h518z" fill="#F74B4B" ></path></symbol><symbol id="icon-arrow_down" viewBox="0 0 1024 1024"><path d="M701.3 583.19l142.153 0-333.657 334.226-333.654-334.226 142.148 0 0-419.922 383.009 0z" ></path></symbol><symbol id="icon-arrow_right" viewBox="0 0 1024 1024"><path d="M583.19 322.7l0-142.153 334.226 333.657-334.226 333.654 0-142.148-419.922 0 0-383.009z" ></path></symbol><symbol id="icon-arrow_up" viewBox="0 0 1024 1024"><path d="M322.7 440.81l-142.153 0 333.657-334.226 333.654 334.226-142.148 0 0 419.922-383.009 0z" ></path></symbol><symbol id="icon-draw_quadrangle" viewBox="0 0 1024 1024"><path d="M353.7 378.4h-47.1L93 651.8h47.1z" fill="#748696" ></path><path d="M913.1 341.3H335.6l-29 37.1h624.6l29-37.1z" fill="#748696" ></path><path d="M884.1 378.4L670.6 651.8H93l-29 37.1h624.6l27-34.6 215.6-275.9z" fill="#748696" ></path></symbol><symbol id="icon-draw_fibonacci" viewBox="0 0 1024 1024"><path d="M62.8 922.4h897.5v37.1H62.8z" ></path><path d="M921.459 960.759v-897.5h37.1v897.5z" ></path><path d="M833.14 831.744v-639.9h37.1v639.9zM566.315 831.72v-639.9h37.1v639.9zM367.594 831.699v-639.9h37.1v639.9zM216.63 831.734v-639.9h37.1v639.9z" ></path><path d="M128.022 831.727v-639.9h37.1v639.9z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M673.792 500.736l-425.472 372.224c-18.944 16.896-20.992 46.592-4.096 65.536s46.08 20.992 65.536 4.096l465.408-407.04c1.536-1.024 2.56-2.56 4.096-4.096 17.408-18.944 15.36-48.64-4.096-65.536L309.76 58.88c-18.944-17.408-48.64-15.36-65.536 4.096-17.408 18.944-15.36 48.64 4.096 65.536l425.472 372.224z" fill="#748696" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M775.168 128.512c19.456-16.896 21.504-46.592 4.096-65.536-16.896-19.456-46.592-21.504-65.536-4.096L248.32 465.92c-19.456 16.896-21.504 46.592-4.096 65.536 1.536 1.536 2.56 3.072 4.096 4.096l465.408 407.04c19.456 16.896 48.64 14.848 65.536-4.096s14.848-48.64-4.096-65.536L349.696 500.736l425.472-372.224z" fill="#748696" ></path></symbol><symbol id="icon-xia" viewBox="0 0 1024 1024"><path d="M498.176 633.856c4.608 6.144 11.264 9.728 18.944 9.728s14.336-4.096 18.944-10.24L741.376 378.88c3.584-4.608 6.144-10.752 6.144-17.408 0-14.336-10.752-25.6-24.064-25.6H310.784c-13.312 0-24.064 11.776-24.064 25.6 0 6.144 2.048 11.264 5.632 15.872l205.824 256.512z" fill="#748696" ></path></symbol><symbol id="icon-shang" viewBox="0 0 1024 1024"><path d="M292.352 602.112c-3.584 4.608-5.632 9.728-5.632 15.872 0 13.824 10.752 25.6 24.064 25.6h412.672c13.312 0 24.064-11.264 24.064-25.6 0-6.656-2.56-12.8-6.144-17.408L536.064 346.112c-4.608-6.144-11.264-10.24-18.944-10.24s-14.336 3.584-18.944 9.728L292.352 602.112z" fill="#748696" ></path></symbol><symbol id="icon-jiacu" viewBox="0 0 1024 1024"><path d="M442.368 710.656l2.56 0.512c15.36 0.512 26.112 1.024 33.792 1.024 44.032 0 75.776-8.192 95.744-24.064 19.968-15.872 30.208-41.472 30.208-76.8 0-31.744-9.216-55.808-28.16-71.68-18.944-15.872-47.104-23.552-84.48-23.552-10.752 0-19.968 0-27.648 0.512s-14.848 0.512-22.016 1.024v193.024z m0-236.544c2.048 0 4.608 0.512 7.168 0.512h12.8c38.912 0 67.584-7.68 86.016-23.552 18.432-15.872 27.648-40.448 27.648-73.728 0-29.184-8.704-50.688-25.6-65.024-16.896-14.336-43.008-20.992-78.848-20.992-5.632 0-15.36 0.512-27.648 1.536h-2.048l0.512 181.248zM288.768 250.88h224.768c55.296 0 96.768 9.728 124.416 29.184 27.648 19.456 41.472 49.152 41.472 88.064 0 29.696-9.216 54.272-27.136 74.24-17.92 19.968-44.544 34.304-79.872 43.52 43.008 0.512 76.288 11.776 100.352 32.768 24.064 20.992 35.84 50.688 35.84 87.552 0 47.104-16.384 83.456-48.64 108.544-32.256 25.088-78.848 37.888-139.776 37.888H288.768v-35.84l44.032-4.096 12.288-11.776v-399.36l-12.288-10.24-44.032-3.584V250.88z" fill="#748696" ></path></symbol><symbol id="icon-shezhi" viewBox="0 0 1024 1024"><path d="M810.342 334.848c16.384 29.184 45.824 46.592 78.592 46.592 27.392 0 49.818 22.938 49.818 51.302v158.67c0 28.16-22.426 51.2-49.818 51.2-32.87 0-62.208 17.458-78.592 46.694a94.72 94.72 0 0 0 0 93.286 52.07 52.07 0 0 1-18.278 69.99L658.688 931.84a49.152 49.152 0 0 1-67.994-18.637 89.344 89.344 0 0 0-78.592-46.745c-32.768 0-62.208 17.408-78.592 46.643a49.51 49.51 0 0 1-43.264 25.6 48.589 48.589 0 0 1-24.73-6.861l-133.58-79.258a50.637 50.637 0 0 1-23.245-31.078 51.763 51.763 0 0 1 4.967-38.912 94.72 94.72 0 0 0 0-93.286 89.446 89.446 0 0 0-78.592-46.644c-27.392 0-49.818-23.04-49.818-51.25v-158.72c0-28.16 22.426-51.2 49.818-51.2 32.768 0 62.208-17.46 78.592-46.695a94.72 94.72 0 0 0 0-93.287 51.968 51.968 0 0 1 18.227-69.939l133.53-79.309a48.998 48.998 0 0 1 67.993 18.74 89.446 89.446 0 0 0 157.184 0 49.05 49.05 0 0 1 68.096-18.842l133.376 79.36c23.808 14.131 32 45.517 18.278 69.99a94.72 94.72 0 0 0 0 93.287zM512 750.899A239.258 239.258 0 0 0 750.95 512 239.411 239.411 0 0 0 512 273.05 239.36 239.36 0 0 0 273.05 512 239.36 239.36 0 0 0 512 750.95z" fill="#748696" ></path><path d="M512 642.406A130.611 130.611 0 0 1 381.594 512 130.611 130.611 0 0 1 512 381.594 130.611 130.611 0 0 1 642.406 512 130.56 130.56 0 0 1 512 642.406" fill="#748696" ></path></symbol><symbol id="icon-qingxieL" viewBox="0 0 1024 1024"><path d="M439.808 296.448l6.144-30.208H670.72l-6.144 30.208h-10.24c-24.064 0-40.448 2.048-49.152 6.144-8.704 4.096-15.36 11.264-20.992 22.528-5.632 10.752-11.776 23.552-22.528 64l-56.32 225.28c-10.24 38.4-15.872 64-17.408 75.776s1.024 20.992 7.68 26.624c6.144 5.632 20.48 8.704 43.008 8.704h14.336l-11.776 32.768H316.416l11.776-32.768h14.336c20.992 0 36.352-2.56 45.568-8.192 9.216-5.12 16.896-13.824 22.016-24.576 5.12-11.264 13.312-37.376 24.064-78.336l56.32-225.28c10.24-38.912 13.824-51.2 14.848-62.464 1.024-11.264-2.048-19.456-8.192-23.552-6.144-4.608-22.016-6.656-47.104-6.656h-10.24z" fill="#748696" ></path></symbol><symbol id="icon-info_pforecast" viewBox="0 0 1024 1024"><path d="M128.3 128h768.4v48H128.3z" fill="#125FD9" ></path><path d="M128.69 896.404v-768.4h48v768.4zM849.127 895.815v-768.4h48v768.4z" fill="#125FD9" ></path><path d="M128.7 854.4h768.4v48H128.7zM265.9 345.8l28.8-25.4c13.8 12.3 27.1 24.6 39.8 36.9l61.1-74.3H233.1v-40.3h215.5V283l-85.3 103.1c6.5 6.9 12.9 13.6 19 20.2l-23 20.2h104.9v38.6c-6.1 29.6-15.8 63.8-28.8 102.6-11.9-4.2-25.2-8.6-39.8-13.3 9.6-24.2 18.1-53.4 25.4-87.6h-57.6v242.6c0 43.8-21.5 65.7-64.5 65.7h-61.1c-1.9-13.8-4.6-29.4-8.1-46.7 19.2 2.3 38.6 3.5 58.2 3.5 21.5 0 32.3-12.3 32.3-36.9V466.8h-92.8v-40.3h113.5c-25.1-30-50-56.8-75-80.7z m342.3 77.8h42.6v85.8c0 44.9-5.8 83.5-17.3 115.8 60.3 40.3 115.2 79.7 164.8 118.1l-31.7 37.5c-46.9-39.9-97.2-79.1-151-117.5-3.8 5.8-7.7 11.3-11.5 16.7-31.1 39.6-79.9 74.7-146.3 105.4-12.3-15.8-23-28.4-32.3-38 68.8-28.4 117-60.9 144.6-97.4 25.4-33 38-80.9 38-143.5v-82.9z m-117.6-63.4H588l14.4-78.9H469.9V241h327.3v40.3H649.1l-16.7 78.9h138.3v283.5h-42.1V400H532.7v243.7h-42.1V360.2z" fill="#125FD9" ></path></symbol><symbol id="icon-info_trade_detail" viewBox="0 0 1024 1024"><path d="M128.3 128h768.4v48H128.3z" ></path><path d="M128.69 896.404v-768.4h48v768.4zM849.127 895.815v-768.4h48v768.4z" ></path><path d="M128.7 854.4h768.4v48H128.7zM389.8 697.8c47.2-23 90.6-48.1 130.2-75.2V386.1h-63.1c-6.3 87.8-18.7 157.3-37.2 208.6-29.2 83.4-82.2 151.1-159 203.4-8.8-13.1-21.1-26.7-36.9-40.9 73.4-46.9 122.7-107.4 148.1-181.5 16.9-46.1 28.5-109.3 34.9-189.6H237.7v-43.8h171.7c1.9-35.1 2.9-73.2 2.9-114.1h49.6c0 40.7-0.9 78.7-2.6 114.1h333.9v43.8H568.4v200.2c59.3-47.8 108.1-101.3 146.3-160.5l41.5 27.7c-49 73.4-111.6 138.5-187.8 195.3v34c0 33.8 14.6 50.7 43.8 50.7h69.7c33.8 0 53-13.8 57.6-41.5 3.5-20 7.1-49 10.9-87 16.1 6.5 32.6 12.7 49.6 18.4-6.1 40.3-11.5 70.5-16.1 90.5-10.8 43-41.3 64.5-91.6 64.5h-91c-54.2 0-81.2-27.8-81.2-83.5v-12.4c-31.5 20.6-64.9 39.9-100.3 57.9-7-14.2-17-28.4-30-42.6z m184.3-437.9l28.2-32.3c36.9 23 69.1 46.5 96.8 70.3l-32.8 36.9c-26.9-24.6-57.6-49.5-92.2-74.9z" ></path></symbol><symbol id="icon-info_block_trading" viewBox="0 0 1024 1024"><path d="M128.3 128h768.4v48H128.3z" ></path><path d="M128.69 896.404v-768.4h48v768.4zM849.127 895.815v-768.4h48v768.4z" ></path><path d="M128.7 854.4h768.4v48H128.7zM377.7 604.1l36.3 30c-50 53.4-100.8 100.3-152.7 140.6-10.4-14.6-20.6-26.5-30.5-35.7 53-38.4 101.9-83.4 146.9-134.9z m-140.6-70.8h555.4v41.5h-250v151c0 44.9-21.3 67.4-64 67.4h-76.6c-0.4-1.9-3.3-17.5-8.6-46.7 25.7 1.9 48.2 3.1 67.4 3.5 23 0.8 34.6-10.6 34.6-34V574.8H237.1v-41.5z m16.1-229.9h242.9c-7.3-18.1-16-36.7-26.2-55.9l43.8-16.7c11.5 22.1 22.9 46.3 34 72.6h228.2v108.3h-46.1v-66.8H299.3v66.8h-46.1V303.4z m70.9 115.2h381.4v41.5H324.1v-41.5z m276 216.1l30.5-31.7c54.2 41.9 106.8 85.1 157.9 129.6l-35.1 36.9c-53.1-50.7-104.1-95.6-153.3-134.8z" ></path></symbol><symbol id="icon-info_investor" viewBox="0 0 1024 1024"><path d="M128.3 128h768.4v48H128.3z" ></path><path d="M128.69 896.404v-768.4h48v768.4zM849.127 895.815v-768.4h48v768.4z" ></path><path d="M128.7 854.4h768.4v48H128.7zM227.4 606.3c61.5-33.4 113.5-78.8 156.2-136l40.9 15.6c-7.7 10.4-15.4 20.4-23.1 30h357.9c-3.5 72.6-7.1 128.7-10.9 168.3-5 61.8-36.1 93-93.4 93.4-31.9 0.4-65.1 0.4-99.7 0-2.3-16.5-5.2-32.8-8.6-49 33.4 3.1 65.7 4.6 96.8 4.6 36.1 0 56.1-18.1 59.9-54.2 4.2-34.6 7.1-75.5 8.6-122.7h-88.7c-23.4 101-91.6 178.6-204.6 232.8-10-12.7-20.7-25.7-32.3-39.2C494 705.6 558 641.1 578.4 556.2h-87.6c-28 81.8-102.2 146-222.4 192.5-10-12.7-20.7-25.5-32.3-38.6 113.3-42.3 182.3-93.5 206.9-153.9h-77.8c-32.7 33-69 62-108.9 87-8.1-11.5-17.7-23.8-28.9-36.9z m74.4-362.4h424.1v239.7H681v-23.1H301.8V243.9z m379.1 40.3H346.7v47.3h334.2v-47.3z m-334.2 136h334.2v-48.4H346.7v48.4z" ></path></symbol><symbol id="icon-info_research" viewBox="0 0 1024 1024"><path d="M128.3 128h768.4v48H128.3z" ></path><path d="M128.69 896.404v-768.4h48v768.4zM849.127 895.815v-768.4h48v768.4z" ></path><path d="M128.7 854.4h768.4v48H128.7zM410.9 578.3c0.8 17.3 2.1 34 4 50.1-39.9 29.2-74.5 56.7-103.7 82.4l-26.5-37.5c12.7-13.8 19-31.1 19-51.9V445.8H241v-40.3h104.9v224.1c20.3-15 42-32.1 65-51.3z m-99.6-344c25.7 25.4 54.5 55.5 86.4 90.5l-38 32.3c-30-38-57-69.7-81.2-95.1l32.8-27.7z m160.1 63.4v236.8c0 112.5-30.5 198-91.6 256.4-9.6-13.8-19.6-26.1-30-36.9 53-50.7 79.5-122.3 79.5-214.9V258.5h354.9v460.9c0 42.6-19.6 64-58.8 64-22.7 0-53-0.6-91-1.7-1.9-14.2-4.8-29-8.6-44.4 40.7 2.7 69.9 4 87.6 4 19.2 0 28.8-10.2 28.8-30.5V297.7H471.4z m17.9 158.4h96.8v-53h-80.7v-36.9h80.7v-54.7h41.5v54.7h79.5v36.9h-79.5v53h96.8V493H489.3v-36.9z m26.5 83.6h176.3v146.9h-136v26.5h-40.3V539.7z m136 36.8h-95.6v73.2h95.6v-73.2z" ></path></symbol><symbol id="icon-info_announcement" viewBox="0 0 1024 1024"><path d="M128.29999999 128l768.40000001 0 0 48L128.3 176z" ></path><path d="M128.69 896.404l0-768.4 48 0 1e-8 768.4zM849.127 895.815l0-768.4 48 0 0 768.4z" ></path><path d="M128.7 854.4l768.4 0 0 48L128.70000001 902.4zM224.3 492.8c85.7-69.9 149.6-152.3 191.9-247.2l45.5 19C409.8 372.6 343 461 261.1 529.7c-9.89999999-12.7-22.2-25-36.8-36.9z m375.1 71.5c55.3 71.8 102 137.1 140 195.9L695.6 788.99999999c-10.8-17.7-22.2-36-34.3-54.99999999-126.8 6.1-229.8 12.4-309.1 18.7-14.6 1.5-32.3 4.8-53 9.8l-25.4-49c17.29999999-6.9 33.2-17.50000001 47.8-31.7 45-51.8 93.8-128.5 146.4-229.9l49.6 22.5c-47.6 81.80000001-98.5 158.3-152.7 229.3 79.3-2.5 169.1-6 269.39999999-10.7-21.9-33.2-46-68.3-72.29999999-105.20000001l37.4-23.49999999z m-49.6-310l42.6-16.7c37.3 100.3 106.6 179.8 208 238.5-10.4 10.8-22.3 25.7-35.69999999 44.9-106-72.9-177.59999999-161.8-214.90000001-266.7z" ></path></symbol><symbol id="icon-info_quarter_announcement" viewBox="0 0 1024 1024"><path d="M128.3 128h768.4v48H128.3z" ></path><path d="M128.69 896.404v-768.4h48v768.4zM849.127 895.815v-768.4h48v768.4z" ></path><path d="M128.7 854.4h768.4v48H128.7zM226.1 529.6c29-8.1 57-16 84.1-23.9V381h-76.6v-39.8h76.6V228.9h44.4v112.4h68.6V381h-68.6v111.2c23.2-7.3 45.7-14.6 67.4-21.9 0 18.4 0.4 33.4 1.2 44.9-22.3 7.1-45.1 14.5-68.6 22.2v182.4c0 41.5-18.6 62.6-55.9 63.4-15.4 0.4-34.4 0.4-57 0-2.3-16.1-4.8-32.5-7.5-49 22.7 2.3 39.8 3.5 51.3 3.5 16.5 0 24.8-9.4 24.8-28.2V551.8c-25.5 8.3-51.7 16.8-78.4 25.6l-5.8-47.8z m219-275.4h318.6c-1.9 39.2-3.7 68.8-5.2 88.7-2.7 47.6-30.7 71.4-84.1 71.4-22.3 0-54.7-0.4-97.4-1.2-2.7-14.6-5.8-30-9.2-46.1 42.3 3.8 76.1 5.8 101.4 5.8 28.8 0 44.2-11.7 46.1-35.1 1.2-12.3 1.9-26.7 2.3-43.2H490v164.8h277.1v39.8c-18.6 68.8-49.8 126.8-93.6 174 35.1 28.6 77.5 51.5 127 68.6-13.4 16.9-24.6 31.1-33.4 42.6-49.2-23.6-91.3-50.5-126.5-80.7-35.9 29.8-77.3 58.2-124.2 85.3-6.9-11.5-15.4-24.6-25.4-39.2 45.3-24.6 84.4-50.3 117.3-77.2-39.6-44.4-67.4-102-83.5-172.9H490v293.3h-44.9V254.2z m275.4 245.5h-155c13.1 56.1 38.1 103.9 75.2 143.5 38.2-40.2 64.8-88 79.8-143.5z" ></path></symbol><symbol id="icon-info_num_11" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 382.13541668h-34.96875V159.57291668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM924.14583332 382.13541668h-34.96875V159.57291668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_10" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M779.39583332 241.88541668c0-33.65625 3.46875-60.75 10.40625-81.1875 6.9375-20.53125 17.25-36.28125 30.84375-47.4375 13.6875-11.15625 30.84375-16.6875 51.5625-16.6875 15.28125 0 28.6875 3.09375 40.21875 9.1875 11.53125 6.1875 21 15 28.5 26.625 7.5 11.625 13.40625 25.6875 17.625 42.28125 4.3125 16.59375 6.375 39 6.375 67.21875 0 33.375-3.46875 60.375-10.3125 80.8125-6.84375 20.53125-17.15625 36.375-30.75 47.53125-13.6875 11.15625-30.9375 16.78125-51.75 16.78125-27.46875 0-48.9375-9.84375-64.59375-29.53125-18.75-23.625-28.125-62.15625-28.125-115.59375z m35.90625 0c0 46.6875 5.4375 77.8125 16.40625 93.28125s24.46875 23.15625 40.5 23.15625 29.53125-7.78125 40.5-23.25c10.96875-15.5625 16.40625-46.59375 16.40625-93.1875 0-46.875-5.4375-78-16.40625-93.375-10.96875-15.375-24.5625-23.0625-40.875-23.0625-16.03125 0-28.875 6.75-38.4375 20.34375-12 17.34375-18.09375 49.3125-18.09375 96.09375zM713.86458332 387.38541668H678.89583332V164.82291668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_12" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 382.13541668h-34.96875V159.57291668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM961.17708332 348.57291668v33.5625H773.11458332c-0.28125-8.4375 1.125-16.5 4.03125-24.28125 4.78125-12.84375 12.46875-25.40625 22.96875-37.875 10.5-12.46875 25.78125-26.8125 45.75-43.125 30.9375-25.3125 51.84375-45.46875 62.71875-60.28125 10.875-14.8125 16.3125-28.78125 16.3125-42 0-13.875-4.96875-25.5-14.8125-35.0625s-22.78125-14.25-38.71875-14.25c-16.78125 0-30.28125 5.0625-40.40625 15.09375s-15.1875 24.09375-15.375 41.90625l-35.90625-3.65625c2.4375-26.8125 11.71875-47.15625 27.75-61.21875s37.59375-21.09375 64.59375-21.09375c27.28125 0 48.9375 7.59375 64.78125 22.6875s23.90625 33.9375 23.90625 56.25c0 11.34375-2.34375 22.59375-7.03125 33.5625-4.6875 10.96875-12.375 22.59375-23.15625 34.78125s-28.78125 28.875-53.90625 50.0625c-21 17.625-34.40625 29.53125-40.40625 35.8125-5.90625 6.28125-10.875 12.5625-14.71875 18.9375h139.6875z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_13" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 382.13541668h-34.96875V159.57291668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM779.11458332 307.04166668l34.96875-4.6875c4.03125 19.78125 10.875 34.03125 20.4375 42.84375 9.65625 8.71875 21.375 13.125 35.25 13.125 16.40625 0 30.28125-5.71875 41.625-17.0625 11.34375-11.34375 16.96875-25.5 16.96875-42.28125 0-16.03125-5.25-29.25-15.75-39.65625-10.5-10.40625-23.8125-15.65625-39.9375-15.65625-6.5625 0-14.8125 1.3125-24.65625 3.84375l3.84375-30.65625c2.34375 0.28125 4.21875 0.375 5.625 0.375 14.90625 0 28.3125-3.84375 40.21875-11.625s17.8125-19.6875 17.8125-35.90625c0-12.84375-4.3125-23.4375-13.03125-31.875-8.625-8.4375-19.875-12.65625-33.5625-12.65625-13.59375 0-24.9375 4.3125-33.9375 12.84375-9.09375 8.53125-14.90625 21.375-17.4375 38.4375l-34.96875-6.1875c4.3125-23.4375 13.96875-41.53125 29.15625-54.46875 15.09375-12.84375 33.9375-19.3125 56.4375-19.3125 15.5625 0 29.8125 3.375 42.9375 10.03125 13.03125 6.65625 23.0625 15.75 30 27.28125 6.9375 11.53125 10.40625 23.71875 10.40625 36.65625 0 12.28125-3.28125 23.53125-9.9375 33.5625s-16.40625 18.09375-29.34375 24.09375c16.78125 3.84375 29.90625 11.90625 39.1875 24.1875s13.96875 27.5625 13.96875 45.9375c0 24.84375-9.09375 45.9375-27.1875 63.1875-18.09375 17.25-41.0625 25.875-68.71875 25.875-24.9375 0-45.75-7.40625-62.25-22.3125-16.3125-14.90625-25.78125-34.21875-28.125-57.9375z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_14" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 381.85416668h-34.96875V159.29166668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM894.05208332 381.29166668v-68.15625H770.58333332v-32.0625L900.42708332 96.66666668h28.5v184.40625h38.4375v32.0625h-38.4375v68.15625h-34.875z m0-100.125V152.82291668l-89.0625 128.25h89.0625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_15" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 381.85416668h-34.96875V159.29166668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM780.42708332 302.35416668l36.65625-3.09375c2.71875 17.8125 9 31.3125 18.9375 40.3125 9.9375 9 21.84375 13.5 35.8125 13.5 16.78125 0 31.03125-6.375 42.65625-19.03125 11.625-12.65625 17.4375-29.53125 17.4375-50.4375 0-19.96875-5.625-35.625-16.78125-47.15625-11.15625-11.53125-25.875-17.25-43.96875-17.25-11.25 0-21.375 2.53125-30.46875 7.6875-9.09375 5.15625-16.21875 11.71875-21.375 19.875l-32.8125-4.3125 27.5625-146.15625h141.46875v33.375h-113.4375l-15.375 76.5c17.0625-11.90625 34.96875-17.8125 53.71875-17.8125 24.84375 0 45.84375 8.625 62.90625 25.78125 17.0625 17.25 25.59375 39.375 25.59375 66.375 0 25.78125-7.5 48-22.5 66.75-18.28125 23.0625-43.125 34.59375-74.71875 34.59375-25.875 0-46.96875-7.21875-63.375-21.75-16.3125-14.625-25.59375-33.84375-27.9375-57.75z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_1" viewBox="0 0 1024 1024"><path d="M773.61458332 248.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M809.98958332 395.04166668h-34.875V172.66666668c-8.4375 7.96875-19.40625 16.03125-33.09375 24-13.59375 7.96875-25.875 14.0625-36.75 18v-33.75c19.5-9.1875 36.5625-20.25 51.1875-33.375 14.625-13.03125 24.9375-25.6875 31.03125-37.96875h22.5V395.04166668z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_16" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 381.85416668h-34.96875V159.29166668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM958.45833332 167.07291668l-34.78125 2.71875c-3.09375-13.6875-7.5-23.71875-13.21875-29.90625-9.46875-9.9375-21.09375-14.90625-34.96875-14.90625-11.15625 0-20.90625 3.09375-29.34375 9.28125-10.96875 8.0625-19.6875 19.6875-25.96875 35.15625-6.375 15.375-9.65625 37.3125-9.9375 65.8125 8.4375-12.84375 18.65625-22.3125 30.84375-28.5 12.1875-6.1875 24.9375-9.28125 38.25-9.28125 23.25 0 43.125 8.53125 59.53125 25.6875 16.40625 17.15625 24.5625 39.28125 24.5625 66.46875 0 17.8125-3.84375 34.40625-11.53125 49.78125-7.6875 15.375-18.28125 27.09375-31.6875 35.25-13.5 8.15625-28.6875 12.1875-45.84375 12.1875-29.15625 0-52.875-10.6875-71.25-32.15625-18.375-21.375-27.5625-56.71875-27.5625-105.84375 0-55.03125 10.125-94.96875 30.46875-119.90625 17.71875-21.75 41.625-32.625 71.625-32.625 22.40625 0 40.6875 6.28125 55.03125 18.84375 14.34375 12.46875 22.96875 29.8125 25.78125 51.9375zM815.77083332 289.69791668c0 12 2.53125 23.53125 7.6875 34.59375 5.15625 10.96875 12.28125 19.40625 21.46875 25.125 9.1875 5.71875 18.84375 8.625 28.875 8.625 14.71875 0 27.46875-5.90625 38.0625-17.8125s15.9375-28.03125 15.9375-48.5625c0-19.6875-5.25-35.15625-15.75-46.5-10.5-11.34375-23.71875-16.96875-39.5625-16.96875-15.75 0-29.15625 5.625-40.21875 16.96875-10.96875 11.34375-16.5 26.15625-16.5 44.53125z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_3" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M682.83333332 307.88541668l34.96875-4.6875c4.03125 19.78125 10.875 34.03125 20.4375 42.84375 9.65625 8.71875 21.375 13.125 35.25 13.125 16.40625 0 30.28125-5.71875 41.625-17.0625 11.34375-11.34375 16.96875-25.5 16.96875-42.28125 0-16.03125-5.25-29.25-15.75-39.65625-10.5-10.40625-23.8125-15.65625-39.9375-15.65625-6.5625 0-14.8125 1.3125-24.65625 3.84375l3.84375-30.65625c2.34375 0.28125 4.21875 0.375 5.625 0.375 14.90625 0 28.3125-3.84375 40.21875-11.625s17.8125-19.6875 17.8125-35.90625c0-12.84375-4.3125-23.4375-13.03125-31.875-8.625-8.4375-19.875-12.65625-33.5625-12.65625-13.59375 0-24.9375 4.3125-33.9375 12.84375-9.09375 8.53125-14.90625 21.375-17.4375 38.4375l-34.96875-6.1875c4.3125-23.4375 13.96875-41.53125 29.15625-54.46875 15.09375-12.84375 33.9375-19.3125 56.4375-19.3125 15.5625 0 29.8125 3.375 42.9375 10.03125 13.03125 6.65625 23.0625 15.75 30 27.28125 6.9375 11.53125 10.40625 23.71875 10.40625 36.65625 0 12.28125-3.28125 23.53125-9.9375 33.5625s-16.40625 18.09375-29.34375 24.09375c16.78125 3.84375 29.90625 11.90625 39.1875 24.1875s13.96875 27.5625 13.96875 45.9375c0 24.84375-9.09375 45.9375-27.1875 63.1875-18.09375 17.25-41.0625 25.875-68.71875 25.875-24.9375 0-45.75-7.40625-62.25-22.3125-16.40625-15-25.78125-34.21875-28.125-57.9375z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_17" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 385.60416668h-34.96875V163.04166668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM773.77083332 142.88541668v-33.5625h184.21875v27.1875c-18.09375 19.3125-36.09375 44.90625-53.90625 76.875s-31.5 64.78125-41.25 98.625c-7.03125 23.8125-11.4375 49.875-13.40625 78.1875h-35.90625c0.375-22.40625 4.78125-49.40625 13.21875-81.09375s20.4375-62.25 36.1875-91.6875c15.75-29.4375 32.4375-54.28125 50.15625-74.4375H773.77083332z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_4" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M802.92708332 384.57291668v-68.15625H679.45833332v-32.0625l129.84375-184.40625h28.5v184.40625h38.4375v32.0625h-38.4375v68.15625h-34.875z m0-100.125V156.10416668l-89.0625 128.25h89.0625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_2" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M871.08333332 351.76041668V385.41666668H683.02083332c-0.28125-8.4375 1.125-16.5 4.03125-24.28125 4.78125-12.84375 12.46875-25.40625 22.96875-37.875 10.5-12.46875 25.78125-26.8125 45.75-43.125 30.9375-25.3125 51.84375-45.46875 62.71875-60.28125 10.875-14.8125 16.3125-28.78125 16.3125-42 0-13.875-4.96875-25.5-14.8125-35.0625S797.20833332 128.54166668 781.27083332 128.54166668c-16.78125 0-30.28125 5.0625-40.40625 15.09375s-15.1875 24.09375-15.375 41.90625l-35.90625-3.65625c2.4375-26.8125 11.71875-47.15625 27.75-61.21875s37.59375-21.09375 64.59375-21.09375c27.28125 0 48.9375 7.59375 64.78125 22.6875s23.90625 33.9375 23.90625 56.25c0 11.34375-2.34375 22.59375-7.03125 33.5625-4.6875 10.96875-12.375 22.59375-23.15625 34.78125s-28.78125 28.875-53.90625 50.0625c-21 17.625-34.40625 29.53125-40.40625 35.8125-5.90625 6.28125-10.875 12.5625-14.71875 18.9375h139.6875z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_6" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M864.89583332 168.76041668l-34.78125 2.71875c-3.09375-13.6875-7.5-23.71875-13.21875-29.90625-9.375-9.9375-21-14.90625-34.875-14.90625-11.15625 0-20.90625 3.09375-29.34375 9.28125-10.96875 8.0625-19.6875 19.6875-25.96875 35.15625-6.375 15.375-9.65625 37.3125-9.9375 65.8125 8.4375-12.84375 18.65625-22.3125 30.84375-28.5 12.1875-6.1875 24.9375-9.28125 38.25-9.28125 23.25 0 43.125 8.53125 59.53125 25.6875 16.40625 17.15625 24.5625 39.28125 24.5625 66.46875 0 17.8125-3.84375 34.40625-11.53125 49.78125-7.6875 15.375-18.28125 27.09375-31.6875 35.25-13.5 8.15625-28.6875 12.1875-45.84375 12.1875-29.15625 0-52.875-10.6875-71.25-32.15625-18.375-21.375-27.5625-56.71875-27.5625-105.84375 0-55.03125 10.125-94.96875 30.46875-119.90625 17.71875-21.75 41.625-32.625 71.625-32.625 22.40625 0 40.6875 6.28125 55.03125 18.84375 14.25 12.46875 22.875 29.8125 25.6875 51.9375zM722.20833332 291.38541668c0 12 2.53125 23.53125 7.6875 34.59375 5.15625 10.96875 12.28125 19.40625 21.46875 25.125 9.1875 5.71875 18.84375 8.625 28.875 8.625 14.71875 0 27.46875-5.90625 38.0625-17.8125s15.9375-28.03125 15.9375-48.5625c0-19.6875-5.25-35.15625-15.75-46.5-10.5-11.34375-23.71875-16.96875-39.5625-16.96875-15.75 0-29.15625 5.625-40.21875 16.96875-10.96875 11.34375-16.5 26.15625-16.5 44.53125z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_18" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 385.60416668h-34.96875V163.04166668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM824.67708332 227.44791668c-14.53125-5.34375-25.21875-12.84375-32.25-22.6875s-10.5-21.5625-10.5-35.34375c0-20.71875 7.40625-38.0625 22.3125-52.21875 14.90625-14.0625 34.6875-21.1875 59.4375-21.1875 24.84375 0 44.8125 7.21875 60 21.65625 15.09375 14.4375 22.6875 31.96875 22.6875 52.6875 0 13.21875-3.46875 24.65625-10.40625 34.40625-6.9375 9.75-17.4375 17.34375-31.5 22.59375 17.4375 5.71875 30.75 14.90625 39.84375 27.5625 9.09375 12.65625 13.6875 27.84375 13.6875 45.375 0 24.375-8.625 44.8125-25.78125 61.3125-17.25 16.59375-39.84375 24.84375-67.96875 24.84375s-50.71875-8.34375-67.96875-24.9375c-17.25-16.59375-25.78125-37.40625-25.78125-62.25 0-18.46875 4.6875-34.03125 14.0625-46.5 9.375-12.28125 22.78125-20.8125 40.125-25.3125z m-18.28125 72.1875c0 9.9375 2.34375 19.59375 7.125 28.875 4.6875 9.28125 11.71875 16.5 21.09375 21.65625 9.28125 5.15625 19.3125 7.6875 30.09375 7.6875 16.6875 0 30.46875-5.34375 41.34375-16.125 10.875-10.78125 16.3125-24.375 16.3125-40.96875 0-16.78125-5.625-30.75-16.78125-41.71875-11.15625-10.96875-25.21875-16.5-42-16.5-16.40625 0-30.09375 5.4375-40.875 16.3125-10.875 10.875-16.3125 24.46875-16.3125 40.78125z m11.25-131.34375c0 13.5 4.3125 24.46875 13.03125 33 8.625 8.53125 19.96875 12.84375 33.75 12.84375 13.5 0 24.46875-4.21875 33.09375-12.75 8.625-8.4375 12.9375-18.84375 12.9375-31.125 0-12.84375-4.40625-23.625-13.3125-32.34375s-19.875-13.125-33.09375-13.125c-13.3125 0-24.375 4.3125-33.1875 12.84375-8.8125 8.4375-13.21875 18.75-13.21875 30.65625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_20" viewBox="0 0 1024 1024"><path d="M777.61458332 248.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M774.98958332 350.88541668v32.8125H590.95833332c-0.28125-8.25 1.03125-16.125 4.03125-23.71875 4.6875-12.5625 12.1875-24.84375 22.5-37.03125s25.21875-26.25 44.71875-42.1875c30.28125-24.84375 50.71875-44.4375 61.3125-58.96875 10.59375-14.53125 15.9375-28.21875 15.9375-41.15625 0-13.5-4.875-24.9375-14.53125-34.3125-9.65625-9.28125-22.3125-13.96875-37.875-13.96875-16.5 0-29.625 4.96875-39.46875 14.8125s-14.90625 23.53125-15 41.0625l-35.15625-3.5625c2.4375-26.25 11.4375-46.21875 27.1875-59.90625 15.65625-13.6875 36.75-20.625 63.1875-20.625 26.71875 0 47.8125 7.40625 63.46875 22.21875 15.5625 14.8125 23.34375 33.1875 23.34375 55.03125 0 11.15625-2.25 22.125-6.84375 32.8125-4.59375 10.78125-12.09375 22.125-22.6875 34.03125-10.59375 11.90625-28.125 28.21875-52.6875 49.03125-20.53125 17.25-33.65625 28.875-39.46875 35.0625-5.8125 6.1875-10.59375 12.28125-14.4375 18.46875h136.5zM806.95833332 244.10416668c0-33.65625 3.46875-60.75 10.40625-81.1875 6.9375-20.53125 17.25-36.28125 30.84375-47.4375 13.6875-11.15625 30.84375-16.6875 51.5625-16.6875 15.28125 0 28.6875 3.09375 40.21875 9.1875 11.53125 6.1875 21 15 28.5 26.625 7.5 11.625 13.40625 25.6875 17.625 42.28125 4.3125 16.59375 6.375 39 6.375 67.21875 0 33.375-3.46875 60.375-10.3125 80.8125-6.84375 20.53125-17.15625 36.375-30.75 47.53125-13.6875 11.15625-30.9375 16.78125-51.75 16.78125-27.46875 0-48.9375-9.84375-64.59375-29.53125-18.75-23.625-28.125-62.15625-28.125-115.59375z m35.90625 0c0 46.6875 5.4375 77.8125 16.40625 93.28125s24.46875 23.15625 40.5 23.15625 29.53125-7.78125 40.5-23.25c10.96875-15.5625 16.40625-46.59375 16.40625-93.1875 0-46.875-5.4375-78-16.40625-93.375-10.96875-15.375-24.5625-23.0625-40.875-23.0625-16.03125 0-28.875 6.75-38.4375 20.34375-12.09375 17.34375-18.09375 49.3125-18.09375 96.09375z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_19" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M689.95833332 385.60416668h-34.96875V163.04166668c-8.4375 8.0625-19.40625 16.03125-33.09375 24.09375-13.6875 8.0625-25.875 14.0625-36.75 18.09375v-33.75c19.5-9.1875 36.65625-20.34375 51.28125-33.375 14.625-13.03125 24.9375-25.78125 31.03125-38.0625h22.5v285.5625zM780.05208332 315.10416668l33.5625-3.09375c2.8125 15.75 8.25 27.28125 16.3125 34.3125 8.0625 7.125 18.28125 10.6875 30.84375 10.6875 10.78125 0 20.15625-2.4375 28.21875-7.40625 8.0625-4.875 14.71875-11.4375 19.875-19.6875s9.46875-19.3125 13.03125-33.28125 5.25-28.21875 5.25-42.65625c0-1.59375-0.09375-3.84375-0.1875-7.03125-7.03125 11.15625-16.5 20.15625-28.59375 27.09375-12.09375 6.9375-25.21875 10.40625-39.28125 10.40625-23.53125 0-43.5-8.53125-59.8125-25.59375s-24.46875-39.5625-24.46875-67.5c0-28.875 8.53125-52.125 25.5-69.65625 16.96875-17.625 38.34375-26.4375 63.9375-26.4375 18.46875 0 35.4375 4.96875 50.71875 14.90625 15.375 9.9375 27 24.1875 34.96875 42.5625s11.90625 45.09375 11.90625 80.0625c0 36.375-3.9375 65.34375-11.8125 86.8125-7.875 21.5625-19.59375 37.96875-35.25 49.21875-15.5625 11.25-33.84375 16.875-54.84375 16.875-22.21875 0-40.40625-6.1875-54.5625-18.5625-13.96875-12.28125-22.5-29.71875-25.3125-52.03125z m143.0625-125.625c0-20.0625-5.34375-36-16.03125-47.71875-10.6875-11.8125-23.53125-17.625-38.53125-17.625-15.5625 0-29.0625 6.375-40.59375 19.03125-11.53125 12.65625-17.25 29.15625-17.25 49.3125 0 18.09375 5.4375 32.8125 16.40625 44.15625 10.96875 11.34375 24.46875 16.96875 40.5 16.96875 16.21875 0 29.4375-5.625 39.84375-16.96875 10.40625-11.4375 15.65625-27.09375 15.65625-47.15625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_5" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M684.23958332 307.69791668l36.65625-3.09375c2.71875 17.8125 9 31.3125 18.9375 40.3125 9.9375 9 21.84375 13.5 35.8125 13.5 16.78125 0 31.03125-6.375 42.65625-19.03125 11.625-12.65625 17.4375-29.53125 17.4375-50.4375 0-19.96875-5.625-35.625-16.78125-47.15625-11.15625-11.53125-25.875-17.25-43.96875-17.25-11.25 0-21.375 2.53125-30.46875 7.6875-9.09375 5.15625-16.21875 11.71875-21.375 19.875l-32.8125-4.3125 27.5625-146.15625h141.46875v33.375h-113.4375l-15.375 76.5c17.0625-11.90625 34.96875-17.8125 53.71875-17.8125 24.84375 0 45.84375 8.625 62.90625 25.78125 17.0625 17.25 25.59375 39.375 25.59375 66.375 0 25.78125-7.5 48-22.5 66.75-18.28125 23.0625-43.125 34.59375-74.71875 34.59375-25.875 0-46.96875-7.21875-63.375-21.75-16.3125-14.625-25.59375-33.84375-27.9375-57.75z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_9" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M687.33333332 316.41666668l33.5625-3.09375c2.8125 15.75 8.25 27.28125 16.3125 34.3125 8.0625 7.125 18.28125 10.6875 30.84375 10.6875 10.78125 0 20.15625-2.4375 28.21875-7.40625 8.0625-4.875 14.71875-11.4375 19.875-19.6875s9.46875-19.3125 13.03125-33.28125 5.25-28.21875 5.25-42.65625c0-1.59375-0.09375-3.84375-0.1875-7.03125-7.03125 11.15625-16.5 20.15625-28.59375 27.09375-12.09375 6.9375-25.21875 10.40625-39.28125 10.40625-23.53125 0-43.5-8.53125-59.8125-25.59375s-24.46875-39.5625-24.46875-67.5c0-28.875 8.53125-52.125 25.5-69.65625 16.96875-17.625 38.34375-26.4375 63.9375-26.4375 18.46875 0 35.4375 4.96875 50.71875 14.90625 15.375 9.9375 27 24.1875 34.96875 42.5625s11.90625 45.09375 11.90625 80.0625c0 36.375-3.9375 65.34375-11.8125 86.8125-7.875 21.5625-19.59375 37.96875-35.25 49.21875-15.5625 11.25-33.84375 16.875-54.84375 16.875-22.21875 0-40.40625-6.1875-54.5625-18.5625-13.96875-12.28125-22.40625-29.71875-25.3125-52.03125z m143.0625-125.625c0-20.0625-5.34375-36-16.03125-47.71875-10.6875-11.8125-23.53125-17.625-38.53125-17.625-15.5625 0-29.0625 6.375-40.59375 19.03125-11.53125 12.65625-17.25 29.15625-17.25 49.3125 0 18.09375 5.4375 32.8125 16.40625 44.15625 10.96875 11.34375 24.46875 16.96875 40.5 16.96875 16.21875 0 29.4375-5.625 39.84375-16.96875 10.40625-11.4375 15.65625-27.09375 15.65625-47.15625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_7" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M683.86458332 137.26041668v-33.5625h184.21875v27.1875c-18.09375 19.3125-36.09375 44.90625-53.90625 76.875s-31.5 64.78125-41.25 98.625c-7.03125 23.8125-11.4375 49.875-13.40625 78.1875h-35.90625c0.375-22.40625 4.78125-49.40625 13.21875-81.09375s20.4375-62.25 36.1875-91.6875c15.75-29.4375 32.4375-54.28125 50.15625-74.4375H683.86458332z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_8" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M735.42708332 227.91666668c-14.53125-5.34375-25.21875-12.84375-32.25-22.6875s-10.5-21.5625-10.5-35.34375c0-20.71875 7.40625-38.0625 22.3125-52.21875 14.90625-14.0625 34.6875-21.1875 59.4375-21.1875 24.84375 0 44.8125 7.21875 60 21.65625 15.09375 14.4375 22.6875 31.96875 22.6875 52.6875 0 13.21875-3.46875 24.65625-10.40625 34.40625-6.9375 9.75-17.4375 17.34375-31.5 22.59375 17.4375 5.71875 30.75 14.90625 39.84375 27.5625 9.09375 12.65625 13.6875 27.84375 13.6875 45.375 0 24.375-8.625 44.8125-25.78125 61.3125-17.25 16.59375-39.84375 24.84375-67.96875 24.84375s-50.71875-8.34375-67.96875-24.9375c-17.25-16.59375-25.78125-37.40625-25.78125-62.25 0-18.46875 4.6875-34.03125 14.0625-46.5 9.46875-12.28125 22.78125-20.8125 40.125-25.3125z m-18.1875 72.1875c0 9.9375 2.34375 19.59375 7.125 28.875 4.6875 9.28125 11.71875 16.5 21.09375 21.65625 9.28125 5.15625 19.3125 7.6875 30.09375 7.6875 16.6875 0 30.46875-5.34375 41.34375-16.125 10.875-10.78125 16.3125-24.375 16.3125-40.96875 0-16.78125-5.625-30.75-16.78125-41.71875-11.15625-10.96875-25.21875-16.5-42-16.5-16.40625 0-30.09375 5.4375-40.875 16.3125-10.96875 10.875-16.3125 24.46875-16.3125 40.78125z m11.25-131.4375c0 13.5 4.3125 24.46875 13.03125 33 8.625 8.53125 19.96875 12.84375 33.75 12.84375 13.5 0 24.46875-4.21875 33.09375-12.75 8.625-8.4375 12.9375-18.84375 12.9375-31.125 0-12.84375-4.40625-23.625-13.3125-32.34375s-19.875-13.125-33.09375-13.125c-13.3125 0-24.375 4.3125-33.1875 12.84375-8.8125 8.53125-13.21875 18.75-13.21875 30.65625z" fill="#FFFFFF" ></path></symbol><symbol id="icon-info_num_more" viewBox="0 0 1024 1024"><path d="M777.61458332 244.60416668m-238.78125 0a238.78125 238.78125 0 1 0 477.5625 0 238.78125 238.78125 0 1 0-477.5625 0Z" fill="#FF0000" ></path><path d="M699.42708332 318.19791668v21.75H577.45833332c-0.1875-5.4375 0.65625-10.6875 2.625-15.75 3.09375-8.34375 8.0625-16.5 14.90625-24.5625 6.84375-8.0625 16.6875-17.4375 29.625-27.9375 20.0625-16.5 33.65625-29.4375 40.59375-39.09375 7.03125-9.65625 10.59375-18.65625 10.59375-27.28125 0-8.90625-3.1875-16.5-9.65625-22.78125-6.375-6.1875-14.8125-9.28125-25.125-9.28125-10.96875 0-19.59375 3.28125-26.15625 9.84375s-9.84375 15.5625-9.9375 27.1875l-23.34375-2.34375c1.59375-17.4375 7.59375-30.65625 18-39.75 10.40625-9.09375 24.375-13.6875 41.90625-13.6875 17.71875 0 31.6875 4.875 42.09375 14.71875 10.3125 9.84375 15.46875 22.03125 15.46875 36.46875 0 7.40625-1.5 14.625-4.5 21.75-3 7.125-7.96875 14.625-15 22.59375-7.03125 7.875-18.65625 18.65625-34.875 32.53125-13.59375 11.4375-22.3125 19.125-26.15625 23.25-3.84375 4.125-7.03125 8.15625-9.5625 12.28125l90.46875 0.09375zM719.77083332 247.32291668c0-22.3125 2.34375-40.21875 6.9375-53.8125s11.4375-24 20.4375-31.40625c9.09375-7.40625 20.4375-11.0625 34.21875-11.0625 10.125 0 19.03125 2.0625 26.625 6.09375 7.6875 4.125 13.875 9.9375 18.84375 17.625 4.96875 7.6875 8.90625 17.0625 11.71875 28.03125s4.21875 25.875 4.21875 44.53125c0 22.125-2.34375 40.03125-6.84375 53.53125-4.5 13.59375-11.34375 24.09375-20.34375 31.5-9.09375 7.40625-20.53125 11.15625-34.3125 11.15625-18.1875 0-32.4375-6.5625-42.84375-19.59375-12.46875-15.65625-18.65625-41.15625-18.65625-76.59375z m23.8125 0c0 30.9375 3.5625 51.5625 10.875 61.78125s16.21875 15.375 26.8125 15.375 19.59375-5.15625 26.8125-15.375c7.3125-10.3125 10.875-30.84375 10.875-61.78125 0-31.03125-3.5625-51.65625-10.875-61.875s-16.3125-15.28125-27.09375-15.28125c-10.59375 0-19.125 4.5-25.5 13.5-7.96875 11.4375-11.90625 32.625-11.90625 63.65625zM919.45833332 313.88541668v-55.21875h-54.84375v-23.0625h54.84375v-54.84375h23.34375v54.84375H997.64583332v23.0625h-54.84375v55.21875h-23.34375z" fill="#FFFFFF" ></path></symbol><symbol id="icon-bianji" viewBox="0 0 1024 1024"><path d="M740.228 199.99l111.895 111.927-54.861 54.83-111.896-111.895z m-88.592 88.592L223.418 716.8 204.8 794.376l-18.618 74.472 74.473-18.618 74.472-21.72 428.218-428.22z" fill="#217CD9" ></path></symbol><symbol id="icon-info_investor_hscreen" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM417.7 227.4c33.4 61.5 78.8 113.5 136 156.2l-15.6 40.90000001c-10.4-7.7-20.40000001-15.4-30-23.10000001l0 357.9c-72.6-3.5-128.7-7.10000001-168.3-10.9-61.8-5-93-36.1-93.4-93.4-0.4-31.9-0.4-65.1 0-99.7 16.5-2.3 32.8-5.2 49-8.6-3.1 33.4-4.6 65.7-4.6 96.8 0 36.1 18.09999999 56.1 54.2 59.9 34.6 4.2 75.5 7.10000001 122.7 8.6l0-88.7c-101-23.4-178.6-91.6-232.8-204.6 12.7-10 25.7-20.7 39.2-32.3C318.4 494 382.89999999 558 467.8 578.4l0-87.6c-81.8-28-146-102.2-192.5-222.4 12.7-10 25.5-20.7 38.6-32.3 42.3 113.3 93.5 182.3 153.9 206.9l0-77.8c-32.99999999-32.7-62-69-87-108.9 11.5-8.1 23.8-17.7 36.9-28.9z m362.4 74.4l0 424.1-239.7 0L540.40000001 681l23.09999999 0L563.50000001 301.8 780.1 301.8z m-40.3 379.1L739.79999999 346.7l-47.3 0 1e-8 334.2 47.3 0z m-136-334.2l0 334.2 48.4 0L652.2 346.7l-48.4 0z" ></path></symbol><symbol id="icon-info_announcement-copy" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM531.2 224.3c69.9 85.7 152.3 149.6 247.2 191.9l-19 45.5C651.4 409.8 563 343 494.3 261.1c12.7-9.89999999 25-22.2 36.9-36.8z m-71.5 375.1c-71.8 55.3-137.1 102-195.9 140L235.00000001 695.6c17.7-10.8 36-22.2 54.99999999-34.3-6.1-126.8-12.4-229.8-18.7-309.1-1.5-14.6-4.8-32.3-9.8-53l49-25.4c6.9 17.29999999 17.50000001 33.2 31.7 47.8 51.8 45 128.5 93.8 229.9 146.4l-22.5 49.6c-81.80000001-47.6-158.3-98.5-229.3-152.7 2.5 79.3 6 169.1 10.7 269.39999999 33.2-21.9 68.3-46 105.20000001-72.29999999l23.49999999 37.4z m310-49.6l16.7 42.6c-100.3 37.3-179.8 106.6-238.5 208-10.8-10.4-25.7-22.3-44.9-35.69999999 72.9-106 161.8-177.59999999 266.7-214.90000001z" ></path></symbol><symbol id="icon-info_quarter_announcement-copy" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM494.4 226.1c8.1 29 16 57 23.9 84.1L643 310.2l0-76.6 39.8 0 0 76.6L795.1 310.2l0 44.40000001-112.4-1e-8 0 68.6L643 423.20000001l0-68.6-111.2-1e-8c7.3 23.2 14.60000001 45.7 21.9 67.4-18.39999999 0-33.4 0.4-44.9 1.2-7.10000001-22.3-14.5-45.1-22.2-68.6l-182.4 0c-41.5 0-62.6-18.6-63.4-55.9-0.4-15.4-0.4-34.4 0-57 16.1-2.3 32.5-4.8 49-7.49999999-2.3 22.7-3.5 39.80000001-3.5 51.3 0 16.5 9.4 24.8 28.2 24.79999999L472.19999999 310.3c-8.29999999-25.5-16.8-51.7-25.59999999-78.4l47.8-5.8z m275.4 219l0 318.59999999c-39.2-1.9-68.80000001-3.7-88.7-5.19999999-47.6-2.69999999-71.4-30.7-71.4-84.1 0-22.3 0.4-54.7 1.2-97.4 14.6-2.69999999 30-5.80000001 46.1-9.2-3.8 42.3-5.8 76.1-5.8 101.4 0 28.8 11.7 44.2 35.10000001 46.1 12.3 1.2 26.7 1.9 43.19999999 2.3L729.5 490l-164.8 0 0 277.1-39.8 0c-68.80000001-18.6-126.8-49.8-174-93.6-28.6 35.1-51.5 77.5-68.6 127-16.9-13.4-31.1-24.6-42.6-33.4 23.6-49.2 50.5-91.3 80.7-126.49999999-29.79999999-35.9-58.2-77.3-85.3-124.20000001 11.49999999-6.9 24.6-15.4 39.2-25.4 24.6 45.3 50.3 84.4 77.2 117.3 44.4-39.6 102-67.4 172.9-83.5L524.4 490l-293.3 0 0-44.90000001L769.8 445.1z m-245.5 275.4l0-155c-56.1 13.1-103.9 38.1-143.5 75.2 40.2 38.20000001 88 64.80000001 143.5 79.8z" ></path></symbol><symbol id="icon-info_pforecast_hscreen" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" fill="#125FD9" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" fill="#125FD9" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM678.2 265.9l25.4 28.8c-12.3 13.8-24.6 27.1-36.9 39.8l74.3 61.1L741 233.1l40.3 0 0 215.5L741 448.6l-103.1-85.3c-6.9 6.5-13.6 12.9-20.2 19l-20.2-23 0 104.9-38.6 0c-29.6-6.1-63.8-15.8-102.6-28.8 4.2-11.90000001 8.6-25.2 13.3-39.8 24.2 9.59999999 53.4 18.09999999 87.6 25.4l0-57.59999999-242.6-1e-8c-43.80000001 0-65.7-21.5-65.7-64.5l0-61.1c13.8-1.89999999 29.4-4.6 46.7-8.1-2.3 19.2-3.5 38.6-3.5 58.2 0 21.50000001 12.3 32.3 36.9 32.3L557.2 320.2l0-92.80000001 40.30000001 1e-8-1e-8 113.5c30-25.1 56.8-50 80.7-75z m-77.8 342.3l0 42.6-85.8 0c-44.90000001 0-83.5-5.8-115.8-17.30000001-40.3 60.3-79.7 115.2-118.1 164.80000001l-37.5-31.7c39.9-46.9 79.1-97.2 117.5-151-5.8-3.8-11.3-7.7-16.7-11.5-39.6-31.1-74.7-79.9-105.40000001-146.3 15.8-12.3 28.4-23 38.00000001-32.3 28.4 68.8 60.9 116.99999999 97.4 144.6 33 25.4 80.9 38 143.5 38l82.9 0z m63.4-117.6L663.79999999 588l78.90000001 14.4L742.7 469.9 783 469.9l0 327.3-40.3-1e-8L742.7 649.1l-78.9-16.7 0 138.3-283.5 0 0-42.1L624 728.6 624 532.7l-243.7 0 0-42.1L663.8 490.6z" fill="#125FD9" ></path></symbol><symbol id="icon-info_research_hscreen" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM445.7 410.9c-17.3 0.8-34 2.1-50.1 4-29.2-39.9-56.7-74.5-82.4-103.7l37.5-26.5c13.8 12.7 31.1 19 51.9 19L578.2 303.69999999 578.2 241l40.3 0 0 104.9-224.1 0c15 20.3 32.10000001 42 51.3 65z m344-99.6c-25.4 25.7-55.5 54.5-90.5 86.4l-32.3-38c38-30 69.7-57 95.1-81.2l27.7 32.8z m-63.4 160.1l-236.8 0c-112.5 0-198-30.5-256.4-91.6 13.8-9.6 26.1-19.6 36.9-30 50.7 53 122.29999999 79.5 214.9 79.50000001L765.5 429.30000001l0 354.89999999-460.9 0c-42.6 0-64-19.60000001-64-58.8 0-22.7 0.6-53 1.7-91 14.2-1.9 28.99999999-4.8 44.4-8.6-2.69999999 40.7-4 69.9-4.00000001 87.6 0 19.2 10.2 28.8 30.50000001 28.8L726.3 742.2 726.3 471.4z m-158.4 17.9l0 96.8 53.00000001 0 0-80.7 36.89999999 0 0 80.7 54.7 0 0 41.5-54.7 0 0 79.5-36.9 0 1e-8-79.5-53.00000001 0 0 96.8L531 724.4 531 489.3l36.9 0z m-83.6 26.5l0 176.3-146.9 0 0-135.99999999-26.5-1e-8 0-40.3L484.3 515.8z m-36.8 136l0-95.6-73.2 0 0 95.6 73.2 0z" ></path></symbol><symbol id="icon-info_block_trading_hscreen" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM419.9 377.7l-30 36.3c-53.4-49.99999999-100.3-100.8-140.6-152.7 14.6-10.4 26.5-20.6 35.7-30.5 38.4 53 83.4 101.9 134.9 146.9z m70.8-140.6l0 555.4-41.5 0 0-250-151 0c-44.90000001 0-67.4-21.3-67.4-64l0-76.6c1.9-0.4 17.5-3.3 46.7-8.6-1.9 25.7-3.1 48.2-3.5 67.4-0.8 23 10.6 34.6 34 34.6L449.2 495.3 449.2 237.1l41.5 0z m229.9 16.09999999l0 242.9c18.1-7.3 36.7-16 55.9-26.19999999l16.7 43.8c-22.1 11.5-46.3 22.9-72.6 34l0 228.2-108.3 0 0-46.1 66.8 0L679.1 299.3l-66.8 0 0-46.1L720.6 253.19999999z m-115.2 70.90000001l0 381.4-41.50000001 0L563.9 324.1l41.5 0z m-216.1 276l31.7 30.5c-41.9 54.2-85.1 106.8-129.6 157.9l-36.9-35.1c50.70000001-53.1 95.6-104.1 134.8-153.3z" ></path></symbol><symbol id="icon-info_trade_detail_hscreen" viewBox="0 0 1024 1024"><path d="M896 128.29999999l0 768.40000001-48 0L848 128.3z" ></path><path d="M127.596 128.69l768.4 0 0 48-768.4 1e-8zM128.185 849.127l768.4 0 0 48-768.4 0z" ></path><path d="M169.6 128.7l0 768.4-48 0L121.6 128.70000001zM326.2 389.79999999c23 47.2 48.1 90.6 75.2 130.20000001L637.9 520l0-63.1c-87.8-6.3-157.3-18.7-208.6-37.2-83.4-29.2-151.1-82.2-203.4-159 13.1-8.8 26.7-21.1 40.9-36.9 46.9 73.4 107.4 122.7 181.5 148.1 46.1 16.9 109.3 28.5 189.6 34.9L637.9 237.7l43.8 0 0 171.7c35.1 1.89999999 73.2 2.9 114.10000001 2.9l-1e-8 49.6c-40.69999999 0-78.7-0.9-114.1-2.6l0 333.9-43.8 0L637.9 568.4l-200.2 0c47.80000001 59.3 101.3 108.1 160.5 146.3l-27.7 41.50000001c-73.4-49-138.49999999-111.6-195.30000001-187.80000001l-33.99999999 0c-33.79999999 0-50.7 14.6-50.7 43.8l0 69.7c0 33.79999999 13.8 53 41.50000001 57.6 20 3.5 49 7.1 86.99999998 10.9-6.5 16.1-12.7 32.6-18.39999999 49.6-40.3-6.1-70.5-11.5-90.5-16.1-43-10.8-64.5-41.3-64.5-91.6l0-91c0-54.2 27.8-81.2 83.5-81.2l12.4 0c-20.6-31.5-39.9-64.9-57.9-100.3 14.2-7 28.40000001-17 42.6-30.00000001z m437.9 184.30000001l32.3 28.2c-23 36.9-46.50000001 69.1-70.3 96.8l-36.9-32.8c24.6-26.9 49.5-57.60000001 74.9-92.2z" ></path></symbol><symbol id="icon-kline_train_buy" viewBox="0 0 1024 1024"><path d="M786.6492397 300.45518592L511.03341141 23.18234864 235.27949906 300.45518592h162.24879671v226.87214722h226.87214723V300.45518592h162.2487967zM341.60424243 596.36937428h161.5583763c32.03550709 0 55.78596925 1.38084082 71.52755464 4.0044384 15.74158539 2.62359757 29.82616178 8.28504494 42.25372918 16.70817395s22.78387358 19.74602377 31.06891852 33.83060018 12.42756741 29.82616178 12.4275674 47.22475614c0 18.91751926-5.10911105 36.31611363-15.32733312 52.05769902-10.21822208 15.87966947-24.02663031 27.61681646-41.56330878 35.62569323 24.57896666 7.18037229 43.63457002 19.33177153 56.75255782 36.7303659 13.2560719 17.26051028 19.88410785 37.55887038 19.88410786 60.8950803 0 18.36518295-4.28060655 36.31611363-12.84181966 53.57662393-8.5612131 17.39859437-20.16027601 31.2070026-35.07335689 41.70139287-14.7749968 10.35630617-33.00209567 16.84625804-54.68129661 19.19368743-13.67032415 1.51892491-46.39625165 2.3474294-98.45395067 2.76168163h-137.66983005V596.36937428z m81.74577674 67.24694809v93.48292371h53.43853985c31.75933893 0 51.5053627-0.41425225 59.23807129-1.38084081 13.9464923-1.65700898 24.9932189-6.48995186 33.00209567-14.49882864 8.00887677-8.00887677 12.01331517-18.50326702 12.01331517-31.62125485 0-12.56565149-3.45210207-22.64578949-10.35630618-30.5165822-6.90420412-7.87079269-17.12242621-12.56565149-30.79275034-14.22266047-8.14696086-0.96658859-31.34508668-1.38084082-69.73246157-1.38084083h-46.81050389z m0 160.86795588v108.11983645h75.53199301c29.41190953 0 48.05326064-0.8285045 55.92405333-2.48551348 12.15139925-2.20934532 21.95536909-7.59462453 29.68807769-16.15583764 7.59462453-8.5612131 11.46097883-20.02219194 11.46097884-34.38293649 0-12.15139925-2.89976573-22.36962133-8.83738127-30.93083444-5.93761554-8.42312903-14.36074457-14.63691274-25.54555522-18.50326702-11.18481067-3.86635431-35.21144098-5.79953147-72.35605913-5.79953146h-65.86610725z" fill="#FF882C" ></path></symbol><symbol id="icon-kline_train_sell" viewBox="0 0 1024 1024"><path d="M624.95277932 731.55369086V504.54345955H398.0806321v226.87214723H235.8318354l275.75391235 277.27283727 275.75391237-277.27283727-162.3868808 0.13808408zM347.2656898 296.58883161l79.39834734-7.73270861c4.83294288 26.65022788 14.49882864 46.25816757 29.13574137 58.68573497 14.63691274 12.56565149 34.3829365 18.7794352 59.09998722 18.7794352 26.23597565 0 46.12008349-5.5233633 59.37615539-16.70817397 13.39415599-11.18481067 20.02219194-24.1647144 20.02219193-39.07779529 0-9.52780169-2.76168163-17.67476253-8.42312902-24.44088257-5.66144737-6.76612003-15.46541722-12.56565149-29.41190952-17.53667844-9.52780169-3.31401797-31.34508668-9.25163351-65.31377094-17.67476255-43.77265408-10.90864251-74.42732035-24.1647144-92.10208289-40.04438385-24.85513482-22.23153725-37.28270222-49.29601739-37.28270223-81.33152449 0-20.57452827 5.79953147-39.90629979 17.53667846-57.71914639 11.737147-17.9509307 28.44532095-31.62125485 50.40069004-41.01097245 21.95536909-9.3897176 48.46751289-14.08457639 79.53643142-14.0845764 50.67685821 0 88.926149 11.18481067 114.6097883 33.41634792 25.68363931 22.23153725 39.0777953 51.91961495 40.45863611 89.06423309l-81.60769265 3.59018613c-3.45210207-20.71261235-11.04672658-35.76377732-22.50770539-44.87732674-11.46097883-9.11354943-28.72148912-13.67032415-51.64344681-13.67032414-23.75046215 0-42.25372918 4.83294288-55.64788516 14.63691272-8.69929718 6.2137837-12.97990373 14.63691274-12.97990374 25.13130299 0 9.52780169 4.00443838 17.81284661 12.15139926 24.57896663 10.35630617 8.69929718 35.34952507 17.67476253 74.97965669 27.06448013 39.7682157 9.3897176 69.04204115 19.05560336 88.0976445 29.13574137 19.05560336 10.08013802 33.96868425 23.75046215 44.73924267 41.14905653 10.77055842 17.39859437 16.15583763 38.80162713 16.15583763 64.34718235 0 23.19812583-6.48995186 44.87732675-19.33177153 65.03760277-12.84181965 20.16027601-31.06891852 35.21144098-54.5432125 45.15349491-23.47429398 9.80396985-52.88620353 14.7749968-87.95956043 14.77499681-51.09111045 0-90.30698983-11.87523108-117.78572221-35.48760915-27.47873238-23.47429398-43.91073817-57.99531457-49.15793331-103.14880948z" fill="#FF882C" ></path></symbol><symbol id="icon-drawicon_down-copy" viewBox="0 0 1024 1024"><path d="M147.9 621.6L467.1 940.8c25 25 65.4 25 90.4 0L876.7 621.6c25-25 25-65.4 0-90.4s-65.4-25-90.4 0l-210.2 210.2 0-611.9c0-35.2-28.6-63.8-63.8-63.8-35.2 0-63.8 28.6-63.8 63.8L448.5 741.60000001l-210.20000001-210.20000001c-12.5-12.5-28.90000001-18.6-45.2-18.6-16.3 0-32.7 6.1-45.2 18.6-24.8 24.8-24.8 65.2 1e-8 90.2z m0 0" ></path></symbol><symbol id="icon-drawicon_up2" viewBox="0 0 1024 1024"><path d="M166.913223 653.57406237c-5.63078656 7.23958273-8.8483789 15.28356354-8.8483789 24.93634052 0 21.7187482 16.89235971 40.21990407 37.80670984 40.21990408h648.34485377c20.91435011 0 37.80670983-17.69675779 37.80670983-40.21990408 0-10.45717506-4.0219904-20.10995203-9.652777-27.34953476L549.80670983 251.37502157c-7.23958273-9.65277699-17.69675779-16.08796163-29.76272902-16.08796163s-22.52314628 5.63078656-29.76272901 15.28356355L166.913223 653.57406237z" fill="#748696" ></path></symbol><symbol id="icon-drawicon_down2" viewBox="0 0 1024 1024"><path d="M491.63867356 691.48132196c6.78710881 9.04947843 16.59071043 14.32834082 27.90255845 14.32834082s21.11544964-6.03298562 27.90255846-15.08246403L849.84719426 315.92796761c5.2788624-6.78710881 9.04947843-15.83658723 9.04947843-25.64018885 0-21.11544964-15.83658723-37.70616007-35.44379046-37.70616007H215.62958182c-19.60720323 0-35.44379047 17.34483364-35.44379048 37.70616007 0 9.04947843 3.01649281 16.59071043 8.29535522 23.37781925l303.157527 377.81572395z" fill="#748696" ></path></symbol><symbol id="icon-hk" viewBox="0 0 1024 1024"><path d="M784.7 130.4H242.6C180.1 130.4 129 181.5 129 244v542.1c0 62.5 51.1 113.6 113.6 113.6h542.1c62.5 0 113.6-51.1 113.6-113.6V244c0-62.5-51.1-113.6-113.6-113.6z" fill="#217CD9" ></path><path d="M719.9 757.1H616.8V557.4H410.5v199.7H307.4V273h103.1v195.3h206.2V273h103.1v484.1z" fill="#FFFFFF" ></path></symbol><symbol id="icon-shhk" viewBox="0 0 1024 1024"><path d="M783.4 130.5H241.3c-62.5 0-113.6 51.1-113.6 113.6v542.1c0 62.5 51.1 113.6 113.6 113.6h542c62.5 0 113.6-51.1 113.7-113.6V244.1c0-62.5-51.1-113.6-113.6-113.6z" fill="#EE1515" ></path><path d="M823.3 730.8c-12.9 32.1-23.1 59-30.6 80.6L464 808.9c-39-1-70.9-6.8-95.9-17.3s-45.7-25.2-62.2-43.9l-68.1 78.1-36.3-96.9 60-51.3V506.4h-55.6v-82.5h133.8v255.6c24.8 34.6 69 51.9 132.5 51.9l141.6 1.9c61.7 0 131.6-0.9 209.5-2.5z m-540-526.3c35.8 43.3 64.8 81.5 86.9 114.4l-73.8 48.8c-27.9-44.6-54.8-84.2-80.6-118.8l67.5-44.4zM786.4 227v71.9l-130 71.9H787v269.4c0 19.8-3.9 35.4-11.7 46.9-7.8 11.5-18.8 19-33 22.5s-45.3 5-93.4 4.4c-3.8-18.8-9.2-40.2-16.3-64.4 20 1.3 36.5 1.9 49.4 1.9 17.5 0 26.3-9.2 26.3-27.5v-10.6h-84.4V707h-75v-93.8H467v94.4h-78.8V370.8H507l-67.5-41.9 31.9-36.9h-88.1v-65h403.1zM467.1 465.1H549V427h-81.9v38.1z m0 93.2H549v-38.1h-81.9v38.1zM678.3 292H494.6c25.8 14.8 55 32 87.5 51.6l96.2-51.6z m30 135h-84.4v38.1h84.4V427z m-84.4 131.3h84.4v-38.1h-84.4v38.1z" fill="#FFFFFF" ></path></symbol><symbol id="icon-margin" viewBox="0 0 1024 1024"><path d="M784.3 130.1H242.2c-62.5 0-113.6 51.1-113.6 113.6v542.1c0 62.5 51.1 113.6 113.6 113.6h542.1c62.5 0 113.6-51.1 113.6-113.6V243.7c0-62.5-51.1-113.6-113.6-113.6z" fill="#FFA11B" ></path><path d="M207.4 227.5h313.7v68.8H207.4v-68.8z m89.3 415H323c-9.6-22.1-19-43.1-28.1-63.1h51.9c7.1 19.2 13.8 40.2 20 63.1h1.9c4.6-18.3 10.2-39.4 16.9-63.1h56.3c-10.4 20-21 41-31.9 63.1h27.5v61.3h-38.8v39.4c5.4 0.4 16.3 0.4 32.5 0 12.9-0.8 19.8-7.9 20.6-21.3v-160H284.9V815h-66.3V497.5h295v236.9c0 43.3-13.1 67.5-39.4 72.5-18.3 2.5-38.5 3.8-60.6 3.8-4.6-20.4-9.6-42.3-15-65.6v62.5h-61.9V703.8h-40v-61.3z m-55.6-321.2h250.6v151.3H241.1V321.3z m180 60H311.7v31.3h109.4v-31.3z m118.1-67.5h89.4v-105h75v105h90v285h-90v108.8c10.4-1.3 20.8-2.3 31.3-3.1-4.6-19.2-9.4-39.6-14.4-61.3l58.8-15.6c17.5 72.1 30.8 131 40 176.9l-56.9 16.3c-2.9-13.8-6.5-28.8-10.6-45-64.2 7.1-136.7 16.3-217.5 27.5l-10.6-81.9c35.8-2.1 70.8-4.4 105-6.9V598.8h-31.3V635h-58.1V313.8z m58.2 215h31.3v-145h-31.3v145z m137.5 0v-145h-31.3v145h31.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M992.2 923.7L821.4 752.9c64.5-80.1 99.7-178.9 99.7-283.2 0-120.9-47.1-234.6-132.6-320.2S589.3 17 468.3 17 233.6 64.1 148.1 149.6c-176.5 176.5-176.5 463.8 0 640.3 85.5 85.5 199.2 132.6 320.2 132.6 104.3 0 203.1-35.2 283.2-99.7l170.8 170.8c9.7 9.7 22.3 14.5 35 14.5 12.6 0 25.3-4.8 35-14.5 19.2-19.3 19.2-50.6-0.1-69.9zM218.1 720c-138-138-138-362.5 0-500.5 69-69 159.6-103.5 250.2-103.5s181.3 34.5 250.3 103.5c138 138 138 362.5 0 500.5s-362.5 138-500.5 0z" ></path></symbol><symbol id="icon-guanbi" viewBox="0 0 1024 1024"><path d="M512 1016C233.6 1016 8 790.4 8 512S233.6 8 512 8s504 225.6 504 504-225.6 504-504 504z m0-960C260.8 56 56 260.8 56 512s204.8 456 456 456 456-204.8 456-456S763.2 56 512 56z" ></path><path d="M548.8 512L744 316.8c9.6-9.6 9.6-25.6 0-36.8l-1.6-1.6c-9.6-9.6-25.6-9.6-35.2 0L512 475.2 316.8 280c-9.6-9.6-25.6-9.6-35.2 0l-1.6 1.6c-9.6 9.6-9.6 25.6 0 36.8L475.2 512 280 707.2c-9.6 9.6-9.6 25.6 0 36.8l1.6 1.6c9.6 9.6 25.6 9.6 35.2 0L512 548.8 707.2 744c9.6 9.6 25.6 9.6 35.2 0l1.6-1.6c9.6-9.6 9.6-25.6 0-36.8L548.8 512z" ></path></symbol><symbol id="icon-sub" viewBox="0 0 1024 1024"><path d="M921.088 474.624H102.912c-20.48 0-37.376 16.896-37.376 37.376s16.896 37.376 37.376 37.376h818.176c20.48 0 37.376-16.896 37.376-37.376s-16.896-37.376-37.376-37.376z" fill="#748797" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M921.088 474.624h-371.712V102.912c0-20.48-16.896-37.376-37.376-37.376s-37.376 16.896-37.376 37.376v371.712H102.912c-20.48 0-37.376 16.896-37.376 37.376s16.896 37.376 37.376 37.376h371.712v371.712c0 20.48 16.896 37.376 37.376 37.376s37.376-16.896 37.376-37.376v-371.712h371.712c20.48 0 37.376-16.896 37.376-37.376s-16.896-37.376-37.376-37.376z" fill="#748797" ></path></symbol><symbol id="icon-refresh" viewBox="0 0 1024 1024"><path d="M230.912 773.632C301.056 848.896 400.896 896 512 896c211.968 0 384-172.032 384-384s-172.032-384-384-384c-144.896 0-271.36 80.384-336.384 199.168h183.808c17.92 0 32.256 14.336 32.256 32.256s-14.336 32.256-32.256 32.256H96.256c-17.92 0-32.256-14.336-32.256-32.256V96.256c0-17.92 14.336-32.256 32.256-32.256s32.256 14.336 32.256 32.256V281.6c78.336-130.048 221.184-217.088 384-217.088 247.296 0 448 200.704 448 448s-200.704 448-448 448c-131.584 0-249.856-56.832-331.776-146.944-5.12-5.632-8.192-13.824-8.192-22.016 0-17.92 14.336-32.256 32.256-32.256 10.24-0.512 18.432 6.656 26.112 14.336z" fill="#748797" ></path></symbol><symbol id="icon-houtui" viewBox="0 0 1024 1024"><path d="M373.248 512l338.944 339.968c12.288 12.288 12.288 32.768 0 45.056-12.288 12.288-32.768 12.288-45.056 0l-358.4-358.4c-14.336-14.848-14.336-38.4 0-52.736l358.4-358.4c12.288-11.776 31.744-11.776 44.032 0 12.8 11.776 13.824 32.256 1.536 45.056L373.248 512z" fill="#748797" ></path></symbol><symbol id="icon-qianjin" viewBox="0 0 1024 1024"><path d="M656.384 512L316.928 172.544c-12.288-12.8-11.264-33.28 1.536-45.056 12.288-11.776 31.744-11.776 44.032 0l358.4 358.4c14.336 14.336 14.336 37.888 0 52.736l-358.4 358.4c-12.288 12.288-32.768 12.288-45.056 0s-12.288-32.768 0-45.056l338.944-339.968z" fill="#748797" ></path></symbol><symbol id="icon-exit" viewBox="0 0 1024 1024"><path d="M190.65 810.167c-41.069 0-70.529-33.561-70.529-79.66V299.306c0-48.611 29.458-84.209 70.529-84.209h358.256c41.069 0 70.523 35.597 70.523 84.209v49.25c0 12.098-5.882 21.932-17.979 21.932s-21.934-13.795-21.934-25.887V299.31c0-20.655-13.741-37.461-30.617-37.461H194.606c-16.881 0-30.622 16.804-30.622 37.458v426.656c0 20.655 13.734 37.454 30.617 37.454h354.293c16.881 0 30.617-16.804 30.617-37.454v-49.255c0-12.091 5.876-21.934 17.979-21.934 12.091 0 21.932 9.841 21.932 21.934v49.255c0 48.606-29.465 84.209-70.527 84.209l-358.242-0.007z m558.393-139.269c-5.911 0-11.474-2.447-15.619-6.892-8.394-8.977-8.394-23.577 0.005-32.539l84.461-90.347c0.071-0.076 0.121-0.131 0.048-0.303s-0.147-0.17-0.246-0.17H450.374c-12.091 0-21.932-10.382-21.932-23.152s9.841-23.155 21.932-23.155h367.313c0.095 0 0.175 0 0.244-0.164 0.079-0.164 0.007-0.229-0.05-0.294l-84.465-90.341c-8.382-8.977-8.382-23.577 0-32.544 4.155-4.447 9.706-6.892 15.619-6.892s11.463 2.447 15.619 6.892l120.853 129.286c4.234 4.549 6.412 10.655 6.155 17.209 0.257 6.564-1.922 12.669-6.145 17.214L764.652 664.002c-4.145 4.441-9.695 6.892-15.614 6.892z" ></path></symbol><symbol id="icon-camera" viewBox="0 0 1024 1024"><path d="M930.048 928H93.952C42.112 928 0 883.84 0 829.568v-514.88c0-54.272 42.112-98.432 93.952-98.432h159.424C277.376 157.248 315.008 96 367.36 96h289.28c55.424 0 91.776 61.056 113.92 120.256h159.488c51.84 0 93.952 44.16 93.952 98.432v514.88C1024 883.84 981.888 928 930.048 928zM93.952 280.256C77.44 280.256 64 295.68 64 314.688v514.88C64 848.576 77.44 864 93.952 864h836.096C946.56 864 960 848.576 960 829.568v-514.88c0-19.008-13.44-34.432-29.952-34.432H747.776a32 32 0 0 1-30.464-22.144C695.424 190.464 668.672 160 656.64 160H367.36c-9.088 0-36.544 29.12-61.952 99.136a32 32 0 0 1-30.08 21.12H93.952z" ></path><path d="M800 384a32 32 0 1 1 0-64 32 32 0 0 1 0 64M512 736c-105.856 0-192-86.144-192-192s86.144-192 192-192 192 86.144 192 192-86.144 192-192 192z m0-320c-70.592 0-128 57.408-128 128s57.408 128 128 128 128-57.408 128-128-57.408-128-128-128z" ></path></symbol><symbol id="icon-stockStar" viewBox="0 0 1024 1024"><path d="M150 163h700v675H150z" fill="#FFFFFF" ></path><path d="M803.2 96.8H217.7C150.2 96.8 95 152 95 219.6v585.6c0 67.5 55.2 122.7 122.7 122.7h585.6c67.5 0 122.7-55.2 122.7-122.7V219.6c0-67.6-55.2-122.8-122.8-122.8zM531.7 226.2c30.7 22.6 64.9 50.9 102.4 84.9l-56.4 55.8c-30.3-32.3-62.6-62-97-89.1l51-51.6z m83 239.5l-57 55.2c-27.5-29.1-60.2-58.4-98.2-87.9l51.5-52.7c35.6 26.2 70.2 54.7 103.7 85.4z m-235.2 51.8v261.6h-78.8V574.2c-19 40-40.4 77.2-64.3 111.5-6.9-26.7-16.2-59-27.9-97C247.2 542 277 490.9 298 435.4h-84v-78.2h86.7v-67.9l-73.3 6.7c-4-27.5-8.7-51.5-13.9-72.1 83.7-6.5 160.8-14.7 231.6-24.9l23 70.9c-27.3 3.8-56.8 7.6-88.5 11.2v76.1h78.8v78.2h-78.8v52.1l29.1-27.3c29.1 25.9 53.7 49.3 74 70.3l-50.9 46.1c-20.2-23.4-37.5-43.1-52.3-59.1z m344.9 104.9v156.7H639V629.9l-186.7 17-10.3-76.4 197-17.9V183.2h85.5v361.6l82.4-7.6 6.7 77-89.2 8.2z" fill="#AA61D8" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){function a(){o||(o=!0,r())}if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var i=function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()};document.addEventListener("DOMContentLoaded",i,!1)}else document.attachEvent&&(r=e,n=t.document,o=!1,(s=function(){try{n.documentElement.doScroll("left")}catch(t){return void setTimeout(s,50)}a()})(),n.onreadystatechange=function(){"complete"==n.readyState&&(n.onreadystatechange=null,a())});var r,n,o,s}(function(){var t,e;(t=document.createElement("div")).innerHTML=a,a=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window)},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"stockinfo",staticClass:"topWrap clearfix",attrs:{id:"stockinfo"}},[a("div",{staticClass:"stockInfo",style:t.CellStyle[0]},[a("p",{staticClass:"stockName"},[a("span",{staticClass:"nameText"},[t._v(t._s(t.StockData.Name.Text))]),t._v(" "),t.StockData.IsMargin?a("span",{attrs:{title:"融资融券标的"}},[a("svg",{staticClass:"symbolIkcon iconStockinfo",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-margin"}})])]):t._e(),t._v(" "),t.StockData.IsSHHK?a("span",{attrs:{title:"沪港通标的"}},[a("svg",{staticClass:"symbolIkcon iconStockinfo",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-shhk"}})])]):t._e(),t._v(" "),t.StockData.IsHK?a("span",{attrs:{title:"AH股\n港股:"+t.StockData.HK.Symbol}},[a("svg",{staticClass:"symbolIkcon iconStockinfo",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-hk"}})])]):t._e(),t._v(" "),t.IsStockStar?a("span",{attrs:{title:t.科创板}},[a("svg",{staticClass:"symbolIkcon iconStockinfo",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-stockStar"}})])]):t._e()]),t._v(" "),a("div",{staticClass:"codeInfo"},[a("span",{staticClass:"code"},[t._v(t._s(t.Symbol))]),t._v(" "),t.IsShow.IconStyle?a("button",{staticClass:"searchBtn",on:{click:t.GoSearch}},[t._v("股票查询")]):t._e(),t._v(" "),t.IsShow.IconStyle?t._e():a("button",{staticClass:"cancelBtn",on:{click:t.CancelSearch}},[t._v("取消")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.IsShow.SearchSymbol,expression:"IsShow.SearchSymbol"}],staticClass:"editSymbol"},[a("SearchSymbol",{ref:"mySymbol",on:{inputValue:t.OnChangeSymbol}})],1)])]),t._v(" "),a("div",{staticClass:"priceInfo",style:t.CellStyle[1]},[a("p",{staticClass:"priceCurrentNum",class:t.StockData.Price.Color},[t._v(t._s(t.StockData.Price.Text))]),t._v(" "),a("p",{staticClass:"priceCurrent"},[a("span",{staticClass:"riseNum",class:t.StockData.RiseFallPrice.Color},[t._v(t._s(t.StockData.RiseFallPrice.Text))]),a("span",{staticClass:"risePrecent",class:t.StockData.Increase.Color},[t._v(t._s(t.StockData.Increase.Text))])])]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[2]},[a("div",{staticClass:"high"},[t._v("最高:"),a("span",{class:t.StockData.High.Color},[t._v(t._s(t.StockData.High.Text))])]),t._v(" "),a("div",{staticClass:"low"},[t._v("最低:"),a("span",{class:t.StockData.Low.Color},[t._v(t._s(t.StockData.Low.Text))])])]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[3]},[a("div",{staticClass:"open"},[t._v("今开:"),a("span",{class:t.StockData.Open.Color},[t._v(t._s(t.StockData.Open.Text))])]),t._v(" "),0==t.IsIndex?a("div",{staticClass:"change"},[t._v("换手:"),a("span",{class:t.StockData.Excahngerate.Color},[t._v(t._s(t.StockData.Excahngerate.Text))])]):t._e(),t._v(" "),1==t.IsIndex?a("div",{staticClass:"change"},[t._v("昨收:"),a("span",[t._v(t._s(t.StockData.YClose.Text))])]):t._e()]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[4]},[a("div",{staticClass:"num"},[t._v("成交额:"),a("span",[t._v(t._s(t.StockData.Amount.Text))])]),t._v(" "),a("div",{staticClass:"totalValue"},[t._v("成交量:"),a("span",[t._v(t._s(t.StockData.Vol.Text))])])]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[5]},[0==t.IsIndex?a("div",{staticClass:"pe"},[t._v("PE:"),a("span",[t._v(t._s(t.StockData.Pe.Text))])]):t._e(),t._v(" "),0==t.IsIndex?a("div",{staticClass:"roe"},[t._v("ROE:"),a("span",{class:t.StockData.Roe.Color},[t._v(t._s(t.StockData.Roe.Text))])]):t._e(),t._v(" "),1==t.IsIndex?a("div",{staticClass:"change"},[t._v("上涨家数:"),a("span",[t._v(t._s(t.StockData.Up.Text))])]):t._e(),t._v(" "),1==t.IsIndex?a("div",{staticClass:"change"},[t._v("下跌家数:"),a("span",[t._v(t._s(t.StockData.Down.Text))])]):t._e()]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[6]},[1==t.IsIndex?a("div",{staticClass:"marketV"},[t._v("平盘:"),a("span",[t._v(t._s(t.StockData.Unchanged.Text))])]):t._e(),t._v(" "),0==t.IsIndex?a("div",{staticClass:"marketV"},[t._v("总市值:"),a("span",[t._v(t._s(t.StockData.MarketV.Text))])]):t._e(),t._v(" "),0==t.IsIndex?a("div",{staticClass:"flowMarketV"},[t._v("流通市值:"),a("span",[t._v(t._s(t.StockData.FlowMarketV.Text))])]):t._e()]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[7]},[0==t.IsIndex?a("div",{staticClass:"eps"},[t._v("EPS:"),a("span",[t._v(t._s(t.StockData.Eps.Text))])]):t._e(),t._v(" "),0==t.IsIndex?a("div",{staticClass:"scrollEPS"},[t._v("EPS(动):"),a("span",[t._v(t._s(t.StockData.ScrollEPS.Text))])]):t._e()]),t._v(" "),a("div",{staticClass:"otherInfo",style:t.CellStyle[8]},[0==t.IsIndex?a("div",{staticClass:"pb"},[t._v("PB:"),a("span",[t._v(t._s(t.StockData.Pb.Text))])]):t._e(),t._v(" "),0==t.IsIndex?a("div",{staticClass:"amplitude"},[t._v("振幅:"),a("span",[t._v(t._s(t.StockData.Amplitude.Text))])]):t._e()])])},staticRenderFns:[]}},,,,,,,,,,,,,,function(t,e,a){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,a){"use strict";e.__esModule=!0;var i=a(43),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=a(75),n=i(r),o=a(35),s=i(o),l=a(77),h=i(l);a(39);var u=a(40),c=i(u),d=a(414),f=i(d);a(104),window.Promise||(window.Promise=n.default),s.default.use(h.default,{locale:c.default}),new s.default({el:"#app",render:function(t){return t(f.default)}})},function(t,e,a){a(415);var i=a(16)(a(417),a(423),null,null);t.exports=i.exports},function(t,e,a){var i=a(416);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(11)("fa4dd28a",i,!0)},function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,"",""])},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=a(124),n=i(r),o=a(418),s=i(o);e.default={data:function(){return{JSStock:null}},components:{StockInfo:n.default,StockTradeInfo:s.default},created:function(){this.JSStock=n.default.JSCommonStock.JSStockInit()},mounted:function(){console.log("[page::mounted]",this,this.$refs.stockinfo);var t=this.$refs.stockinfo;t.SetJSStock(this.JSStock),t.SetChangeSymbolCallback(this.OnChangeSymbol),t.SetSymbol("000001.sz"),t.InitalStock(),this.JSStock.ReqeustData();var e=this;window.onresize=function(){e.OnSize()}},methods:{OnChangeSymbol:function(t){},OnSize:function(){this.$refs.stockinfo.OnSize()}}}},function(t,e,a){a(419);var i=a(16)(a(421),a(422),"data-v-31f26ca7",null);t.exports=i.exports},function(t,e,a){var i=a(420);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(11)("ebec386e",i,!0)},function(t,e,a){e=t.exports=a(3)(void 0),e.push([t.i,"[data-v-31f26ca7]{padding:0;margin:0}ol[data-v-31f26ca7],ul[data-v-31f26ca7]{list-style:none}",""])},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=a(143),n=i(r),o=a(144),s=i(o),l=a(12),h=(i(l),a(76)),u=i(h),c=a(34),d=i(c),f=function(){function t(){(0,n.default)(this,t)}return(0,s.default)(t,null,[{key:"GetBuyData",value:function(){return[{Vol:{Text:""},Price:{Text:"",Color:""}},{Vol:{Text:""},Price:{Text:"",Color:""}},{Vol:{Text:""},Price:{Text:"",Color:""}},{Vol:{Text:""},Price:{Text:"",Color:""}},{Vol:{Text:""},Price:{Text:"",Color:""}}]}},{key:"GetSellData",value:function(){return t.GetBuyData()}},{key:"GetTradeData",value:function(){}},{key:"GetBookData",value:function(){}}]),t}();e.default={JSCommonStock:d.default,name:"StockTradeInfo",props:["IsShareStock"],data:function(){return{Symbol:"600000.sh",ID:[u.default.JSChart.CreateGuid(),u.default.JSChart.CreateGuid(),u.default.JSChart.CreateGuid()],JSStock:null,BuyData:f.GetBuyData(),SellData:f.GetSellData(),IsBuySellInital:!1,TradeData:null,IsTradeDataInital:!1,BookData:null}},created:function(){},mounted:function(){console.log("[StockTradeInfo::mounted] IsShareStock="+this.IsShareStock+" ID="+this.ID),1==this.IsShareStock||(this.JSStock=d.default.JSStockInit())},methods:{UpdateBuySell:function(t,e,a,i){if(!(e.indexOf(this.Symbol)<0)){var r=i.GetStockRead(this.ID[0],this.UpdateBuySell),n=r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.BUY5),o=r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.SELL5),s=r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.YCLOSE);if(this.IsPlusNumber(s)&&(1!=this.IsBuySellInital||t==this.ID[0]&&a==d.default.RECV_DATA_TYPE.BUY_SELL_DATA)){console.log("[StockTradeInfo::UpdateBuySell]",this.Symbol,n,o,s);var l=f.GetBuyData();for(var h in n){var u=n[h];l[h].Vol.Text=u.Vol.toString()}var c=f.GetSellData();for(var h in o){var u=o[h];c[h].Vol.Text=u.Vol.toString()}this.IsBuySellInital=!0,this.SellData=c,this.BuyData=l}}},UpdateTrade:function(t,e,a,i){if(!(e.indexOf(this.Symbol)<0)){var r=i.GetStockRead(this.ID[1],this.UpdateTrade),n={Value:r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.DEAL)},o=r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.YCLOSE);console.log("[StockTradeInfo::UpdateTrade]",this.Symbol,n,o),this.IsPlusNumber(o)&&(t!=this.ID[1]||d.default.RECV_DATA_TYPE.DEAL_DATA)}},UpdateBookRate:function(t,e,a,i){if(!(e.indexOf(this.Symbol)<0)){var r=i.GetStockRead(this.ID[2],this.UpdateBookRate),n={Value:r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.BOOK_RATE)},o={Value:r.Get(this.Symbol,d.default.STOCK_FIELD_NAME.BOOK_DIFFER)};t==this.ID[2]&&a==d.default.RECV_DATA_TYPE.DERIVATIVE_DATA&&console.log("[StockTradeInfo::UpdateBookRate]",this.Symbol,n,o)}},SetJSStock:function(t){this.JSStock=t},RequestData:function(){this.JSStock.RequestData()},SetSymbol:function(t){if(this.Symbol!=t){var e=this.IsSHSZIndex();this.Symbol=t;var a=this.IsSHSZIndex();console.log("[StockTradeInfo::SetSymbol] symbol="+this.Symbol+" isIndex="+a+" isIndexBackup="+e),this.IsBuySellInital=!1,this.IsTradeDataInital=!1,this.InitalStock()}},InitalStock:function(){if(!this.IsSHSZIndex()){var t=this.JSStock.GetStockRead(this.ID[0],this.UpdateBuySell);t.SetQueryField(this.Symbol,[d.default.STOCK_FIELD_NAME.BUY5,d.default.STOCK_FIELD_NAME.SELL5,d.default.STOCK_FIELD_NAME.YCLOSE]),t=this.JSStock.GetStockRead(this.ID[1],this.UpdateTrade),t.SetQueryField(this.Symbol,[d.default.STOCK_FIELD_NAME.DEAL,d.default.STOCK_FIELD_NAME.YCLOSE]),t=this.JSStock.GetStockRead(this.ID[2],this.UpdateBookRate),t.SetQueryField(this.Symbol,[d.default.STOCK_FIELD_NAME.BOOK_RATE,d.default.STOCK_FIELD_NAME.BOOK_DIFFER])}},OnSize:function(){},IsSHSZIndex:function(){return u.default.MARKET_SUFFIX_NAME.IsSHSZIndex(this.Symbol)},IsNumber:u.default.IFrameSplitOperator.IsNumber,IsPlusNumber:u.default.IFrameSplitOperator.IsPlusNumber}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"stockinfo"}},[a("p",[t._v(t._s(t.Symbol))]),t._v(" "),a("p",[t._v("5档买卖盘,成交笔数")]),t._v(" "),a("p",[t._v("买一")]),t._v(" "),a("p",[t._v(t._s(t.BuyData[0].Vol.Text))]),t._v(" "),a("p",[t._v("卖一")]),t._v(" "),a("p",[t._v(t._s(t.SellData[0].Vol.Text))])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app2"}},[a("p",[t._v("全屏宽度测试用例")]),t._v(" "),a("StockInfo",{ref:"stockinfo",attrs:{IsShareStock:"true"}})],1)},staticRenderFns:[]}}],[413]);
//# sourceMappingURL=stockinfo.demo.page.js.map?b2c9d7f5092dad946651