1 line
453 KiB
JavaScript
1 line
453 KiB
JavaScript
!function(_){var $,C;!function(){function _(_,$){if(!$)return _;if(0===_.indexOf(".")){var G=$.split("/"),E=_.split("/"),B=G.length-1,A=E.length,D=0,C=0;$:for(var F=0;A>F;F++)switch(E[F]){case"..":if(!(B>D))break $;D++,C++;break;case".":C++;break;default:break $}return G.length=B-D,E=E.slice(C),G.concat(E).join("/")}return _}function E($){function D(F,E){if("string"==typeof F){var D=C[F];return D||(D=A(_(F,$)),C[F]=D),D}F instanceof Array&&(E=E||function(){},E.apply(this,B(F,E,$)))}var C={};return D}function B(K,H,E){for(var G=[],J=D[E],I=0,B=Math.min(K.length,H.length);B>I;I++){var C,F=_(K[I],E);switch(F){case"require":C=J&&J.require||$;break;case"exports":C=J.exports;break;case"module":C=J;break;default:C=A(F)}G.push(C)}return G}function A(_){var $=D[_];if(!$)throw new Error("No "+_);if(!$.defined){var C=$.factory,A=C.apply(this,B($.deps||[],C,_));"undefined"!=typeof A&&($.exports=A),$.defined=1}return $.exports}var D={};C=function(_,$,A){D[_]={id:_,deps:$,factory:A,defined:0,exports:{},require:E(_)}},$=E("")}(),C("echarts/echarts",["require","./config","zrender/tool/util","zrender/tool/event","zrender/tool/env","zrender","zrender/config","./chart/island","./component/toolbox","./component","./component/title","./component/tooltip","./component/legend","./util/ecData","./chart","zrender/tool/color","./component/timeline","zrender/shape/Image","zrender/loadingEffect/Bar","zrender/loadingEffect/Bubble","zrender/loadingEffect/DynamicLine","zrender/loadingEffect/Ring","zrender/loadingEffect/Spin","zrender/loadingEffect/Whirling","./theme/macarons","./theme/infographic"],function(I){function _(){C.Dispatcher.call(this)}function G($){$.innerHTML="",this._themeConfig={},this.dom=$,this._connected=!1,this._status={dragIn:!1,dragOut:!1,needRefresh:!1},this._curEventType=!1,this._chartList=[],this._messageCenter=new _,this._messageCenterOutSide=new _,this.resize=this.resize(),this._init()}function D(_,$,F,E,B){for(var A=_._chartList,D=A.length;D--;){var C=A[D];"function"==typeof C[$]&&C[$](F,E,B)}}var K=I("./config"),J=I("zrender/tool/util"),C=I("zrender/tool/event"),B={},F=I("zrender/tool/env").canvasSupported,E=new Date-0,$={},A="_echarts_instance_";B.version="2.2.7",B.dependencies={zrender:"2.1.1"},B.init=function(_,H){var D=I("zrender");D.version.replace(".","")-0<B.dependencies.zrender.replace(".","")-0&&console.error("ZRender "+D.version+" is too old for ECharts "+B.version+". Current version need ZRender "+B.dependencies.zrender+"+"),_=_ instanceof Array?_[0]:_;var C=_.getAttribute(A);return C||(C=E++,_.setAttribute(A,C)),$[C]&&$[C].dispose(),$[C]=new G(_),$[C].id=C,$[C].canvasSupported=F,$[C].setTheme(H),$[C]},B.getInstanceById=function(_){return $[_]},J.merge(_.prototype,C.Dispatcher.prototype,!0);var L=I("zrender/config").EVENT,H=["CLICK","DBLCLICK","MOUSEOVER","MOUSEOUT","DRAGSTART","DRAGEND","DRAGENTER","DRAGOVER","DRAGLEAVE","DROP"];return G.prototype={_init:function(){var A=this,M=I("zrender").init(this.dom);this._zr=M,this._messageCenter.dispatch=function($,C,B,_){B=B||{},B.type=$,B.event=C,A._messageCenter.dispatchWithContext($,B,_),A._messageCenterOutSide.dispatchWithContext($,B,_)},this._onevent=function($){return A.__onevent($)};for(var F in K.EVENT)"CLICK"!=F&&"DBLCLICK"!=F&&"HOVER"!=F&&"MOUSEOUT"!=F&&"MAP_ROAM"!=F&&this._messageCenter.bind(K.EVENT[F],this._onevent,this);var B={};this._onzrevent=function($){return A[B[$.type]]($)};for(var E=0,D=H.length;D>E;E++){var J=H[E],G=L[J];B[G]="_on"+J.toLowerCase(),M.on(G,this._onzrevent)}this.chart={},this.component={};var _=I("./chart/island");this._island=new _(this._themeConfig,this._messageCenter,M,{},this),this.chart.island=this._island;var C=I("./component/toolbox");this._toolbox=new C(this._themeConfig,this._messageCenter,M,{},this),this.component.toolbox=this._toolbox;var $=I("./component");$.define("title",I("./component/title")),$.define("tooltip",I("./component/tooltip")),$.define("legend",I("./component/legend")),(0===M.getWidth()||0===M.getHeight())&&console.error("Dom\u2019s width & height should be ready before init.")},__onevent:function(_){_.__echartsId=_.__echartsId||this.id;var $=_.__echartsId===this.id;switch(this._curEventType||(this._curEventType=_.type),_.type){case K.EVENT.LEGEND_SELECTED:this._onlegendSelected(_);break;case K.EVENT.DATA_ZOOM:if(!$){var D=this.component.dataZoom;D&&(D.silence(!0),D.absoluteZoom(_.zoom),D.silence(!1))}this._ondataZoom(_);break;case K.EVENT.DATA_RANGE:$&&this._ondataRange(_);break;case K.EVENT.MAGIC_TYPE_CHANGED:if(!$){var C=this.component.toolbox;C&&(C.silence(!0),C.setMagicType(_.magicType),C.silence(!1))}this._onmagicTypeChanged(_);break;case K.EVENT.DATA_VIEW_CHANGED:$&&this._ondataViewChanged(_);break;case K.EVENT.TOOLTIP_HOVER:$&&this._tooltipHover(_);break;case K.EVENT.RESTORE:this._onrestore();break;case K.EVENT.REFRESH:$&&this._onrefresh(_);break;case K.EVENT.TOOLTIP_IN_GRID:case K.EVENT.TOOLTIP_OUT_GRID:if($){if(this._connected){var A=this.component.grid;A&&(_.x=(_.event.zrenderX-A.getX())/A.getWidth(),_.y=(_.event.zrenderY-A.getY())/A.getHeight())}}else{A=this.component.grid;A&&this._zr.trigger("mousemove",{connectTrigger:!0,zrenderX:A.getX()+_.x*A.getWidth(),zrenderY:A.getY()+_.y*A.getHeight()})}}if(this._connected&&$&&this._curEventType===_.type){for(var B in this._connected)this._connected[B].connectedEventHandler(_);this._curEventType=null}(!$||!this._connected&&$)&&(this._curEventType=null)},_onclick:function(_){if(D(this,"onclick",_),_.target){var $=this._eventPackage(_.target);$&&null!=$.seriesIndex&&this._messageCenter.dispatch(K.EVENT.CLICK,_.event,$,this)}},_ondblclick:function(_){if(D(this,"ondblclick",_),_.target){var $=this._eventPackage(_.target);$&&null!=$.seriesIndex&&this._messageCenter.dispatch(K.EVENT.DBLCLICK,_.event,$,this)}},_onmouseover:function(_){if(_.target){var $=this._eventPackage(_.target);$&&null!=$.seriesIndex&&this._messageCenter.dispatch(K.EVENT.HOVER,_.event,$,this)}},_onmouseout:function(_){if(_.target){var $=this._eventPackage(_.target);$&&null!=$.seriesIndex&&this._messageCenter.dispatch(K.EVENT.MOUSEOUT,_.event,$,this)}},_ondragstart:function($){this._status={dragIn:!1,dragOut:!1,needRefresh:!1},D(this,"ondragstart",$)},_ondragenter:function($){D(this,"ondragenter",$)},_ondragover:function($){D(this,"ondragover",$)},_ondragleave:function($){D(this,"ondragleave",$)},_ondrop:function($){D(this,"ondrop",$,this._status),this._island.ondrop($,this._status)},_ondragend:function(_){if(D(this,"ondragend",_,this._status),this._timeline&&this._timeline.ondragend(_,this._status),this._island.ondragend(_,this._status),this._status.needRefresh){this._syncBackupData(this._option);var $=this._messageCenter;$.dispatch(K.EVENT.DATA_CHANGED,_.event,this._eventPackage(_.target),this),$.dispatch(K.EVENT.REFRESH,null,null,this)}},_onlegendSelected:function($){this._status.needRefresh=!1,D(this,"onlegendSelected",$,this._status),this._status.needRefresh&&this._messageCenter.dispatch(K.EVENT.REFRESH,null,null,this)},_ondataZoom:function($){this._status.needRefresh=!1,D(this,"ondataZoom",$,this._status),this._status.needRefresh&&this._messageCenter.dispatch(K.EVENT.REFRESH,null,null,this)},_ondataRange:function($){this._clearEffect(),this._status.needRefresh=!1,D(this,"ondataRange",$,this._status),this._status.needRefresh&&this._zr.refreshNextFrame()},_onmagicTypeChanged:function(){this._clearEffect(),this._render(this._toolbox.getMagicOption())},_ondataViewChanged:function($){this._syncBackupData($.option),this._messageCenter.dispatch(K.EVENT.DATA_CHANGED,null,$,this),this._messageCenter.dispatch(K.EVENT.REFRESH,null,null,this)},_tooltipHover:function(_){var $=[];D(this,"ontooltipHover",_,$)},_onrestore:function(){this.restore()},_onrefresh:function($){this._refreshInside=!0,this.refresh($),this._refreshInside=!1},_syncBackupData:function($){this.component.dataZoom&&this.component.dataZoom.syncBackupData($)},_eventPackage:function($){if($){var B=I("./util/ecData"),A=B.get($,"seriesIndex"),_=B.get($,"dataIndex");return _=-1!=A&&this.component.dataZoom?this.component.dataZoom.getRealDataIndex(A,_):_,{seriesIndex:A,seriesName:(B.get($,"series")||{}).name,dataIndex:_,data:B.get($,"data"),name:B.get($,"name"),value:B.get($,"value"),special:B.get($,"special")}}},_noDataCheck:function(_){for(var $=_.series,C=0,B=$.length;B>C;C++)if($[C].type==K.CHART_TYPE_MAP||$[C].data&&$[C].data.length>0||$[C].markPoint&&$[C].markPoint.data&&$[C].markPoint.data.length>0||$[C].markLine&&$[C].markLine.data&&$[C].markLine.data.length>0||$[C].nodes&&$[C].nodes.length>0||$[C].links&&$[C].links.length>0||$[C].matrix&&$[C].matrix.length>0||$[C].eventList&&$[C].eventList.length>0)return!1;var A=this._option&&this._option.noDataLoadingOption||this._themeConfig.noDataLoadingOption||K.noDataLoadingOption||{text:this._option&&this._option.noDataText||this._themeConfig.noDataText||K.noDataText,effect:this._option&&this._option.noDataEffect||this._themeConfig.noDataEffect||K.noDataEffect};return this.clear(),this.showLoading(A),!0},_render:function(B){if(this._mergeGlobalConifg(B),!this._noDataCheck(B)){var L=B.backgroundColor;if(L)if(F||-1==L.indexOf("rgba"))this.dom.style.backgroundColor=L;else{var G=L.split(",");this.dom.style.filter="alpha(opacity="+100*G[3].substring(0,G[3].lastIndexOf(")"))+")",G.length=3,G[0]=G[0].replace("a",""),this.dom.style.backgroundColor=G.join(",")+")"}this._zr.clearAnimation(),this._chartList=[];var O=I("./chart"),E=I("./component");(B.xAxis||B.yAxis)&&(B.grid=B.grid||{},B.dataZoom=B.dataZoom||{});for(var D,H,A,C=["title","legend","tooltip","dataRange","roamController","grid","dataZoom","xAxis","yAxis","polar"],P=0,N=C.length;N>P;P++)H=C[P],A=this.component[H],B[H]?(A?A.refresh&&A.refresh(B):(D=E.get(/^[xy]Axis$/.test(H)?"axis":H),A=new D(this._themeConfig,this._messageCenter,this._zr,B,this,H),this.component[H]=A),this._chartList.push(A)):A&&(A.dispose(),this.component[H]=null,delete this.component[H]);for(var _,$,J,Q={},P=0,N=B.series.length;N>P;P++)$=B.series[P].type,$?Q[$]||(Q[$]=!0,_=O.get($),_?(this.chart[$]?(J=this.chart[$],J.refresh(B)):J=new _(this._themeConfig,this._messageCenter,this._zr,B,this),this._chartList.push(J),this.chart[$]=J):console.error($+" has not been required.")):console.error("series["+P+"] chart type has not been defined.");for($ in this.chart)$==K.CHART_TYPE_ISLAND||Q[$]||(this.chart[$].dispose(),this.chart[$]=null,delete this.chart[$]);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._island.refresh(B),this._toolbox.refresh(B),B.animation&&!B.renderAsImage?this._zr.refresh():this._zr.render();var R="IMG"+this.id,M=document.getElementById(R);B.renderAsImage&&F?(M?M.src=this.getDataURL(B.renderAsImage):(M=this.getImage(B.renderAsImage),M.id=R,M.style.position="absolute",M.style.left=0,M.style.top=0,this.dom.firstChild.appendChild(M)),this.un(),this._zr.un(),this._disposeChartList(),this._zr.clear()):M&&M.parentNode.removeChild(M),M=null,this._option=B}},restore:function(){this._clearEffect(),this._option=J.clone(this._optionRestore),this._disposeChartList(),this._island.clear(),this._toolbox.reset(this._option,!0),this._render(this._option)},refresh:function(_){this._clearEffect(),_=_||{};var $=_.option;!this._refreshInside&&$&&($=this.getOption(),J.merge($,_.option,!0),J.merge(this._optionRestore,_.option,!0),this._toolbox.reset($)),this._island.refresh($),this._toolbox.refresh($),this._zr.clearAnimation();for(var B=0,A=this._chartList.length;A>B;B++)this._chartList[B].refresh&&this._chartList[B].refresh($);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._zr.refresh()},_disposeChartList:function(){this._clearEffect(),this._zr.clearAnimation();for(var _=this._chartList.length;_--;){var $=this._chartList[_];if($){var A=$.type;this.chart[A]&&delete this.chart[A],this.component[A]&&delete this.component[A],$.dispose&&$.dispose()}}this._chartList=[]},_mergeGlobalConifg:function($){for(var C=["backgroundColor","calculable","calculableColor","calculableHolderColor","nameConnector","valueConnector","animation","animationThreshold","animationDuration","animationDurationUpdate","animationEasing","addDataAnimation","symbolList","DRAG_ENABLE_TIME"],B=C.length;B--;){var _=C[B];null==$[_]&&($[_]=null!=this._themeConfig[_]?this._themeConfig[_]:K[_])}var A=$.color;A&&A.length||(A=this._themeConfig.color||K.color),this._zr.getColor=function($){var _=I("zrender/tool/color");return _.getColor($,A)},F||($.animation=!1,$.addDataAnimation=!1)},setOption:function(_,$){return _.timeline?this._setTimelineOption(_):this._setOption(_,$)},_setOption:function(_,$,A){return!$&&this._option?this._option=J.merge(this.getOption(),J.clone(_),!0):(this._option=J.clone(_),!A&&this._timeline&&this._timeline.dispose()),this._optionRestore=J.clone(this._option),this._option.series&&0!==this._option.series.length?(this.component.dataZoom&&(this._option.dataZoom||this._option.toolbox&&this._option.toolbox.feature&&this._option.toolbox.feature.dataZoom&&this._option.toolbox.feature.dataZoom.show)&&this.component.dataZoom.syncOption(this._option),this._toolbox.reset(this._option),this._render(this._option),this):void this._zr.clear()},getOption:function(){function $($){var C=A._optionRestore[$];if(C)if(C instanceof Array){for(var B=C.length;B--;)_[$][B].data=J.clone(C[B].data)}else _[$].data=J.clone(C.data)}var _=J.clone(this._option),A=this;return $("xAxis"),$("yAxis"),$("series"),_},setSeries:function(_,$){return $?(this._option.series=_,this.setOption(this._option,$)):this.setOption({series:_}),this},getSeries:function(){return this.getOption().series},_setTimelineOption:function($){this._timeline&&this._timeline.dispose();var A=I("./component/timeline"),_=new A(this._themeConfig,this._messageCenter,this._zr,$,this);return this._timeline=_,this.component.timeline=this._timeline,this},addData:function(W,H,S,O,N){function M(){if(L._zr){L._zr.clearAnimation();for(var A=0,$=_.length;$>A;A++)_[A].motionlessOnce=P.addDataAnimation&&_[A].addDataAnimation;L._messageCenter.dispatch(K.EVENT.REFRESH,null,{option:P},L)}}for(var R=W instanceof Array?W:[[W,H,S,O,N]],P=this.getOption(),G=this._optionRestore,L=this,X=0,V=R.length;V>X;X++){W=R[X][0],H=R[X][1],S=R[X][2],O=R[X][3],N=R[X][4];var F=G.series[W],E=S?"unshift":"push",Q=S?"pop":"shift";if(F){var D=F.data,Z=P.series[W].data;if(D[E](H),Z[E](H),O||(D[Q](),H=Z[Q]()),null!=N){var U,a;if(F.type===K.CHART_TYPE_PIE&&(U=G.legend)&&(a=U.data)){var I=P.legend.data;if(a[E](N),I[E](N),!O){var C=J.indexOf(a,H.name);-1!=C&&a.splice(C,1),C=J.indexOf(I,H.name),-1!=C&&I.splice(C,1)}}else if(null!=G.xAxis&&null!=G.yAxis){var B,Y,$=F.xAxisIndex||0;(null==G.xAxis[$].type||"category"===G.xAxis[$].type)&&(B=G.xAxis[$].data,Y=P.xAxis[$].data,B[E](N),Y[E](N),O||(B[Q](),Y[Q]())),$=F.yAxisIndex||0,"category"===G.yAxis[$].type&&(B=G.yAxis[$].data,Y=P.yAxis[$].data,B[E](N),Y[E](N),O||(B[Q](),Y[Q]()))}}this._option.series[W].data=P.series[W].data}}this._zr.clearAnimation();for(var _=this._chartList,T=0,A=function(){T--,0===T&&M()},X=0,V=_.length;V>X;X++)P.addDataAnimation&&_[X].addDataAnimation&&(T++,_[X].addDataAnimation(R,A));return this.component.dataZoom&&this.component.dataZoom.syncOption(P),this._option=P,P.addDataAnimation||setTimeout(M,0),this},addMarkPoint:function(_,$){return this._addMark(_,$,"markPoint")},addMarkLine:function(_,$){return this._addMark(_,$,"markLine")},_addMark:function(A,_,I){var F,C=this._option.series;if(C&&(F=C[A])){var E=this._optionRestore.series,D=E[A],H=F[I],G=D[I];H=F[I]=H||{data:[]},G=D[I]=G||{data:[]};for(var $ in _)"data"===$?(H.data=H.data.concat(_.data),G.data=G.data.concat(_.data)):"object"!=typeof _[$]||null==H[$]?H[$]=G[$]=_[$]:(J.merge(H[$],_[$],!0),J.merge(G[$],_[$],!0));var B=this.chart[F.type];B&&B.addMark(A,_,I)}return this},delMarkPoint:function(_,$){return this._delMark(_,$,"markPoint")},delMarkLine:function(_,$){return this._delMark(_,$,"markLine")},_delMark:function(H,_,G){var D,J,I,C=this._option.series;if(!(C&&(D=C[H])&&(J=D[G])&&(I=J.data)))return this;_=_.split(" > ");for(var B=-1,F=0,E=I.length;E>F;F++){var $=I[F];if($ instanceof Array){if($[0].name===_[0]&&$[1].name===_[1]){B=F;break}}else if($.name===_[0]){B=F;break}}if(B>-1){I.splice(B,1),this._optionRestore.series[H][G].data.splice(B,1);var A=this.chart[D.type];A&&A.delMark(H,_.join(" > "),G)}return this},getDom:function(){return this.dom},getZrender:function(){return this._zr},getDataURL:function(_){if(!F)return"";if(0===this._chartList.length){var $="IMG"+this.id,C=document.getElementById($);if(C)return C.src}var B=this.component.tooltip;switch(B&&B.hideTip(),_){case"jpeg":break;default:_="png"}var A=this._option.backgroundColor;return A&&"rgba(0,0,0,0)"===A.replace(" ","")&&(A="#fff"),this._zr.toDataURL("image/"+_,A)},getImage:function(_){var $=this._optionRestore.title,A=document.createElement("img");return A.src=this.getDataURL(_),A.title=$&&$.text||"ECharts",A},getConnectedDataURL:function(_){if(!this.isConnected())return this.getDataURL(_);var G=this.dom,D={self:{img:this.getDataURL(_),left:G.offsetLeft,top:G.offsetTop,right:G.offsetLeft+G.offsetWidth,bottom:G.offsetTop+G.offsetHeight}},K=D.self.left,J=D.self.top,C=D.self.right,B=D.self.bottom;for(var F in this._connected)G=this._connected[F].getDom(),D[F]={img:this._connected[F].getDataURL(_),left:G.offsetLeft,top:G.offsetTop,right:G.offsetLeft+G.offsetWidth,bottom:G.offsetTop+G.offsetHeight},K=Math.min(K,D[F].left),J=Math.min(J,D[F].top),C=Math.max(C,D[F].right),B=Math.max(B,D[F].bottom);var E=document.createElement("div");E.style.position="absolute",E.style.left="-4000px",E.style.width=C-K+"px",E.style.height=B-J+"px",document.body.appendChild(E);var $=I("zrender").init(E),A=I("zrender/shape/Image");for(F in D)$.addShape(new A({style:{x:D[F].left-K,y:D[F].top-J,image:D[F].img}}));$.render();var L=this._option.backgroundColor;L&&"rgba(0,0,0,0)"===L.replace(/ /g,"")&&(L="#fff");var H=$.toDataURL("image/png",L);return setTimeout(function(){$.dispose(),E.parentNode.removeChild(E),E=null},100),H},getConnectedImage:function(_){var $=this._optionRestore.title,A=document.createElement("img");return A.src=this.getConnectedDataURL(_),A.title=$&&$.text||"ECharts",A},on:function(_,$){return this._messageCenterOutSide.bind(_,$,this),this},un:function(_,$){return this._messageCenterOutSide.unbind(_,$),this},connect:function(_){if(!_)return this;if(this._connected||(this._connected={}),_ instanceof Array){for(var $=0,A=_.length;A>$;$++)this._connected[_[$].id]=_[$]}else this._connected[_.id]=_;return this},disConnect:function(_){if(!_||!this._connected)return this;if(_ instanceof Array){for(var $=0,B=_.length;B>$;$++)delete this._connected[_[$].id]}else delete this._connected[_.id];for(var A in this._connected)return this;return this._connected=!1,this},connectedEventHandler:function($){$.__echartsId!=this.id&&this._onevent($)},isConnected:function(){return!!this._connected},showLoading:function($){var C={bar:I("zrender/loadingEffect/Bar"),bubble:I("zrender/loadingEffect/Bubble"),dynamicLine:I("zrender/loadingEffect/DynamicLine"),ring:I("zrender/loadingEffect/Ring"),spin:I("zrender/loadingEffect/Spin"),whirling:I("zrender/loadingEffect/Whirling")};this._toolbox.hideDataView(),$=$||{};var B=$.textStyle||{};$.textStyle=B;var A=J.merge(J.merge(J.clone(B),this._themeConfig.textStyle),K.textStyle);B.textFont=A.fontStyle+" "+A.fontWeight+" "+A.fontSize+"px "+A.fontFamily,B.text=$.text||this._option&&this._option.loadingText||this._themeConfig.loadingText||K.loadingText,null!=$.x&&(B.x=$.x),null!=$.y&&(B.y=$.y),$.effectOption=$.effectOption||{},$.effectOption.textStyle=B;var _=$.effect;return("string"==typeof _||null==_)&&(_=C[$.effect||this._option&&this._option.loadingEffect||this._themeConfig.loadingEffect||K.loadingEffect]||C.spin),this._zr.showLoading(new _($.effectOption)),this},hideLoading:function(){return this._zr.hideLoading(),this},setTheme:function($){if($){if("string"==typeof $)switch($){case"macarons":$=I("./theme/macarons");break;case"infographic":$=I("./theme/infographic");break;default:$={}}else $=$||{};this._themeConfig=$}if(!F){var _=this._themeConfig.textStyle;_&&_.fontFamily&&_.fontFamily2&&(_.fontFamily=_.fontFamily2),_=K.textStyle,_.fontFamily=_.fontFamily2}this._timeline&&this._timeline.setTheme(!0),this._optionRestore&&this.restore()},resize:function(){var $=this;return function(){if($._clearEffect(),$._zr.resize(),$._option&&$._option.renderAsImage&&F)return $._render($._option),$;$._zr.clearAnimation(),$._island.resize(),$._toolbox.resize(),$._timeline&&$._timeline.resize();for(var _=0,A=$._chartList.length;A>_;_++)$._chartList[_].resize&&$._chartList[_].resize();return $.component.grid&&$.component.grid.refixAxisShape($.component),$._zr.refresh(),$._messageCenter.dispatch(K.EVENT.RESIZE,null,null,$),$}},_clearEffect:function(){this._zr.modLayer(K.EFFECT_ZLEVEL,{motionBlur:!1}),this._zr.painter.clearLayer(K.EFFECT_ZLEVEL)},clear:function(){return this._disposeChartList(),this._zr.clear(),this._option={},this._optionRestore={},this.dom.style.backgroundColor=null,this},dispose:function(){var _=this.dom.getAttribute(A);_&&delete $[_],this._island.dispose(),this._toolbox.dispose(),this._timeline&&this._timeline.dispose(),this._messageCenter.unbind(),this.clear(),this._zr.dispose(),this._zr=null}},B}),C("echarts/chart/radar",["require","./base","zrender/shape/Polygon","../component/polar","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../util/accMath","../chart"],function(_){function $(_,$,C,B,A){F.call(this,_,$,C,B,A),this.refresh(B)}var F=_("./base"),E=_("zrender/shape/Polygon");_("../component/polar");var B=_("../config");B.radar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,polarIndex:0,itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid"}},emphasis:{label:{show:!1}}},symbolSize:2};var A=_("../util/ecData"),D=_("zrender/tool/util"),C=_("zrender/tool/color");return $.prototype={type:B.CHART_TYPE_RADAR,_buildShape:function(){this.selectedMap={},this._symbol=this.option.symbolList,this._queryTarget,this._dropBoxList=[],this._radarDataCounter=0;for(var _,$=this.series,D=this.component.legend,C=0,A=$.length;A>C;C++)$[C].type===B.CHART_TYPE_RADAR&&(this.serie=this.reformOption($[C]),this.legendHoverLink=$[C].legendHoverLink||this.legendHoverLink,_=this.serie.name||"",this.selectedMap[_]=D?D.isSelected(_):!0,this.selectedMap[_]&&(this._queryTarget=[this.serie,this.option],this.deepQuery(this._queryTarget,"calculable")&&this._addDropBox(C),this._buildSingleRadar(C),this.buildMark(C)));this.addShapeList()},_buildSingleRadar:function(_){for(var $,G,E,B,A=this.component.legend,D=this.serie.data,C=this.deepQuery(this._queryTarget,"calculable"),F=0;F<D.length;F++)E=D[F].name||"",this.selectedMap[E]=A?A.isSelected(E):!0,this.selectedMap[E]&&(A?(G=A.getColor(E),$=A.getItemShape(E),$&&($.style.brushType=this.deepQuery([D[F],this.serie],"itemStyle.normal.areaStyle")?"both":"stroke",A.setItemShape(E,$))):G=this.zr.getColor(F),B=this._getPointList(this.serie.polarIndex,D[F]),this._addSymbol(B,G,F,_,this.serie.polarIndex),this._addDataShape(B,G,D[F],_,F,C),this._radarDataCounter++)},_getPointList:function(_,$){for(var F,E,B=[],A=this.component.polar,D=0,C=$.value.length;C>D;D++)E=this.getDataFromOption($.value[D]),F="-"!=E?A.getVector(_,D,E):!1,F&&B.push(F);return B},_addSymbol:function(B,_,I,F,C){for(var E,D=this.series,H=this.component.polar,G=0,$=B.length;$>G;G++)E=this.getSymbolShape(this.deepMerge([D[F].data[I],D[F]]),F,D[F].data[I].value[G],G,H.getIndicatorText(C,G),B[G][0],B[G][1],this._symbol[this._radarDataCounter%this._symbol.length],_,"#fff","vertical"),E.zlevel=this.getZlevelBase(),E.z=this.getZBase()+1,A.set(E,"data",D[F].data[I]),A.set(E,"value",D[F].data[I].value),A.set(E,"dataIndex",I),A.set(E,"special",G),this.shapeList.push(E)},_addDataShape:function(G,F,O,I,K,N){var L=this.series,D=[O,this.serie],H=this.getItemStyleColor(this.deepQuery(D,"itemStyle.normal.color"),I,K,O),J=this.deepQuery(D,"itemStyle.normal.lineStyle.width"),B=this.deepQuery(D,"itemStyle.normal.lineStyle.type"),_=this.deepQuery(D,"itemStyle.normal.areaStyle.color"),$=this.deepQuery(D,"itemStyle.normal.areaStyle"),M={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:G,brushType:$?"both":"stroke",color:_||H||("string"==typeof F?C.alpha(F,0.5):F),strokeColor:H||F,lineWidth:J,lineType:B},highlightStyle:{brushType:this.deepQuery(D,"itemStyle.emphasis.areaStyle")||$?"both":"stroke",color:this.deepQuery(D,"itemStyle.emphasis.areaStyle.color")||_||H||("string"==typeof F?C.alpha(F,0.5):F),strokeColor:this.getItemStyleColor(this.deepQuery(D,"itemStyle.emphasis.color"),I,K,O)||H||F,lineWidth:this.deepQuery(D,"itemStyle.emphasis.lineStyle.width")||J,lineType:this.deepQuery(D,"itemStyle.emphasis.lineStyle.type")||B}};A.pack(M,L[I],I,O,K,O.name,this.component.polar.getIndicator(L[I].polarIndex)),N&&(M.draggable=!0,this.setCalculable(M)),M=new E(M),this.shapeList.push(M)},_addDropBox:function(_){var $=this.series,C=this.deepQuery(this._queryTarget,"polarIndex");if(!this._dropBoxList[C]){var B=this.component.polar.getDropBox(C);B.zlevel=this.getZlevelBase(),B.z=this.getZBase(),this.setCalculable(B),A.pack(B,$,_,void 0,-1),this.shapeList.push(B),this._dropBoxList[C]=!0}},ondragend:function(_,$){var E=this.series;if(this.isDragend&&_.target){var D=_.target,B=A.get(D,"seriesIndex"),C=A.get(D,"dataIndex");this.component.legend&&this.component.legend.del(E[B].data[C].name),E[B].data.splice(C,1),$.dragOut=!0,$.needRefresh=!0,this.isDragend=!1}},ondrop:function(B,I){var F=this.series;if(this.isDrop&&B.target){var K,E,D=B.target,H=B.dragged,G=A.get(D,"seriesIndex"),$=A.get(D,"dataIndex"),C=this.component.legend;if(-1===$)K={value:A.get(H,"value"),name:A.get(H,"name")},F[G].data.push(K),C&&C.add(K.name,H.style.color||H.style.strokeColor);else{var L=_("../util/accMath");K=F[G].data[$],C&&C.del(K.name),K.name+=this.option.nameConnector+A.get(H,"name"),E=A.get(H,"value");for(var J=0;J<E.length;J++)K.value[J]=L.accAdd(K.value[J],E[J]);C&&C.add(K.name,H.style.color||H.style.strokeColor)}I.dragIn=I.dragIn||!0,this.isDrop=!1}},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()}},D.inherits($,F),_("../chart").define("radar",$),$}),C("echarts/chart/scatter",["require","./base","../util/shape/Symbol","../component/axis","../component/grid","../component/dataZoom","../component/dataRange","../config","zrender/tool/util","zrender/tool/color","../chart"],function(_){function $(_,$,C,B,A){E.call(this,_,$,C,B,A),this.refresh(B)}var E=_("./base"),D=_("../util/shape/Symbol");_("../component/axis"),_("../component/grid"),_("../component/dataZoom"),_("../component/dataRange");var B=_("../config");B.scatter={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbolSize:4,large:!1,largeThreshold:2000,itemStyle:{normal:{label:{show:!1}},emphasis:{label:{show:!1}}}};var A=_("zrender/tool/util"),C=_("zrender/tool/color");return $.prototype={type:B.CHART_TYPE_SCATTER,_buildShape:function(){var A=this.series;this._sIndex2ColorMap={},this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this.selectedMap={},this.xMarkMap={};for(var _,I,F,D,E=this.component.legend,H=[],G=0,$=A.length;$>G;G++)if(_=A[G],I=_.name,_.type===B.CHART_TYPE_SCATTER){if(A[G]=this.reformOption(A[G]),this.legendHoverLink=A[G].legendHoverLink||this.legendHoverLink,this._sIndex2ShapeMap[G]=this.query(_,"symbol")||this._symbol[G%this._symbol.length],E){if(this.selectedMap[I]=E.isSelected(I),this._sIndex2ColorMap[G]=C.alpha(E.getColor(I),0.5),F=E.getItemShape(I)){D=this._sIndex2ShapeMap[G];F.style.brushType=D.match("empty")?"stroke":"both",D=D.replace("empty","").toLowerCase(),D.match("rectangle")&&(F.style.x+=Math.round((F.style.width-F.style.height)/2),F.style.width=F.style.height),D.match("star")&&(F.style.n=D.replace("star","")-0||5,D="star"),D.match("image")&&(F.style.image=D.replace(new RegExp("^image:\\/\\/"),""),F.style.x+=Math.round((F.style.width-F.style.height)/2),F.style.width=F.style.height,D="image"),F.style.iconType=D,E.setItemShape(I,F)}}else this.selectedMap[I]=!0,this._sIndex2ColorMap[G]=C.alpha(this.zr.getColor(G),0.5);this.selectedMap[I]&&H.push(G)}this._buildSeries(H),this.addShapeList()},_buildSeries:function(J){if(0!==J.length){for(var A,H,E,L,K,D,C,G,F=this.series,_={},B=0,M=J.length;M>B;B++)if(A=J[B],H=F[A],0!==H.data.length){K=this.component.xAxis.getAxis(H.xAxisIndex||0),D=this.component.yAxis.getAxis(H.yAxisIndex||0),_[A]=[];for(var I=0,$=H.data.length;$>I;I++)E=H.data[I],L=this.getDataFromOption(E,"-"),"-"===L||L.length<2||(C=K.getCoord(L[0]),G=D.getCoord(L[1]),_[A].push([C,G,I,E.name||""]));this.xMarkMap[A]=this._markMap(K,D,H.data,_[A]),this.buildMark(A)}this._buildPointList(_)}},_markMap:function(I,_,G,D){for(var K,J={min0:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,sum0:0,counter0:0,average0:0,min1:Number.POSITIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum1:0,counter1:0,average1:0},C=0,B=D.length;B>C;C++)K=G[D[C][2]].value||G[D[C][2]],J.min0>K[0]&&(J.min0=K[0],J.minY0=D[C][1],J.minX0=D[C][0]),J.max0<K[0]&&(J.max0=K[0],J.maxY0=D[C][1],J.maxX0=D[C][0]),J.sum0+=K[0],J.counter0++,J.min1>K[1]&&(J.min1=K[1],J.minY1=D[C][1],J.minX1=D[C][0]),J.max1<K[1]&&(J.max1=K[1],J.maxY1=D[C][1],J.maxX1=D[C][0]),J.sum1+=K[1],J.counter1++;var F=this.component.grid.getX(),E=this.component.grid.getXend(),$=this.component.grid.getY(),A=this.component.grid.getYend();J.average0=J.sum0/J.counter0;var L=I.getCoord(J.average0);J.averageLine0=[[L,A],[L,$]],J.minLine0=[[J.minX0,A],[J.minX0,$]],J.maxLine0=[[J.maxX0,A],[J.maxX0,$]],J.average1=J.sum1/J.counter1;var H=_.getCoord(J.average1);return J.averageLine1=[[F,H],[E,H]],J.minLine1=[[F,J.minY1],[E,J.minY1]],J.maxLine1=[[F,J.maxY1],[E,J.maxY1]],J},_buildPointList:function(_){var $,G,E,B,A=this.series;for(var D in _)if($=A[D],G=_[D],$.large&&$.data.length>$.largeThreshold)this.shapeList.push(this._getLargeSymbol($,G,this.getItemStyleColor(this.query($,"itemStyle.normal.color"),D,-1)||this._sIndex2ColorMap[D]));else for(var C=0,F=G.length;F>C;C++)E=G[C],B=this._getSymbol(D,E[2],E[3],E[0],E[1]),B&&this.shapeList.push(B)},_getSymbol:function(A,_,I,F,C){var B,E=this.series,D=E[A],H=D.data[_],G=this.component.dataRange;if(G){if(B=isNaN(H[2])?this._sIndex2ColorMap[A]:G.getColor(H[2]),!B)return null}else B=this._sIndex2ColorMap[A];var $=this.getSymbolShape(D,A,H,_,I,F,C,this._sIndex2ShapeMap[A],B,"rgba(0,0,0,0)","vertical");return $.zlevel=D.zlevel,$.z=D.z,$._main=!0,$},_getLargeSymbol:function(_,$,A){return new D({zlevel:_.zlevel,z:_.z,_main:!0,hoverable:!1,style:{pointList:$,color:A,strokeColor:A},highlightStyle:{pointList:[]}})},getMarkCoord:function(_,$){var F,E=this.series[_],B=this.xMarkMap[_],A=this.component.xAxis.getAxis(E.xAxisIndex),D=this.component.yAxis.getAxis(E.yAxisIndex);if(!$.type||"max"!==$.type&&"min"!==$.type&&"average"!==$.type)F=["string"!=typeof $.xAxis&&A.getCoordByIndex?A.getCoordByIndex($.xAxis||0):A.getCoord($.xAxis||0),"string"!=typeof $.yAxis&&D.getCoordByIndex?D.getCoordByIndex($.yAxis||0):D.getCoord($.yAxis||0)];else{var C=null!=$.valueIndex?$.valueIndex:1;F=[B[$.type+"X"+C],B[$.type+"Y"+C],B[$.type+"Line"+C],B[$.type+C]]}return F},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()},ondataRange:function(_,$){this.component.dataRange&&(this.refresh(),$.needRefresh=!0)}},A.inherits($,E),_("../chart").define("scatter",$),$}),C("echarts/chart/gauge",["require","./base","../util/shape/GaugePointer","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","zrender/shape/Circle","zrender/shape/Sector","../config","../util/ecData","../util/accMath","zrender/tool/util","../chart"],function(H){function _(_,$,C,B,A){G.call(this,_,$,C,B,A),this.refresh(B)}var G=H("./base"),D=H("../util/shape/GaugePointer"),J=H("zrender/shape/Text"),I=H("zrender/shape/Line"),C=H("zrender/shape/Rectangle"),B=H("zrender/shape/Circle"),F=H("zrender/shape/Sector"),E=H("../config");E.gauge={zlevel:0,z:2,center:["50%","50%"],clickable:!0,legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[0.2,"#228b22"],[0.8,"#48b"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,textStyle:{color:"auto"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{show:!0,length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}};var $=H("../util/ecData"),A=H("../util/accMath"),K=H("zrender/tool/util");return _.prototype={type:E.CHART_TYPE_GAUGE,_buildShape:function(){var _=this.series;this._paramsMap={},this.selectedMap={};for(var $=0,A=_.length;A>$;$++)_[$].type===E.CHART_TYPE_GAUGE&&(this.selectedMap[_[$].name]=!0,_[$]=this.reformOption(_[$]),this.legendHoverLink=_[$].legendHoverLink||this.legendHoverLink,this._buildSingleGauge($),this.buildMark($));this.addShapeList()},_buildSingleGauge:function(_){var $=this.series[_];this._paramsMap[_]={center:this.parseCenter(this.zr,$.center),radius:this.parseRadius(this.zr,$.radius),startAngle:$.startAngle.toFixed(2)-0,endAngle:$.endAngle.toFixed(2)-0},this._paramsMap[_].totalAngle=this._paramsMap[_].startAngle-this._paramsMap[_].endAngle,this._colorMap(_),this._buildAxisLine(_),this._buildSplitLine(_),this._buildAxisTick(_),this._buildAxisLabel(_),this._buildPointer(_),this._buildTitle(_),this._buildDetail(_)},_buildAxisLine:function(L){var B=this.series[L];if(B.axisLine.show)for(var J,F,N=B.min,M=B.max-N,E=this._paramsMap[L],D=E.center,I=E.startAngle,G=E.totalAngle,C=E.colorArray,O=B.axisLine.lineStyle,K=this.parsePercent(O.width,E.radius[1]),A=E.radius[1],_=A-K,H=I,P=0,Q=C.length;Q>P;P++)F=I-G*(C[P][0]-N)/M,J=this._getSector(D,_,A,F,H,C[P][1],O,B.zlevel,B.z),H=F,J._animationAdd="r",$.set(J,"seriesIndex",L),$.set(J,"dataIndex",P),this.shapeList.push(J)},_buildSplitLine:function(N){var B=this.series[N];if(B.splitLine.show)for(var K,F,O,E=this._paramsMap[N],D=B.splitNumber,J=B.min,G=B.max-J,A=B.splitLine,C=this.parsePercent(A.length,E.radius[1]),P=A.lineStyle,M=P.color,_=E.center,$=E.startAngle*Math.PI/180,H=E.totalAngle*Math.PI/180,Q=E.radius[1],R=Q-C,L=0;D>=L;L++)K=$-H/D*L,F=Math.sin(K),O=Math.cos(K),this.shapeList.push(new I({zlevel:B.zlevel,z:B.z+1,hoverable:!1,style:{xStart:_[0]+O*Q,yStart:_[1]-F*Q,xEnd:_[0]+O*R,yEnd:_[1]-F*R,strokeColor:"auto"===M?this._getColor(N,J+G/D*L):M,lineType:P.type,lineWidth:P.width,shadowColor:P.shadowColor,shadowBlur:P.shadowBlur,shadowOffsetX:P.shadowOffsetX,shadowOffsetY:P.shadowOffsetY}}))},_buildAxisTick:function(O){var B=this.series[O];if(B.axisTick.show)for(var L,G,P,F=this._paramsMap[O],E=B.splitNumber,K=B.min,H=B.max-K,A=B.axisTick,D=A.splitNumber,Q=this.parsePercent(A.length,F.radius[1]),N=A.lineStyle,_=N.color,$=F.center,J=F.startAngle*Math.PI/180,R=F.totalAngle*Math.PI/180,S=F.radius[1],M=S-Q,T=0,C=E*D;C>=T;T++)T%D!==0&&(L=J-R/C*T,G=Math.sin(L),P=Math.cos(L),this.shapeList.push(new I({zlevel:B.zlevel,z:B.z+1,hoverable:!1,style:{xStart:$[0]+P*S,yStart:$[1]-G*S,xEnd:$[0]+P*M,yEnd:$[1]-G*M,strokeColor:"auto"===_?this._getColor(O,K+H/C*T):_,lineType:N.type,lineWidth:N.width,shadowColor:N.shadowColor,shadowBlur:N.shadowBlur,shadowOffsetX:N.shadowOffsetX,shadowOffsetY:N.shadowOffsetY}})))},_buildAxisLabel:function(N){var C=this.series[N];if(C.axisLabel.show)for(var K,F,O,E,D=C.splitNumber,I=C.min,G=C.max-I,B=C.axisLabel.textStyle,P=this.getFont(B),M=B.color,_=this._paramsMap[N],$=_.center,H=_.startAngle,Q=_.totalAngle,R=_.radius[1]-this.parsePercent(C.splitLine.length,_.radius[1])-5,L=0;D>=L;L++)E=A.accAdd(I,A.accMul(A.accDiv(G,D),L)),K=H-Q/D*L,F=Math.sin(K*Math.PI/180),O=Math.cos(K*Math.PI/180),K=(K+360)%360,this.shapeList.push(new J({zlevel:C.zlevel,z:C.z+1,hoverable:!1,style:{x:$[0]+O*R,y:$[1]-F*R,color:"auto"===M?this._getColor(N,E):M,text:this._getLabelText(C.axisLabel.formatter,E),textAlign:K>=110&&250>=K?"left":70>=K||K>=290?"right":"center",textBaseline:K>=10&&170>=K?"top":K>=190&&350>=K?"bottom":"middle",textFont:P,shadowColor:B.shadowColor,shadowBlur:B.shadowBlur,shadowOffsetX:B.shadowOffsetX,shadowOffsetY:B.shadowOffsetY}}))},_buildPointer:function(E){var C=this.series[E];if(C.pointer.show){var M=C.max-C.min,H=C.pointer,F=this._paramsMap[E],J=this.parsePercent(H.length,F.radius[1]),L=this.parsePercent(H.width,F.radius[1]),K=F.center,G=this._getValue(E);G=G<C.max?G:C.max;var I=(F.startAngle-F.totalAngle/M*(G-C.min))*Math.PI/180,A="auto"===H.color?this._getColor(E,G):H.color,_=new D({zlevel:C.zlevel,z:C.z+1,clickable:this.query(C,"clickable"),style:{x:K[0],y:K[1],r:J,startAngle:F.startAngle*Math.PI/180,angle:I,color:A,width:L,shadowColor:H.shadowColor,shadowBlur:H.shadowBlur,shadowOffsetX:H.shadowOffsetX,shadowOffsetY:H.shadowOffsetY},highlightStyle:{brushType:"fill",width:L>2?2:L/2,color:"#fff"}});$.pack(_,this.series[E],E,this.series[E].data[0],0,this.series[E].data[0].name,G),this.shapeList.push(_),this.shapeList.push(new B({zlevel:C.zlevel,z:C.z+2,hoverable:!1,style:{x:K[0],y:K[1],r:H.width/2.5,color:"#fff"}}))}},_buildTitle:function(A){var _=this.series[A];if(_.title.show){var I=_.data[0],F=null!=I.name?I.name:"";if(""!==F){var B=_.title,E=B.offsetCenter,D=B.textStyle,H=D.color,G=this._paramsMap[A],$=G.center[0]+this.parsePercent(E[0],G.radius[1]),C=G.center[1]+this.parsePercent(E[1],G.radius[1]);this.shapeList.push(new J({zlevel:_.zlevel,z:_.z+(Math.abs($-G.center[0])+Math.abs(C-G.center[1])<2*D.fontSize?2:1),hoverable:!1,style:{x:$,y:C,color:"auto"===H?this._getColor(A):H,text:F,textAlign:"center",textFont:this.getFont(D),shadowColor:D.shadowColor,shadowBlur:D.shadowBlur,shadowOffsetX:D.shadowOffsetX,shadowOffsetY:D.shadowOffsetY}}))}}},_buildDetail:function(A){var _=this.series[A];if(_.detail.show){var J=_.detail,G=J.offsetCenter,E=J.backgroundColor,B=J.textStyle,F=B.color,I=this._paramsMap[A],H=this._getValue(A),$=I.center[0]-J.width/2+this.parsePercent(G[0],I.radius[1]),D=I.center[1]+this.parsePercent(G[1],I.radius[1]);this.shapeList.push(new C({zlevel:_.zlevel,z:_.z+(Math.abs($+J.width/2-I.center[0])+Math.abs(D+J.height/2-I.center[1])<B.fontSize?2:1),hoverable:!1,style:{x:$,y:D,width:J.width,height:J.height,brushType:"both",color:"auto"===E?this._getColor(A,H):E,lineWidth:J.borderWidth,strokeColor:J.borderColor,shadowColor:J.shadowColor,shadowBlur:J.shadowBlur,shadowOffsetX:J.shadowOffsetX,shadowOffsetY:J.shadowOffsetY,text:this._getLabelText(J.formatter,H),textFont:this.getFont(B),textPosition:"inside",textColor:"auto"===F?this._getColor(A,H):F}}))}},_getValue:function($){return this.getDataFromOption(this.series[$].data[0])},_colorMap:function(_){var $=this.series[_],F=$.min,E=$.max-F,B=$.axisLine.lineStyle.color;B instanceof Array||(B=[[1,B]]);for(var A=[],D=0,C=B.length;C>D;D++)A.push([B[D][0]*E+F,B[D][1]]);this._paramsMap[_].colorArray=A},_getColor:function(_,$){null==$&&($=this._getValue(_));for(var C=this._paramsMap[_].colorArray,B=0,A=C.length;A>B;B++)if(C[B][0]>=$)return C[B][1];return C[C.length-1][1]},_getSector:function(_,$,H,E,B,A,D,C,G){return new F({zlevel:C,z:G,hoverable:!1,style:{x:_[0],y:_[1],r0:$,r:H,startAngle:E,endAngle:B,brushType:"fill",color:A,shadowColor:D.shadowColor,shadowBlur:D.shadowBlur,shadowOffsetX:D.shadowOffsetX,shadowOffsetY:D.shadowOffsetY}})},_getLabelText:function(_,$){if(_){if("function"==typeof _)return _.call(this.myChart,$);if("string"==typeof _)return _.replace("{value}",$)}return $},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()}},K.inherits(_,G),H("../chart").define("gauge",_),_}),C("echarts/chart/funnel",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","../config","../util/ecData","../util/number","zrender/tool/util","zrender/tool/color","zrender/tool/area","../chart"],function(H){function _(_,$,C,B,A){G.call(this,_,$,C,B,A),this.refresh(B)}var G=H("./base"),D=H("zrender/shape/Text"),J=H("zrender/shape/Line"),I=H("zrender/shape/Polygon"),C=H("../config");C.funnel={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,x:80,y:60,x2:80,y2:60,min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",itemStyle:{normal:{borderColor:"#fff",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:10,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0},labelLine:{show:!0}}}};var B=H("../util/ecData"),F=H("../util/number"),E=H("zrender/tool/util"),$=H("zrender/tool/color"),A=H("zrender/tool/area");return _.prototype={type:C.CHART_TYPE_FUNNEL,_buildShape:function(){var _=this.series,$=this.component.legend;this._paramsMap={},this._selected={},this.selectedMap={};for(var D,B=0,A=_.length;A>B;B++)if(_[B].type===C.CHART_TYPE_FUNNEL){if(_[B]=this.reformOption(_[B]),this.legendHoverLink=_[B].legendHoverLink||this.legendHoverLink,D=_[B].name||"",this.selectedMap[D]=$?$.isSelected(D):!0,!this.selectedMap[D])continue;this._buildSingleFunnel(B),this.buildMark(B)}this.addShapeList()},_buildSingleFunnel:function(O){var B=this.component.legend,K=this.series[O],H=this._mapData(O),Q=this._getLocation(O);this._paramsMap[O]={location:Q,data:H};for(var P,G=0,E=[],I=0,A=H.length;A>I;I++)P=H[I].name,this.selectedMap[P]=B?B.isSelected(P):!0,this.selectedMap[P]&&!isNaN(H[I].value)&&(E.push(H[I]),G++);if(0!==G){for(var D,S,N,_,$=this._buildFunnelCase(O),J=K.funnelAlign,T=K.gap,U=G>1?(Q.height-(G-1)*T)/G:Q.height,M=Q.y,V="descending"===K.sort?this._getItemWidth(O,E[0].value):F.parsePercent(K.minSize,Q.width),C="descending"===K.sort?1:0,R=Q.centerX,L=[],I=0,A=E.length;A>I;I++)if(P=E[I].name,this.selectedMap[P]&&!isNaN(E[I].value)){switch(D=A-2>=I?this._getItemWidth(O,E[I+C].value):"descending"===K.sort?F.parsePercent(K.minSize,Q.width):F.parsePercent(K.maxSize,Q.width),J){case"left":S=Q.x;break;case"right":S=Q.x+Q.width-V;break;default:S=R-V/2}N=this._buildItem(O,E[I]._index,B?B.getColor(P):this.zr.getColor(E[I]._index),S,M,V,D,U,J),M+=U+T,_=N.style.pointList,L.unshift([_[0][0]-10,_[0][1]]),L.push([_[1][0]+10,_[1][1]]),0===I&&(0===V?(_=L.pop(),"center"==J&&(L[0][0]+=10),"right"==J&&(L[0][0]=_[0]),L[0][1]-="center"==J?10:15,1==A&&(_=N.style.pointList)):(L[L.length-1][1]-=5,L[0][1]-=5)),V=D}$&&(L.unshift([_[3][0]-10,_[3][1]]),L.push([_[2][0]+10,_[2][1]]),0===V?(_=L.pop(),"center"==J&&(L[0][0]+=10),"right"==J&&(L[0][0]=_[0]),L[0][1]+="center"==J?10:15):(L[L.length-1][1]+=5,L[0][1]+=5),$.style.pointList=L)}},_buildFunnelCase:function(_){var $=this.series[_];if(this.deepQuery([$,this.option],"calculable")){var E=this._paramsMap[_].location,D=10,A={hoverable:!1,style:{pointListd:[[E.x-D,E.y-D],[E.x+E.width+D,E.y-D],[E.x+E.width+D,E.y+E.height+D],[E.x-D,E.y+E.height+D]],brushType:"stroke",lineWidth:1,strokeColor:$.calculableHolderColor||this.ecTheme.calculableHolderColor||C.calculableHolderColor}};return B.pack(A,$,_,void 0,-1),this.setCalculable(A),A=new I(A),this.shapeList.push(A),A}},_getLocation:function(_){var $=this.series[_],E=this.zr.getWidth(),D=this.zr.getHeight(),B=this.parsePercent($.x,E),A=this.parsePercent($.y,D),C=null==$.width?E-B-this.parsePercent($.x2,E):this.parsePercent($.width,E);return{x:B,y:A,width:C,height:null==$.height?D-A-this.parsePercent($.y2,D):this.parsePercent($.height,D),centerX:B+C/2}},_mapData:function(_){function $(_,$){return"-"===_.value?1:"-"===$.value?-1:$.value-_.value}function F(_,A){return-$(_,A)}for(var D=this.series[_],B=E.clone(D.data),A=0,C=B.length;C>A;A++)B[A]._index=A;return"none"!=D.sort&&B.sort("descending"===D.sort?$:F),B},_buildItem:function(L,C,J,F,N,M,E,I,G){var A=this.series,D=A[L],O=D.data[C],K=this.getPolygon(L,C,J,F,N,M,E,I,G);B.pack(K,A[L],L,A[L].data[C],C,A[L].data[C].name),this.shapeList.push(K);var _=this.getLabel(L,C,J,F,N,M,E,I,G);B.pack(_,A[L],L,A[L].data[C],C,A[L].data[C].name),this.shapeList.push(_),this._needLabel(D,O,!1)||(_.invisible=!0);var $=this.getLabelLine(L,C,J,F,N,M,E,I,G);this.shapeList.push($),this._needLabelLine(D,O,!1)||($.invisible=!0);var H=[],P=[];return this._needLabelLine(D,O,!0)&&(H.push($.id),P.push($.id)),this._needLabel(D,O,!0)&&(H.push(_.id),P.push(K.id)),K.hoverConnect=H,_.hoverConnect=P,K},_getItemWidth:function(_,$){var G=this.series[_],E=this._paramsMap[_].location,B=G.min,A=G.max,D=F.parsePercent(G.minSize,E.width),C=F.parsePercent(G.maxSize,E.width);return($-B)*(C-D)/(A-B)+D},getPolygon:function(N,B,K,F,O,E,D,J,G){var C,P=this.series[N],M=P.data[B],A=[M,P],_=this.deepMerge(A,"itemStyle.normal")||{},H=this.deepMerge(A,"itemStyle.emphasis")||{},Q=this.getItemStyleColor(_.color,N,B,M)||K,R=this.getItemStyleColor(H.color,N,B,M)||("string"==typeof Q?$.lift(Q,-0.2):Q);switch(G){case"left":C=F;break;case"right":C=F+(E-D);break;default:C=F+(E-D)/2}var L={zlevel:P.zlevel,z:P.z,clickable:this.deepQuery(A,"clickable"),style:{pointList:[[F,O],[F+E,O],[C+D,O+J],[C,O+J]],brushType:"both",color:Q,lineWidth:_.borderWidth,strokeColor:_.borderColor},highlightStyle:{color:R,lineWidth:H.borderWidth,strokeColor:H.borderColor}};return this.deepQuery([M,P,this.option],"calculable")&&(this.setCalculable(L),L.draggable=!0),new I(L)},getLabel:function(P,C,L,R,Q,I,H,K,T){var O,B=this.series[P],_=B.data[C],J=this._paramsMap[P].location,U=E.merge(E.clone(_.itemStyle)||{},B.itemStyle),W="normal",N=U[W].label,X=N.textStyle||{},F=U[W].labelLine.length,S=this.getLabelText(P,C,W),M=this.getFont(X),V=L;N.position=N.position||U.normal.label.position,"inner"===N.position||"inside"===N.position||"center"===N.position?(O=T,V=Math.max(I,H)/2>A.getTextWidth(S,M)?"#fff":$.reverse(L)):O="left"===N.position?"right":"left";var G={zlevel:B.zlevel,z:B.z+1,style:{x:this._getLabelPoint(N.position,R,J,I,H,F,T),y:Q+K/2,color:X.color||V,text:S,textAlign:X.align||O,textBaseline:X.baseline||"middle",textFont:M}};return W="emphasis",N=U[W].label||N,X=N.textStyle||X,F=U[W].labelLine.length||F,N.position=N.position||U.normal.label.position,S=this.getLabelText(P,C,W),M=this.getFont(X),V=L,"inner"===N.position||"inside"===N.position||"center"===N.position?(O=T,V=Math.max(I,H)/2>A.getTextWidth(S,M)?"#fff":$.reverse(L)):O="left"===N.position?"right":"left",G.highlightStyle={x:this._getLabelPoint(N.position,R,J,I,H,F,T),color:X.color||V,text:S,textAlign:X.align||O,textFont:M,brushType:"fill"},new D(G)},getLabelText:function(_,$,E){var D=this.series,B=D[_],A=B.data[$],C=this.deepQuery([A,B],"itemStyle."+E+".label.formatter");return C?"function"==typeof C?C.call(this.myChart,{seriesIndex:_,seriesName:B.name||"",series:B,dataIndex:$,data:A,name:A.name,value:A.value}):"string"==typeof C?C=C.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",B.name).replace("{b0}",A.name).replace("{c0}",A.value):void 0:A.name},getLabelLine:function(N,B,K,G,O,F,D,I,A){var C=this.series[N],P=C.data[B],M=this._paramsMap[N].location,_=E.merge(E.clone(P.itemStyle)||{},C.itemStyle),$="normal",H=_[$].labelLine,Q=_[$].labelLine.length,R=H.lineStyle||{},L=_[$].label;L.position=L.position||_.normal.label.position;var S={zlevel:C.zlevel,z:C.z+1,hoverable:!1,style:{xStart:this._getLabelLineStartPoint(G,M,F,D,A),yStart:O+I/2,xEnd:this._getLabelPoint(L.position,G,M,F,D,Q,A),yEnd:O+I/2,strokeColor:R.color||K,lineType:R.type,lineWidth:R.width}};return $="emphasis",H=_[$].labelLine||H,Q=_[$].labelLine.length||Q,R=H.lineStyle||R,L=_[$].label||L,L.position=L.position,S.highlightStyle={xEnd:this._getLabelPoint(L.position,G,M,F,D,Q,A),strokeColor:R.color||K,lineType:R.type,lineWidth:R.width},new J(S)},_getLabelPoint:function(_,$,E,D,B,A,C){switch(_="inner"===_||"inside"===_?"center":_){case"center":return"center"==C?$+D/2:"left"==C?$+10:$+D-10;case"left":return"auto"===A?E.x-10:"center"==C?E.centerX-Math.max(D,B)/2-A:"right"==C?$-(B>D?B-D:0)-A:E.x-A;default:return"auto"===A?E.x+E.width+10:"center"==C?E.centerX+Math.max(D,B)/2+A:"right"==C?E.x+E.width+A:$+Math.max(D,B)+A}},_getLabelLineStartPoint:function(_,$,C,B,A){return"center"==A?$.centerX:B>C?_+Math.min(C,B)/2:_+Math.max(C,B)/2},_needLabel:function(_,$,A){return this.deepQuery([$,_],"itemStyle."+(A?"emphasis":"normal")+".label.show")},_needLabelLine:function(_,$,A){return this.deepQuery([$,_],"itemStyle."+(A?"emphasis":"normal")+".labelLine.show")},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()}},E.inherits(_,G),H("../chart").define("funnel",_),_}),C("echarts/chart/pie",["require","./base","zrender/shape/Text","zrender/shape/Ring","zrender/shape/Circle","zrender/shape/Sector","zrender/shape/Polyline","../config","../util/ecData","zrender/tool/util","zrender/tool/math","zrender/tool/color","../chart"],function(H){function _(_,$,D,B,A){G.call(this,_,$,D,B,A);var C=this;C.shapeHandler.onmouseover=function(I){var _=I.target,G=E.get(_,"seriesIndex"),D=E.get(_,"dataIndex"),K=E.get(_,"special"),J=[_.style.x,_.style.y],B=_.style.startAngle,F=_.style.endAngle,$=((F+B)/2+360)%360,A=_.highlightStyle.color,L=C.getLabel(G,D,K,J,$,A,!0);L&&C.zr.addHoverShape(L);var H=C.getLabelLine(G,D,J,_.style.r0,_.style.r,$,A,!0);H&&C.zr.addHoverShape(H)},this.refresh(B)}var G=H("./base"),D=H("zrender/shape/Text"),J=H("zrender/shape/Ring"),I=H("zrender/shape/Circle"),C=H("zrender/shape/Sector"),B=H("zrender/shape/Polyline"),F=H("../config");F.pie={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockWise:!0,startAngle:90,minAngle:0,selectedOffset:10,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!1},labelLine:{show:!1,length:20,lineStyle:{width:1,type:"solid"}}}}};var E=H("../util/ecData"),$=H("zrender/tool/util"),A=H("zrender/tool/math"),K=H("zrender/tool/color");return _.prototype={type:F.CHART_TYPE_PIE,_buildShape:function(){var A=this.series,_=this.component.legend;this.selectedMap={},this._selected={};var H,G,D;this._selectedMode=!1;for(var C,$=0,B=A.length;B>$;$++)if(A[$].type===F.CHART_TYPE_PIE){if(A[$]=this.reformOption(A[$]),this.legendHoverLink=A[$].legendHoverLink||this.legendHoverLink,C=A[$].name||"",this.selectedMap[C]=_?_.isSelected(C):!0,!this.selectedMap[C])continue;H=this.parseCenter(this.zr,A[$].center),G=this.parseRadius(this.zr,A[$].radius),this._selectedMode=this._selectedMode||A[$].selectedMode,this._selected[$]=[],this.deepQuery([A[$],this.option],"calculable")&&(D={zlevel:A[$].zlevel,z:A[$].z,hoverable:!1,style:{x:H[0],y:H[1],r0:G[0]<=10?0:G[0]-10,r:G[1]+10,brushType:"stroke",lineWidth:1,strokeColor:A[$].calculableHolderColor||this.ecTheme.calculableHolderColor||F.calculableHolderColor}},E.pack(D,A[$],$,void 0,-1),this.setCalculable(D),D=G[0]<=10?new I(D):new J(D),this.shapeList.push(D)),this._buildSinglePie($),this.buildMark($)}this.addShapeList()},_buildSinglePie:function(R){for(var F,O=this.series,K=O[R],T=K.data,S=this.component.legend,J=0,I=0,N=0,L=Number.NEGATIVE_INFINITY,E=[],H=0,U=T.length;U>H;H++)F=T[H].name,this.selectedMap[F]=S?S.isSelected(F):!0,this.selectedMap[F]&&!isNaN(T[H].value)&&(0!==+T[H].value?J++:I++,N+=+T[H].value,L=Math.max(L,+T[H].value));if(0!==N){for(var Q,D,C,M,B,W,P=100,X=K.clockWise,G=(K.startAngle.toFixed(2)-0+360)%360,A=K.minAngle||0.01,_=360-A*J-0.01*I,V=K.roseType,H=0,U=T.length;U>H;H++)if(F=T[H].name,this.selectedMap[F]&&!isNaN(T[H].value)){if(D=S?S.getColor(F):this.zr.getColor(H),P=T[H].value/N,Q="area"!=V?X?G-P*_-(0!==P?A:0.01):P*_+G+(0!==P?A:0.01):X?G-360/U:360/U+G,Q=Q.toFixed(2)-0,P=(100*P).toFixed(2),C=this.parseCenter(this.zr,K.center),M=this.parseRadius(this.zr,K.radius),B=+M[0],W=+M[1],"radius"===V?W=T[H].value/L*(W-B)*0.8+0.2*(W-B)+B:"area"===V&&(W=Math.sqrt(T[H].value/L)*(W-B)+B),X){var $;$=G,G=Q,Q=$}this._buildItem(E,R,H,P,T[H].selected,C,B,W,G,Q,D),X||(G=Q)}this._autoLabelLayout(E,C,W);for(H=0,U=E.length;U>H;H++)this.shapeList.push(E[H]);E=null}},_buildItem:function(L,B,J,G,N,M,F,D,I,A,C){var O=this.series,K=((A+I)/2+360)%360,_=this.getSector(B,J,G,N,M,F,D,I,A,C);E.pack(_,O[B],B,O[B].data[J],J,O[B].data[J].name,G),L.push(_);var $=this.getLabel(B,J,G,M,K,C,!1),H=this.getLabelLine(B,J,M,F,D,K,C,!1);H&&(E.pack(H,O[B],B,O[B].data[J],J,O[B].data[J].name,G),L.push(H)),$&&(E.pack($,O[B],B,O[B].data[J],J,O[B].data[J].name,G),$._labelLine=H,L.push($))},getSector:function(P,D,L,G,R,Q,F,J,H,B){var O=this.series,_=O[P],$=_.data[D],I=[$,_],T=this.deepMerge(I,"itemStyle.normal")||{},U=this.deepMerge(I,"itemStyle.emphasis")||{},N=this.getItemStyleColor(T.color,P,D,$)||B,V=this.getItemStyleColor(U.color,P,D,$)||("string"==typeof N?K.lift(N,-0.2):N),E={zlevel:_.zlevel,z:_.z,clickable:this.deepQuery(I,"clickable"),style:{x:R[0],y:R[1],r0:Q,r:F,startAngle:J,endAngle:H,brushType:"both",color:N,lineWidth:T.borderWidth,strokeColor:T.borderColor,lineJoin:"round"},highlightStyle:{color:V,lineWidth:U.borderWidth,strokeColor:U.borderColor,lineJoin:"round"},_seriesIndex:P,_dataIndex:D};if(G){var S=((E.style.startAngle+E.style.endAngle)/2).toFixed(2)-0;E.style._hasSelected=!0,E.style._x=E.style.x,E.style._y=E.style.y;var M=this.query(_,"selectedOffset");E.style.x+=A.cos(S,!0)*M,E.style.y-=A.sin(S,!0)*M,this._selected[P][D]=!0}else this._selected[P][D]=!1;return this._selectedMode&&(E.onclick=this.shapeHandler.onclick),this.deepQuery([$,_,this.option],"calculable")&&(this.setCalculable(E),E.draggable=!0),(this._needLabel(_,$,!0)||this._needLabelLine(_,$,!0))&&(E.onmouseover=this.shapeHandler.onmouseover),E=new C(E)},getLabel:function(O,C,K,Q,P,G,F){var J=this.series,H=J[O],S=H.data[C];if(this._needLabel(H,S,F)){var N,B,_,I=F?"emphasis":"normal",T=$.merge($.clone(S.itemStyle)||{},H.itemStyle),V=T[I].label,M=V.textStyle||{},W=Q[0],E=Q[1],R=this.parseRadius(this.zr,H.radius),L="middle";V.position=V.position||T.normal.label.position,"center"===V.position?(N=W,B=E,_="center"):"inner"===V.position||"inside"===V.position?(R=(R[0]+R[1])*(V.distance||0.5),N=Math.round(W+R*A.cos(P,!0)),B=Math.round(E-R*A.sin(P,!0)),G="#fff",_="center"):(R=R[1]- -T[I].labelLine.length,N=Math.round(W+R*A.cos(P,!0)),B=Math.round(E-R*A.sin(P,!0)),_=P>=90&&270>=P?"right":"left"),"center"!=V.position&&"inner"!=V.position&&"inside"!=V.position&&(N+="left"===_?20:-20),S.__labelX=N-("left"===_?5:-5),S.__labelY=B;var U=new D({zlevel:H.zlevel,z:H.z+1,hoverable:!1,style:{x:N,y:B,color:M.color||G,text:this.getLabelText(O,C,K,I),textAlign:M.align||_,textBaseline:M.baseline||L,textFont:this.getFont(M)},highlightStyle:{brushType:"fill"}});return U._radius=R,U._labelPosition=V.position||"outer",U._rect=U.getRect(U.style),U._seriesIndex=O,U._dataIndex=C,U}},getLabelText:function(_,$,F,E){var B=this.series,A=B[_],D=A.data[$],C=this.deepQuery([D,A],"itemStyle."+E+".label.formatter");return C?"function"==typeof C?C.call(this.myChart,{seriesIndex:_,seriesName:A.name||"",series:A,dataIndex:$,data:D,name:D.name,value:D.value,percent:F}):"string"==typeof C?(C=C.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}"),C=C.replace("{a0}",A.name).replace("{b0}",D.name).replace("{c0}",D.value).replace("{d0}",F)):void 0:D.name},getLabelLine:function(O,D,K,G,Q,P,F,J){var H=this.series,S=H[O],N=S.data[D];if(this._needLabelLine(S,N,J)){var C=J?"emphasis":"normal",_=$.merge($.clone(N.itemStyle)||{},S.itemStyle),I=_[C].labelLine,T=I.lineStyle||{},U=K[0],M=K[1],V=Q,E=this.parseRadius(this.zr,S.radius)[1]- -I.length,R=A.cos(P,!0),L=A.sin(P,!0);return new B({zlevel:S.zlevel,z:S.z+1,hoverable:!1,style:{pointList:[[U+V*R,M-V*L],[U+E*R,M-E*L],[N.__labelX,N.__labelY]],strokeColor:T.color||F,lineType:T.type,lineWidth:T.width},_seriesIndex:O,_dataIndex:D})}},_needLabel:function(_,$,A){return this.deepQuery([$,_],"itemStyle."+(A?"emphasis":"normal")+".label.show")},_needLabelLine:function(_,$,A){return this.deepQuery([$,_],"itemStyle."+(A?"emphasis":"normal")+".labelLine.show")},_autoLabelLayout:function(_,$,E){for(var D=[],B=[],A=0,C=_.length;C>A;A++)("outer"===_[A]._labelPosition||"outside"===_[A]._labelPosition)&&(_[A]._rect._y=_[A]._rect.y,_[A]._rect.x<$[0]?D.push(_[A]):B.push(_[A]));this._layoutCalculate(D,$,E,-1),this._layoutCalculate(B,$,E,1)},_layoutCalculate:function(A,_,K,H){function C($,D,C){for(var _=$;D>_;_++)if(A[_]._rect.y+=C,A[_].style.y+=C,A[_]._labelLine&&(A[_]._labelLine.style.pointList[1][1]+=C,A[_]._labelLine.style.pointList[2][1]+=C),_>$&&D>_+1&&A[_+1]._rect.y>A[_]._rect.y+A[_]._rect.height)return void B(_,C/2);B(D-1,C/2)}function B($,B){for(var _=$;_>=0&&(A[_]._rect.y-=B,A[_].style.y-=B,A[_]._labelLine&&(A[_]._labelLine.style.pointList[1][1]-=B,A[_]._labelLine.style.pointList[2][1]-=B),!(_>0&&A[_]._rect.y>A[_-1]._rect.y+A[_-1]._rect.height));_--);}function G(H,_,G,D,J){for(var I,C,B,F=G[0],E=G[1],$=J>0?_?Number.MAX_VALUE:0:_?Number.MAX_VALUE:0,A=0,K=H.length;K>A;A++)C=Math.abs(H[A]._rect.y-E),B=H[A]._radius-D,I=D+B>C?Math.sqrt((D+B+20)*(D+B+20)-Math.pow(H[A]._rect.y-E,2)):Math.abs(H[A]._rect.x+(J>0?0:H[A]._rect.width)-F),_&&I>=$&&(I=$-10),!_&&$>=I&&(I=$+10),H[A]._rect.x=H[A].style.x=F+I*J,H[A]._labelLine&&(H[A]._labelLine.style.pointList[2][0]=F+(I-5)*J,H[A]._labelLine.style.pointList[1][0]=F+(I-20)*J),$=I}A.sort(function(_,$){return _._rect.y-$._rect.y});for(var F,J=0,I=A.length,$=[],D=[],E=0;I>E;E++)F=A[E]._rect.y-J,0>F&&C(E,I,-F,H),J=A[E]._rect.y+A[E]._rect.height;this.zr.getHeight()-J<0&&B(I-1,J-this.zr.getHeight());for(E=0;I>E;E++)A[E]._rect.y>=_[1]?D.push(A[E]):$.push(A[E]);G(D,!0,_,K,H),G($,!1,_,K,H)},reformOption:function(A){var _=$.merge;return A=_(_(A||{},$.clone(this.ecTheme.pie||{})),$.clone(F.pie)),A.itemStyle.normal.label.textStyle=this.getTextStyle(A.itemStyle.normal.label.textStyle),A.itemStyle.emphasis.label.textStyle=this.getTextStyle(A.itemStyle.emphasis.label.textStyle),this.z=A.z,this.zlevel=A.zlevel,A},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(M,B){function J(){D--,0===D&&B&&B()}for(var G=this.series,O={},N=0,E=M.length;E>N;N++)O[M[N][0]]=M[N];var D=0,H={},A={},C={},P=this.shapeList;this.shapeList=[];for(var L,_,$,I={},N=0,E=M.length;E>N;N++)L=M[N][0],_=M[N][2],$=M[N][3],G[L]&&G[L].type===F.CHART_TYPE_PIE&&(_?($||(H[L+"_"+G[L].data.length]="delete"),I[L]=1):$?I[L]=0:(H[L+"_-1"]="delete",I[L]=-1),this._buildSinglePie(L));for(var Q,R,N=0,E=this.shapeList.length;E>N;N++)switch(L=this.shapeList[N]._seriesIndex,Q=this.shapeList[N]._dataIndex,R=L+"_"+Q,this.shapeList[N].type){case"sector":H[R]=this.shapeList[N];break;case"text":A[R]=this.shapeList[N];break;case"polyline":C[R]=this.shapeList[N]}this.shapeList=[];for(var K,N=0,E=P.length;E>N;N++)if(L=P[N]._seriesIndex,O[L]){if(Q=P[N]._dataIndex+I[L],R=L+"_"+Q,K=H[R],!K)continue;if("sector"===P[N].type)"delete"!=K?(D++,this.zr.animate(P[N].id,"style").when(400,{startAngle:K.style.startAngle,endAngle:K.style.endAngle}).done(J).start()):(D++,this.zr.animate(P[N].id,"style").when(400,I[L]<0?{startAngle:P[N].style.startAngle}:{endAngle:P[N].style.endAngle}).done(J).start());else if("text"===P[N].type||"polyline"===P[N].type)if("delete"===K)this.zr.delShape(P[N].id);else switch(P[N].type){case"text":D++,K=A[R],this.zr.animate(P[N].id,"style").when(400,{x:K.style.x,y:K.style.y}).done(J).start();break;case"polyline":D++,K=C[R],this.zr.animate(P[N].id,"style").when(400,{pointList:K.style.pointList}).done(J).start()}}this.shapeList=P,D||B&&B()},onclick:function(B){var _=this.series;if(this.isClick&&B.target){this.isClick=!1;for(var K,J=B.target,D=J.style,C=E.get(J,"seriesIndex"),I=E.get(J,"dataIndex"),H=0,$=this.shapeList.length;$>H;H++)if(this.shapeList[H].id===J.id){if(C=E.get(J,"seriesIndex"),I=E.get(J,"dataIndex"),D._hasSelected)J.style.x=J.style._x,J.style.y=J.style._y,J.style._hasSelected=!1,this._selected[C][I]=!1;else{var G=((D.startAngle+D.endAngle)/2).toFixed(2)-0;J.style._hasSelected=!0,this._selected[C][I]=!0,J.style._x=J.style.x,J.style._y=J.style.y,K=this.query(_[C],"selectedOffset"),J.style.x+=A.cos(G,!0)*K,J.style.y-=A.sin(G,!0)*K}this.zr.modShape(J.id)}else this.shapeList[H].style._hasSelected&&"single"===this._selectedMode&&(C=E.get(this.shapeList[H],"seriesIndex"),I=E.get(this.shapeList[H],"dataIndex"),this.shapeList[H].style.x=this.shapeList[H].style._x,this.shapeList[H].style.y=this.shapeList[H].style._y,this.shapeList[H].style._hasSelected=!1,this._selected[C][I]=!1,this.zr.modShape(this.shapeList[H].id));this.messageCenter.dispatch(F.EVENT.PIE_SELECTED,B.event,{selected:this._selected,target:E.get(J,"name")},this.myChart),this.zr.refreshNextFrame()}}},$.inherits(_,G),H("../chart").define("pie",_),_}),C("echarts/chart/treemap",["require","./base","zrender/tool/area","zrender/shape/Rectangle","zrender/shape/Text","zrender/shape/Line","../layout/TreeMap","../data/Tree","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/util","zrender/tool/color","../chart"],function(I){function _(_,$,E,C,B){G.call(this,_,$,E,C,B),this.refresh(C);var D=this;D._onclick=function($){return D.__onclick($)},D.zr.on(A.EVENT.CLICK,D._onclick)}var G=I("./base"),D=I("zrender/tool/area"),K=I("zrender/shape/Rectangle"),J=I("zrender/shape/Text"),C=I("zrender/shape/Line"),B=I("../layout/TreeMap"),F=I("../data/Tree"),E=I("../config");E.treemap={zlevel:0,z:1,calculable:!1,clickable:!0,center:["50%","50%"],size:["80%","80%"],root:"",itemStyle:{normal:{label:{show:!0,x:5,y:12,textStyle:{align:"left",color:"#000",fontFamily:"Arial",fontSize:13,fontStyle:"normal",fontWeight:"normal"}},breadcrumb:{show:!0,textStyle:{}},borderWidth:1,borderColor:"#ccc",childBorderWidth:1,childBorderColor:"#ccc"},emphasis:{}}};var $=I("../util/ecData"),A=I("zrender/config"),L=(I("zrender/tool/event"),I("zrender/tool/util")),H=I("zrender/tool/color");return _.prototype={type:E.CHART_TYPE_TREEMAP,refresh:function(_){this.clear(),_&&(this.option=_,this.series=this.option.series),this._treesMap={};for(var $=this.series,C=this.component.legend,B=0;B<$.length;B++)if($[B].type===E.CHART_TYPE_TREEMAP){$[B]=this.reformOption($[B]);var A=$[B].name||"";if(this.selectedMap[A]=C?C.isSelected(A):!0,!this.selectedMap[A])continue;this._buildSeries($[B],B)}},_buildSeries:function(_,$){var B=F.fromOptionData(_.name,_.data);this._treesMap[$]=B;var A=_.root&&B.getNodeById(_.root)||B.root;this._buildTreemap(A,$)},_buildTreemap:function(S,H){for(var P=this.shapeList,L=0;L<P.length;){var U=P[L];$.get(U,"seriesIndex")===H?(this.zr.delShape(P[L]),P.splice(L,1)):L++}for(var T=P.length,K=this.series[H],O=K.itemStyle,M=this.parsePercent(K.size[0],this.zr.getWidth())||400,J=this.parsePercent(K.size[1],this.zr.getHeight())||500,V=this.parseCenter(this.zr,K.center),R=V[0]-0.5*M,G=V[1]-0.5*J,F=M*J,N=0,E=[],X=S.children,L=0;L<X.length;L++)N+=X[L].data.value;for(var Q=0;Q<X.length;Q++)E.push(X[Q].data.value*F/N);for(var Y=new B({x:R,y:G,width:M,height:J}),I=Y.run(E),D=0;D<I.length;D++){var C=X[D].data,W=I[D],_=[C.itemStyle,O],A=this.deepMerge(_);A.normal.color||(A.normal.color=this.zr.getColor(D)),A.emphasis.color||(A.emphasis.color=A.normal.color),this._buildItem(C,A,W,H,D),C.children&&this._buildChildrenTreemap(C.children,A,W,H)}this.query(K,"itemStyle.normal.breadcrumb.show")&&this._buildBreadcrumb(S,H,R,G+J);for(L=T;L<P.length;L++)this.zr.addShape(P[L])},_buildItem:function(A,_,F,E,C){var B=this.series,D=this.getRectangle(A,_,F);$.pack(D,B[E],E,A,C,A.name),this.shapeList.push(D)},getRectangle:function(_,$,F){var D=$.emphasis,A=$.normal,C=this.getLabel($,F,_.name,_.value),B=this.option.hoverable,E={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:B,clickable:!0,style:L.merge({x:F.x,y:F.y,width:F.width,height:F.height,brushType:"both",color:A.color,lineWidth:A.borderWidth,strokeColor:A.borderColor},C.style,!0),highlightStyle:L.merge({color:D.color,lineWidth:D.borderWidth,strokeColor:D.borderColor},C.highlightStyle,!0)};return new K(E)},getLabel:function(L,B,J,N){var M=L.normal.label.textStyle,F=[L.emphasis.label.textStyle,M],E=this.deepMerge(F),I=L.normal.label.formatter,G=this.getLabelText(J,N,I),A=this.getFont(M),C=D.getTextWidth(G,A),O=D.getTextHeight(G,A),K=this.deepQuery([L.emphasis,L.normal],"label.formatter"),_=this.getLabelText(J,N,K),$=this.getFont(E),H=D.getTextWidth(G,$),P=D.getTextHeight(G,$);L.normal.label.show?(L.normal.label.x+C>B.width||L.normal.label.y+O>B.height)&&(G=""):G="",L.emphasis.label.show?(E.x+H>B.width||E.y+P>B.height)&&(_=""):_="";var Q={style:{textX:B.x+L.normal.label.x,textY:B.y+L.normal.label.y,text:G,textPosition:"specific",textColor:M.color,textFont:A},highlightStyle:{textX:B.x+L.emphasis.label.x,textY:B.y+L.emphasis.label.y,text:_,textColor:E.color,textPosition:"specific"}};return Q},getLabelText:function(_,$,A){return A?"function"==typeof A?A.call(this.myChart,_,$):"string"==typeof A?(A=A.replace("{b}","{b0}").replace("{c}","{c0}"),A=A.replace("{b0}",_).replace("{c0}",$)):void 0:_},_buildChildrenTreemap:function(L,C,J,F){for(var N=J.width*J.height,M=0,E=[],I=0;I<L.length;I++)M+=L[I].value;for(var G=0;G<L.length;G++)E.push(L[G].value*N/M);for(var D=new B({x:J.x,y:J.y,width:J.width,height:J.height}),O=D.run(E),K=C.normal.childBorderWidth,A=C.normal.childBorderColor,_=0;_<O.length;_++){var H=O[_],P=[];J.y.toFixed(2)!==H.y.toFixed(2)&&P.push(this._getLine(H.x,H.y,H.x+H.width,H.y,K,A)),J.x.toFixed(2)!==H.x.toFixed(2)&&P.push(this._getLine(H.x,H.y,H.x,H.y+H.height,K,A)),(J.y+J.height).toFixed(2)!==(H.y+H.height).toFixed(2)&&P.push(this._getLine(H.x,H.y+H.height,H.x+H.width,H.y+H.height,K,A)),(J.x+J.width).toFixed(2)!==(H.x+H.width).toFixed(2)&&P.push(this._getLine(H.x+H.width,H.y,H.x+H.width,H.y+H.height,K,A));for(var Q=0;Q<P.length;Q++)$.set(P[Q],"seriesIndex",F),this.shapeList.push(P[Q])}},_getLine:function(_,$,F,E,B,A){var D={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:_,yStart:$,xEnd:F,yEnd:E,lineWidth:B,strokeColor:A}};return new C(D)},_buildBreadcrumb:function(C,B,O,I){for(var E=[],G=C;G;)E.unshift(G.data.name),G=G.parent;for(var F=this.series[B],N=this.query(F,"itemStyle.normal.breadcrumb.textStyle")||{},K=this.query(F,"itemStyle.emphasis.breadcrumb.textStyle")||{},D={y:I+10,textBaseline:"top",textAlign:"left",color:N.color,textFont:this.getFont(N)},A={brushType:"fill",color:K.color||H.lift(N.color,-0.3),textFont:this.getFont(K)},_=0;_<E.length;_++){var M=new J({zlevel:this.getZlevelBase(),z:this.getZBase(),style:L.merge({x:O,text:E[_]+(E.length-1-_?" > ":"")},D),clickable:!0,highlightStyle:A});$.set(M,"seriesIndex",B),$.set(M,"name",E[_]),O+=M.getRect(M.style).width,this.shapeList.push(M)}},__onclick:function(A){var _=A.target;if(_){var E=$.get(_,"seriesIndex"),D=$.get(_,"name"),C=this._treesMap[E],B=C.getNodeById(D);B&&B.children.length&&this._buildTreemap(B,E)}}},L.inherits(_,G),I("../chart").define("treemap",_),_}),C("echarts/component/dataRange",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../util/shape/HandlePolygon","../config","zrender/tool/util","zrender/tool/event","zrender/tool/area","zrender/tool/color","../component"],function(A){function _(_,$,D,B,A){I.call(this,_,$,D,B,A);var C=this;C._ondrift=function(_,$){return C.__ondrift(this,_,$)},C._ondragend=function(){return C.__ondragend()},C._dataRangeSelected=function($){return C.__dataRangeSelected($)},C._dispatchHoverLink=function($){return C.__dispatchHoverLink($)},C._onhoverlink=function($){return C.__onhoverlink($)},this._selectedMap={},this._range={},this.refresh(B),$.bind(E.EVENT.HOVER,this._onhoverlink)}var I=A("./base"),F=A("zrender/shape/Text"),C=A("zrender/shape/Rectangle"),B=A("../util/shape/HandlePolygon"),E=A("../config");E.dataRange={zlevel:0,z:4,show:!0,orient:"vertical",x:"left",y:"bottom",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,precision:0,splitNumber:5,splitList:null,calculable:!1,selectedMode:!0,hoverLink:!0,realtime:!0,color:["#006edd","#e0ffff"],textStyle:{color:"#333"}};var D=A("zrender/tool/util"),H=A("zrender/tool/event"),G=A("zrender/tool/area"),$=A("zrender/tool/color");return _.prototype={type:E.COMPONENT_TYPE_DATARANGE,_textGap:10,_buildShape:function(){if(this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._isContinuity()?this._buildGradient():this._buildItem(),this.dataRangeOption.show)for(var _=0,$=this.shapeList.length;$>_;_++)this.zr.addShape(this.shapeList[_]);this._syncShapeFromRange()},_buildItem:function(){var E,D,P,H,L=this._valueTextList,K=L.length,O=this.getFont(this.dataRangeOption.textStyle),B=this._itemGroupLocation.x,I=this._itemGroupLocation.y,J=this.dataRangeOption.itemWidth,A=this.dataRangeOption.itemHeight,_=this.dataRangeOption.itemGap,$=G.getTextHeight("\u56fd",O);"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(B=this._itemGroupLocation.x+this._itemGroupLocation.width-J);var N=!0;this.dataRangeOption.text&&(N=!1,this.dataRangeOption.text[0]&&(P=this._getTextShape(B,I,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?B+=G.getTextWidth(this.dataRangeOption.text[0],O)+this._textGap:(I+=$+this._textGap,P.style.y+=$/2+this._textGap,P.style.textBaseline="bottom"),this.shapeList.push(new F(P))));for(var M=0;K>M;M++)E=L[M],H=this.getColorByIndex(M),D=this._getItemShape(B,I,J,A,this._selectedMap[M]?H:"#ccc"),D._idx=M,D.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(D.clickable=!0,D.onclick=this._dataRangeSelected),this.shapeList.push(new C(D)),N&&(P={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:B+J+5,y:I,color:this._selectedMap[M]?this.dataRangeOption.textStyle.color:"#ccc",text:L[M],textFont:O,textBaseline:"top"},highlightStyle:{brushType:"fill"}},"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(P.style.x-=J+10,P.style.textAlign="right"),P._idx=M,P.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(P.clickable=!0,P.onclick=this._dataRangeSelected),this.shapeList.push(new F(P))),"horizontal"==this.dataRangeOption.orient?B+=J+(N?5:0)+(N?G.getTextWidth(E,O):0)+_:I+=A+_;!N&&this.dataRangeOption.text[1]&&("horizontal"==this.dataRangeOption.orient?B=B-_+this._textGap:I=I-_+this._textGap,P=this._getTextShape(B,I,this.dataRangeOption.text[1]),"horizontal"!=this.dataRangeOption.orient&&(P.style.y-=5,P.style.textBaseline="top"),this.shapeList.push(new F(P)))},_buildGradient:function(){var D,L,N=this.getFont(this.dataRangeOption.textStyle),I=this._itemGroupLocation.x,H=this._itemGroupLocation.y,K=this.dataRangeOption.itemWidth,B=this.dataRangeOption.itemHeight,E=G.getTextHeight("\u56fd",N),O=10,M=!0;this.dataRangeOption.text&&(M=!1,this.dataRangeOption.text[0]&&(L=this._getTextShape(I,H,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?I+=G.getTextWidth(this.dataRangeOption.text[0],N)+this._textGap:(H+=E+this._textGap,L.style.y+=E/2+this._textGap,L.style.textBaseline="bottom"),this.shapeList.push(new F(L))));for(var _=A("zrender/tool/color"),$=1/(this.dataRangeOption.color.length-1),J=[],P=0,Q=this.dataRangeOption.color.length;Q>P;P++)J.push([P*$,this.dataRangeOption.color[P]]);"horizontal"==this.dataRangeOption.orient?(D={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:I,y:H,width:K*O,height:B,color:_.getLinearGradient(I,H,I+K*O,H,J)},hoverable:!1},I+=K*O+this._textGap):(D={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:I,y:H,width:K,height:B*O,color:_.getLinearGradient(I,H,I,H+B*O,J)},hoverable:!1},H+=B*O+this._textGap),this.shapeList.push(new C(D)),this._calculableLocation=D.style,this.dataRangeOption.calculable&&(this._buildFiller(),this._bulidMask(),this._bulidHandle()),this._buildIndicator(),!M&&this.dataRangeOption.text[1]&&(L=this._getTextShape(I,H,this.dataRangeOption.text[1]),this.shapeList.push(new F(L)))},_buildIndicator:function(){var _,$,F=this._calculableLocation.x,E=this._calculableLocation.y,A=this._calculableLocation.width,D=this._calculableLocation.height,C=5;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(_=[[F,E+D],[F-C,E+D+C],[F+C,E+D+C]],$="bottom"):(_=[[F,E],[F-C,E-C],[F+C,E-C]],$="top"):"right"!=this.dataRangeOption.x?(_=[[F+A,E],[F+A+C,E-C],[F+A+C,E+C]],$="right"):(_=[[F,E],[F-C,E-C],[F-C,E+C]],$="left"),this._indicatorShape={style:{pointList:_,color:"#fff",__rect:{x:Math.min(_[0][0],_[1][0]),y:Math.min(_[0][1],_[1][1]),width:C*("horizontal"==this.dataRangeOption.orient?2:1),height:C*("horizontal"==this.dataRangeOption.orient?1:2)}},highlightStyle:{brushType:"fill",textPosition:$,textColor:this.dataRangeOption.textStyle.color},hoverable:!1},this._indicatorShape=new B(this._indicatorShape)},_buildFiller:function(){this._fillerShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:this._calculableLocation.x,y:this._calculableLocation.y,width:this._calculableLocation.width,height:this._calculableLocation.height,color:"rgba(255,255,255,0)"},highlightStyle:{strokeColor:"rgba(255,255,255,0.5)",lineWidth:1},draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,onmousemove:this._dispatchHoverLink,_type:"filler"},this._fillerShape=new C(this._fillerShape),this.shapeList.push(this._fillerShape)},_bulidHandle:function(){var M,C,K,H,N,F,E,J,A=this._calculableLocation.x,D=this._calculableLocation.y,O=this._calculableLocation.width,L=this._calculableLocation.height,_=this.getFont(this.dataRangeOption.textStyle),$=G.getTextHeight("\u56fd",_),I=Math.max(G.getTextWidth(this._textFormat(this.dataRangeOption.max),_),G.getTextWidth(this._textFormat(this.dataRangeOption.min),_))+2;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(M=[[A,D],[A,D+L+$],[A-$,D+L+$],[A-1,D+L],[A-1,D]],C=A-I/2-$,K=D+L+$/2+2,H={x:A-I-$,y:D+L,width:I+$,height:$},N=[[A+O,D],[A+O,D+L+$],[A+O+$,D+L+$],[A+O+1,D+L],[A+O+1,D]],F=A+O+I/2+$,E=K,J={x:A+O,y:D+L,width:I+$,height:$}):(M=[[A,D+L],[A,D-$],[A-$,D-$],[A-1,D],[A-1,D+L]],C=A-I/2-$,K=D-$/2-2,H={x:A-I-$,y:D-$,width:I+$,height:$},N=[[A+O,D+L],[A+O,D-$],[A+O+$,D-$],[A+O+1,D],[A+O+1,D+L]],F=A+O+I/2+$,E=K,J={x:A+O,y:D-$,width:I+$,height:$}):(I+=$,"right"!=this.dataRangeOption.x?(M=[[A,D],[A+O+$,D],[A+O+$,D-$],[A+O,D-1],[A,D-1]],C=A+O+I/2+$/2,K=D-$/2,H={x:A+O,y:D-$,width:I+$,height:$},N=[[A,D+L],[A+O+$,D+L],[A+O+$,D+$+L],[A+O,D+1+L],[A,D+L+1]],F=C,E=D+L+$/2,J={x:A+O,y:D+L,width:I+$,height:$}):(M=[[A+O,D],[A-$,D],[A-$,D-$],[A,D-1],[A+O,D-1]],C=A-I/2-$/2,K=D-$/2,H={x:A-I-$,y:D-$,width:I+$,height:$},N=[[A+O,D+L],[A-$,D+L],[A-$,D+$+L],[A,D+1+L],[A+O,D+L+1]],F=C,E=D+L+$/2,J={x:A-I-$,y:D+L,width:I+$,height:$})),this._startShape={style:{pointList:M,text:this._textFormat(this.dataRangeOption.max),textX:C,textY:K,textFont:_,color:this.getColor(this.dataRangeOption.max),rect:H,x:M[0][0],y:M[0][1],_x:M[0][0],_y:M[0][1]}},this._startShape.highlightStyle={strokeColor:this._startShape.style.color,lineWidth:1},this._endShape={style:{pointList:N,text:this._textFormat(this.dataRangeOption.min),textX:F,textY:E,textFont:_,color:this.getColor(this.dataRangeOption.min),rect:J,x:N[0][0],y:N[0][1],_x:N[0][0],_y:N[0][1]}},this._endShape.highlightStyle={strokeColor:this._endShape.style.color,lineWidth:1},this._startShape.zlevel=this._endShape.zlevel=this.getZlevelBase(),this._startShape.z=this._endShape.z=this.getZBase()+1,this._startShape.draggable=this._endShape.draggable=!0,this._startShape.ondrift=this._endShape.ondrift=this._ondrift,this._startShape.ondragend=this._endShape.ondragend=this._ondragend,this._startShape.style.textColor=this._endShape.style.textColor=this.dataRangeOption.textStyle.color,this._startShape.style.textAlign=this._endShape.style.textAlign="center",this._startShape.style.textPosition=this._endShape.style.textPosition="specific",this._startShape.style.textBaseline=this._endShape.style.textBaseline="middle",this._startShape.style.width=this._endShape.style.width=0,this._startShape.style.height=this._endShape.style.height=0,this._startShape.style.textPosition=this._endShape.style.textPosition="specific",this._startShape=new B(this._startShape),this._endShape=new B(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_bulidMask:function(){var _=this._calculableLocation.x,$=this._calculableLocation.y,B=this._calculableLocation.width,A=this._calculableLocation.height;this._startMask={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:_,y:$,width:"horizontal"==this.dataRangeOption.orient?0:B,height:"horizontal"==this.dataRangeOption.orient?A:0,color:"#ccc"},hoverable:!1},this._endMask={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:"horizontal"==this.dataRangeOption.orient?_+B:_,y:"horizontal"==this.dataRangeOption.orient?$:$+A,width:"horizontal"==this.dataRangeOption.orient?0:B,height:"horizontal"==this.dataRangeOption.orient?A:0,color:"#ccc"},hoverable:!1},this._startMask=new C(this._startMask),this._endMask=new C(this._endMask),this.shapeList.push(this._startMask),this.shapeList.push(this._endMask)},_buildBackground:function(){var $=this.reformCssArray(this.dataRangeOption.padding);this.shapeList.push(new C({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-$[3],y:this._itemGroupLocation.y-$[0],width:this._itemGroupLocation.width+$[3]+$[1],height:this._itemGroupLocation.height+$[0]+$[2],brushType:0===this.dataRangeOption.borderWidth?"fill":"both",color:this.dataRangeOption.backgroundColor,strokeColor:this.dataRangeOption.borderColor,lineWidth:this.dataRangeOption.borderWidth}}))},_getItemGroupLocation:function(){var L=this._valueTextList,B=L.length,J=this.dataRangeOption.itemGap,F=this.dataRangeOption.itemWidth,N=this.dataRangeOption.itemHeight,M=0,E=0,D=this.getFont(this.dataRangeOption.textStyle),I=G.getTextHeight("\u56fd",D),A=10;if("horizontal"==this.dataRangeOption.orient){if(this.dataRangeOption.text||this._isContinuity())M=(this._isContinuity()?F*A+J:B*(F+J))+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[0]?G.getTextWidth(this.dataRangeOption.text[0],D)+this._textGap:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?G.getTextWidth(this.dataRangeOption.text[1],D)+this._textGap:0);else{F+=5;for(var C=0;B>C;C++)M+=F+G.getTextWidth(L[C],D)+J}M-=J,E=Math.max(I,N)}else{var O;if(this.dataRangeOption.text||this._isContinuity())E=(this._isContinuity()?N*A+J:B*(N+J))+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[0]?this._textGap+I:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?this._textGap+I:0),O=Math.max(G.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[0]||"",D),G.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[1]||"",D)),M=Math.max(F,O);else{E=(N+J)*B,F+=5,O=0;for(C=0;B>C;C++)O=Math.max(O,G.getTextWidth(L[C],D));M=F+O}E-=J}var K,_=this.reformCssArray(this.dataRangeOption.padding),$=this.zr.getWidth();switch(this.dataRangeOption.x){case"center":K=Math.floor(($-M)/2);break;case"left":K=_[3]+this.dataRangeOption.borderWidth;break;case"right":K=$-M-_[1]-this.dataRangeOption.borderWidth;break;default:K=this.parsePercent(this.dataRangeOption.x,$),K=isNaN(K)?0:K}var H,P=this.zr.getHeight();switch(this.dataRangeOption.y){case"top":H=_[0]+this.dataRangeOption.borderWidth;break;case"bottom":H=P-E-_[2]-this.dataRangeOption.borderWidth;break;case"center":H=Math.floor((P-E)/2);break;default:H=this.parsePercent(this.dataRangeOption.y,P),H=isNaN(H)?0:H}if(this.dataRangeOption.calculable){var Q=Math.max(G.getTextWidth(this.dataRangeOption.max,D),G.getTextWidth(this.dataRangeOption.min,D))+I;"horizontal"==this.dataRangeOption.orient?(Q>K&&(K=Q),K+M+Q>$&&(K-=Q)):(I>H&&(H=I),H+E+I>P&&(H-=I))}return{x:K,y:H,width:M,height:E}},_getTextShape:function(_,$,A){return{zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:"horizontal"==this.dataRangeOption.orient?_:this._itemGroupLocation.x+this._itemGroupLocation.width/2,y:"horizontal"==this.dataRangeOption.orient?this._itemGroupLocation.y+this._itemGroupLocation.height/2:$,color:this.dataRangeOption.textStyle.color,text:A,textFont:this.getFont(this.dataRangeOption.textStyle),textBaseline:"horizontal"==this.dataRangeOption.orient?"middle":"top",textAlign:"horizontal"==this.dataRangeOption.orient?"left":"center"},hoverable:!1}},_getItemShape:function(_,$,C,B,A){return{zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:_,y:$+1,width:C,height:B-2,color:A},highlightStyle:{strokeColor:A,lineWidth:1}}},__ondrift:function(_,$,E){var D=this._calculableLocation.x,B=this._calculableLocation.y,A=this._calculableLocation.width,C=this._calculableLocation.height;return"horizontal"==this.dataRangeOption.orient?_.style.x+$<=D?_.style.x=D:_.style.x+$+_.style.width>=D+A?_.style.x=D+A-_.style.width:_.style.x+=$:_.style.y+E<=B?_.style.y=B:_.style.y+E+_.style.height>=B+C?_.style.y=B+C-_.style.height:_.style.y+=E,"filler"==_._type?this._syncHandleShape():this._syncFillerShape(_),this.dataRangeOption.realtime&&this._dispatchDataRange(),!0},__ondragend:function(){this.isDragend=!0},ondragend:function(_,$){this.isDragend&&_.target&&($.dragOut=!0,$.dragIn=!0,this.dataRangeOption.realtime||this._dispatchDataRange(),$.needRefresh=!1,this.isDragend=!1)},_syncShapeFromRange:function(){var _=this.dataRangeOption.range||{},$=_.start,C=_.end;if($>C&&($=[C,C=$][0]),this._range.end=null!=$?$:null!=this._range.end?this._range.end:0,this._range.start=null!=C?C:null!=this._range.start?this._range.start:100,100!=this._range.start||0!==this._range.end){if("horizontal"==this.dataRangeOption.orient){var B=this._fillerShape.style.width;this._fillerShape.style.x+=B*(100-this._range.start)/100,this._fillerShape.style.width=B*(this._range.start-this._range.end)/100}else{var A=this._fillerShape.style.height;this._fillerShape.style.y+=A*(100-this._range.start)/100,this._fillerShape.style.height=A*(this._range.start-this._range.end)/100}this.zr.modShape(this._fillerShape.id),this._syncHandleShape()}},_syncHandleShape:function(){var _=this._calculableLocation.x,$=this._calculableLocation.y,B=this._calculableLocation.width,A=this._calculableLocation.height;"horizontal"==this.dataRangeOption.orient?(this._startShape.style.x=this._fillerShape.style.x,this._startMask.style.width=this._startShape.style.x-_,this._endShape.style.x=this._fillerShape.style.x+this._fillerShape.style.width,this._endMask.style.x=this._endShape.style.x,this._endMask.style.width=_+B-this._endShape.style.x,this._range.start=Math.ceil(100-(this._startShape.style.x-_)/B*100),this._range.end=Math.floor(100-(this._endShape.style.x-_)/B*100)):(this._startShape.style.y=this._fillerShape.style.y,this._startMask.style.height=this._startShape.style.y-$,this._endShape.style.y=this._fillerShape.style.y+this._fillerShape.style.height,this._endMask.style.y=this._endShape.style.y,this._endMask.style.height=$+A-this._endShape.style.y,this._range.start=Math.ceil(100-(this._startShape.style.y-$)/A*100),this._range.end=Math.floor(100-(this._endShape.style.y-$)/A*100)),this._syncShape()},_syncFillerShape:function(_){var $,E,D=this._calculableLocation.x,B=this._calculableLocation.y,A=this._calculableLocation.width,C=this._calculableLocation.height;"horizontal"==this.dataRangeOption.orient?($=this._startShape.style.x,E=this._endShape.style.x,_.id==this._startShape.id&&$>=E?(E=$,this._endShape.style.x=$):_.id==this._endShape.id&&$>=E&&($=E,this._startShape.style.x=$),this._fillerShape.style.x=$,this._fillerShape.style.width=E-$,this._startMask.style.width=$-D,this._endMask.style.x=E,this._endMask.style.width=D+A-E,this._range.start=Math.ceil(100-($-D)/A*100),this._range.end=Math.floor(100-(E-D)/A*100)):($=this._startShape.style.y,E=this._endShape.style.y,_.id==this._startShape.id&&$>=E?(E=$,this._endShape.style.y=$):_.id==this._endShape.id&&$>=E&&($=E,this._startShape.style.y=$),this._fillerShape.style.y=$,this._fillerShape.style.height=E-$,this._startMask.style.height=$-B,this._endMask.style.y=E,this._endMask.style.height=B+C-E,this._range.start=Math.ceil(100-($-B)/C*100),this._range.end=Math.floor(100-(E-B)/C*100)),this._syncShape()},_syncShape:function(){this._startShape.position=[this._startShape.style.x-this._startShape.style._x,this._startShape.style.y-this._startShape.style._y],this._startShape.style.text=this._textFormat(this._gap*this._range.start+this.dataRangeOption.min),this._startShape.style.color=this._startShape.highlightStyle.strokeColor=this.getColor(this._gap*this._range.start+this.dataRangeOption.min),this._endShape.position=[this._endShape.style.x-this._endShape.style._x,this._endShape.style.y-this._endShape.style._y],this._endShape.style.text=this._textFormat(this._gap*this._range.end+this.dataRangeOption.min),this._endShape.style.color=this._endShape.highlightStyle.strokeColor=this.getColor(this._gap*this._range.end+this.dataRangeOption.min),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._startMask.id),this.zr.modShape(this._endMask.id),this.zr.modShape(this._fillerShape.id),this.zr.refreshNextFrame()},_dispatchDataRange:function(){this.messageCenter.dispatch(E.EVENT.DATA_RANGE,null,{range:{start:this._range.end,end:this._range.start}},this.myChart)},__dataRangeSelected:function(_){if("single"===this.dataRangeOption.selectedMode)for(var $ in this._selectedMap)this._selectedMap[$]=!1;var C=_.target._idx;this._selectedMap[C]=!this._selectedMap[C];var B,A;this._useCustomizedSplit()?(B=this._splitList[C].max,A=this._splitList[C].min):(B=(this._colorList.length-C)*this._gap+this.dataRangeOption.min,A=B-this._gap),this.messageCenter.dispatch(E.EVENT.DATA_RANGE_SELECTED,_.event,{selected:this._selectedMap,target:C,valueMax:B,valueMin:A},this.myChart),this.messageCenter.dispatch(E.EVENT.REFRESH,null,null,this.myChart)},__dispatchHoverLink:function(_){var $,D;if(this.dataRangeOption.calculable){var C,B=this.dataRangeOption.max-this.dataRangeOption.min;C="horizontal"==this.dataRangeOption.orient?(1-(H.getX(_.event)-this._calculableLocation.x)/this._calculableLocation.width)*B:(1-(H.getY(_.event)-this._calculableLocation.y)/this._calculableLocation.height)*B,$=C-0.05*B,D=C+0.05*B}else if(this._useCustomizedSplit()){var A=_.target._idx;D=this._splitList[A].max,$=this._splitList[A].min}else{A=_.target._idx;D=(this._colorList.length-A)*this._gap+this.dataRangeOption.min,$=D-this._gap}this.messageCenter.dispatch(E.EVENT.DATA_RANGE_HOVERLINK,_.event,{valueMin:$,valueMax:D},this.myChart)},__onhoverlink:function(_){if(this.dataRangeOption.show&&this.dataRangeOption.hoverLink&&this._indicatorShape&&_&&null!=_.seriesIndex&&null!=_.dataIndex){var $=_.value;if(""===$||isNaN($))return;$<this.dataRangeOption.min?$=this.dataRangeOption.min:$>this.dataRangeOption.max&&($=this.dataRangeOption.max),this._indicatorShape.position="horizontal"==this.dataRangeOption.orient?[(this.dataRangeOption.max-$)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._calculableLocation.width,0]:[0,(this.dataRangeOption.max-$)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._calculableLocation.height],this._indicatorShape.style.text=this._textFormat(_.value),this._indicatorShape.style.color=this.getColor($),this.zr.addHoverShape(this._indicatorShape)}},_textFormat:function(_,$){var A=this.dataRangeOption;if(_!==-Number.MAX_VALUE&&(_=(+_).toFixed(A.precision)),null!=$&&$!==Number.MAX_VALUE&&($=(+$).toFixed(A.precision)),A.formatter){if("string"==typeof A.formatter)return A.formatter.replace("{value}",_===-Number.MAX_VALUE?"min":_).replace("{value2}",$===Number.MAX_VALUE?"max":$);if("function"==typeof A.formatter)return A.formatter.call(this.myChart,_,$)}return null==$?_:_===-Number.MAX_VALUE?"< "+$:$===Number.MAX_VALUE?"> "+_:_+" - "+$},_isContinuity:function(){var $=this.dataRangeOption;return!($.splitList?$.splitList.length>0:$.splitNumber>0)||$.calculable},_useCustomizedSplit:function(){var $=this.dataRangeOption;return $.splitList&&$.splitList.length>0},_buildColorList:function(A){if(this._colorList=$.getGradientColors(this.dataRangeOption.color,Math.max((A-this.dataRangeOption.color.length)/(this.dataRangeOption.color.length-1),0)+1),this._colorList.length>A){for(var _=this._colorList.length,E=[this._colorList[0]],D=_/(A-1),C=1;A-1>C;C++)E.push(this._colorList[Math.floor(C*D)]);E.push(this._colorList[_-1]),this._colorList=E}if(this._useCustomizedSplit())for(var B=this._splitList,C=0,_=B.length;_>C;C++)B[C].color&&(this._colorList[C]=B[C].color)},_buildGap:function(_){if(!this._useCustomizedSplit()){var $=this.dataRangeOption.precision;for(this._gap=(this.dataRangeOption.max-this.dataRangeOption.min)/_;this._gap.toFixed($)-0!=this._gap&&5>$;)$++;this.dataRangeOption.precision=$,this._gap=((this.dataRangeOption.max-this.dataRangeOption.min)/_).toFixed($)-0}},_buildDataList:function(_){for(var $=this._valueTextList=[],E=this.dataRangeOption,D=this._useCustomizedSplit(),B=0;_>B;B++){this._selectedMap[B]=!0;var A="";if(D){var C=this._splitList[_-1-B];A=null!=C.label?C.label:null!=C.single?this._textFormat(C.single):this._textFormat(C.min,C.max)}else A=this._textFormat(B*this._gap+E.min,(B+1)*this._gap+E.min);$.unshift(A)}},_buildSplitList:function(){if(this._useCustomizedSplit())for(var _=this.dataRangeOption.splitList,$=this._splitList=[],D=0,C=_.length;C>D;D++){var B=_[D];if(!B||null==B.start&&null==B.end)throw new Error("Empty item exists in splitList!");var A={label:B.label,color:B.color};A.min=B.start,A.max=B.end,A.min>A.max&&(A.min=[A.max,A.max=A.min][0]),A.min===A.max&&(A.single=A.max),null==A.min&&(A.min=-Number.MAX_VALUE),null==A.max&&(A.max=Number.MAX_VALUE),$.push(A)}},refresh:function(_){if(_){this.option=_,this.option.dataRange=this.reformOption(this.option.dataRange);var $=this.dataRangeOption=this.option.dataRange;if(!this._useCustomizedSplit()&&(null==$.min||null==$.max))throw new Error("option.dataRange.min or option.dataRange.max has not been defined.");this.myChart.canvasSupported||($.realtime=!1);var A=this._isContinuity()?100:this._useCustomizedSplit()?$.splitList.length:$.splitNumber;this._buildSplitList(),this._buildColorList(A),this._buildGap(A),this._buildDataList(A)}this.clear(),this._buildShape()},getColor:function(_){if(isNaN(_))return null;var $;if(this._useCustomizedSplit()){for(var C=this._splitList,B=0,A=C.length;A>B;B++)if(C[B].min<=_&&C[B].max>=_){$=B;break}}else{if(this.dataRangeOption.min==this.dataRangeOption.max)return this._colorList[0];if(_<this.dataRangeOption.min?_=this.dataRangeOption.min:_>this.dataRangeOption.max&&(_=this.dataRangeOption.max),this.dataRangeOption.calculable&&(_-(this._gap*this._range.start+this.dataRangeOption.min)>0.00005||_-(this._gap*this._range.end+this.dataRangeOption.min)<-0.00005))return null;$=this._colorList.length-Math.ceil((_-this.dataRangeOption.min)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._colorList.length),$==this._colorList.length&&$--}return this._selectedMap[$]?this._colorList[$]:null},getColorByIndex:function($){return $>=this._colorList.length?$=this._colorList.length-1:0>$&&($=0),this._colorList[$]},onbeforDispose:function(){this.messageCenter.unbind(E.EVENT.HOVER,this._onhoverlink)}},D.inherits(_,I),A("../component").define("dataRange",_),_}),C("echarts/chart/bar",["require","./base","zrender/shape/Rectangle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(_){function $(_,$,C,B,A){F.call(this,_,$,C,B,A),this.refresh(B)}var F=_("./base"),E=_("zrender/shape/Rectangle");_("../component/axis"),_("../component/grid"),_("../component/dataZoom");var B=_("../config");B.bar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}},emphasis:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}}}};var A=_("../util/ecData"),D=_("zrender/tool/util"),C=_("zrender/tool/color");return $.prototype={type:B.CHART_TYPE_BAR,_buildShape:function(){this._buildPosition()},_buildNormal:function(j,W,f,k,a){for(var Z,e,b,V,Y,l,i,U,T,c,R,n,h=this.series,o=f[0][0],X=h[o],P="horizontal"==a,M=this.component.xAxis,m=this.component.yAxis,F=P?M.getAxis(X.xAxisIndex):m.getAxis(X.yAxisIndex),G=this._mapSize(F,f),g=G.gap,H=G.barGap,_=G.barWidthMap,C=G.barMaxWidthMap,d=G.barWidth,L=G.barMinHeightMap,J=G.interval,O=this.deepQuery([this.ecTheme,B],"island.r"),Q=0,$=W;$>Q&&null!=F.getNameByIndex(Q);Q++){P?V=F.getCoordByIndex(Q)-g/2:Y=F.getCoordByIndex(Q)+g/2;for(var D=0,K=f.length;K>D;D++){var A=h[f[D][0]].yAxisIndex||0,I=h[f[D][0]].xAxisIndex||0;Z=P?m.getAxis(A):M.getAxis(I),i=l=T=U=Z.getCoord(0);for(var S=0,N=f[D].length;N>S;S++)o=f[D][S],X=h[o],R=X.data[Q],n=this.getDataFromOption(R,"-"),k[o]=k[o]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},b=Math.min(C[o]||Number.MAX_VALUE,_[o]||d),"-"!==n&&(n>0?(e=S>0?Z.getCoordSize(n):P?i-Z.getCoord(n):Z.getCoord(n)-i,1===N&&L[o]>e&&(e=L[o]),P?(l-=e,Y=l):(V=l,l+=e)):0>n?(e=S>0?Z.getCoordSize(n):P?Z.getCoord(n)-T:T-Z.getCoord(n),1===N&&L[o]>e&&(e=L[o]),P?(Y=U,U+=e):(U-=e,V=U)):(e=0,P?(l-=e,Y=l):(V=l,l+=e)),k[o][Q]=P?V+b/2:Y-b/2,k[o].min>n&&(k[o].min=n,P?(k[o].minY=Y,k[o].minX=k[o][Q]):(k[o].minX=V+e,k[o].minY=k[o][Q])),k[o].max<n&&(k[o].max=n,P?(k[o].maxY=Y,k[o].maxX=k[o][Q]):(k[o].maxX=V+e,k[o].maxY=k[o][Q])),k[o].sum+=n,k[o].counter++,Q%J===0&&(c=this._getBarItem(o,Q,F.getNameByIndex(Q),V,Y-(P?0:b),P?b:e,P?e:b,P?"vertical":"horizontal"),this.shapeList.push(new E(c))));for(S=0,N=f[D].length;N>S;S++)o=f[D][S],X=h[o],R=X.data[Q],n=this.getDataFromOption(R,"-"),b=Math.min(C[o]||Number.MAX_VALUE,_[o]||d),"-"==n&&this.deepQuery([R,X,this.option],"calculable")&&(P?(l-=O,Y=l):(V=l,l+=O),c=this._getBarItem(o,Q,F.getNameByIndex(Q),V,Y-(P?0:b),P?b:O,P?O:b,P?"vertical":"horizontal"),c.hoverable=!1,c.draggable=!1,c.style.lineWidth=1,c.style.brushType="stroke",c.style.strokeColor=X.calculableHolderColor||this.ecTheme.calculableHolderColor||B.calculableHolderColor,this.shapeList.push(new E(c)));P?V+=b+H:Y-=b+H}}this._calculMarkMapXY(k,f,P?"y":"x")},_buildHorizontal:function(_,$,B,A){return this._buildNormal(_,$,B,A,"horizontal")},_buildVertical:function(_,$,B,A){return this._buildNormal(_,$,B,A,"vertical")},_buildOther:function(U,I,Q,W){for(var V=this.series,M=0,L=Q.length;L>M;M++)for(var P=0,N=Q[M].length;N>P;P++){var H=Q[M][P],K=V[H],X=K.xAxisIndex||0,T=this.component.xAxis.getAxis(X),G=T.getCoord(0),F=K.yAxisIndex||0,O=this.component.yAxis.getAxis(F),D=O.getCoord(0);W[H]=W[H]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var Z=0,S=K.data.length;S>Z;Z++){var a=K.data[Z],J=this.getDataFromOption(a,"-");if(J instanceof Array){var C,B,Y=T.getCoord(J[0]),$=O.getCoord(J[1]),_=[a,K],R=this.deepQuery(_,"barWidth")||10,A=this.deepQuery(_,"barHeight");null!=A?(C="horizontal",J[0]>0?(R=Y-G,Y-=R):R=J[0]<0?G-Y:0,B=this._getBarItem(H,Z,J[0],Y,$-A/2,R,A,C)):(C="vertical",J[1]>0?A=D-$:J[1]<0?(A=$-D,$-=A):A=0,B=this._getBarItem(H,Z,J[0],Y-R/2,$,R,A,C)),this.shapeList.push(new E(B)),Y=T.getCoord(J[0]),$=O.getCoord(J[1]),W[H].min0>J[0]&&(W[H].min0=J[0],W[H].minY0=$,W[H].minX0=Y),W[H].max0<J[0]&&(W[H].max0=J[0],W[H].maxY0=$,W[H].maxX0=Y),W[H].sum0+=J[0],W[H].counter0++,W[H].min1>J[1]&&(W[H].min1=J[1],W[H].minY1=$,W[H].minX1=Y),W[H].max1<J[1]&&(W[H].max1=J[1],W[H].maxY1=$,W[H].maxX1=Y),W[H].sum1+=J[1],W[H].counter1++}}}this._calculMarkMapXY(W,Q,"xy")},_mapSize:function(I,_,G){var D,K,J=this._findSpecialBarSzie(_,G),C=J.barWidthMap,B=J.barMaxWidthMap,F=J.barMinHeightMap,E=J.sBarWidthCounter,$=J.sBarWidthTotal,A=J.barGap,L=J.barCategoryGap,H=1;if(_.length!=E){if(G)D=I.getGap(),A=0,K=+(D/_.length).toFixed(2),0>=K&&(H=Math.floor(_.length/D),K=1);else if(D="string"==typeof L&&L.match(/%$/)?(I.getGap()*(100-parseFloat(L))/100).toFixed(2)-0:I.getGap()-L,"string"==typeof A&&A.match(/%$/)?(A=parseFloat(A)/100,K=+((D-$)/((_.length-1)*A+_.length-E)).toFixed(2),A=K*A):(A=parseFloat(A),K=+((D-$-A*(_.length-1))/(_.length-E)).toFixed(2)),0>=K)return this._mapSize(I,_,!0)}else if(D=E>1?"string"==typeof L&&L.match(/%$/)?+(I.getGap()*(100-parseFloat(L))/100).toFixed(2):I.getGap()-L:$,K=0,A=E>1?+((D-$)/(E-1)).toFixed(2):0,0>A)return this._mapSize(I,_,!0);return this._recheckBarMaxWidth(_,C,B,F,D,K,A,H)},_findSpecialBarSzie:function(N,B){for(var K,G,P,O,F=this.series,E={},J={},H={},A=0,D=0,Q=0,M=N.length;M>Q;Q++)for(var _={barWidth:!1,barMaxWidth:!1},$=0,I=N[Q].length;I>$;$++){var R=N[Q][$],S=F[R];if(!B){if(_.barWidth)E[R]=K;else if(K=this.query(S,"barWidth"),null!=K){E[R]=K,D+=K,A++,_.barWidth=!0;for(var L=0,T=$;T>L;L++){var C=N[Q][L];E[C]=K}}if(_.barMaxWidth)J[R]=G;else if(G=this.query(S,"barMaxWidth"),null!=G){J[R]=G,_.barMaxWidth=!0;for(L=0,T=$;T>L;L++){C=N[Q][L];J[C]=G}}}H[R]=this.query(S,"barMinHeight"),P=null!=P?P:this.query(S,"barGap"),O=null!=O?O:this.query(S,"barCategoryGap")}return{barWidthMap:E,barMaxWidthMap:J,barMinHeightMap:H,sBarWidth:K,sBarMaxWidth:G,sBarWidthCounter:A,sBarWidthTotal:D,barGap:P,barCategoryGap:O}},_recheckBarMaxWidth:function(A,_,I,F,C,B,E,D){for(var H=0,G=A.length;G>H;H++){var $=A[H][0];I[$]&&I[$]<B&&(C-=B-I[$])}return{barWidthMap:_,barMaxWidthMap:I,barMinHeightMap:F,gap:C,barWidth:B,barGap:E,interval:D}},_getBarItem:function(P,D,L,H,Q,G,K,I){var B,F=this.series,S=F[P],O=S.data[D],_=this._sIndex2ColorMap[P],$=[O,S],J=this.deepMerge($,"itemStyle.normal"),T=this.deepMerge($,"itemStyle.emphasis"),V=J.barBorderWidth;B={zlevel:S.zlevel,z:S.z,clickable:this.deepQuery($,"clickable"),style:{x:H,y:Q,width:G,height:K,brushType:"both",color:this.getItemStyleColor(this.deepQuery($,"itemStyle.normal.color")||_,P,D,O),radius:J.barBorderRadius,lineWidth:V,strokeColor:J.barBorderColor},highlightStyle:{color:this.getItemStyleColor(this.deepQuery($,"itemStyle.emphasis.color"),P,D,O),radius:T.barBorderRadius,lineWidth:T.barBorderWidth,strokeColor:T.barBorderColor},_orient:I};var N=B.style;B.highlightStyle.color=B.highlightStyle.color||("string"==typeof N.color?C.lift(N.color,-0.3):N.color),N.x=Math.floor(N.x),N.y=Math.floor(N.y),N.height=Math.ceil(N.height),N.width=Math.ceil(N.width),V>0&&N.height>V&&N.width>V?(N.y+=V/2,N.height-=V,N.x+=V/2,N.width-=V):N.brushType="fill",B.highlightStyle.textColor=B.highlightStyle.color,B=this.addLabel(B,S,O,L,I);for(var W=[N,B.highlightStyle],E=0,R=W.length;R>E;E++){var M=W[E].textPosition;if("insideLeft"===M||"insideRight"===M||"insideTop"===M||"insideBottom"===M){var U=5;switch(M){case"insideLeft":W[E].textX=N.x+U,W[E].textY=N.y+N.height/2,W[E].textAlign="left",W[E].textBaseline="middle";break;case"insideRight":W[E].textX=N.x+N.width-U,W[E].textY=N.y+N.height/2,W[E].textAlign="right",W[E].textBaseline="middle";break;case"insideTop":W[E].textX=N.x+N.width/2,W[E].textY=N.y+U/2,W[E].textAlign="center",W[E].textBaseline="top";break;case"insideBottom":W[E].textX=N.x+N.width/2,W[E].textY=N.y+N.height-U/2,W[E].textAlign="center",W[E].textBaseline="bottom"}W[E].textPosition="specific",W[E].textColor=W[E].textColor||"#fff"}}return this.deepQuery([O,S,this.option],"calculable")&&(this.setCalculable(B),B.draggable=!0),A.pack(B,F[P],P,F[P].data[D],D,L),B},getMarkCoord:function(A,_){var I,F,C=this.series[A],B=this.xMarkMap[A],E=this.component.xAxis.getAxis(C.xAxisIndex),D=this.component.yAxis.getAxis(C.yAxisIndex);if(!_.type||"max"!==_.type&&"min"!==_.type&&"average"!==_.type){if(B.isHorizontal){I="string"==typeof _.xAxis&&E.getIndexByName?E.getIndexByName(_.xAxis):_.xAxis||0;var H=B[I];H=null!=H?H:"string"!=typeof _.xAxis&&E.getCoordByIndex?E.getCoordByIndex(_.xAxis||0):E.getCoord(_.xAxis||0),F=[H,D.getCoord(_.yAxis||0)]}else{I="string"==typeof _.yAxis&&D.getIndexByName?D.getIndexByName(_.yAxis):_.yAxis||0;var G=B[I];G=null!=G?G:"string"!=typeof _.yAxis&&D.getCoordByIndex?D.getCoordByIndex(_.yAxis||0):D.getCoord(_.yAxis||0),F=[E.getCoord(_.xAxis||0),G]}}else{var $=null!=_.valueIndex?_.valueIndex:null!=B.maxX0?"1":"";F=[B[_.type+"X"+$],B[_.type+"Y"+$],B[_.type+"Line"+$],B[_.type+$]]}return F},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(L,C){function J(){$--,0===$&&C&&C()}for(var G=this.series,M={},F=0,E=L.length;E>F;F++)M[L[F][0]]=L[F];for(var I,H,B,D,N,K,_,$=0,F=this.shapeList.length-1;F>=0;F--)if(K=A.get(this.shapeList[F],"seriesIndex"),M[K]&&!M[K][3]&&"rectangle"===this.shapeList[F].type){if(_=A.get(this.shapeList[F],"dataIndex"),N=G[K],M[K][2]&&_===N.data.length-1){this.zr.delShape(this.shapeList[F].id);continue}if(!M[K][2]&&0===_){this.zr.delShape(this.shapeList[F].id);continue}"horizontal"===this.shapeList[F]._orient?(D=this.component.yAxis.getAxis(N.yAxisIndex||0).getGap(),B=M[K][2]?-D:D,I=0):(H=this.component.xAxis.getAxis(N.xAxisIndex||0).getGap(),I=M[K][2]?H:-H,B=0),this.shapeList[F].position=[0,0],$++,this.zr.animate(this.shapeList[F].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[I,B]}).done(J).start()}$||C&&C()}},D.inherits($,F),_("../chart").define("bar",$),$}),C("echarts/chart/line",["require","./base","zrender/shape/Polyline","../util/shape/Icon","../util/shape/HalfSmoothPolygon","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(A){function _(_,$,C,B,A){F.call(this,_,$,C,B,A),this.refresh(B)}function I(J,_,H){var E=_.x,K=_.y,D=_.width,C=_.height,G=C/2;_.symbol.match("empty")&&(J.fillStyle="#fff"),_.brushType="both";var F=_.symbol.replace("empty","").toLowerCase();F.match("star")?(G=F.replace("star","")-0||5,K-=1,F="star"):("rectangle"===F||"arrow"===F)&&(E+=(D-C)/2,D=C);var $="";if(F.match("image")&&($=F.replace(new RegExp("^image:\\/\\/"),""),F="image",E+=Math.round((D-C)/2)-1,D=C+=2),F=B.prototype.iconLibrary[F]){var A=_.x,L=_.y;J.moveTo(A,L+G),J.lineTo(A+5,L+G),J.moveTo(A+_.width-5,L+G),J.lineTo(A+_.width,L+G);var I=this;F(J,{x:E+4,y:K+4,width:D-8,height:C-8,n:G,image:$},function(){I.modSelf(),H()})}else J.moveTo(E,K+G),J.lineTo(E+D,K+G)}var F=A("./base"),C=A("zrender/shape/Polyline"),B=A("../util/shape/Icon"),E=A("../util/shape/HalfSmoothPolygon");A("../component/axis"),A("../component/grid"),A("../component/dataZoom");var D=A("../config");D.line={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,dataFilter:"nearest",itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid",shadowColor:"rgba(0,0,0,0)",shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0}},emphasis:{label:{show:!1}}},symbolSize:2,showAllSymbol:!1};var H=A("../util/ecData"),G=A("zrender/tool/util"),$=A("zrender/tool/color");return _.prototype={type:D.CHART_TYPE_LINE,_buildShape:function(){this.finalPLMap={},this._buildPosition()},_buildHorizontal:function(R,F,O,K){for(var T,S,J,I,N,L,E,H,U,Q=this.series,D=O[0][0],C=Q[D],M=this.component.xAxis.getAxis(C.xAxisIndex||0),B={},W=0,P=F;P>W&&null!=M.getNameByIndex(W);W++){S=M.getCoordByIndex(W);for(var X=0,G=O.length;G>X;X++){T=this.component.yAxis.getAxis(Q[O[X][0]].yAxisIndex||0),N=I=E=L=T.getCoord(0);for(var A=0,_=O[X].length;_>A;A++)D=O[X][A],C=Q[D],H=C.data[W],U=this.getDataFromOption(H,"-"),B[D]=B[D]||[],K[D]=K[D]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(I-=A>0?T.getCoordSize(U):N-T.getCoord(U),J=I):0>U&&(L+=A>0?T.getCoordSize(U):T.getCoord(U)-E,J=L),B[D].push([S,J,W,M.getNameByIndex(W),S,N]),K[D].min>U&&(K[D].min=U,K[D].minY=J,K[D].minX=S),K[D].max<U&&(K[D].max=U,K[D].maxY=J,K[D].maxX=S),K[D].sum+=U,K[D].counter++):B[D].length>0&&(this.finalPLMap[D]=this.finalPLMap[D]||[],this.finalPLMap[D].push(B[D]),B[D]=[])}I=this.component.grid.getY();for(var V,X=0,G=O.length;G>X;X++)for(A=0,_=O[X].length;_>A;A++)D=O[X][A],C=Q[D],H=C.data[W],U=this.getDataFromOption(H,"-"),"-"==U&&this.deepQuery([H,C,this.option],"calculable")&&(V=this.deepQuery([H,C],"symbolSize"),I+=2*V+5,J=I,this.shapeList.push(this._getCalculableItem(D,W,M.getNameByIndex(W),S,J,"horizontal")))}for(var $ in B)B[$].length>0&&(this.finalPLMap[$]=this.finalPLMap[$]||[],this.finalPLMap[$].push(B[$]),B[$]=[]);this._calculMarkMapXY(K,O,"y"),this._buildBorkenLine(R,this.finalPLMap,M,"horizontal")},_buildVertical:function(R,F,O,K){for(var T,S,J,I,N,L,E,H,U,Q=this.series,D=O[0][0],C=Q[D],M=this.component.yAxis.getAxis(C.yAxisIndex||0),B={},W=0,P=F;P>W&&null!=M.getNameByIndex(W);W++){J=M.getCoordByIndex(W);for(var X=0,G=O.length;G>X;X++){T=this.component.xAxis.getAxis(Q[O[X][0]].xAxisIndex||0),N=I=E=L=T.getCoord(0);for(var A=0,_=O[X].length;_>A;A++)D=O[X][A],C=Q[D],H=C.data[W],U=this.getDataFromOption(H,"-"),B[D]=B[D]||[],K[D]=K[D]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(I+=A>0?T.getCoordSize(U):T.getCoord(U)-N,S=I):0>U&&(L-=A>0?T.getCoordSize(U):E-T.getCoord(U),S=L),B[D].push([S,J,W,M.getNameByIndex(W),N,J]),K[D].min>U&&(K[D].min=U,K[D].minX=S,K[D].minY=J),K[D].max<U&&(K[D].max=U,K[D].maxX=S,K[D].maxY=J),K[D].sum+=U,K[D].counter++):B[D].length>0&&(this.finalPLMap[D]=this.finalPLMap[D]||[],this.finalPLMap[D].push(B[D]),B[D]=[])}I=this.component.grid.getXend();for(var V,X=0,G=O.length;G>X;X++)for(A=0,_=O[X].length;_>A;A++)D=O[X][A],C=Q[D],H=C.data[W],U=this.getDataFromOption(H,"-"),"-"==U&&this.deepQuery([H,C,this.option],"calculable")&&(V=this.deepQuery([H,C],"symbolSize"),I-=2*V+5,S=I,this.shapeList.push(this._getCalculableItem(D,W,M.getNameByIndex(W),S,J,"vertical")))}for(var $ in B)B[$].length>0&&(this.finalPLMap[$]=this.finalPLMap[$]||[],this.finalPLMap[$].push(B[$]),B[$]=[]);this._calculMarkMapXY(K,O,"x"),this._buildBorkenLine(R,this.finalPLMap,M,"vertical")},_buildOther:function(N,B,K,G){for(var P,O=this.series,F={},E=0,J=K.length;J>E;E++)for(var H=0,A=K[E].length;A>H;H++){var D=K[E][H],Q=O[D];P=this.component.xAxis.getAxis(Q.xAxisIndex||0);var M=this.component.yAxis.getAxis(Q.yAxisIndex||0),_=M.getCoord(0);F[D]=F[D]||[],G[D]=G[D]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var $=0,I=Q.data.length;I>$;$++){var R=Q.data[$],S=this.getDataFromOption(R,"-");if(S instanceof Array){var L=P.getCoord(S[0]),T=M.getCoord(S[1]);F[D].push([L,T,$,S[0],L,_]),G[D].min0>S[0]&&(G[D].min0=S[0],G[D].minY0=T,G[D].minX0=L),G[D].max0<S[0]&&(G[D].max0=S[0],G[D].maxY0=T,G[D].maxX0=L),G[D].sum0+=S[0],G[D].counter0++,G[D].min1>S[1]&&(G[D].min1=S[1],G[D].minY1=T,G[D].minX1=L),G[D].max1<S[1]&&(G[D].max1=S[1],G[D].maxY1=T,G[D].maxX1=L),G[D].sum1+=S[1],G[D].counter1++}}}for(var C in F)F[C].length>0&&(this.finalPLMap[C]=this.finalPLMap[C]||[],this.finalPLMap[C].push(F[C]),F[C]=[]);this._calculMarkMapXY(G,K,"xy"),this._buildBorkenLine(N,this.finalPLMap,P,"other")},_buildBorkenLine:function(Y,N,U,R){for(var Z,Q="other"==R?"horizontal":R,P=this.series,a=Y.length-1;a>=0;a--){var X=Y[a],M=P[X],L=N[X];if(M.type===this.type&&null!=L)for(var S=this._getBbox(X,Q),K=this._sIndex2ColorMap[X],c=this.query(M,"itemStyle.normal.lineStyle.width"),W=this.query(M,"itemStyle.normal.lineStyle.type"),d=this.query(M,"itemStyle.normal.lineStyle.color"),O=this.getItemStyleColor(this.query(M,"itemStyle.normal.color"),X,-1),J=null!=this.query(M,"itemStyle.normal.areaStyle"),I=this.query(M,"itemStyle.normal.areaStyle.color"),b=0,B=L.length;B>b;b++){var D=L[b],V="other"!=R&&this._isLarge(Q,D);if(V)D=this._getLargePointList(Q,D,M.dataFilter);else for(var F=0,_=D.length;_>F;F++)Z=M.data[D[F][2]],(this.deepQuery([Z,M,this.option],"calculable")||this.deepQuery([Z,M],"showAllSymbol")||"categoryAxis"===U.type&&U.isMainAxis(D[F][2])&&"none"!=this.deepQuery([Z,M],"symbol"))&&this.shapeList.push(this._getSymbol(X,D[F][2],D[F][3],D[F][0],D[F][1],Q));var A=new C({zlevel:M.zlevel,z:M.z,style:{miterLimit:c,pointList:D,strokeColor:d||O||K,lineWidth:c,lineType:W,smooth:this._getSmooth(M.smooth),smoothConstraint:S,shadowColor:this.query(M,"itemStyle.normal.lineStyle.shadowColor"),shadowBlur:this.query(M,"itemStyle.normal.lineStyle.shadowBlur"),shadowOffsetX:this.query(M,"itemStyle.normal.lineStyle.shadowOffsetX"),shadowOffsetY:this.query(M,"itemStyle.normal.lineStyle.shadowOffsetY")},hoverable:!1,_main:!0,_seriesIndex:X,_orient:Q});if(H.pack(A,P[X],X,0,b,P[X].name),this.shapeList.push(A),J){var T=new E({zlevel:M.zlevel,z:M.z,style:{miterLimit:c,pointList:G.clone(D).concat([[D[D.length-1][4],D[D.length-1][5]],[D[0][4],D[0][5]]]),brushType:"fill",smooth:this._getSmooth(M.smooth),smoothConstraint:S,color:I?I:$.alpha(K,0.5)},highlightStyle:{brushType:"fill"},hoverable:!1,_main:!0,_seriesIndex:X,_orient:Q});H.pack(T,P[X],X,0,b,P[X].name),this.shapeList.push(T)}}}},_getBbox:function(_,$){var B=this.component.grid.getBbox(),A=this.xMarkMap[_];return null!=A.minX0?[[Math.min(A.minX0,A.maxX0,A.minX1,A.maxX1),Math.min(A.minY0,A.maxY0,A.minY1,A.maxY1)],[Math.max(A.minX0,A.maxX0,A.minX1,A.maxX1),Math.max(A.minY0,A.maxY0,A.minY1,A.maxY1)]]:("horizontal"===$?(B[0][1]=Math.min(A.minY,A.maxY),B[1][1]=Math.max(A.minY,A.maxY)):(B[0][0]=Math.min(A.minX,A.maxX),B[1][0]=Math.max(A.minX,A.maxX)),B)},_isLarge:function(_,$){return $.length<2?!1:"horizontal"===_?Math.abs($[0][0]-$[1][0])<0.5:Math.abs($[0][1]-$[1][1])<0.5},_getLargePointList:function(L,B,J){var F;F="horizontal"===L?this.component.grid.getWidth():this.component.grid.getHeight();var N=B.length,M=[];if("function"!=typeof J)switch(J){case"min":J=function($){return Math.max.apply(null,$)};break;case"max":J=function($){return Math.min.apply(null,$)};break;case"average":J=function(_){for(var $=0,A=0;A<_.length;A++)$+=_[A];return $/_.length};break;default:J=function($){return $[0]}}for(var E=[],D=0;F>D;D++){var I=Math.floor(N/F*D),G=Math.min(Math.floor(N/F*(D+1)),N);if(!(I>=G)){for(var A=I;G>A;A++)E[A-I]="horizontal"===L?B[A][1]:B[A][0];E.length=G-I;for(var C=J(E),O=-1,K=1/0,A=I;G>A;A++){var _="horizontal"===L?B[A][1]:B[A][0],$=Math.abs(_-C);K>$&&(O=A,K=$)}var H=B[O].slice();"horizontal"===L?H[1]=C:H[0]=C,M.push(H)}}return M},_getSmooth:function($){return $?0.3:0},_getCalculableItem:function(_,$,H,E,B,A){var C=this.series,G=C[_].calculableHolderColor||this.ecTheme.calculableHolderColor||D.calculableHolderColor,F=this._getSymbol(_,$,H,E,B,A);return F.style.color=G,F.style.strokeColor=G,F.rotation=[0,0],F.hoverable=!1,F.draggable=!1,F.style.text=void 0,F},_getSymbol:function(_,$,H,E,B,A){var D=this.series,C=D[_],G=C.data[$],F=this.getSymbolShape(C,_,G,$,H,E,B,this._sIndex2ShapeMap[_],this._sIndex2ColorMap[_],"#fff","vertical"===A?"horizontal":"vertical");return F.zlevel=C.zlevel,F.z=C.z+1,this.deepQuery([G,C,this.option],"calculable")&&(this.setCalculable(F),F.draggable=!0),F},getMarkCoord:function(_,$){var E=this.series[_],D=this.xMarkMap[_],B=this.component.xAxis.getAxis(E.xAxisIndex),A=this.component.yAxis.getAxis(E.yAxisIndex);if($.type&&("max"===$.type||"min"===$.type||"average"===$.type)){var C=null!=$.valueIndex?$.valueIndex:null!=D.maxX0?"1":"";return[D[$.type+"X"+C],D[$.type+"Y"+C],D[$.type+"Line"+C],D[$.type+C]]}return["string"!=typeof $.xAxis&&B.getCoordByIndex?B.getCoordByIndex($.xAxis||0):B.getCoord($.xAxis||0),"string"!=typeof $.yAxis&&A.getCoordByIndex?A.getCoordByIndex($.yAxis||0):A.getCoord($.yAxis||0)]},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()},ontooltipHover:function(A,_){for(var I,F,C=A.seriesIndex,B=A.dataIndex,E=C.length;E--;)if(I=this.finalPLMap[C[E]])for(var D=0,H=I.length;H>D;D++){F=I[D];for(var G=0,$=F.length;$>G;G++)B===F[G][2]&&_.push(this._getSymbol(C[E],F[G][2],F[G][3],F[G][0],F[G][1],"horizontal"))}},addDataAnimation:function(L,B){function J(){$--,0===$&&B&&B()}function F($){$.style.controlPointList=null}for(var N=this.series,M={},E=0,D=L.length;D>E;E++)M[L[E][0]]=L[E];for(var I,G,A,C,O,K,_,$=0,E=this.shapeList.length-1;E>=0;E--)if(O=this.shapeList[E]._seriesIndex,M[O]&&!M[O][3]){if(this.shapeList[E]._main&&this.shapeList[E].style.pointList.length>1){if(K=this.shapeList[E].style.pointList,G=Math.abs(K[0][0]-K[1][0]),C=Math.abs(K[0][1]-K[1][1]),_="horizontal"===this.shapeList[E]._orient,M[O][2]){if("half-smooth-polygon"===this.shapeList[E].type){var H=K.length;this.shapeList[E].style.pointList[H-3]=K[H-2],this.shapeList[E].style.pointList[H-3][_?0:1]=K[H-4][_?0:1],this.shapeList[E].style.pointList[H-2]=K[H-1]}this.shapeList[E].style.pointList.pop(),_?(I=G,A=0):(I=0,A=-C)}else{if(this.shapeList[E].style.pointList.shift(),"half-smooth-polygon"===this.shapeList[E].type){var P=this.shapeList[E].style.pointList.pop();_?P[0]=K[0][0]:P[1]=K[0][1],this.shapeList[E].style.pointList.push(P)}_?(I=-G,A=0):(I=0,A=C)}this.shapeList[E].style.controlPointList=null,this.zr.modShape(this.shapeList[E])}else{if(M[O][2]&&this.shapeList[E]._dataIndex===N[O].data.length-1){this.zr.delShape(this.shapeList[E].id);continue}if(!M[O][2]&&0===this.shapeList[E]._dataIndex){this.zr.delShape(this.shapeList[E].id);continue}}this.shapeList[E].position=[0,0],$++,this.zr.animate(this.shapeList[E].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[I,A]}).during(F).done(J).start()}$||B&&B()}},B.prototype.iconLibrary.legendLineIcon=I,G.inherits(_,F),A("../chart").define("line",_),_}),C("echarts/config",[],function(){var $={CHART_TYPE_LINE:"line",CHART_TYPE_BAR:"bar",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_PIE:"pie",CHART_TYPE_RADAR:"radar",CHART_TYPE_VENN:"venn",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_TREE:"tree",CHART_TYPE_MAP:"map",CHART_TYPE_K:"k",CHART_TYPE_ISLAND:"island",CHART_TYPE_FORCE:"force",CHART_TYPE_CHORD:"chord",CHART_TYPE_GAUGE:"gauge",CHART_TYPE_FUNNEL:"funnel",CHART_TYPE_EVENTRIVER:"eventRiver",CHART_TYPE_WORDCLOUD:"wordCloud",CHART_TYPE_HEATMAP:"heatmap",COMPONENT_TYPE_TITLE:"title",COMPONENT_TYPE_LEGEND:"legend",COMPONENT_TYPE_DATARANGE:"dataRange",COMPONENT_TYPE_DATAVIEW:"dataView",COMPONENT_TYPE_DATAZOOM:"dataZoom",COMPONENT_TYPE_TOOLBOX:"toolbox",COMPONENT_TYPE_TOOLTIP:"tooltip",COMPONENT_TYPE_GRID:"grid",COMPONENT_TYPE_AXIS:"axis",COMPONENT_TYPE_POLAR:"polar",COMPONENT_TYPE_X_AXIS:"xAxis",COMPONENT_TYPE_Y_AXIS:"yAxis",COMPONENT_TYPE_AXIS_CATEGORY:"categoryAxis",COMPONENT_TYPE_AXIS_VALUE:"valueAxis",COMPONENT_TYPE_TIMELINE:"timeline",COMPONENT_TYPE_ROAMCONTROLLER:"roamController",backgroundColor:"rgba(0,0,0,0)",color:["#ff7f50","#87cefa","#da70d6","#32cd32","#6495ed","#ff69b4","#ba55d3","#cd5c5c","#ffa500","#40e0d0","#1e90ff","#ff6347","#7b68ee","#00fa9a","#ffd700","#6699FF","#ff6666","#3cb371","#b8860b","#30e0e0"],markPoint:{clickable:!0,symbol:"pin",symbolSize:10,large:!1,effect:{show:!1,loop:!0,period:15,type:"scale",scaleSize:2,bounceDistance:10},itemStyle:{normal:{borderWidth:2,label:{show:!0,position:"inside"}},emphasis:{label:{show:!0}}}},markLine:{clickable:!0,symbol:["circle","arrow"],symbolSize:[2,4],smoothness:0.2,precision:2,effect:{show:!1,loop:!0,period:15,scaleSize:2},bundling:{enable:!1,maxTurningAngle:45},itemStyle:{normal:{borderWidth:1.5,label:{show:!0,position:"end"},lineStyle:{type:"dashed"}},emphasis:{label:{show:!1},lineStyle:{}}}},textStyle:{decoration:"none",fontFamily:"Arial, Verdana, sans-serif",fontFamily2:"\u5fae\u8f6f\u96c5\u9ed1",fontSize:12,fontStyle:"normal",fontWeight:"normal"},EVENT:{REFRESH:"refresh",RESTORE:"restore",RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",MOUSEOUT:"mouseout",DATA_CHANGED:"dataChanged",DATA_ZOOM:"dataZoom",DATA_RANGE:"dataRange",DATA_RANGE_SELECTED:"dataRangeSelected",DATA_RANGE_HOVERLINK:"dataRangeHoverLink",LEGEND_SELECTED:"legendSelected",LEGEND_HOVERLINK:"legendHoverLink",MAP_SELECTED:"mapSelected",PIE_SELECTED:"pieSelected",MAGIC_TYPE_CHANGED:"magicTypeChanged",DATA_VIEW_CHANGED:"dataViewChanged",TIMELINE_CHANGED:"timelineChanged",MAP_ROAM:"mapRoam",FORCE_LAYOUT_END:"forceLayoutEnd",TOOLTIP_HOVER:"tooltipHover",TOOLTIP_IN_GRID:"tooltipInGrid",TOOLTIP_OUT_GRID:"tooltipOutGrid",ROAMCONTROLLER:"roamController"},DRAG_ENABLE_TIME:120,EFFECT_ZLEVEL:10,effectBlendAlpha:0.95,symbolList:["circle","rectangle","triangle","diamond","emptyCircle","emptyRectangle","emptyTriangle","emptyDiamond"],loadingEffect:"spin",loadingText:"\u6570\u636e\u8bfb\u53d6\u4e2d...",noDataEffect:"bubble",noDataText:"\u6682\u65e0\u6570\u636e",calculable:!1,calculableColor:"rgba(255,165,0,0.6)",calculableHolderColor:"#ccc",nameConnector:" & ",valueConnector:": ",animation:!0,addDataAnimation:!0,animationThreshold:2000,animationDuration:2000,animationDurationUpdate:500,animationEasing:"ExponentialOut"};return $}),C("zrender/tool/util",["require","../dep/excanvas"],function(L){function B($){return $&&1===$.nodeType&&"string"==typeof $.nodeName}function J($){if("object"==typeof $&&null!==$){var D=$;if($ instanceof Array){D=[];for(var A=0,_=$.length;_>A;A++)D[A]=J($[A])}else if(!P[Q.call($)]&&!B($)){D={};for(var C in $)$.hasOwnProperty(C)&&(D[C]=J($[C]))}return D}return $}function F($,D,C,_){if(D.hasOwnProperty(C)){var A=$[C];"object"!=typeof A||P[Q.call(A)]||B(A)?!_&&C in $||($[C]=D[C]):N($[C],D[C],_)}}function N(_,$,B){for(var A in $)F(_,$,A,B);return _}function M(){if(!O)if(L("../dep/excanvas"),window.G_vmlCanvasManager){var $=document.createElement("div");$.style.position="absolute",$.style.top="-1000px",document.body.appendChild($),O=G_vmlCanvasManager.initElement($).getContext("2d")}else O=document.createElement("canvas").getContext("2d");return O}function E(_,$){if(_.indexOf)return _.indexOf($);for(var B=0,A=_.length;A>B;B++)if(_[B]===$)return B;return-1}function D(_,$){function C(){}var B=_.prototype;C.prototype=$.prototype,_.prototype=new C;for(var A in B)_.prototype[A]=B[A];_.constructor=_}function I(A,$,E){if(A&&$)if(A.forEach&&A.forEach===_)A.forEach($,E);else if(A.length===+A.length){for(var D=0,C=A.length;C>D;D++)$.call(E,A[D],D,A)}else for(var B in A)A.hasOwnProperty(B)&&$.call(E,A[B],B,A)}function G(A,_,E){if(A&&_){if(A.map&&A.map===$)return A.map(_,E);for(var D=[],C=0,B=A.length;B>C;C++)D.push(_.call(E,A[C],C,A));return D}}function A(_,$,D){if(_&&$){if(_.filter&&_.filter===H)return _.filter($,D);for(var C=[],B=0,A=_.length;A>B;B++)$.call(D,_[B],B,_)&&C.push(_[B]);return C}}function C(_,$){return function(){_.apply($,arguments)}}var O,K=Array.prototype,_=K.forEach,$=K.map,H=K.filter,P={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},Q=Object.prototype.toString;return{inherits:D,clone:J,merge:N,getContext:M,indexOf:E,each:I,map:G,filter:A,bind:C}}),C("zrender/tool/event",["require","../mixin/Eventful"],function(_){"use strict";function $($){return"undefined"!=typeof $.zrenderX&&$.zrenderX||"undefined"!=typeof $.offsetX&&$.offsetX||"undefined"!=typeof $.layerX&&$.layerX||"undefined"!=typeof $.clientX&&$.clientX}function D($){return"undefined"!=typeof $.zrenderY&&$.zrenderY||"undefined"!=typeof $.offsetY&&$.offsetY||"undefined"!=typeof $.layerY&&$.layerY||"undefined"!=typeof $.clientY&&$.clientY}function C($){return"undefined"!=typeof $.zrenderDelta&&$.zrenderDelta||"undefined"!=typeof $.wheelDelta&&$.wheelDelta||"undefined"!=typeof $.detail&&-$.detail}var B=_("../mixin/Eventful"),A="function"==typeof window.addEventListener?function($){$.preventDefault(),$.stopPropagation(),$.cancelBubble=!0}:function($){$.returnValue=!1,$.cancelBubble=!0};return{getX:$,getY:D,getDelta:C,stop:A,Dispatcher:B}}),C("zrender/tool/env",[],function(){function $(M){var B=this.os={},J=this.browser={},F=M.match(/Web[kK]it[\/]{0,1}([\d.]+)/),O=M.match(/(Android);?[\s\/]+([\d.]+)?/),N=M.match(/(iPad).*OS\s([\d_]+)/),E=M.match(/(iPod)(.*OS\s([\d_]+))?/),D=!N&&M.match(/(iPhone\sOS)\s([\d_]+)/),I=M.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),G=I&&M.match(/TouchPad/),A=M.match(/Kindle\/([\d.]+)/),C=M.match(/Silk\/([\d._]+)/),P=M.match(/(BlackBerry).*Version\/([\d.]+)/),L=M.match(/(BB10).*Version\/([\d.]+)/),_=M.match(/(RIM\sTablet\sOS)\s([\d.]+)/),$=M.match(/PlayBook/),H=M.match(/Chrome\/([\d.]+)/)||M.match(/CriOS\/([\d.]+)/),Q=M.match(/Firefox\/([\d.]+)/),R=M.match(/MSIE ([\d.]+)/),K=F&&M.match(/Mobile\//)&&!H,S=M.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!H,R=M.match(/MSIE\s([\d.]+)/);return(J.webkit=!!F)&&(J.version=F[1]),O&&(B.android=!0,B.version=O[2]),D&&!E&&(B.ios=B.iphone=!0,B.version=D[2].replace(/_/g,".")),N&&(B.ios=B.ipad=!0,B.version=N[2].replace(/_/g,".")),E&&(B.ios=B.ipod=!0,B.version=E[3]?E[3].replace(/_/g,"."):null),I&&(B.webos=!0,B.version=I[2]),G&&(B.touchpad=!0),P&&(B.blackberry=!0,B.version=P[2]),L&&(B.bb10=!0,B.version=L[2]),_&&(B.rimtabletos=!0,B.version=_[2]),$&&(J.playbook=!0),A&&(B.kindle=!0,B.version=A[1]),C&&(J.silk=!0,J.version=C[1]),!C&&B.android&&M.match(/Kindle Fire/)&&(J.silk=!0),H&&(J.chrome=!0,J.version=H[1]),Q&&(J.firefox=!0,J.version=Q[1]),R&&(J.ie=!0,J.version=R[1]),K&&(M.match(/Safari/)||B.ios)&&(J.safari=!0),S&&(J.webview=!0),R&&(J.ie=!0,J.version=R[1]),B.tablet=!!(N||$||O&&!M.match(/Mobile/)||Q&&M.match(/Tablet/)||R&&!M.match(/Phone/)&&M.match(/Touch/)),B.phone=!(B.tablet||B.ipod||!(O||D||I||P||L||H&&M.match(/Android/)||H&&M.match(/CriOS\/([\d.]+)/)||Q&&M.match(/Mobile/)||R&&M.match(/Touch/))),{browser:J,os:B,canvasSupported:document.createElement("canvas").getContext?!0:!1}}return $(navigator.userAgent)}),C("zrender/zrender",["require","./dep/excanvas","./tool/util","./tool/log","./tool/guid","./Handler","./Painter","./Storage","./animation/Animation","./tool/env"],function(H){function _($){return function(){$._needsRefreshNextFrame&&$.refresh()}}H("./dep/excanvas");var G=H("./tool/util"),D=H("./tool/log"),J=H("./tool/guid"),I=H("./Handler"),C=H("./Painter"),B=H("./Storage"),F=H("./animation/Animation"),E={},$={};$.version="2.1.1",$.init=function(_){var $=new A(J(),_);return E[$.id]=$,$},$.dispose=function(A){if(A)A.dispose();else{for(var _ in E)E[_].dispose();E={}}return $},$.getInstance=function($){return E[$]},$.delInstance=function(_){return delete E[_],$};var A=function(G,D){this.id=G,this.env=H("./tool/env"),this.storage=new B,this.painter=new C(D,this.storage),this.handler=new I(D,this.storage,this.painter),this.animation=new F({stage:{update:_(this)}}),this.animation.start();var A=this;this.painter.refreshNextFrame=function(){A.refreshNextFrame()},this._needsRefreshNextFrame=!1;var A=this,E=this.storage,$=E.delFromMap;E.delFromMap=function(B){var _=E.get(B);A.stopAnimation(_),$.call(E,B)}};return A.prototype.getId=function(){return this.id},A.prototype.addShape=function($){return this.addElement($),this},A.prototype.addGroup=function($){return this.addElement($),this},A.prototype.delShape=function($){return this.delElement($),this},A.prototype.delGroup=function($){return this.delElement($),this},A.prototype.modShape=function(_,$){return this.modElement(_,$),this},A.prototype.modGroup=function(_,$){return this.modElement(_,$),this},A.prototype.addElement=function($){return this.storage.addRoot($),this._needsRefreshNextFrame=!0,this},A.prototype.delElement=function($){return this.storage.delRoot($),this._needsRefreshNextFrame=!0,this},A.prototype.modElement=function(_,$){return this.storage.mod(_,$),this._needsRefreshNextFrame=!0,this},A.prototype.modLayer=function(_,$){return this.painter.modLayer(_,$),this._needsRefreshNextFrame=!0,this},A.prototype.addHoverShape=function($){return this.storage.addHover($),this},A.prototype.render=function($){return this.painter.render($),this._needsRefreshNextFrame=!1,this},A.prototype.refresh=function($){return this.painter.refresh($),this._needsRefreshNextFrame=!1,this},A.prototype.refreshNextFrame=function(){return this._needsRefreshNextFrame=!0,this},A.prototype.refreshHover=function($){return this.painter.refreshHover($),this},A.prototype.refreshShapes=function(_,$){return this.painter.refreshShapes(_,$),this},A.prototype.resize=function(){return this.painter.resize(),this},A.prototype.animate=function(A,_,E){var B=this;if("string"==typeof A&&(A=this.storage.get(A)),A){var I;if(_){for(var H=_.split("."),K=A,J=0,$=H.length;$>J;J++)K&&(K=K[H[J]]);K&&(I=K)}else I=A;if(!I)return void D("Property \""+_+"\" is not existed in element "+A.id);null==A.__animators&&(A.__animators=[]);var C=A.__animators,F=this.animation.animate(I,{loop:E}).during(function(){B.modShape(A)}).done(function(){var $=G.indexOf(A.__animators,F);$>=0&&C.splice($,1)});return C.push(F),F}D("Element not existed")},A.prototype.stopAnimation=function(_){if(_.__animators){for(var $=_.__animators,B=$.length,A=0;B>A;A++)$[A].stop();$.length=0}return this},A.prototype.clearAnimation=function(){return this.animation.clear(),this},A.prototype.showLoading=function($){return this.painter.showLoading($),this},A.prototype.hideLoading=function(){return this.painter.hideLoading(),this},A.prototype.getWidth=function(){return this.painter.getWidth()},A.prototype.getHeight=function(){return this.painter.getHeight()},A.prototype.toDataURL=function(_,$,A){return this.painter.toDataURL(_,$,A)},A.prototype.shapeToImage=function(_,$,B){var A=J();return this.painter.shapeToImage(A,_,$,B)},A.prototype.on=function(_,$,A){return this.handler.on(_,$,A),this},A.prototype.un=function(_,$){return this.handler.un(_,$),this},A.prototype.trigger=function(_,$){return this.handler.trigger(_,$),this},A.prototype.clear=function(){return this.storage.delRoot(),this.painter.clear(),this},A.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,$.delInstance(this.id)},$}),C("zrender/config",[],function(){var $={EVENT:{RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300},elementClassName:"zr-element",catchBrushException:!1,debugMode:0,devicePixelRatio:Math.max(window.devicePixelRatio||1,1)};return $}),C("echarts/component",[],function(){var _={},$={};return _.define=function(B,A){return $[B]=A,_},_.get=function(_){return $[_]},_}),C("echarts/chart/island",["require","./base","zrender/shape/Circle","../config","../util/ecData","zrender/tool/util","zrender/tool/event","zrender/tool/color","../util/accMath","../chart"],function(_){function $(_,$,E,B,D){F.call(this,_,$,E,B,D),this._nameConnector,this._valueConnector,this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth();var G=this;G.shapeHandler.onmousewheel=function(_){var $=_.target,H=_.event,E=C.getDelta(H);E=E>0?-1:1,$.style.r-=E,$.style.r=$.style.r<5?5:$.style.r;var B=A.get($,"value"),D=B*G.option.island.calculateStep;B=D>1?Math.round(B-D*E):+(B-D*E).toFixed(2);var F=A.get($,"name");$.style.text=F+":"+B,A.set($,"value",B),A.set($,"name",F),G.zr.modShape($.id),G.zr.refreshNextFrame(),C.stop(H)}}var F=_("./base"),E=_("zrender/shape/Circle"),B=_("../config");B.island={zlevel:0,z:5,r:15,calculateStep:0.1};var A=_("../util/ecData"),D=_("zrender/tool/util"),C=_("zrender/tool/event");return $.prototype={type:B.CHART_TYPE_ISLAND,_combine:function($,F){var E=_("zrender/tool/color"),B=_("../util/accMath"),D=B.accAdd(A.get($,"value"),A.get(F,"value")),C=A.get($,"name")+this._nameConnector+A.get(F,"name");$.style.text=C+this._valueConnector+D,A.set($,"value",D),A.set($,"name",C),$.style.r=this.option.island.r,$.style.color=E.mix($.style.color,F.style.color)},refresh:function($){$&&($.island=this.reformOption($.island),this.option=$,this._nameConnector=this.option.nameConnector,this._valueConnector=this.option.valueConnector)},getOption:function(){return this.option},resize:function(){var _=this.zr.getWidth(),$=this.zr.getHeight(),D=_/(this._zrWidth||_),C=$/(this._zrHeight||$);if(1!==D||1!==C){this._zrWidth=_,this._zrHeight=$;for(var B=0,A=this.shapeList.length;A>B;B++)this.zr.modShape(this.shapeList[B].id,{style:{x:Math.round(this.shapeList[B].style.x*D),y:Math.round(this.shapeList[B].style.y*C)}})}},add:function(_){var $=A.get(_,"name"),G=A.get(_,"value"),B=null!=A.get(_,"series")?A.get(_,"series").name:"",D=this.getFont(this.option.island.textStyle),C=this.option.island,F={zlevel:C.zlevel,z:C.z,style:{x:_.style.x,y:_.style.y,r:this.option.island.r,color:_.style.color||_.style.strokeColor,text:$+this._valueConnector+G,textFont:D},draggable:!0,hoverable:!0,onmousewheel:this.shapeHandler.onmousewheel,_type:"island"};"#fff"===F.style.color&&(F.style.color=_.style.strokeColor),this.setCalculable(F),F.dragEnableTime=0,A.pack(F,{name:B},-1,G,-1,$),F=new E(F),this.shapeList.push(F),this.zr.addShape(F)},del:function(_){this.zr.delShape(_.id);for(var $=[],B=0,A=this.shapeList.length;A>B;B++)this.shapeList[B].id!=_.id&&$.push(this.shapeList[B]);this.shapeList=$},ondrop:function(_,$){if(this.isDrop&&_.target){var B=_.target,A=_.dragged;this._combine(B,A),this.zr.modShape(B.id),$.dragIn=!0,this.isDrop=!1}},ondragend:function(_,$){var A=_.target;this.isDragend?$.dragIn&&(this.del(A),$.needRefresh=!0):$.dragIn||(A.style.x=C.getX(_.event),A.style.y=C.getY(_.event),this.add(A),$.needRefresh=!0),this.isDragend=!1}},D.inherits($,F),_("../chart").define("island",$),$}),C("echarts/component/title",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","zrender/tool/color","../component"],function(_){function $(_,$,C,B,A){G.call(this,_,$,C,B,A),this.refresh(B)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("zrender/shape/Rectangle"),A=_("../config");A.title={zlevel:0,z:6,show:!0,text:"",subtext:"",x:"left",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:5,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}};var D=_("zrender/tool/util"),C=_("zrender/tool/area"),F=_("zrender/tool/color");return $.prototype={type:A.COMPONENT_TYPE_TITLE,_buildShape:function(){if(this.titleOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var _=0,$=this.shapeList.length;$>_;_++)this.zr.addShape(this.shapeList[_])}},_buildItem:function(){var K=this.titleOption.text,B=this.titleOption.link,I=this.titleOption.target,M=this.titleOption.subtext,L=this.titleOption.sublink,G=this.titleOption.subtarget,D=this.getFont(this.titleOption.textStyle),H=this.getFont(this.titleOption.subtextStyle),A=this._itemGroupLocation.x,C=this._itemGroupLocation.y,N=this._itemGroupLocation.width,J=this._itemGroupLocation.height,_={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:C,color:this.titleOption.textStyle.color,text:K,textFont:D,textBaseline:"top"},highlightStyle:{color:F.lift(this.titleOption.textStyle.color,1),brushType:"fill"},hoverable:!1};B&&(_.hoverable=!0,_.clickable=!0,_.onclick=function(){I&&"self"==I?window.location=B:window.open(B)});var $={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:C+J,color:this.titleOption.subtextStyle.color,text:M,textFont:H,textBaseline:"bottom"},highlightStyle:{color:F.lift(this.titleOption.subtextStyle.color,1),brushType:"fill"},hoverable:!1};switch(L&&($.hoverable=!0,$.clickable=!0,$.onclick=function(){G&&"self"==G?window.location=L:window.open(L)}),this.titleOption.x){case"center":_.style.x=$.style.x=A+N/2,_.style.textAlign=$.style.textAlign="center";break;case"left":_.style.x=$.style.x=A,_.style.textAlign=$.style.textAlign="left";break;case"right":_.style.x=$.style.x=A+N,_.style.textAlign=$.style.textAlign="right";break;default:A=this.titleOption.x-0,A=isNaN(A)?0:A,_.style.x=$.style.x=A}this.titleOption.textAlign&&(_.style.textAlign=$.style.textAlign=this.titleOption.textAlign),this.shapeList.push(new E(_)),""!==M&&this.shapeList.push(new E($))},_buildBackground:function(){var $=this.reformCssArray(this.titleOption.padding);this.shapeList.push(new B({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-$[3],y:this._itemGroupLocation.y-$[0],width:this._itemGroupLocation.width+$[3]+$[1],height:this._itemGroupLocation.height+$[0]+$[2],brushType:0===this.titleOption.borderWidth?"fill":"both",color:this.titleOption.backgroundColor,strokeColor:this.titleOption.borderColor,lineWidth:this.titleOption.borderWidth}}))},_getItemGroupLocation:function(){var A,_=this.reformCssArray(this.titleOption.padding),J=this.titleOption.text,G=this.titleOption.subtext,E=this.getFont(this.titleOption.textStyle),B=this.getFont(this.titleOption.subtextStyle),F=Math.max(C.getTextWidth(J,E),C.getTextWidth(G,B)),I=C.getTextHeight(J,E)+(""===G?0:this.titleOption.itemGap+C.getTextHeight(G,B)),H=this.zr.getWidth();switch(this.titleOption.x){case"center":A=Math.floor((H-F)/2);break;case"left":A=_[3]+this.titleOption.borderWidth;break;case"right":A=H-F-_[1]-this.titleOption.borderWidth;break;default:A=this.titleOption.x-0,A=isNaN(A)?0:A}var $,D=this.zr.getHeight();switch(this.titleOption.y){case"top":$=_[0]+this.titleOption.borderWidth;break;case"bottom":$=D-I-_[2]-this.titleOption.borderWidth;break;case"center":$=Math.floor((D-I)/2);break;default:$=this.titleOption.y-0,$=isNaN($)?0:$}return{x:A,y:$,width:F,height:I}},refresh:function($){$&&(this.option=$,this.option.title=this.reformOption(this.option.title),this.titleOption=this.option.title,this.titleOption.textStyle=this.getTextStyle(this.titleOption.textStyle),this.titleOption.subtextStyle=this.getTextStyle(this.titleOption.subtextStyle)),this.clear(),this._buildShape()}},D.inherits($,G),_("../component").define("title",$),$}),C("echarts/component/legend",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","zrender/shape/Sector","../util/shape/Icon","../util/shape/Candle","../config","zrender/tool/util","zrender/tool/area","../component"],function(H){function _(_,$,D,B,A){if(!this.query(B,"legend.data"))return void console.error("option.legend.data has not been defined.");G.call(this,_,$,D,B,A);var C=this;C._legendSelected=function($){C.__legendSelected($)},C._dispatchHoverLink=function($){return C.__dispatchHoverLink($)},this._colorIndex=0,this._colorMap={},this._selectedMap={},this._hasDataMap={},this.refresh(B)}var G=H("./base"),D=H("zrender/shape/Text"),J=H("zrender/shape/Rectangle"),I=H("zrender/shape/Sector"),C=H("../util/shape/Icon"),B=H("../util/shape/Candle"),F=H("../config");F.legend={zlevel:0,z:4,show:!0,orient:"horizontal",x:"center",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0};var E=H("zrender/tool/util"),$=H("zrender/tool/area");_.prototype={type:F.COMPONENT_TYPE_LEGEND,_buildShape:function(){if(this.legendOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var _=0,$=this.shapeList.length;$>_;_++)this.zr.addShape(this.shapeList[_])}},_buildItem:function(){var N,B,K,P,O,H,J,G,R=this.legendOption.data,M=R.length,A=this.legendOption.textStyle,_=this.zr.getWidth(),I=this.zr.getHeight(),S=this._itemGroupLocation.x,T=this._itemGroupLocation.y,L=this.legendOption.itemWidth,U=this.legendOption.itemHeight,F=this.legendOption.itemGap;"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(S=this._itemGroupLocation.x+this._itemGroupLocation.width-L);for(var Q=0;M>Q;Q++)O=E.merge(R[Q].textStyle||{},A),H=this.getFont(O),N=this._getName(R[Q]),J=this._getFormatterName(N),""!==N?(B=R[Q].icon||this._getSomethingByName(N).type,G=this.getColor(N),"horizontal"===this.legendOption.orient?200>_-S&&L+5+$.getTextWidth(J,H)+(Q===M-1||""===R[Q+1]?0:F)>=_-S&&(S=this._itemGroupLocation.x,T+=U+F):200>I-T&&U+(Q===M-1||""===R[Q+1]?0:F)>=I-T&&("right"===this.legendOption.x?S-=this._itemGroupLocation.maxWidth+F:S+=this._itemGroupLocation.maxWidth+F,T=this._itemGroupLocation.y),K=this._getItemShapeByType(S,T,L,U,this._selectedMap[N]&&this._hasDataMap[N]?G:"#ccc",B,G),K._name=N,K=new C(K),P={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:S+L+5,y:T+U/2,color:this._selectedMap[N]?"auto"===O.color?G:O.color:"#ccc",text:J,textFont:H,textBaseline:"middle"},highlightStyle:{color:G,brushType:"fill"},hoverable:!!this.legendOption.selectedMode,clickable:!!this.legendOption.selectedMode},"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(P.style.x-=L+10,P.style.textAlign="right"),P._name=N,P=new D(P),this.legendOption.selectedMode&&(K.onclick=P.onclick=this._legendSelected,K.onmouseover=P.onmouseover=this._dispatchHoverLink,K.hoverConnect=P.id,P.hoverConnect=K.id),this.shapeList.push(K),this.shapeList.push(P),"horizontal"===this.legendOption.orient?S+=L+5+$.getTextWidth(J,H)+F:T+=U+F):"horizontal"===this.legendOption.orient?(S=this._itemGroupLocation.x,T+=U+F):("right"===this.legendOption.x?S-=this._itemGroupLocation.maxWidth+F:S+=this._itemGroupLocation.maxWidth+F,T=this._itemGroupLocation.y);"horizontal"===this.legendOption.orient&&"center"===this.legendOption.x&&T!=this._itemGroupLocation.y&&this._mLineOptimize()},_getName:function($){return"undefined"!=typeof $.name?$.name:$},_getFormatterName:function(_){var $,A=this.legendOption.formatter;return $="function"==typeof A?A.call(this.myChart,_):"string"==typeof A?A.replace("{name}",_):_},_getFormatterNameFromData:function(_){var $=this._getName(_);return this._getFormatterName($)},_mLineOptimize:function(){for(var A=[],_=this._itemGroupLocation.x,D=2,C=this.shapeList.length;C>D;D++)this.shapeList[D].style.x===_?A.push((this._itemGroupLocation.width-(this.shapeList[D-1].style.x+$.getTextWidth(this.shapeList[D-1].style.text,this.shapeList[D-1].style.textFont)-_))/2):D===C-1&&A.push((this._itemGroupLocation.width-(this.shapeList[D].style.x+$.getTextWidth(this.shapeList[D].style.text,this.shapeList[D].style.textFont)-_))/2);for(var B=-1,D=1,C=this.shapeList.length;C>D;D++)this.shapeList[D].style.x===_&&B++,0!==A[B]&&(this.shapeList[D].style.x+=A[B])},_buildBackground:function(){var $=this.reformCssArray(this.legendOption.padding);this.shapeList.push(new J({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-$[3],y:this._itemGroupLocation.y-$[0],width:this._itemGroupLocation.width+$[3]+$[1],height:this._itemGroupLocation.height+$[0]+$[2],brushType:0===this.legendOption.borderWidth?"fill":"both",color:this.legendOption.backgroundColor,strokeColor:this.legendOption.borderColor,lineWidth:this.legendOption.borderWidth}}))},_getItemGroupLocation:function(){var M=this.legendOption.data,B=M.length,J=this.legendOption.itemGap,G=this.legendOption.itemWidth+5,O=this.legendOption.itemHeight,N=this.legendOption.textStyle,F=this.getFont(N),D=0,I=0,C=this.reformCssArray(this.legendOption.padding),P=this.zr.getWidth()-C[1]-C[3],L=this.zr.getHeight()-C[0]-C[2],A=0,_=0;if("horizontal"===this.legendOption.orient){I=O;for(var H=0;B>H;H++)if(""!==this._getName(M[H])){var Q=$.getTextWidth(this._getFormatterNameFromData(M[H]),M[H].textStyle?this.getFont(E.merge(M[H].textStyle||{},N)):F);A+G+Q+J>P?(A-=J,D=Math.max(D,A),I+=O+J,A=0):(A+=G+Q+J,D=Math.max(D,A-J))}else A-=J,D=Math.max(D,A),I+=O+J,A=0}else{for(H=0;B>H;H++)_=Math.max(_,$.getTextWidth(this._getFormatterNameFromData(M[H]),M[H].textStyle?this.getFont(E.merge(M[H].textStyle||{},N)):F));_+=G,D=_;for(H=0;B>H;H++)""!==this._getName(M[H])?A+O+J>L?(D+=_+J,A-=J,I=Math.max(I,A),A=0):(A+=O+J,I=Math.max(I,A-J)):(D+=_+J,A-=J,I=Math.max(I,A),A=0)}P=this.zr.getWidth(),L=this.zr.getHeight();var R;switch(this.legendOption.x){case"center":R=Math.floor((P-D)/2);break;case"left":R=C[3]+this.legendOption.borderWidth;break;case"right":R=P-D-C[1]-C[3]-2*this.legendOption.borderWidth;break;default:R=this.parsePercent(this.legendOption.x,P)}var K;switch(this.legendOption.y){case"top":K=C[0]+this.legendOption.borderWidth;break;case"bottom":K=L-I-C[0]-C[2]-2*this.legendOption.borderWidth;break;case"center":K=Math.floor((L-I)/2);break;default:K=this.parsePercent(this.legendOption.y,L)}return{x:R,y:K,width:D,height:I,maxWidth:_}},_getSomethingByName:function(_){for(var $,E=this.option.series,D=0,B=E.length;B>D;D++){if(E[D].name===_)return{type:E[D].type,series:E[D],seriesIndex:D,data:null,dataIndex:-1};if(E[D].type===F.CHART_TYPE_PIE||E[D].type===F.CHART_TYPE_RADAR||E[D].type===F.CHART_TYPE_CHORD||E[D].type===F.CHART_TYPE_FORCE||E[D].type===F.CHART_TYPE_FUNNEL||E[D].type===F.CHART_TYPE_TREEMAP){$=E[D].categories||E[D].data||E[D].nodes;for(var A=0,C=$.length;C>A;A++)if($[A].name===_)return{type:E[D].type,series:E[D],seriesIndex:D,data:$[A],dataIndex:A}}}return{type:"bar",series:null,seriesIndex:-1,data:null,dataIndex:-1}},_getItemShapeByType:function(A,_,I,G,C,B,E){var D,H="#ccc"===C?E:C,$={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{iconType:"legendicon"+B,x:A,y:_,width:I,height:G,color:C,strokeColor:C,lineWidth:2},highlightStyle:{color:H,strokeColor:H,lineWidth:1},hoverable:this.legendOption.selectedMode,clickable:this.legendOption.selectedMode};if(B.match("image")){D=B.replace(new RegExp("^image:\\/\\/"),"");B="image"}switch(B){case"line":$.style.brushType="stroke",$.highlightStyle.lineWidth=3;break;case"radar":case"venn":case"tree":case"treemap":case"scatter":$.highlightStyle.lineWidth=3;break;case"k":$.style.brushType="both",$.highlightStyle.lineWidth=3,$.highlightStyle.color=$.style.color=this.deepQuery([this.ecTheme,F],"k.itemStyle.normal.color")||"#fff",$.style.strokeColor="#ccc"!=C?this.deepQuery([this.ecTheme,F],"k.itemStyle.normal.lineStyle.color")||"#ff3200":C;break;case"image":$.style.iconType="image",$.style.image=D,"#ccc"===C&&($.style.opacity=0.5)}return $},__legendSelected:function(_){var $=_.target._name;if("single"===this.legendOption.selectedMode)for(var A in this._selectedMap)this._selectedMap[A]=!1;this._selectedMap[$]=!this._selectedMap[$],this.messageCenter.dispatch(F.EVENT.LEGEND_SELECTED,_.event,{selected:this._selectedMap,target:$},this.myChart)},__dispatchHoverLink:function($){this.messageCenter.dispatch(F.EVENT.LEGEND_HOVERLINK,$.event,{target:$.target._name},this.myChart)},refresh:function(_){if(_){this.option=_||this.option,this.option.legend=this.reformOption(this.option.legend),this.legendOption=this.option.legend;var $,H,E,B,A=this.legendOption.data||[];if(this.legendOption.selected)for(var D in this.legendOption.selected)this._selectedMap[D]="undefined"!=typeof this._selectedMap[D]?this._selectedMap[D]:this.legendOption.selected[D];for(var C=0,G=A.length;G>C;C++)$=this._getName(A[C]),""!==$&&(H=this._getSomethingByName($),H.series?(this._hasDataMap[$]=!0,B=!H.data||H.type!==F.CHART_TYPE_PIE&&H.type!==F.CHART_TYPE_FORCE&&H.type!==F.CHART_TYPE_FUNNEL?[H.series]:[H.data,H.series],E=this.getItemStyleColor(this.deepQuery(B,"itemStyle.normal.color"),H.seriesIndex,H.dataIndex,H.data),E&&H.type!=F.CHART_TYPE_K&&this.setColor($,E),this._selectedMap[$]=null!=this._selectedMap[$]?this._selectedMap[$]:!0):this._hasDataMap[$]=!1)}this.clear(),this._buildShape()},getRelatedAmount:function(_){for(var $,G=0,E=this.option.series,B=0,A=E.length;A>B;B++)if(E[B].name===_&&G++,E[B].type===F.CHART_TYPE_PIE||E[B].type===F.CHART_TYPE_RADAR||E[B].type===F.CHART_TYPE_CHORD||E[B].type===F.CHART_TYPE_FORCE||E[B].type===F.CHART_TYPE_FUNNEL){$=E[B].type!=F.CHART_TYPE_FORCE?E[B].data:E[B].categories;for(var D=0,C=$.length;C>D;D++)$[D].name===_&&"-"!=$[D].value&&G++}return G},setColor:function(_,$){this._colorMap[_]=$},getColor:function($){return this._colorMap[$]||(this._colorMap[$]=this.zr.getColor(this._colorIndex++)),this._colorMap[$]},hasColor:function($){return this._colorMap[$]?this._colorMap[$]:!1},add:function(_,$){for(var C=this.legendOption.data,B=0,A=C.length;A>B;B++)if(this._getName(C[B])===_)return;this.legendOption.data.push(_),this.setColor(_,$),this._selectedMap[_]=!0,this._hasDataMap[_]=!0},del:function(_){for(var $=this.legendOption.data,B=0,A=$.length;A>B;B++)if(this._getName($[B])===_)return this.legendOption.data.splice(B,1)},getItemShape:function(_){if(null!=_)for(var $,B=0,A=this.shapeList.length;A>B;B++)if($=this.shapeList[B],$._name===_&&"text"!=$.type)return $},setItemShape:function(_,$){for(var C,B=0,A=this.shapeList.length;A>B;B++)C=this.shapeList[B],C._name===_&&"text"!=C.type&&(this._selectedMap[_]||($.style.color="#ccc",$.style.strokeColor="#ccc"),this.zr.modShape(C.id,$))},isSelected:function($){return"undefined"!=typeof this._selectedMap[$]?this._selectedMap[$]:!0},getSelectedMap:function(){return this._selectedMap},setSelected:function(_,$){if("single"===this.legendOption.selectedMode)for(var A in this._selectedMap)this._selectedMap[A]=!1;this._selectedMap[_]=$,this.messageCenter.dispatch(F.EVENT.LEGEND_SELECTED,null,{selected:this._selectedMap,target:_},this.myChart)},onlegendSelected:function(_,$){var B=_.selected;for(var A in B)this._selectedMap[A]!=B[A]&&($.needRefresh=!0),this._selectedMap[A]=B[A]}};var A={line:function(_,$){var A=$.height/2;_.moveTo($.x,$.y+A),_.lineTo($.x+$.width,$.y+A)},pie:function(_,$){var D=$.x,C=$.y,A=$.width,B=$.height;I.prototype.buildPath(_,{x:D+A/2,y:C+B+2,r:B,r0:6,startAngle:45,endAngle:135})},eventRiver:function(_,$){var D=$.x,C=$.y,B=$.width,A=$.height;_.moveTo(D,C+A),_.bezierCurveTo(D+B,C+A,D,C+4,D+B,C+4),_.lineTo(D+B,C),_.bezierCurveTo(D,C,D+B,C+A-4,D,C+A-4),_.lineTo(D,C+A)},k:function(_,$){var E=$.x,D=$.y,C=$.width,A=$.height;B.prototype.buildPath(_,{x:E+C/2,y:[D+1,D+1,D+A-6,D+A],width:C-6})},bar:function(_,$){var E=$.x,D=$.y+1,B=$.width,A=$.height-2,C=3;_.moveTo(E+C,D),_.lineTo(E+B-C,D),_.quadraticCurveTo(E+B,D,E+B,D+C),_.lineTo(E+B,D+A-C),_.quadraticCurveTo(E+B,D+A,E+B-C,D+A),_.lineTo(E+C,D+A),_.quadraticCurveTo(E,D+A,E,D+A-C),_.lineTo(E,D+C),_.quadraticCurveTo(E,D,E+C,D)},force:function(_,$){C.prototype.iconLibrary.circle(_,$)},radar:function(H,_){var G=6,D=_.x+_.width/2,J=_.y+_.height/2,I=_.height/2,C=2*Math.PI/G,B=-Math.PI/2,F=D+I*Math.cos(B),E=J+I*Math.sin(B);H.moveTo(F,E),B+=C;for(var $=0,A=G-1;A>$;$++)H.lineTo(D+I*Math.cos(B),J+I*Math.sin(B)),B+=C;H.lineTo(F,E)}};A.chord=A.pie,A.map=A.bar;for(var K in A)C.prototype.iconLibrary["legendicon"+K]=A[K];return E.inherits(_,G),H("../component").define("legend",_),_}),C("echarts/component/tooltip",["require","./base","../util/shape/Cross","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/area","zrender/tool/color","zrender/tool/util","zrender/shape/Base","../component"],function(J){function A(_,$,A,C,B){H.call(this,_,$,A,C,B),this.dom=B.dom;var D=this;D._onmousemove=function($){return D.__onmousemove($)},D._onglobalout=function($){return D.__onglobalout($)},this.zr.on(F.EVENT.MOUSEMOVE,D._onmousemove),this.zr.on(F.EVENT.GLOBALOUT,D._onglobalout),D._hide=function($){return D.__hide($)},D._tryShow=function($){return D.__tryShow($)},D._refixed=function($){return D.__refixed($)},D._setContent=function(_,$){return D.__setContent(_,$)},this._tDom=this._tDom||document.createElement("div"),this._tDom.onselectstart=function(){return!1},this._tDom.onmouseover=function(){D._mousein=!0},this._tDom.onmouseout=function(){D._mousein=!1},this._tDom.className="echarts-tooltip",this._tDom.style.position="absolute",this.hasAppend=!1,this._axisLineShape&&this.zr.delShape(this._axisLineShape.id),this._axisLineShape=new L({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisLineShape),this.zr.addShape(this._axisLineShape),this._axisShadowShape&&this.zr.delShape(this._axisShadowShape.id),this._axisShadowShape=new L({zlevel:this.getZlevelBase(),z:1,invisible:!0,hoverable:!1}),this.shapeList.push(this._axisShadowShape),this.zr.addShape(this._axisShadowShape),this._axisCrossShape&&this.zr.delShape(this._axisCrossShape.id),this._axisCrossShape=new E({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisCrossShape),this.zr.addShape(this._axisCrossShape),this.showing=!1,this.refresh(C)}var H=J("./base"),E=J("../util/shape/Cross"),L=J("zrender/shape/Line"),K=J("zrender/shape/Rectangle"),D=new K({}),C=J("../config");C.tooltip={zlevel:1,z:8,show:!0,showContent:!0,trigger:"item",islandFormatter:"{a} <br/>{b} : {c}",showDelay:20,hideDelay:100,transitionDuration:0.4,enterable:!1,backgroundColor:"rgba(0,0,0,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",lineStyle:{color:"#48b",width:2,type:"solid"},crossStyle:{color:"#1e90ff",width:1,type:"dashed"},shadowStyle:{color:"rgba(150,150,150,0.3)",width:"auto",type:"default"}},textStyle:{color:"#fff"}};var G=J("../util/ecData"),F=J("zrender/config"),_=J("zrender/tool/event"),B=J("zrender/tool/area"),M=J("zrender/tool/color"),I=J("zrender/tool/util"),$=J("zrender/shape/Base");return A.prototype={type:C.COMPONENT_TYPE_TOOLTIP,_gCssText:"position:absolute;display:block;border-style:solid;white-space:nowrap;",_style:function(_){if(!_)return"";var $=[];if(_.transitionDuration){var C="left "+_.transitionDuration+"s,top "+_.transitionDuration+"s";$.push("transition:"+C),$.push("-moz-transition:"+C),$.push("-webkit-transition:"+C),$.push("-o-transition:"+C)}_.backgroundColor&&($.push("background-Color:"+M.toHex(_.backgroundColor)),$.push("filter:alpha(opacity=70)"),$.push("background-Color:"+_.backgroundColor)),null!=_.borderWidth&&$.push("border-width:"+_.borderWidth+"px"),null!=_.borderColor&&$.push("border-color:"+_.borderColor),null!=_.borderRadius&&($.push("border-radius:"+_.borderRadius+"px"),$.push("-moz-border-radius:"+_.borderRadius+"px"),$.push("-webkit-border-radius:"+_.borderRadius+"px"),$.push("-o-border-radius:"+_.borderRadius+"px"));var B=_.textStyle;B&&(B.color&&$.push("color:"+B.color),B.decoration&&$.push("text-decoration:"+B.decoration),B.align&&$.push("text-align:"+B.align),B.fontFamily&&$.push("font-family:"+B.fontFamily),B.fontSize&&$.push("font-size:"+B.fontSize+"px"),B.fontSize&&$.push("line-height:"+Math.round(3*B.fontSize/2)+"px"),B.fontStyle&&$.push("font-style:"+B.fontStyle),B.fontWeight&&$.push("font-weight:"+B.fontWeight));var A=_.padding;return null!=A&&(A=this.reformCssArray(A),$.push("padding:"+A[0]+"px "+A[1]+"px "+A[2]+"px "+A[3]+"px")),$=$.join(";")+";"},__hide:function(){this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,this._tDom&&(this._tDom.style.display="none");var $=!1;this._axisLineShape.invisible||(this._axisLineShape.invisible=!0,this.zr.modShape(this._axisLineShape.id),$=!0),this._axisShadowShape.invisible||(this._axisShadowShape.invisible=!0,this.zr.modShape(this._axisShadowShape.id),$=!0),this._axisCrossShape.invisible||(this._axisCrossShape.invisible=!0,this.zr.modShape(this._axisCrossShape.id),$=!0),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2),$&&this.zr.refreshNextFrame(),this.showing=!1},_show:function(_,$,D,C){var B=this._tDom.offsetHeight,A=this._tDom.offsetWidth;_&&("function"==typeof _&&(_=_([$,D])),_ instanceof Array&&($=_[0],D=_[1])),$+A>this._zrWidth&&($-=A+40),D+B>this._zrHeight&&(D-=B-20),20>D&&(D=0),this._tDom.style.cssText=this._gCssText+this._defaultCssText+(C?C:"")+"left:"+$+"px;top:"+D+"px;",(10>B||10>A)&&setTimeout(this._refixed,20),this.showing=!0},__refixed:function(){if(this._tDom){var _="",$=this._tDom.offsetHeight,A=this._tDom.offsetWidth;this._tDom.offsetLeft+A>this._zrWidth&&(_+="left:"+(this._zrWidth-A-20)+"px;"),this._tDom.offsetTop+$>this._zrHeight&&(_+="top:"+(this._zrHeight-$-10)+"px;"),""!==_&&(this._tDom.style.cssText+=_)}},__tryShow:function(){var _,$;if(this._curTarget){if("island"===this._curTarget._type&&this.option.tooltip.show)return void this._showItemTrigger();var B=G.get(this._curTarget,"series"),A=G.get(this._curTarget,"data");_=this.deepQuery([A,B,this.option],"tooltip.show"),null!=B&&null!=A&&_?($=this.deepQuery([A,B,this.option],"tooltip.trigger"),"axis"===$?this._showAxisTrigger(B.xAxisIndex,B.yAxisIndex,G.get(this._curTarget,"dataIndex")):this._showItemTrigger()):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}else this._findPolarTrigger()||this._findAxisTrigger()},_findAxisTrigger:function(){if(!this.component.xAxis||!this.component.yAxis)return void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));for(var _,$,D=this.option.series,B=0,A=D.length;A>B;B++)if("axis"===this.deepQuery([D[B],this.option],"tooltip.trigger"))return _=D[B].xAxisIndex||0,$=D[B].yAxisIndex||0,this.component.xAxis.getAxis(_)&&this.component.xAxis.getAxis(_).type===C.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(_,$,this._getNearestDataIndex("x",this.component.xAxis.getAxis(_))):this.component.yAxis.getAxis($)&&this.component.yAxis.getAxis($).type===C.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(_,$,this._getNearestDataIndex("y",this.component.yAxis.getAxis($))):void this._showAxisTrigger(_,$,-1);"cross"===this.option.tooltip.axisPointer.type&&this._showAxisTrigger(-1,-1,-1)},_findPolarTrigger:function(){if(!this.component.polar)return!1;var A,$=_.getX(this._event),C=_.getY(this._event),B=this.component.polar.getNearestIndex([$,C]);return B?(A=B.valueIndex,B=B.polarIndex):B=-1,-1!=B?this._showPolarTrigger(B,A):!1},_getNearestDataIndex:function(H,$){var G=-1,D=_.getX(this._event),J=_.getY(this._event);if("x"===H){for(var I,C,B=this.component.grid.getXend(),F=$.getCoordByIndex(G);B>F&&(C=F,D>=F);)I=F,F=$.getCoordByIndex(++G);return 0>=G?G=0:C-D>=D-I?G-=1:null==$.getNameByIndex(G)&&(G-=1),G}for(var E,A,K=this.component.grid.getY(),F=$.getCoordByIndex(G);F>K&&(E=F,F>=J);)A=F,F=$.getCoordByIndex(++G);return 0>=G?G=0:J-E>=A-J?G-=1:null==$.getNameByIndex(G)&&(G-=1),G},_showAxisTrigger:function(N,B,K){if(!this._event.connectTrigger&&this.messageCenter.dispatch(C.EVENT.TOOLTIP_IN_GRID,this._event,null,this.myChart),null==this.component.xAxis||null==this.component.yAxis||null==N||null==B)return clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));var G,P,O,F,J=this.option.series,H=[],E=[],R="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return;P=this.option.tooltip.formatter,O=this.option.tooltip.position}var M,A,$=-1!=N&&this.component.xAxis.getAxis(N).type===C.COMPONENT_TYPE_AXIS_CATEGORY?"xAxis":-1!=B&&this.component.yAxis.getAxis(B).type===C.COMPONENT_TYPE_AXIS_CATEGORY?"yAxis":!1;if($){var I="xAxis"==$?N:B;G=this.component[$].getAxis(I);for(var S=0,T=J.length;T>S;S++)this._isSelected(J[S].name)&&J[S][$+"Index"]===I&&"axis"===this.deepQuery([J[S],this.option],"tooltip.trigger")&&(F=this.query(J[S],"tooltip.showContent")||F,P=this.query(J[S],"tooltip.formatter")||P,O=this.query(J[S],"tooltip.position")||O,R+=this._style(this.query(J[S],"tooltip")),null!=J[S].stack&&"xAxis"==$?(H.unshift(J[S]),E.unshift(S)):(H.push(J[S]),E.push(S)));this.messageCenter.dispatch(C.EVENT.TOOLTIP_HOVER,this._event,{seriesIndex:E,dataIndex:K},this.myChart);var L;"xAxis"==$?(M=this.subPixelOptimize(G.getCoordByIndex(K),this._axisLineWidth),A=_.getY(this._event),L=[M,this.component.grid.getY(),M,this.component.grid.getYend()]):(M=_.getX(this._event),A=this.subPixelOptimize(G.getCoordByIndex(K),this._axisLineWidth),L=[this.component.grid.getX(),A,this.component.grid.getXend(),A]),this._styleAxisPointer(H,L[0],L[1],L[2],L[3],G.getGap(),M,A)}else M=_.getX(this._event),A=_.getY(this._event),this._styleAxisPointer(J,this.component.grid.getX(),A,this.component.grid.getXend(),A,0,M,A),K>=0?this._showItemTrigger(!0):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._tDom.style.display="none");if(H.length>0){if(this._lastItemTriggerId=-1,this._lastDataIndex!=K||this._lastSeriesIndex!=E[0]){this._lastDataIndex=K,this._lastSeriesIndex=E[0];var U,D;if("function"==typeof P){for(var Q=[],S=0,T=H.length;T>S;S++)U=H[S].data[K],D=this.getDataFromOption(U,"-"),Q.push({seriesIndex:E[S],seriesName:H[S].name||"",series:H[S],dataIndex:K,data:U,name:G.getNameByIndex(K),value:D,0:H[S].name||"",1:G.getNameByIndex(K),2:D,3:U});this._curTicket="axis:"+K,this._tDom.innerHTML=P.call(this.myChart,Q,this._curTicket,this._setContent)}else if("string"==typeof P){this._curTicket=0/0,P=P.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}");for(S=0,T=H.length;T>S;S++)P=P.replace("{a"+S+"}",this._encodeHTML(H[S].name||"")),P=P.replace("{b"+S+"}",this._encodeHTML(G.getNameByIndex(K))),U=H[S].data[K],U=this.getDataFromOption(U,"-"),P=P.replace("{c"+S+"}",U instanceof Array?U:this.numAddCommas(U));this._tDom.innerHTML=P}else{this._curTicket=0/0,P=this._encodeHTML(G.getNameByIndex(K));for(S=0,T=H.length;T>S;S++)P+="<br/>"+this._encodeHTML(H[S].name||"")+" : ",U=H[S].data[K],U=this.getDataFromOption(U,"-"),P+=U instanceof Array?U:this.numAddCommas(U);this._tDom.innerHTML=P}}if(F===!1||!this.option.tooltip.showContent)return;this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(O,M+10,A+10,R)}},_showPolarTrigger:function(L,B){if(null==this.component.polar||null==L||null==B||0>B)return!1;var J,F,N,M=this.option.series,E=[],D=[],I="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return!1;J=this.option.tooltip.formatter,F=this.option.tooltip.position}for(var G=this.option.polar[L].indicator[B].text,C=0,O=M.length;O>C;C++)this._isSelected(M[C].name)&&M[C].polarIndex===L&&"axis"===this.deepQuery([M[C],this.option],"tooltip.trigger")&&(N=this.query(M[C],"tooltip.showContent")||N,J=this.query(M[C],"tooltip.formatter")||J,F=this.query(M[C],"tooltip.position")||F,I+=this._style(this.query(M[C],"tooltip")),E.push(M[C]),D.push(C));if(E.length>0){for(var K,A,$,H=[],C=0,O=E.length;O>C;C++){K=E[C].data;for(var P=0,Q=K.length;Q>P;P++)A=K[P],this._isSelected(A.name)&&(A=null!=A?A:{name:"",value:{dataIndex:"-"}},$=this.getDataFromOption(A.value[B]),H.push({seriesIndex:D[C],seriesName:E[C].name||"",series:E[C],dataIndex:B,data:A,name:A.name,indicator:G,value:$,0:E[C].name||"",1:A.name,2:$,3:G}))}if(H.length<=0)return;if(this._lastItemTriggerId=-1,this._lastDataIndex!=B||this._lastSeriesIndex!=D[0])if(this._lastDataIndex=B,this._lastSeriesIndex=D[0],"function"==typeof J)this._curTicket="axis:"+B,this._tDom.innerHTML=J.call(this.myChart,H,this._curTicket,this._setContent);else if("string"==typeof J){J=J.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}");for(C=0,O=H.length;O>C;C++)J=J.replace("{a"+C+"}",this._encodeHTML(H[C].seriesName)),J=J.replace("{b"+C+"}",this._encodeHTML(H[C].name)),J=J.replace("{c"+C+"}",this.numAddCommas(H[C].value)),J=J.replace("{d"+C+"}",this._encodeHTML(H[C].indicator));this._tDom.innerHTML=J}else{J=this._encodeHTML(H[0].name)+"<br/>"+this._encodeHTML(H[0].indicator)+" : "+this.numAddCommas(H[0].value);for(C=1,O=H.length;O>C;C++)J+="<br/>"+this._encodeHTML(H[C].name)+"<br/>",J+=this._encodeHTML(H[C].indicator)+" : "+this.numAddCommas(H[C].value);this._tDom.innerHTML=J}if(N===!1||!this.option.tooltip.showContent)return;return this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(F,_.getX(this._event),_.getY(this._event),I),!0}},_showItemTrigger:function(M){if(this._curTarget){var B,J,F,O=G.get(this._curTarget,"series"),N=G.get(this._curTarget,"seriesIndex"),E=G.get(this._curTarget,"data"),H=G.get(this._curTarget,"dataIndex"),D=G.get(this._curTarget,"name"),P=G.get(this._curTarget,"value"),L=G.get(this._curTarget,"special"),A=G.get(this._curTarget,"special2"),$=[E,O,this.option],I="";if("island"!=this._curTarget._type){var Q=M?"axis":"item";this.option.tooltip.trigger===Q&&(B=this.option.tooltip.formatter,J=this.option.tooltip.position),this.query(O,"tooltip.trigger")===Q&&(F=this.query(O,"tooltip.showContent")||F,B=this.query(O,"tooltip.formatter")||B,J=this.query(O,"tooltip.position")||J,I+=this._style(this.query(O,"tooltip"))),F=this.query(E,"tooltip.showContent")||F,B=this.query(E,"tooltip.formatter")||B,J=this.query(E,"tooltip.position")||J,I+=this._style(this.query(E,"tooltip"))}else this._lastItemTriggerId=0/0,F=this.deepQuery($,"tooltip.showContent"),B=this.deepQuery($,"tooltip.islandFormatter"),J=this.deepQuery($,"tooltip.islandPosition");this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId!==this._curTarget.id&&(this._lastItemTriggerId=this._curTarget.id,"function"==typeof B?(this._curTicket=(O.name||"")+":"+H,this._tDom.innerHTML=B.call(this.myChart,{seriesIndex:N,seriesName:O.name||"",series:O,dataIndex:H,data:E,name:D,value:P,percent:L,indicator:L,value2:A,indicator2:A,0:O.name||"",1:D,2:P,3:L,4:A,5:E,6:N,7:H},this._curTicket,this._setContent)):"string"==typeof B?(this._curTicket=0/0,B=B.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),B=B.replace("{a0}",this._encodeHTML(O.name||"")).replace("{b0}",this._encodeHTML(D)).replace("{c0}",P instanceof Array?P:this.numAddCommas(P)),B=B.replace("{d}","{d0}").replace("{d0}",L||""),B=B.replace("{e}","{e0}").replace("{e0}",G.get(this._curTarget,"special2")||""),this._tDom.innerHTML=B):(this._curTicket=0/0,this._tDom.innerHTML=O.type===C.CHART_TYPE_RADAR&&L?this._itemFormatter.radar.call(this,O,D,P,L):O.type===C.CHART_TYPE_EVENTRIVER?this._itemFormatter.eventRiver.call(this,O,D,P,E):""+(null!=O.name?this._encodeHTML(O.name)+"<br/>":"")+(""===D?"":this._encodeHTML(D)+" : ")+(P instanceof Array?P:this.numAddCommas(P))));var R=_.getX(this._event),K=_.getY(this._event);this.deepQuery($,"tooltip.axisPointer.show")&&this.component.grid?this._styleAxisPointer([O],this.component.grid.getX(),K,this.component.grid.getXend(),K,0,R,K):this._hide(),F!==!1&&this.option.tooltip.showContent&&(this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(J,R+20,K-20,I))}},_itemFormatter:{radar:function(_,$,D,C){var B="";B+=this._encodeHTML(""===$?_.name||"":$),B+=""===B?"":"<br />";for(var A=0;A<C.length;A++)B+=this._encodeHTML(C[A].text)+" : "+this.numAddCommas(D[A])+"<br />";return B},chord:function(_,$,E,D,B){if(null==B)return this._encodeHTML($)+" ("+this.numAddCommas(E)+")";var A=this._encodeHTML($),C=this._encodeHTML(D);return""+(null!=_.name?this._encodeHTML(_.name)+"<br/>":"")+A+" -> "+C+" ("+this.numAddCommas(E)+")<br />"+C+" -> "+A+" ("+this.numAddCommas(B)+")"},eventRiver:function(_,$,E,D){var B="";B+=this._encodeHTML(""===_.name?"":_.name+" : "),B+=this._encodeHTML($),B+=""===B?"":"<br />",D=D.evolution;for(var A=0,C=D.length;C>A;A++)B+="<div style=\"padding-top:5px;\">",D[A].detail&&(D[A].detail.img&&(B+="<img src=\""+D[A].detail.img+"\" style=\"float:left;width:40px;height:40px;\">"),B+="<div style=\"margin-left:45px;\">"+D[A].time+"<br/>",B+="<a href=\""+D[A].detail.link+"\" target=\"_blank\">",B+=D[A].detail.text+"</a></div>",B+="</div>");return B}},_styleAxisPointer:function(L,B,J,F,N,M,E,D){if(L.length>0){var I,G,A=this.option.tooltip.axisPointer,C=A.type,O={line:{},cross:{},shadow:{}};for(var K in O)O[K].color=A[K+"Style"].color,O[K].width=A[K+"Style"].width,O[K].type=A[K+"Style"].type;for(var _=0,$=L.length;$>_;_++)I=L[_],G=this.query(I,"tooltip.axisPointer.type"),C=G||C,G&&(O[G].color=this.query(I,"tooltip.axisPointer."+G+"Style.color")||O[G].color,O[G].width=this.query(I,"tooltip.axisPointer."+G+"Style.width")||O[G].width,O[G].type=this.query(I,"tooltip.axisPointer."+G+"Style.type")||O[G].type);if("line"===C){var H=O.line.width,P=B==F;this._axisLineShape.style={xStart:P?this.subPixelOptimize(B,H):B,yStart:P?J:this.subPixelOptimize(J,H),xEnd:P?this.subPixelOptimize(F,H):F,yEnd:P?N:this.subPixelOptimize(N,H),strokeColor:O.line.color,lineWidth:H,lineType:O.line.type},this._axisLineShape.invisible=!1,this.zr.modShape(this._axisLineShape.id)}else if("cross"===C){var Q=O.cross.width;this._axisCrossShape.style={brushType:"stroke",rect:this.component.grid.getArea(),x:this.subPixelOptimize(E,Q),y:this.subPixelOptimize(D,Q),text:("( "+this.component.xAxis.getAxis(0).getValueFromCoord(E)+" , "+this.component.yAxis.getAxis(0).getValueFromCoord(D)+" )").replace(" , "," ").replace(" , "," "),textPosition:"specific",strokeColor:O.cross.color,lineWidth:Q,lineType:O.cross.type},this.component.grid.getXend()-E>100?(this._axisCrossShape.style.textAlign="left",this._axisCrossShape.style.textX=E+10):(this._axisCrossShape.style.textAlign="right",this._axisCrossShape.style.textX=E-10),D-this.component.grid.getY()>50?(this._axisCrossShape.style.textBaseline="bottom",this._axisCrossShape.style.textY=D-10):(this._axisCrossShape.style.textBaseline="top",this._axisCrossShape.style.textY=D+10),this._axisCrossShape.invisible=!1,this.zr.modShape(this._axisCrossShape.id)}else"shadow"===C&&((null==O.shadow.width||"auto"===O.shadow.width||isNaN(O.shadow.width))&&(O.shadow.width=M),B===F?Math.abs(this.component.grid.getX()-B)<2?(O.shadow.width/=2,B=F+=O.shadow.width/2):Math.abs(this.component.grid.getXend()-B)<2&&(O.shadow.width/=2,B=F-=O.shadow.width/2):J===N&&(Math.abs(this.component.grid.getY()-J)<2?(O.shadow.width/=2,J=N+=O.shadow.width/2):Math.abs(this.component.grid.getYend()-J)<2&&(O.shadow.width/=2,J=N-=O.shadow.width/2)),this._axisShadowShape.style={xStart:B,yStart:J,xEnd:F,yEnd:N,strokeColor:O.shadow.color,lineWidth:O.shadow.width},this._axisShadowShape.invisible=!1,this.zr.modShape(this._axisShadowShape.id));this.zr.refreshNextFrame()}},__onmousemove:function(A){if(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),!this._mousein||!this._enterable){var $=A.target,J=_.getX(A.event),G=_.getY(A.event);if($){this._curTarget=$,this._event=A.event,this._event.zrenderX=J,this._event.zrenderY=G;var F;if(this._needAxisTrigger&&this.component.polar&&-1!=(F=this.component.polar.isInside([J,G])))for(var E=this.option.series,I=0,H=E.length;H>I;I++)if(E[I].polarIndex===F&&"axis"===this.deepQuery([E[I],this.option],"tooltip.trigger")){this._curTarget=null;break}this._showingTicket=setTimeout(this._tryShow,this._showDelay)}else this._curTarget=!1,this._event=A.event,this._event.zrenderX=J,this._event.zrenderY=G,this._needAxisTrigger&&this.component.grid&&B.isInside(D,this.component.grid.getArea(),J,G)?this._showingTicket=setTimeout(this._tryShow,this._showDelay):this._needAxisTrigger&&this.component.polar&&-1!=this.component.polar.isInside([J,G])?this._showingTicket=setTimeout(this._tryShow,this._showDelay):(!this._event.connectTrigger&&this.messageCenter.dispatch(C.EVENT.TOOLTIP_OUT_GRID,this._event,null,this.myChart),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}},__onglobalout:function(){clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay)},__setContent:function(_,$){this._tDom&&(_===this._curTicket&&(this._tDom.innerHTML=$),setTimeout(this._refixed,20))},ontooltipHover:function(A,_){if(!this._lastTipShape||this._lastTipShape&&this._lastTipShape.dataIndex!=A.dataIndex){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this.shapeList.length=2);for(var C=0,B=_.length;B>C;C++)_[C].zlevel=this.getZlevelBase(),_[C].z=this.getZBase(),_[C].style=$.prototype.getHighlightStyle(_[C].style,_[C].highlightStyle),_[C].draggable=!1,_[C].hoverable=!1,_[C].clickable=!1,_[C].ondragend=null,_[C].ondragover=null,_[C].ondrop=null,this.shapeList.push(_[C]),this.zr.addShape(_[C]);this._lastTipShape={dataIndex:A.dataIndex,tipShape:_}}},ondragend:function(){this._hide()},onlegendSelected:function($){this._selectedMap=$.selected},_setSelectedMap:function(){this._selectedMap=this.component.legend?I.clone(this.component.legend.getSelectedMap()):{}},_isSelected:function($){return null!=this._selectedMap[$]?this._selectedMap[$]:!0},showTip:function(N){if(N){var B,K=this.option.series;if(null!=N.seriesIndex)B=N.seriesIndex;else for(var I=N.seriesName,P=0,O=K.length;O>P;P++)if(K[P].name===I){B=P;break}var H=K[B];if(null!=H){var A=this.myChart.chart[H.type],E="axis"===this.deepQuery([H,this.option],"tooltip.trigger");if(A)if(E){var Q=N.dataIndex;switch(A.type){case C.CHART_TYPE_LINE:case C.CHART_TYPE_BAR:case C.CHART_TYPE_K:case C.CHART_TYPE_RADAR:if(null==this.component.polar||H.data[0].value.length<=Q)return;var M=H.polarIndex||0,_=this.component.polar.getVector(M,Q,"max");this._event={zrenderX:_[0],zrenderY:_[1]},this._showPolarTrigger(M,Q)}}else{var $,J,R=A.shapeList;switch(A.type){case C.CHART_TYPE_LINE:case C.CHART_TYPE_BAR:case C.CHART_TYPE_K:case C.CHART_TYPE_TREEMAP:case C.CHART_TYPE_SCATTER:for(Q=N.dataIndex,P=0,O=R.length;O>P;P++)if(null==R[P]._mark&&G.get(R[P],"seriesIndex")==B&&G.get(R[P],"dataIndex")==Q){this._curTarget=R[P],$=R[P].style.x,J=A.type!=C.CHART_TYPE_K?R[P].style.y:R[P].style.y[0];break}break;case C.CHART_TYPE_RADAR:for(Q=N.dataIndex,P=0,O=R.length;O>P;P++)if("polygon"===R[P].type&&G.get(R[P],"seriesIndex")==B&&G.get(R[P],"dataIndex")==Q){this._curTarget=R[P];_=this.component.polar.getCenter(H.polarIndex||0);$=_[0],J=_[1];break}break;case C.CHART_TYPE_PIE:for(var S=N.name,P=0,O=R.length;O>P;P++)if("sector"===R[P].type&&G.get(R[P],"seriesIndex")==B&&G.get(R[P],"name")==S){this._curTarget=R[P];var L=this._curTarget.style,T=(L.startAngle+L.endAngle)/2*Math.PI/180;$=this._curTarget.style.x+Math.cos(T)*L.r/1.5,J=this._curTarget.style.y-Math.sin(T)*L.r/1.5;break}break;case C.CHART_TYPE_MAP:for(var S=N.name,D=H.mapType,P=0,O=R.length;O>P;P++)if("text"===R[P].type&&R[P]._mapType===D&&R[P].style._name===S){this._curTarget=R[P],$=this._curTarget.style.x+this._curTarget.position[0],J=this._curTarget.style.y+this._curTarget.position[1];break}break;case C.CHART_TYPE_CHORD:for(S=N.name,P=0,O=R.length;O>P;P++)if("sector"===R[P].type&&G.get(R[P],"name")==S){this._curTarget=R[P];L=this._curTarget.style,T=(L.startAngle+L.endAngle)/2*Math.PI/180;return $=this._curTarget.style.x+Math.cos(T)*(L.r-2),J=this._curTarget.style.y-Math.sin(T)*(L.r-2),void this.zr.trigger(F.EVENT.MOUSEMOVE,{zrenderX:$,zrenderY:J})}break;case C.CHART_TYPE_FORCE:for(S=N.name,P=0,O=R.length;O>P;P++)if("circle"===R[P].type&&G.get(R[P],"name")==S){this._curTarget=R[P],$=this._curTarget.position[0],J=this._curTarget.position[1];break}}null!=$&&null!=J&&(this._event={zrenderX:$,zrenderY:J},this.zr.addHoverShape(this._curTarget),this.zr.refreshHover(),this._showItemTrigger())}}}},hideTip:function(){this._hide()},refresh:function(_){if(this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2,this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,_){this.option=_,this.option.tooltip=this.reformOption(this.option.tooltip),this.option.tooltip.textStyle=I.merge(this.option.tooltip.textStyle,this.ecTheme.textStyle),this._needAxisTrigger=!1,"axis"===this.option.tooltip.trigger&&(this._needAxisTrigger=!0);for(var $=this.option.series,C=0,B=$.length;B>C;C++)if("axis"===this.query($[C],"tooltip.trigger")){this._needAxisTrigger=!0;break}this._showDelay=this.option.tooltip.showDelay,this._hideDelay=this.option.tooltip.hideDelay,this._defaultCssText=this._style(this.option.tooltip),this._setSelectedMap(),this._axisLineWidth=this.option.tooltip.axisPointer.lineStyle.width,this._enterable=this.option.tooltip.enterable,!this._enterable&&this._tDom.className.indexOf(F.elementClassName)<0&&(this._tDom.className+=" "+F.elementClassName)}if(this.showing){var A=this;setTimeout(function(){A.zr.trigger(F.EVENT.MOUSEMOVE,A.zr.handler._event)},50)}},onbeforDispose:function(){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this.zr.un(F.EVENT.MOUSEMOVE,this._onmousemove),this.zr.un(F.EVENT.GLOBALOUT,this._onglobalout),this.hasAppend&&this.dom.firstChild&&this.dom.firstChild.removeChild(this._tDom),this._tDom=null},_encodeHTML:function($){return String($).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}},I.inherits(A,H),J("../component").define("tooltip",A),A}),C("echarts/chart",[],function(){var _={},$={};return _.define=function(B,A){return $[B]=A,_},_.get=function(_){return $[_]},_}),C("echarts/util/ecData",[],function(){function _(_,$,G,E,B,A,D,C){var F;return"undefined"!=typeof E&&(F=null==E.value?E:E.value),_._echartsData={_series:$,_seriesIndex:G,_data:E,_dataIndex:B,_name:A,_value:F,_special:D,_special2:C},_._echartsData}function $(_,$){var A=_._echartsData;if(!$)return A;switch($){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":return A&&A["_"+$]}return null}function B(_,$,A){switch(_._echartsData=_._echartsData||{},$){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":_._echartsData["_"+$]=A}}function A(_,$){$._echartsData={_series:_._echartsData._series,_seriesIndex:_._echartsData._seriesIndex,_data:_._echartsData._data,_dataIndex:_._echartsData._dataIndex,_name:_._echartsData._name,_value:_._echartsData._value,_special:_._echartsData._special,_special2:_._echartsData._special2}}return{pack:_,set:B,get:$,clone:A}}),C("zrender/tool/color",["require","../tool/util"],function(m){function Y($){M=$}function i(){M=T}function d(_,$){return _=0|_,$=$||M,$[_%$.length]}function o($){B=$}function n(){p=B}function c(){return B}function b(_,$,I,E,B,A,D){H||(H=S.getContext());for(var C=H.createRadialGradient(_,$,I,E,B,A),G=0,F=D.length;F>G;G++)C.addColorStop(D[G][0],D[G][1]);return C.__nonRecursion=!0,C}function h(_,$,F,E,B){H||(H=S.getContext());for(var A=H.createLinearGradient(_,$,F,E),D=0,C=B.length;C>D;D++)A.addColorStop(B[D][0],B[D][1]);return A.__nonRecursion=!0,A}function e(J,_,G){J=W(J),_=W(_),J=C(J),_=C(_);for(var D=[],L=(_[0]-J[0])/G,K=(_[1]-J[1])/G,B=(_[2]-J[2])/G,A=(_[3]-J[3])/G,F=0,E=J[0],$=J[1],M=J[2],H=J[3];G>F;F++)D[F]=a([I(Math.floor(E),[0,255]),I(Math.floor($),[0,255]),I(Math.floor(M),[0,255]),H.toFixed(4)-0],"rgba"),E+=L,$+=K,M+=B,H+=A;return E=_[0],$=_[1],M=_[2],H=_[3],D[F]=a([E,$,M,H],"rgba"),D}function X(_,$){var E=[],D=_.length;if(void 0===$&&($=20),1===D)E=e(_[0],_[0],$);else if(D>1)for(var B=0,A=D-1;A>B;B++){var C=e(_[B],_[B+1],$);A-1>B&&C.pop(),E=E.concat(C)}return E}function a(_,$){if($=$||"rgb",_&&(3===_.length||4===_.length)){if(_=K(_,function($){return $>1?Math.ceil($):$}),$.indexOf("hex")>-1)return"#"+((1<<24)+(_[0]<<16)+(_[1]<<8)+ +_[2]).toString(16).slice(1);if($.indexOf("hs")>-1){var A=K(_.slice(1,3),function($){return $+"%"});_[1]=A[0],_[2]=A[1]}return $.indexOf("a")>-1?(3===_.length&&_.push(1),_[3]=I(_[3],[0,1]),$+"("+_.slice(0,4).join(",")+")"):$+"("+_.slice(0,3).join(",")+")"}}function q(_){_=r(_),_.indexOf("rgba")<0&&(_=W(_));var $=[],A=0;return _.replace(/[\d.]+/g,function(_){_=3>A?0|_:+_,$[A++]=_}),$}function l(B,_){if(!O(B))return B;var E=C(B),D=E[3];return"undefined"==typeof D&&(D=1),B.indexOf("hsb")>-1?E=Q(E):B.indexOf("hsl")>-1&&(E=$(E)),_.indexOf("hsb")>-1||_.indexOf("hsv")>-1?E=J(E):_.indexOf("hsl")>-1&&(E=A(E)),E[3]=D,a(E,_)}function W($){return l($,"rgba")}function V($){return l($,"rgb")}function f($){return l($,"hex")}function R($){return l($,"hsva")}function s($){return l($,"hsv")}function k($){return l($,"hsba")}function t($){return l($,"hsb")}function Z($){return l($,"hsla")}function P($){return l($,"hsl")}function L(_){for(var $ in U)if(f(U[$])===f(_))return $;return null}function r($){return String($).replace(/\s+/g,"")}function E(_){if(U[_]&&(_=U[_]),_=r(_),_=_.replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(_)){_=parseInt(_.slice(1),16);var $=(3840&_)<<8,B=(240&_)<<4,A=15&_;_="#"+((1<<24)+($<<4)+$+(B<<4)+B+(A<<4)+A).toString(16).slice(1)}return _}function F(_,$){if(!O(_))return _;var D=$>0?1:-1;"undefined"==typeof $&&($=0),$=Math.abs($)>1?1:Math.abs($),_=V(_);for(var B=C(_),A=0;3>A;A++)B[A]=1===D?B[A]*(1-$)|0:(255-B[A])*$+B[A]|0;return"rgb("+B.join(",")+")"}function j(_){if(!O(_))return _;var $=C(W(_));return $=K($,function($){return 255-$}),a($,"rgb")}function G(H,_,G){if(!O(H)||!O(_))return H;"undefined"==typeof G&&(G=0.5),G=1-I(G,[0,1]);for(var D=2*G-1,K=C(W(H)),J=C(W(_)),B=K[3]-J[3],A=((D*B===-1?D:(D+B)/(1+D*B))+1)/2,F=1-A,E=[],$=0;3>$;$++)E[$]=K[$]*A+J[$]*F;var L=K[3]*G+J[3]*(1-G);return L=Math.max(0,Math.min(1,L)),1===K[3]&&1===J[3]?a(E,"rgb"):(E[3]=L,a(E,"rgba"))}function _(){return"#"+(Math.random().toString(16)+"0000").slice(2,8)}function C(A){A=E(A);var _=A.match(N);if(null===_)throw new Error("The color format error");var L,G,C,B=[];if(_[2])L=_[2].replace("#","").split(""),C=[L[0]+L[1],L[2]+L[3],L[4]+L[5]],B=K(C,function($){return I(parseInt($,16),[0,255])});else if(_[4]){var F=_[4].split(",");G=F[3],C=F.slice(0,3),B=K(C,function($){return $=Math.floor($.indexOf("%")>0?2.55*parseInt($,0):$),I($,[0,255])}),"undefined"!=typeof G&&B.push(I(parseFloat(G),[0,1]))}else if(_[5]||_[6]){var D=(_[5]||_[6]).split(","),J=parseInt(D[0],0)/360,H=D[1],$=D[2];G=D[3],B=K([H,$],function($){return I(parseFloat($)/100,[0,1])}),B.unshift(J),"undefined"!=typeof G&&B.push(I(parseFloat(G),[0,1]))}return B}function g(_,$){if(!O(_))return _;null===$&&($=1);var A=C(W(_));return A[3]=I(Number($).toFixed(4),[0,1]),a(A,"rgba")}function K(_,$){if("function"!=typeof $)throw new TypeError;for(var B=_?_.length:0,A=0;B>A;A++)_[A]=$(_[A]);return _}function I(_,$){return _<=$[0]?_=$[0]:_>=$[1]&&(_=$[1]),_}function O($){return $ instanceof Array||"string"==typeof $}function Q(J){var A,H,E,L=J[0],K=J[1],D=J[2];if(0===K)A=255*D,H=255*D,E=255*D;else{var C=6*L;6===C&&(C=0);var G=0|C,F=D*(1-K),_=D*(1-K*(C-G)),B=D*(1-K*(1-(C-G))),M=0,I=0,$=0;0===G?(M=D,I=B,$=F):1===G?(M=_,I=D,$=F):2===G?(M=F,I=D,$=B):3===G?(M=F,I=_,$=D):4===G?(M=B,I=F,$=D):(M=D,I=F,$=_),A=255*M,H=255*I,E=255*$}return[A,H,E]}function $(_){var $,H,F,B=_[0],A=_[1],E=_[2];if(0===A)$=255*E,H=255*E,F=255*E;else{var C;C=0.5>E?E*(1+A):E+A-A*E;var G=2*E-C;$=255*D(G,C,B+1/3),H=255*D(G,C,B),F=255*D(G,C,B-1/3)}return[$,H,F]}function D(_,$,A){return 0>A&&(A+=1),A>1&&(A-=1),1>6*A?_+6*($-_)*A:1>2*A?$:2>3*A?_+($-_)*(2/3-A)*6:_}function J(H){var _,G,D=H[0]/255,J=H[1]/255,I=H[2]/255,C=Math.min(D,J,I),B=Math.max(D,J,I),F=B-C,E=B;if(0===F)_=0,G=0;else{G=F/B;var $=((B-D)/6+F/2)/F,A=((B-J)/6+F/2)/F,K=((B-I)/6+F/2)/F;D===B?_=K-A:J===B?_=1/3+$-K:I===B&&(_=2/3+A-$),0>_&&(_+=1),_>1&&(_-=1)}return _=360*_,G=100*G,E=100*E,[_,G,E]}function A(H){var _,G,D=H[0]/255,J=H[1]/255,I=H[2]/255,C=Math.min(D,J,I),B=Math.max(D,J,I),F=B-C,E=(B+C)/2;if(0===F)_=0,G=0;else{G=0.5>E?F/(B+C):F/(2-B-C);var $=((B-D)/6+F/2)/F,A=((B-J)/6+F/2)/F,K=((B-I)/6+F/2)/F;D===B?_=K-A:J===B?_=1/3+$-K:I===B&&(_=2/3+A-$),0>_&&(_+=1),_>1&&(_-=1)}return _=360*_,G=100*G,E=100*E,[_,G,E]}var H,S=m("../tool/util"),M=["#ff9277"," #dddd00"," #ffc877"," #bbe3ff"," #d5ffbb","#bbbbff"," #ddb000"," #b0dd00"," #e2bbff"," #ffbbe3","#ff7777"," #ff9900"," #83dd00"," #77e3ff"," #778fff","#c877ff"," #ff77ab"," #ff6600"," #aa8800"," #77c7ff","#ad77ff"," #ff77ff"," #dd0083"," #777700"," #00aa00","#0088aa"," #8400dd"," #aa0088"," #dd0000"," #772e00"],T=M,B="rgba(255,255,0,0.5)",p=B,N=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,U={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"};return{customPalette:Y,resetPalette:i,getColor:d,getHighlightColor:c,customHighlight:o,resetHighlight:n,getRadialGradient:b,getLinearGradient:h,getGradientColors:X,getStepColors:e,reverse:j,mix:G,lift:F,trim:r,random:_,toRGB:V,toRGBA:W,toHex:f,toHSL:P,toHSLA:Z,toHSB:t,toHSBA:k,toHSV:s,toHSVA:R,toName:L,toColor:a,toArray:q,alpha:g,getData:C}}),C("echarts/component/timeline",["require","./base","zrender/shape/Rectangle","../util/shape/Icon","../util/shape/Chain","../config","zrender/tool/util","zrender/tool/area","zrender/tool/event","../component"],function(A){function _(_,$,E,B,A){F.call(this,_,$,E,B,A);var C=this;if(C._onclick=function($){return C.__onclick($)},C._ondrift=function(_,$){return C.__ondrift(this,_,$)},C._ondragend=function(){return C.__ondragend()},C._setCurrentOption=function(){var _=C.timelineOption;C.currentIndex%=_.data.length;var $=C.options[C.currentIndex]||{};C.myChart._setOption($,_.notMerge,!0),C.messageCenter.dispatch(D.EVENT.TIMELINE_CHANGED,null,{currentIndex:C.currentIndex,data:null!=_.data[C.currentIndex].name?_.data[C.currentIndex].name:_.data[C.currentIndex]},C.myChart)},C._onFrame=function(){C._setCurrentOption(),C._syncHandleShape(),C.timelineOption.autoPlay&&(C.playTicket=setTimeout(function(){return C.currentIndex+=1,!C.timelineOption.loop&&C.currentIndex>=C.timelineOption.data.length?(C.currentIndex=C.timelineOption.data.length-1,void C.stop()):void C._onFrame()},C.timelineOption.playInterval))},this.setTheme(!1),this.options=this.option.options,this.currentIndex=this.timelineOption.currentIndex%this.timelineOption.data.length,this.timelineOption.notMerge||0===this.currentIndex||(this.options[this.currentIndex]=H.merge(this.options[this.currentIndex],this.options[0])),this.timelineOption.show&&(this._buildShape(),this._syncHandleShape()),this._setCurrentOption(),this.timelineOption.autoPlay){C=this;this.playTicket=setTimeout(function(){C.play()},null!=this.ecTheme.animationDuration?this.ecTheme.animationDuration:D.animationDuration)}}function I(A,_){var I=2,F=_.x+I,C=_.y+I+2,E=_.width-I,D=_.height-I,H=_.symbol;if("last"===H)A.moveTo(F+E-2,C+D/3),A.lineTo(F+E-2,C),A.lineTo(F+2,C+D/2),A.lineTo(F+E-2,C+D),A.lineTo(F+E-2,C+D/3*2),A.moveTo(F,C),A.lineTo(F,C);else if("next"===H)A.moveTo(F+2,C+D/3),A.lineTo(F+2,C),A.lineTo(F+E-2,C+D/2),A.lineTo(F+2,C+D),A.lineTo(F+2,C+D/3*2),A.moveTo(F,C),A.lineTo(F,C);else if("play"===H){if("stop"===_.status)A.moveTo(F+2,C),A.lineTo(F+E-2,C+D/2),A.lineTo(F+2,C+D),A.lineTo(F+2,C);else{var G="both"===_.brushType?2:3;A.rect(F+2,C,G,D),A.rect(F+E-G-2,C,G,D)}}else if(H.match("image")){var $="";$=H.replace(new RegExp("^image:\\/\\/"),""),H=B.prototype.iconLibrary.image,H(A,{x:F,y:C,width:E,height:D,image:$})}}var F=A("./base"),C=A("zrender/shape/Rectangle"),B=A("../util/shape/Icon"),E=A("../util/shape/Chain"),D=A("../config");D.timeline={zlevel:0,z:4,show:!0,type:"time",notMerge:!1,realtime:!0,x:80,x2:80,y2:0,height:50,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,controlPosition:"left",autoPlay:!1,loop:!0,playInterval:2000,lineStyle:{width:1,color:"#666",type:"dashed"},label:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#333"}},checkpointStyle:{symbol:"auto",symbolSize:"auto",color:"auto",borderColor:"auto",borderWidth:"auto",label:{show:!1,textStyle:{color:"auto"}}},controlStyle:{itemSize:15,itemGap:5,normal:{color:"#333"},emphasis:{color:"#1e90ff"}},symbol:"emptyDiamond",symbolSize:4,currentIndex:0};var H=A("zrender/tool/util"),G=A("zrender/tool/area"),$=A("zrender/tool/event");return _.prototype={type:D.COMPONENT_TYPE_TIMELINE,_buildShape:function(){if(this._location=this._getLocation(),this._buildBackground(),this._buildControl(),this._chainPoint=this._getChainPoint(),this.timelineOption.label.show)for(var _=this._getInterval(),$=0,B=this._chainPoint.length;B>$;$+=_)this._chainPoint[$].showLabel=!0;this._buildChain(),this._buildHandle();for(var $=0,A=this.shapeList.length;A>$;$++)this.zr.addShape(this.shapeList[$])},_getLocation:function(){var _,$=this.timelineOption,H=this.reformCssArray(this.timelineOption.padding),E=this.zr.getWidth(),B=this.parsePercent($.x,E),A=this.parsePercent($.x2,E);null==$.width?(_=E-B-A,A=E-A):(_=this.parsePercent($.width,E),A=B+_);var D,C,G=this.zr.getHeight(),F=this.parsePercent($.height,G);return null!=$.y?(D=this.parsePercent($.y,G),C=D+F):(C=G-this.parsePercent($.y2,G),D=C-F),{x:B+H[3],y:D+H[0],x2:A-H[1],y2:C-H[2],width:_-H[1]-H[3],height:F-H[0]-H[2]}},_getReformedLabel:function(_){var $=this.timelineOption,B=null!=$.data[_].name?$.data[_].name:$.data[_],A=$.data[_].formatter||$.label.formatter;return A&&("function"==typeof A?B=A.call(this.myChart,B):"string"==typeof A&&(B=A.replace("{value}",B))),B},_getInterval:function(){var I=this._chainPoint,_=this.timelineOption,F=_.label.interval;if("auto"===F){var D=_.label.textStyle.fontSize,K=_.data,J=_.data.length;if(J>3){var C,B,E=!1;for(F=0;!E&&J>F;){F++,E=!0;for(var $=F;J>$;$+=F){if(C=I[$].x-I[$-F].x,0!==_.label.rotate)B=D;else if(K[$].textStyle)B=G.getTextWidth(I[$].name,I[$].textFont);else{var A=I[$].name+"",L=(A.match(/\w/g)||"").length,H=A.length-L;B=L*D*2/3+H*D}if(B>C){E=!1;break}}}}else F=1}else F=F-0+1;return F},_getChainPoint:function(){function N($){return null!=I[$].name?I[$].name:I[$]+""}var B,K=this.timelineOption,G=K.symbol.toLowerCase(),P=K.symbolSize,O=K.label.rotate,F=K.label.textStyle,E=this.getFont(F),I=K.data,A=this._location.x,D=this._location.y+this._location.height/4*3,R=this._location.x2-this._location.x,M=I.length,_=[];if(M>1){var $=R/M;if($=$>50?50:20>$?5:$,R-=2*$,"number"===K.type){for(var J=0;M>J;J++)_.push(A+$+R/(M-1)*J)}else{_[0]=new Date(N(0).replace(/-/g,"/")),_[M-1]=new Date(N(M-1).replace(/-/g,"/"))-_[0];for(J=1;M>J;J++)_[J]=A+$+R*(new Date(N(J).replace(/-/g,"/"))-_[0])/_[M-1];_[0]=A+$}}else _.push(A+R/2);for(var S,T,L,U,C,Q=[],J=0;M>J;J++)A=_[J],S=I[J].symbol&&I[J].symbol.toLowerCase()||G,S.match("empty")?(S=S.replace("empty",""),L=!0):L=!1,S.match("star")&&(T=S.replace("star","")-0||5,S="star"),B=I[J].textStyle?H.merge(I[J].textStyle||{},F):F,U=B.align||"center",O?(U=O>0?"right":"left",C=[O*Math.PI/180,A,D-5]):C=!1,Q.push({x:A,n:T,isEmpty:L,symbol:S,symbolSize:I[J].symbolSize||P,color:I[J].color,borderColor:I[J].borderColor,borderWidth:I[J].borderWidth,name:this._getReformedLabel(J),textColor:B.color,textAlign:U,textBaseline:B.baseline||"middle",textX:A,textY:D-(O?5:0),textFont:I[J].textStyle?this.getFont(B):E,rotation:C,showLabel:!1});return Q},_buildBackground:function(){var _=this.timelineOption,$=this.reformCssArray(this.timelineOption.padding),B=this._location.width,A=this._location.height;(0!==_.borderWidth||"rgba(0,0,0,0)"!=_.backgroundColor.replace(/\s/g,""))&&this.shapeList.push(new C({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x-$[3],y:this._location.y-$[0],width:B+$[1]+$[3],height:A+$[0]+$[2],brushType:0===_.borderWidth?"fill":"both",color:_.backgroundColor,strokeColor:_.borderColor,lineWidth:_.borderWidth}}))},_buildControl:function(){var A=this,_=this.timelineOption,I=_.lineStyle,F=_.controlStyle;if("none"!==_.controlPosition){var C,E=F.itemSize,D=F.itemGap;"left"===_.controlPosition?(C=this._location.x,this._location.x+=3*(E+D)):(C=this._location.x2-(3*(E+D)-D),this._location.x2-=3*(E+D));var G=this._location.y,$={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{iconType:"timelineControl",symbol:"last",x:C,y:G,width:E,height:E,brushType:"stroke",color:F.normal.color,strokeColor:F.normal.color,lineWidth:I.width},highlightStyle:{color:F.emphasis.color,strokeColor:F.emphasis.color,lineWidth:I.width+1},clickable:!0};this._ctrLastShape=new B($),this._ctrLastShape.onclick=function(){A.last()},this.shapeList.push(this._ctrLastShape),C+=E+D,this._ctrPlayShape=new B(H.clone($)),this._ctrPlayShape.style.brushType="fill",this._ctrPlayShape.style.symbol="play",this._ctrPlayShape.style.status=this.timelineOption.autoPlay?"playing":"stop",this._ctrPlayShape.style.x=C,this._ctrPlayShape.onclick=function(){"stop"===A._ctrPlayShape.style.status?A.play():A.stop()},this.shapeList.push(this._ctrPlayShape),C+=E+D,this._ctrNextShape=new B(H.clone($)),this._ctrNextShape.style.symbol="next",this._ctrNextShape.style.x=C,this._ctrNextShape.onclick=function(){A.next()},this.shapeList.push(this._ctrNextShape)}},_buildChain:function(){var _=this.timelineOption,$=_.lineStyle;this._timelineShae={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:this._location.x,y:this.subPixelOptimize(this._location.y,$.width),width:this._location.x2-this._location.x,height:this._location.height,chainPoint:this._chainPoint,brushType:"both",strokeColor:$.color,lineWidth:$.width,lineType:$.type},hoverable:!1,clickable:!0,onclick:this._onclick},this._timelineShae=new E(this._timelineShae),this.shapeList.push(this._timelineShae)},_buildHandle:function(){var _=this._chainPoint[this.currentIndex],$=_.symbolSize+1;$=5>$?5:$,this._handleShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,hoverable:!1,draggable:!0,style:{iconType:"diamond",n:_.n,x:_.x-$,y:this._location.y+this._location.height/4-$,width:2*$,height:2*$,brushType:"both",textPosition:"specific",textX:_.x,textY:this._location.y-this._location.height/4,textAlign:"center",textBaseline:"middle"},highlightStyle:{},ondrift:this._ondrift,ondragend:this._ondragend},this._handleShape=new B(this._handleShape),this.shapeList.push(this._handleShape)},_syncHandleShape:function(){if(this.timelineOption.show){var _=this.timelineOption,$=_.checkpointStyle,B=this._chainPoint[this.currentIndex];this._handleShape.style.text=$.label.show?B.name:"",this._handleShape.style.textFont=B.textFont,this._handleShape.style.n=B.n,"auto"===$.symbol?this._handleShape.style.iconType="none"!=B.symbol?B.symbol:"diamond":(this._handleShape.style.iconType=$.symbol,$.symbol.match("star")&&(this._handleShape.style.n=$.symbol.replace("star","")-0||5,this._handleShape.style.iconType="star"));var A;"auto"===$.symbolSize?(A=B.symbolSize+2,A=5>A?5:A):A=$.symbolSize-0,this._handleShape.style.color="auto"===$.color?B.color?B.color:_.controlStyle.emphasis.color:$.color,this._handleShape.style.textColor="auto"===$.label.textStyle.color?this._handleShape.style.color:$.label.textStyle.color,this._handleShape.highlightStyle.strokeColor=this._handleShape.style.strokeColor="auto"===$.borderColor?B.borderColor?B.borderColor:"#fff":$.borderColor,this._handleShape.style.lineWidth="auto"===$.borderWidth?B.borderWidth?B.borderWidth:0:$.borderWidth-0,this._handleShape.highlightStyle.lineWidth=this._handleShape.style.lineWidth+1,this.zr.animate(this._handleShape.id,"style").when(500,{x:B.x-A,textX:B.x,y:this._location.y+this._location.height/4-A,width:2*A,height:2*A}).start("ExponentialOut")}},_findChainIndex:function(_){var $=this._chainPoint,B=$.length;if(_<=$[0].x)return 0;if(_>=$[B-1].x)return B-1;for(var A=0;B-1>A;A++)if(_>=$[A].x&&_<=$[A+1].x)return Math.abs(_-$[A].x)<Math.abs(_-$[A+1].x)?A:A+1},__onclick:function(A){var _=$.getX(A.event),B=this._findChainIndex(_);return B===this.currentIndex?!0:(this.currentIndex=B,this.timelineOption.autoPlay&&this.stop(),clearTimeout(this.playTicket),void this._onFrame())},__ondrift:function(_,$){this.timelineOption.autoPlay&&this.stop();var F,E=this._chainPoint,B=E.length;_.style.x+$<=E[0].x-E[0].symbolSize?(_.style.x=E[0].x-E[0].symbolSize,F=0):_.style.x+$>=E[B-1].x-E[B-1].symbolSize?(_.style.x=E[B-1].x-E[B-1].symbolSize,F=B-1):(_.style.x+=$,F=this._findChainIndex(_.style.x));var A=E[F],D=A.symbolSize+2;if(_.style.iconType=A.symbol,_.style.n=A.n,_.style.textX=_.style.x+D/2,_.style.y=this._location.y+this._location.height/4-D,_.style.width=2*D,_.style.height=2*D,_.style.text=A.name,F===this.currentIndex)return!0;if(this.currentIndex=F,this.timelineOption.realtime){clearTimeout(this.playTicket);var C=this;this.playTicket=setTimeout(function(){C._setCurrentOption()},200)}return!0},__ondragend:function(){this.isDragend=!0},ondragend:function(_,$){this.isDragend&&_.target&&(!this.timelineOption.realtime&&this._setCurrentOption(),$.dragOut=!0,$.dragIn=!0,$.needRefresh=!1,this.isDragend=!1,this._syncHandleShape())},last:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex-=1,this.currentIndex<0&&(this.currentIndex=this.timelineOption.data.length-1),this._onFrame(),this.currentIndex},next:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex+=1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},play:function(_,$){return this._ctrPlayShape&&"playing"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="playing",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=null!=$?$:!0,this.timelineOption.autoPlay||clearTimeout(this.playTicket),this.currentIndex=null!=_?_:this.currentIndex+1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},stop:function(){return this._ctrPlayShape&&"stop"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="stop",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=!1,clearTimeout(this.playTicket),this.currentIndex},resize:function(){this.timelineOption.show&&(this.clear(),this._buildShape(),this._syncHandleShape())},setTheme:function($){this.timelineOption=this.reformOption(H.clone(this.option.timeline)),this.timelineOption.label.textStyle=this.getTextStyle(this.timelineOption.label.textStyle),this.timelineOption.checkpointStyle.label.textStyle=this.getTextStyle(this.timelineOption.checkpointStyle.label.textStyle),this.myChart.canvasSupported||(this.timelineOption.realtime=!1),this.timelineOption.show&&$&&(this.clear(),this._buildShape(),this._syncHandleShape())},onbeforDispose:function(){clearTimeout(this.playTicket)}},B.prototype.iconLibrary.timelineControl=I,H.inherits(_,F),A("../component").define("timeline",_),_}),C("zrender/shape/Image",["require","./Base","../tool/util"],function(_){var $=_("./Base"),A=function(_){$.call(this,_)};return A.prototype={type:"image",brush:function(J,A,H){var E=this.style||{};A&&(E=this.getHighlightStyle(E,this.highlightStyle||{}));var L=E.image,K=this;if(this._imageCache||(this._imageCache={}),"string"==typeof L){var D=L;this._imageCache[D]?L=this._imageCache[D]:(L=new Image,L.onload=function(){L.onload=null,K.modSelf(),H()},L.src=D,this._imageCache[D]=L)}if(L){if("IMG"==L.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=L.readyState)return}else if(!L.complete)return;var C=E.width||L.width,G=E.height||L.height,F=E.x,_=E.y;if(!L.width||!L.height)return;if(J.save(),this.doClip(J),this.setContext(J,E),this.setTransform(J),E.sWidth&&E.sHeight){var B=E.sx||0,M=E.sy||0;J.drawImage(L,B,M,E.sWidth,E.sHeight,F,_,C,G)}else if(E.sx&&E.sy){var B=E.sx,M=E.sy,I=C-B,$=G-M;J.drawImage(L,B,M,I,$,F,_,C,G)}else J.drawImage(L,F,_,C,G);E.width||(E.width=C),E.height||(E.height=G),this.style.width||(this.style.width=C),this.style.height||(this.style.height=G),this.drawText(J,E,this.style),J.restore()}},getRect:function($){return{x:$.x,y:$.y,width:$.width,height:$.height}},clearCache:function(){this._imageCache={}}},_("../tool/util").inherits(A,$),A}),C("zrender/loadingEffect/Bar",["require","./Base","../tool/util","../tool/color","../shape/Rectangle"],function(_){function $($){D.call(this,$)}var D=_("./Base"),C=_("../tool/util"),B=_("../tool/color"),A=_("../shape/Rectangle");return C.inherits($,D),$.prototype._start=function(_,$){var H=C.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effectOption:{x:0,y:this.canvasHeight/2-30,width:this.canvasWidth,height:5,brushType:"fill",timeInterval:100}}),E=this.createTextShape(H.textStyle),D=this.createBackgroundShape(H.backgroundColor),G=H.effectOption,F=new A({highlightStyle:C.clone(G)});return F.highlightStyle.color=G.color||B.getLinearGradient(G.x,G.y,G.x+G.width,G.y+G.height,[[0,"#ff6400"],[0.5,"#ffe100"],[1,"#b1ff00"]]),null!=H.progress?(_(D),F.highlightStyle.width=this.adjust(H.progress,[0,1])*H.effectOption.width,_(F),_(E),void $()):(F.highlightStyle.width=0,setInterval(function(){_(D),F.highlightStyle.width<G.width?F.highlightStyle.width+=8:F.highlightStyle.width=0,_(F),_(E),$()},G.timeInterval))},$}),C("zrender/loadingEffect/Bubble",["require","./Base","../tool/util","../tool/color","../shape/Circle"],function(_){function $($){D.call(this,$)}var D=_("./Base"),C=_("../tool/util"),B=_("../tool/color"),A=_("../shape/Circle");return C.inherits($,D),$.prototype._start=function(G,F){for(var O=C.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{n:50,lineWidth:2,brushType:"stroke",color:"random",timeInterval:100}}),K=this.createTextShape(O.textStyle),J=this.createBackgroundShape(O.backgroundColor),N=O.effect,L=N.n,E=N.brushType,H=N.lineWidth,I=[],D=this.canvasWidth,_=this.canvasHeight,$=0;L>$;$++){var M="random"==N.color?B.alpha(B.random(),0.3):N.color;I[$]=new A({highlightStyle:{x:Math.ceil(Math.random()*D),y:Math.ceil(Math.random()*_),r:Math.ceil(40*Math.random()),brushType:E,color:M,strokeColor:M,lineWidth:H},animationY:Math.ceil(20*Math.random())})}return setInterval(function(){G(J);for(var A=0;L>A;A++){var $=I[A].highlightStyle;$.y-I[A].animationY+$.r<=0&&(I[A].highlightStyle.y=_+$.r,I[A].highlightStyle.x=Math.ceil(Math.random()*D)),I[A].highlightStyle.y-=I[A].animationY,G(I[A])}G(K),F()},N.timeInterval)},$}),C("zrender/loadingEffect/DynamicLine",["require","./Base","../tool/util","../tool/color","../shape/Line"],function(_){function $($){D.call(this,$)}var D=_("./Base"),C=_("../tool/util"),B=_("../tool/color"),A=_("../shape/Line");return C.inherits($,D),$.prototype._start=function(N,E){for(var L=C.merge(this.options,{textStyle:{color:"#fff"},backgroundColor:"rgba(0, 0, 0, 0.8)",effectOption:{n:30,lineWidth:1,color:"random",timeInterval:100}}),H=this.createTextShape(L.textStyle),G=this.createBackgroundShape(L.backgroundColor),K=L.effectOption,I=K.n,D=K.lineWidth,F=[],O=this.canvasWidth,M=this.canvasHeight,_=0;I>_;_++){var $=-Math.ceil(1000*Math.random()),J=Math.ceil(400*Math.random()),P=Math.ceil(Math.random()*M),Q="random"==K.color?B.random():K.color;F[_]=new A({highlightStyle:{xStart:$,yStart:P,xEnd:$+J,yEnd:P,strokeColor:Q,lineWidth:D},animationX:Math.ceil(100*Math.random()),len:J})}return setInterval(function(){N(G);for(var _=0;I>_;_++){var $=F[_].highlightStyle;$.xStart>=O&&(F[_].len=Math.ceil(400*Math.random()),$.xStart=-400,$.xEnd=-400+F[_].len,$.yStart=Math.ceil(Math.random()*M),$.yEnd=$.yStart),$.xStart+=F[_].animationX,$.xEnd+=F[_].animationX,N(F[_])}N(H),E()},K.timeInterval)},$}),C("zrender/loadingEffect/Ring",["require","./Base","../tool/util","../tool/color","../shape/Ring","../shape/Sector"],function(_){function $($){E.call(this,$)}var E=_("./Base"),D=_("../tool/util"),B=_("../tool/color"),A=_("../shape/Ring"),C=_("../shape/Sector");return D.inherits($,E),$.prototype._start=function(Q,F){var M=D.merge(this.options,{textStyle:{color:"#07a"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{x:this.canvasWidth/2,y:this.canvasHeight/2,r0:60,r:100,color:"#bbdcff",brushType:"fill",textPosition:"inside",textFont:"normal 30px verdana",textColor:"rgba(30, 144, 255, 0.6)",timeInterval:100}}),I=M.effect,L=M.textStyle;null==L.x&&(L.x=I.x),null==L.y&&(L.y=I.y+(I.r0+I.r)/2-5);for(var J=this.createTextShape(M.textStyle),E=this.createBackgroundShape(M.backgroundColor),H=I.x,S=I.y,P=I.r0+6,_=I.r-6,$=I.color,K=B.lift($,0.1),T=new A({highlightStyle:D.clone(I)}),U=[],O=B.getGradientColors(["#ff6400","#ffe100","#97ff00"],25),V=15,G=240,R=0;16>R;R++)U.push(new C({highlightStyle:{x:H,y:S,r0:P,r:_,startAngle:G-V,endAngle:G,brushType:"fill",color:K},_color:B.getLinearGradient(H+P*Math.cos(G,!0),S-P*Math.sin(G,!0),H+P*Math.cos(G-V,!0),S-P*Math.sin(G-V,!0),[[0,O[2*R]],[1,O[2*R+1]]])})),G-=V;G=360;for(R=0;4>R;R++)U.push(new C({highlightStyle:{x:H,y:S,r0:P,r:_,startAngle:G-V,endAngle:G,brushType:"fill",color:K},_color:B.getLinearGradient(H+P*Math.cos(G,!0),S-P*Math.sin(G,!0),H+P*Math.cos(G-V,!0),S-P*Math.sin(G-V,!0),[[0,O[2*R+32]],[1,O[2*R+33]]])})),G-=V;var N=0;if(null!=M.progress){Q(E),N=100*this.adjust(M.progress,[0,1]).toFixed(2)/5,T.highlightStyle.text=5*N+"%",Q(T);for(R=0;20>R;R++)U[R].highlightStyle.color=N>R?U[R]._color:K,Q(U[R]);return Q(J),void F()}return setInterval(function(){Q(E),N+=N>=20?-20:1,Q(T);for(var $=0;20>$;$++)U[$].highlightStyle.color=N>$?U[$]._color:K,Q(U[$]);Q(J),F()},I.timeInterval)},$}),C("zrender/loadingEffect/Spin",["require","./Base","../tool/util","../tool/color","../tool/area","../shape/Sector"],function(_){function $($){E.call(this,$)}var E=_("./Base"),D=_("../tool/util"),B=_("../tool/color"),A=_("../tool/area"),C=_("../shape/Sector");return D.inherits($,E),$.prototype._start=function(Q,F){var M=D.merge(this.options,{textStyle:{color:"#fff",textAlign:"start"},backgroundColor:"rgba(0, 0, 0, 0.8)"}),I=this.createTextShape(M.textStyle),L=10,J=A.getTextWidth(I.highlightStyle.text,I.highlightStyle.textFont),E=A.getTextHeight(I.highlightStyle.text,I.highlightStyle.textFont),H=D.merge(this.options.effect||{},{r0:9,r:15,n:18,color:"#fff",timeInterval:100}),S=this.getLocation(this.options.textStyle,J+L+2*H.r,Math.max(2*H.r,E));H.x=S.x+H.r,H.y=I.highlightStyle.y=S.y+S.height/2,I.highlightStyle.x=H.x+H.r+L;for(var P=this.createBackgroundShape(M.backgroundColor),_=H.n,$=H.x,K=H.y,T=H.r0,U=H.r,O=H.color,V=[],G=Math.round(180/_),R=0;_>R;R++)V[R]=new C({highlightStyle:{x:$,y:K,r0:T,r:U,startAngle:G*R*2,endAngle:G*R*2+G,color:B.alpha(O,(R+1)/_),brushType:"fill"}});var N=[0,$,K];return setInterval(function(){Q(P),N[0]-=0.3;for(var $=0;_>$;$++)V[$].rotation=N,Q(V[$]);Q(I),F()},H.timeInterval)},$}),C("zrender/loadingEffect/Whirling",["require","./Base","../tool/util","../tool/area","../shape/Ring","../shape/Droplet","../shape/Circle"],function(_){function $($){F.call(this,$)}var F=_("./Base"),E=_("../tool/util"),B=_("../tool/area"),A=_("../shape/Ring"),D=_("../shape/Droplet"),C=_("../shape/Circle");return E.inherits($,F),$.prototype._start=function(N,G){var L=E.merge(this.options,{textStyle:{color:"#888",textAlign:"start"},backgroundColor:"rgba(250, 250, 250, 0.8)"}),K=this.createTextShape(L.textStyle),I=10,F=B.getTextWidth(K.highlightStyle.text,K.highlightStyle.textFont),H=B.getTextHeight(K.highlightStyle.text,K.highlightStyle.textFont),O=E.merge(this.options.effect||{},{r:18,colorIn:"#fff",colorOut:"#555",colorWhirl:"#6cf",timeInterval:50}),M=this.getLocation(this.options.textStyle,F+I+2*O.r,Math.max(2*O.r,H));O.x=M.x+O.r,O.y=K.highlightStyle.y=M.y+M.height/2,K.highlightStyle.x=O.x+O.r+I;var _=this.createBackgroundShape(L.backgroundColor),$=new D({highlightStyle:{a:Math.round(O.r/2),b:Math.round(O.r-O.r/6),brushType:"fill",color:O.colorWhirl}}),J=new C({highlightStyle:{r:Math.round(O.r/6),brushType:"fill",color:O.colorIn}}),P=new A({highlightStyle:{r0:Math.round(O.r-O.r/3),r:O.r,brushType:"fill",color:O.colorOut}}),Q=[0,O.x,O.y];return $.highlightStyle.x=J.highlightStyle.x=P.highlightStyle.x=Q[1],$.highlightStyle.y=J.highlightStyle.y=P.highlightStyle.y=Q[2],setInterval(function(){N(_),N(P),Q[0]-=0.3,$.rotation=Q,N($),N(J),N(K),G()},O.timeInterval)},$}),C("echarts/theme/macarons",[],function(){var $={color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],title:{textStyle:{fontWeight:"normal",color:"#008acd"}},dataRange:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{color:["#1e90ff","#1e90ff","#1e90ff","#1e90ff"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{normal:{color:"#008acd"},emphasis:{color:"#008acd"}},symbol:"emptyCircle",symbolSize:3},bar:{itemStyle:{normal:{barBorderRadius:5},emphasis:{barBorderRadius:5}}},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},k:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",lineStyle:{color:"#d87a80",color0:"#2ec7c9"}}}},scatter:{symbol:"circle",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#d87a80"}}},emphasis:{areaStyle:{color:"#fe994e"}}}},force:{itemStyle:{normal:{linkStyle:{color:"#1e90ff"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{axisLine:{lineStyle:{color:[[0.2,"#2ec7c9"],[0.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}},textStyle:{fontFamily:"\u5fae\u8f6f\u96c5\u9ed1, Arial, Verdana, sans-serif"}};return $}),C("echarts/theme/infographic",[],function(){var $={color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],title:{textStyle:{fontWeight:"normal",color:"#27727B"}},dataRange:{x:"right",y:"center",itemWidth:5,itemHeight:25,color:["#C1232B","#FCCE10"]},toolbox:{color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#27727B"},controlStyle:{normal:{color:"#27727B"},emphasis:{color:"#27727B"}},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{normal:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3}},emphasis:{borderWidth:0}},symbol:"circle",symbolSize:3.5},k:{itemStyle:{normal:{color:"#C1232B",color0:"#B5C334",lineStyle:{width:1,color:"#C1232B",color0:"#B5C334"}}}},scatter:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(200,200,200,0.5)"},emphasis:{borderWidth:0}},symbol:"star4",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#C1232B"}}},emphasis:{areaStyle:{color:"#fe994e"},label:{textStyle:{color:"rgb(100,0,0)"}}}}},force:{itemStyle:{normal:{linkStyle:{color:"#27727B"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{center:["50%","80%"],radius:"100%",startAngle:180,endAngle:0,axisLine:{show:!0,lineStyle:{color:[[0.2,"#B5C334"],[0.8,"#27727B"],[1,"#C1232B"]],width:"40%"}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{textStyle:{color:"#fff",fontWeight:"bolder"}},splitLine:{length:"5%",lineStyle:{color:"#fff"}},pointer:{width:"40%",length:"80%",color:"#fff"},title:{offsetCenter:[0,-20],textStyle:{color:"auto",fontSize:20}},detail:{offsetCenter:[0,0],textStyle:{color:"auto",fontSize:40}}},textStyle:{fontFamily:"\u5fae\u8f6f\u96c5\u9ed1, Arial, Verdana, sans-serif"}};return $}),C("zrender/shape/Polygon",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","../tool/util"],function(_){var $=_("./Base"),D=_("./util/smoothSpline"),C=_("./util/smoothBezier"),B=_("./util/dashedLineTo"),A=function(_){$.call(this,_)};return A.prototype={type:"polygon",buildPath:function(E,A){var F=A.pointList;if(!(F.length<2)){if(A.smooth&&"spline"!==A.smooth){var J=C(F,A.smooth,!0,A.smoothConstraint);E.moveTo(F[0][0],F[0][1]);for(var I,L,K,_=F.length,G=0;_>G;G++)I=J[2*G],L=J[2*G+1],K=F[(G+1)%_],E.bezierCurveTo(I[0],I[1],L[0],L[1],K[0],K[1])}else if("spline"===A.smooth&&(F=D(F,!0)),A.lineType&&"solid"!=A.lineType){if("dashed"==A.lineType||"dotted"==A.lineType){var H=A._dashLength||(A.lineWidth||1)*("dashed"==A.lineType?5:1);A._dashLength=H,E.moveTo(F[0][0],F[0][1]);for(var G=1,$=F.length;$>G;G++)B(E,F[G-1][0],F[G-1][1],F[G][0],F[G][1],H);B(E,F[F.length-1][0],F[F.length-1][1],F[0][0],F[0][1],H)}}else{E.moveTo(F[0][0],F[0][1]);for(G=1,$=F.length;$>G;G++)E.lineTo(F[G][0],F[G][1]);E.lineTo(F[0][0],F[0][1])}E.closePath()}},getRect:function(_){if(_.__rect)return _.__rect;for(var $=Number.MAX_VALUE,G=Number.MIN_VALUE,E=Number.MAX_VALUE,B=Number.MIN_VALUE,A=_.pointList,D=0,C=A.length;C>D;D++)A[D][0]<$&&($=A[D][0]),A[D][0]>G&&(G=A[D][0]),A[D][1]<E&&(E=A[D][1]),A[D][1]>B&&(B=A[D][1]);var F;return F="stroke"==_.brushType||"fill"==_.brushType?_.lineWidth||1:0,_.__rect={x:Math.round($-F/2),y:Math.round(E-F/2),width:G-$+F,height:B-E+F},_.__rect}},_("../tool/util").inherits(A,$),A}),C("echarts/util/accMath",[],function(){function _(_,$){var D=_.toString(),C=$.toString(),B=0;try{B=C.split(".")[1].length}catch(A){}try{B-=D.split(".")[1].length}catch(A){}return(D.replace(".","")-0)/(C.replace(".","")-0)*Math.pow(10,B)}function $(_,$){var D=_.toString(),C=$.toString(),B=0;try{B+=D.split(".")[1].length}catch(A){}try{B+=C.split(".")[1].length}catch(A){}return(D.replace(".","")-0)*(C.replace(".","")-0)/Math.pow(10,B)}function B(_,$){var D=0,C=0;try{D=_.toString().split(".")[1].length}catch(B){}try{C=$.toString().split(".")[1].length}catch(B){}var A=Math.pow(10,Math.max(D,C));return(Math.round(_*A)+Math.round($*A))/A}function A(_,$){return B(_,-$)}return{accDiv:_,accMul:$,accAdd:B,accSub:A}}),C("echarts/component/polar",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","zrender/shape/Circle","zrender/shape/Ring","../config","zrender/tool/util","../util/coordinates","../util/accMath","../util/smartSteps","../component"],function(A){function _(_,$,C,B,A){I.call(this,_,$,C,B,A),this.refresh(B)}var I=A("./base"),F=A("zrender/shape/Text"),C=A("zrender/shape/Line"),B=A("zrender/shape/Polygon"),E=A("zrender/shape/Circle"),D=A("zrender/shape/Ring"),H=A("../config");H.polar={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,boundaryGap:[0,0],splitNumber:5,name:{show:!0,textStyle:{color:"#333"}},axisLine:{show:!0,lineStyle:{color:"#ccc",width:1,type:"solid"}},axisLabel:{show:!1,textStyle:{color:"#333"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},splitLine:{show:!0,lineStyle:{width:1,color:"#ccc"}},type:"polygon"};var G=A("zrender/tool/util"),$=A("../util/coordinates");return _.prototype={type:H.COMPONENT_TYPE_POLAR,_buildShape:function(){for(var $=0;$<this.polar.length;$++)this._index=$,this.reformOption(this.polar[$]),this._queryTarget=[this.polar[$],this.option],this._createVector($),this._buildSpiderWeb($),this._buildText($),this._adjustIndicatorValue($),this._addAxisLabel($);for($=0;$<this.shapeList.length;$++)this.zr.addShape(this.shapeList[$])},_createVector:function(A){for(var _,I=this.polar[A],F=this.deepQuery(this._queryTarget,"indicator"),C=F.length,B=I.startAngle,E=2*Math.PI/C,D=this._getRadius(),H=I.__ecIndicator=[],G=0;C>G;G++)_=$.polar2cartesian(D,B*Math.PI/180+E*G),H.push({vector:[_[1],-_[0]]})},_getRadius:function(){var $=this.polar[this._index];return this.parsePercent($.radius,Math.min(this.zr.getWidth(),this.zr.getHeight())/2)},_buildSpiderWeb:function(A){var _=this.polar[A],I=_.__ecIndicator,F=_.splitArea,C=_.splitLine,B=this.getCenter(A),E=_.splitNumber,D=C.lineStyle.color,H=C.lineStyle.width,G=C.show,$=this.deepQuery(this._queryTarget,"axisLine");this._addArea(I,E,B,F,D,H,G),$.show&&this._addLine(I,B,$)},_addAxisLabel:function(C){for(var L,P,O,I,P,H,K,B,E,R,N=A("../util/accMath"),_=this.polar[C],$=this.deepQuery(this._queryTarget,"indicator"),J=_.__ecIndicator,S=this.deepQuery(this._queryTarget,"splitNumber"),T=this.getCenter(C),M=0;M<$.length;M++)if(L=this.deepQuery([$[M],_,this.option],"axisLabel"),L.show){var U=this.deepQuery([L,_,this.option],"textStyle"),D=this.deepQuery([L,_],"formatter");if(O={},O.textFont=this.getFont(U),O.color=U.color,O=G.merge(O,L),O.lineWidth=O.width,P=J[M].vector,H=J[M].value,B=M/$.length*2*Math.PI,E=L.offset||10,R=L.interval||0,!H)return;for(var Q=1;S>=Q;Q+=R+1)I=G.merge({},O),K=N.accAdd(H.min,N.accMul(H.step,Q)),K="function"==typeof D?D(K):"string"==typeof D?D.replace("{a}","{a0}").replace("{a0}",K):this.numAddCommas(K),I.text=K,I.x=Q*P[0]/S+Math.cos(B)*E+T[0],I.y=Q*P[1]/S+Math.sin(B)*E+T[1],this.shapeList.push(new F({zlevel:this.getZlevelBase(),z:this.getZBase(),style:I,draggable:!1,hoverable:!1}))}},_buildText:function(K){for(var B,I,M,L,E,D,H,G=this.polar[K],A=G.__ecIndicator,C=this.deepQuery(this._queryTarget,"indicator"),N=this.getCenter(K),J=0,_=0,$=0;$<C.length;$++)L=this.deepQuery([C[$],G,this.option],"name"),L.show&&(H=this.deepQuery([L,G,this.option],"textStyle"),I={},I.textFont=this.getFont(H),I.color=H.color,I.text="function"==typeof L.formatter?L.formatter.call(this.myChart,C[$].text,$):"string"==typeof L.formatter?L.formatter.replace("{value}",C[$].text):C[$].text,A[$].text=I.text,B=A[$].vector,M=Math.round(B[0])>0?"left":Math.round(B[0])<0?"right":"center",null==L.margin?B=this._mapVector(B,N,1.1):(D=L.margin,J=B[0]>0?D:-D,_=B[1]>0?D:-D,J=0===B[0]?0:J,_=0===B[1]?0:_,B=this._mapVector(B,N,1)),I.textAlign=M,I.x=B[0]+J,I.y=B[1]+_,E=L.rotate?[L.rotate/180*Math.PI,B[0],B[1]]:[0,0,0],this.shapeList.push(new F({zlevel:this.getZlevelBase(),z:this.getZBase(),style:I,draggable:!1,hoverable:!1,rotation:E})))},getIndicatorText:function(_,$){return this.polar[_]&&this.polar[_].__ecIndicator[$]&&this.polar[_].__ecIndicator[$].text},getDropBox:function(_){var $,H,_=_||0,E=this.polar[_],B=this.getCenter(_),A=E.__ecIndicator,D=A.length,C=[],G=E.type;if("polygon"==G){for(var F=0;D>F;F++)$=A[F].vector,C.push(this._mapVector($,B,1.2));H=this._getShape(C,"fill","rgba(0,0,0,0)","",1)}else"circle"==G&&(H=this._getCircle("",1,1.2,B,"fill","rgba(0,0,0,0)"));return H},_addArea:function(H,_,G,D,J,I,C){for(var B,F,E,$,A=this.deepQuery(this._queryTarget,"type"),K=0;_>K;K++)F=(_-K)/_,C&&("polygon"==A?($=this._getPointList(H,F,G),B=this._getShape($,"stroke","",J,I)):"circle"==A&&(B=this._getCircle(J,I,F,G,"stroke")),this.shapeList.push(B)),D.show&&(E=(_-K-1)/_,this._addSplitArea(H,D,F,E,G,K))},_getCircle:function(_,$,F,D,B,A){var C=this._getRadius();return new E({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:D[0],y:D[1],r:C*F,brushType:B,strokeColor:_,lineWidth:$,color:A},hoverable:!1,draggable:!1})},_getRing:function(_,$,C,B){var A=this._getRadius();return new D({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:B[0],y:B[1],r:$*A,r0:C*A,color:_,brushType:"fill"},hoverable:!1,draggable:!1})},_getPointList:function(_,$,E){for(var D,B=[],A=_.length,C=0;A>C;C++)D=_[C].vector,B.push(this._mapVector(D,E,$));return B},_getShape:function(_,$,D,C,A){return new B({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:_,brushType:$,color:D,strokeColor:C,lineWidth:A},hoverable:!1,draggable:!1})},_addSplitArea:function(K,B,I,F,M,L){var E,D,H,G,A,C=K.length,N=B.areaStyle.color,J=[],C=K.length,_=this.deepQuery(this._queryTarget,"type");if("string"==typeof N&&(N=[N]),D=N.length,E=N[L%D],"polygon"==_){for(var $=0;C>$;$++)J=[],H=K[$].vector,G=K[($+1)%C].vector,J.push(this._mapVector(H,M,I)),J.push(this._mapVector(H,M,F)),J.push(this._mapVector(G,M,F)),J.push(this._mapVector(G,M,I)),A=this._getShape(J,"fill",E,"",1),this.shapeList.push(A)}else"circle"==_&&(A=this._getRing(E,I,F,M),this.shapeList.push(A))},_mapVector:function(_,$,A){return[_[0]*A+$[0],_[1]*A+$[1]]},getCenter:function($){var $=$||0;return this.parseCenter(this.zr,this.polar[$].center)},_addLine:function(A,_,I){for(var F,C,B=A.length,E=I.lineStyle,D=E.color,H=E.width,G=E.type,$=0;B>$;$++)C=A[$].vector,F=this._getLine(_[0],_[1],C[0]+_[0],C[1]+_[1],D,H,G),this.shapeList.push(F)},_getLine:function(_,$,F,E,A,D,B){return new C({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:_,yStart:$,xEnd:F,yEnd:E,strokeColor:A,lineWidth:D,lineType:B},hoverable:!1})},_adjustIndicatorValue:function(C){for(var K,G,N,M=this.polar[C],F=this.deepQuery(this._queryTarget,"indicator"),E=F.length,J=M.__ecIndicator,H=this._getSeriesData(C),B=M.boundaryGap,D=M.splitNumber,O=M.scale,L=A("../util/smartSteps"),_=0;E>_;_++){if("number"==typeof F[_].max)K=F[_].max,G=F[_].min||0,N={max:K,min:G};else{var $=this._findValue(H,_,D,B);G=$.min,K=$.max}!O&&G>=0&&K>=0&&(G=0),!O&&0>=G&&0>=K&&(K=0);var I=L(G,K,D,N);J[_].value={min:I.min,max:I.max,step:I.step}}},_getSeriesData:function(_){for(var $,F,E,B=[],A=this.component.legend,D=0;D<this.series.length;D++)if($=this.series[D],$.type==H.CHART_TYPE_RADAR){F=$.data||[];for(var C=0;C<F.length;C++)E=this.deepQuery([F[C],$,this.option],"polarIndex")||0,E!=_||A&&!A.isSelected(F[C].name)||B.push(F[C])}return B},_findValue:function(_,$,H,E){function B($){($>A||void 0===A)&&(A=$),(D>$||void 0===D)&&(D=$)}var A,D,C;if(_&&0!==_.length){if(1==_.length&&(D=0),1!=_.length){for(var G=0;G<_.length;G++)B(this.getDataFromOption(_[G].value[$]))}else{C=_[0];for(G=0;G<C.value.length;G++)B(this.getDataFromOption(C.value[G]))}var F=Math.abs(A-D);return D-=Math.abs(F*E[0]),A+=Math.abs(F*E[1]),D===A&&(0===A?A=1:A>0?D=A/H:A/=H),{max:A,min:D}}},getVector:function(_,$,H){_=_||0,$=$||0;var E=this.polar[_].__ecIndicator;if(!($>=E.length)){var B,A=this.polar[_].__ecIndicator[$],D=this.getCenter(_),C=A.vector,G=A.value.max,F=A.value.min;if("undefined"==typeof H)return D;switch(H){case"min":H=F;break;case"max":H=G;break;case"center":H=(G+F)/2}return B=G!=F?(H-F)/(G-F):0.5,this._mapVector(C,D,B)}},isInside:function(_){var $=this.getNearestIndex(_);return $?$.polarIndex:-1},getNearestIndex:function(A){for(var _,J,G,D,B,F,E,I,H,C=0;C<this.polar.length;C++){if(_=this.polar[C],J=this.getCenter(C),A[0]==J[0]&&A[1]==J[1])return{polarIndex:C,valueIndex:0};if(G=this._getRadius(),B=_.startAngle,F=_.indicator,E=F.length,I=2*Math.PI/E,D=$.cartesian2polar(A[0]-J[0],J[1]-A[1]),A[0]-J[0]<0&&(D[1]+=Math.PI),D[1]<0&&(D[1]+=2*Math.PI),H=D[1]-B/180*Math.PI+2*Math.PI,Math.abs(Math.cos(H%(I/2)))*G>D[0])return{polarIndex:C,valueIndex:Math.floor((H+I/2)/I)%E}}},getIndicator:function($){var $=$||0;return this.polar[$].indicator},refresh:function($){$&&(this.option=$,this.polar=this.option.polar,this.series=this.option.series),this.clear(),this._buildShape()}},G.inherits(_,I),A("../component").define("polar",_),_}),C("echarts/util/shape/Symbol",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util","./normalIsCover"],function(_){function $($){D.call(this,$)}var D=_("zrender/shape/Base"),C=_("zrender/shape/Polygon"),B=new C({}),A=_("zrender/tool/util");return $.prototype={type:"symbol",buildPath:function(L,B){var J=B.pointList,F=J.length;if(0!==F)for(var N,M,E,D,I,G=10000,A=Math.ceil(F/G),C=J[0]instanceof Array,O=B.size?B.size:2,K=O,_=O/2,$=2*Math.PI,H=0;A>H;H++){L.beginPath(),N=H*G,M=N+G,M=M>F?F:M;for(var P=N;M>P;P++)if(B.random&&(E=B["randomMap"+P%20]/100,K=O*E*E,_=K/2),C?(D=J[P][0],I=J[P][1]):(D=J[P].x,I=J[P].y),3>K)L.rect(D-_,I-_,K,K);else switch(B.iconType){case"circle":L.moveTo(D,I),L.arc(D,I,_,0,$,!0);break;case"diamond":L.moveTo(D,I-_),L.lineTo(D+_/3,I-_/3),L.lineTo(D+_,I),L.lineTo(D+_/3,I+_/3),L.lineTo(D,I+_),L.lineTo(D-_/3,I+_/3),L.lineTo(D-_,I),L.lineTo(D-_/3,I-_/3),L.lineTo(D,I-_);break;default:L.rect(D-_,I-_,K,K)}if(L.closePath(),A-1>H)switch(B.brushType){case"both":L.fill(),B.lineWidth>0&&L.stroke();break;case"stroke":B.lineWidth>0&&L.stroke();break;default:L.fill()}}},getRect:function($){return $.__rect||B.getRect($)},isCover:_("./normalIsCover")},A.inherits($,D),$}),C("echarts/component/axis",["require","./base","zrender/shape/Line","../config","../util/ecData","zrender/tool/util","zrender/tool/color","./categoryAxis","./valueAxis","../component"],function(_){function $(_,$,D,B,A,C){F.call(this,_,$,D,B,A),this.axisType=C,this._axisList=[],this.refresh(B)}var F=_("./base"),E=_("zrender/shape/Line"),B=_("../config"),A=_("../util/ecData"),D=_("zrender/tool/util"),C=_("zrender/tool/color");return $.prototype={type:B.COMPONENT_TYPE_AXIS,axisBase:{_buildAxisLine:function(){var _=this.option.axisLine.lineStyle.width,$=_/2,C={_axisShape:"axisLine",zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1},B=this.grid;switch(this.option.position){case"left":C.style={xStart:B.getX()-$,yStart:B.getYend(),xEnd:B.getX()-$,yEnd:B.getY(),lineCap:"round"};break;case"right":C.style={xStart:B.getXend()+$,yStart:B.getYend(),xEnd:B.getXend()+$,yEnd:B.getY(),lineCap:"round"};break;case"bottom":C.style={xStart:B.getX(),yStart:B.getYend()+$,xEnd:B.getXend(),yEnd:B.getYend()+$,lineCap:"round"};break;case"top":C.style={xStart:B.getX(),yStart:B.getY()-$,xEnd:B.getXend(),yEnd:B.getY()-$,lineCap:"round"}}var A=C.style;""!==this.option.name&&(A.text=this.option.name,A.textPosition=this.option.nameLocation,A.textFont=this.getFont(this.option.nameTextStyle),this.option.nameTextStyle.align&&(A.textAlign=this.option.nameTextStyle.align),this.option.nameTextStyle.baseline&&(A.textBaseline=this.option.nameTextStyle.baseline),this.option.nameTextStyle.color&&(A.textColor=this.option.nameTextStyle.color)),A.strokeColor=this.option.axisLine.lineStyle.color,A.lineWidth=_,this.isHorizontal()?A.yStart=A.yEnd=this.subPixelOptimize(A.yEnd,_):A.xStart=A.xEnd=this.subPixelOptimize(A.xEnd,_),A.lineType=this.option.axisLine.lineStyle.type,C=new E(C),this.shapeList.push(C)},_axisLabelClickable:function(_,$){return _?(A.pack($,void 0,-1,void 0,-1,$.style.text),$.hoverable=!0,$.clickable=!0,$.highlightStyle={color:C.lift($.style.color,1),brushType:"fill"},$):$},refixAxisShape:function(_,$){if(this.option.axisLine.onZero){var C;if(this.isHorizontal()&&null!=$)for(var B=0,A=this.shapeList.length;A>B;B++)"axisLine"===this.shapeList[B]._axisShape?(this.shapeList[B].style.yStart=this.shapeList[B].style.yEnd=this.subPixelOptimize($,this.shapeList[B].stylelineWidth),this.zr.modShape(this.shapeList[B].id)):"axisTick"===this.shapeList[B]._axisShape&&(C=this.shapeList[B].style.yEnd-this.shapeList[B].style.yStart,this.shapeList[B].style.yStart=$-C,this.shapeList[B].style.yEnd=$,this.zr.modShape(this.shapeList[B].id));if(!this.isHorizontal()&&null!=_)for(B=0,A=this.shapeList.length;A>B;B++)"axisLine"===this.shapeList[B]._axisShape?(this.shapeList[B].style.xStart=this.shapeList[B].style.xEnd=this.subPixelOptimize(_,this.shapeList[B].stylelineWidth),this.zr.modShape(this.shapeList[B].id)):"axisTick"===this.shapeList[B]._axisShape&&(C=this.shapeList[B].style.xEnd-this.shapeList[B].style.xStart,this.shapeList[B].style.xStart=_,this.shapeList[B].style.xEnd=_+C,this.zr.modShape(this.shapeList[B].id))}},getPosition:function(){return this.option.position},isHorizontal:function(){return"bottom"===this.option.position||"top"===this.option.position}},reformOption:function(_){if(!_||_ instanceof Array&&0===_.length?_=[{type:B.COMPONENT_TYPE_AXIS_VALUE}]:_ instanceof Array||(_=[_]),_.length>2&&(_=[_[0],_[1]]),"xAxis"===this.axisType){(!_[0].position||"bottom"!=_[0].position&&"top"!=_[0].position)&&(_[0].position="bottom"),_.length>1&&(_[1].position="bottom"===_[0].position?"top":"bottom");for(var $=0,A=_.length;A>$;$++)_[$].type=_[$].type||"category",_[$].xAxisIndex=$,_[$].yAxisIndex=-1}else{(!_[0].position||"left"!=_[0].position&&"right"!=_[0].position)&&(_[0].position="left"),_.length>1&&(_[1].position="left"===_[0].position?"right":"left");for($=0,A=_.length;A>$;$++)_[$].type=_[$].type||"value",_[$].xAxisIndex=-1,_[$].yAxisIndex=$}return _},refresh:function($){var E;$&&(this.option=$,"xAxis"===this.axisType?(this.option.xAxis=this.reformOption($.xAxis),E=this.option.xAxis):(this.option.yAxis=this.reformOption($.yAxis),E=this.option.yAxis),this.series=$.series);for(var D=_("./categoryAxis"),B=_("./valueAxis"),A=Math.max(E&&E.length||0,this._axisList.length),C=0;A>C;C++)!this._axisList[C]||!$||E[C]&&this._axisList[C].type==E[C].type||(this._axisList[C].dispose&&this._axisList[C].dispose(),this._axisList[C]=!1),this._axisList[C]?this._axisList[C].refresh&&this._axisList[C].refresh(E?E[C]:!1,this.series):E&&E[C]&&(this._axisList[C]="category"===E[C].type?new D(this.ecTheme,this.messageCenter,this.zr,E[C],this.myChart,this.axisBase):new B(this.ecTheme,this.messageCenter,this.zr,E[C],this.myChart,this.axisBase,this.series))},getAxis:function($){return this._axisList[$]},getAxisCount:function(){return this._axisList.length},clear:function(){for(var _=0,$=this._axisList.length;$>_;_++)this._axisList[_].dispose&&this._axisList[_].dispose();this._axisList=[]}},D.inherits($,F),_("../component").define("axis",$),$}),C("echarts/component/grid",["require","./base","zrender/shape/Rectangle","../config","zrender/tool/util","../component"],function(_){function $(_,$,C,B,A){D.call(this,_,$,C,B,A),this.refresh(B)}var D=_("./base"),C=_("zrender/shape/Rectangle"),B=_("../config");B.grid={zlevel:0,z:0,x:80,y:60,x2:80,y2:60,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var A=_("zrender/tool/util");return $.prototype={type:B.COMPONENT_TYPE_GRID,getX:function(){return this._x},getY:function(){return this._y},getWidth:function(){return this._width},getHeight:function(){return this._height},getXend:function(){return this._x+this._width},getYend:function(){return this._y+this._height},getArea:function(){return{x:this._x,y:this._y,width:this._width,height:this._height}},getBbox:function(){return[[this._x,this._y],[this.getXend(),this.getYend()]]},refixAxisShape:function(_){for(var $,E,D,A=_.xAxis._axisList.concat(_.yAxis?_.yAxis._axisList:[]),C=A.length;C--;)D=A[C],D.type==B.COMPONENT_TYPE_AXIS_VALUE&&D._min<0&&D._max>=0&&(D.isHorizontal()?$=D.getCoord(0):E=D.getCoord(0));if("undefined"!=typeof $||"undefined"!=typeof E)for(C=A.length;C--;)A[C].refixAxisShape($,E)},refresh:function(_){if(_||this._zrWidth!=this.zr.getWidth()||this._zrHeight!=this.zr.getHeight()){this.clear(),this.option=_||this.option,this.option.grid=this.reformOption(this.option.grid);var $=this.option.grid;this._zrWidth=this.zr.getWidth(),this._zrHeight=this.zr.getHeight(),this._x=this.parsePercent($.x,this._zrWidth),this._y=this.parsePercent($.y,this._zrHeight);var B=this.parsePercent($.x2,this._zrWidth),A=this.parsePercent($.y2,this._zrHeight);this._width="undefined"==typeof $.width?this._zrWidth-this._x-B:this.parsePercent($.width,this._zrWidth),this._width=this._width<=0?10:this._width,this._height="undefined"==typeof $.height?this._zrHeight-this._y-A:this.parsePercent($.height,this._zrHeight),this._height=this._height<=0?10:this._height,this._x=this.subPixelOptimize(this._x,$.borderWidth),this._y=this.subPixelOptimize(this._y,$.borderWidth),this.shapeList.push(new C({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._x,y:this._y,width:this._width,height:this._height,brushType:$.borderWidth>0?"both":"fill",color:$.backgroundColor,strokeColor:$.borderColor,lineWidth:$.borderWidth}})),this.zr.addShape(this.shapeList[0])}}},A.inherits($,D),_("../component").define("grid",$),$}),C("echarts/component/dataZoom",["require","./base","zrender/shape/Rectangle","zrender/shape/Polygon","../util/shape/Icon","../config","../util/date","zrender/tool/util","../component"],function(_){function $(_,$,D,B,A){G.call(this,_,$,D,B,A);var C=this;C._ondrift=function(_,$){return C.__ondrift(this,_,$)},C._ondragend=function(){return C.__ondragend()},this._fillerSize=30,this._isSilence=!1,this._zoom={},this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this._handleSize=this.zoomOption.handleSize,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom.show&&this._buildShape(),this._syncData()}var G=_("./base"),E=_("zrender/shape/Rectangle"),B=_("zrender/shape/Polygon"),A=_("../util/shape/Icon"),D=_("../config");D.dataZoom={zlevel:0,z:4,show:!1,orient:"horizontal",backgroundColor:"rgba(0,0,0,0)",dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"rgba(70,130,180,0.8)",handleSize:8,showDetail:!0,realtime:!0};var C=_("../util/date"),F=_("zrender/tool/util");return $.prototype={type:D.COMPONENT_TYPE_DATAZOOM,_buildShape:function(){this._buildBackground(),this._buildFiller(),this._buildHandle(),this._buildFrame();for(var _=0,$=this.shapeList.length;$>_;_++)this.zr.addShape(this.shapeList[_]);this._syncFrameShape()},_getLocation:function(){var _,$,C,B,A=this.component.grid;return"horizontal"==this.zoomOption.orient?(C=this.zoomOption.width||A.getWidth(),B=this.zoomOption.height||this._fillerSize,_=null!=this.zoomOption.x?this.zoomOption.x:A.getX(),$=null!=this.zoomOption.y?this.zoomOption.y:this.zr.getHeight()-B-2):(C=this.zoomOption.width||this._fillerSize,B=this.zoomOption.height||A.getHeight(),_=null!=this.zoomOption.x?this.zoomOption.x:2,$=null!=this.zoomOption.y?this.zoomOption.y:A.getY()),{x:_,y:$,width:C,height:B}},_getZoom:function(){var K=this.option.series,B=this.option.xAxis;!B||B instanceof Array||(B=[B],this.option.xAxis=B);var I=this.option.yAxis;!I||I instanceof Array||(I=[I],this.option.yAxis=I);var F,M,L=[],E=this.zoomOption.xAxisIndex;if(B&&null==E){F=[];for(var H=0,G=B.length;G>H;H++)("category"==B[H].type||null==B[H].type)&&F.push(H)}else F=E instanceof Array?E:null!=E?[E]:[];if(E=this.zoomOption.yAxisIndex,I&&null==E){M=[];for(H=0,G=I.length;G>H;H++)"category"==I[H].type&&M.push(H)}else M=E instanceof Array?E:null!=E?[E]:[];for(var A,H=0,G=K.length;G>H;H++)if(A=K[H],A.type==D.CHART_TYPE_LINE||A.type==D.CHART_TYPE_BAR||A.type==D.CHART_TYPE_SCATTER||A.type==D.CHART_TYPE_K){for(var C=0,N=F.length;N>C;C++)if(F[C]==(A.xAxisIndex||0)){L.push(H);break}for(C=0,N=M.length;N>C;C++)if(M[C]==(A.yAxisIndex||0)){L.push(H);break}null==this.zoomOption.xAxisIndex&&null==this.zoomOption.yAxisIndex&&A.data&&this.getDataFromOption(A.data[0])instanceof Array&&(A.type==D.CHART_TYPE_SCATTER||A.type==D.CHART_TYPE_LINE||A.type==D.CHART_TYPE_BAR)&&L.push(H)}var J=null!=this._zoom.start?this._zoom.start:null!=this.zoomOption.start?this.zoomOption.start:0,_=null!=this._zoom.end?this._zoom.end:null!=this.zoomOption.end?this.zoomOption.end:100;J>_&&(J+=_,_=J-_,J-=_);var $=Math.round((_-J)/100*("horizontal"==this.zoomOption.orient?this._location.width:this._location.height));return{start:J,end:_,start2:0,end2:100,size:$,xAxisIndex:F,yAxisIndex:M,seriesIndex:L,scatterMap:this._zoom.scatterMap||{}}},_backupData:function(){this._originalData={xAxis:{},yAxis:{},series:{}};for(var _=this.option.xAxis,$=this._zoom.xAxisIndex,H=0,E=$.length;E>H;H++)this._originalData.xAxis[$[H]]=_[$[H]].data;for(var B=this.option.yAxis,A=this._zoom.yAxisIndex,H=0,E=A.length;E>H;H++)this._originalData.yAxis[A[H]]=B[A[H]].data;for(var C,G=this.option.series,F=this._zoom.seriesIndex,H=0,E=F.length;E>H;H++)C=G[F[H]],this._originalData.series[F[H]]=C.data,C.data&&this.getDataFromOption(C.data[0])instanceof Array&&(C.type==D.CHART_TYPE_SCATTER||C.type==D.CHART_TYPE_LINE||C.type==D.CHART_TYPE_BAR)&&(this._backupScale(),this._calculScatterMap(F[H]))},_calculScatterMap:function($){this._zoom.scatterMap=this._zoom.scatterMap||{},this._zoom.scatterMap[$]=this._zoom.scatterMap[$]||{};var E=_("../component"),D=E.get("axis"),B=F.clone(this.option.xAxis);"category"==B[0].type&&(B[0].type="value"),B[1]&&"category"==B[1].type&&(B[1].type="value");var A=new D(this.ecTheme,null,!1,{xAxis:B,series:this.option.series},this,"xAxis"),C=this.option.series[$].xAxisIndex||0;this._zoom.scatterMap[$].x=A.getAxis(C).getExtremum(),A.dispose(),B=F.clone(this.option.yAxis),"category"==B[0].type&&(B[0].type="value"),B[1]&&"category"==B[1].type&&(B[1].type="value"),A=new D(this.ecTheme,null,!1,{yAxis:B,series:this.option.series},this,"yAxis"),C=this.option.series[$].yAxisIndex||0,this._zoom.scatterMap[$].y=A.getAxis(C).getExtremum(),A.dispose()},_buildBackground:function(){var O=this._location.width,C=this._location.height;this.shapeList.push(new E({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x,y:this._location.y,width:O,height:C,color:this.zoomOption.backgroundColor}}));for(var L=0,P=this._originalData.xAxis,H=this._zoom.xAxisIndex,K=0,I=H.length;I>K;K++)L=Math.max(L,P[H[K]].length);for(var A=this._originalData.yAxis,G=this._zoom.yAxisIndex,K=0,I=G.length;I>K;K++)L=Math.max(L,A[G[K]].length);for(var Q,N=this._zoom.seriesIndex[0],_=this._originalData.series[N],$=Number.MIN_VALUE,J=Number.MAX_VALUE,K=0,I=_.length;I>K;K++)Q=this.getDataFromOption(_[K],0),this.option.series[N].type==D.CHART_TYPE_K&&(Q=Q[1]),isNaN(Q)&&(Q=0),$=Math.max($,Q),J=Math.min(J,Q);var R=$-J,S=[],M=O/(L-(L>1?1:0)),T=C/(L-(L>1?1:0)),F=1;"horizontal"==this.zoomOption.orient&&1>M?F=Math.floor(3*L/O):"vertical"==this.zoomOption.orient&&1>T&&(F=Math.floor(3*L/C));for(K=0,I=L;I>K;K+=F)Q=this.getDataFromOption(_[K],0),this.option.series[N].type==D.CHART_TYPE_K&&(Q=Q[1]),isNaN(Q)&&(Q=0),S.push("horizontal"==this.zoomOption.orient?[this._location.x+M*K,this._location.y+C-1-Math.round((Q-J)/R*(C-10))]:[this._location.x+1+Math.round((Q-J)/R*(O-10)),this._location.y+T*(I-K-1)]);"horizontal"==this.zoomOption.orient?(S.push([this._location.x+O,this._location.y+C]),S.push([this._location.x,this._location.y+C])):(S.push([this._location.x,this._location.y]),S.push([this._location.x,this._location.y+C])),this.shapeList.push(new B({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:S,color:this.zoomOption.dataBackgroundColor},hoverable:!1}))},_buildFiller:function(){this._fillerShae={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,_type:"filler"},this._fillerShae.style="horizontal"==this.zoomOption.orient?{x:this._location.x+Math.round(this._zoom.start/100*this._location.width)+this._handleSize,y:this._location.y,width:this._zoom.size-2*this._handleSize,height:this._location.height,color:this.zoomOption.fillerColor,text:":::",textPosition:"inside"}:{x:this._location.x,y:this._location.y+Math.round(this._zoom.start/100*this._location.height)+this._handleSize,width:this._location.width,height:this._zoom.size-2*this._handleSize,color:this.zoomOption.fillerColor,text:"::",textPosition:"inside"},this._fillerShae.highlightStyle={brushType:"fill",color:"rgba(0,0,0,0)"},this._fillerShae=new E(this._fillerShae),this.shapeList.push(this._fillerShae)},_buildHandle:function(){var $=this.zoomOption.showDetail?this._getDetail():{start:"",end:""};this._startShape={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,style:{iconType:"rectangle",x:this._location.x,y:this._location.y,width:this._handleSize,height:this._handleSize,color:this.zoomOption.handleColor,text:"=",textPosition:"inside"},highlightStyle:{text:$.start,brushType:"fill",textPosition:"left"},ondrift:this._ondrift,ondragend:this._ondragend},"horizontal"==this.zoomOption.orient?(this._startShape.style.height=this._location.height,this._endShape=F.clone(this._startShape),this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endShape.highlightStyle.text=$.end,this._endShape.highlightStyle.textPosition="right"):(this._startShape.style.width=this._location.width,this._endShape=F.clone(this._startShape),this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startShape.highlightStyle.textPosition="bottom",this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._endShape.highlightStyle.text=$.end,this._endShape.highlightStyle.textPosition="top"),this._startShape=new A(this._startShape),this._endShape=new A(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_buildFrame:function(){var _=this.subPixelOptimize(this._location.x,1),$=this.subPixelOptimize(this._location.y,1);this._startFrameShape={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:_,y:$,width:this._location.width-(_>this._location.x?1:0),height:this._location.height-($>this._location.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:this.zoomOption.handleColor}},this._endFrameShape=F.clone(this._startFrameShape),this._startFrameShape=new E(this._startFrameShape),this._endFrameShape=new E(this._endFrameShape),this.shapeList.push(this._startFrameShape),this.shapeList.push(this._endFrameShape)},_syncHandleShape:function(){"horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._zoom.start=(this._startShape.style.x-this._location.x)/this._location.width*100,this._zoom.end=(this._endShape.style.x+this._handleSize-this._location.x)/this._location.width*100):(this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._zoom.start=(this._location.y+this._location.height-this._startShape.style.y)/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-this._endShape.style.y-this._handleSize)/this._location.height*100),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFillerShape:function(){var _,$;"horizontal"==this.zoomOption.orient?(_=this._startShape.style.x,$=this._endShape.style.x,this._fillerShae.style.x=Math.min(_,$)+this._handleSize,this._fillerShae.style.width=Math.abs(_-$)-this._handleSize,this._zoom.start=(Math.min(_,$)-this._location.x)/this._location.width*100,this._zoom.end=(Math.max(_,$)+this._handleSize-this._location.x)/this._location.width*100):(_=this._startShape.style.y,$=this._endShape.style.y,this._fillerShae.style.y=Math.min(_,$)+this._handleSize,this._fillerShae.style.height=Math.abs(_-$)-this._handleSize,this._zoom.start=(this._location.y+this._location.height-Math.max(_,$))/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-Math.min(_,$)-this._handleSize)/this._location.height*100),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFrameShape:function(){"horizontal"==this.zoomOption.orient?(this._startFrameShape.style.width=this._fillerShae.style.x-this._location.x,this._endFrameShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endFrameShape.style.width=this._location.x+this._location.width-this._endFrameShape.style.x):(this._startFrameShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startFrameShape.style.height=this._location.y+this._location.height-this._startFrameShape.style.y,this._endFrameShape.style.height=this._fillerShae.style.y-this._location.y),this.zr.modShape(this._startFrameShape.id),this.zr.modShape(this._endFrameShape.id)},_syncShape:function(){this.zoomOption.show&&("horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._location.x+this._zoom.start/100*this._location.width,this._endShape.style.x=this._location.x+this._zoom.end/100*this._location.width-this._handleSize,this._fillerShae.style.x=this._startShape.style.x+this._handleSize,this._fillerShae.style.width=this._endShape.style.x-this._startShape.style.x-this._handleSize):(this._startShape.style.y=this._location.y+this._location.height-this._zoom.start/100*this._location.height,this._endShape.style.y=this._location.y+this._location.height-this._zoom.end/100*this._location.height-this._handleSize,this._fillerShae.style.y=this._endShape.style.y+this._handleSize,this._fillerShae.style.height=this._startShape.style.y-this._endShape.style.y-this._handleSize),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refresh())},_syncData:function(_){var $,G,E,B,A;for(var C in this._originalData){$=this._originalData[C];for(var F in $)A=$[F],null!=A&&(B=A.length,G=Math.floor(this._zoom.start/100*B),E=Math.ceil(this._zoom.end/100*B),this.getDataFromOption(A[0])instanceof Array&&this.option[C][F].type!=D.CHART_TYPE_K?(this._setScale(),this.option[C][F].data=this._synScatterData(F,A)):this.option[C][F].data=A.slice(G,E))}this._isSilence||!this.zoomOption.realtime&&!_||this.messageCenter.dispatch(D.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart)},_synScatterData:function(H,_){if(0===this._zoom.start&&100==this._zoom.end&&0===this._zoom.start2&&100==this._zoom.end2)return _;var G,D,J,I,C,B=[],F=this._zoom.scatterMap[H];"horizontal"==this.zoomOption.orient?(G=F.x.max-F.x.min,D=this._zoom.start/100*G+F.x.min,J=this._zoom.end/100*G+F.x.min,G=F.y.max-F.y.min,I=this._zoom.start2/100*G+F.y.min,C=this._zoom.end2/100*G+F.y.min):(G=F.x.max-F.x.min,D=this._zoom.start2/100*G+F.x.min,J=this._zoom.end2/100*G+F.x.min,G=F.y.max-F.y.min,I=this._zoom.start/100*G+F.y.min,C=this._zoom.end/100*G+F.y.min);var E;(E=F.x.dataMappingMethods)&&(D=E.coord2Value(D),J=E.coord2Value(J)),(E=F.y.dataMappingMethods)&&(I=E.coord2Value(I),C=E.coord2Value(C));for(var $,A=0,K=_.length;K>A;A++)$=_[A].value||_[A],$[0]>=D&&$[0]<=J&&$[1]>=I&&$[1]<=C&&B.push(_[A]);return B},_setScale:function(){var _=0!==this._zoom.start||100!==this._zoom.end||0!==this._zoom.start2||100!==this._zoom.end2,$={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var C in $)for(var B=0,A=$[C].length;A>B;B++)$[C][B].scale=_||$[C][B]._scale},_backupScale:function(){var _={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var $ in _)for(var B=0,A=_[$].length;A>B;B++)_[$][B]._scale=_[$][B].scale},_getDetail:function(){for(var L=["xAxis","yAxis"],B=0,J=L.length;J>B;B++){var F=this._originalData[L[B]];for(var N in F){var M=F[N];if(null!=M){var E=M.length,I=Math.floor(this._zoom.start/100*E),G=Math.ceil(this._zoom.end/100*E);return G-=G>0?1:0,{start:this.getDataFromOption(M[I]),end:this.getDataFromOption(M[G])}}}}L="horizontal"==this.zoomOption.orient?"xAxis":"yAxis";var A=this._zoom.seriesIndex[0],D=this.option.series[A][L+"Index"]||0,O=this.option[L][D].type,K=this._zoom.scatterMap[A][L.charAt(0)].min,_=this._zoom.scatterMap[A][L.charAt(0)].max,$=_-K;if("value"==O)return{start:K+$*this._zoom.start/100,end:K+$*this._zoom.end/100};if("time"==O){_=K+$*this._zoom.end/100,K+=$*this._zoom.start/100;var H=C.getAutoFormatter(K,_).formatter;return{start:C.format(H,K),end:C.format(H,_)}}return{start:"",end:""}},__ondrift:function(_,$,C){this.zoomOption.zoomLock&&(_=this._fillerShae);var B="filler"==_._type?this._handleSize:0;if("horizontal"==this.zoomOption.orient?_.style.x+$-B<=this._location.x?_.style.x=this._location.x+B:_.style.x+$+_.style.width+B>=this._location.x+this._location.width?_.style.x=this._location.x+this._location.width-_.style.width-B:_.style.x+=$:_.style.y+C-B<=this._location.y?_.style.y=this._location.y+B:_.style.y+C+_.style.height+B>=this._location.y+this._location.height?_.style.y=this._location.y+this._location.height-_.style.height-B:_.style.y+=C,"filler"==_._type?this._syncHandleShape():this._syncFillerShape(),this.zoomOption.realtime&&this._syncData(),this.zoomOption.showDetail){var A=this._getDetail();this._startShape.style.text=this._startShape.highlightStyle.text=A.start,this._endShape.style.text=this._endShape.highlightStyle.text=A.end,this._startShape.style.textPosition=this._startShape.highlightStyle.textPosition,this._endShape.style.textPosition=this._endShape.highlightStyle.textPosition}return!0},__ondragend:function(){this.zoomOption.showDetail&&(this._startShape.style.text=this._endShape.style.text="=",this._startShape.style.textPosition=this._endShape.style.textPosition="inside",this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.refreshNextFrame()),this.isDragend=!0},ondragend:function(_,$){this.isDragend&&_.target&&(!this.zoomOption.realtime&&this._syncData(),$.dragOut=!0,$.dragIn=!0,this._isSilence||this.zoomOption.realtime||this.messageCenter.dispatch(D.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart),$.needRefresh=!1,this.isDragend=!1)},ondataZoom:function(_,$){$.needRefresh=!0},absoluteZoom:function($){this._zoom.start=$.start,this._zoom.end=$.end,this._zoom.start2=$.start2,this._zoom.end2=$.end2,this._syncShape(),this._syncData(!0)},rectZoom:function(_){if(!_)return this._zoom.start=this._zoom.start2=0,this._zoom.end=this._zoom.end2=100,this._syncShape(),this._syncData(!0),this._zoom;var $=this.component.grid.getArea(),F={x:_.x,y:_.y,width:_.width,height:_.height};if(F.width<0&&(F.x+=F.width,F.width=-F.width),F.height<0&&(F.y+=F.height,F.height=-F.height),F.x>$.x+$.width||F.y>$.y+$.height)return!1;F.x<$.x&&(F.x=$.x),F.x+F.width>$.x+$.width&&(F.width=$.x+$.width-F.x),F.y+F.height>$.y+$.height&&(F.height=$.y+$.height-F.y);var E,B=(F.x-$.x)/$.width,A=1-(F.x+F.width-$.x)/$.width,D=1-(F.y+F.height-$.y)/$.height,C=(F.y-$.y)/$.height;return"horizontal"==this.zoomOption.orient?(E=this._zoom.end-this._zoom.start,this._zoom.start+=E*B,this._zoom.end-=E*A,E=this._zoom.end2-this._zoom.start2,this._zoom.start2+=E*D,this._zoom.end2-=E*C):(E=this._zoom.end-this._zoom.start,this._zoom.start+=E*D,this._zoom.end-=E*C,E=this._zoom.end2-this._zoom.start2,this._zoom.start2+=E*B,this._zoom.end2-=E*A),this._syncShape(),this._syncData(!0),this._zoom},syncBackupData:function(_){for(var $,G,E=this._originalData.series,B=_.series,A=0,D=B.length;D>A;A++){G=B[A].data||B[A].eventList,$=E[A]?Math.floor(this._zoom.start/100*E[A].length):0;for(var C=0,F=G.length;F>C;C++)E[A]&&(E[A][C+$]=G[C])}},syncOption:function($){this.silence(!0),this.option=$,this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom&&this.option.dataZoom.show&&this._buildShape(),this._syncData(),this.silence(!1)},silence:function($){this._isSilence=$},getRealDataIndex:function(_,$){if(!this._originalData||0===this._zoom.start&&100==this._zoom.end)return $;var A=this._originalData.series;return A[_]?Math.floor(this._zoom.start/100*A[_].length)+$:-1},resize:function(){this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this.option.dataZoom.show&&this._buildShape()}},F.inherits($,G),_("../component").define("dataZoom",$),$}),C("echarts/util/shape/GaugePointer",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(_){function $($){B.call(this,$)}var B=_("zrender/shape/Base"),A=_("zrender/tool/util");return $.prototype={type:"gauge-pointer",buildPath:function(_,$){var E=$.r,D=$.width,B=$.angle,A=$.x-Math.cos(B)*D*(D>=E/3?1:2),C=$.y+Math.sin(B)*D*(D>=E/3?1:2);B=$.angle-Math.PI/2,_.moveTo(A,C),_.lineTo($.x+Math.cos(B)*D,$.y-Math.sin(B)*D),_.lineTo($.x+Math.cos($.angle)*E,$.y-Math.sin($.angle)*E),_.lineTo($.x-Math.cos(B)*D,$.y+Math.sin(B)*D),_.lineTo(A,C)},getRect:function(_){if(_.__rect)return _.__rect;var $=2*_.width,D=_.x,C=_.y,B=D+Math.cos(_.angle)*_.r,A=C-Math.sin(_.angle)*_.r;return _.__rect={x:Math.min(D,B)-$,y:Math.min(C,A)-$,width:Math.abs(D-B)+$,height:Math.abs(C-A)+$},_.__rect},isCover:_("./normalIsCover")},A.inherits($,B),$}),C("zrender/shape/Text",["require","../tool/area","./Base","../tool/util"],function(_){var $=_("../tool/area"),B=_("./Base"),A=function($){B.call(this,$)};return A.prototype={type:"text",brush:function(A,I){var F=this.style;if(I&&(F=this.getHighlightStyle(F,this.highlightStyle||{})),"undefined"!=typeof F.text&&F.text!==!1){A.save(),this.doClip(A),this.setContext(A,F),this.setTransform(A),F.textFont&&(A.font=F.textFont),A.textAlign=F.textAlign||"start",A.textBaseline=F.textBaseline||"middle";var C,B=(F.text+"").split("\n"),E=$.getTextHeight("\u56fd",F.textFont),D=this.getRect(F),H=F.x;C="top"==F.textBaseline?D.y:"bottom"==F.textBaseline?D.y+E:D.y+E/2;for(var G=0,_=B.length;_>G;G++){if(F.maxWidth)switch(F.brushType){case"fill":A.fillText(B[G],H,C,F.maxWidth);break;case"stroke":A.strokeText(B[G],H,C,F.maxWidth);break;case"both":A.fillText(B[G],H,C,F.maxWidth),A.strokeText(B[G],H,C,F.maxWidth);break;default:A.fillText(B[G],H,C,F.maxWidth)}else switch(F.brushType){case"fill":A.fillText(B[G],H,C);break;case"stroke":A.strokeText(B[G],H,C);break;case"both":A.fillText(B[G],H,C),A.strokeText(B[G],H,C);break;default:A.fillText(B[G],H,C)}C+=E}A.restore()}},getRect:function(_){if(_.__rect)return _.__rect;var D=$.getTextWidth(_.text,_.textFont),C=$.getTextHeight(_.text,_.textFont),B=_.x;"end"==_.textAlign||"right"==_.textAlign?B-=D:"center"==_.textAlign&&(B-=D/2);var A;return A="top"==_.textBaseline?_.y:"bottom"==_.textBaseline?_.y-C:_.y-C/2,_.__rect={x:B,y:A,width:D,height:C},_.__rect}},_("../tool/util").inherits(A,B),A}),C("zrender/shape/Line",["require","./Base","./util/dashedLineTo","../tool/util"],function(_){var $=_("./Base"),B=_("./util/dashedLineTo"),A=function(_){this.brushTypeOnly="stroke",this.textPosition="end",$.call(this,_)};return A.prototype={type:"line",buildPath:function(_,$){if($.lineType&&"solid"!=$.lineType){if("dashed"==$.lineType||"dotted"==$.lineType){var A=($.lineWidth||1)*("dashed"==$.lineType?5:1);B(_,$.xStart,$.yStart,$.xEnd,$.yEnd,A)}}else _.moveTo($.xStart,$.yStart),_.lineTo($.xEnd,$.yEnd)},getRect:function(_){if(_.__rect)return _.__rect;var $=_.lineWidth||1;return _.__rect={x:Math.min(_.xStart,_.xEnd)-$,y:Math.min(_.yStart,_.yEnd)-$,width:Math.abs(_.xStart-_.xEnd)+$,height:Math.abs(_.yStart-_.yEnd)+$},_.__rect}},_("../tool/util").inherits(A,$),A}),C("zrender/shape/Rectangle",["require","./Base","../tool/util"],function(_){var $=_("./Base"),A=function(_){$.call(this,_)};return A.prototype={type:"rectangle",_buildRadiusPath:function(H,_){var G,D,J,I,C=_.x,B=_.y,F=_.width,E=_.height,$=_.radius;"number"==typeof $?G=D=J=I=$:$ instanceof Array?1===$.length?G=D=J=I=$[0]:2===$.length?(G=J=$[0],D=I=$[1]):3===$.length?(G=$[0],D=I=$[1],J=$[2]):(G=$[0],D=$[1],J=$[2],I=$[3]):G=D=J=I=0;var A;G+D>F&&(A=G+D,G*=F/A,D*=F/A),J+I>F&&(A=J+I,J*=F/A,I*=F/A),D+J>E&&(A=D+J,D*=E/A,J*=E/A),G+I>E&&(A=G+I,G*=E/A,I*=E/A),H.moveTo(C+G,B),H.lineTo(C+F-D,B),0!==D&&H.quadraticCurveTo(C+F,B,C+F,B+D),H.lineTo(C+F,B+E-J),0!==J&&H.quadraticCurveTo(C+F,B+E,C+F-J,B+E),H.lineTo(C+I,B+E),0!==I&&H.quadraticCurveTo(C,B+E,C,B+E-I),H.lineTo(C,B+G),0!==G&&H.quadraticCurveTo(C,B,C+G,B)},buildPath:function(_,$){$.radius?this._buildRadiusPath(_,$):(_.moveTo($.x,$.y),_.lineTo($.x+$.width,$.y),_.lineTo($.x+$.width,$.y+$.height),_.lineTo($.x,$.y+$.height),_.lineTo($.x,$.y)),_.closePath()},getRect:function(_){if(_.__rect)return _.__rect;var $;return $="stroke"==_.brushType||"fill"==_.brushType?_.lineWidth||1:0,_.__rect={x:Math.round(_.x-$/2),y:Math.round(_.y-$/2),width:_.width+$,height:_.height+$},_.__rect}},_("../tool/util").inherits(A,$),A}),C("zrender/shape/Circle",["require","./Base","../tool/util"],function(_){"use strict";var $=_("./Base"),A=function(_){$.call(this,_)};return A.prototype={type:"circle",buildPath:function(_,$){_.moveTo($.x+$.r,$.y),_.arc($.x,$.y,$.r,0,2*Math.PI,!0)},getRect:function(_){if(_.__rect)return _.__rect;var $;return $="stroke"==_.brushType||"fill"==_.brushType?_.lineWidth||1:0,_.__rect={x:Math.round(_.x-_.r-$/2),y:Math.round(_.y-_.r-$/2),width:2*_.r+$,height:2*_.r+$},_.__rect}},_("../tool/util").inherits(A,$),A}),C("zrender/shape/Sector",["require","../tool/math","../tool/computeBoundingBox","../tool/vector","./Base","../tool/util"],function(_){var $=_("../tool/math"),H=_("../tool/computeBoundingBox"),E=_("../tool/vector"),B=_("./Base"),A=E.create(),D=E.create(),C=E.create(),G=E.create(),F=function($){B.call(this,$)};return F.prototype={type:"sector",buildPath:function(A,J){var G=J.x,D=J.y,B=J.r0||0,F=J.r,E=J.startAngle,I=J.endAngle,H=J.clockWise||!1;E=$.degreeToRadian(E),I=$.degreeToRadian(I),H||(E=-E,I=-I);var _=$.cos(E),C=$.sin(E);A.moveTo(_*B+G,C*B+D),A.lineTo(_*F+G,C*F+D),A.arc(G,D,F,E,I,!H),A.lineTo($.cos(I)*B+G,$.sin(I)*B+D),0!==B&&A.arc(G,D,B,I,E,H),A.closePath()},getRect:function(I){if(I.__rect)return I.__rect;var K=I.x,M=I.y,F=I.r0||0,J=I.r,L=$.degreeToRadian(I.startAngle),B=$.degreeToRadian(I.endAngle),_=I.clockWise;return _||(L=-L,B=-B),F>1?H.arc(K,M,F,L,B,!_,A,C):(A[0]=C[0]=K,A[1]=C[1]=M),H.arc(K,M,J,L,B,!_,D,G),E.min(A,A,D),E.max(C,C,G),I.__rect={x:A[0],y:A[1],width:C[0]-A[0],height:C[1]-A[1]},I.__rect}},_("../tool/util").inherits(F,B),F}),C("echarts/util/number",[],function(){function _($){return $.replace(/^\s+/,"").replace(/\s+$/,"")}function $($,A){return"string"==typeof $?_($).match(/%$/)?parseFloat($)/100*A:parseFloat($):$}function D(_,A){return[$(A[0],_.getWidth()),$(A[1],_.getHeight())]}function C(_,B){B instanceof Array||(B=[0,B]);var A=Math.min(_.getWidth(),_.getHeight())/2;return[$(B[0],A),$(B[1],A)]}function B($){return isNaN($)?"-":($=($+"").split("."),$[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+($.length>1?"."+$[1]:""))}function A(_){for(var $=1,A=0;Math.round(_*$)/$!==_;)$*=10,A++;return A}return{parsePercent:$,parseCenter:D,parseRadius:C,addCommas:B,getPrecision:A}}),C("zrender/tool/area",["require","./util","./curve"],function(a){"use strict";function M($){return $%=E,0>$&&($+=E),$}function W(_,$,F,B){if(!$||!_)return!1;var D=_.type;e=e||A.getContext();var C=R(_,$,F,B);if("undefined"!=typeof C)return C;if(_.buildPath&&e.isPointInPath)return c(_,e,$,F,B);switch(D){case"ellipse":return!0;case"trochoid":var E="out"==$.location?$.r1+$.r2+$.d:$.r1-$.r2+$.d;return Z($,F,B,E);case"rose":return Z($,F,B,$.maxr);default:return!1}}function R(_,$,F,C){var B=_.type;switch(B){case"bezier-curve":return"undefined"==typeof $.cpX2?V($.xStart,$.yStart,$.cpX1,$.cpY1,$.xEnd,$.yEnd,$.lineWidth,F,C):P($.xStart,$.yStart,$.cpX1,$.cpY1,$.cpX2,$.cpY2,$.xEnd,$.yEnd,$.lineWidth,F,C);case"line":return Q($.xStart,$.yStart,$.xEnd,$.yEnd,$.lineWidth,F,C);case"polyline":return L($.pointList,$.lineWidth,F,C);case"ring":return O($.x,$.y,$.r0,$.r,F,C);case"circle":return Z($.x,$.y,$.r,F,C);case"sector":var A=$.startAngle*Math.PI/180,D=$.endAngle*Math.PI/180;return $.clockWise||(A=-A,D=-D),K($.x,$.y,$.r0,$.r,A,D,!$.clockWise,F,C);case"path":return $.pathArray&&N($.pathArray,Math.max($.lineWidth,5),$.brushType,F,C);case"polygon":case"star":case"isogon":return J($.pointList,F,C);case"text":var E=$.__rect||_.getRect($);return d(E.x,E.y,E.width,E.height,F,C);case"rectangle":case"image":return d($.x,$.y,$.width,$.height,F,C)}}function c(_,$,C,B,A){return $.beginPath(),_.buildPath($,C),$.closePath(),$.isPointInPath(B,A)}function b(_,$,B,A){return!W(_,$,B,A)}function Q(H,_,G,D,J,I,C){if(0===J)return!1;var B=Math.max(J,5),F=0,E=H;if(C>_+B&&C>D+B||_-B>C&&D-B>C||I>H+B&&I>G+B||H-B>I&&G-B>I)return!1;if(H===G)return Math.abs(I-H)<=B/2;F=(_-D)/(H-G),E=(H*D-G*_)/(H-G);var $=F*I-C+E,A=$*$/(F*F+1);return B/2*B/2>=A}function P(I,_,H,E,K,J,D,C,G,F,$){if(0===G)return!1;var A=Math.max(G,5);if($>_+A&&$>E+A&&$>J+A&&$>C+A||_-A>$&&E-A>$&&J-A>$&&C-A>$||F>I+A&&F>H+A&&F>K+A&&F>D+A||I-A>F&&H-A>F&&K-A>F&&D-A>F)return!1;var L=B.cubicProjectPoint(I,_,H,E,K,J,D,C,F,$,null);return A/2>=L}function V(A,_,J,G,D,C,F,E,I){if(0===F)return!1;var H=Math.max(F,5);if(I>_+H&&I>G+H&&I>C+H||_-H>I&&G-H>I&&C-H>I||E>A+H&&E>J+H&&E>D+H||A-H>E&&J-H>E&&D-H>E)return!1;var $=B.quadraticProjectPoint(A,_,J,G,D,C,E,I,null);return H/2>=$}function S(I,G,C,K,J,B,A,F,D){if(0===A)return!1;var $=Math.max(A,5);F-=I,D-=G;var _=Math.sqrt(F*F+D*D);if(_-$>C||C>_+$)return!1;if(Math.abs(K-J)>=E)return!0;if(B){var L=K;K=M(J),J=M(L)}else K=M(K),J=M(J);K>J&&(J+=E);var H=Math.atan2(D,F);return 0>H&&(H+=E),H>=K&&J>=H||H+E>=K&&J>=H+E}function L(A,_,H,E){for(var _=Math.max(_,10),C=0,B=A.length-1;B>C;C++){var D=A[C][0],G=A[C][1],F=A[C+1][0],$=A[C+1][1];if(Q(D,G,F,$,_,H,E))return!0}return!1}function O(_,$,E,D,B,A){var C=(B-_)*(B-_)+(A-$)*(A-$);return D*D>C&&C>E*E}function d(_,$,D,C,B,A){return B>=_&&_+D>=B&&A>=$&&$+C>=A}function Z(_,$,C,B,A){return C*C>(B-_)*(B-_)+(A-$)*(A-$)}function K(_,$,G,E,B,A,D,C,F){return S(_,$,(G+E)/2,B,A,D,E-G,C,F)}function J(A,_,I){for(var F=A.length,C=0,B=0,E=F-1;F>B;B++){var D=A[E][0],H=A[E][1],G=A[B][0],$=A[B][1];C+=T(D,H,G,$,_,I),E=B}return 0!==C}function T(_,$,G,E,B,A){if(A>$&&A>E||$>A&&E>A)return 0;if(E==$)return 0;var D=$>E?1:-1,C=(A-$)/(E-$),F=C*(G-_)+_;return F>B?D:0}function I(){var $=G[0];G[0]=G[1],G[1]=$}function f(P,C,N,J,R,Q,H,F,M,K){if(K>C&&K>J&&K>Q&&K>F||C>K&&J>K&&Q>K&&F>K)return 0;var A=B.cubicRootAt(C,J,Q,F,K,D);if(0===A)return 0;for(var E,S,O=0,_=-1,$=0;A>$;$++){var L=D[$],T=B.cubicAt(P,N,R,H,L);M>T||(0>_&&(_=B.cubicExtrema(C,J,Q,F,G),G[1]<G[0]&&_>1&&I(),E=B.cubicAt(C,J,Q,F,G[0]),_>1&&(S=B.cubicAt(C,J,Q,F,G[1]))),O+=2==_?L<G[0]?C>E?1:-1:L<G[1]?E>S?1:-1:S>F?1:-1:L<G[0]?C>E?1:-1:E>F?1:-1)}return O}function Y(K,_,I,F,M,L,E,C){if(C>_&&C>F&&C>L||_>C&&F>C&&L>C)return 0;var H=B.quadraticRootAt(_,F,L,C,D);if(0===H)return 0;var G=B.quadraticExtremum(_,F,L);if(G>=0&&1>=G){for(var $=0,A=B.quadraticAt(_,F,L,G),N=0;H>N;N++){var J=B.quadraticAt(K,I,M,D[N]);E>J||($+=D[N]<G?_>A?1:-1:A>L?1:-1)}return $}J=B.quadraticAt(K,I,M,D[0]);return E>J?0:_>L?1:-1}function g(K,I,F,N,L,C,B,H){if(H-=I,H>F||-F>H)return 0;var G=Math.sqrt(F*F-H*H);if(D[0]=-G,D[1]=G,Math.abs(N-L)>=E){N=0,L=E;var _=C?1:-1;return B>=D[0]+K&&B<=D[1]+K?_:0}if(C){G=N;N=M(L),L=M(G)}else N=M(N),L=M(L);N>L&&(L+=E);for(var A=0,O=0;2>O;O++){var J=D[O];if(J+K>B){var $=Math.atan2(H,J),_=C?1:-1;0>$&&($=E+$),($>=N&&L>=$||$+E>=N&&L>=$+E)&&($>Math.PI/2&&$<1.5*Math.PI&&(_=-_),A+=_)}}return A}function N(Z,L,U,O,b){var a=0,K=0,N=0,c=0,X=0,J=!0,I=!0;U=U||"fill";for(var H="stroke"===U||"both"===U,M="fill"===U||"both"===U,G=0;G<Z.length;G++){var F=Z[G],d=F.points;if(J||"M"===F.command){if(G>0&&(M&&(a+=T(K,N,c,X,O,b)),0!==a))return!0;c=d[d.length-2],X=d[d.length-1],J=!1,I&&"A"!==F.command&&(I=!1,K=c,N=X)}switch(F.command){case"M":K=d[0],N=d[1];break;case"L":if(H&&Q(K,N,d[0],d[1],L,O,b))return!0;M&&(a+=T(K,N,d[0],d[1],O,b)),K=d[0],N=d[1];break;case"C":if(H&&P(K,N,d[0],d[1],d[2],d[3],d[4],d[5],L,O,b))return!0;M&&(a+=f(K,N,d[0],d[1],d[2],d[3],d[4],d[5],O,b)),K=d[4],N=d[5];break;case"Q":if(H&&V(K,N,d[0],d[1],d[2],d[3],L,O,b))return!0;M&&(a+=Y(K,N,d[0],d[1],d[2],d[3],O,b)),K=d[2],N=d[3];break;case"A":var A=d[0],B=d[1],W=d[2],C=d[3],$=d[4],_=d[5],R=Math.cos($)*W+A,E=Math.sin($)*C+B;I?(I=!1,c=R,X=E):a+=T(K,N,R,E);var D=(O-A)*C/W+A;if(H&&S(A,B,C,$,$+_,1-d[7],L,D,b))return!0;M&&(a+=g(A,B,C,$,$+_,1-d[7],D,b)),K=Math.cos($+_)*W+A,N=Math.sin($+_)*C+B;break;case"z":if(H&&Q(K,N,c,X,L,O,b))return!0;J=!0}}return M&&(a+=T(K,N,c,X,O,b)),0!==a}function H(B,_){var F=B+":"+_;if(X[F])return X[F];e=e||A.getContext(),e.save(),_&&(e.font=_),B=(B+"").split("\n");for(var E=0,D=0,C=B.length;C>D;D++)E=Math.max(e.measureText(B[D]).width,E);return e.restore(),X[F]=E,++$>U&&($=0,X={}),E}function F(B,$){var E=B+":"+$;if(C[E])return C[E];e=e||A.getContext(),e.save(),$&&(e.font=$),B=(B+"").split("\n");var D=(e.measureText("\u56fd").width+2)*B.length;return e.restore(),C[E]=D,++_>U&&(_=0,C={}),D}var e,A=a("./util"),B=a("./curve"),X={},C={},$=0,_=0,U=5000,E=2*Math.PI,D=[-1,-1,-1],G=[-1,-1];return{isInside:W,isOutside:b,getTextWidth:H,getTextHeight:F,isInsidePath:N,isInsidePolygon:J,isInsideSector:K,isInsideCircle:Z,isInsideLine:Q,isInsideRect:d,isInsidePolyline:L,isInsideCubicStroke:P,isInsideQuadraticStroke:V}}),C("zrender/shape/Ring",["require","./Base","../tool/util"],function(_){var $=_("./Base"),A=function(_){$.call(this,_)};return A.prototype={type:"ring",buildPath:function(_,$){_.arc($.x,$.y,$.r,0,2*Math.PI,!1),_.moveTo($.x+$.r0,$.y),_.arc($.x,$.y,$.r0,0,2*Math.PI,!0)},getRect:function(_){if(_.__rect)return _.__rect;var $;return $="stroke"==_.brushType||"fill"==_.brushType?_.lineWidth||1:0,_.__rect={x:Math.round(_.x-_.r-$/2),y:Math.round(_.y-_.r-$/2),width:2*_.r+$,height:2*_.r+$},_.__rect}},_("../tool/util").inherits(A,$),A}),C("zrender/shape/Polyline",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","./Polygon","../tool/util"],function(_){var $=_("./Base"),D=_("./util/smoothSpline"),C=_("./util/smoothBezier"),B=_("./util/dashedLineTo"),A=function(_){this.brushTypeOnly="stroke",this.textPosition="end",$.call(this,_)};return A.prototype={type:"polyline",buildPath:function(A,_){var H=_.pointList;if(!(H.length<2)){var C=Math.min(_.pointList.length,Math.round(_.pointListLength||_.pointList.length));if(_.smooth&&"spline"!==_.smooth){_.controlPointList||this.updateControlPoints(_);var G=_.controlPointList;A.moveTo(H[0][0],H[0][1]);for(var F,J,I,$=0;C-1>$;$++)F=G[2*$],J=G[2*$+1],I=H[$+1],A.bezierCurveTo(F[0],F[1],J[0],J[1],I[0],I[1])}else if("spline"===_.smooth&&(H=D(H),C=H.length),_.lineType&&"solid"!=_.lineType){if("dashed"==_.lineType||"dotted"==_.lineType){var E=(_.lineWidth||1)*("dashed"==_.lineType?5:1);A.moveTo(H[0][0],H[0][1]);for($=1;C>$;$++)B(A,H[$-1][0],H[$-1][1],H[$][0],H[$][1],E)}}else{A.moveTo(H[0][0],H[0][1]);for($=1;C>$;$++)A.lineTo(H[$][0],H[$][1])}}},updateControlPoints:function($){$.controlPointList=C($.pointList,$.smooth,!1,$.smoothConstraint)},getRect:function($){return _("./Polygon").prototype.getRect($)}},_("../tool/util").inherits(A,$),A}),C("zrender/tool/math",[],function(){function _(_,$){return Math.sin($?_*A:_)}function $(_,$){return Math.cos($?_*A:_)}function C($){return $*A}function B($){return $/A}var A=Math.PI/180;return{sin:_,cos:$,degreeToRadian:C,radianToDegree:B}}),C("echarts/layout/TreeMap",["require"],function(){function $($){({x:$.x,y:$.y,width:$.width,height:$.height});this.x=$.x,this.y=$.y,this.width=$.width,this.height=$.height}return $.prototype.run=function(_){var $=[];return this._squarify(_,{x:this.x,y:this.y,width:this.width,height:this.height},$),$},$.prototype._squarify=function(H,_,G){var D="VERTICAL",J=_.width,I=_.height;_.width<_.height&&(D="HORIZONTAL",J=_.height,I=_.width);for(var C=this._getShapeListInAbstractRow(H,J,I),B=0;B<C.length;B++){C[B].x=0,C[B].y=0;for(var F=0;B>F;F++)C[B].y+=C[F].height}var E={};if("VERTICAL"==D){for(var $=0;$<C.length;$++)G.push({x:C[$].x+_.x,y:C[$].y+_.y,width:C[$].width,height:C[$].height});E={x:C[0].width+_.x,y:_.y,width:_.width-C[0].width,height:_.height}}else{for(var A=0;A<C.length;A++)G.push({x:C[A].y+_.x,y:C[A].x+_.y,width:C[A].height,height:C[A].width});E={x:_.x,y:_.y+C[0].width,width:_.width,height:_.height-C[0].width}}var K=H.slice(C.length);0!==K.length&&this._squarify(K,E,G)},$.prototype._getShapeListInAbstractRow=function(_,$,D){if(1===_.length)return[{width:$,height:D}];for(var C=1;C<_.length;C++){var B=this._placeFixedNumberRectangles(_.slice(0,C),$,D),A=this._placeFixedNumberRectangles(_.slice(0,C+1),$,D);if(this._isFirstBetter(B,A))return B}},$.prototype._placeFixedNumberRectangles=function(_,$,H){for(var E=_.length,B=[],A=0,D=0;D<_.length;D++)A+=_[D];for(var C=A/H,G=0;E>G;G++){var F=H*_[G]/A;B.push({width:C,height:F})}return B},$.prototype._isFirstBetter=function(_,$){var B=_[0].height/_[0].width;B=B>1?1/B:B;var A=$[0].height/$[0].width;return A=A>1?1/A:A,Math.abs(B-1)<=Math.abs(A-1)?!0:!1},$}),C("echarts/data/Tree",["require","zrender/tool/util"],function(_){function $(_,$){this.id=_,this.depth=0,this.height=0,this.children=[],this.parent=null,this.data=$||null}function B(_){this.root=new $(_)}var A=_("zrender/tool/util");return $.prototype.add=function(_){var $=this.children;_.parent!==this&&($.push(_),_.parent=this)},$.prototype.remove=function(_){var $=this.children,B=A.indexOf($,_);B>=0&&($.splice(B,1),_.parent=null)},$.prototype.traverse=function(_,$){_.call($,this);for(var A=0;A<this.children.length;A++)this.children[A].traverse(_,$)},$.prototype.updateDepthAndHeight=function(_){var $=0;this.depth=_;for(var B=0;B<this.children.length;B++){var A=this.children[B];A.updateDepthAndHeight(_+1),A.height>$&&($=A.height)}this.height=$+1},$.prototype.getNodeById=function(_){if(this.id===_)return this;for(var $=0;$<this.children.length;$++){var A=this.children[$].getNodeById(_);if(A)return A}},B.prototype.traverse=function(_,$){this.root.traverse(_,$)},B.prototype.getSubTree=function(_){var $=this.getNodeById(_);if($){var A=new B($.id);return A.root=$,A}},B.prototype.getNodeById=function($){return this.root.getNodeById($)},B.fromOptionData=function(_,F){function C(_,E){var D=new $(_.name,_);E.add(D);var A=_.children;if(A)for(var B=0;B<A.length;B++)C(A[B],D)}var A=new B(_),E=A.root;E.data={name:_,children:F};for(var D=0;D<F.length;D++)C(F[D],E);return A.root.updateDepthAndHeight(0),A},B.fromGraph=function(A){function G($){for(var E=A.getNodeById($.id),_=0;_<E.outEdges.length;_++){var D=E.outEdges[_],B=C[D.node2.id];$.children.push(B),G(B)}}for(var D={},C={},F=0;F<A.nodes.length;F++){var E,I=A.nodes[F];0===I.inDegree()?(D[I.id]=new B(I.id),E=D[I.id].root):E=new $(I.id),E.data=I.data,C[I.id]=E}var H=[];for(var _ in D)G(D[_].root),D[_].root.updateDepthAndHeight(0),H.push(D[_]);return H},B}),C("echarts/component/base",["require","../config","../util/ecData","../util/ecQuery","../util/number","zrender/tool/util","zrender/tool/env"],function(_){function $(_,$,B,A,F){this.ecTheme=_,this.messageCenter=$,this.zr=B,this.option=A,this.series=A.series,this.myChart=F,this.component=F.component,this.shapeList=[],this.effectList=[];var C=this;C._onlegendhoverlink=function(_){if(C.legendHoverLink)for(var $,B=_.target,A=C.shapeList.length-1;A>=0;A--)$=C.type==E.CHART_TYPE_PIE||C.type==E.CHART_TYPE_FUNNEL?D.get(C.shapeList[A],"name"):(D.get(C.shapeList[A],"series")||{}).name,$!=B||C.shapeList[A].invisible||C.shapeList[A].__animating||C.zr.addHoverShape(C.shapeList[A])},$&&$.bind(E.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink)}var E=_("../config"),D=_("../util/ecData"),B=_("../util/ecQuery"),A=_("../util/number"),C=_("zrender/tool/util");return $.prototype={canvasSupported:_("zrender/tool/env").canvasSupported,_getZ:function(_){if(null!=this[_])return this[_];var $=this.ecTheme[this.type];return $&&null!=$[_]?$[_]:($=E[this.type],$&&null!=$[_]?$[_]:0)},getZlevelBase:function(){return this._getZ("zlevel")},getZBase:function(){return this._getZ("z")},reformOption:function($){return $=C.merge(C.merge($||{},C.clone(this.ecTheme[this.type]||{})),C.clone(E[this.type]||{})),this.z=$.z,this.zlevel=$.zlevel,$},reformCssArray:function($){if(!($ instanceof Array))return[$,$,$,$];switch($.length+""){case"4":return $;case"3":return[$[0],$[1],$[2],$[1]];case"2":return[$[0],$[1],$[0],$[1]];case"1":return[$[0],$[0],$[0],$[0]];case"0":return[0,0,0,0]}},getShapeById:function(_){for(var $=0,A=this.shapeList.length;A>$;$++)if(this.shapeList[$].id===_)return this.shapeList[$];return null},getFont:function(_){var $=this.getTextStyle(C.clone(_));return $.fontStyle+" "+$.fontWeight+" "+$.fontSize+"px "+$.fontFamily},getTextStyle:function($){return C.merge(C.merge($||{},this.ecTheme.textStyle),E.textStyle)},getItemStyleColor:function(_,$,B,A){return"function"==typeof _?_.call(this.myChart,{seriesIndex:$,series:this.series[$],dataIndex:B,data:A}):_},getDataFromOption:function(_,$){return null!=_?null!=_.value?_.value:_:$},subPixelOptimize:function(_,$){return _=$%2===1?Math.floor(_)+0.5:Math.round(_)},resize:function(){this.refresh&&this.refresh(),this.clearEffectShape&&this.clearEffectShape(!0);var $=this;setTimeout(function(){$.animationEffect&&$.animationEffect()},200)},clear:function(){this.clearEffectShape&&this.clearEffectShape(),this.zr&&this.zr.delShape(this.shapeList),this.shapeList=[]},dispose:function(){this.onbeforDispose&&this.onbeforDispose(),this.clear(),this.shapeList=null,this.effectList=null,this.messageCenter&&this.messageCenter.unbind(E.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink),this.onafterDispose&&this.onafterDispose()},query:B.query,deepQuery:B.deepQuery,deepMerge:B.deepMerge,parsePercent:A.parsePercent,parseCenter:A.parseCenter,parseRadius:A.parseRadius,numAddCommas:A.addCommas,getPrecision:A.getPrecision},$}),C("echarts/util/shape/HandlePolygon",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util"],function(_){function $($){C.call(this,$)}var C=_("zrender/shape/Base"),B=_("zrender/shape/Polygon"),A=_("zrender/tool/util");return $.prototype={type:"handle-polygon",buildPath:function(_,$){B.prototype.buildPath(_,$)},isCover:function(_,$){var B=this.transformCoordToLocal(_,$);_=B[0],$=B[1];var A=this.style.rect;return _>=A.x&&_<=A.x+A.width&&$>=A.y&&$<=A.y+A.height?!0:!1}},A.inherits($,C),$}),C("echarts/component/toolbox",["require","./base","zrender/shape/Line","zrender/shape/Image","zrender/shape/Rectangle","../util/shape/Icon","../config","zrender/tool/util","zrender/config","zrender/tool/event","./dataView","../component"],function(H){function _(_,$,D,B,A){G.call(this,_,$,D,B,A),this.dom=A.dom,this._magicType={},this._magicMap={},this._isSilence=!1,this._iconList,this._iconShapeMap={},this._featureTitle={},this._featureIcon={},this._featureColor={},this._featureOption={},this._enableColor="red",this._disableColor="#ccc",this._markShapeList=[];var C=this;C._onMark=function($){C.__onMark($)},C._onMarkUndo=function($){C.__onMarkUndo($)},C._onMarkClear=function($){C.__onMarkClear($)},C._onDataZoom=function($){C.__onDataZoom($)},C._onDataZoomReset=function($){C.__onDataZoomReset($)},C._onDataView=function($){C.__onDataView($)},C._onRestore=function($){C.__onRestore($)},C._onSaveAsImage=function($){C.__onSaveAsImage($)},C._onMagicType=function($){C.__onMagicType($)},C._onCustomHandler=function($){C.__onCustomHandler($)},C._onmousemove=function($){return C.__onmousemove($)},C._onmousedown=function($){return C.__onmousedown($)},C._onmouseup=function($){return C.__onmouseup($)},C._onclick=function($){return C.__onclick($)}}var G=H("./base"),D=H("zrender/shape/Line"),J=H("zrender/shape/Image"),I=H("zrender/shape/Rectangle"),C=H("../util/shape/Icon"),B=H("../config");B.toolbox={zlevel:0,z:6,show:!1,orient:"horizontal",x:"right",y:"top",color:["#1e90ff","#22bb22","#4b0082","#d2691e"],disableColor:"#ddd",effectiveColor:"red",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemSize:16,showTitle:!0,feature:{mark:{show:!1,title:{mark:"\u8f85\u52a9\u7ebf\u5f00\u5173",markUndo:"\u5220\u9664\u8f85\u52a9\u7ebf",markClear:"\u6e05\u7a7a\u8f85\u52a9\u7ebf"},lineStyle:{width:1,color:"#1e90ff",type:"dashed"}},dataZoom:{show:!1,title:{dataZoom:"\u533a\u57df\u7f29\u653e",dataZoomReset:"\u533a\u57df\u7f29\u653e\u540e\u9000"}},dataView:{show:!1,title:"\u6570\u636e\u89c6\u56fe",readOnly:!1,lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},magicType:{show:!1,title:{line:"\u6298\u7ebf\u56fe\u5207\u6362",bar:"\u67f1\u5f62\u56fe\u5207\u6362",stack:"\u5806\u79ef",tiled:"\u5e73\u94fa",force:"\u529b\u5bfc\u5411\u5e03\u5c40\u56fe\u5207\u6362",chord:"\u548c\u5f26\u56fe\u5207\u6362",pie:"\u997c\u56fe\u5207\u6362",funnel:"\u6f0f\u6597\u56fe\u5207\u6362"},type:[]},restore:{show:!1,title:"\u8fd8\u539f"},saveAsImage:{show:!1,title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",type:"png",lang:["\u70b9\u51fb\u4fdd\u5b58"]}}};var F=H("zrender/tool/util"),E=H("zrender/config"),$=H("zrender/tool/event"),A="stack",K="tiled";return _.prototype={type:B.COMPONENT_TYPE_TOOLBOX,_buildShape:function(){this._iconList=[];var _=this.option.toolbox;this._enableColor=_.effectiveColor,this._disableColor=_.disableColor;var $=_.feature,E=[];for(var D in $)if($[D].show)switch(D){case"mark":E.push({key:D,name:"mark"}),E.push({key:D,name:"markUndo"}),E.push({key:D,name:"markClear"});break;case"magicType":for(var B=0,A=$[D].type.length;A>B;B++)$[D].title[$[D].type[B]+"Chart"]=$[D].title[$[D].type[B]],$[D].option&&($[D].option[$[D].type[B]+"Chart"]=$[D].option[$[D].type[B]]),E.push({key:D,name:$[D].type[B]+"Chart"});break;case"dataZoom":E.push({key:D,name:"dataZoom"}),E.push({key:D,name:"dataZoomReset"});break;case"saveAsImage":this.canvasSupported&&E.push({key:D,name:"saveAsImage"});break;default:E.push({key:D,name:D})}if(E.length>0){for(var C,D,B=0,A=E.length;A>B;B++)C=E[B].name,D=E[B].key,this._iconList.push(C),this._featureTitle[C]=$[D].title[C]||$[D].title,$[D].icon&&(this._featureIcon[C]=$[D].icon[C]||$[D].icon),$[D].color&&(this._featureColor[C]=$[D].color[C]||$[D].color),$[D].option&&(this._featureOption[C]=$[D].option[C]||$[D].option);this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(B=0,A=this.shapeList.length;A>B;B++)this.zr.addShape(this.shapeList[B]);this._iconShapeMap.mark&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear)),this._iconShapeMap.dataZoomReset&&0===this._zoomQueue.length&&this._iconDisable(this._iconShapeMap.dataZoomReset)}},_buildItem:function(){var B,L,F,N,E=this.option.toolbox,K=this._iconList.length,G=this._itemGroupLocation.x,A=this._itemGroupLocation.y,D=E.itemSize,O=E.itemGap,M=E.color instanceof Array?E.color:[E.color],_=this.getFont(E.textStyle);"horizontal"===E.orient?(L=this._itemGroupLocation.y/this.zr.getHeight()<0.5?"bottom":"top",F=this._itemGroupLocation.x/this.zr.getWidth()<0.5?"left":"right",N=this._itemGroupLocation.y/this.zr.getHeight()<0.5?"top":"bottom"):L=this._itemGroupLocation.x/this.zr.getWidth()<0.5?"right":"left",this._iconShapeMap={};for(var $=this,I=0;K>I;I++){switch(B={type:"icon",zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:G,y:A,width:D,height:D,iconType:this._iconList[I],lineWidth:1,strokeColor:this._featureColor[this._iconList[I]]||M[I%M.length],brushType:"stroke"},highlightStyle:{lineWidth:1,text:E.showTitle?this._featureTitle[this._iconList[I]]:void 0,textFont:_,textPosition:L,strokeColor:this._featureColor[this._iconList[I]]||M[I%M.length]},hoverable:!0,clickable:!0},this._featureIcon[this._iconList[I]]&&(B.style.image=this._featureIcon[this._iconList[I]].replace(new RegExp("^image:\\/\\/"),""),B.style.opacity=0.8,B.highlightStyle.opacity=1,B.type="image"),"horizontal"===E.orient&&(0===I&&"left"===F&&(B.highlightStyle.textPosition="specific",B.highlightStyle.textAlign=F,B.highlightStyle.textBaseline=N,B.highlightStyle.textX=G,B.highlightStyle.textY="top"===N?A+D+10:A-10),I===K-1&&"right"===F&&(B.highlightStyle.textPosition="specific",B.highlightStyle.textAlign=F,B.highlightStyle.textBaseline=N,B.highlightStyle.textX=G+D,B.highlightStyle.textY="top"===N?A+D+10:A-10)),this._iconList[I]){case"mark":B.onclick=$._onMark;break;case"markUndo":B.onclick=$._onMarkUndo;break;case"markClear":B.onclick=$._onMarkClear;break;case"dataZoom":B.onclick=$._onDataZoom;break;case"dataZoomReset":B.onclick=$._onDataZoomReset;break;case"dataView":if(!this._dataView){var P=H("./dataView");this._dataView=new P(this.ecTheme,this.messageCenter,this.zr,this.option,this.myChart)}B.onclick=$._onDataView;break;case"restore":B.onclick=$._onRestore;break;case"saveAsImage":B.onclick=$._onSaveAsImage;break;default:this._iconList[I].match("Chart")?(B._name=this._iconList[I].replace("Chart",""),B.onclick=$._onMagicType):B.onclick=$._onCustomHandler}"icon"===B.type?B=new C(B):"image"===B.type&&(B=new J(B)),this.shapeList.push(B),this._iconShapeMap[this._iconList[I]]=B,"horizontal"===E.orient?G+=D+O:A+=D+O}},_buildBackground:function(){var _=this.option.toolbox,$=this.reformCssArray(this.option.toolbox.padding);this.shapeList.push(new I({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-$[3],y:this._itemGroupLocation.y-$[0],width:this._itemGroupLocation.width+$[3]+$[1],height:this._itemGroupLocation.height+$[0]+$[2],brushType:0===_.borderWidth?"fill":"both",color:_.backgroundColor,strokeColor:_.borderColor,lineWidth:_.borderWidth}}))},_getItemGroupLocation:function(){var A=this.option.toolbox,_=this.reformCssArray(this.option.toolbox.padding),I=this._iconList.length,F=A.itemGap,C=A.itemSize,B=0,E=0;"horizontal"===A.orient?(B=(C+F)*I-F,E=C):(E=(C+F)*I-F,B=C);var D,H=this.zr.getWidth();switch(A.x){case"center":D=Math.floor((H-B)/2);break;case"left":D=_[3]+A.borderWidth;break;case"right":D=H-B-_[1]-A.borderWidth;break;default:D=A.x-0,D=isNaN(D)?0:D}var G,$=this.zr.getHeight();switch(A.y){case"top":G=_[0]+A.borderWidth;break;case"bottom":G=$-E-_[2]-A.borderWidth;break;case"center":G=Math.floor(($-E)/2);break;default:G=A.y-0,G=isNaN(G)?0:G}return{x:D,y:G,width:B,height:E}},__onmousemove:function(_){this._marking&&(this._markShape.style.xEnd=$.getX(_.event),this._markShape.style.yEnd=$.getY(_.event),this.zr.addHoverShape(this._markShape)),this._zooming&&(this._zoomShape.style.width=$.getX(_.event)-this._zoomShape.style.x,this._zoomShape.style.height=$.getY(_.event)-this._zoomShape.style.y,this.zr.addHoverShape(this._zoomShape),this.dom.style.cursor="crosshair",$.stop(_.event)),this._zoomStart&&"pointer"!=this.dom.style.cursor&&"move"!=this.dom.style.cursor&&(this.dom.style.cursor="crosshair")},__onmousedown:function(A){if(!A.target){this._zooming=!0;var _=$.getX(A.event),D=$.getY(A.event),C=this.option.dataZoom||{};return this._zoomShape=new I({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:_,y:D,width:1,height:1,brushType:"both"},highlightStyle:{lineWidth:2,color:C.fillerColor||B.dataZoom.fillerColor,strokeColor:C.handleColor||B.dataZoom.handleColor,brushType:"both"}}),this.zr.addHoverShape(this._zoomShape),!0}},__onmouseup:function(){if(!this._zoomShape||Math.abs(this._zoomShape.style.width)<10||Math.abs(this._zoomShape.style.height)<10)return this._zooming=!1,!0;if(this._zooming&&this.component.dataZoom){this._zooming=!1;var $=this.component.dataZoom.rectZoom(this._zoomShape.style);$&&(this._zoomQueue.push({start:$.start,end:$.end,start2:$.start2,end2:$.end2}),this._iconEnable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame())}return!0},__onclick:function(A){if(!A.target)if(this._marking)this._marking=!1,this._markShapeList.push(this._markShape),this._iconEnable(this._iconShapeMap.markUndo),this._iconEnable(this._iconShapeMap.markClear),this.zr.addShape(this._markShape),this.zr.refreshNextFrame();else if(this._markStart){this._marking=!0;var _=$.getX(A.event),B=$.getY(A.event);this._markShape=new D({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:_,yStart:B,xEnd:_,yEnd:B,lineWidth:this.query(this.option,"toolbox.feature.mark.lineStyle.width"),strokeColor:this.query(this.option,"toolbox.feature.mark.lineStyle.color"),lineType:this.query(this.option,"toolbox.feature.mark.lineStyle.type")}}),this.zr.addHoverShape(this._markShape)}},__onMark:function(_){var $=_.target;if(this._marking||this._markStart)this._resetMark(),this.zr.refreshNextFrame();else{this._resetZoom(),this.zr.modShape($.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._markStart=!0;var A=this;setTimeout(function(){A.zr&&A.zr.on(E.EVENT.CLICK,A._onclick)&&A.zr.on(E.EVENT.MOUSEMOVE,A._onmousemove)},10)}return!0},__onMarkUndo:function(){if(this._marking)this._marking=!1;else{var _=this._markShapeList.length;if(_>=1){var $=this._markShapeList[_-1];this.zr.delShape($.id),this.zr.refreshNextFrame(),this._markShapeList.pop(),1===_&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear))}}return!0},__onMarkClear:function(){this._marking&&(this._marking=!1);var $=this._markShapeList.length;if($>0){for(;$--;)this.zr.delShape(this._markShapeList.pop().id);this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear),this.zr.refreshNextFrame()}return!0},__onDataZoom:function(_){var $=_.target;if(this._zooming||this._zoomStart)this._resetZoom(),this.zr.refreshNextFrame(),this.dom.style.cursor="default";else{this._resetMark(),this.zr.modShape($.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._zoomStart=!0;var A=this;setTimeout(function(){A.zr&&A.zr.on(E.EVENT.MOUSEDOWN,A._onmousedown)&&A.zr.on(E.EVENT.MOUSEUP,A._onmouseup)&&A.zr.on(E.EVENT.MOUSEMOVE,A._onmousemove)},10),this.dom.style.cursor="crosshair"}return!0},__onDataZoomReset:function(){return this._zooming&&(this._zooming=!1),this._zoomQueue.pop(),this._zoomQueue.length>0?this.component.dataZoom.absoluteZoom(this._zoomQueue[this._zoomQueue.length-1]):(this.component.dataZoom.rectZoom(),this._iconDisable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame()),!0},_resetMark:function(){this._marking=!1,this._markStart&&(this._markStart=!1,this._iconShapeMap.mark&&this.zr.modShape(this._iconShapeMap.mark.id,{style:{strokeColor:this._iconShapeMap.mark.highlightStyle.strokeColor}}),this.zr.un(E.EVENT.CLICK,this._onclick),this.zr.un(E.EVENT.MOUSEMOVE,this._onmousemove))},_resetZoom:function(){this._zooming=!1,this._zoomStart&&(this._zoomStart=!1,this._iconShapeMap.dataZoom&&this.zr.modShape(this._iconShapeMap.dataZoom.id,{style:{strokeColor:this._iconShapeMap.dataZoom.highlightStyle.strokeColor}}),this.zr.un(E.EVENT.MOUSEDOWN,this._onmousedown),this.zr.un(E.EVENT.MOUSEUP,this._onmouseup),this.zr.un(E.EVENT.MOUSEMOVE,this._onmousemove))},_iconDisable:function($){"image"!=$.type?this.zr.modShape($.id,{hoverable:!1,clickable:!1,style:{strokeColor:this._disableColor}}):this.zr.modShape($.id,{hoverable:!1,clickable:!1,style:{opacity:0.3}})},_iconEnable:function($){"image"!=$.type?this.zr.modShape($.id,{hoverable:!0,clickable:!0,style:{strokeColor:$.highlightStyle.strokeColor}}):this.zr.modShape($.id,{hoverable:!0,clickable:!0,style:{opacity:0.8}})},__onDataView:function(){return this._dataView.show(this.option),!0},__onRestore:function(){return this._resetMark(),this._resetZoom(),this.messageCenter.dispatch(B.EVENT.RESTORE,null,null,this.myChart),!0},__onSaveAsImage:function(){var _=this.option.toolbox.feature.saveAsImage,$=_.type||"png";"png"!=$&&"jpeg"!=$&&($="png");var C;C=this.myChart.isConnected()?this.myChart.getConnectedDataURL($):this.zr.toDataURL("image/"+$,this.option.backgroundColor&&"rgba(0,0,0,0)"===this.option.backgroundColor.replace(" ","")?"#fff":this.option.backgroundColor);var B=document.createElement("div");B.id="__echarts_download_wrap__",B.style.cssText="position:fixed;z-index:99999;display:block;top:0;left:0;background-color:rgba(33,33,33,0.5);text-align:center;width:100%;height:100%;line-height:"+document.documentElement.clientHeight+"px;";var A=document.createElement("a");A.href=C,A.setAttribute("download",(_.name?_.name:this.option.title&&(this.option.title.text||this.option.title.subtext)?this.option.title.text||this.option.title.subtext:"ECharts")+"."+$),A.innerHTML="<img style=\"vertical-align:middle\" src=\""+C+"\" title=\""+(window.ActiveXObject||"ActiveXObject"in window?"\u53f3\u952e->\u56fe\u7247\u53e6\u5b58\u4e3a":_.lang?_.lang[0]:"\u70b9\u51fb\u4fdd\u5b58")+"\"/>",B.appendChild(A),document.body.appendChild(B),A=null,B=null,setTimeout(function(){var $=document.getElementById("__echarts_download_wrap__");$&&($.onclick=function(){var $=document.getElementById("__echarts_download_wrap__");$.onclick=null,$.innerHTML="",document.body.removeChild($),$=null},$=null)},500)},__onMagicType:function(_){this._resetMark();var $=_.target._name;return this._magicType[$]||(this._magicType[$]=!0,$===B.CHART_TYPE_LINE?this._magicType[B.CHART_TYPE_BAR]=!1:$===B.CHART_TYPE_BAR&&(this._magicType[B.CHART_TYPE_LINE]=!1),$===B.CHART_TYPE_PIE?this._magicType[B.CHART_TYPE_FUNNEL]=!1:$===B.CHART_TYPE_FUNNEL&&(this._magicType[B.CHART_TYPE_PIE]=!1),$===B.CHART_TYPE_FORCE?this._magicType[B.CHART_TYPE_CHORD]=!1:$===B.CHART_TYPE_CHORD&&(this._magicType[B.CHART_TYPE_FORCE]=!1),$===A?this._magicType[K]=!1:$===K&&(this._magicType[A]=!1),this.messageCenter.dispatch(B.EVENT.MAGIC_TYPE_CHANGED,_.event,{magicType:this._magicType},this.myChart)),!0},setMagicType:function($){this._resetMark(),this._magicType=$,!this._isSilence&&this.messageCenter.dispatch(B.EVENT.MAGIC_TYPE_CHANGED,null,{magicType:this._magicType},this.myChart)},__onCustomHandler:function(_){var $=_.target.style.iconType,A=this.option.toolbox.feature[$].onclick;"function"==typeof A&&A.call(this,this.option)},reset:function(B,_){if(_&&this.clear(),this.query(B,"toolbox.show")&&this.query(B,"toolbox.feature.magicType.show")){var J=B.toolbox.feature.magicType.type,H=J.length;for(this._magicMap={};H--;)this._magicMap[J[H]]=!0;H=B.series.length;for(var D,C;H--;)D=B.series[H].type,this._magicMap[D]&&(C=B.xAxis instanceof Array?B.xAxis[B.series[H].xAxisIndex||0]:B.xAxis,C&&"category"===(C.type||"category")&&(C.__boundaryGap=null!=C.boundaryGap?C.boundaryGap:!0),C=B.yAxis instanceof Array?B.yAxis[B.series[H].yAxisIndex||0]:B.yAxis,C&&"category"===C.type&&(C.__boundaryGap=null!=C.boundaryGap?C.boundaryGap:!0),B.series[H].__type=D,B.series[H].__itemStyle=F.clone(B.series[H].itemStyle||{})),(this._magicMap[A]||this._magicMap[K])&&(B.series[H].__stack=B.series[H].stack)}this._magicType=_?{}:this._magicType||{};for(var G in this._magicType)if(this._magicType[G]){this.option=B,this.getMagicOption();break}var E=B.dataZoom;if(E&&E.show){var I=null!=E.start&&E.start>=0&&E.start<=100?E.start:0,$=null!=E.end&&E.end>=0&&E.end<=100?E.end:100;I>$&&(I+=$,$=I-$,I-=$),this._zoomQueue=[{start:I,end:$,start2:0,end2:100}]}else this._zoomQueue=[]},getMagicOption:function(){var _,$;if(this._magicType[B.CHART_TYPE_LINE]||this._magicType[B.CHART_TYPE_BAR]){for(var E=this._magicType[B.CHART_TYPE_LINE]?!1:!0,D=0,C=this.option.series.length;C>D;D++)$=this.option.series[D].type,($==B.CHART_TYPE_LINE||$==B.CHART_TYPE_BAR)&&(_=this.option.xAxis instanceof Array?this.option.xAxis[this.option.series[D].xAxisIndex||0]:this.option.xAxis,_&&"category"===(_.type||"category")&&(_.boundaryGap=E?!0:_.__boundaryGap),_=this.option.yAxis instanceof Array?this.option.yAxis[this.option.series[D].yAxisIndex||0]:this.option.yAxis,_&&"category"===_.type&&(_.boundaryGap=E?!0:_.__boundaryGap));this._defaultMagic(B.CHART_TYPE_LINE,B.CHART_TYPE_BAR)}if(this._defaultMagic(B.CHART_TYPE_CHORD,B.CHART_TYPE_FORCE),this._defaultMagic(B.CHART_TYPE_PIE,B.CHART_TYPE_FUNNEL),this._magicType[A]||this._magicType[K])for(D=0,C=this.option.series.length;C>D;D++)this._magicType[A]?(this.option.series[D].stack="_ECHARTS_STACK_KENER_2014_",$=A):this._magicType[K]&&(this.option.series[D].stack=null,$=K),this._featureOption[$+"Chart"]&&F.merge(this.option.series[D],this._featureOption[$+"Chart"]||{},!0);return this.option},_defaultMagic:function(_,$){if(this._magicType[_]||this._magicType[$])for(var C=0,B=this.option.series.length;B>C;C++){var A=this.option.series[C].type;(A==_||A==$)&&(this.option.series[C].type=this._magicType[_]?_:$,this.option.series[C].itemStyle=F.clone(this.option.series[C].__itemStyle),A=this.option.series[C].type,this._featureOption[A+"Chart"]&&F.merge(this.option.series[C],this._featureOption[A+"Chart"]||{},!0))}},silence:function($){this._isSilence=$},resize:function(){this._resetMark(),this.clear(),this.option&&this.option.toolbox&&this.option.toolbox.show&&this._buildShape(),this._dataView&&this._dataView.resize()},hideDataView:function(){this._dataView&&this._dataView.hide()},clear:function($){this.zr&&(this.zr.delShape(this.shapeList),this.shapeList=[],$||(this.zr.delShape(this._markShapeList),this._markShapeList=[]))},onbeforDispose:function(){this._dataView&&(this._dataView.dispose(),this._dataView=null),this._markShapeList=null},refresh:function($){$&&(this._resetMark(),this._resetZoom(),$.toolbox=this.reformOption($.toolbox),this.option=$,this.clear(!0),$.toolbox.show&&this._buildShape(),this.hideDataView())}},F.inherits(_,G),H("../component").define("toolbox",_),_}),C("echarts/chart/base",["require","zrender/shape/Image","../util/shape/Icon","../util/shape/MarkLine","../util/shape/Symbol","zrender/shape/Polyline","zrender/shape/ShapeBundle","../config","../util/ecData","../util/ecAnimation","../util/ecEffect","../util/accMath","../component/base","../layout/EdgeBundling","zrender/tool/util","zrender/tool/area"],function(L){function B($){return null!=$.x&&null!=$.y}function J(B,$,F,E,D){_.call(this,B,$,F,E,D);var C=this;this.selectedMap={},this.lastShapeList=[],this.shapeHandler={onclick:function(){C.isClick=!0},ondragover:function(_){var $=_.target;$.highlightStyle=$.highlightStyle||{};var E=$.highlightStyle,D=E.brushTyep,A=E.strokeColor,B=E.lineWidth;E.brushType="stroke",E.strokeColor=C.ecTheme.calculableColor||G.calculableColor,E.lineWidth="icon"===$.type?30:10,C.zr.addHoverShape($),setTimeout(function(){E&&(E.brushType=D,E.strokeColor=A,E.lineWidth=B)},20)},ondrop:function($){null!=A.get($.dragged,"data")&&(C.isDrop=!0)},ondragend:function(){C.isDragend=!0}}}var F=L("zrender/shape/Image"),N=L("../util/shape/Icon"),M=L("../util/shape/MarkLine"),E=L("../util/shape/Symbol"),D=L("zrender/shape/Polyline"),I=L("zrender/shape/ShapeBundle"),G=L("../config"),A=L("../util/ecData"),C=L("../util/ecAnimation"),O=L("../util/ecEffect"),K=L("../util/accMath"),_=L("../component/base"),$=L("../layout/EdgeBundling"),H=L("zrender/tool/util"),P=L("zrender/tool/area");return J.prototype={setCalculable:function($){return $.dragEnableTime=this.ecTheme.DRAG_ENABLE_TIME||G.DRAG_ENABLE_TIME,$.ondragover=this.shapeHandler.ondragover,$.ondragend=this.shapeHandler.ondragend,$.ondrop=this.shapeHandler.ondrop,$},ondrop:function(C,B){if(this.isDrop&&C.target&&!B.dragIn){var O,L=C.target,F=C.dragged,D=A.get(L,"seriesIndex"),J=A.get(L,"dataIndex"),I=this.series,N=this.component.legend;if(-1===J){if(A.get(F,"seriesIndex")==D)return B.dragOut=B.dragIn=B.needRefresh=!0,void(this.isDrop=!1);O={value:A.get(F,"value"),name:A.get(F,"name")},this.type===G.CHART_TYPE_PIE&&O.value<0&&(O.value=0);for(var E=!1,H=I[D].data,_=0,$=H.length;$>_;_++)H[_].name===O.name&&"-"===H[_].value&&(I[D].data[_].value=O.value,E=!0);!E&&I[D].data.push(O),N&&N.add(O.name,F.style.color||F.style.strokeColor)}else O=I[D].data[J]||"-",null!=O.value?(I[D].data[J].value="-"!=O.value?K.accAdd(I[D].data[J].value,A.get(F,"value")):A.get(F,"value"),(this.type===G.CHART_TYPE_FUNNEL||this.type===G.CHART_TYPE_PIE)&&(N&&1===N.getRelatedAmount(O.name)&&this.component.legend.del(O.name),O.name+=this.option.nameConnector+A.get(F,"name"),N&&N.add(O.name,F.style.color||F.style.strokeColor))):I[D].data[J]="-"!=O?K.accAdd(I[D].data[J],A.get(F,"value")):A.get(F,"value");B.dragIn=B.dragIn||!0,this.isDrop=!1;var M=this;setTimeout(function(){M.zr.trigger("mousemove",C.event)},300)}},ondragend:function(_,$){if(this.isDragend&&_.target&&!$.dragOut){var G=_.target,F=A.get(G,"seriesIndex"),C=A.get(G,"dataIndex"),B=this.series;if(null!=B[F].data[C].value){B[F].data[C].value="-";var E=B[F].data[C].name,D=this.component.legend;D&&0===D.getRelatedAmount(E)&&D.del(E)}else B[F].data[C]="-";$.dragOut=!0,$.needRefresh=!0,this.isDragend=!1}},onlegendSelected:function(_,$){var B=_.selected;for(var A in this.selectedMap)this.selectedMap[A]!=B[A]&&($.needRefresh=!0),this.selectedMap[A]=B[A]},_buildPosition:function(){this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this._sIndex2ColorMap={},this.selectedMap={},this.xMarkMap={};for(var _,$,H,E,B=this.series,A={top:[],bottom:[],left:[],right:[],other:[]},D=0,C=B.length;C>D;D++)B[D].type===this.type&&(B[D]=this.reformOption(B[D]),this.legendHoverLink=B[D].legendHoverLink||this.legendHoverLink,_=B[D].xAxisIndex,$=B[D].yAxisIndex,H=this.component.xAxis.getAxis(_),E=this.component.yAxis.getAxis($),H.type===G.COMPONENT_TYPE_AXIS_CATEGORY?A[H.getPosition()].push(D):E.type===G.COMPONENT_TYPE_AXIS_CATEGORY?A[E.getPosition()].push(D):A.other.push(D));for(var F in A)A[F].length>0&&this._buildSinglePosition(F,A[F]);this.addShapeList()},_buildSinglePosition:function(_,$){var E=this._mapData($),D=E.locationMap,B=E.maxDataLength;if(0!==B&&0!==D.length){switch(_){case"bottom":case"top":this._buildHorizontal($,B,D,this.xMarkMap);break;case"left":case"right":this._buildVertical($,B,D,this.xMarkMap);break;case"other":this._buildOther($,B,D,this.xMarkMap)}for(var A=0,C=$.length;C>A;A++)this.buildMark($[A])}},_mapData:function(L){for(var B,J,F,N,M=this.series,E=0,D={},I="__kener__stack__",A=this.component.legend,C=[],O=0,K=0,_=L.length;_>K;K++){if(B=M[L[K]],F=B.name,this._sIndex2ShapeMap[L[K]]=this._sIndex2ShapeMap[L[K]]||this.query(B,"symbol")||this._symbol[K%this._symbol.length],A){if(this.selectedMap[F]=A.isSelected(F),this._sIndex2ColorMap[L[K]]=A.getColor(F),N=A.getItemShape(F)){var $=N.style;if(this.type==G.CHART_TYPE_LINE)$.iconType="legendLineIcon",$.symbol=this._sIndex2ShapeMap[L[K]];else if(B.itemStyle.normal.barBorderWidth>0){var H=N.highlightStyle;$.brushType="both",$.x+=1,$.y+=1,$.width-=2,$.height-=2,$.strokeColor=H.strokeColor=B.itemStyle.normal.barBorderColor,H.lineWidth=3}A.setItemShape(F,N)}}else this.selectedMap[F]=!0,this._sIndex2ColorMap[L[K]]=this.zr.getColor(L[K]);this.selectedMap[F]&&(J=B.stack||I+L[K],null==D[J]?(D[J]=E,C[E]=[L[K]],E++):C[D[J]].push(L[K])),O=Math.max(O,B.data.length)}return{locationMap:C,maxDataLength:O}},_calculMarkMapXY:function(I,_,G){for(var D=this.series,K=0,J=_.length;J>K;K++)for(var C=0,B=_[K].length;B>C;C++){var F=_[K][C],E="xy"==G?0:"",$=this.component.grid,A=I[F];if("-1"!=G.indexOf("x")){A["counter"+E]>0&&(A["average"+E]=A["sum"+E]/A["counter"+E]);var L=this.component.xAxis.getAxis(D[F].xAxisIndex||0).getCoord(A["average"+E]);A["averageLine"+E]=[[L,$.getYend()],[L,$.getY()]],A["minLine"+E]=[[A["minX"+E],$.getYend()],[A["minX"+E],$.getY()]],A["maxLine"+E]=[[A["maxX"+E],$.getYend()],[A["maxX"+E],$.getY()]],A.isHorizontal=!1}if(E="xy"==G?1:"","-1"!=G.indexOf("y")){A["counter"+E]>0&&(A["average"+E]=A["sum"+E]/A["counter"+E]);var H=this.component.yAxis.getAxis(D[F].yAxisIndex||0).getCoord(A["average"+E]);A["averageLine"+E]=[[$.getX(),H],[$.getXend(),H]],A["minLine"+E]=[[$.getX(),A["minY"+E]],[$.getXend(),A["minY"+E]]],A["maxLine"+E]=[[$.getX(),A["maxY"+E]],[$.getXend(),A["maxY"+E]]],A.isHorizontal=!0}}},addLabel:function(H,_,G,D,J){var I=[G,_],C=this.deepMerge(I,"itemStyle.normal.label"),B=this.deepMerge(I,"itemStyle.emphasis.label"),F=C.textStyle||{},E=B.textStyle||{};if(C.show){var $=H.style;$.text=this._getLabelText(_,G,D,"normal"),$.textPosition=null==C.position?"horizontal"===J?"right":"top":C.position,$.textColor=F.color,$.textFont=this.getFont(F),$.textAlign=F.align,$.textBaseline=F.baseline}if(B.show){var A=H.highlightStyle;A.text=this._getLabelText(_,G,D,"emphasis"),A.textPosition=C.show?H.style.textPosition:null==B.position?"horizontal"===J?"right":"top":B.position,A.textColor=E.color,A.textFont=this.getFont(E),A.textAlign=E.align,A.textBaseline=E.baseline}return H},_getLabelText:function(_,$,D,C){var B=this.deepQuery([$,_],"itemStyle."+C+".label.formatter");B||"emphasis"!==C||(B=this.deepQuery([$,_],"itemStyle.normal.label.formatter"));var A=this.getDataFromOption($,"-");return B?"function"==typeof B?B.call(this.myChart,{seriesName:_.name,series:_,name:D,value:A,data:$,status:C}):"string"==typeof B?B=B.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",_.name).replace("{b0}",D).replace("{c0}",this.numAddCommas(A)):void 0:A instanceof Array?null!=A[2]?this.numAddCommas(A[2]):A[0]+" , "+A[1]:this.numAddCommas(A)},buildMark:function(_){var $=this.series[_];this.selectedMap[$.name]&&($.markLine&&this._buildMarkLine(_),$.markPoint&&this._buildMarkPoint(_))},_buildMarkPoint:function(A){for(var _,K,I=(this.markAttachStyle||{})[A],D=this.series[A],B=H.clone(D.markPoint),F=0,E=B.data.length;E>F;F++)_=B.data[F],K=this.getMarkCoord(A,_),_.x=null!=_.x?_.x:K[0],_.y=null!=_.y?_.y:K[1],!_.type||"max"!==_.type&&"min"!==_.type||(_.value=K[3],_.name=_.name||_.type,_.symbolSize=_.symbolSize||P.getTextWidth(K[3],this.getFont())/2+5);for(var J=this._markPoint(A,B),F=0,E=J.length;E>F;F++){var $=J[F];$.zlevel=D.zlevel,$.z=D.z+1;for(var C in I)$[C]=H.clone(I[C]);this.shapeList.push($)}if(this.type===G.CHART_TYPE_FORCE||this.type===G.CHART_TYPE_CHORD)for(F=0,E=J.length;E>F;F++)this.zr.addShape(J[F])},_buildMarkLine:function(L){for(var B,J=(this.markAttachStyle||{})[L],F=this.series[L],N=H.clone(F.markLine),M=0,E=N.data.length;E>M;M++){var D=N.data[M];!D.type||"max"!==D.type&&"min"!==D.type&&"average"!==D.type?B=[this.getMarkCoord(L,D[0]),this.getMarkCoord(L,D[1])]:(B=this.getMarkCoord(L,D),N.data[M]=[H.clone(D),{}],N.data[M][0].name=D.name||D.type,N.data[M][0].value="average"!==D.type?B[3]:+B[3].toFixed(null!=N.precision?N.precision:this.deepQuery([this.ecTheme,G],"markLine.precision")),B=B[2],D=[{},{}]),null!=B&&null!=B[0]&&null!=B[1]&&(N.data[M][0].x=null!=D[0].x?D[0].x:B[0][0],N.data[M][0].y=null!=D[0].y?D[0].y:B[0][1],N.data[M][1].x=null!=D[1].x?D[1].x:B[1][0],N.data[M][1].y=null!=D[1].y?D[1].y:B[1][1])}var A=this._markLine(L,N),C=N.large;if(C){var O=new I({style:{shapeList:A}}),K=A[0];if(K){H.merge(O.style,K.style),H.merge(O.highlightStyle={},K.highlightStyle),O.style.brushType="stroke",O.zlevel=F.zlevel,O.z=F.z+1,O.hoverable=!1;for(var _ in J)O[_]=H.clone(J[_])}this.shapeList.push(O),this.zr.addShape(O),O._mark="largeLine";var $=N.effect;$.show&&(O.effect=$)}else{for(M=0,E=A.length;E>M;M++){var P=A[M];P.zlevel=F.zlevel,P.z=F.z+1;for(_ in J)P[_]=H.clone(J[_]);this.shapeList.push(P)}if(this.type===G.CHART_TYPE_FORCE||this.type===G.CHART_TYPE_CHORD)for(M=0,E=A.length;E>M;M++)this.zr.addShape(A[M])}},_markPoint:function(N,B){var K=this.series[N],I=this.component;H.merge(H.merge(B,H.clone(this.ecTheme.markPoint||{})),H.clone(G.markPoint)),B.name=K.name;var P,O,F,E,J,D,Q,M=[],_=B.data,$=I.dataRange,R=I.legend,S=this.zr.getWidth(),L=this.zr.getHeight();if(B.large)P=this.getLargeMarkPointShape(N,B),P._mark="largePoint",P&&M.push(P);else for(var T=0,C=_.length;C>T;T++)null!=_[T].x&&null!=_[T].y&&(F=null!=_[T].value?_[T].value:"",R&&(O=R.getColor(K.name)),$&&(O=isNaN(F)?O:$.getColor(F),E=[_[T],B],J=this.deepQuery(E,"itemStyle.normal.color")||O,D=this.deepQuery(E,"itemStyle.emphasis.color")||J,null==J&&null==D)||(O=null==O?this.zr.getColor(N):O,_[T].tooltip=_[T].tooltip||B.tooltip||{trigger:"item"},_[T].name=null!=_[T].name?_[T].name:"",_[T].value=F,P=this.getSymbolShape(B,N,_[T],T,_[T].name,this.parsePercent(_[T].x,S),this.parsePercent(_[T].y,L),"pin",O,"rgba(0,0,0,0)","horizontal"),P._mark="point",Q=this.deepMerge([_[T],B],"effect"),Q.show&&(P.effect=Q),K.type===G.CHART_TYPE_MAP&&(P._geo=this.getMarkGeo(_[T])),A.pack(P,K,N,_[T],T,_[T].name,F),M.push(P)));return M},_markLine:function(){function _(_,$){_[$]=_[$]instanceof Array?_[$].length>1?_[$]:[_[$][0],_[$][0]]:[_[$],_[$]]}return function(V,S){var a=this.series[V],Z=this.component,R=Z.dataRange,Q=Z.legend;H.merge(H.merge(S,H.clone(this.ecTheme.markLine||{})),H.clone(G.markLine));var U=Q?Q.getColor(a.name):this.zr.getColor(V);_(S,"symbol"),_(S,"symbolSize"),_(S,"symbolRotate");for(var P=S.data,b=[],Y=this.zr.getWidth(),N=this.zr.getHeight(),M=0;M<P.length;M++){var d=P[M];if(B(d[0])&&B(d[1])){var X=this.deepMerge(d),e=[X,S],O=U,L=null!=X.value?X.value:"";if(R){O=isNaN(L)?O:R.getColor(L);var K=this.deepQuery(e,"itemStyle.normal.color")||O,c=this.deepQuery(e,"itemStyle.emphasis.color")||K;if(null==K&&null==c)continue}d[0].tooltip=X.tooltip||S.tooltip||{trigger:"item"},d[0].name=d[0].name||"",d[1].name=d[1].name||"",d[0].value=L,b.push({points:[[this.parsePercent(d[0].x,Y),this.parsePercent(d[0].y,N)],[this.parsePercent(d[1].x,Y),this.parsePercent(d[1].y,N)]],rawData:d,color:O})}}var E=this.query(S,"bundling.enable");if(E){var F=new $;F.maxTurningAngle=this.query(S,"bundling.maxTurningAngle")/180*Math.PI,b=F.run(b)}S.name=a.name;for(var W=[],M=0,I=b.length;I>M;M++){var C=b[M],D=C.rawEdge||C,d=D.rawData,L=null!=d.value?d.value:"",T=this.getMarkLineShape(S,V,d,M,C.points,E,D.color);T._mark="line";var J=this.deepMerge([d[0],d[1],S],"effect");J.show&&(T.effect=J,T.effect.large=S.large),a.type===G.CHART_TYPE_MAP&&(T._geo=[this.getMarkGeo(d[0]),this.getMarkGeo(d[1])]),A.pack(T,a,V,d[0],M,d[0].name+(""!==d[1].name?" > "+d[1].name:""),L),W.push(T)}return W}}(),getMarkCoord:function(){return[0,0]},getSymbolShape:function(T,H,Q,U,L,K,P,M,J,V,S){var G=[Q,T],E=this.getDataFromOption(Q,"-");M=this.deepQuery(G,"symbol")||M;var O=this.deepQuery(G,"symbolSize");O="function"==typeof O?O(E):O,"number"==typeof O&&(O=[O,O]);var D=this.deepQuery(G,"symbolRotate"),X=this.deepMerge(G,"itemStyle.normal"),R=this.deepMerge(G,"itemStyle.emphasis"),Y=null!=X.borderWidth?X.borderWidth:X.lineStyle&&X.lineStyle.width;null==Y&&(Y=M.match("empty")?2:0);var I=null!=R.borderWidth?R.borderWidth:R.lineStyle&&R.lineStyle.width;null==I&&(I=Y+2);var C=this.getItemStyleColor(X.color,H,U,Q),B=this.getItemStyleColor(R.color,H,U,Q),W=O[0],$=O[1],_=new N({style:{iconType:M.replace("empty","").toLowerCase(),x:K-W,y:P-$,width:2*W,height:2*$,brushType:"both",color:M.match("empty")?V:C||J,strokeColor:X.borderColor||C||J,lineWidth:Y},highlightStyle:{color:M.match("empty")?V:B||C||J,strokeColor:R.borderColor||X.borderColor||B||C||J,lineWidth:I},clickable:this.deepQuery(G,"clickable")});return M.match("image")&&(_.style.image=M.replace(new RegExp("^image:\\/\\/"),""),_=new F({style:_.style,highlightStyle:_.highlightStyle,clickable:this.deepQuery(G,"clickable")})),null!=D&&(_.rotation=[D*Math.PI/180,K,P]),M.match("star")&&(_.style.iconType="star",_.style.n=M.replace("empty","").replace("star","")-0||5),"none"===M&&(_.invisible=!0,_.hoverable=!1),_=this.addLabel(_,T,Q,L,S),M.match("empty")&&(null==_.style.textColor&&(_.style.textColor=_.style.strokeColor),null==_.highlightStyle.textColor&&(_.highlightStyle.textColor=_.highlightStyle.strokeColor)),A.pack(_,T,H,Q,U,L),_._x=K,_._y=P,_._dataIndex=U,_._seriesIndex=H,_},getMarkLineShape:function(P,B,K,G,Q,F,J){var H=null!=K[0].value?K[0].value:"-",A=null!=K[1].value?K[1].value:"-",E=[K[0].symbol||P.symbol[0],K[1].symbol||P.symbol[1]],S=[K[0].symbolSize||P.symbolSize[0],K[1].symbolSize||P.symbolSize[1]];S[0]="function"==typeof S[0]?S[0](H):S[0],S[1]="function"==typeof S[1]?S[1](A):S[1];var O=[this.query(K[0],"symbolRotate")||P.symbolRotate[0],this.query(K[1],"symbolRotate")||P.symbolRotate[1]],_=[K[0],K[1],P],$=this.deepMerge(_,"itemStyle.normal");$.color=this.getItemStyleColor($.color,B,G,K);var I=this.deepMerge(_,"itemStyle.emphasis");I.color=this.getItemStyleColor(I.color,B,G,K);var T=$.lineStyle,V=I.lineStyle,N=T.width;null==N&&(N=$.borderWidth);var W=V.width;null==W&&(W=null!=I.borderWidth?I.borderWidth:N+2);var C=this.deepQuery(_,"smoothness");this.deepQuery(_,"smooth")||(C=0);var R=F?D:M,L=new R({style:{symbol:E,symbolSize:S,symbolRotate:O,brushType:"both",lineType:T.type,shadowColor:T.shadowColor||T.color||$.borderColor||$.color||J,shadowBlur:T.shadowBlur,shadowOffsetX:T.shadowOffsetX,shadowOffsetY:T.shadowOffsetY,color:$.color||J,strokeColor:T.color||$.borderColor||$.color||J,lineWidth:N,symbolBorderColor:$.borderColor||$.color||J,symbolBorder:$.borderWidth},highlightStyle:{shadowColor:V.shadowColor,shadowBlur:V.shadowBlur,shadowOffsetX:V.shadowOffsetX,shadowOffsetY:V.shadowOffsetY,color:I.color||$.color||J,strokeColor:V.color||T.color||I.borderColor||$.borderColor||I.color||$.color||J,lineWidth:W,symbolBorderColor:I.borderColor||$.borderColor||I.color||$.color||J,symbolBorder:null==I.borderWidth?$.borderWidth+2:I.borderWidth},clickable:this.deepQuery(_,"clickable")}),U=L.style;return F?(U.pointList=Q,U.smooth=C):(U.xStart=Q[0][0],U.yStart=Q[0][1],U.xEnd=Q[1][0],U.yEnd=Q[1][1],U.curveness=C,L.updatePoints(L.style)),L=this.addLabel(L,P,K[0],K[0].name+" : "+K[1].name)},getLargeMarkPointShape:function(L,B){var J,F,N,M,D,I,G=this.series[L],A=this.component,C=B.data,O=A.dataRange,K=A.legend,_=[C[0],B];if(K&&(F=K.getColor(G.name)),!O||(N=null!=C[0].value?C[0].value:"",F=isNaN(N)?F:O.getColor(N),M=this.deepQuery(_,"itemStyle.normal.color")||F,D=this.deepQuery(_,"itemStyle.emphasis.color")||M,null!=M||null!=D)){F=this.deepMerge(_,"itemStyle.normal").color||F;var $=this.deepQuery(_,"symbol")||"circle";$=$.replace("empty","").replace(/\d/g,""),I=this.deepMerge([C[0],B],"effect");var H=window.devicePixelRatio||1;return J=new E({style:{pointList:C,color:F,strokeColor:F,shadowColor:I.shadowColor||F,shadowBlur:(null!=I.shadowBlur?I.shadowBlur:8)*H,size:this.deepQuery(_,"symbolSize"),iconType:$,brushType:"fill",lineWidth:1},draggable:!1,hoverable:!1}),I.show&&(J.effect=I),J}},backupShapeList:function(){this.shapeList&&this.shapeList.length>0?(this.lastShapeList=this.shapeList,this.shapeList=[]):this.lastShapeList=[]},addShapeList:function(){var H,_,F=this.option.animationThreshold/(this.canvasSupported?2:4),D=this.lastShapeList,J=this.shapeList,I=D.length>0,C=I?this.query(this.option,"animationDurationUpdate"):this.query(this.option,"animationDuration"),B=this.query(this.option,"animationEasing"),E={},$={};if(this.option.animation&&!this.option.renderAsImage&&J.length<F&&!this.motionlessOnce){for(var A=0,K=D.length;K>A;A++)_=this._getAnimationKey(D[A]),_.match("undefined")?this.zr.delShape(D[A].id):(_+=D[A].type,E[_]?this.zr.delShape(D[A].id):E[_]=D[A]);for(A=0,K=J.length;K>A;A++)_=this._getAnimationKey(J[A]),_.match("undefined")?this.zr.addShape(J[A]):(_+=J[A].type,$[_]=J[A]);for(_ in E)$[_]||this.zr.delShape(E[_].id);for(_ in $)E[_]?(this.zr.delShape(E[_].id),this._animateMod(E[_],$[_],C,B,0,I)):(H=this.type!=G.CHART_TYPE_LINE&&this.type!=G.CHART_TYPE_RADAR||0===_.indexOf("icon")?0:C/2,this._animateMod(!1,$[_],C,B,H,I));this.zr.refresh(),this.animationEffect()}else{this.motionlessOnce=!1,this.zr.delShape(D);for(A=0,K=J.length;K>A;A++)this.zr.addShape(J[A])}},_getAnimationKey:function($){return this.type!=G.CHART_TYPE_MAP&&this.type!=G.CHART_TYPE_TREEMAP&&this.type!=G.CHART_TYPE_VENN&&this.type!=G.CHART_TYPE_TREE?A.get($,"seriesIndex")+"_"+A.get($,"dataIndex")+($._mark?$._mark:"")+(this.type===G.CHART_TYPE_RADAR?A.get($,"special"):""):A.get($,"seriesIndex")+"_"+A.get($,"dataIndex")+($._mark?$._mark:"undefined")},_animateMod:function(_,$,F,E,D,B){switch($.type){case"polyline":case"half-smooth-polygon":C.pointList(this.zr,_,$,F,E);break;case"rectangle":C.rectangle(this.zr,_,$,F,E);break;case"image":case"icon":C.icon(this.zr,_,$,F,E,D);break;case"candle":B?this.zr.addShape($):C.candle(this.zr,_,$,F,E);break;case"ring":case"sector":case"circle":B?"sector"===$.type?C.sector(this.zr,_,$,F,E):this.zr.addShape($):C.ring(this.zr,_,$,F+(A.get($,"dataIndex")||0)%20*100,E);break;case"text":C.text(this.zr,_,$,F,E);break;case"polygon":B?C.pointList(this.zr,_,$,F,E):C.polygon(this.zr,_,$,F,E);break;case"ribbon":C.ribbon(this.zr,_,$,F,E);break;case"gauge-pointer":C.gaugePointer(this.zr,_,$,F,E);break;case"mark-line":C.markline(this.zr,_,$,F,E);break;case"bezier-curve":case"line":C.line(this.zr,_,$,F,E);break;default:this.zr.addShape($)}},animationMark:function(_,$,C){for(var C=C||this.shapeList,B=0,A=C.length;A>B;B++)C[B]._mark&&this._animateMod(!1,C[B],_,$,0,!0);this.animationEffect(C)},animationEffect:function(_){if(!_&&this.clearEffectShape(),_=_||this.shapeList,null!=_){var $=G.EFFECT_ZLEVEL;this.canvasSupported&&this.zr.modLayer($,{motionBlur:!0,lastFrameAlpha:this.option.effectBlendAlpha||G.effectBlendAlpha});for(var C,B=0,A=_.length;A>B;B++)C=_[B],C._mark&&C.effect&&C.effect.show&&O[C._mark]&&(O[C._mark](this.zr,this.effectList,C,$),this.effectList[this.effectList.length-1]._mark=C._mark)}},clearEffectShape:function(_){var $=this.effectList;if(this.zr&&$&&$.length>0){_&&this.zr.modLayer(G.EFFECT_ZLEVEL,{motionBlur:!1}),this.zr.delShape($);for(var A=0;A<$.length;A++)$[A].effectAnimator&&$[A].effectAnimator.stop()}this.effectList=[]},addMark:function(_,$,H){var E=this.series[_];if(this.selectedMap[E.name]){var B=this.query(this.option,"animationDurationUpdate"),A=this.query(this.option,"animationEasing"),D=E[H].data,C=this.shapeList.length;if(E[H].data=$.data,this["_build"+H.replace("m","M")](_),this.option.animation&&!this.option.renderAsImage)this.animationMark(B,A,this.shapeList.slice(C));else{for(var G=C,F=this.shapeList.length;F>G;G++)this.zr.addShape(this.shapeList[G]);this.zr.refreshNextFrame()}E[H].data=D}},delMark:function(_,$,H){H=H.replace("mark","").replace("large","").toLowerCase();var F=this.series[_];if(this.selectedMap[F.name]){for(var C=!1,B=[this.shapeList,this.effectList],E=2;E--;)for(var D=0,G=B[E].length;G>D;D++)if(B[E][D]._mark==H&&A.get(B[E][D],"seriesIndex")==_&&A.get(B[E][D],"name")==$){this.zr.delShape(B[E][D].id),B[E].splice(D,1),C=!0;break}C&&this.zr.refreshNextFrame()}}},H.inherits(J,_),J}),C("echarts/util/shape/Icon",["require","zrender/tool/util","zrender/shape/Star","zrender/shape/Heart","zrender/shape/Droplet","zrender/shape/Image","zrender/shape/Base"],function(W){function J(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D,C+$.height),_.lineTo(D+5*B,C+14*A),_.lineTo(D+$.width,C+3*A),_.lineTo(D+13*B,C),_.lineTo(D+2*B,C+11*A),_.lineTo(D,C+$.height),_.moveTo(D+6*B,C+10*A),_.lineTo(D+14*B,C+2*A),_.moveTo(D+10*B,C+13*A),_.lineTo(D+$.width,C+13*A),_.moveTo(D+13*B,C+10*A),_.lineTo(D+13*B,C+$.height)}function S(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D,C+$.height),_.lineTo(D+5*B,C+14*A),_.lineTo(D+$.width,C+3*A),_.lineTo(D+13*B,C),_.lineTo(D+2*B,C+11*A),_.lineTo(D,C+$.height),_.moveTo(D+6*B,C+10*A),_.lineTo(D+14*B,C+2*A),_.moveTo(D+10*B,C+13*A),_.lineTo(D+$.width,C+13*A)}function O(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D+4*B,C+15*A),_.lineTo(D+9*B,C+13*A),_.lineTo(D+14*B,C+8*A),_.lineTo(D+11*B,C+5*A),_.lineTo(D+6*B,C+10*A),_.lineTo(D+4*B,C+15*A),_.moveTo(D+5*B,C),_.lineTo(D+11*B,C),_.moveTo(D+5*B,C+A),_.lineTo(D+11*B,C+A),_.moveTo(D,C+2*A),_.lineTo(D+$.width,C+2*A),_.moveTo(D,C+5*A),_.lineTo(D+3*B,C+$.height),_.lineTo(D+13*B,C+$.height),_.lineTo(D+$.width,C+5*A)}function Y(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D,C+3*A),_.lineTo(D+6*B,C+3*A),_.moveTo(D+3*B,C),_.lineTo(D+3*B,C+6*A),_.moveTo(D+3*B,C+8*A),_.lineTo(D+3*B,C+$.height),_.lineTo(D+$.width,C+$.height),_.lineTo(D+$.width,C+3*A),_.lineTo(D+8*B,C+3*A)}function X(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D+6*B,C),_.lineTo(D+2*B,C+3*A),_.lineTo(D+6*B,C+6*A),_.moveTo(D+2*B,C+3*A),_.lineTo(D+14*B,C+3*A),_.lineTo(D+14*B,C+11*A),_.moveTo(D+2*B,C+5*A),_.lineTo(D+2*B,C+13*A),_.lineTo(D+14*B,C+13*A),_.moveTo(D+10*B,C+10*A),_.lineTo(D+14*B,C+13*A),_.lineTo(D+10*B,C+$.height)}function N(_,$){var E=$.x,D=$.y,B=$.width/16,A=$.height/16,C=$.width/2;_.lineWidth=1.5,_.arc(E+C,D+C,C-B,0,2*Math.PI/3),_.moveTo(E+3*B,D+$.height),_.lineTo(E+0*B,D+12*A),_.lineTo(E+5*B,D+11*A),_.moveTo(E,D+8*A),_.arc(E+C,D+C,C-B,Math.PI,5*Math.PI/3),_.moveTo(E+13*B,D),_.lineTo(E+$.width,D+4*A),_.lineTo(E+11*B,D+5*A)}function M(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D,C),_.lineTo(D,C+$.height),_.lineTo(D+$.width,C+$.height),_.moveTo(D+2*B,C+14*A),_.lineTo(D+7*B,C+6*A),_.lineTo(D+11*B,C+11*A),_.lineTo(D+15*B,C+2*A)}function R(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D,C),_.lineTo(D,C+$.height),_.lineTo(D+$.width,C+$.height),_.moveTo(D+3*B,C+14*A),_.lineTo(D+3*B,C+6*A),_.lineTo(D+4*B,C+6*A),_.lineTo(D+4*B,C+14*A),_.moveTo(D+7*B,C+14*A),_.lineTo(D+7*B,C+2*A),_.lineTo(D+8*B,C+2*A),_.lineTo(D+8*B,C+14*A),_.moveTo(D+11*B,C+14*A),_.lineTo(D+11*B,C+9*A),_.lineTo(D+12*B,C+9*A),_.lineTo(D+12*B,C+14*A)}function P(_,$){var E=$.x,D=$.y,B=$.width-2,A=$.height-2,C=Math.min(B,A)/2;D+=2,_.moveTo(E+C+3,D+C-3),_.arc(E+C+3,D+C-3,C-1,0,-Math.PI/2,!0),_.lineTo(E+C+3,D+C-3),_.moveTo(E+C,D),_.lineTo(E+C,D+C),_.arc(E+C,D+C,C,-Math.PI/2,2*Math.PI,!0),_.lineTo(E+C,D+C),_.lineWidth=1.5}function I(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;C-=A,_.moveTo(D+1*B,C+2*A),_.lineTo(D+15*B,C+2*A),_.lineTo(D+14*B,C+3*A),_.lineTo(D+2*B,C+3*A),_.moveTo(D+3*B,C+6*A),_.lineTo(D+13*B,C+6*A),_.lineTo(D+12*B,C+7*A),_.lineTo(D+4*B,C+7*A),_.moveTo(D+5*B,C+10*A),_.lineTo(D+11*B,C+10*A),_.lineTo(D+10*B,C+11*A),_.lineTo(D+6*B,C+11*A),_.moveTo(D+7*B,C+14*A),_.lineTo(D+9*B,C+14*A),_.lineTo(D+8*B,C+15*A),_.lineTo(D+7*B,C+15*A)}function L(_,$){var G=$.x,E=$.y,B=$.width,A=$.height,D=B/16,C=A/16,F=2*Math.min(D,C);_.moveTo(G+D+F,E+C+F),_.arc(G+D,E+C,F,Math.PI/4,3*Math.PI),_.lineTo(G+7*D-F,E+6*C-F),_.arc(G+7*D,E+6*C,F,Math.PI/4*5,4*Math.PI),_.arc(G+7*D,E+6*C,F/2,Math.PI/4*5,4*Math.PI),_.moveTo(G+7*D-F/2,E+6*C+F),_.lineTo(G+D+F,E+14*C-F),_.arc(G+D,E+14*C,F,-Math.PI/4,2*Math.PI),_.moveTo(G+7*D+F/2,E+6*C),_.lineTo(G+14*D-F,E+10*C-F/2),_.moveTo(G+16*D,E+10*C),_.arc(G+14*D,E+10*C,F,0,3*Math.PI),_.lineWidth=1.5}function Z(_,$){var E=$.x,D=$.y,B=$.width,A=$.height,C=Math.min(B,A)/2;_.moveTo(E+B,D+A/2),_.arc(E+C,D+C,C,0,2*Math.PI),_.arc(E+C,D,C,Math.PI/4,Math.PI/5*4),_.arc(E,D+C,C,-Math.PI/3,Math.PI/3),_.arc(E+B,D+A,C,Math.PI,Math.PI/2*3),_.lineWidth=1.5}function V(_,$){for(var G=$.x,E=$.y,B=$.width,A=$.height,D=Math.round(A/3),C=Math.round((D-2)/2),F=3;F--;)_.rect(G,E+D*F+C,B,2)}function H(_,$){for(var G=$.x,E=$.y,B=$.width,A=$.height,D=Math.round(B/3),C=Math.round((D-2)/2),F=3;F--;)_.rect(G+D*F+C,E,2,A)}function G(_,$){var C=$.x,B=$.y,A=$.width/16;_.moveTo(C+A,B),_.lineTo(C+A,B+$.height),_.lineTo(C+15*A,B+$.height),_.lineTo(C+15*A,B),_.lineTo(C+A,B),_.moveTo(C+3*A,B+3*A),_.lineTo(C+13*A,B+3*A),_.moveTo(C+3*A,B+6*A),_.lineTo(C+13*A,B+6*A),_.moveTo(C+3*A,B+9*A),_.lineTo(C+13*A,B+9*A),_.moveTo(C+3*A,B+12*A),_.lineTo(C+9*A,B+12*A)}function Q(_,$){var D=$.x,C=$.y,B=$.width/16,A=$.height/16;_.moveTo(D,C),_.lineTo(D,C+$.height),_.lineTo(D+$.width,C+$.height),_.lineTo(D+$.width,C),_.lineTo(D,C),_.moveTo(D+4*B,C),_.lineTo(D+4*B,C+8*A),_.lineTo(D+12*B,C+8*A),_.lineTo(D+12*B,C),_.moveTo(D+6*B,C+11*A),_.lineTo(D+6*B,C+13*A),_.lineTo(D+10*B,C+13*A),_.lineTo(D+10*B,C+11*A),_.lineTo(D+6*B,C+11*A)}function F(_,$){var D=$.x,C=$.y,B=$.width,A=$.height;_.moveTo(D,C+A/2),_.lineTo(D+B,C+A/2),_.moveTo(D+B/2,C),_.lineTo(D+B/2,C+A)}function b(_,$){var C=$.width/2,B=$.height/2,A=Math.min(C,B);_.moveTo($.x+C+A,$.y+B),_.arc($.x+C,$.y+B,A,0,2*Math.PI),_.closePath()}function U(_,$){_.rect($.x,$.y,$.width,$.height),_.closePath()}function c(_,$){var E=$.width/2,D=$.height/2,B=$.x+E,A=$.y+D,C=Math.min(E,D);_.moveTo(B,A-C),_.lineTo(B+C,A+C),_.lineTo(B-C,A+C),_.lineTo(B,A-C),_.closePath()}function K(_,$){var E=$.width/2,D=$.height/2,B=$.x+E,A=$.y+D,C=Math.min(E,D);_.moveTo(B,A-C),_.lineTo(B+C,A),_.lineTo(B,A+C),_.lineTo(B-C,A),_.lineTo(B,A-C),_.closePath()}function E(_,$){var C=$.x,B=$.y,A=$.width/16;_.moveTo(C+8*A,B),_.lineTo(C+A,B+$.height),_.lineTo(C+8*A,B+$.height/4*3),_.lineTo(C+15*A,B+$.height),_.lineTo(C+8*A,B),_.closePath()}function D($,C){var B=W("zrender/shape/Star"),A=C.width/2,_=C.height/2;B.prototype.buildPath($,{x:C.x+A,y:C.y+_,r:Math.min(A,_),n:C.n||5})}function a($,A){var _=W("zrender/shape/Heart");_.prototype.buildPath($,{x:A.x+A.width/2,y:A.y+0.2*A.height,a:A.width/2,b:0.8*A.height})}function A($,A){var _=W("zrender/shape/Droplet");_.prototype.buildPath($,{x:A.x+0.5*A.width,y:A.y+0.5*A.height,a:0.5*A.width,b:0.8*A.height})}function B(_,$){var E=$.x,D=$.y-$.height/2*1.5,B=$.width/2,A=$.height/2,C=Math.min(B,A);_.arc(E+B,D+A,C,Math.PI/5*4,Math.PI/5),_.lineTo(E+B,D+A+1.5*C),_.closePath()}function T($,C,B){var A=W("zrender/shape/Image");this._imageShape=this._imageShape||new A({style:{}});for(var _ in C)this._imageShape.style[_]=C[_];this._imageShape.brush($,!1,B)}function C($){_.call(this,$)}var $=W("zrender/tool/util"),_=W("zrender/shape/Base");return C.prototype={type:"icon",iconLibrary:{mark:J,markUndo:S,markClear:O,dataZoom:Y,dataZoomReset:X,restore:N,lineChart:M,barChart:R,pieChart:P,funnelChart:I,forceChart:L,chordChart:Z,stackChart:V,tiledChart:H,dataView:G,saveAsImage:Q,cross:F,circle:b,rectangle:U,triangle:c,diamond:K,arrow:E,star:D,heart:a,droplet:A,pin:B,image:T},brush:function($,D,C){var A=D?this.highlightStyle:this.style;A=A||{};var _=A.iconType||this.style.iconType;if("image"===_){var B=W("zrender/shape/Image");B.prototype.brush.call(this,$,D,C)}else{A=this.beforeBrush($,D);switch($.beginPath(),this.buildPath($,A,C),A.brushType){case"both":$.fill();case"stroke":A.lineWidth>0&&$.stroke();break;default:$.fill()}this.drawText($,A,this.style),this.afterBrush($)}},buildPath:function(_,$,A){this.iconLibrary[$.iconType]?this.iconLibrary[$.iconType].call(this,_,$,A):(_.moveTo($.x,$.y),_.lineTo($.x+$.width,$.y),_.lineTo($.x+$.width,$.y+$.height),_.lineTo($.x,$.y+$.height),_.lineTo($.x,$.y),_.closePath())},getRect:function($){return $.__rect?$.__rect:($.__rect={x:Math.round($.x),y:Math.round($.y-("pin"==$.iconType?$.height/2*1.5:0)),width:$.width,height:$.height*("pin"===$.iconType?1.25:1)},$.__rect)},isCover:function(_,$){var C=this.transformCoordToLocal(_,$);_=C[0],$=C[1];var B=this.style.__rect;B||(B=this.style.__rect=this.getRect(this.style));var A=B.height<8||B.width<8?4:0;return _>=B.x-A&&_<=B.x+B.width+A&&$>=B.y-A&&$<=B.y+B.height+A}},$.inherits(C,_),C}),C("echarts/util/shape/HalfSmoothPolygon",["require","zrender/shape/Base","zrender/shape/util/smoothBezier","zrender/tool/util","zrender/shape/Polygon"],function(_){function $($){C.call(this,$)}var C=_("zrender/shape/Base"),B=_("zrender/shape/util/smoothBezier"),A=_("zrender/tool/util");return $.prototype={type:"half-smooth-polygon",buildPath:function(A,I){var D=I.pointList;if(!(D.length<2))if(I.smooth){var C=B(D.slice(0,-2),I.smooth,!1,I.smoothConstraint);A.moveTo(D[0][0],D[0][1]);for(var F,E,H,G=D.length,$=0;G-3>$;$++)F=C[2*$],E=C[2*$+1],H=D[$+1],A.bezierCurveTo(F[0],F[1],E[0],E[1],H[0],H[1]);A.lineTo(D[G-2][0],D[G-2][1]),A.lineTo(D[G-1][0],D[G-1][1]),A.lineTo(D[0][0],D[0][1])}else _("zrender/shape/Polygon").prototype.buildPath(A,I)}},A.inherits($,C),$}),C("zrender/dep/excanvas",["require"],function(){return document.createElement("canvas").getContext?G_vmlCanvasManager=!1:!function(){function q(){return this.context_||(this.context_=new x(this))}function b(_,$){var A=H.call(arguments,2);return function(){return _.apply($,A.concat(H.call(arguments)))}}function m($){return String($).replace(/&/g,"&").replace(/"/g,""")}function g(_,$,A){_.namespaces[$]||_.namespaces.add($,A,"#default#VML")}function s(_){if(g(_,"g_vml_","urn:schemas-microsoft-com:vml"),g(_,"g_o_","urn:schemas-microsoft-com:office:office"),!_.styleSheets.ex_canvas_){var $=_.createStyleSheet();$.owningElement.id="ex_canvas_",$.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function r(_){var $=_.srcElement;switch(_.propertyName){case"width":$.getContext().clearRect(),$.style.width=$.attributes.width.nodeValue+"px",$.firstChild.style.width=$.clientWidth+"px";break;case"height":$.getContext().clearRect(),$.style.height=$.attributes.height.nodeValue+"px",$.firstChild.style.height=$.clientHeight+"px"}}function f(_){var $=_.srcElement;$.firstChild&&($.firstChild.style.width=$.clientWidth+"px",$.firstChild.style.height=$.clientHeight+"px")}function e(){return[[1,0,0],[0,1,0],[0,0,1]]}function l(_,$){for(var E=e(),D=0;3>D;D++)for(var B=0;3>B;B++){for(var A=0,C=0;3>C;C++)A+=_[D][C]*$[C][B];E[D][B]=A}return E}function h(_,$){$.fillStyle=_.fillStyle,$.lineCap=_.lineCap,$.lineJoin=_.lineJoin,$.lineWidth=_.lineWidth,$.miterLimit=_.miterLimit,$.shadowBlur=_.shadowBlur,$.shadowColor=_.shadowColor,$.shadowOffsetX=_.shadowOffsetX,$.shadowOffsetY=_.shadowOffsetY,$.strokeStyle=_.strokeStyle,$.globalAlpha=_.globalAlpha,$.font=_.font,$.textAlign=_.textAlign,$.textBaseline=_.textBaseline,$.scaleX_=_.scaleX_,$.scaleY_=_.scaleY_,$.lineScale_=_.lineScale_}function a(_){var $=_.indexOf("(",3),B=_.indexOf(")",$+1),A=_.substring($+1,B).split(",");return(4!=A.length||"a"!=_.charAt(3))&&(A[3]=1),A}function d($){return parseFloat($)/100}function u(_,$,A){return Math.min(A,Math.max($,_))}function p(_){var $,G,E,B,A,D;if(B=parseFloat(_[0])/360%360,0>B&&B++,A=u(d(_[1]),0,1),D=u(d(_[2]),0,1),0==A)$=G=E=D;else{var C=0.5>D?D*(1+A):D+A-D*A,F=2*D-C;$=Z(F,C,B+1/3),G=Z(F,C,B),E=Z(F,C,B-1/3)}return"#"+O[Math.floor(255*$)]+O[Math.floor(255*G)]+O[Math.floor(255*E)]}function Z(_,$,A){return 0>A&&A++,A>1&&A--,1>6*A?_+6*($-_)*A:1>2*A?$:2>3*A?_+($-_)*(2/3-A)*6:_}function Y(_){if(_ in P)return P[_];var $,D=1;if(_=String(_),"#"==_.charAt(0))$=_;else if(/^rgb/.test(_)){for(var C,B=a(_),$="#",A=0;3>A;A++)C=-1!=B[A].indexOf("%")?Math.floor(255*d(B[A])):+B[A],$+=O[u(C,0,255)];D=+B[3]}else if(/^hsl/.test(_)){B=a(_);$=p(B),D=B[3]}else $=t[_]||_;return P[_]={color:$,alpha:D}}function i(_){if(M[_])return M[_];var $,C=document.createElement("div"),B=C.style;try{B.font=_,$=B.fontFamily.split(",")[0]}catch(A){}return M[_]={style:B.fontStyle||X.style,variant:B.fontVariant||X.variant,weight:B.fontWeight||X.weight,size:B.fontSize||X.size,family:$||X.family}}function U(_,$){var D={};for(var C in _)D[C]=_[C];var B=parseFloat($.currentStyle.fontSize),A=parseFloat(_.size);return D.size="number"==typeof _.size?_.size:-1!=_.size.indexOf("px")?A:-1!=_.size.indexOf("em")?B*A:-1!=_.size.indexOf("%")?B/100*A:-1!=_.size.indexOf("pt")?A/0.75:B,D}function w($){return $.style+" "+$.variant+" "+$.weight+" "+$.size+"px '"+$.family+"'"}function o($){return Q[$]||"square"}function x(_){this.m_=e(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*J,this.globalAlpha=1,this.font="12px \u5fae\u8f6f\u96c5\u9ed1",this.textAlign="left",this.textBaseline="alphabetic",this.canvas=_;var $="width:"+_.clientWidth+"px;height:"+_.clientHeight+"px;overflow:hidden;position:absolute",B=_.ownerDocument.createElement("div");B.style.cssText=$,_.appendChild(B);var A=B.cloneNode(!1);A.style.backgroundColor="#fff",A.style.filter="alpha(opacity=0)",_.appendChild(A),this.element_=B,this.scaleX_=1,this.scaleY_=1,this.lineScale_=1}function c(_,$,B,A){_.currentPath_.push({type:"bezierCurveTo",cp1x:$.x,cp1y:$.y,cp2x:B.x,cp2y:B.y,x:A.x,y:A.y}),_.currentX_=A.x,_.currentY_=A.y}function S(_,$){var D=Y(_.strokeStyle),C=D.color,B=D.alpha*_.globalAlpha,A=_.lineScale_*_.lineWidth;1>A&&(B*=A),$.push("<g_vml_:stroke"," opacity=\"",B,"\""," joinstyle=\"",_.lineJoin,"\""," miterlimit=\"",_.miterLimit,"\""," endcap=\"",o(_.lineCap),"\""," weight=\"",A,"px\""," color=\"",C,"\" />")}function N(g,S,d,X){var i=g.fillStyle,h=g.scaleX_,W=g.scaleY_,V=X.x-d.x,c=X.y-d.y;if(i instanceof n){var Z=0,R={x:0,y:0},U=0,j=1;if("gradient"==i.type_){var f=i.x0_/h,Q=i.y0_/W,a=i.x1_/h,O=i.y1_/W,k=v(g,f,Q),e=v(g,a,O),l=e.x-k.x,T=e.y-k.y;Z=180*Math.atan2(l,T)/Math.PI,0>Z&&(Z+=360),0.000001>Z&&(Z=0)}else{k=v(g,i.x0_,i.y0_);R={x:(k.x-d.x)/V,y:(k.y-d.y)/c},V/=h*J,c/=W*J;var M=K.max(V,c);U=2*i.r0_/M,j=2*i.r1_/M-U}var I=i.colors_;I.sort(function(_,$){return _.offset-$.offset});for(var D=I.length,E=I[0].color,_=I[D-1].color,B=I[0].alpha*g.globalAlpha,b=I[D-1].alpha*g.globalAlpha,H=[],L=0;D>L;L++){var N=I[L];H.push(N.offset*j+U+" "+N.color)}S.push("<g_vml_:fill type=\"",i.type_,"\""," method=\"none\" focus=\"100%\""," color=\"",E,"\""," color2=\"",_,"\""," colors=\"",H.join(","),"\""," opacity=\"",b,"\""," g_o_:opacity2=\"",B,"\""," angle=\"",Z,"\""," focusposition=\"",R.x,",",R.y,"\" />")}else if(i instanceof G){if(V&&c){var $=-d.x,C=-d.y;S.push("<g_vml_:fill"," position=\"",$/V*h*h,",",C/c*W*W,"\""," type=\"tile\""," src=\"",i.src_,"\" />")}}else{var A=Y(g.fillStyle),F=A.color,P=A.alpha*g.globalAlpha;S.push("<g_vml_:fill color=\"",F,"\" opacity=\"",P,"\" />")}}function v(_,$,C){var B=_.m_;return{x:J*($*B[0][0]+C*B[1][0]+B[2][0])-A,y:J*($*B[0][1]+C*B[1][1]+B[2][1])-A}}function E($){return isFinite($[0][0])&&isFinite($[0][1])&&isFinite($[1][0])&&isFinite($[1][1])&&isFinite($[2][0])&&isFinite($[2][1])}function F(A,_,C){if(E(_)&&(A.m_=_,A.scaleX_=Math.sqrt(_[0][0]*_[0][0]+_[0][1]*_[0][1]),A.scaleY_=Math.sqrt(_[1][0]*_[1][0]+_[1][1]*_[1][1]),C)){var B=_[0][0]*_[1][1]-_[0][1]*_[1][0];A.lineScale_=D($(B))}}function n($){this.type_=$,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function G(A,$){switch(C(A),$){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=$;break;default:_("SYNTAX_ERR")}this.src_=A.src,this.width_=A.width,this.height_=A.height}function _($){throw new k($)}function C($){$&&1==$.nodeType&&"IMG"==$.tagName||_("TYPE_MISMATCH_ERR"),"complete"!=$.readyState&&_("INVALID_STATE_ERR")}function k($){this.code=this[$],this.message=$+": DOM Exception "+this.code}var K=Math,I=K.round,R=K.sin,T=K.cos,$=K.abs,D=K.sqrt,J=10,A=J/2,H=(+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1],Array.prototype.slice);s(document);var V={init:function($){var _=$||document;_.createElement("canvas"),_.attachEvent("onreadystatechange",b(this.init_,this,_))},init_:function(_){for(var $=_.getElementsByTagName("canvas"),A=0;A<$.length;A++)this.initElement($[A])},initElement:function($){if(!$.getContext){$.getContext=q,s($.ownerDocument),$.innerHTML="",$.attachEvent("onpropertychange",r),$.attachEvent("onresize",f);var _=$.attributes;_.width&&_.width.specified?$.style.width=_.width.nodeValue+"px":$.width=$.clientWidth,_.height&&_.height.specified?$.style.height=_.height.nodeValue+"px":$.height=$.clientHeight}return $}};V.init();for(var O=[],W=0;16>W;W++)for(var B=0;16>B;B++)O[16*W+B]=W.toString(16)+B.toString(16);var t={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},P={},X={style:"normal",variant:"normal",weight:"normal",size:12,family:"\u5fae\u8f6f\u96c5\u9ed1"},M={},Q={butt:"flat",round:"round"},j=x.prototype;j.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null),this.element_.innerHTML=""},j.beginPath=function(){this.currentPath_=[]},j.moveTo=function(_,$){var A=v(this,_,$);this.currentPath_.push({type:"moveTo",x:A.x,y:A.y}),this.currentX_=A.x,this.currentY_=A.y},j.lineTo=function(_,$){var A=v(this,_,$);this.currentPath_.push({type:"lineTo",x:A.x,y:A.y}),this.currentX_=A.x,this.currentY_=A.y},j.bezierCurveTo=function(_,$,G,E,B,A){var D=v(this,B,A),C=v(this,_,$),F=v(this,G,E);c(this,C,F,D)},j.quadraticCurveTo=function(_,$,F,E){var B=v(this,_,$),A=v(this,F,E),D={x:this.currentX_+2/3*(B.x-this.currentX_),y:this.currentY_+2/3*(B.y-this.currentY_)},C={x:D.x+(A.x-this.currentX_)/3,y:D.y+(A.y-this.currentY_)/3};c(this,D,C,A)},j.arc=function(K,_,H,E,M,L){H*=J;var D=L?"at":"wa",C=K+T(E)*H-A,G=_+R(E)*H-A,F=K+T(M)*H-A,$=_+R(M)*H-A;C!=F||L||(C+=0.125);var B=v(this,K,_),N=v(this,C,G),I=v(this,F,$);this.currentPath_.push({type:D,x:B.x,y:B.y,radius:H,xStart:N.x,yStart:N.y,xEnd:I.x,yEnd:I.y})},j.rect=function(_,$,B,A){this.moveTo(_,$),this.lineTo(_+B,$),this.lineTo(_+B,$+A),this.lineTo(_,$+A),this.closePath()},j.strokeRect=function(_,$,C,B){var A=this.currentPath_;this.beginPath(),this.moveTo(_,$),this.lineTo(_+C,$),this.lineTo(_+C,$+B),this.lineTo(_,$+B),this.closePath(),this.stroke(),this.currentPath_=A},j.fillRect=function(_,$,C,B){var A=this.currentPath_;this.beginPath(),this.moveTo(_,$),this.lineTo(_+C,$),this.lineTo(_+C,$+B),this.lineTo(_,$+B),this.closePath(),this.fill(),this.currentPath_=A},j.createLinearGradient=function(_,$,C,B){var A=new n("gradient");return A.x0_=_,A.y0_=$,A.x1_=C,A.y1_=B,A},j.createRadialGradient=function(_,$,E,D,B,A){var C=new n("gradientradial");return C.x0_=_,C.y0_=$,C.r0_=E,C.x1_=D,C.y1_=B,C.r1_=A,C},j.drawImage=function(T){var E,Q,M,V,U,L,H,P,N=T.runtimeStyle.width,D=T.runtimeStyle.height;T.runtimeStyle.width="auto",T.runtimeStyle.height="auto";var G=T.width,W=T.height;if(T.runtimeStyle.width=N,T.runtimeStyle.height=D,3==arguments.length)E=arguments[1],Q=arguments[2],U=L=0,H=M=G,P=V=W;else if(5==arguments.length)E=arguments[1],Q=arguments[2],M=arguments[3],V=arguments[4],U=L=0,H=G,P=W;else{if(9!=arguments.length)throw Error("Invalid number of arguments");U=arguments[1],L=arguments[2],H=arguments[3],P=arguments[4],E=arguments[5],Q=arguments[6],M=arguments[7],V=arguments[8]}var S=v(this,E,Q),C=[],B=10,O=10,A=R=1;if(C.push(" <g_vml_:group"," coordsize=\"",J*B,",",J*O,"\""," coordorigin=\"0,0\""," style=\"width:",B,"px;height:",O,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var X=[],A=this.scaleX_,R=this.scaleY_;X.push("M11=",this.m_[0][0]/A,",","M12=",this.m_[1][0]/R,",","M21=",this.m_[0][1]/A,",","M22=",this.m_[1][1]/R,",","Dx=",I(S.x/J),",","Dy=",I(S.y/J),"");var Y=S,F=v(this,E+M,Q),_=v(this,E,Q+V),$=v(this,E+M,Q+V);Y.x=K.max(Y.x,F.x,_.x,$.x),Y.y=K.max(Y.y,F.y,_.y,$.y),C.push("padding:0 ",I(Y.x/J),"px ",I(Y.y/J),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",X.join(""),", SizingMethod='clip');")}else C.push("top:",I(S.y/J),"px;left:",I(S.x/J),"px;");C.push(" \">"),(U||L)&&C.push("<div style=\"overflow: hidden; width:",Math.ceil((M+U*M/H)*A),"px;"," height:",Math.ceil((V+L*V/P)*R),"px;"," filter:progid:DxImageTransform.Microsoft.Matrix(Dx=",-U*M/H*A,",Dy=",-L*V/P*R,");\">"),C.push("<div style=\"width:",Math.round(A*G*M/H),"px;"," height:",Math.round(R*W*V/P),"px;"," filter:"),this.globalAlpha<1&&C.push(" progid:DXImageTransform.Microsoft.Alpha(opacity="+100*this.globalAlpha+")"),C.push(" progid:DXImageTransform.Microsoft.AlphaImageLoader(src=",T.src,",sizingMethod=scale)\">"),(U||L)&&C.push("</div>"),C.push("</div></div>"),this.element_.insertAdjacentHTML("BeforeEnd",C.join(""))},j.stroke=function(_){var $=[],G=10,E=10;$.push("<g_vml_:shape"," filled=\"",!!_,"\""," style=\"position:absolute;width:",G,"px;height:",E,"px;\""," coordorigin=\"0,0\""," coordsize=\"",J*G,",",J*E,"\""," stroked=\"",!_,"\""," path=\"");for(var B={x:null,y:null},A={x:null,y:null},D=0;D<this.currentPath_.length;D++){var C,F=this.currentPath_[D];switch(F.type){case"moveTo":C=F,$.push(" m ",I(F.x),",",I(F.y));break;case"lineTo":$.push(" l ",I(F.x),",",I(F.y));break;case"close":$.push(" x "),F=null;break;case"bezierCurveTo":$.push(" c ",I(F.cp1x),",",I(F.cp1y),",",I(F.cp2x),",",I(F.cp2y),",",I(F.x),",",I(F.y));break;case"at":case"wa":$.push(" ",F.type," ",I(F.x-this.scaleX_*F.radius),",",I(F.y-this.scaleY_*F.radius)," ",I(F.x+this.scaleX_*F.radius),",",I(F.y+this.scaleY_*F.radius)," ",I(F.xStart),",",I(F.yStart)," ",I(F.xEnd),",",I(F.yEnd))}F&&((null==B.x||F.x<B.x)&&(B.x=F.x),(null==A.x||F.x>A.x)&&(A.x=F.x),(null==B.y||F.y<B.y)&&(B.y=F.y),(null==A.y||F.y>A.y)&&(A.y=F.y))}$.push(" \">"),_?N(this,$,B,A):S(this,$),$.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",$.join(""))},j.fill=function(){this.stroke(!0)},j.closePath=function(){this.currentPath_.push({type:"close"})},j.save=function(){var $={};h(this,$),this.aStack_.push($),this.mStack_.push(this.m_),this.m_=l(e(),this.m_)},j.restore=function(){this.aStack_.length&&(h(this.aStack_.pop(),this),this.m_=this.mStack_.pop())},j.translate=function(_,$){var A=[[1,0,0],[0,1,0],[_,$,1]];F(this,l(A,this.m_),!1)},j.rotate=function(_){var $=T(_),B=R(_),A=[[$,B,0],[-B,$,0],[0,0,1]];F(this,l(A,this.m_),!1)},j.scale=function(_,$){var A=[[_,0,0],[0,$,0],[0,0,1]];F(this,l(A,this.m_),!0)},j.transform=function(_,$,E,D,B,A){var C=[[_,$,0],[E,D,0],[B,A,1]];F(this,l(C,this.m_),!0)},j.setTransform=function(_,$,E,D,B,A){var C=[[_,$,0],[E,D,0],[B,A,1]];F(this,C,!0)},j.drawText_=function(O,B,G,Q,P){var F=this.m_,E=1000,K=0,H=E,A={x:0,y:0},D=[],R=U(i(this.font),this.element_),M=w(R),_=this.element_.currentStyle,$=this.textAlign.toLowerCase();switch($){case"left":case"center":case"right":break;case"end":$="ltr"==_.direction?"right":"left";break;case"start":$="rtl"==_.direction?"right":"left";break;default:$="left"}switch(this.textBaseline){case"hanging":case"top":A.y=R.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":A.y=-R.size/2.25}switch($){case"right":K=E,H=0.05;break;case"center":K=H=E/2}var L=v(this,B+A.x,G+A.y);D.push("<g_vml_:line from=\"",-K," 0\" to=\"",H," 0.05\" "," coordsize=\"100 100\" coordorigin=\"0 0\""," filled=\"",!P,"\" stroked=\"",!!P,"\" style=\"position:absolute;width:1px;height:1px;\">"),P?S(this,D):N(this,D,{x:-K,y:0},{x:H,y:R.size});var T=F[0][0].toFixed(3)+","+F[1][0].toFixed(3)+","+F[0][1].toFixed(3)+","+F[1][1].toFixed(3)+",0,0",C=I(L.x/J)+","+I(L.y/J);D.push("<g_vml_:skew on=\"t\" matrix=\"",T,"\" "," offset=\"",C,"\" origin=\"",K," 0\" />","<g_vml_:path textpathok=\"true\" />","<g_vml_:textpath on=\"true\" string=\"",m(O),"\" style=\"v-text-align:",$,";font:",m(M),"\" /></g_vml_:line>"),this.element_.insertAdjacentHTML("beforeEnd",D.join(""))},j.fillText=function(_,$,B,A){this.drawText_(_,$,B,A,!1)},j.strokeText=function(_,$,B,A){this.drawText_(_,$,B,A,!0)},j.measureText=function(_){if(!this.textMeasureEl_){var $="<span style=\"position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;\"></span>";this.element_.insertAdjacentHTML("beforeEnd",$),this.textMeasureEl_=this.element_.lastChild}var B=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";try{this.textMeasureEl_.style.font=this.font}catch(A){}return this.textMeasureEl_.appendChild(B.createTextNode(_)),{width:this.textMeasureEl_.offsetWidth}},j.clip=function(){},j.arcTo=function(){},j.createPattern=function(_,$){return new G(_,$)},n.prototype.addColorStop=function(_,$){$=Y($),this.colors_.push({offset:_,color:$.color,alpha:$.alpha})};var L=k.prototype=new Error;L.INDEX_SIZE_ERR=1,L.DOMSTRING_SIZE_ERR=2,L.HIERARCHY_REQUEST_ERR=3,L.WRONG_DOCUMENT_ERR=4,L.INVALID_CHARACTER_ERR=5,L.NO_DATA_ALLOWED_ERR=6,L.NO_MODIFICATION_ALLOWED_ERR=7,L.NOT_FOUND_ERR=8,L.NOT_SUPPORTED_ERR=9,L.INUSE_ATTRIBUTE_ERR=10,L.INVALID_STATE_ERR=11,L.SYNTAX_ERR=12,L.INVALID_MODIFICATION_ERR=13,L.NAMESPACE_ERR=14,L.INVALID_ACCESS_ERR=15,L.VALIDATION_ERR=16,L.TYPE_MISMATCH_ERR=17,G_vmlCanvasManager=V,CanvasRenderingContext2D=x,CanvasGradient=n,CanvasPattern=G,DOMException=k}(),G_vmlCanvasManager}),C("echarts/util/ecQuery",["require","zrender/tool/util"],function(_){function $(_,$){if("undefined"!=typeof _){if(!$)return _;$=$.split(".");for(var B=$.length,A=0;B>A;){if(_=_[$[A]],"undefined"==typeof _)return;A++}return _}}function C(_,D){for(var C,B=0,A=_.length;A>B;B++)if(C=$(_[B],D),"undefined"!=typeof C)return C}function B(_,E){for(var D,B=_.length;B--;){var C=$(_[B],E);"undefined"!=typeof C&&("undefined"==typeof D?D=A.clone(C):A.merge(D,C,!0))}return D}var A=_("zrender/tool/util");return{query:$,deepQuery:C,deepMerge:B}}),C("echarts/util/shape/MarkLine",["require","zrender/shape/Base","./Icon","zrender/shape/Line","zrender/shape/BezierCurve","zrender/tool/area","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/curve"],function(H){function _($){G.call(this,$),this.style.curveness>0&&this.updatePoints(this.style),this.highlightStyle.curveness>0&&this.updatePoints(this.highlightStyle)}var G=H("zrender/shape/Base"),D=H("./Icon"),J=H("zrender/shape/Line"),I=new J({}),C=H("zrender/shape/BezierCurve"),B=new C({}),F=H("zrender/tool/area"),E=H("zrender/shape/util/dashedLineTo"),$=H("zrender/tool/util"),A=H("zrender/tool/curve");return _.prototype={type:"mark-line",brush:function(_,$){var A=this.style;$&&(A=this.getHighlightStyle(A,this.highlightStyle||{})),_.save(),this.setContext(_,A),this.setTransform(_),_.save(),_.beginPath(),this.buildPath(_,A),_.stroke(),_.restore(),this.brushSymbol(_,A,0),this.brushSymbol(_,A,1),this.drawText(_,A,this.style),_.restore()},buildPath:function(_,$){var C=$.lineType||"solid";if(_.moveTo($.xStart,$.yStart),$.curveness>0){var B=null;switch(C){case"dashed":B=[5,5];break;case"dotted":B=[1,1]}B&&_.setLineDash&&_.setLineDash(B),_.quadraticCurveTo($.cpX1,$.cpY1,$.xEnd,$.yEnd)}else if("solid"==C)_.lineTo($.xEnd,$.yEnd);else{var A=($.lineWidth||1)*("dashed"==$.lineType?5:1);E(_,$.xStart,$.yStart,$.xEnd,$.yEnd,A)}},updatePoints:function(_){var $=_.curveness||0,G=1,E=_.xStart,B=_.yStart,A=_.xEnd,D=_.yEnd,C=(E+A)/2-G*(B-D)*$,F=(B+D)/2-G*(A-E)*$;_.cpX1=C,_.cpY1=F},brushSymbol:function(M,C,J){if("none"!=C.symbol[J]){M.save(),M.beginPath(),M.lineWidth=C.symbolBorder,M.strokeStyle=C.symbolBorderColor;var O=C.symbol[J].replace("empty","").toLowerCase();C.symbol[J].match("empty")&&(M.fillStyle="#fff");var N=C.xStart,F=C.yStart,E=C.xEnd,I=C.yEnd,G=0===J?N:E,B=0===J?F:I,P=C.curveness||0,L=null!=C.symbolRotate[J]?C.symbolRotate[J]-0:0;if(L=L/180*Math.PI,"arrow"==O&&0===L)if(0===P){var _=0===J?-1:1;L=Math.PI/2+Math.atan2(_*(I-F),_*(E-N))}else{var $=C.cpX1,H=C.cpY1,Q=A.quadraticDerivativeAt,R=Q(N,$,E,J),K=Q(F,H,I,J);L=Math.PI/2+Math.atan2(K,R)}M.translate(G,B),0!==L&&M.rotate(L);var S=C.symbolSize[J];D.prototype.buildPath(M,{x:-S,y:-S,width:2*S,height:2*S,iconType:O}),M.closePath(),M.fill(),M.stroke(),M.restore()}},getRect:function($){return $.curveness>0?B.getRect($):I.getRect($),$.__rect},isCover:function(_,$){var A=this.transformCoordToLocal(_,$);return _=A[0],$=A[1],this.isCoverRect(_,$)?this.style.curveness>0?F.isInside(B,this.style,_,$):F.isInside(I,this.style,_,$):!1}},$.inherits(_,G),_}),C("zrender/shape/ShapeBundle",["require","./Base","../tool/util"],function(_){var $=_("./Base"),A=function(_){$.call(this,_)};return A.prototype={constructor:A,type:"shape-bundle",brush:function(_,$){var D=this.beforeBrush(_,$);_.beginPath();for(var C=0;C<D.shapeList.length;C++){var B=D.shapeList[C],A=B.style;$&&(A=B.getHighlightStyle(A,B.highlightStyle||{},B.brushTypeOnly)),B.buildPath(_,A)}switch(D.brushType){case"both":_.fill();case"stroke":D.lineWidth>0&&_.stroke();break;default:_.fill()}this.drawText(_,D,this.style),this.afterBrush(_)},getRect:function(_){if(_.__rect)return _.__rect;for(var $=1/0,F=-1/0,E=1/0,B=-1/0,A=0;A<_.shapeList.length;A++)var D=_.shapeList[A],C=D.getRect(D.style),$=Math.min(C.x,$),E=Math.min(C.y,E),F=Math.max(C.x+C.width,F),B=Math.max(C.y+C.height,B);return _.__rect={x:$,y:E,width:F-$,height:B-E},_.__rect},isCover:function(_,$){var C=this.transformCoordToLocal(_,$);if(_=C[0],$=C[1],this.isCoverRect(_,$))for(var B=0;B<this.style.shapeList.length;B++){var A=this.style.shapeList[B];if(A.isCover(_,$))return!0}return!1}},_("../tool/util").inherits(A,$),A}),C("echarts/util/ecAnimation",["require","zrender/tool/util","zrender/tool/curve","zrender/shape/Polygon"],function(K){function B(I,A,H,E,K){var J,D=H.style.pointList,C=D.length;if(!A){if(J=[],"vertical"!=H._orient){for(var G=D[0][1],F=0;C>F;F++)J[F]=[D[F][0],G]}else for(var $=D[0][0],F=0;C>F;F++)J[F]=[$,D[F][1]];"half-smooth-polygon"==H.type&&(J[C-1]=_.clone(D[C-1]),J[C-2]=_.clone(D[C-2])),A={style:{pointList:J}}}J=A.style.pointList;var B=J.length;H.style.pointList=B==C?J:C>B?J.concat(D.slice(B)):J.slice(0,C),I.addShape(H),H.__animating=!0,I.animate(H.id,"style").when(E,{pointList:D}).during(function(){H.updateControlPoints&&H.updateControlPoints(H.style)}).done(function(){H.__animating=!1}).start(K)}function I(_,$){for(var C=arguments.length,B=2;C>B;B++){var A=arguments[B];_.style[A]=$.style[A]}}function F(A,_,G,D,B){var F=G.style;_||(_={position:G.position,style:{x:F.x,y:"vertical"==G._orient?F.y+F.height:F.y,width:"vertical"==G._orient?F.width:0,height:"vertical"!=G._orient?F.height:0}});var E=F.x,J=F.y,H=F.width,$=F.height,C=[G.position[0],G.position[1]];I(G,_,"x","y","width","height"),G.position=_.position,A.addShape(G),(C[0]!=_.position[0]||C[1]!=_.position[1])&&A.animate(G.id,"").when(D,{position:C}).start(B),G.__animating=!0,A.animate(G.id,"style").when(D,{x:E,y:J,width:H,height:$}).done(function(){G.__animating=!1}).start(B)}function M(_,$,E,D,B){if(!$){var A=E.style.y;$={style:{y:[A[0],A[0],A[0],A[0]]}}}var C=E.style.y;E.style.y=$.style.y,_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(D,{y:C}).done(function(){E.__animating=!1}).start(B)}function L(_,$,G,E,B){var A=G.style.x,D=G.style.y,C=G.style.r0,F=G.style.r;G.__animating=!0,"r"!=G._animationAdd?(G.style.r0=0,G.style.r=0,G.rotation=[2*Math.PI,A,D],_.addShape(G),_.animate(G.id,"style").when(E,{r0:C,r:F}).done(function(){G.__animating=!1}).start(B),_.animate(G.id,"").when(E,{rotation:[0,A,D]}).start(B)):(G.style.r0=G.style.r,_.addShape(G),_.animate(G.id,"style").when(E,{r0:C}).done(function(){G.__animating=!1}).start(B))}function E(_,$,E,B,A){$||($="r"!=E._animationAdd?{style:{startAngle:E.style.startAngle,endAngle:E.style.startAngle}}:{style:{r0:E.style.r}});var D=E.style.startAngle,C=E.style.endAngle;I(E,$,"startAngle","endAngle"),_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(B,{startAngle:D,endAngle:C}).done(function(){E.__animating=!1}).start(A)}function D(_,$,E,B,A){$||($={style:{x:"left"==E.style.textAlign?E.style.x+100:E.style.x-100,y:E.style.y}});var D=E.style.x,C=E.style.y;I(E,$,"x","y"),_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(B,{x:D,y:C}).done(function(){E.__animating=!1}).start(A)}function H($,F,D,A,_){var C=K("zrender/shape/Polygon").prototype.getRect(D.style),B=C.x+C.width/2,E=C.y+C.height/2;D.scale=[0.1,0.1,B,E],$.addShape(D),D.__animating=!0,$.animate(D.id,"").when(A,{scale:[1,1,B,E]}).done(function(){D.__animating=!1}).start(_)}function G(_,$,E,B,A){$||($={style:{source0:0,source1:E.style.source1>0?360:-360,target0:0,target1:E.style.target1>0?360:-360}});var D=E.style.source0,C=E.style.source1,G=E.style.target0,F=E.style.target1;$.style&&I(E,$,"source0","source1","target0","target1"),_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(B,{source0:D,source1:C,target0:G,target1:F}).done(function(){E.__animating=!1}).start(A)}function A(_,$,D,C,B){$||($={style:{angle:D.style.startAngle}});var A=D.style.angle;D.style.angle=$.style.angle,_.addShape(D),D.__animating=!0,_.animate(D.id,"style").when(C,{angle:A}).done(function(){D.__animating=!1}).start(B)}function C(_,$,G,B,A,D){if(G.style._x=G.style.x,G.style._y=G.style.y,G.style._width=G.style.width,G.style._height=G.style.height,$)F(_,$,G,B,A);else{var C=G._x||0,E=G._y||0;G.scale=[0.01,0.01,C,E],_.addShape(G),G.__animating=!0,_.animate(G.id,"").delay(D).when(B,{scale:[1,1,C,E]}).done(function(){G.__animating=!1}).start(A||"QuinticOut")}}function N(_,$,E,B,A){$||($={style:{xStart:E.style.xStart,yStart:E.style.yStart,xEnd:E.style.xStart,yEnd:E.style.yStart}});var D=E.style.xStart,C=E.style.xEnd,G=E.style.yStart,F=E.style.yEnd;I(E,$,"xStart","xEnd","yStart","yEnd"),_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(B,{xStart:D,xEnd:C,yStart:G,yEnd:F}).done(function(){E.__animating=!1}).start(A)}function J(L,B,J,F,N){N=N||"QuinticOut",J.__animating=!0,L.addShape(J);var M=J.style,E=function(){J.__animating=!1},D=M.xStart,I=M.yStart,G=M.xEnd,A=M.yEnd;if(M.curveness>0){J.updatePoints(M);var C={p:0},O=M.cpX1,K=M.cpY1,_=[],H=[],P=$.quadraticSubdivide;L.animation.animate(C).when(F,{p:1}).during(function(){P(D,O,G,C.p,_),P(I,K,A,C.p,H),M.cpX1=_[1],M.cpY1=H[1],M.xEnd=_[2],M.yEnd=H[2],L.modShape(J)}).done(E).start(N)}else L.animate(J.id,"style").when(0,{xEnd:D,yEnd:I}).when(F,{xEnd:G,yEnd:A}).done(E).start(N)}var _=K("zrender/tool/util"),$=K("zrender/tool/curve");return{pointList:B,rectangle:F,candle:M,ring:L,sector:E,text:D,polygon:H,ribbon:G,gaugePointer:A,icon:C,line:N,markline:J}}),C("echarts/util/ecEffect",["require","../util/ecData","zrender/shape/Circle","zrender/shape/Image","zrender/tool/curve","../util/shape/Icon","../util/shape/Symbol","zrender/shape/ShapeBundle","zrender/shape/Polyline","zrender/tool/vector","zrender/tool/env"],function(J){function A(N,B,J,G){var O,E=J.effect,I=E.color||J.style.strokeColor||J.style.color,A=E.shadowColor||I,D=E.scaleSize,P=E.bounceDistance,M="undefined"!=typeof E.shadowBlur?E.shadowBlur:D;"image"!==J.type?(O=new F({zlevel:G,style:{brushType:"stroke",iconType:"droplet"!=J.style.iconType?J.style.iconType:"circle",x:M+1,y:M+1,n:J.style.n,width:J.style._width*D,height:J.style._height*D,lineWidth:1,strokeColor:I,shadowColor:A,shadowBlur:M},draggable:!1,hoverable:!1}),"pin"==J.style.iconType&&(O.style.y+=O.style.height/2*1.5),$&&(O.style.image=N.shapeToImage(O,O.style.width+2*M+2,O.style.height+2*M+2).style.image,O=new C({zlevel:O.zlevel,style:O.style,draggable:!1,hoverable:!1}))):O=new C({zlevel:G,style:J.style,draggable:!1,hoverable:!1}),K.clone(J,O),O.position=J.position,B.push(O),N.addShape(O);var _="image"!==J.type?window.devicePixelRatio||1:1,H=(O.style.width/_-J.style._width)/2;O.style.x=J.style._x-H,O.style.y=J.style._y-H,"pin"==J.style.iconType&&(O.style.y-=J.style.height/2*1.5);var Q=100*(E.period+10*Math.random());N.modShape(J.id,{invisible:!0});var R=O.style.x+O.style.width/2/_,L=O.style.y+O.style.height/2/_;"scale"===E.type?(N.modShape(O.id,{scale:[0.1,0.1,R,L]}),N.animate(O.id,"",E.loop).when(Q,{scale:[1,1,R,L]}).done(function(){J.effect.show=!1,N.delShape(O.id)}).start()):N.animate(O.id,"style",E.loop).when(Q,{y:O.style.y-P}).when(2*Q,{y:O.style.y}).done(function(){J.effect.show=!1,N.delShape(O.id)}).start()}function H(K,B,I,F){var M=I.effect,L=M.color||I.style.strokeColor||I.style.color,E=M.scaleSize,D=M.shadowColor||L,H="undefined"!=typeof M.shadowBlur?M.shadowBlur:2*E,G=window.devicePixelRatio||1,C=new _({zlevel:F,position:I.position,scale:I.scale,style:{pointList:I.style.pointList,iconType:I.style.iconType,color:L,strokeColor:L,shadowColor:D,shadowBlur:H*G,random:!0,brushType:"fill",lineWidth:1,size:I.style.size},draggable:!1,hoverable:!1});B.push(C),K.addShape(C),K.modShape(I.id,{invisible:!0});for(var N=Math.round(100*M.period),J={},A={},$=0;20>$;$++)C.style["randomMap"+$]=0,J={},J["randomMap"+$]=100,A={},A["randomMap"+$]=0,C.style["randomMap"+$]=100*Math.random(),K.animate(C.id,"style",!0).when(N,J).when(2*N,A).when(3*N,J).when(4*N,J).delay(Math.random()*N*$).start()}function E(e,T,b,X,f){var W=b.effect,Y=b.style,S=W.color||Y.strokeColor||Y.color,V=W.shadowColor||Y.strokeColor||S,R=Y.lineWidth*W.scaleSize,Z="undefined"!=typeof W.shadowBlur?W.shadowBlur:R,Q=new D({zlevel:X,style:{x:Z,y:Z,r:R,color:S,shadowColor:V,shadowBlur:Z},hoverable:!1}),h=0;if($&&!f){var X=Q.zlevel;Q=e.shapeToImage(Q,2*(R+Z),2*(R+Z)),Q.zlevel=X,Q.hoverable=!1,h=Z}f||(K.clone(b,Q),Q.position=b.position,T.push(Q),e.addShape(Q));var d=function(){f||(b.effect.show=!1,e.delShape(Q.id)),Q.effectAnimator=null};if(b instanceof M){for(var i=[0],U=0,O=Y.pointList,L=Y.controlPointList,g=1;g<O.length;g++){if(L){var C=L[2*(g-1)],E=L[2*(g-1)+1];U+=I.dist(O[g-1],C)+I.dist(C,E)+I.dist(E,O[g])}else U+=I.dist(O[g-1],O[g]);i.push(U)}for(var c={p:0},F=e.animation.animate(c,{loop:W.loop}),g=0;g<i.length;g++)F.when(i[g]*W.period,{p:g});F.during(function(){var _,F,D=Math.floor(c.p);if(D==O.length-1)_=O[D][0],F=O[D][1];else{var A=c.p-D,C=O[D],B=O[D+1];if(L){var E=L[2*D],$=L[2*D+1];_=G.cubicAt(C[0],E[0],$[0],B[0],A),F=G.cubicAt(C[1],E[1],$[1],B[1],A)}else _=(B[0]-C[0])*A+C[0],F=(B[1]-C[1])*A+C[1]}Q.style.x=_,Q.style.y=F,f||e.modShape(Q)}).done(d).start(),F.duration=U*W.period,Q.effectAnimator=F}else{var A=Y.xStart-h,B=Y.yStart-h,a=Y.xEnd-h,J=Y.yEnd-h;Q.style.x=A,Q.style.y=B;var H=(a-A)*(a-A)+(J-B)*(J-B),N=Math.round(Math.sqrt(Math.round(H*W.period*W.period)));if(b.style.curveness>0){var P=Y.cpX1-h,_=Y.cpY1-h;Q.effectAnimator=e.animation.animate(Q,{loop:W.loop}).when(N,{p:1}).during(function($,C){Q.style.x=G.quadraticAt(A,P,a,C),Q.style.y=G.quadraticAt(B,_,J,C),f||e.modShape(Q)}).done(d).start()}else Q.effectAnimator=e.animation.animate(Q.style,{loop:W.loop}).when(N,{x:a,y:J}).during(function(){f||e.modShape(Q)}).done(d).start();Q.effectAnimator.duration=N}return Q}function L(L,C,J,N){var M=new B({style:{shapeList:[]},zlevel:N,hoverable:!1}),F=J.style.shapeList,D=J.effect;M.position=J.position;for(var I=0,G=[],A=0;A<F.length;A++){F[A].effect=D;var O=E(L,null,F[A],N,!0),K=O.effectAnimator;M.style.shapeList.push(O),K.duration>I&&(I=K.duration),0===A&&(M.style.color=O.style.color,M.style.shadowBlur=O.style.shadowBlur,M.style.shadowColor=O.style.shadowColor),G.push(K)}C.push(M),L.addShape(M);var _=function(){for(var $=0;$<G.length;$++)G[$].stop()};if(I){M.__dummy=0;var $=L.animate(M.id,"",D.loop).when(I,{__dummy:1}).during(function(){L.modShape(M)}).done(function(){J.effect.show=!1,L.delShape(M.id)}).start(),H=$.stop;$.stop=function(){_(),H.call(this)}}}var K=J("../util/ecData"),D=J("zrender/shape/Circle"),C=J("zrender/shape/Image"),G=J("zrender/tool/curve"),F=J("../util/shape/Icon"),_=J("../util/shape/Symbol"),B=J("zrender/shape/ShapeBundle"),M=J("zrender/shape/Polyline"),I=J("zrender/tool/vector"),$=J("zrender/tool/env").canvasSupported;return{point:A,largePoint:H,line:E,largeLine:L}}),C("echarts/layout/EdgeBundling",["require","../data/KDTree","zrender/tool/vector"],function(H){function _(_,$){_=_.array,$=$.array;var D=$[0]-_[0],C=$[1]-_[1],B=$[2]-_[2],A=$[3]-_[3];return D*D+C*C+B*B+A*A}function G($){this.points=[$.mp0,$.mp1],this.group=$}function D(A){var _=A.points;_[0][1]<_[1][1]||A instanceof G?(this.array=[_[0][0],_[0][1],_[1][0],_[1][1]],this._startPoint=_[0],this._endPoint=_[1]):(this.array=[_[1][0],_[1][1],_[0][0],_[0][1]],this._startPoint=_[1],this._endPoint=_[0]),this.ink=$(_[0],_[1]),this.edge=A,this.group=null}function J(){this.edgeList=[],this.mp0=F(),this.mp1=F(),this.ink=0}function I(){this.maxNearestEdge=6,this.maxTurningAngle=Math.PI/4,this.maxIteration=20}var C=H("../data/KDTree"),B=H("zrender/tool/vector"),F=B.create,E=B.distSquare,$=B.dist,A=B.copy,K=B.clone;return D.prototype.getStartPoint=function(){return this._startPoint},D.prototype.getEndPoint=function(){return this._endPoint},J.prototype.addEdge=function($){$.group=this,this.edgeList.push($)},J.prototype.removeEdge=function($){$.group=null,this.edgeList.splice(this.edgeList.indexOf($),1)},I.prototype={constructor:I,run:function(A){function _(_,$){return E(_,$)<1e-10}function I($,D){for(var C=[],B=0,A=0;A<$.length;A++)B>0&&_($[A],C[B-1])||(C[B++]=K($[A]));return D[0]&&!_(C[0],D[0])&&(C=C.reverse()),C}for(var D=this._iterate(A),B=0;B++<this.maxIteration;){for(var H=[],F=0;F<D.groups.length;F++)H.push(new G(D.groups[F]));var J=this._iterate(H);if(J.savedInk<=0)break;D=J}var $=[],C=function(A,_){for(var D,B=0;B<A.length;B++){var F=A[B];if(F.edgeList[0]&&F.edgeList[0].edge instanceof G){for(var E=[],J=0;J<F.edgeList.length;J++)E.push(F.edgeList[J].edge.group);D=_?_.slice():[],D.unshift(F.mp0),D.push(F.mp1),C(E,D)}else for(J=0;J<F.edgeList.length;J++){var H=F.edgeList[J];D=_?_.slice():[],D.unshift(F.mp0),D.push(F.mp1),D.unshift(H.getStartPoint()),D.push(H.getEndPoint()),$.push({points:I(D,H.edge.points),rawEdge:H.edge})}}};return C(D.groups),$},_iterate:function(R){for(var N=[],S=[],I=0,L=0;L<R.length;L++){var E=new D(R[L]);N.push(E)}for(var U=new C(N,4),Q=[],B=F(),$=F(),M=0,V=F(),X=F(),P=0,L=0;L<N.length;L++){E=N[L];if(!E.group){U.nearestN(E,this.maxNearestEdge,_,Q);for(var Y=0,G=null,T=null,O=0;O<Q.length;O++){var W=Q[O],H=0;W.group?W.group!==T&&(T=W.group,M=this._calculateGroupEdgeInk(W.group,E,B,$),H=W.group.ink+E.ink-M):(M=this._calculateEdgeEdgeInk(E,W,B,$),H=W.ink+E.ink-M),H>Y&&(Y=H,G=W,A(X,$),A(V,B),P=M)}if(G){I+=Y;var K;G.group||(K=new J,S.push(K),K.addEdge(G)),K=G.group,A(K.mp0,V),A(K.mp1,X),K.ink=P,G.group.addEdge(E)}else{K=new J;S.push(K),A(K.mp0,E.getStartPoint()),A(K.mp1,E.getEndPoint()),K.ink=E.ink,K.addEdge(E)}}}return{groups:S,edges:N,savedInk:I}},_calculateEdgeEdgeInk:function(){var A=[],_=[];return function(F,E,C,B){A[0]=F.getStartPoint(),A[1]=E.getStartPoint(),_[0]=F.getEndPoint(),_[1]=E.getEndPoint(),this._calculateMeetPoints(A,_,C,B);var D=$(A[0],C)+$(C,B)+$(B,_[0])+$(A[1],C)+$(B,_[1]);return D}}(),_calculateGroupEdgeInk:function(A,_,H,F){for(var C=[],B=[],E=0;E<A.edgeList.length;E++){var D=A.edgeList[E];C.push(D.getStartPoint()),B.push(D.getEndPoint())}C.push(_.getStartPoint()),B.push(_.getEndPoint()),this._calculateMeetPoints(C,B,H,F);for(var G=$(H,F),E=0;E<C.length;E++)G+=$(C[E],H)+$(B[E],F);return G},_calculateMeetPoints:function(){var _=F(),$=F();return function(G,E,C,A){B.set(_,0,0),B.set($,0,0);for(var D=G.length,F=0;D>F;F++)B.add(_,_,G[F]);B.scale(_,_,1/D),D=E.length;for(F=0;D>F;F++)B.add($,$,E[F]);B.scale($,$,1/D),this._limitTurningAngle(G,_,$,C),this._limitTurningAngle(E,$,_,A)}}(),_limitTurningAngle:function(){var A=F(),_=F(),D=F(),C=F();return function(O,N,I,K){var H=Math.cos(this.maxTurningAngle),P=Math.tan(this.maxTurningAngle);B.sub(A,N,I),B.normalize(A,A),B.copy(K,N);for(var M=0,G=0;G<O.length;G++){var F=O[G];B.sub(_,F,N);var J=B.len(_);B.scale(_,_,1/J);var Q=B.dot(_,A);if(H>Q){B.scaleAndAdd(D,N,A,J*Q);var R=$(D,F),L=R/P;B.scaleAndAdd(C,D,A,-L);var S=E(C,N);S>M&&(M=S,B.copy(K,C))}}}}()},I}),C("zrender/shape/Base",["require","../tool/matrix","../tool/guid","../tool/util","../tool/log","../mixin/Transformable","../mixin/Eventful","../tool/area","../tool/color"],function(H){function _(_,I,C,A,F,E,K){F&&(_.font=F),_.textAlign=E,_.textBaseline=K;var J=G(I,C,A,F,E,K);I=(I+"").split("\n");var $=H("../tool/area").getTextHeight("\u56fd",F);switch(K){case"top":A=J.y;break;case"bottom":A=J.y+$;break;default:A=J.y+$/2}for(var B=0,D=I.length;D>B;B++)_.fillText(I[B],C,A),A+=$}function G($,G,D,A,_,C){var B=H("../tool/area"),F=B.getTextWidth($,A),E=B.getTextHeight("\u56fd",A);switch($=($+"").split("\n"),_){case"end":case"right":G-=F;break;case"center":G-=F/2}switch(C){case"top":break;case"bottom":D-=E*$.length;break;default:D-=E*$.length/2}return{x:G,y:D,width:F,height:E*$.length}}var D=window.G_vmlCanvasManager,J=H("../tool/matrix"),I=H("../tool/guid"),C=H("../tool/util"),B=H("../tool/log"),F=H("../mixin/Transformable"),E=H("../mixin/Eventful"),$=function(_){_=_||{},this.id=_.id||I();for(var $ in _)this[$]=_[$];this.style=this.style||{},this.highlightStyle=this.highlightStyle||null,this.parent=null,this.__dirty=!0,this.__clipShapes=[],F.call(this),E.call(this)};$.prototype.invisible=!1,$.prototype.ignore=!1,$.prototype.zlevel=0,$.prototype.draggable=!1,$.prototype.clickable=!1,$.prototype.hoverable=!0,$.prototype.z=0,$.prototype.brush=function(_,$){var A=this.beforeBrush(_,$);switch(_.beginPath(),this.buildPath(_,A),A.brushType){case"both":_.fill();case"stroke":A.lineWidth>0&&_.stroke();break;default:_.fill()}this.drawText(_,A,this.style),this.afterBrush(_)},$.prototype.beforeBrush=function(_,$){var A=this.style;return this.brushTypeOnly&&(A.brushType=this.brushTypeOnly),$&&(A=this.getHighlightStyle(A,this.highlightStyle||{},this.brushTypeOnly)),"stroke"==this.brushTypeOnly&&(A.strokeColor=A.strokeColor||A.color),_.save(),this.doClip(_),this.setContext(_,A),this.setTransform(_),A},$.prototype.afterBrush=function($){$.restore()};var A=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]];$.prototype.setContext=function(_,$){for(var F=0,E=A.length;E>F;F++){var C=A[F][0],B=$[C],D=A[F][1];"undefined"!=typeof B&&(_[D]=B)}};var K=J.create();return $.prototype.doClip=function(_){if(this.__clipShapes&&!D)for(var $=0;$<this.__clipShapes.length;$++){var B=this.__clipShapes[$];if(B.needTransform){var A=B.transform;J.invert(K,A),_.transform(A[0],A[1],A[2],A[3],A[4],A[5])}if(_.beginPath(),B.buildPath(_,B.style),_.clip(),B.needTransform){A=K;_.transform(A[0],A[1],A[2],A[3],A[4],A[5])}}},$.prototype.getHighlightStyle=function($,E,D){var A={};for(var _ in $)A[_]=$[_];var C=H("../tool/color"),B=C.getHighlightColor();"stroke"!=$.brushType?(A.strokeColor=B,A.lineWidth=($.lineWidth||1)+this.getHighlightZoom(),A.brushType="both"):"stroke"!=D?(A.strokeColor=B,A.lineWidth=($.lineWidth||1)+this.getHighlightZoom()):A.strokeColor=E.strokeColor||C.mix($.strokeColor,C.toRGB(B));for(_ in E)"undefined"!=typeof E[_]&&(A[_]=E[_]);return A},$.prototype.getHighlightZoom=function(){return"text"!=this.type?6:2},$.prototype.drift=function(_,$){this.position[0]+=_,this.position[1]+=$},$.prototype.buildPath=function(){B("buildPath not implemented in "+this.type)},$.prototype.getRect=function(){B("getRect not implemented in "+this.type)},$.prototype.isCover=function($,A){var _=this.transformCoordToLocal($,A);return $=_[0],A=_[1],this.isCoverRect($,A)?H("../tool/area").isInside(this,this.style,$,A):!1},$.prototype.isCoverRect=function(_,$){var A=this.style.__rect;return A||(A=this.style.__rect=this.getRect(this.style)),_>=A.x&&_<=A.x+A.width&&$>=A.y&&$<=A.y+A.height},$.prototype.drawText=function(L,J,F){if("undefined"!=typeof J.text&&J.text!==!1){var N=J.textColor||J.color||J.strokeColor;L.fillStyle=N;var M,E,D,I,G=10,B=J.textPosition||this.textPosition||"top";switch(B){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var C=(F||J).__rect||this.getRect(F||J);switch(B){case"inside":D=C.x+C.width/2,I=C.y+C.height/2,M="center",E="middle","stroke"!=J.brushType&&N==J.color&&(L.fillStyle="#fff");break;case"left":D=C.x-G,I=C.y+C.height/2,M="end",E="middle";break;case"right":D=C.x+C.width+G,I=C.y+C.height/2,M="start",E="middle";break;case"top":D=C.x+C.width/2,I=C.y-G,M="center",E="bottom";break;case"bottom":D=C.x+C.width/2,I=C.y+C.height+G,M="center",E="top"}}break;case"start":case"end":var O=J.pointList||[[J.xStart||0,J.yStart||0],[J.xEnd||0,J.yEnd||0]],K=O.length;if(2>K)return;var A,$,H,P;switch(B){case"start":A=O[1][0],$=O[0][0],H=O[1][1],P=O[0][1];break;case"end":A=O[K-2][0],$=O[K-1][0],H=O[K-2][1],P=O[K-1][1]}D=$,I=P;var Q=Math.atan((H-P)/($-A))/Math.PI*180;0>$-A?Q+=180:0>H-P&&(Q+=360),G=5,Q>=30&&150>=Q?(M="center",E="bottom",I-=G):Q>150&&210>Q?(M="right",E="middle",D-=G):Q>=210&&330>=Q?(M="center",E="top",I+=G):(M="left",E="middle",D+=G);break;case"specific":D=J.textX||0,I=J.textY||0,M="start",E="middle"}null!=D&&null!=I&&_(L,J.text,D,I,J.textFont,J.textAlign||M,J.textBaseline||E)}},$.prototype.modSelf=function(){this.__dirty=!0,this.style&&(this.style.__rect=null),this.highlightStyle&&(this.highlightStyle.__rect=null)},$.prototype.isSilent=function(){return!(this.hoverable||this.draggable||this.clickable||this.onmousemove||this.onmouseover||this.onmouseout||this.onmousedown||this.onmouseup||this.onclick||this.ondragenter||this.ondragover||this.ondragleave||this.ondrop)},C.merge($.prototype,F.prototype,!0),C.merge($.prototype,E.prototype,!0),$}),C("zrender/mixin/Eventful",["require"],function(){var $=function(){this._handlers={}};return $.prototype.one=function(_,$,B){var A=this._handlers;return $&&_?(A[_]||(A[_]=[]),A[_].push({h:$,one:!0,ctx:B||this}),this):this},$.prototype.bind=function(_,$,B){var A=this._handlers;return $&&_?(A[_]||(A[_]=[]),A[_].push({h:$,one:!1,ctx:B||this}),this):this},$.prototype.unbind=function(_,$){var D=this._handlers;if(!_)return this._handlers={},this;if($){if(D[_]){for(var C=[],B=0,A=D[_].length;A>B;B++)D[_][B].h!=$&&C.push(D[_][B]);D[_]=C}D[_]&&0===D[_].length&&delete D[_]}else delete D[_];return this},$.prototype.dispatch=function(_){if(this._handlers[_]){var $=arguments,D=$.length;D>3&&($=Array.prototype.slice.call($,1));for(var C=this._handlers[_],B=C.length,A=0;B>A;){switch(D){case 1:C[A].h.call(C[A].ctx);break;case 2:C[A].h.call(C[A].ctx,$[1]);break;case 3:C[A].h.call(C[A].ctx,$[1],$[2]);break;default:C[A].h.apply(C[A].ctx,$)}C[A].one?(C.splice(A,1),B--):A++}}return this},$.prototype.dispatchWithContext=function(_){if(this._handlers[_]){var $=arguments,E=$.length;E>4&&($=Array.prototype.slice.call($,1,$.length-1));for(var D=$[$.length-1],B=this._handlers[_],A=B.length,C=0;A>C;){switch(E){case 1:B[C].h.call(D);break;case 2:B[C].h.call(D,$[1]);break;case 3:B[C].h.call(D,$[1],$[2]);break;default:B[C].h.apply(D,$)}B[C].one?(B.splice(C,1),A--):C++}}return this},$}),C("zrender/tool/curve",["require","./vector"],function(N){function B($){return $>-I&&I>$}function K($){return $>I||-I>$}function G(_,$,D,C,B){var A=1-B;return A*A*(A*_+3*B*$)+B*B*(B*C+3*A*D)}function P(_,$,D,C,B){var A=1-B;return 3*((($-_)*A+2*(D-$)*B)*A+(C-D)*B*B)}function O(V,P,L,X,W,K){var J=X+3*(P-L)-V,O=3*(L-2*P+V),M=3*(P-V),G=V-W,I=O*O-3*J*M,Y=O*M-9*J*G,U=M*M-3*O*G,F=0;if(B(I)&&B(Y)){if(B(O))K[0]=0;else{var E=-M/O;E>=0&&1>=E&&(K[F++]=E)}}else{var N=Y*Y-4*I*U;if(B(N)){var T=Y/I,E=-O/J+T,a=-T/2;E>=0&&1>=E&&(K[F++]=E),a>=0&&1>=a&&(K[F++]=a)}else if(N>0){var H=Math.sqrt(N),D=I*O+1.5*J*(-Y+H),C=I*O+1.5*J*(-Y-H);D=0>D?-Math.pow(-D,S):Math.pow(D,S),C=0>C?-Math.pow(-C,S):Math.pow(C,S);E=(-O-(D+C))/(3*J);E>=0&&1>=E&&(K[F++]=E)}else{var Z=(2*I*O-3*J*Y)/(2*Math.sqrt(I*I*I)),$=Math.acos(Z)/3,_=Math.sqrt(I),Q=Math.cos($),E=(-O-2*_*Q)/(3*J),a=(-O+_*(Q+R*Math.sin($)))/(3*J),A=(-O+_*(Q-R*Math.sin($)))/(3*J);E>=0&&1>=E&&(K[F++]=E),a>=0&&1>=a&&(K[F++]=a),A>=0&&1>=A&&(K[F++]=A)}}return F}function F(I,E,L,J,D){var C=6*L-12*E+6*I,G=9*E+3*J-3*I-9*L,F=3*E-3*I,_=0;if(B(G)){if(K(C)){var A=-F/C;A>=0&&1>=A&&(D[_++]=A)}}else{var M=C*C-4*G*F;if(B(M))D[0]=-C/(2*G);else if(M>0){var H=Math.sqrt(M),A=(-C+H)/(2*G),$=(-C-H)/(2*G);A>=0&&1>=A&&(D[_++]=A),$>=0&&1>=$&&(D[_++]=$)}}return _}function E(H,_,G,D,J,I){var C=(_-H)*J+H,B=(G-_)*J+_,F=(D-G)*J+G,E=(B-C)*J+C,$=(F-B)*J+B,A=($-E)*J+E;I[0]=H,I[1]=C,I[2]=E,I[3]=A,I[4]=A,I[5]=$,I[6]=F,I[7]=D}function J(P,B,M,R,Q,H,F,K,J,A,D){var U,O=0.005,_=1/0;L[0]=J,L[1]=A;for(var V=0;1>V;V+=0.05){T[0]=G(P,M,Q,F,V),T[1]=G(B,R,H,K,V);var X=$.distSquare(L,T);_>X&&(U=V,_=X)}_=1/0;for(var S=0;32>S&&!(I>O);S++){var N=U-O,W=U+O;T[0]=G(P,M,Q,F,N),T[1]=G(B,R,H,K,N);X=$.distSquare(T,L);if(N>=0&&_>X)U=N,_=X;else{C[0]=G(P,M,Q,F,W),C[1]=G(B,R,H,K,W);var E=$.distSquare(C,L);1>=W&&_>E?(U=W,_=E):O*=0.5}}return D&&(D[0]=G(P,M,Q,F,U),D[1]=G(B,R,H,K,U)),Math.sqrt(_)}function H(_,$,C,B){var A=1-B;return A*(A*_+2*B*$)+B*B*C}function A(_,$,B,A){return 2*((1-A)*($-_)+A*(B-$))}function D(I,E,L,J,D){var C=I-2*E+L,G=2*(E-I),F=I-J,_=0;if(B(C)){if(K(G)){var A=-F/G;A>=0&&1>=A&&(D[_++]=A)}}else{var M=G*G-4*C*F;if(B(M)){A=-G/(2*C);A>=0&&1>=A&&(D[_++]=A)}else if(M>0){var H=Math.sqrt(M),A=(-G+H)/(2*C),$=(-G-H)/(2*C);A>=0&&1>=A&&(D[_++]=A),$>=0&&1>=$&&(D[_++]=$)}}return _}function Q(_,$,B){var A=_+B-2*$;return 0===A?0.5:(_-$)/A}function M(_,$,F,E,B){var A=($-_)*E+_,D=(F-$)*E+$,C=(D-A)*E+A;B[0]=_,B[1]=A,B[2]=C,B[3]=C,B[4]=D,B[5]=F}function _(O,B,K,G,Q,P,F,E,J){var A,D=0.005,S=1/0;L[0]=F,L[1]=E;for(var N=0;1>N;N+=0.05){T[0]=H(O,K,Q,N),T[1]=H(B,G,P,N);var _=$.distSquare(L,T);S>_&&(A=N,S=_)}S=1/0;for(var U=0;32>U&&!(I>D);U++){var V=A-D,R=A+D;T[0]=H(O,K,Q,V),T[1]=H(B,G,P,V);_=$.distSquare(T,L);if(V>=0&&S>_)A=V,S=_;else{C[0]=H(O,K,Q,R),C[1]=H(B,G,P,R);var M=$.distSquare(C,L);1>=R&&S>M?(A=R,S=M):D*=0.5}}return J&&(J[0]=H(O,K,Q,A),J[1]=H(B,G,P,A)),Math.sqrt(S)}var $=N("./vector"),I=0.0001,R=Math.sqrt(3),S=1/3,L=$.create(),T=$.create(),C=$.create();return{cubicAt:G,cubicDerivativeAt:P,cubicRootAt:O,cubicExtrema:F,cubicSubdivide:E,cubicProjectPoint:J,quadraticAt:H,quadraticDerivativeAt:A,quadraticRootAt:D,quadraticExtremum:Q,quadraticSubdivide:M,quadraticProjectPoint:_}}),C("zrender/tool/guid",[],function(){var $=2311;return function(){return"zrender__"+$++}}),C("zrender/tool/log",["require","../config"],function(_){var $=_("../config");return function(){if(0!==$.debugMode)if(1==$.debugMode){for(var _ in arguments)throw new Error(arguments[_])}else if($.debugMode>1)for(_ in arguments)console.log(arguments[_])}}),C("zrender/tool/matrix",[],function(){var _="undefined"==typeof Float32Array?Array:Float32Array,$={create:function(){var A=new _(6);return $.identity(A),A},identity:function($){return $[0]=1,$[1]=0,$[2]=0,$[3]=1,$[4]=0,$[5]=0,$},copy:function(_,$){return _[0]=$[0],_[1]=$[1],_[2]=$[2],_[3]=$[3],_[4]=$[4],_[5]=$[5],_},mul:function(_,$,A){return _[0]=$[0]*A[0]+$[2]*A[1],_[1]=$[1]*A[0]+$[3]*A[1],_[2]=$[0]*A[2]+$[2]*A[3],_[3]=$[1]*A[2]+$[3]*A[3],_[4]=$[0]*A[4]+$[2]*A[5]+$[4],_[5]=$[1]*A[4]+$[3]*A[5]+$[5],_},translate:function(_,$,A){return _[0]=$[0],_[1]=$[1],_[2]=$[2],_[3]=$[3],_[4]=$[4]+A[0],_[5]=$[5]+A[1],_},rotate:function(A,_,I){var F=_[0],C=_[2],B=_[4],E=_[1],D=_[3],H=_[5],G=Math.sin(I),$=Math.cos(I);return A[0]=F*$+E*G,A[1]=-F*G+E*$,A[2]=C*$+D*G,A[3]=-C*G+$*D,A[4]=$*B+G*H,A[5]=$*H-G*B,A},scale:function(_,$,C){var B=C[0],A=C[1];return _[0]=$[0]*B,_[1]=$[1]*A,_[2]=$[2]*B,_[3]=$[3]*A,_[4]=$[4]*B,_[5]=$[5]*A,_},invert:function(_,$){var G=$[0],E=$[2],B=$[4],A=$[1],D=$[3],C=$[5],F=G*D-A*E;return F?(F=1/F,_[0]=D*F,_[1]=-A*F,_[2]=-E*F,_[3]=G*F,_[4]=(E*C-D*B)*F,_[5]=(A*B-G*C)*F,_):null}};return $}),C("zrender/mixin/Transformable",["require","../tool/matrix","../tool/vector"],function(_){"use strict";function $($){return $>-C&&C>$}function G($){return $>C||-C>$}var E=_("../tool/matrix"),B=_("../tool/vector"),A=[0,0],D=E.translate,C=0.00005,F=function(){this.position||(this.position=[0,0]),"undefined"==typeof this.rotation&&(this.rotation=[0,0,0]),this.scale||(this.scale=[1,1,0,0]),this.needLocalTransform=!1,this.needTransform=!1};return F.prototype={constructor:F,updateNeedTransform:function(){this.needLocalTransform=G(this.rotation[0])||G(this.position[0])||G(this.position[1])||G(this.scale[0]-1)||G(this.scale[1]-1)},updateTransform:function(){this.updateNeedTransform();var _=this.parent&&this.parent.needTransform;if(this.needTransform=this.needLocalTransform||_,this.needTransform){var $=this.transform||E.create();if(E.identity($),this.needLocalTransform){var B=this.scale;if(G(B[0])||G(B[1])){A[0]=-B[2]||0,A[1]=-B[3]||0;var C=G(A[0])||G(A[1]);C&&D($,$,A),E.scale($,$,B),C&&(A[0]=-A[0],A[1]=-A[1],D($,$,A))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){A[0]=-this.rotation[1]||0,A[1]=-this.rotation[2]||0;C=G(A[0])||G(A[1]);C&&D($,$,A),E.rotate($,$,this.rotation[0]),C&&(A[0]=-A[0],A[1]=-A[1],D($,$,A))}}else 0!==this.rotation&&E.rotate($,$,this.rotation);(G(this.position[0])||G(this.position[1]))&&D($,$,this.position)}_&&(this.needLocalTransform?E.mul($,this.parent.transform,$):E.copy($,this.parent.transform)),this.transform=$,this.invTransform=this.invTransform||E.create(),E.invert(this.invTransform,$)}},setTransform:function(_){if(this.needTransform){var $=this.transform;_.transform($[0],$[1],$[2],$[3],$[4],$[5])}},lookAt:function(){var _=B.create();return function(D){this.transform||(this.transform=E.create());var A=this.transform;if(B.sub(_,D,this.position),!$(_[0])||!$(_[1])){B.normalize(_,_);var C=this.scale;A[2]=_[0]*C[1],A[3]=_[1]*C[1],A[0]=_[1]*C[0],A[1]=-_[0]*C[0],A[4]=this.position[0],A[5]=this.position[1],this.decomposeTransform()}}}(),decomposeTransform:function(){if(this.transform){var _=this.transform,$=_[0]*_[0]+_[1]*_[1],D=this.position,B=this.scale,A=this.rotation;G($-1)&&($=Math.sqrt($));var C=_[2]*_[2]+_[3]*_[3];G(C-1)&&(C=Math.sqrt(C)),D[0]=_[4],D[1]=_[5],B[0]=$,B[1]=C,B[2]=B[3]=0,A[0]=Math.atan2(-_[1]/C,_[0]/$),A[1]=A[2]=0}},transformCoordToLocal:function(_,$){var A=[_,$];return this.needTransform&&this.invTransform&&B.applyTransform(A,A,this.invTransform),A}},F}),C("zrender/Painter",["require","./config","./tool/util","./tool/log","./loadingEffect/Base","./Layer","./shape/Image"],function(_){"use strict";function $(){return!1}function H(){}function E($){return $?$.isBuildin?!0:"function"!=typeof $.resize||"function"!=typeof $.refresh?!1:!0:!1}var B=_("./config"),A=_("./tool/util"),D=_("./tool/log"),C=_("./loadingEffect/Base"),G=_("./Layer"),F=function(_,E){this.root=_,_.style["-webkit-tap-highlight-color"]="transparent",_.style["-webkit-user-select"]="none",_.style["user-select"]="none",_.style["-webkit-touch-callout"]="none",this.storage=E,_.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var D=document.createElement("div");this._domRoot=D,D.style.position="relative",D.style.overflow="hidden",D.style.width=this._width+"px",D.style.height=this._height+"px",_.appendChild(D),this._layers={},this._zlevelList=[],this._layerConfig={},this._loadingEffect=new C({}),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=document.createElement("div"),this._bgDom.style.cssText=["position:absolute;left:0px;top:0px;width:",this._width,"px;height:",this._height+"px;","-webkit-user-select:none;user-select;none;","-webkit-touch-callout:none;"].join(""),this._bgDom.setAttribute("data-zr-dom-id","bg"),this._bgDom.className=B.elementClassName,D.appendChild(this._bgDom),this._bgDom.onselectstart=$;var A=new G("_zrender_hover_",this);this._layers.hover=A,D.appendChild(A.dom),A.initContext(),A.dom.onselectstart=$,A.dom.style["-webkit-user-select"]="none",A.dom.style["user-select"]="none",A.dom.style["-webkit-touch-callout"]="none",this.refreshNextFrame=null};return F.prototype.render=function($){return this.isLoading()&&this.hideLoading(),this.refresh($,!0),this},F.prototype.refresh=function(_,$){var D=this.storage.getShapeList(!0);this._paintList(D,$);for(var C=0;C<this._zlevelList.length;C++){var B=this._zlevelList[C],A=this._layers[B];!A.isBuildin&&A.refresh&&A.refresh()}return"function"==typeof _&&_(),this},F.prototype._preProcessLayer=function($){$.unusedCount++,$.updateTransform()},F.prototype._postProcessLayer=function($){$.dirty=!1,1==$.unusedCount&&$.clear()},F.prototype._paintList=function(A,_){"undefined"==typeof _&&(_=!1),this._updateLayerStatus(A);var I,F,C;this.eachBuildinLayer(this._preProcessLayer);for(var E=0,H=A.length;H>E;E++){var G=A[E];if(F!==G.zlevel&&(I&&(I.needTransform&&C.restore(),C.flush&&C.flush()),F=G.zlevel,I=this.getLayer(F),I.isBuildin||D("ZLevel "+F+" has been used by unkown layer "+I.id),C=I.ctx,I.unusedCount=0,(I.dirty||_)&&I.clear(),I.needTransform&&(C.save(),I.setTransform(C))),(I.dirty||_)&&!G.invisible&&(!G.onbrush||G.onbrush&&!G.onbrush(C,!1)))if(B.catchBrushException){try{G.brush(C,!1,this.refreshNextFrame)}catch($){D($,"brush error of "+G.type,G)}}else G.brush(C,!1,this.refreshNextFrame);G.__dirty=!1}I&&(I.needTransform&&C.restore(),C.flush&&C.flush()),this.eachBuildinLayer(this._postProcessLayer)},F.prototype.getLayer=function(_){var $=this._layers[_];return $||($=new G(_,this),$.isBuildin=!0,this._layerConfig[_]&&A.merge($,this._layerConfig[_],!0),$.updateTransform(),this.insertLayer(_,$),$.initContext()),$},F.prototype.insertLayer=function(_,$){if(this._layers[_])return void D("ZLevel "+_+" has been used already");if(!E($))return void D("Layer of zlevel "+_+" is not valid");var F=this._zlevelList.length,B=null,A=-1;if(F>0&&_>this._zlevelList[0]){for(A=0;F-1>A&&!(this._zlevelList[A]<_&&this._zlevelList[A+1]>_);A++);B=this._layers[this._zlevelList[A]]}this._zlevelList.splice(A+1,0,_);var C=B?B.dom:this._bgDom;C.nextSibling?C.parentNode.insertBefore($.dom,C.nextSibling):C.parentNode.appendChild($.dom),this._layers[_]=$},F.prototype.eachLayer=function(_,$){for(var B=0;B<this._zlevelList.length;B++){var A=this._zlevelList[B];_.call($,this._layers[A],A)}},F.prototype.eachBuildinLayer=function(_,$){for(var C=0;C<this._zlevelList.length;C++){var B=this._zlevelList[C],A=this._layers[B];A.isBuildin&&_.call($,A,B)}},F.prototype.eachOtherLayer=function(_,$){for(var C=0;C<this._zlevelList.length;C++){var B=this._zlevelList[C],A=this._layers[B];A.isBuildin||_.call($,A,B)}},F.prototype.getLayers=function(){return this._layers},F.prototype._updateLayerStatus=function(_){var $=this._layers,F={};this.eachBuildinLayer(function(_,$){F[$]=_.elCount,_.elCount=0});for(var E=0,B=_.length;B>E;E++){var A=_[E],D=A.zlevel,C=$[D];if(C){if(C.elCount++,C.dirty)continue;C.dirty=A.__dirty}}this.eachBuildinLayer(function(_,$){F[$]!==_.elCount&&(_.dirty=!0)})},F.prototype.refreshShapes=function(_,$){for(var C=0,B=_.length;B>C;C++){var A=_[C];A.modSelf()}return this.refresh($),this},F.prototype.setLoadingEffect=function($){return this._loadingEffect=$,this},F.prototype.clear=function(){return this.eachBuildinLayer(this._clearLayer),this},F.prototype._clearLayer=function($){$.clear()},F.prototype.modLayer=function(_,$){if($){this._layerConfig[_]?A.merge(this._layerConfig[_],$,!0):this._layerConfig[_]=$;var B=this._layers[_];B&&A.merge(B,this._layerConfig[_],!0)}},F.prototype.delLayer=function(_){var $=this._layers[_];$&&(this.modLayer(_,{position:$.position,rotation:$.rotation,scale:$.scale}),$.dom.parentNode.removeChild($.dom),delete this._layers[_],this._zlevelList.splice(A.indexOf(this._zlevelList,_),1))},F.prototype.refreshHover=function(){this.clearHover();for(var _=this.storage.getHoverShapes(!0),$=0,B=_.length;B>$;$++)this._brushHover(_[$]);var A=this._layers.hover.ctx;return A.flush&&A.flush(),this.storage.delHover(),this},F.prototype.clearHover=function(){var $=this._layers.hover;return $&&$.clear(),this},F.prototype.showLoading=function($){return this._loadingEffect&&this._loadingEffect.stop(),$&&this.setLoadingEffect($),this._loadingEffect.start(this),this.loading=!0,this},F.prototype.hideLoading=function(){return this._loadingEffect.stop(),this.clearHover(),this.loading=!1,this},F.prototype.isLoading=function(){return this.loading},F.prototype.resize=function(){var _=this._domRoot;_.style.display="none";var $=this._getWidth(),B=this._getHeight();if(_.style.display="",this._width!=$||B!=this._height){this._width=$,this._height=B,_.style.width=$+"px",_.style.height=B+"px";for(var A in this._layers)this._layers[A].resize($,B);this.refresh(null,!0)}return this},F.prototype.clearLayer=function(_){var $=this._layers[_];$&&$.clear()},F.prototype.dispose=function(){this.isLoading()&&this.hideLoading(),this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},F.prototype.getDomHover=function(){return this._layers.hover.dom},F.prototype.toDataURL=function(_,$,H){if(window.G_vmlCanvasManager)return null;var E=new G("image",this);this._bgDom.appendChild(E.dom),E.initContext();var A=E.ctx;E.clearColor=$||"#fff",E.clear();var C=this;this.storage.iterShape(function(_){if(!_.invisible&&(!_.onbrush||_.onbrush&&!_.onbrush(A,!1)))if(B.catchBrushException){try{_.brush(A,!1,C.refreshNextFrame)}catch($){D($,"brush error of "+_.type,_)}}else _.brush(A,!1,C.refreshNextFrame)},{normal:"up",update:!0});var F=E.dom.toDataURL(_,H);return A=null,this._bgDom.removeChild(E.dom),F},F.prototype.getWidth=function(){return this._width},F.prototype.getHeight=function(){return this._height},F.prototype._getWidth=function(){var _=this.root,$=_.currentStyle||document.defaultView.getComputedStyle(_);return((_.clientWidth||parseInt($.width,10))-parseInt($.paddingLeft,10)-parseInt($.paddingRight,10)).toFixed(0)-0},F.prototype._getHeight=function(){var _=this.root,$=_.currentStyle||document.defaultView.getComputedStyle(_);return((_.clientHeight||parseInt($.height,10))-parseInt($.paddingTop,10)-parseInt($.paddingBottom,10)).toFixed(0)-0},F.prototype._brushHover=function(_){var $=this._layers.hover.ctx;if(!_.onbrush||_.onbrush&&!_.onbrush($,!0)){var C=this.getLayer(_.zlevel);if(C.needTransform&&($.save(),C.setTransform($)),B.catchBrushException){try{_.brush($,!0,this.refreshNextFrame)}catch(A){D(A,"hoverBrush error of "+_.type,_)}}else _.brush($,!0,this.refreshNextFrame);C.needTransform&&$.restore()}},F.prototype._shapeToImage=function(A,I,F,C,B){var E=document.createElement("canvas"),D=E.getContext("2d");E.style.width=F+"px",E.style.height=C+"px",E.setAttribute("width",F*B),E.setAttribute("height",C*B),D.clearRect(0,0,F*B,C*B);var H={position:I.position,rotation:I.rotation,scale:I.scale};I.position=[0,0,0],I.rotation=0,I.scale=[1,1],I&&I.brush(D,!1);var G=_("./shape/Image"),$=new G({id:A,style:{x:0,y:0,image:E}});return null!=H.position&&($.position=I.position=H.position),null!=H.rotation&&($.rotation=I.rotation=H.rotation),null!=H.scale&&($.scale=I.scale=H.scale),$},F.prototype._createShapeToImageProcessor=function(){if(window.G_vmlCanvasManager)return H;var $=this;return function(_,D,C,A){return $._shapeToImage(_,D,C,A,B.devicePixelRatio)}},F}),C("zrender/Storage",["require","./tool/util","./Group"],function(_){"use strict";function $(_,$){return _.zlevel==$.zlevel?_.z==$.z?_.__renderidx-$.__renderidx:_.z-$.z:_.zlevel-$.zlevel}var D=_("./tool/util"),C=_("./Group"),B={hover:!1,normal:"down",update:!1},A=function(){this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],this._shapeListOffset=0};return A.prototype.iterShape=function(_,$){if($||($=B),$.hover)for(var D=0,C=this._hoverElements.length;C>D;D++){var A=this._hoverElements[D];if(A.updateTransform(),_(A))return this}switch($.update&&this.updateShapeList(),$.normal){case"down":for(C=this._shapeList.length;C--;)if(_(this._shapeList[C]))return this;break;default:for(D=0,C=this._shapeList.length;C>D;D++)if(_(this._shapeList[D]))return this}return this},A.prototype.getHoverShapes=function(_){for(var G=[],E=0,B=this._hoverElements.length;B>E;E++){G.push(this._hoverElements[E]);var A=this._hoverElements[E].hoverConnect;if(A){var D;A=A instanceof Array?A:[A];for(var C=0,F=A.length;F>C;C++)D=A[C].id?A[C]:this.get(A[C]),D&&G.push(D)}}if(G.sort($),_)for(E=0,B=G.length;B>E;E++)G[E].updateTransform();return G},A.prototype.getShapeList=function($){return $&&this.updateShapeList(),this._shapeList},A.prototype.updateShapeList=function(){this._shapeListOffset=0;for(var _=0,B=this._roots.length;B>_;_++){var A=this._roots[_];this._updateAndAddShape(A)}this._shapeList.length=this._shapeListOffset;for(_=0,B=this._shapeList.length;B>_;_++)this._shapeList[_].__renderidx=_;this._shapeList.sort($)},A.prototype._updateAndAddShape=function(_,$){if(!_.ignore)if(_.updateTransform(),_.clipShape&&(_.clipShape.parent=_,_.clipShape.updateTransform(),$?($=$.slice(),$.push(_.clipShape)):$=[_.clipShape]),"group"==_.type){for(var B=0;B<_._children.length;B++){var A=_._children[B];A.__dirty=_.__dirty||A.__dirty,this._updateAndAddShape(A,$)}_.__dirty=!1}else _.__clipShapes=$,this._shapeList[this._shapeListOffset++]=_},A.prototype.mod=function(_,$){if("string"==typeof _&&(_=this._elements[_]),_&&(_.modSelf(),$))if($.parent||$._storage||$.__clipShapes){var B={};for(var A in $)"parent"!==A&&"_storage"!==A&&"__clipShapes"!==A&&$.hasOwnProperty(A)&&(B[A]=$[A]);D.merge(_,B,!0)}else D.merge(_,$,!0);return this},A.prototype.drift=function(_,$,B){var A=this._elements[_];return A&&(A.needTransform=!0,"horizontal"===A.draggable?B=0:"vertical"===A.draggable&&($=0),(!A.ondrift||A.ondrift&&!A.ondrift($,B))&&A.drift($,B)),this},A.prototype.addHover=function($){return $.updateNeedTransform(),this._hoverElements.push($),this},A.prototype.delHover=function(){return this._hoverElements=[],this},A.prototype.hasHoverShape=function(){return this._hoverElements.length>0},A.prototype.addRoot=function($){this._elements[$.id]||($ instanceof C&&$.addChildrenToStorage(this),this.addToMap($),this._roots.push($))},A.prototype.delRoot=function(_){if("undefined"==typeof _){for(var $=0;$<this._roots.length;$++){var B=this._roots[$];B instanceof C&&B.delChildrenFromStorage(this)}return this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],void(this._shapeListOffset=0)}if(_ instanceof Array){for(var $=0,A=_.length;A>$;$++)this.delRoot(_[$])}else{var F;F="string"==typeof _?this._elements[_]:_;var E=D.indexOf(this._roots,F);E>=0&&(this.delFromMap(F.id),this._roots.splice(E,1),F instanceof C&&F.delChildrenFromStorage(this))}},A.prototype.addToMap=function($){return $ instanceof C&&($._storage=this),$.modSelf(),this._elements[$.id]=$,this},A.prototype.get=function($){return this._elements[$]},A.prototype.delFromMap=function(_){var $=this._elements[_];return $&&(delete this._elements[_],$ instanceof C&&($._storage=null)),this},A.prototype.dispose=function(){this._elements=this._renderList=this._roots=this._hoverElements=null},A}),C("zrender/animation/Animation",["require","./Clip","../tool/color","../tool/util","../tool/event"],function(L){"use strict";function B(_,$){return _[$]}function J(_,$,A){_[$]=A}function F(_,$,A){return($-_)*A+_}function N(_,$,H,B,A){var D=_.length;if(1==A){for(var C=0;D>C;C++)B[C]=F(_[C],$[C],H)}else for(var G=_[0].length,C=0;D>C;C++)for(var E=0;G>E;E++)B[C][E]=F(_[C][E],$[C][E],H)}function M($){switch(typeof $){case"undefined":case"string":return!1}return"undefined"!=typeof $.length}function E(I,_,G,C,K,J,B,F,E){var $=I.length;if(1==E){for(var A=0;$>A;A++)F[A]=D(I[A],_[A],G[A],C[A],K,J,B)}else for(var L=I[0].length,A=0;$>A;A++)for(var H=0;L>H;H++)F[A][H]=D(I[A][H],_[A][H],G[A][H],C[A][H],K,J,B)}function D(_,$,G,E,B,A,D){var C=0.5*(G-_),F=0.5*(E-$);return(2*($-G)+C+F)*D+(-3*($-G)-2*C-F)*A+C*B+$}function I(A){if(M(A)){var _=A.length;if(M(A[0])){for(var C=[],B=0;_>B;B++)C.push($.call(A[B]));return C}return $.call(A)}return A}function G($){return $[0]=Math.floor($[0]),$[1]=Math.floor($[1]),$[2]=Math.floor($[2]),"rgba("+$.join(",")+")"}var A=L("./Clip"),C=L("../tool/color"),O=L("../tool/util"),K=L("../tool/event").Dispatcher,_=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function($){setTimeout($,16)},$=Array.prototype.slice,H=function($){$=$||{},this.stage=$.stage||{},this.onframe=$.onframe||function(){},this._clips=[],this._running=!1,this._time=0,K.call(this)};H.prototype={add:function($){this._clips.push($)},remove:function(_){if(_.__inStep)_.__needsRemove=!0;else{var $=O.indexOf(this._clips,_);$>=0&&this._clips.splice($,1)}},_update:function(){for(var _=(new Date).getTime(),$=_-this._time,G=this._clips,E=G.length,B=[],A=[],D=0;E>D;D++){var C=G[D];C.__inStep=!0;var F=C.step(_);C.__inStep=!1,F&&(B.push(F),A.push(C))}for(D=0;E>D;)G[D].__needsRemove?(G[D]=G[E-1],G.pop(),E--):D++;E=B.length;for(D=0;E>D;D++)A[D].fire(B[D]);this._time=_,this.onframe($),this.dispatch("frame",$),this.stage.update&&this.stage.update()},start:function(){function $(){A._running&&(_($),A._update())}var A=this;this._running=!0,this._time=(new Date).getTime(),_($)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(_,$){$=$||{};var A=new P(_,$.loop,$.getter,$.setter);return A.animation=this,A},constructor:H},O.merge(H.prototype,K.prototype,!0);var P=function($,C,A,_){this._tracks={},this._target=$,this._loop=C||!1,this._getter=A||B,this._setter=_||J,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return P.prototype={when:function(_,$){for(var A in $)this._tracks[A]||(this._tracks[A]=[],0!==_&&this._tracks[A].push({time:0,value:I(this._getter(this._target,A))})),this._tracks[A].push({time:parseInt(_,10),value:$[A]});return this},during:function($){return this._onframeList.push($),this},start:function(I){var H=this,L=this._setter,K=this._getter,J="spline"===I,B=function(){if(H._clipCount--,0===H._clipCount){H._tracks={};for(var $=H._doneList.length,_=0;$>_;_++)H._doneList[_].call(H)}},_=function(P,_){var W=P.length;if(W){var f=P[0].value,h=M(f),a=!1,i=h&&M(f[0])?2:1;P.sort(function(_,$){return _.time-$.time});var Q;if(W){Q=P[W-1].time;for(var d=[],b=[],g=0;W>g;g++){d.push(P[g].time/Q);var S=P[g].value;"string"==typeof S&&(S=C.toArray(S),0===S.length&&(S[0]=S[1]=S[2]=0,S[3]=1),a=!0),b.push(S)}var T,g,Z,U,O,R,Y,X=0,V=0;if(a)var c=[0,0,0,0];var e=function(A,B){if(V>B){for(T=Math.min(X+1,W-1),g=T;g>=0&&!(d[g]<=B);g--);g=Math.min(g,W-2)}else{for(g=X;W>g&&!(d[g]>B);g++);g=Math.min(g-1,W-2)}X=g,V=B;var $=d[g+1]-d[g];if(0!==$){if(Z=(B-d[g])/$,J){if(O=b[g],U=b[0===g?g:g-1],R=b[g>W-2?W-1:g+1],Y=b[g>W-3?W-1:g+2],h)E(U,O,R,Y,Z,Z*Z,Z*Z*Z,K(A,_),i);else{var C;a?(C=E(U,O,R,Y,Z,Z*Z,Z*Z*Z,c,1),C=G(c)):C=D(U,O,R,Y,Z,Z*Z,Z*Z*Z),L(A,_,C)}}else if(h)N(b[g],b[g+1],Z,K(A,_),i);else{C;a?(N(b[g],b[g+1],Z,c,1),C=G(c)):C=F(b[g],b[g+1],Z),L(A,_,C)}for(g=0;g<H._onframeList.length;g++)H._onframeList[g](A,B)}},$=new A({target:H._target,life:Q,loop:H._loop,delay:H._delay,onframe:e,ondestroy:B});I&&"spline"!==I&&($.easing=I),H._clipList.push($),H._clipCount++,H.animation.add($)}}};for(var $ in this._tracks)_(this._tracks[$],$);return this},stop:function(){for(var _=0;_<this._clipList.length;_++){var $=this._clipList[_];this.animation.remove($)}this._clipList=[]},delay:function($){return this._delay=$,this},done:function($){return $&&this._doneList.push($),this}},H}),C("zrender/tool/vector",[],function(){var _="undefined"==typeof Float32Array?Array:Float32Array,$={create:function($,B){var A=new _(2);return A[0]=$||0,A[1]=B||0,A},copy:function(_,$){return _[0]=$[0],_[1]=$[1],_},clone:function($){var A=new _(2);return A[0]=$[0],A[1]=$[1],A},set:function(_,$,A){return _[0]=$,_[1]=A,_},add:function(_,$,A){return _[0]=$[0]+A[0],_[1]=$[1]+A[1],_},scaleAndAdd:function(_,$,B,A){return _[0]=$[0]+B[0]*A,_[1]=$[1]+B[1]*A,_},sub:function(_,$,A){return _[0]=$[0]-A[0],_[1]=$[1]-A[1],_},len:function($){return Math.sqrt(this.lenSquare($))},lenSquare:function($){return $[0]*$[0]+$[1]*$[1]},mul:function(_,$,A){return _[0]=$[0]*A[0],_[1]=$[1]*A[1],_},div:function(_,$,A){return _[0]=$[0]/A[0],_[1]=$[1]/A[1],_},dot:function(_,$){return _[0]*$[0]+_[1]*$[1]},scale:function(_,$,A){return _[0]=$[0]*A,_[1]=$[1]*A,_},normalize:function(_,B){var A=$.len(B);return 0===A?(_[0]=0,_[1]=0):(_[0]=B[0]/A,_[1]=B[1]/A),_},distance:function(_,$){return Math.sqrt((_[0]-$[0])*(_[0]-$[0])+(_[1]-$[1])*(_[1]-$[1]))},distanceSquare:function(_,$){return(_[0]-$[0])*(_[0]-$[0])+(_[1]-$[1])*(_[1]-$[1])},negate:function(_,$){return _[0]=-$[0],_[1]=-$[1],_},lerp:function(_,$,B,A){return _[0]=$[0]+A*(B[0]-$[0]),_[1]=$[1]+A*(B[1]-$[1]),_},applyTransform:function(_,$,C){var B=$[0],A=$[1];return _[0]=C[0]*B+C[2]*A+C[4],_[1]=C[1]*B+C[3]*A+C[5],_},min:function(_,$,A){return _[0]=Math.min($[0],A[0]),_[1]=Math.min($[1],A[1]),_},max:function(_,$,A){return _[0]=Math.max($[0],A[0]),_[1]=Math.max($[1],A[1]),_}};return $.length=$.len,$.lengthSquare=$.lenSquare,$.dist=$.distance,$.distSquare=$.distanceSquare,$}),C("zrender/Handler",["require","./config","./tool/env","./tool/event","./tool/util","./tool/vector","./tool/matrix","./mixin/Eventful"],function(L){"use strict";function B(_,$){return function(B,A){return _.call($,B,A)}}function J(_,$){return function(C,B,A){return _.call($,C,B,A)}}function F(_){for(var C=K.length;C--;){var A=K[C];_["_"+A+"Handler"]=B($[A],_)}}function N(_,$,C){if(this._draggingTarget&&this._draggingTarget.id==_.id||_.isSilent())return!1;var B=this._event;if(_.isCover($,C)){_.hoverable&&this.storage.addHover(_);for(var A=_.parent;A;){if(A.clipShape&&!A.clipShape.isCover(this._mouseX,this._mouseY))return!1;A=A.parent}return this._lastHover!=_&&(this._processOutShape(B),this._processDragLeave(B),this._lastHover=_,this._processDragEnter(B)),this._processOverShape(B),this._processDragOver(B),this._hasfound=1,!0}return!1}var M=L("./config"),E=L("./tool/env"),D=L("./tool/event"),I=L("./tool/util"),G=L("./tool/vector"),A=L("./tool/matrix"),C=M.EVENT,O=L("./mixin/Eventful"),K=["resize","click","dblclick","mousewheel","mousemove","mouseout","mouseup","mousedown","touchstart","touchend","touchmove"],_=function(_){if(window.G_vmlCanvasManager)return!0;_=_||window.event;var $=_.toElement||_.relatedTarget||_.srcElement||_.target;return $&&$.className.match(M.elementClassName)},$={resize:function($){$=$||window.event,this._lastHover=null,this._isMouseDown=0,this.dispatch(C.RESIZE,$)},click:function(A,$){if(_(A)||$){A=this._zrenderEventFixed(A);var B=this._lastHover;(B&&B.clickable||!B)&&this._clickThreshold<5&&this._dispatchAgency(B,C.CLICK,A),this._mousemoveHandler(A)}},dblclick:function(A,$){if(_(A)||$){A=A||window.event,A=this._zrenderEventFixed(A);var B=this._lastHover;(B&&B.clickable||!B)&&this._clickThreshold<5&&this._dispatchAgency(B,C.DBLCLICK,A),this._mousemoveHandler(A)}},mousewheel:function(A,$){if(_(A)||$){A=this._zrenderEventFixed(A);var H=A.wheelDelta||-A.detail,G=H>0?1.1:1/1.1,E=!1,B=this._mouseX,F=this._mouseY;this.painter.eachBuildinLayer(function($){var C=$.position;if($.zoomable){$.__zoom=$.__zoom||1;var _=$.__zoom;_*=G,_=Math.max(Math.min($.maxZoom,_),$.minZoom),G=_/$.__zoom,$.__zoom=_,C[0]-=(B-C[0])*(G-1),C[1]-=(F-C[1])*(G-1),$.scale[0]*=G,$.scale[1]*=G,$.dirty=!0,E=!0,D.stop(A)}}),E&&this.painter.refresh(),this._dispatchAgency(this._lastHover,C.MOUSEWHEEL,A),this._mousemoveHandler(A)}},mousemove:function(A,$){if((_(A)||$)&&!this.painter.isLoading()){A=this._zrenderEventFixed(A),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=D.getX(A),this._mouseY=D.getY(A);var G=this._mouseX-this._lastX,F=this._mouseY-this._lastY;this._processDragStart(A),this._hasfound=0,this._event=A,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(A),this._processDragLeave(A)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var E="default";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,G,F),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget),this._clickThreshold++;else if(this._isMouseDown){var B=!1;this.painter.eachBuildinLayer(function($){$.panable&&(E="move",$.position[0]+=G,$.position[1]+=F,B=!0,$.dirty=!0)}),B&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?E="move":this._hasfound&&this._lastHover.clickable&&(E="pointer"),this.root.style.cursor=E,this._dispatchAgency(this._lastHover,C.MOUSEMOVE,A),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()}},mouseout:function(A,$){if(_(A)||$){A=this._zrenderEventFixed(A);var B=A.toElement||A.relatedTarget;if(B!=this.root)for(;B&&9!=B.nodeType;){if(B==this.root)return void this._mousemoveHandler(A);B=B.parentNode}A.zrenderX=this._lastX,A.zrenderY=this._lastY,this.root.style.cursor="default",this._isMouseDown=0,this._processOutShape(A),this._processDrop(A),this._processDragEnd(A),this.painter.isLoading()||this.painter.refreshHover(),this.dispatch(C.GLOBALOUT,A)}},mousedown:function(A,$){if(_(A)||$){if(this._clickThreshold=0,2==this._lastDownButton)return this._lastDownButton=A.button,void(this._mouseDownTarget=null);this._lastMouseDownMoment=new Date,A=this._zrenderEventFixed(A),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,C.MOUSEDOWN,A),this._lastDownButton=A.button}},mouseup:function(A,$){(_(A)||$)&&(A=this._zrenderEventFixed(A),this.root.style.cursor="default",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,C.MOUSEUP,A),this._processDrop(A),this._processDragEnd(A))},touchstart:function(A,$){(_(A)||$)&&(A=this._zrenderEventFixed(A,!0),this._lastTouchMoment=new Date,this._mobileFindFixed(A),this._mousedownHandler(A))},touchmove:function(A,$){(_(A)||$)&&(A=this._zrenderEventFixed(A,!0),this._mousemoveHandler(A),this._isDragging&&D.stop(A))},touchend:function(A,$){if(_(A)||$){A=this._zrenderEventFixed(A,!0),this._mouseupHandler(A);var B=new Date;B-this._lastTouchMoment<C.touchClickDelay&&(this._mobileFindFixed(A),this._clickHandler(A),B-this._lastClickMoment<C.touchClickDelay/2&&(this._dblclickHandler(A),this._lastHover&&this._lastHover.clickable&&D.stop(A)),this._lastClickMoment=B),this.painter.clearHover()}}},H=function(_,$,A){O.call(this),this.root=_,this.storage=$,this.painter=A,this._lastX=this._lastY=this._mouseX=this._mouseY=0,this._findHover=J(N,this),this._domHover=A.getDomHover(),F(this),window.addEventListener?(window.addEventListener("resize",this._resizeHandler),E.os.tablet||E.os.phone?(_.addEventListener("touchstart",this._touchstartHandler),_.addEventListener("touchmove",this._touchmoveHandler),_.addEventListener("touchend",this._touchendHandler)):(_.addEventListener("click",this._clickHandler),_.addEventListener("dblclick",this._dblclickHandler),_.addEventListener("mousewheel",this._mousewheelHandler),_.addEventListener("mousemove",this._mousemoveHandler),_.addEventListener("mousedown",this._mousedownHandler),_.addEventListener("mouseup",this._mouseupHandler)),_.addEventListener("DOMMouseScroll",this._mousewheelHandler),_.addEventListener("mouseout",this._mouseoutHandler)):(window.attachEvent("onresize",this._resizeHandler),_.attachEvent("onclick",this._clickHandler),_.ondblclick=this._dblclickHandler,_.attachEvent("onmousewheel",this._mousewheelHandler),_.attachEvent("onmousemove",this._mousemoveHandler),_.attachEvent("onmouseout",this._mouseoutHandler),_.attachEvent("onmousedown",this._mousedownHandler),_.attachEvent("onmouseup",this._mouseupHandler))};H.prototype.on=function(_,$,A){return this.bind(_,$,A),this},H.prototype.un=function(_,$){return this.unbind(_,$),this},H.prototype.trigger=function(_,$){switch(_){case C.RESIZE:case C.CLICK:case C.DBLCLICK:case C.MOUSEWHEEL:case C.MOUSEMOVE:case C.MOUSEDOWN:case C.MOUSEUP:case C.MOUSEOUT:this["_"+_+"Handler"]($,!0)}},H.prototype.dispose=function(){var $=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),E.os.tablet||E.os.phone?($.removeEventListener("touchstart",this._touchstartHandler),$.removeEventListener("touchmove",this._touchmoveHandler),$.removeEventListener("touchend",this._touchendHandler)):($.removeEventListener("click",this._clickHandler),$.removeEventListener("dblclick",this._dblclickHandler),$.removeEventListener("mousewheel",this._mousewheelHandler),$.removeEventListener("mousemove",this._mousemoveHandler),$.removeEventListener("mousedown",this._mousedownHandler),$.removeEventListener("mouseup",this._mouseupHandler)),$.removeEventListener("DOMMouseScroll",this._mousewheelHandler),$.removeEventListener("mouseout",this._mouseoutHandler)):(window.detachEvent("onresize",this._resizeHandler),$.detachEvent("onclick",this._clickHandler),$.detachEvent("dblclick",this._dblclickHandler),$.detachEvent("onmousewheel",this._mousewheelHandler),$.detachEvent("onmousemove",this._mousemoveHandler),$.detachEvent("onmouseout",this._mouseoutHandler),$.detachEvent("onmousedown",this._mousedownHandler),$.detachEvent("onmouseup",this._mouseupHandler)),this.root=this._domHover=this.storage=this.painter=null,this.un()},H.prototype._processDragStart=function(_){var $=this._lastHover;if(this._isMouseDown&&$&&$.draggable&&!this._draggingTarget&&this._mouseDownTarget==$){if($.dragEnableTime&&new Date-this._lastMouseDownMoment<$.dragEnableTime)return;var A=$;this._draggingTarget=A,this._isDragging=1,A.invisible=!0,this.storage.mod(A.id),this._dispatchAgency(A,C.DRAGSTART,_),this.painter.refresh()}},H.prototype._processDragEnter=function($){this._draggingTarget&&this._dispatchAgency(this._lastHover,C.DRAGENTER,$,this._draggingTarget)},H.prototype._processDragOver=function($){this._draggingTarget&&this._dispatchAgency(this._lastHover,C.DRAGOVER,$,this._draggingTarget)},H.prototype._processDragLeave=function($){this._draggingTarget&&this._dispatchAgency(this._lastHover,C.DRAGLEAVE,$,this._draggingTarget)},H.prototype._processDrop=function($){this._draggingTarget&&(this._draggingTarget.invisible=!1,this.storage.mod(this._draggingTarget.id),this.painter.refresh(),this._dispatchAgency(this._lastHover,C.DROP,$,this._draggingTarget))},H.prototype._processDragEnd=function($){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,C.DRAGEND,$),this._lastHover=null),this._isDragging=0,this._draggingTarget=null},H.prototype._processOverShape=function($){this._dispatchAgency(this._lastHover,C.MOUSEOVER,$)},H.prototype._processOutShape=function($){this._dispatchAgency(this._lastHover,C.MOUSEOUT,$)},H.prototype._dispatchAgency=function(_,$,F,E){var B="on"+$,A={type:$,event:F,target:_,cancelBubble:!1},D=_;for(E&&(A.dragged=E);D&&(D[B]&&(A.cancelBubble=D[B](A)),D.dispatch($,A),D=D.parent,!A.cancelBubble););if(_)A.cancelBubble||this.dispatch($,A);else if(!E){var C={type:$,event:F};this.dispatch($,C),this.painter.eachOtherLayer(function(_){"function"==typeof _[B]&&_[B](C),_.dispatch&&_.dispatch($,C)})}},H.prototype._iterateAndFindHover=function(){var $=A.create();return function(){for(var _,F,E=this.storage.getShapeList(),C=[0,0],B=E.length-1;B>=0;B--){var D=E[B];if(_!==D.zlevel&&(F=this.painter.getLayer(D.zlevel,F),C[0]=this._mouseX,C[1]=this._mouseY,F.needTransform&&(A.invert($,F.transform),G.applyTransform(C,C,$))),this._findHover(D,C[0],C[1]))break}}}();var P=[{x:10},{x:-20},{x:10,y:10},{y:-20}];return H.prototype._mobileFindFixed=function(_){this._lastHover=null,this._mouseX=_.zrenderX,this._mouseY=_.zrenderY,this._event=_,this._iterateAndFindHover();for(var $=0;!this._lastHover&&$<P.length;$++){var A=P[$];A.x&&(this._mouseX+=A.x),A.y&&(this._mouseY+=A.y),this._iterateAndFindHover()}this._lastHover&&(_.zrenderX=this._mouseX,_.zrenderY=this._mouseY)},H.prototype._zrenderEventFixed=function(_,$){if(_.zrenderFixed)return _;if($){var C="touchend"!=_.type?_.targetTouches[0]:_.changedTouches[0];if(C){var B=this.painter._domRoot.getBoundingClientRect();_.zrenderX=C.clientX-B.left,_.zrenderY=C.clientY-B.top}}else{_=_||window.event;var A=_.toElement||_.relatedTarget||_.srcElement||_.target;A&&A!=this._domHover&&(_.zrenderX=("undefined"!=typeof _.offsetX?_.offsetX:_.layerX)+A.offsetLeft,_.zrenderY=("undefined"!=typeof _.offsetY?_.offsetY:_.layerY)+A.offsetTop)}return _.zrenderFixed=1,_},I.merge(H.prototype,O.prototype,!0),H}),C("zrender/shape/Star",["require","../tool/math","./Base","../tool/util"],function(_){var $=_("../tool/math"),E=$.sin,D=$.cos,B=Math.PI,A=_("./Base"),C=function($){A.call(this,$)};return C.prototype={type:"star",buildPath:function(M,C){var N=C.n;if(N&&!(2>N)){var H=C.x,G=C.y,K=C.r,I=C.r0;null==I&&(I=N>4?K*D(2*B/N)/D(B/N):K/3);var A=B/N,F=-B/2,O=H+K*D(F),L=G+K*E(F);F+=A;var _=C.pointList=[];_.push([O,L]);for(var $,J=0,P=2*N-1;P>J;J++)$=J%2===0?I:K,_.push([H+$*D(F),G+$*E(F)]),F+=A;_.push([O,L]),M.moveTo(_[0][0],_[0][1]);for(J=0;J<_.length;J++)M.lineTo(_[J][0],_[J][1]);M.closePath()}},getRect:function(_){if(_.__rect)return _.__rect;var $;return $="stroke"==_.brushType||"fill"==_.brushType?_.lineWidth||1:0,_.__rect={x:Math.round(_.x-_.r-$/2),y:Math.round(_.y-_.r-$/2),width:2*_.r+$,height:2*_.r+$},_.__rect}},_("../tool/util").inherits(C,A),C}),C("zrender/shape/Heart",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(_){"use strict";var $=_("./Base"),C=_("./util/PathProxy"),B=_("../tool/area"),A=function(_){$.call(this,_),this._pathProxy=new C};return A.prototype={type:"heart",buildPath:function(_,$){var A=this._pathProxy||new C;A.begin(_),A.moveTo($.x,$.y),A.bezierCurveTo($.x+$.a/2,$.y-2*$.b/3,$.x+2*$.a,$.y+$.b/3,$.x,$.y+$.b),A.bezierCurveTo($.x-2*$.a,$.y+$.b/3,$.x-$.a/2,$.y-2*$.b/3,$.x,$.y),A.closePath()},getRect:function($){return $.__rect?$.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,$),this._pathProxy.fastBoundingRect())},isCover:function(_,$){var A=this.transformCoordToLocal(_,$);return _=A[0],$=A[1],this.isCoverRect(_,$)?B.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,_,$):void 0}},_("../tool/util").inherits(A,$),A}),C("zrender/shape/Droplet",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(_){"use strict";var $=_("./Base"),C=_("./util/PathProxy"),B=_("../tool/area"),A=function(_){$.call(this,_),this._pathProxy=new C};return A.prototype={type:"droplet",buildPath:function(_,$){var A=this._pathProxy||new C;A.begin(_),A.moveTo($.x,$.y+$.a),A.bezierCurveTo($.x+$.a,$.y+$.a,$.x+3*$.a/2,$.y-$.a/3,$.x,$.y-$.b),A.bezierCurveTo($.x-3*$.a/2,$.y-$.a/3,$.x-$.a,$.y+$.a,$.x,$.y+$.a),A.closePath()},getRect:function($){return $.__rect?$.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,$),this._pathProxy.fastBoundingRect())},isCover:function(_,$){var A=this.transformCoordToLocal(_,$);return _=A[0],$=A[1],this.isCoverRect(_,$)?B.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,_,$):void 0}},_("../tool/util").inherits(A,$),A}),C("zrender/shape/util/smoothSpline",["require","../../tool/vector"],function(_){function $(_,$,G,E,B,A,D){var C=0.5*(G-_),F=0.5*(E-$);return(2*($-G)+C+F)*D+(-3*($-G)-2*C-F)*A+C*B+$}var A=_("../../tool/vector");return function(L,G){for(var N=L.length,M=[],F=0,E=1;N>E;E++)F+=A.distance(L[E-1],L[E]);var J=F/5;J=N>J?N:J;for(E=0;J>E;E++){var H,C,D,O=E/(J-1)*(G?N:N-1),K=Math.floor(O),B=O-K,_=L[K%N];G?(H=L[(K-1+N)%N],C=L[(K+1)%N],D=L[(K+2)%N]):(H=L[0===K?K:K-1],C=L[K>N-2?N-1:K+1],D=L[K>N-3?N-1:K+2]);var I=B*B,P=B*I;M.push([$(H[0],_[0],C[0],D[0],B,I,P),$(H[1],_[1],C[1],D[1],B,I,P)])}return M}}),C("zrender/shape/util/smoothBezier",["require","../../tool/vector"],function(_){var $=_("../../tool/vector");return function(N,K,G,P){var O,F,E,J,H=[],B=[],D=[],Q=[],M=!!P;if(M){E=[1/0,1/0],J=[-1/0,-1/0];for(var A=0,_=N.length;_>A;A++)$.min(E,E,N[A]),$.max(J,J,N[A]);$.min(E,E,P[0]),$.max(J,J,P[1])}for(A=0,_=N.length;_>A;A++){var O,F,I=N[A];if(G)O=N[A?A-1:_-1],F=N[(A+1)%_];else{if(0===A||A===_-1){H.push($.clone(N[A]));continue}O=N[A-1],F=N[A+1]}$.sub(B,F,O),$.scale(B,B,K);var R=$.distance(I,O),S=$.distance(I,F),L=R+S;0!==L&&(R/=L,S/=L),$.scale(D,B,-R),$.scale(Q,B,S);var T=$.add([],I,D),C=$.add([],I,Q);M&&($.max(T,T,E),$.min(T,T,J),$.max(C,C,E),$.min(C,C,J)),H.push(T),H.push(C)}return G&&H.push($.clone(H.shift())),H}}),C("zrender/shape/util/dashedLineTo",[],function(){var $=[5,5];return function(A,J,G,D,B,F){if(A.setLineDash)return $[0]=$[1]=F,A.setLineDash($),A.moveTo(J,G),void A.lineTo(D,B);F="number"!=typeof F?5:F;var E=D-J,I=B-G,H=Math.floor(Math.sqrt(E*E+I*I)/F);E/=H,I/=H;for(var _=!0,C=0;H>C;++C)_?A.moveTo(J,G):A.lineTo(J,G),_=!_,J+=E,G+=I;A.lineTo(D,B)}}),C("zrender/loadingEffect/Base",["require","../tool/util","../shape/Text","../shape/Rectangle"],function(_){function $($){this.setOptions($)}var E=_("../tool/util"),D=_("../shape/Text"),B=_("../shape/Rectangle"),A="Loading...",C="normal 16px Arial";return $.prototype.createTextShape=function($){return new D({highlightStyle:E.merge({x:this.canvasWidth/2,y:this.canvasHeight/2,text:A,textAlign:"center",textBaseline:"middle",textFont:C,color:"#333",brushType:"fill"},$,!0)})},$.prototype.createBackgroundShape=function($){return new B({highlightStyle:{x:0,y:0,width:this.canvasWidth,height:this.canvasHeight,brushType:"fill",color:$}})},$.prototype.start=function(_){function $($){_.storage.addHover($)}function A(){_.refreshHover()}this.canvasWidth=_._width,this.canvasHeight=_._height,this.loadingTimer=this._start($,A)},$.prototype._start=function(){return setInterval(function(){},10000)},$.prototype.stop=function(){clearInterval(this.loadingTimer)},$.prototype.setOptions=function($){this.options=$||{}},$.prototype.adjust=function(_,$){return _<=$[0]?_=$[0]:_>=$[1]&&(_=$[1]),_},$.prototype.getLocation=function(_,$,C){var B=null!=_.x?_.x:"center";switch(B){case"center":B=Math.floor((this.canvasWidth-$)/2);break;case"left":B=0;break;case"right":B=this.canvasWidth-$}var A=null!=_.y?_.y:"center";switch(A){case"center":A=Math.floor((this.canvasHeight-C)/2);break;case"top":A=0;break;case"bottom":A=this.canvasHeight-C}return{x:B,y:A,width:$,height:C}},$}),C("zrender/Layer",["require","./mixin/Transformable","./tool/util","./config"],function(_){function $(){return!1}function F(_,$,E){var C=document.createElement($),B=E.getWidth(),A=E.getHeight();return C.style.position="absolute",C.style.left=0,C.style.top=0,C.style.width=B+"px",C.style.height=A+"px",C.width=B*D.devicePixelRatio,C.height=A*D.devicePixelRatio,C.setAttribute("data-zr-dom-id",_),C}var E=_("./mixin/Transformable"),B=_("./tool/util"),A=window.G_vmlCanvasManager,D=_("./config"),C=function(_,B){this.id=_,this.dom=F(_,"canvas",B),this.dom.onselectstart=$,this.dom.style["-webkit-user-select"]="none",this.dom.style["user-select"]="none",this.dom.style["-webkit-touch-callout"]="none",this.dom.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",this.dom.className=D.elementClassName,A&&A.initElement(this.dom),this.domBack=null,this.ctxBack=null,this.painter=B,this.unusedCount=0,this.config=null,this.dirty=!0,this.elCount=0,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=0.7,this.zoomable=!1,this.panable=!1,this.maxZoom=1/0,this.minZoom=0,E.call(this)};return C.prototype.initContext=function(){this.ctx=this.dom.getContext("2d");var $=D.devicePixelRatio;1!=$&&this.ctx.scale($,$)},C.prototype.createBackBuffer=function(){if(!A){this.domBack=F("back-"+this.id,"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d");var $=D.devicePixelRatio;1!=$&&this.ctxBack.scale($,$)}},C.prototype.resize=function(_,$){var A=D.devicePixelRatio;this.dom.style.width=_+"px",this.dom.style.height=$+"px",this.dom.setAttribute("width",_*A),this.dom.setAttribute("height",$*A),1!=A&&this.ctx.scale(A,A),this.domBack&&(this.domBack.setAttribute("width",_*A),this.domBack.setAttribute("height",$*A),1!=A&&this.ctxBack.scale(A,A))},C.prototype.clear=function(){var B=this.dom,_=this.ctx,I=B.width,F=B.height,C=this.clearColor&&!A,E=this.motionBlur&&!A,H=this.lastFrameAlpha,G=D.devicePixelRatio;if(E&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(B,0,0,I/G,F/G)),_.clearRect(0,0,I/G,F/G),C&&(_.save(),_.fillStyle=this.clearColor,_.fillRect(0,0,I/G,F/G),_.restore()),E){var $=this.domBack;_.save(),_.globalAlpha=H,_.drawImage($,0,0,I/G,F/G),_.restore()}},B.merge(C.prototype,E.prototype),C}),C("zrender/shape/util/PathProxy",["require","../../tool/vector"],function(_){var $=_("../../tool/vector"),B=function(_,$){this.command=_,this.points=$||null},A=function(){this.pathCommands=[],this._ctx=null,this._min=[],this._max=[]};return A.prototype.fastBoundingRect=function(){var A=this._min,I=this._max;A[0]=A[1]=1/0,I[0]=I[1]=-1/0;for(var F=0;F<this.pathCommands.length;F++){var C=this.pathCommands[F],B=C.points;switch(C.command){case"M":$.min(A,A,B),$.max(I,I,B);break;case"L":$.min(A,A,B),$.max(I,I,B);break;case"C":for(var E=0;6>E;E+=2)A[0]=Math.min(A[0],A[0],B[E]),A[1]=Math.min(A[1],A[1],B[E+1]),I[0]=Math.max(I[0],I[0],B[E]),I[1]=Math.max(I[1],I[1],B[E+1]);break;case"Q":for(E=0;4>E;E+=2)A[0]=Math.min(A[0],A[0],B[E]),A[1]=Math.min(A[1],A[1],B[E+1]),I[0]=Math.max(I[0],I[0],B[E]),I[1]=Math.max(I[1],I[1],B[E+1]);break;case"A":var D=B[0],H=B[1],G=B[2],_=B[3];A[0]=Math.min(A[0],A[0],D-G),A[1]=Math.min(A[1],A[1],H-_),I[0]=Math.max(I[0],I[0],D+G),I[1]=Math.max(I[1],I[1],H+_)}}return{x:A[0],y:A[1],width:I[0]-A[0],height:I[1]-A[1]}},A.prototype.begin=function($){return this._ctx=$||null,this.pathCommands.length=0,this},A.prototype.moveTo=function(_,$){return this.pathCommands.push(new B("M",[_,$])),this._ctx&&this._ctx.moveTo(_,$),this},A.prototype.lineTo=function(_,$){return this.pathCommands.push(new B("L",[_,$])),this._ctx&&this._ctx.lineTo(_,$),this},A.prototype.bezierCurveTo=function(_,$,E,C,A,D){return this.pathCommands.push(new B("C",[_,$,E,C,A,D])),this._ctx&&this._ctx.bezierCurveTo(_,$,E,C,A,D),this},A.prototype.quadraticCurveTo=function(_,$,C,A){return this.pathCommands.push(new B("Q",[_,$,C,A])),this._ctx&&this._ctx.quadraticCurveTo(_,$,C,A),this},A.prototype.arc=function(_,$,E,C,A,D){return this.pathCommands.push(new B("A",[_,$,E,E,C,A-C,0,D?0:1])),this._ctx&&this._ctx.arc(_,$,E,C,A,D),this},A.prototype.arcTo=function(_,$,C,B,A){return this._ctx&&this._ctx.arcTo(_,$,C,B,A),this},A.prototype.rect=function(_,$,B,A){return this._ctx&&this._ctx.rect(_,$,B,A),this},A.prototype.closePath=function(){return this.pathCommands.push(new B("z")),this._ctx&&this._ctx.closePath(),this},A.prototype.isEmpty=function(){return 0===this.pathCommands.length},A.PathSegment=B,A}),C("zrender/Group",["require","./tool/guid","./tool/util","./mixin/Transformable","./mixin/Eventful"],function(_){var $=_("./tool/guid"),D=_("./tool/util"),C=_("./mixin/Transformable"),B=_("./mixin/Eventful"),A=function(_){_=_||{},this.id=_.id||$();for(var A in _)this[A]=_[A];this.type="group",this.clipShape=null,this._children=[],this._storage=null,this.__dirty=!0,C.call(this),B.call(this)};return A.prototype.ignore=!1,A.prototype.children=function(){return this._children.slice()},A.prototype.childAt=function($){return this._children[$]},A.prototype.addChild=function($){$!=this&&$.parent!=this&&($.parent&&$.parent.removeChild($),this._children.push($),$.parent=this,this._storage&&this._storage!==$._storage&&(this._storage.addToMap($),$ instanceof A&&$.addChildrenToStorage(this._storage)))},A.prototype.removeChild=function(_){var $=D.indexOf(this._children,_);$>=0&&this._children.splice($,1),_.parent=null,this._storage&&(this._storage.delFromMap(_.id),_ instanceof A&&_.delChildrenFromStorage(this._storage))},A.prototype.clearChildren=function(){for(var _=0;_<this._children.length;_++){var $=this._children[_];this._storage&&(this._storage.delFromMap($.id),$ instanceof A&&$.delChildrenFromStorage(this._storage))}this._children.length=0},A.prototype.eachChild=function(_,$){for(var C=!!$,B=0;B<this._children.length;B++){var A=this._children[B];C?_.call($,A):_(A)}},A.prototype.traverse=function(_,$){for(var C=!!$,B=0;B<this._children.length;B++){var A=this._children[B];C?_.call($,A):_(A),"group"===A.type&&A.traverse(_,$)}},A.prototype.addChildrenToStorage=function(_){for(var $=0;$<this._children.length;$++){var B=this._children[$];_.addToMap(B),B instanceof A&&B.addChildrenToStorage(_)}},A.prototype.delChildrenFromStorage=function(_){for(var $=0;$<this._children.length;$++){var B=this._children[$];_.delFromMap(B.id),B instanceof A&&B.delChildrenFromStorage(_)}},A.prototype.modSelf=function(){this.__dirty=!0},D.merge(A.prototype,C.prototype,!0),D.merge(A.prototype,B.prototype,!0),A}),C("zrender/shape/BezierCurve",["require","./Base","../tool/util"],function(_){"use strict";var $=_("./Base"),A=function(_){this.brushTypeOnly="stroke",this.textPosition="end",$.call(this,_)};return A.prototype={type:"bezier-curve",buildPath:function(_,$){_.moveTo($.xStart,$.yStart),"undefined"!=typeof $.cpX2&&"undefined"!=typeof $.cpY2?_.bezierCurveTo($.cpX1,$.cpY1,$.cpX2,$.cpY2,$.xEnd,$.yEnd):_.quadraticCurveTo($.cpX1,$.cpY1,$.xEnd,$.yEnd)},getRect:function(_){if(_.__rect)return _.__rect;var $=Math.min(_.xStart,_.xEnd,_.cpX1),F=Math.min(_.yStart,_.yEnd,_.cpY1),E=Math.max(_.xStart,_.xEnd,_.cpX1),B=Math.max(_.yStart,_.yEnd,_.cpY1),A=_.cpX2,D=_.cpY2;"undefined"!=typeof A&&"undefined"!=typeof D&&($=Math.min($,A),F=Math.min(F,D),E=Math.max(E,A),B=Math.max(B,D));var C=_.lineWidth||1;return _.__rect={x:$-C,y:F-C,width:E-$+C,height:B-F+C},_.__rect}},_("../tool/util").inherits(A,$),A}),C("zrender/animation/Clip",["require","./easing"],function(_){function $($){this._targetPool=$.target||{},this._targetPool instanceof Array||(this._targetPool=[this._targetPool]),this._life=$.life||1000,this._delay=$.delay||0,this._startTime=(new Date).getTime()+this._delay,this._endTime=this._startTime+1000*this._life,this.loop="undefined"==typeof $.loop?!1:$.loop,this.gap=$.gap||0,this.easing=$.easing||"Linear",this.onframe=$.onframe,this.ondestroy=$.ondestroy,this.onrestart=$.onrestart}var A=_("./easing");return $.prototype={step:function(_){var $=(_-this._startTime)/this._life;if(!(0>$)){$=Math.min($,1);var C="string"==typeof this.easing?A[this.easing]:this.easing,B="function"==typeof C?C($):$;return this.fire("frame",B),1==$?this.loop?(this.restart(),"restart"):(this.__needsRemove=!0,"destroy"):null}},restart:function(){var _=(new Date).getTime(),$=(_-this._startTime)%this._life;this._startTime=(new Date).getTime()-$+this.gap,this.__needsRemove=!1},fire:function(_,$){for(var B=0,A=this._targetPool.length;A>B;B++)this["on"+_]&&this["on"+_](this._targetPool[B],$)},constructor:$},$}),C("echarts/util/shape/normalIsCover",[],function(){return function(_,$){var A=this.transformCoordToLocal(_,$);return _=A[0],$=A[1],this.isCoverRect(_,$)}}),C("zrender/animation/easing",[],function(){var $={Linear:function($){return $},QuadraticIn:function($){return $*$},QuadraticOut:function($){return $*(2-$)},QuadraticInOut:function($){return($*=2)<1?0.5*$*$:-0.5*(--$*($-2)-1)},CubicIn:function($){return $*$*$},CubicOut:function($){return--$*$*$+1},CubicInOut:function($){return($*=2)<1?0.5*$*$*$:0.5*(($-=2)*$*$+2)},QuarticIn:function($){return $*$*$*$},QuarticOut:function($){return 1- --$*$*$*$},QuarticInOut:function($){return($*=2)<1?0.5*$*$*$*$:-0.5*(($-=2)*$*$*$-2)},QuinticIn:function($){return $*$*$*$*$},QuinticOut:function($){return--$*$*$*$*$+1},QuinticInOut:function($){return($*=2)<1?0.5*$*$*$*$*$:0.5*(($-=2)*$*$*$*$+2)},SinusoidalIn:function($){return 1-Math.cos($*Math.PI/2)},SinusoidalOut:function($){return Math.sin($*Math.PI/2)},SinusoidalInOut:function($){return 0.5*(1-Math.cos(Math.PI*$))},ExponentialIn:function($){return 0===$?0:Math.pow(1024,$-1)},ExponentialOut:function($){return 1===$?1:1-Math.pow(2,-10*$)},ExponentialInOut:function($){return 0===$?0:1===$?1:($*=2)<1?0.5*Math.pow(1024,$-1):0.5*(-Math.pow(2,-10*($-1))+2)},CircularIn:function($){return 1-Math.sqrt(1-$*$)},CircularOut:function($){return Math.sqrt(1- --$*$)},CircularInOut:function($){return($*=2)<1?-0.5*(Math.sqrt(1-$*$)-1):0.5*(Math.sqrt(1-($-=2)*$)+1)},ElasticIn:function(_){var $,B=0.1,A=0.4;return 0===_?0:1===_?1:(!B||1>B?(B=1,$=A/4):$=A*Math.asin(1/B)/(2*Math.PI),-(B*Math.pow(2,10*(_-=1))*Math.sin(2*(_-$)*Math.PI/A)))},ElasticOut:function(_){var $,B=0.1,A=0.4;return 0===_?0:1===_?1:(!B||1>B?(B=1,$=A/4):$=A*Math.asin(1/B)/(2*Math.PI),B*Math.pow(2,-10*_)*Math.sin(2*(_-$)*Math.PI/A)+1)},ElasticInOut:function(_){var $,B=0.1,A=0.4;return 0===_?0:1===_?1:(!B||1>B?(B=1,$=A/4):$=A*Math.asin(1/B)/(2*Math.PI),(_*=2)<1?-0.5*B*Math.pow(2,10*(_-=1))*Math.sin(2*(_-$)*Math.PI/A):B*Math.pow(2,-10*(_-=1))*Math.sin(2*(_-$)*Math.PI/A)*0.5+1)},BackIn:function(_){var $=1.70158;return _*_*(($+1)*_-$)},BackOut:function(_){var $=1.70158;return--_*_*(($+1)*_+$)+1},BackInOut:function(_){var $=2.5949095;return(_*=2)<1?0.5*_*_*(($+1)*_-$):0.5*((_-=2)*_*(($+1)*_+$)+2)},BounceIn:function(_){return 1-$.BounceOut(1-_)},BounceOut:function($){return 1/2.75>$?7.5625*$*$:2/2.75>$?7.5625*($-=1.5/2.75)*$+0.75:2.5/2.75>$?7.5625*($-=2.25/2.75)*$+0.9375:7.5625*($-=2.625/2.75)*$+0.984375},BounceInOut:function(_){return 0.5>_?0.5*$.BounceIn(2*_):0.5*$.BounceOut(2*_-1)+0.5}};return $}),C("echarts/data/KDTree",["require","./quickSelect"],function(_){function $(_,$){this.left=null,this.right=null,this.axis=_,this.data=$}var B=_("./quickSelect"),A=function(_,$){_.length&&($||($=_[0].array.length),this.dimension=$,this.root=this._buildTree(_,0,_.length-1,0),this._stack=[],this._nearstNList=[])};return A.prototype._buildTree=function(_,F,C,A){if(F>C)return null;var E=Math.floor((F+C)/2);E=B(_,F,C,E,function(_,$){return _.array[A]-$.array[A]});var D=_[E],G=new $(A,D);return A=(A+1)%this.dimension,C>F&&(G.left=this._buildTree(_,F,E-1,A),G.right=this._buildTree(_,E+1,C,A)),G},A.prototype.nearest=function(_,$){var H=this.root,E=this._stack,B=0,A=1/0,D=null;for(H.data!==_&&(A=$(H.data,_),D=H),_.array[H.axis]<H.data.array[H.axis]?(H.right&&(E[B++]=H.right),H.left&&(E[B++]=H.left)):(H.left&&(E[B++]=H.left),H.right&&(E[B++]=H.right));B--;){H=E[B];var C=_.array[H.axis]-H.data.array[H.axis],G=0>C,F=!1;C*=C,A>C&&(C=$(H.data,_),A>C&&H.data!==_&&(A=C,D=H),F=!0),G?(F&&H.right&&(E[B++]=H.right),H.left&&(E[B++]=H.left)):(F&&H.left&&(E[B++]=H.left),H.right&&(E[B++]=H.right))}return D.data},A.prototype._addNearest=function(_,$,C){for(var B=this._nearstNList,A=_-1;A>0&&!($>=B[A-1].dist);A--)B[A].dist=B[A-1].dist,B[A].node=B[A-1].node;B[A].dist=$,B[A].node=C},A.prototype.nearestN=function(H,_,G,D){if(0>=_)return D.length=0,D;for(var J=this.root,I=this._stack,C=0,B=this._nearstNList,F=0;_>F;F++)B[F]||(B[F]={}),B[F].dist=0,B[F].node=null;var E=G(J.data,H),$=0;for(J.data!==H&&($++,this._addNearest($,E,J)),H.array[J.axis]<J.data.array[J.axis]?(J.right&&(I[C++]=J.right),J.left&&(I[C++]=J.left)):(J.left&&(I[C++]=J.left),J.right&&(I[C++]=J.right));C--;){J=I[C];var E=H.array[J.axis]-J.data.array[J.axis],A=0>E,K=!1;E*=E,(_>$||E<B[$-1].dist)&&(E=G(J.data,H),(_>$||E<B[$-1].dist)&&J.data!==H&&(_>$&&$++,this._addNearest($,E,J)),K=!0),A?(K&&J.right&&(I[C++]=J.right),J.left&&(I[C++]=J.left)):(K&&J.left&&(I[C++]=J.left),J.right&&(I[C++]=J.right))}for(F=0;$>F;F++)D[F]=B[F].node.data;return D.length=$,D},A}),C("echarts/data/quickSelect",["require"],function(){function _(_,$){return _-$}function $(_,$,B){var A=_[$];_[$]=_[B],_[B]=A}function B(_,G,E,B,A){for(var D=G;E>G;){var D=Math.round((E+G)/2),C=_[D];$(_,D,E),D=G;for(var F=G;E-1>=F;F++)A(C,_[F])>=0&&($(_,F,D),D++);if($(_,E,D),D===B)return D;B>D?G=D+1:E=D-1}return G}function A($,E,C,A,D){return arguments.length<=3&&(A=E,D=2==arguments.length?_:C,E=0,C=$.length-1),B($,E,C,A,D)}return A}),C("echarts/component/dataView",["require","./base","../config","zrender/tool/util","../component"],function(_){function $(_,$,D,B,A){C.call(this,_,$,D,B,A),this.dom=A.dom,this._tDom=document.createElement("div"),this._textArea=document.createElement("textArea"),this._buttonRefresh=document.createElement("button"),this._buttonRefresh.setAttribute("type","button"),this._buttonClose=document.createElement("button"),this._buttonClose.setAttribute("type","button"),this._hasShow=!1,this._zrHeight=D.getHeight(),this._zrWidth=D.getWidth(),this._tDom.className="echarts-dataview",this.hide(),this.dom.firstChild.appendChild(this._tDom),window.addEventListener?(this._tDom.addEventListener("click",this._stop),this._tDom.addEventListener("mousewheel",this._stop),this._tDom.addEventListener("mousemove",this._stop),this._tDom.addEventListener("mousedown",this._stop),this._tDom.addEventListener("mouseup",this._stop),this._tDom.addEventListener("touchstart",this._stop),this._tDom.addEventListener("touchmove",this._stop),this._tDom.addEventListener("touchend",this._stop)):(this._tDom.attachEvent("onclick",this._stop),this._tDom.attachEvent("onmousewheel",this._stop),this._tDom.attachEvent("onmousemove",this._stop),this._tDom.attachEvent("onmousedown",this._stop),this._tDom.attachEvent("onmouseup",this._stop))}var C=_("./base"),B=_("../config"),A=_("zrender/tool/util");return $.prototype={type:B.COMPONENT_TYPE_DATAVIEW,_lang:["Data View","close","refresh"],_gCssText:"position:absolute;display:block;overflow:hidden;transition:height 0.8s,background-color 1s;-moz-transition:height 0.8s,background-color 1s;-webkit-transition:height 0.8s,background-color 1s;-o-transition:height 0.8s,background-color 1s;z-index:1;left:0;top:0;",hide:function(){this._sizeCssText="width:"+this._zrWidth+"px;height:0px;background-color:#f0ffff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},show:function(_){this._hasShow=!0;var $=this.query(this.option,"toolbox.feature.dataView.lang")||this._lang;this.option=_,this._tDom.innerHTML="<p style=\"padding:8px 0;margin:0 0 10px 0;border-bottom:1px solid #eee\">"+($[0]||this._lang[0])+"</p>";var B=this.query(this.option,"toolbox.feature.dataView.optionToContent");"function"!=typeof B?this._textArea.value=this._optionToContent():(this._textArea=document.createElement("div"),this._textArea.innerHTML=B(this.option)),this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;",this._tDom.appendChild(this._textArea),this._buttonClose.style.cssText="float:right;padding:1px 6px;",this._buttonClose.innerHTML=$[1]||this._lang[1];var A=this;this._buttonClose.onclick=function(){A.hide()},this._tDom.appendChild(this._buttonClose),this.query(this.option,"toolbox.feature.dataView.readOnly")===!1?(this._buttonRefresh.style.cssText="float:right;margin-right:10px;padding:1px 6px;",this._buttonRefresh.innerHTML=$[2]||this._lang[2],this._buttonRefresh.onclick=function(){A._save()},this._textArea.readOnly=!1,this._textArea.style.cursor="default"):(this._buttonRefresh.style.cssText="display:none",this._textArea.readOnly=!0,this._textArea.style.cursor="text"),this._tDom.appendChild(this._buttonRefresh),this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},_optionToContent:function(){var A,_,I,D,C,F,E=[],H="";if(this.option.xAxis)for(E=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],A=0,D=E.length;D>A;A++)if("category"==(E[A].type||"category")){for(F=[],_=0,I=E[A].data.length;I>_;_++)F.push(this.getDataFromOption(E[A].data[_]));H+=F.join(", ")+"\n\n"}if(this.option.yAxis)for(E=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],A=0,D=E.length;D>A;A++)if("category"==E[A].type){for(F=[],_=0,I=E[A].data.length;I>_;_++)F.push(this.getDataFromOption(E[A].data[_]));H+=F.join(", ")+"\n\n"}var G,$=this.option.series;for(A=0,D=$.length;D>A;A++){for(F=[],_=0,I=$[A].data.length;I>_;_++)C=$[A].data[_],G=$[A].type==B.CHART_TYPE_PIE||$[A].type==B.CHART_TYPE_MAP?(C.name||"-")+":":"",$[A].type==B.CHART_TYPE_SCATTER&&(C=this.getDataFromOption(C).join(", ")),F.push(G+this.getDataFromOption(C));H+=($[A].name||"-")+" : \n",H+=F.join($[A].type==B.CHART_TYPE_SCATTER?"\n":", "),H+="\n\n"}return H},_save:function(){var _=this.query(this.option,"toolbox.feature.dataView.contentToOption");if("function"!=typeof _){for(var $=this._textArea.value.split("\n"),E=[],C=0,A=$.length;A>C;C++)$[C]=this._trim($[C]),""!==$[C]&&E.push($[C]);this._contentToOption(E)}else _(this._textArea,this.option);this.hide();var D=this;setTimeout(function(){D.messageCenter&&D.messageCenter.dispatch(B.EVENT.DATA_VIEW_CHANGED,null,{option:D.option},D.myChart)},D.canvasSupported?800:100)},_contentToOption:function(A){var _,J,E,C,G,F,I,H=[],$=0;if(this.option.xAxis)for(H=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],_=0,C=H.length;C>_;_++)if("category"==(H[_].type||"category")){for(F=A[$].split(","),J=0,E=H[_].data.length;E>J;J++)I=this._trim(F[J]||""),G=H[_].data[J],"undefined"!=typeof H[_].data[J].value?H[_].data[J].value=I:H[_].data[J]=I;$++}if(this.option.yAxis)for(H=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],_=0,C=H.length;C>_;_++)if("category"==H[_].type){for(F=A[$].split(","),J=0,E=H[_].data.length;E>J;J++)I=this._trim(F[J]||""),G=H[_].data[J],"undefined"!=typeof H[_].data[J].value?H[_].data[J].value=I:H[_].data[J]=I;$++}var D=this.option.series;for(_=0,C=D.length;C>_;_++)if($++,D[_].type==B.CHART_TYPE_SCATTER){for(J=0,E=D[_].data.length;E>J;J++)F=A[$],I=F.replace(" ","").split(","),"undefined"!=typeof D[_].data[J].value?D[_].data[J].value=I:D[_].data[J]=I,$++}else{F=A[$].split(",");for(J=0,E=D[_].data.length;E>J;J++)I=(F[J]||"").replace(/.*:/,""),I=this._trim(I),I="-"!=I&&""!==I?I-0:"-","undefined"!=typeof D[_].data[J].value?D[_].data[J].value=I:D[_].data[J]=I;$++}},_trim:function(_){var $=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");return _.replace($,"")},_stop:function($){$=$||window.event,$.stopPropagation?$.stopPropagation():$.cancelBubble=!0},resize:function(){this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._tDom.offsetHeight>10&&(this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText,this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;")},dispose:function(){window.removeEventListener?(this._tDom.removeEventListener("click",this._stop),this._tDom.removeEventListener("mousewheel",this._stop),this._tDom.removeEventListener("mousemove",this._stop),this._tDom.removeEventListener("mousedown",this._stop),this._tDom.removeEventListener("mouseup",this._stop),this._tDom.removeEventListener("touchstart",this._stop),this._tDom.removeEventListener("touchmove",this._stop),this._tDom.removeEventListener("touchend",this._stop)):(this._tDom.detachEvent("onclick",this._stop),this._tDom.detachEvent("onmousewheel",this._stop),this._tDom.detachEvent("onmousemove",this._stop),this._tDom.detachEvent("onmousedown",this._stop),this._tDom.detachEvent("onmouseup",this._stop)),this._buttonRefresh.onclick=null,this._buttonClose.onclick=null,this._hasShow&&(this._tDom.removeChild(this._textArea),this._tDom.removeChild(this._buttonRefresh),this._tDom.removeChild(this._buttonClose)),this._textArea=null,this._buttonRefresh=null,this._buttonClose=null,this.dom.firstChild.removeChild(this._tDom),this._tDom=null}},A.inherits($,C),_("../component").define("dataView",$),$}),C("echarts/component/valueAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/date","zrender/tool/util","../util/smartSteps","../util/accMath","../util/smartLogSteps","../component"],function(_){function $(_,$,E,B,A,D,C){if(!C||0===C.length)return void console.err("option.series.length == 0.");G.call(this,_,$,E,B,A),this.series=C,this.grid=this.component.grid;for(var F in D)this[F]=D[F];this.refresh(B,C)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("zrender/shape/Line"),A=_("zrender/shape/Rectangle"),D=_("../config");D.valueAxis={zlevel:0,z:0,show:!0,position:"left",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:[0,0],axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!1,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var C=_("../util/date"),F=_("zrender/tool/util");return $.prototype={type:D.COMPONENT_TYPE_AXIS_VALUE,_buildShape:function(){if(this._hasData=!1,this._calculateValue(),this._hasData&&this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var _=0,$=this.shapeList.length;$>_;_++)this.zr.addShape(this.shapeList[_])}},_buildAxisTick:function(){var I,_=this._valueList,H=this._valueList.length,E=this.option.axisTick,J=E.length,D=E.lineStyle.color,C=E.lineStyle.width;if(this.isHorizontal()){for(var G,F="bottom"===this.option.position?E.inside?this.grid.getYend()-J-1:this.grid.getYend()+1:E.inside?this.grid.getY()+1:this.grid.getY()-J-1,$=0;H>$;$++)G=this.subPixelOptimize(this.getCoord(_[$]),C),I={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:G,yStart:F,xEnd:G,yEnd:F+J,strokeColor:D,lineWidth:C}},this.shapeList.push(new B(I))}else for(var A,K="left"===this.option.position?E.inside?this.grid.getX()+1:this.grid.getX()-J-1:E.inside?this.grid.getXend()-J-1:this.grid.getXend()+1,$=0;H>$;$++)A=this.subPixelOptimize(this.getCoord(_[$]),C),I={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:K,yStart:A,xEnd:K+J,yEnd:A,strokeColor:D,lineWidth:C}},this.shapeList.push(new B(I))},_buildAxisLabel:function(){var H,_=this._valueList,G=this._valueList.length,J=this.option.axisLabel.rotate,I=this.option.axisLabel.margin,C=this.option.axisLabel.clickable,B=this.option.axisLabel.textStyle;if(this.isHorizontal()){var F,D;"bottom"===this.option.position?(F=this.grid.getYend()+I,D="top"):(F=this.grid.getY()-I,D="bottom");for(var $=0;G>$;$++)H={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoord(_[$]),y:F,color:"function"==typeof B.color?B.color(_[$]):B.color,text:this._valueLabel[$],textFont:this.getFont(B),textAlign:B.align||"center",textBaseline:B.baseline||D}},J&&(H.style.textAlign=J>0?"bottom"===this.option.position?"right":"left":"bottom"===this.option.position?"left":"right",H.rotation=[J*Math.PI/180,H.style.x,H.style.y]),this.shapeList.push(new E(this._axisLabelClickable(C,H)))}else{var A,K;"left"===this.option.position?(A=this.grid.getX()-I,K="right"):(A=this.grid.getXend()+I,K="left");for($=0;G>$;$++)H={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:A,y:this.getCoord(_[$]),color:"function"==typeof B.color?B.color(_[$]):B.color,text:this._valueLabel[$],textFont:this.getFont(B),textAlign:B.align||K,textBaseline:B.baseline||(0===$&&""!==this.option.name?"bottom":$===G-1&&""!==this.option.name?"top":"middle")}},J&&(H.rotation=[J*Math.PI/180,H.style.x,H.style.y]),this.shapeList.push(new E(this._axisLabelClickable(C,H)))}},_buildSplitLine:function(){var L,C=this._valueList,J=this._valueList.length,G=this.option.splitLine,M=G.lineStyle.type,F=G.lineStyle.width,E=G.lineStyle.color;E=E instanceof Array?E:[E];var I=E.length;if(this.isHorizontal()){for(var H,A=this.grid.getY(),D=this.grid.getYend(),N=0;J>N;N++)H=this.subPixelOptimize(this.getCoord(C[N]),F),L={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:H,yStart:A,xEnd:H,yEnd:D,strokeColor:E[N%I],lineType:M,lineWidth:F}},this.shapeList.push(new B(L))}else for(var K,_=this.grid.getX(),$=this.grid.getXend(),N=0;J>N;N++)K=this.subPixelOptimize(this.getCoord(C[N]),F),L={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:_,yStart:K,xEnd:$,yEnd:K,strokeColor:E[N%I],lineType:M,lineWidth:F}},this.shapeList.push(new B(L))},_buildSplitArea:function(){var K,B=this.option.splitArea.areaStyle.color;if(B instanceof Array){var I=B.length,F=this._valueList,L=this._valueList.length;if(this.isHorizontal()){for(var E,D=this.grid.getY(),H=this.grid.getHeight(),G=this.grid.getX(),_=0;L>=_;_++)E=L>_?this.getCoord(F[_]):this.grid.getXend(),K={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:G,y:D,width:E-G,height:H,color:B[_%I]}},this.shapeList.push(new A(K)),G=E}else for(var C,M=this.grid.getX(),J=this.grid.getWidth(),$=this.grid.getYend(),_=0;L>=_;_++)C=L>_?this.getCoord(F[_]):this.grid.getY(),K={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:M,y:C,width:J,height:$-C,color:B[_%I]}},this.shapeList.push(new A(K)),$=C}else K={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:B}},this.shapeList.push(new A(K))},_calculateValue:function(){if(isNaN(this.option.min-0)||isNaN(this.option.max-0)){for(var A,_,J={},G=this.component.legend,E=0,B=this.series.length;B>E;E++)!(this.series[E].type!=D.CHART_TYPE_LINE&&this.series[E].type!=D.CHART_TYPE_BAR&&this.series[E].type!=D.CHART_TYPE_SCATTER&&this.series[E].type!=D.CHART_TYPE_K&&this.series[E].type!=D.CHART_TYPE_EVENTRIVER||G&&!G.isSelected(this.series[E].name)||(A=this.series[E].xAxisIndex||0,_=this.series[E].yAxisIndex||0,this.option.xAxisIndex!=A&&this.option.yAxisIndex!=_||!this._calculSum(J,E)));var F;for(E in J){F=J[E];for(var I=0,H=F.length;H>I;I++)if(!isNaN(F[I])){this._hasData=!0,this._min=F[I],this._max=F[I];break}if(this._hasData)break}for(E in J){F=J[E];for(I=0,H=F.length;H>I;I++)isNaN(F[I])||(this._min=Math.min(this._min,F[I]),this._max=Math.max(this._max,F[I]))}var $="log"!==this.option.type?this.option.boundaryGap:[0,0],C=Math.abs(this._max-this._min);this._min=isNaN(this.option.min-0)?this._min-Math.abs(C*$[0]):this.option.min-0,this._max=isNaN(this.option.max-0)?this._max+Math.abs(C*$[1]):this.option.max-0,this._min===this._max&&(0===this._max?this._max=1:this._max>0?this._min=this._max/this.option.splitNumber!=null?this.option.splitNumber:5:this._max=this._max/this.option.splitNumber!=null?this.option.splitNumber:5),"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._reformValue(this.option.scale)}else this._hasData=!0,this._min=this.option.min-0,this._max=this.option.max-0,"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._customerValue()},_calculSum:function(I,_){var G,B,K=this.series[_].name||"kener";if(this.series[_].stack){var J="__Magic_Key_Positive__"+this.series[_].stack,F="__Magic_Key_Negative__"+this.series[_].stack;I[J]=I[J]||[],I[F]=I[F]||[],I[K]=I[K]||[],B=this.series[_].data;for(var E=0,$=B.length;$>E;E++)G=this.getDataFromOption(B[E]),"-"!==G&&(G-=0,G>=0?null!=I[J][E]?I[J][E]+=G:I[J][E]=G:null!=I[F][E]?I[F][E]+=G:I[F][E]=G,this.option.scale&&I[K].push(G))}else if(I[K]=I[K]||[],this.series[_].type!=D.CHART_TYPE_EVENTRIVER){B=this.series[_].data;for(E=0,$=B.length;$>E;E++)G=this.getDataFromOption(B[E]),this.series[_].type===D.CHART_TYPE_K?(I[K].push(G[0]),I[K].push(G[1]),I[K].push(G[2]),I[K].push(G[3])):G instanceof Array?(-1!=this.option.xAxisIndex&&I[K].push("time"!=this.option.type?G[0]:C.getNewDate(G[0])),-1!=this.option.yAxisIndex&&I[K].push("time"!=this.option.type?G[1]:C.getNewDate(G[1]))):I[K].push(G)}else{B=this.series[_].data;for(E=0,$=B.length;$>E;E++)for(var A=B[E].evolution,L=0,H=A.length;H>L;L++)I[K].push(C.getNewDate(A[L].time))}},_reformValue:function($){var C=_("../util/smartSteps"),B=this.option.splitNumber;!$&&this._min>=0&&this._max>=0&&(this._min=0),!$&&this._min<=0&&this._max<=0&&(this._max=0);var A=C(this._min,this._max,B);B=null!=B?B:A.secs,this._min=A.min,this._max=A.max,this._valueList=A.pnts,this._reformLabelData()},_reformTimeValue:function(){var _=null!=this.option.splitNumber?this.option.splitNumber:5,$=C.getAutoFormatter(this._min,this._max,_),D=$.formatter,B=$.gapValue;this._valueList=[C.getNewDate(this._min)];var A;switch(D){case"week":A=C.nextMonday(this._min);break;case"month":A=C.nextNthOnMonth(this._min,1);break;case"quarter":A=C.nextNthOnQuarterYear(this._min,1);break;case"half-year":A=C.nextNthOnHalfYear(this._min,1);break;case"year":A=C.nextNthOnYear(this._min,1);break;default:7200000>=B?A=(Math.floor(this._min/B)+1)*B:(A=C.getNewDate(this._min- -B),A.setHours(6*Math.round(A.getHours()/6)),A.setMinutes(0),A.setSeconds(0))}for(A-this._min<B/2&&(A-=-B),$=C.getNewDate(A),_*=1.5;_-->=0&&(("month"==D||"quarter"==D||"half-year"==D||"year"==D)&&$.setDate(1),!(this._max-$<B/2));)this._valueList.push($),$=C.getNewDate($- -B);this._valueList.push(C.getNewDate(this._max)),this._reformLabelData(function($){return function(_){return C.format($,_)}}(D))},_customerValue:function(){var $=_("../util/accMath"),C=null!=this.option.splitNumber?this.option.splitNumber:5,B=(this._max-this._min)/C;this._valueList=[];for(var A=0;C>=A;A++)this._valueList.push($.accAdd(this._min,$.accMul(B,A)));this._reformLabelData()},_reformLogValue:function(){var $=this.option,A=_("../util/smartLogSteps")({dataMin:this._min,dataMax:this._max,logPositive:$.logPositive,logLabelBase:$.logLabelBase,splitNumber:$.splitNumber});this._min=A.dataMin,this._max=A.dataMax,this._valueList=A.tickList,this._dataMappingMethods=A.dataMappingMethods,this._reformLabelData(A.labelFormatter)},_reformLabelData:function(_){this._valueLabel=[];var $=this.option.axisLabel.formatter;if($){for(var B=0,A=this._valueList.length;A>B;B++)"function"==typeof $?this._valueLabel.push(_?$.call(this.myChart,this._valueList[B],_):$.call(this.myChart,this._valueList[B])):"string"==typeof $&&this._valueLabel.push(_?C.format($,this._valueList[B]):$.replace("{value}",this._valueList[B]))}else for(B=0,A=this._valueList.length;A>B;B++)this._valueLabel.push(_?_(this._valueList[B]):this.numAddCommas(this._valueList[B]))},getExtremum:function(){this._calculateValue();var $=this._dataMappingMethods;return{min:this._min,max:this._max,dataMappingMethods:$?F.merge({},$):null}},refresh:function(_,$){_&&(this.option=this.reformOption(_),this.option.axisLabel.textStyle=F.merge(this.option.axisLabel.textStyle||{},this.ecTheme.textStyle),this.series=$),this.zr&&(this.clear(),this._buildShape())},getCoord:function(_){this._dataMappingMethods&&(_=this._dataMappingMethods.value2Coord(_)),_=_<this._min?this._min:_,_=_>this._max?this._max:_;var $;return $=this.isHorizontal()?this.grid.getX()+(_-this._min)/(this._max-this._min)*this.grid.getWidth():this.grid.getYend()-(_-this._min)/(this._max-this._min)*this.grid.getHeight()},getCoordSize:function($){return Math.abs(this.isHorizontal()?$/(this._max-this._min)*this.grid.getWidth():$/(this._max-this._min)*this.grid.getHeight())},getValueFromCoord:function(_){var $;return this.isHorizontal()?(_=_<this.grid.getX()?this.grid.getX():_,_=_>this.grid.getXend()?this.grid.getXend():_,$=this._min+(_-this.grid.getX())/this.grid.getWidth()*(this._max-this._min)):(_=_<this.grid.getY()?this.grid.getY():_,_=_>this.grid.getYend()?this.grid.getYend():_,$=this._max-(_-this.grid.getY())/this.grid.getHeight()*(this._max-this._min)),this._dataMappingMethods&&($=this._dataMappingMethods.coord2Value($)),$.toFixed(2)-0},isMaindAxis:function(_){for(var $=0,A=this._valueList.length;A>$;$++)if(this._valueList[$]===_)return!0;return!1}},F.inherits($,G),_("../component").define("valueAxis",$),$}),C("zrender/tool/computeBoundingBox",["require","./vector","./curve"],function(_){function $(_,$,G){if(0!==_.length){for(var E=_[0][0],B=_[0][0],A=_[0][1],D=_[0][1],C=1;C<_.length;C++){var F=_[C];F[0]<E&&(E=F[0]),F[0]>B&&(B=F[0]),F[1]<A&&(A=F[1]),F[1]>D&&(D=F[1])}$[0]=E,$[1]=A,G[0]=B,G[1]=D}}function H(J,_,H,E,K,D){var C=[];A.cubicExtrema(J[0],_[0],H[0],E[0],C);for(var G=0;G<C.length;G++)C[G]=A.cubicAt(J[0],_[0],H[0],E[0],C[G]);var F=[];A.cubicExtrema(J[1],_[1],H[1],E[1],F);for(G=0;G<F.length;G++)F[G]=A.cubicAt(J[1],_[1],H[1],E[1],F[G]);C.push(J[0],E[0]),F.push(J[1],E[1]);var $=Math.min.apply(null,C),B=Math.max.apply(null,C),L=Math.min.apply(null,F),I=Math.max.apply(null,F);K[0]=$,K[1]=L,D[0]=B,D[1]=I}function E(J,_,H,E,K){var D=A.quadraticExtremum(J[0],_[0],H[0]),C=A.quadraticExtremum(J[1],_[1],H[1]);D=Math.max(Math.min(D,1),0),C=Math.max(Math.min(C,1),0);var G=1-D,F=1-C,$=G*G*J[0]+2*G*D*_[0]+D*D*H[0],B=G*G*J[1]+2*G*D*_[1]+D*D*H[1],L=F*F*J[0]+2*F*C*_[0]+C*C*H[0],I=F*F*J[1]+2*F*C*_[1]+C*C*H[1];E[0]=Math.min(J[0],H[0],$,L),E[1]=Math.min(J[1],H[1],B,I),K[0]=Math.max(J[0],H[0],$,L),K[1]=Math.max(J[1],H[1],B,I)}var B=_("./vector"),A=_("./curve"),D=B.create(),C=B.create(),G=B.create(),F=function(E,A,L,J,F,K,_,H){if(Math.abs(J-F)>=2*Math.PI)return _[0]=E-L,_[1]=A-L,H[0]=E+L,void(H[1]=A+L);if(D[0]=Math.cos(J)*L+E,D[1]=Math.sin(J)*L+A,C[0]=Math.cos(F)*L+E,C[1]=Math.sin(F)*L+A,B.min(_,D,C),B.max(H,D,C),J%=2*Math.PI,0>J&&(J+=2*Math.PI),F%=2*Math.PI,0>F&&(F+=2*Math.PI),J>F&&!K?F+=2*Math.PI:F>J&&K&&(J+=2*Math.PI),K){var I=F;F=J,J=I}for(var $=0;F>$;$+=Math.PI/2)$>J&&(G[0]=Math.cos($)*L+E,G[1]=Math.sin($)*L+A,B.min(_,G,_),B.max(H,G,H))};return $.cubeBezier=H,$.quadraticBezier=E,$.arc=F,$}),C("echarts/util/coordinates",["require","zrender/tool/math"],function(_){function $(_,$){return[_*A.sin($),_*A.cos($)]}function B(_,$){return[Math.sqrt(_*_+$*$),Math.atan($/_)]}var A=_("zrender/tool/math");return{polar2cartesian:$,cartesian2polar:B}}),C("echarts/util/smartSteps",[],function(){function W($){return B.log(_($))/B.LN10}function J($){return B.pow(10,$)}function S($){return $===C($)}function O(_,$,F,C){U=C||{},c=U.steps||a,K=U.secs||A,F=T(+F||0)%99,_=+_||0,$=+$||0,E=D=0,"min"in U&&(_=+U.min||0,E=1),"max"in U&&($=+U.max||0,D=1),_>$&&($=[_,_=$][0]);var B=$-_;if(E&&D)return b(_,$,F);if((F||5)>B){if(S(_)&&S($))return V(_,$,F);if(0===B)return H(_,$,F)}return P(_,$,F)}function Y(D,O,I,F){F=F||0;var H=X((O-D)/I,-1),M=X(D,-1,1),L=X(O,-1),C=B.min(H.e,M.e,L.e);0===M.c?C=B.min(H.e,L.e):0===L.c&&(C=B.min(H.e,M.e)),N(H,{c:0,e:C}),N(M,H,1),N(L,H),F+=C,D=M.c,O=L.c;for(var E=(O-D)/I,G=J(F),A=0,_=[],$=I+1;$--;)_[$]=(D+E*$)*G;if(0>F){A=Q(G),E=+(E*G).toFixed(A),D=+(D*G).toFixed(A),O=+(O*G).toFixed(A);for($=_.length;$--;)_[$]=_[$].toFixed(A),0===+_[$]&&(_[$]="0")}else D*=G,O*=G,E*=G;return K=0,c=0,U=0,{min:D,max:O,secs:I,step:E,fix:A,exp:F,pnts:_}}function X(F,B,A){B=T(B%10)||2,0>B&&(S(F)?B=(""+_(F)).replace(/0+$/,"").length||1:(F=F.toFixed(15).replace(/0+$/,""),B=F.replace(".","").replace(/^[-0]+/,"").length,F=+F));var E=C(W(F))-B+1,D=+(F*J(-E)).toFixed(15)||0;return D=A?C(D):$(D),!D&&(E=0),(""+_(D)).length>B&&(E+=1,D/=10),{c:D,e:E}}function N(_,D,B){var A=D.e-_.e;A&&(_.e+=A,_.c*=J(-A),_.c=B?C(_.c):$(_.c))}function M(_,$,A){_.e<$.e?N($,_,A):N(_,$,A)}function R(_,$){$=$||a,_=X(_);for(var B=_.c,A=0;B>$[A];)A++;if(!$[A])for(B/=10,_.e+=1,A=0;B>$[A];)A++;return _.c=$[A],_}function P(B,A,H){var C,J=H||+K.slice(-1),_=R((A-B)/J,c),M=X(A-B),P=X(B,-1,1),$=X(A,-1);if(N(M,_),N(P,_,1),N($,_),H?C=L(P,$,J):J=I(P,$),S(B)&&S(A)&&B*A>=0){if(J>A-B)return V(B,A,J);J=Z(B,A,H,P,$,J)}var O=G(B,A,P.c,$.c);return P.c=O[0],$.c=O[1],(E||D)&&F(B,A,P,$),Y(P.c,$.c,J,$.e)}function I(_,H){for(var F,B,A,E,D=[],G=K.length;G--;)F=K[G],B=R((H.c-_.c)/F,c),B=B.c*J(B.e),A=C(_.c/B)*B,E=$(H.c/B)*B,D[G]={min:A,max:E,step:B,span:E-A};return D.sort(function(_,$){var A=_.span-$.span;return 0===A&&(A=_.step-$.step),A}),D=D[0],F=D.span/D.step,_.c=D.min,H.c=D.max,3>F?2*F:F}function L(A,I,G){for(var D,B,F=I.c,E=(I.c-A.c)/G-1;F>A.c;)E=R(E+1,c),E=E.c*J(E.e),D=E*G,B=$(I.c/E)*E,F=B-D;var H=A.c-F,_=B-I.c,C=H-_;return C>1.1*E&&(C=T(C/E/2)*E,F+=C,B+=C),A.c=F,I.c=B,E}function Z(_,F,B,A,E,D){var H=E.c-A.c,G=H/D*J(E.e);if(!S(G)&&(G=C(G),H=G*D,F-_>H&&(G+=1,H=G*D,!B&&G*(D-1)>=F-_&&(D-=1,H=G*D)),H>=F-_)){var $=H-(F-_);A.c=T(_-$/2),E.c=T(F+$/2),A.e=0,E.e=0}return D}function V(_,$,H){if(H=H||5,E)$=_+H;else if(D)_=$-H;else{var F=H-($-_),A=T(_-F/2),C=T($+F/2),B=G(_,$,A,C);_=B[0],$=B[1]}return Y(_,$,H)}function H(A,$,F){F=F||5;var C=B.min(_($/F),F)/2.1;return E?$=A+C:D?A=$-C:(A-=C,$+=C),P(A,$,F)}function G(_,$,B,A){return _>=0&&0>B?(A-=B,B=0):0>=$&&A>0&&(B-=A,A=0),[B,A]}function Q($){return $=(+$).toFixed(15).split("."),$.pop().replace(/0+$/,"").length}function F(_,$,F,C){if(E){var A=X(_,4,1);F.e-A.e>6&&(A={c:0,e:F.e}),M(F,A),M(C,A),C.c+=A.c-F.c,F.c=A.c}else if(D){var B=X($,4);C.e-B.e>6&&(B={c:0,e:C.e}),M(F,B),M(C,B),F.c+=B.c-C.c,C.c=B.c}}function b(O,D,L){var G=L?[L]:K,F=D-O;if(0===F)return D=X(D,3),L=G[0],D.c=T(D.c+L/2),Y(D.c-L,D.c,L,D.e);_(D/F)<0.000001&&(D=0),_(O/F)<0.000001&&(O=0);var J,H,C,E=[[5,10],[10,2],[50,10],[100,2]],P=[],M=[],B=X(D-O,3),A=X(O,-1,1),I=X(D,-1);N(A,B,1),N(I,B),F=I.c-A.c,B.c=F;for(var Q=G.length;Q--;){L=G[Q],J=$(F/L),H=J*L-F,C=3*(H+3),C+=2*(L-G[0]+2),L%5===0&&(C-=10);for(var R=E.length;R--;)J%E[R][0]===0&&(C/=E[R][1]);M[Q]=[L,J,H,C].join(),P[Q]={secs:L,step:J,delta:H,score:C}}return P.sort(function(_,$){return _.score-$.score}),P=P[0],A.c=T(A.c-P.delta/2),I.c=T(I.c+P.delta/2),Y(A.c,I.c,P.secs,B.e)}var U,c,K,E,D,a=[10,20,25,50],A=[4,5,6],B=Math,T=B.round,C=B.floor,$=B.ceil,_=B.abs;return O}),C("echarts/component/categoryAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","../component"],function(_){function $(_,$,E,B,A,D){if(B.data.length<1)return void console.error("option.data.length < 1.");G.call(this,_,$,E,B,A),this.grid=this.component.grid;for(var C in D)this[C]=D[C];this.refresh(B)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("zrender/shape/Line"),A=_("zrender/shape/Rectangle"),D=_("../config");D.categoryAxis={zlevel:0,z:0,show:!0,position:"bottom",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:!0,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!0,interval:"auto",inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,interval:"auto",rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var C=_("zrender/tool/util"),F=_("zrender/tool/area");return $.prototype={type:D.COMPONENT_TYPE_AXIS_CATEGORY,_getReformedLabel:function(_){var $=this.getDataFromOption(this.option.data[_]),A=this.option.data[_].formatter||this.option.axisLabel.formatter;return A&&("function"==typeof A?$=A.call(this.myChart,$):"string"==typeof A&&($=A.replace("{value}",$))),$},_getInterval:function(){var J=this.option.axisLabel.interval;if("auto"==J){var A=this.option.axisLabel.textStyle.fontSize,H=this.option.data,E=this.option.data.length;if(this.isHorizontal()){if(E>3){var L,K,D=this.getGap(),G=!1,_=Math.floor(0.5/D);for(_=1>_?1:_,J=Math.floor(15/D);!G&&E>J;){J+=_,G=!0,L=Math.floor(D*J);for(var B=Math.floor((E-1)/J)*J;B>=0;B-=J){if(0!==this.option.axisLabel.rotate)K=A;else if(H[B].textStyle)K=F.getTextWidth(this._getReformedLabel(B),this.getFont(C.merge(H[B].textStyle,this.option.axisLabel.textStyle)));else{var M=this._getReformedLabel(B)+"",I=(M.match(/\w/g)||"").length,$=M.length-I;K=I*A*2/3+$*A}if(K>L){G=!1;break}}}}else J=1}else if(E>3){D=this.getGap();for(J=Math.floor(11/D);A>D*J-6&&E>J;)J++}else J=1}else J="function"==typeof J?1:J-0+1;return J},_buildShape:function(){if(this._interval=this._getInterval(),this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var _=0,$=this.shapeList.length;$>_;_++)this.zr.addShape(this.shapeList[_])}},_buildAxisTick:function(){var M,C=this.option.data,K=this.option.data.length,G=this.option.axisTick,N=G.length,F=G.lineStyle.color,E=G.lineStyle.width,J="function"==typeof G.interval?G.interval:"auto"==G.interval&&"function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,H=J?1:"auto"==G.interval?this._interval:G.interval-0+1,A=G.onGap,D=A?this.getGap()/2:"undefined"==typeof A&&this.option.boundaryGap?this.getGap()/2:0,O=D>0?-H:0;if(this.isHorizontal()){for(var L,_="bottom"==this.option.position?G.inside?this.grid.getYend()-N-1:this.grid.getYend()+1:G.inside?this.grid.getY()+1:this.grid.getY()-N-1,$=O;K>$;$+=H)(!J||J($,C[$]))&&(L=this.subPixelOptimize(this.getCoordByIndex($)+($>=0?D:0),E),M={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:L,yStart:_,xEnd:L,yEnd:_+N,strokeColor:F,lineWidth:E}},this.shapeList.push(new B(M)))}else for(var I,P="left"==this.option.position?G.inside?this.grid.getX()+1:this.grid.getX()-N-1:G.inside?this.grid.getXend()-N-1:this.grid.getXend()+1,$=O;K>$;$+=H)(!J||J($,C[$]))&&(I=this.subPixelOptimize(this.getCoordByIndex($)-($>=0?D:0),E),M={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:P,yStart:I,xEnd:P+N,yEnd:I,strokeColor:F,lineWidth:E}},this.shapeList.push(new B(M)))},_buildAxisLabel:function(){var L,B,J=this.option.data,N=this.option.data.length,M=this.option.axisLabel,F=M.rotate,I=M.margin,G=M.clickable,A=M.textStyle,D="function"==typeof M.interval?M.interval:!1;if(this.isHorizontal()){var O,K;"bottom"==this.option.position?(O=this.grid.getYend()+I,K="top"):(O=this.grid.getY()-I,K="bottom");for(var _=0;N>_;_+=this._interval)D&&!D(_,J[_])||""===this._getReformedLabel(_)||(B=C.merge(J[_].textStyle||{},A),L={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoordByIndex(_),y:O,color:B.color,text:this._getReformedLabel(_),textFont:this.getFont(B),textAlign:B.align||"center",textBaseline:B.baseline||K}},F&&(L.style.textAlign=F>0?"bottom"==this.option.position?"right":"left":"bottom"==this.option.position?"left":"right",L.rotation=[F*Math.PI/180,L.style.x,L.style.y]),this.shapeList.push(new E(this._axisLabelClickable(G,L))))}else{var $,H;"left"==this.option.position?($=this.grid.getX()-I,H="right"):($=this.grid.getXend()+I,H="left");for(_=0;N>_;_+=this._interval)D&&!D(_,J[_])||""===this._getReformedLabel(_)||(B=C.merge(J[_].textStyle||{},A),L={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:$,y:this.getCoordByIndex(_),color:B.color,text:this._getReformedLabel(_),textFont:this.getFont(B),textAlign:B.align||H,textBaseline:B.baseline||0===_&&""!==this.option.name?"bottom":_==N-1&&""!==this.option.name?"top":"middle"}},F&&(L.rotation=[F*Math.PI/180,L.style.x,L.style.y]),this.shapeList.push(new E(this._axisLabelClickable(G,L))))}},_buildSplitLine:function(){var M,C=this.option.data,K=this.option.data.length,G=this.option.splitLine,N=G.lineStyle.type,F=G.lineStyle.width,E=G.lineStyle.color;E=E instanceof Array?E:[E];var J=E.length,H="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,A=G.onGap,D=A?this.getGap()/2:"undefined"==typeof A&&this.option.boundaryGap?this.getGap()/2:0;if(K-=A||"undefined"==typeof A&&this.option.boundaryGap?1:0,this.isHorizontal()){for(var O,L=this.grid.getY(),_=this.grid.getYend(),$=0;K>$;$+=this._interval)(!H||H($,C[$]))&&(O=this.subPixelOptimize(this.getCoordByIndex($)+D,F),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:O,yStart:L,xEnd:O,yEnd:_,strokeColor:E[$/this._interval%J],lineType:N,lineWidth:F}},this.shapeList.push(new B(M)))}else for(var I,P=this.grid.getX(),Q=this.grid.getXend(),$=0;K>$;$+=this._interval)(!H||H($,C[$]))&&(I=this.subPixelOptimize(this.getCoordByIndex($)-D,F),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:P,yStart:I,xEnd:Q,yEnd:I,strokeColor:E[$/this._interval%J],lineType:N,lineWidth:F}},this.shapeList.push(new B(M)))},_buildSplitArea:function(){var M,C=this.option.data,K=this.option.splitArea,G=K.areaStyle.color;if(G instanceof Array){var N=G.length,F=this.option.data.length,E="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,J=K.onGap,H=J?this.getGap()/2:"undefined"==typeof J&&this.option.boundaryGap?this.getGap()/2:0;if(this.isHorizontal()){for(var B,D=this.grid.getY(),O=this.grid.getHeight(),L=this.grid.getX(),_=0;F>=_;_+=this._interval)E&&!E(_,C[_])&&F>_||(B=F>_?this.getCoordByIndex(_)+H:this.grid.getXend(),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:L,y:D,width:B-L,height:O,color:G[_/this._interval%N]}},this.shapeList.push(new A(M)),L=B)}else for(var $,I=this.grid.getX(),P=this.grid.getWidth(),Q=this.grid.getYend(),_=0;F>=_;_+=this._interval)E&&!E(_,C[_])&&F>_||($=F>_?this.getCoordByIndex(_)-H:this.grid.getY(),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:I,y:$,width:P,height:Q-$,color:G[_/this._interval%N]}},this.shapeList.push(new A(M)),Q=$)}else M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:G}},this.shapeList.push(new A(M))},refresh:function($){$&&(this.option=this.reformOption($),this.option.axisLabel.textStyle=this.getTextStyle(this.option.axisLabel.textStyle)),this.clear(),this._buildShape()},getGap:function(){var _=this.option.data.length,$=this.isHorizontal()?this.grid.getWidth():this.grid.getHeight();return this.option.boundaryGap?$/_:$/(_>1?_-1:1)},getCoord:function(_){for(var $=this.option.data,D=$.length,C=this.getGap(),B=this.option.boundaryGap?C/2:0,A=0;D>A;A++){if(this.getDataFromOption($[A])==_)return B=this.isHorizontal()?this.grid.getX()+B:this.grid.getYend()-B;B+=C}},getCoordByIndex:function(_){if(0>_)return this.isHorizontal()?this.grid.getX():this.grid.getYend();if(_>this.option.data.length-1)return this.isHorizontal()?this.grid.getXend():this.grid.getY();var $=this.getGap(),A=this.option.boundaryGap?$/2:0;return A+=_*$,A=this.isHorizontal()?this.grid.getX()+A:this.grid.getYend()-A},getNameByIndex:function($){return this.getDataFromOption(this.option.data[$])},getIndexByName:function(_){for(var $=this.option.data,B=$.length,A=0;B>A;A++)if(this.getDataFromOption($[A])==_)return A;return-1},getValueFromCoord:function(){return""},isMainAxis:function($){return $%this._interval===0}},C.inherits($,G),_("../component").define("categoryAxis",$),$}),C("echarts/util/shape/Cross",["require","zrender/shape/Base","zrender/shape/Line","zrender/tool/util","./normalIsCover"],function(_){function $($){C.call(this,$)}var C=_("zrender/shape/Base"),B=_("zrender/shape/Line"),A=_("zrender/tool/util");return $.prototype={type:"cross",buildPath:function(_,$){var A=$.rect;$.xStart=A.x,$.xEnd=A.x+A.width,$.yStart=$.yEnd=$.y,B.prototype.buildPath(_,$),$.xStart=$.xEnd=$.x,$.yStart=A.y,$.yEnd=A.y+A.height,B.prototype.buildPath(_,$)},getRect:function($){return $.rect},isCover:_("./normalIsCover")},A.inherits($,C),$}),C("echarts/util/date",[],function(){function A(A,_,H){H=H>1?H:2;for(var F,C,B,E,D=0,G=$.length;G>D;D++)if(F=$[D].value,C=Math.ceil(_/F)*F-Math.floor(A/F)*F,Math.round(C/F)<=1.2*H){B=$[D].formatter,E=$[D].value;break}return null==B&&(B="year",F=31708800000,C=Math.ceil(_/F)*F-Math.floor(A/F)*F,E=Math.round(C/(H-1)/F)*F),{formatter:B,gapValue:E}}function _($){return 10>$?"0"+$:$}function I(A,I){("week"==A||"month"==A||"quarter"==A||"half-year"==A||"year"==A)&&(A="MM - dd\nyyyy");var F=G(I),C=F.getFullYear(),B=F.getMonth()+1,E=F.getDate(),D=F.getHours(),H=F.getMinutes(),$=F.getSeconds();return A=A.replace("MM",_(B)),A=A.toLowerCase(),A=A.replace("yyyy",C),A=A.replace("yy",C%100),A=A.replace("dd",_(E)),A=A.replace("d",E),A=A.replace("hh",_(D)),A=A.replace("h",D),A=A.replace("mm",_(H)),A=A.replace("m",H),A=A.replace("ss",_($)),A=A.replace("s",$)}function F($){return $=G($),$.setDate($.getDate()+8-$.getDay()),$}function C(_,$,A){return _=G(_),_.setMonth(Math.ceil((_.getMonth()+1)/A)*A),_.setDate($),_}function B(_,$){return C(_,$,1)}function E(_,$){return C(_,$,3)}function D(_,$){return C(_,$,6)}function H(_,$){return C(_,$,12)}function G($){return $ instanceof Date?$:new Date("string"==typeof $?$.replace(/-/g,"/"):$)}var $=[{formatter:"hh : mm : ss",value:1000},{formatter:"hh : mm : ss",value:5000},{formatter:"hh : mm : ss",value:10000},{formatter:"hh : mm : ss",value:15000},{formatter:"hh : mm : ss",value:30000},{formatter:"hh : mm\nMM - dd",value:60000},{formatter:"hh : mm\nMM - dd",value:300000},{formatter:"hh : mm\nMM - dd",value:600000},{formatter:"hh : mm\nMM - dd",value:900000},{formatter:"hh : mm\nMM - dd",value:1800000},{formatter:"hh : mm\nMM - dd",value:3600000},{formatter:"hh : mm\nMM - dd",value:7200000},{formatter:"hh : mm\nMM - dd",value:21600000},{formatter:"hh : mm\nMM - dd",value:43200000},{formatter:"MM - dd\nyyyy",value:86400000},{formatter:"week",value:604800000},{formatter:"month",value:2678400000},{formatter:"quarter",value:8208000000},{formatter:"half-year",value:16416000000},{formatter:"year",value:32832000000}];return{getAutoFormatter:A,getNewDate:G,format:I,nextMonday:F,nextNthPerNmonth:C,nextNthOnMonth:B,nextNthOnQuarterYear:E,nextNthOnHalfYear:D,nextNthOnYear:H}}),C("echarts/util/smartLogSteps",["require","./number"],function(c){function O($){return Y(),V=$||{},T(),e(),[d(),Y()][0]}function Y(){f=V=h=L=a=i=K=P=b=M=null}function T(){b=V.logLabelBase,null==b?(M="plain",b=10,L=A):(b=+b,1>b&&(b=10),M="exponent",L=g(b)),K=V.splitNumber,null==K&&(K=H);var _=parseFloat(V.dataMin),$=parseFloat(V.dataMax);isFinite(_)||isFinite($)?isFinite(_)?isFinite($)?_>$&&($=[_,_=$][0]):$=_:_=$:_=$=1,f=V.logPositive,null==f&&(f=$>0||0===_),a=f?_:-$,i=f?$:-_,E>a&&(a=E),E>i&&(i=E)}function e(){function C(){K>$&&(K=$);var A=D(X($/K)),_=Z(X($/A)),I=A*_,G=(I-H)/2,C=D(X(N-G));Q(C-N)&&(C-=1),h=-C*L;for(var F=C;E>=F-A;F+=A)P.push(B(b,F))}function _(){for(var C=S(R,0),_=C+2;_>C&&G(C+1)+O(C+1)*F<N;)C++;for(var J=S(I,0),_=J-2;J>_&&G(J-1)+O(J-1)*F>E;)J--;h=-(G(C)*A+O(C)*W);for(var $=C;J>=$;$++){var D=G($),H=O($);P.push(B(10,D)*B(2,H))}}function S(_,$){return 3*_+$}function O($){return $-3*G($)}function G($){return D(X($/3))}P=[];var E=X(g(i)/L),N=X(g(a)/L),I=Z(E),R=D(N),$=I-R,H=E-N;"exponent"===M?C():J>=$&&K>J?_():C()}function d(){for(var _=[],$=0,E=P.length;E>$;$++)_[$]=(f?1:-1)*P[$];!f&&_.reverse();var C=R(),B=C.value2Coord,A=B(_[0]),D=B(_[_.length-1]);return A===D&&(A-=1,D+=1),{dataMin:A,dataMax:D,tickList:_,logPositive:f,labelFormatter:S(),dataMappingMethods:C}}function S(){if("exponent"===M){var _=b,$=L;return function(B){if(!isFinite(parseFloat(B)))return"";var A="";return 0>B&&(B=-B,A="-"),A+_+N(g(B)/$)}}return function($){return isFinite(parseFloat($))?I.addCommas(U($)):""}}function R(){var A=f,$=h;return{value2Coord:function(_){return null==_||isNaN(_)||!isFinite(_)?_:(_=parseFloat(_),isFinite(_)?A&&E>_?_=E:!A&&_>-E&&(_=-E):_=E,_=C(_),(A?1:-1)*(g(_)+$))},coord2Value:function(C){return null==C||isNaN(C)||!isFinite(C)?C:(C=parseFloat(C),isFinite(C)||(C=E),A?B(_,C-$):-B(_,-C+$))}}}function X($){return+Number(+$).toFixed(14)}function U($){return Number($).toFixed(15).replace(/\.?0*$/,"")}function N(A){A=U(Math.round(A));for(var _=[],D=0,C=A.length;C>D;D++){var B=A.charAt(D);_.push($[B]||"")}return _.join("")}function Q($){return $>-E&&E>$}var f,b,M,L,V,K,h,a,i,P,I=c("./number"),G=Math,g=G.log,B=G.pow,C=G.abs,Z=G.ceil,D=G.floor,_=G.E,A=G.LN10,W=G.LN2,F=W/A,E=1e-9,H=5,J=2,$={0:"\u2070",1:"\xb9",2:"\xb2",3:"\xb3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079","-":"\u207b"};return O}),C("echarts/util/shape/Candle",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(_){function $($){B.call(this,$)}var B=_("zrender/shape/Base"),A=_("zrender/tool/util");return $.prototype={type:"candle",_numberOrder:function(_,$){return $-_},buildPath:function(_,$){var B=A.clone($.y).sort(this._numberOrder);_.moveTo($.x,B[3]),_.lineTo($.x,B[2]),_.moveTo($.x-$.width/2,B[2]),_.rect($.x-$.width/2,B[2],$.width,B[1]-B[2]),_.moveTo($.x,B[1]),_.lineTo($.x,B[0])},getRect:function(_){if(!_.__rect){var $=0;("stroke"==_.brushType||"fill"==_.brushType)&&($=_.lineWidth||1);var B=A.clone(_.y).sort(this._numberOrder);_.__rect={x:Math.round(_.x-_.width/2-$/2),y:Math.round(B[3]-$/2),width:_.width+$,height:B[0]-B[3]+$}}return _.__rect},isCover:_("./normalIsCover")},A.inherits($,B),$}),C("echarts/util/shape/Chain",["require","zrender/shape/Base","./Icon","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/matrix"],function(_){function $($){E.call(this,$)}var E=_("zrender/shape/Base"),D=_("./Icon"),B=_("zrender/shape/util/dashedLineTo"),A=_("zrender/tool/util"),C=_("zrender/tool/matrix");return $.prototype={type:"chain",brush:function(_,$){var A=this.style;$&&(A=this.getHighlightStyle(A,this.highlightStyle||{})),_.save(),this.setContext(_,A),this.setTransform(_),_.save(),_.beginPath(),this.buildLinePath(_,A),_.stroke(),_.restore(),this.brushSymbol(_,A),_.restore()},buildLinePath:function(_,$){var F=$.x,E=$.y+5,A=$.width,D=$.height/2-10;if(_.moveTo(F,E),_.lineTo(F,E+D),_.moveTo(F+A,E),_.lineTo(F+A,E+D),_.moveTo(F,E+D/2),$.lineType&&"solid"!=$.lineType){if("dashed"==$.lineType||"dotted"==$.lineType){var C=($.lineWidth||1)*("dashed"==$.lineType?5:1);B(_,F,E+D/2,F+A,E+D/2,C)}}else _.lineTo(F+A,E+D/2)},brushSymbol:function(_,$){var G=$.y+$.height/4;_.save();for(var B,A=$.chainPoint,E=0,C=A.length;C>E;E++){if(B=A[E],"none"!=B.symbol){_.beginPath();var F=B.symbolSize;D.prototype.buildPath(_,{iconType:B.symbol,x:B.x-F,y:G-F,width:2*F,height:2*F,n:B.n}),_.fillStyle=B.isEmpty?"#fff":$.strokeColor,_.closePath(),_.fill(),_.stroke()}B.showLabel&&(_.font=B.textFont,_.fillStyle=B.textColor,_.textAlign=B.textAlign,_.textBaseline=B.textBaseline,B.rotation?(_.save(),this._updateTextTransform(_,B.rotation),_.fillText(B.name,B.textX,B.textY),_.restore()):_.fillText(B.name,B.textX,B.textY))}_.restore()},_updateTextTransform:function(_,$){var D=C.create();if(C.identity(D),0!==$[0]){var B=$[1]||0,A=$[2]||0;(B||A)&&C.translate(D,D,[-B,-A]),C.rotate(D,D,$[0]),(B||A)&&C.translate(D,D,[B,A])}_.transform.apply(_,D)},isCover:function(_,$){var A=this.style;return _>=A.x&&_<=A.x+A.width&&$>=A.y&&$<=A.y+A.height?!0:!1}},A.inherits($,E),$}),C("zrender",["zrender/zrender"],function($){return $}),C("echarts",["echarts/echarts"],function($){return $});var B=$("zrender");B.tool={color:$("zrender/tool/color"),math:$("zrender/tool/math"),util:$("zrender/tool/util"),vector:$("zrender/tool/vector"),area:$("zrender/tool/area"),event:$("zrender/tool/event")},B.animation={Animation:$("zrender/animation/Animation"),Cip:$("zrender/animation/Clip"),easing:$("zrender/animation/easing")};var A=$("echarts");return A.config=$("echarts/config"),$("echarts/chart/bar"),$("echarts/chart/line"),$("echarts/chart/pie"),$("echarts/chart/radar"),$("echarts/chart/scatter"),$("echarts/chart/gauge"),$("echarts/chart/funnel"),$("echarts/chart/treemap"),_.echarts=A,_.zrender=B,A}(window) |