text: !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],e);else{var n="object"==typeof exports?e(require("jquery")):e(t.$);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}("undefined"!=typeof self?self:this,function(__WEBPACK_EXTERNAL_MODULE_19__){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=20)}([function(t,e,n){"use strict";n.d(e,"a",function(){return m});var r=n(8),a=n(21),i=n(25),o=n(18),s=n(7),l=n(2),c=n(4),u=n(12),h=n(6),_=n(11),d=n(10),f=n(13),g=n(5);function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var m=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._dataSources={},this._dataSourceCache={},this._dataProviders={},this._frames={},this._areas={},this._timelines={},this._ranges={},this._plotters={},this._themes={},this._titles={},this._frameMousePos={},this._dsChartStyle={},this._dragStarted=!1,this._oldX=0,this._fakeIndicators={},this._captureMouseWheelDirectly=!0,this._chart={},this._chart.defaultFrame=new a.a,this._drawingTool=t.DrawingTool.CrossCursor,this._beforeDrawingTool=this._drawingTool,this._language="zh-cn",this._mainCanvas=null,this._overlayCanvas=null,this._mainContext=null,this._overlayContext=null,t.created||(t.instance=this,t.created=!0),t.instance}return function(t,e,n){e&&p(t.prototype,e),n&&p(t,n)}(t,[{key:"redraw",value:function(t,e){(void 0===t||e)&&(t="All"),"All"!==t&&"MainCanvas"!==t||(e&&this.getFrame("frame0").setChanged(!0),this.layout(this._mainContext,"frame0",0,0,this._mainCanvas.width,this._mainCanvas.height),this.drawMain("frame0",this._mainContext)),"All"!==t&&"OverlayCanvas"!==t||(this._overlayContext.clearRect(0,0,this._overlayCanvas.width,this._overlayCanvas.height),this.drawOverlay("frame0",this._overlayContext))}},{key:"bindCanvas",value:function(t,e){"main"===t?(this._mainCanvas=e,this._mainContext=e.getContext("2d")):"overlay"===t&&(this._overlayCanvas=e,this._overlayContext=e.getContext("2d"),this._captureMouseWheelDirectly&&$(this._overlayCanvas).bind("mousewheel",r.a.mouseWheel))}},{key:"getCaptureMouseWheelDirectly",value:function(){return this._captureMouseWheelDirectly}},{key:"setCaptureMouseWheelDirectly",value:function(t){this._captureMouseWheelDirectly=t,t?$(this._overlayCanvas).bind("mousewheel",r.a.mouseWheel):$(this._overlayCanvas).unbind("mousewheel")}},{key:"getChart",value:function(t){return this._chart.defaultFrame}},{key:"init",value:function(){delete this._ranges["frame0.k0.indic1"],delete this._ranges["frame0.k0.indic1Range"],delete this._areas["frame0.k0.indic1"],delete this._areas["frame0.k0.indic1Range"],s.a.loadTemplate("frame0.k0",""),this.redraw("All",!0)}},{key:"setCurrentDrawingTool",value:function(e){this._drawingTool=t.DrawingTool[e],this.setRunningMode(this._drawingTool)}},{key:"getLanguage",value:function(){return this._language}},{key:"setLanguage",value:function(t){this._language=t}},{key:"setThemeName",value:function(t,e){var n;switch(void 0===e&&(e="Dark"),e){case"Light":n=new h.b;break;default:e="Dark",n=new h.a}this._themeName=e,this.setTheme(t,n),this.getFrame(t).setChanged(!0)}},{key:"getChartStyle",value:function(t){var e=this._dsChartStyle[t];return void 0===e?"CandleStick":e}},{key:"setChartStyle",value:function(t,e){if(this._dsChartStyle[t]!==e){var n,r,a=t+".main",o=a+".main",s=a+".main";switch(e){case"CandleStick":case"CandleStickHLC":case"OHLC":switch(void 0!==(n=this.getDataProvider(o))&&g.a.isInstance(n,u.b)||(n=new u.b(o),this.setDataProvider(o,n),n.updateData()),this.setMainIndicator(t,c.a.get().charts.mIndic),e){case"CandleStick":r=new _.f(s);break;case"CandleStickHLC":r=new _.e(s);break;case"OHLC":r=new _.C(s)}this.setPlotter(s,r),r=new _.B(a+".decoration"),this.setPlotter(r.getName(),r);break;case"Line":n=new u.a(o),this.setDataProvider(n.getName(),n),n.setIndicator(new i.g),this.removeMainIndicator(t),r=new _.w(s),this.setPlotter(s,r),this.removePlotter(a+".decoration")}this.getArea(r.getAreaName()).setChanged(!0),this._dsChartStyle[t]=e}}},{key:"setNormalMode",value:function(){this._drawingTool=this._beforeDrawingTool,$(".chart_dropdown_data").removeClass("chart_dropdown-hover"),$("#chart_toolpanel .chart_toolpanel_button").removeClass("selected"),$("#chart_CrossCursor").parent().addClass("selected"),this._drawingTool===t.DrawingTool.Cursor?(this.showCursor(),$("#mode a").removeClass("selected"),$("#chart_toolpanel .chart_toolpanel_button").removeClass("selected"),$("#chart_Cursor").parent().addClass("selected")):this.hideCursor()}},{key:"setRunningMode",value:function(e){var n=this.getDataSource("frame0.k0"),r=n.getCurrentToolObject();if(null!==r&&r.state!==d.n.state.AfterDraw&&n.delToolObject(),n.getToolObjectCount()>10)this.setNormalMode();else switch(this._drawingTool=e,e===t.DrawingTool.Cursor&&this.showCursor(),e){case t.DrawingTool.Cursor:this._beforeDrawingTool=e;break;case t.DrawingTool.ArrowLine:n.addToolObject(new d.a("frame0.k0"));break;case t.DrawingTool.BandLine:n.addToolObject(new d.b("frame0.k0"));break;case t.DrawingTool.BiParallelLine:n.addToolObject(new d.c("frame0.k0"));break;case t.DrawingTool.BiParallelRayLine:n.addToolObject(new d.d("frame0.k0"));break;case t.DrawingTool.CrossCursor:this._beforeDrawingTool=e;break;case t.DrawingTool.DrawFibFans:n.addToolObject(new d.e("frame0.k0"));break;case t.DrawingTool.DrawFibRetrace:n.addToolObject(new d.f("frame0.k0"));break;case t.DrawingTool.DrawLines:n.addToolObject(new d.m("frame0.k0"));break;case t.DrawingTool.HoriRayLine:n.addToolObject(new d.g("frame0.k0"));break;case t.DrawingTool.HoriSegLine:n.addToolObject(new d.h("frame0.k0"));break;case t.DrawingTool.HoriStraightLine:n.addToolObject(new d.i("frame0.k0"));break;case t.DrawingTool.PriceLine:n.addToolObject(new d.j("frame0.k0"));break;case t.DrawingTool.RayLine:n.addToolObject(new d.k("frame0.k0"));break;case t.DrawingTool.SegLine:n.addToolObject(new d.l("frame0.k0"));break;case t.DrawingTool.StraightLine:n.addToolObject(new d.m("frame0.k0"));break;case t.DrawingTool.TriParallelLine:n.addToolObject(new d.o("frame0.k0"));break;case t.DrawingTool.VertiStraightLine:n.addToolObject(new d.p("frame0.k0"))}}},{key:"getTitle",value:function(t){return this._titles[t]}},{key:"setTitle",value:function(t,e){this._titles[t]=e}},{key:"setCurrentDataSource",value:function(t,e){var n=this.getCachedDataSource(e);void 0!==n&&null!==n?this.setDataSource(t,n,!0):(n=new l.b(e),this.setDataSource(t,n,!0),this.setCachedDataSource(e,n))}},{key:"getDataSource",value:function(t){return this._dataSources[t]}},{key:"setDataSource",value:function(t,e,n){this._dataSources[t]=e,n&&this.updateData(t,null)}},{key:"getCachedDataSource",value:function(t){return this._dataSourceCache[t]}},{key:"setCachedDataSource",value:function(t,e){this._dataSourceCache[t]=e}},{key:"getDataProvider",value:function(t){return this._dataProviders[t]}},{key:"setDataProvider",value:function(t,e){this._dataProviders[t]=e}},{key:"removeDataProvider",value:function(t){delete this._dataProviders[t]}},{key:"getFrame",value:function(t){return this._frames[t]}},{key:"setFrame",value:function(t,e){this._frames[t]=e}},{key:"removeFrame",value:function(t){delete this._frames[t]}},{key:"getArea",value:function(t){return this._areas[t]}},{key:"setArea",value:function(t,e){this._areas[t]=e}},{key:"removeArea",value:function(t){delete this._areas[t]}},{key:"getTimeline",value:function(t){return this._timelines[t]}},{key:"setTimeline",value:function(t,e){this._timelines[t]=e}},{key:"removeTimeline",value:function(t){delete this._timelines[t]}},{key:"getRange",value:function(t){return this._ranges[t]}},{key:"setRange",value:function(t,e){this._ranges[t]=e}},{key:"removeRange",value:function(t){delete this._ranges[t]}},{key:"getPlotter",value:function(t){return this._plotters[t]}},{key:"setPlotter",value:function(t,e){this._plotters[t]=e}},{key:"removePlotter",value:function(t){delete this._plotters[t]}},{key:"getTheme",value:function(t){return this._themes[t]}},{key:"setTheme",value:function(t,e){this._themes[t]=e}},{key:"getFrameMousePos",value:function(t,e){void 0!==this._frameMousePos[t]?(e.x=this._frameMousePos[t].x,e.y=this._frameMousePos[t].y):(e.x=-1,e.y=-1)}},{key:"setFrameMousePos",value:function(t,e,n){this._frameMousePos[t]={x:e,y:n}}},{key:"drawArea",value:function(t,e,n){var r=e.getNameObject().getCompAt(2);if("timeline"===r){if(e.getHeight()<20)return}else if(e.getHeight()<30)return;if(!(e.getWidth()<30)){var a;r=e.getName();var i,o=n.length;for(i=0;i<o;i++)void 0!==(a=this._plotters[r+n[i]])&&a.Draw(t)}}},{key:"drawAreaMain",value:function(t,e){var n;n=this._dataSources[e.getDataSourceName()].getDataCount()<1?[".background"]:[".background",".grid",".main",".secondary"],this.drawArea(t,e,n),e.setChanged(!1)}},{key:"drawAreaOverlay",value:function(t,e){var n;n=this._dataSources[e.getDataSourceName()].getDataCount()<1?[".selection"]:[".decoration",".selection",".info",".tool"],this.drawArea(t,e,n)}},{key:"drawMain",value:function(t,e){var n;for(var r in this._areas)this._areas[r].getFrameName()!==t||g.a.isInstance(this._areas[r],f.b)||this.drawAreaMain(e,this._areas[r]);for(var a in this._timelines)(n=this._timelines[a]).getFrameName()===t&&n.setUpdated(!1);for(var i in this._ranges)(n=this._ranges[i]).getFrameName()===t&&n.setUpdated(!1);for(var o in this._areas)(n=this._areas[o]).getFrameName()===t&&n.setChanged(!1)}},{key:"drawOverlay",value:function(t,e){for(var n in this._areas){var r=this._areas[n];g.a.isInstance(r,f.b)&&r.getFrameName()===t&&r.drawGrid(e)}for(var a in this._areas){var i=this._areas[a];!1===g.a.isInstance(i,f.b)&&i.getFrameName()===t&&this.drawAreaOverlay(e,i)}}},{key:"updateData",value:function(t,e){var n=this.getDataSource(t);if(void 0!==n&&null!==n){if(void 0!==e&&null!==e){if(!n.update(e))return!1;if(n.getUpdateMode()===l.a.UpdateMode.DoNothing)return!0}else n.setUpdateMode(l.a.UpdateMode.Refresh);var r=this.getTimeline(t);if(void 0!==r&&null!==r&&r.update(),n.getDataCount()<1)return!0;var a,i,o=[".main",".secondary"];for(var s in this._areas)if(a=this._areas[s],!g.a.isInstance(a,f.b)&&a.getDataSourceName()===t){i=a.getName();for(var c=0;c<o.length;c++){var u=this.getDataProvider(i+o[c]);void 0!==u&&null!==u&&u.updateData()}}return!0}}},{key:"updateRange",value:function(t){if(!(this.getDataSource(t).getDataCount()<1)){var e,n,r=[".main",".secondary"];for(var a in this._areas)if(e=this._areas[a],!g.a.isInstance(e,f.b)&&e.getDataSourceName()===t){n=e.getName();for(var i=0;i<r.length;i++){var o=this.getDataProvider(n+r[i]);void 0!==o&&null!==o&&o.updateRange()}var s=this.getTimeline(t);if(void 0!==s&&s.getMaxItemCount()>0){var l=this.getRange(n);void 0!==l&&null!==l&&l.update()}}}}},{key:"layout",value:function(t,e,n,r,a,i){var o=this.getFrame(e);for(var s in o.measure(t,a-n,i-r),o.layout(n,r,a,i),this._timelines){var l=this._timelines[s];l.getFrameName()===e&&l.onLayout()}for(var c in this._dataSources)c.substring(0,e.length)===e&&this.updateRange(c)}},{key:"SelectRange",value:function(t,e){for(var n in this._ranges){this._ranges[n].getAreaName()===t.getName()?this._ranges[n].selectAt(e):this._ranges[n].unselect()}}},{key:"scale",value:function(t){if(null!==this._highlightedFrame){var e=this._highlightedFrame.getHighlightedArea();if(void 0!==this.getRange(e.getName())){var n=e.getDataSourceName(),r=this.getTimeline(n);null!==r&&(r.scale(t),this.updateRange(n))}}}},{key:"showCursor",value:function(t){void 0===t&&(t="default"),this._mainCanvas.style.cursor=t,this._overlayCanvas.style.cursor=t}},{key:"hideCursor",value:function(){this._mainCanvas.style.cursor="none",this._overlayCanvas.style.cursor="none"}},{key:"showCrossCursor",value:function(t,e,n){var r=this.getRange(t.getName());return!(void 0===r||(r.selectAt(n),void 0===(r=this.getTimeline(t.getDataSourceName()))||!r.selectAt(e)))}},{key:"hideCrossCursor",value:function(t){if(null!==t&&void 0!==t)for(var e in this._timelines){var n=this._timelines[e];n!==t&&n.unselect()}else for(var r in this._timelines)this._timelines[r].unselect();for(var a in this._ranges)this._ranges[a].unselect()}},{key:"clearHighlight",value:function(){null!==this._highlightedFrame&&void 0!==this._highlightedFrame&&(this._highlightedFrame.highlight(null),this._highlightedFrame=null)}},{key:"onToolMouseMove",value:function(t,e,n){var r=!1;for(var a in t+=".",this._dataSources)if(0===a.indexOf(t)){var i=this._dataSources[a];g.a.isInstance(i,l.b)&&i.toolManager.acceptMouseMoveEvent(e,n)&&(r=!0)}return r}},{key:"onToolMouseDown",value:function(t,e,n){var r=!1;for(var a in t+=".",this._dataSources)if(0===a.indexOf(t)){var i=this._dataSources[a];g.a.isInstance(i,l.b)&&i.toolManager.acceptMouseDownEvent(e,n)&&(r=!0)}return r}},{key:"onToolMouseUp",value:function(t,e,n){var r=!1;for(var a in t+=".",this._dataSources)if(0===a.indexOf(t)){var i=this._dataSources[a];g.a.isInstance(i,l.b)&&i.toolManager.acceptMouseUpEvent(e,n)&&(r=!0)}return r}},{key:"onToolMouseDrag",value:function(t,e,n){var r=!1;for(var a in t+=".",this._dataSources)if(0===a.indexOf(t)){var i=this._dataSources[a];g.a.isInstance(i,l.b)&&i.toolManager.acceptMouseDownMoveEvent(e,n)&&(r=!0)}return r}},{key:"onMouseMove",value:function(t,e,n,r){var a=this.getFrame(t);if(void 0!==a)if(this.setFrameMousePos(t,e,n),this.hideCrossCursor(),this._highlightedFrame!==a&&this.clearHighlight(),null===this._capturingMouseArea||void 0===this._capturingMouseArea){var i,o,s=a.contains(e,n);if(null!==s)for(o=s.length-1;o>=0;o--)if(null!==(i=(i=s[o]).onMouseMove(e,n)))return void(g.a.isInstance(i,f.b)||(a.highlight(i),this._highlightedFrame=a))}else this._capturingMouseArea.onMouseMove(e,n)}},{key:"onMouseLeave",value:function(t,e,n,r){void 0!==this.getFrame(t)&&(this.setFrameMousePos(t,e,n),this.hideCrossCursor(),this.clearHighlight(),null!==this._capturingMouseArea&&void 0!==this._capturingMouseArea&&(this._capturingMouseArea.onMouseLeave(e,n),this._capturingMouseArea=null),this._dragStarted=!1)}},{key:"onMouseDown",value:function(t,e,n){var r=this.getFrame(t);if(void 0!==r){var a,i,o=r.contains(e,n);if(null!==o)for(i=o.length-1;i>=0;i--)if(null!==(a=(a=o[i]).onMouseDown(e,n)))return void(this._capturingMouseArea=a)}}},{key:"onMouseUp",value:function(t,e,n){var a=this.getFrame(t);void 0!==a&&this._capturingMouseArea&&(null===this._capturingMouseArea.onMouseUp(e,n)&&!1===this._dragStarted&&(null!==this._selectedFrame&&void 0!==this._selectedFrame&&this._selectedFrame!==a&&this._selectedFrame.select(null),this._capturingMouseArea.isSelected()?(this._captureMouseWheelDirectly||$(this._overlayCanvas).unbind("mousewheel"),a.select(null),this._selectedFrame=null):(this._selectedFrame!==a&&(this._captureMouseWheelDirectly||$(this._overlayCanvas).bind("mousewheel",r.a.mouseWheel)),a.select(this._capturingMouseArea),this._selectedFrame=a)),this._capturingMouseArea=null,this._dragStarted=!1)}},{key:"deleteToolObject",value:function(){var t=this.getDataSource("frame0.k0");null!==t.getSelectToolObjcet()&&t.delSelectToolObject();var e=t.getCurrentToolObject();null!==e&&e.getState()!==d.n.state.AfterDraw&&t.delToolObject(),this.setNormalMode()}},{key:"unloadTemplate",value:function(t){if(void 0!==this.getFrame(t)){for(var e in this._dataSources)e.match(t+".")&&delete this._dataSources[e];for(var n in this._dataProviders)this._dataProviders[n].getFrameName()===t&&delete this._dataProviders[n];for(var r in delete this._frames[t],this._areas)this._areas[r].getFrameName()===t&&delete this._areas[r];for(var a in this._timelines)this._timelines[a].getFrameName()===t&&delete this._timelines[a];for(var i in this._ranges)this._ranges[i].getFrameName()===t&&delete this._ranges[i];for(var o in this._plotters)this._plotters[o].getFrameName()===t&&delete this._plotters[o];delete this._themes[t],delete this._frameMousePos[t]}}},{key:"createIndicatorAndRange",value:function(t,e,n){var r,a;switch(e){case"MA":r=new i.j,a=new o.c(t);break;case"EMA":r=new i.e,a=new o.c(t);break;case"VOLUME":r=new i.s,a=new o.e(t);break;case"MACD":r=new i.i,a=new o.f(t);break;case"DMI":r=new i.d,a=new o.b(t);break;case"DMA":r=new i.c,a=new o.d(t);break;case"TRIX":r=new i.r,a=new o.d(t);break;case"BRAR":r=new i.b,a=new o.d(t);break;case"VR":r=new i.t,a=new o.d(t);break;case"OBV":r=new i.l,a=new o.d(t);break;case"EMV":r=new i.f,a=new o.d(t);break;case"RSI":r=new i.o,a=new o.b(t);break;case"WR":r=new i.u,a=new o.b(t);break;case"SAR":r=new i.p,a=new o.c(t);break;case"KDJ":r=new i.h,a=new o.b(t);break;case"ROC":r=new i.n,a=new o.d(t);break;case"MTM":r=new i.k,a=new o.d(t);break;case"BOLL":r=new i.a,a=new o.d(t);break;case"PSY":r=new i.m,a=new o.d(t);break;case"StochRSI":r=new i.q,a=new o.b(t);break;default:return null}return n||r.setParameters(c.a.get().indics[e]),{indic:r,range:a}}},{key:"setMainIndicator",value:function(t,e){var n,r=t+".main",a=this.getDataProvider(r+".main");if(void 0===a||!g.a.isInstance(a,u.b))return!1;switch(e){case"MA":n=new i.j;break;case"EMA":n=new i.e;break;case"BOLL":n=new i.a;break;case"SAR":n=new i.p;break;default:return!1}n.setParameters(c.a.get().indics[e]);var o=r+".secondary",s=this.getDataProvider(o);void 0===s&&(s=new u.a(o),this.setDataProvider(s.getName(),s)),s.setIndicator(n);var l=this.getPlotter(o);return void 0===l&&(l=new _.w(o),this.setPlotter(l.getName(),l)),this.getArea(r).setChanged(!0),!0}},{key:"setIndicator",value:function(t,e){var n=this.getArea(t);if(null===n||void 0===n||"main"===n.getNameObject().getCompAt(2))return!1;var r=this.getDataProvider(t+".secondary");if(null===r||void 0===r||!g.a.isInstance(r,u.a))return!1;var a=this.createIndicatorAndRange(t,e);if(null===a||void 0===a)return!1;var o=a.indic,s=a.range;if(this.removeDataProvider(t+".main"),this.removePlotter(t+".main"),this.removeRange(t),this.removePlotter(t+"Range.decoration"),r.setIndicator(o),this.setRange(t,s),s.setPaddingTop(20),s.setPaddingBottom(4),s.setMinInterval(20),g.a.isInstance(o,i.s)){var l=new _.y(t+"Range.decoration");this.setPlotter(l.getName(),l)}else if(g.a.isInstance(o,i.a)||g.a.isInstance(o,i.p)){var c=new u.b(t+".main");this.setDataProvider(c.getName(),c),c.updateData();var h=new _.C(t+".main");this.setPlotter(h.getName(),h)}return!0}},{key:"removeMainIndicator",value:function(t){var e=t+".main",n=e+".secondary",r=this.getDataProvider(n);void 0!==r&&g.a.isInstance(r,u.a)&&(this.removeDataProvider(n),this.removePlotter(n),this.getArea(e).setChanged(!0))}},{key:"removeIndicator",value:function(t){var e=this.getArea(t);if(void 0!==e&&"main"!==e.getNameObject().getCompAt(2)){var n=this.getDataProvider(t+".secondary");if(void 0!==n&&g.a.isInstance(n,u.a)){var r=t+"Range",a=this.getArea(r);if(void 0!==a){var i=this.getArea(e.getDataSourceName()+".charts");if(void 0!==i){for(var o in i.removeArea(e),this.removeArea(t),i.removeArea(a),this.removeArea(r),this._dataProviders)this._dataProviders[o].getAreaName()===t&&this.removeDataProvider(o);for(var s in this._ranges)this._ranges[s].getAreaName()===t&&this.removeRange(s);for(var l in this._plotters)this._plotters[l].getAreaName()===t&&this.removePlotter(l);for(var c in this._plotters)this._plotters[c].getAreaName()===r&&this.removePlotter(c)}}}}}},{key:"getIndicatorParameters",value:function(t){var e=this._fakeIndicators[t];if(void 0===e){var n=this.createIndicatorAndRange("",t);if(null===n)return null;this._fakeIndicators[t]=e=n.indic}var r,a=[],i=e.getParameterCount();for(r=0;r<i;r++)a.push(e.getParameterAt(r));return a}},{key:"setIndicatorParameters",value:function(t,e){var n,r;for(n in this._dataProviders){var a=this._dataProviders[n];!1!==g.a.isInstance(a,u.a)&&((r=a.getIndicator()).getName()===t&&(r.setParameters(e),a.refresh(),this.getArea(a.getAreaName()).setChanged(!0)))}if(void 0===(r=this._fakeIndicators[t])){var i=this.createIndicatorAndRange("",t,!0);if(null===i)return;this._fakeIndicators[t]=r=i.indic}r.setParameters(e)}},{key:"getIndicatorAreaName",value:function(t,e){var n=this.getArea(t+".charts"),r=n.getAreaCount()>>1;return e<0||e>=r?"":n.getAreaAt(e<<1).getName()}}]),t}();m.DrawingTool={Cursor:0,CrossCursor:1,DrawLines:2,DrawFibRetrace:3,DrawFibFans:4,SegLine:5,StraightLine:6,ArrowLine:7,RayLine:8,HoriStraightLine:9,HoriRayLine:10,HoriSegLine:11,VertiStraightLine:12,PriceLine:13,BiParallelLine:14,BiParallelRayLine:15,TriParallelLine:16,BandLine:17},m.created=!1,m.instance=null},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(15);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._nameObj=new r.a(e)}return function(t,e,n){e&&a(t.prototype,e),n&&a(t,n)}(t,[{key:"getFrameName",value:function(){return this._nameObj.getName(0)}},{key:"getDataSourceName",value:function(){return this._nameObj.getName(1)}},{key:"getAreaName",value:function(){return this._nameObj.getName(2)}},{key:"getName",value:function(){return this._nameObj.getName(-1)}},{key:"getNameObject",value:function(){return this._nameObj}},{key:"getRectCrossPt",value:function(t,e,n){var r={x:-1,y:-1},a={x:-1,y:-1},i=n.x-e.x,o=n.y-e.y;if(Math.abs(i)<2)return[r={x:e.x,y:t.top},a={x:n.x,y:t.bottom}];var s=o/i;return a.x=t.right,a.y=e.y+(t.right-e.x)*s,r.x=t.left,r.y=e.y+(t.left-e.x)*s,[r,a]}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return g});var r=n(1),a=n(22),i=n(3);function o(t){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){u(n,r["a"]);var e=_(n);function n(t){return s(this,n),e.call(this,t)}return c(n,[{key:"getUpdateMode",value:function(){return this._updateMode}},{key:"setUpdateMode",value:function(t){this._updateMode=t}},{key:"getCacheSize",value:function(){return 0}},{key:"getDataCount",value:function(){return 0}},{key:"getDataAt",value:function(t){return this._dataItems[t]}}]),n}();f.UpdateMode={DoNothing:0,Refresh:1,Update:2,Append:3};var g=function(t){u(n,f);var e=_(n);function n(t){var r;return s(this,n),(r=e.call(this,t))._erasedCount=0,r._dataItems=[],r._decimalDigits=0,r.toolManager=new a.a(t),r}return c(n,[{key:"getCacheSize",value:function(){return this._dataItems.length}},{key:"getDataCount",value:function(){return this._dataItems.length}},{key:"getUpdatedCount",value:function(){return this._updatedCount}},{key:"getAppendedCount",value:function(){return this._appendedCount}},{key:"getErasedCount",value:function(){return this._erasedCount}},{key:"getDecimalDigits",value:function(){return this._decimalDigits}},{key:"calcDecimalDigits",value:function(t){var e=""+t,n=e.indexOf(".");return n<0?0:e.length-1-n}},{key:"getLastDate",value:function(){var t=this.getDataCount();return t<1?-1:this.getDataAt(t-1).date}},{key:"getDataAt",value:function(t){return this._dataItems[t]}},{key:"update",value:function(t){this._updatedCount=0,this._appendedCount=0,this._erasedCount=0;var e=this._dataItems.length;if(e>0){var n,r,a=e-1,o=this._dataItems[a],s=t.length;for(r=0;r<s;r++)if((n=t[r])[0]===o.date){if(o.open===n[1]&&o.high===n[2]&&o.low===n[3]&&o.close===n[4]&&o.volume===n[5]?this.setUpdateMode(f.UpdateMode.DoNothing):(this.setUpdateMode(f.UpdateMode.Update),this._dataItems[a]={date:n[0],open:n[1],high:n[2],low:n[3],close:n[4],volume:n[5]},this._updatedCount++),++r<s)for(this.setUpdateMode(f.UpdateMode.Append);r<s;r++,this._appendedCount++)n=t[r],this._dataItems.push({date:n[0],open:n[1],high:n[2],low:n[3],close:n[4],volume:n[5]});return!0}if(s<i.a.instance.limit)return this.setUpdateMode(f.UpdateMode.DoNothing),!1}this.setUpdateMode(f.UpdateMode.Refresh),this._dataItems=[];var l,c,u,h,_=t.length;for(h=0;h<_;h++){for(u=t[h],c=1;c<=4;c++)l=this.calcDecimalDigits(u[c]),this._decimalDigits<l&&(this._decimalDigits=l);this._dataItems.push({date:u[0],open:u[1],high:u[2],low:u[3],close:u[4],volume:u[5]})}return!0}},{key:"select",value:function(t){this.toolManager.selecedObject=t}},{key:"unselect",value:function(){this.toolManager.selecedObject=-1}},{key:"addToolObject",value:function(t){this.toolManager.addToolObject(t)}},{key:"delToolObject",value:function(){this.toolManager.delCurrentObject()}},{key:"getToolObject",value:function(t){return this.toolManager.getToolObject(t)}},{key:"getToolObjectCount",value:function(){return this.toolManager.toolObjects.length}},{key:"getCurrentToolObject",value:function(){return this.toolManager.getCurrentObject()}},{key:"getSelectToolObjcet",value:function(){return this.toolManager.getSelectedObject()}},{key:"delSelectToolObject",value:function(){this.toolManager.delSelectedObject()}}]),n}()},function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n(8),a=n(14),i=n(0),o=n(4),s=n(7),l=n(26),c=(n.n(l),n(42)),u=n.n(c),h=n(19),_=n.n(h);function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element="#kline_container",this.chartMgr=null,this.G_HTTP_REQUEST=null,this.timer=null,this.buttonDown=!1,this.init=!1,this.requestParam="",this.data={},this.width=1200,this.height=650,this.symbol="",this.symbolName="",this.range=null,this.url="",this.limit=1e3,this.type="poll",this.subscribePath="",this.sendPath="",this.stompClient=null,this.intervalTime=5e3,this.debug=!0,this.language="zh-cn",this.theme="dark",this.ranges=["1w","1d","1h","30m","15m","5m","1m","line"],this.showTrade=!0,this.tradeWidth=250,this.socketConnected=!1,this.enableSockjs=!0,this.reverseColor=!1,this.isSized=!1,this.paused=!1,this.subscribed=null,this.disableFirebase=!1,this.periodMap={"01w":6048e5,"03d":2592e5,"01d":864e5,"12h":432e5,"06h":216e5,"04h":144e5,"02h":72e5,"01h":36e5,"30m":18e5,"15m":9e5,"05m":3e5,"03m":18e4,"01m":6e4,line:6e4},this.tagMapPeriod={"1w":"01w","3d":"03d","1d":"01d","12h":"12h","6h":"06h","4h":"04h","2h":"02h","1h":"01h","30m":"30m","15m":"15m","5m":"05m","3m":"03m","1m":"01m",line:"line"},Object.assign(this,e),t.created||(t.instance=this,t.created=!0),t.instance}return function(t,e,n){e&&d(t.prototype,e),n&&d(t,n)}(t,[{key:"draw",value:function(){t.trade=new a.a,t.chartMgr=new i.a;var e=_.a.parseHTML(u.a);for(var n in this.ranges){_()(e).find('[name="'+this.ranges[n]+'"]').each(function(t,e){_()(e).attr("style","display:inline-block")})}_()(this.element).html(e),setInterval(r.a.refreshFunction,this.intervalTime),"stomp"===this.type&&r.a.socketConnect(),this.registerMouseEvent(),i.a.instance.bindCanvas("main",document.getElementById("chart_mainCanvas")),i.a.instance.bindCanvas("overlay",document.getElementById("chart_overlayCanvas")),r.a.refreshTemplate(),r.a.onSize(this.width,this.height),r.a.readCookie(),this.setTheme(this.theme),this.setLanguage(this.language),_()(this.element).css({visibility:"visible"})}},{key:"resize",value:function(t,e){this.width=t,this.height=e,r.a.onSize(this.width,this.height)}},{key:"setSymbol",value:function(t,e){this.symbol=t,this.symbolName=e,r.a.switchSymbol(t),this.onSymbolChange(t,e)}},{key:"setTheme",value:function(t){this.theme=t,r.a.switchTheme(t)}},{key:"setLanguage",value:function(t){this.language=t,r.a.chartSwitchLanguage(t)}},{key:"setShowTrade",value:function(t){this.showTrade=t,t?_()(".trade_container").show():_()(".trade_container").hide(),r.a.onSize(this.width,this.height)}},{key:"toggleTrade",value:function(){this.showTrade?(this.showTrade=!1,_()(".trade_container").hide()):(this.showTrade=!0,_()(".trade_container").show()),r.a.onSize(this.width,this.height)}},{key:"setIntervalTime",value:function(t){this.intervalTime=t,this.debug&&console.log("DEBUG: interval time changed to "+t)}},{key:"pause",value:function(){this.debug&&console.log("DEBUG: kline paused"),this.paused=!0}},{key:"resend",value:function(){this.debug&&console.log("DEBUG: kline continue"),this.paused=!1,r.a.requestData(!0)}},{key:"connect",value:function(){"stomp"===this.type?r.a.socketConnect():this.debug&&console.log("DEBUG: this is for stomp type")}},{key:"disconnect",value:function(){"stomp"===this.type?(this.stompClient&&(this.stompClient.disconnect(),this.socketConnected=!1),this.debug&&console.log("DEBUG: socket disconnected")):this.debug&&console.log("DEBUG: this is for stomp type")}},{key:"onResize",value:function(t,e){this.debug&&console.log("DEBUG: chart resized to width: "+t+" height: "+e)}},{key:"onLangChange",value:function(t){this.debug&&console.log("DEBUG: language changed to "+t)}},{key:"onSymbolChange",value:function(t,e){this.debug&&console.log("DEBUG: symbol changed to "+t+" "+e)}},{key:"onThemeChange",value:function(t){this.debug&&console.log("DEBUG: themes changed to : "+t)}},{key:"onRangeChange",value:function(t){this.debug&&console.log("DEBUG: range changed to "+t)}},{key:"registerMouseEvent",value:function(){_()(document).ready(function(){_()("#chart_overlayCanvas").bind("contextmenu",function(t){return t.cancelBubble=!0,t.returnValue=!1,t.preventDefault(),t.stopPropagation(),!1}),_()(".chart_container .chart_dropdown .chart_dropdown_t").mouseover(function(){var t=_()(".chart_container"),e=_()(this),n=e.next(),r=t.offset().left,a=e.offset().left,i=t.width(),o=e.width(),s=(n.width()-o)/2<<0;a-s<r+4?s=a-r-4:s+=a+o+s>r+i-4?a+o+s-(r+i-4)+19:4,n.css({"margin-left":-s}),e.addClass("chart_dropdown-hover"),n.addClass("chart_dropdown-hover")}).mouseout(function(){_()(this).next().removeClass("chart_dropdown-hover"),_()(this).removeClass("chart_dropdown-hover")}),_()(".chart_dropdown_data").mouseover(function(){_()(this).addClass("chart_dropdown-hover"),_()(this).prev().addClass("chart_dropdown-hover")}).mouseout(function(){_()(this).prev().removeClass("chart_dropdown-hover"),_()(this).removeClass("chart_dropdown-hover")}),_()("#chart_btn_parameter_settings").click(function(){_()("#chart_parameter_settings").addClass("clicked"),_()(".chart_dropdown_data").removeClass("chart_dropdown-hover"),_()("#chart_parameter_settings").find("th").each(function(){var t=_()(this).html(),e=0,n=o.a.get().indics[t];_()(this.nextElementSibling).find("input").each(function(){null!==n&&e<n.length&&_()(this).val(n[e]),e++})})}),_()("#close_settings").click(function(){_()("#chart_parameter_settings").removeClass("clicked")}),_()(".chart_container .chart_toolbar_tabgroup a").click(function(){r.a.switchPeriod(_()(this).parent().attr("name"))}),_()("#chart_toolbar_periods_vert ul a").click(function(){r.a.switchPeriod(_()(this).parent().attr("name"))}),_()(".market_chooser ul a").click(function(){r.a.switchSymbol(_()(this).attr("name"))}),_()("#chart_show_tools").click(function(){_()(this).hasClass("selected")?r.a.switchTools("off"):r.a.switchTools("on")}),_()("#chart_toolpanel .chart_toolpanel_button").click(function(){_()(".chart_dropdown_data").removeClass("chart_dropdown-hover"),_()("#chart_toolpanel .chart_toolpanel_button").removeClass("selected"),_()(this).addClass("selected");var e=_()(this).children().attr("name");t.instance.chartMgr.setRunningMode(i.a.DrawingTool[e])}),_()("#chart_show_indicator").click(function(){_()(this).hasClass("selected")?r.a.switchIndic("off"):r.a.switchIndic("on")}),_()("#chart_tabbar li a").click(function(){_()("#chart_tabbar li a").removeClass("selected"),_()(this).addClass("selected");var t=_()(this).attr("name");o.a.get().charts.indics[1]=t,o.a.save(),!1===s.b.displayVolume?i.a.instance.getChart().setIndicator(1,t):i.a.instance.getChart().setIndicator(2,t)}),_()("#chart_select_chart_style a").click(function(){_()("#chart_select_chart_style a").removeClass("selected"),_()(this).addClass("selected"),o.a.get().charts.chartStyle=_()(this)[0].innerHTML,o.a.save();var t=i.a.instance;t.setChartStyle("frame0.k0",_()(this).html()),t.redraw()}),_()("#chart_dropdown_themes li").click(function(){_()("#chart_dropdown_themes li a").removeClass("selected");var t=_()(this).attr("name");"chart_themes_dark"===t?r.a.switchTheme("dark"):"chart_themes_light"===t&&r.a.switchTheme("light")}),_()("#chart_select_main_indicator a").click(function(){_()("#chart_select_main_indicator a").removeClass("selected"),_()(this).addClass("selected");var t=_()(this).attr("name");o.a.get().charts.mIndic=t,o.a.save();var e=i.a.instance;e.setMainIndicator("frame0.k0",t)||e.removeMainIndicator("frame0.k0"),e.redraw()}),_()("#chart_toolbar_theme a").click(function(){_()("#chart_toolbar_theme a").removeClass("selected"),"dark"===_()(this).attr("name")?r.a.switchTheme("dark"):"light"===_()(this).attr("name")&&r.a.switchTheme("light")}),_()("#chart_select_theme li a").click(function(){_()("#chart_select_theme a").removeClass("selected"),"dark"===_()(this).attr("name")?r.a.switchTheme("dark"):"light"===_()(this).attr("name")&&r.a.switchTheme("light")}),_()("#chart_enable_tools li a").click(function(){_()("#chart_enable_tools a").removeClass("selected"),"on"===_()(this).attr("name")?r.a.switchTools("on"):"off"===_()(this).attr("name")&&r.a.switchTools("off")}),_()("#chart_enable_indicator li a").click(function(){_()("#chart_enable_indicator a").removeClass("selected"),"on"===_()(this).attr("name")?r.a.switchIndic("on"):"off"===_()(this).attr("name")&&r.a.switchIndic("off")}),_()("#chart_language_setting_div li a").click(function(){_()("#chart_language_setting_div a").removeClass("selected"),"zh-cn"===_()(this).attr("name")?r.a.chartSwitchLanguage("zh-cn"):"en-us"===_()(this).attr("name")?r.a.chartSwitchLanguage("en-us"):"zh-tw"===_()(this).attr("name")&&r.a.chartSwitchLanguage("zh-tw")}),_()(document).keyup(function(t){46===t.keyCode&&(i.a.instance.deleteToolObject(),i.a.instance.redraw("OverlayCanvas",!1))}),_()("#clearCanvas").click(function(){for(var t=i.a.instance.getDataSource("frame0.k0"),e=t.getToolObjectCount(),n=0;n<e;n++)t.delToolObject();i.a.instance.redraw("OverlayCanvas",!1)}),_()("#chart_overlayCanvas").mousemove(function(e){var n=e.target.getBoundingClientRect(),r=e.clientX-n.left,a=e.clientY-n.top,o=i.a.instance;!0===t.instance.buttonDown?(o.onMouseMove("frame0",r,a,!0),o.redraw("All",!1)):(o.onMouseMove("frame0",r,a,!1),o.redraw("OverlayCanvas"))}).mouseleave(function(t){var e=t.target.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top,a=i.a.instance;a.onMouseLeave("frame0",n,r,!1),a.redraw("OverlayCanvas")}).mouseup(function(e){if(1===e.which){t.instance.buttonDown=!1;var n=e.target.getBoundingClientRect(),r=e.clientX-n.left,a=e.clientY-n.top,o=i.a.instance;o.onMouseUp("frame0",r,a),o.redraw("All")}}).mousedown(function(e){if(1!==e.which)return i.a.instance.deleteToolObject(),void i.a.instance.redraw("OverlayCanvas",!1);t.instance.buttonDown=!0;var n=e.target.getBoundingClientRect(),r=e.clientX-n.left,a=e.clientY-n.top;i.a.instance.onMouseDown("frame0",r,a)}),_()("#chart_parameter_settings :input").change(function(){var t=_()(this).attr("name"),e=0,n=[],r=i.a.instance;if(_()("#chart_parameter_settings :input").each(function(){if(_()(this).attr("name")===t){if(""!==_()(this).val()&&null!==_()(this).val()&&void 0!==_()(this).val()){var r=parseInt(_()(this).val());n.push(r)}e++}}),0!==n.length){r.setIndicatorParameters(t,n);var a=r.getIndicatorParameters(t),s=[];e=0,_()("#chart_parameter_settings :input").each(function(){_()(this).attr("name")===t&&(""!==_()(this).val()&&null!==_()(this).val()&&void 0!==_()(this).val()&&(_()(this).val(a[e].getValue()),s.push(a[e].getValue())),e++)}),o.a.get().indics[t]=s,o.a.save(),r.redraw("All",!1)}}),_()("#chart_parameter_settings button").click(function(){var t=_()(this).parents("tr").children("th").html(),e=0,n=i.a.instance.getIndicatorParameters(t),r=[];_()(this).parent().prev().children("input").each(function(){null!==n&&e<n.length&&(_()(this).val(n[e].getDefaultValue()),r.push(n[e].getDefaultValue())),e++}),i.a.instance.setIndicatorParameters(t,r),o.a.get().indics[t]=r,o.a.save(),i.a.instance.redraw("All",!1)}),_()("body").on("click","#sizeIcon",function(){t.instance.isSized=!t.instance.isSized,t.instance.isSized?(_()(t.instance.element).css({position:"fixed",left:"0",right:"0",top:"0",bottom:"0",width:"100%",height:"100%",zIndex:"10000"}),r.a.onSize(),_()("html,body").css({width:"100%",height:"100%",overflow:"hidden"})):(_()(t.instance.element).attr("style",""),_()("html,body").attr("style",""),r.a.onSize(t.instance.width,t.instance.height),_()(t.instance.element).css({visibility:"visible",height:t.instance.height+"px"}))})})}}]),t}();f.created=!1,f.instance=null},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&a(t.prototype,e),n&&a(t,n)}(t,null,[{key:"checkVersion",value:function(){if(t._data.ver<2){t._data.ver=2;var e=t._data.charts;e.period_weight={},e.period_weight.line=8,e.period_weight["1min"]=7,e.period_weight["5min"]=6,e.period_weight["15min"]=5,e.period_weight["30min"]=4,e.period_weight["1hour"]=3,e.period_weight["1day"]=2,e.period_weight["1week"]=1,e.period_weight["3min"]=0,e.period_weight["2hour"]=0,e.period_weight["4hour"]=0,e.period_weight["6hour"]=0,e.period_weight["12hour"]=0,e.period_weight["3day"]=0}t._data.ver<3&&(t._data.ver=3,t._data.charts.areaHeight=[])}},{key:"get",value:function(){return void 0===t._data&&(t.init(),t.load(),t.checkVersion()),t._data}},{key:"init",value:function(){for(var e={},n=["MA","EMA","VOLUME","MACD","KDJ","StochRSI","RSI","DMI","OBV","BOLL","DMA","TRIX","BRAR","VR","EMV","WR","ROC","MTM","PSY"],a=0;a<n.length;a++){var i=r.a.instance.createIndicatorAndRange("",n[a],!0);if(null!==i){e[n[a]]=[];for(var o=i.indic.getParameters(),s=0;s<o.length;s++)e[n[a]].push(o[s])}}var l={chartStyle:"CandleStick",mIndic:"MA",indics:["VOLUME","MACD"],indicsStatus:"open",period:"15m"};t._data={ver:1,charts:l,indics:e,theme:"Dark"},t.checkVersion()}},{key:"load",value:function(){if(!(document.cookie.length<=0)){var e=document.cookie.indexOf("chartSettings=");if(!(e<0)){e+="chartSettings=".length;var n=document.cookie.indexOf(";",e);n<0&&(n=document.cookie.length);var r=unescape(document.cookie.substring(e,n));t._data=JSON.parse(r)}}}},{key:"save",value:function(){var e=new Date;e.setDate(e.getDate()+2),document.cookie="chartSettings="+escape(JSON.stringify(t._data))+";expires="+e.toGMTString()}}]),t}()},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",function(){return a});var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&r(t.prototype,e),n&&r(t,n)}(t,null,[{key:"fromFloat",value:function(t,e){for(var n=t.toFixed(e),r=n.length-1;r>=0;r--){if("."===n[r])return n.substring(0,r);if("0"!==n[r])return n.substring(0,r+1)}}},{key:"formatTime",value:function(t){return t<10?"0"+t.toString():t.toString()}},{key:"isInstance",value:function(t,e){return null!==t&&void 0!==t&&t instanceof e}}]),t}()},function(t,e,n){"use strict";n.d(e,"c",function(){return h}),n.d(e,"a",function(){return _}),n.d(e,"b",function(){return d});var r=n(3);function a(t){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var h=function(){function t(){c(this,t),this.getFont=function(t){return this._fonts[t]}}return function(t,e,n){e&&u(t.prototype,e),n&&u(t,n)}(t,[{key:"getColor",value:function(t){return this._colors[t]}}]),t}();h.theme_color_id=0,h.theme_font_id=0,h.Color={Positive:h.theme_color_id++,Negative:h.theme_color_id++,PositiveDark:h.theme_color_id++,NegativeDark:h.theme_color_id++,Unchanged:h.theme_color_id++,Background:h.theme_color_id++,Cursor:h.theme_color_id++,RangeMark:h.theme_color_id++,Indicator0:h.theme_color_id++,Indicator1:h.theme_color_id++,Indicator2:h.theme_color_id++,Indicator3:h.theme_color_id++,Indicator4:h.theme_color_id++,Indicator5:h.theme_color_id++,Grid0:h.theme_color_id++,Grid1:h.theme_color_id++,Grid2:h.theme_color_id++,Grid3:h.theme_color_id++,Grid4:h.theme_color_id++,TextPositive:h.theme_color_id++,TextNegative:h.theme_color_id++,Text0:h.theme_color_id++,Text1:h.theme_color_id++,Text2:h.theme_color_id++,Text3:h.theme_color_id++,Text4:h.theme_color_id++,LineColorNormal:h.theme_color_id++,LineColorSelected:h.theme_color_id++,CircleColorFill:h.theme_color_id++,CircleColorStroke:h.theme_color_id++},h.Font={Default:h.theme_font_id++};var _=function(t){i(n,h);var e=s(n);function n(){var t;return c(this,n),(t=e.call(this))._colors=[],r.a.instance.reverseColor?(t._colors[h.Color.Positive]="#990e0e",t._colors[h.Color.Negative]="#19b34c",t._colors[h.Color.PositiveDark]="#3b0e08",t._colors[h.Color.NegativeDark]="#004718"):(t._colors[h.Color.Positive]="#19b34c",t._colors[h.Color.Negative]="#990e0e",t._colors[h.Color.PositiveDark]="#004718",t._colors[h.Color.NegativeDark]="#3b0e08"),t._colors[h.Color.Unchanged]="#fff",t._colors[h.Color.Background]="#0a0a0a",t._colors[h.Color.Cursor]="#aaa",t._colors[h.Color.RangeMark]="#f9ee30",t._colors[h.Color.Indicator0]="#ddd",t._colors[h.Color.Indicator1]="#f9ee30",t._colors[h.Color.Indicator2]="#f600ff",t._colors[h.Color.Indicator3]="#6bf",t._colors[h.Color.Indicator4]="#a5cf81",t._colors[h.Color.Indicator5]="#e18b89",t._colors[h.Color.Grid0]="#333",t._colors[h.Color.Grid1]="#444",t._colors[h.Color.Grid2]="#666",t._colors[h.Color.Grid3]="#888",t._colors[h.Color.Grid4]="#aaa",t._colors[h.Color.TextPositive]="#1bd357",t._colors[h.Color.TextNegative]="#ff6f5e",t._colors[h.Color.Text0]="#444",t._colors[h.Color.Text1]="#666",t._colors[h.Color.Text2]="#888",t._colors[h.Color.Text3]="#aaa",t._colors[h.Color.Text4]="#ccc",t._colors[h.Color.LineColorNormal]="#a6a6a6",t._colors[h.Color.LineColorSelected]="#ffffff",t._colors[h.Color.CircleColorFill]="#000000",t._colors[h.Color.CircleColorStroke]="#ffffff",t._fonts=[],t._fonts[h.Font.Default]="12px Tahoma",t}return n}(),d=function(t){i(n,h);var e=s(n);function n(){var t;return c(this,n),(t=e.call(this))._colors=[],r.a.instance.reverseColor?(t._colors[h.Color.Positive]="#db5542",t._colors[h.Color.Negative]="#53b37b",t._colors[h.Color.PositiveDark]="#ffadaa",t._colors[h.Color.NegativeDark]="#66d293"):(t._colors[h.Color.Positive]="#53b37b",t._colors[h.Color.Negative]="#db5542",t._colors[h.Color.PositiveDark]="#66d293",t._colors[h.Color.NegativeDark]="#ffadaa"),t._colors[h.Color.Unchanged]="#fff",t._colors[h.Color.Background]="#fff",t._colors[h.Color.Cursor]="#aaa",t._colors[h.Color.RangeMark]="#f27935",t._colors[h.Color.Indicator0]="#2fd2b2",t._colors[h.Color.Indicator1]="#ffb400",t._colors[h.Color.Indicator2]="#e849b9",t._colors[h.Color.Indicator3]="#1478c8",t._colors[h.Color.Grid0]="#eee",t._colors[h.Color.Grid1]="#afb1b3",t._colors[h.Color.Grid2]="#ccc",t._colors[h.Color.Grid3]="#bbb",t._colors[h.Color.Grid4]="#aaa",t._colors[h.Color.TextPositive]="#53b37b",t._colors[h.Color.TextNegative]="#db5542",t._colors[h.Color.Text0]="#ccc",t._colors[h.Color.Text1]="#aaa",t._colors[h.Color.Text2]="#888",t._colors[h.Color.Text3]="#666",t._colors[h.Color.Text4]="#444",t._colors[h.Color.LineColorNormal]="#8c8c8c",t._colors[h.Color.LineColorSelected]="#393c40",t._colors[h.Color.CircleColorFill]="#ffffff",t._colors[h.Color.CircleColorStroke]="#393c40",t._fonts=[],t._fonts[h.Font.Default]="12px Tahoma",t}return n}()},function(t,e,n){"use strict";n.d(e,"b",function(){return w}),n.d(e,"a",function(){return P});var r=n(0),a=n(4),i=n(2),o=n(12),s=n(13),l=n(11),c=n(23),u=n(15),h=n(24),_=n(6),d=n(18);function f(t){"@babel/helpers - typeof";return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}var w=function(){function t(){v(this,t)}return b(t,null,[{key:"createCandlestickDataSource",value:function(t){return new i.b(t)}},{key:"createDataSource",value:function(t,e,n){var a=r.a.instance;null===a.getCachedDataSource(e)&&a.setCachedDataSource(e,n(e)),a.setCurrentDataSource(t,e),a.updateData(t,null)}},{key:"createTableComps",value:function(t){this.createMainChartComps(t),this.displayVolume&&this.createIndicatorChartComps(t,"VOLUME"),this.createTimelineComps(t)}},{key:"createMainChartComps",value:function(t){var e=r.a.instance,n=e.getArea(t+".charts"),a=t+".main",i=a+"Range",c=new s.e(a);e.setArea(a,c),n.addArea(c);var u=new s.f(i);e.setArea(i,u),n.addArea(u);var h=new o.b(a+".main");e.setDataProvider(h.getName(),h),e.setMainIndicator(t,"MA");var _=new d.a(a);e.setRange(_.getName(),_),_.setPaddingTop(28),_.setPaddingBottom(12);var f=new l.z(a+".background");e.setPlotter(f.getName(),f),f=new l.c(a+".grid"),e.setPlotter(f.getName(),f),f=new l.f(a+".main"),e.setPlotter(f.getName(),f),f=new l.B(a+".decoration"),e.setPlotter(f.getName(),f),f=new l.A(a+".info"),e.setPlotter(f.getName(),f),f=new l.G(a+".selection"),e.setPlotter(f.getName(),f),f=new l.b(a+".tool"),e.setPlotter(f.getName(),f),f=new l.D(a+"Range.background"),e.setPlotter(f.getName(),f),f=new l.d(a+"Range.grid"),e.setPlotter(f.getName(),f),f=new l.E(a+"Range.main"),e.setPlotter(f.getName(),f),f=new l.F(a+"Range.selection"),e.setPlotter(f.getName(),f),f=new l.x(a+"Range.decoration"),e.setPlotter(f.getName(),f)}},{key:"createIndicatorChartComps",value:function(t,e){var n=r.a.instance,i=n.getArea(t+".charts"),c=t+".indic"+i.getNextRowId(),u=c+"Range",h=new s.c(c);n.setArea(c,h),i.addArea(h);var _=i.getAreaCount()>>1,d=a.a.get().charts.areaHeight;if(d.length>_){var f,g;for(g=0;g<_;g++)(f=i.getAreaAt(g<<1)).setTop(0),f.setBottom(d[g]);h.setTop(0),h.setBottom(d[_])}var p=new s.d(u);n.setArea(u,p),i.addArea(p);var m=new o.a(c+".secondary");if(n.setDataProvider(m.getName(),m),!1!==n.setIndicator(c,e)){var v=new l.z(c+".background");n.setPlotter(v.getName(),v),v=new l.c(c+".grid"),n.setPlotter(v.getName(),v),v=new l.w(c+".secondary"),n.setPlotter(v.getName(),v),v=new l.v(c+".info"),n.setPlotter(v.getName(),v),v=new l.G(c+".selection"),n.setPlotter(v.getName(),v),v=new l.D(c+"Range.background"),n.setPlotter(v.getName(),v),v=new l.E(c+"Range.main"),n.setPlotter(v.getName(),v),v=new l.F(c+"Range.selection"),n.setPlotter(v.getName(),v)}else n.removeIndicator(c)}},{key:"createTimelineComps",value:function(t){var e,n=r.a.instance,a=new c.a(t);n.setTimeline(a.getName(),a),e=new l.H(t+".timeline.background"),n.setPlotter(e.getName(),e),e=new l.I(t+".timeline.main"),n.setPlotter(e.getName(),e),e=new l.J(t+".timeline.selection"),n.setPlotter(e.getName(),e)}},{key:"createLiveOrderComps",value:function(t){var e,n=r.a.instance;e=new l.a(t+".main.background"),n.setPlotter(e.getName(),e),n.setPlotter(e.getName(),e)}},{key:"createLiveTradeComps",value:function(t){var e,n=r.a.instance;e=new l.a(t+".main.background"),n.setPlotter(e.getName(),e),n.setPlotter(e.getName(),e)}}]),t}();w.displayVolume=!0;var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(n,w);var e=p(n);function n(){return v(this,n),e.apply(this,arguments)}return b(n,null,[{key:"loadTemplate",value:function(t,e){var n=r.a.instance,i=a.a.get(),o=new u.a(t).getCompAt(0);n.unloadTemplate(o),this.createDataSource(t,e,this.createCandlestickDataSource);var l=new h.a(o);n.setFrame(l.getName(),l),n.setArea(l.getName(),l),l.setGridColor(_.c.Color.Grid1);var c=new s.g(t+".timeline");n.setArea(c.getName(),c),l.addArea(c),c.setDockStyle(s.a.DockStyle.Bottom),c.Measuring.addHandler(c,A.onMeasuring);var d=new h.b(t+".charts");return n.setArea(d.getName(),d),d.setDockStyle(s.a.DockStyle.Fill),l.addArea(d),this.createTableComps(t),n.setThemeName(o,i.theme),n}}]),n}(),A=function(){function t(){v(this,t)}return b(t,null,[{key:"onMeasuring",value:function(t,e){var n=e.Width;e.Height;"timeline"===t.getNameObject().getCompAt(2)&&t.setMeasuredDimension(n,22)}}]),t}()},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Control});var __WEBPACK_IMPORTED_MODULE_0__kline__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_1__kline_trade__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_2__chart_manager__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_3__chart_settings__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__templates__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_5__mevent__=__webpack_require__(17),__WEBPACK_IMPORTED_MODULE_6_jquery__=__webpack_require__(19),__WEBPACK_IMPORTED_MODULE_6_jquery___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_jquery__);function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}var Control=function(){function Control(){_classCallCheck(this,Control)}return _createClass(Control,null,[{key:"refreshFunction",value:function(){Control.refreshCounter++;var t=__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getLanguage();if(Control.refreshCounter>3600){var e=Number(Control.refreshCounter/3600);"en-us"===t?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(e.toFixed(0)+"h"):"zh-tw"===t?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(e.toFixed(0)+"小時"):__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(e.toFixed(0)+"小时")}else if(Control.refreshCounter>60&&Control.refreshCounter<=3600){var n=Number(Control.refreshCounter/60);"en-us"===t?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(n.toFixed(0)+"m"):"zh-tw"===t?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(n.toFixed(0)+"分鐘"):__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(n.toFixed(0)+"分钟")}else Control.refreshCounter<=60&&("en-us"===t?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(Control.refreshCounter+"s"):__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(Control.refreshCounter+"秒"))}},{key:"clearRefreshCounter",value:function(){window.clearInterval(Control.refreshHandler),Control.refreshCounter=0,"en-us"===__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getLanguage()?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(Control.refreshCounter+"s"):__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_updated_time_text").html(Control.refreshCounter+"秒"),Control.refreshHandler=setInterval(Control.refreshFunction,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.intervalTime)}},{key:"requestData",value:function(t){Control.AbortRequest(),window.clearTimeout(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.timer),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.paused||(!0===t&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_loading").addClass("activated"),"stomp"===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.type&&__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient?Control.requestOverStomp():Control.requestOverHttp())}},{key:"parseRequestParam",value:function(t){return JSON.parse('{"'+decodeURI(t.replace(/&/g,'","').replace(/=/g,'":"'))+'"}')}},{key:"requestOverStomp",value:function(){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.socketConnected?__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient&&1===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.ws.readyState?__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.send(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.sendPath,{},JSON.stringify(Control.parseRequestParam(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.requestParam))):(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.debug&&console.log("DEBUG: stomp client is not ready yet ..."),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.timer=setTimeout(function(){Control.requestData(!0)},1e3)):__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.debug&&console.log("DEBUG: socket is not coonnected")}},{key:"requestOverHttp",value:function(){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.debug&&console.log("DEBUG: "+__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.requestParam),__WEBPACK_IMPORTED_MODULE_6_jquery___default()(document).ready(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.G_HTTP_REQUEST=__WEBPACK_IMPORTED_MODULE_6_jquery___default.a.ajax({type:"GET",url:__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.url,dataType:"json",data:__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.requestParam,timeout:3e4,created:Date.now(),beforeSend:function(){this.range=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range,this.symbol=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol},success:function(t){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.G_HTTP_REQUEST&&Control.requestSuccessHandler(t)},error:function(t,e,n){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.debug&&console.log(t),200===t.status&&4===t.readyState||(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.timer=setTimeout(function(){Control.requestData(!0)},__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.intervalTime))},complete:function(){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.G_HTTP_REQUEST=null}}))}},{key:"requestSuccessHandler",value:function requestSuccessHandler(res){if(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.debug&&console.log(res),res&&res.success){__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_loading").removeClass("activated");var chart=__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart();chart.setTitle(),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data=eval(res.data);var updateDataRes=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.chartMgr.updateData("frame0.k0",__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data.lines);__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.requestParam=Control.setHttpRequestParam(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range,null,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.chartMgr.getDataSource("frame0.k0").getLastDate());var intervalTime=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.intervalTime<__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range?__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.intervalTime:__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range;updateDataRes?(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data.trades&&__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data.trades.length>0&&(__WEBPACK_IMPORTED_MODULE_1__kline_trade__.a.instance.pushTrades(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data.trades),__WEBPACK_IMPORTED_MODULE_1__kline_trade__.a.instance.klineTradeInit=!0),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data.depths&&__WEBPACK_IMPORTED_MODULE_1__kline_trade__.a.instance.updateDepth(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.data.depths),Control.clearRefreshCounter(),"poll"===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.type&&(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.timer=setTimeout(Control.TwoSecondThread,intervalTime)),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.redraw("All",!1)):"poll"===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.type&&(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.timer=setTimeout(Control.requestData,intervalTime))}else"poll"===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.type&&(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.timer=setTimeout(function(){Control.requestData(!0)},__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.intervalTime))}},{key:"AbortRequest",value:function(){"stomp"===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.type&&__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient||__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.G_HTTP_REQUEST&&4!==__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.G_HTTP_REQUEST.readyState&&__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.G_HTTP_REQUEST.abort()}},{key:"TwoSecondThread",value:function(){var t=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.chartMgr.getDataSource("frame0.k0").getLastDate();__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.requestParam=-1===t?Control.setHttpRequestParam(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.limit,null):Control.setHttpRequestParam(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range,null,t.toString()),Control.requestData()}},{key:"readCookie",value:function(){__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get(),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save();var t=__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get();__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setChartStyle("frame0.k0",t.charts.chartStyle);var e=t.charts.symbol;__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.init||(e=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.init=!0),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol=e,Control.switchSymbolSelected(e);var n=t.charts.period;Control.switchPeriod(n),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_period_"+n+"_v a").addClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_period_"+n+"_h a").addClass("selected"),"close"===t.charts.indicsStatus?Control.switchIndic("off"):"open"===t.charts.indicsStatus&&Control.switchIndic("on"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_select_main_indicator").find("a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name")===t.charts.mIndic&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_select_chart_style").find("a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this)[0].innerHTML===t.charts.chartStyle&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setMainIndicator(t.charts.mIndic),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setThemeName("frame0",t.theme),Control.switchTools("off"),"Dark"===t.theme?Control.switchTheme("dark"):"Light"===t.theme&&Control.switchTheme("light"),Control.chartSwitchLanguage(t.language||"zh-cn")}},{key:"setHttpRequestParam",value:function(t,e,n,r){var a="symbol="+t+"&range="+e;return a+=null!==n?"&limit="+n:"&since="+r,0!==__WEBPACK_IMPORTED_MODULE_1__kline_trade__.a.instance.tradeDate.getTime()&&(a+="&prevTradeTime="+__WEBPACK_IMPORTED_MODULE_1__kline_trade__.a.instance.tradeDate.getTime()),a}},{key:"refreshTemplate",value:function(){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.chartMgr=__WEBPACK_IMPORTED_MODULE_4__templates__.a.loadTemplate("frame0.k0",""),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.redraw("All",!0)}},{key:"chartSwitchLanguage",value:function(t){var e=t.replace(/-/,"_");__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_language_switch_tmp").find("span").each(function(){var t=__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name"),n=__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr(e);t="."+t,__WEBPACK_IMPORTED_MODULE_6_jquery___default()(t)[0]&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(t).each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this)[0].innerHTML=n})}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_language_setting_div li a[name='"+t+"']").addClass("selected"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setLanguage(t),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setTitle(),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().language=t,__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save(),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.onLangChange(t)}},{key:"onSize",value:function(t,e){var n=t||window.innerWidth,r=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.showTrade?n-__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.tradeWidth:n,a=e||window.innerHeight;__WEBPACK_IMPORTED_MODULE_6_jquery___default()(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.element).css({width:n+"px",height:a+"px"});var i=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar"),o=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolpanel"),s=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_canvasGroup"),l=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_tabbar"),c="inline"===o[0].style.display,u="block"===l[0].style.display,h={x:0,y:0};h.w=r,h.h=29;var _={x:0};_.y=h.h+1,_.w=c?32:0,_.h=a-_.y;var d={};d.w=c?r-(_.w+1):r,d.h=u?22:-1,d.x=r-d.w,d.y=a-(d.h+1);var f={};f.x=d.x,f.y=_.y,f.w=d.w,f.h=d.y-_.y,i.css({left:h.x+"px",top:h.y+"px",width:h.w+"px",height:h.h+"px"}),c&&o.css({left:_.x+"px",top:_.y+"px",width:_.w+"px",height:_.h+"px"}),s.css({left:f.x+"px",top:f.y+"px",height:f.h+"px"});var g=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_mainCanvas")[0],p=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_overlayCanvas")[0];g.width=f.w,g.height=f.h,p.width=f.w,p.height=f.h,u&&l.css({left:d.x+"px",top:d.y+"px",width:d.w+"px",height:d.h+"px"});var m=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_parameter_settings");m.css({left:r-m.width()>>1,top:a-m.height()>>1});var v=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_loading");v.css({left:r-v.width()>>1,top:a-v.height()>>2});var y=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_dom_elem_cache"),b=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_select_theme")[0],w=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_tools")[0],P=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_indicator")[0],A=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_periods_vert"),C=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_periods_horz")[0],k=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_show_indicator")[0],M=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_show_tools")[0],D=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_theme")[0],x=__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_dropdown_settings"),E=A[0].offsetWidth,O=E+C.offsetWidth,I=O+k.offsetWidth+4,R=I+M.offsetWidth+4,T=R+D.offsetWidth,S=x.find(".chart_dropdown_t")[0].offsetWidth+150;E+=S,I+=S,R+=S,T+=S,r<(O+=S)?y.append(C):A.after(C),r<I?(y.append(k),P.style.display=""):(x.before(k),P.style.display="none"),r<R?(y.append(M),w.style.display=""):(x.before(M),w.style.display="none"),r<T?(y.append(D),b.style.display=""):(x.before(D),b.style.display="none"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.redraw("All",!0),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.onResize(n,a)}},{key:"mouseWheel",value:function(t,e){return __WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.scale(e>0?1:-1),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.redraw("All",!0),!1}},{key:"switchTheme",value:function(t){if(__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_theme a").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_select_theme a").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_theme").find("a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name")===t&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_select_theme a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name")===t&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".chart_container").attr("class","chart_container "+t),__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".marketName_ a").attr("class",t),"dark"===t)__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".trade_container").addClass("dark").removeClass("light"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setThemeName("frame0","Dark"),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().theme="Dark",__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save();else if("light"===t){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".trade_container").addClass("light").removeClass("dark"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setThemeName("frame0","Light"),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().theme="Light",__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save()}var e={command:"set current themes"};e.content=t,__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_output_interface_text").val(JSON.stringify(e)),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_output_interface_submit").submit(),(new __WEBPACK_IMPORTED_MODULE_5__mevent__.a).raise(t),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.redraw(),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.onThemeChange(t)}},{key:"switchTools",value:function(t){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".chart_dropdown_data").removeClass("chart_dropdown-hover"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolpanel .chart_toolpanel_button").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_tools a").removeClass("selected"),"on"===t?(__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_show_tools").addClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_tools a").each(function(){"on"===__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name")&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolpanel")[0].style.display="inline",__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance._drawingTool===__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.DrawingTool.Cursor?__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_Cursor").parent().addClass("selected"):__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance._drawingTool===__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.DrawingTool.CrossCursor&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_CrossCursor").parent().addClass("selected")):"off"===t&&(__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_show_tools").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_tools a").each(function(){"off"===__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name")&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolpanel")[0].style.display="none",__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setRunningMode(__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance._beforeDrawingTool),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.redraw("All",!0)),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.isSized?Control.onSize():Control.onSize(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.width,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.height)}},{key:"switchIndic",value:function(t){if(__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_indicator a").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_enable_indicator a[name='"+t+"']").addClass("selected"),"on"===t){__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_show_indicator").addClass("selected");var e=__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get();e.charts.indicsStatus="open",__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save();var n=e.charts.indics[1];__WEBPACK_IMPORTED_MODULE_4__templates__.b.displayVolume,__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setIndicator(2,n),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_tabbar").find("a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).attr("name")===n&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_tabbar")[0].style.display="block"}else if("off"===t){__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_show_indicator").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setIndicator(2,"NONE"),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.indicsStatus="close",__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save(),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_tabbar")[0].style.display="none",__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_tabbar a").removeClass("selected")}__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.isSized?Control.onSize():Control.onSize(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.width,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.height)}},{key:"switchPeriod",value:function(t){if(__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".chart_container .chart_toolbar_tabgroup a").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_periods_vert ul a").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".chart_container .chart_toolbar_tabgroup a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).parent().attr("name")===t&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_6_jquery___default()("#chart_toolbar_periods_vert ul a").each(function(){__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).parent().attr("name")===t&&__WEBPACK_IMPORTED_MODULE_6_jquery___default()(this).addClass("selected")}),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.showCursor(),Control.calcPeriodWeight(t),"line"===t)return __WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().strIsLine=!0,__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setChartStyle("frame0.k0","Line"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setCurrentPeriod("line"),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.period=t,void __WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save();__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().strIsLine=!1;var e=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.tagMapPeriod[t];__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setChartStyle("frame0.k0",__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.chartStyle),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setCurrentPeriod(e),__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.period=t,__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save()}},{key:"reset",value:function(t){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol=t,__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.showTrade&&__WEBPACK_IMPORTED_MODULE_1__kline_trade__.a.instance.reset(t)}},{key:"switchSymbolSelected",value:function(t){Control.reset(t),__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".market_chooser ul a").removeClass("selected"),__WEBPACK_IMPORTED_MODULE_6_jquery___default()(".market_chooser ul a[name='"+t+"']").addClass("selected"),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart()._symbol=t,__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.symbol=t,__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save()}},{key:"switchSymbol",value:function(t){"stomp"===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.type&&1===__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.ws.readyState&&(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.subscribed.unsubscribe(),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.subscribed=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.subscribe(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.subscribePath+"/"+t+"/"+__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range,Control.subscribeCallback)),Control.switchSymbolSelected(t),"line"===__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.period?(__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().strIsLine=!0,__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setChartStyle("frame0.k0","Line")):(__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().strIsLine=!1,__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.setChartStyle("frame0.k0",__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.chartStyle)),__WEBPACK_IMPORTED_MODULE_2__chart_manager__.a.instance.getChart().setSymbol(t)}},{key:"calcPeriodWeight",value:function(t){var e=t;"line"!==t&&(e=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.periodMap[__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.tagMapPeriod[t]]);var n=__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.get().charts.period_weight;for(var r in n)n[r]>n[e]&&(n[r]-=1);n[e]=8,__WEBPACK_IMPORTED_MODULE_3__chart_settings__.a.save()}},{key:"subscribeCallback",value:function(t){Control.requestSuccessHandler(JSON.parse(t.body))}},{key:"socketConnect",value:function(){if(!__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient||!__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.socketConnected){if(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.enableSockjs){var t=new SockJS(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.url);__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient=Stomp.over(t)}else __WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient=Stomp.client(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.url);__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.socketConnected=!0}1!==__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.ws.readyState?(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.debug||(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.debug=null),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.connect({},function(){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.subscribe("/user"+__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.subscribePath,Control.subscribeCallback),__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.subscribed=__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.subscribe(__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.subscribePath+"/"+__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.symbol+"/"+__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.range,Control.subscribeCallback),Control.requestData(!0)},function(){__WEBPACK_IMPORTED_MODULE_0__kline__.a.instance.stompClient.disconnect(),console.log("DEBUG: reconnect in 5 seconds ..."),setTimeout(function(){Control.socketConnect()},5e3)})):console.log("DEBUG: already connected")}}]),Control}();Control.refreshCounter=0,Control.refreshHandler=null},function(t,e,n){"use strict";n.d(e,"a",function(){return _});var r=n(0),a=n(1),i=n(2),o=n(5);function s(t){"@babel/helpers - typeof";return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var a=h(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(n,a["a"]);var e=u(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=e.call(this,t)).pos={index:-1,value:-1},r.state=n.state.Hide,r}return function(t,e,n){e&&l(t.prototype,e),n&&l(t,n)}(n,[{key:"getChartObjects",value:function(){var t=r.a.instance,e=t.getDataSource("frame0.k0");if(null===e||!o.a.isInstance(e,i.b))return null;var n=t.getTimeline("frame0.k0");if(null===n)return null;var a=t.getRange("frame0.k0.main");return null===a?null:{pMgr:t,pCDS:e,pTimeline:n,pRange:a}}},{key:"setPosXY",value:function(t,e){var n=this.getChartObjects(),r=n.pTimeline.toIndex(t),a=n.pRange.toValue(e),i=this.snapValue(r,a);null!==i&&(a=i),this.setPosIV(r,a)}},{key:"setPosXYNoSnap",value:function(t,e){var n=this.getChartObjects(),r=n.pTimeline.toIndex(t),a=n.pRange.toValue(e);this.setPosIV(r,a)}},{key:"setPosIV",value:function(t,e){this.pos={index:t,value:e}}},{key:"getPosXY",value:function(){var t=this.getChartObjects();return{x:t.pTimeline.toItemCenter(this.pos.index),y:t.pRange.toY(this.pos.value)}}},{key:"getPosIV",value:function(){return{i:this.pos.index,v:this.pos.value}}},{key:"setState",value:function(t){this.state=t}},{key:"getState",value:function(){return this.state}},{key:"isSelected",value:function(t,e){var r=this.getPosXY();return!(t<r.x-4||t>r.x+4||e<r.y-4||e>r.y+4)&&(this.setState(n.state.Highlight),!0)}},{key:"snapValue",value:function(t,e){var n=this.getChartObjects(),r=null,a=Math.floor(n.pTimeline.getFirstIndex()),i=Math.floor(n.pTimeline.getLastIndex());if(t<a||t>i)return r;var o=n.pRange.toY(e),s=n.pCDS.getDataAt(t);if(null===s||void 0===s)return r;var l=null;l=t>0?n.pCDS.getDataAt(t-1):n.pCDS.getDataAt(t);var c=n.pMgr.getChartStyle(n.pCDS.getFrameName()),u=n.pRange.toY(s.open),h=n.pRange.toY(s.high),_=n.pRange.toY(s.low),d=n.pRange.toY(s.close);"CandleStickHLC"===c&&(u=n.pRange.toY(l.close));var f=Math.abs(u-o),g=Math.abs(h-o),p=Math.abs(_-o),m=Math.abs(d-o);return f<=g&&f<=p&&f<=m&&f<6&&(r=s.open),g<=f&&g<=p&&g<=m&&g<6&&(r=s.high),p<=f&&p<=g&&p<=m&&p<6&&(r=s.low),m<=f&&m<=g&&m<=p&&m<6&&(r=s.close),r}}]),n}();_.state={Hide:0,Show:1,Highlight:2}},function(t,e,n){"use strict";n.d(e,"n",function(){return y}),n.d(e,"b",function(){return P}),n.d(e,"c",function(){return A}),n.d(e,"d",function(){return C}),n.d(e,"e",function(){return k}),n.d(e,"f",function(){return M}),n.d(e,"g",function(){return D}),n.d(e,"h",function(){return x}),n.d(e,"i",function(){return E}),n.d(e,"k",function(){return O}),n.d(e,"l",function(){return I}),n.d(e,"m",function(){return R}),n.d(e,"o",function(){return T}),n.d(e,"p",function(){return S}),n.d(e,"j",function(){return L}),n.d(e,"a",function(){return N});var r=n(0),a=n(1),i=n(9),o=n(5),s=n(2),l=n(11);function c(t){"@babel/helpers - typeof";return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){f(n,a["a"]);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=null,r.state=n.state.BeforeDraw,r.points=[],r.step=0,r}return d(n,[{key:"getChartObjects",value:function(){var t=r.a.instance,e=t.getDataSource("frame0.k0");if(null===e||!o.a.isInstance(e,s.b))return null;var n=t.getTimeline("frame0.k0");if(null===n)return null;var a=t.getArea("frame0.k0.main");if(null===a)return null;var i=t.getRange("frame0.k0.main");return null===i?null:{pMgr:t,pCDS:e,pTimeline:n,pArea:a,pRange:i}}},{key:"isValidMouseXY",value:function(t,e){var n=this.getChartObjects(),r=n.pArea.getLeft(),a=n.pArea.getTop(),i=n.pArea.getRight(),o=n.pArea.getBottom();return!(t<r||t>i||e<a||e>o)}},{key:"getPlotter",value:function(){return this.drawer}},{key:"setState",value:function(t){this.state=t}},{key:"getState",value:function(){return this.state}},{key:"addPoint",value:function(t){this.points.push(t)}},{key:"getPoint",value:function(t){return this.points[t]}},{key:"acceptMouseMoveEvent",value:function(t,e){return!1!==this.isValidMouseXY(t,e)&&(this.state===n.state.BeforeDraw?this.setBeforeDrawPos(t,e):this.state===n.state.Draw?this.setDrawPos(t,e):this.state===n.state.AfterDraw&&this.setAfterDrawPos(t,e),!0)}},{key:"acceptMouseDownEvent",value:function(t,e){return!1!==this.isValidMouseXY(t,e)&&(this.state===n.state.BeforeDraw?(this.setDrawPos(t,e),this.setState(n.state.Draw)):this.state===n.state.Draw?(this.setAfterDrawPos(t,e),0===this.step&&this.setState(n.state.AfterDraw)):this.state===n.state.AfterDraw&&(n.prototype.isSelected(t,e)?(this.setDrawPos(t,e),this.setState(n.state.Draw)):(this.oldx=t,this.oldy=e)),!0)}},{key:"acceptMouseDownMoveEvent",value:function(t,e){if(!1===this.isValidMouseXY(t,e))return!1;if(this.state===n.state.Draw)this.setDrawPos(t,e);else if(this.state===n.state.AfterDraw){var r=this.getChartObjects(),a=r.pTimeline.getItemWidth();r.pRange;if(Math.abs(t-this.oldx)<a&&0===Math.abs(e-this.oldy))return!0;var i=r.pTimeline.toIndex(this.oldx),o=r.pRange.toValue(this.oldy),s=r.pTimeline.toIndex(t),l=r.pRange.toValue(e);this.oldx=t,this.oldy=e;var c=s-i,u=l-o;for(var h in this.points)this.points[h].pos.index+=c,this.points[h].pos.value+=u}return!0}},{key:"acceptMouseUpEvent",value:function(t,e){return!1!==this.isValidMouseXY(t,e)&&(this.state===n.state.Draw&&(this.setAfterDrawPos(t,e),0===this.step&&this.setState(n.state.AfterDraw),!0))}},{key:"setBeforeDrawPos",value:function(t,e){for(var n in this.points)this.points[n].setPosXY(t,e),this.points[n].setState(i.a.state.Show)}},{key:"setDrawPos",value:function(t,e){for(var n in this.points)this.points[n].getState()===i.a.state.Highlight&&this.points[n].setPosXY(t,e)}},{key:"setAfterDrawPos",value:function(t,e){for(var n in 0!==this.step&&(this.step-=1),this.points)this.points[n].setState(i.a.state.Hide);0===this.step&&this.getChartObjects().pMgr.setNormalMode()}},{key:"isSelected",value:function(t,e){var n=!1;for(var r in this.points)if(this.points[r].isSelected(t,e)){this.points[r].setState(i.a.state.Highlight),n=!0;break}return!0===n&&(this.select(),!0)}},{key:"select",value:function(){for(var t in this.points)this.points[t].getState()===i.a.state.Hide&&this.points[t].setState(i.a.state.Show)}},{key:"unselect",value:function(){for(var t in this.points)this.points[t].getState()!==i.a.state.Hide&&this.points[t].setState(i.a.state.Hide)}},{key:"calcDistance",value:function(t,e,n){var r=t.getPosXY().x,a=t.getPosXY().y,i=e.getPosXY().x,o=e.getPosXY().y,s=n.getPosXY().x,l=n.getPosXY().y,c=r-s,u=a-l,h=i-s,_=o-l;return Math.abs(c*_-u*h)/Math.sqrt(Math.pow(i-r,2)+Math.pow(o-a,2))}},{key:"calcGap",value:function(t,e,n){var r=t.sx,a=t.sy,i=t.ex,o=t.ey,s=r-e,l=a-n,c=i-e,u=o-n;return Math.abs(s*u-l*c)/Math.sqrt(Math.pow(i-r,2)+Math.pow(o-a,2))}},{key:"isWithRect",value:function(t,e,n){var r=t.getPosXY().x,a=t.getPosXY().y,i=e.getPosXY().x,o=e.getPosXY().y,s=n.getPosXY().x,l=n.getPosXY().y;return r>i?(r+=4,i-=4):(r-=4,i+=4),a>o?(a+=4,o-=4):(a-=4,o+=4),r<=s&&i>=s&&a<=l&&o>=l||(r>=s&&i<=s&&a<=l&&o>=l||(r<=s&&i>=s&&a>=l&&o<=l||r>=s&&i<=s&&a>=l&&o<=l))}}]),n}();y.state={BeforeDraw:0,Draw:1,AfterDraw:2};var b=function(t){f(n,y);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).addPoint(new i.a(t)),r.addPoint(new i.a(t)),r}return d(n,[{key:"setBeforeDrawPos",value:function(t,e){this.step=1,u(v(n.prototype),"setBeforeDrawPos",this).call(this,t,e),this.getPoint(0).setState(i.a.state.Show),this.getPoint(1).setState(i.a.state.Highlight)}}]),n}(),w=function(t){f(n,y);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).addPoint(new i.a(t)),r.addPoint(new i.a(t)),r.addPoint(new i.a(t)),r}return d(n,[{key:"setBeforeDrawPos",value:function(t,e){this.step=2,u(v(n.prototype),"setBeforeDrawPos",this).call(this,t,e),this.getPoint(0).setState(i.a.state.Show),this.getPoint(1).setState(i.a.state.Show),this.getPoint(2).setState(i.a.state.Highlight)}},{key:"setAfterDrawPos",value:function(t,e){if(0!==this.step&&(this.step-=1),0===this.step)for(var n in this.points)this.points[n].setState(i.a.state.Hide);else this.getPoint(0).setState(i.a.state.Show),this.getPoint(1).setState(i.a.state.Highlight),this.getPoint(2).setState(i.a.state.Show);0===this.step&&this.getChartObjects().pMgr.setNormalMode()}}]),n}(),P=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.h(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);this.getPoint(0).getPosXY().x;for(var r=this.getPoint(0).getPosXY().y,a=(this.getPoint(1).getPosXY().x,this.getPoint(1).getPosXY().y),o=[100,87.5,75,62.5,50,37.5,25,12.5,0],s=0;s<o.length;s++){var l=r+(100-o[s])/100*(a-r);if(l<e+4&&l>e-4)return this.select(),!0}return!1}}]),n}(),A=function(t){f(n,w);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.i(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;var r=this.getPoint(0).getPosXY().x,a=this.getPoint(0).getPosXY().y,i=this.getPoint(1).getPosXY().x,o=this.getPoint(1).getPosXY().y,s=this.getPoint(2).getPosXY().x,l=this.getPoint(2).getPosXY().y,c={sx:r,sy:a,ex:s,ey:l},h={sx:i,sy:o,ex:r-(r-i+(r-s)),ey:a-(a-o+(a-l))};return!(this.calcGap(c,t,e)>4&&this.calcGap(h,t,e)>4)}}]),n}(),C=function(t){f(n,w);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.j(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;var r=this.getPoint(0).getPosXY().x,a=this.getPoint(0).getPosXY().y,i=this.getPoint(1).getPosXY().x,o=this.getPoint(1).getPosXY().y,s=this.getPoint(2).getPosXY().x,l=this.getPoint(2).getPosXY().y,c={sx:r,sy:a,ex:s,ey:l},h={sx:i,sy:o,ex:r-(r-i+(r-s)),ey:a-(a-o+(a-l))};return(c.ex>c.sx&&t>c.sx-4||c.ex<c.sx&&t<c.sx+4||h.ex>h.sx&&t>h.sx-4||h.ex<h.sx&&t<h.sx+4)&&(!(this.calcGap(c,t,e)>4&&this.calcGap(h,t,e)>4)&&(this.select(),!0))}}]),n}(),k=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.k(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;var r=new i.a("frame0.k0");r.setPosXY(t,e);for(var a=this.getPoint(0).getPosXY().x,o=this.getPoint(0).getPosXY().y,s=this.getPoint(1).getPosXY().x,l=this.getPoint(1).getPosXY().y,c=this.getChartObjects(),h={left:c.pArea.getLeft(),top:c.pArea.getTop(),right:c.pArea.getRight(),bottom:c.pArea.getBottom()},_=[0,38.2,50,61.8],d=0;d<_.length;d++){var f={x:a,y:o},g={x:s,y:o+(100-_[d])/100*(l-o)},p=this.getRectCrossPt(h,f,g),m=Math.pow(p[0].x-a,2)+Math.pow(p[0].y-o,2)>Math.pow(p[0].x-s,2)+Math.pow(p[0].y-l,2)?{x:p[0].x,y:p[0].y}:{x:p[1].x,y:p[1].y};if(!(m.x>a&&t<a)&&!(m.x<a&&t>a)){var y=new i.a("frame0.k0");y.setPosXY(a,o);var b=new i.a("frame0.k0");if(b.setPosXY(m.x,m.y),!(this.calcDistance(y,b,r)>4))return this.select(),!0}}return!1}}]),n}(),M=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.l(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);this.getPoint(0).getPosXY().x;for(var r=this.getPoint(0).getPosXY().y,a=(this.getPoint(1).getPosXY().x,this.getPoint(1).getPosXY().y),o=[100,78.6,61.8,50,38.2,23.6,0],s=0;s<o.length;s++){var l=r+(100-o[s])/100*(a-r);if(l<e+4&&l>e-4)return this.select(),!0}return!1}}]),n}(),D=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.m(t,m(r)),r}return d(n,[{key:"setDrawPos",value:function(t,e){if(this.points[0].getState()===i.a.state.Highlight)return this.points[0].setPosXY(t,e),void this.points[1].setPosXYNoSnap(this.points[1].getPosXY().x,this.points[0].getPosXY().y);this.points[1].getState()===i.a.state.Highlight&&(this.points[1].setPosXY(t,e),this.points[0].setPosXYNoSnap(this.points[0].getPosXY().x,this.points[1].getPosXY().y))}},{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);var r=this.getPoint(0).getPosXY().y,a=this.getPoint(0).getPosXY().x,o=this.getPoint(1).getPosXY().x;return!(e>r+4||e<r-4)&&(!(o>a&&t<a-4)&&(!(o<a&&t>a+4)&&(this.select(),!0)))}}]),n}(),x=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.n(t,m(r)),r}return d(n,[{key:"setDrawPos",value:function(t,e){if(this.points[0].getState()===i.a.state.Highlight)return this.points[0].setPosXY(t,e),void this.points[1].setPosXYNoSnap(this.points[1].getPosXY().x,this.points[0].getPosXY().y);this.points[1].getState()===i.a.state.Highlight&&(this.points[1].setPosXY(t,e),this.points[0].setPosXYNoSnap(this.points[0].getPosXY().x,this.points[1].getPosXY().y))}},{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);var r=this.getPoint(0).getPosXY().y,a=this.getPoint(0).getPosXY().x,o=this.getPoint(1).getPosXY().x;return!(e>r+4||e<r-4)&&(!(a>o&&(t>a+4||t<o-4))&&(!(a<o&&(t<a-4||t>o+4))&&(this.select(),!0)))}}]),n}(),E=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.o(t,m(r)),r}return d(n,[{key:"setDrawPos",value:function(t,e){for(var n in this.points)this.points[n].setPosXY(t,e)}},{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);var r=this.getPoint(0).getPosXY().y;return!(e>r+4||e<r-4)&&(this.select(),!0)}}]),n}(),O=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.q(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;var r=new i.a("frame0.k0");r.setPosXY(t,e);var a=this.getPoint(0).getPosXY().x,o=this.getPoint(1).getPosXY().x;return!(o>a&&t<a-4)&&(!(o<a&&t>a+4)&&(this.calcDistance(this.getPoint(0),this.getPoint(1),r)<4&&(this.select(),!0)))}}]),n}(),I=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.r(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;var r=new i.a("frame0.k0");return r.setPosXY(t,e),!1!==this.isWithRect(this.getPoint(0),this.getPoint(1),r)&&(this.calcDistance(this.getPoint(0),this.getPoint(1),r)<4&&(this.select(),!0))}}]),n}(),R=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.s(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;var r=new i.a("frame0.k0");return r.setPosXY(t,e),this.calcDistance(this.getPoint(0),this.getPoint(1),r)<4&&(this.select(),!0)}}]),n}(),T=function(t){f(n,w);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.t(t,m(r)),r}return d(n,[{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;this.getChartObjects();var r=this.getPoint(0).getPosXY().x,a=this.getPoint(0).getPosXY().y,i=this.getPoint(1).getPosXY().x,o=this.getPoint(1).getPosXY().y,s=this.getPoint(2).getPosXY().x,l=this.getPoint(2).getPosXY().y,c=r-(r-i+(r-s)),h=a-(a-o+(a-l)),_={sx:r,sy:a,ex:s,ey:l},d={sx:i,sy:o,ex:c,ey:h},f=i-r,g=o-a,p=c-s,m=h-l,y={sx:Math.abs(f-r),sy:Math.abs(g-a),ex:Math.abs(p-s),ey:Math.abs(m-l)};return!(this.calcGap(_,t,e)>4&&this.calcGap(d,t,e)>4&&this.calcGap(y,t,e)>4)&&(this.select(),!0)}}]),n}(),S=function(t){f(n,b);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.u(t,m(r)),r}return d(n,[{key:"setDrawPos",value:function(t,e){for(var n in this.points)this.points[n].setPosXY(t,e)}},{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);var r=this.getPoint(0).getPosXY().x;return!(t>r+4||t<r-4)&&(this.select(),!0)}}]),n}(),L=function(t){f(n,I);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.p(t,m(r)),r}return d(n,[{key:"setDrawPos",value:function(t,e){for(var n in this.points)this.points[n].setPosXY(t,e)}},{key:"isSelected",value:function(t,e){if(!0===u(v(n.prototype),"isSelected",this).call(this,t,e))return!0;new i.a("frame0.k0").setPosXY(t,e);var r=this.getPoint(0).getPosXY().x,a=this.getPoint(0).getPosXY().y;this.getPoint(1).getPosXY().x,this.getPoint(1).getPosXY().y;return!(t<r-4)&&(!(e>=a+4||e<=a-4)&&(this.select(),!0))}}]),n}(),N=function(t){f(n,I);var e=p(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).drawer=new l.g(t,m(r)),r}return n}()},function(t,e,n){"use strict";n.d(e,"a",function(){return A}),n.d(e,"z",function(){return C}),n.d(e,"D",function(){return k}),n.d(e,"H",function(){return M}),n.d(e,"c",function(){return D}),n.d(e,"f",function(){return x}),n.d(e,"e",function(){return E}),n.d(e,"C",function(){return O}),n.d(e,"A",function(){return I}),n.d(e,"w",function(){return R}),n.d(e,"v",function(){return T}),n.d(e,"B",function(){return S}),n.d(e,"I",function(){return L}),n.d(e,"E",function(){return N}),n.d(e,"d",function(){return j}),n.d(e,"y",function(){return B}),n.d(e,"x",function(){return U}),n.d(e,"G",function(){return W}),n.d(e,"J",function(){return Y}),n.d(e,"F",function(){return z}),n.d(e,"s",function(){return G}),n.d(e,"r",function(){return V}),n.d(e,"q",function(){return K}),n.d(e,"g",function(){return Z}),n.d(e,"o",function(){return H}),n.d(e,"m",function(){return X}),n.d(e,"n",function(){return J}),n.d(e,"u",function(){return Q}),n.d(e,"p",function(){return q}),n.d(e,"i",function(){return tt}),n.d(e,"j",function(){return et}),n.d(e,"t",function(){return nt}),n.d(e,"l",function(){return at}),n.d(e,"h",function(){return it}),n.d(e,"k",function(){return ot}),n.d(e,"b",function(){return st});var r=n(3),a=n(1),i=n(0),o=n(5),s=n(9),l=n(16),c=n(6),u=n(12),h=n(2),_=n(10);function d(t){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var P=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,null,[{key:"drawLine",value:function(t,e,n,r,a){t.beginPath(),t.moveTo(.5+(e<<0),.5+(n<<0)),t.lineTo(.5+(r<<0),.5+(a<<0)),t.stroke()}},{key:"drawLines",value:function(t,e){var r,a=e.length;for(t.beginPath(),t.moveTo(e[0].x,e[0].y),r=1;r<a;r++)t.lineTo(e[r].x,e[r].y);if(n.isChrome)for(t.moveTo(e[0].x,e[0].y),r=1;r<a;r++)t.lineTo(e[r].x,e[r].y);t.stroke()}},{key:"drawDashedLine",value:function(t,e,n,r,a,i,o){i<2&&(i=2);var s=r-e,l=a-n;if(t.beginPath(),0===l){for(var c=s/i+.5<<0,u=0;u<c;u++)t.rect(e,n,o,1),e+=i;t.fill()}else{for(var h=Math.sqrt(s*s+l*l)/i+.5<<0,_=(s/=h)*o/i,d=(l/=h)*o/i,f=0;f<h;f++)t.moveTo(e+.5,n+.5),t.lineTo(e+.5+_,n+.5+d),e+=s,n+=l;t.stroke()}}},{key:"createHorzDashedLine",value:function(t,e,n,r,a,i){a<2&&(a=2);for(var o=(n-e)/a+.5<<0,s=0;s<o;s++)t.rect(e,r,i,1),e+=a}},{key:"createRectangles",value:function(t,e){t.beginPath();var n,r,a=e.length;for(r=0;r<a;r++)n=e[r],t.rect(n.x,n.y,n.w,n.h)}},{key:"createPolygon",value:function(t,e){t.beginPath(),t.moveTo(e[0].x+.5,e[0].y+.5);var n,r=e.length;for(n=1;n<r;n++)t.lineTo(e[n].x+.5,e[n].y+.5);t.closePath()}},{key:"drawString",value:function(t,e,n){var r=t.measureText(e).width;return!(n.w<r)&&(t.fillText(e,n.x,n.y),n.x+=r,n.w-=r,!0)}}]),n}();P.isChrome=null!==navigator.userAgent.toLowerCase().match(/chrome/);var A=function(t){m(n,P);var e=y(n);function n(t){var r;return f(this,n),(r=e.call(this,t))._color=c.c.Color.Background,r}return p(n,[{key:"getColor",value:function(){return this._color}},{key:"setColor",value:function(t){this._color=t}},{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTheme(this.getFrameName());t.fillStyle=r.getColor(this._color),t.fillRect(n.getLeft(),n.getTop(),n.getWidth(),n.getHeight())}}]),n}(),C=function(t){m(n,A);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName()),a=e.getRange(this.getAreaName()),o=e.getTheme(this.getFrameName()),s=n.getRect();if(!n.isChanged()&&!r.isUpdated()&&!a.isUpdated()){var l=r.getFirstIndex(),c=r.getLastIndex()-2,u=Math.max(l,c);s.X=r.toColumnLeft(u),s.Width=n.getRight()-s.X}t.fillStyle=o.getColor(this._color),t.fillRect(s.X,s.Y,s.Width,s.Height)}}]),n}(),k=function(t){m(n,A);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=this.getAreaName(),r=e.getArea(n),a=e.getRange(n.substring(0,n.lastIndexOf("Range")));if("main"===a.getNameObject().getCompAt(2)||r.isChanged()||a.isUpdated()){var o=e.getTheme(this.getFrameName());t.fillStyle=o.getColor(this._color),t.fillRect(r.getLeft(),r.getTop(),r.getWidth(),r.getHeight())}}}]),n}(),M=function(t){m(n,A);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName());if(n.isChanged()||r.isUpdated()){var a=e.getTheme(this.getFrameName());t.fillStyle=a.getColor(this._color),t.fillRect(n.getLeft(),n.getTop(),n.getWidth(),n.getHeight())}}}]),n}(),D=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName()),a=e.getRange(this.getAreaName()),o=!1;if(!n.isChanged()&&!r.isUpdated()&&!a.isUpdated()){var s=r.getFirstIndex(),l=r.getLastIndex(),u=Math.max(s,l-2),h=r.toColumnLeft(u);t.save(),t.rect(h,n.getTop(),n.getRight()-h,n.getHeight()),t.clip(),o=!0}var _=e.getTheme(this.getFrameName());t.fillStyle=_.getColor(c.c.Color.Grid0),t.beginPath();var d=4,f=1;P.isChrome&&(d=4,f=1);var g=a.getGradations();for(var p in g)P.createHorzDashedLine(t,n.getLeft(),n.getRight(),a.toY(g[p]),d,f);t.fill(),o&&t.restore()}}]),n}(),x=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getDataSource(this.getDataSourceName());if(!(n.getDataCount()<1)){var r=e.getArea(this.getAreaName()),a=e.getTimeline(this.getDataSourceName()),s=e.getRange(this.getAreaName());if(0!==s.getRange()){var l,u=e.getTheme(this.getFrameName()),h=o.a.isInstance(u,c.a),_=a.getFirstIndex(),d=a.getLastIndex();l=r.isChanged()||a.isUpdated()||s.isUpdated()?_:Math.max(_,d-2);for(var f=a.getColumnWidth(),g=a.getItemWidth(),p=a.toItemLeft(l),m=a.toItemCenter(l),v=[],y=[],b=[],w=[],A=l;A<d;A++){var C=n.getDataAt(A),k=s.toY(C.high),M=s.toY(C.low),D=C.open,x=C.close;if(x>D){var E=s.toY(x),O=s.toY(D),I=Math.max(O-E,1);I>1&&g>1&&h?v.push({x:p+.5,y:E+.5,w:g-1,h:I-1}):y.push({x:p,y:E,w:Math.max(g,1),h:Math.max(I,1)}),C.high>x&&(k=Math.min(k,E-1),y.push({x:m,y:k,w:1,h:E-k})),D>C.low&&(M=Math.max(M,O+1),y.push({x:m,y:O,w:1,h:M-O}))}else if(x===D){var R=s.toY(x);b.push({x:p,y:R,w:Math.max(g,1),h:1}),C.high>x&&(k=Math.min(k,R-1)),D>C.low&&(M=Math.max(M,R+1)),k<M&&b.push({x:m,y:k,w:1,h:M-k})}else{var T=s.toY(D),S=s.toY(x),L=Math.max(S-T,1);w.push({x:p,y:T,w:Math.max(g,1),h:Math.max(L,1)}),C.high>D&&(k=Math.min(k,T-1)),x>C.low&&(M=Math.max(M,S+1)),k<M&&w.push({x:m,y:k,w:1,h:M-k})}p+=f,m+=f}v.length>0&&(t.strokeStyle=u.getColor(c.c.Color.Positive),P.createRectangles(t,v),t.stroke()),y.length>0&&(t.fillStyle=u.getColor(c.c.Color.Positive),P.createRectangles(t,y),t.fill()),b.length>0&&(t.fillStyle=u.getColor(c.c.Color.Negative),P.createRectangles(t,b),t.fill()),w.length>0&&(t.fillStyle=u.getColor(c.c.Color.Negative),P.createRectangles(t,w),t.fill())}}}}]),n}(),E=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getDataSource(this.getDataSourceName());if(o.a.isInstance(n,h.b)&&!(n.getDataCount()<1)){var r=e.getArea(this.getAreaName()),a=e.getTimeline(this.getDataSourceName()),s=e.getRange(this.getAreaName());if(0!==s.getRange()){var l,u=e.getTheme(this.getFrameName()),_=o.a.isInstance(u,c.a),d=a.getFirstIndex(),f=a.getLastIndex();l=r.isChanged()||a.isUpdated()||s.isUpdated()?d:Math.max(d,f-2);for(var g=a.getColumnWidth(),p=a.getItemWidth(),m=a.toItemLeft(l),v=a.toItemCenter(l),y=[],b=[],w=[],A=[],C=l;C<f;C++){var k=n.getDataAt(C),M=s.toY(k.high),D=s.toY(k.low),x=k.open;C>0&&(x=n.getDataAt(C-1).close);var E=k.close;if(E>x){var O=s.toY(E),I=s.toY(x),R=Math.max(I-O,1);R>1&&p>1&&_?y.push({x:m+.5,y:O+.5,w:p-1,h:R-1}):b.push({x:m,y:O,w:Math.max(p,1),h:Math.max(R,1)}),k.high>E&&(M=Math.min(M,O-1),b.push({x:v,y:M,w:1,h:O-M})),x>k.low&&(D=Math.max(D,I+1),b.push({x:v,y:I,w:1,h:D-I}))}else if(E===x){var T=s.toY(E);w.push({x:m,y:T,w:Math.max(p,1),h:1}),k.high>E&&(M=Math.min(M,T-1)),x>k.low&&(D=Math.max(D,T+1)),M<D&&w.push({x:v,y:M,w:1,h:D-M})}else{var S=s.toY(x),L=s.toY(E),N=Math.max(L-S,1);A.push({x:m,y:S,w:Math.max(p,1),h:Math.max(N,1)}),k.high>x&&(M=Math.min(M,S-1)),E>k.low&&(D=Math.max(D,L+1)),M<D&&A.push({x:v,y:M,w:1,h:D-M})}m+=g,v+=g}y.length>0&&(t.strokeStyle=u.getColor(c.c.Color.Positive),P.createRectangles(t,y),t.stroke()),b.length>0&&(t.fillStyle=u.getColor(c.c.Color.Positive),P.createRectangles(t,b),t.fill()),w.length>0&&(t.fillStyle=u.getColor(c.c.Color.Negative),P.createRectangles(t,w),t.fill()),A.length>0&&(t.fillStyle=u.getColor(c.c.Color.Negative),P.createRectangles(t,A),t.fill())}}}}]),n}(),O=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getDataSource(this.getDataSourceName());if(o.a.isInstance(n,h.b)&&!(n.getDataCount()<1)){var r=e.getArea(this.getAreaName()),a=e.getTimeline(this.getDataSourceName()),s=e.getRange(this.getAreaName());if(0!==s.getRange()){var l,u=e.getTheme(this.getFrameName()),_=a.getFirstIndex(),d=a.getLastIndex();l=r.isChanged()||a.isUpdated()||s.isUpdated()?_:Math.max(_,d-2);for(var f=a.getColumnWidth(),g=a.getItemWidth()>>1,p=a.toItemLeft(l),m=a.toItemCenter(l),v=(a.getItemWidth(),[]),y=[],b=[],w=l;w<d;w++){var A=n.getDataAt(w),C=s.toY(A.high),k=s.toY(A.low),M=Math.max(k-C,1);if(A.close>A.open){var D=s.toY(A.close),x=s.toY(A.open);v.push({x:m,y:C,w:1,h:M}),v.push({x:p,y:D,w:g,h:1}),v.push({x:m,y:x,w:g,h:1})}else if(A.close===A.open){var E=s.toY(A.close);y.push({x:m,y:C,w:1,h:M}),y.push({x:p,y:E,w:g,h:1}),y.push({x:m,y:E,w:g,h:1})}else{var O=s.toY(A.open),I=s.toY(A.close);b.push({x:m,y:C,w:1,h:M}),b.push({x:p,y:O,w:g,h:1}),b.push({x:m,y:I,w:g,h:1})}p+=f,m+=f,f}v.length>0&&(t.fillStyle=u.getColor(c.c.Color.Positive),P.createRectangles(t,v),t.fill()),y.length>0&&(t.fillStyle=u.getColor(c.c.Color.Negative),P.createRectangles(t,y),t.fill()),b.length>0&&(t.fillStyle=u.getColor(c.c.Color.Negative),P.createRectangles(t,b),t.fill())}}}}]),n}(),I=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName()),a=e.getDataSource(this.getDataSourceName()),s=e.getTheme(this.getFrameName());t.font=s.getFont(c.c.Font.Default),t.textAlign="left",t.textBaseline="top",t.fillStyle=s.getColor(c.c.Color.Text4);var l={x:n.getLeft()+4,y:n.getTop()+2,w:n.getWidth()-8,h:20},u=r.getSelectedIndex();if(!(u<0)){var h,_=a.getDataAt(u),d=a.getDecimalDigits(),f=new Date(_.date),g=(f.getFullYear(),o.a.formatTime(f.getMonth()+1),o.a.formatTime(f.getDate()),o.a.formatTime(f.getHours()),o.a.formatTime(f.getMinutes()),e.getLanguage());if("zh-cn"===g){if(!P.drawString(t,"  开: "+_.open.toFixed(d),l))return;if(!P.drawString(t,"  高: "+_.high.toFixed(d),l))return;if(!P.drawString(t,"  低: "+_.low.toFixed(d),l))return;if(!P.drawString(t,"  收: "+_.close.toFixed(d),l))return}else if("en-us"===g){if(!P.drawString(t,"  O: "+_.open.toFixed(d),l))return;if(!P.drawString(t,"  H: "+_.high.toFixed(d),l))return;if(!P.drawString(t,"  L: "+_.low.toFixed(d),l))return;if(!P.drawString(t,"  C: "+_.close.toFixed(d),l))return}else if("zh-tw"===g){if(!P.drawString(t,"  開: "+_.open.toFixed(d),l))return;if(!P.drawString(t,"  高: "+_.high.toFixed(d),l))return;if(!P.drawString(t,"  低: "+_.low.toFixed(d),l))return;if(!P.drawString(t,"  收: "+_.close.toFixed(d),l))return}if(u>0){if("zh-cn"===g){if(!P.drawString(t,"  涨幅: ",l))return}else if("en-us"===g){if(!P.drawString(t,"  CHANGE: ",l))return}else if("zh-tw"===g&&!P.drawString(t,"  漲幅: ",l))return;var p,m=a.getDataAt(u-1);if((p=(_.close-m.close)/m.close*100?(_.close-m.close)/m.close*100:0)>=0?(p=" "+p.toFixed(2),t.fillStyle=s.getColor(c.c.Color.TextPositive)):(p=p.toFixed(2),t.fillStyle=s.getColor(c.c.Color.TextNegative)),!P.drawString(t,p,l))return;if(t.fillStyle=s.getColor(c.c.Color.Text4),!P.drawString(t," %",l))return}if(h=(_.high-_.low)/_.low*100?(_.high-_.low)/_.low*100:0,"zh-cn"===g){if(!P.drawString(t,"  振幅: "+h.toFixed(2)+" %",l))return}else if("en-us"===g){if(!P.drawString(t,"  AMPLITUDE: "+h.toFixed(2)+" %",l))return}else if("zh-tw"===g&&!P.drawString(t,"  振幅: "+h.toFixed(2)+" %",l))return;var v=e.getDataProvider(this.getAreaName()+".secondary");if(void 0!==v){var y,b=v.getIndicator(),w=b.getOutputCount();for(y=0;y<w;y++){var A=b.getOutputAt(y),C=A.execute(u);if(!isNaN(C)){var k="  "+A.getName()+": "+C.toFixed(d),M=A.getColor();if(void 0===M&&(M=c.c.Color.Indicator0+y),t.fillStyle=s.getColor(M),!P.drawString(t,k,l))return}}}}}}]),n}(),R=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName()),a=e.getRange(this.getAreaName());if(0!==a.getRange()){var s=e.getDataProvider(this.getName());if(o.a.isInstance(s,u.a)){var h,_=e.getTheme(this.getFrameName()),d=r.getColumnWidth(),f=r.getFirstIndex(),g=r.getLastIndex();h=n.isChanged()||r.isUpdated()||a.isUpdated()?f:Math.max(f,g-2);var p,m,v=s.getIndicator(),y=v.getOutputCount();for(m=0;m<y;m++){var b=(p=v.getOutputAt(m)).getStyle();b===l.y.outputStyle.VolumeStick?this.drawVolumeStick(t,_,e.getDataSource(this.getDataSourceName()),h,g,r.toItemLeft(h),d,r.getItemWidth(),a):b===l.y.outputStyle.MACDStick?this.drawMACDStick(t,_,p,h,g,r.toItemLeft(h),d,r.getItemWidth(),a):b===l.y.outputStyle.SARPoint&&this.drawSARPoint(t,_,p,h,g,r.toItemCenter(h),d,r.getItemWidth(),a)}var w=r.toColumnLeft(h),A=r.toItemCenter(h);for(t.save(),t.rect(w,n.getTop(),n.getRight()-w,n.getHeight()),t.clip(),t.translate(.5,.5),m=0;m<y;m++){var C=A;if((p=v.getOutputAt(m)).getStyle()===l.y.outputStyle.Line){var k=void 0,M=[];h>f&&(k=p.execute(h-1),!1===isNaN(k)&&M.push({x:C-d,y:a.toY(k)}));for(var D=h;D<g;D++,C+=d)k=p.execute(D),!1===isNaN(k)&&M.push({x:C,y:a.toY(k)});if(M.length>0){var x=p.getColor();void 0===x&&(x=c.c.Color.Indicator0+m),t.strokeStyle=_.getColor(x),P.drawLines(t,M)}}}t.restore()}}}},{key:"drawVolumeStick",value:function(t,e,n,r,a,i,s,l,u){for(var h=o.a.isInstance(e,c.a),_=i,d=(u.toY(0),[]),f=[],g=[],p=r;p<a;p++){var m=n.getDataAt(p),v=u.toY(m.volume),y=u.toHeight(m.volume);m.close>m.open?y>1&&l>1&&h?d.push({x:_+.5,y:v+.5,w:l-1,h:y-1}):f.push({x:_,y:v,w:Math.max(l,1),h:Math.max(y,1)}):m.close===m.open&&p>0&&m.close>=n.getDataAt(p-1).close?y>1&&l>1&&h?d.push({x:_+.5,y:v+.5,w:l-1,h:y-1}):f.push({x:_,y:v,w:Math.max(l,1),h:Math.max(y,1)}):g.push({x:_,y:v,w:Math.max(l,1),h:Math.max(y,1)}),_+=s}d.length>0&&(t.strokeStyle=e.getColor(c.c.Color.Positive),P.createRectangles(t,d),t.stroke()),f.length>0&&(t.fillStyle=e.getColor(c.c.Color.Positive),P.createRectangles(t,f),t.fill()),g.length>0&&(t.fillStyle=e.getColor(c.c.Color.Negative),P.createRectangles(t,g),t.fill())}},{key:"drawMACDStick",value:function(t,e,n,r,a,i,o,s,l){for(var u=i,h=l.toY(0),_=[],d=[],f=[],g=[],p=r>0?n.execute(r-1):NaN,m=r;m<a;m++){var v=n.execute(m);if(v>=0){var y=l.toHeight(v);(0===m||v>=p)&&y>1&&s>1?_.push({x:u+.5,y:h-y+.5,w:s-1,h:y-1}):f.push({x:u,y:h-y,w:Math.max(s,1),h:Math.max(y,1)})}else{var b=l.toHeight(-v);(0===m||v>=p)&&b>1&&s>1?d.push({x:u+.5,y:h+.5,w:s-1,h:b-1}):g.push({x:u,y:h,w:Math.max(s,1),h:Math.max(b,1)})}p=v,u+=o}_.length>0&&(t.strokeStyle=e.getColor(c.c.Color.Positive),P.createRectangles(t,_),t.stroke()),d.length>0&&(t.strokeStyle=e.getColor(c.c.Color.Negative),P.createRectangles(t,d),t.stroke()),f.length>0&&(t.fillStyle=e.getColor(c.c.Color.Positive),P.createRectangles(t,f),t.fill()),g.length>0&&(t.fillStyle=e.getColor(c.c.Color.Negative),P.createRectangles(t,g),t.fill())}},{key:"drawSARPoint",value:function(t,e,n,r,a,i,o,s,l){var u=s>>1;u<.5&&(u=.5),u>4&&(u=4);var h=i,_=h+u,d=2*Math.PI;t.save(),t.translate(.5,.5),t.strokeStyle=e.getColor(c.c.Color.Indicator3),t.beginPath();for(var f=r;f<a;f++){var g=l.toY(n.execute(f));t.moveTo(_,g),t.arc(h,g,u,0,d),h+=o,_+=o}t.stroke(),t.restore()}}]),n}(),T=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName()),a=e.getDataProvider(this.getAreaName()+".secondary"),o=e.getTheme(this.getFrameName());t.font=o.getFont(c.c.Font.Default),t.textAlign="left",t.textBaseline="top",t.fillStyle=o.getColor(c.c.Color.Text4);var s,l={x:n.getLeft()+4,y:n.getTop()+2,w:n.getWidth()-8,h:20},u=a.getIndicator();switch(u.getParameterCount()){case 0:s=u.getName();break;case 1:s=u.getName()+"("+u.getParameterAt(0).getValue()+")";break;case 2:s=u.getName()+"("+u.getParameterAt(0).getValue()+","+u.getParameterAt(1).getValue()+")";break;case 3:s=u.getName()+"("+u.getParameterAt(0).getValue()+","+u.getParameterAt(1).getValue()+","+u.getParameterAt(2).getValue()+")";break;case 4:s=u.getName()+"("+u.getParameterAt(0).getValue()+","+u.getParameterAt(1).getValue()+","+u.getParameterAt(2).getValue()+","+u.getParameterAt(3).getValue()+")";break;default:return}if(P.drawString(t,s,l)){var h=r.getSelectedIndex();if(!(h<0)){var _,d,f,g,p,m=u.getOutputCount();for(p=0;p<m;p++)if(d=(_=u.getOutputAt(p)).execute(h),!isNaN(d)&&(f="  "+_.getName()+": "+d.toFixed(2),void 0===(g=_.getColor())&&(g=c.c.Color.Indicator0+p),t.fillStyle=o.getColor(g),!P.drawString(t,f,l)))return}}}}]),n}(),S=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=e.getDataSource(this.getDataSourceName());if(!(n.getDataCount()<1)){var r=e.getTimeline(this.getDataSourceName());if(!(r.getInnerWidth()<r.getColumnWidth())){var a=e.getRange(this.getAreaName());if(0!==a.getRange()){var o=e.getDataProvider(this.getAreaName()+".main"),s=r.getFirstIndex(),l=s+r.getLastIndex()>>1,u=e.getTheme(this.getFrameName());t.font=u.getFont(c.c.Font.Default),t.textBaseline="middle",t.fillStyle=u.getColor(c.c.Color.Text4),t.strokeStyle=u.getColor(c.c.Color.Text4);var h=n.getDecimalDigits();this.drawMark(t,o.getMinValue(),h,a.toY(o.getMinValue()),s,l,o.getMinValueIndex(),r),this.drawMark(t,o.getMaxValue(),h,a.toY(o.getMaxValue()),s,l,o.getMaxValueIndex(),r)}}}}},{key:"drawMark",value:function(t,e,n,r,a,i,s,l){var c,u,h,_;s>i?(t.textAlign="right",h=(c=l.toItemCenter(s)-4)-3,_=(u=c-7)-4):(t.textAlign="left",h=(c=l.toItemCenter(s)+4)+3,_=(u=c+7)+4),P.drawLine(t,c,r,u,r),P.drawLine(t,c,r,h,r+2),P.drawLine(t,c,r,h,r-2),t.fillText(o.a.fromFloat(e,n),_,r)}}]),n}(),L=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,r=e.getArea(this.getAreaName()),a=e.getTimeline(this.getDataSourceName());if(r.isChanged()||a.isUpdated()){var o=e.getDataSource(this.getDataSourceName());if(!(o.getDataCount()<2)){var s,l=o.getDataAt(1).date-o.getDataAt(0).date,u=n.TIME_INTERVAL.length;for(s=0;s<u&&!(l<n.TIME_INTERVAL[s]);s++);for(;s<u&&!(n.TIME_INTERVAL[s]%l==0&&n.TIME_INTERVAL[s]/l*a.getColumnWidth()>60);s++);var h=a.getFirstIndex(),_=a.getLastIndex(),d=60*(new Date).getTimezoneOffset()*1e3,f=e.getTheme(this.getFrameName());t.font=f.getFont(c.c.Font.Default),t.textAlign="center",t.textBaseline="middle";for(var g=e.getLanguage(),p=[],m=r.getTop(),v=r.getMiddle(),y=h;y<_;y++){var b=o.getDataAt(y).date,w=b-d,A=new Date(b),C=A.getFullYear(),k=A.getMonth()+1,M=A.getDate(),D=A.getHours(),x=A.getMinutes(),E="";if(s<u){if(w%Math.max(n.TP_DAY,n.TIME_INTERVAL[s])==0)"zh-cn"===g?E=k.toString()+"月"+M.toString()+"日":"zh-tw"===g?E=k.toString()+"月"+M.toString()+"日":"en-us"===g&&(E=n.MonthConvert[k]+" "+M.toString()),t.fillStyle=f.getColor(c.c.Color.Text4);else if(w%n.TIME_INTERVAL[s]==0){var O=x.toString();x<10&&(O="0"+O),E=D.toString()+":"+O,t.fillStyle=f.getColor(c.c.Color.Text2)}}else 1===M&&D<l/n.TP_HOUR&&(1===k?(E=C.toString(),"zh-cn"===g?E+="年":"zh-tw"===g&&(E+="年")):"zh-cn"===g?E=k.toString()+"月":"zh-tw"===g?E=k.toString()+"月":"en-us"===g&&(E=n.MonthConvert[k]),t.fillStyle=f.getColor(c.c.Color.Text4));if(E.length>0){var I=a.toItemCenter(y);p.push({x:I,y:m,w:1,h:4}),t.fillText(E,I,v)}}p.length>0&&(t.fillStyle=f.getColor(c.c.Color.Grid1),P.createRectangles(t,p),t.fill())}}}}]),n}();L.TP_MINUTE=6e4,L.TP_HOUR=60*L.TP_MINUTE,L.TP_DAY=24*L.TP_HOUR,L.TIME_INTERVAL=[5*L.TP_MINUTE,10*L.TP_MINUTE,15*L.TP_MINUTE,30*L.TP_MINUTE,L.TP_HOUR,2*L.TP_HOUR,3*L.TP_HOUR,6*L.TP_HOUR,12*L.TP_HOUR,L.TP_DAY,2*L.TP_DAY],L.MonthConvert={1:"Jan.",2:"Feb.",3:"Mar.",4:"Apr.",5:"May.",6:"Jun.",7:"Jul.",8:"Aug.",9:"Sep.",10:"Oct.",11:"Nov.",12:"Dec."};var N=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"getRequiredWidth",value:function(t,e){var n=i.a.instance.getTheme(this.getFrameName());return t.font=n.getFont(c.c.Font.Default),t.measureText((Math.floor(e)+.88).toString()).width+16}},{key:"Draw",value:function(t){var e=i.a.instance,n=this.getAreaName(),r=e.getArea(n),a=n.substring(0,n.lastIndexOf("Range")),s=e.getRange(a);if(0!==s.getRange()){if("main"===s.getNameObject().getCompAt(2));else if(!r.isChanged()&&!s.isUpdated())return;var l=s.getGradations();if(0!==l.length){var u=r.getLeft(),h=r.getRight(),_=r.getCenter(),d=e.getTheme(this.getFrameName());t.font=d.getFont(c.c.Font.Default),t.textAlign="center",t.textBaseline="middle",t.fillStyle=d.getColor(c.c.Color.Text2);var f=[];for(var g in l){var p=s.toY(l[g]);f.push({x:u,y:p,w:6,h:1}),f.push({x:h-6,y:p,w:6,h:1}),t.fillText(o.a.fromFloat(l[g],2),_,p)}f.length>0&&(t.fillStyle=d.getColor(c.c.Color.Grid1),P.createRectangles(t,f),t.fill())}}}}]),n}(),j=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){return this._Draw_(t)}},{key:"_Draw_",value:function(t){if(!1!==this.Update()&&!1!==this.updateData()){this.m_top=this.m_pArea.getTop(),this.m_bottom=this.m_pArea.getBottom(),this.m_left=this.m_pArea.getLeft(),this.m_right=this.m_pArea.getRight(),t.save(),t.rect(this.m_left,this.m_top,this.m_right-this.m_left,this.m_bottom-this.m_top),t.clip();var e=i.a.instance.getChart()._depthData;this.x_offset=0,this.y_offset=0;var n={},r={};n.x=this.m_left+e.array[this.m_ask_si].amounts*this.m_Step,n.y=this.m_pRange.toY(e.array[this.m_ask_si].rate),r.x=this.m_left+e.array[this.m_bid_si].amounts*this.m_Step,r.y=this.m_pRange.toY(e.array[this.m_bid_si].rate),Math.abs(n.y-r.y)<1&&(this.y_offset=1),this.x_offset=1,this.DrawBackground(t),this.UpdatePoints(),this.FillBlack(t),this.DrawGradations(t),this.DrawLine(t),t.restore()}}},{key:"DrawBackground",value:function(t){t.fillStyle=this.m_pTheme.getColor(c.c.Color.Background),t.fillRect(this.m_left,this.m_top,this.m_right-this.m_left,this.m_bottom-this.m_top);var e=i.a.instance.getChart()._depthData;if(0===this.m_mode){var n=this.m_pRange.toY(e.array[this.m_ask_si].rate)-this.y_offset,r=this.m_pRange.toY(e.array[this.m_bid_si].rate)+this.y_offset,a=t.createLinearGradient(this.m_left,0,this.m_right,0);a.addColorStop(0,this.m_pTheme.getColor(c.c.Color.Background)),a.addColorStop(1,this.m_pTheme.getColor(c.c.Color.PositiveDark)),t.fillStyle=a,t.fillRect(this.m_left,this.m_top,this.m_right-this.m_left,n-this.m_top);var o=t.createLinearGradient(this.m_left,0,this.m_right,0);o.addColorStop(0,this.m_pTheme.getColor(c.c.Color.Background)),o.addColorStop(1,this.m_pTheme.getColor(c.c.Color.NegativeDark)),t.fillStyle=o,t.fillRect(this.m_left,r,this.m_right-this.m_left,this.m_bottom-r)}else if(1===this.m_mode){var s=t.createLinearGradient(this.m_left,0,this.m_right,0);s.addColorStop(0,this.m_pTheme.getColor(c.c.Color.Background)),s.addColorStop(1,this.m_pTheme.getColor(c.c.Color.PositiveDark)),t.fillStyle=s,t.fillRect(this.m_left,this.m_top,this.m_right-this.m_left,this.m_bottom-this.m_top)}else if(2===this.m_mode){var l=t.createLinearGradient(this.m_left,0,this.m_right,0);l.addColorStop(0,this.m_pTheme.getColor(c.c.Color.Background)),l.addColorStop(1,this.m_pTheme.getColor(c.c.Color.NegativeDark)),t.fillStyle=l,t.fillRect(this.m_left,this.m_top,this.m_right-this.m_left,this.m_bottom-this.m_top)}}},{key:"DrawLine",value:function(t){if(0===this.m_mode||1===this.m_mode){t.strokeStyle=this.m_pTheme.getColor(c.c.Color.Positive),t.beginPath(),t.moveTo(Math.floor(this.m_ask_points[0].x)+.5,Math.floor(this.m_ask_points[0].y)+.5);for(var e=1;e<this.m_ask_points.length;e++)t.lineTo(Math.floor(this.m_ask_points[e].x)+.5,Math.floor(this.m_ask_points[e].y)+.5);t.stroke()}if(0===this.m_mode||2===this.m_mode){t.strokeStyle=this.m_pTheme.getColor(c.c.Color.Negative),t.beginPath(),t.moveTo(this.m_bid_points[0].x+.5,this.m_bid_points[0].y+.5);for(var n=1;n<this.m_bid_points.length;n++)t.lineTo(this.m_bid_points[n].x+.5,this.m_bid_points[n].y+.5);t.stroke()}}},{key:"UpdatePoints",value:function(){var t=i.a.instance.getChart()._depthData;this.m_ask_points=[];var e={};e.x=Math.floor(this.m_left),e.y=Math.floor(this.m_pRange.toY(t.array[this.m_ask_si].rate)-this.y_offset),this.m_ask_points.push(e);for(var n=0,r=this.m_ask_si;r>=this.m_ask_ei;r--){var a={},o={};r===this.m_ask_si?(a.x=Math.floor(this.m_left+t.array[r].amounts*this.m_Step+this.x_offset),a.y=Math.floor(this.m_pRange.toY(t.array[r].rate)-this.y_offset),this.m_ask_points.push(a),n=1):(a.x=Math.floor(this.m_left+t.array[r].amounts*this.m_Step+this.x_offset),a.y=Math.floor(this.m_ask_points[n].y),o.x=Math.floor(a.x),o.y=Math.floor(this.m_pRange.toY(t.array[r].rate)-this.y_offset),this.m_ask_points.push(a),n++,this.m_ask_points.push(o),n++)}this.m_bid_points=[];var s={};s.x=Math.floor(this.m_left),s.y=Math.ceil(this.m_pRange.toY(t.array[this.m_bid_si].rate)+this.y_offset),this.m_bid_points.push(s);for(var l=0,c=this.m_bid_si;c<=this.m_bid_ei;c++){var u={},h={};c===this.m_bid_si?(u.x=Math.floor(this.m_left+t.array[c].amounts*this.m_Step+this.x_offset),u.y=Math.ceil(this.m_pRange.toY(t.array[c].rate)+this.y_offset),this.m_bid_points.push(u),l=1):(u.x=Math.floor(this.m_left+t.array[c].amounts*this.m_Step+this.x_offset),u.y=Math.ceil(this.m_bid_points[l].y),h.x=Math.floor(u.x),h.y=Math.ceil(this.m_pRange.toY(t.array[c].rate)+this.x_offset),this.m_bid_points.push(u),l++,this.m_bid_points.push(h),l++)}}},{key:"updateData",value:function(){var t=i.a.instance.getChart()._depthData;if(null===t.array)return!1;if(t.array.length<=50)return!1;var e=this.m_pRange.getOuterMinValue(),n=this.m_pRange.getOuterMaxValue();this.m_ask_si=t.asks_si,this.m_ask_ei=t.asks_si;for(var r=t.asks_si;r>=t.asks_ei&&t.array[r].rate<n;r--)this.m_ask_ei=r;this.m_bid_si=t.bids_si,this.m_bid_ei=t.bids_si;for(var a=t.bids_si;a<=t.bids_ei&&t.array[a].rate>e;a++)this.m_bid_ei=a;return this.m_ask_ei===this.m_ask_si?this.m_mode=2:this.m_bid_ei===this.m_bid_si?this.m_mode=1:this.m_mode=0,this.m_Step=this.m_pArea.getWidth(),0===this.m_mode?this.m_ask_ei===t.asks_ei&&this.m_bid_ei===t.bids_ei?this.m_Step/=Math.min(t.array[this.m_ask_ei].amounts,t.array[this.m_bid_ei].amounts):this.m_ask_ei!==t.asks_ei&&this.m_bid_ei===t.bids_ei?this.m_Step/=t.array[this.m_bid_ei].amounts:this.m_ask_ei===t.asks_ei&&this.m_bid_ei!==t.bids_ei?this.m_Step/=t.array[this.m_ask_ei].amounts:this.m_ask_ei!==t.asks_ei&&this.m_bid_ei!==t.bids_ei&&(this.m_Step/=Math.max(t.array[this.m_ask_ei].amounts,t.array[this.m_bid_ei].amounts)):1===this.m_mode?this.m_Step/=t.array[this.m_ask_ei].amounts:2===this.m_mode&&(this.m_Step/=t.array[this.m_bid_ei].amounts),!0}},{key:"Update",value:function(){this.m_pMgr=i.a.instance;var t=this.getAreaName();if(this.m_pArea=this.m_pMgr.getArea(t),null===this.m_pArea)return!1;var e=t.substring(0,t.lastIndexOf("Range"));return this.m_pRange=this.m_pMgr.getRange(e),null!==this.m_pRange&&0!==this.m_pRange.getRange()&&(this.m_pTheme=this.m_pMgr.getTheme(this.getFrameName()),null!==this.m_pTheme)}},{key:"DrawGradations",value:function(t){var e=i.a.instance,n=this.getAreaName(),r=e.getArea(n),a=n.substring(0,n.lastIndexOf("Range")),o=e.getRange(a);if(0!==o.getRange()){var s=o.getGradations();if(0!==s.length){var l=r.getLeft(),u=r.getRight(),h=[];for(var _ in s){var d=o.toY(s[_]);h.push({x:l,y:d,w:6,h:1}),h.push({x:u-6,y:d,w:6,h:1})}if(h.length>0){var f=e.getTheme(this.getFrameName());t.fillStyle=f.getColor(c.c.Color.Grid1),P.createRectangles(t,h),t.fill()}}}}},{key:"FillBlack",value:function(t){var e=this.m_ask_points,n=this.m_bid_points,r={},a={};r.x=this.m_right,r.y=e[0].y,a.x=this.m_right,a.y=e[e.length-1].y;var i={},o={};i.x=this.m_right,i.y=n[0].y-1,o.x=this.m_right,o.y=n[n.length-1].y,e.unshift(r),e.push(a),n.unshift(i),n.push(o),t.fillStyle=this.m_pTheme.getColor(c.c.Color.Background),t.beginPath(),t.moveTo(Math.floor(e[0].x)+.5,Math.floor(e[0].y)+.5);for(var s=1;s<e.length;s++)t.lineTo(Math.floor(e[s].x)+.5,Math.floor(e[s].y)+.5);t.fill(),t.beginPath(),t.moveTo(Math.floor(n[0].x)+.5,Math.floor(n[0].y)+.5);for(var l=1;l<n.length;l++)t.lineTo(Math.floor(n[l].x)+.5,Math.floor(n[l].y)+.5);t.fill(),e.shift(),e.pop(),n.shift(),n.pop()}},{key:"DrawTickerGraph",value:function(t){var e=i.a.instance.getDataSource(this.getDataSourceName()),n=e._dataItems[e._dataItems.length-1].close;this.m_left,this.m_pRange.toY(n);t.fillStyle=this.m_pTheme.getColor(c.c.Color.Mark),t.strokeStyle=this.m_pTheme.getColor(c.c.Color.Mark)}}]),n}(),B=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=(e.getTimeline(this.getDataSourceName()),this.getAreaName()),r=e.getArea(n),a=n.substring(0,n.lastIndexOf("Range")),s=e.getRange(a);if(0!==s.getRange()){var l=e.getDataSource(this.getDataSourceName());if(!(l.getDataCount()<1)){var u=e.getTheme(this.getFrameName());t.font=u.getFont(c.c.Font.Default),t.textAlign="left",t.textBaseline="middle",t.fillStyle=u.getColor(c.c.Color.RangeMark),t.strokeStyle=u.getColor(c.c.Color.RangeMark);var h=l.getDataAt(l.getDataCount()-1).volume,_=s.toY(h),d=r.getLeft()+1;P.drawLine(t,d,_,d+7,_),P.drawLine(t,d,_,d+3,_+2),P.drawLine(t,d,_,d+3,_-2),t.fillText(o.a.fromFloat(h,2),d+10,_)}}}}]),n}(),U=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=(e.getTimeline(this.getDataSourceName()),this.getAreaName()),r=e.getArea(n),a=n.substring(0,n.lastIndexOf("Range")),s=e.getRange(a);if(0!==s.getRange()){var l=e.getDataSource(this.getDataSourceName());if(!(l.getDataCount()<1)){var u=l._dataItems[l._dataItems.length-1].close;if(!(u<=s.getMinValue()||u>=s.getMaxValue())){var h=e.getTheme(this.getFrameName());t.font=h.getFont(c.c.Font.Default),t.textAlign="left",t.textBaseline="middle",t.fillStyle=h.getColor(c.c.Color.RangeMark),t.strokeStyle=h.getColor(c.c.Color.RangeMark);var _=s.toY(u),d=r.getLeft()+1;P.drawLine(t,d,_,d+7,_),P.drawLine(t,d,_,d+3,_+2),P.drawLine(t,d,_,d+3,_-2),t.fillText(o.a.fromFloat(u,l.getDecimalDigits()),d+10,_)}}}}}]),n}(),W=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance;if(e._drawingTool===i.a.DrawingTool.CrossCursor){var n=e.getArea(this.getAreaName()),r=e.getTimeline(this.getDataSourceName());if(!(r.getSelectedIndex()<0)){var a=e.getRange(this.getAreaName()),o=e.getTheme(this.getFrameName());t.strokeStyle=o.getColor(c.c.Color.Cursor);var s=r.toItemCenter(r.getSelectedIndex());P.drawLine(t,s,n.getTop()-1,s,n.getBottom());var l=a.getSelectedPosition();l>=0&&P.drawLine(t,n.getLeft(),l,n.getRight(),l)}}}}]),n}(),Y=function(t){m(n,P);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,a=e.getArea(this.getAreaName()),s=e.getTimeline(this.getDataSourceName());if(!(s.getSelectedIndex()<0)){var l=e.getDataSource(this.getDataSourceName());if(o.a.isInstance(l,h.b)){var u=e.getTheme(this.getFrameName()),_=e.getLanguage(),d=s.toItemCenter(s.getSelectedIndex());t.fillStyle=u.getColor(c.c.Color.Background),t.fillRect(d-52.5,a.getTop()+2.5,106,18),t.strokeStyle=u.getColor(c.c.Color.Grid3),t.strokeRect(d-52.5,a.getTop()+2.5,106,18),t.font=u.getFont(c.c.Font.Default),t.textAlign="center",t.textBaseline="middle",t.fillStyle=u.getColor(c.c.Color.Text4);var f=new Date(l.getDataAt(s.getSelectedIndex()).date),g=f.getMonth()+1,p=f.getDate(),m=f.getHours(),v=f.getMinutes(),y=f.getSeconds(),b=g.toString(),w=p.toString(),P=m.toString(),A=v.toString(),C=y.toString();v<10&&(A="0"+A),y<10&&(C="0"+C);var k="";"zh-cn"===_?k=b+"月"+w+"日  "+P+":"+A:"zh-tw"===_?k=b+"月"+w+"日  "+P+":"+A:"en-us"===_&&(k=n.MonthConvert[g]+" "+w+"  "+P+":"+A),r.a.instance.range<6e4&&(k+=":"+C),t.fillText(k,d,a.getMiddle())}}}}]),n}();Y.MonthConvert={1:"Jan.",2:"Feb.",3:"Mar.",4:"Apr.",5:"May.",6:"Jun.",7:"Jul.",8:"Aug.",9:"Sep.",10:"Oct.",11:"Nov.",12:"Dec."};var z=function(t){m(n,a["a"]);var e=y(n);function n(t){return f(this,n),e.call(this,t)}return p(n,[{key:"Draw",value:function(t){var e=i.a.instance,n=this.getAreaName(),r=e.getArea(n);if(!(e.getTimeline(this.getDataSourceName()).getSelectedIndex()<0)){var a=n.substring(0,n.lastIndexOf("Range")),s=e.getRange(a);if(!(0===s.getRange()||s.getSelectedPosition()<0)){var l=s.getSelectedValue();if(l!==-Number.MAX_VALUE){var u=s.getSelectedPosition();P.createPolygon(t,[{x:r.getLeft(),y:u},{x:r.getLeft()+5,y:u+10},{x:r.getRight()-3,y:u+10},{x:r.getRight()-3,y:u-10},{x:r.getLeft()+5,y:u-10}]);var h=e.getTheme(this.getFrameName());t.fillStyle=h.getColor(c.c.Color.Background),t.fill(),t.strokeStyle=h.getColor(c.c.Color.Grid4),t.stroke(),t.font=h.getFont(c.c.Font.Default),t.textAlign="center",t.textBaseline="middle",t.fillStyle=h.getColor(c.c.Color.Text3);var _=2;"main"===s.getNameObject().getCompAt(2)&&(_=e.getDataSource(this.getDataSourceName()).getDecimalDigits()),t.fillText(o.a.fromFloat(l,_),r.getCenter(),u)}}}}}]),n}(),F=function(t){m(n,a["a"]);var e=y(n);function n(t,r){var a;f(this,n),(a=e.call(this,t)).toolObject=r;var o=i.a.instance.getArea("frame0.k0.main");return null===o?(a.areaPos={left:0,top:0,right:0,bottom:0},b(a)):(a.areaPos={left:o.getLeft(),top:o.getTop(),right:o.getRight(),bottom:o.getBottom()},a.crossPt={},a.normalSize=4,a.selectedSize=6,a.cursorLen=4,a.cursorGapLen=3,a.theme=i.a.instance.getTheme(a.getFrameName()),a)}return p(n,[{key:"drawCursor",value:function(t){this.drawCrossCursor(t)}},{key:"drawCrossCursor",value:function(t){t.strokeStyle=this.theme.getColor(c.c.Color.LineColorNormal),t.fillStyle=this.theme.getColor(c.c.Color.LineColorNormal);var e=this.toolObject.getPoint(0).getPosXY();if(null!==e){var n=e.x,r=e.y,a=this.cursorLen,i=this.cursorGapLen;t.fillRect(n,r,1,1),P.drawLine(t,n-a-i,r,n-i,r),P.drawLine(t,n+a+i,r,n+i,r),P.drawLine(t,n,r-a-i,n,r-i),P.drawLine(t,n,r+a+i,n,r+i)}}},{key:"drawCircle",value:function(t,e,n){var r=e.x,a=e.y;t.beginPath(),t.arc(r,a,n,0,2*Math.PI,!1),t.fillStyle=this.theme.getColor(c.c.Color.CircleColorFill),t.fill(),t.stroke()}},{key:"drawCtrlPt",value:function(t){t.strokeStyle=this.theme.getColor(c.c.Color.CircleColorStroke);for(var e=0;e<this.ctrlPtsNum;e++)this.drawCircle(t,this.ctrlPts[1][e],this.normalSize)}},{key:"highlightCtrlPt",value:function(t){t.strokeStyle=this.theme.getColor(c.c.Color.CircleColorStroke);for(var e=0;e<this.ctrlPtsNum;e++)this.toolObject.getPoint(e).getState()===s.a.state.Highlight&&this.drawCircle(t,this.ctrlPts[1][e],this.selectedSize)}},{key:"drawFibRayLines",value:function(t,e,n){for(var r=0;r<this.fiboFansSequence.length;r++){var a=e.y+(100-this.fiboFansSequence[r])/100*(n.y-e.y),i={x:e.x,y:e.y},o={x:n.x,y:a};this.drawRayLines(t,i,o)}}},{key:"drawRayLines",value:function(t,e,n){this.getAreaPos();var r,a={x:e.x,y:e.y},i={x:n.x,y:n.y},o=this.getRectCrossPt(this.areaPos,a,i);r=n.x===e.x?n.y===e.y?n:n.y>e.y?{x:o[1].x,y:o[1].y}:{x:o[0].x,y:o[0].y}:n.x>e.x?{x:o[1].x,y:o[1].y}:{x:o[0].x,y:o[0].y},P.drawLine(t,e.x,e.y,r.x,r.y)}},{key:"lenBetweenPts",value:function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}},{key:"getCtrlPts",value:function(){for(var t=0;t<this.ctrlPtsNum;t++)this.ctrlPts[0][t]=this.toolObject.getPoint(t)}},{key:"updateCtrlPtPos",value:function(){for(var t=0;t<this.ctrlPtsNum;t++)this.ctrlPts[1][t]=this.ctrlPts[0][t].getPosXY()}},{key:"getAreaPos",value:function(){var t=i.a.instance.getArea("frame0.k0.main");this.areaPos=null!==t?{left:Math.floor(t.getLeft()),top:Math.floor(t.getTop()),right:Math.floor(t.getRight()),bottom:Math.floor(t.getBottom())}:{left:0,top:0,right:0,bottom:0}}},{key:"updateDraw",value:function(t){t.strokeStyle=this.theme.getColor(c.c.Color.LineColorNormal),this.draw(t),this.drawCtrlPt(t)}},{key:"finishDraw",value:function(t){t.strokeStyle=this.theme.getColor(c.c.Color.LineColorNormal),this.draw(t)}},{key:"highlight",value:function(t){t.strokeStyle=this.theme.getColor(c.c.Color.LineColorSelected),this.draw(t),this.drawCtrlPt(t),this.highlightCtrlPt(t)}}]),n}(),G=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y?P.drawLine(t,this.areaPos.left,this.startPoint.y,this.areaPos.right,this.startPoint.y):(this.crossPt=this.getRectCrossPt(this.areaPos,this.startPoint,this.endPoint),P.drawLine(t,this.crossPt[0].x,this.crossPt[0].y,this.crossPt[1].x,this.crossPt[1].y))}}]),n}(),V=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y&&(this.endPoint.x+=1),P.drawLine(t,this.startPoint.x,this.startPoint.y,this.endPoint.x,this.endPoint.y)}}]),n}(),K=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y&&(this.endPoint.x+=1),this.drawRayLines(t,this.startPoint,this.endPoint)}}]),n}(),Z=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.arrowSizeRatio=.03,a.arrowSize=4,a.crossPt={x:-1,y:-1},a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"drawArrow",value:function(t,e,n){var r=this.lenBetweenPts(e,n),a=[n.x-e.x,n.y-e.y];this.crossPt.x=e.x+(1-this.arrowSize/r)*a[0],this.crossPt.y=e.y+(1-this.arrowSize/r)*a[1];var i=[-a[1],a[0]],o={x:i[0],y:i[1]},s={x:0,y:0};i[0]=this.arrowSize*o.x/this.lenBetweenPts(o,s),i[1]=this.arrowSize*o.y/this.lenBetweenPts(o,s);var l=[this.crossPt.x+i[0],this.crossPt.y+i[1]];P.drawLine(t,n.x,n.y,l[0],l[1]),l=[this.crossPt.x-i[0],this.crossPt.y-i[1]],P.drawLine(t,n.x,n.y,l[0],l[1])}},{key:"draw",value:function(t){this.updateCtrlPtPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y&&(this.endPoint.x+=1),P.drawLine(t,this.startPoint.x,this.startPoint.y,this.endPoint.x,this.endPoint.y),this.drawArrow(t,this.startPoint,this.endPoint)}}]),n}(),H=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.ctrlPtsNum=1,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],P.drawLine(t,this.areaPos.left,this.startPoint.y,this.areaPos.right,this.startPoint.y)}}]),n}(),X=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){if(this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.startPoint.x===this.endPoint.x)P.drawLine(t,this.startPoint.x,this.startPoint.y,this.areaPos.right,this.startPoint.y);else{var e={x:this.endPoint.x,y:this.startPoint.y};this.drawRayLines(t,this.startPoint,e)}}}]),n}(),J=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.endPoint.y=this.startPoint.y,this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y?P.drawLine(t,this.startPoint.x,this.startPoint.y,this.endPoint.x+1,this.startPoint.y):P.drawLine(t,this.startPoint.x,this.startPoint.y,this.endPoint.x,this.startPoint.y)}}]),n}(),Q=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.ctrlPtsNum=1,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],P.drawLine(t,this.startPoint.x,this.areaPos.top,this.startPoint.x,this.areaPos.bottom)}}]),n}(),q=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.ctrlPtsNum=1,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){t.font="12px Tahoma",t.textAlign="left",t.fillStyle=this.theme.getColor(c.c.Color.LineColorNormal),this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0];var e=this.ctrlPts[0][0].getPosIV().v;P.drawLine(t,this.startPoint.x,this.startPoint.y,this.areaPos.right,this.startPoint.y),t.fillText(e.toFixed(2),this.startPoint.x+2,this.startPoint.y-15)}}]),n}(),$=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a}return p(n,[{key:"getParaPt",value:function(){var t=[];t[0]=this.endPoint.x-this.startPoint.x,t[1]=this.endPoint.y-this.startPoint.y;var e=[];e[0]=this.paraStartPoint.x-this.startPoint.x,e[1]=this.paraStartPoint.y-this.startPoint.y,this.paraEndPoint={x:-1,y:-1},this.paraEndPoint.x=t[0]+e[0]+this.startPoint.x,this.paraEndPoint.y=t[1]+e[1]+this.startPoint.y}}]),n}(),tt=function(t){m(n,$);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.ctrlPtsNum=3,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.paraStartPoint=this.ctrlPts[1][1],this.endPoint=this.ctrlPts[1][2],this.getParaPt(),this.getAreaPos(),this.crossPt0=this.getRectCrossPt(this.areaPos,this.startPoint,this.endPoint),P.drawLine(t,this.crossPt0[0].x,this.crossPt0[0].y,this.crossPt0[1].x,this.crossPt0[1].y),this.crossPt1=this.getRectCrossPt(this.areaPos,this.paraStartPoint,this.paraEndPoint),P.drawLine(t,this.crossPt1[0].x,this.crossPt1[0].y,this.crossPt1[1].x,this.crossPt1[1].y)}}]),n}(),et=function(t){m(n,$);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.ctrlPtsNum=3,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.paraStartPoint=this.ctrlPts[1][1],this.endPoint=this.ctrlPts[1][2],this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y&&(this.endPoint.x+=1),this.getParaPt(),this.drawRayLines(t,this.startPoint,this.endPoint),this.drawRayLines(t,this.paraStartPoint,this.paraEndPoint)}}]),n}(),nt=function(t){m(n,$);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.ctrlPtsNum=3,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.paraStartPoint=this.ctrlPts[1][1],this.endPoint=this.ctrlPts[1][2];var e=[];e[0]=this.endPoint.x-this.startPoint.x,e[1]=this.endPoint.y-this.startPoint.y;var n=[];n[0]=this.paraStartPoint.x-this.startPoint.x,n[1]=this.paraStartPoint.y-this.startPoint.y,this.para1EndPoint={x:-1,y:-1},this.para2EndPoint={x:-1,y:-1},this.para2StartPoint={x:-1,y:-1},this.para1EndPoint.x=e[0]+n[0]+this.startPoint.x,this.para1EndPoint.y=e[1]+n[1]+this.startPoint.y,this.para2StartPoint.x=this.startPoint.x-n[0],this.para2StartPoint.y=this.startPoint.y-n[1],this.para2EndPoint.x=this.endPoint.x-n[0],this.para2EndPoint.y=this.endPoint.y-n[1],this.getAreaPos(),this.crossPt0=this.getRectCrossPt(this.areaPos,this.startPoint,this.endPoint),P.drawLine(t,this.crossPt0[0].x,this.crossPt0[0].y,this.crossPt0[1].x,this.crossPt0[1].y),this.crossPt1=this.getRectCrossPt(this.areaPos,this.paraStartPoint,this.para1EndPoint),P.drawLine(t,this.crossPt1[0].x,this.crossPt1[0].y,this.crossPt1[1].x,this.crossPt1[1].y),this.crossPt2=this.getRectCrossPt(this.areaPos,this.para2StartPoint,this.para2EndPoint),P.drawLine(t,this.crossPt2[0].x,this.crossPt2[0].y,this.crossPt2[1].x,this.crossPt2[1].y)}}]),n}(),rt=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"drawLinesAndInfo",value:function(t,e,n){var r;t.font="12px Tahoma",t.textAlign="left",t.fillStyle=this.theme.getColor(c.c.Color.LineColorNormal),this.toolObject.state===_.n.state.Draw&&(this.startPtValue=this.toolObject.getPoint(0).getPosIV().v,this.endPtValue=this.toolObject.getPoint(1).getPosIV().v),this.getAreaPos();for(var a=0;a<this.fiboSequence.length;a++){var i=e.y+(100-this.fiboSequence[a])/100*(n.y-e.y);if(!(i>this.areaPos.bottom)){var o=this.startPtValue+(100-this.fiboSequence[a])/100*(this.endPtValue-this.startPtValue);P.drawLine(t,this.areaPos.left,i,this.areaPos.right,i),r=this.fiboSequence[a].toFixed(1)+"% "+o.toFixed(1),t.fillText(r,this.areaPos.left+2,i-15)}}}},{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.drawLinesAndInfo(t,this.startPoint,this.endPoint)}}]),n}(),at=function(t){m(n,rt);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.fiboSequence=[100,78.6,61.8,50,38.2,23.6,0],a}return n}(),it=function(t){m(n,rt);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t,r)).toolObject=r,a.fiboSequence=[0,12.5,25,37.5,50,62.5,75,87.5,100],a}return n}(),ot=function(t){m(n,F);var e=y(n);function n(t,r){var a;return f(this,n),(a=e.call(this,t)).toolObject=r,a.fiboFansSequence=[0,38.2,50,61.8],a.ctrlPtsNum=2,a.ctrlPts=[new Array(a.ctrlPtsNum),new Array(2)],a.getCtrlPts(),a}return p(n,[{key:"drawLinesAndInfo",value:function(t,e,n){this.drawFibRayLines(t,e,n)}},{key:"draw",value:function(t){this.updateCtrlPtPos(),this.getAreaPos(),this.startPoint=this.ctrlPts[1][0],this.endPoint=this.ctrlPts[1][1],this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y&&(this.endPoint.x+=1),this.drawLinesAndInfo(t,this.startPoint,this.endPoint)}}]),n}(),st=function(t){m(n,a["a"]);var e=y(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).flag=!0,r.context=i.a.instance._overlayContext,r}return p(n,[{key:"getAreaPos",value:function(){var t=i.a.instance.getArea("frame0.k0.main");this.areaPos=null!==t?{left:Math.floor(t.getLeft()),top:Math.floor(t.getTop()),right:Math.floor(t.getRight()),bottom:Math.floor(t.getBottom())}:{left:0,top:0,right:0,bottom:0}}},{key:"Draw",value:function(t){this.getAreaPos();var e=i.a.instance.getDataSource(this.getDataSourceName());if(null!==e&&o.a.isInstance(e,h.b)){this.context.save(),this.context.rect(this.areaPos.left,this.areaPos.top,this.areaPos.right-this.areaPos.left,this.areaPos.bottom-this.areaPos.top),this.context.clip();for(var n=e.getToolObjectCount(),r=0;r<n;r++){var a=e.getToolObject(r);switch(a.getState()){case _.n.state.BeforeDraw:a.getPlotter().theme=i.a.instance.getTheme(this.getFrameName()),a.getPlotter().drawCursor(this.context);break;case _.n.state.Draw:a.getPlotter().theme=i.a.instance.getTheme(this.getFrameName()),a.getPlotter().updateDraw(this.context);break;case _.n.state.AfterDraw:a.getPlotter().theme=i.a.instance.getTheme(this.getFrameName()),a.getPlotter().finishDraw(this.context)}}var s=e.getSelectToolObjcet();null!==s&&s!==_.n.state.Draw&&s.getPlotter().highlight(this.context),this.context.restore()}}}]),n}()},function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return m});var r=n(1),a=n(0),i=n(5),o=n(2);function s(t){"@babel/helpers - typeof";return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){h(n,r["a"]);var e=d(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._minValue=0,r._maxValue=0,r._minValueIndex=-1,r._maxValueIndex=-1,r}return u(n,[{key:"getMinValue",value:function(){return this._minValue}},{key:"getMaxValue",value:function(){return this._maxValue}},{key:"getMinValueIndex",value:function(){return this._minValueIndex}},{key:"getMaxValueIndex",value:function(){return this._maxValueIndex}},{key:"getMinMaxAt",value:function(t,e){return!0}},{key:"calcRange",value:function(t,e,n,r){for(var a=Number.MAX_VALUE,i=-Number.MAX_VALUE,o=-1,s=-1,l={},c=e-1,u=t.length-1;u>=0;u--){var h=t[u];if(c<h)n[u]={min:a,max:i};else{for(;c>=h;c--)!1!==this.getMinMaxAt(c,l)&&(a>l.min&&(a=l.min,o=c),i<l.max&&(i=l.max,s=c));n[u]={min:a,max:i}}null!==r&&void 0!==r&&(r[u]={minIndex:o,maxIndex:s})}}},{key:"updateRange",value:function(){var t=a.a.instance.getTimeline(this.getDataSourceName()),e=[t.getFirstIndex()],n=[{}],r=[{}];this.calcRange(e,t.getLastIndex(),n,r),this._minValue=n[0].min,this._maxValue=n[0].max,this._minValueIndex=r[0].minIndex,this._maxValueIndex=r[0].maxIndex}}]),n}(),p=function(t){h(n,g);var e=d(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._candlestickDS=null,r}return u(n,[{key:"updateData",value:function(){var t=a.a.instance.getDataSource(this.getDataSourceName());i.a.isInstance(t,o.b)&&(this._candlestickDS=t)}},{key:"getMinMaxAt",value:function(t,e){var n=this._candlestickDS.getDataAt(t);return e.min=n.low,e.max=n.high,!0}}]),n}(),m=function(t){h(n,g);var e=d(n);function n(){return l(this,n),e.apply(this,arguments)}return u(n,[{key:"getIndicator",value:function(){return this._indicator}},{key:"setIndicator",value:function(t){this._indicator=t,this.refresh()}},{key:"refresh",value:function(){var t=a.a.instance.getDataSource(this.getDataSourceName());if(!(t.getDataCount()<1)){var e,n=this._indicator,r=t.getDataCount();for(n.clear(),n.reserve(r),e=0;e<r;e++)n.execute(t,e)}}},{key:"updateData",value:function(){var t=a.a.instance.getDataSource(this.getDataSourceName());if(!(t.getDataCount()<1)){var e=this._indicator;switch(t.getUpdateMode()){case o.a.UpdateMode.Refresh:this.refresh();break;case o.a.UpdateMode.Append:e.reserve(t.getAppendedCount());break;case o.a.UpdateMode.Update:var n,r=t.getDataCount();for(n=r-(t.getUpdatedCount()+t.getAppendedCount());n<r;n++)e.execute(t,n)}}}},{key:"getMinMaxAt",value:function(t,e){e.min=Number.MAX_VALUE,e.max=-Number.MAX_VALUE;var n,r,a=!1,i=this._indicator.getOutputCount();for(r=0;r<i;r++)n=this._indicator.getOutputAt(r).execute(t),!1===isNaN(n)&&(a=!0,e.min>n&&(e.min=n),e.max<n&&(e.max=n));return a}}]),n}()},function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"e",function(){return p}),n.d(e,"c",function(){return m}),n.d(e,"f",function(){return v}),n.d(e,"d",function(){return y}),n.d(e,"g",function(){return b}),n.d(e,"b",function(){return w});var r=n(1),a=n(0),i=n(17);function o(t){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){h(n,r["a"]);var e=d(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._left=0,r._top=0,r._right=0,r._bottom=0,r._changed=!1,r._highlighted=!1,r._pressed=!1,r._selected=!1,r.Measuring=new i.a,r}return u(n,[{key:"getDockStyle",value:function(){return this._dockStyle}},{key:"setDockStyle",value:function(t){this._dockStyle=t}},{key:"getLeft",value:function(){return this._left}},{key:"getTop",value:function(){return this._top}},{key:"setTop",value:function(t){this._top!==t&&(this._top=t,this._changed=!0)}},{key:"getRight",value:function(){return this._right}},{key:"getBottom",value:function(){return this._bottom}},{key:"setBottom",value:function(t){this._bottom!==t&&(this._bottom=t,this._changed=!0)}},{key:"getCenter",value:function(){return this._left+this._right>>1}},{key:"getMiddle",value:function(){return this._top+this._bottom>>1}},{key:"getWidth",value:function(){return this._right-this._left}},{key:"getHeight",value:function(){return this._bottom-this._top}},{key:"getRect",value:function(){return{X:this._left,Y:this._top,Width:this._right-this._left,Height:this._bottom-this._top}}},{key:"contains",value:function(t,e){return t>=this._left&&t<this._right&&e>=this._top&&e<this._bottom?[this]:null}},{key:"getMeasuredWidth",value:function(){return this._measuredWidth}},{key:"getMeasuredHeight",value:function(){return this._measuredHeight}},{key:"setMeasuredDimension",value:function(t,e){this._measuredWidth=t,this._measuredHeight=e}},{key:"measure",value:function(t,e,n){this._measuredWidth=0,this._measuredHeight=0,this.Measuring.raise(this,{Width:e,Height:n}),0===this._measuredWidth&&0===this._measuredHeight&&this.setMeasuredDimension(e,n)}},{key:"layout",value:function(t,e,n,r,a){t<<=0,this._left!==t&&(this._left=t,this._changed=!0),e<<=0,this._top!==e&&(this._top=e,this._changed=!0),n<<=0,this._right!==n&&(this._right=n,this._changed=!0),r<<=0,this._bottom!==r&&(this._bottom=r,this._changed=!0),a&&(this._changed=!0)}},{key:"isChanged",value:function(){return this._changed}},{key:"setChanged",value:function(t){this._changed=t}},{key:"isHighlighted",value:function(){return this._highlighted}},{key:"getHighlightedArea",value:function(){return this._highlighted?this:null}},{key:"highlight",value:function(t){return this._highlighted=this===t,this._highlighted?this:null}},{key:"isPressed",value:function(){return this._pressed}},{key:"setPressed",value:function(t){this._pressed=t}},{key:"isSelected",value:function(){return this._selected}},{key:"getSelectedArea",value:function(){return this._selected?this:null}},{key:"select",value:function(t){return this._selected=this===t,this._selected?this:null}},{key:"onMouseMove",value:function(t,e){return null}},{key:"onMouseLeave",value:function(t,e){}},{key:"onMouseDown",value:function(t,e){return null}},{key:"onMouseUp",value:function(t,e){return null}}]),n}();g.DockStyle={Left:0,Top:1,Right:2,Bottom:3,Fill:4};var p=function(t){h(n,g);var e=d(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._dragStarted=!1,r._oldX=0,r._oldY=0,r._passMoveEventToToolManager=!0,r}return u(n,[{key:"onMouseMove",value:function(t,e){var n=a.a.instance;if(n._capturingMouseArea===this&&!1===this._dragStarted&&(Math.abs(this._oldX-t)>1||Math.abs(this._oldY-e)>1)&&(this._dragStarted=!0),this._dragStarted)return n.hideCursor(),n.onToolMouseDrag(this.getFrameName(),t,e)?this:(n.getTimeline(this.getDataSourceName()).move(t-this._oldX),this);if(this._passMoveEventToToolManager&&n.onToolMouseMove(this.getFrameName(),t,e))return n.hideCursor(),this;switch(n._drawingTool){case a.a.DrawingTool.Cursor:n.showCursor();break;case a.a.DrawingTool.CrossCursor:n.showCrossCursor(this,t,e)?n.hideCursor():n.showCursor();break;default:n.hideCursor()}return this}},{key:"onMouseLeave",value:function(t,e){this._dragStarted=!1,this._passMoveEventToToolManager=!0}},{key:"onMouseDown",value:function(t,e){var n=a.a.instance;return n.getTimeline(this.getDataSourceName()).startMove(),this._oldX=t,this._oldY=e,this._dragStarted=!1,n.onToolMouseDown(this.getFrameName(),t,e)&&(this._passMoveEventToToolManager=!1),this}},{key:"onMouseUp",value:function(t,e){var n=a.a.instance,r=null;return this._dragStarted&&(this._dragStarted=!1,r=this),n.onToolMouseUp(this.getFrameName(),t,e)&&(r=this),this._passMoveEventToToolManager=!0,r}}]),n}(),m=function(t){h(n,g);var e=d(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._dragStarted=!1,r._oldX=0,r._oldY=0,r}return u(n,[{key:"onMouseMove",value:function(t,e){var n=a.a.instance;if(n._capturingMouseArea===this&&!1===this._dragStarted&&(this._oldX===t&&this._oldY===e||(this._dragStarted=!0)),this._dragStarted)return n.hideCursor(),n.getTimeline(this.getDataSourceName()).move(t-this._oldX),this;switch(n._drawingTool){case a.a.DrawingTool.CrossCursor:n.showCrossCursor(this,t,e)?n.hideCursor():n.showCursor();break;default:n.showCursor()}return this}},{key:"onMouseLeave",value:function(t,e){this._dragStarted=!1}},{key:"onMouseDown",value:function(t,e){return a.a.instance.getTimeline(this.getDataSourceName()).startMove(),this._oldX=t,this._oldY=e,this._dragStarted=!1,this}},{key:"onMouseUp",value:function(t,e){return this._dragStarted?(this._dragStarted=!1,this):null}}]),n}(),v=function(t){h(n,g);var e=d(n);function n(t){return l(this,n),e.call(this,t)}return u(n,[{key:"onMouseMove",value:function(t,e){return a.a.instance.showCursor(),this}}]),n}(),y=function(t){h(n,g);var e=d(n);function n(t){return l(this,n),e.call(this,t)}return u(n,[{key:"onMouseMove",value:function(t,e){return a.a.instance.showCursor(),this}}]),n}(),b=function(t){h(n,g);var e=d(n);function n(t){return l(this,n),e.call(this,t)}return u(n,[{key:"onMouseMove",value:function(t,e){return a.a.instance.showCursor(),this}}]),n}(),w=function(t){h(n,g);var e=d(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._areas=[],r._highlightedArea=null,r._selectedArea=null,r}return u(n,[{key:"contains",value:function(t,e){var r,a,i=this._areas.length;for(a=0;a<i;a++)if(null!==(r=this._areas[a].contains(t,e)))return r.push(this),r;return s(f(n.prototype),"contains",this).call(this,t,e)}},{key:"getAreaCount",value:function(){return this._areas.length}},{key:"getAreaAt",value:function(t){return t<0||t>=this._areas.length?null:this._areas[t]}},{key:"addArea",value:function(t){this._areas.push(t)}},{key:"removeArea",value:function(t){var e,n=this._areas.length;for(e=0;e<n;e++)if(t===this._areas[e]){this._areas.splice(e),this.setChanged(!0);break}}},{key:"getGridColor",value:function(){return this._gridColor}},{key:"setGridColor",value:function(t){this._gridColor=t}},{key:"getHighlightedArea",value:function(){return null!==this._highlightedArea?this._highlightedArea.getHighlightedArea():null}},{key:"highlight",value:function(t){this._highlightedArea=null;var e,n,r=this._areas.length;for(n=0;n<r;n++)if(null!==(e=this._areas[n].highlight(t)))return this._highlightedArea=e,this;return null}},{key:"getSelectedArea",value:function(){return null!==this._selectedArea?this._selectedArea.getSelectedArea():null}},{key:"select",value:function(t){this._selectedArea=null;var e,n,r=this._areas.length;for(n=0;n<r;n++)if(null!==(e=this._areas[n].select(t)))return this._selectedArea=e,this;return null}},{key:"onMouseLeave",value:function(t,e){var n,r=this._areas.length;for(n=0;n<r;n++)this._areas[n].onMouseLeave(t,e)}},{key:"onMouseUp",value:function(t,e){var n,r,a=this._areas.length;for(r=0;r<a;r++)if(null!==(n=this._areas[r].onMouseUp(t,e)))return n;return null}}]),n}()},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.browerState=0,this.tradeDate=new Date,this.tradesLimit=20,this.lastDepth=null,this.depthShowSize=15,this.priceDecimalDigits=6,this.amountDecimalDigits=4,this.symbol=null,this.curPrice=null,this.title="",Object.assign(this,e),t.created||(t.instance=this,t.created=!0),t.instance}return function(t,e,n){e&&a(t.prototype,e),n&&a(t,n)}(t,[{key:"reset",value:function(t){this.symbol=t,this.lastDepth=null,this.curPrice=null,this.klineTradeInit=!1,$("#trades .trades_list").empty(),$("#gasks .table").empty(),$("#gbids .table").empty(),$("#asks .table").empty(),$("#bids .table").empty()}},{key:"pushTrades",value:function(t){for(var e=$("#trades .trades_list"),n="",r=0;r<t.length;r++){var a=t[r];if(r>=t.length-this.tradesLimit){this.tradeDate.setTime(a.time);var i=this.dateFormatTf(this.tradeDate.getHours())+":"+this.dateFormatTf(this.tradeDate.getMinutes())+":"+this.dateFormatTf(this.tradeDate.getSeconds()),o=(a.amount.toFixed(4)+"").split("."),s=a.price;s>1&&(s=s.toFixed(2)),s<1&&s>1e-5&&(s=s.toFixed(4)),s<1e-5&&(s=s.toFixed(6)),n=this.klineTradeInit?"<ul class='newul'><li class='tm'>"+i+"</li><li class='pr-"+("buy"===a.type?"green":"red")+"'>"+s+"</li><li class='vl'>"+o[0]+"<g>"+(o.length>1?"."+o[1]:"")+"</g></li></ul>"+n:"<ul><li class='tm'>"+i+"</li><li class='pr-"+("buy"===a.type?"green":"red")+"'>"+s+"</li><li class='vl'>"+o[0]+"<g>"+(o.length>1?"."+o[1]:"")+"</g></li></ul>"+n}}var l=0,c=this;if(this.klineTradeInit){clearInterval(u);var u=setInterval(function(){var e=t[l],n=Number(e.price);n>1&&(n=n.toFixed(2)),n<1&&n>1e-4&&(n=n.toFixed(4)),n<1e-4&&(n=n.toFixed(6)),c.curPrice=n,$("div#price").attr("class","buy"===e.type?"green":"red").text(n),++l>=t.length&&clearInterval(u)},100)}else if(t.length>0){var h=Number(t[t.length-1].price);h>1&&(h=h.toFixed(2)),h<1&&h>1e-4&&(h=h.toFixed(4)),h<1e-4&&(h=h.toFixed(6)),c.curPrice=h,$("div#price").attr("class","buy"===t[t.length-1].type?"green":"red").text(h)}this.klineTradeInit?e.prepend(n):e.append(n),n=null,e.find("ul.newul").slideDown(1e3,function(){$(this).removeClass("newul")}),e.find("ul:gt("+(this.tradesLimit-1)+")").remove()}},{key:"updateDepth",value:function(t){if(r.a.instance.getChart().updateDepth(t),t)if($("#gasks .table").html(this.getgview(this.getgasks(t.asks))),$("#gbids .table").html(this.getgview(this.getgbids(t.bids))),null===this.lastDepth)this.lastDepth={},this.lastDepth.asks=this.getAsks(t.asks,this.depthShowSize),this.depthInit(this.lastDepth.asks,$("#asks .table")),this.lastDepth.bids=this.getBids(t.bids,this.depthShowSize),this.depthInit(this.lastDepth.bids,$("#bids .table"));else{var e=$("#asks .table");e.find("div.remove").remove(),e.find("div.add").removeClass("add");var n=this.getAsks(t.asks,this.depthShowSize),a=this.lastDepth.asks;this.lastDepth.asks=n,this.asksAndBids(n.slice(0),a,e);var i=$("#bids .table");i.find("div.remove").remove(),i.find("div.add").removeClass("add");var o=this.getBids(t.bids,this.depthShowSize),s=this.lastDepth.bids;this.lastDepth.bids=o,this.asksAndBids(o.slice(0),s,$("#bids .table"))}}},{key:"depthInit",value:function(t,e){if(e.empty(),t&&t.length>0){for(var n,r="",a=0;a<t.length;a++){var i=(t[a][0]+"").split("."),o=this.getPrice(i,n);n=i[0],i=(t[a][1]+"").split(".");var s=this.getAmount(i);r+="<div class='row'><span class='price'>"+o[0]+"<g>"+o[1]+"</g></span> <span class='amount'>"+s[0]+"<g>"+s[1]+"</g></span></div>"}e.append(r),r=null}}},{key:"asksAndBids",value:function(t,e,n){for(var r=0;r<e.length;r++){for(var a=!1,i=0;i<t.length;i++)if(e[r][0]===t[i][0]){if(a=!0,e[r][1]!==t[i][1]){var o=n.find("div:eq("+r+") .amount");o.addClass(e[r][1]>t[i][1]?"red":"green");var s=this.getAmount((t[i][1]+"").split("."));setTimeout(function(t,e){return function(){t.html(e[0]+"<g>"+e[1]+"</g>"),t.removeClass("red").removeClass("green"),t=null,e=null}}(o,s),500)}t.splice(i,1);break}a||(n.find("div:eq("+r+")").addClass("remove"),e[r][2]=-1)}for(var l=0;l<e.length;l++)for(var c=0;c<t.length;c++)if(t[c][0]>e[l][0]){var u=(t[c][1]+"").split("."),h=this.getAmount(u);n.find("div:eq("+l+")").before("<div class='row add'><span class='price'></span> <span class='amount'>"+h[0]+"<g>"+h[1]+"</g></span></div>"),e.splice(l,0,t[c]),t.splice(c,1);break}for(var _,d="",f=0;f<t.length;f++){e.push(t[f]);var g=(t[f][1]+"").split("."),p=this.getAmount(g);d+="<div class='row add'><span class='price'></span> <span class='amount'>"+p[0]+"<g>"+p[1]+"</g></span></div>"}d.length>0&&n.append(d),d=null;for(var m=0;m<e.length;m++){var v=n.find("div:eq("+m+")");if(!(e[m].length>=3&&-1===e[m][2])){var y=(e[m][0]+"").split("."),b=this.getPrice(y,_);_=y[0],v.find(".price").html(b[0]+"<g>"+b[1]+"</g>")}}t=null,e=null,n.find("div.add").slideDown(800),setTimeout(function(t,e){return function(){t.slideUp(500,function(){$(this).remove()}),e.removeClass("add")}}(n.find("div.remove"),n.find("div.add")),1e3)}},{key:"getAsks",value:function(t,e){return t.length>e&&t.splice(0,t.length-e),t}},{key:"getBids",value:function(t,e){return t.length>e&&t.splice(e,t.length-1),t}},{key:"getgview",value:function(t){for(var e,n="",r=0;r<t.length;r++){var a=t[r][0].split(".");1===a.length||a[0]!==e?(n+="<div class='row'><span class='price'>"+t[r][0]+"</span> <span class='amount'>"+t[r][1]+"</span></div>",e=a[0]):n+="<div class='row'><span class='price'><h>"+a[0]+".</h>"+a[1]+"</span> <span class='amount'>"+t[r][1]+"</span></div>"}return n}},{key:"getgasks",value:function(t){if(t.length<2)return[];var e=t[t.length-1][0],n=t[0][0],r=n-e,a=this.getBlock(r,100),i=Math.abs(Number(Math.log(a)/Math.log(10))).toFixed(0);r/a<2&&(a/=2,i++),a>=1&&(i=0),e=parseInt(e/a)*a,n=parseInt(n/a)*a;for(var o=[],s=0,l=t.length-1;l>=0;l--){if(t[l][0]>e){var c=parseInt(s,10);if(c>0&&o.unshift([Number(e).toFixed(i),c]),e>=n)break;e+=a}s+=t[l][1]}return o}},{key:"getgbids",value:function(t){if(t.length<2)return[];var e=t[t.length-1][0],n=t[0][0],r=n-e,a=this.getBlock(r,100),i=Math.abs(Number(Math.log(a)/Math.log(10))).toFixed(0);r/a<2&&(a/=2,i++),a>=1&&(i=0),e=parseInt(e/a)*a,n=parseInt(n/a)*a;for(var o=[],s=0,l=0;l<t.length;l++){if(t[l][0]<n){var c=parseInt(s,10);if(c>0&&o.push([Number(n).toFixed(i),c]),n<=e)break;n-=a}s+=t[l][1]}return o}},{key:"getBlock",value:function(t,e){return t>e||t<=0?e:(e/=10,this.getBlock(t,e))}},{key:"getZeros",value:function(t){for(var e="";t>0;)t--,e+="0";return e}},{key:"getPrice",value:function(t,e){var n=t[0];e===n?n="<h>"+n+".</h>":n+=".";var r="";return 1===t.length?(n+="0",r=this.getZeros(this.priceDecimalDigits-1)):(n+=t[1],r=this.getZeros(this.priceDecimalDigits-t[1].length)),[n,r]}},{key:"getAmount",value:function(t){var e=t[0],n="",r=this.amountDecimalDigits-e.length+1;return r>0&&(n=".",1===t.length?n+=this.getZeros(r):r>t[1].length?n+=t[1]+this.getZeros(r-t[1].length):r===t[1].length?n+=t[1]:n+=t[1].substring(0,r)),[e,n]}},{key:"dateFormatTf",value:function(t){return(t<10?"0":"")+t}}]),t}();i.created=!1,i.instance=null},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",function(){return a});var a=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._names=[],this._comps=[],e instanceof t)this._names=e._names,this._comps=e._comps;else{var n=e.split("."),r=n.length-1;if(r>0){this._comps=n,this._names.push(n[0]);for(var a=1;a<=r;a++)this._names.push(this._names[a-1]+"."+n[a])}else this._comps.push(e),this._names.push(e)}}return function(t,e,n){e&&r(t.prototype,e),n&&r(t,n)}(t,[{key:"getCompAt",value:function(t){return t>=0&&t<this._comps.length?this._comps[t]:""}},{key:"getName",value:function(t){if(t<0){if(this._names.length>0)return this._names[this._names.length-1]}else if(t<this._names.length)return this._names[t];return""}}]),t}()},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,a=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}n.d(e,"l",function(){return _}),n.d(e,"x",function(){return f}),n.d(e,"o",function(){return g}),n.d(e,"r",function(){return p}),n.d(e,"e",function(){return m}),n.d(e,"H",function(){return v}),n.d(e,"f",function(){return y}),n.d(e,"z",function(){return b}),n.d(e,"w",function(){return k}),n.d(e,"b",function(){return M}),n.d(e,"F",function(){return D}),n.d(e,"v",function(){return x}),n.d(e,"h",function(){return E}),n.d(e,"m",function(){return O}),n.d(e,"s",function(){return I}),n.d(e,"j",function(){return R}),n.d(e,"u",function(){return T}),n.d(e,"a",function(){return S}),n.d(e,"B",function(){return L}),n.d(e,"c",function(){return N}),n.d(e,"p",function(){return j}),n.d(e,"d",function(){return B}),n.d(e,"y",function(){return U}),n.d(e,"A",function(){return W}),n.d(e,"n",function(){return z}),n.d(e,"q",function(){return F}),n.d(e,"g",function(){return G}),n.d(e,"G",function(){return V}),n.d(e,"E",function(){return K}),n.d(e,"t",function(){return Z}),n.d(e,"i",function(){return H}),n.d(e,"k",function(){return X}),n.d(e,"D",function(){return J}),n.d(e,"C",function(){return Q});var _=function(){function t(){c(this,t),this._ds=null,this._firstIndex=null}return h(t,[{key:"getDataSource",value:function(){return this._ds}},{key:"setDataSource",value:function(t){return this._ds=t}},{key:"getFirstIndex",value:function(){return this._firstIndex}},{key:"setFirstIndex",value:function(t){return this._firstIndex=t}}],[{key:"get",value:function(){return this.inst}},{key:"set",value:function(t){this.inst=t}}]),t}();_.inst=null;var d=function(){function t(){c(this,t),this._rid=0}return h(t,[{key:"execute",value:function(t){}},{key:"reserve",value:function(t,e){}},{key:"clear",value:function(){}}]),t}(),f=function(t){i(n,d);var e=s(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"execute",value:function(t){return _.get()._ds.getDataAt(t).open}}]),n}(),g=function(t){i(n,d);var e=s(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"execute",value:function(t){return _.get()._ds.getDataAt(t).high}}]),n}(),p=function(t){i(n,d);var e=s(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"execute",value:function(t){return _.get()._ds.getDataAt(t).low}}]),n}(),m=function(t){i(n,d);var e=s(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"execute",value:function(t){return _.get()._ds.getDataAt(t).close}}]),n}(),v=function(t){i(n,d);var e=s(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"execute",value:function(t){return _.get()._ds.getDataAt(t).volume}}]),n}(),y=function(t){i(n,d);var e=s(n);function n(t){var r;return c(this,n),(r=e.call(this))._value=t,r}return h(n,[{key:"execute",value:function(t){return this._value}}]),n}(),b=function(t){i(n,d);var e=s(n);function n(t,r,a,i){var o;return c(this,n),(o=e.call(this))._name=t,o._minValue=r,o._maxValue=a,o._value=o._defaultValue=i,o}return h(n,[{key:"execute",value:function(t){return this._value}},{key:"getMinValue",value:function(){return this._minValue}},{key:"getMaxValue",value:function(){return this._maxValue}},{key:"getDefaultValue",value:function(){return this._defaultValue}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(t){0===t?this._value=0:t<this._minValue?this._value=this._minValue:t>this._maxValue?this._value=this._maxValue:this._value=t}}]),n}(),w=function(t){i(n,d);var e=s(n);function n(t){var r;return c(this,n),(r=e.call(this))._exprA=t,r}return h(n,[{key:"reserve",value:function(t,e){this._rid<t&&(this._rid=t,this._exprA.reserve(t,e))}},{key:"clear",value:function(){this._exprA.clear()}}]),n}(),P=function(t){i(n,d);var e=s(n);function n(t,r){var a;return c(this,n),(a=e.call(this))._exprA=t,a._exprB=r,a}return h(n,[{key:"reserve",value:function(t,e){this._rid<t&&(this._rid=t,this._exprA.reserve(t,e),this._exprB.reserve(t,e))}},{key:"clear",value:function(){this._exprA.clear(),this._exprB.clear()}}]),n}(),A=function(t){i(n,d);var e=s(n);function n(t,r,a){var i;return c(this,n),(i=e.call(this))._exprA=t,i._exprB=r,i._exprC=a,i}return h(n,[{key:"reserve",value:function(t,e){this._rid<t&&(this._rid=t,this._exprA.reserve(t,e),this._exprB.reserve(t,e),this._exprC.reserve(t,e))}},{key:"clear",value:function(){this._exprA.clear(),this._exprB.clear(),this._exprC.clear()}}]),n}(),C=function(t){i(n,d);var e=s(n);function n(t,r,a,i){var o;return c(this,n),(o=e.call(this))._exprA=t,o._exprB=r,o._exprC=a,o._exprD=i,o}return h(n,[{key:"reserve",value:function(t,e){this._rid<t&&(this._rid=t,this._exprA.reserve(t,e),this._exprB.reserve(t,e),this._exprC.reserve(t,e),this._exprD.reserve(t,e))}},{key:"clear",value:function(){this._exprA.clear(),this._exprB.clear(),this._exprC.clear(),this._exprD.clear()}}]),n}(),k=function(t){i(n,w);var e=s(n);function n(t){return c(this,n),e.call(this,t)}return h(n,[{key:"execute",value:function(t){return-this._exprA.execute(t)}}]),n}(),M=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return this._exprA.execute(t)+this._exprB.execute(t)}}]),n}(),D=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return this._exprA.execute(t)-this._exprB.execute(t)}}]),n}(),x=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return this._exprA.execute(t)*this._exprB.execute(t)}}]),n}(),E=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){var e=this._exprA.execute(t),n=this._exprB.execute(t);return 0===e?e:0===n?e>0?1e6:-1e6:e/n}}]),n}(),O=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return this._exprA.execute(t)>this._exprB.execute(t)?1:0}}]),n}(),I=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return this._exprA.execute(t)<this._exprB.execute(t)?1:0}}]),n}(),R=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return this._exprA.execute(t)===this._exprB.execute(t)?1:0}}]),n}(),T=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return Math.max(this._exprA.execute(t),this._exprB.execute(t))}}]),n}(),S=function(t){i(n,w);var e=s(n);function n(t){return c(this,n),e.call(this,t)}return h(n,[{key:"execute",value:function(t){return Math.abs(this._exprA.execute(t))}}]),n}(),L=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){if((void 0===this._offset||this._offset<0)&&(this._offset=this._exprB.execute(t),this._offset<0))throw"offset < 0";if((t-=this._offset)<0)throw"index < 0";var e=this._exprA.execute(t);if(isNaN(e))throw"NaN";return e}}]),n}(),N=function(t){i(n,P);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"execute",value:function(t){return 0!==this._exprA.execute(t)&&0!==this._exprB.execute(t)?1:0}}]),n}(),j=function(t){i(n,A);var e=s(n);function n(t,r,a){return c(this,n),e.call(this,t,r,a)}return h(n,[{key:"execute",value:function(t){return 0!==this._exprA.execute(t)?this._exprB.execute(t):this._exprC.execute(t)}}]),n}(),B=function(t){i(n,w);var e=s(n);function n(t,r){var a;return c(this,n),(a=e.call(this,r))._name=t,a._buf=[],a}return h(n,[{key:"getName",value:function(){return this._name}},{key:"execute",value:function(t){return this._buf[t]}},{key:"assign",value:function(t){if(this._buf[t]=this._exprA.execute(t),_.get()._firstIndex>=0&&isNaN(this._buf[t])&&!isNaN(this._buf[t-1]))throw this._name+".assign("+t+"): NaN"}},{key:"reserve",value:function(t,e){if(this._rid<t)for(var r=e;r>0;r--)this._buf.push(NaN);a(l(n.prototype),"reserve",this).call(this,t,e)}},{key:"clear",value:function(){a(l(n.prototype),"clear",this).call(this),this._buf=[]}}]),n}(),U=function(t){i(n,B);var e=s(n);function n(t,r,a,i){var o;return c(this,n),(o=e.call(this,t,r))._style=void 0===a?n.outputStyle.Line:a,o._color=i,o}return h(n,[{key:"getStyle",value:function(){return this._style}},{key:"getColor",value:function(){return this._color}}]),n}();U.outputStyle={None:0,Line:1,VolumeStick:2,MACDStick:3,SARPoint:4};var W=function(t){i(n,U);var e=s(n);function n(t,r,a,i){return c(this,n),e.call(this,t,r,a,i)}return h(n,[{key:"getName",value:function(){return this._name+this._exprA.getRange()}}]),n}(),Y=function(t){i(n,P);var e=s(n);function n(t,r){var a;return c(this,n),(a=e.call(this,t,r))._range=-1,a._buf=[],a}return h(n,[{key:"getRange",value:function(){return this._range}},{key:"initRange",value:function(){this._range=this._exprB.execute(0)}},{key:"execute",value:function(t){this._range<0&&this.initRange();var e=this._buf[t].resultA=this._exprA.execute(t);return this._buf[t].result=this.calcResult(t,e)}},{key:"reserve",value:function(t,e){if(this._rid<t)for(var r=e;r>0;r--)this._buf.push({resultA:NaN,result:NaN});a(l(n.prototype),"reserve",this).call(this,t,e)}},{key:"clear",value:function(){a(l(n.prototype),"clear",this).call(this),this._range=-1,this._buf=[]}}]),n}(),z=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=_.get()._firstIndex;if(n<0)return e;if(t>n){for(var r=e,a=t-this._range+1,i=Math.max(n,a);i<t;i++){var o=this._buf[i];r<o.resultA&&(r=o.resultA)}return r}return e}}]),n}(),F=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=_.get()._firstIndex;if(n<0)return e;if(t>n){for(var r=e,a=t-this._range+1,i=Math.max(n,a);i<t;i++){var o=this._buf[i];r>o.resultA&&(r=o.resultA)}return r}return e}}]),n}(),G=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=_.get()._firstIndex;if(n<0)return 0;if(t>=n){var r=this._range-1;r>t-n&&(r=t-n);for(var a=0;r>=0;r--)0!==this._buf[t-r].resultA&&a++;return a}return 0}}]),n}(),V=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){var n=_.get()._firstIndex;if(n<0)return e;if(t>n){var r=this._range;return 0===r||r>=t+1-n?this._buf[t-1].result+e:this._buf[t-1].result+e-this._buf[t-r].resultA}return e}}]),n}(),K=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=this._stdBuf[t],r=_.get()._firstIndex;if(r<0)return n.resultMA=e,0;if(t>r){var a=this._range;a>=t+1-r?(a=t+1-r,n.resultMA=this._stdBuf[t-1].resultMA*(1-1/a)+e/a):n.resultMA=this._stdBuf[t-1].resultMA+(e-this._buf[t-a].resultA)/a;for(var i=0,o=t-a+1;o<=t;o++)i+=Math.pow(this._buf[o].resultA-n.resultMA,2);return Math.sqrt(i/a)}return n.resultMA=e,0}},{key:"reserve",value:function(t,e){if(this._rid<t)for(var r=e;r>0;r--)this._stdBuf.push({resultMA:NaN});a(l(n.prototype),"reserve",this).call(this,t,e)}},{key:"clear",value:function(){a(l(n.prototype),"clear",this).call(this),this._stdBuf=[]}}]),n}(),Z=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=_.get()._firstIndex;if(n<0)return e;if(t>n){var r=this._range;return r>=t+1-n?(r=t+1-n,this._buf[t-1].result*(1-1/r)+e/r):this._buf[t-1].result+(e-this._buf[t-r].resultA)/r}return e}}]),n}(),H=function(t){i(n,Y);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"initRange",value:function(){a(l(n.prototype),"initRange",this).call(this),this._alpha=2/(this._range+1)}},{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=_.get()._firstIndex;if(n<0)return e;if(t>n){var r=this._buf[t-1];return this._alpha*(e-r.result)+r.result}return e}}]),n}(),X=function(t){i(n,H);var e=s(n);function n(t,r){return c(this,n),e.call(this,t,r)}return h(n,[{key:"calcResult",value:function(t,e){var n=_.get()._firstIndex;if(n<0)return e;if(t>n){var r=this._range,a=this._buf[t-1];return r>=t+1-n?(r=t+1-n,a.result*(1-1/r)+e/r):this._alpha*(e-a.result)+a.result}return e}}]),n}(),J=function(t){i(n,Y);var e=s(n);function n(t,r,a){var i;return c(this,n),(i=e.call(this,t,r))._exprC=a,i._mul=null,i}return h(n,[{key:"initRange",value:function(){a(l(n.prototype),"initRange",this).call(this),this._mul=this._exprC.execute(0)}},{key:"calcResult",value:function(t,e){if(0===this._range)return NaN;var n=_.get()._firstIndex;if(n<0)return e;if(t>n){var r=this._range;return r>t+1-n&&(r=t+1-n),((r-1)*this._buf[t-1].result+e*this._mul)/r}return e}}]),n}(),Q=function(t){i(n,C);var e=s(n);function n(t,r,a,i){var o;return c(this,n),(o=e.call(this,t,r,a,i))._buf=[],o._range=-1,o._min=null,o._step=null,o._max=null,o}return h(n,[{key:"execute",value:function(t){this._range<0&&(this._range=this._exprA.execute(0),this._min=this._exprB.execute(0)/100,this._step=this._exprC.execute(0)/100,this._max=this._exprD.execute(0)/100);var e=this._buf[t],n=_.get(),r=n._firstIndex;if(r<0)e.longPos=!0,e.sar=n._ds.getDataAt(t).low,e.ep=n._ds.getDataAt(t).high,e.af=.02;else{var a=n._ds.getDataAt(t).high,i=n._ds.getDataAt(t).low,o=this._buf[t-1];if(e.sar=o.sar+o.af*(o.ep-o.sar),o.longPos){if(e.longPos=!0,a>o.ep?(e.ep=a,e.af=Math.min(o.af+this._step,this._max)):(e.ep=o.ep,e.af=o.af),e.sar>i){e.longPos=!1;var s=t-this._range+1;for(s=Math.max(s,r);s<t;s++){var l=n._ds.getDataAt(s).high;a<l&&(a=l)}e.sar=a,e.ep=i,e.af=.02}}else if(e.longPos=!1,i<o.ep?(e.ep=i,e.af=Math.min(o.af+this._step,this._max)):(e.ep=o.ep,e.af=o.af),e.sar<a){e.longPos=!0;var c=t-this._range+1;for(c=Math.max(c,r);c<t;c++){var u=n._ds.getDataAt(c).low;i>u&&(i=u)}e.sar=i,e.ep=a,e.af=.02}}return e.sar}},{key:"reserve",value:function(t,e){if(this._rid<t)for(var r=e;r>0;r--)this._buf.push({longPos:!0,sar:NaN,ep:NaN,af:NaN});a(l(n.prototype),"reserve",this).call(this,t,e)}},{key:"clear",value:function(){a(l(n.prototype),"clear",this).call(this),this._range=-1}}]),n}()},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",function(){return a});var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._handlers=[]}return function(t,e,n){e&&r(t.prototype,e),n&&r(t,n)}(t,[{key:"addHandler",value:function(t,e){this.indexOf(t,e)<0&&this._handlers.push({obj:t,func:e})}},{key:"removeHandler",value:function(t,e){var n=this.indexOf(t,e);n>=0&&this._handlers.splice(n,1)}},{key:"raise",value:function(t,e){var n,r=this._handlers,a=r.length;for(n=0;n<a;n++)r[n].func(t,e)}},{key:"indexOf",value:function(t,e){var n,r,a=this._handlers,i=a.length;for(r=0;r<i;r++)if(t===(n=a[r]).obj&&e===n.func)return r;return-1}}]),t}()},function(t,e,n){"use strict";n.d(e,"d",function(){return d}),n.d(e,"c",function(){return f}),n.d(e,"e",function(){return g}),n.d(e,"a",function(){return p}),n.d(e,"f",function(){return m}),n.d(e,"b",function(){return v});var r=n(1),a=n(0);function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){c(n,r["a"]);var e=h(n);function n(t){var r;return o(this,n),(r=e.call(this,t))._updated=!0,r._minValue=Number.MAX_VALUE,r._maxValue=-Number.MAX_VALUE,r._outerMinValue=Number.MAX_VALUE,r._outerMaxValue=-Number.MAX_VALUE,r._ratio=0,r._top=0,r._bottom=0,r._paddingTop=0,r._paddingBottom=0,r._minInterval=36,r._selectedPosition=-1,r._selectedValue=-Number.MAX_VALUE,r._gradations=[],r}return l(n,[{key:"isUpdated",value:function(){return this._updated}},{key:"setUpdated",value:function(t){this._updated=t}},{key:"getMinValue",value:function(){return this._minValue}},{key:"getMaxValue",value:function(){return this._maxValue}},{key:"getRange",value:function(){return this._maxValue-this._minValue}},{key:"getOuterMinValue",value:function(){return this._outerMinValue}},{key:"getOuterMaxValue",value:function(){return this._outerMaxValue}},{key:"getOuterRange",value:function(){return this._outerMaxValue-this._outerMinValue}},{key:"getHeight",value:function(){return Math.max(0,this._bottom-this._top)}},{key:"getGradations",value:function(){return this._gradations}},{key:"getMinInterval",value:function(){return this._minInterval}},{key:"setMinInterval",value:function(t){this._minInterval=t}},{key:"getSelectedPosition",value:function(){return this._selectedPosition>=0?this._selectedPosition:this._selectedValue>-Number.MAX_VALUE?this.toY(this._selectedValue):-1}},{key:"getSelectedValue",value:function(){if(this._selectedValue>-Number.MAX_VALUE)return this._selectedValue;var t=a.a.instance.getArea(this.getAreaName());return null===t?-Number.MAX_VALUE:this._selectedPosition<t.getTop()+12||this._selectedPosition>=t.getBottom()-4?-Number.MAX_VALUE:this.toValue(this._selectedPosition)}},{key:"setPaddingTop",value:function(t){this._paddingTop=t}},{key:"setPaddingBottom",value:function(t){this._paddingBottom=t}},{key:"toValue",value:function(t){return this._maxValue-(t-this._top)/this._ratio}},{key:"toY",value:function(t){return this._ratio>0?this._top+Math.floor((this._maxValue-t)*this._ratio+.5):this._top}},{key:"toHeight",value:function(t){return t==1/0||0==this._ratio?1.5:Math.floor(t*this._ratio+1.5)}},{key:"update",value:function(){for(var t,e=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=a.a.instance,i=[".main",".secondary"],o=0;o<i.length;o++)null!==(t=r.getDataProvider(this.getName()+i[o]))&&void 0!==t&&(e=Math.min(e,t.getMinValue()),n=Math.max(n,t.getMaxValue()));var s={min:e,max:n};this.preSetRange(s),this.setRange(s.min,s.max)}},{key:"select",value:function(t){this._selectedValue=t,this._selectedPosition=-1}},{key:"selectAt",value:function(t){this._selectedPosition=t,this._selectedValue=-Number.MAX_VALUE}},{key:"unselect",value:function(){this._selectedPosition=-1,this._selectedValue=-Number.MAX_VALUE}},{key:"preSetRange",value:function(t){t.min===t.max&&(t.min=-1,t.max=1)}},{key:"setRange",value:function(t,e){var n=a.a.instance.getArea(this.getAreaName());if(this._minValue!==t||this._maxValue!==e||n.isChanged()){this._updated=!0,this._minValue=t,this._maxValue=e,this._gradations=[];var r=n.getTop()+this._paddingTop,i=n.getBottom()-(this._paddingBottom+1);r>=i?this._minValue=this._maxValue:(this._top=r,this._bottom=i,this._maxValue>this._minValue?this._ratio=(i-r)/(this._maxValue-this._minValue):this._ratio=1,this._outerMinValue=this.toValue(n.getBottom()),this._outerMaxValue=this.toValue(n.getTop()),this.updateGradations())}}},{key:"calcInterval",value:function(){var t=this.getHeight(),e=this.getMinInterval();t/e<=1&&(e=t>>1);for(var n,r,a=this.getRange(),i=0;i>-2&&Math.floor(a)<a;)a*=10,i--;for(;(n=r=Math.pow(10,i),!(this.toHeight(n)>e))&&(n=2*r,!(this.toHeight(n)>e))&&(n=5*r,!(this.toHeight(n)>e));i++);return n}},{key:"updateGradations",value:function(){this._gradations=[];var t=this.calcInterval();if(!(t<=0)){var e=Math.floor(this.getMaxValue()/t)*t;do{this._gradations.push(e),e-=t}while(e>this.getMinValue())}}}]),n}(),f=function(t){c(n,d);var e=h(n);function n(t){return o(this,n),e.call(this,t)}return l(n,[{key:"preSetRange",value:function(t){t.min<0&&(t.min=0),t.max<0&&(t.max=0)}}]),n}(),g=function(t){c(n,d);var e=h(n);function n(t){return o(this,n),e.call(this,t)}return l(n,[{key:"preSetRange",value:function(t){t.min=0,t.max<0&&(t.max=0)}}]),n}(),p=function(t){c(n,d);var e=h(n);function n(t){return o(this,n),e.call(this,t)}return l(n,[{key:"preSetRange",value:function(t){var e=a.a.instance,n=e.getTimeline(this.getDataSourceName()),r=n.getMaxIndex()-n.getLastIndex();if(r<25){var i=e.getDataSource(this.getDataSourceName()),o=i.getDataAt(i.getDataCount()-1),s=(t.max-t.min)/4*(1-r/25);t.min=Math.min(t.min,Math.max(o.low-s,0)),t.max=Math.max(t.max,o.high+s)}if(t.min>0){var l=t.max/t.min;if(l<1.016){var c=(t.max+t.min)/2,u=1.5*(l-1);t.max=c*(1+u),t.min=c*(1-u)}else if(l<1.048){var h=(t.max+t.min)/2;t.max=1.024*h,t.min=.976*h}}t.min<0&&(t.min=0),t.max<0&&(t.max=0)}}]),n}(),m=function(t){c(n,d);var e=h(n);function n(t){return o(this,n),e.call(this,t)}return l(n,[{key:"calcInterval",value:function(t){var e=this.getMinInterval();if(t.getHeight()/e<2)return 0;var n,r=this.getRange();for(n=3;!(this.toHeight(r/n)<=e);n+=2);return r/(n-=2)}},{key:"updateGradations",value:function(){this._gradations=[];var t=a.a.instance.getArea(this.getAreaName()),e=this.calcInterval(t);if(!(e<=0)){var n=e/2;do{this._gradations.push(n),this._gradations.push(-n),n+=e}while(n<=this.getMaxValue())}}},{key:"preSetRange",value:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));t.min=-e,t.max=e}}]),n}(),v=function(t){c(n,d);var e=h(n);function n(t){return o(this,n),e.call(this,t)}return l(n,[{key:"updateGradations",value:function(){this._gradations=[];var t=a.a.instance.getArea(this.getAreaName()),e=Math.floor(this.toHeight(10));if(!(e<<2>t.getHeight())){var n=10*Math.ceil(this.getMinValue()/10);if(0===n&&(n=0),e<<2<24){if(e<<1<8)return;do{20!==n&&80!==n||this._gradations.push(n),n+=10}while(n<this.getMaxValue())}else do{e<8?20!==n&&50!==n&&80!==n||this._gradations.push(n):0!==n&&20!==n&&50!==n&&80!==n&&100!==n||this._gradations.push(n),n+=10}while(n<this.getMaxValue())}}}]),n}()},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_19__},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);window.Kline=r.a,e.default=r.a},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),a=n(8),i=n(3),o=n(7);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._data=null,this._charStyle="CandleStick",this._depthData={array:null,asks_count:0,bids_count:0,asks_si:0,asks_ei:0,bids_si:0,bids_ei:0},this.strIsLine=!1,this._range=i.a.instance.range,this._symbol=i.a.instance.symbol}return function(t,e,n){e&&s(t.prototype,e),n&&s(t,n)}(t,[{key:"setTitle",value:function(){var e=r.a.instance.getLanguage(),n=i.a.instance.symbolName;n+=" ",n+=this.strIsLine?t.strPeriod[e].line:t.strPeriod[e][this._range],n+=(this._contract_unit+"/"+this._money_type).toUpperCase(),r.a.instance.setTitle("frame0.k0",n)}},{key:"setSymbol",value:function(t){this._symbol=t,this.updateDataAndDisplay()}},{key:"updateDataAndDisplay",value:function(){i.a.instance.symbol=this._symbol,i.a.instance.range=this._range,r.a.instance.setCurrentDataSource("frame0.k0",this._symbol+"."+this._range),r.a.instance.setNormalMode();var t=i.a.instance.chartMgr.getDataSource("frame0.k0").getLastDate();$(".symbol-title>a").text(i.a.instance.symbolName),-1===t?(i.a.instance.requestParam=a.a.setHttpRequestParam(i.a.instance.symbol,i.a.instance.range,i.a.instance.limit,null),a.a.requestData(!0)):(i.a.instance.requestParam=a.a.setHttpRequestParam(i.a.instance.symbol,i.a.instance.range,null,t.toString()),a.a.requestData()),r.a.instance.redraw("All",!1)}},{key:"setCurrentContractUnit",value:function(t){this._contract_unit=t,this.updateDataAndDisplay()}},{key:"setCurrentMoneyType",value:function(t){this._money_type=t,this.updateDataAndDisplay()}},{key:"setCurrentPeriod",value:function(t){this._range=i.a.instance.periodMap[t],"stomp"===i.a.instance.type&&1===i.a.instance.stompClient.ws.readyState&&(i.a.instance.subscribed.unsubscribe(),i.a.instance.subscribed=i.a.instance.stompClient.subscribe(i.a.instance.subscribePath+"/"+i.a.instance.symbol+"/"+this._range,a.a.subscribeCallback)),this.updateDataAndDisplay(),i.a.instance.onRangeChange(this._range)}},{key:"updateDataSource",value:function(t){this._data=t,r.a.instance.updateData("frame0.k0",this._data)}},{key:"updateDepth",value:function(t){if(null===t)return this._depthData.array=[],void r.a.instance.redraw("All",!1);if(t.asks&&t.bids&&""!==t.asks&&""!==t.bids){var e=this._depthData;e.array=[];for(var n=0;n<t.asks.length;n++){var a={};a.rate=t.asks[n][0],a.amount=t.asks[n][1],e.array.push(a)}for(var i=0;i<t.bids.length;i++){var o={};o.rate=t.bids[i][0],o.amount=t.bids[i][1],e.array.push(o)}e.asks_count=t.asks.length,e.bids_count=t.bids.length,e.asks_si=e.asks_count-1,e.asks_ei=0,e.bids_si=e.asks_count-1,e.bids_ei=e.asks_count+e.bids_count-2;for(var s=e.asks_si;s>=e.asks_ei;s--)s===e.asks_si&&void 0!==e.array[s]?e.array[s].amounts=e.array[s].amount:void 0!==e.array[s+1]&&(e.array[s].amounts=e.array[s+1].amounts+e.array[s].amount);for(var l=e.bids_si;l<=e.bids_ei;l++)l===e.bids_si&&void 0!==e.array[l]?e.array[l].amounts=e.array[l].amount:void 0!==e.array[l-1]&&(e.array[l].amounts=e.array[l-1].amounts+e.array[l].amount);r.a.instance.redraw("All",!1)}}},{key:"setMainIndicator",value:function(t){this._mainIndicator=t,"NONE"===t?r.a.instance.removeMainIndicator("frame0.k0"):r.a.instance.setMainIndicator("frame0.k0",t),r.a.instance.redraw("All",!0)}},{key:"setIndicator",value:function(t,e){if("NONE"===e){var n=2;!1===o.b.displayVolume&&(n=1);var a=r.a.instance.getIndicatorAreaName("frame0.k0",n);""!==a&&r.a.instance.removeIndicator(a)}else{var i=2;!1===o.b.displayVolume&&(i=1);var s=r.a.instance.getIndicatorAreaName("frame0.k0",i);""===s?o.b.createIndicatorChartComps("frame0.k0",e):r.a.instance.setIndicator(s,e)}r.a.instance.redraw("All",!0)}},{key:"addIndicator",value:function(t){r.a.instance.addIndicator(t),r.a.instance.redraw("All",!0)}},{key:"removeIndicator",value:function(t){var e=r.a.instance.getIndicatorAreaName(2);r.a.instance.removeIndicator(e),r.a.instance.redraw("All",!0)}}]),t}();l.strPeriod={"zh-cn":{line:"(分时)","1min":"(1分钟)","5min":"(5分钟)","15min":"(15分钟)","30min":"(30分钟)","1hour":"(1小时)","1day":"(日线)","1week":"(周线)","3min":"(3分钟)","2hour":"(2小时)","4hour":"(4小时)","6hour":"(6小时)","12hour":"(12小时)","3day":"(3天)"},"en-us":{line:"(Line)","1min":"(1m)","5min":"(5m)","15min":"(15m)","30min":"(30m)","1hour":"(1h)","1day":"(1d)","1week":"(1w)","3min":"(3m)","2hour":"(2h)","4hour":"(4h)","6hour":"(6h)","12hour":"(12h)","3day":"(3d)"},"zh-tw":{line:"(分時)","1min":"(1分鐘)","5min":"(5分鐘)","15min":"(15分鐘)","30min":"(30分鐘)","1hour":"(1小時)","1day":"(日線)","1week":"(周線)","3min":"(3分鐘)","2hour":"(2小時)","4hour":"(4小時)","6hour":"(6小時)","12hour":"(12小時)","3day":"(3天)"}}},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(1),a=n(9),i=n(10);function o(t){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var a=u(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,r["a"]);var e=c(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=e.call(this,t)).selectedObject=-1,r.toolObjects=[],r}return function(t,e,n){e&&s(t.prototype,e),n&&s(t,n)}(n,[{key:"getToolObjectCount",value:function(){return this.toolObjects.length}},{key:"addToolObject",value:function(t){this.toolObjects.push(t)}},{key:"getToolObject",value:function(t){return t<this.toolObjects.length&&t>=0?this.toolObjects[t]:null}},{key:"getCurrentObject",value:function(){return this.getToolObject(this.getToolObjectCount()-1)}},{key:"getSelectedObject",value:function(){return this.getToolObject(this.selectedObject)}},{key:"delCurrentObject",value:function(){this.toolObjects.splice(this.getToolObjectCount()-1,1)}},{key:"delSelectedObject",value:function(){this.toolObjects.splice(this.selectedObject,1),this.selectedObject=-1}},{key:"acceptMouseMoveEvent",value:function(t,e){if(-1===this.selectedObject){var n=this.toolObjects[this.getToolObjectCount()-1];if(null!==n&&void 0!==n&&n.getState()!==i.n.state.AfterDraw)return n.acceptMouseMoveEvent(t,e)}else{var r=this.toolObjects[this.selectedObject];if(r.getState()===i.n.state.Draw)return r.acceptMouseMoveEvent(t,e);r.unselect(),this.selectedObject=-1}for(var a in this.toolObjects)if(this.toolObjects[a].isSelected(t,e))return this.selectedObject=a,!1;return!1}},{key:"acceptMouseDownEvent",value:function(t,e){if(this.mouseDownMove=!1,-1===this.selectedObject){var n=this.toolObjects[this.getToolObjectCount()-1];if(null!==n&&void 0!==n&&n.getState()!==i.n.state.AfterDraw)return n.acceptMouseDownEvent(t,e)}else{var r=this.toolObjects[this.selectedObject];if(r.getState()!==i.n.state.BeforeDraw)return r.acceptMouseDownEvent(t,e)}return!1}},{key:"acceptMouseDownMoveEvent",value:function(t,e){if(this.mouseDownMove=!0,-1===this.selectedObject){var n=this.toolObjects[this.getToolObjectCount()-1];return null!==n&&void 0!==n&&n.getState()===i.n.state.Draw&&n.acceptMouseDownMoveEvent(t,e)}var r=this.toolObjects[this.selectedObject];if(r.getState()!==i.n.state.BeforeDraw){if(!0===r.acceptMouseDownMoveEvent(t,e))for(var o=this.toolObjects[this.selectedObject].points,s=0;s<o.length;s++)if(o[s].state===a.a.state.Highlight||o[s].state===a.a.state.Show)return!0;return!0}}},{key:"acceptMouseUpEvent",value:function(t,e){if(!0===this.mouseDownMove){if(-1===this.selectedObject){var n=this.toolObjects[this.getToolObjectCount()-1];return null===n||void 0===n||n.getState()!==i.n.state.Draw||n.acceptMouseUpEvent(t,e)}var r=this.toolObjects[this.selectedObject];if(r.getState()!==i.n.state.BeforeDraw)return r.acceptMouseUpEvent(t,e)}if(-1!==this.selectedObject)return!0;var a=this.toolObjects[this.getToolObjectCount()-1];if(null!==a&&void 0!==a){if(a.getState()===i.n.state.Draw)return!0;if(!a.isValidMouseXY(t,e))return!1;if(a.isSelected(t,e))return!0}return!1}}]),n}()},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(1),a=n(0),i=n(2);function o(t){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var a=u(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,r["a"]);var e=c(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=e.call(this,t))._updated=!1,r._innerLeft=0,r._innerWidth=0,r._firstColumnLeft=0,r._scale=3,r._lastScale=-1,r._maxItemCount=0,r._maxIndex=0,r._firstIndex=-1,r._selectedIndex=-1,r._savedFirstIndex=-1,r}return function(t,e,n){e&&s(t.prototype,e),n&&s(t,n)}(n,[{key:"isLatestShown",value:function(){return this.getLastIndex()===this._maxIndex}},{key:"isUpdated",value:function(){return this._updated}},{key:"setUpdated",value:function(t){this._updated=t}},{key:"getItemWidth",value:function(){return n.itemWidth[this._scale]}},{key:"getSpaceWidth",value:function(){return n.spaceWidth[this._scale]}},{key:"getColumnWidth",value:function(){return this.getSpaceWidth()+this.getItemWidth()}},{key:"getInnerWidth",value:function(){return this._innerWidth}},{key:"getItemLeftOffset",value:function(){return this.getSpaceWidth()}},{key:"getItemCenterOffset",value:function(){return this.getSpaceWidth()+(this.getItemWidth()>>1)}},{key:"getFirstColumnLeft",value:function(){return this._firstColumnLeft}},{key:"getMaxItemCount",value:function(){return this._maxItemCount}},{key:"getFirstIndex",value:function(){return this._firstIndex}},{key:"getLastIndex",value:function(){return Math.min(this._firstIndex+this._maxItemCount,this._maxIndex)}},{key:"getSelectedIndex",value:function(){return this._selectedIndex}},{key:"getMaxIndex",value:function(){return this._maxIndex}},{key:"calcColumnCount",value:function(t){return Math.floor(t/this.getColumnWidth())<<0}},{key:"calcFirstColumnLeft",value:function(t){return this._innerLeft+this._innerWidth-this.getColumnWidth()*t}},{key:"calcFirstIndexAlignRight",value:function(t,e,n){return Math.max(0,t+Math.max(e,1)-Math.max(n,1))}},{key:"calcFirstIndex",value:function(t){return this.validateFirstIndex(this.calcFirstIndexAlignRight(this._firstIndex,this._maxItemCount,t),t)}},{key:"updateMaxItemCount",value:function(){var t,e=this.calcColumnCount(this._innerWidth);if(this._maxItemCount<1)t=this.calcFirstIndex(e);else if(this._lastScale===this._scale)t=this.validateFirstIndex(this._firstIndex-(e-this._maxItemCount));else{var n=this._selectedIndex>=0?this._selectedIndex:this.getLastIndex()-1;t=this.validateFirstIndex(n-Math.round((n-this._firstIndex)*e/this._maxItemCount))}this._lastScale=this._scale,this._firstIndex!==t&&(this._selectedIndex===this._firstIndex&&(this._selectedIndex=t),this._firstIndex=t,this._updated=!0),this._maxItemCount!==e&&(this._maxItemCount=e,this._updated=!0),this._firstColumnLeft=this.calcFirstColumnLeft(e)}},{key:"validateFirstIndex",value:function(t,e){if(this._maxIndex<1)return-1;if(t<0)return 0;var n=Math.max(0,this._maxIndex-1);return t>n?n:t}},{key:"validateSelectedIndex",value:function(){this._selectedIndex<this._firstIndex?this._selectedIndex=-1:this._selectedIndex>=this.getLastIndex()&&(this._selectedIndex=-1)}},{key:"onLayout",value:function(){var t=a.a.instance.getArea(this.getDataSourceName()+".main");if(null!==t){this._innerLeft=t.getLeft()+n.PADDING_LEFT;var e=Math.max(0,t.getWidth()-(n.PADDING_LEFT+n.PADDING_RIGHT));this._innerWidth!==e&&(this._innerWidth=e,this.updateMaxItemCount())}}},{key:"toIndex",value:function(t){return this._firstIndex+this.calcColumnCount(t-this._firstColumnLeft)}},{key:"toColumnLeft",value:function(t){return this._firstColumnLeft+this.getColumnWidth()*(t-this._firstIndex)}},{key:"toItemLeft",value:function(t){return this.toColumnLeft(t)+this.getItemLeftOffset()}},{key:"toItemCenter",value:function(t){return this.toColumnLeft(t)+this.getItemCenterOffset()}},{key:"selectAt",value:function(t){return this._selectedIndex=this.toIndex(t),this.validateSelectedIndex(),this._selectedIndex>=0}},{key:"unselect",value:function(){this._selectedIndex=-1}},{key:"update",value:function(){var t=a.a.instance.getDataSource(this.getDataSourceName()),e=this._maxIndex;switch(this._maxIndex=t.getDataCount(),t.getUpdateMode()){case i.a.UpdateMode.Refresh:this._maxIndex<1?this._firstIndex=-1:this._firstIndex=Math.max(this._maxIndex-this._maxItemCount,0),this._selectedIndex=-1,this._updated=!0;break;case i.a.UpdateMode.Append:var n=this.getLastIndex(),r=t.getErasedCount();n<e?r>0&&(this._firstIndex=Math.max(this._firstIndex-r,0),this._selectedIndex>=0&&(this._selectedIndex-=r,this.validateSelectedIndex()),this._updated=!0):n===e&&(this._firstIndex+=this._maxIndex-e,this._selectedIndex>=0&&(this._selectedIndex-=r,this.validateSelectedIndex()),this._updated=!0)}}},{key:"move",value:function(t){this.isLatestShown()&&a.a.instance.getArea(this.getDataSourceName()+".mainRange").setChanged(!0),this._firstIndex=this.validateFirstIndex(this._savedFirstIndex-this.calcColumnCount(t),this._maxItemCount),this._updated=!0,this._selectedIndex>=0&&this.validateSelectedIndex()}},{key:"startMove",value:function(){this._savedFirstIndex=this._firstIndex}},{key:"scale",value:function(t){this._scale+=t,this._scale<0?this._scale=0:this._scale>=n.itemWidth.length&&(this._scale=n.itemWidth.length-1),this.updateMaxItemCount(),this._selectedIndex>=0&&this.validateSelectedIndex()}}]),n}();h.itemWidth=[1,3,3,5,5,7,9,11,13,15,17,19,21,23,25,27,29],h.spaceWidth=[1,1,2,2,3,3,3,3,3,3,5,5,5,5,7,7,7],h.PADDING_LEFT=4,h.PADDING_RIGHT=8},function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return m});var r=n(13),a=n(0),i=n(6),o=n(4);function s(t){"@babel/helpers - typeof";return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){_(n,r["b"]);var e=f(n);function n(t){var r;return l(this,n),(r=e.call(this,t))._nextRowId=0,r._focusedRowIndex=-1,r}return u(n,[{key:"getNextRowId",value:function(){return this._nextRowId++}},{key:"measure",value:function(t,e,n){this.setMeasuredDimension(e,n);var r,i,o,s,l=0,c=0,u=[],h=this._areas.length;for(s=0;s<h;s+=2){if(0===(r=this._areas[s].getHeight())){if(0===s){var _=n/(2*(o=h+1>>1)+5)*2<<0;for(i=n,s=o-1;s>0;s--)u.unshift(_),i-=_;u.unshift(i);break}r=2===s?l/3:l}c+=r,l=r,u.push(r)}if(c>0){var d=n/c;for(i=n,s=(o=h+1>>1)-1;s>0;s--)u[s]*=d,i-=u[s];u[0]=i}var f=Math.min(240,e>>1),g=76,p=a.a.instance,m=p.getTimeline(this.getDataSourceName());if(m.getFirstIndex()>=0){var v=[];for(g=76;g<f;g+=8)v.push(m.calcFirstIndex(m.calcColumnCount(e-g)));var y,b,w=m.getLastIndex(),P=[".main",".secondary"],A=new Array(v.length);for(y=0,b=0,g=76;y<this._areas.length&&b<v.length;y+=2){var C=this._areas[y],k=p.getPlotter(C.getName()+"Range.main");for(var M in P){var D=p.getDataProvider(C.getName()+P[M]);if(void 0!==D)for(D.calcRange(v,w,A,null);b<v.length;){var x=k.getRequiredWidth(t,A[b].min),E=k.getRequiredWidth(t,A[b].max);if(Math.max(x,E)<g)break;b++,g+=8}}}}for(s=1;s<this._areas.length;s+=2)this._areas[s].measure(t,g,u[s>>1]);var O=e-g;for(s=0;s<this._areas.length;s+=2)this._areas[s].measure(t,O,u[s>>1])}},{key:"layout",value:function(t,e,r,a,i){if(h(g(n.prototype),"layout",this).call(this,t,e,r,a,i),!(this._areas.length<1)){var o,s,l=t+this._areas[0].getMeasuredWidth(),c=e;i||(i=this.isChanged());var u,_=this._areas.length;for(u=0;u<_;u++)s=c+(o=this._areas[u]).getMeasuredHeight(),o.layout(t,c,l,s,i),u++,(o=this._areas[u]).layout(l,c,this.getRight(),s,i),c=s;this.setChanged(!1)}}},{key:"drawGrid",value:function(t){if(!(this._areas.length<1)){var e=a.a.instance,n=e.getTheme(this.getFrameName());t.fillStyle=n.getColor(i.c.Color.Grid1),t.fillRect(this._areas[0].getRight(),this.getTop(),1,this.getHeight());var r,o=this._areas.length-2;for(r=0;r<o;r+=2)t.fillRect(this.getLeft(),this._areas[r].getBottom(),this.getWidth(),1);if(!e.getCaptureMouseWheelDirectly())for(r=0,o+=2;r<o;r+=2)if(this._areas[r].isSelected()){t.strokeStyle=n.getColor(i.c.Color.Indicator1),t.strokeRect(this.getLeft()+.5,this.getTop()+.5,this.getWidth()-1,this.getHeight()-1);break}}}},{key:"highlight",value:function(t){this._highlightedArea=null;var e,n,r=this._areas.length;for(n=0;n<r;n++)(e=this._areas[n])===t?(n&=-2,(e=this._areas[n]).highlight(e),this._highlightedArea=e,n++,(e=this._areas[n]).highlight(null),e.highlight(e)):e.highlight(null);return null!==this._highlightedArea?this:null}},{key:"select",value:function(t){this._selectedArea=null;var e,n,r=this._areas.length;for(n=0;n<r;n++)(e=this._areas[n])===t?(n&=-2,(e=this._areas[n]).select(e),this._selectedArea=e,n++,(e=this._areas[n]).select(e)):e.select(null);return null!==this._selectedArea?this:null}},{key:"onMouseMove",value:function(t,e){if(this._focusedRowIndex>=0){var n=this._areas[this._focusedRowIndex],r=this._areas[this._focusedRowIndex+2],i=e-this._oldY;if(0===i)return this;var o=this._oldUpperBottom+i,s=this._oldLowerTop+i;return o-n.getTop()>=60&&r.getBottom()-s>=60&&(n.setBottom(o),r.setTop(s)),this}var l,c=this._areas.length-2;for(l=0;l<c;l+=2){var u=this._areas[l].getBottom();if(e>=u-4&&e<u+4)return a.a.instance.showCursor("n-resize"),this}return null}},{key:"onMouseLeave",value:function(t,e){this._focusedRowIndex=-1}},{key:"onMouseDown",value:function(t,e){var n,r=this._areas.length-2;for(n=0;n<r;n+=2){var a=this._areas[n].getBottom();if(e>=a-4&&e<a+4)return this._focusedRowIndex=n,this._oldY=e,this._oldUpperBottom=a,this._oldLowerTop=this._areas[n+2].getTop(),this}return null}},{key:"onMouseUp",value:function(t,e){if(this._focusedRowIndex>=0){this._focusedRowIndex=-1;var n,r=this._areas.length,a=[];for(n=0;n<r;n+=2)a.push(this._areas[n].getHeight());o.a.get().charts.areaHeight=a,o.a.save()}return this}}]),n}(),m=function(t){_(n,r["b"]);var e=f(n);function n(t){return l(this,n),e.call(this,t)}return u(n,[{key:"measure",value:function(t,e,a){for(var i in h(g(n.prototype),"measure",this).call(this,t,e,a),e=this.getMeasuredWidth(),a=this.getMeasuredHeight(),this._areas){var o=this._areas[i];switch(o.measure(t,e,a),o.getDockStyle()){case r.a.DockStyle.left:case r.a.DockStyle.Right:e-=o.getMeasuredWidth();break;case r.a.DockStyle.Top:case r.a.DockStyle.Bottom:a-=o.getMeasuredHeight();break;case r.a.DockStyle.Fill:e=0,a=0}}}},{key:"layout",value:function(t,e,a,i,o){var s,l;for(var c in h(g(n.prototype),"layout",this).call(this,t,e,a,i,o),t=this.getLeft(),e=this.getTop(),a=this.getRight(),i=this.getBottom(),o||(o=this.isChanged()),this._areas){var u=this._areas[c];switch(u.getDockStyle()){case r.a.DockStyle.left:s=u.getMeasuredWidth(),u.layout(t,e,t+s,i,o),t+=s;break;case r.a.DockStyle.Top:l=u.getMeasuredHeight(),u.layout(t,e,a,e+l,o),e+=l;break;case r.a.DockStyle.Right:s=u.getMeasuredWidth(),u.layout(a-s,e,a,i,o),a-=s;break;case r.a.DockStyle.Bottom:l=u.getMeasuredHeight(),u.layout(t,i-l,a,i,o),i-=l;break;case r.a.DockStyle.Fill:u.layout(t,e,a,i,o),t=a,e=i}}this.setChanged(!1)}},{key:"drawGrid",value:function(t){var e=a.a.instance.getTheme(this.getFrameName()),n=this.getLeft(),i=this.getTop(),o=this.getRight(),s=this.getBottom();for(var l in t.fillStyle=e.getColor(this._gridColor),this._areas){var c=this._areas[l];switch(c.getDockStyle()){case r.a.DockStyle.Left:t.fillRect(c.getRight(),i,1,s-i),n+=c.getWidth();break;case r.a.DockStyle.Top:t.fillRect(n,c.getBottom(),o-n,1),i+=c.getHeight();break;case r.a.DockStyle.Right:t.fillRect(c.getLeft(),i,1,s-i),o-=c.getWidth();break;case r.a.DockStyle.Bottom:t.fillRect(n,c.getTop(),o-n,1),s-=c.getHeight()}}}}]),n}()},function(t,e,n){"use strict";n.d(e,"g",function(){return f}),n.d(e,"j",function(){return g}),n.d(e,"e",function(){return p}),n.d(e,"s",function(){return m}),n.d(e,"i",function(){return v}),n.d(e,"d",function(){return y}),n.d(e,"c",function(){return b}),n.d(e,"r",function(){return w}),n.d(e,"b",function(){return P}),n.d(e,"t",function(){return A}),n.d(e,"l",function(){return C}),n.d(e,"f",function(){return k}),n.d(e,"o",function(){return M}),n.d(e,"u",function(){return D}),n.d(e,"p",function(){return x}),n.d(e,"h",function(){return E}),n.d(e,"n",function(){return O}),n.d(e,"k",function(){return I}),n.d(e,"a",function(){return R}),n.d(e,"m",function(){return T}),n.d(e,"q",function(){return S});var r=n(16),a=n(6);function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var a=c(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}var d=function(){function t(){u(this,t),this._exprEnv=new r.l,this._rid=0,this._params=[],this._assigns=[],this._outputs=[]}return _(t,[{key:"addParameter",value:function(t){this._params.push(t)}},{key:"addAssign",value:function(t){this._assigns.push(t)}},{key:"addOutput",value:function(t){this._outputs.push(t)}},{key:"getParameterCount",value:function(){return this._params.length}},{key:"getParameterAt",value:function(t){return this._params[t]}},{key:"getOutputCount",value:function(){return this._outputs.length}},{key:"getOutputAt",value:function(t){return this._outputs[t]}},{key:"clear",value:function(){var t,e;for(this._exprEnv.setFirstIndex(-1),e=this._assigns.length,t=0;t<e;t++)this._assigns[t].clear();for(e=this._outputs.length,t=0;t<e;t++)this._outputs[t].clear()}},{key:"reserve",value:function(t){var e,n;for(this._rid++,n=this._assigns.length,e=0;e<n;e++)this._assigns[e].reserve(this._rid,t);for(n=this._outputs.length,e=0;e<n;e++)this._outputs[e].reserve(this._rid,t)}},{key:"execute",value:function(t,e){if(!(e<0)){this._exprEnv.setDataSource(t),r.l.set(this._exprEnv);try{var n,a;for(a=this._assigns.length,n=0;n<a;n++)this._assigns[n].assign(e);for(a=this._outputs.length,n=0;n<a;n++)this._outputs[n].assign(e);this._exprEnv.getFirstIndex()<0&&this._exprEnv.setFirstIndex(e)}catch(t){if(this._exprEnv.getFirstIndex()>=0)throw alert(t),t}}}},{key:"getParameters",value:function(){var t,e=[],n=this._params.length;for(t=0;t<n;t++)e.push(this._params[t].getValue());return e}},{key:"setParameters",value:function(t){if(t instanceof Array&&t.length===this._params.length)for(var e in this._params)this._params[e].setValue(t[e])}}]),t}(),f=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var i=new r.z("M1",2,1e3,60);return t.addParameter(i),t.addOutput(new r.y("HIGH",new r.o,r.y.outputStyle.None)),t.addOutput(new r.y("LOW",new r.r,r.y.outputStyle.None)),t.addOutput(new r.y("CLOSE",new r.e,r.y.outputStyle.Line,a.c.Color.Indicator0)),t.addOutput(new r.A("MA",new r.t(new r.e,i),r.y.outputStyle.Line,a.c.Color.Indicator1)),t}return _(n,[{key:"getName",value:function(){return"CLOSE"}}]),n}(),g=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("M1",2,1e3,7),i=new r.z("M2",2,1e3,30),o=new r.z("M3",2,1e3,0),s=new r.z("M4",2,1e3,0),l=new r.z("M5",2,1e3,0),c=new r.z("M6",2,1e3,0);return t.addParameter(a),t.addParameter(i),t.addParameter(o),t.addParameter(s),t.addParameter(l),t.addParameter(c),t.addOutput(new r.A("MA",new r.t(new r.e,a))),t.addOutput(new r.A("MA",new r.t(new r.e,i))),t.addOutput(new r.A("MA",new r.t(new r.e,o))),t.addOutput(new r.A("MA",new r.t(new r.e,s))),t.addOutput(new r.A("MA",new r.t(new r.e,l))),t.addOutput(new r.A("MA",new r.t(new r.e,c))),t}return _(n,[{key:"getName",value:function(){return"MA"}}]),n}(),p=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("M1",2,1e3,7),i=new r.z("M2",2,1e3,30),o=new r.z("M3",2,1e3,0),s=new r.z("M4",2,1e3,0),l=new r.z("M5",2,1e3,0),c=new r.z("M6",2,1e3,0);return t.addParameter(a),t.addParameter(i),t.addParameter(o),t.addParameter(s),t.addParameter(l),t.addParameter(c),t.addOutput(new r.A("EMA",new r.i(new r.e,a))),t.addOutput(new r.A("EMA",new r.i(new r.e,i))),t.addOutput(new r.A("EMA",new r.i(new r.e,o))),t.addOutput(new r.A("EMA",new r.i(new r.e,s))),t.addOutput(new r.A("EMA",new r.i(new r.e,l))),t.addOutput(new r.A("EMA",new r.i(new r.e,c))),t}return _(n,[{key:"getName",value:function(){return"EMA"}}]),n}(),m=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var i=new r.z("M1",2,500,5),o=new r.z("M2",2,500,10);t.addParameter(i),t.addParameter(o);var s=new r.y("VOLUME",new r.H,r.y.outputStyle.VolumeStick,a.c.Color.Text4);return t.addOutput(s),t.addOutput(new r.A("MA",new r.t(s,i),r.y.outputStyle.Line,a.c.Color.Indicator0)),t.addOutput(new r.A("MA",new r.t(s,o),r.y.outputStyle.Line,a.c.Color.Indicator1)),t}return _(n,[{key:"getName",value:function(){return"VOLUME"}}]),n}(),v=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("SHORT",2,200,12),i=new r.z("LONG",2,200,26),o=new r.z("MID",2,200,9);t.addParameter(a),t.addParameter(i),t.addParameter(o);var s=new r.y("DIF",new r.F(new r.i(new r.e,a),new r.i(new r.e,i)));t.addOutput(s);var l=new r.y("DEA",new r.i(s,o));t.addOutput(l);var c=new r.y("MACD",new r.v(new r.F(s,l),new r.f(2)),r.y.outputStyle.MACDStick);return t.addOutput(c),t}return _(n,[{key:"getName",value:function(){return"MACD"}}]),n}(),y=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,90,14),i=new r.z("MM",2,60,6);t.addParameter(a),t.addParameter(i);var o=new r.d("MTR",new r.k(new r.u(new r.u(new r.F(new r.o,new r.r),new r.a(new r.F(new r.o,new r.B(new r.e,new r.f(1))))),new r.a(new r.F(new r.B(new r.e,new r.f(1)),new r.r))),a));t.addAssign(o);var s=new r.d("HD",new r.F(new r.o,new r.B(new r.o,new r.f(1))));t.addAssign(s);var l=new r.d("LD",new r.F(new r.B(new r.r,new r.f(1)),new r.r));t.addAssign(l);var c=new r.d("DMP",new r.k(new r.p(new r.c(new r.m(s,new r.f(0)),new r.m(s,l)),s,new r.f(0)),a));t.addAssign(c);var h=new r.d("DMM",new r.k(new r.p(new r.c(new r.m(l,new r.f(0)),new r.m(l,s)),l,new r.f(0)),a));t.addAssign(h);var _=new r.y("PDI",new r.v(new r.h(c,o),new r.f(100)));t.addOutput(_);var d=new r.y("MDI",new r.v(new r.h(h,o),new r.f(100)));t.addOutput(d);var f=new r.y("ADX",new r.k(new r.v(new r.h(new r.a(new r.F(d,_)),new r.b(d,_)),new r.f(100)),i));t.addOutput(f);var g=new r.y("ADXR",new r.k(f,i));return t.addOutput(g),t}return _(n,[{key:"getName",value:function(){return"DMI"}}]),n}(),b=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N1",2,60,10),i=new r.z("N2",2,250,50),o=new r.z("M",2,100,10);t.addParameter(a),t.addParameter(i),t.addParameter(o);var s=new r.y("DIF",new r.F(new r.t(new r.e,a),new r.t(new r.e,i)));t.addOutput(s);var l=new r.y("DIFMA",new r.t(s,o));return t.addOutput(l),t}return _(n,[{key:"getName",value:function(){return"DMA"}}]),n}(),w=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,100,12),i=new r.z("M",2,100,9);t.addParameter(a),t.addParameter(i);var o=new r.d("MTR",new r.i(new r.i(new r.i(new r.e,a),a),a));t.addAssign(o);var s=new r.y("TRIX",new r.v(new r.h(new r.F(o,new r.B(o,new r.f(1))),new r.B(o,new r.f(1))),new r.f(100)));t.addOutput(s);var l=new r.y("MATRIX",new r.t(s,i));return t.addOutput(l),t}return _(n,[{key:"getName",value:function(){return"TRIX"}}]),n}(),P=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,120,26);t.addParameter(a);var i=new r.d("REF_CLOSE_1",new r.B(new r.e,new r.f(1)));t.addAssign(i);var o=new r.y("BR",new r.v(new r.h(new r.G(new r.u(new r.f(0),new r.F(new r.o,i)),a),new r.G(new r.u(new r.f(0),new r.F(i,new r.r)),a)),new r.f(100)));t.addOutput(o);var s=new r.y("AR",new r.v(new r.h(new r.G(new r.F(new r.o,new r.x),a),new r.G(new r.F(new r.x,new r.r),a)),new r.f(100)));return t.addOutput(s),t}return _(n,[{key:"getName",value:function(){return"BRAR"}}]),n}(),A=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,100,26),i=new r.z("M",2,100,6);t.addParameter(a),t.addParameter(i);var o=new r.d("REF_CLOSE_1",new r.B(new r.e,new r.f(1)));t.addAssign(o);var s=new r.d("TH",new r.G(new r.p(new r.m(new r.e,o),new r.H,new r.f(0)),a));t.addAssign(s);var l=new r.d("TL",new r.G(new r.p(new r.s(new r.e,o),new r.H,new r.f(0)),a));t.addAssign(l);var c=new r.d("TQ",new r.G(new r.p(new r.j(new r.e,o),new r.H,new r.f(0)),a));t.addAssign(c);var h=new r.y("VR",new r.v(new r.h(new r.b(new r.v(s,new r.f(2)),c),new r.b(new r.v(l,new r.f(2)),c)),new r.f(100)));t.addOutput(h);var _=new r.y("MAVR",new r.t(h,i));return t.addOutput(_),t}return _(n,[{key:"getName",value:function(){return"VR"}}]),n}(),C=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("M",2,100,30);t.addParameter(a);var i=new r.d("REF_CLOSE_1",new r.B(new r.e,new r.f(1)));t.addAssign(i);var o=new r.d("VA",new r.p(new r.m(new r.e,i),new r.H,new r.w(new r.H)));t.addAssign(o);var s=new r.y("OBV",new r.G(new r.p(new r.j(new r.e,i),new r.f(0),o),new r.f(0)));t.addOutput(s);var l=new r.y("MAOBV",new r.t(s,a));return t.addOutput(l),t}return _(n,[{key:"getName",value:function(){return"OBV"}}]),n}(),k=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,90,14),i=new r.z("M",2,60,9);t.addParameter(a),t.addParameter(i);var o=new r.d("VOLUME",new r.h(new r.t(new r.H,a),new r.H));t.addAssign(o);var s=new r.d("MID",new r.v(new r.h(new r.F(new r.b(new r.o,new r.r),new r.B(new r.b(new r.o,new r.r),new r.f(1))),new r.b(new r.o,new r.r)),new r.f(100)));t.addAssign(s);var l=new r.y("EMV",new r.t(new r.h(new r.v(s,new r.v(o,new r.F(new r.o,new r.r))),new r.t(new r.F(new r.o,new r.r),a)),a));t.addOutput(l);var c=new r.y("MAEMV",new r.t(l,i));return t.addOutput(c),t}return _(n,[{key:"getName",value:function(){return"EMV"}}]),n}(),M=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N1",2,120,6),i=new r.z("N2",2,250,12),o=new r.z("N3",2,500,24);t.addParameter(a),t.addParameter(i),t.addParameter(o);var s=new r.d("LC",new r.B(new r.e,new r.f(1)));t.addAssign(s);var l=new r.d("CLOSE_LC",new r.F(new r.e,s));return t.addAssign(l),t.addOutput(new r.y("RSI1",new r.v(new r.h(new r.D(new r.u(l,new r.f(0)),a,new r.f(1)),new r.D(new r.a(l),a,new r.f(1))),new r.f(100)))),t.addOutput(new r.y("RSI2",new r.v(new r.h(new r.D(new r.u(l,new r.f(0)),i,new r.f(1)),new r.D(new r.a(l),i,new r.f(1))),new r.f(100)))),t.addOutput(new r.y("RSI3",new r.v(new r.h(new r.D(new r.u(l,new r.f(0)),o,new r.f(1)),new r.D(new r.a(l),o,new r.f(1))),new r.f(100)))),t}return _(n,[{key:"getName",value:function(){return"RSI"}}]),n}(),D=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,100,10),i=new r.z("N1",2,100,6);t.addParameter(a),t.addParameter(i);var o=new r.d("HHV",new r.n(new r.o,a));t.addAssign(o);var s=new r.d("HHV1",new r.n(new r.o,i));t.addAssign(s);var l=new r.d("LLV",new r.q(new r.r,a));t.addAssign(l);var c=new r.d("LLV1",new r.q(new r.r,i));t.addAssign(c);var h=new r.y("WR1",new r.v(new r.h(new r.F(o,new r.e),new r.F(o,l)),new r.f(100)));t.addOutput(h);var _=new r.y("WR2",new r.v(new r.h(new r.F(s,new r.e),new r.F(s,c)),new r.f(100)));return t.addOutput(_),t}return _(n,[{key:"getName",value:function(){return"WR"}}]),n}(),x=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.f(4),i=new r.f(2),o=new r.f(2),s=new r.f(20);return t.addOutput(new r.y("SAR",new r.C(a,i,o,s),r.y.outputStyle.SARPoint)),t}return _(n,[{key:"getName",value:function(){return"SAR"}}]),n}(),E=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,90,9),i=new r.z("M1",2,30,3),o=new r.z("M2",2,30,3);t.addParameter(a),t.addParameter(i),t.addParameter(o);var s=new r.d("HHV",new r.n(new r.o,a));t.addAssign(s);var l=new r.d("LLV",new r.q(new r.r,a));t.addAssign(l);var c=new r.d("RSV",new r.v(new r.h(new r.F(new r.e,l),new r.F(s,l)),new r.f(100)));t.addAssign(c);var h=new r.y("K",new r.D(c,i,new r.f(1)));t.addOutput(h);var _=new r.y("D",new r.D(h,o,new r.f(1)));t.addOutput(_);var d=new r.y("J",new r.F(new r.v(h,new r.f(3)),new r.v(_,new r.f(2))));return t.addOutput(d),t}return _(n,[{key:"getName",value:function(){return"KDJ"}}]),n}(),O=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,120,12),i=new r.z("M",2,60,6);t.addParameter(a),t.addParameter(i);var o=new r.d("REF_CLOSE_N",new r.B(new r.e,a));t.addAssign(o);var s=new r.y("ROC",new r.v(new r.h(new r.F(new r.e,o),o),new r.f(100)));t.addOutput(s);var l=new r.y("MAROC",new r.t(s,i));return t.addOutput(l),t}return _(n,[{key:"getName",value:function(){return"ROC"}}]),n}(),I=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,120,12),i=new r.z("M",2,60,6);t.addParameter(a),t.addParameter(i);var o=new r.y("MTM",new r.F(new r.e,new r.B(new r.e,a)));t.addOutput(o);var s=new r.y("MTMMA",new r.t(o,i));return t.addOutput(s),t}return _(n,[{key:"getName",value:function(){return"MTM"}}]),n}(),R=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,120,20);t.addParameter(a);var i=new r.d("STD_CLOSE_N",new r.E(new r.e,a));t.addAssign(i);var o=new r.y("BOLL",new r.t(new r.e,a));t.addOutput(o);var s=new r.y("UB",new r.b(o,new r.v(new r.f(2),i)));t.addOutput(s);var l=new r.y("LB",new r.F(o,new r.v(new r.f(2),i)));return t.addOutput(l),t}return _(n,[{key:"getName",value:function(){return"BOLL"}}]),n}(),T=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),t=e.call(this);var a=new r.z("N",2,100,12),i=new r.z("M",2,100,6);t.addParameter(a),t.addParameter(i);var o=new r.y("PSY",new r.v(new r.h(new r.g(new r.m(new r.e,new r.B(new r.e,new r.f(1))),a),a),new r.f(100)));t.addOutput(o);var s=new r.y("PSYMA",new r.t(o,i));return t.addOutput(s),t}return _(n,[{key:"getName",value:function(){return"PSY"}}]),n}(),S=function(t){o(n,d);var e=l(n);function n(){var t;u(this,n),(t=e.call(this)).getName=function(){return"StochRSI"};var a=new r.z("N",3,100,14),i=new r.z("M",3,100,14),o=new r.z("P1",2,50,3),s=new r.z("P2",2,50,3);t.addParameter(a),t.addParameter(i),t.addParameter(o),t.addParameter(s);var l=new r.d("LC",new r.B(new r.e,new r.f(1)));t.addAssign(l);var c=new r.d("CLOSE_LC",new r.F(new r.e,l));t.addAssign(c);var h=new r.d("RSI",new r.v(new r.h(new r.D(new r.u(c,new r.f(0)),a,new r.f(1)),new r.D(new r.a(c),a,new r.f(1))),new r.f(100)));t.addAssign(h);var _=new r.y("STOCHRSI",new r.v(new r.h(new r.t(new r.F(h,new r.q(h,i)),o),new r.t(new r.F(new r.n(h,i),new r.q(h,i)),o)),new r.f(100)));return t.addOutput(_),t.addOutput(new r.A("MA",new r.t(_,s))),t}return n}()},function(t,e,n){var r=n(27);"string"==typeof r&&(r=[[t.i,r,""]]);var a={hmr:!0,transform:void 0};n(40)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(28);(t.exports=n(29)(!1)).push([t.i,"html,\r\nbody {\r\n    min-height: 100%;\r\n    margin: 0;\r\n    min-width: 100%\r\n}\r\n\r\n.chart_container {\r\n    cursor: default;\r\n    font-family: arial, sans, serif;\r\n    font-size: 12px;\r\n    height: 100%;\r\n    position: relative;\r\n    width: 100%\r\n}\r\n\r\n.chart_container div,\r\n.chart_container ul,\r\n.chart_container form {\r\n    margin: 0;\r\n    padding: 0\r\n}\r\n\r\n.chart_container a:hover {\r\n    text-decoration: none\r\n}\r\n\r\n.chart_container ul {\r\n    list-style: none;\r\n    border: 0;\r\n    margin: 0;\r\n    padding: 0\r\n}\r\n\r\n.chart_container button {\r\n    cursor: pointer\r\n}\r\n\r\n#chart_dom_elem_cache {\r\n    *font-weight: bold;\r\n    position: absolute;\r\n    visibility: hidden;\r\n    z-index: -1\r\n}\r\n\r\n#chart_toolbar {\r\n    border-bottom: 1px solid;\r\n    *font-weight: bold;\r\n    height: 29px;\r\n    position: absolute;\r\n    z-index: 3\r\n}\r\n\r\n.chart_container.dark {\r\n    border: solid 1px #404040;\r\n}\r\n\r\n.chart_container.light {\r\n    border: solid 1px #afb1b3;\r\n}\r\n\r\n\r\n\r\n.chart_container.dark #chart_toolbar {\r\n    background-color: #0a0a0a;\r\n    /* border-bottom-color: #404040; */\r\n}\r\n\r\n.chart_container.light #chart_toolbar {\r\n    background-color: #fff;\r\n    /* border-bottom-color: #afb1b3; */\r\n}\r\n\r\n.chart_container .chart_toolbar_sep {\r\n    float: left;\r\n    height: 100%;\r\n    width: 16px\r\n}\r\n\r\n.chart_container .chart_toolbar_minisep {\r\n    float: left;\r\n    height: 100%;\r\n    width: 4px\r\n}\r\n\r\n.chart_container .chart_dropdown {\r\n    display: inline-block;\r\n    float: left;\r\n    position: relative;\r\n    z-index: 100\r\n}\r\n\r\n.chart_container .chart_dropdown_t {\r\n    background-origin: content-box;\r\n    background-repeat: no-repeat;\r\n    border: 1px solid;\r\n    border-bottom-width: 0;\r\n    margin-top: 3px;\r\n    padding-right: 10px;\r\n    z-index: 101;\r\n    position: relative\r\n}\r\n\r\n.chart_container .chart_dropdown_t a {\r\n    display: inline-block;\r\n    padding: 3px 12px 5px 10px\r\n}\r\n\r\n.chart_container .chart_dropdown_data {\r\n    border: 1px solid;\r\n    display: none;\r\n    position: absolute;\r\n    padding: 6px 8px 6px 8px;\r\n    margin-top: -1px;\r\n    z-index: 100\r\n}\r\n\r\n.chart_container .chart_dropdown_data table {\r\n    border-collapse: collapse;\r\n    font-weight: normal;\r\n    white-space: nowrap\r\n}\r\n\r\n.chart_container .chart_dropdown_data td {\r\n    border-bottom: 1px solid;\r\n    padding: 8px 6px;\r\n    vertical-align: top\r\n}\r\n\r\n.market_chooser .chart_dropdown_data {\r\n    width: 370px\r\n}\r\n\r\n.market_chooser .chart_dropdown_data td {\r\n    border-bottom: 1px solid;\r\n    padding: 1px 6px !important;\r\n    vertical-align: top;\r\n    line-height: 24px\r\n}\r\n\r\n.market_chooser li {\r\n    float: left;\r\n    width: 80px;\r\n    height: 24px;\r\n    line-height: 24px\r\n}\r\n\r\n.chart_container .chart_dropdown_data td.marketName_ a.dark {\r\n    color: #fff\r\n}\r\n\r\n.chart_container .chart_dropdown_data td.marketName_ a.light {\r\n    color: #000\r\n}\r\n\r\n.chart_container .chart_dropdown_data table tr:last-child td {\r\n    border-bottom: 0\r\n}\r\n\r\n.chart_container .chart_dropdown_data li {\r\n    white-space: nowrap;\r\n    display: inline-block\r\n}\r\n\r\n.chart_container .chart_dropdown_data a {\r\n    text-decoration: none;\r\n    cursor: pointer;\r\n    padding: 5px 6px 5px 6px\r\n}\r\n\r\n.chart_container .chart_dropdown-hover.chart_dropdown_data {\r\n    display: block\r\n}\r\n\r\n#chart_dropdown_symbols .chart_dropdown_data td {\r\n    padding: 8px 6px 0 6px\r\n}\r\n\r\n#chart_dropdown_symbols .chart_dropdown_data li {\r\n    display: block;\r\n    height: 26px\r\n}\r\n\r\n#chart_dropdown_symbols .chart_dropdown_data a {\r\n    cursor: pointer\r\n}\r\n\r\n#chart_dropdown_themes .chart_dropdown_data td:first-child {\r\n    padding: 6px 1px 7px 6px\r\n}\r\n\r\n.chart_container.dark .chart_dropdown_t {\r\n    background-image: url("+r(n(30))+");\r\n    background-position: right 9px;\r\n    border-color: #0a0a0a;\r\n    color: #e5e5e5\r\n}\r\n\r\n.chart_container.dark .chart_dropdown-hover.chart_dropdown_t {\r\n    background-color: #0a0a0a;\r\n    background-image: url("+r(n(31))+");\r\n    background-position: right 8px;\r\n    border-color: #606060;\r\n    color: #fff\r\n}\r\n\r\n.chart_container.dark .chart_dropdown_data {\r\n    background-color: rgba(10, 10, 10, 0.8);\r\n    border-color: #606060\r\n}\r\n\r\n.chart_container.dark .chart_dropdown_data td {\r\n    border-bottom-color: #404040;\r\n    color: #e5e5e5\r\n}\r\n\r\n.chart_container.dark .chart_dropdown_data li a {\r\n    color: #1987da\r\n}\r\n\r\n.chart_container.dark .chart_dropdown_data li a:hover {\r\n    background-color: #383838\r\n}\r\n\r\n.chart_container.dark .chart_dropdown_data li a.selected {\r\n    color: #ffac00\r\n}\r\n\r\n.chart_container.light .chart_dropdown_t {\r\n    background-image: url("+r(n(32))+");\r\n    background-position: right 10px;\r\n    border-color: #fff;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light .chart_dropdown-hover.chart_dropdown_t {\r\n    background-color: #fff;\r\n    background-image: url("+r(n(33))+");\r\n    background-position: right 9px;\r\n    border-color: #4c4f53;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light .chart_dropdown_data {\r\n    background-color: #fff;\r\n    border-color: #4c4f53\r\n}\r\n\r\n.chart_container.light .chart_dropdown_data td {\r\n    border-bottom-color: #e4e5e6;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light .chart_dropdown_data li a {\r\n    color: #1478c8\r\n}\r\n\r\n.chart_container.light .chart_dropdown_data a:hover {\r\n    background-color: #f4f4f4\r\n}\r\n\r\n.chart_container.light .chart_dropdown_data a.selected {\r\n    color: #f27935\r\n}\r\n\r\n.chart_container .chart_toolbar_label {\r\n    cursor: default;\r\n    display: inline-block;\r\n    float: left;\r\n    padding: 7px 4px\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_label {\r\n    border-color: #232323;\r\n    color: #e5e5e5\r\n}\r\n\r\n.chart_container.light .chart_toolbar_label {\r\n    border-color: #fff;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container .chart_toolbar_button {\r\n    border: 1px solid;\r\n    cursor: pointer;\r\n    float: left;\r\n    margin: 3px 2px;\r\n    padding: 3px 10px;\r\n    position: relative;\r\n    z-index: 100\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_button {\r\n    border-color: #404040;\r\n    color: #e5e5e5\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_button:hover {\r\n    background-color: #383838;\r\n    border-color: #606060;\r\n    color: #fff\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_button.selected {\r\n    background-color: #383838;\r\n    border-color: #606060;\r\n    color: #ffac00\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_button.selected:hover {\r\n    background-color: #474747;\r\n    border-color: #808080;\r\n    color: #ffac00\r\n}\r\n\r\n.chart_container.light .chart_toolbar_button {\r\n    border-color: #ccc;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light .chart_toolbar_button:hover {\r\n    background-color: #f4f4f4;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light .chart_toolbar_button.selected {\r\n    background-color: #f4f4f4;\r\n    border-color: #f27935;\r\n    color: #f27935\r\n}\r\n\r\n.chart_container .chart_toolbar_tabgroup {\r\n    float: left\r\n}\r\n\r\n.chart_container .chart_toolbar_tabgroup li {\r\n    display: inline-block;\r\n    padding: 4px 0;\r\n    margin: 3px 0\r\n}\r\n\r\n.chart_container .chart_toolbar_tabgroup li a {\r\n    cursor: pointer;\r\n    padding: 4px 4px\r\n}\r\n\r\n.chart_container .chart_toolbar_tabgroup li a:hover {\r\n    text-decoration: none\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_tabgroup li a {\r\n    color: #1987da\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_tabgroup li a:hover {\r\n    background-color: #383838\r\n}\r\n\r\n.chart_container.dark .chart_toolbar_tabgroup li a.selected {\r\n    color: #ffac00\r\n}\r\n\r\n.chart_container.light .chart_toolbar_tabgroup li a {\r\n    color: #1478c8\r\n}\r\n\r\n.chart_container.light .chart_toolbar_tabgroup li a:hover {\r\n    background-color: #f4f4f4\r\n}\r\n\r\n.chart_container.light .chart_toolbar_tabgroup li a.selected {\r\n    color: #f27935\r\n}\r\n\r\n#chart_toolbar_periods_horz {\r\n    display: inline-block;\r\n    float: left;\r\n    position: relative;\r\n    z-index: 100\r\n}\r\n\r\n#chart_toolbar_periods_vert {\r\n    float: left\r\n}\r\n\r\n.chart_container a.chart_icon {\r\n    border: 1px solid;\r\n    height: 16px;\r\n    padding: 0;\r\n    width: 16px;\r\n    box-sizing:border-box;\r\n}\r\n\r\n.chart_container a.chart_icon:hover {\r\n    border-width: 2px;\r\n}\r\n\r\n.chart_container .chart_dropdown_data a.chart_icon {\r\n    display: inline-block;\r\n    margin: 0 6px 0 6px\r\n}\r\n\r\n.chart_container a.chart_icon_theme_dark,\r\n.chart_container .chart_dropdown_data li a.chart_icon_theme_dark:hover {\r\n    background-color: #000\r\n}\r\n\r\n.chart_container a.chart_icon_theme_light,\r\n.chart_container .chart_dropdown_data li a.chart_icon_theme_light:hover {\r\n    background-color: #fff\r\n}\r\n\r\n.chart_container #chart_toolbar_theme {\r\n    float: left;\r\n    padding: 0 8px\r\n}\r\n\r\n.chart_container #chart_toolbar_theme a.chart_icon {\r\n    cursor: pointer;\r\n    float: left;\r\n    margin: 6px 4px\r\n}\r\n\r\n.chart_container #chart_select_theme td:last-child {\r\n    padding: 6px 6px 0 8px\r\n}\r\n\r\n.chart_container #chart_select_theme li {\r\n    padding: 0 4px 0 4px\r\n}\r\n\r\n.chart_container.dark a.chart_icon {\r\n    border-color: #aaa\r\n}\r\n\r\n.chart_container.dark a.chart_icon:hover {\r\n    border-color: #1987da\r\n}\r\n\r\n.chart_container.dark a.chart_icon.selected {\r\n    border-color: #ffac00\r\n}\r\n\r\n.chart_container.light a.chart_icon {\r\n    border-color: #aaa\r\n}\r\n\r\n.chart_container.light a.chart_icon.selected {\r\n    border-color: #f27935\r\n}\r\n\r\n.chart_container #chart_updated_time {\r\n    float: right;\r\n    margin: 4px 3px;\r\n    padding: 3px 10px\r\n}\r\n\r\n.chart_container.dark #chart_updated_time {\r\n    color: #e5e5e5\r\n}\r\n\r\n.chart_container.light #chart_updated_time {\r\n    color: #393c40\r\n}\r\n\r\n#chart_toolpanel {\r\n    border-right: 1px solid;\r\n    display: none;\r\n    position: absolute;\r\n    width: 32px;\r\n    z-index: 2\r\n}\r\n\r\n#chart_toolpanel .chart_toolpanel_separator {\r\n    position: relative;\r\n    height: 4px\r\n}\r\n\r\n#chart_toolpanel .chart_toolpanel_button {\r\n    position: relative;\r\n    z-index: 100\r\n}\r\n\r\n#chart_toolpanel .chart_toolpanel_icon {\r\n    background-origin: content-box;\r\n    background-repeat: no-repeat;\r\n    border: 1px solid;\r\n    cursor: pointer;\r\n    height: 16px;\r\n    margin: 1px 4px 1px 4px;\r\n    padding: 3px;\r\n    position: relative;\r\n    width: 16px;\r\n    z-index: 101\r\n}\r\n\r\n#chart_toolpanel .chart_toolpanel_tip {\r\n    border-radius: 4px;\r\n    border: 1px solid;\r\n    display: none;\r\n    *font-weight: bold;\r\n    position: absolute;\r\n    padding: 3px 6px 4px 6px;\r\n    margin-left: 36px;\r\n    margin-top: -25px;\r\n    white-space: nowrap;\r\n    z-index: 100\r\n}\r\n\r\n#chart_toolpanel .chart_toolpanel_button:hover .chart_toolpanel_tip {\r\n    display: block\r\n}\r\n\r\n.chart_container.dark #chart_toolpanel {\r\n    background-color: #0a0a0a;\r\n    border-right-color: #404040\r\n}\r\n\r\n.chart_container.dark .chart_toolpanel_icon {\r\n    background-color: #0a0a0a;\r\n    border-color: #0a0a0a\r\n}\r\n\r\n.chart_container.dark .chart_toolpanel_button:hover .chart_toolpanel_icon {\r\n    background-color: #404040;\r\n    border-color: #666\r\n}\r\n\r\n.chart_container.dark .chart_toolpanel_button.selected .chart_toolpanel_icon {\r\n    background-color: #080808;\r\n    border-color: #666\r\n}\r\n\r\n.chart_container.dark .chart_toolpanel_tip {\r\n    background-color: #ffac00;\r\n    border-color: #ffac00;\r\n    color: #0a0a0a\r\n}\r\n\r\n.chart_container.light #chart_toolpanel {\r\n    background-color: #fff;\r\n    border-right-color: #afb1b3\r\n}\r\n\r\n.chart_container.light .chart_toolpanel_icon {\r\n    background-color: #fff;\r\n    border-color: #fff\r\n}\r\n\r\n.chart_container.light .chart_toolpanel_button:hover .chart_toolpanel_icon {\r\n    background-color: #eee;\r\n    border-color: #afb1b3\r\n}\r\n\r\n.chart_container.light .chart_toolpanel_button.selected .chart_toolpanel_icon {\r\n    background-color: #f4f4f4;\r\n    border-color: #afb1b3\r\n}\r\n\r\n.chart_container.light .chart_toolpanel_tip {\r\n    background-color: #f27938;\r\n    border-color: #f27938;\r\n    color: #eee\r\n}\r\n\r\n.chart_container.dark #chart_toolpanel .chart_toolpanel_button .chart_toolpanel_icon {\r\n    background-image: url("+r(n(34))+")\r\n}\r\n\r\n.chart_container.dark #chart_toolpanel .chart_toolpanel_button.selected .chart_toolpanel_icon {\r\n    background-image: url("+r(n(35))+")\r\n}\r\n\r\n.chart_container.dark #chart_toolbar .chart_BoxSize {\r\n    background: url("+r(n(36))+") no-repeat;\r\n}\r\n\r\n.chart_container.light #chart_toolpanel .chart_toolpanel_button .chart_toolpanel_icon {\r\n    background-image: url("+r(n(37))+")\r\n}\r\n\r\n.chart_container.light #chart_toolpanel .chart_toolpanel_button.selected .chart_toolpanel_icon {\r\n    background-image: url("+r(n(38))+")\r\n}\r\n\r\n.chart_container.light #chart_toolbar .chart_BoxSize {\r\n    background: url("+r(n(39))+') no-repeat;\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_Cursor {\r\n    background-position: 0 0\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_CrossCursor {\r\n    background-position: 0 -20px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_SegLine {\r\n    background-position: 0 -40px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_StraightLine {\r\n    background-position: 0 -60px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_RayLine {\r\n    background-position: 0 -100px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_ArrowLine {\r\n    background-position: 0 -80px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_HoriSegLine {\r\n    background-position: 0 -160px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_HoriStraightLine {\r\n    background-position: 0 -120px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_HoriRayLine {\r\n    background-position: 0 -140px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_VertiStraightLine {\r\n    background-position: 0 -180px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_PriceLine {\r\n    background-position: 0 -200px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_TriParallelLine {\r\n    background-position: 0 -220px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_BiParallelLine {\r\n    background-position: 0 -240px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_BiParallelRayLine {\r\n    background-position: 0 -260px\r\n}\r\n\r\n.chart_container .chart_toolpanel_button #chart_DrawFibRetrace {\r\n    background-position: 0 -280px\r\n}\r\n\r\n.chart_container #chart_toolpanel #chart_DrawFibFans {\r\n    background-position: 0 -300px\r\n}\r\n\r\n#chart_tabbar {\r\n    border-top: 1px solid;\r\n    cursor: default;\r\n    display: none;\r\n    *font-weight: bold;\r\n    height: 22px;\r\n    overflow: hidden;\r\n    position: absolute;\r\n    z-index: 1\r\n}\r\n\r\n#chart_tabbar ul {\r\n    height: 100%;\r\n    list-style: none;\r\n    padding: 0 0 0 4px\r\n}\r\n\r\n#chart_tabbar li {\r\n    display: inline-block;\r\n    height: 100%;\r\n    margin: 0\r\n}\r\n\r\n#chart_tabbar a {\r\n    cursor: pointer;\r\n    display: inline-block;\r\n    height: 100%;\r\n    margin: 0;\r\n    padding: 3px 4px 0 4px;\r\n    overflow: hidden\r\n}\r\n\r\n#chart_tabbar a:hover {\r\n    text-decoration: none\r\n}\r\n\r\n.chart_container.dark #chart_tabbar {\r\n    background-color: #0a0a0a;\r\n    border-top-color: #404040\r\n}\r\n\r\n.chart_container.dark #chart_tabbar a {\r\n    color: #e5e5e5\r\n}\r\n\r\n.chart_container.dark #chart_tabbar a:hover {\r\n    background-color: #383838;\r\n    color: #fff\r\n}\r\n\r\n.chart_container.dark #chart_tabbar a.selected {\r\n    color: #ffac00\r\n}\r\n\r\n.chart_container.light #chart_tabbar {\r\n    background-color: #fff;\r\n    border-top-color: #afb1b3\r\n}\r\n\r\n.chart_container.light #chart_tabbar a {\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light #chart_tabbar a:hover {\r\n    background-color: #f4f4f4;\r\n    color: #393c40\r\n}\r\n\r\n.chart_container.light #chart_tabbar a.selected {\r\n    color: #f27935\r\n}\r\n\r\n#chart_canvasGroup {\r\n    position: absolute;\r\n    z-index: 0\r\n}\r\n\r\n#chart_mainCanvas {\r\n    overflow: hidden;\r\n    position: absolute;\r\n    z-index: 0\r\n}\r\n\r\n#chart_overlayCanvas {\r\n    overflow: hidden;\r\n    position: absolute;\r\n    z-index: 2\r\n}\r\n\r\n#chart_loading {\r\n    border: 1px solid;\r\n    border-radius: 4px;\r\n    font-size: 18px;\r\n    font-weight: bold;\r\n    line-height: 48px;\r\n    overflow: hidden;\r\n    position: absolute;\r\n    text-align: center;\r\n    visibility: hidden;\r\n    width: 200px;\r\n    z-index: 200\r\n}\r\n\r\n#chart_loading.activated {\r\n    visibility: visible\r\n}\r\n\r\n.chart_container.dark #chart_loading {\r\n    border-color: #aaa;\r\n    background-color: rgba(0, 0, 0, 0.6);\r\n    color: #ccc\r\n}\r\n\r\n.chart_container.light #chart_loading {\r\n    border-color: #afb1b3;\r\n    background-color: rgba(244, 244, 244, 0.8);\r\n    color: #393c40\r\n}\r\n\r\n#chart_parameter_settings {\r\n    border-radius: 4px;\r\n    border: 1px solid;\r\n    width: 640px;\r\n    position: absolute;\r\n    overflow: hidden;\r\n    visibility: hidden;\r\n    z-index: 500\r\n}\r\n\r\n#chart_parameter_settings.clicked {\r\n    visibility: visible\r\n}\r\n\r\n#chart_parameter_settings h2 {\r\n    padding: 8px 12px;\r\n    margin: 0\r\n}\r\n\r\n#chart_parameter_settings table {\r\n    border-collapse: collapse;\r\n    width: 100%\r\n}\r\n\r\n#chart_parameter_settings tr {\r\n    line-height: 32px\r\n}\r\n\r\n#chart_parameter_settings th {\r\n    text-align: right;\r\n    padding: 0 4px 0 16px\r\n}\r\n\r\n#chart_parameter_settings input {\r\n    width: 2em;\r\n    margin: 0 2px 0 2px\r\n}\r\n\r\n#chart_parameter_settings #close_settings {\r\n    border-radius: 4px;\r\n    cursor: pointer;\r\n    font-weight: bold;\r\n    text-align: center;\r\n    margin: 8px auto;\r\n    padding: 5px 24px 5px 24px;\r\n    width: 84px\r\n}\r\n\r\n#chart_parameter_settings .chart_str_default {\r\n    margin-right: 24px\r\n}\r\n\r\n.chart_container.dark #chart_parameter_settings {\r\n    background-color: rgba(0, 0, 0, 0.9);\r\n    border-color: rgba(255, 255, 255, 0.2);\r\n    color: #ccc;\r\n}\r\n\r\n.chart_container.dark #chart_parameter_settings #close_settings {\r\n    background: #1887da;\r\n    color: #eee;\r\n}\r\n\r\n.chart_container.dark #chart_parameter_settings table {\r\n    color: #ccc;\r\n}\r\n\r\n.chart_container.light #chart_parameter_settings {\r\n    background-color: rgba(244, 244, 244, 0.8);\r\n    border-color: #afb1b3;\r\n    color: #393c40;\r\n}\r\n\r\n.chart_container.light #chart_parameter_settings #close_settings {\r\n    background: #1478c8;\r\n    color: #eee;\r\n}\r\n\r\n.chart_container.light #chart_parameter_settings table {\r\n    color: #393c40;\r\n}\r\n\r\n.chart_container input,\r\n.chart_container button {\r\n    border-radius: 4px;\r\n    border: 1px solid;\r\n    padding: 4px\r\n}\r\n\r\n.chart_container input[type=text] {\r\n    width: 12em\r\n}\r\n\r\n.chart_container input[type=button],\r\n.chart_container input[type=submit],\r\n.chart_container button {\r\n    font-family: arial, sans, serif;\r\n    padding: 4px 8px;\r\n    cursor: pointer\r\n}\r\n\r\n.chart_container.dark input,\r\n.chart_container.dark button {\r\n    background-color: #151515;\r\n    border-color: #333;\r\n    color: #ccc\r\n}\r\n\r\n.chart_container.light input,\r\n.chart_container.light button {\r\n    background-color: #ddd;\r\n    border-color: #ddd;\r\n    color: #222\r\n}\r\n\r\n.trade_container {\r\n    width: 250px;\r\n    height: 100%;\r\n    float: right;\r\n    z-index: 99999;\r\n    font-size: 12px;\r\n    overflow: hidden\r\n}\r\n\r\n.trade_container.dark {\r\n    background: #0a0a0a;\r\n    color: #f1f1f1\r\n}\r\n\r\n.m_righttop {\r\n    position: fixed;\r\n    top: 0;\r\n    height: 41px;\r\n    line-height: 41px;\r\n    width: 230px;\r\n    text-align: right;\r\n    padding-right: 20px;\r\n    font-size: 16px;\r\n    color: #f78d15;\r\n    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif\r\n}\r\n\r\n.m_righttop em {\r\n    width: 123px;\r\n    height: 28px;\r\n    background-position: 0 0;\r\n    display: block;\r\n    float: right;\r\n    margin-top: 5px\r\n}\r\n\r\n.dark .m_righttop em {\r\n    background-position: 0 0\r\n}\r\n\r\n.m_rightbot {\r\n    height: 22px;\r\n    line-height: 22px;\r\n    border-top: 1px solid #404040;\r\n    width: 230px;\r\n    text-align: right;\r\n    padding-right: 20px;\r\n    background-color: #0a0a0a;\r\n    border-bottom-color: #404040\r\n}\r\n\r\n.m_guadan {\r\n    margin-top: 29px;\r\n    overflow: hidden;\r\n    border-left: 1px solid #404040;\r\n    border-top: 1px solid #404040\r\n}\r\n\r\n.m_guadan a {\r\n    font-weight: bold;\r\n    color: #FFF;\r\n    text-decoration: none\r\n}\r\n\r\n.light .m_guadan {\r\n    margin-top: 29px;\r\n    overflow: hidden;\r\n    border-left: 1px solid #afb1b3;\r\n    border-top: 1px solid #afb1b3\r\n}\r\n\r\n#orderbook #asks,\r\n#orderbook #gasks,\r\n#orderbook #bids,\r\n#orderbook #gbids {\r\n    height: 195px;\r\n    position: relative;\r\n    display: inline-block;\r\n    overflow: hidden\r\n}\r\n\r\n.symbol-title {\r\n    font-size: 14px;\r\n    font-weight: bold;\r\n    text-align: center;\r\n    height: 16px;\r\n    line-height: 16px;\r\n    font-family: Arial, sans, serif;\r\n    padding: 5px\r\n}\r\n\r\n.symbol-title .dark {\r\n    color: #6BF\r\n}\r\n\r\n.symbol-title .infoDepth {\r\n    margin-left: 8px;\r\n    color: #f78d15\r\n}\r\n\r\n.symbol-title a:hover {\r\n    text-decoration: underline\r\n}\r\n\r\n#asks,\r\n#bids {\r\n    width: 150px\r\n}\r\n\r\n#orderbook {\r\n    padding-left: 3px;\r\n    border-bottom: 1px solid #222;\r\n    padding-bottom: 2px;\r\n    margin-left: 5px;\r\n    margin-bottom: 2px\r\n}\r\n\r\n#orderbook .table {\r\n    position: absolute;\r\n    border-collapse: collapse;\r\n    padding: 0;\r\n    margin: 0\r\n}\r\n\r\n#gasks .table,\r\n#asks .table {\r\n    bottom: 0\r\n}\r\n\r\n#orderbook .table .row {\r\n    padding: 0;\r\n    margin: 0;\r\n    height: 13px;\r\n    line-height: 13px;\r\n    font-family: Consolas, monospace\r\n}\r\n\r\n#orderbook .table .row {\r\n    line-height: 13px\r\n}\r\n\r\n#orderbook .table .g {\r\n    color: #666\r\n}\r\n\r\n#gasks,\r\n#gbids {\r\n    width: 80px\r\n}\r\n\r\n#gasks .amount,\r\n#gbids .amount {\r\n    float: right\r\n}\r\n\r\n#gasks .price,\r\n#gbids .price {\r\n    float: left;\r\n    text-align: right\r\n}\r\n\r\n.price {\r\n    margin-right: 10px\r\n}\r\n\r\n.price h {\r\n    visibility: hidden\r\n}\r\n\r\n.price g,\r\n.amount g {\r\n    color: #666\r\n}\r\n\r\n#price {\r\n    text-align: center;\r\n    font-size: 16px;\r\n    font-weight: bold;\r\n    height: 25px;\r\n    line-height: 25px\r\n}\r\n\r\n.trade_container .green {\r\n    color: #0F0\r\n}\r\n\r\n.trade_container .red {\r\n    color: #F00\r\n}\r\n\r\n.trade_container.dark #orderbook div.table div.remove g,\r\n.trade_container.dark #orderbook div.table div.remove span {\r\n    color: #444\r\n}\r\n\r\n.trade_container.light #orderbook div.table div.remove g,\r\n.trade_container.light #orderbook div.table div.remove span {\r\n    color: #ddd\r\n}\r\n\r\n.trade_container.dark #orderbook div.table div.add {\r\n    display: none;\r\n    background-color: rgba(238, 238, 238, 0.2)\r\n}\r\n\r\n.trade_container.light #orderbook div.table div.add {\r\n    display: none;\r\n    background-color: rgba(100, 100, 100, 0.2)\r\n}\r\n\r\n#trades {\r\n    overflow-y: auto;\r\n    text-align: left;\r\n    color: #666;\r\n    padding-top: 5px\r\n}\r\n\r\n.trade_container.light {\r\n    background: #fff;\r\n    border-left: 1px solid #afb1b3;\r\n    color: #000\r\n}\r\n\r\n.trade_container.light .m_righttop em {\r\n    background-position: 0 -32px\r\n}\r\n\r\n.trade_container.light .m_righttop {\r\n    position: fixed;\r\n    top: 0;\r\n    height: 40px;\r\n    line-height: 40px;\r\n    background: #FFF;\r\n    width: 230px;\r\n    border-bottom: 1px solid #afb1b3;\r\n    text-align: right;\r\n    padding-right: 20px\r\n}\r\n\r\n.trade_container.light #trades.trades table {\r\n    color: #333\r\n}\r\n\r\n.trade_container.light #trades.trades .v {\r\n    color: #333\r\n}\r\n\r\n.trade_container.light #trades.trades .v g {\r\n    color: #333\r\n}\r\n\r\n.trade_container.light .m_rightbot {\r\n    background: #fff;\r\n    border-top: 1px solid #afb1b3\r\n}\r\n\r\n.trade_container.light #orderbook {\r\n    border-bottom: 1px solid #afb1b3\r\n}\r\n\r\n.trades_list {\r\n    padding-left: 25px\r\n}\r\n\r\n.trades_list ul {\r\n    width: 200px;\r\n    height: 14px;\r\n    line-height: 14px;\r\n    text-align: left;\r\n    list-style: none;\r\n    clear: both;\r\n    zoom: 1;\r\n    margin: 0;\r\n    padding: 0\r\n}\r\n\r\n.trades_list ul li {\r\n    height: 14px;\r\n    line-height: 14px;\r\n    color: #999;\r\n    font-size: 12px;\r\n    list-style: none;\r\n    float: left;\r\n    *display: inline;\r\n    margin: 0;\r\n    padding: 0;\r\n    font-family: Consolas, monospace\r\n}\r\n\r\n.trades_list ul li.tm {\r\n    width: 62px;\r\n    color: #999\r\n}\r\n\r\n.trades_list ul li.pr-green {\r\n    width: 65px;\r\n    color: #6c6\r\n}\r\n\r\n.trades_list ul li.pr-red {\r\n    width: 65px;\r\n    color: #c66\r\n}\r\n\r\n.trades_list ul li.vl {\r\n    width: 60px;\r\n    color: #ccc\r\n}\r\n\r\n.trades_list ul li.vl g {\r\n    color: #666\r\n}\r\n\r\n.trade_container.dark .trades_list ul.newul {\r\n    display: none;\r\n    background-color: rgba(238, 238, 238, 0.2)\r\n}\r\n\r\n.trade_container.light .trades_list ul.newul {\r\n    display: none;\r\n    background-color: rgba(100, 100, 100, 0.2)\r\n}\r\n\r\n.light .trades_list ul li.tm {\r\n    color: #333\r\n}\r\n\r\n.light .trades_list ul li.pr-green {\r\n    color: #6c6\r\n}\r\n\r\n.light .trades_list ul li.pr-red {\r\n    color: #c66\r\n}\r\n\r\n.light .trades_list ul li.vl {\r\n    color: #333\r\n}\r\n\r\n.light .trades_list ul li.vl g {\r\n    color: #333\r\n}\r\n\r\n.container .nav {\r\n    margin: 0;\r\n    list-style: none;\r\n    padding: 0 0 0 3px;\r\n    height: 41px\r\n}\r\n\r\n.container .nav li {\r\n    display: inline-block;\r\n    margin-right: 9px\r\n}\r\n\r\n.container a {\r\n    text-decoration: none;\r\n    color: #6BF;\r\n    font-family: Arial, sans, serif\r\n}\r\n\r\n.container a:hover {\r\n    text-decoration: underline\r\n}\r\n\r\n.container a.active {\r\n    color: #FC9\r\n}\r\n\r\n.container span {\r\n    margin-left: 3px;\r\n    font-family: Consolas, monospace;\r\n    color: #ccc\r\n}\r\n\r\n.light .container span {\r\n    color: #333\r\n}\r\n\r\n.light .container a {\r\n    text-decoration: none;\r\n    color: #1478c8;\r\n    font-family: Arial, sans, serif\r\n}\r\n\r\n.chart_BoxSize {\r\n    width: 20px;\r\n    height: 20px\r\n}\r\n',""])},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var a=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([a]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAFCAYAAABmWJ3mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAJn2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj42PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NTwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDY8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNC0xMi0wM1QxNzo1Njo1MiswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDozNjIzYmJlYi1iNGU2LWNhNDktOTRjZi05MTIyY2Q1Y2NiZTk8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjM2MjNiYmViLWI0ZTYtY2E0OS05NGNmLTkxMjJjZDVjY2JlOTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDo2QzE5MkVEOTY1N0UxMUU0QUUwMkE5RkYyNDYyQTBBODwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDo4MzE3OTEwZi1kOTE5LTY4NDAtYWVhOS0zNzI5NWE2NGI1NmU8L3N0UmVmOmluc3RhbmNlSUQ+CiAgICAgICAgICAgIDxzdFJlZjpkb2N1bWVudElEPnhtcC5kaWQ6MWYwY2U2ZjQtZTRlNS1jODQ3LWIyOTgtNGNkNjRiYzBkYzA2PC9zdFJlZjpkb2N1bWVudElEPgogICAgICAgICA8L3htcE1NOkRlcml2ZWRGcm9tPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE0LTEyLTAzVDE3OjU2OjUyKzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNC0xMi0wM1QxNzo1NjoyOCswODowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE0LTEyLTAzVDE3OjU2OjUyKzA4OjAwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgqC9xe+AAAAWUlEQVQIHWO8cOHCFgYGBm8gRgZbmRgZGXOBIj+QRH8wMTHlMenr69////9/J0wCxNbT07vHCBK4f/8+x8ePH6+B2Pz8/FqKioo/mEAcEAOoEmRkHogNEgMA0qYfb8X3frQAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAFCAYAAABmWJ3mAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA21pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0E5Qjc0ODc3QUQ0MTFFNDhCN0ZBNEVBQTM1QTBFNjgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0E5Qjc0ODY3QUQ0MTFFNDhCN0ZBNEVBQTM1QTBFNjgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM2MjNiYmViLWI0ZTYtY2E0OS05NGNmLTkxMjJjZDVjY2JlOSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2QzE5MkVEOTY1N0UxMUU0QUUwMkE5RkYyNDYyQTBBOCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvrZrC8AAABOSURBVHjaYvz//z8DCFy8eNEbSDHq6+tvAfEZQRJAQQ4g+xoDBGgBJX8wQTkVQKwIxRVgHRcuXFCEquaAKvoBxNogHZORBBmg7EkAAQYAImEV+46peUgAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAFCAYAAABmWJ3mAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3FpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NkMxOTJFRDk2NTdFMTFFNEFFMDJBOUZGMjQ2MkEwQTgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NkMxOTJFRDg2NTdFMTFFNEFFMDJBOUZGMjQ2MkEwQTgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjgzMTc5MTBmLWQ5MTktNjg0MC1hZWE5LTM3Mjk1YTY0YjU2ZSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5MkIK1AAAAPklEQVR42mJ0CUvewsDA4M2ACrYyAYlcIP6BJAhi54Ek7gNxJ5IEiH2PCcrpgCq4D2UzsCBpBxnJCDMWIMAAVuANgw9cJ2UAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAFCAYAAABmWJ3mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAADcWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMTQgNzkuMTUxNDgxLCAyMDEzLzAzLzEzLTEyOjA5OjE1ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjFmMGNlNmY0LWU0ZTUtYzg0Ny1iMjk4LTRjZDY0YmMwZGMwNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2QzE5MkVEOTY1N0UxMUU0QUUwMkE5RkYyNDYyQTBBOCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2QzE5MkVEODY1N0UxMUU0QUUwMkE5RkYyNDYyQTBBOCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ODMxNzkxMGYtZDkxOS02ODQwLWFlYTktMzcyOTVhNjRiNTZlIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjFmMGNlNmY0LWU0ZTUtYzg0Ny1iMjk4LTRjZDY0YmMwZGMwNiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PkyQgrUAAABCSURBVBhXY3QJS2aAAh8g/g/EW0EcJhABBBxAPAmIJ0PZcIkKIFaEYhAbLKEExOUgDhSA2IogCZARYO1QAGQzTAYAPbkH1E4jJr8AAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAFACAYAAAC1CvwiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2lpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0EwQTE5MkI4MTFEMTFFNEI4Njg4OEVFQzVGMTEyOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0EwQTE5MkE4MTFEMTFFNEI4Njg4OEVFQzVGMTEyOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjYzNEUzRUIyODExOTExRTRBNkJDQzhDODM5MEQxQTkwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjYzNEUzRUIzODExOTExRTRBNkJDQzhDODM5MEQxQTkwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VsD84AAABMxJREFUeNrsXEloFEEU7QztBgoKkmgueogajSQRBEEQJ3jITVDUgxL1YoggHlSU6MHlKkEQ3FFREEEviogexJlTDqIxcQl60Is4oujFDVFhfN+p1kqlu7ZZMhN+w6My1f1fVXf9ev2r+6eDfD4fRMhkMpeBaXKdCalg5NYFPMpms0sDy62OWKINhtGPn8ABoC+dTud1BKmE+onAUeAOSBt8CKKtExgESafrKagb1fcB+3FKv1x68K8hYA/Qj0aafAiijUZnACRdUUVoYfQbuA8MAy+BF8BzG4LPwARgCtCLcx9wGYVXwHLgqvjd6zKMGWAZWqRunhF1a3HeC2wITtHYw/gT/UD5AMWQOG6v0Q/iNrTcI4jJvZtA+sZ1GK8AX4V773J1ZTqNLyjOi16ccD4Fp+lcmwRavYM+Zlw10XljghIQ1NFQafa3k6xr5kkH+8H48AOWtDEgGBUGuQSVYoLl5b8r6wfofqu43QcuMZJsfARYAiEZdOqBZHxINrYNMBKNjQQmYy2BjXEiga1xLIGLcVy0HhkfhPGQ7Y1FPYd2W+NCWKr4tuvcKHouhIaVCktaOQlw4etRvE95GpPHngUafVR5xFyxVST1oP+y5iPlJXVlW00cUsK7uirVRO3Vtlmx+IhL6UbBdLW1BD5qLKvyLJSnfYwjTXwHNMD4A0taBQkw7ItQbAXmWhMIo/UCLaK6L3RoeAP5ilJ30TVOpOcoPeLnMHynJeWoxrOlh1PXrZc8irhQDw4D1zhO5DiR48SaeZ5oiJvqqfQV1chjt1cmTtRNNBdZj52lJkUyx0y+EWr5I1XbmIk1kTWRCZig/ASqeyet4HTvWNKRkSDLOt0bbad56Pjkgv2ACZiACewjFJunV6MIrLRPF2AoPejgCIUJmIAJakMTVfEJZSPaCWRMrcrHO2tibA9cNVE+nv2ACaqDgPPSqjqtzHbtXPTStzRPsopZO7MncoIjE5SDALMvJ8SjMfpbEpTYurgZmHOpCzVakLOpS+xBXKtOPVBbjLsGVTSMscPjShAZCbL+omQdZOucCWLHmKdzrROY3vpp8xMtjEfnJ9omtankYdJ6UDbWkVvfXIk8akAmD6VueT1TC5OywZVzTiQPA807VhP53w3q2paguq3ADaBdt98rP1EeSufwVu2ZU4ykzT8wvWvX5h+Y3nhrc/dN+YmmiWWTn6h9F8+ayJrImlikJkbgnG3O2WZNLLUmOhrH5ycmGetmaWg7hZMEN6UTzKIfxtlqYuLOymui7VBqPZHzEz2f6vLb/zHOjCs+sc3mFanoUaYspzBOXlxn2JXZlVnSKkSAEZmB4gKwG6PxWt5ne2vbCdxWjbUxUsztblJ5XNn34qGHZDvZ650r6ueh2AfcSgqyiPgccAkXLqvUbwZWAcew72HSKGwEcorx/KDwr4nTgW1kHDsKOHAOijVAt/hNn/vaAqwUrQ7oojSasseBezjwJn43B4UPbD2h9QHqvpv8YHVQ+DbaXRhTD1YEhe/Gxa0b6LtZzfLSd6a4cPQtrE3AY9HqD7F/KorFAMWS9F+mRDAcLX1HxYrAW6BNGC0EiOgZ8JRKEH8bcQpKpugO4KMwoI+tnVS/FSc/Q4nz8W7T9/LU1bt3sitrYhD8EWAAdoU1AmCjen8AAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAFACAYAAAC1CvwiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2lpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjI0MkEyMUI4MTIwMTFFNDgxNjhGRjc0RjJGMjMwQkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjI0MkEyMUE4MTIwMTFFNDgxNjhGRjc0RjJGMjMwQkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjZDNzdDQUY4NjU3RTExRTRBRTAyQTlGRjI0NjJBMEE4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjZDNzdDQUY5NjU3RTExRTRBRTAyQTlGRjI0NjJBMEE4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+s3AxtQAABPZJREFUeNrsXE1oHkUYnvkYq0IFC5ImubRI1WolSUEoFIqWHnIr6KqHStWLtaceJFhyUryG4ElKf8RaKELNYkFETyYXPYhNW3+CHtqL+NX+XdoKxQrTZ3bny7ffdv43+Wziu/BssrP7Pjs7M++z7+683zIpJVvEDDsBPNJT5kGL9S57gTMs58+xwKVlKHsC+A4kEwBPIVDLGmAK+Bok61MIOss4cA4k46kEahnUNZkCHkghUItqiwnge5BsSiHoLKp35kGyt1MgAoz+Bb4FFoDfgd+AX0MIbgDqmh8GJlkm52Ma8QKwHfhMb0/G9MIssA1nVNU8rMtewnU/FUJwqOj7TF4vtjL5A9bn9XHvGrtHOYRzyfl+TfwPsAmkf8R240nglh7e79R3+rsxkzdRi481wUfxl5DojauGIOez//s2WBEEHLcyV1eNFbJu95Od7nsfyGPvjdSN/804IElrTCCiLXIum9cgk7xA/8dBzkf07T6hDUrjD4CtqH5XZIKC6hk2ApwGxur7Ghn7CTzGboIAYztBoLGZIML4XoKu8WjoI4+oj+3iZpLJ88HjA2eTlRrImAeuJbmxCJOLkqgutyZ29WEA68utRGMlLkeAYRY7cOq+IlKkvEfWAs9qHe596IWywazDXSRJeY87N9REEdzaVkEJbO1lFpSA1vYpUqe14wRVi+pgrJTXe+ESsB5nvkKa2E9NzPkzWL8JbBSRRq9obNGl0zE1eBV4r1b2SWycqN7m7NdbCxg7W1qRUj5UeTn1eXgjdn3l/UIfcv4X/j8VpsoUJ1KcSHHi/U5QxomsWZyY86HGcWIj4zgCi5f6ojR/zJQaofYhUg2MmURyhGptA9JE0kQioGjdJ6j6Jey9Q9k+x/LColFJNhf77Bzk5rH3BfJGIiACInBoYqD2uUW1qn0BKQNuVVaT0RShEAEREMHK0MTa8WmaWDk+XhONNYjVxMrxpIlEsBIIKD+xPwR2PQjUypZX+zwiu8yTdSFaSRmSlOBIBMvhjTlvax0YXvy/qw3mMoMHtmPKXK8D2yFlwiNpw9ZtTeZTpLazDe4LXxDGxqlfe9A46BgpspzPNJP1TL4cT2Dqd1KkFU+gpgxzfhoYs+wfULf/ltW4mndi3l/kJwpHMLHVYdwhvyRsz4M9xg7y8EasBlwV8mpeWtI7NeGdoPWRO+dYg3JxUo31/l53TunK6JmdWs3ifMEwQsPzE23DO2jG25m778tP9OZkqcaaYQOOgNs5F0+qTJpImthUE43ORDnblLNNmpisicmRifl3LLYzO7xUBLuwRXBbLsFs/jIuwEtFYFjj+B1LQ02knG1G+YmMMuOW5O2+CE4bsRzXeIJiFYwDEZt7syrbgIYySVrfCHK+DvgCeDy1BgeAr9CVF9OHMmMP+h+6ljzd2N0uyvahtDnXnKtPoh0EvhQO9uPAp2i4uVr568Au4EPs+9HWC3uAds34SVb+NPFR4C1lbO6FnG/A+kVgn95Wn/t6A3hen3XePg7KT7xNFNXP5FVsb9ZnXQu8bfpeWL0Gu1n5bbRvYKxqsAOYtjx0qM9ebe7qQc4fw/ooK7+F9RpwtngqyeRtvV/V4llAxc/qV6aKYKEkMMWKjP0JjGqjpwFF9Avwc/E3k393Fal8iKhmyR8DrmmDn5j6yFom79hE1TTG98EgSOvMlxCR7EqiythdAQYAbEvqZUahHBUAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABC0lEQVQ4T7WTYVEDMRSEv1VAJYCDOmgdgAPAASigKGhx0CoACcUBEsDBVcFj9ibpvF6TDn/IzM0kL9l9t5usImIFvHA6niVtcikinoB1qg3AmyIiSnEslPle0n5CsAT8eZjsChgqwaEUtpIeJ39zsoyILXAPjJhK8Apcl40uSQLvgG9LPxJIWqUDZyQZLOmhemcC6/mqmlskU7A1RYT9mKultwDuLEvSEBE2+MOdp+ebBKXDzOBLhnrvfwiKhFvgJkl4b13xJRN3VXPH2Dmw6F3jEVw9mJLka/RTzg/pDNwiAX7yQ7LbM6ALbpCMGEvwZAwGUBP42QnTIoXJDQ8mcJxrumqjv8TZYdr8Ai/uwaXkPGIcAAAAAElFTkSuQmCC"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAFACAYAAAC1CvwiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2lpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEI1Q0Q4QzI4MTIxMTFFNEFGNzk4NUQxNjVEMjU2RTYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEI1Q0Q4QzE4MTIxMTFFNEFGNzk4NUQxNjVEMjU2RTYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwNTdERDc2N0U4RDExRTRCOUQ1Q0FDNDRFM0JBN0QwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwNTdERDc3N0U4RDExRTRCOUQ1Q0FDNDRFM0JBN0QwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+R+XfywAABNVJREFUeNrsXEloFEEU7QztBgoKkmgueogajSQRBFEMJnjITVDUgxL1YogXDypK9OBylSAI4r6CCOpBEdGDOAEhB9GYuIR40Is4QdGLG6LC+H6mWsua7lq6Z8aZ8Bsela7u/7q669ebX10/7WWzWS/A0uWtl4Apcp0JKe/frQN4vKylbbFnuVURS7DBMNj5AewDevoepLM6glRE/XjgMHAHpDVxCIKtHRgASbvrLagb1fcAe3FLP11a8OdCwC6gDxepi0MQbNQ7/SDpCCp8C6NfwH1gCHgJDAMvbAg+AeOASUA37r3fpRde0TMFroj9bpduTANLcEVq5klRtwb3Pc+G4Dj1PYw/0g7KhygGxXm7jX4QtuHKXYKY3LsOpG9cu/Ey8EW49w5XV6bb+IzirGjFMedbcBrOlUmg1TvoY9pVE503JigAQRV1leZ4M8m6Zpy0sR+MDT9gSUtO4Lsa5IVBLkGlGGBZ+e/S+gGa3yh+7t2fgTA+BCyCkAw4tUAyPiAb2wYYkcZGApOxlsDGOJLA1jiUwMU4LFoPjPfDeND2h0W9h2Zb49FN9W3XsZF4LPiGmQprYjE0UXK6ahTvUjGNyWNPAbV+TONgrIzYKpJ60l9ZiyPlBXVlW00cVMK7qjLVRO3TtpmxxBGXwvWC6WlrCeKosazKM1CeiGMcDOcRoAbG71kTS6iJ6PYFKLYAs61bIIzWCTSI6h6XFqwnX1HqzrvGifQepUvsDsF3GlKOajxTejl1zXrKo4gLteAgcJXjRI4TOU6smPeJhripmspYLZA8dltp4kTdQHOR9dBRalIkc8wUN0ItfqRqGzOxJrImMgETFJ9Ade+oGZxujaU1MBJkvU6/jbbD3Hd8c8F+wARMwAT2EYrN26s8Aivts32HMroYzREKEzABE1SEJqri48tGdBBIm64qn++siaEtcNVE+Xz2AyYoDwLOSyvrtDLbuXPiqW9h3mQlmTuzJ3KCIxMUgwCjLyPEozb4WxKU0LqwEZhxqfM1WpCxqYtsQdhVnVqgXjHsGZRRN4Z2j6sqB0ZEBlxPJOsgW+tMENrHPJwrhEA3nLWrftr8RAvj/PxE26Q2dd3Zj5oPysY6cusfVyIPLiCT+1KzYr1T86OywZV7jiT3Pc0aq4l8dIO6NkWobiNwA2jWHY+Vnyh3pXN4q7bMKUbS5h+Y1tq1+QemFW9t7r4pP9E0sGzyE7Vr8ayJrImsiQk1MQDnbHPONmtioTXR0Tg8PzHKWDdKfdshHCW4KZ1gJn4ZZ6uJkQdLr4m2Xal1Zc5PjDmcefX/P2fGJU9ss1kiFS1KF+UWxsjCdZpdmV2ZJa1EBOiRaSjOATvRG6/lY7Y/bduB26qxKVJVmzahOK4c9+GhhWQ7MdaaK+rnoNgD3PI17BeAi3hwvUr9JmAlcATHHkX1wgYgoxjP9XL/mjgV2ErGob2AE2ehWA10in363NdmYIW4ar8uSqMhexS4hxNvYr/ey31g6ynND1D3zeQHq7zct9Huwpha0OLlvhsXNm+g72bVy1Pf6ShOe7lvYW0EnoirfhfHJ6NYCFAsSf9lSgRDwdQ3L1YE3gJNwmg+QETPgWdUgvirPHdWM0XPAB+EAd3/sPqtOPkdSpiPd5q+l6fO3mMnu7Imet5vAQYAtaODAARZxFkAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAFACAYAAAC1CvwiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2lpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxZjBjZTZmNC1lNGU1LWM4NDctYjI5OC00Y2Q2NGJjMGRjMDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEY5QjlCQTA4MTIyMTFFNEIwQUVBMkM3NjgwODE3OTYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEY5QjlCOUY4MTIyMTFFNEIwQUVBMkM3NjgwODE3OTYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwNTdERDdBN0U4RDExRTRCOUQ1Q0FDNDRFM0JBN0QwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwNTdERDdCN0U4RDExRTRCOUQ1Q0FDNDRFM0JBN0QwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+2tcnMAAABOxJREFUeNrsXDtoFUEU3SzjDwwoiNE0WsS/aAQ/IIiKRTpBUQvBT+MPxEKDEhs1hU0IVvEHahREUAtBRCu10UI0RtSghTbiE39NoiAqPM9NZnWzmZm9My/vaeIdOGx2svfs7Myds3d37tuoWCxGCbqbFl0AqtN1eYij/mUT8Kjn4OKFEbPEhrppwD2QNAJVIQRURgItwE2Q1IQQJKUB6ARJQygBlUm6JS3AiBACKtQXjcB9kNSFECSFRqcDJJuSCsUw+gncBrqAl8AL4DmHoBugax4DNFUffdDh04mvgKXAJb3f5DMKd4AlOCM185SuW4vrnsEhOEFjD+PPtIPtA2ye6OP2G4eHJoSr4Mw7NfF3oA6kb3yH8SLwRbv3Xm9Hwhl7sDmjW9HmfQmhs3G4EGAI7/zvfTA0CKpwK3MNVT3JumOerHTe94jc994ow/hX/EAkrXQC5WsAnSyW3ALMwipC5f0AzZ+nb/f+faCNm4EFaH6nVx+kjA+njVkELmPOrc1p7CTgGFsJuMZGAh/jAcOYMj4E4yfcG0vWk+q5xn0BMQhSN5KizwPXoNxYlGmKiqiWWRNTTjcRm/dxoDF57GmgNg40TubKO8U0yo71H1njuKvL3cs/Cvqare6uQqR8UDVRsXvbVri9XV5B4fR2niIlHeYnqFqV6SXLSR8pz7bgHVAD4w+iiRXURAz7bGy2AlOVp9F6jTm6utWnBRvIVzJ153zjRHqPslPvdsF35sQexuTuk1Mvp66ExonUgiPAZe6LKIkTJU6UOPGfJtBxYlgnpjx2V8lxYlyCcadXH9hmaV6Ulh8zhUao5Y9UuTGTCo1QRRNFE4VACHwUqZ+LJi9hTdPZtsayIjHSZHdzn1xDnmJ97wsyG4VACISAH6HYtM8pqmnt46QMOFW5dzFaIhQhEAIh+CtxIjcetAVeQZqYPt5bE40t8NXE9PGiiUIwBAgkP7FScaJND7haGedpX57IlnexjqWVkiEpCY5CUIbZiNlX0DpQm/yd0gZjnWkGFnzqXK8DC5w6lSNptbb9hCxPkQquPvg35oIydU722ll+kBgRGXC1JFkH2TpvAlMPiyINSUHJTCTnqp8zP5Fh/Ds/UTmCiQUOY3N+Yvp5MG3sImd3YjrgGrDuHJrUljw7OxdoOfmJ1jVWzuqvYhi7hrK533QOGUrvlR3UzwOuAfXecaLpstj5ic78g7z8RFeH5uYn5o0GJz/RuRYvqiyaKJqoC2bjfI7y2BCkidZnZ8nZlpzt/1gT40BjsybajF2zVHGnsE1wY5dglvwyjquJnLCmQprIHUqnK0t+YvgLCFn9L5MmVubtvuKmjdiOK3mBYhj4gfLNvRmOfSCuLJIWVeq3fRiR8dicBfZhNF6HtGAPcCNr7OXKKKNyH7oGPd04p1/IdnTQmivq6ZNoB4DrysHeDpxHx93N1G8GVgHH8L+HtlHYCBQyxtOjvp8mjgO2kbFxFHDgFGzWANv1Pn3uawuwXJ+1w+oH+hNv9Fmzdhz4Efsz9VnHAjtM3wvLtmB11PdttFswphYsA1otzw303ayZ6UffCVHfT0/b9IPoY32t3/T/qRVzAYol6VemRNDVKyiG4aKPCr0F5mujWQARPQOe0hbEX/tdQiZLfjfwSRvQx9aO4/8/bKJq8vHtMGBpnfESfJJdRVSj6JcAAwDMequ4kXXO2QAAAABJRU5ErkJggg=="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABKElEQVQ4T7VTwU0DMRCcrYArwby9j3QQOoAOgA5CBYQKCB0kFUAJoQMe9v/o4JD8X7SWfVo5vhMfLJ1krT3jm9kdYuY9gGeYJSJPMcaDrXnvd0T0amoTgDdiZinFXCj7cwjhbAmY+QaAfrp2AK4ATJXgRwsicowxPlpgu/feH4noHkDGVIIXEXF6sEZSwSJyIqJRpc8EIYS9uXDxJxYcY3yo3lEx56tq7pG0YJWlnojIhnp6C+AupeTGcZyYeRKRD325vd8l0EvOuUHBa4bq2f8QFAm3KaVrI+G91+I1E09V84KxGyLaLrVxBlcPWpK5jWWU7SBdgHskRPRtB0ndHnTCeq1qQlVHOWNUgm5yMADUBH4uhGlrwjRoHpRA41zTlc//GGcN0+EXyGXo9iBlz1cAAAAASUVORK5CYII="},function(t,e,n){var r={},a=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),i=function(t){var e={};return function(t){if(void 0===e[t]){var n=function(t){return document.querySelector(t)}.call(this,t);if(n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),o=null,s=0,l=[],c=n(41);function u(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=r[a.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](a.parts[o]);for(;o<a.parts.length;o++)i.parts.push(p(a.parts[o],e))}else{var s=[];for(o=0;o<a.parts.length;o++)s.push(p(a.parts[o],e));r[a.id]={id:a.id,refs:1,parts:s}}}}function h(t,e){for(var n=[],r={},a=0;a<t.length;a++){var i=t[a],o=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function _(t,e){var n=i(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),l.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=i(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,a)}}function d(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=l.indexOf(t);e>=0&&l.splice(e,1)}function f(t){var e=document.createElement("style");return t.attrs.type="text/css",g(e,t.attrs),_(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function p(t,e){var n,r,a,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var l=s++;n=o||(o=f(e)),r=v.bind(null,n,l,!1),a=v.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",g(e,t.attrs),_(t,e),e}(e),r=function(t,e,n){var r=n.css,a=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&a;(e.convertToAbsoluteUrls||i)&&(r=c(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}.bind(null,n,e),a=function(){d(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){d(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else a()}}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||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return u(n,e),function(t){for(var a=[],i=0;i<n.length;i++){var o=n[i];(s=r[o.id]).refs--,a.push(s)}t&&u(h(t,e),e);for(i=0;i<a.length;i++){var s;if(0===(s=a[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete r[s.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function v(t,e,n,r){var a=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,a);else{var i=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var a,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?t:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},function(t,e){t.exports='<div class="trade_container dark hide">\r\n    <div class="m_cent">\r\n        <div class="m_guadan">\r\n            <div class="symbol-title">\r\n                <a class="dark"></a>\r\n            </div>\r\n            <div id="orderbook">\r\n                <div id="asks">\r\n                    <div class="table"></div>\r\n                </div>\r\n                <div id="gasks">\r\n                    <div class="table"></div>\r\n                </div>\r\n                <div id="price" class="green"></div>\r\n                <div id="bids">\r\n                    <div class="table"></div>\r\n                </div>\r\n                <div id="gbids">\r\n                    <div class="table"></div>\r\n                </div>\r\n            </div>\r\n            <div id="trades" class="trades">\r\n                <div class="trades_list"></div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class="chart_container dark">\r\n    <div id="chart_dom_elem_cache"></div>\r\n    \x3c!-- ToolBar --\x3e\r\n    <div id="chart_toolbar">\r\n        <div class="chart_toolbar_minisep"></div>\r\n        \x3c!-- Periods --\x3e\r\n        <div class="chart_dropdown" id="chart_toolbar_periods_vert">\r\n            <div class="chart_dropdown_t"><a class="chart_str_period">周期</a></div>\r\n            <div class="chart_dropdown_data" style="margin-left: -58px;">\r\n                <table>\r\n                    <tbody>\r\n                    <tr>\r\n                        <td>\r\n                            <ul>\r\n                                <li id="chart_period_1w_v" style="display:none;" name="1w">\r\n                                    <a class="chart_str_period_1w">周线</a>\r\n                                </li>\r\n                                <li id="chart_period_3d_v" style="display:none;" name="3d">\r\n                                    <a class="chart_str_period_3d">3日</a>\r\n                                </li>\r\n                                <li id="chart_period_1d_v" style="display:none;" name="1d">\r\n                                    <a class="chart_str_period_1d">日线</a>\r\n                                </li>\r\n                                <li id="chart_period_12h_v" style="display:none;" name="12h">\r\n                                    <a class="chart_str_period_12h">12小时</a>\r\n                                </li>\r\n                                <li id="chart_period_6h_v" style="display:none;" name="6h">\r\n                                    <a class="chart_str_period_6h">6小时</a>\r\n                                </li>\r\n                                <li id="chart_period_4h_v" style="display:none;" name="4h">\r\n                                    <a class="chart_str_period_4h">4小时</a>\r\n                                </li>\r\n                                <li id="chart_period_2h_v" style="display:none;" name="2h">\r\n                                    <a class="chart_str_period_2h">2小时</a>\r\n                                </li>\r\n                                <li id="chart_period_1h_v" style="display:none;" name="1h">\r\n                                    <a class="chart_str_period_1h">1小时</a>\r\n                                </li>\r\n                            </ul>\r\n                        </td>\r\n\r\n                    </tr>\r\n\r\n                    <tr>\r\n                        <td>\r\n                            <ul>\r\n                                <li id="chart_period_30m_v" style="display:none;" name="30m">\r\n                                    <a class="chart_str_period_30m">30分钟</a>\r\n                                </li>\r\n                                <li id="chart_period_15m_v" style="display:none;" name="15m">\r\n                                    <a class="chart_str_period_15m">15分钟</a>\r\n                                </li>\r\n                                <li id="chart_period_5m_v" style="display:none;" name="5m">\r\n                                    <a class="chart_str_period_5m">5分钟</a>\r\n                                </li>\r\n                                <li id="chart_period_3m_v" style="display:none;" name="3m">\r\n                                    <a class="chart_str_period_3m">3分钟</a>\r\n                                </li>\r\n                                <li id="chart_period_1m_v" style="display:none;" name="1m">\r\n                                    <a class="chart_str_period_1m selected">1分钟</a>\r\n                                </li>\r\n                                <li id="chart_period_line_v" style="display:none;" name="line">\r\n                                    <a class="chart_str_period_line">分时</a>\r\n                                </li>\r\n                            </ul>\r\n                        </td>\r\n                    </tr>\r\n                    </tbody>\r\n                </table>\r\n            </div>\r\n        </div>\r\n        <div id="chart_toolbar_periods_horz">\r\n            <ul class="chart_toolbar_tabgroup" style="padding-left:5px; padding-right:11px;">\r\n                <li id="chart_period_1w_h" name="1w" style="display: none;">\r\n                    <a class="chart_str_period_1w">周线</a>\r\n                </li>\r\n                <li id="chart_period_3d_h" name="3d" style="display: none;">\r\n                    <a class="chart_str_period_3d">3日</a>\r\n                </li>\r\n                <li id="chart_period_1d_h" name="1d" style="display: none;">\r\n                    <a class="chart_str_period_1d">日线</a>\r\n                </li>\r\n                <li id="chart_period_12h_h" name="12h" style="display: none;">\r\n                    <a class="chart_str_period_12h">12小时</a>\r\n                </li>\r\n                <li id="chart_period_6h_h" name="6h" style="display: none;">\r\n                    <a class="chart_str_period_6h">6小时</a>\r\n                </li>\r\n                <li id="chart_period_4h_h" name="4h" style="display: none;">\r\n                    <a class="chart_str_period_4h">4小时</a>\r\n                </li>\r\n                <li id="chart_period_2h_h" name="2h" style="display: none;">\r\n                    <a class="chart_str_period_2h">2小时</a>\r\n                </li>\r\n                <li id="chart_period_1h_h" name="1h" style="display: none;">\r\n                    <a class="chart_str_period_1h">1小时</a>\r\n                </li>\r\n                <li id="chart_period_30m_h" name="30m" style="display: none;">\r\n                    <a class="chart_str_period_30m">30分钟</a>\r\n                </li>\r\n                <li id="chart_period_15m_h" name="15m" style="display: none;">\r\n                    <a class="chart_str_period_15m">15分钟</a>\r\n                </li>\r\n                <li id="chart_period_5m_h" name="5m" style="display: none;">\r\n                    <a class="chart_str_period_5m">5分钟</a>\r\n                </li>\r\n                <li id="chart_period_3m_h" name="3m" style="display: none;">\r\n                    <a class="chart_str_period_3m">3分钟</a>\r\n                </li>\r\n                <li id="chart_period_1m_h" name="1m" style="display: none;">\r\n                    <a class="chart_str_period_1m selected">1分钟</a>\r\n                </li>\r\n                <li id="chart_period_line_h" name="line" style="display: none;">\r\n                    <a class="chart_str_period_line">分时</a>\r\n                </li>\r\n            </ul>\r\n        </div>\r\n        <div id="chart_show_indicator" class="chart_toolbar_button chart_str_indicator_cap selected">技术指标</div>\r\n        <div id="chart_show_tools" class="chart_toolbar_button chart_str_tools_cap">画线工具</div>\r\n        <div id="chart_toolbar_theme">\r\n            <div class="chart_toolbar_label chart_str_theme_cap">\r\n                主题选择\r\n            </div>\r\n            <a name="dark" class="chart_icon chart_icon_theme_dark selected"></a>\r\n            <a name="light" class="chart_icon chart_icon_theme_light"></a>\r\n        </div>\r\n        <div class="chart_dropdown" id="chart_dropdown_settings">\r\n            <div class="chart_dropdown_t"><a class="chart_str_settings">更多</a></div>\r\n\r\n            <div class="chart_dropdown_data" style="margin-left: -142px;">\r\n                <table>\r\n                    <tbody>\r\n                    <tr id="chart_select_main_indicator">\r\n                        <td class="chart_str_main_indicator">主指标</td>\r\n                        <td>\r\n                            <ul>\r\n                                <li><a name="MA" class="selected">MA</a></li>\r\n                                <li><a name="EMA" class="">EMA</a></li>\r\n                                <li><a name="BOLL" class="">BOLL</a></li>\r\n                                <li><a name="SAR" class="">SAR</a></li>\r\n                                <li><a name="NONE" class="">None</a></li>\r\n                            </ul>\r\n                        </td>\r\n                    </tr>\r\n\r\n                    <tr id="chart_select_chart_style">\r\n                        <td class="chart_str_chart_style">主图样式</td>\r\n                        <td>\r\n                            <ul>\r\n                                <li><a class="selected">CandleStick</a></li>\r\n                                <li><a>CandleStickHLC</a></li>\r\n                                <li><a class="">OHLC</a></li>\r\n                            </ul>\r\n                        </td>\r\n                    </tr>\r\n\r\n                    <tr id="chart_select_theme" style="display: none;">\r\n                        <td class="chart_str_theme">主题选择</td>\r\n                        <td>\r\n                            <ul>\r\n                                <li>\r\n                                    <a name="dark" class="chart_icon chart_icon_theme_dark selected"></a>\r\n                                </li>\r\n\r\n                                <li>\r\n                                    <a name="light" class="chart_icon chart_icon_theme_light"></a>\r\n                                </li>\r\n                            </ul>\r\n                        </td>\r\n                    </tr>\r\n                    <tr id="chart_enable_tools" style="display: none;">\r\n                        <td class="chart_str_tools">画线工具</td>\r\n                        <td>\r\n                            <ul>\r\n                                <li><a name="on" class="chart_str_on">开启</a></li>\r\n                                <li><a name="off" class="chart_str_off selected">关闭</a></li>\r\n\r\n                            </ul>\r\n\r\n                        </td>\r\n                    </tr>\r\n                    <tr id="chart_enable_indicator" style="display: none;">\r\n                        <td class="chart_str_indicator">技术指标</td>\r\n                        <td>\r\n                            <ul>\r\n                                <li><a name="on" class="chart_str_on selected">开启</a></li>\r\n                                <li><a name="off" class="chart_str_off">关闭</a></li>\r\n                            </ul>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td></td>\r\n                        <td>\r\n                            <ul>\r\n                                <li>\r\n                                    <a id="chart_btn_parameter_settings" class="chart_str_indicator_parameters">指标参数设置</a>\r\n                                </li>\r\n                            </ul>\r\n                        </td>\r\n                    </tr>\r\n                    </tbody>\r\n                </table>\r\n            </div>\r\n        </div>\r\n\r\n        <div class="chart_dropdown" id="chart_language_setting_div" style="padding-left: 5px;">\r\n            <div class="chart_dropdown_t">\r\n                <a class="chart_language_setting">语言(LANG)</a>\r\n            </div>\r\n            <div class="chart_dropdown_data" style="padding-top: 15px; margin-left: -12px;">\r\n                <ul>\r\n                    <li style="height: 25px;">\r\n                        <a name="zh-cn" class="selected">简体中文(zh-CN)</a>\r\n                    </li>\r\n                    <li style="height: 25px;">\r\n                        <a name="en-us">English(en-US)</a>\r\n                    </li>\r\n                    <li style="height: 25px;">\r\n                        <a name="zh-tw">繁體中文(zh-HK)</a>\r\n                    </li>\r\n                </ul>\r\n            </div>\r\n        </div>\r\n        <div id="chart_updated_time">\r\n            <div id="sizeIcon" class="chart_BoxSize"></div>\r\n\r\n        </div>\r\n    </div>\r\n               \x3c!-- ToolPanel --\x3e\r\n    <div id="chart_toolpanel">\r\n        <div class="chart_toolpanel_separator"></div>\r\n\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_Cursor" name="Cursor"></div>\r\n            <div class="chart_toolpanel_tip chart_str_cursor">\r\n                光标\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_CrossCursor" name="CrossCursor"></div>\r\n            <div class="chart_toolpanel_tip chart_str_cross_cursor">\r\n                十字光标\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_SegLine" name="SegLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_seg_line">\r\n                线段\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_StraightLine" name="StraightLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_straight_line">\r\n                直线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_RayLine" name="RayLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_ray_line">\r\n                射线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_ArrowLine" name="ArrowLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_arrow_line">\r\n                箭头\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_HoriSegLine" name="HoriSegLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_horz_seg_line">\r\n                水平线段\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_HoriStraightLine" name="HoriStraightLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_horz_straight_line">\r\n                水平直线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_HoriRayLine" name="HoriRayLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_horz_ray_line">\r\n                水平射线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_VertiStraightLine" name="VertiStraightLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_vert_straight_line">\r\n                垂直直线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_PriceLine" name="PriceLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_price_line">\r\n                价格线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_TriParallelLine" name="TriParallelLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_tri_parallel_line">\r\n                价格通道线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_BiParallelLine" name="BiParallelLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_bi_parallel_line">\r\n                平行直线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_BiParallelRayLine" name="BiParallelRayLine"></div>\r\n            <div class="chart_toolpanel_tip chart_str_bi_parallel_ray">\r\n                平行射线\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_DrawFibRetrace" name="DrawFibRetrace"></div>\r\n            <div class="chart_toolpanel_tip chart_str_fib_retrace">\r\n                斐波纳契回调\r\n            </div>\r\n        </div>\r\n        <div class="chart_toolpanel_button">\r\n            <div class="chart_toolpanel_icon" id="chart_DrawFibFans" name="DrawFibFans"></div>\r\n            <div class="chart_toolpanel_tip chart_str_fib_fans">\r\n                斐波纳契扇形\r\n            </div>\r\n        </div>\r\n        <div style="padding-left: 3px;padding-top: 10px;">\r\n            <button style="color: red;" id="clearCanvas" title="Clear All">X</button>\r\n        </div>\r\n    </div>\r\n    <div id="chart_canvasGroup" class="temp">\r\n        <canvas class="chart_canvas" id="chart_mainCanvas" style="cursor: default;"></canvas>\r\n        <canvas class="chart_canvas" id="chart_overlayCanvas" style="cursor: default;"></canvas>\r\n    </div>\r\n    <div id="chart_tabbar">\r\n        <ul>\r\n            <li><a name="MACD" class="">MACD</a></li>\r\n\r\n            <li><a name="KDJ" class="">KDJ</a></li>\r\n\r\n            <li><a name="StochRSI" class="">StochRSI</a></li>\r\n\r\n            <li><a name="RSI" class="">RSI</a></li>\r\n\r\n            <li><a name="DMI" class="">DMI</a></li>\r\n\r\n            <li><a name="OBV" class="">OBV</a></li>\r\n\r\n            <li><a name="BOLL" class="">BOLL</a></li>\r\n\r\n            <li><a name="SAR" class="">SAR</a></li>\r\n\r\n            <li><a name="DMA" class="">DMA</a></li>\r\n\r\n            <li><a name="TRIX" class="">TRIX</a></li>\r\n\r\n            <li><a name="BRAR" class="">BRAR</a></li>\r\n\r\n            <li><a name="VR" class="">VR</a></li>\r\n\r\n            <li><a name="EMV" class="">EMV</a></li>\r\n\r\n            <li><a name="WR" class="">WR</a></li>\r\n\r\n            <li><a name="ROC" class="">ROC</a></li>\r\n\r\n            <li><a name="MTM" class="">MTM</a></li>\r\n\r\n            <li><a name="PSY">PSY</a></li>\r\n\r\n        </ul>\r\n\r\n    </div>\r\n\r\n    <div id="chart_parameter_settings">\r\n        <h2 class="chart_str_indicator_parameters">指标参数设置</h2>\r\n        <table>\r\n            <tbody>\r\n            <tr>\r\n                <th>MA</th>\r\n                <td><input name="MA"><input name="MA"><input name="MA"><input name="MA"><input\r\n                        name="MA"><input\r\n                        name="MA">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>DMA</th>\r\n                <td><input name="DMA"><input name="DMA"><input name="DMA"></td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>EMA</th>\r\n                <td>\r\n                    <input name="EMA"><input name="EMA"><input name="EMA"><input name="EMA">\r\n                    <input name="EMA"><input name="EMA">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>TRIX</th>\r\n                <td><input name="TRIX"><input name="TRIX"></td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>VOLUME</th>\r\n                <td><input name="VOLUME"><input name="VOLUME"></td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>BRAR</th>\r\n                <td><input name="BRAR"></td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>MACD</th>\r\n                <td>\r\n                    <input name="MACD"><input name="MACD"><input name="MACD">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>VR</th>\r\n                <td><input name="VR"><input name="VR"></td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>KDJ</th>\r\n                <td>\r\n                    <input name="KDJ"><input name="KDJ"><input name="KDJ">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>EMV</th>\r\n                <td>\r\n                    <input name="EMV"><input name="EMV">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>StochRSI</th>\r\n                <td>\r\n                    <input name="StochRSI"><input name="StochRSI"><input name="StochRSI"><input name="StochRSI">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>WR</th>\r\n                <td>\r\n                    <input name="WR"><input name="WR">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>RSI</th>\r\n                <td>\r\n                    <input name="RSI"><input name="RSI"><input name="RSI">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>ROC</th>\r\n                <td>\r\n                    <input name="ROC"><input name="ROC">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>DMI</th>\r\n                <td>\r\n                    <input name="DMI"><input name="DMI">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>MTM</th>\r\n                <td>\r\n                    <input name="MTM"><input name="MTM">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>OBV</th>\r\n                <td>\r\n                    <input name="OBV">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n\r\n                <th>PSY</th>\r\n                <td>\r\n                    <input name="PSY"><input name="PSY">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n\r\n            <tr>\r\n                <th>BOLL</th>\r\n                <td>\r\n                    <input name="BOLL">\r\n                </td>\r\n                <td>\r\n                    <button class="chart_str_default">默认值</button>\r\n                </td>\r\n            </tr>\r\n            </tbody>\r\n        </table>\r\n\r\n        <div id="close_settings"><a class="chart_str_close">关闭</a></div>\r\n\r\n    </div>\r\n\r\n    \x3c!-- Loading --\x3e\r\n    <div id="chart_loading" class="chart_str_loading">正在读取数据...</div>\r\n</div>\r\n\r\n<div style="display: none" id="chart_language_switch_tmp">\r\n    <span name="chart_str_period" zh_tw="週期" zh_cn="周期" en_us="TIME"></span>\r\n    <span name="chart_str_period_line" zh_tw="分時" zh_cn="分时" en_us="Line"></span>\r\n    <span name="chart_str_period_1m" zh_tw="1分鐘" zh_cn="1分钟" en_us="1m"></span>\r\n    <span name="chart_str_period_3m" zh_tw="3分鐘" zh_cn="3分钟" en_us="3m"></span>\r\n    <span name="chart_str_period_5m" zh_tw="5分鐘" zh_cn="5分钟" en_us="5m"></span>\r\n    <span name="chart_str_period_15m" zh_tw="15分鐘" zh_cn="15分钟" en_us="15m"></span>\r\n    <span name="chart_str_period_30m" zh_tw="30分鐘" zh_cn="30分钟" en_us="30m"></span>\r\n    <span name="chart_str_period_1h" zh_tw="1小時" zh_cn="1小时" en_us="1h"></span>\r\n    <span name="chart_str_period_2h" zh_tw="2小時" zh_cn="2小时" en_us="2h"></span>\r\n    <span name="chart_str_period_4h" zh_tw="4小時" zh_cn="4小时" en_us="4h"></span>\r\n    <span name="chart_str_period_6h" zh_tw="6小時" zh_cn="6小时" en_us="6h"></span>\r\n    <span name="chart_str_period_12h" zh_tw="12小時" zh_cn="12小时" en_us="12h"></span>\r\n    <span name="chart_str_period_1d" zh_tw="日線" zh_cn="日线" en_us="1d"></span>\r\n    <span name="chart_str_period_3d" zh_tw="3日" zh_cn="3日" en_us="3d"></span>\r\n    <span name="chart_str_period_1w" zh_tw="周線" zh_cn="周线" en_us="1w"></span>\r\n    <span name="chart_str_settings" zh_tw="更多" zh_cn="更多" en_us="MORE"></span>\r\n    <span name="chart_setting_main_indicator" zh_tw="均線設置" zh_cn="均线设置" en_us="Main Indicator"></span>\r\n    <span name="chart_setting_main_indicator_none" zh_tw="關閉均線" zh_cn="关闭均线" en_us="None"></span>\r\n    <span name="chart_setting_indicator_parameters" zh_tw="指標參數設置" zh_cn="指标参数设置" en_us="Indicator Parameters"></span>\r\n    <span name="chart_str_chart_style" zh_tw="主圖樣式" zh_cn="主图样式" en_us="Chart Style"></span>\r\n    <span name="chart_str_main_indicator" zh_tw="主指標" zh_cn="主指标" en_us="Main Indicator"></span>\r\n    <span name="chart_str_indicator" zh_tw="技術指標" zh_cn="技术指标" en_us="Indicator"></span>\r\n    <span name="chart_str_indicator_cap" zh_tw="技術指標" zh_cn="技术指标" en_us="INDICATOR"></span>\r\n    <span name="chart_str_tools" zh_tw="畫線工具" zh_cn="画线工具" en_us="Tools"></span>\r\n    <span name="chart_str_tools_cap" zh_tw="畫線工具" zh_cn="画线工具" en_us="TOOLS"></span>\r\n    <span name="chart_str_theme" zh_tw="主題選擇" zh_cn="主题选择" en_us="Theme"></span>\r\n    <span name="chart_str_theme_cap" zh_tw="主題選擇" zh_cn="主题选择" en_us="THEME"></span>\r\n    <span name="chart_language_setting" zh_tw="語言(LANG)" zh_cn="语言(LANG)" en_us="LANGUAGE"></span>\r\n    <span name="chart_exchanges_setting" zh_tw="更多市場" zh_cn="更多市场" en_us="MORE MARKETS"></span>\r\n    <span name="chart_othercoin_setting" zh_tw="其它市場" zh_cn="其它市场" en_us="OTHER MARKETS"></span>\r\n\r\n    <span name="chart_str_none" zh_tw="關閉" zh_cn="关闭" en_us="None"></span>\r\n    <span name="chart_str_theme_dark" zh_tw="深色主題" zh_cn="深色主题" en_us="Dark"></span>\r\n    <span name="chart_str_theme_light" zh_tw="淺色主題" zh_cn="浅色主题" en_us="Light"></span>\r\n    <span name="chart_str_on" zh_tw="開啟" zh_cn="开启" en_us="On"></span>\r\n    <span name="chart_str_off" zh_tw="關閉" zh_cn="关闭" en_us="Off"></span>\r\n    <span name="chart_str_close" zh_tw="關閉" zh_cn="关闭" en_us="CLOSE"></span>\r\n    <span name="chart_str_default" zh_tw="默認值" zh_cn="默认值" en_us="default"></span>\r\n    <span name="chart_str_loading" zh_tw="正在讀取數據..." zh_cn="正在读取数据..." en_us="Loading..."></span>\r\n    <span name="chart_str_indicator_parameters" zh_tw="指標參數設置" zh_cn="指标参数设置" en_us="Indicator Parameters"></span>\r\n    <span name="chart_str_cursor" zh_tw="光標" zh_cn="光标" en_us="Cursor"></span>\r\n    <span name="chart_str_cross_cursor" zh_tw="十字光標" zh_cn="十字光标" en_us="Cross Cursor"></span>\r\n    <span name="chart_str_seg_line" zh_tw="線段" zh_cn="线段" en_us="Trend Line"></span>\r\n    <span name="chart_str_straight_line" zh_tw="直線" zh_cn="直线" en_us="Extended"></span>\r\n    <span name="chart_str_ray_line" zh_tw="射線" zh_cn="射线" en_us="Ray"></span>\r\n    <span name="chart_str_arrow_line" zh_tw="箭頭" zh_cn="箭头" en_us="Arrow"></span>\r\n    <span name="chart_str_horz_seg_line" zh_tw="水平線段" zh_cn="水平线段" en_us="Horizontal Line"></span>\r\n    <span name="chart_str_horz_straight_line" zh_tw="水平直線" zh_cn="水平直线" en_us="Horizontal Extended"></span>\r\n    <span name="chart_str_horz_ray_line" zh_tw="水平射線" zh_cn="水平射线" en_us="Horizontal Ray"></span>\r\n    <span name="chart_str_vert_straight_line" zh_tw="垂直直線" zh_cn="垂直直线" en_us="Vertical Extended"></span>\r\n    <span name="chart_str_price_line" zh_tw="價格線" zh_cn="价格线" en_us="Price Line"></span>\r\n    <span name="chart_str_tri_parallel_line" zh_tw="價格通道線" zh_cn="价格通道线" en_us="Parallel Channel"></span>\r\n    <span name="chart_str_bi_parallel_line" zh_tw="平行直線" zh_cn="平行直线" en_us="Parallel Lines"></span>\r\n    <span name="chart_str_bi_parallel_ray" zh_tw="平行射線" zh_cn="平行射线" en_us="Parallel Rays"></span>\r\n    <span name="chart_str_fib_retrace" zh_tw="斐波納契回調" zh_cn="斐波纳契回调" en_us="Fibonacci Retracements"></span>\r\n    <span name="chart_str_fib_fans" zh_tw="斐波納契扇形" zh_cn="斐波纳契扇形" en_us="Fibonacci Fans"></span>\r\n    <span name="chart_str_updated" zh_tw="更新於" zh_cn="更新于" en_us="Updated"></span>\r\n    <span name="chart_str_ago" zh_tw="前" zh_cn="前" en_us="ago"></span>\r\n</div>\r\n'}])});