rushfee/classes/artifacts/rushfee_Web_exploded/www/lib/echarts2/echarts-all-no-map.js

1 line
539 KiB
JavaScript

!function(_){var $,D;!function(){function _(_,$){if(!$)return _;if(0===_.indexOf(".")){var G=$.split("/"),E=_.split("/"),B=G.length-1,A=E.length,C=0,D=0;$:for(var F=0;A>F;F++)switch(E[F]){case"..":if(!(B>C))break $;C++,D++;break;case".":D++;break;default:break $}return G.length=B-C,E=E.slice(D),G.concat(E).join("/")}return _}function E($){function D(F,D){if("string"==typeof F){var E=C[F];return E||(E=A(_(F,$)),C[F]=E),E}F instanceof Array&&(D=D||function(){},D.apply(this,B(F,D,$)))}var C={};return D}function B(K,H,E){for(var G=[],J=C[E],I=0,B=Math.min(K.length,H.length);B>I;I++){var D,F=_(K[I],E);switch(F){case"require":D=J&&J.require||$;break;case"exports":D=J.exports;break;case"module":D=J;break;default:D=A(F)}G.push(D)}return G}function A(_){var $=C[_];if(!$)throw new Error("No "+_);if(!$.defined){var D=$.factory,A=D.apply(this,B($.deps||[],D,_));"undefined"!=typeof A&&($.exports=A),$.defined=1}return $.exports}var C={};D=function(_,$,A){C[_]={id:_,deps:$,factory:A,defined:0,exports:{},require:E(_)}},$=E("")}(),D("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"),C=_("zrender/tool/util"),D=_("zrender/tool/color");return $.prototype={type:B.CHART_TYPE_BAR,_buildShape:function(){this._buildPosition()},_buildNormal:function(j,W,f,k,Z){for(var a,e,b,V,Y,l,i,U,T,n,c,R,h=this.series,o=f[0][0],X=h[o],P="horizontal"==Z,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,C=g.barWidthMap,_=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 I=0,D=f.length;D>I;I++){var K=h[f[I][0]].yAxisIndex||0,A=h[f[I][0]].xAxisIndex||0;a=P?m.getAxis(K):M.getAxis(A),i=l=T=U=a.getCoord(0);for(var N=0,S=f[I].length;S>N;N++)o=f[I][N],X=h[o],c=X.data[Q],R=this.getDataFromOption(c,"-"),k[o]=k[o]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},b=Math.min(_[o]||Number.MAX_VALUE,C[o]||d),"-"!==R&&(R>0?(e=N>0?a.getCoordSize(R):P?i-a.getCoord(R):a.getCoord(R)-i,1===S&&L[o]>e&&(e=L[o]),P?(l-=e,Y=l):(V=l,l+=e)):0>R?(e=N>0?a.getCoordSize(R):P?a.getCoord(R)-T:T-a.getCoord(R),1===S&&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>R&&(k[o].min=R,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<R&&(k[o].max=R,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+=R,k[o].counter++,Q%J===0&&(n=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(n))));for(N=0,S=f[I].length;S>N;N++)o=f[I][N],X=h[o],c=X.data[Q],R=this.getDataFromOption(c,"-"),b=Math.min(_[o]||Number.MAX_VALUE,C[o]||d),"-"==R&&this.deepQuery([c,X,this.option],"calculable")&&(P?(l-=O,Y=l):(V=l,l+=O),n=this._getBarItem(o,Q,F.getNameByIndex(Q),V,Y-(P?0:b),P?b:O,P?O:b,P?"vertical":"horizontal"),n.hoverable=!1,n.draggable=!1,n.style.lineWidth=1,n.style.brushType="stroke",n.style.strokeColor=X.calculableHolderColor||this.ecTheme.calculableHolderColor||B.calculableHolderColor,this.shapeList.push(new E(n)));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,L=0,M=Q.length;M>L;L++)for(var P=0,N=Q[L].length;N>P;P++){var H=Q[L][P],K=V[H],X=K.xAxisIndex||0,T=this.component.xAxis.getAxis(X),G=T.getCoord(0),F=K.yAxisIndex||0,Z=this.component.yAxis.getAxis(F),O=Z.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 D=0,S=K.data.length;S>D;D++){var a=K.data[D],J=this.getDataFromOption(a,"-");if(J instanceof Array){var C,B,Y=T.getCoord(J[0]),$=Z.getCoord(J[1]),R=[a,K],_=this.deepQuery(R,"barWidth")||10,A=this.deepQuery(R,"barHeight");null!=A?(C="horizontal",J[0]>0?(_=Y-G,Y-=_):_=J[0]<0?G-Y:0,B=this._getBarItem(H,D,J[0],Y,$-A/2,_,A,C)):(C="vertical",J[1]>0?A=O-$:J[1]<0?(A=$-O,$-=A):A=0,B=this._getBarItem(H,D,J[0],Y-_/2,$,_,A,C)),this.shapeList.push(new E(B)),Y=T.getCoord(J[0]),$=Z.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),B=J.barWidthMap,C=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(_,B,C,F,D,K,A,H)},_findSpecialBarSzie:function(N,B){for(var K,G,P,O,E=this.series,F={},J={},H={},A=0,D=0,Q=0,M=N.length;M>Q;Q++)for(var _={barWidth:!1,barMaxWidth:!1},$=0,S=N[Q].length;S>$;$++){var I=N[Q][$],R=E[I];if(!B){if(_.barWidth)F[I]=K;else if(K=this.query(R,"barWidth"),null!=K){F[I]=K,D+=K,A++,_.barWidth=!0;for(var L=0,T=$;T>L;L++){var C=N[Q][L];F[C]=K}}if(_.barMaxWidth)J[I]=G;else if(G=this.query(R,"barMaxWidth"),null!=G){J[I]=G,_.barMaxWidth=!0;for(L=0,T=$;T>L;L++){C=N[Q][L];J[C]=G}}}H[I]=this.query(R,"barMinHeight"),P=null!=P?P:this.query(R,"barGap"),O=null!=O?O:this.query(R,"barCategoryGap")}return{barWidthMap:F,barMaxWidthMap:J,barMinHeightMap:H,sBarWidth:K,sBarMaxWidth:G,sBarWidthCounter:A,sBarWidthTotal:D,barGap:P,barCategoryGap:O}},_recheckBarMaxWidth:function(A,_,I,F,C,B,D,E){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:D,interval:E}},_getBarItem:function(P,C,L,H,Q,G,K,I){var B,F=this.series,S=F[P],O=S.data[C],_=this._sIndex2ColorMap[P],$=[O,S],V=this.deepMerge($,"itemStyle.normal"),J=this.deepMerge($,"itemStyle.emphasis"),T=V.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,C,O),radius:V.barBorderRadius,lineWidth:T,strokeColor:V.barBorderColor},highlightStyle:{color:this.getItemStyleColor(this.deepQuery($,"itemStyle.emphasis.color"),P,C,O),radius:J.barBorderRadius,lineWidth:J.barBorderWidth,strokeColor:J.barBorderColor},_orient:I};var N=B.style;B.highlightStyle.color=B.highlightStyle.color||("string"==typeof N.color?D.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),T>0&&N.height>T&&N.width>T?(N.y+=T/2,N.height-=T,N.x+=T/2,N.width-=T):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[C],C,L),B},getMarkCoord:function(A,_){var I,F,C=this.series[A],B=this.xMarkMap[A],D=this.component.xAxis.getAxis(C.xAxisIndex),E=this.component.yAxis.getAxis(C.yAxisIndex);if(!_.type||"max"!==_.type&&"min"!==_.type&&"average"!==_.type){if(B.isHorizontal){I="string"==typeof _.xAxis&&D.getIndexByName?D.getIndexByName(_.xAxis):_.xAxis||0;var H=B[I];H=null!=H?H:"string"!=typeof _.xAxis&&D.getCoordByIndex?D.getCoordByIndex(_.xAxis||0):D.getCoord(_.xAxis||0),F=[H,E.getCoord(_.yAxis||0)]}else{I="string"==typeof _.yAxis&&E.getIndexByName?E.getIndexByName(_.yAxis):_.yAxis||0;var G=B[I];G=null!=G?G:"string"!=typeof _.yAxis&&E.getCoordByIndex?E.getCoordByIndex(_.yAxis||0):E.getCoord(_.yAxis||0),F=[D.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={},E=0,F=L.length;F>E;E++)M[L[E][0]]=L[E];for(var I,H,B,D,N,K,_,$=0,E=this.shapeList.length-1;E>=0;E--)if(K=A.get(this.shapeList[E],"seriesIndex"),M[K]&&!M[K][3]&&"rectangle"===this.shapeList[E].type){if(_=A.get(this.shapeList[E],"dataIndex"),N=G[K],M[K][2]&&_===N.data.length-1){this.zr.delShape(this.shapeList[E].id);continue}if(!M[K][2]&&0===_){this.zr.delShape(this.shapeList[E].id);continue}"horizontal"===this.shapeList[E]._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[E].position=[0,0],$++,this.zr.animate(this.shapeList[E].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[I,B]}).done(J).start()}$||C&&C()}},C.inherits($,F),_("../chart").define("bar",$),$}),D("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,C=_.width,D=_.height,G=D/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+=(C-D)/2,C=D);var $="";if(F.match("image")&&($=F.replace(new RegExp("^image:\\/\\/"),""),F="image",E+=Math.round((C-D)/2)-1,C=D+=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:C-8,height:D-8,n:G,image:$},function(){I.modSelf(),H()})}else J.moveTo(E,K+G),J.lineTo(E+C,K+G)}var F=A("./base"),C=A("zrender/shape/Polyline"),B=A("../util/shape/Icon"),D=A("../util/shape/HalfSmoothPolygon");A("../component/axis"),A("../component/grid"),A("../component/dataZoom");var E=A("../config");E.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:E.CHART_TYPE_LINE,_buildShape:function(){this.finalPLMap={},this._buildPosition()},_buildHorizontal:function(R,F,O,K){for(var T,S,I,J,N,L,E,H,U,Q=this.series,D=O[0][0],C=Q[D],W=this.component.xAxis.getAxis(C.xAxisIndex||0),M={},B=0,P=F;P>B&&null!=W.getNameByIndex(B);B++){S=W.getCoordByIndex(B);for(var X=0,G=O.length;G>X;X++){T=this.component.yAxis.getAxis(Q[O[X][0]].yAxisIndex||0),N=J=E=L=T.getCoord(0);for(var A=0,_=O[X].length;_>A;A++)D=O[X][A],C=Q[D],H=C.data[B],U=this.getDataFromOption(H,"-"),M[D]=M[D]||[],K[D]=K[D]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(J-=A>0?T.getCoordSize(U):N-T.getCoord(U),I=J):0>U&&(L+=A>0?T.getCoordSize(U):T.getCoord(U)-E,I=L),M[D].push([S,I,B,W.getNameByIndex(B),S,N]),K[D].min>U&&(K[D].min=U,K[D].minY=I,K[D].minX=S),K[D].max<U&&(K[D].max=U,K[D].maxY=I,K[D].maxX=S),K[D].sum+=U,K[D].counter++):M[D].length>0&&(this.finalPLMap[D]=this.finalPLMap[D]||[],this.finalPLMap[D].push(M[D]),M[D]=[])}J=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[B],U=this.getDataFromOption(H,"-"),"-"==U&&this.deepQuery([H,C,this.option],"calculable")&&(V=this.deepQuery([H,C],"symbolSize"),J+=2*V+5,I=J,this.shapeList.push(this._getCalculableItem(D,B,W.getNameByIndex(B),S,I,"horizontal")))}for(var $ in M)M[$].length>0&&(this.finalPLMap[$]=this.finalPLMap[$]||[],this.finalPLMap[$].push(M[$]),M[$]=[]);this._calculMarkMapXY(K,O,"y"),this._buildBorkenLine(R,this.finalPLMap,W,"horizontal")},_buildVertical:function(R,F,O,K){for(var T,S,I,J,N,L,E,H,U,Q=this.series,D=O[0][0],C=Q[D],W=this.component.yAxis.getAxis(C.yAxisIndex||0),M={},B=0,P=F;P>B&&null!=W.getNameByIndex(B);B++){I=W.getCoordByIndex(B);for(var X=0,G=O.length;G>X;X++){T=this.component.xAxis.getAxis(Q[O[X][0]].xAxisIndex||0),N=J=E=L=T.getCoord(0);for(var A=0,_=O[X].length;_>A;A++)D=O[X][A],C=Q[D],H=C.data[B],U=this.getDataFromOption(H,"-"),M[D]=M[D]||[],K[D]=K[D]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(J+=A>0?T.getCoordSize(U):T.getCoord(U)-N,S=J):0>U&&(L-=A>0?T.getCoordSize(U):E-T.getCoord(U),S=L),M[D].push([S,I,B,W.getNameByIndex(B),N,I]),K[D].min>U&&(K[D].min=U,K[D].minX=S,K[D].minY=I),K[D].max<U&&(K[D].max=U,K[D].maxX=S,K[D].maxY=I),K[D].sum+=U,K[D].counter++):M[D].length>0&&(this.finalPLMap[D]=this.finalPLMap[D]||[],this.finalPLMap[D].push(M[D]),M[D]=[])}J=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[B],U=this.getDataFromOption(H,"-"),"-"==U&&this.deepQuery([H,C,this.option],"calculable")&&(V=this.deepQuery([H,C],"symbolSize"),J-=2*V+5,S=J,this.shapeList.push(this._getCalculableItem(D,B,W.getNameByIndex(B),S,I,"vertical")))}for(var $ in M)M[$].length>0&&(this.finalPLMap[$]=this.finalPLMap[$]||[],this.finalPLMap[$].push(M[$]),M[$]=[]);this._calculMarkMapXY(K,O,"x"),this._buildBorkenLine(R,this.finalPLMap,W,"vertical")},_buildOther:function(N,B,K,G){for(var P,O=this.series,E={},F=0,J=K.length;J>F;F++)for(var H=0,A=K[F].length;A>H;H++){var D=K[F][H],Q=O[D];P=this.component.xAxis.getAxis(Q.xAxisIndex||0);var M=this.component.yAxis.getAxis(Q.yAxisIndex||0),_=M.getCoord(0);E[D]=E[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,S=Q.data.length;S>$;$++){var I=Q.data[$],R=this.getDataFromOption(I,"-");if(R instanceof Array){var L=P.getCoord(R[0]),T=M.getCoord(R[1]);E[D].push([L,T,$,R[0],L,_]),G[D].min0>R[0]&&(G[D].min0=R[0],G[D].minY0=T,G[D].minX0=L),G[D].max0<R[0]&&(G[D].max0=R[0],G[D].maxY0=T,G[D].maxX0=L),G[D].sum0+=R[0],G[D].counter0++,G[D].min1>R[1]&&(G[D].min1=R[1],G[D].minY1=T,G[D].minX1=L),G[D].max1<R[1]&&(G[D].max1=R[1],G[D].maxY1=T,G[D].maxX1=L),G[D].sum1+=R[1],G[D].counter1++}}}for(var C in E)E[C].length>0&&(this.finalPLMap[C]=this.finalPLMap[C]||[],this.finalPLMap[C].push(E[C]),E[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 c=this._getBbox(X,Q),S=this._sIndex2ColorMap[X],K=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 V=L[b],E="other"!=R&&this._isLarge(Q,V);if(E)V=this._getLargePointList(Q,V,M.dataFilter);else for(var F=0,A=V.length;A>F;F++)Z=M.data[V[F][2]],(this.deepQuery([Z,M,this.option],"calculable")||this.deepQuery([Z,M],"showAllSymbol")||"categoryAxis"===U.type&&U.isMainAxis(V[F][2])&&"none"!=this.deepQuery([Z,M],"symbol"))&&this.shapeList.push(this._getSymbol(X,V[F][2],V[F][3],V[F][0],V[F][1],Q));var _=new C({zlevel:M.zlevel,z:M.z,style:{miterLimit:K,pointList:V,strokeColor:d||O||S,lineWidth:K,lineType:W,smooth:this._getSmooth(M.smooth),smoothConstraint:c,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(_,P[X],X,0,b,P[X].name),this.shapeList.push(_),J){var T=new D({zlevel:M.zlevel,z:M.z,style:{miterLimit:K,pointList:G.clone(V).concat([[V[V.length-1][4],V[V.length-1][5]],[V[0][4],V[0][5]]]),brushType:"fill",smooth:this._getSmooth(M.smooth),smoothConstraint:c,color:I?I:$.alpha(S,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(K,B,I){var F;F="horizontal"===K?this.component.grid.getWidth():this.component.grid.getHeight();var M=B.length,L=[];if("function"!=typeof I)switch(I){case"min":I=function($){return Math.max.apply(null,$)};break;case"max":I=function($){return Math.min.apply(null,$)};break;case"average":I=function(_){for(var $=0,A=0;A<_.length;A++)$+=_[A];return $/_.length};break;default:I=function($){return $[0]}}for(var D=[],E=0;F>E;E++){var H=Math.floor(M/F*E),G=Math.min(Math.floor(M/F*(E+1)),M);if(!(H>=G)){for(var A=H;G>A;A++)D[A-H]="horizontal"===K?B[A][1]:B[A][0];D.length=G-H;for(var C=I(D),N=-1,J=1/0,A=H;G>A;A++){var _="horizontal"===K?B[A][1]:B[A][0],$=Math.abs(_-C);J>$&&(N=A,J=$)}var O=B[N].slice();"horizontal"===K?O[1]=C:O[0]=C,L.push(O)}}return L},_getSmooth:function($){return $?0.3:0},_getCalculableItem:function(_,$,H,D,B,A){var C=this.series,G=C[_].calculableHolderColor||this.ecTheme.calculableHolderColor||E.calculableHolderColor,F=this._getSymbol(_,$,H,D,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 C=this.series,D=C[_],G=D.data[$],F=this.getSymbolShape(D,_,G,$,H,E,B,this._sIndex2ShapeMap[_],this._sIndex2ColorMap[_],"#fff","vertical"===A?"horizontal":"vertical");return F.zlevel=D.zlevel,F.z=D.z+1,this.deepQuery([G,D,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,D=C.length;D--;)if(I=this.finalPLMap[C[D]])for(var E=0,H=I.length;H>E;E++){F=I[E];for(var G=0,$=F.length;$>G;G++)B===F[G][2]&&_.push(this._getSymbol(C[D],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={},D=0,E=L.length;E>D;D++)M[L[D][0]]=L[D];for(var I,G,A,C,O,K,_,$=0,D=this.shapeList.length-1;D>=0;D--)if(O=this.shapeList[D]._seriesIndex,M[O]&&!M[O][3]){if(this.shapeList[D]._main&&this.shapeList[D].style.pointList.length>1){if(K=this.shapeList[D].style.pointList,G=Math.abs(K[0][0]-K[1][0]),C=Math.abs(K[0][1]-K[1][1]),_="horizontal"===this.shapeList[D]._orient,M[O][2]){if("half-smooth-polygon"===this.shapeList[D].type){var P=K.length;this.shapeList[D].style.pointList[P-3]=K[P-2],this.shapeList[D].style.pointList[P-3][_?0:1]=K[P-4][_?0:1],this.shapeList[D].style.pointList[P-2]=K[P-1]}this.shapeList[D].style.pointList.pop(),_?(I=G,A=0):(I=0,A=-C)}else{if(this.shapeList[D].style.pointList.shift(),"half-smooth-polygon"===this.shapeList[D].type){var H=this.shapeList[D].style.pointList.pop();_?H[0]=K[0][0]:H[1]=K[0][1],this.shapeList[D].style.pointList.push(H)}_?(I=-G,A=0):(I=0,A=C)}this.shapeList[D].style.controlPointList=null,this.zr.modShape(this.shapeList[D])}else{if(M[O][2]&&this.shapeList[D]._dataIndex===N[O].data.length-1){this.zr.delShape(this.shapeList[D].id);continue}if(!M[O][2]&&0===this.shapeList[D]._dataIndex){this.zr.delShape(this.shapeList[D].id);continue}}this.shapeList[D].position=[0,0],$++,this.zr.animate(this.shapeList[D].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",_),_}),D("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 _(){B.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,C=A.length;C--;){var D=A[C];"function"==typeof D[$]&&D[$](F,E,B)}}var K=I("./config"),J=I("zrender/tool/util"),B=I("zrender/tool/event"),C={},F=I("zrender/tool/env").canvasSupported,E=new Date-0,$={},A="_echarts_instance_";C.version="2.2.7",C.dependencies={zrender:"2.1.1"},C.init=function(_,H){var D=I("zrender");D.version.replace(".","")-0<C.dependencies.zrender.replace(".","")-0&&console.error("ZRender "+D.version+" is too old for ECharts "+C.version+". Current version need ZRender "+C.dependencies.zrender+"+"),_=_ instanceof Array?_[0]:_;var B=_.getAttribute(A);return B||(B=E++,_.setAttribute(A,B)),$[B]&&$[B].dispose(),$[B]=new G(_),$[B].id=B,$[B].canvasSupported=F,$[B].setTheme(H),$[B]},C.getInstanceById=function(_){return $[_]},J.merge(_.prototype,B.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 D=0,E=H.length;E>D;D++){var J=H[D],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"),D=I("./component");(B.xAxis||B.yAxis)&&(B.grid=B.grid||{},B.dataZoom=B.dataZoom||{});for(var E,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):(E=D.get(/^[xy]Axis$/.test(H)?"axis":H),A=new E(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 _,$,R,J={},P=0,N=B.series.length;N>P;P++)$=B.series[P].type,$?J[$]||(J[$]=!0,_=O.get($),_?(this.chart[$]?(R=this.chart[$],R.refresh(B)):R=new _(this._themeConfig,this._messageCenter,this._zr,B,this),this._chartList.push(R),this.chart[$]=R):console.error($+" has not been required.")):console.error("series["+P+"] chart type has not been defined.");for($ in this.chart)$==K.CHART_TYPE_ISLAND||J[$]||(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 Q="IMG"+this.id,M=document.getElementById(Q);B.renderAsImage&&F?(M?M.src=this.getDataURL(B.renderAsImage):(M=this.getImage(B.renderAsImage),M.id=Q,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,M){function N(){if(L._zr){L._zr.clearAnimation();for(var _=0,$=T.length;$>_;_++)T[_].motionlessOnce=P.addDataAnimation&&T[_].addDataAnimation;L._messageCenter.dispatch(K.EVENT.REFRESH,null,{option:P},L)}}for(var R=W instanceof Array?W:[[W,H,S,O,M]],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],M=R[X][4];var F=G.series[W],E=S?"unshift":"push",Z=S?"pop":"shift";if(F){var Q=F.data,D=P.series[W].data;if(Q[E](H),D[E](H),O||(Q[Z](),H=D[Z]()),null!=M){var U,a;if(F.type===K.CHART_TYPE_PIE&&(U=G.legend)&&(a=U.data)){var I=P.legend.data;if(a[E](M),I[E](M),!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](M),Y[E](M),O||(B[Z](),Y[Z]())),$=F.yAxisIndex||0,"category"===G.yAxis[$].type&&(B=G.yAxis[$].data,Y=P.yAxis[$].data,B[E](M),Y[E](M),O||(B[Z](),Y[Z]()))}}this._option.series[W].data=P.series[W].data}}this._zr.clearAnimation();for(var T=this._chartList,_=0,A=function(){_--,0===_&&N()},X=0,V=T.length;V>X;X++)P.addDataAnimation&&T[X].addDataAnimation&&(_++,T[X].addDataAnimation(R,A));return this.component.dataZoom&&this.component.dataZoom.syncOption(P),this._option=P,P.addDataAnimation||setTimeout(N,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 D=this._optionRestore.series,E=D[A],H=F[I],G=E[I];H=F[I]=H||{data:[]},G=E[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,B=this._option.series;if(!(B&&(D=B[H])&&(J=D[G])&&(I=J.data)))return this;_=_.split(" > ");for(var C=-1,F=0,E=I.length;E>F;F++){var $=I[F];if($ instanceof Array){if($[0].name===_[0]&&$[1].name===_[1]){C=F;break}}else if($.name===_[0]){C=F;break}}if(C>-1){I.splice(C,1),this._optionRestore.series[H][G].data.splice(C,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,B=D.self.right,C=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),B=Math.max(B,D[F].right),C=Math.max(C,D[F].bottom);var E=document.createElement("div");E.style.position="absolute",E.style.left="-4000px",E.style.width=B-K+"px",E.style.height=C-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 _=J.merge(J.merge(J.clone(B),this._themeConfig.textStyle),K.textStyle);B.textFont=_.fontStyle+" "+_.fontWeight+" "+_.fontSize+"px "+_.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 A=$.effect;return("string"==typeof A||null==A)&&(A=C[$.effect||this._option&&this._option.loadingEffect||this._themeConfig.loadingEffect||K.loadingEffect]||C.spin),this._zr.showLoading(new A($.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}},C}),D("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,C,D,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),C=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||(D=K.getCoord(L[0]),G=C.getCoord(L[1]),_[A].push([D,G,I,E.name||""]));this.xMarkMap[A]=this._markMap(K,C,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},B=0,C=D.length;C>B;B++)K=G[D[B][2]].value||G[D[B][2]],J.min0>K[0]&&(J.min0=K[0],J.minY0=D[B][1],J.minX0=D[B][0]),J.max0<K[0]&&(J.max0=K[0],J.maxY0=D[B][1],J.maxX0=D[B][0]),J.sum0+=K[0],J.counter0++,J.min1>K[1]&&(J.min1=K[1],J.minY1=D[B][1],J.minX1=D[B][0]),J.max1<K[1]&&(J.max1=K[1],J.maxY1=D[B][1],J.maxX1=D[B][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 C in _)if($=A[C],G=_[C],$.large&&$.data.length>$.largeThreshold)this.shapeList.push(this._getLargeSymbol($,G,this.getItemStyleColor(this.query($,"itemStyle.normal.color"),C,-1)||this._sIndex2ColorMap[C]));else for(var D=0,F=G.length;F>D;D++)E=G[D],B=this._getSymbol(C,E[2],E[3],E[0],E[1]),B&&this.shapeList.push(B)},_getSymbol:function(A,_,I,F,C){var B,D=this.series,E=D[A],H=E.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(E,A,H,_,I,F,C,this._sIndex2ShapeMap[A],B,"rgba(0,0,0,0)","vertical");return $.zlevel=E.zlevel,$.z=E.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),C=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&&C.getCoordByIndex?C.getCoordByIndex($.yAxis||0):C.getCoord($.yAxis||0)];else{var D=null!=$.valueIndex?$.valueIndex:1;F=[B[$.type+"X"+D],B[$.type+"Y"+D],B[$.type+"Line"+D],B[$.type+D]]}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",$),$}),D("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"),B=H("zrender/shape/Sector"),C=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,C;this._selectedMode=!1;for(var D,$=0,B=A.length;B>$;$++)if(A[$].type===F.CHART_TYPE_PIE){if(A[$]=this.reformOption(A[$]),this.legendHoverLink=A[$].legendHoverLink||this.legendHoverLink,D=A[$].name||"",this.selectedMap[D]=_?_.isSelected(D):!0,!this.selectedMap[D])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")&&(C={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(C,A[$],$,void 0,-1),this.setCalculable(C),C=G[0]<=10?new I(C):new J(C),this.shapeList.push(C)),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,I=0,J=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?I++:J++,N+=+T[H].value,L=Math.max(L,+T[H].value));if(0!==N){for(var Q,D,C,W,M,B,P=100,X=K.clockWise,G=(K.startAngle.toFixed(2)-0+360)%360,A=K.minAngle||0.01,_=360-A*I-0.01*J,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),W=this.parseRadius(this.zr,K.radius),M=+W[0],B=+W[1],"radius"===V?B=T[H].value/L*(B-M)*0.8+0.2*(B-M)+M:"area"===V&&(B=Math.sqrt(T[H].value/L)*(B-M)+M),X){var $;$=G,G=Q,Q=$}this._buildItem(E,R,H,P,T[H].selected,C,M,B,G,Q,D),X||(G=Q)}this._autoLabelLayout(E,C,B);for(H=0,U=E.length;U>H;H++)this.shapeList.push(E[H]);E=null}},_buildItem:function(K,B,I,G,M,L,D,F,H,A,C){var N=this.series,J=((A+H)/2+360)%360,_=this.getSector(B,I,G,M,L,D,F,H,A,C);E.pack(_,N[B],B,N[B].data[I],I,N[B].data[I].name,G),K.push(_);var $=this.getLabel(B,I,G,L,J,C,!1),O=this.getLabelLine(B,I,L,D,F,J,C,!1);O&&(E.pack(O,N[B],B,N[B].data[I],I,N[B].data[I].name,G),K.push(O)),$&&(E.pack($,N[B],B,N[B].data[I],I,N[B].data[I].name,G),$._labelLine=O,K.push($))},getSector:function(P,D,L,G,R,Q,F,J,H,C){var O=this.series,_=O[P],$=_.data[D],U=[$,_],I=this.deepMerge(U,"itemStyle.normal")||{},T=this.deepMerge(U,"itemStyle.emphasis")||{},N=this.getItemStyleColor(I.color,P,D,$)||C,V=this.getItemStyleColor(T.color,P,D,$)||("string"==typeof N?K.lift(N,-0.2):N),E={zlevel:_.zlevel,z:_.z,clickable:this.deepQuery(U,"clickable"),style:{x:R[0],y:R[1],r0:Q,r:F,startAngle:J,endAngle:H,brushType:"both",color:N,lineWidth:I.borderWidth,strokeColor:I.borderColor,lineJoin:"round"},highlightStyle:{color:V,lineWidth:T.borderWidth,strokeColor:T.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 B(E)},getLabel:function(O,C,K,Q,P,F,G){var J=this.series,H=J[O],S=H.data[C];if(this._needLabel(H,S,G)){var N,B,_,V=G?"emphasis":"normal",I=$.merge($.clone(S.itemStyle)||{},H.itemStyle),T=I[V].label,M=T.textStyle||{},W=Q[0],E=Q[1],R=this.parseRadius(this.zr,H.radius),L="middle";T.position=T.position||I.normal.label.position,"center"===T.position?(N=W,B=E,_="center"):"inner"===T.position||"inside"===T.position?(R=(R[0]+R[1])*(T.distance||0.5),N=Math.round(W+R*A.cos(P,!0)),B=Math.round(E-R*A.sin(P,!0)),F="#fff",_="center"):(R=R[1]- -I[V].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"!=T.position&&"inner"!=T.position&&"inside"!=T.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||F,text:this.getLabelText(O,C,K,V),textAlign:M.align||_,textBaseline:M.baseline||L,textFont:this.getFont(M)},highlightStyle:{brushType:"fill"}});return U._radius=R,U._labelPosition=T.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[_],C=A.data[$],D=this.deepQuery([C,A],"itemStyle."+E+".label.formatter");return D?"function"==typeof D?D.call(this.myChart,{seriesIndex:_,seriesName:A.name||"",series:A,dataIndex:$,data:C,name:C.name,value:C.value,percent:F}):"string"==typeof D?(D=D.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}"),D=D.replace("{a0}",A.name).replace("{b0}",C.name).replace("{c0}",C.value).replace("{d0}",F)):void 0:C.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 B=J?"emphasis":"normal",_=$.merge($.clone(N.itemStyle)||{},S.itemStyle),U=_[B].labelLine,I=U.lineStyle||{},T=K[0],M=K[1],V=Q,E=this.parseRadius(this.zr,S.radius)[1]- -U.length,R=A.cos(P,!0),L=A.sin(P,!0);return new C({zlevel:S.zlevel,z:S.z+1,hoverable:!1,style:{pointList:[[T+V*R,M-V*L],[T+E*R,M-E*L],[N.__labelX,N.__labelY]],strokeColor:I.color||F,lineType:I.type,lineWidth:I.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(H,_,G,D){function J($,B,A){for(var _=$;B>_;_++)if(H[_]._rect.y+=A,H[_].style.y+=A,H[_]._labelLine&&(H[_]._labelLine.style.pointList[1][1]+=A,H[_]._labelLine.style.pointList[2][1]+=A),_>$&&B>_+1&&H[_+1]._rect.y>H[_]._rect.y+H[_]._rect.height)return void I(_,A/2);I(B-1,A/2)}function I($,A){for(var _=$;_>=0&&(H[_]._rect.y-=A,H[_].style.y-=A,H[_]._labelLine&&(H[_]._labelLine.style.pointList[1][1]-=A,H[_]._labelLine.style.pointList[2][1]-=A),!(_>0&&H[_]._rect.y>H[_-1]._rect.y+H[_-1]._rect.height));_--);}function B(H,_,G,D,J){for(var I,B,C,F=G[0],E=G[1],$=J>0?_?Number.MAX_VALUE:0:_?Number.MAX_VALUE:0,A=0,K=H.length;K>A;A++)B=Math.abs(H[A]._rect.y-E),C=H[A]._radius-D,I=D+C>B?Math.sqrt((D+C+20)*(D+C+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}H.sort(function(_,$){return _._rect.y-$._rect.y});for(var C,F=0,E=H.length,$=[],A=[],K=0;E>K;K++)C=H[K]._rect.y-F,0>C&&J(K,E,-C,D),F=H[K]._rect.y+H[K]._rect.height;this.zr.getHeight()-F<0&&I(E-1,F-this.zr.getHeight());for(K=0;E>K;K++)H[K]._rect.y>=_[1]?A.push(H[K]):$.push(H[K]);B(A,!0,_,G,D),B($,!1,_,G,D)},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(){E--,0===E&&B&&B()}for(var G=this.series,O={},N=0,D=M.length;D>N;N++)O[M[N][0]]=M[N];var E=0,H={},A={},C={},P=this.shapeList;this.shapeList=[];for(var L,_,$,R={},N=0,D=M.length;D>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"),R[L]=1):$?R[L]=0:(H[L+"_-1"]="delete",R[L]=-1),this._buildSinglePie(L));for(var I,Q,N=0,D=this.shapeList.length;D>N;N++)switch(L=this.shapeList[N]._seriesIndex,I=this.shapeList[N]._dataIndex,Q=L+"_"+I,this.shapeList[N].type){case"sector":H[Q]=this.shapeList[N];break;case"text":A[Q]=this.shapeList[N];break;case"polyline":C[Q]=this.shapeList[N]}this.shapeList=[];for(var K,N=0,D=P.length;D>N;N++)if(L=P[N]._seriesIndex,O[L]){if(I=P[N]._dataIndex+R[L],Q=L+"_"+I,K=H[Q],!K)continue;if("sector"===P[N].type)"delete"!=K?(E++,this.zr.animate(P[N].id,"style").when(400,{startAngle:K.style.startAngle,endAngle:K.style.endAngle}).done(J).start()):(E++,this.zr.animate(P[N].id,"style").when(400,R[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":E++,K=A[Q],this.zr.animate(P[N].id,"style").when(400,{x:K.style.x,y:K.style.y}).done(J).start();break;case"polyline":E++,K=C[Q],this.zr.animate(P[N].id,"style").when(400,{pointList:K.style.pointList}).done(J).start()}}this.shapeList=P,E||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"),H=E.get(J,"dataIndex"),I=0,$=this.shapeList.length;$>I;I++)if(this.shapeList[I].id===J.id){if(C=E.get(J,"seriesIndex"),H=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][H]=!1;else{var G=((D.startAngle+D.endAngle)/2).toFixed(2)-0;J.style._hasSelected=!0,this._selected[C][H]=!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[I].style._hasSelected&&"single"===this._selectedMode&&(C=E.get(this.shapeList[I],"seriesIndex"),H=E.get(this.shapeList[I],"dataIndex"),this.shapeList[I].style.x=this.shapeList[I].style._x,this.shapeList[I].style.y=this.shapeList[I].style._y,this.shapeList[I].style._hasSelected=!1,this._selected[C][H]=!1,this.zr.modShape(this.shapeList[I].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",_),_}),D("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"),C=_("zrender/tool/util"),D=_("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,C=this.serie.data,D=this.deepQuery(this._queryTarget,"calculable"),F=0;F<C.length;F++)E=C[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([C[F],this.serie],"itemStyle.normal.areaStyle")?"both":"stroke",A.setItemShape(E,$))):G=this.zr.getColor(F),B=this._getPointList(this.serie.polarIndex,C[F]),this._addSymbol(B,G,F,_,this.serie.polarIndex),this._addDataShape(B,G,C[F],_,F,D),this._radarDataCounter++)},_getPointList:function(_,$){for(var F,E,B=[],A=this.component.polar,C=0,D=$.value.length;D>C;C++)E=this.getDataFromOption($.value[C]),F="-"!=E?A.getVector(_,C,E):!1,F&&B.push(F);return B},_addSymbol:function(B,_,I,F,C){for(var D,E=this.series,H=this.component.polar,G=0,$=B.length;$>G;G++)D=this.getSymbolShape(this.deepMerge([E[F].data[I],E[F]]),F,E[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"),D.zlevel=this.getZlevelBase(),D.z=this.getZBase()+1,A.set(D,"data",E[F].data[I]),A.set(D,"value",E[F].data[I].value),A.set(D,"dataIndex",I),A.set(D,"special",G),this.shapeList.push(D)},_addDataShape:function(L,C,J,M,G,I){var H=this.series,B=[J,this.serie],F=this.getItemStyleColor(this.deepQuery(B,"itemStyle.normal.color"),M,G,J),N=this.deepQuery(B,"itemStyle.normal.lineStyle.width"),K=this.deepQuery(B,"itemStyle.normal.lineStyle.type"),_=this.deepQuery(B,"itemStyle.normal.areaStyle.color"),$=this.deepQuery(B,"itemStyle.normal.areaStyle"),O={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:L,brushType:$?"both":"stroke",color:_||F||("string"==typeof C?D.alpha(C,0.5):C),strokeColor:F||C,lineWidth:N,lineType:K},highlightStyle:{brushType:this.deepQuery(B,"itemStyle.emphasis.areaStyle")||$?"both":"stroke",color:this.deepQuery(B,"itemStyle.emphasis.areaStyle.color")||_||F||("string"==typeof C?D.alpha(C,0.5):C),strokeColor:this.getItemStyleColor(this.deepQuery(B,"itemStyle.emphasis.color"),M,G,J)||F||C,lineWidth:this.deepQuery(B,"itemStyle.emphasis.lineStyle.width")||N,lineType:this.deepQuery(B,"itemStyle.emphasis.lineStyle.type")||K}};A.pack(O,H[M],M,J,G,J.name,this.component.polar.getIndicator(H[M].polarIndex)),I&&(O.draggable=!0,this.setCalculable(O)),O=new E(O),this.shapeList.push(O)},_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,D,E=B.target,H=B.dragged,G=A.get(E,"seriesIndex"),$=A.get(E,"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"),D=A.get(H,"value");for(var J=0;J<D.length;J++)K.value[J]=L.accAdd(K.value[J],D[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()}},C.inherits($,F),_("../chart").define("radar",$),$}),D("echarts/chart/k",["require","./base","../util/shape/Candle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","../chart"],function(_){function $(_,$,C,B,A){E.call(this,_,$,C,B,A),this.refresh(B)}var E=_("./base"),D=_("../util/shape/Candle");_("../component/axis"),_("../component/grid"),_("../component/dataZoom");var B=_("../config");B.k={zlevel:0,z:2,clickable:!0,hoverable:!0,legendHoverLink:!1,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"#fff",color0:"#00aa11",lineStyle:{width:1,color:"#ff3200",color0:"#00aa11"},label:{show:!1}},emphasis:{label:{show:!1}}}};var A=_("../util/ecData"),C=_("zrender/tool/util");return $.prototype={type:B.CHART_TYPE_K,_buildShape:function(){var _=this.series;this.selectedMap={};for(var $,E={top:[],bottom:[]},D=0,A=_.length;A>D;D++)_[D].type===B.CHART_TYPE_K&&(_[D]=this.reformOption(_[D]),this.legendHoverLink=_[D].legendHoverLink||this.legendHoverLink,$=this.component.xAxis.getAxis(_[D].xAxisIndex),$.type===B.COMPONENT_TYPE_AXIS_CATEGORY&&E[$.getPosition()].push(D));for(var C in E)E[C].length>0&&this._buildSinglePosition(C,E[C]);this.addShapeList()},_buildSinglePosition:function(_,$){var E=this._mapData($),D=E.locationMap,B=E.maxDataLength;if(0!==B&&0!==D.length){this._buildHorizontal($,B,D);for(var A=0,C=$.length;C>A;A++)this.buildMark($[A])}},_mapData:function(_){for(var $,G,E=this.series,B=this.component.legend,A=[],C=0,D=0,F=_.length;F>D;D++)$=E[_[D]],G=$.name,this.selectedMap[G]=B?B.isSelected(G):!0,this.selectedMap[G]&&A.push(_[D]),C=Math.max(C,$.data.length);return{locationMap:A,maxDataLength:C}},_buildHorizontal:function(L,B,J){for(var F,N,M,D,E,I,G,A,C,O,K=this.series,_={},$=0,Q=J.length;Q>$;$++){F=J[$],N=K[F],M=N.xAxisIndex||0,D=this.component.xAxis.getAxis(M),G=N.barWidth||Math.floor(D.getGap()/2),O=N.barMaxWidth,O&&G>O&&(G=O),E=N.yAxisIndex||0,I=this.component.yAxis.getAxis(E),_[F]=[];for(var H=0,P=B;P>H&&null!=D.getNameByIndex(H);H++)A=N.data[H],C=this.getDataFromOption(A,"-"),"-"!==C&&4==C.length&&_[F].push([D.getCoordByIndex(H),G,I.getCoord(C[0]),I.getCoord(C[1]),I.getCoord(C[2]),I.getCoord(C[3]),H,D.getNameByIndex(H)])}this._buildKLine(L,_)},_buildKLine:function(P,C){for(var L,H,Q,F,G,K,I,A,E,S,O,_,$,V,J,T,N,W=this.series,D=0,R=P.length;R>D;D++)if(N=P[D],O=W[N],V=C[N],this._isLarge(V)&&(V=this._getLargePointList(V)),O.type===B.CHART_TYPE_K&&null!=V){_=O,L=this.query(_,"itemStyle.normal.lineStyle.width"),H=this.query(_,"itemStyle.normal.lineStyle.color"),Q=this.query(_,"itemStyle.normal.lineStyle.color0"),F=this.query(_,"itemStyle.normal.color"),G=this.query(_,"itemStyle.normal.color0"),K=this.query(_,"itemStyle.emphasis.lineStyle.width"),I=this.query(_,"itemStyle.emphasis.lineStyle.color"),A=this.query(_,"itemStyle.emphasis.lineStyle.color0"),E=this.query(_,"itemStyle.emphasis.color"),S=this.query(_,"itemStyle.emphasis.color0");for(var M=0,U=V.length;U>M;M++)J=V[M],$=O.data[J[6]],_=$,T=J[3]<J[2],this.shapeList.push(this._getCandle(N,J[6],J[7],J[0],J[1],J[2],J[3],J[4],J[5],T?this.query(_,"itemStyle.normal.color")||F:this.query(_,"itemStyle.normal.color0")||G,this.query(_,"itemStyle.normal.lineStyle.width")||L,T?this.query(_,"itemStyle.normal.lineStyle.color")||H:this.query(_,"itemStyle.normal.lineStyle.color0")||Q,T?this.query(_,"itemStyle.emphasis.color")||E||F:this.query(_,"itemStyle.emphasis.color0")||S||G,this.query(_,"itemStyle.emphasis.lineStyle.width")||K||L,T?this.query(_,"itemStyle.emphasis.lineStyle.color")||I||H:this.query(_,"itemStyle.emphasis.lineStyle.color0")||A||Q))}},_isLarge:function($){return $[0][1]<0.5},_getLargePointList:function(_){for(var $=this.component.grid.getWidth(),C=_.length,B=[],A=0;$>A;A++)B[A]=_[Math.floor(C/$*A)];return B},_getCandle:function(O,C,L,P,G,H,K,I,B,F,Q,N,_,$,S){var J=this.series,R=J[O],M=R.data[C],T=[M,R],E={zlevel:R.zlevel,z:R.z,clickable:this.deepQuery(T,"clickable"),hoverable:this.deepQuery(T,"hoverable"),style:{x:P,y:[H,K,I,B],width:G,color:F,strokeColor:N,lineWidth:Q,brushType:"both"},highlightStyle:{color:_,strokeColor:S,lineWidth:$},_seriesIndex:O};return E=this.addLabel(E,R,M,L),A.pack(E,R,O,M,C,L),E=new D(E)},getMarkCoord:function(_,$){var C=this.series[_],B=this.component.xAxis.getAxis(C.xAxisIndex),A=this.component.yAxis.getAxis(C.yAxisIndex);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()},addDataAnimation:function(K,B){function I(){$--,0===$&&B&&B()}for(var F=this.series,L={},D=0,E=K.length;E>D;D++)L[K[D][0]]=K[D];for(var H,G,_,C,M,J,$=0,D=0,E=this.shapeList.length;E>D;D++)if(M=this.shapeList[D]._seriesIndex,L[M]&&!L[M][3]&&"candle"===this.shapeList[D].type){if(J=A.get(this.shapeList[D],"dataIndex"),C=F[M],L[M][2]&&J===C.data.length-1){this.zr.delShape(this.shapeList[D].id);continue}if(!L[M][2]&&0===J){this.zr.delShape(this.shapeList[D].id);continue}G=this.component.xAxis.getAxis(C.xAxisIndex||0).getGap(),H=L[M][2]?G:-G,_=0,$++,this.zr.animate(this.shapeList[D].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[H,_]}).done(I).start()}$||B&&B()}},C.inherits($,E),_("../chart").define("k",$),$}),D("echarts/chart/chord",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Sector","../util/shape/Ribbon","../util/shape/Icon","zrender/shape/BezierCurve","../config","../util/ecData","zrender/tool/util","zrender/tool/vector","../data/Graph","../layout/Chord","../chart"],function(J){"use strict";function A(_,$,C,B,A){H.call(this,_,$,C,B,A),this.scaleLineLength=4,this.scaleUnitAngle=4,this.refresh(B)}var H=J("./base"),E=J("zrender/shape/Text"),L=J("zrender/shape/Line"),K=J("zrender/shape/Sector"),C=J("../util/shape/Ribbon"),D=J("../util/shape/Icon"),G=J("zrender/shape/BezierCurve"),F=J("../config");F.chord={zlevel:0,z:2,clickable:!0,radius:["65%","75%"],center:["50%","50%"],padding:2,sort:"none",sortSub:"none",startAngle:90,clockWise:!0,ribbonType:!0,minRadius:10,maxRadius:20,symbol:"circle",showScale:!1,showScaleText:!1,itemStyle:{normal:{borderWidth:0,borderColor:"#000",label:{show:!0,rotate:!1,distance:5},chordStyle:{width:1,color:"black",borderWidth:1,borderColor:"#999",opacity:0.5}},emphasis:{borderWidth:0,borderColor:"#000",chordStyle:{width:1,color:"black",borderWidth:1,borderColor:"#999"}}}};var _=J("../util/ecData"),B=J("zrender/tool/util"),M=J("zrender/tool/vector"),I=J("../data/Graph"),$=J("../layout/Chord");return A.prototype={type:F.CHART_TYPE_CHORD,_init:function(){var _=this.series;this.selectedMap={};for(var $={},G={},E=0,B=_.length;B>E;E++)if(_[E].type===this.type){var A=this.isSelected(_[E].name);this.selectedMap[_[E].name]=A,A&&this.buildMark(E),this.reformOption(_[E]),$[_[E].name]=_[E]}for(E=0,B=_.length;B>E;E++)if(_[E].type===this.type)if(_[E].insertToSerie){var C=$[_[E].insertToSerie];_[E]._referenceSerie=C}else G[_[E].name]=[_[E]];for(E=0,B=_.length;B>E;E++)if(_[E].type===this.type&&_[E].insertToSerie){for(var D=_[E]._referenceSerie;D&&D._referenceSerie;)D=D._referenceSerie;G[D.name]&&this.selectedMap[_[E].name]&&G[D.name].push(_[E])}for(var F in G)this._buildChords(G[F]);this.addShapeList()},_getNodeCategory:function(_,$){return _.categories&&_.categories[$.category||0]},_getNodeQueryTarget:function(_,$){var A=this._getNodeCategory(_,$);return[$,A,_]},_getEdgeQueryTarget:function(_,$,A){return A=A||"normal",[$.itemStyle&&$.itemStyle[A],_.itemStyle[A].chordStyle]},_buildChords:function(L){for(var B=[],J=L[0],F=function($){return $.layout.size>0},N=function($){return function(_){return $.getEdge(_.node2,_.node1)}},M=0;M<L.length;M++){var D=L[M];if(this.selectedMap[D.name]){var E;D.matrix?E=this._getSerieGraphFromDataMatrix(D,J):D.links&&(E=this._getSerieGraphFromNodeLinks(D,J)),E.filterNode(F,this),D.ribbonType&&E.filterEdge(N(E)),B.push(E),E.__serie=D}}if(B.length){var I=B[0];if(!J.ribbonType){var G=J.minRadius,A=J.maxRadius,C=1/0,O=-1/0;I.eachNode(function($){O=Math.max($.layout.size,O),C=Math.min($.layout.size,C)});var K=(A-G)/(O-C);I.eachNode(function(_){var $=this._getNodeQueryTarget(J,_),A=this.query($,"symbolSize");_.layout.size=O===C?A||C:A||(_.layout.size-C)*K+G},this)}var _=new $;_.clockWise=J.clockWise,_.startAngle=J.startAngle*Math.PI/180,_.clockWise||(_.startAngle=-_.startAngle),_.padding=J.padding*Math.PI/180,_.sort=J.sort,_.sortSub=J.sortSub,_.directed=J.ribbonType,_.run(B);var P=this.query(J,"itemStyle.normal.label.show");if(J.ribbonType){this._buildSectors(J,0,I,J,B),P&&this._buildLabels(J,0,I,J,B);for(var M=0,H=0;M<L.length;M++)this.selectedMap[L[M].name]&&this._buildRibbons(L,M,B[H++],J);J.showScale&&this._buildScales(J,0,I)}else{this._buildNodeIcons(J,0,I,J,B),P&&this._buildLabels(J,0,I,J,B);for(M=0,H=0;M<L.length;M++)this.selectedMap[L[M].name]&&this._buildEdgeCurves(L,M,B[H++],J,I)}this._initHoverHandler(L,B)}},_getSerieGraphFromDataMatrix:function(J,A){for(var H=[],E=0,L=[],K=0;K<J.matrix.length;K++)L[K]=J.matrix[K].slice();for(var C=J.data||J.nodes,K=0;K<C.length;K++){var D={},G=C[K];G.rawIndex=K;for(var F in G)"name"===F?D.id=G.name:D[F]=G[F];var _=this._getNodeCategory(A,G),B=_?_.name:G.name;if(this.selectedMap[B]=this.isSelected(B),this.selectedMap[B])H.push(D),E++;else{L.splice(E,1);for(var M=0;M<L.length;M++)L[M].splice(E,1)}}var $=I.fromMatrix(H,L,!0);return $.eachNode(function($){$.layout={size:$.data.outValue},$.rawIndex=$.data.rawIndex}),$.eachEdge(function($){$.layout={weight:$.data.weight}}),$},_getSerieGraphFromNodeLinks:function(J,A){for(var H=new I(!0),E=J.data||J.nodes,L=0,K=E.length;K>L;L++){var C=E[L];if(C&&!C.ignore){var D=this._getNodeCategory(A,C),G=D?D.name:C.name;if(this.selectedMap[G]=this.isSelected(G),this.selectedMap[G]){var F=H.addNode(C.name,C);F.rawIndex=L}}}for(L=0,K=J.links.length;K>L;L++){var _=J.links[L],B=_.source,M=_.target;"number"==typeof B&&(B=E[B],B&&(B=B.name)),"number"==typeof M&&(M=E[M],M&&(M=M.name));var $=H.addEdge(B,M,_);$&&($.rawIndex=L)}return H.eachNode(function($){var B=$.data.value;if(null==B)if(B=0,A.ribbonType){for(var _=0;_<$.outEdges.length;_++)B+=$.outEdges[_].data.weight||0}else for(_=0;_<$.edges.length;_++)B+=$.edges[_].data.weight||0;$.layout={size:B}}),H.eachEdge(function($){$.layout={weight:null==$.data.weight?1:$.data.weight}}),H},_initHoverHandler:function(_,$){var C=_[0],B=$[0],A=this;B.eachNode(function(_){_.shape.onmouseover=function(){B.eachNode(function($){$.shape.style.opacity=0.1,$.labelShape&&($.labelShape.style.opacity=0.1,$.labelShape.modSelf()),$.shape.modSelf()});for(var H=0;H<$.length;H++)for(var C=0;C<$[H].edges.length;C++){var D=$[H].edges[C],E=A._getEdgeQueryTarget($[H].__serie,D.data);D.shape.style.opacity=0.1*A.deepQuery(E,"opacity"),D.shape.modSelf()}_.shape.style.opacity=1,_.labelShape&&(_.labelShape.style.opacity=1);for(H=0;H<$.length;H++){var G=$[H].getNodeById(_.id);if(G)for(C=0;C<G.outEdges.length;C++){D=G.outEdges[C],E=A._getEdgeQueryTarget($[H].__serie,D.data);D.shape.style.opacity=A.deepQuery(E,"opacity");var F=$[0].getNodeById(D.node2.id);F&&(F.shape&&(F.shape.style.opacity=1),F.labelShape&&(F.labelShape.style.opacity=1))}}A.zr.refreshNextFrame()},_.shape.onmouseout=function(){B.eachNode(function($){$.shape.style.opacity=1,$.labelShape&&($.labelShape.style.opacity=1,$.labelShape.modSelf()),$.shape.modSelf()});for(var _=0;_<$.length;_++)for(var D=0;D<$[_].edges.length;D++){var E=$[_].edges[D],F=[E.data,C];E.shape.style.opacity=A.deepQuery(F,"itemStyle.normal.chordStyle.opacity"),E.shape.modSelf()}A.zr.refreshNextFrame()}})},_buildSectors:function(A,$,G,E){var B=this.parseCenter(this.zr,E.center),C=this.parseRadius(this.zr,E.radius),D=E.clockWise,F=D?1:-1;G.eachNode(function(M){var L=this._getNodeCategory(E,M.data),I=this.getColor(L?L.name:M.id),J=M.layout.startAngle/Math.PI*180*F,H=M.layout.endAngle/Math.PI*180*F,G=new K({zlevel:A.zlevel,z:A.z,style:{x:B[0],y:B[1],r0:C[0],r:C[1],startAngle:J,endAngle:H,brushType:"fill",opacity:1,color:I,clockWise:D},clickable:E.clickable,highlightStyle:{brushType:"fill"}});G.style.lineWidth=this.deepQuery([M.data,E],"itemStyle.normal.borderWidth"),G.highlightStyle.lineWidth=this.deepQuery([M.data,E],"itemStyle.emphasis.borderWidth"),G.style.strokeColor=this.deepQuery([M.data,E],"itemStyle.normal.borderColor"),G.highlightStyle.strokeColor=this.deepQuery([M.data,E],"itemStyle.emphasis.borderColor"),G.style.lineWidth>0&&(G.style.brushType="both"),G.highlightStyle.lineWidth>0&&(G.highlightStyle.brushType="both"),_.pack(G,A,$,M.data,M.rawIndex,M.id,M.category),this.shapeList.push(G),M.shape=G},this)},_buildNodeIcons:function(A,$,G,F){var C=this.parseCenter(this.zr,F.center),B=this.parseRadius(this.zr,F.radius),E=B[1];G.eachNode(function(O){var I=O.layout.startAngle,N=O.layout.endAngle,L=(I+N)/2,J=E*Math.cos(L),K=E*Math.sin(L),H=this._getNodeQueryTarget(F,O.data),G=this._getNodeCategory(F,O.data),B=this.deepQuery(H,"itemStyle.normal.color");B||(B=this.getColor(G?G.name:O.id));var M=new D({zlevel:A.zlevel,z:A.z+1,style:{x:-O.layout.size,y:-O.layout.size,width:2*O.layout.size,height:2*O.layout.size,iconType:this.deepQuery(H,"symbol"),color:B,brushType:"both",lineWidth:this.deepQuery(H,"itemStyle.normal.borderWidth"),strokeColor:this.deepQuery(H,"itemStyle.normal.borderColor")},highlightStyle:{color:this.deepQuery(H,"itemStyle.emphasis.color"),lineWidth:this.deepQuery(H,"itemStyle.emphasis.borderWidth"),strokeColor:this.deepQuery(H,"itemStyle.emphasis.borderColor")},clickable:F.clickable,position:[J+C[0],K+C[1]]});_.pack(M,A,$,O.data,O.rawIndex,O.id,O.category),this.shapeList.push(M),O.shape=M},this)},_buildLabels:function(A,_,I,C){var B=this.query(C,"itemStyle.normal.label.rotate"),D=this.query(C,"itemStyle.normal.label.distance"),F=this.parseCenter(this.zr,C.center),H=this.parseRadius(this.zr,C.radius),G=C.clockWise,$=G?1:-1;I.eachNode(function(J){var P=J.layout.startAngle/Math.PI*180*$,L=J.layout.endAngle/Math.PI*180*$,K=(P*-$+L*-$)/2;K%=360,0>K&&(K+=360);var I=90>=K||K>=270;K=K*Math.PI/180;var G=[Math.cos(K),-Math.sin(K)],_=0;_=C.ribbonType?C.showScaleText?35+D:D:D+J.layout.size;var O=M.scale([],G,H[1]+_);M.add(O,O,F);var N={zlevel:A.zlevel,z:A.z+1,hoverable:!1,style:{text:null==J.data.label?J.id:J.data.label,textAlign:I?"left":"right"}};B?(N.rotation=I?K:Math.PI+K,N.style.x=I?H[1]+_:-H[1]-_,N.style.y=0,N.position=F.slice()):(N.style.x=O[0],N.style.y=O[1]),N.style.color=this.deepQuery([J.data,C],"itemStyle.normal.label.textStyle.color")||"#000000",N.style.textFont=this.getFont(this.deepQuery([J.data,C],"itemStyle.normal.label.textStyle")),N=new E(N),this.shapeList.push(N),J.labelShape=N},this)},_buildRibbons:function(A,$,G,F){var D=A[$],B=this.parseCenter(this.zr,F.center),E=this.parseRadius(this.zr,F.radius);G.eachEdge(function(S,P){var M,N=G.getEdge(S.node2,S.node1);if(N&&!S.shape){if(N.shape)return void(S.shape=N.shape);var K=S.layout.startAngle/Math.PI*180,J=S.layout.endAngle/Math.PI*180,H=N.layout.startAngle/Math.PI*180,R=N.layout.endAngle/Math.PI*180;M=this.getColor(1===A.length?S.layout.weight<=N.layout.weight?S.node1.id:S.node2.id:D.name);var Q,O,I=this._getEdgeQueryTarget(D,S.data),T=this._getEdgeQueryTarget(D,S.data,"emphasis"),L=new C({zlevel:D.zlevel,z:D.z,style:{x:B[0],y:B[1],r:E[0],source0:K,source1:J,target0:H,target1:R,brushType:"both",opacity:this.deepQuery(I,"opacity"),color:M,lineWidth:this.deepQuery(I,"borderWidth"),strokeColor:this.deepQuery(I,"borderColor"),clockWise:F.clockWise},clickable:F.clickable,highlightStyle:{brushType:"both",opacity:this.deepQuery(T,"opacity"),lineWidth:this.deepQuery(T,"borderWidth"),strokeColor:this.deepQuery(T,"borderColor")}});S.layout.weight<=N.layout.weight?(Q=N.node1,O=N.node2):(Q=S.node1,O=S.node2),_.pack(L,D,$,S.data,null==S.rawIndex?P:S.rawIndex,S.data.name||Q.id+"-"+O.id,Q.id,O.id),this.shapeList.push(L),S.shape=L}},this)},_buildEdgeCurves:function(A,$,F,E,C){var B=A[$],D=this.parseCenter(this.zr,E.center);F.eachEdge(function(F,M){var K=C.getNodeById(F.node1.id),J=C.getNodeById(F.node2.id),L=K.shape,H=J.shape,I=this._getEdgeQueryTarget(B,F.data),E=this._getEdgeQueryTarget(B,F.data,"emphasis"),A=new G({zlevel:B.zlevel,z:B.z,style:{xStart:L.position[0],yStart:L.position[1],xEnd:H.position[0],yEnd:H.position[1],cpX1:D[0],cpY1:D[1],lineWidth:this.deepQuery(I,"width"),strokeColor:this.deepQuery(I,"color"),opacity:this.deepQuery(I,"opacity")},highlightStyle:{lineWidth:this.deepQuery(E,"width"),strokeColor:this.deepQuery(E,"color"),opacity:this.deepQuery(E,"opacity")}});_.pack(A,B,$,F.data,null==F.rawIndex?M:F.rawIndex,F.data.name||F.node1.id+"-"+F.node2.id,F.node1.id,F.node2.id),this.shapeList.push(A),F.shape=A},this)},_buildScales:function(C,B,K){var D,G,H=C.clockWise,J=this.parseCenter(this.zr,C.center),I=this.parseRadius(this.zr,C.radius),A=H?1:-1,F=0,_=-1/0;C.showScaleText&&(K.eachNode(function(A){var $=A.data.value;$>_&&(_=$),F+=$}),_>10000000000?(D="b",G=1e-9):_>10000000?(D="m",G=0.000001):_>10000?(D="k",G=0.001):(D="",G=1));var $=F/(360-C.padding);K.eachNode(function(B){for(var O=B.layout.startAngle/Math.PI*180,K=B.layout.endAngle/Math.PI*180,R=O;;){if(H&&R>K||!H&&K>R)break;var _=R/180*Math.PI,V=[Math.cos(_),Math.sin(_)],N=M.scale([],V,I[1]+1);M.add(N,N,J);var T=M.scale([],V,I[1]+this.scaleLineLength);M.add(T,T,J);var Q=new L({zlevel:C.zlevel,z:C.z-1,hoverable:!1,style:{xStart:N[0],yStart:N[1],xEnd:T[0],yEnd:T[1],lineCap:"round",brushType:"stroke",strokeColor:"#666",lineWidth:1}});this.shapeList.push(Q),R+=A*this.scaleUnitAngle}if(C.showScaleText)for(var W=O,F=5*$*this.scaleUnitAngle,S=0;;){if(H&&W>K||!H&&K>W)break;_=W;_%=360,0>_&&(_+=360);var P=90>=_||_>=270,U=new E({zlevel:C.zlevel,z:C.z-1,hoverable:!1,style:{x:P?I[1]+this.scaleLineLength+4:-I[1]-this.scaleLineLength-4,y:0,text:Math.round(10*S)/10+D,textAlign:P?"left":"right"},position:J.slice(),rotation:P?[-_/180*Math.PI,0,0]:[-(_+180)/180*Math.PI,0,0]});this.shapeList.push(U),S+=F*G,W+=A*this.scaleUnitAngle*5}},this)},refresh:function(_){if(_&&(this.option=_,this.series=_.series),this.legend=this.component.legend,this.legend)this.getColor=function($){return this.legend.getColor($)},this.isSelected=function($){return this.legend.isSelected($)};else{var $={},A=0;this.getColor=function(_){return $[_]?$[_]:($[_]||($[_]=this.zr.getColor(A++)),$[_])},this.isSelected=function(){return!0}}this.backupShapeList(),this._init()},reformOption:function(_){var $=B.merge;_=$($(_||{},this.ecTheme.chord),F.chord),_.itemStyle.normal.label.textStyle=this.getTextStyle(_.itemStyle.normal.label.textStyle),this.z=_.z,this.zlevel=_.zlevel}},B.inherits(A,H),J("../chart").define("chord",A),A}),D("echarts/chart/force",["require","./base","../data/Graph","../layout/Force","zrender/shape/Line","zrender/shape/BezierCurve","zrender/shape/Image","../util/shape/Icon","../config","../util/ecData","zrender/tool/util","zrender/config","zrender/tool/vector","../chart"],function(L){"use strict";function B(A,_,B,G,$){var C=this;D.call(this,A,_,B,G,$),this.__nodePositionMap={},this._graph=new E(!0),this._layout=new I,this._layout.onupdate=function(){C._step()},this._steps=1,this.ondragstart=function(){J.apply(C,arguments)},this.ondragend=function(){N.apply(C,arguments)},this.ondrop=function(){},this.shapeHandler.ondragstart=function(){C.isDragstart=!0},this.onmousemove=function(){F.apply(C,arguments)},this.refresh(G)}function J(_){if(this.isDragstart&&_.target){var $=_.target;$.fixed=!0,this.isDragstart=!1,this.zr.on(P.EVENT.MOUSEMOVE,this.onmousemove)}}function F(){this._layout.temperature=0.8,this._step()}function N(_,$){if(this.isDragend&&_.target){var A=_.target;A.fixed=!1,$.dragIn=!0,$.needRefresh=!1,this.isDragend=!1,this.zr.un(P.EVENT.MOUSEMOVE,this.onmousemove)}}function M(_,$,B){var A=H.create();return A[0]=(Math.random()-0.5)*B+_,A[1]=(Math.random()-0.5)*B+$,A}var D=L("./base"),E=L("../data/Graph"),I=L("../layout/Force"),G=L("zrender/shape/Line"),A=L("zrender/shape/BezierCurve"),C=L("zrender/shape/Image"),O=L("../util/shape/Icon"),K=L("../config");K.force={zlevel:1,z:2,center:["50%","50%"],size:"100%",preventOverlap:!1,coolDown:0.99,minRadius:10,maxRadius:20,ratioScaling:!1,large:!1,useWorker:!1,steps:1,scaling:1,gravity:1,symbol:"circle",symbolSize:0,linkSymbol:null,linkSymbolSize:[10,15],draggable:!0,clickable:!0,roam:!1,itemStyle:{normal:{label:{show:!1,position:"inside"},nodeStyle:{brushType:"both",borderColor:"#5182ab",borderWidth:1},linkStyle:{color:"#5182ab",width:1,type:"line"}},emphasis:{label:{show:!1},nodeStyle:{},linkStyle:{opacity:0}}}};var _=L("../util/ecData"),$=L("zrender/tool/util"),P=L("zrender/config"),H=L("zrender/tool/vector");return B.prototype={constructor:B,type:K.CHART_TYPE_FORCE,_init:function(){this.selectedMap={};var _,$=this.component.legend,D=this.series;this.clear();for(var C=0,B=D.length;B>C;C++){var A=D[C];if(A.type===K.CHART_TYPE_FORCE){if(D[C]=this.reformOption(D[C]),_=D[C].name||"",this.selectedMap[_]=$?$.isSelected(_):!0,!this.selectedMap[_])continue;this.buildMark(C),this._initSerie(A,C);break}}this.animationEffect()},_getNodeCategory:function(_,$){return _.categories&&_.categories[$.category||0]},_getNodeQueryTarget:function(_,$,B){B=B||"normal";var A=this._getNodeCategory(_,$)||{};return[$.itemStyle&&$.itemStyle[B],A&&A.itemStyle&&A.itemStyle[B],_.itemStyle[B].nodeStyle]},_getEdgeQueryTarget:function(_,$,A){return A=A||"normal",[$.itemStyle&&$.itemStyle[A],_.itemStyle[A].linkStyle]},_initSerie:function(_,$){this._temperature=1,_.matrix?this._graph=this._getSerieGraphFromDataMatrix(_):_.links&&(this._graph=this._getSerieGraphFromNodeLinks(_)),this._buildLinkShapes(_,$),this._buildNodeShapes(_,$);var B=_.roam===!0||"move"===_.roam,A=_.roam===!0||"scale"===_.roam;this.zr.modLayer(this.getZlevelBase(),{panable:B,zoomable:A}),(this.query("markPoint.effect.show")||this.query("markLine.effect.show"))&&this.zr.modLayer(K.EFFECT_ZLEVEL,{panable:B,zoomable:A}),this._initLayout(_),this._step()},_getSerieGraphFromDataMatrix:function(I){for(var _=[],G=0,C=[],K=0;K<I.matrix.length;K++)C[K]=I.matrix[K].slice();for(var J=I.data||I.nodes,K=0;K<J.length;K++){var B={},F=J[K];for(var D in F)"name"===D?B.id=F.name:B[D]=F[D];var $=this._getNodeCategory(I,F),A=$?$.name:F.name;if(this.selectedMap[A]=this.isSelected(A),this.selectedMap[A])_.push(B),G++;else{C.splice(G,1);for(var L=0;L<C.length;L++)C[L].splice(G,1)}}var H=E.fromMatrix(_,C,!0);return H.eachNode(function(_,$){_.layout={size:_.data.value,mass:0},_.rawIndex=$}),H.eachEdge(function($){$.layout={weight:$.data.weight}}),H},_getSerieGraphFromNodeLinks:function(I){for(var _=new E(!0),G=I.data||I.nodes,C=0,K=G.length;K>C;C++){var J=G[C];if(J&&!J.ignore){var B=this._getNodeCategory(I,J),F=B?B.name:J.name;if(this.selectedMap[F]=this.isSelected(F),this.selectedMap[F]){var D=_.addNode(J.name,J);D.rawIndex=C}}}for(C=0,K=I.links.length;K>C;C++){var $=I.links[C],A=$.source,L=$.target;"number"==typeof A&&(A=G[A],A&&(A=A.name)),"number"==typeof L&&(L=G[L],L&&(L=L.name));var H=_.addEdge(A,L,$);H&&(H.rawIndex=C)}return _.eachNode(function(_){var $=_.data.value;if(null==$){$=0;for(var A=0;A<_.edges.length;A++)$+=_.edges[A].data.weight||0}_.layout={size:$,mass:0}}),_.eachEdge(function($){$.layout={weight:null==$.data.weight?1:$.data.weight}}),_},_initLayout:function(L){var B=this._graph,J=B.nodes.length,F=this.query(L,"minRadius"),N=this.query(L,"maxRadius");this._steps=L.steps||1;var D=this._layout;D.center=this.parseCenter(this.zr,L.center),D.width=this.parsePercent(L.size,this.zr.getWidth()),D.height=this.parsePercent(L.size,this.zr.getHeight()),D.large=L.large,D.scaling=L.scaling,D.ratioScaling=L.ratioScaling,D.gravity=L.gravity,D.temperature=1,D.coolDown=L.coolDown,D.preventNodeEdgeOverlap=L.preventOverlap,D.preventNodeOverlap=L.preventOverlap;for(var E=1/0,I=-1/0,G=0;J>G;G++){var A=B.nodes[G];I=Math.max(A.layout.size,I),E=Math.min(A.layout.size,E)}for(var C=I-E,G=0;J>G;G++){A=B.nodes[G];C>0?(A.layout.size=(A.layout.size-E)*(N-F)/C+F,A.layout.mass=A.layout.size/N):(A.layout.size=(N-F)/2,A.layout.mass=0.5)}for(G=0;J>G;G++){A=B.nodes[G];if("undefined"!=typeof this.__nodePositionMap[A.id])A.layout.position=H.create(),H.copy(A.layout.position,this.__nodePositionMap[A.id]);else if("undefined"!=typeof A.data.initial)A.layout.position=H.create(),H.copy(A.layout.position,A.data.initial);else{var O=this._layout.center,K=Math.min(this._layout.width,this._layout.height);A.layout.position=M(O[0],O[1],0.8*K)}var _=A.shape.style,$=A.layout.size;_.width=_.width||2*$,_.height=_.height||2*$,_.x=-_.width/2,_.y=-_.height/2,H.copy(A.shape.position,A.layout.position)}J=B.edges.length,I=-1/0;for(G=0;J>G;G++){var P=B.edges[G];P.layout.weight>I&&(I=P.layout.weight)}for(G=0;J>G;G++){P=B.edges[G];P.layout.weight/=I}this._layout.init(B,L.useWorker)},_buildNodeShapes:function(A,$){var D=this._graph,B=this.query(A,"categories");D.eachNode(function(K){var F=this._getNodeCategory(A,K.data),E=[K.data,F,A],G=this._getNodeQueryTarget(A,K.data),H=this._getNodeQueryTarget(A,K.data,"emphasis"),J=new O({style:{x:0,y:0,color:this.deepQuery(G,"color"),brushType:"both",strokeColor:this.deepQuery(G,"strokeColor")||this.deepQuery(G,"borderColor"),lineWidth:this.deepQuery(G,"lineWidth")||this.deepQuery(G,"borderWidth")},highlightStyle:{color:this.deepQuery(H,"color"),strokeColor:this.deepQuery(H,"strokeColor")||this.deepQuery(H,"borderColor"),lineWidth:this.deepQuery(H,"lineWidth")||this.deepQuery(H,"borderWidth")},clickable:A.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()});J.style.color||(J.style.color=this.getColor(F?F.name:K.id)),J.style.iconType=this.deepQuery(E,"symbol");var I=this.deepQuery(E,"symbolSize")||0;"number"==typeof I&&(I=[I,I]),J.style.width=2*I[0],J.style.height=2*I[1],J.style.iconType.match("image")&&(J.style.image=J.style.iconType.replace(new RegExp("^image:\\/\\/"),""),J=new C({style:J.style,highlightStyle:J.highlightStyle,clickable:J.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()})),this.deepQuery(E,"itemStyle.normal.label.show")&&(J.style.text=null==K.data.label?K.id:K.data.label,J.style.textPosition=this.deepQuery(E,"itemStyle.normal.label.position"),J.style.textColor=this.deepQuery(E,"itemStyle.normal.label.textStyle.color"),J.style.textFont=this.getFont(this.deepQuery(E,"itemStyle.normal.label.textStyle")||{})),this.deepQuery(E,"itemStyle.emphasis.label.show")&&(J.highlightStyle.textPosition=this.deepQuery(E,"itemStyle.emphasis.label.position"),J.highlightStyle.textColor=this.deepQuery(E,"itemStyle.emphasis.label.textStyle.color"),J.highlightStyle.textFont=this.getFont(this.deepQuery(E,"itemStyle.emphasis.label.textStyle")||{})),this.deepQuery(E,"draggable")&&(this.setCalculable(J),J.dragEnableTime=0,J.draggable=!0,J.ondragstart=this.shapeHandler.ondragstart,J.ondragover=null);var D="";if("undefined"!=typeof K.category){F=B[K.category];D=F&&F.name||""}_.pack(J,A,$,K.data,K.rawIndex,K.data.name||"",K.category),this.shapeList.push(J),this.zr.addShape(J),K.shape=J},this)},_buildLinkShapes:function(M,B){for(var J=this._graph,F=J.edges.length,P=0;F>P;P++){var N=J.edges[P],D=N.data,E=N.node1,I=N.node2,C=J.getEdge(I,E),L=this._getEdgeQueryTarget(M,D),R=this.deepQuery(L,"type");M.linkSymbol&&"none"!==M.linkSymbol&&(R="line");var H="line"===R?G:A,Q=new H({style:{xStart:0,yStart:0,xEnd:0,yEnd:0},clickable:this.query(M,"clickable"),highlightStyle:{},zlevel:this.getZlevelBase(),z:this.getZBase()});if(C&&C.shape&&(Q.style.offset=4,C.shape.style.offset=4),$.merge(Q.style,this.query(M,"itemStyle.normal.linkStyle"),!0),$.merge(Q.highlightStyle,this.query(M,"itemStyle.emphasis.linkStyle"),!0),"undefined"!=typeof D.itemStyle&&(D.itemStyle.normal&&$.merge(Q.style,D.itemStyle.normal,!0),D.itemStyle.emphasis&&$.merge(Q.highlightStyle,D.itemStyle.emphasis,!0)),Q.style.lineWidth=Q.style.lineWidth||Q.style.width,Q.style.strokeColor=Q.style.strokeColor||Q.style.color,Q.highlightStyle.lineWidth=Q.highlightStyle.lineWidth||Q.highlightStyle.width,Q.highlightStyle.strokeColor=Q.highlightStyle.strokeColor||Q.highlightStyle.color,_.pack(Q,M,B,N.data,null==N.rawIndex?P:N.rawIndex,N.data.name||E.id+" - "+I.id,E.id,I.id),this.shapeList.push(Q),this.zr.addShape(Q),N.shape=Q,M.linkSymbol&&"none"!==M.linkSymbol){var K=new O({style:{x:-5,y:0,width:M.linkSymbolSize[0],height:M.linkSymbolSize[1],iconType:M.linkSymbol,brushType:"fill",color:Q.style.strokeColor},highlightStyle:{brushType:"fill"},position:[0,0],rotation:0,zlevel:this.getZlevelBase(),z:this.getZBase()});Q._symbolShape=K,this.shapeList.push(K),this.zr.addShape(K)}}},_updateLinkShapes:function(){for(var I=H.create(),_=H.create(),G=H.create(),D=H.create(),K=this._graph.edges,J=0,B=K.length;B>J;J++){var C=K[J],F=C.node1.shape,E=C.node2.shape;H.copy(G,F.position),H.copy(D,E.position);var $=C.shape.style;if(H.sub(I,G,D),H.normalize(I,I),$.offset?(_[0]=I[1],_[1]=-I[0],H.scaleAndAdd(G,G,_,$.offset),H.scaleAndAdd(D,D,_,$.offset)):"bezier-curve"===C.shape.type&&($.cpX1=(G[0]+D[0])/2-(D[1]-G[1])/4,$.cpY1=(G[1]+D[1])/2-(G[0]-D[0])/4),$.xStart=G[0],$.yStart=G[1],$.xEnd=D[0],$.yEnd=D[1],C.shape.modSelf(),C.shape._symbolShape){var A=C.shape._symbolShape;H.copy(A.position,D),H.scaleAndAdd(A.position,A.position,I,E.style.width/2+2);var L=Math.atan2(I[1],I[0]);A.rotation=Math.PI/2-L,A.modSelf()}}},_syncNodePositions:function(){for(var _=this._graph,$=0;$<_.nodes.length;$++){var I=_.nodes[$],E=I.layout.position,B=I.data,A=I.shape,C=A.fixed||B.fixX,D=A.fixed||B.fixY;C===!0?C=1:isNaN(C)&&(C=0),D===!0?D=1:isNaN(D)&&(D=0),A.position[0]+=(E[0]-A.position[0])*(1-C),A.position[1]+=(E[1]-A.position[1])*(1-D),H.copy(E,A.position);var G=B.name;if(G){var F=this.__nodePositionMap[G];F||(F=this.__nodePositionMap[G]=H.create()),H.copy(F,E)}A.modSelf()}},_step:function(){this._syncNodePositions(),this._updateLinkShapes(),this.zr.refreshNextFrame(),this._layout.temperature>0.01?this._layout.step(this._steps):this.messageCenter.dispatch(K.EVENT.FORCE_LAYOUT_END,{},{},this.myChart)},refresh:function(_){if(_&&(this.option=_,this.series=this.option.series),this.legend=this.component.legend,this.legend)this.getColor=function($){return this.legend.getColor($)},this.isSelected=function($){return this.legend.isSelected($)};else{var $={},A=0;this.getColor=function(_){return $[_]?$[_]:($[_]||($[_]=this.zr.getColor(A++)),$[_])},this.isSelected=function(){return!0}}this._init()},dispose:function(){this.clear(),this.shapeList=null,this.effectList=null,this._layout.dispose(),this._layout=null,this.__nodePositionMap={}},getPosition:function(){var $=[];return this._graph.eachNode(function(_){_.layout&&$.push({name:_.data.name,position:Array.prototype.slice.call(_.layout.position)})}),$}},$.inherits(B,D),L("../chart").define("force",B),B}),D("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"),B=H("zrender/shape/Rectangle"),C=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,D=this._paramsMap[L],E=D.center,I=D.startAngle,G=D.totalAngle,C=D.colorArray,O=B.axisLine.lineStyle,K=this.parsePercent(O.width,D.radius[1]),A=D.radius[1],_=A-K,Q=I,H=0,P=C.length;P>H;H++)F=I-G*(C[H][0]-N)/M,J=this._getSector(E,_,A,F,Q,C[H][1],O,B.zlevel,B.z),Q=F,J._animationAdd="r",$.set(J,"seriesIndex",L),$.set(J,"dataIndex",H),this.shapeList.push(J)},_buildSplitLine:function(N){var B=this.series[N];if(B.splitLine.show)for(var K,F,O,D=this._paramsMap[N],E=B.splitNumber,J=B.min,G=B.max-J,A=B.splitLine,C=this.parsePercent(A.length,D.radius[1]),P=A.lineStyle,M=P.color,_=D.center,$=D.startAngle*Math.PI/180,R=D.totalAngle*Math.PI/180,H=D.radius[1],Q=H-C,L=0;E>=L;L++)K=$-R/E*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*H,yStart:_[1]-F*H,xEnd:_[0]+O*Q,yEnd:_[1]-F*Q,strokeColor:"auto"===M?this._getColor(N,J+G/E*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,E=this._paramsMap[O],F=B.splitNumber,K=B.min,H=B.max-K,A=B.axisTick,D=A.splitNumber,Q=this.parsePercent(A.length,E.radius[1]),N=A.lineStyle,_=N.color,$=E.center,S=E.startAngle*Math.PI/180,J=E.totalAngle*Math.PI/180,R=E.radius[1],M=R-Q,T=0,C=F*D;C>=T;T++)T%D!==0&&(L=S-J/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*R,yStart:$[1]-G*R,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,D,E=C.splitNumber,I=C.min,G=C.max-I,B=C.axisLabel.textStyle,P=this.getFont(B),M=B.color,_=this._paramsMap[N],$=_.center,R=_.startAngle,H=_.totalAngle,Q=_.radius[1]-this.parsePercent(C.splitLine.length,_.radius[1])-5,L=0;E>=L;L++)D=A.accAdd(I,A.accMul(A.accDiv(G,E),L)),K=R-H/E*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*Q,y:$[1]-F*Q,color:"auto"===M?this._getColor(N,D):M,text:this._getLabelText(C.axisLabel.formatter,D),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 B=this.series[E];if(B.pointer.show){var M=B.max-B.min,H=B.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<B.max?G:B.max;var I=(F.startAngle-F.totalAngle/M*(G-B.min))*Math.PI/180,A="auto"===H.color?this._getColor(E,G):H.color,_=new D({zlevel:B.zlevel,z:B.z+1,clickable:this.query(B,"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 C({zlevel:B.zlevel,z:B.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,D=B.offsetCenter,E=B.textStyle,H=E.color,G=this._paramsMap[A],$=G.center[0]+this.parsePercent(D[0],G.radius[1]),C=G.center[1]+this.parsePercent(D[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*E.fontSize?2:1),hoverable:!1,style:{x:$,y:C,color:"auto"===H?this._getColor(A):H,text:F,textAlign:"center",textFont:this.getFont(E),shadowColor:E.shadowColor,shadowBlur:E.shadowBlur,shadowOffsetX:E.shadowOffsetX,shadowOffsetY:E.shadowOffsetY}}))}}},_buildDetail:function(A){var _=this.series[A];if(_.detail.show){var J=_.detail,G=J.offsetCenter,E=J.backgroundColor,C=J.textStyle,F=C.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 B({zlevel:_.zlevel,z:_.z+(Math.abs($+J.width/2-I.center[0])+Math.abs(D+J.height/2-I.center[1])<C.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(C),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=[],C=0,D=B.length;D>C;C++)A.push([B[C][0]*E+F,B[C][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,C,D,G){return new F({zlevel:D,z:G,hoverable:!1,style:{x:_[0],y:_[1],r0:$,r:H,startAngle:E,endAngle:B,brushType:"fill",color:A,shadowColor:C.shadowColor,shadowBlur:C.shadowBlur,shadowOffsetX:C.shadowOffsetX,shadowOffsetY:C.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",_),_}),D("echarts/chart/eventRiver",["require","./base","../layout/eventRiver","zrender/shape/Polygon","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","../util/date","zrender/tool/util","zrender/tool/color","../chart"],function(_){function $(_,$,D,B,A){H.call(this,_,$,D,B,A);var C=this;C._ondragend=function(){C.isDragend=!0},this.refresh(B)}var H=_("./base"),E=_("../layout/eventRiver"),B=_("zrender/shape/Polygon");_("../component/axis"),_("../component/grid"),_("../component/dataZoom");var A=_("../config");A.eventRiver={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0,position:"inside",formatter:"{b}"}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0}}}};var C=_("../util/ecData"),D=_("../util/date"),G=_("zrender/tool/util"),F=_("zrender/tool/color");return $.prototype={type:A.CHART_TYPE_EVENTRIVER,_buildShape:function(){var _=this.series;this.selectedMap={},this._dataPreprocessing();for(var $=this.component.legend,C=[],B=0;B<_.length;B++)if(_[B].type===this.type){_[B]=this.reformOption(_[B]),this.legendHoverLink=_[B].legendHoverLink||this.legendHoverLink;var A=_[B].name||"";if(this.selectedMap[A]=$?$.isSelected(A):!0,!this.selectedMap[A])continue;this.buildMark(B),C.push(this.series[B])}E(C,this._intervalX,this.component.grid.getArea()),this._drawEventRiver(),this.addShapeList()},_dataPreprocessing:function(){for(var _,$,H=this.series,E=0,B=H.length;B>E;E++)if(H[E].type===this.type){_=this.component.xAxis.getAxis(H[E].xAxisIndex||0);for(var A=0,C=H[E].data.length;C>A;A++){$=H[E].data[A].evolution;for(var G=0,F=$.length;F>G;G++)$[G].timeScale=_.getCoord(D.getNewDate($[G].time)-0),$[G].valueScale=Math.pow($[G].value,0.8)}}this._intervalX=Math.round(this.component.grid.getWidth()/40)},_drawEventRiver:function(){for(var _=this.series,$=0;$<_.length;$++){var B=_[$].name||"";if(_[$].type===this.type&&this.selectedMap[B])for(var A=0;A<_[$].data.length;A++)this._drawEventBubble(_[$].data[A],$,A)}},_drawEventBubble:function(M,D,K){var H=this.series,N=H[D],G=N.name||"",J=N.data[K],A=[J,N],E=this.component.legend,O=E?E.getColor(G):this.zr.getColor(D),L=this.deepMerge(A,"itemStyle.normal")||{},_=this.deepMerge(A,"itemStyle.emphasis")||{},$=this.getItemStyleColor(L.color,D,K,J)||O,Q=this.getItemStyleColor(_.color,D,K,J)||("string"==typeof $?F.lift($,-0.2):$),I=this._calculateControlPoints(M),P={zlevel:N.zlevel,z:N.z,clickable:this.deepQuery(A,"clickable"),style:{pointList:I,smooth:"spline",brushType:"both",lineJoin:"round",color:$,lineWidth:L.borderWidth,strokeColor:L.borderColor},highlightStyle:{color:Q,lineWidth:_.borderWidth,strokeColor:_.borderColor},draggable:"vertical",ondragend:this._ondragend};P=new B(P),this.addLabel(P,N,J,M.name),C.pack(P,H[D],D,H[D].data[K],K,H[D].data[K].name),this.shapeList.push(P)},_calculateControlPoints:function(_){var $=this._intervalX,G=_.y,E=_.evolution,B=E.length;if(!(1>B)){for(var A=[],C=[],D=0;B>D;D++)A.push(E[D].timeScale),C.push(E[D].valueScale);var F=[];F.push([A[0],G]);D=0;for(D=0;B-1>D;D++)F.push([(A[D]+A[D+1])/2,C[D]/-2+G]);for(F.push([(A[D]+(A[D]+$))/2,C[D]/-2+G]),F.push([A[D]+$,G]),F.push([(A[D]+(A[D]+$))/2,C[D]/2+G]),D=B-1;D>0;D--)F.push([(A[D]+A[D-1])/2,C[D-1]/2+G]);return F}},ondragend:function(_,$){this.isDragend&&_.target&&($.dragOut=!0,$.dragIn=!0,$.needRefresh=!1,this.isDragend=!1)},refresh:function($){$&&(this.option=$,this.series=$.series),this.backupShapeList(),this._buildShape()}},G.inherits($,H),_("../chart").define("eventRiver",$),$}),D("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"),B=H("../config");B.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 C=H("../util/ecData"),F=H("../util/number"),E=H("zrender/tool/util"),$=H("zrender/tool/color"),A=H("zrender/tool/area");return _.prototype={type:B.CHART_TYPE_FUNNEL,_buildShape:function(){var _=this.series,$=this.component.legend;this._paramsMap={},this._selected={},this.selectedMap={};for(var D,C=0,A=_.length;A>C;C++)if(_[C].type===B.CHART_TYPE_FUNNEL){if(_[C]=this.reformOption(_[C]),this.legendHoverLink=_[C].legendHoverLink||this.legendHoverLink,D=_[C].name||"",this.selectedMap[D]=$?$.isSelected(D):!0,!this.selectedMap[D])continue;this._buildSingleFunnel(C),this.buildMark(C)}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,E=0,G=[],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)&&(G.push(H[I]),E++);if(0!==E){for(var D,S,N,_,$=this._buildFunnelCase(O),U=K.funnelAlign,J=K.gap,T=E>1?(Q.height-(E-1)*J)/E:Q.height,M=Q.y,V="descending"===K.sort?this._getItemWidth(O,G[0].value):F.parsePercent(K.minSize,Q.width),C="descending"===K.sort?1:0,R=Q.centerX,L=[],I=0,A=G.length;A>I;I++)if(P=G[I].name,this.selectedMap[P]&&!isNaN(G[I].value)){switch(D=A-2>=I?this._getItemWidth(O,G[I+C].value):"descending"===K.sort?F.parsePercent(K.minSize,Q.width):F.parsePercent(K.maxSize,Q.width),U){case"left":S=Q.x;break;case"right":S=Q.x+Q.width-V;break;default:S=R-V/2}N=this._buildItem(O,G[I]._index,B?B.getColor(P):this.zr.getColor(G[I]._index),S,M,V,D,T,U),M+=T+J,_=N.style.pointList,L.unshift([_[0][0]-10,_[0][1]]),L.push([_[1][0]+10,_[1][1]]),0===I&&(0===V?(_=L.pop(),"center"==U&&(L[0][0]+=10),"right"==U&&(L[0][0]=_[0]),L[0][1]-="center"==U?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"==U&&(L[0][0]+=10),"right"==U&&(L[0][0]=_[0]),L[0][1]+="center"==U?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||B.calculableHolderColor}};return C.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,B,J,F,N,M,E,I,G){var A=this.series,D=A[L],O=D.data[B],K=this.getPolygon(L,B,J,F,N,M,E,I,G);C.pack(K,A[L],L,A[L].data[B],B,A[L].data[B].name),this.shapeList.push(K);var _=this.getLabel(L,B,J,F,N,M,E,I,G);C.pack(_,A[L],L,A[L].data[B],B,A[L].data[B].name),this.shapeList.push(_),this._needLabel(D,O,!1)||(_.invisible=!0);var $=this.getLabelLine(L,B,J,F,N,M,E,I,G);this.shapeList.push($),this._needLabelLine(D,O,!1)||($.invisible=!0);var P=[],H=[];return this._needLabelLine(D,O,!0)&&(P.push($.id),H.push($.id)),this._needLabel(D,O,!0)&&(P.push(_.id),H.push(K.id)),K.hoverConnect=P,_.hoverConnect=H,K},_getItemWidth:function(_,$){var G=this.series[_],E=this._paramsMap[_].location,B=G.min,A=G.max,C=F.parsePercent(G.minSize,E.width),D=F.parsePercent(G.maxSize,E.width);return($-B)*(D-C)/(A-B)+C},getPolygon:function(N,B,K,F,O,D,E,J,G){var C,P=this.series[N],M=P.data[B],A=[M,P],_=this.deepMerge(A,"itemStyle.normal")||{},R=this.deepMerge(A,"itemStyle.emphasis")||{},H=this.getItemStyleColor(_.color,N,B,M)||K,Q=this.getItemStyleColor(R.color,N,B,M)||("string"==typeof H?$.lift(H,-0.2):H);switch(G){case"left":C=F;break;case"right":C=F+(D-E);break;default:C=F+(D-E)/2}var L={zlevel:P.zlevel,z:P.z,clickable:this.deepQuery(A,"clickable"),style:{pointList:[[F,O],[F+D,O],[C+E,O+J],[C,O+J]],brushType:"both",color:H,lineWidth:_.borderWidth,strokeColor:_.borderColor},highlightStyle:{color:Q,lineWidth:R.borderWidth,strokeColor:R.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,H,I,K,T){var O,B=this.series[P],_=B.data[C],W=this._paramsMap[P].location,J=E.merge(E.clone(_.itemStyle)||{},B.itemStyle),U="normal",N=J[U].label,X=N.textStyle||{},F=J[U].labelLine.length,S=this.getLabelText(P,C,U),M=this.getFont(X),V=L;N.position=N.position||J.normal.label.position,"inner"===N.position||"inside"===N.position||"center"===N.position?(O=T,V=Math.max(H,I)/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,W,H,I,F,T),y:Q+K/2,color:X.color||V,text:S,textAlign:X.align||O,textBaseline:X.baseline||"middle",textFont:M}};return U="emphasis",N=J[U].label||N,X=N.textStyle||X,F=J[U].labelLine.length||F,N.position=N.position||J.normal.label.position,S=this.getLabelText(P,C,U),M=this.getFont(X),V=L,"inner"===N.position||"inside"===N.position||"center"===N.position?(O=T,V=Math.max(H,I)/2>A.getTextWidth(S,M)?"#fff":$.reverse(L)):O="left"===N.position?"right":"left",G.highlightStyle={x:this._getLabelPoint(N.position,R,W,H,I,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,D,F,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",R=_[$].labelLine,H=_[$].labelLine.length,Q=R.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,D,F,A),yStart:O+I/2,xEnd:this._getLabelPoint(L.position,G,M,D,F,H,A),yEnd:O+I/2,strokeColor:Q.color||K,lineType:Q.type,lineWidth:Q.width}};return $="emphasis",R=_[$].labelLine||R,H=_[$].labelLine.length||H,Q=R.lineStyle||Q,L=_[$].label||L,L.position=L.position,S.highlightStyle={xEnd:this._getLabelPoint(L.position,G,M,D,F,H,A),strokeColor:Q.color||K,lineType:Q.type,lineWidth:Q.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",_),_}),D("echarts/chart/venn",["require","./base","zrender/shape/Text","zrender/shape/Circle","zrender/shape/Path","../config","../util/ecData","zrender/tool/util","../chart"],function(_){function $(_,$,C,B,A){G.call(this,_,$,C,B,A),this.refresh(B)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("zrender/shape/Circle"),A=_("zrender/shape/Path"),C=_("../config");C.venn={zlevel:0,z:1,calculable:!1};var D=_("../util/ecData"),F=_("zrender/tool/util");return $.prototype={type:C.CHART_TYPE_VENN,_buildShape:function(){this.selectedMap={},this._symbol=this.option.symbolList,this._queryTarget,this._dropBoxList=[],this._vennDataCounter=0;for(var _=this.series,$=this.component.legend,B=0;B<_.length;B++)if(_[B].type===C.CHART_TYPE_VENN){_[B]=this.reformOption(_[B]);var A=_[B].name||"";if(this.selectedMap[A]=$?$.isSelected(A):!0,!this.selectedMap[A])continue;this._buildVenn(B)}this.addShapeList()},_buildVenn:function(J){var A,H,E=this.series[J],L=E.data;L[0].value>L[1].value?(A=this.zr.getHeight()/3,H=A*Math.sqrt(L[1].value)/Math.sqrt(L[0].value)):(H=this.zr.getHeight()/3,A=H*Math.sqrt(L[0].value)/Math.sqrt(L[1].value));var K=this.zr.getWidth()/2-A,C=(A+H)/2*Math.sqrt(L[2].value)/Math.sqrt((L[0].value+L[1].value)/2),D=A+H;0!==L[2].value&&(D=this._getCoincideLength(L[0].value,L[1].value,L[2].value,A,H,C,Math.abs(A-H),A+H));var G=K+D,F=this.zr.getHeight()/2;if(this._buildItem(J,0,L[0],K,F,A),this._buildItem(J,1,L[1],G,F,H),0!==L[2].value&&L[2].value!==L[0].value&&L[2].value!==L[1].value){var _=(A*A-H*H)/(2*D)+D/2,B=D/2-(A*A-H*H)/(2*D),M=Math.sqrt(A*A-_*_),I=0,$=0;L[0].value>L[1].value&&K+_>G&&($=1),L[0].value<L[1].value&&K+B>G&&(I=1),this._buildCoincideItem(J,2,L[2],K+_,F-M,F+M,A,H,I,$)}},_getCoincideLength:function(K,B,I,F,M,L,D,E){var H=(F*F-M*M)/(2*L)+L/2,G=L/2-(F*F-M*M)/(2*L),A=Math.acos(H/F),C=Math.acos(G/M),N=F*F*Math.PI,J=A*F*F-H*F*Math.sin(A)+C*M*M-G*M*Math.sin(C),_=J/N,$=I/K,O=Math.abs(_/$);return O>0.999&&1.001>O?L:0.999>=O?(E=L,L=(L+D)/2,this._getCoincideLength(K,B,I,F,M,L,D,E)):(D=L,L=(L+E)/2,this._getCoincideLength(K,B,I,F,M,L,D,E))},_buildItem:function(A,_,I,F,C,B){var E=this.series,H=E[A],G=this.getCircle(A,_,I,F,C,B);if(D.pack(G,H,A,I,_,I.name),this.shapeList.push(G),H.itemStyle.normal.label.show){var $=this.getLabel(A,_,I,F,C,B);D.pack($,H,A,H.data[_],_,H.data[_].name),this.shapeList.push($)}},_buildCoincideItem:function(O,C,L,H,P,G,K,I,B,F){var Q=this.series,N=Q[O],_=[L,N],$=this.deepMerge(_,"itemStyle.normal")||{},S=this.deepMerge(_,"itemStyle.emphasis")||{},J=$.color||this.zr.getColor(C),R=S.color||this.zr.getColor(C),M="M"+H+","+P+"A"+K+","+K+",0,"+B+",1,"+H+","+G+"A"+I+","+I+",0,"+F+",1,"+H+","+P,T={color:J,path:M},E={zlevel:N.zlevel,z:N.z,style:T,highlightStyle:{color:R,lineWidth:S.borderWidth,strokeColor:S.borderColor}};E=new A(E),E.buildPathArray&&(E.style.pathArray=E.buildPathArray(T.path)),D.pack(E,Q[O],0,L,C,L.name),this.shapeList.push(E)},getCircle:function(J,_,H,E,K,C){var D=this.series[J],G=[H,D],F=this.deepMerge(G,"itemStyle.normal")||{},$=this.deepMerge(G,"itemStyle.emphasis")||{},A=F.color||this.zr.getColor(_),L=$.color||this.zr.getColor(_),I={zlevel:D.zlevel,z:D.z,clickable:!0,style:{x:E,y:K,r:C,brushType:"fill",opacity:1,color:A},highlightStyle:{color:L,lineWidth:$.borderWidth,strokeColor:$.borderColor}};return this.deepQuery([H,D,this.option],"calculable")&&(this.setCalculable(I),I.draggable=!0),new B(I)},getLabel:function(L,B,J,N,M,D){var F=this.series[L],I=F.itemStyle,G=[J,F],A=this.deepMerge(G,"itemStyle.normal")||{},C="normal",O=I[C].label,K=O.textStyle||{},_=this.getLabelText(B,J,C),$=this.getFont(K),Q=A.color||this.zr.getColor(B),H=K.fontSize||12,P={zlevel:F.zlevel,z:F.z,style:{x:N,y:M-D-H,color:K.color||Q,text:_,textFont:$,textAlign:"center"}};return new E(P)},getLabelText:function(_,$,D){var C=this.series,B=C[0],A=this.deepQuery([$,B],"itemStyle."+D+".label.formatter");return A?"function"==typeof A?A(B.name,$.name,$.value):"string"==typeof A?(A=A.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),A=A.replace("{a0}",B.name).replace("{b0}",$.name).replace("{c0}",$.value)):void 0:$.name},refresh:function($){$&&(this.option=$,this.series=$.series),this._buildShape()}},F.inherits($,G),_("../chart").define("venn",$),$}),D("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"),B=I("zrender/shape/Line"),C=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,G){for(var O=this.shapeList,K=0;K<O.length;){var U=O[K];$.get(U,"seriesIndex")===G?(this.zr.delShape(O[K]),O.splice(K,1)):K++}for(var T=O.length,J=this.series[G],N=J.itemStyle,L=this.parsePercent(J.size[0],this.zr.getWidth())||400,I=this.parsePercent(J.size[1],this.zr.getHeight())||500,V=this.parseCenter(this.zr,J.center),R=V[0]-0.5*L,F=V[1]-0.5*I,E=L*I,X=0,M=[],D=S.children,K=0;K<D.length;K++)X+=D[K].data.value;for(var Q=0;Q<D.length;Q++)M.push(D[Q].data.value*E/X);for(var Y=new C({x:R,y:F,width:L,height:I}),H=Y.run(M),B=0;B<H.length;B++){var A=D[B].data,W=H[B],_=[A.itemStyle,N],P=this.deepMerge(_);P.normal.color||(P.normal.color=this.zr.getColor(B)),P.emphasis.color||(P.emphasis.color=P.normal.color),this._buildItem(A,P,W,G,B),A.children&&this._buildChildrenTreemap(A.children,P,W,G)}this.query(J,"itemStyle.normal.breadcrumb.show")&&this._buildBreadcrumb(S,G,R,F+I);for(K=T;K<O.length;K++)this.zr.addShape(O[K])},_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,B=this.getLabel($,F,_.name,_.value),C=this.option.hoverable,E={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:C,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},B.style,!0),highlightStyle:L.merge({color:D.color,lineWidth:D.borderWidth,strokeColor:D.borderColor},B.highlightStyle,!0)};return new K(E)},getLabel:function(L,B,J,N){var M=L.normal.label.textStyle,E=[L.emphasis.label.textStyle,M],F=this.deepMerge(E),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(F),Q=D.getTextWidth(G,$),H=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?(F.x+Q>B.width||F.y+H>B.height)&&(_=""):_="";var P={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:F.color,textPosition:"specific"}};return P},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,B,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 C({x:J.x,y:J.y,width:J.width,height:J.height}),O=D.run(E),K=B.normal.childBorderWidth,A=B.normal.childBorderColor,_=0;_<O.length;_++){var Q=O[_],H=[];J.y.toFixed(2)!==Q.y.toFixed(2)&&H.push(this._getLine(Q.x,Q.y,Q.x+Q.width,Q.y,K,A)),J.x.toFixed(2)!==Q.x.toFixed(2)&&H.push(this._getLine(Q.x,Q.y,Q.x,Q.y+Q.height,K,A)),(J.y+J.height).toFixed(2)!==(Q.y+Q.height).toFixed(2)&&H.push(this._getLine(Q.x,Q.y+Q.height,Q.x+Q.width,Q.y+Q.height,K,A)),(J.x+J.width).toFixed(2)!==(Q.x+Q.width).toFixed(2)&&H.push(this._getLine(Q.x+Q.width,Q.y,Q.x+Q.width,Q.y+Q.height,K,A));for(var P=0;P<H.length;P++)$.set(H[P],"seriesIndex",F),this.shapeList.push(H[P])}},_getLine:function(_,$,F,E,C,A){var D={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:_,yStart:$,xEnd:F,yEnd:E,lineWidth:C,strokeColor:A}};return new B(D)},_buildBreadcrumb:function(M,B,K,F){for(var N=[],D=M;D;)N.unshift(D.data.name),D=D.parent;for(var E=this.series[B],I=this.query(E,"itemStyle.normal.breadcrumb.textStyle")||{},G=this.query(E,"itemStyle.emphasis.breadcrumb.textStyle")||{},C={y:F+10,textBaseline:"top",textAlign:"left",color:I.color,textFont:this.getFont(I)},A={brushType:"fill",color:G.color||H.lift(I.color,-0.3),textFont:this.getFont(G)},_=0;_<N.length;_++){var O=new J({zlevel:this.getZlevelBase(),z:this.getZBase(),style:L.merge({x:K,text:N[_]+(N.length-1-_?" > ":"")},C),clickable:!0,highlightStyle:A});$.set(O,"seriesIndex",B),$.set(O,"name",N[_]),K+=O.getRect(O.style).width,this.shapeList.push(O)}},__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",_),_}),D("echarts/chart/tree",["require","./base","../util/shape/Icon","zrender/shape/Image","zrender/shape/Line","zrender/shape/BezierCurve","../layout/Tree","../data/Tree","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/util","../chart"],function(H){function _(_,$,C,B,A){G.call(this,_,$,C,B,A),this.refresh(B)}var G=H("./base"),D=0.618,J=H("../util/shape/Icon"),I=H("zrender/shape/Image"),B=H("zrender/shape/Line"),C=H("zrender/shape/BezierCurve"),F=H("../layout/Tree"),E=H("../data/Tree"),$=H("../config");$.tree={zlevel:1,z:2,calculable:!1,clickable:!0,rootLocation:{},orient:"vertical",symbol:"circle",symbolSize:20,nodePadding:30,layerPadding:100,itemStyle:{normal:{label:{show:!0},lineStyle:{width:1,color:"#777",type:"curve"}},emphasis:{}}};var A=H("../util/ecData"),K=(H("zrender/config"),H("zrender/tool/event"),H("zrender/tool/util"));return _.prototype={type:$.CHART_TYPE_TREE,_buildShape:function(A,_){var D=A.data[0];this.tree=E.fromOptionData(D.name,D.children),this.tree.root.data=D,this._setTreeShape(A),this.tree.traverse(function($){this._buildItem($,A,_),$.children.length>0&&this._buildLink($,A)},this);var C=A.roam===!0||"move"===A.roam,B=A.roam===!0||"scale"===A.roam;this.zr.modLayer(this.getZlevelBase(),{panable:C,zoomable:B}),(this.query("markPoint.effect.show")||this.query("markLine.effect.show"))&&this.zr.modLayer($.EFFECT_ZLEVEL,{panable:C,zoomable:B}),this.addShapeList()},_buildItem:function(E,D,N){var K=[E.data,D],G=this.deepQuery(K,"symbol"),H=this.deepMerge(K,"itemStyle.normal")||{},M=this.deepMerge(K,"itemStyle.emphasis")||{},L=H.color||this.zr.getColor(),C=M.color||this.zr.getColor(),F=-E.layout.angle||0;E.id===this.tree.root.id&&(F=0);var B="right";Math.abs(F)>=Math.PI/2&&Math.abs(F)<3*Math.PI/2&&(F+=Math.PI,B="left");var _=[F,E.layout.position[0],E.layout.position[1]],$=new J({zlevel:this.getZlevelBase(),z:this.getZBase()+1,rotation:_,clickable:this.deepQuery(K,"clickable"),style:{x:E.layout.position[0]-0.5*E.layout.width,y:E.layout.position[1]-0.5*E.layout.height,width:E.layout.width,height:E.layout.height,iconType:G,color:L,brushType:"both",lineWidth:H.borderWidth,strokeColor:H.borderColor},highlightStyle:{color:C,lineWidth:M.borderWidth,strokeColor:M.borderColor}});$.style.iconType.match("image")&&($.style.image=$.style.iconType.replace(new RegExp("^image:\\/\\/"),""),$=new I({rotation:_,style:$.style,highlightStyle:$.highlightStyle,clickable:$.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()})),this.deepQuery(K,"itemStyle.normal.label.show")&&($.style.text=null==E.data.label?E.id:E.data.label,$.style.textPosition=this.deepQuery(K,"itemStyle.normal.label.position"),"radial"===D.orient&&"inside"!==$.style.textPosition&&($.style.textPosition=B),$.style.textColor=this.deepQuery(K,"itemStyle.normal.label.textStyle.color"),$.style.textFont=this.getFont(this.deepQuery(K,"itemStyle.normal.label.textStyle")||{})),this.deepQuery(K,"itemStyle.emphasis.label.show")&&($.highlightStyle.textPosition=this.deepQuery(K,"itemStyle.emphasis.label.position"),$.highlightStyle.textColor=this.deepQuery(K,"itemStyle.emphasis.label.textStyle.color"),$.highlightStyle.textFont=this.getFont(this.deepQuery(K,"itemStyle.emphasis.label.textStyle")||{})),A.pack($,D,N,E.data,0,E.id),this.shapeList.push($)},_buildLink:function(_,$){var G=$.itemStyle.normal.lineStyle;if("broken"===G.type)return void this._buildBrokenLine(_,G,$);for(var E=0;E<_.children.length;E++){var B=_.layout.position[0],A=_.layout.position[1],C=_.children[E].layout.position[0],D=_.children[E].layout.position[1];switch(G.type){case"curve":this._buildBezierCurve(_,_.children[E],G,$);break;case"broken":break;default:var F=this._getLine(B,A,C,D,G);this.shapeList.push(F)}}},_buildBrokenLine:function(M,B,J){var O=K.clone(B);O.type="solid";var N=[],E=M.layout.position[0],F=M.layout.position[1],I=J.orient,G=M.children[0].layout.position[1],A=E,C=F+(G-F)*(1-D),L=M.children[0].layout.position[0],_=C,$=M.children[M.children.length-1].layout.position[0],Q=C;if("horizontal"===I){var H=M.children[0].layout.position[0];A=E+(H-E)*(1-D),C=F,L=A,_=M.children[0].layout.position[1],$=A,Q=M.children[M.children.length-1].layout.position[1]}N.push(this._getLine(E,F,A,C,O)),N.push(this._getLine(L,_,$,Q,O));for(var P=0;P<M.children.length;P++)H=M.children[P].layout.position[0],G=M.children[P].layout.position[1],"horizontal"===I?_=G:L=H,N.push(this._getLine(L,_,H,G,O));this.shapeList=this.shapeList.concat(N)},_getLine:function(_,$,D,C,A){return _===D&&(_=D=this.subPixelOptimize(_,A.width)),$===C&&($=C=this.subPixelOptimize($,A.width)),new B({zlevel:this.getZlevelBase(),hoverable:!1,style:K.merge({xStart:_,yStart:$,xEnd:D,yEnd:C,lineType:A.type,strokeColor:A.color,lineWidth:A.width},A,!0)})},_buildBezierCurve:function(P,B,L,R){var Q=D,G=R.orient,J=P.layout.position[0],H=P.layout.position[1],A=B.layout.position[0],F=B.layout.position[1],O=J,_=(F-H)*Q+H,$=A,V=(F-H)*(1-Q)+H;if("horizontal"===G)O=(A-J)*Q+J,_=H,$=(A-J)*(1-Q)+J,V=F;else if("radial"===G)if(P.id===this.tree.root.id)O=(A-J)*Q+J,_=(F-H)*Q+H,$=(A-J)*(1-Q)+J,V=(F-H)*(1-Q)+H;else{var I=P.layout.originPosition[0],T=P.layout.originPosition[1],N=B.layout.originPosition[0],W=B.layout.originPosition[1],E=this.tree.root.layout.position[0],S=this.tree.root.layout.position[1];O=I,_=(W-T)*Q+T,$=N,V=(W-T)*(1-Q)+T;var M=(O-this.minX)/this.width*Math.PI*2;O=_*Math.cos(M)+E,_=_*Math.sin(M)+S,M=($-this.minX)/this.width*Math.PI*2,$=V*Math.cos(M)+E,V=V*Math.sin(M)+S}var U=new C({zlevel:this.getZlevelBase(),hoverable:!1,style:K.merge({xStart:J,yStart:H,cpX1:O,cpY1:_,cpX2:$,cpY2:V,xEnd:A,yEnd:F,strokeColor:L.color,lineWidth:L.width},L,!0)});this.shapeList.push(U)},_setTreeShape:function(A){var _=new F({nodePadding:A.nodePadding,layerPadding:A.layerPadding});this.tree.traverse(function($){var B=[$.data,A],_=this.deepQuery(B,"symbolSize");"number"==typeof _&&(_=[_,_]),$.layout={width:_[0],height:_[1]}},this),_.run(this.tree);var J=A.orient,H=A.rootLocation.x,D=A.rootLocation.y,B=this.zr.getWidth(),E=this.zr.getHeight();H="center"===H?0.5*B:this.parsePercent(H,B),D="center"===D?0.5*E:this.parsePercent(D,E),D=this.parsePercent(D,E),"horizontal"===J&&(H=isNaN(H)?10:H,D=isNaN(D)?0.5*E:D),"radial"===J?(H=isNaN(H)?0.5*B:H,D=isNaN(D)?0.5*E:D):(H=isNaN(H)?0.5*B:H,D=isNaN(D)?10:D);var G=this.tree.root.layout.position[0];if("radial"===J){var I=1/0,$=0,C=0;this.tree.traverse(function(_){$=Math.max($,_.layout.position[0]),I=Math.min(I,_.layout.position[0]),C=Math.max(C,_.layout.width)}),this.width=$-I+2*C,this.minX=I}this.tree.traverse(function(_){var B,C;if("vertical"===J&&"inverse"===A.direction)B=_.layout.position[0]-G+H,C=D-_.layout.position[1];else if("vertical"===J)B=_.layout.position[0]-G+H,C=_.layout.position[1]+D;else if("horizontal"===J&&"inverse"===A.direction)C=_.layout.position[0]-G+D,B=H-_.layout.position[1];else if("horizontal"===J)C=_.layout.position[0]-G+D,B=_.layout.position[1]+H;else{B=_.layout.position[0],C=_.layout.position[1],_.layout.originPosition=[B,C];var E=C,$=(B-I)/this.width*Math.PI*2;B=E*Math.cos($)+H,C=E*Math.sin($)+D,_.layout.angle=$}_.layout.position[0]=B,_.layout.position[1]=C},this)},refresh:function(A){this.clear(),A&&(this.option=A,this.series=this.option.series);for(var _=this.series,D=this.component.legend,C=0;C<_.length;C++)if(_[C].type===$.CHART_TYPE_TREE){_[C]=this.reformOption(_[C]);var B=_[C].name||"";if(this.selectedMap[B]=D?D.isSelected(B):!0,!this.selectedMap[B])continue;this._buildSeries(_[C],C)}},_buildSeries:function(_,$){this._buildShape(_,$)}},K.inherits(_,G),H("../chart").define("tree",_),_}),D("echarts/chart/wordCloud",["require","./base","zrender/shape/Text","../layout/WordCloud","../component/grid","../component/dataRange","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(_){function $(_,$,C,B,A){G.call(this,_,$,C,B,A),this.refresh(B)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("../layout/WordCloud");_("../component/grid"),_("../component/dataRange");var A=_("../config"),C=_("../util/ecData"),D=_("zrender/tool/util"),F=_("zrender/tool/color");return A.wordCloud={zlevel:0,z:2,clickable:!0,center:["50%","50%"],size:["40%","40%"],textRotation:[0,90],textPadding:0,autoSize:{enable:!0,minSize:12},itemStyle:{normal:{textStyle:{fontSize:function($){return $.value}}}}},$.prototype={type:A.CHART_TYPE_WORDCLOUD,refresh:function($){$&&(this.option=$,this.series=$.series),this._init()},_init:function(){var _=this.series;this.backupShapeList();for(var $=this.component.legend,C=0;C<_.length;C++)if(_[C].type===A.CHART_TYPE_WORDCLOUD){_[C]=this.reformOption(_[C]);var B=_[C].name||"";if(this.selectedMap[B]=$?$.isSelected(B):!0,!this.selectedMap[B])continue;this.buildMark(C),this._initSerie(_[C])}},_initSerie:function(_){var $=_.itemStyle.normal.textStyle,F=[this.parsePercent(_.size[0],this.zr.getWidth())||200,this.parsePercent(_.size[1],this.zr.getHeight())||200],E=this.parseCenter(this.zr,_.center),A={size:F,wordletype:{autoSizeCal:_.autoSize},center:E,rotate:_.textRotation,padding:_.textPadding,font:$.fontFamily,fontSize:$.fontSize,fontWeight:$.fontWeight,fontStyle:$.fontStyle,text:function($){return $.name},data:_.data},C=new B(A),D=this;C.end(function($){D._buildShapes($)}),C.start()},_buildShapes:function(_){for(var $=_.length,A=0;$>A;A++)this._buildTextShape(_[A],0,A);this.addShapeList()},_buildTextShape:function(G,D,P){var J=this.series,H=J[D],L=H.name||"",M=H.data[P],B=[M,H],I=this.component.legend,K=I?I.getColor(L):this.zr.getColor(D),A=this.deepMerge(B,"itemStyle.normal")||{},_=this.deepMerge(B,"itemStyle.emphasis")||{},$=this.getItemStyleColor(A.color,D,P,M)||K,O=this.getItemStyleColor(_.color,D,P,M)||("string"==typeof $?F.lift($,-0.2):$),N=new E({zlevel:H.zlevel,z:H.z,hoverable:!0,clickable:this.deepQuery(B,"clickable"),style:{x:0,y:0,text:G.text,color:$,textFont:[G.style,G.weight,G.size+"px",G.font].join(" "),textBaseline:"alphabetic",textAlign:"center"},highlightStyle:{brushType:_.borderWidth?"both":"fill",color:O,lineWidth:_.borderWidth||0,strokeColor:_.borderColor},position:[G.x,G.y],rotation:[-G.rotate/180*Math.PI,0,0]});C.pack(N,H,D,M,P,M.name),this.shapeList.push(N)}},D.inherits($,G),_("../chart").define("wordCloud",$),$}),D("echarts/chart/heatmap",["require","./base","../layer/heatmap","../config","../util/ecData","zrender/tool/util","zrender/tool/color","zrender/shape/Image","../chart"],function(_){function $(_,$,C,B,A){E.call(this,_,$,C,B,A),this.refresh(B)}var E=_("./base"),D=_("../layer/heatmap"),B=_("../config"),A=(_("../util/ecData"),_("zrender/tool/util")),C=(_("zrender/tool/color"),_("zrender/shape/Image"));return B.heatmap={zlevel:0,z:2,clickable:!0},$.prototype={type:B.CHART_TYPE_HEATMAP,refresh:function($){this.clear(),$&&(this.option=$,this.series=$.series),this._init()},_init:function(){var _=this.series;this.backupShapeList();for(var $=_.length,G=0;$>G;++G)if(_[G].type===B.CHART_TYPE_HEATMAP){_[G]=this.reformOption(_[G]);var A=new D(_[G]),E=A.getCanvas(_[G].data,this.zr.getWidth(),this.zr.getHeight()),F=new C({position:[0,0],scale:[1,1],hoverable:this.option.hoverable,style:{x:0,y:0,image:E,width:E.width,height:E.height}});this.shapeList.push(F)}this.addShapeList()}},A.inherits($,E),_("../chart").define("heatmap",$),$}),D("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 _(_,$,E,B,A){I.call(this,_,$,E,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(D.EVENT.HOVER,this._onhoverlink)}var I=A("./base"),F=A("zrender/shape/Text"),C=A("zrender/shape/Rectangle"),B=A("../util/shape/HandlePolygon"),D=A("../config");D.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 E=A("zrender/tool/util"),H=A("zrender/tool/event"),G=A("zrender/tool/area"),$=A("zrender/tool/color");return _.prototype={type:D.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 M,B,K,N,E=this._valueTextList,H=E.length,J=this.getFont(this.dataRangeOption.textStyle),A=this._itemGroupLocation.x,D=this._itemGroupLocation.y,O=this.dataRangeOption.itemWidth,L=this.dataRangeOption.itemHeight,_=this.dataRangeOption.itemGap,$=G.getTextHeight("\u56fd",J);"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(A=this._itemGroupLocation.x+this._itemGroupLocation.width-O);var P=!0;this.dataRangeOption.text&&(P=!1,this.dataRangeOption.text[0]&&(K=this._getTextShape(A,D,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?A+=G.getTextWidth(this.dataRangeOption.text[0],J)+this._textGap:(D+=$+this._textGap,K.style.y+=$/2+this._textGap,K.style.textBaseline="bottom"),this.shapeList.push(new F(K))));for(var I=0;H>I;I++)M=E[I],N=this.getColorByIndex(I),B=this._getItemShape(A,D,O,L,this._selectedMap[I]?N:"#ccc"),B._idx=I,B.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(B.clickable=!0,B.onclick=this._dataRangeSelected),this.shapeList.push(new C(B)),P&&(K={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:A+O+5,y:D,color:this._selectedMap[I]?this.dataRangeOption.textStyle.color:"#ccc",text:E[I],textFont:J,textBaseline:"top"},highlightStyle:{brushType:"fill"}},"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(K.style.x-=O+10,K.style.textAlign="right"),K._idx=I,K.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(K.clickable=!0,K.onclick=this._dataRangeSelected),this.shapeList.push(new F(K))),"horizontal"==this.dataRangeOption.orient?A+=O+(P?5:0)+(P?G.getTextWidth(M,J):0)+_:D+=L+_;!P&&this.dataRangeOption.text[1]&&("horizontal"==this.dataRangeOption.orient?A=A-_+this._textGap:D=D-_+this._textGap,K=this._getTextShape(A,D,this.dataRangeOption.text[1]),"horizontal"!=this.dataRangeOption.orient&&(K.style.y-=5,K.style.textBaseline="top"),this.shapeList.push(new F(K)))},_buildGradient:function(){var D,L,N=this.getFont(this.dataRangeOption.textStyle),H=this._itemGroupLocation.x,I=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(H,I,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?H+=G.getTextWidth(this.dataRangeOption.text[0],N)+this._textGap:(I+=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),Q=[],J=0,P=this.dataRangeOption.color.length;P>J;J++)Q.push([J*$,this.dataRangeOption.color[J]]);"horizontal"==this.dataRangeOption.orient?(D={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:H,y:I,width:K*O,height:B,color:_.getLinearGradient(H,I,H+K*O,I,Q)},hoverable:!1},H+=K*O+this._textGap):(D={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:H,y:I,width:K,height:B*O,color:_.getLinearGradient(H,I,H,I+B*O,Q)},hoverable:!1},I+=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(H,I,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,C=this._calculableLocation.height,D=5;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(_=[[F,E+C],[F-D,E+C+D],[F+D,E+C+D]],$="bottom"):(_=[[F,E],[F-D,E-D],[F+D,E-D]],$="top"):"right"!=this.dataRangeOption.x?(_=[[F+A,E],[F+A+D,E-D],[F+A+D,E+D]],$="right"):(_=[[F,E],[F-D,E-D],[F-D,E+D]],$="left"),this._indicatorShape={style:{pointList:_,color:"#fff",__rect:{x:Math.min(_[0][0],_[1][0]),y:Math.min(_[0][1],_[1][1]),width:D*("horizontal"==this.dataRangeOption.orient?2:1),height:D*("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 L,C,J,H,M,E,F,I,A=this._calculableLocation.x,D=this._calculableLocation.y,N=this._calculableLocation.width,K=this._calculableLocation.height,_=this.getFont(this.dataRangeOption.textStyle),$=G.getTextHeight("\u56fd",_),O=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?(L=[[A,D],[A,D+K+$],[A-$,D+K+$],[A-1,D+K],[A-1,D]],C=A-O/2-$,J=D+K+$/2+2,H={x:A-O-$,y:D+K,width:O+$,height:$},M=[[A+N,D],[A+N,D+K+$],[A+N+$,D+K+$],[A+N+1,D+K],[A+N+1,D]],E=A+N+O/2+$,F=J,I={x:A+N,y:D+K,width:O+$,height:$}):(L=[[A,D+K],[A,D-$],[A-$,D-$],[A-1,D],[A-1,D+K]],C=A-O/2-$,J=D-$/2-2,H={x:A-O-$,y:D-$,width:O+$,height:$},M=[[A+N,D+K],[A+N,D-$],[A+N+$,D-$],[A+N+1,D],[A+N+1,D+K]],E=A+N+O/2+$,F=J,I={x:A+N,y:D-$,width:O+$,height:$}):(O+=$,"right"!=this.dataRangeOption.x?(L=[[A,D],[A+N+$,D],[A+N+$,D-$],[A+N,D-1],[A,D-1]],C=A+N+O/2+$/2,J=D-$/2,H={x:A+N,y:D-$,width:O+$,height:$},M=[[A,D+K],[A+N+$,D+K],[A+N+$,D+$+K],[A+N,D+1+K],[A,D+K+1]],E=C,F=D+K+$/2,I={x:A+N,y:D+K,width:O+$,height:$}):(L=[[A+N,D],[A-$,D],[A-$,D-$],[A,D-1],[A+N,D-1]],C=A-O/2-$/2,J=D-$/2,H={x:A-O-$,y:D-$,width:O+$,height:$},M=[[A+N,D+K],[A-$,D+K],[A-$,D+$+K],[A,D+1+K],[A+N,D+K+1]],E=C,F=D+K+$/2,I={x:A-O-$,y:D+K,width:O+$,height:$})),this._startShape={style:{pointList:L,text:this._textFormat(this.dataRangeOption.max),textX:C,textY:J,textFont:_,color:this.getColor(this.dataRangeOption.max),rect:H,x:L[0][0],y:L[0][1],_x:L[0][0],_y:L[0][1]}},this._startShape.highlightStyle={strokeColor:this._startShape.style.color,lineWidth:1},this._endShape={style:{pointList:M,text:this._textFormat(this.dataRangeOption.min),textX:E,textY:F,textFont:_,color:this.getColor(this.dataRangeOption.min),rect:I,x:M[0][0],y:M[0][1],_x:M[0][0],_y:M[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,D=0,E=this.getFont(this.dataRangeOption.textStyle),I=G.getTextHeight("\u56fd",E),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],E)+this._textGap:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?G.getTextWidth(this.dataRangeOption.text[1],E)+this._textGap:0);else{F+=5;for(var C=0;B>C;C++)M+=F+G.getTextWidth(L[C],E)+J}M-=J,D=Math.max(I,N)}else{var O;if(this.dataRangeOption.text||this._isContinuity())D=(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]||"",E),G.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[1]||"",E)),M=Math.max(F,O);else{D=(N+J)*B,F+=5,O=0;for(C=0;B>C;C++)O=Math.max(O,G.getTextWidth(L[C],E));M=F+O}D-=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 Q,H=this.zr.getHeight();switch(this.dataRangeOption.y){case"top":Q=_[0]+this.dataRangeOption.borderWidth;break;case"bottom":Q=H-D-_[2]-this.dataRangeOption.borderWidth;break;case"center":Q=Math.floor((H-D)/2);break;default:Q=this.parsePercent(this.dataRangeOption.y,H),Q=isNaN(Q)?0:Q}if(this.dataRangeOption.calculable){var P=Math.max(G.getTextWidth(this.dataRangeOption.max,E),G.getTextWidth(this.dataRangeOption.min,E))+I;"horizontal"==this.dataRangeOption.orient?(P>K&&(K=P),K+M+P>$&&(K-=P)):(I>Q&&(Q=I),Q+D+I>H&&(Q-=I))}return{x:K,y:Q,width:M,height:D}},_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(D.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(D.EVENT.DATA_RANGE_SELECTED,_.event,{selected:this._selectedMap,target:C,valueMax:B,valueMin:A},this.myChart),this.messageCenter.dispatch(D.EVENT.REFRESH,null,null,this.myChart)},__dispatchHoverLink:function(_){var $,E;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,E=C+0.05*B}else if(this._useCustomizedSplit()){var A=_.target._idx;E=this._splitList[A].max,$=this._splitList[A].min}else{A=_.target._idx;E=(this._colorList.length-A)*this._gap+this.dataRangeOption.min,$=E-this._gap}this.messageCenter.dispatch(D.EVENT.DATA_RANGE_HOVERLINK,_.event,{valueMin:$,valueMax:E},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(D.EVENT.HOVER,this._onhoverlink)}},E.inherits(_,I),A("../component").define("dataRange",_),_}),D("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"),D=L("../util/shape/Symbol"),E=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"),P=L("zrender/tool/util"),H=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(J,B){if(this.isDrop&&J.target&&!B.dragIn){var I,F=J.target,M=J.dragged,L=A.get(F,"seriesIndex"),D=A.get(F,"dataIndex"),E=this.series,H=this.component.legend;if(-1===D){if(A.get(M,"seriesIndex")==L)return B.dragOut=B.dragIn=B.needRefresh=!0,void(this.isDrop=!1);I={value:A.get(M,"value"),name:A.get(M,"name")},this.type===G.CHART_TYPE_PIE&&I.value<0&&(I.value=0);for(var C=!1,N=E[L].data,_=0,$=N.length;$>_;_++)N[_].name===I.name&&"-"===N[_].value&&(E[L].data[_].value=I.value,C=!0);!C&&E[L].data.push(I),H&&H.add(I.name,M.style.color||M.style.strokeColor)}else I=E[L].data[D]||"-",null!=I.value?(E[L].data[D].value="-"!=I.value?K.accAdd(E[L].data[D].value,A.get(M,"value")):A.get(M,"value"),(this.type===G.CHART_TYPE_FUNNEL||this.type===G.CHART_TYPE_PIE)&&(H&&1===H.getRelatedAmount(I.name)&&this.component.legend.del(I.name),I.name+=this.option.nameConnector+A.get(M,"name"),H&&H.add(I.name,M.style.color||M.style.strokeColor))):E[L].data[D]="-"!=I?K.accAdd(E[L].data[D],A.get(M,"value")):A.get(M,"value");B.dragIn=B.dragIn||!0,this.isDrop=!1;var O=this;setTimeout(function(){O.zr.trigger("mousemove",J.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 D=B[F].data[C].name,E=this.component.legend;E&&0===E.getRelatedAmount(D)&&E.del(D)}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:[]},C=0,D=B.length;D>C;C++)B[C].type===this.type&&(B[C]=this.reformOption(B[C]),this.legendHoverLink=B[C].legendHoverLink||this.legendHoverLink,_=B[C].xAxisIndex,$=B[C].yAxisIndex,H=this.component.xAxis.getAxis(_),E=this.component.yAxis.getAxis($),H.type===G.COMPONENT_TYPE_AXIS_CATEGORY?A[H.getPosition()].push(C):E.type===G.COMPONENT_TYPE_AXIS_CATEGORY?A[E.getPosition()].push(C):A.other.push(C));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(K){for(var B,I,F,M,L=this.series,D=0,E={},H="__kener__stack__",A=this.component.legend,C=[],N=0,J=0,_=K.length;_>J;J++){if(B=L[K[J]],F=B.name,this._sIndex2ShapeMap[K[J]]=this._sIndex2ShapeMap[K[J]]||this.query(B,"symbol")||this._symbol[J%this._symbol.length],A){if(this.selectedMap[F]=A.isSelected(F),this._sIndex2ColorMap[K[J]]=A.getColor(F),M=A.getItemShape(F)){var $=M.style;if(this.type==G.CHART_TYPE_LINE)$.iconType="legendLineIcon",$.symbol=this._sIndex2ShapeMap[K[J]];else if(B.itemStyle.normal.barBorderWidth>0){var O=M.highlightStyle;$.brushType="both",$.x+=1,$.y+=1,$.width-=2,$.height-=2,$.strokeColor=O.strokeColor=B.itemStyle.normal.barBorderColor,O.lineWidth=3}A.setItemShape(F,M)}}else this.selectedMap[F]=!0,this._sIndex2ColorMap[K[J]]=this.zr.getColor(K[J]);this.selectedMap[F]&&(I=B.stack||H+K[J],null==E[I]?(E[I]=D,C[D]=[K[J]],D++):C[E[I]].push(K[J])),N=Math.max(N,B.data.length)}return{locationMap:C,maxDataLength:N}},_calculMarkMapXY:function(I,_,G){for(var D=this.series,K=0,J=_.length;J>K;K++)for(var B=0,C=_[K].length;C>B;B++){var F=_[K][B],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,_],B=this.deepMerge(I,"itemStyle.normal.label"),C=this.deepMerge(I,"itemStyle.emphasis.label"),F=B.textStyle||{},E=C.textStyle||{};if(B.show){var $=H.style;$.text=this._getLabelText(_,G,D,"normal"),$.textPosition=null==B.position?"horizontal"===J?"right":"top":B.position,$.textColor=F.color,$.textFont=this.getFont(F),$.textAlign=F.align,$.textBaseline=F.baseline}if(C.show){var A=H.highlightStyle;A.text=this._getLabelText(_,G,D,"emphasis"),A.textPosition=B.show?H.style.textPosition:null==C.position?"horizontal"===J?"right":"top":C.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=P.clone(D.markPoint),E=0,F=B.data.length;F>E;E++)_=B.data[E],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||H.getTextWidth(K[3],this.getFont())/2+5);for(var J=this._markPoint(A,B),E=0,F=J.length;F>E;E++){var $=J[E];$.zlevel=D.zlevel,$.z=D.z+1;for(var C in I)$[C]=P.clone(I[C]);this.shapeList.push($)}if(this.type===G.CHART_TYPE_FORCE||this.type===G.CHART_TYPE_CHORD)for(E=0,F=J.length;F>E;E++)this.zr.addShape(J[E])},_buildMarkLine:function(L){for(var B,J=(this.markAttachStyle||{})[L],F=this.series[L],N=P.clone(F.markLine),M=0,D=N.data.length;D>M;M++){var E=N.data[M];!E.type||"max"!==E.type&&"min"!==E.type&&"average"!==E.type?B=[this.getMarkCoord(L,E[0]),this.getMarkCoord(L,E[1])]:(B=this.getMarkCoord(L,E),N.data[M]=[P.clone(E),{}],N.data[M][0].name=E.name||E.type,N.data[M][0].value="average"!==E.type?B[3]:+B[3].toFixed(null!=N.precision?N.precision:this.deepQuery([this.ecTheme,G],"markLine.precision")),B=B[2],E=[{},{}]),null!=B&&null!=B[0]&&null!=B[1]&&(N.data[M][0].x=null!=E[0].x?E[0].x:B[0][0],N.data[M][0].y=null!=E[0].y?E[0].y:B[0][1],N.data[M][1].x=null!=E[1].x?E[1].x:B[1][0],N.data[M][1].y=null!=E[1].y?E[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){P.merge(O.style,K.style),P.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[_]=P.clone(J[_])}this.shapeList.push(O),this.zr.addShape(O),O._mark="largeLine";var $=N.effect;$.show&&(O.effect=$)}else{for(M=0,D=A.length;D>M;M++){var H=A[M];H.zlevel=F.zlevel,H.z=F.z+1;for(_ in J)H[_]=P.clone(J[_]);this.shapeList.push(H)}if(this.type===G.CHART_TYPE_FORCE||this.type===G.CHART_TYPE_CHORD)for(M=0,D=A.length;D>M;M++)this.zr.addShape(A[M])}},_markPoint:function(N,B){var K=this.series[N],H=this.component;P.merge(P.merge(B,P.clone(this.ecTheme.markPoint||{})),P.clone(G.markPoint)),B.name=K.name;var Q,O,E,F,J,D,R,M=[],_=B.data,$=H.dataRange,I=H.legend,S=this.zr.getWidth(),L=this.zr.getHeight();if(B.large)Q=this.getLargeMarkPointShape(N,B),Q._mark="largePoint",Q&&M.push(Q);else for(var T=0,C=_.length;C>T;T++)null!=_[T].x&&null!=_[T].y&&(E=null!=_[T].value?_[T].value:"",I&&(O=I.getColor(K.name)),$&&(O=isNaN(E)?O:$.getColor(E),F=[_[T],B],J=this.deepQuery(F,"itemStyle.normal.color")||O,D=this.deepQuery(F,"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=E,Q=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"),Q._mark="point",R=this.deepMerge([_[T],B],"effect"),R.show&&(Q.effect=R),K.type===G.CHART_TYPE_MAP&&(Q._geo=this.getMarkGeo(_[T])),A.pack(Q,K,N,_[T],T,_[T].name,E),M.push(Q)));return M},_markLine:function(){function _(_,$){_[$]=_[$]instanceof Array?_[$].length>1?_[$]:[_[$][0],_[$][0]]:[_[$],_[$]]}return function(W,S){var b=this.series[W],a=this.component,Q=a.dataRange,R=a.legend;P.merge(P.merge(S,P.clone(this.ecTheme.markLine||{})),P.clone(G.markLine));var V=R?R.getColor(b.name):this.zr.getColor(W);_(S,"symbol"),_(S,"symbolSize"),_(S,"symbolRotate");for(var O=S.data,c=[],Z=this.zr.getWidth(),M=this.zr.getHeight(),T=0;T<O.length;T++){var L=O[T];if(B(L[0])&&B(L[1])){var Y=this.deepMerge(L),e=[Y,S],N=V,K=null!=Y.value?Y.value:"";if(Q){N=isNaN(K)?N:Q.getColor(K);var J=this.deepQuery(e,"itemStyle.normal.color")||N,d=this.deepQuery(e,"itemStyle.emphasis.color")||J;if(null==J&&null==d)continue}L[0].tooltip=Y.tooltip||S.tooltip||{trigger:"item"},L[0].name=L[0].name||"",L[1].name=L[1].name||"",L[0].value=K,c.push({points:[[this.parsePercent(L[0].x,Z),this.parsePercent(L[0].y,M)],[this.parsePercent(L[1].x,Z),this.parsePercent(L[1].y,M)]],rawData:L,color:N})}}var E=this.query(S,"bundling.enable");if(E){var X=new $;X.maxTurningAngle=this.query(S,"bundling.maxTurningAngle")/180*Math.PI,c=X.run(c)}S.name=b.name;for(var F=[],T=0,H=c.length;H>T;T++){var D=c[T],C=D.rawEdge||D,L=C.rawData,K=null!=L.value?L.value:"",U=this.getMarkLineShape(S,W,L,T,D.points,E,C.color);U._mark="line";var I=this.deepMerge([L[0],L[1],S],"effect");I.show&&(U.effect=I,U.effect.large=S.large),b.type===G.CHART_TYPE_MAP&&(U._geo=[this.getMarkGeo(L[0]),this.getMarkGeo(L[1])]),A.pack(U,b,W,L[0],T,L[0].name+(""!==L[1].name?" > "+L[1].name:""),K),F.push(U)}return F}}(),getMarkCoord:function(){return[0,0]},getSymbolShape:function(R,B,L,S,G,H,K,I,D,U,Q){var _=[L,R],$=this.getDataFromOption(L,"-");I=this.deepQuery(_,"symbol")||I;var X=this.deepQuery(_,"symbolSize");X="function"==typeof X?X($):X,"number"==typeof X&&(X=[X,X]);var J=this.deepQuery(_,"symbolRotate"),V=this.deepMerge(_,"itemStyle.normal"),P=this.deepMerge(_,"itemStyle.emphasis"),Y=null!=V.borderWidth?V.borderWidth:V.lineStyle&&V.lineStyle.width;null==Y&&(Y=I.match("empty")?2:0);var C=null!=P.borderWidth?P.borderWidth:P.lineStyle&&P.lineStyle.width;null==C&&(C=Y+2);var T=this.getItemStyleColor(V.color,B,S,L),O=this.getItemStyleColor(P.color,B,S,L),W=X[0],E=X[1],M=new N({style:{iconType:I.replace("empty","").toLowerCase(),x:H-W,y:K-E,width:2*W,height:2*E,brushType:"both",color:I.match("empty")?U:T||D,strokeColor:V.borderColor||T||D,lineWidth:Y},highlightStyle:{color:I.match("empty")?U:O||T||D,strokeColor:P.borderColor||V.borderColor||O||T||D,lineWidth:C},clickable:this.deepQuery(_,"clickable")});return I.match("image")&&(M.style.image=I.replace(new RegExp("^image:\\/\\/"),""),M=new F({style:M.style,highlightStyle:M.highlightStyle,clickable:this.deepQuery(_,"clickable")})),null!=J&&(M.rotation=[J*Math.PI/180,H,K]),I.match("star")&&(M.style.iconType="star",M.style.n=I.replace("empty","").replace("star","")-0||5),"none"===I&&(M.invisible=!0,M.hoverable=!1),M=this.addLabel(M,R,L,G,Q),I.match("empty")&&(null==M.style.textColor&&(M.style.textColor=M.style.strokeColor),null==M.highlightStyle.textColor&&(M.highlightStyle.textColor=M.highlightStyle.strokeColor)),A.pack(M,R,B,L,S,G),M._x=H,M._y=K,M._dataIndex=S,M._seriesIndex=B,M},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:"-",D=[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 V=this.deepMerge(_,"itemStyle.emphasis");V.color=this.getItemStyleColor(V.color,B,G,K);var I=$.lineStyle,T=V.lineStyle,N=I.width;null==N&&(N=$.borderWidth);var W=T.width;null==W&&(W=null!=V.borderWidth?V.borderWidth:N+2);var C=this.deepQuery(_,"smoothness");this.deepQuery(_,"smooth")||(C=0);var R=F?E:M,L=new R({style:{symbol:D,symbolSize:S,symbolRotate:O,brushType:"both",lineType:I.type,shadowColor:I.shadowColor||I.color||$.borderColor||$.color||J,shadowBlur:I.shadowBlur,shadowOffsetX:I.shadowOffsetX,shadowOffsetY:I.shadowOffsetY,color:$.color||J,strokeColor:I.color||$.borderColor||$.color||J,lineWidth:N,symbolBorderColor:$.borderColor||$.color||J,symbolBorder:$.borderWidth},highlightStyle:{shadowColor:T.shadowColor,shadowBlur:T.shadowBlur,shadowOffsetX:T.shadowOffsetX,shadowOffsetY:T.shadowOffsetY,color:V.color||$.color||J,strokeColor:T.color||I.color||V.borderColor||$.borderColor||V.color||$.color||J,lineWidth:W,symbolBorderColor:V.borderColor||$.borderColor||V.color||$.color||J,symbolBorder:null==V.borderWidth?$.borderWidth+2:V.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(K,B){var I,F,M,L,E,H,G=this.series[K],A=this.component,C=B.data,N=A.dataRange,J=A.legend,_=[C[0],B];if(J&&(F=J.getColor(G.name)),!N||(M=null!=C[0].value?C[0].value:"",F=isNaN(M)?F:N.getColor(M),L=this.deepQuery(_,"itemStyle.normal.color")||F,E=this.deepQuery(_,"itemStyle.emphasis.color")||L,null!=L||null!=E)){F=this.deepMerge(_,"itemStyle.normal").color||F;var $=this.deepQuery(_,"symbol")||"circle";$=$.replace("empty","").replace(/\d/g,""),H=this.deepMerge([C[0],B],"effect");var O=window.devicePixelRatio||1;return I=new D({style:{pointList:C,color:F,strokeColor:F,shadowColor:H.shadowColor||F,shadowBlur:(null!=H.shadowBlur?H.shadowBlur:8)*O,size:this.deepQuery(_,"symbolSize"),iconType:$,brushType:"fill",lineWidth:1},draggable:!1,hoverable:!1}),H.show&&(I.effect=H),I}},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,B=I?this.query(this.option,"animationDurationUpdate"):this.query(this.option,"animationDuration"),C=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[_],$[_],B,C,0,I)):(H=this.type!=G.CHART_TYPE_LINE&&this.type!=G.CHART_TYPE_RADAR||0===_.indexOf("icon")?0:B/2,this._animateMod(!1,$[_],B,C,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"),C=E[H].data,D=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(D));else{for(var G=D,F=this.shapeList.length;F>G;G++)this.zr.addShape(this.shapeList[G]);this.zr.refreshNextFrame()}E[H].data=C}},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],D=2;D--;)for(var E=0,G=B[D].length;G>E;E++)if(B[D][E]._mark==H&&A.get(B[D][E],"seriesIndex")==_&&A.get(B[D][E],"name")==$){this.zr.delShape(B[D][E].id),B[D].splice(E,1),C=!0;break}C&&this.zr.refreshNextFrame()}}},P.inherits(J,_),J}),D("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,B=_.x,C=_.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(B+G,C),H.lineTo(B+F-D,C),0!==D&&H.quadraticCurveTo(B+F,C,B+F,C+D),H.lineTo(B+F,C+E-J),0!==J&&H.quadraticCurveTo(B+F,C+E,B+F-J,C+E),H.lineTo(B+I,C+E),0!==I&&H.quadraticCurveTo(B,C+E,B,C+E-I),H.lineTo(B,C+G),0!==G&&H.quadraticCurveTo(B,C,B+G,C)},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}),D("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"),C=_("zrender/tool/util"),D=_("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:D.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=[]}},C.inherits($,F),_("../component").define("axis",$),$}),D("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",$),$}),D("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"),C=_("../config");C.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 D=_("../util/date"),F=_("zrender/tool/util");return $.prototype={type:C.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==C.CHART_TYPE_LINE||A.type==C.CHART_TYPE_BAR||A.type==C.CHART_TYPE_SCATTER||A.type==C.CHART_TYPE_K){for(var D=0,N=F.length;N>D;D++)if(F[D]==(A.xAxisIndex||0)){L.push(H);break}for(D=0,N=M.length;N>D;D++)if(M[D]==(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==C.CHART_TYPE_SCATTER||A.type==C.CHART_TYPE_LINE||A.type==C.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 D,G=this.option.series,F=this._zoom.seriesIndex,H=0,E=F.length;E>H;H++)D=G[F[H]],this._originalData.series[F[H]]=D.data,D.data&&this.getDataFromOption(D.data[0])instanceof Array&&(D.type==C.CHART_TYPE_SCATTER||D.type==C.CHART_TYPE_LINE||D.type==C.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,D=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:D,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,S=Number.MAX_VALUE,K=0,I=_.length;I>K;K++)Q=this.getDataFromOption(_[K],0),this.option.series[N].type==C.CHART_TYPE_K&&(Q=Q[1]),isNaN(Q)&&(Q=0),$=Math.max($,Q),S=Math.min(S,Q);var J=$-S,R=[],M=O/(L-(L>1?1:0)),T=D/(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/D));for(K=0,I=L;I>K;K+=F)Q=this.getDataFromOption(_[K],0),this.option.series[N].type==C.CHART_TYPE_K&&(Q=Q[1]),isNaN(Q)&&(Q=0),R.push("horizontal"==this.zoomOption.orient?[this._location.x+M*K,this._location.y+D-1-Math.round((Q-S)/J*(D-10))]:[this._location.x+1+Math.round((Q-S)/J*(O-10)),this._location.y+T*(I-K-1)]);"horizontal"==this.zoomOption.orient?(R.push([this._location.x+O,this._location.y+D]),R.push([this._location.x,this._location.y+D])):(R.push([this._location.x,this._location.y]),R.push([this._location.x,this._location.y+D])),this.shapeList.push(new B({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:R,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 D in this._originalData){$=this._originalData[D];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[D][F].type!=C.CHART_TYPE_K?(this._setScale(),this.option[D][F].data=this._synScatterData(F,A)):this.option[D][F].data=A.slice(G,E))}this._isSilence||!this.zoomOption.realtime&&!_||this.messageCenter.dispatch(C.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,B,C=[],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,B=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,B=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),B=E.coord2Value(B));for(var $,A=0,K=_.length;K>A;A++)$=_[A].value||_[A],$[0]>=D&&$[0]<=J&&$[1]>=I&&$[1]<=B&&C.push(_[A]);return C},_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 K=["xAxis","yAxis"],B=0,I=K.length;I>B;B++){var F=this._originalData[K[B]];for(var M in F){var L=F[M];if(null!=L){var E=L.length,H=Math.floor(this._zoom.start/100*E),G=Math.ceil(this._zoom.end/100*E);return G-=G>0?1:0,{start:this.getDataFromOption(L[H]),end:this.getDataFromOption(L[G])}}}}K="horizontal"==this.zoomOption.orient?"xAxis":"yAxis";var A=this._zoom.seriesIndex[0],C=this.option.series[A][K+"Index"]||0,N=this.option[K][C].type,J=this._zoom.scatterMap[A][K.charAt(0)].min,_=this._zoom.scatterMap[A][K.charAt(0)].max,$=_-J;if("value"==N)return{start:J+$*this._zoom.start/100,end:J+$*this._zoom.end/100};if("time"==N){_=J+$*this._zoom.end/100,J+=$*this._zoom.start/100;var O=D.getAutoFormatter(J,_).formatter;return{start:D.format(O,J),end:D.format(O,_)}}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(C.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,C=1-(F.y+F.height-$.y)/$.height,D=(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*C,this._zoom.end2-=E*D):(E=this._zoom.end-this._zoom.start,this._zoom.start+=E*C,this._zoom.end-=E*D,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,C=B.length;C>A;A++){G=B[A].data||B[A].eventList,$=E[A]?Math.floor(this._zoom.start/100*E[A].length):0;for(var D=0,F=G.length;F>D;D++)E[A]&&(E[A][D+$]=G[D])}},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",$),$}),D("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 $}),D("echarts/util/ecData",[],function(){function _(_,$,G,E,B,A,C,D){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:C,_special2:D},_._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}}),D("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(!H[P.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||H[P.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 D(_,$){if(_.indexOf)return _.indexOf($);for(var B=0,A=_.length;A>B;B++)if(_[B]===$)return B;return-1}function E(_,$){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===Q)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,Q=K.filter,H={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},P=Object.prototype.toString;return{inherits:E,clone:J,merge:N,getContext:M,indexOf:D,each:I,map:G,filter:A,bind:C}}),D("echarts/chart",[],function(){var _={},$={};return _.define=function(B,A){return $[B]=A,_},_.get=function(_){return $[_]},_}),D("zrender/tool/color",["require","../tool/util"],function(m){function Y($){S=$}function i(){S=p}function d(_,$){return _=0|_,$=$||S,$[_%$.length]}function o($){B=$}function n(){T=B}function b(){return B}function c(_,$,I,F,C,B,D){A||(A=M.getContext());for(var E=A.createRadialGradient(_,$,I,F,C,B),H=0,G=D.length;G>H;H++)E.addColorStop(D[H][0],D[H][1]);return E.__nonRecursion=!0,E}function h(_,$,G,F,C){A||(A=M.getContext());for(var B=A.createLinearGradient(_,$,G,F),D=0,E=C.length;E>D;D++)B.addColorStop(C[D][0],C[D][1]);return B.__nonRecursion=!0,B}function e(J,A,G){J=W(J),A=W(A),J=_(J),A=_(A);for(var D=[],L=(A[0]-J[0])/G,K=(A[1]-J[1])/G,B=(A[2]-J[2])/G,C=(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+=C;return E=A[0],$=A[1],M=A[2],H=A[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,A){if(!O(B))return B;var E=_(B),C=E[3];return"undefined"==typeof C&&(C=1),B.indexOf("hsb")>-1?E=Q(E):B.indexOf("hsl")>-1&&(E=$(E)),A.indexOf("hsb")>-1||A.indexOf("hsv")>-1?E=D(E):A.indexOf("hsl")>-1&&(E=J(E)),E[3]=C,a(E,A)}function W($){return l($,"rgba")}function V($){return l($,"rgb")}function s($){return l($,"hex")}function f($){return l($,"hsva")}function R($){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(s(U[$])===s(_))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 j(A,$){if(!O(A))return A;var D=$>0?1:-1;"undefined"==typeof $&&($=0),$=Math.abs($)>1?1:Math.abs($),A=V(A);for(var C=_(A),B=0;3>B;B++)C[B]=1===D?C[B]*(1-$)|0:(255-C[B])*$+C[B]|0;return"rgb("+C.join(",")+")"}function F(A){if(!O(A))return A;var $=_(W(A));return $=K($,function($){return 255-$}),a($,"rgb")}function G(H,A,G){if(!O(H)||!O(A))return H;"undefined"==typeof G&&(G=0.5),G=1-I(G,[0,1]);for(var D=2*G-1,K=_(W(H)),J=_(W(A)),B=K[3]-J[3],C=((D*B===-1?D:(D+B)/(1+D*B))+1)/2,F=1-C,E=[],$=0;3>$;$++)E[$]=K[$]*C+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 C(){return"#"+(Math.random().toString(16)+"0000").slice(2,8)}function _(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 D=_[4].split(",");G=D[3],C=D.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 F=(_[5]||_[6]).split(","),J=parseInt(F[0],0)/360,H=F[1],$=F[2];G=F[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(A,$){if(!O(A))return A;null===$&&($=1);var B=_(W(A));return B[3]=I(Number($).toFixed(4),[0,1]),a(B,"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],C=J[2];if(0===K)A=255*C,H=255*C,E=255*C;else{var D=6*L;6===D&&(D=0);var G=0|D,F=C*(1-K),_=C*(1-K*(D-G)),B=C*(1-K*(1-(D-G))),M=0,I=0,$=0;0===G?(M=C,I=B,$=F):1===G?(M=_,I=C,$=F):2===G?(M=F,I=C,$=B):3===G?(M=F,I=_,$=C):4===G?(M=B,I=F,$=C):(M=C,I=F,$=_),A=255*M,H=255*I,E=255*$}return[A,H,E]}function $(_){var $,G,E,B=_[0],A=_[1],C=_[2];if(0===A)$=255*C,G=255*C,E=255*C;else{var D;D=0.5>C?C*(1+A):C+A-A*C;var F=2*C-D;$=255*H(F,D,B+1/3),G=255*H(F,D,B),E=255*H(F,D,B-1/3)}return[$,G,E]}function H(_,$,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 D(H){var _,G,D=H[0]/255,J=H[1]/255,I=H[2]/255,B=Math.min(D,J,I),C=Math.max(D,J,I),F=C-B,E=C;if(0===F)_=0,G=0;else{G=F/C;var $=((C-D)/6+F/2)/F,A=((C-J)/6+F/2)/F,K=((C-I)/6+F/2)/F;D===C?_=K-A:J===C?_=1/3+$-K:I===C&&(_=2/3+A-$),0>_&&(_+=1),_>1&&(_-=1)}return _=360*_,G=100*G,E=100*E,[_,G,E]}function J(H){var _,G,D=H[0]/255,J=H[1]/255,I=H[2]/255,B=Math.min(D,J,I),C=Math.max(D,J,I),F=C-B,E=(C+B)/2;if(0===F)_=0,G=0;else{G=0.5>E?F/(C+B):F/(2-C-B);var $=((C-D)/6+F/2)/F,A=((C-J)/6+F/2)/F,K=((C-I)/6+F/2)/F;D===C?_=K-A:J===C?_=1/3+$-K:I===C&&(_=2/3+A-$),0>_&&(_+=1),_>1&&(_-=1)}return _=360*_,G=100*G,E=100*E,[_,G,E]}var A,M=m("../tool/util"),S=["#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"],p=S,B="rgba(255,255,0,0.5)",T=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:b,customHighlight:o,resetHighlight:n,getRadialGradient:c,getLinearGradient:h,getGradientColors:X,getStepColors:e,reverse:F,mix:G,lift:j,trim:r,random:C,toRGB:V,toRGBA:W,toHex:s,toHSL:P,toHSLA:Z,toHSB:t,toHSBA:k,toHSV:R,toHSVA:f,toName:L,toColor:a,toArray:q,alpha:g,getData:_}}),D("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 F=_.controlPointList;A.moveTo(H[0][0],H[0][1]);for(var G,J,I,$=0;C-1>$;$++)G=F[2*$],J=F[2*$+1],I=H[$+1],A.bezierCurveTo(G[0],G[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}),D("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 M(_,$){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 N(_,$){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,C=B/16,D=A/16,F=2*Math.min(C,D);_.moveTo(G+C+F,E+D+F),_.arc(G+C,E+D,F,Math.PI/4,3*Math.PI),_.lineTo(G+7*C-F,E+6*D-F),_.arc(G+7*C,E+6*D,F,Math.PI/4*5,4*Math.PI),_.arc(G+7*C,E+6*D,F/2,Math.PI/4*5,4*Math.PI),_.moveTo(G+7*C-F/2,E+6*D+F),_.lineTo(G+C+F,E+14*D-F),_.arc(G+C,E+14*D,F,-Math.PI/4,2*Math.PI),_.moveTo(G+7*C+F/2,E+6*D),_.lineTo(G+14*C-F,E+10*D-F/2),_.moveTo(G+16*C,E+10*D),_.arc(G+14*C,E+10*D,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,C=Math.round(A/3),D=Math.round((C-2)/2),F=3;F--;)_.rect(G,E+C*F+D,B,2)}function H(_,$){for(var G=$.x,E=$.y,B=$.width,A=$.height,C=Math.round(B/3),D=Math.round((C-2)/2),F=3;F--;)_.rect(G+C*F+D,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 b(_,$){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 Q(_,$){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 F(_,$){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 T(_,$){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 B($,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:M,lineChart:N,barChart:R,pieChart:P,funnelChart:I,forceChart:L,chordChart:Z,stackChart:V,tiledChart:H,dataView:G,saveAsImage:b,cross:Q,circle:F,rectangle:U,triangle:c,diamond:K,arrow:E,star:D,heart:a,droplet:A,pin:T,image:B},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}),D("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 E,F,H,G=D.length,$=0;G-3>$;$++)E=C[2*$],F=C[2*$+1],H=D[$+1],A.bezierCurveTo(E[0],E[1],F[0],F[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),$}),D("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}}),D("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_]+)/),D=M.match(/(iPod)(.*OS\s([\d_]+))?/),E=!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/),R=M.match(/Chrome\/([\d.]+)/)||M.match(/CriOS\/([\d.]+)/),H=M.match(/Firefox\/([\d.]+)/),Q=M.match(/MSIE ([\d.]+)/),K=F&&M.match(/Mobile\//)&&!R,S=M.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!R,Q=M.match(/MSIE\s([\d.]+)/);return(J.webkit=!!F)&&(J.version=F[1]),O&&(B.android=!0,B.version=O[2]),E&&!D&&(B.ios=B.iphone=!0,B.version=E[2].replace(/_/g,".")),N&&(B.ios=B.ipad=!0,B.version=N[2].replace(/_/g,".")),D&&(B.ios=B.ipod=!0,B.version=D[3]?D[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),R&&(J.chrome=!0,J.version=R[1]),H&&(J.firefox=!0,J.version=H[1]),Q&&(J.ie=!0,J.version=Q[1]),K&&(M.match(/Safari/)||B.ios)&&(J.safari=!0),S&&(J.webview=!0),Q&&(J.ie=!0,J.version=Q[1]),B.tablet=!!(N||$||O&&!M.match(/Mobile/)||H&&M.match(/Tablet/)||Q&&!M.match(/Phone/)&&M.match(/Touch/)),B.phone=!(B.tablet||B.ipod||!(O||E||I||P||L||R&&M.match(/Android/)||R&&M.match(/CriOS\/([\d.]+)/)||H&&M.match(/Mobile/)||Q&&M.match(/Touch/))),{browser:J,os:B,canvasSupported:document.createElement("canvas").getContext?!0:!1}}return $(navigator.userAgent)}),D("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"),B=H("./Painter"),C=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 C,this.painter=new B(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 H;if(_){for(var I=_.split("."),K=A,J=0,$=I.length;$>J;J++)K&&(K=K[I[J]]);K&&(H=K)}else H=A;if(!H)return void D("Property \""+_+"\" is not existed in element "+A.id);null==A.__animators&&(A.__animators=[]);var C=A.__animators,F=this.animation.animate(H,{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)},$}),D("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 $}),D("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,C){F.call(this,_,$,E,B,C),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=D.getDelta(H);E=E>0?-1:1,$.style.r-=E,$.style.r=$.style.r<5?5:$.style.r;var B=A.get($,"value"),C=B*G.option.island.calculateStep;B=C>1?Math.round(B-C*E):+(B-C*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(),D.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"),C=_("zrender/tool/util"),D=_("zrender/tool/event");return $.prototype={type:B.CHART_TYPE_ISLAND,_combine:function($,F){var E=_("zrender/tool/color"),B=_("../util/accMath"),C=B.accAdd(A.get($,"value"),A.get(F,"value")),D=A.get($,"name")+this._nameConnector+A.get(F,"name");$.style.text=D+this._valueConnector+C,A.set($,"value",C),A.set($,"name",D),$.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:"",C=this.getFont(this.option.island.textStyle),D=this.option.island,F={zlevel:D.zlevel,z:D.z,style:{x:_.style.x,y:_.style.y,r:this.option.island.r,color:_.style.color||_.style.strokeColor,text:$+this._valueConnector+G,textFont:C},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=D.getX(_.event),A.style.y=D.getY(_.event),this.add(A),$.needRefresh=!0),this.isDragend=!1}},C.inherits($,F),_("../chart").define("island",$),$}),D("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"),B=H("../util/shape/Icon"),C=H("../config");C.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:C.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 C,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,P=0;K>P;P++){switch(C={type:"icon",zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:G,y:A,width:D,height:D,iconType:this._iconList[P],lineWidth:1,strokeColor:this._featureColor[this._iconList[P]]||M[P%M.length],brushType:"stroke"},highlightStyle:{lineWidth:1,text:E.showTitle?this._featureTitle[this._iconList[P]]:void 0,textFont:_,textPosition:L,strokeColor:this._featureColor[this._iconList[P]]||M[P%M.length]},hoverable:!0,clickable:!0},this._featureIcon[this._iconList[P]]&&(C.style.image=this._featureIcon[this._iconList[P]].replace(new RegExp("^image:\\/\\/"),""),C.style.opacity=0.8,C.highlightStyle.opacity=1,C.type="image"),"horizontal"===E.orient&&(0===P&&"left"===F&&(C.highlightStyle.textPosition="specific",C.highlightStyle.textAlign=F,C.highlightStyle.textBaseline=N,C.highlightStyle.textX=G,C.highlightStyle.textY="top"===N?A+D+10:A-10),P===K-1&&"right"===F&&(C.highlightStyle.textPosition="specific",C.highlightStyle.textAlign=F,C.highlightStyle.textBaseline=N,C.highlightStyle.textX=G+D,C.highlightStyle.textY="top"===N?A+D+10:A-10)),this._iconList[P]){case"mark":C.onclick=$._onMark;break;case"markUndo":C.onclick=$._onMarkUndo;break;case"markClear":C.onclick=$._onMarkClear;break;case"dataZoom":C.onclick=$._onDataZoom;break;case"dataZoomReset":C.onclick=$._onDataZoomReset;break;case"dataView":if(!this._dataView){var I=H("./dataView");this._dataView=new I(this.ecTheme,this.messageCenter,this.zr,this.option,this.myChart)}C.onclick=$._onDataView;break;case"restore":C.onclick=$._onRestore;break;case"saveAsImage":C.onclick=$._onSaveAsImage;break;default:this._iconList[P].match("Chart")?(C._name=this._iconList[P].replace("Chart",""),C.onclick=$._onMagicType):C.onclick=$._onCustomHandler}"icon"===C.type?C=new B(C):"image"===C.type&&(C=new J(C)),this.shapeList.push(C),this._iconShapeMap[this._iconList[P]]=C,"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,D=0;"horizontal"===A.orient?(B=(C+F)*I-F,D=C):(D=(C+F)*I-F,B=C);var E,H=this.zr.getWidth();switch(A.x){case"center":E=Math.floor((H-B)/2);break;case"left":E=_[3]+A.borderWidth;break;case"right":E=H-B-_[1]-A.borderWidth;break;default:E=A.x-0,E=isNaN(E)?0:E}var G,$=this.zr.getHeight();switch(A.y){case"top":G=_[0]+A.borderWidth;break;case"bottom":G=$-D-_[2]-A.borderWidth;break;case"center":G=Math.floor(($-D)/2);break;default:G=A.y-0,G=isNaN(G)?0:G}return{x:E,y:G,width:B,height:D}},__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),B=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:B.fillerColor||C.dataZoom.fillerColor,strokeColor:B.handleColor||C.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(C.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,$===C.CHART_TYPE_LINE?this._magicType[C.CHART_TYPE_BAR]=!1:$===C.CHART_TYPE_BAR&&(this._magicType[C.CHART_TYPE_LINE]=!1),$===C.CHART_TYPE_PIE?this._magicType[C.CHART_TYPE_FUNNEL]=!1:$===C.CHART_TYPE_FUNNEL&&(this._magicType[C.CHART_TYPE_PIE]=!1),$===C.CHART_TYPE_FORCE?this._magicType[C.CHART_TYPE_CHORD]=!1:$===C.CHART_TYPE_CHORD&&(this._magicType[C.CHART_TYPE_FORCE]=!1),$===A?this._magicType[K]=!1:$===K&&(this._magicType[A]=!1),this.messageCenter.dispatch(C.EVENT.MAGIC_TYPE_CHANGED,_.event,{magicType:this._magicType},this.myChart)),!0},setMagicType:function($){this._resetMark(),this._magicType=$,!this._isSilence&&this.messageCenter.dispatch(C.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 E in this._magicType)if(this._magicType[E]){this.option=B,this.getMagicOption();break}var G=B.dataZoom;if(G&&G.show){var I=null!=G.start&&G.start>=0&&G.start<=100?G.start:0,$=null!=G.end&&G.end>=0&&G.end<=100?G.end:100;I>$&&(I+=$,$=I-$,I-=$),this._zoomQueue=[{start:I,end:$,start2:0,end2:100}]}else this._zoomQueue=[]},getMagicOption:function(){var _,$;if(this._magicType[C.CHART_TYPE_LINE]||this._magicType[C.CHART_TYPE_BAR]){for(var E=this._magicType[C.CHART_TYPE_LINE]?!1:!0,D=0,B=this.option.series.length;B>D;D++)$=this.option.series[D].type,($==C.CHART_TYPE_LINE||$==C.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(C.CHART_TYPE_LINE,C.CHART_TYPE_BAR)}if(this._defaultMagic(C.CHART_TYPE_CHORD,C.CHART_TYPE_FORCE),this._defaultMagic(C.CHART_TYPE_PIE,C.CHART_TYPE_FUNNEL),this._magicType[A]||this._magicType[K])for(D=0,B=this.option.series.length;B>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",_),_}),D("echarts/component",[],function(){var _={},$={};return _.define=function(B,A){return $[B]=A,_},_.get=function(_){return $[_]},_}),D("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 C=_("zrender/tool/util"),D=_("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,D=this.titleOption.subtarget,G=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:G,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(){D&&"self"==D?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(D.getTextWidth(J,E),D.getTextWidth(G,B)),I=D.getTextHeight(J,E)+(""===G?0:this.titleOption.itemGap+D.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 $,C=this.zr.getHeight();switch(this.titleOption.y){case"top":$=_[0]+this.titleOption.borderWidth;break;case"bottom":$=C-I-_[2]-this.titleOption.borderWidth;break;case"center":$=Math.floor((C-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()}},C.inherits($,G),_("../component").define("title",$),$}),D("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,B,C){H.call(this,_,$,A,B,C),this.dom=C.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(B)}var H=J("./base"),E=J("../util/shape/Cross"),L=J("zrender/shape/Line"),K=J("zrender/shape/Rectangle"),C=new K({}),D=J("../config");D.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:D.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 _,$,C=this.option.series,B=0,A=C.length;A>B;B++)if("axis"===this.deepQuery([C[B],this.option],"tooltip.trigger"))return _=C[B].xAxisIndex||0,$=C[B].yAxisIndex||0,this.component.xAxis.getAxis(_)&&this.component.xAxis.getAxis(_).type===D.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(_,$,this._getNearestDataIndex("x",this.component.xAxis.getAxis(_))):this.component.yAxis.getAxis($)&&this.component.yAxis.getAxis($).type===D.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,B,C=this.component.grid.getXend(),F=$.getCoordByIndex(G);C>F&&(B=F,D>=F);)I=F,F=$.getCoordByIndex(++G);return 0>=G?G=0:B-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(D.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===D.COMPONENT_TYPE_AXIS_CATEGORY?"xAxis":-1!=B&&this.component.yAxis.getAxis(B).type===D.COMPONENT_TYPE_AXIS_CATEGORY?"yAxis":!1;if($){var T="xAxis"==$?N:B;G=this.component[$].getAxis(T);for(var I=0,S=J.length;S>I;I++)this._isSelected(J[I].name)&&J[I][$+"Index"]===T&&"axis"===this.deepQuery([J[I],this.option],"tooltip.trigger")&&(F=this.query(J[I],"tooltip.showContent")||F,P=this.query(J[I],"tooltip.formatter")||P,O=this.query(J[I],"tooltip.position")||O,R+=this._style(this.query(J[I],"tooltip")),null!=J[I].stack&&"xAxis"==$?(H.unshift(J[I]),E.unshift(I)):(H.push(J[I]),E.push(I)));this.messageCenter.dispatch(D.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,C;if("function"==typeof P){for(var Q=[],I=0,S=H.length;S>I;I++)U=H[I].data[K],C=this.getDataFromOption(U,"-"),Q.push({seriesIndex:E[I],seriesName:H[I].name||"",series:H[I],dataIndex:K,data:U,name:G.getNameByIndex(K),value:C,0:H[I].name||"",1:G.getNameByIndex(K),2:C,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(I=0,S=H.length;S>I;I++)P=P.replace("{a"+I+"}",this._encodeHTML(H[I].name||"")),P=P.replace("{b"+I+"}",this._encodeHTML(G.getNameByIndex(K))),U=H[I].data[K],U=this.getDataFromOption(U,"-"),P=P.replace("{c"+I+"}",U instanceof Array?U:this.numAddCommas(U));this._tDom.innerHTML=P}else{this._curTicket=0/0,P=this._encodeHTML(G.getNameByIndex(K));for(I=0,S=H.length;S>I;I++)P+="<br/>"+this._encodeHTML(H[I].name||"")+" : ",U=H[I].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,D=[],E=[],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")),D.push(M[C]),E.push(C));if(D.length>0){for(var K,A,$,Q=[],C=0,O=D.length;O>C;C++){K=D[C].data;for(var H=0,P=K.length;P>H;H++)A=K[H],this._isSelected(A.name)&&(A=null!=A?A:{name:"",value:{dataIndex:"-"}},$=this.getDataFromOption(A.value[B]),Q.push({seriesIndex:E[C],seriesName:D[C].name||"",series:D[C],dataIndex:B,data:A,name:A.name,indicator:G,value:$,0:D[C].name||"",1:A.name,2:$,3:G}))}if(Q.length<=0)return;if(this._lastItemTriggerId=-1,this._lastDataIndex!=B||this._lastSeriesIndex!=E[0])if(this._lastDataIndex=B,this._lastSeriesIndex=E[0],"function"==typeof J)this._curTicket="axis:"+B,this._tDom.innerHTML=J.call(this.myChart,Q,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=Q.length;O>C;C++)J=J.replace("{a"+C+"}",this._encodeHTML(Q[C].seriesName)),J=J.replace("{b"+C+"}",this._encodeHTML(Q[C].name)),J=J.replace("{c"+C+"}",this.numAddCommas(Q[C].value)),J=J.replace("{d"+C+"}",this._encodeHTML(Q[C].indicator));this._tDom.innerHTML=J}else{J=this._encodeHTML(Q[0].name)+"<br/>"+this._encodeHTML(Q[0].indicator)+" : "+this.numAddCommas(Q[0].value);for(C=1,O=Q.length;O>C;C++)J+="<br/>"+this._encodeHTML(Q[C].name)+"<br/>",J+=this._encodeHTML(Q[C].indicator)+" : "+this.numAddCommas(Q[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"),C=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],R="";if("island"!=this._curTarget._type){var I=M?"axis":"item";this.option.tooltip.trigger===I&&(B=this.option.tooltip.formatter,J=this.option.tooltip.position),this.query(O,"tooltip.trigger")===I&&(F=this.query(O,"tooltip.showContent")||F,B=this.query(O,"tooltip.formatter")||B,J=this.query(O,"tooltip.position")||J,R+=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,R+=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:C,value:P,percent:L,indicator:L,value2:A,indicator2:A,0:O.name||"",1:C,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(C)).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===D.CHART_TYPE_RADAR&&L?this._itemFormatter.radar.call(this,O,C,P,L):O.type===D.CHART_TYPE_EVENTRIVER?this._itemFormatter.eventRiver.call(this,O,C,P,E):""+(null!=O.name?this._encodeHTML(O.name)+"<br/>":"")+(""===C?"":this._encodeHTML(C)+" : ")+(P instanceof Array?P:this.numAddCommas(P))));var Q=_.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,Q,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,Q+20,K-20,R))}},_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,D,E){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 Q=O.line.width,H=B==F;this._axisLineShape.style={xStart:H?this.subPixelOptimize(B,Q):B,yStart:H?J:this.subPixelOptimize(J,Q),xEnd:H?this.subPixelOptimize(F,Q):F,yEnd:H?N:this.subPixelOptimize(N,Q),strokeColor:O.line.color,lineWidth:Q,lineType:O.line.type},this._axisLineShape.invisible=!1,this.zr.modShape(this._axisLineShape.id)}else if("cross"===C){var P=O.cross.width;this._axisCrossShape.style={brushType:"stroke",rect:this.component.grid.getArea(),x:this.subPixelOptimize(D,P),y:this.subPixelOptimize(E,P),text:("( "+this.component.xAxis.getAxis(0).getValueFromCoord(D)+" , "+this.component.yAxis.getAxis(0).getValueFromCoord(E)+" )").replace(" , "," ").replace(" , "," "),textPosition:"specific",strokeColor:O.cross.color,lineWidth:P,lineType:O.cross.type},this.component.grid.getXend()-D>100?(this._axisCrossShape.style.textAlign="left",this._axisCrossShape.style.textX=D+10):(this._axisCrossShape.style.textAlign="right",this._axisCrossShape.style.textX=D-10),E-this.component.grid.getY()>50?(this._axisCrossShape.style.textBaseline="bottom",this._axisCrossShape.style.textY=E-10):(this._axisCrossShape.style.textBaseline="top",this._axisCrossShape.style.textY=E+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(C,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(D.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 D.CHART_TYPE_LINE:case D.CHART_TYPE_BAR:case D.CHART_TYPE_K:case D.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 $,S,J=A.shapeList;switch(A.type){case D.CHART_TYPE_LINE:case D.CHART_TYPE_BAR:case D.CHART_TYPE_K:case D.CHART_TYPE_TREEMAP:case D.CHART_TYPE_SCATTER:for(Q=N.dataIndex,P=0,O=J.length;O>P;P++)if(null==J[P]._mark&&G.get(J[P],"seriesIndex")==B&&G.get(J[P],"dataIndex")==Q){this._curTarget=J[P],$=J[P].style.x,S=A.type!=D.CHART_TYPE_K?J[P].style.y:J[P].style.y[0];break}break;case D.CHART_TYPE_RADAR:for(Q=N.dataIndex,P=0,O=J.length;O>P;P++)if("polygon"===J[P].type&&G.get(J[P],"seriesIndex")==B&&G.get(J[P],"dataIndex")==Q){this._curTarget=J[P];_=this.component.polar.getCenter(H.polarIndex||0);$=_[0],S=_[1];break}break;case D.CHART_TYPE_PIE:for(var R=N.name,P=0,O=J.length;O>P;P++)if("sector"===J[P].type&&G.get(J[P],"seriesIndex")==B&&G.get(J[P],"name")==R){this._curTarget=J[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,S=this._curTarget.style.y-Math.sin(T)*L.r/1.5;break}break;case D.CHART_TYPE_MAP:for(var R=N.name,C=H.mapType,P=0,O=J.length;O>P;P++)if("text"===J[P].type&&J[P]._mapType===C&&J[P].style._name===R){this._curTarget=J[P],$=this._curTarget.style.x+this._curTarget.position[0],S=this._curTarget.style.y+this._curTarget.position[1];break}break;case D.CHART_TYPE_CHORD:for(R=N.name,P=0,O=J.length;O>P;P++)if("sector"===J[P].type&&G.get(J[P],"name")==R){this._curTarget=J[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),S=this._curTarget.style.y-Math.sin(T)*(L.r-2),void this.zr.trigger(F.EVENT.MOUSEMOVE,{zrenderX:$,zrenderY:S})}break;case D.CHART_TYPE_FORCE:for(R=N.name,P=0,O=J.length;O>P;P++)if("circle"===J[P].type&&G.get(J[P],"name")==R){this._curTarget=J[P],$=this._curTarget.position[0],S=this._curTarget.position[1];break}}null!=$&&null!=S&&(this._event={zrenderX:$,zrenderY:S},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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},I.inherits(A,H),J("../component").define("tooltip",A),A}),D("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"),B=H("../util/shape/Icon"),C=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,C,K,P,O,H,J,G,R=this.legendOption.data,M=R.length,A=this.legendOption.textStyle,_=this.zr.getWidth(),T=this.zr.getHeight(),I=this._itemGroupLocation.x,S=this._itemGroupLocation.y,L=this.legendOption.itemWidth,U=this.legendOption.itemHeight,F=this.legendOption.itemGap;"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(I=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?(C=R[Q].icon||this._getSomethingByName(N).type,G=this.getColor(N),"horizontal"===this.legendOption.orient?200>_-I&&L+5+$.getTextWidth(J,H)+(Q===M-1||""===R[Q+1]?0:F)>=_-I&&(I=this._itemGroupLocation.x,S+=U+F):200>T-S&&U+(Q===M-1||""===R[Q+1]?0:F)>=T-S&&("right"===this.legendOption.x?I-=this._itemGroupLocation.maxWidth+F:I+=this._itemGroupLocation.maxWidth+F,S=this._itemGroupLocation.y),K=this._getItemShapeByType(I,S,L,U,this._selectedMap[N]&&this._hasDataMap[N]?G:"#ccc",C,G),K._name=N,K=new B(K),P={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:I+L+5,y:S+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?I+=L+5+$.getTextWidth(J,H)+F:S+=U+F):"horizontal"===this.legendOption.orient?(I=this._itemGroupLocation.x,S+=U+F):("right"===this.legendOption.x?I-=this._itemGroupLocation.maxWidth+F:I+=this._itemGroupLocation.maxWidth+F,S=this._itemGroupLocation.y);"horizontal"===this.legendOption.orient&&"center"===this.legendOption.x&&S!=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,D=this.getFont(N),F=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 R=0;B>R;R++)if(""!==this._getName(M[R])){var H=$.getTextWidth(this._getFormatterNameFromData(M[R]),M[R].textStyle?this.getFont(E.merge(M[R].textStyle||{},N)):D);A+G+H+J>P?(A-=J,F=Math.max(F,A),I+=O+J,A=0):(A+=G+H+J,F=Math.max(F,A-J))}else A-=J,F=Math.max(F,A),I+=O+J,A=0}else{for(R=0;B>R;R++)_=Math.max(_,$.getTextWidth(this._getFormatterNameFromData(M[R]),M[R].textStyle?this.getFont(E.merge(M[R].textStyle||{},N)):D));_+=G,F=_;for(R=0;B>R;R++)""!==this._getName(M[R])?A+O+J>L?(F+=_+J,A-=J,I=Math.max(I,A),A=0):(A+=O+J,I=Math.max(I,A-J)):(F+=_+J,A-=J,I=Math.max(I,A),A=0)}P=this.zr.getWidth(),L=this.zr.getHeight();var Q;switch(this.legendOption.x){case"center":Q=Math.floor((P-F)/2);break;case"left":Q=C[3]+this.legendOption.borderWidth;break;case"right":Q=P-F-C[1]-C[3]-2*this.legendOption.borderWidth;break;default:Q=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:Q,y:K,width:F,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,D){var E,H="#ccc"===C?D: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")){E=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=E,"#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 C in this.legendOption.selected)this._selectedMap[C]="undefined"!=typeof this._selectedMap[C]?this._selectedMap[C]:this.legendOption.selected[C];for(var D=0,G=A.length;G>D;D++)$=this._getName(A[D]),""!==$&&(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 C=0,D=$.length;D>C;C++)$[C].name===_&&"-"!=$[C].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,B=$.width,A=$.height;C.prototype.buildPath(_,{x:E+B/2,y:[D+1,D+1,D+A-6,D+A],width:B-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(_,$){B.prototype.iconLibrary.circle(_,$)},radar:function(H,_){var G=6,D=_.x+_.width/2,J=_.y+_.height/2,I=_.height/2,B=2*Math.PI/G,C=-Math.PI/2,F=D+I*Math.cos(C),E=J+I*Math.sin(C);H.moveTo(F,E),C+=B;for(var $=0,A=G-1;A>$;$++)H.lineTo(D+I*Math.cos(C),J+I*Math.sin(C)),C+=B;H.lineTo(F,E)}};A.chord=A.pie,A.map=A.bar;for(var K in A)B.prototype.iconLibrary["legendicon"+K]=A[K];return E.inherits(_,G),H("../component").define("legend",_),_}),D("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 _(_,$,D,B,A){F.call(this,_,$,D,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(E.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:E.animationDuration)}}function I(A,_){var I=2,F=_.x+I,C=_.y+I+2,D=_.width-I,E=_.height-I,H=_.symbol;if("last"===H)A.moveTo(F+D-2,C+E/3),A.lineTo(F+D-2,C),A.lineTo(F+2,C+E/2),A.lineTo(F+D-2,C+E),A.lineTo(F+D-2,C+E/3*2),A.moveTo(F,C),A.lineTo(F,C);else if("next"===H)A.moveTo(F+2,C+E/3),A.lineTo(F+2,C),A.lineTo(F+D-2,C+E/2),A.lineTo(F+2,C+E),A.lineTo(F+2,C+E/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+D-2,C+E/2),A.lineTo(F+2,C+E),A.lineTo(F+2,C);else{var G="both"===_.brushType?2:3;A.rect(F+2,C,G,E),A.rect(F+D-G-2,C,G,E)}}else if(H.match("image")){var $="";$=H.replace(new RegExp("^image:\\/\\/"),""),H=B.prototype.iconLibrary.image,H(A,{x:F,y:C,width:D,height:E,image:$})}}var F=A("./base"),C=A("zrender/shape/Rectangle"),B=A("../util/shape/Icon"),D=A("../util/shape/Chain"),E=A("../config");E.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:E.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 C,D,G=this.zr.getHeight(),F=this.parsePercent($.height,G);return null!=$.y?(C=this.parsePercent($.y,G),D=C+F):(D=G-this.parsePercent($.y2,G),C=D-F),{x:B+H[3],y:C+H[0],x2:A-H[1],y2:D-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 B,C,E=!1;for(F=0;!E&&J>F;){F++,E=!0;for(var $=F;J>$;$+=F){if(B=I[$].x-I[$-F].x,0!==_.label.rotate)C=D;else if(K[$].textStyle)C=G.getTextWidth(I[$].name,I[$].textFont);else{var A=I[$].name+"",L=(A.match(/\w/g)||"").length,H=A.length-L;C=L*D*2/3+H*D}if(C>B){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,E=K.label.textStyle,F=this.getFont(E),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 T=0;M>T;T++)_.push(A+$+R/(M-1)*T)}else{_[0]=new Date(N(0).replace(/-/g,"/")),_[M-1]=new Date(N(M-1).replace(/-/g,"/"))-_[0];for(T=1;M>T;T++)_[T]=A+$+R*(new Date(N(T).replace(/-/g,"/"))-_[0])/_[M-1];_[0]=A+$}}else _.push(A+R/2);for(var J,S,L,U,C,Q=[],T=0;M>T;T++)A=_[T],J=I[T].symbol&&I[T].symbol.toLowerCase()||G,J.match("empty")?(J=J.replace("empty",""),L=!0):L=!1,J.match("star")&&(S=J.replace("star","")-0||5,J="star"),B=I[T].textStyle?H.merge(I[T].textStyle||{},E):E,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:S,isEmpty:L,symbol:J,symbolSize:I[T].symbolSize||P,color:I[T].color,borderColor:I[T].borderColor,borderWidth:I[T].borderWidth,name:this._getReformedLabel(T),textColor:B.color,textAlign:U,textBaseline:B.baseline||"middle",textX:A,textY:D-(O?5:0),textFont:I[T].textStyle?this.getFont(B):F,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,D=F.itemSize,E=F.itemGap;"left"===_.controlPosition?(C=this._location.x,this._location.x+=3*(D+E)):(C=this._location.x2-(3*(D+E)-E),this._location.x2-=3*(D+E));var G=this._location.y,$={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{iconType:"timelineControl",symbol:"last",x:C,y:G,width:D,height:D,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+=D+E,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+=D+E,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 D(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],C=A.symbolSize+2;if(_.style.iconType=A.symbol,_.style.n=A.n,_.style.textX=_.style.x+C/2,_.style.y=this._location.y+this._location.height/4-C,_.style.width=2*C,_.style.height=2*C,_.style.text=A.name,F===this.currentIndex)return!0;if(this.currentIndex=F,this.timelineOption.realtime){clearTimeout(this.playTicket);var D=this;this.playTicket=setTimeout(function(){D._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",_),_}),D("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 C=L;this._imageCache[C]?L=this._imageCache[C]:(L=new Image,L.onload=function(){L.onload=null,K.modSelf(),H()},L.src=C,this._imageCache[C]=L)}if(L){if("IMG"==L.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=L.readyState)return}else if(!L.complete)return;var D=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,_,D,G)}else if(E.sx&&E.sy){var B=E.sx,M=E.sy,I=D-B,$=G-M;J.drawImage(L,B,M,I,$,F,_,D,G)}else J.drawImage(L,F,_,D,G);E.width||(E.width=D),E.height||(E.height=G),this.style.width||(this.style.width=D),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}),D("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(M,E){for(var K=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}}),G=this.createTextShape(K.textStyle),H=this.createBackgroundShape(K.backgroundColor),J=K.effect,I=J.n,D=J.brushType,F=J.lineWidth,N=[],L=this.canvasWidth,_=this.canvasHeight,$=0;I>$;$++){var O="random"==J.color?B.alpha(B.random(),0.3):J.color;N[$]=new A({highlightStyle:{x:Math.ceil(Math.random()*L),y:Math.ceil(Math.random()*_),r:Math.ceil(40*Math.random()),brushType:D,color:O,strokeColor:O,lineWidth:F},animationY:Math.ceil(20*Math.random())})}return setInterval(function(){M(H);for(var A=0;I>A;A++){var $=N[A].highlightStyle;$.y-N[A].animationY+$.r<=0&&(N[A].highlightStyle.y=_+$.r,N[A].highlightStyle.x=Math.ceil(Math.random()*L)),N[A].highlightStyle.y-=N[A].animationY,M(N[A])}M(G),E()},J.timeInterval)},$}),D("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}}),D=this.createTextShape(H.textStyle),E=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?(_(E),F.highlightStyle.width=this.adjust(H.progress,[0,1])*H.effectOption.width,_(F),_(D),void $()):(F.highlightStyle.width=0,setInterval(function(){_(E),F.highlightStyle.width<G.width?F.highlightStyle.width+=8:F.highlightStyle.width=0,_(F),_(D),$()},G.timeInterval))},$}),D("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}}),G=this.createTextShape(L.textStyle),H=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()),Q=Math.ceil(400*Math.random()),J=Math.ceil(Math.random()*M),P="random"==K.color?B.random():K.color;F[_]=new A({highlightStyle:{xStart:$,yStart:J,xEnd:$+Q,yEnd:J,strokeColor:P,lineWidth:D},animationX:Math.ceil(100*Math.random()),len:Q})}return setInterval(function(){N(H);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(G),E()},K.timeInterval)},$}),D("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,U=B.lift($,0.1),K=new A({highlightStyle:D.clone(I)}),T=[],O=B.getGradientColors(["#ff6400","#ffe100","#97ff00"],25),V=15,G=240,R=0;16>R;R++)T.push(new C({highlightStyle:{x:H,y:S,r0:P,r:_,startAngle:G-V,endAngle:G,brushType:"fill",color:U},_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++)T.push(new C({highlightStyle:{x:H,y:S,r0:P,r:_,startAngle:G-V,endAngle:G,brushType:"fill",color:U},_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,K.highlightStyle.text=5*N+"%",Q(K);for(R=0;20>R;R++)T[R].highlightStyle.color=N>R?T[R]._color:U,Q(T[R]);return Q(J),void F()}return setInterval(function(){Q(E),N+=N>=20?-20:1,Q(K);for(var $=0;20>$;$++)T[$].highlightStyle.color=N>$?T[$]._color:U,Q(T[$]);Q(J),F()},I.timeInterval)},$}),D("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"),C=_("../shape/Droplet"),D=_("../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 C({highlightStyle:{a:Math.round(O.r/2),b:Math.round(O.r-O.r/6),brushType:"fill",color:O.colorWhirl}}),Q=new D({highlightStyle:{r:Math.round(O.r/6),brushType:"fill",color:O.colorIn}}),J=new A({highlightStyle:{r0:Math.round(O.r-O.r/3),r:O.r,brushType:"fill",color:O.colorOut}}),P=[0,O.x,O.y];return $.highlightStyle.x=Q.highlightStyle.x=J.highlightStyle.x=P[1],$.highlightStyle.y=Q.highlightStyle.y=J.highlightStyle.y=P[2],setInterval(function(){N(_),N(J),P[0]-=0.3,$.rotation=P,N($),N(Q),N(K),G()},O.timeInterval)},$}),D("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 $}),D("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 $}),D("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,U=H.y,K=H.r0,T=H.r,O=H.color,V=[],G=Math.round(180/_),R=0;_>R;R++)V[R]=new C({highlightStyle:{x:$,y:U,r0:K,r:T,startAngle:G*R*2,endAngle:G*R*2+G,color:B.alpha(O,(R+1)/_),brushType:"fill"}});var N=[0,$,U];return setInterval(function(){Q(P),N[0]-=0.3;for(var $=0;_>$;$++)V[$].rotation=N,Q(V[$]);Q(I),F()},H.timeInterval)},$}),D("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,D,E,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,P=0;A>P;P++){L.beginPath(),N=P*G,M=N+G,M=M>F?F:M;for(var H=N;M>H;H++)if(B.random&&(D=B["randomMap"+H%20]/100,K=O*D*D,_=K/2),C?(E=J[H][0],I=J[H][1]):(E=J[H].x,I=J[H].y),3>K)L.rect(E-_,I-_,K,K);else switch(B.iconType){case"circle":L.moveTo(E,I),L.arc(E,I,_,0,$,!0);break;case"diamond":L.moveTo(E,I-_),L.lineTo(E+_/3,I-_/3),L.lineTo(E+_,I),L.lineTo(E+_/3,I+_/3),L.lineTo(E,I+_),L.lineTo(E-_/3,I+_/3),L.lineTo(E-_,I),L.lineTo(E-_/3,I-_/3),L.lineTo(E,I-_);break;default:L.rect(E-_,I-_,K,K)}if(L.closePath(),A-1>P)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),$}),D("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"),D=$.getTextHeight("\u56fd",F.textFont),E=this.getRect(F),H=F.x;C="top"==F.textBaseline?E.y:"bottom"==F.textBaseline?E.y+D:E.y+D/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+=D}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}),D("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}),D("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}),D("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(),C=E.create(),D=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,E=J.r,F=J.startAngle,I=J.endAngle,H=J.clockWise||!1;F=$.degreeToRadian(F),I=$.degreeToRadian(I),H||(F=-F,I=-I);var _=$.cos(F),C=$.sin(F);A.moveTo(_*B+G,C*B+D),A.lineTo(_*E+G,C*E+D),A.arc(G,D,E,F,I,!H),A.lineTo($.cos(I)*B+G,$.sin(I)*B+D),0!==B&&A.arc(G,D,B,I,F,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,D):(A[0]=D[0]=K,A[1]=D[1]=M),H.arc(K,M,J,L,B,!_,C,G),E.min(A,A,C),E.max(D,D,G),I.__rect={x:A[0],y:A[1],width:D[0]-A[0],height:D[1]-A[1]},I.__rect}},_("../tool/util").inherits(F,B),F}),D("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}}),D("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}}),D("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),$}),D("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}),D("echarts/util/shape/Ribbon",["require","zrender/shape/Base","zrender/shape/util/PathProxy","zrender/tool/util","zrender/tool/area"],function(_){function $($){D.call(this,$),this._pathProxy=new C}var D=_("zrender/shape/Base"),C=_("zrender/shape/util/PathProxy"),B=_("zrender/tool/util"),A=_("zrender/tool/area");return $.prototype={type:"ribbon",buildPath:function(L,B){var J=B.clockWise||!1,F=this._pathProxy;F.begin(L);var N=B.x,M=B.y,D=B.r,E=B.source0/180*Math.PI,I=B.source1/180*Math.PI,G=B.target0/180*Math.PI,A=B.target1/180*Math.PI,C=N+Math.cos(E)*D,O=M+Math.sin(E)*D,K=N+Math.cos(I)*D,_=M+Math.sin(I)*D,$=N+Math.cos(G)*D,Q=M+Math.sin(G)*D,H=N+Math.cos(A)*D,P=M+Math.sin(A)*D;F.moveTo(C,O),F.arc(N,M,B.r,E,I,!J),F.bezierCurveTo(0.7*(N-K)+K,0.7*(M-_)+_,0.7*(N-$)+$,0.7*(M-Q)+Q,$,Q),(B.source0!==B.target0||B.source1!==B.target1)&&(F.arc(N,M,B.r,G,A,!J),F.bezierCurveTo(0.7*(N-H)+H,0.7*(M-P)+P,0.7*(N-C)+C,0.7*(M-O)+O,C,O))},getRect:function($){return $.__rect?$.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,$),this._pathProxy.fastBoundingRect())},isCover:function(_,$){var B=this.getRect(this.style);return _>=B.x&&_<=B.x+B.width&&$>=B.y&&$<=B.y+B.height?A.isInsidePath(this._pathProxy.pathCommands,0,"fill",_,$):void 0}},B.inherits($,D),$}),D("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,C=_.cpY2;"undefined"!=typeof A&&"undefined"!=typeof C&&($=Math.min($,A),F=Math.min(F,C),E=Math.max(E,A),B=Math.max(B,C));var D=_.lineWidth||1;return _.__rect={x:$-D,y:F-D,width:E-$+D,height:B-F+D},_.__rect}},_("../tool/util").inherits(A,$),A}),D("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,$}),D("echarts/data/Graph",["require","zrender/tool/util"],function(_){var $=_("zrender/tool/util"),C=function($){this._directed=$||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={}};C.prototype.isDirected=function(){return this._directed},C.prototype.addNode=function(_,$){if(this._nodesMap[_])return this._nodesMap[_];var A=new C.Node(_,$);return this.nodes.push(A),this._nodesMap[_]=A,A},C.prototype.getNodeById=function($){return this._nodesMap[$]},C.prototype.addEdge=function(_,$,D){if("string"==typeof _&&(_=this._nodesMap[_]),"string"==typeof $&&($=this._nodesMap[$]),_&&$){var B=_.id+"-"+$.id;if(this._edgesMap[B])return this._edgesMap[B];var A=new C.Edge(_,$,D);return this._directed&&(_.outEdges.push(A),$.inEdges.push(A)),_.edges.push(A),_!==$&&$.edges.push(A),this.edges.push(A),this._edgesMap[B]=A,A}},C.prototype.removeEdge=function(_){var C=_.node1,B=_.node2,A=C.id+"-"+B.id;this._directed&&(C.outEdges.splice($.indexOf(C.outEdges,_),1),B.inEdges.splice($.indexOf(B.inEdges,_),1)),C.edges.splice($.indexOf(C.edges,_),1),C!==B&&B.edges.splice($.indexOf(B.edges,_),1),delete this._edgesMap[A],this.edges.splice($.indexOf(this.edges,_),1)},C.prototype.getEdge=function(_,$){return"string"!=typeof _&&(_=_.id),"string"!=typeof $&&($=$.id),this._directed?this._edgesMap[_+"-"+$]:this._edgesMap[_+"-"+$]||this._edgesMap[$+"-"+_]},C.prototype.removeNode=function(_){if("string"!=typeof _||(_=this._nodesMap[_])){delete this._nodesMap[_.id],this.nodes.splice($.indexOf(this.nodes,_),1);for(var B=0;B<this.edges.length;){var A=this.edges[B];A.node1===_||A.node2===_?this.removeEdge(A):B++}}},C.prototype.filterNode=function(_,$){for(var B=this.nodes.length,A=0;B>A;)_.call($,this.nodes[A],A)?A++:(this.removeNode(this.nodes[A]),B--)},C.prototype.filterEdge=function(_,$){for(var B=this.edges.length,A=0;B>A;)_.call($,this.edges[A],A)?A++:(this.removeEdge(this.edges[A]),B--)},C.prototype.eachNode=function(_,$){for(var B=this.nodes.length,A=0;B>A;A++)this.nodes[A]&&_.call($,this.nodes[A],A)},C.prototype.eachEdge=function(_,$){for(var B=this.edges.length,A=0;B>A;A++)this.edges[A]&&_.call($,this.edges[A],A)},C.prototype.clear=function(){this.nodes.length=0,this.edges.length=0,this._nodesMap={},this._edgesMap={}},C.prototype.breadthFirstTraverse=function(A,_,I,F){if("string"==typeof _&&(_=this._nodesMap[_]),_){var C="edges";"out"===I?C="outEdges":"in"===I&&(C="inEdges");for(var B=0;B<this.nodes.length;B++)this.nodes[B].__visited=!1;if(!A.call(F,_,null))for(var D=[_];D.length;)for(var E=D.shift(),H=E[C],B=0;B<H.length;B++){var G=H[B],$=G.node1===E?G.node2:G.node1;if(!$.__visited){if(A.call($,$,E))return;D.push($),$.__visited=!0}}}},C.prototype.clone=function(){for(var _=new C(this._directed),$=0;$<this.nodes.length;$++)_.addNode(this.nodes[$].id,this.nodes[$].data);for($=0;$<this.edges.length;$++){var A=this.edges[$];_.addEdge(A.node1.id,A.node2.id,A.data)}return _};var B=function(_,$){this.id=_,this.data=$||null,this.inEdges=[],this.outEdges=[],this.edges=[]};B.prototype.degree=function(){return this.edges.length},B.prototype.inDegree=function(){return this.inEdges.length},B.prototype.outDegree=function(){return this.outEdges.length};var A=function(_,$,A){this.node1=_,this.node2=$,this.data=A||null};return C.Node=B,C.Edge=A,C.fromMatrix=function(I,_,E){if(_&&_.length&&_[0].length===_.length&&I.length===_.length){for(var K=_.length,J=new C(E),B=0;K>B;B++){var D=J.addNode(I[B].id,I[B]);D.data.value=0,E&&(D.data.outValue=D.data.inValue=0)}for(B=0;K>B;B++)for(var G=0;K>G;G++){var F=_[B][G];E&&(J.nodes[B].data.outValue+=F,J.nodes[G].data.inValue+=F),J.nodes[B].data.value+=F,J.nodes[G].data.value+=F}for(B=0;K>B;B++)for(G=B;K>G;G++){F=_[B][G];if(0!==F){var $=J.nodes[B],A=J.nodes[G],L=J.addEdge($,A,{});if(L.data.weight=F,B!==G&&E&&_[G][B]){var H=J.addEdge(A,$,{});H.data.weight=_[G][B]}}}return J}},C}),D("echarts/layout/Chord",["require"],function(){var _=function($){$=$||{},this.sort=$.sort||null,this.sortSub=$.sortSub||null,this.padding=0.05,this.startAngle=$.startAngle||0,this.clockWise=null==$.clockWise?!1:$.clockWise,this.center=$.center||[0,0],this.directed=!0};_.prototype.run=function(N){N instanceof Array||(N=[N]);var H=N.length;if(H){for(var P=N[0],O=P.nodes.length,F=[],G=0,K=0;O>K;K++){var I=P.nodes[K],C={size:0,subGroups:[],node:I};F.push(C);for(var E=0,R=0;R<N.length;R++){var M=N[R],B=M.getNodeById(I.id);if(B){C.size+=B.layout.size;for(var _=this.directed?B.outEdges:B.edges,T=0;T<_.length;T++){var J=_[T],S=J.layout.weight;C.subGroups.push({weight:S,edge:J,graph:M}),E+=S}}}G+=C.size;for(var L=C.size/E,T=0;T<C.subGroups.length;T++)C.subGroups[T].weight*=L;"ascending"===this.sortSub?C.subGroups.sort($):"descending"===this.sort&&(C.subGroups.sort($),C.subGroups.reverse())}"ascending"===this.sort?F.sort(A):"descending"===this.sort&&(F.sort(A),F.reverse());for(var L=(2*Math.PI-this.padding*O)/G,U=this.startAngle,D=this.clockWise?1:-1,K=0;O>K;K++){C=F[K];C.node.layout.startAngle=U,C.node.layout.endAngle=U+D*C.size*L,C.node.layout.subGroups=[];for(T=0;T<C.subGroups.length;T++){var Q=C.subGroups[T];Q.edge.layout.startAngle=U,U+=D*Q.weight*L,Q.edge.layout.endAngle=U}U=C.node.layout.endAngle+D*this.padding}}};var $=function(_,$){return _.weight-$.weight},A=function(_,$){return _.size-$.size};return _}),D("echarts/layout/Force",["require","./forceLayoutWorker","zrender/tool/vector"],function(_){function $(){if("undefined"!=typeof Worker&&"undefined"!=typeof Blob){try{var _=new Blob([E.getWorkerCode()]);F=window.URL.createObjectURL(_)}catch($){F=""}}return F}var F,E=_("./forceLayoutWorker"),B=_("zrender/tool/vector"),A=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function($){setTimeout($,16)},C="undefined"==typeof Float32Array?Array:Float32Array,D=function(_){"undefined"==typeof F&&$(),_=_||{},this.width=_.width||500,this.height=_.height||500,this.center=_.center||[this.width/2,this.height/2],this.ratioScaling=_.ratioScaling||!1,this.scaling=_.scaling||1,this.gravity="undefined"!=typeof _.gravity?_.gravity:1,this.large=_.large||!1,this.preventNodeOverlap=_.preventNodeOverlap||!1,this.preventNodeEdgeOverlap=_.preventNodeEdgeOverlap||!1,this.maxSpeedIncrease=_.maxSpeedIncrease||1,this.onupdate=_.onupdate||function(){},this.temperature=_.temperature||1,this.coolDown=_.coolDown||0.99,this._layout=null,this._layoutWorker=null;var B=this,A=this._$onupdate;this._$onupdate=function($){A.call(B,$)}};return D.prototype.updateConfig=function(){var _=this.width,$=this.height,C=Math.min(_,$),B={center:this.center,width:this.ratioScaling?_:C,height:this.ratioScaling?$:C,scaling:this.scaling||1,gravity:this.gravity||1,barnesHutOptimize:this.large,preventNodeOverlap:this.preventNodeOverlap,preventNodeEdgeOverlap:this.preventNodeEdgeOverlap,maxSpeedIncrease:this.maxSpeedIncrease};if(this._layoutWorker)this._layoutWorker.postMessage({cmd:"updateConfig",config:B});else for(var A in B)this._layout[A]=B[A]},D.prototype.init=function(J,A){if(this._layoutWorker&&(this._layoutWorker.terminate(),this._layoutWorker=null),F&&A){try{this._layoutWorker||(this._layoutWorker=new Worker(F),this._layoutWorker.onmessage=this._$onupdate),this._layout=null}catch(L){this._layoutWorker=null,this._layout||(this._layout=new E)}}else this._layout||(this._layout=new E);this.temperature=1,this.graph=J;for(var K=J.nodes.length,D=new C(2*K),H=new C(K),G=new C(K),_=0;K>_;_++){var B=J.nodes[_];D[2*_]=B.layout.position[0],D[2*_+1]=B.layout.position[1],H[_]="undefined"==typeof B.layout.mass?1:B.layout.mass,G[_]="undefined"==typeof B.layout.size?1:B.layout.size,B.layout.__index=_}K=J.edges.length;for(var M=new C(2*K),I=new C(K),_=0;K>_;_++){var $=J.edges[_];M[2*_]=$.node1.layout.__index,M[2*_+1]=$.node2.layout.__index,I[_]=$.layout.weight||1}this._layoutWorker?this._layoutWorker.postMessage({cmd:"init",nodesPosition:D,nodesMass:H,nodesSize:G,edges:M,edgesWeight:I}):(this._layout.initNodes(D,H,G),this._layout.initEdges(M,I)),this.updateConfig()},D.prototype.step=function(_){var $=this.graph.nodes;if(this._layoutWorker){for(var F=new C(2*$.length),E=0;E<$.length;E++){var D=$[E];F[2*E]=D.layout.position[0],F[2*E+1]=D.layout.position[1]}this._layoutWorker.postMessage(F.buffer,[F.buffer]),this._layoutWorker.postMessage({cmd:"update",steps:_,temperature:this.temperature,coolDown:this.coolDown});for(E=0;_>E;E++)this.temperature*=this.coolDown}else{A(this._$onupdate);for(E=0;E<$.length;E++){D=$[E];B.copy(this._layout.nodes[E].position,D.layout.position)}for(E=0;_>E;E++)this._layout.temperature=this.temperature,this._layout.update(),this.temperature*=this.coolDown}},D.prototype._$onupdate=function(_){if(this._layoutWorker){for(var $=new Float32Array(_.data),C=0;C<this.graph.nodes.length;C++){var A=this.graph.nodes[C];A.layout.position[0]=$[2*C],A.layout.position[1]=$[2*C+1]}this.onupdate&&this.onupdate()}else if(this._layout){for(C=0;C<this.graph.nodes.length;C++){A=this.graph.nodes[C];B.copy(A.layout.position,this._layout.nodes[C].position)}this.onupdate&&this.onupdate()}},D.prototype.dispose=function(){this._layoutWorker&&this._layoutWorker.terminate(),this._layoutWorker=null,this._layout=null},D}),D("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"),D=A("zrender/shape/Circle"),E=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,D=2*Math.PI/C,E=this._getRadius(),H=I.__ecIndicator=[],G=0;C>G;G++)_=$.polar2cartesian(E,B*Math.PI/180+D*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),D=_.splitNumber,E=C.lineStyle.color,H=C.lineStyle.width,G=C.show,$=this.deepQuery(this._queryTarget,"axisLine");this._addArea(I,D,B,F,E,H,G),$.show&&this._addLine(I,B,$)},_addAxisLabel:function(C){for(var L,P,O,H,P,I,K,B,E,R,N=A("../util/accMath"),_=this.polar[C],$=this.deepQuery(this._queryTarget,"indicator"),T=_.__ecIndicator,J=this.deepQuery(this._queryTarget,"splitNumber"),S=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=T[M].vector,I=T[M].value,B=M/$.length*2*Math.PI,E=L.offset||10,R=L.interval||0,!I)return;for(var Q=1;J>=Q;Q+=R+1)H=G.merge({},O),K=N.accAdd(I.min,N.accMul(I.step,Q)),K="function"==typeof D?D(K):"string"==typeof D?D.replace("{a}","{a0}").replace("{a0}",K):this.numAddCommas(K),H.text=K,H.x=Q*P[0]/J+Math.cos(B)*E+S[0],H.y=Q*P[1]/J+Math.sin(B)*E+S[1],this.shapeList.push(new F({zlevel:this.getZlevelBase(),z:this.getZBase(),style:H,draggable:!1,hoverable:!1}))}},_buildText:function(K){for(var B,I,M,L,D,E,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):(E=L.margin,J=B[0]>0?E:-E,_=B[1]>0?E:-E,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]+_,D=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:D})))},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,C=A.length,D=[],G=E.type;if("polygon"==G){for(var F=0;C>F;F++)$=A[F].vector,D.push(this._mapVector($,B,1.2));H=this._getShape(D,"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,B){for(var C,F,E,$,A=this.deepQuery(this._queryTarget,"type"),K=0;_>K;K++)F=(_-K)/_,B&&("polygon"==A?($=this._getPointList(H,F,G),C=this._getShape($,"stroke","",J,I)):"circle"==A&&(C=this._getCircle(J,I,F,G,"stroke")),this.shapeList.push(C)),D.show&&(E=(_-K-1)/_,this._addSplitArea(H,D,F,E,G,K))},_getCircle:function(_,$,F,E,B,A){var C=this._getRadius();return new D({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:E[0],y:E[1],r:C*F,brushType:B,strokeColor:_,lineWidth:$,color:A},hoverable:!1,draggable:!1})},_getRing:function(_,$,C,B){var A=this._getRadius();return new E({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 D,E,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]),E=N.length,D=N[L%E],"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",D,"",1),this.shapeList.push(A)}else"circle"==_&&(A=this._getRing(D,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,D=I.lineStyle,E=D.color,H=D.width,G=D.type,$=0;B>$;$++)C=A[$].vector,F=this._getLine(_[0],_[1],C[0]+_[0],C[1]+_[1],E,H,G),this.shapeList.push(F)},_getLine:function(_,$,F,E,A,B,D){return new C({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:_,yStart:$,xEnd:F,yEnd:E,strokeColor:A,lineWidth:B,lineType:D},hoverable:!1})},_adjustIndicatorValue:function(C){for(var J,G,M,L=this.polar[C],E=this.deepQuery(this._queryTarget,"indicator"),F=E.length,I=L.__ecIndicator,H=this._getSeriesData(C),B=L.boundaryGap,D=L.splitNumber,N=L.scale,K=A("../util/smartSteps"),_=0;F>_;_++){if("number"==typeof E[_].max)J=E[_].max,G=E[_].min||0,M={max:J,min:G};else{var $=this._findValue(H,_,D,B);G=$.min,J=$.max}!N&&G>=0&&J>=0&&(G=0),!N&&0>=G&&0>=J&&(J=0);var O=K(G,J,D,M);I[_].value={min:O.min,max:O.max,step:O.step}}},_getSeriesData:function(_){for(var $,F,E,B=[],A=this.component.legend,C=0;C<this.series.length;C++)if($=this.series[C],$.type==H.CHART_TYPE_RADAR){F=$.data||[];for(var D=0;D<F.length;D++)E=this.deepQuery([F[D],$,this.option],"polarIndex")||0,E!=_||A&&!A.isSelected(F[D].name)||B.push(F[D])}return B},_findValue:function(_,$,H,E){function B($){($>A||void 0===A)&&(A=$),(C>$||void 0===C)&&(C=$)}var A,C,D;if(_&&0!==_.length){if(1==_.length&&(C=0),1!=_.length){for(var G=0;G<_.length;G++)B(this.getDataFromOption(_[G].value[$]))}else{D=_[0];for(G=0;G<D.value.length;G++)B(this.getDataFromOption(D.value[G]))}var F=Math.abs(A-C);return C-=Math.abs(F*E[0]),A+=Math.abs(F*E[1]),C===A&&(0===A?A=1:A>0?C=A/H:A/=H),{max:A,min:C}}},getVector:function(_,$,H){_=_||0,$=$||0;var E=this.polar[_].__ecIndicator;if(!($>=E.length)){var B,A=this.polar[_].__ecIndicator[$],C=this.getCenter(_),D=A.vector,G=A.value.max,F=A.value.min;if("undefined"==typeof H)return C;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(D,C,B)}},isInside:function(_){var $=this.getNearestIndex(_);return $?$.polarIndex:-1},getNearestIndex:function(A){for(var _,J,G,D,B,E,F,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,E=_.indicator,F=E.length,I=2*Math.PI/F,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)%F}}},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",_),_}),D("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),$}),D("echarts/layout/eventRiver",["require"],function(){function _(O,L,P){function G(_,$){var B=_.importance,A=$.importance;return B>A?-1:A>B?1:0}for(var H=4,K=0;K<O.length;K++){for(var I=0;I<O[K].data.length;I++){null==O[K].data[I].weight&&(O[K].data[I].weight=1);for(var D=0,F=0;F<O[K].data[I].evolution.length;F++)D+=O[K].data[I].evolution[F].valueScale;O[K].data[I].importance=D*O[K].data[I].weight}O[K].data.sort(G)}for(K=0;K<O.length;K++){null==O[K].weight&&(O[K].weight=1);for(D=0,I=0;I<O[K].data.length;I++)D+=O[K].data[I].weight;O[K].importance=D*O[K].weight}O.sort(G);for(var R=Number.MAX_VALUE,N=0,K=0;K<O.length;K++)for(I=0;I<O[K].data.length;I++)for(F=0;F<O[K].data[I].evolution.length;F++){var C=O[K].data[I].evolution[F].timeScale;R=Math.min(R,C),N=Math.max(N,C)}R=~~R,N=~~N;for(var _=function(){var _=N-R+1+~~L;if(0>=_)return[0];for(var $=[];_--;)$.push(0);return $}(),T=_.slice(0),J=[],S=0,M=0,K=0;K<O.length;K++)for(I=0;I<O[K].data.length;I++){var U=O[K].data[I];U.time=[],U.value=[];for(var E,Q=0,F=0;F<O[K].data[I].evolution.length;F++)E=O[K].data[I].evolution[F],U.time.push(E.timeScale),U.value.push(E.valueScale),Q=Math.max(Q,E.valueScale);B(U,L,R),U.y=A(T,U,function(_,$){return _.ypx[$]}),U._offset=A(_,U,function(){return H}),S=Math.max(S,U.y+Q),M=Math.max(M,U._offset),J.push(U)}$(J,P,S,M)}function $(I,_,G,D){for(var K=_.height,J=D/K>0.5?0.5:1,B=_.y,C=(_.height-D)/G,F=0,E=I.length;E>F;F++){var $=I[F];$.y=B+C*$.y+$._offset*J,delete $.time,delete $.value,delete $.xpx,delete $.ypx,delete $._offset;for(var A=$.evolution,L=0,H=A.length;H>L;L++)A[L].valueScale*=C}}function C(_,$,D,C){if(_===D)throw new Error("x0 is equal with x1!!!");if($===C)return function(){return $};var B=($-C)/(_-D),A=(C*_-$*D)/(_-D);return function($){return B*$+A}}function B(H,_,E){var J=~~_,I=H.time.length;H.xpx=[],H.ypx=[];for(var B,D=0,G=0,F=0,$=0,A=0;I>D;D++){G=~~H.time[D],$=H.value[D]/2,D===I-1?(F=G+J,A=0):(F=~~H.time[D+1],A=H.value[D+1]/2),B=C(G,$,F,A);for(var K=G;F>K;K++)H.xpx.push(K-E),H.ypx.push(B(K))}H.xpx.push(F-E),H.ypx.push(A)}function A(_,$,E){for(var D,B=0,A=$.xpx.length,C=0;A>C;C++)D=E($,C),B=Math.max(B,D+_[$.xpx[C]]);for(C=0;A>C;C++)D=E($,C),_[$.xpx[C]]=B+D;return B}return _}),D("echarts/util/date",[],function(){function A(A,_,H){H=H>1?H:2;for(var F,C,B,D,E=0,G=$.length;G>E;E++)if(F=$[E].value,C=Math.ceil(_/F)*F-Math.floor(A/F)*F,Math.round(C/F)<=1.2*H){B=$[E].formatter,D=$[E].value;break}return null==B&&(B="year",F=31708800000,C=Math.ceil(_/F)*F-Math.floor(A/F)*F,D=Math.round(C/(H-1)/F)*F),{formatter:B,gapValue:D}}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,D=F.getDate(),E=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",_(D)),A=A.replace("d",D),A=A.replace("hh",_(E)),A=A.replace("h",E),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 D(_,$){return C(_,$,3)}function E(_,$){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:D,nextNthOnHalfYear:E,nextNthOnYear:H}}),D("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 I=C(F,A.smooth,!0,A.smoothConstraint);E.moveTo(F[0][0],F[0][1]);for(var J,L,K,_=F.length,G=0;_>G;G++)J=I[2*G],L=I[2*G+1],K=F[(G+1)%_],E.bezierCurveTo(J[0],J[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,C=0,D=A.length;D>C;C++)A[C][0]<$&&($=A[C][0]),A[C][0]>G&&(G=A[C][0]),A[C][1]<E&&(E=A[C][1]),A[C][1]>B&&(B=A[C][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}),D("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}}),D("zrender/tool/area",["require","./util","./curve"],function(a){"use strict";function M($){return $%=E,0>$&&($+=E),$}function W(_,$,F,B){if(!$||!_)return!1;var C=_.type;e=e||A.getContext();var D=R(_,$,F,B);if("undefined"!=typeof D)return D;if(_.buildPath&&e.isPointInPath)return c(_,e,$,F,B);switch(C){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):Q($.xStart,$.yStart,$.cpX1,$.cpY1,$.cpX2,$.cpY2,$.xEnd,$.yEnd,$.lineWidth,F,C);case"line":return P($.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 P(H,_,G,D,J,I,B){if(0===J)return!1;var C=Math.max(J,5),F=0,E=H;if(B>_+C&&B>D+C||_-C>B&&D-C>B||I>H+C&&I>G+C||H-C>I&&G-C>I)return!1;if(H===G)return Math.abs(I-H)<=C/2;F=(_-D)/(H-G),E=(H*D-G*_)/(H-G);var $=F*I-B+E,A=$*$/(F*F+1);return C/2*C/2>=A}function Q(H,_,G,D,J,I,B,C,F,E,$){if(0===F)return!1;var A=Math.max(F,5);if($>_+A&&$>D+A&&$>I+A&&$>C+A||_-A>$&&D-A>$&&I-A>$&&C-A>$||E>H+A&&E>G+A&&E>J+A&&E>B+A||H-A>E&&G-A>E&&J-A>E&&B-A>E)return!1;var K=X.cubicProjectPoint(H,_,G,D,J,I,B,C,E,$,null);return A/2>=K}function V(A,_,I,F,C,B,D,E,H){if(0===D)return!1;var G=Math.max(D,5);if(H>_+G&&H>F+G&&H>B+G||_-G>H&&F-G>H&&B-G>H||E>A+G&&E>I+G&&E>C+G||A-G>E&&I-G>E&&C-G>E)return!1;var $=X.quadraticProjectPoint(A,_,I,F,C,B,E,H,null);return G/2>=$}function S(I,G,C,K,J,A,B,F,D){if(0===B)return!1;var $=Math.max(B,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(A){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(P(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,C,D,F){return S(_,$,(G+E)/2,B,A,C,E-G,D,F)}function J(A,_,I){for(var F=A.length,C=0,B=0,D=F-1;F>B;B++){var E=A[D][0],H=A[D][1],G=A[B][0],$=A[B][1];C+=f(E,H,G,$,_,I),D=B}return 0!==C}function f(_,$,G,E,B,A){if(A>$&&A>E||$>A&&E>A)return 0;if(E==$)return 0;var C=$>E?1:-1,D=(A-$)/(E-$),F=D*(G-_)+_;return F>B?C:0}function T(){var $=G[0];G[0]=G[1],G[1]=$}function I(M,B,K,H,O,N,E,F,J,I){if(I>B&&I>H&&I>N&&I>F||B>I&&H>I&&N>I&&F>I)return 0;var A=X.cubicRootAt(B,H,N,F,I,D);if(0===A)return 0;for(var C,P,L=0,_=-1,$=0;A>$;$++){var R=D[$],Q=X.cubicAt(M,K,O,E,R);J>Q||(0>_&&(_=X.cubicExtrema(B,H,N,F,G),G[1]<G[0]&&_>1&&T(),C=X.cubicAt(B,H,N,F,G[0]),_>1&&(P=X.cubicAt(B,H,N,F,G[1]))),L+=2==_?R<G[0]?B>C?1:-1:R<G[1]?C>P?1:-1:P>F?1:-1:R<G[0]?B>C?1:-1:C>F?1:-1)}return L}function Y(J,_,H,E,L,K,B,C){if(C>_&&C>E&&C>K||_>C&&E>C&&K>C)return 0;var G=X.quadraticRootAt(_,E,K,C,D);if(0===G)return 0;var F=X.quadraticExtremum(_,E,K);if(F>=0&&1>=F){for(var $=0,A=X.quadraticAt(_,E,K,F),M=0;G>M;M++){var I=X.quadraticAt(J,H,L,D[M]);B>I||($+=D[M]<F?_>A?1:-1:A>K?1:-1)}return $}I=X.quadraticAt(J,H,L,D[0]);return B>I?0:_>K?1:-1}function g(K,I,F,N,L,B,C,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 _=B?1:-1;return C>=D[0]+K&&C<=D[1]+K?_:0}if(B){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>C){var $=Math.atan2(H,J),_=B?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,H=!0;U=U||"fill";for(var R="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+=f(K,N,c,X,O,b)),0!==a))return!0;c=d[d.length-2],X=d[d.length-1],J=!1,H&&"A"!==F.command&&(H=!1,K=c,N=X)}switch(F.command){case"M":K=d[0],N=d[1];break;case"L":if(R&&P(K,N,d[0],d[1],L,O,b))return!0;M&&(a+=f(K,N,d[0],d[1],O,b)),K=d[0],N=d[1];break;case"C":if(R&&Q(K,N,d[0],d[1],d[2],d[3],d[4],d[5],L,O,b))return!0;M&&(a+=I(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(R&&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],W=d[1],B=d[2],C=d[3],_=d[4],$=d[5],T=Math.cos(_)*B+A,E=Math.sin(_)*C+W;H?(H=!1,c=T,X=E):a+=f(K,N,T,E);var D=(O-A)*C/B+A;if(R&&S(A,W,C,_,_+$,1-d[7],L,D,b))return!0;M&&(a+=g(A,W,C,_,_+$,1-d[7],D,b)),K=Math.cos(_+$)*B+A,N=Math.sin(_+$)*C+W;break;case"z":if(R&&P(K,N,c,X,L,O,b))return!0;J=!0}}return M&&(a+=f(K,N,c,X,O,b)),0!==a}function H(C,$){var G=C+":"+$;if(B[G])return B[G];e=e||A.getContext(),e.save(),$&&(e.font=$),C=(C+"").split("\n");for(var F=0,E=0,D=C.length;D>E;E++)F=Math.max(e.measureText(C[E]).width,F);return e.restore(),B[G]=F,++_>U&&(_=0,B={}),F}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"),X=a("./curve"),B={},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:P,isInsideRect:d,isInsidePolyline:L,isInsideCubicStroke:Q,isInsideQuadraticStroke:V}}),D("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 B=this._getShapeListInAbstractRow(H,J,I),C=0;C<B.length;C++){B[C].x=0,B[C].y=0;for(var F=0;C>F;F++)B[C].y+=B[F].height}var E={};if("VERTICAL"==D){for(var $=0;$<B.length;$++)G.push({x:B[$].x+_.x,y:B[$].y+_.y,width:B[$].width,height:B[$].height});E={x:B[0].width+_.x,y:_.y,width:_.width-B[0].width,height:_.height}}else{for(var A=0;A<B.length;A++)G.push({x:B[A].y+_.x,y:B[A].x+_.y,width:B[A].height,height:B[A].width});E={x:_.x,y:_.y+B[0].width,width:_.width,height:_.height-B[0].width}}var K=H.slice(B.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,C=0;C<_.length;C++)A+=_[C];for(var D=A/H,G=0;E>G;G++){var F=H*_[G]/A;B.push({width:D,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},$}),D("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(_),D=A.root;D.data={name:_,children:F};for(var E=0;E<F.length;E++)C(F[E],D);return A.root.updateDepthAndHeight(0),A},B.fromGraph=function(A){function G($){for(var E=A.getNodeById($.id),_=0;_<E.outEdges.length;_++){var B=E.outEdges[_],D=C[B.node2.id];$.children.push(D),G(D)}}for(var D={},C={},E=0;E<A.nodes.length;E++){var F,I=A.nodes[E];0===I.inDegree()?(D[I.id]=new B(I.id),F=D[I.id].root):F=new $(I.id),F.data=I.data,C[I.id]=F}var H=[];for(var _ in D)G(D[_].root),D[_].root.updateDepthAndHeight(0),H.push(D[_]);return H},B}),D("echarts/layout/Tree",["require","zrender/tool/vector"],function(_){function $($){$=$||{},this.nodePadding=$.nodePadding||30,this.layerPadding=$.layerPadding||100,this._layerOffsets=[],this._layers=[]}var A=_("zrender/tool/vector");return $.prototype.run=function(_){this._layerOffsets.length=0;for(var $=0;$<_.root.height+1;$++)this._layerOffsets[$]=0,this._layers[$]=[];this._updateNodeXPosition(_.root);var A=_.root;this._updateNodeYPosition(A,0,A.layout.height)},$.prototype._updateNodeXPosition=function(_){var $=1/0,F=-1/0;_.layout.position=_.layout.position||A.create();for(var C=0;C<_.children.length;C++){var B=_.children[C];this._updateNodeXPosition(B);var D=B.layout.position[0];$>D&&($=D),D>F&&(F=D)}_.layout.position[0]=_.children.length>0?($+F)/2:0;var E=this._layerOffsets[_.depth]||0;if(E>_.layout.position[0]){var G=E-_.layout.position[0];this._shiftSubtree(_,G);for(C=_.depth+1;C<_.height+_.depth;C++)this._layerOffsets[C]+=G}this._layerOffsets[_.depth]=_.layout.position[0]+_.layout.width+this.nodePadding,this._layers[_.depth].push(_)},$.prototype._shiftSubtree=function(_,$){_.layout.position[0]+=$;for(var A=0;A<_.children.length;A++)this._shiftSubtree(_.children[A],$)},$.prototype._updateNodeYPosition=function(_,$,D){_.layout.position[1]=$;for(var C=0,B=0;B<_.children.length;B++)C=Math.max(_.children[B].layout.height,C);var A=this.layerPadding;"function"==typeof A&&(A=A(_.depth));for(B=0;B<_.children.length;B++)this._updateNodeYPosition(_.children[B],$+A+D,C)},$}),D("echarts/layout/WordCloud",["require","../layout/WordCloudRectZero","zrender/tool/util"],function(_){function $($){this._init($)}var B=_("../layout/WordCloudRectZero"),A=_("zrender/tool/util");return $.prototype={start:function(){function K(){_.totalArea=E,N.autoSizeCal.enable&&_._autoCalTextSize(A,E,M,L,N.autoSizeCal.minSize),D.timer&&clearInterval(D.timer),D.timer=setInterval(C,0),C()}function C(){for(var B,$=+new Date,C=A.length;+new Date-$<D.timeInterval&&++F<C&&D.timer;)B=A[F],B.x=J[0]>>1,B.y=J[1]>>1,_._cloudSprite(B,A,F),B.hasText&&_._place(G,B,H)&&(I.push(B),B.x-=J[0]>>1,B.y-=J[1]>>1);F>=C&&(_.stop(),_._fixTagPosition(I),D.endcallback(I))}var G=null,M=0,L=0,E=0,F=-1,I=[],H=null,A=this.wordsdata,D=this.defaultOption,N=D.wordletype,J=D.size,_=this,$=new B({type:N.type,width:J[0],height:J[1]});return $.calculate(function($){G=$.initarr,M=$.maxWit,L=$.maxHit,E=$.area,H=$.imgboard,K()},this),this},_fixTagPosition:function(_){for(var $=this.defaultOption.center,B=0,A=_.length;A>B;B++)_[B].x+=$[0],_[B].y+=$[1]},stop:function(){return this.defaultOption.timer&&(clearInterval(this.defaultOption.timer),this.defaultOption.timer=null),this},end:function($){return $&&(this.defaultOption.endcallback=$),this},_init:function($){this.defaultOption={},this._initProperty($),this._initMethod($),this._initCanvas(),this._initData($.data)},_initData:function(_){var $=this,A=$.defaultOption;this.wordsdata=_.map(function(_,B){return _.text=A.text.call($,_,B),_.font=A.font.call($,_,B),_.style=A.fontStyle.call($,_,B),_.weight=A.fontWeight.call($,_,B),_.rotate=A.rotate.call($,_,B),_.size=~~A.fontSize.call($,_,B),_.padding=A.padding.call($,_,B),_}).sort(function(_,$){return $.value-_.value})},_initMethod:function(A){function _($){return $.name}function J(){return"sans-serif"}function G(){return"normal"}function C($){return $.value}function B(){return 0}function E($){return function(){return $[Math.round(Math.random()*($.length-1))]}}function F(){return 0}function I(_){var $=_[0]/_[1];return function(_){return[$*(_*=0.1)*Math.cos(_),_*Math.sin(_)]}}function H(_){var $=4,C=$*_[0]/_[1],B=0,A=0;return function(_){var D=0>_?-1:1;switch(Math.sqrt(1+4*D*_)-D&3){case 0:B+=C;break;case 1:A+=$;break;case 2:B-=C;break;default:A-=$}return[B,A]}}function $($){return"function"==typeof $?$:function(){return $}}var D=this.defaultOption;D.text=A.text?$(A.text):_,D.font=A.font?$(A.font):J,D.fontSize=A.fontSize?$(A.fontSize):C,D.fontStyle=A.fontStyle?$(A.fontStyle):G,D.fontWeight=A.fontWeight?$(A.fontWeight):G,D.rotate=A.rotate?E(A.rotate):B,D.padding=A.padding?$(A.padding):F,D.center=A.center,D.spiral=I,D.endcallback=function(){},D.rectangularSpiral=H,D.archimedeanSpiral=I},_initProperty:function(_){var $=this.defaultOption;$.size=_.size||[256,256],$.wordletype=_.wordletype,$.words=_.words||[],$.timeInterval=1/0,$.timer=null,$.spirals={archimedean:$.archimedeanSpiral,rectangular:$.rectangularSpiral},A.merge($,{size:[256,256],wordletype:{type:"RECT",areaPresent:0.058,autoSizeCal:{enable:!0,minSize:12}}})},_initCanvas:function(){var _,$=Math.PI/180,D=64,C=2048,B=1;"undefined"!=typeof document?(_=document.createElement("canvas"),_.width=1,_.height=1,B=Math.sqrt(_.getContext("2d").getImageData(0,0,1,1).data.length>>2),_.width=(D<<5)/B,_.height=C/B):_=new Canvas(D<<5,C);var A=_.getContext("2d");A.fillStyle=A.strokeStyle="red",A.textAlign="center",this.defaultOption.c=A,this.defaultOption.cw=D,this.defaultOption.ch=C,this.defaultOption.ratio=B,this.defaultOption.cloudRadians=$},_cloudSprite:function(U,H,Q){if(!U.sprite){var M=this.defaultOption.cw,W=this.defaultOption.ch,V=this.defaultOption.c,K=this.defaultOption.ratio,L=this.defaultOption.cloudRadians;V.clearRect(0,0,(M<<5)/K,W/K);var P=0,N=0,G=0,J=H.length;for(--Q;++Q<J;){U=H[Q],V.save(),V.font=U.style+" "+U.weight+" "+~~((U.size+1)/K)+"px "+U.font;var X=V.measureText(U.text+"m").width*K,T=U.size<<1;if(U.rotate){var F=Math.sin(U.rotate*L),E=Math.cos(U.rotate*L),Z=X*E,O=X*F,D=T*E,S=T*F;X=Math.max(Math.abs(Z+S),Math.abs(Z-S))+31>>5<<5,T=~~Math.max(Math.abs(O+D),Math.abs(O-D))}else X=X+31>>5<<5;if(T>G&&(G=T),P+X>=M<<5&&(P=0,N+=G,G=0),N+T>=W)break;V.translate((P+(X>>1))/K,(N+(T>>1))/K),U.rotate&&V.rotate(U.rotate*L),V.fillText(U.text,0,0),U.padding&&(V.lineWidth=2*U.padding,V.strokeText(U.text,0,0)),V.restore(),U.width=X,U.height=T,U.xoff=P,U.yoff=N,U.x1=X>>1,U.y1=T>>1,U.x0=-U.x1,U.y0=-U.y1,U.hasText=!0,P+=X}for(var a=V.getImageData(0,0,(M<<5)/K,W/K).data,I=[];--Q>=0;)if(U=H[Q],U.hasText){for(var X=U.width,C=X>>5,T=U.y1-U.y0,B=0;T*C>B;B++)I[B]=0;if(P=U.xoff,null==P)return;N=U.yoff;for(var Y=0,$=-1,R=0;T>R;R++){for(B=0;X>B;B++){var _=C*R+(B>>5),A=a[(N+R)*(M<<5)+(P+B)<<2]?1<<31-B%32:0;I[_]|=A,Y|=A}Y?$=R:(U.y0++,T--,R--,N++)}U.y1=U.y0+$,U.sprite=I.slice(0,(U.y1-U.y0)*C)}}},_place:function(R,F,O){function K(H,_,G){G>>=5;for(var D,J=H.sprite,I=H.width>>5,B=H.x-(I<<4),C=127&B,F=32-C,E=H.y1-H.y0,$=(H.y+H.y0)*G+(B>>5),A=0;E>A;A++){D=0;for(var K=0;I>=K;K++)if((D<<F|(I>K?(D=J[A*I+K])>>>C:0))&_[$+K])return!0;$+=G}return!1}function T(_,$){return $.row[_.y]&&$.cloumn[_.x]&&_.x>=$.row[_.y].start&&_.x<=$.row[_.y].end&&_.y>=$.cloumn[_.x].start&&_.y<=$.cloumn[_.x].end}for(var S,I,J,N=this.defaultOption.size,L=([{x:0,y:0},{x:N[0],y:N[1]}],F.x),E=F.y,H=Math.sqrt(N[0]*N[0]+N[1]*N[1]),U=this.defaultOption.spiral(N),Q=Math.random()<0.5?1:-1,D=-Q;(S=U(D+=Q))&&(I=~~S[0],J=~~S[1],!(Math.min(I,J)>H));)if(F.x=L+I,F.y=E+J,!(F.x+F.x0<0||F.y+F.y0<0||F.x+F.x1>N[0]||F.y+F.y1>N[1])&&!K(F,R,N[0])&&T(F,O)){for(var C,W=F.sprite,M=F.width>>5,B=N[0]>>5,P=F.x-(M<<4),X=127&P,G=32-X,A=F.y1-F.y0,_=(F.y+F.y0)*B+(P>>5),V=0;A>V;V++){C=0;for(var $=0;M>=$;$++)R[_+$]|=C<<G|(M>$?(C=W[V*M+$])>>>X:0);_+=B}return delete F.sprite,!0}return!1},_autoCalTextSize:function(L,B,J,F,N){function M(D){$.clearRect(0,0,(K<<5)/P,_/P),$.save(),$.font=D.style+" "+D.weight+" "+~~((D.size+1)/P)+"px "+D.font;var C=$.measureText(D.text+"m").width*P,I=D.size<<1;C=C+31>>5<<5,$.restore(),D.aw=C,D.ah=I;var L,S,R;if(D.rotate){var B=Math.sin(D.rotate*H),G=Math.cos(D.rotate*H),Q=C*G,A=C*B,T=I*G,E=I*B;S=Math.max(Math.abs(Q+E),Math.abs(Q-E))+31>>5<<5,R=~~Math.max(Math.abs(A+T),Math.abs(A-T))}return D.size<=O||D.rotate&&C*I<=D.area&&J>=S&&F>=R||C*I<=D.area&&J>=C&&F>=I?void(D.area=C*I):(L=D.rotate&&S>J&&R>F?Math.min(J/S,F/R):C>J||I>F?Math.min(J/C,F/I):Math.sqrt(D.area/(D.aw*D.ah)),D.size=~~(L*D.size),D.size<N?void(D.size=N):M(D))}function D(_,$){for(var B=_.length,A=0;B--;)A+=$(_[B]);return A}for(var E,I,G=D(L,function($){return $.size}),A=L.length,C=0.25,O=N,K=this.defaultOption.cw,_=this.defaultOption.ch,$=this.defaultOption.c,P=this.defaultOption.ratio,H=this.defaultOption.cloudRadians;A--;)E=L[A],I=E.size/G,E.areapre=C?C>I?I:C:I,E.area=B*E.areapre,E.totalarea=B,M(E)}},$}),D("echarts/layer/heatmap",["require"],function(){function $($){if(this.option=$,$){for(var A in _)this.option[A]=void 0!==$[A]?$[A]:_[A]}else this.option=_}var _={blurSize:30,gradientColors:["blue","cyan","lime","yellow","red"],minAlpha:0.05,valueScale:1,opacity:1},B=20,A=256;return $.prototype={getCanvas:function(M,D,O){var N=this._getBrush(),F=this._getGradient(),G=B+this.option.blurSize,J=document.createElement("canvas");J.width=D,J.height=O;for(var H=J.getContext("2d"),C=M.length,E=0;C>E;++E){var P=M[E],L=P[0],_=P[1],$=P[2],R=Math.min(1,Math.max($*this.option.valueScale||this.option.minAlpha,this.option.minAlpha));H.globalAlpha=R,H.drawImage(N,L-G,_-G)}for(var I=H.getImageData(0,0,J.width,J.height),Q=I.data,C=Q.length/4;C--;){var K=4*C+3,R=Q[K]/256,S=Math.floor(R*(A-1));Q[K-3]=F[4*S],Q[K-2]=F[4*S+1],Q[K-1]=F[4*S+2],Q[K]*=this.option.opacity}return H.putImageData(I,0,0),J},_getBrush:function(){if(!this._brushCanvas){this._brushCanvas=document.createElement("canvas");var _=B+this.option.blurSize,$=2*_;this._brushCanvas.width=$,this._brushCanvas.height=$;var A=this._brushCanvas.getContext("2d");A.shadowOffsetX=$,A.shadowBlur=this.option.blurSize,A.shadowColor="black",A.beginPath(),A.arc(-_,_,B,0,2*Math.PI,!0),A.closePath(),A.fill()}return this._brushCanvas},_getGradient:function(){if(!this._gradientPixels){var _=A,$=document.createElement("canvas");$.width=1,$.height=_;for(var E=$.getContext("2d"),C=E.createLinearGradient(0,0,0,_),B=this.option.gradientColors.length,D=0;B>D;++D)"string"==typeof this.option.gradientColors[D]?C.addColorStop((D+1)/B,this.option.gradientColors[D]):C.addColorStop(this.option.gradientColors[D].offset,this.option.gradientColors[D].color);E.fillStyle=C,E.fillRect(0,0,1,_),this._gradientPixels=E.getImageData(0,0,1,_).data}return this._gradientPixels}},$}),D("echarts/component/base",["require","../config","../util/ecData","../util/ecQuery","../util/number","zrender/tool/util","zrender/tool/env"],function(_){function $(_,$,B,A,C){this.ecTheme=_,this.messageCenter=$,this.zr=B,this.option=A,this.series=A.series,this.myChart=C,this.component=C.component,this.shapeList=[],this.effectList=[];var F=this;F._onlegendhoverlink=function(_){if(F.legendHoverLink)for(var $,B=_.target,A=F.shapeList.length-1;A>=0;A--)$=F.type==E.CHART_TYPE_PIE||F.type==E.CHART_TYPE_FUNNEL?D.get(F.shapeList[A],"name"):(D.get(F.shapeList[A],"series")||{}).name,$!=B||F.shapeList[A].invisible||F.shapeList[A].__animating||F.zr.addHoverShape(F.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},$}),D("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),$}),D("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({}),B=H("zrender/shape/BezierCurve"),C=new B({}),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,C=_.yEnd,D=(E+A)/2-G*(B-C)*$,F=(B+C)/2-G*(A-E)*$;_.cpX1=D,_.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,E=C.yStart,F=C.xEnd,I=C.yEnd,G=0===J?N:F,B=0===J?E: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-E),_*(F-N))}else{var $=C.cpX1,R=C.cpY1,H=A.quadraticDerivativeAt,Q=H(N,$,F,J),K=H(E,R,I,J);L=Math.PI/2+Math.atan2(K,Q)}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?C.getRect($):I.getRect($),$.__rect},isCover:function(_,$){var A=this.transformCoordToLocal(_,$);return _=A[0],$=A[1],this.isCoverRect(_,$)?this.style.curveness>0?F.isInside(C,this.style,_,$):F.isInside(I,this.style,_,$):!1}},$.inherits(_,G),_}),D("zrender/shape/Path",["require","./Base","./util/PathProxy","../tool/util"],function(_){var $=_("./Base"),F=_("./util/PathProxy"),E=F.PathSegment,B=function($){return Math.sqrt($[0]*$[0]+$[1]*$[1])},A=function(_,$){return(_[0]*$[0]+_[1]*$[1])/(B(_)*B($))},C=function(_,$){return(_[0]*$[1]<_[1]*$[0]?-1:1)*Math.acos(A(_,$))},D=function(_){$.call(this,_)};return D.prototype={type:"path",buildPathArray:function(U,I,Q){if(!U)return[];I=I||0,Q=Q||0;var W=U,V=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];W=W.replace(/-/g," -"),W=W.replace(/ /g," "),W=W.replace(/ /g,","),W=W.replace(/,,/g,",");var L;for(L=0;L<V.length;L++)W=W.replace(new RegExp(V[L],"g"),"|"+V[L]);var M=W.split("|"),P=[],N=0,H=0;for(L=1;L<M.length;L++){var K=M[L],X=K.charAt(0);K=K.slice(1),K=K.replace(new RegExp("e,-","g"),"e-");var T=K.split(",");T.length>0&&""===T[0]&&T.shift();for(var G=0;G<T.length;G++)T[G]=parseFloat(T[G]);for(;T.length>0&&!isNaN(T[0]);){var F,Z,O,D,S,a,J,C,B=null,Y=[],$=N,R=H;switch(X){case"l":N+=T.shift(),H+=T.shift(),B="L",Y.push(N,H);break;case"L":N=T.shift(),H=T.shift(),Y.push(N,H);break;case"m":N+=T.shift(),H+=T.shift(),B="M",Y.push(N,H),X="l";break;case"M":N=T.shift(),H=T.shift(),B="M",Y.push(N,H),X="L";break;case"h":N+=T.shift(),B="L",Y.push(N,H);break;case"H":N=T.shift(),B="L",Y.push(N,H);break;case"v":H+=T.shift(),B="L",Y.push(N,H);break;case"V":H=T.shift(),B="L",Y.push(N,H);break;case"C":Y.push(T.shift(),T.shift(),T.shift(),T.shift()),N=T.shift(),H=T.shift(),Y.push(N,H);break;case"c":Y.push(N+T.shift(),H+T.shift(),N+T.shift(),H+T.shift()),N+=T.shift(),H+=T.shift(),B="C",Y.push(N,H);break;case"S":F=N,Z=H,O=P[P.length-1],"C"===O.command&&(F=N+(N-O.points[2]),Z=H+(H-O.points[3])),Y.push(F,Z,T.shift(),T.shift()),N=T.shift(),H=T.shift(),B="C",Y.push(N,H);break;case"s":F=N,Z=H,O=P[P.length-1],"C"===O.command&&(F=N+(N-O.points[2]),Z=H+(H-O.points[3])),Y.push(F,Z,N+T.shift(),H+T.shift()),N+=T.shift(),H+=T.shift(),B="C",Y.push(N,H);break;case"Q":Y.push(T.shift(),T.shift()),N=T.shift(),H=T.shift(),Y.push(N,H);break;case"q":Y.push(N+T.shift(),H+T.shift()),N+=T.shift(),H+=T.shift(),B="Q",Y.push(N,H);break;case"T":F=N,Z=H,O=P[P.length-1],"Q"===O.command&&(F=N+(N-O.points[0]),Z=H+(H-O.points[1])),N=T.shift(),H=T.shift(),B="Q",Y.push(F,Z,N,H);break;case"t":F=N,Z=H,O=P[P.length-1],"Q"===O.command&&(F=N+(N-O.points[0]),Z=H+(H-O.points[1])),N+=T.shift(),H+=T.shift(),B="Q",Y.push(F,Z,N,H);break;case"A":D=T.shift(),S=T.shift(),a=T.shift(),J=T.shift(),C=T.shift(),$=N,R=H,N=T.shift(),H=T.shift(),B="A",Y=this._convertPoint($,R,N,H,J,C,D,S,a);break;case"a":D=T.shift(),S=T.shift(),a=T.shift(),J=T.shift(),C=T.shift(),$=N,R=H,N+=T.shift(),H+=T.shift(),B="A",Y=this._convertPoint($,R,N,H,J,C,D,S,a)}for(var _=0,A=Y.length;A>_;_+=2)Y[_]+=I,Y[_+1]+=Q;P.push(new E(B||X,Y))}("z"===X||"Z"===X)&&P.push(new E("z",[]))}return P},_convertPoint:function(P,D,L,H,Q,G,K,I,B){var F=B*(Math.PI/180),S=Math.cos(F)*(P-L)/2+Math.sin(F)*(D-H)/2,O=-1*Math.sin(F)*(P-L)/2+Math.cos(F)*(D-H)/2,_=S*S/(K*K)+O*O/(I*I);_>1&&(K*=Math.sqrt(_),I*=Math.sqrt(_));var $=Math.sqrt((K*K*I*I-K*K*O*O-I*I*S*S)/(K*K*O*O+I*I*S*S));Q===G&&($*=-1),isNaN($)&&($=0);var U=$*K*O/I,J=$*-I*S/K,T=(P+L)/2+Math.cos(F)*U-Math.sin(F)*J,N=(D+H)/2+Math.sin(F)*U+Math.cos(F)*J,V=C([1,0],[(S-U)/K,(O-J)/I]),E=[(S-U)/K,(O-J)/I],R=[(-1*S-U)/K,(-1*O-J)/I],M=C(E,R);return A(E,R)<=-1&&(M=Math.PI),A(E,R)>=1&&(M=0),0===G&&M>0&&(M-=2*Math.PI),1===G&&0>M&&(M+=2*Math.PI),[T,N,K,I,V,M,F,G]},buildPath:function(Q,E){var N=E.path,J=E.x||0,S=E.y||0;E.pathArray=E.pathArray||this.buildPathArray(N,J,S);for(var R=E.pathArray,H=E.pointList=[],I=[],M=0,K=R.length;K>M;M++){"M"==R[M].command.toUpperCase()&&(I.length>0&&H.push(I),I=[]);for(var D=R[M].points,G=0,T=D.length;T>G;G+=2)I.push([D[G],D[G+1]])}I.length>0&&H.push(I);for(M=0,K=R.length;K>M;M++){var P=R[M].command,D=R[M].points;switch(P){case"L":Q.lineTo(D[0],D[1]);break;case"M":Q.moveTo(D[0],D[1]);break;case"C":Q.bezierCurveTo(D[0],D[1],D[2],D[3],D[4],D[5]);break;case"Q":Q.quadraticCurveTo(D[0],D[1],D[2],D[3]);break;case"A":var C=D[0],B=D[1],V=D[2],L=D[3],A=D[4],O=D[5],W=D[6],F=D[7],_=V>L?V:L,$=V>L?1:V/L,U=V>L?L/V:1;Q.translate(C,B),Q.rotate(W),Q.scale($,U),Q.arc(0,0,_,A,A+O,1-F),Q.scale(1/$,1/U),Q.rotate(-W),Q.translate(-C,-B);break;case"z":Q.closePath()}}},getRect:function(H){if(H.__rect)return H.__rect;var _;_="stroke"==H.brushType||"fill"==H.brushType?H.lineWidth||1:0;for(var G=Number.MAX_VALUE,D=Number.MIN_VALUE,J=Number.MAX_VALUE,I=Number.MIN_VALUE,B=H.x||0,C=H.y||0,F=H.pathArray||this.buildPathArray(H.path),E=0;E<F.length;E++)for(var $=F[E].points,A=0;A<$.length;A++)A%2===0?($[A]+B<G&&(G=$[A]),$[A]+B>D&&(D=$[A])):($[A]+C<J&&(J=$[A]),$[A]+C>I&&(I=$[A]));var K;return K=G===Number.MAX_VALUE||D===Number.MIN_VALUE||J===Number.MAX_VALUE||I===Number.MIN_VALUE?{x:0,y:0,width:0,height:0}:{x:Math.round(G-_/2),y:Math.round(J-_/2),width:D-G+_,height:I-J+_},H.__rect=K,K}},_("../tool/util").inherits(D,$),D}),D("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 C=_.shapeList[A],D=C.getRect(C.style),$=Math.min(D.x,$),E=Math.min(D.y,E),F=Math.max(D.x+D.width,F),B=Math.max(D.y+D.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}),D("echarts/util/ecAnimation",["require","zrender/tool/util","zrender/tool/curve","zrender/shape/Polygon"],function(K){function B(I,A,H,E,K){var J,C=H.style.pointList,D=C.length;if(!A){if(J=[],"vertical"!=H._orient){for(var G=C[0][1],F=0;D>F;F++)J[F]=[C[F][0],G]}else for(var $=C[0][0],F=0;D>F;F++)J[F]=[$,C[F][1]];"half-smooth-polygon"==H.type&&(J[D-1]=_.clone(C[D-1]),J[D-2]=_.clone(C[D-2])),A={style:{pointList:J}}}J=A.style.pointList;var B=J.length;H.style.pointList=B==D?J:D>B?J.concat(C.slice(B)):J.slice(0,D),I.addShape(H),H.__animating=!0,I.animate(H.id,"style").when(E,{pointList:C}).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 E=G.style;_||(_={position:G.position,style:{x:E.x,y:"vertical"==G._orient?E.y+E.height:E.y,width:"vertical"==G._orient?E.width:0,height:"vertical"!=G._orient?E.height:0}});var F=E.x,J=E.y,H=E.width,$=E.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:F,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,C=G.style.y,D=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,C],_.addShape(G),_.animate(G.id,"style").when(E,{r0:D,r:F}).done(function(){G.__animating=!1}).start(B),_.animate(G.id,"").when(E,{rotation:[0,A,C]}).start(B)):(G.style.r0=G.style.r,_.addShape(G),_.animate(G.id,"style").when(E,{r0:D}).done(function(){G.__animating=!1}).start(B))}function D(_,$,E,B,A){$||($="r"!=E._animationAdd?{style:{startAngle:E.style.startAngle,endAngle:E.style.startAngle}}:{style:{r0:E.style.r}});var C=E.style.startAngle,D=E.style.endAngle;I(E,$,"startAngle","endAngle"),_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(B,{startAngle:C,endAngle:D}).done(function(){E.__animating=!1}).start(A)}function E(_,$,E,B,A){$||($={style:{x:"left"==E.style.textAlign?E.style.x+100:E.style.x-100,y:E.style.y}});var C=E.style.x,D=E.style.y;I(E,$,"x","y"),_.addShape(E),E.__animating=!0,_.animate(E.id,"style").when(B,{x:C,y:D}).done(function(){E.__animating=!1}).start(A)}function H($,F,D,A,_){var B=K("zrender/shape/Polygon").prototype.getRect(D.style),C=B.x+B.width/2,E=B.y+B.height/2;D.scale=[0.1,0.1,C,E],$.addShape(D),D.__animating=!0,$.animate(D.id,"").when(A,{scale:[1,1,C,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 C=E.style.source0,D=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:C,source1:D,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,C){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 D=G._x||0,E=G._y||0;G.scale=[0.01,0.01,D,E],_.addShape(G),G.__animating=!0,_.animate(G.id,"").delay(C).when(B,{scale:[1,1,D,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 C=E.style.xStart,D=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:C,xEnd:D,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,D=function(){J.__animating=!1},E=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,_=[],P=[],H=$.quadraticSubdivide;L.animation.animate(C).when(F,{p:1}).during(function(){H(E,O,G,C.p,_),H(I,K,A,C.p,P),M.cpX1=_[1],M.cpY1=P[1],M.xEnd=_[2],M.yEnd=P[2],L.modShape(J)}).done(D).start(N)}else L.animate(J.id,"style").when(0,{xEnd:E,yEnd:I}).when(F,{xEnd:G,yEnd:A}).done(D).start(N)}var _=K("zrender/tool/util"),$=K("zrender/tool/curve");return{pointList:B,rectangle:F,candle:M,ring:L,sector:D,text:E,polygon:H,ribbon:G,gaugePointer:A,icon:C,line:N,markline:J}}),D("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 B=H("../data/KDTree"),C=H("zrender/tool/vector"),F=C.create,E=C.distSquare,$=C.dist,A=C.copy,K=C.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 F=[],H=0;H<D.groups.length;H++)F.push(new G(D.groups[H]));var J=this._iterate(F);if(J.savedInk<=0)break;D=J}var $=[],C=function(A,_){for(var D,B=0;B<A.length;B++){var E=A[B];if(E.edgeList[0]&&E.edgeList[0].edge instanceof G){for(var F=[],J=0;J<E.edgeList.length;J++)F.push(E.edgeList[J].edge.group);D=_?_.slice():[],D.unshift(E.mp0),D.push(E.mp1),C(F,D)}else for(J=0;J<E.edgeList.length;J++){var H=E.edgeList[J];D=_?_.slice():[],D.unshift(E.mp0),D.push(E.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 M=[],S=[],I=0,K=0;K<R.length;K++){var E=new D(R[K]);M.push(E)}for(var U=new B(M,4),Q=[],C=F(),$=F(),X=0,L=F(),V=F(),P=0,K=0;K<M.length;K++){E=M[K];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,X=this._calculateGroupEdgeInk(W.group,E,C,$),H=W.group.ink+E.ink-X):(X=this._calculateEdgeEdgeInk(E,W,C,$),H=W.ink+E.ink-X),H>Y&&(Y=H,G=W,A(V,$),A(L,C),P=X)}if(G){I+=Y;var N;G.group||(N=new J,S.push(N),N.addEdge(G)),N=G.group,A(N.mp0,L),A(N.mp1,V),N.ink=P,G.group.addEdge(E)}else{N=new J;S.push(N),A(N.mp0,E.getStartPoint()),A(N.mp1,E.getEndPoint()),N.ink=E.ink,N.addEdge(E)}}}return{groups:S,edges:M,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=[],D=0;D<A.edgeList.length;D++){var E=A.edgeList[D];C.push(E.getStartPoint()),B.push(E.getEndPoint())}C.push(_.getStartPoint()),B.push(_.getEndPoint()),this._calculateMeetPoints(C,B,H,F);for(var G=$(H,F),D=0;D<C.length;D++)G+=$(C[D],H)+$(B[D],F);return G},_calculateMeetPoints:function(){var _=F(),$=F();return function(G,E,B,A){C.set(_,0,0),C.set($,0,0);for(var D=G.length,F=0;D>F;F++)C.add(_,_,G[F]);C.scale(_,_,1/D),D=E.length;for(F=0;D>F;F++)C.add($,$,E[F]);C.scale($,$,1/D),this._limitTurningAngle(G,_,$,B),this._limitTurningAngle(E,$,_,A)}}(),_limitTurningAngle:function(){var A=F(),_=F(),D=F(),B=F();return function(O,N,I,K){var H=Math.cos(this.maxTurningAngle),P=Math.tan(this.maxTurningAngle);C.sub(A,N,I),C.normalize(A,A),C.copy(K,N);for(var M=0,G=0;G<O.length;G++){var F=O[G];C.sub(_,F,N);var R=C.len(_);C.scale(_,_,1/R);var J=C.dot(_,A);if(H>J){C.scaleAndAdd(D,N,A,R*J);var Q=$(D,F),L=Q/P;C.scaleAndAdd(B,D,A,-L);var S=E(B,N);S>M&&(M=S,C.copy(K,B))}}}}()},I}),D("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,C=E.scaleSize,P=E.bounceDistance,M="undefined"!=typeof E.shadowBlur?E.shadowBlur:C;"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*C,height:J.style._height*C,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 D({zlevel:O.zlevel,style:O.style,draggable:!1,hoverable:!1}))):O=new D({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,R=(O.style.width/_-J.style._width)/2;O.style.x=J.style._x-R,O.style.y=J.style._y-R,"pin"==J.style.iconType&&(O.style.y-=J.style.height/2*1.5);var H=100*(E.period+10*Math.random());N.modShape(J.id,{invisible:!0});var Q=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,Q,L]}),N.animate(O.id,"",E.loop).when(H,{scale:[1,1,Q,L]}).done(function(){J.effect.show=!1,N.delShape(O.id)}).start()):N.animate(O.id,"style",E.loop).when(H,{y:O.style.y-P}).when(2*H,{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,D=M.scaleSize,E=M.shadowColor||L,H="undefined"!=typeof M.shadowBlur?M.shadowBlur:2*D,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:E,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,h="undefined"!=typeof W.shadowBlur?W.shadowBlur:R,Z=new C({zlevel:X,style:{x:h,y:h,r:R,color:S,shadowColor:V,shadowBlur:h},hoverable:!1}),Q=0;if($&&!f){var X=Z.zlevel;Z=e.shapeToImage(Z,2*(R+h),2*(R+h)),Z.zlevel=X,Z.hoverable=!1,Q=h}f||(K.clone(b,Z),Z.position=b.position,T.push(Z),e.addShape(Z));var d=function(){f||(b.effect.show=!1,e.delShape(Z.id)),Z.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 D=L[2*(g-1)],c=L[2*(g-1)+1];U+=I.dist(O[g-1],D)+I.dist(D,c)+I.dist(c,O[g])}else U+=I.dist(O[g-1],O[g]);i.push(U)}for(var E={p:0},F=e.animation.animate(E,{loop:W.loop}),g=0;g<i.length;g++)F.when(i[g]*W.period,{p:g});F.during(function(){var _,H,D=Math.floor(E.p);if(D==O.length-1)_=O[D][0],H=O[D][1];else{var A=E.p-D,B=O[D],C=O[D+1];if(L){var F=L[2*D],$=L[2*D+1];_=G.cubicAt(B[0],F[0],$[0],C[0],A),H=G.cubicAt(B[1],F[1],$[1],C[1],A)}else _=(C[0]-B[0])*A+B[0],H=(C[1]-B[1])*A+B[1]}Z.style.x=_,Z.style.y=H,f||e.modShape(Z)}).done(d).start(),F.duration=U*W.period,Z.effectAnimator=F}else{var B=Y.xStart-Q,A=Y.yStart-Q,a=Y.xEnd-Q,J=Y.yEnd-Q;Z.style.x=B,Z.style.y=A;var H=(a-B)*(a-B)+(J-A)*(J-A),N=Math.round(Math.sqrt(Math.round(H*W.period*W.period)));if(b.style.curveness>0){var P=Y.cpX1-Q,_=Y.cpY1-Q;Z.effectAnimator=e.animation.animate(Z,{loop:W.loop}).when(N,{p:1}).during(function($,C){Z.style.x=G.quadraticAt(B,P,a,C),Z.style.y=G.quadraticAt(A,_,J,C),f||e.modShape(Z)}).done(d).start()}else Z.effectAnimator=e.animation.animate(Z.style,{loop:W.loop}).when(N,{x:a,y:J}).during(function(){f||e.modShape(Z)}).done(d).start();Z.effectAnimator.duration=N}return Z}function L(K,C,I,M){var L=new B({style:{shapeList:[]},zlevel:M,hoverable:!1}),D=I.style.shapeList,F=I.effect;L.position=I.position;for(var H=0,G=[],A=0;A<D.length;A++){D[A].effect=F;var N=E(K,null,D[A],M,!0),J=N.effectAnimator;L.style.shapeList.push(N),J.duration>H&&(H=J.duration),0===A&&(L.style.color=N.style.color,L.style.shadowBlur=N.style.shadowBlur,L.style.shadowColor=N.style.shadowColor),G.push(J)}C.push(L),K.addShape(L);var _=function(){for(var $=0;$<G.length;$++)G[$].stop()};if(H){L.__dummy=0;var $=K.animate(L.id,"",F.loop).when(H,{__dummy:1}).during(function(){K.modShape(L)}).done(function(){I.effect.show=!1,K.delShape(L.id)}).start(),O=$.stop;$.stop=function(){_(),O.call(this)}}}var K=J("../util/ecData"),C=J("zrender/shape/Circle"),D=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}}),D("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,E,F,K){E&&(_.font=E),_.textAlign=F,_.textBaseline=K;var J=G(I,C,A,E,F,K);I=(I+"").split("\n");var $=H("../tool/area").getTextHeight("\u56fd",E);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,_,B){var C=H("../tool/area"),F=C.getTextWidth($,A),E=C.getTextHeight("\u56fd",A);switch($=($+"").split("\n"),_){case"end":case"right":G-=F;break;case"center":G-=F/2}switch(B){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"),B=H("../tool/util"),C=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 B=H("../tool/color"),C=B.getHighlightColor();"stroke"!=$.brushType?(A.strokeColor=C,A.lineWidth=($.lineWidth||1)+this.getHighlightZoom(),A.brushType="both"):"stroke"!=D?(A.strokeColor=C,A.lineWidth=($.lineWidth||1)+this.getHighlightZoom()):A.strokeColor=E.strokeColor||B.mix($.strokeColor,B.toRGB(C));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(){C("buildPath not implemented in "+this.type)},$.prototype.getRect=function(){C("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,D,E,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":E=C.x+C.width/2,I=C.y+C.height/2,M="center",D="middle","stroke"!=J.brushType&&N==J.color&&(L.fillStyle="#fff");break;case"left":E=C.x-G,I=C.y+C.height/2,M="end",D="middle";break;case"right":E=C.x+C.width+G,I=C.y+C.height/2,M="start",D="middle";break;case"top":E=C.x+C.width/2,I=C.y-G,M="center",D="bottom";break;case"bottom":E=C.x+C.width/2,I=C.y+C.height+G,M="center",D="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,$,Q,H;switch(B){case"start":A=O[1][0],$=O[0][0],Q=O[1][1],H=O[0][1];break;case"end":A=O[K-2][0],$=O[K-1][0],Q=O[K-2][1],H=O[K-1][1]}E=$,I=H;var P=Math.atan((Q-H)/($-A))/Math.PI*180;0>$-A?P+=180:0>Q-H&&(P+=360),G=5,P>=30&&150>=P?(M="center",D="bottom",I-=G):P>150&&210>P?(M="right",D="middle",E-=G):P>=210&&330>=P?(M="center",D="top",I+=G):(M="left",D="middle",E+=G);break;case"specific":E=J.textX||0,I=J.textY||0,M="start",D="middle"}null!=E&&null!=I&&_(L,J.text,E,I,J.textFont,J.textAlign||M,J.textBaseline||D)}},$.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)},B.merge($.prototype,F.prototype,!0),B.merge($.prototype,E.prototype,!0),$}),D("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 B=A.call(arguments,2);return function(){return _.apply($,B.concat(A.call(arguments)))}}function m($){return String($).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}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 e(_){var $=_.srcElement;$.firstChild&&($.firstChild.style.width=$.clientWidth+"px",$.firstChild.style.height=$.clientHeight+"px")}function f(){return[[1,0,0],[0,1,0],[0,0,1]]}function l(_,$){for(var E=f(),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,C;if(B=parseFloat(_[0])/360%360,0>B&&B++,A=u(d(_[1]),0,1),C=u(d(_[2]),0,1),0==A)$=G=E=C;else{var D=0.5>C?C*(1+A):C+A-C*A,F=2*C-D;$=Z(F,D,B+1/3),G=Z(F,D,B),E=Z(F,D,B-1/3)}return"#"+V[Math.floor(255*$)]+V[Math.floor(255*G)]+V[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],$+=V[u(C,0,255)];D=+B[3]}else if(/^hsl/.test(_)){B=a(_);$=p(B),D=B[3]}else $=W[_]||_;return P[_]={color:$,alpha:D}}function w(_){if(Q[_])return Q[_];var $,C=document.createElement("div"),B=C.style;try{B.font=_,$=B.fontFamily.split(",")[0]}catch(A){}return Q[_]={style:B.fontStyle||X.style,variant:B.fontVariant||X.variant,weight:B.fontWeight||X.weight,size:B.fontSize||X.size,family:$||X.family}}function i(_,$){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 U($){return $.style+" "+$.variant+" "+$.weight+" "+$.size+"px '"+$.family+"'"}function o($){return M[$]||"square"}function x(_){this.m_=f(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*D,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(h,S,d,X){var j=h.fillStyle,i=h.scaleX_,V=h.scaleY_,W=X.x-d.x,c=X.y-d.y;if(j instanceof F){var Z=0,R={x:0,y:0},U=0,k=1;if("gradient"==j.type_){var g=j.x0_/i,Q=j.y0_/V,l=j.x1_/i,a=j.y1_/V,P=v(h,g,Q),f=v(h,l,a),m=f.x-P.x,T=f.y-P.y;Z=180*Math.atan2(m,T)/Math.PI,0>Z&&(Z+=360),0.000001>Z&&(Z=0)}else{P=v(h,j.x0_,j.y0_);R={x:(P.x-d.x)/W,y:(P.y-d.y)/c},W/=i*D,c/=V*D;var N=K.max(W,c);U=2*j.r0_/N,k=2*j.r1_/N-U}var J=j.colors_;J.sort(function(_,$){return _.offset-$.offset});for(var C=J.length,e=J[0].color,B=J[C-1].color,_=J[0].alpha*h.globalAlpha,b=J[C-1].alpha*h.globalAlpha,H=[],M=0;C>M;M++){var O=J[M];H.push(O.offset*k+U+" "+O.color)}S.push("<g_vml_:fill type=\"",j.type_,"\""," method=\"none\" focus=\"100%\""," color=\"",e,"\""," color2=\"",B,"\""," colors=\"",H.join(","),"\""," opacity=\"",b,"\""," g_o_:opacity2=\"",_,"\""," angle=\"",Z,"\""," focusposition=\"",R.x,",",R.y,"\" />")}else if(j instanceof G){if(W&&c){var $=-d.x,E=-d.y;S.push("<g_vml_:fill"," position=\"",$/W*i*i,",",E/c*V*V,"\""," type=\"tile\""," src=\"",j.src_,"\" />")}}else{var I=Y(h.fillStyle),A=I.color,L=I.alpha*h.globalAlpha;S.push("<g_vml_:fill color=\"",A,"\" opacity=\"",L,"\" />")}}function v(_,$,B){var A=_.m_;return{x:D*($*A[0][0]+B*A[1][0]+A[2][0])-J,y:D*($*A[0][1]+B*A[1][1]+A[2][1])-J}}function E($){return isFinite($[0][0])&&isFinite($[0][1])&&isFinite($[1][0])&&isFinite($[1][1])&&isFinite($[2][0])&&isFinite($[2][1])}function n(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_=H($(B))}}function F($){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(_(A),$){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=$;break;default:C("SYNTAX_ERR")}this.src_=A.src,this.width_=A.width,this.height_=A.height}function C($){throw new k($)}function _($){$&&1==$.nodeType&&"IMG"==$.tagName||C("TYPE_MISMATCH_ERR"),"complete"!=$.readyState&&C("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,H=K.sqrt,D=10,J=D/2,A=(+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1],Array.prototype.slice);s(document);var O={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",e);var _=$.attributes;_.width&&_.width.specified?$.style.width=_.width.nodeValue+"px":$.width=$.clientWidth,_.height&&_.height.specified?$.style.height=_.height.nodeValue+"px":$.height=$.clientHeight}return $}};O.init();for(var V=[],t=0;16>t;t++)for(var B=0;16>B;B++)V[16*t+B]=t.toString(16)+B.toString(16);var W={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"},Q={},M={butt:"flat",round:"round"},L=x.prototype;L.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null),this.element_.innerHTML=""},L.beginPath=function(){this.currentPath_=[]},L.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},L.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},L.bezierCurveTo=function(_,$,G,E,B,A){var C=v(this,B,A),D=v(this,_,$),F=v(this,G,E);c(this,D,F,C)},L.quadraticCurveTo=function(_,$,F,E){var B=v(this,_,$),A=v(this,F,E),C={x:this.currentX_+2/3*(B.x-this.currentX_),y:this.currentY_+2/3*(B.y-this.currentY_)},D={x:C.x+(A.x-this.currentX_)/3,y:C.y+(A.y-this.currentY_)/3};c(this,C,D,A)},L.arc=function(K,_,H,E,M,L){H*=D;var B=L?"at":"wa",C=K+T(E)*H-J,G=_+R(E)*H-J,F=K+T(M)*H-J,$=_+R(M)*H-J;C!=F||L||(C+=0.125);var A=v(this,K,_),N=v(this,C,G),I=v(this,F,$);this.currentPath_.push({type:B,x:A.x,y:A.y,radius:H,xStart:N.x,yStart:N.y,xEnd:I.x,yEnd:I.y})},L.rect=function(_,$,B,A){this.moveTo(_,$),this.lineTo(_+B,$),this.lineTo(_+B,$+A),this.lineTo(_,$+A),this.closePath()},L.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},L.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},L.createLinearGradient=function(_,$,C,B){var A=new F("gradient");return A.x0_=_,A.y0_=$,A.x1_=C,A.y1_=B,A},L.createRadialGradient=function(_,$,E,D,B,A){var C=new F("gradientradial");return C.x0_=_,C.y0_=$,C.r0_=E,C.x1_=D,C.y1_=B,C.r1_=A,C},L.drawImage=function(T){var F,Q,M,V,U,J,L,P,N=T.runtimeStyle.width,E=T.runtimeStyle.height;T.runtimeStyle.width="auto",T.runtimeStyle.height="auto";var H=T.width,W=T.height;if(T.runtimeStyle.width=N,T.runtimeStyle.height=E,3==arguments.length)F=arguments[1],Q=arguments[2],U=J=0,L=M=H,P=V=W;else if(5==arguments.length)F=arguments[1],Q=arguments[2],M=arguments[3],V=arguments[4],U=J=0,L=H,P=W;else{if(9!=arguments.length)throw Error("Invalid number of arguments");U=arguments[1],J=arguments[2],L=arguments[3],P=arguments[4],F=arguments[5],Q=arguments[6],M=arguments[7],V=arguments[8]}var S=v(this,F,Q),C=[],B=10,X=10,O=R=1;if(C.push(" <g_vml_:group"," coordsize=\"",D*B,",",D*X,"\""," coordorigin=\"0,0\""," style=\"width:",B,"px;height:",X,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var A=[],O=this.scaleX_,R=this.scaleY_;A.push("M11=",this.m_[0][0]/O,",","M12=",this.m_[1][0]/R,",","M21=",this.m_[0][1]/O,",","M22=",this.m_[1][1]/R,",","Dx=",I(S.x/D),",","Dy=",I(S.y/D),"");var Y=S,G=v(this,F+M,Q),_=v(this,F,Q+V),$=v(this,F+M,Q+V);Y.x=K.max(Y.x,G.x,_.x,$.x),Y.y=K.max(Y.y,G.y,_.y,$.y),C.push("padding:0 ",I(Y.x/D),"px ",I(Y.y/D),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",A.join(""),", SizingMethod='clip');")}else C.push("top:",I(S.y/D),"px;left:",I(S.x/D),"px;");C.push(" \">"),(U||J)&&C.push("<div style=\"overflow: hidden; width:",Math.ceil((M+U*M/L)*O),"px;"," height:",Math.ceil((V+J*V/P)*R),"px;"," filter:progid:DxImageTransform.Microsoft.Matrix(Dx=",-U*M/L*O,",Dy=",-J*V/P*R,");\">"),C.push("<div style=\"width:",Math.round(O*H*M/L),"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||J)&&C.push("</div>"),C.push("</div></div>"),this.element_.insertAdjacentHTML("BeforeEnd",C.join(""))},L.stroke=function(_){var $=[],H=10,F=10;$.push("<g_vml_:shape"," filled=\"",!!_,"\""," style=\"position:absolute;width:",H,"px;height:",F,"px;\""," coordorigin=\"0,0\""," coordsize=\"",D*H,",",D*F,"\""," stroked=\"",!_,"\""," path=\"");for(var B={x:null,y:null},A={x:null,y:null},C=0;C<this.currentPath_.length;C++){var E,G=this.currentPath_[C];switch(G.type){case"moveTo":E=G,$.push(" m ",I(G.x),",",I(G.y));break;case"lineTo":$.push(" l ",I(G.x),",",I(G.y));break;case"close":$.push(" x "),G=null;break;case"bezierCurveTo":$.push(" c ",I(G.cp1x),",",I(G.cp1y),",",I(G.cp2x),",",I(G.cp2y),",",I(G.x),",",I(G.y));break;case"at":case"wa":$.push(" ",G.type," ",I(G.x-this.scaleX_*G.radius),",",I(G.y-this.scaleY_*G.radius)," ",I(G.x+this.scaleX_*G.radius),",",I(G.y+this.scaleY_*G.radius)," ",I(G.xStart),",",I(G.yStart)," ",I(G.xEnd),",",I(G.yEnd))}G&&((null==B.x||G.x<B.x)&&(B.x=G.x),(null==A.x||G.x>A.x)&&(A.x=G.x),(null==B.y||G.y<B.y)&&(B.y=G.y),(null==A.y||G.y>A.y)&&(A.y=G.y))}$.push(" \">"),_?N(this,$,B,A):S(this,$),$.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",$.join(""))},L.fill=function(){this.stroke(!0)},L.closePath=function(){this.currentPath_.push({type:"close"})},L.save=function(){var $={};h(this,$),this.aStack_.push($),this.mStack_.push(this.m_),this.m_=l(f(),this.m_)},L.restore=function(){this.aStack_.length&&(h(this.aStack_.pop(),this),this.m_=this.mStack_.pop())},L.translate=function(_,$){var A=[[1,0,0],[0,1,0],[_,$,1]];n(this,l(A,this.m_),!1)},L.rotate=function(_){var $=T(_),B=R(_),A=[[$,B,0],[-B,$,0],[0,0,1]];n(this,l(A,this.m_),!1)},L.scale=function(_,$){var A=[[_,0,0],[0,$,0],[0,0,1]];n(this,l(A,this.m_),!0)},L.transform=function(_,$,E,D,B,A){var C=[[_,$,0],[E,D,0],[B,A,1]];n(this,l(C,this.m_),!0)},L.setTransform=function(_,$,E,D,B,A){var C=[[_,$,0],[E,D,0],[B,A,1]];n(this,C,!0)},L.drawText_=function(O,B,H,Q,P){var F=this.m_,G=1000,K=0,J=G,A={x:0,y:0},E=[],R=i(w(this.font),this.element_),M=U(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=G,J=0.05;break;case"center":K=J=G/2}var L=v(this,B+A.x,H+A.y);E.push("<g_vml_:line from=\"",-K," 0\" to=\"",J," 0.05\" "," coordsize=\"100 100\" coordorigin=\"0 0\""," filled=\"",!P,"\" stroked=\"",!!P,"\" style=\"position:absolute;width:1px;height:1px;\">"),P?S(this,E):N(this,E,{x:-K,y:0},{x:J,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/D)+","+I(L.y/D);E.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",E.join(""))},L.fillText=function(_,$,B,A){this.drawText_(_,$,B,A,!1)},L.strokeText=function(_,$,B,A){this.drawText_(_,$,B,A,!0)},L.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}},L.clip=function(){},L.arcTo=function(){},L.createPattern=function(_,$){return new G(_,$)},F.prototype.addColorStop=function(_,$){$=Y($),this.colors_.push({offset:_,color:$.color,alpha:$.alpha})};var j=k.prototype=new Error;j.INDEX_SIZE_ERR=1,j.DOMSTRING_SIZE_ERR=2,j.HIERARCHY_REQUEST_ERR=3,j.WRONG_DOCUMENT_ERR=4,j.INVALID_CHARACTER_ERR=5,j.NO_DATA_ALLOWED_ERR=6,j.NO_MODIFICATION_ALLOWED_ERR=7,j.NOT_FOUND_ERR=8,j.NOT_SUPPORTED_ERR=9,j.INUSE_ATTRIBUTE_ERR=10,j.INVALID_STATE_ERR=11,j.SYNTAX_ERR=12,j.INVALID_MODIFICATION_ERR=13,j.NAMESPACE_ERR=14,j.INVALID_ACCESS_ERR=15,j.VALIDATION_ERR=16,j.TYPE_MISMATCH_ERR=17,G_vmlCanvasManager=O,CanvasRenderingContext2D=x,CanvasGradient=F,CanvasPattern=G,DOMException=k}(),G_vmlCanvasManager}),D("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}}),D("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],D=_[1],E=_[3],H=_[5],G=Math.sin(I),$=Math.cos(I);return A[0]=F*$+D*G,A[1]=-F*G+D*$,A[2]=C*$+E*G,A[3]=-C*G+$*E,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],C=$[3],D=$[5],F=G*C-A*E;return F?(F=1/F,_[0]=C*F,_[1]=-A*F,_[2]=-E*F,_[3]=G*F,_[4]=(E*D-C*B)*F,_[5]=(A*B-G*D)*F,_):null}};return $}),D("zrender/tool/guid",[],function(){var $=2311;return function(){return"zrender__"+$++}}),D("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},$}),D("zrender/mixin/Transformable",["require","../tool/matrix","../tool/vector"],function(_){"use strict";function $($){return $>-D&&D>$}function G($){return $>D||-D>$}var E=_("../tool/matrix"),B=_("../tool/vector"),A=[0,0],C=E.translate,D=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 D=G(A[0])||G(A[1]);D&&C($,$,A),E.scale($,$,B),D&&(A[0]=-A[0],A[1]=-A[1],C($,$,A))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){A[0]=-this.rotation[1]||0,A[1]=-this.rotation[2]||0;D=G(A[0])||G(A[1]);D&&C($,$,A),E.rotate($,$,this.rotation[0]),D&&(A[0]=-A[0],A[1]=-A[1],C($,$,A))}}else 0!==this.rotation&&E.rotate($,$,this.rotation);(G(this.position[0])||G(this.position[1]))&&C($,$,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}),D("zrender/tool/curve",["require","./vector"],function(N){function B($){return $>-S&&S>$}function K($){return $>S||-S>$}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(U,P,M,W,V,K){var L=W+3*(P-M)-U,O=3*(M-2*P+U),N=3*(P-U),G=U-V,J=O*O-3*L*N,X=O*N-9*L*G,T=N*N-3*O*G,F=0;if(B(J)&&B(X)){if(B(O))K[0]=0;else{var E=-N/O;E>=0&&1>=E&&(K[F++]=E)}}else{var Z=X*X-4*J*T;if(B(Z)){var S=X/J,E=-O/L+S,a=-S/2;E>=0&&1>=E&&(K[F++]=E),a>=0&&1>=a&&(K[F++]=a)}else if(Z>0){var H=Math.sqrt(Z),D=J*O+1.5*L*(-X+H),C=J*O+1.5*L*(-X-H);D=0>D?-Math.pow(-D,R):Math.pow(D,R),C=0>C?-Math.pow(-C,R):Math.pow(C,R);E=(-O-(D+C))/(3*L);E>=0&&1>=E&&(K[F++]=E)}else{var Y=(2*J*O-3*L*X)/(2*Math.sqrt(J*J*J)),$=Math.acos(Y)/3,Q=Math.sqrt(J),_=Math.cos($),E=(-O-2*Q*_)/(3*L),a=(-O+Q*(_+I*Math.sin($)))/(3*L),A=(-O+Q*(_-I*Math.sin($)))/(3*L);E>=0&&1>=E&&(K[F++]=E),a>=0&&1>=a&&(K[F++]=a),A>=0&&1>=A&&(K[F++]=A)}}return F}function E(I,E,L,J,C){var D=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(D)){var A=-F/D;A>=0&&1>=A&&(C[_++]=A)}}else{var M=D*D-4*G*F;if(B(M))C[0]=-D/(2*G);else if(M>0){var H=Math.sqrt(M),A=(-D+H)/(2*G),$=(-D-H)/(2*G);A>=0&&1>=A&&(C[_++]=A),$>=0&&1>=$&&(C[_++]=$)}}return _}function F(H,_,G,D,J,I){var B=(_-H)*J+H,C=(G-_)*J+_,F=(D-G)*J+G,E=(C-B)*J+B,$=(F-C)*J+C,A=($-E)*J+E;I[0]=H,I[1]=B,I[2]=E,I[3]=A,I[4]=A,I[5]=$,I[6]=F,I[7]=D}function J(P,B,M,R,Q,F,H,K,I,A,D){var V,O=0.005,_=1/0;L[0]=I,L[1]=A;for(var J=0;1>J;J+=0.05){T[0]=G(P,M,Q,H,J),T[1]=G(B,R,F,K,J);var W=$.distSquare(L,T);_>W&&(V=J,_=W)}_=1/0;for(var U=0;32>U&&!(S>O);U++){var N=V-O,X=V+O;T[0]=G(P,M,Q,H,N),T[1]=G(B,R,F,K,N);W=$.distSquare(T,L);if(N>=0&&_>W)V=N,_=W;else{C[0]=G(P,M,Q,H,X),C[1]=G(B,R,F,K,X);var E=$.distSquare(C,L);1>=X&&_>E?(V=X,_=E):O*=0.5}}return D&&(D[0]=G(P,M,Q,H,V),D[1]=G(B,R,F,K,V)),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,C){var D=I-2*E+L,G=2*(E-I),F=I-J,_=0;if(B(D)){if(K(G)){var A=-F/G;A>=0&&1>=A&&(C[_++]=A)}}else{var M=G*G-4*D*F;if(B(M)){A=-G/(2*D);A>=0&&1>=A&&(C[_++]=A)}else if(M>0){var H=Math.sqrt(M),A=(-G+H)/(2*D),$=(-G-H)/(2*D);A>=0&&1>=A&&(C[_++]=A),$>=0&&1>=$&&(C[_++]=$)}}return _}function Q(_,$,B){var A=_+B-2*$;return 0===A?0.5:(_-$)/A}function M(_,$,F,E,B){var A=($-_)*E+_,C=(F-$)*E+$,D=(C-A)*E+A;B[0]=_,B[1]=A,B[2]=D,B[3]=D,B[4]=C,B[5]=F}function _(O,B,K,G,Q,P,E,F,J){var A,D=0.005,U=1/0;L[0]=E,L[1]=F;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);U>_&&(A=N,U=_)}U=1/0;for(var I=0;32>I&&!(S>D);I++){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&&U>_)A=V,U=_;else{C[0]=H(O,K,Q,R),C[1]=H(B,G,P,R);var M=$.distSquare(C,L);1>=R&&U>M?(A=R,U=M):D*=0.5}}return J&&(J[0]=H(O,K,Q,A),J[1]=H(B,G,P,A)),Math.sqrt(U)}var $=N("./vector"),S=0.0001,I=Math.sqrt(3),R=1/3,L=$.create(),T=$.create(),C=$.create();return{cubicAt:G,cubicDerivativeAt:P,cubicRootAt:O,cubicExtrema:E,cubicSubdivide:F,cubicProjectPoint:J,quadraticAt:H,quadraticDerivativeAt:A,quadraticRootAt:D,quadraticExtremum:Q,quadraticSubdivide:M,quadraticProjectPoint:_}}),D("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[_])}}),D("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 C;A=A instanceof Array?A:[A];for(var D=0,F=A.length;F>D;D++)C=A[D].id?A[D]:this.get(A[D]),C&&G.push(C)}}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 E;E="string"==typeof _?this._elements[_]:_;var F=D.indexOf(this._roots,E);F>=0&&(this.delFromMap(E.id),this._roots.splice(F,1),E instanceof C&&E.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}),D("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"),C=_("./tool/log"),D=_("./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 C=document.createElement("div");this._domRoot=C,C.style.position="relative",C.style.overflow="hidden",C.style.width=this._width+"px",C.style.height=this._height+"px",_.appendChild(C),this._layers={},this._zlevelList=[],this._layerConfig={},this._loadingEffect=new D({}),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,C.appendChild(this._bgDom),this._bgDom.onselectstart=$;var A=new G("_zrender_hover_",this);this._layers.hover=A,C.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,D;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&&D.restore(),D.flush&&D.flush()),F=G.zlevel,I=this.getLayer(F),I.isBuildin||C("ZLevel "+F+" has been used by unkown layer "+I.id),D=I.ctx,I.unusedCount=0,(I.dirty||_)&&I.clear(),I.needTransform&&(D.save(),I.setTransform(D))),(I.dirty||_)&&!G.invisible&&(!G.onbrush||G.onbrush&&!G.onbrush(D,!1)))if(B.catchBrushException){try{G.brush(D,!1,this.refreshNextFrame)}catch($){C($,"brush error of "+G.type,G)}}else G.brush(D,!1,this.refreshNextFrame);G.__dirty=!1}I&&(I.needTransform&&D.restore(),D.flush&&D.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 C("ZLevel "+_+" has been used already");if(!E($))return void C("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 D=B?B.dom:this._bgDom;D.nextSibling?D.parentNode.insertBefore($.dom,D.nextSibling):D.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],C=A.zlevel,D=$[C];if(D){if(D.elCount++,D.dirty)continue;D.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 D=this;this.storage.iterShape(function(_){if(!_.invisible&&(!_.onbrush||_.onbrush&&!_.onbrush(A,!1)))if(B.catchBrushException){try{_.brush(A,!1,D.refreshNextFrame)}catch($){C($,"brush error of "+_.type,_)}}else _.brush(A,!1,D.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 D=this.getLayer(_.zlevel);if(D.needTransform&&($.save(),D.setTransform($)),B.catchBrushException){try{_.brush($,!0,this.refreshNextFrame)}catch(A){C(A,"hoverBrush error of "+_.type,_)}}else _.brush($,!0,this.refreshNextFrame);D.needTransform&&$.restore()}},F.prototype._shapeToImage=function(A,I,F,C,B){var D=document.createElement("canvas"),E=D.getContext("2d");D.style.width=F+"px",D.style.height=C+"px",D.setAttribute("width",F*B),D.setAttribute("height",C*B),E.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(E,!1);var G=_("./shape/Image"),$=new G({id:A,style:{x:0,y:0,image:D}});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}),D("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"),D=L("./tool/env"),E=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,D=!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,D=!0,E.stop(A)}}),D&&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=E.getX(A),this._mouseY=E.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 D="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&&(D="move",$.position[0]+=G,$.position[1]+=F,B=!0,$.dirty=!0)}),B&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?D="move":this._hasfound&&this._lastHover.clickable&&(D="pointer"),this.root.style.cursor=D,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&&E.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&&E.stop(A)),this._lastClickMoment=B),this.painter.clearHover()}}},P=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),D.os.tablet||D.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))};P.prototype.on=function(_,$,A){return this.bind(_,$,A),this},P.prototype.un=function(_,$){return this.unbind(_,$),this},P.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)}},P.prototype.dispose=function(){var $=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),D.os.tablet||D.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()},P.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()}},P.prototype._processDragEnter=function($){this._draggingTarget&&this._dispatchAgency(this._lastHover,C.DRAGENTER,$,this._draggingTarget)},P.prototype._processDragOver=function($){this._draggingTarget&&this._dispatchAgency(this._lastHover,C.DRAGOVER,$,this._draggingTarget)},P.prototype._processDragLeave=function($){this._draggingTarget&&this._dispatchAgency(this._lastHover,C.DRAGLEAVE,$,this._draggingTarget)},P.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))},P.prototype._processDragEnd=function($){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,C.DRAGEND,$),this._lastHover=null),this._isDragging=0,this._draggingTarget=null},P.prototype._processOverShape=function($){this._dispatchAgency(this._lastHover,C.MOUSEOVER,$)},P.prototype._processOutShape=function($){this._dispatchAgency(this._lastHover,C.MOUSEOUT,$)},P.prototype._dispatchAgency=function(_,$,F,E){var B="on"+$,A={type:$,event:F,target:_,cancelBubble:!1},C=_;for(E&&(A.dragged=E);C&&(C[B]&&(A.cancelBubble=C[B](A)),C.dispatch($,A),C=C.parent,!A.cancelBubble););if(_)A.cancelBubble||this.dispatch($,A);else if(!E){var D={type:$,event:F};this.dispatch($,D),this.painter.eachOtherLayer(function(_){"function"==typeof _[B]&&_[B](D),_.dispatch&&_.dispatch($,D)})}},P.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 H=[{x:10},{x:-20},{x:10,y:10},{y:-20}];return P.prototype._mobileFindFixed=function(_){this._lastHover=null,this._mouseX=_.zrenderX,this._mouseY=_.zrenderY,this._event=_,this._iterateAndFindHover();for(var $=0;!this._lastHover&&$<H.length;$++){var A=H[$];A.x&&(this._mouseX+=A.x),A.y&&(this._mouseY+=A.y),this._iterateAndFindHover()}this._lastHover&&(_.zrenderX=this._mouseX,_.zrenderY=this._mouseY)},P.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(P.prototype,O.prototype,!0),P}),D("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 C=_.length;if(1==A){for(var D=0;C>D;D++)B[D]=F(_[D],$[D],H)}else for(var G=_[0].length,D=0;C>D;D++)for(var E=0;G>E;E++)B[D][E]=F(_[D][E],$[D][E],H)}function M($){switch(typeof $){case"undefined":case"string":return!1}return"undefined"!=typeof $.length}function D(I,_,G,C,K,J,B,F,D){var $=I.length;if(1==D){for(var A=0;$>A;A++)F[A]=E(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]=E(I[A][H],_[A][H],G[A][H],C[A][H],K,J,B)}function E(_,$,G,E,B,A,C){var D=0.5*(G-_),F=0.5*(E-$);return(2*($-G)+D+F)*C+(-3*($-G)-2*D-F)*A+D*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,P=function($){$=$||{},this.stage=$.stage||{},this.onframe=$.onframe||function(){},this._clips=[],this._running=!1,this._time=0,K.call(this)};P.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=[],C=0;E>C;C++){var D=G[C];D.__inStep=!0;var F=D.step(_);D.__inStep=!1,F&&(B.push(F),A.push(D))}for(C=0;E>C;)G[C].__needsRemove?(G[C]=G[E-1],G.pop(),E--):C++;E=B.length;for(C=0;E>C;C++)A[C].fire(B[C]);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 H(_,$.loop,$.getter,$.setter);return A.animation=this,A},constructor:P},O.merge(P.prototype,K.prototype,!0);var H=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 H.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 h=P.length;if(h){var W=P[0].value,f=M(W),a=!1,i=f&&M(W[0])?2:1;P.sort(function(_,$){return _.time-$.time});var Q;if(h){Q=P[h-1].time;for(var d=[],b=[],g=0;h>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 Z,g,T,U,R,O,Y,X=0,V=0;if(a)var c=[0,0,0,0];var e=function(A,B){if(V>B){for(Z=Math.min(X+1,h-1),g=Z;g>=0&&!(d[g]<=B);g--);g=Math.min(g,h-2)}else{for(g=X;h>g&&!(d[g]>B);g++);g=Math.min(g-1,h-2)}X=g,V=B;var $=d[g+1]-d[g];if(0!==$){if(T=(B-d[g])/$,J){if(R=b[g],U=b[0===g?g:g-1],O=b[g>h-2?h-1:g+1],Y=b[g>h-3?h-1:g+2],f)D(U,R,O,Y,T,T*T,T*T*T,K(A,_),i);else{var C;a?(C=D(U,R,O,Y,T,T*T,T*T*T,c,1),C=G(c)):C=E(U,R,O,Y,T,T*T,T*T*T),L(A,_,C)}}else if(f)N(b[g],b[g+1],T,K(A,_),i);else{C;a?(N(b[g],b[g+1],T,c,1),C=G(c)):C=F(b[g],b[g+1],T),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}},P}),D("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}),D("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 G=C.x,H=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=G+K*D(F),L=H+K*E(F);F+=A;var _=C.pointList=[];_.push([O,L]);for(var $,P=0,J=2*N-1;J>P;P++)$=P%2===0?I:K,_.push([G+$*D(F),H+$*E(F)]),F+=A;_.push([O,L]),M.moveTo(_[0][0],_[0][1]);for(P=0;P<_.length;P++)M.lineTo(_[P][0],_[P][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}),D("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}),D("zrender/shape/util/smoothSpline",["require","../../tool/vector"],function(_){function $(_,$,G,E,B,A,C){var D=0.5*(G-_),F=0.5*(E-$);return(2*($-G)+D+F)*C+(-3*($-G)-2*D-F)*A+D*B+$}var A=_("../../tool/vector");return function(L,G){for(var N=L.length,M=[],E=0,F=1;N>F;F++)E+=A.distance(L[F-1],L[F]);var J=E/5;J=N>J?N:J;for(F=0;J>F;F++){var H,C,D,O=F/(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 P=B*B,I=B*P;M.push([$(H[0],_[0],C[0],D[0],B,P,I),$(H[1],_[1],C[1],D[1],B,P,I)])}return M}}),D("zrender/shape/util/smoothBezier",["require","../../tool/vector"],function(_){var $=_("../../tool/vector");return function(N,K,G,P){var O,E,F,J,H=[],B=[],D=[],Q=[],M=!!P;if(M){F=[1/0,1/0],J=[-1/0,-1/0];for(var A=0,_=N.length;_>A;A++)$.min(F,F,N[A]),$.max(J,J,N[A]);$.min(F,F,P[0]),$.max(J,J,P[1])}for(A=0,_=N.length;_>A;A++){var O,E,S=N[A];if(G)O=N[A?A-1:_-1],E=N[(A+1)%_];else{if(0===A||A===_-1){H.push($.clone(N[A]));continue}O=N[A-1],E=N[A+1]}$.sub(B,E,O),$.scale(B,B,K);var I=$.distance(S,O),R=$.distance(S,E),L=I+R;0!==L&&(I/=L,R/=L),$.scale(D,B,-I),$.scale(Q,B,R);var T=$.add([],S,D),C=$.add([],S,Q);M&&($.max(T,T,F),$.min(T,T,J),$.max(C,C,F),$.min(C,C,J)),H.push(T),H.push(C)}return G&&H.push($.clone(H.shift())),H}}),D("zrender/shape/util/dashedLineTo",[],function(){var $=[5,5];return function(A,J,G,D,B,E){if(A.setLineDash)return $[0]=$[1]=E,A.setLineDash($),A.moveTo(J,G),void A.lineTo(D,B);E="number"!=typeof E?5:E;var F=D-J,I=B-G,H=Math.floor(Math.sqrt(F*F+I*I)/E);F/=H,I/=H;for(var _=!0,C=0;H>C;++C)_?A.moveTo(J,G):A.lineTo(J,G),_=!_,J+=F,G+=I;A.lineTo(D,B)}}),D("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}},$}),D("zrender/Layer",["require","./mixin/Transformable","./tool/util","./config"],function(_){function $(){return!1}function F(_,$,E){var D=document.createElement($),B=E.getWidth(),A=E.getHeight();return D.style.position="absolute",D.style.left=0,D.style.top=0,D.style.width=B+"px",D.style.height=A+"px",D.width=B*C.devicePixelRatio,D.height=A*C.devicePixelRatio,D.setAttribute("data-zr-dom-id",_),D}var E=_("./mixin/Transformable"),B=_("./tool/util"),A=window.G_vmlCanvasManager,C=_("./config"),D=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=C.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 D.prototype.initContext=function(){this.ctx=this.dom.getContext("2d");var $=C.devicePixelRatio;1!=$&&this.ctx.scale($,$)},D.prototype.createBackBuffer=function(){if(!A){this.domBack=F("back-"+this.id,"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d");var $=C.devicePixelRatio;1!=$&&this.ctxBack.scale($,$)}},D.prototype.resize=function(_,$){var A=C.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))},D.prototype.clear=function(){var B=this.dom,_=this.ctx,I=B.width,F=B.height,D=this.clearColor&&!A,E=this.motionBlur&&!A,H=this.lastFrameAlpha,G=C.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),D&&(_.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(D.prototype,E.prototype),D}),D("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}),D("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 D=0;6>D;D+=2)A[0]=Math.min(A[0],A[0],B[D]),A[1]=Math.min(A[1],A[1],B[D+1]),I[0]=Math.max(I[0],I[0],B[D]),I[1]=Math.max(I[1],I[1],B[D+1]);break;case"Q":for(D=0;4>D;D+=2)A[0]=Math.min(A[0],A[0],B[D]),A[1]=Math.min(A[1],A[1],B[D+1]),I[0]=Math.max(I[0],I[0],B[D]),I[1]=Math.max(I[1],I[1],B[D+1]);break;case"A":var E=B[0],H=B[1],G=B[2],_=B[3];A[0]=Math.min(A[0],A[0],E-G),A[1]=Math.min(A[1],A[1],H-_),I[0]=Math.max(I[0],I[0],E+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}),D("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:$},$}),D("echarts/util/shape/normalIsCover",[],function(){return function(_,$){var A=this.transformCoordToLocal(_,$);return _=A[0],$=A[1],this.isCoverRect(_,$)}}),D("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 $}),D("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 D=Math.floor((F+C)/2);D=B(_,F,C,D,function(_,$){return _.array[A]-$.array[A]});var E=_[D],G=new $(A,E);return A=(A+1)%this.dimension,C>F&&(G.left=this._buildTree(_,F,D-1,A),G.right=this._buildTree(_,D+1,C,A)),G},A.prototype.nearest=function(_,$){var H=this.root,E=this._stack,B=0,A=1/0,C=null;for(H.data!==_&&(A=$(H.data,_),C=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 D=_.array[H.axis]-H.data.array[H.axis],G=0>D,F=!1;D*=D,A>D&&(D=$(H.data,_),A>D&&H.data!==_&&(A=D,C=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 C.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,B=0,C=this._nearstNList,F=0;_>F;F++)C[F]||(C[F]={}),C[F].dist=0,C[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[B++]=J.right),J.left&&(I[B++]=J.left)):(J.left&&(I[B++]=J.left),J.right&&(I[B++]=J.right));B--;){J=I[B];var E=H.array[J.axis]-J.data.array[J.axis],A=0>E,K=!1;E*=E,(_>$||E<C[$-1].dist)&&(E=G(J.data,H),(_>$||E<C[$-1].dist)&&J.data!==H&&(_>$&&$++,this._addNearest($,E,J)),K=!0),A?(K&&J.right&&(I[B++]=J.right),J.left&&(I[B++]=J.left)):(K&&J.left&&(I[B++]=J.left),J.right&&(I[B++]=J.right))}for(F=0;$>F;F++)D[F]=C[F].node.data;return D.length=$,D},A}),D("echarts/data/quickSelect",["require"],function(){function _(_,$){return _-$}function $(_,$,B){var A=_[$];_[$]=_[B],_[B]=A}function B(_,G,E,B,A){for(var C=G;E>G;){var C=Math.round((E+G)/2),D=_[C];$(_,C,E),C=G;for(var F=G;E-1>=F;F++)A(D,_[F])>=0&&($(_,F,C),C++);if($(_,E,C),C===B)return C;B>C?G=C+1:E=C-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}),D("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}}),D("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,C,D){if(!D||0===D.length)return void console.err("option.series.length == 0.");G.call(this,_,$,E,B,A),this.series=D,this.grid=this.component.grid;for(var F in C)this[F]=C[F];this.refresh(B,D)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("zrender/shape/Line"),A=_("zrender/shape/Rectangle"),C=_("../config");C.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 D=_("../util/date"),F=_("zrender/tool/util");return $.prototype={type:C.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,C=E.lineStyle.color,D=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(_[$]),D),I={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:G,yStart:F,xEnd:G,yEnd:F+J,strokeColor:C,lineWidth:D}},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(_[$]),D),I={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:K,yStart:A,xEnd:K+J,yEnd:A,strokeColor:C,lineWidth:D}},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,B=this.option.axisLabel.clickable,C=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 C.color?C.color(_[$]):C.color,text:this._valueLabel[$],textFont:this.getFont(C),textAlign:C.align||"center",textBaseline:C.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(B,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 C.color?C.color(_[$]):C.color,text:this._valueLabel[$],textFont:this.getFont(C),textAlign:C.align||K,textBaseline:C.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(B,H)))}},_buildSplitLine:function(){var L,C=this._valueList,J=this._valueList.length,G=this.option.splitLine,M=G.lineStyle.type,E=G.lineStyle.width,F=G.lineStyle.color;F=F instanceof Array?F:[F];var I=F.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]),E),L={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:H,yStart:A,xEnd:H,yEnd:D,strokeColor:F[N%I],lineType:M,lineWidth:E}},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]),E),L={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:_,yStart:K,xEnd:$,yEnd:K,strokeColor:F[N%I],lineType:M,lineWidth:E}},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 D,E=this.grid.getY(),H=this.grid.getHeight(),G=this.grid.getX(),_=0;L>=_;_++)D=L>_?this.getCoord(F[_]):this.grid.getXend(),K={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:G,y:E,width:D-G,height:H,color:B[_%I]}},this.shapeList.push(new A(K)),G=D}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!=C.CHART_TYPE_LINE&&this.series[E].type!=C.CHART_TYPE_BAR&&this.series[E].type!=C.CHART_TYPE_SCATTER&&this.series[E].type!=C.CHART_TYPE_K&&this.series[E].type!=C.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],D=Math.abs(this._max-this._min);this._min=isNaN(this.option.min-0)?this._min-Math.abs(D*$[0]):this.option.min-0,this._max=isNaN(this.option.max-0)?this._max+Math.abs(D*$[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!=C.CHART_TYPE_EVENTRIVER){B=this.series[_].data;for(E=0,$=B.length;$>E;E++)G=this.getDataFromOption(B[E]),this.series[_].type===C.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]:D.getNewDate(G[0])),-1!=this.option.yAxisIndex&&I[K].push("time"!=this.option.type?G[1]:D.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(D.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,$=D.getAutoFormatter(this._min,this._max,_),C=$.formatter,B=$.gapValue;this._valueList=[D.getNewDate(this._min)];var A;switch(C){case"week":A=D.nextMonday(this._min);break;case"month":A=D.nextNthOnMonth(this._min,1);break;case"quarter":A=D.nextNthOnQuarterYear(this._min,1);break;case"half-year":A=D.nextNthOnHalfYear(this._min,1);break;case"year":A=D.nextNthOnYear(this._min,1);break;default:7200000>=B?A=(Math.floor(this._min/B)+1)*B:(A=D.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),$=D.getNewDate(A),_*=1.5;_-->=0&&(("month"==C||"quarter"==C||"half-year"==C||"year"==C)&&$.setDate(1),!(this._max-$<B/2));)this._valueList.push($),$=D.getNewDate($- -B);this._valueList.push(D.getNewDate(this._max)),this._reformLabelData(function($){return function(_){return D.format($,_)}}(C))},_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(_?D.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",$),$}),D("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,E,F=[],H="";if(this.option.xAxis)for(F=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],A=0,D=F.length;D>A;A++)if("category"==(F[A].type||"category")){for(E=[],_=0,I=F[A].data.length;I>_;_++)E.push(this.getDataFromOption(F[A].data[_]));H+=E.join(", ")+"\n\n"}if(this.option.yAxis)for(F=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],A=0,D=F.length;D>A;A++)if("category"==F[A].type){for(E=[],_=0,I=F[A].data.length;I>_;_++)E.push(this.getDataFromOption(F[A].data[_]));H+=E.join(", ")+"\n\n"}var G,$=this.option.series;for(A=0,D=$.length;D>A;A++){for(E=[],_=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(", ")),E.push(G+this.getDataFromOption(C));H+=($[A].name||"-")+" : \n",H+=E.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,F,G,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(G=A[$].split(","),J=0,E=H[_].data.length;E>J;J++)I=this._trim(G[J]||""),F=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(G=A[$].split(","),J=0,E=H[_].data.length;E>J;J++)I=this._trim(G[J]||""),F=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++)G=A[$],I=G.replace(" ","").split(","),"undefined"!=typeof D[_].data[J].value?D[_].data[J].value=I:D[_].data[J]=I,$++}else{G=A[$].split(",");for(J=0,E=D[_].data.length;E>J;J++)I=(G[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",$),$}),D("zrender/tool/computeBoundingBox",["require","./vector","./curve"],function(_){function $(_,$,G){if(0!==_.length){for(var E=_[0][0],B=_[0][0],A=_[0][1],C=_[0][1],D=1;D<_.length;D++){var F=_[D];F[0]<E&&(E=F[0]),F[0]>B&&(B=F[0]),F[1]<A&&(A=F[1]),F[1]>C&&(C=F[1])}$[0]=E,$[1]=A,G[0]=B,G[1]=C}}function H(J,_,H,E,K,C){var D=[];A.cubicExtrema(J[0],_[0],H[0],E[0],D);for(var G=0;G<D.length;G++)D[G]=A.cubicAt(J[0],_[0],H[0],E[0],D[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]);D.push(J[0],E[0]),F.push(J[1],E[1]);var $=Math.min.apply(null,D),B=Math.max.apply(null,D),L=Math.min.apply(null,F),I=Math.max.apply(null,F);K[0]=$,K[1]=L,C[0]=B,C[1]=I}function E(J,_,H,E,K){var C=A.quadraticExtremum(J[0],_[0],H[0]),D=A.quadraticExtremum(J[1],_[1],H[1]);C=Math.max(Math.min(C,1),0),D=Math.max(Math.min(D,1),0);var G=1-C,F=1-D,$=G*G*J[0]+2*G*C*_[0]+C*C*H[0],B=G*G*J[1]+2*G*C*_[1]+C*C*H[1],L=F*F*J[0]+2*F*D*_[0]+D*D*H[0],I=F*F*J[1]+2*F*D*_[1]+D*D*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"),C=B.create(),D=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(C[0]=Math.cos(J)*L+E,C[1]=Math.sin(J)*L+A,D[0]=Math.cos(F)*L+E,D[1]=Math.sin(F)*L+A,B.min(_,C,D),B.max(H,C,D),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,$}),D("echarts/util/smartSteps",[],function(){function W(_){return T.log($(_))/T.LN10}function J($){return T.pow(10,$)}function S($){return $===C($)}function O(_,$,I,G){U=G||{},c=U.steps||a,K=U.secs||A,I=B(+I||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 C=$-_;if(E&&D)return F(_,$,I);if((I||5)>C){if(S(_)&&S($))return V(_,$,I);if(0===C)return H(_,$,I)}return P(_,$,I)}function Y(C,N,H,E){E=E||0;var G=X((N-C)/H,-1),L=X(C,-1,1),I=X(N,-1),B=T.min(G.e,L.e,I.e);0===L.c?B=T.min(G.e,I.e):0===I.c&&(B=T.min(G.e,L.e)),M(G,{c:0,e:B}),M(L,G,1),M(I,G),E+=B,C=L.c,N=I.c;for(var D=(N-C)/H,F=J(E),A=0,_=[],$=H+1;$--;)_[$]=(C+D*$)*F;if(0>E){A=b(F),D=+(D*F).toFixed(A),C=+(C*F).toFixed(A),N=+(N*F).toFixed(A);for($=_.length;$--;)_[$]=_[$].toFixed(A),0===+_[$]&&(_[$]="0")}else C*=F,N*=F,D*=F;return K=0,c=0,U=0,{min:C,max:N,secs:H,step:D,fix:A,exp:E,pnts:_}}function X(G,D,A){D=B(D%10)||2,0>D&&(S(G)?D=(""+$(G)).replace(/0+$/,"").length||1:(G=G.toFixed(15).replace(/0+$/,""),D=G.replace(".","").replace(/^[-0]+/,"").length,G=+G));var E=C(W(G))-D+1,F=+(G*J(-E)).toFixed(15)||0;return F=A?C(F):_(F),!F&&(E=0),(""+$(F)).length>D&&(E+=1,F/=10),{c:F,e:E}}function M($,D,B){var A=D.e-$.e;A&&($.e+=A,$.c*=J(-A),$.c=B?C($.c):_($.c))}function N(_,$,A){_.e<$.e?M($,_,A):M(_,$,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,F){var C,J=F||+K.slice(-1),_=R((A-B)/J,c),O=X(A-B),H=X(B,-1,1),$=X(A,-1);if(M(O,_),M(H,_,1),M($,_),F?C=L(H,$,J):J=I(H,$),S(B)&&S(A)&&B*A>=0){if(J>A-B)return V(B,A,J);J=Z(B,A,F,H,$,J)}var N=G(B,A,H.c,$.c);return H.c=N[0],$.c=N[1],(E||D)&&Q(B,A,H,$),Y(H.c,$.c,J,$.e)}function I($,H){for(var F,B,A,D,E=[],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,D=_(H.c/B)*B,E[G]={min:A,max:D,step:B,span:D-A};return E.sort(function(_,$){var A=_.span-$.span;return 0===A&&(A=_.step-$.step),A}),E=E[0],F=E.span/E.step,$.c=E.min,H.c=E.max,3>F?2*F:F}function L(A,K,H){for(var E,C,F=K.c,G=(K.c-A.c)/H-1;F>A.c;)G=R(G+1,c),G=G.c*J(G.e),E=G*H,C=_(K.c/G)*G,F=C-E;var I=A.c-F,$=C-K.c,D=I-$;return D>1.1*G&&(D=B(D/G/2)*G,F+=D,C+=D),A.c=F,K.c=C,G}function Z(_,G,D,A,E,F){var I=E.c-A.c,H=I/F*J(E.e);if(!S(H)&&(H=C(H),I=H*F,G-_>I&&(H+=1,I=H*F,!D&&H*(F-1)>=G-_&&(F-=1,I=H*F)),I>=G-_)){var $=I-(G-_);A.c=B(_-$/2),E.c=B(G+$/2),A.e=0,E.e=0}return F}function V(_,$,I){if(I=I||5,E)$=_+I;else if(D)_=$-I;else{var H=I-($-_),A=B(_-H/2),C=B($+H/2),F=G(_,$,A,C);_=F[0],$=F[1]}return Y(_,$,I)}function H(A,_,C){C=C||5;var B=T.min($(_/C),C)/2.1;return E?_=A+B:D?A=_-B:(A-=B,_+=B),P(A,_,C)}function G(_,$,B,A){return _>=0&&0>B?(A-=B,B=0):0>=$&&A>0&&(B-=A,A=0),[B,A]}function b($){return $=(+$).toFixed(15).split("."),$.pop().replace(/0+$/,"").length}function Q(_,$,F,C){if(E){var A=X(_,4,1);F.e-A.e>6&&(A={c:0,e:F.e}),N(F,A),N(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}),N(F,B),N(C,B),F.c+=B.c-C.c,C.c=B.c}}function F(P,E,N){var H=N?[N]:K,G=E-P;if(0===G)return E=X(E,3),N=H[0],E.c=B(E.c+N/2),Y(E.c-N,E.c,N,E.e);$(E/G)<0.000001&&(E=0),$(P/G)<0.000001&&(P=0);var L,I,D,F=[[5,10],[10,2],[50,10],[100,2]],Q=[],O=[],C=X(E-P,3),A=X(P,-1,1),S=X(E,-1);M(A,C,1),M(S,C),G=S.c-A.c,C.c=G;for(var J=H.length;J--;){N=H[J],L=_(G/N),I=L*N-G,D=3*(I+3),D+=2*(N-H[0]+2),N%5===0&&(D-=10);for(var R=F.length;R--;)L%F[R][0]===0&&(D/=F[R][1]);O[J]=[N,L,I,D].join(),Q[J]={secs:N,step:L,delta:I,score:D}}return Q.sort(function(_,$){return _.score-$.score}),Q=Q[0],A.c=B(A.c-Q.delta/2),S.c=B(S.c+Q.delta/2),Y(A.c,S.c,Q.secs,C.e)}var U,c,K,E,D,a=[10,20,25,50],A=[4,5,6],T=Math,B=T.round,C=T.floor,_=T.ceil,$=T.abs;return O}),D("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,C){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 D in C)this[D]=C[D];this.refresh(B)}var G=_("./base"),E=_("zrender/shape/Text"),B=_("zrender/shape/Line"),A=_("zrender/shape/Rectangle"),C=_("../config");C.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 D=_("zrender/tool/util"),F=_("zrender/tool/area");return $.prototype={type:C.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,C=this.getGap(),G=!1,_=Math.floor(0.5/C);for(_=1>_?1:_,J=Math.floor(15/C);!G&&E>J;){J+=_,G=!0,L=Math.floor(C*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(D.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){C=this.getGap();for(J=Math.floor(11/C);A>C*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,E=G.lineStyle.color,F=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),F),M={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:L,yStart:_,xEnd:L,yEnd:_+N,strokeColor:E,lineWidth:F}},this.shapeList.push(new B(M)))}else for(var P,I="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[$]))&&(P=this.subPixelOptimize(this.getCoordByIndex($)-($>=0?D:0),F),M={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:I,yStart:P,xEnd:I+N,yEnd:P,strokeColor:E,lineWidth:F}},this.shapeList.push(new B(M)))},_buildAxisLabel:function(){var K,B,I=this.option.data,M=this.option.data.length,L=this.option.axisLabel,F=L.rotate,H=L.margin,G=L.clickable,A=L.textStyle,C="function"==typeof L.interval?L.interval:!1;if(this.isHorizontal()){var N,J;"bottom"==this.option.position?(N=this.grid.getYend()+H,J="top"):(N=this.grid.getY()-H,J="bottom");for(var _=0;M>_;_+=this._interval)C&&!C(_,I[_])||""===this._getReformedLabel(_)||(B=D.merge(I[_].textStyle||{},A),K={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoordByIndex(_),y:N,color:B.color,text:this._getReformedLabel(_),textFont:this.getFont(B),textAlign:B.align||"center",textBaseline:B.baseline||J}},F&&(K.style.textAlign=F>0?"bottom"==this.option.position?"right":"left":"bottom"==this.option.position?"left":"right",K.rotation=[F*Math.PI/180,K.style.x,K.style.y]),this.shapeList.push(new E(this._axisLabelClickable(G,K))))}else{var $,O;"left"==this.option.position?($=this.grid.getX()-H,O="right"):($=this.grid.getXend()+H,O="left");for(_=0;M>_;_+=this._interval)C&&!C(_,I[_])||""===this._getReformedLabel(_)||(B=D.merge(I[_].textStyle||{},A),K={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||O,textBaseline:B.baseline||0===_&&""!==this.option.name?"bottom":_==M-1&&""!==this.option.name?"top":"middle"}},F&&(K.rotation=[F*Math.PI/180,K.style.x,K.style.y]),this.shapeList.push(new E(this._axisLabelClickable(G,K))))}},_buildSplitLine:function(){var M,C=this.option.data,K=this.option.data.length,G=this.option.splitLine,N=G.lineStyle.type,E=G.lineStyle.width,F=G.lineStyle.color;F=F instanceof Array?F:[F];var J=F.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,E),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:O,yStart:L,xEnd:O,yEnd:_,strokeColor:F[$/this._interval%J],lineType:N,lineWidth:E}},this.shapeList.push(new B(M)))}else for(var Q,I=this.grid.getX(),P=this.grid.getXend(),$=0;K>$;$+=this._interval)(!H||H($,C[$]))&&(Q=this.subPixelOptimize(this.getCoordByIndex($)-D,E),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:I,yStart:Q,xEnd:P,yEnd:Q,strokeColor:F[$/this._interval%J],lineType:N,lineWidth:E}},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,E=this.option.data.length,F="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;E>=_;_+=this._interval)F&&!F(_,C[_])&&E>_||(B=E>_?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 $,Q=this.grid.getX(),I=this.grid.getWidth(),P=this.grid.getYend(),_=0;E>=_;_+=this._interval)F&&!F(_,C[_])&&E>_||($=E>_?this.getCoordByIndex(_)-H:this.grid.getY(),M={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:Q,y:$,width:I,height:P-$,color:G[_/this._interval%N]}},this.shapeList.push(new A(M)),P=$)}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}},D.inherits($,G),_("../component").define("categoryAxis",$),$}),D("echarts/layout/forceLayoutWorker",["require","zrender/tool/vector"],function A(_){"use strict";function $(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new G(4),this.size=0}function H(){this.position=C.create(),this.force=C.create(),this.forcePrev=C.create(),this.speed=C.create(),this.speedPrev=C.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function E(_,$){this.node1=_,this.node2=$,this.weight=1}function B(){this.barnesHutOptimize=!1,this.barnesHutTheta=1.5,this.repulsionByDegree=!1,this.preventNodeOverlap=!1,this.preventNodeEdgeOverlap=!1,this.strongGravity=!0,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.center=[0,0],this.width=500,this.height=500,this.maxSpeedIncrease=1,this.nodes=[],this.edges=[],this.bbox=new G(4),this._rootRegion=new $,this._rootRegion.centerOfMass=C.create(),this._massArr=null,this._k=0}var C,D="undefined"==typeof window&&"undefined"==typeof _;C=D?{create:function(_,$){var A=new Float32Array(2);return A[0]=_||0,A[1]=$||0,A},dist:function(_,$){var B=$[0]-_[0],A=$[1]-_[1];return Math.sqrt(B*B+A*A)},len:function(_){var $=_[0],A=_[1];return Math.sqrt($*$+A*A)},scaleAndAdd:function(_,$,B,A){return _[0]=$[0]+B[0]*A,_[1]=$[1]+B[1]*A,_},scale:function(_,$,A){return _[0]=$[0]*A,_[1]=$[1]*A,_},add:function(_,$,A){return _[0]=$[0]+A[0],_[1]=$[1]+A[1],_},sub:function(_,$,A){return _[0]=$[0]-A[0],_[1]=$[1]-A[1],_},dot:function(_,$){return _[0]*$[0]+_[1]*$[1]},normalize:function(_,$){var C=$[0],B=$[1],A=C*C+B*B;return A>0&&(A=1/Math.sqrt(A),_[0]=$[0]*A,_[1]=$[1]*A),_},negate:function(_,$){return _[0]=-$[0],_[1]=-$[1],_},copy:function(_,$){return _[0]=$[0],_[1]=$[1],_},set:function(_,$,A){return _[0]=$,_[1]=A,_}}:_("zrender/tool/vector");var G="undefined"==typeof Float32Array?Array:Float32Array;if($.prototype.beforeUpdate=function(){for(var $=0;$<this.nSubRegions;$++)this.subRegions[$].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},$.prototype.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var $=0;$<this.nSubRegions;$++)this.subRegions[$].afterUpdate()},$.prototype.addNode=function($){if(0===this.nSubRegions){if(null==this.node)return void(this.node=$);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion($),this._updateCenterOfMass($)},$.prototype.findSubRegion=function(_,$){for(var B=0;B<this.nSubRegions;B++){var A=this.subRegions[B];if(A.contain(_,$))return A}},$.prototype.contain=function(_,$){return this.bbox[0]<=_&&this.bbox[2]>=_&&this.bbox[1]<=$&&this.bbox[3]>=$},$.prototype.setBBox=function(_,$,B,A){this.bbox[0]=_,this.bbox[1]=$,this.bbox[2]=B,this.bbox[3]=A,this.size=(B-_+A-$)/2},$.prototype._newSubRegion=function(){var _=this.subRegions[this.nSubRegions];return _||(_=new $,this.subRegions[this.nSubRegions]=_),this.nSubRegions++,_},$.prototype._addNodeToSubRegion=function(_){var $=this.findSubRegion(_.position[0],_.position[1]),G=this.bbox;if(!$){var E=(G[0]+G[2])/2,B=(G[1]+G[3])/2,A=(G[2]-G[0])/2,C=(G[3]-G[1])/2,D=_.position[0]>=E?1:0,F=_.position[1]>=B?1:0,$=this._newSubRegion();$.setBBox(D*A+G[0],F*C+G[1],(D+1)*A+G[0],(F+1)*C+G[1])}$.addNode(_)},$.prototype._updateCenterOfMass=function(_){null==this.centerOfMass&&(this.centerOfMass=C.create());var $=this.centerOfMass[0]*this.mass,A=this.centerOfMass[1]*this.mass;$+=_.position[0]*_.mass,A+=_.position[1]*_.mass,this.mass+=_.mass,this.centerOfMass[0]=$/this.mass,this.centerOfMass[1]=A/this.mass},B.prototype.nodeToNodeRepulsionFactor=function(_,$,A){return A*A*_/$},B.prototype.edgeToNodeRepulsionFactor=function(_,$,A){return A*_/$},B.prototype.attractionFactor=function(_,$,A){return _*$/A},B.prototype.initNodes=function(_,$,E){this.temperature=1;var B=_.length/2;this.nodes.length=0;for(var A="undefined"!=typeof E,C=0;B>C;C++){var D=new H;D.position[0]=_[2*C],D.position[1]=_[2*C+1],D.mass=$[C],A&&(D.size=E[C]),this.nodes.push(D)}this._massArr=$,A&&(this._sizeArr=E)},B.prototype.initEdges=function(A,_){var I=A.length/2;this.edges.length=0;for(var C="undefined"!=typeof _,B=0;I>B;B++){var D=A[2*B],F=A[2*B+1],H=this.nodes[D],G=this.nodes[F];if(H&&G){H.outDegree++,G.inDegree++;var $=new E(H,G);C&&($.weight=_[B]),this.edges.push($)}}},B.prototype.update=function(){var _=this.nodes.length;if(this.updateBBox(),this._k=0.4*this.scaling*Math.sqrt(this.width*this.height/_),this.barnesHutOptimize){this._rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this._rootRegion.beforeUpdate();for(var $=0;_>$;$++)this._rootRegion.addNode(this.nodes[$]);this._rootRegion.afterUpdate()}else{var D=0,B=this._rootRegion.centerOfMass;C.set(B,0,0);for($=0;_>$;$++){var A=this.nodes[$];D+=A.mass,C.scaleAndAdd(B,B,A.position,A.mass)}D>0&&C.scale(B,B,1/D)}this.updateForce(),this.updatePosition()},B.prototype.updateForce=function(){for(var _=this.nodes.length,$=0;_>$;$++){var A=this.nodes[$];C.copy(A.forcePrev,A.force),C.copy(A.speedPrev,A.speed),C.set(A.force,0,0)}this.updateNodeNodeForce(),this.gravity>0&&this.updateGravityForce(),this.updateEdgeForce(),this.preventNodeEdgeOverlap&&this.updateNodeEdgeForce()},B.prototype.updatePosition=function(){for(var A=this.nodes.length,_=C.create(),I=0;A>I;I++){var F=this.nodes[I],D=F.speed;C.scale(F.force,F.force,1/30);var B=C.len(F.force)+0.1,E=Math.min(B,500)/B;C.scale(F.force,F.force,E),C.add(D,D,F.force),C.scale(D,D,this.temperature),C.sub(_,D,F.speedPrev);var H=C.len(_);if(H>0){C.scale(_,_,1/H);var G=C.len(F.speedPrev);G>0&&(H=Math.min(H/G,this.maxSpeedIncrease)*G,C.scaleAndAdd(D,F.speedPrev,_,H))}var $=C.len(D),E=Math.min($,100)/($+0.1);C.scale(D,D,E),C.add(F.position,F.position,D)}},B.prototype.updateNodeNodeForce=function(){for(var _=this.nodes.length,$=0;_>$;$++){var C=this.nodes[$];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this._rootRegion,C);else for(var B=$+1;_>B;B++){var A=this.nodes[B];this.applyNodeToNodeRepulsion(C,A,!1)}}},B.prototype.updateGravityForce=function(){for(var $=0;$<this.nodes.length;$++)this.applyNodeGravity(this.nodes[$])},B.prototype.updateEdgeForce=function(){for(var $=0;$<this.edges.length;$++)this.applyEdgeAttraction(this.edges[$])},B.prototype.updateNodeEdgeForce=function(){for(var _=0;_<this.nodes.length;_++)for(var $=0;$<this.edges.length;$++)this.applyEdgeToNodeRepulsion(this.edges[$],this.nodes[_])},B.prototype.applyRegionToNodeRepulsion=function(){var $=C.create();return function(_,E){if(_.node)this.applyNodeToNodeRepulsion(_.node,E,!0);else{if(0===_.mass&&0===E.mass)return;C.sub($,E.position,_.centerOfMass);var D=$[0]*$[0]+$[1]*$[1];if(D>this.barnesHutTheta*_.size*_.size){var B=this._k*this._k*(E.mass+_.mass)/(D+1);C.scaleAndAdd(E.force,E.force,$,2*B)}else for(var A=0;A<_.nSubRegions;A++)this.applyRegionToNodeRepulsion(_.subRegions[A],E)}}}(),B.prototype.applyNodeToNodeRepulsion=function(){var $=C.create();return function(_,G,E){if(_!==G&&(0!==_.mass||0!==G.mass)){C.sub($,_.position,G.position);var B=$[0]*$[0]+$[1]*$[1];if(0!==B){var A,D=_.mass+G.mass,F=Math.sqrt(B);C.scale($,$,1/F),this.preventNodeOverlap?(F=F-_.size-G.size,F>0?A=this.nodeToNodeRepulsionFactor(D,F,this._k):0>=F&&(A=this._k*this._k*10*D)):A=this.nodeToNodeRepulsionFactor(D,F,this._k),E||C.scaleAndAdd(_.force,_.force,$,2*A),C.scaleAndAdd(G.force,G.force,$,2*-A)}}}}(),B.prototype.applyEdgeAttraction=function(){var $=C.create();return function(_){var F=_.node1,E=_.node2;C.sub($,F.position,E.position);var B,A=C.len($);B=0===this.edgeWeightInfluence?1:1==this.edgeWeightInfluence?_.weight:Math.pow(_.weight,this.edgeWeightInfluence);var D;if(!(this.preventOverlap&&(A=A-F.size-E.size,0>=A))){D=this.attractionFactor(B,A,this._k);C.scaleAndAdd(F.force,F.force,$,-D),C.scaleAndAdd(E.force,E.force,$,D)}}}(),B.prototype.applyNodeGravity=function(){var $=C.create();return function(_){C.sub($,this.center,_.position),this.width>this.height?$[1]*=this.width/this.height:$[0]*=this.height/this.width;var A=C.len($)/100;this.strongGravity?C.scaleAndAdd(_.force,_.force,$,A*this.gravity*_.mass):C.scaleAndAdd(_.force,_.force,$,this.gravity*_.mass/(A+1))}}(),B.prototype.applyEdgeToNodeRepulsion=function(){var _=C.create(),$=C.create(),A=C.create();return function(H,F){var D=H.node1,G=H.node2;if(D!==F&&G!==F){C.sub(_,G.position,D.position),C.sub($,F.position,D.position);var J=C.len(_);C.scale(_,_,1/J);var I=C.dot(_,$);if(!(0>I||I>J)){C.scaleAndAdd(A,D.position,_,I);var B=C.dist(A,F.position)-F.size,E=this.edgeToNodeRepulsionFactor(F.mass,Math.max(B,0.1),100);C.sub(_,F.position,A),C.normalize(_,_),C.scaleAndAdd(F.force,F.force,_,E),C.scaleAndAdd(D.force,D.force,_,-E),C.scaleAndAdd(G.force,G.force,_,-E)}}}}(),B.prototype.updateBBox=function(){for(var _=1/0,$=1/0,D=-1/0,C=-1/0,B=0;B<this.nodes.length;B++){var A=this.nodes[B].position;_=Math.min(_,A[0]),$=Math.min($,A[1]),D=Math.max(D,A[0]),C=Math.max(C,A[1])}this.bbox[0]=_,this.bbox[1]=$,this.bbox[2]=D,this.bbox[3]=C},B.getWorkerCode=function(){var $=A.toString();return $.slice($.indexOf("{")+1,$.lastIndexOf("return"))},D){var F=null;self.onmessage=function(_){if(_.data instanceof ArrayBuffer){if(!F)return;for(var $=new Float32Array(_.data),H=$.length/2,E=0;H>E;E++){var A=F.nodes[E];A.position[0]=$[2*E],A.position[1]=$[2*E+1]}}else switch(_.data.cmd){case"init":F||(F=new B),F.initNodes(_.data.nodesPosition,_.data.nodesMass,_.data.nodesSize),F.initEdges(_.data.edges,_.data.edgesWeight);break;case"updateConfig":if(F)for(var C in _.data.config)F[C]=_.data.config[C];break;case"update":var D=_.data.steps;if(F){H=F.nodes.length,$=new Float32Array(2*H);F.temperature=_.data.temperature;for(E=0;D>E;E++)F.update(),F.temperature*=_.data.coolDown;for(E=0;H>E;E++){A=F.nodes[E];$[2*E]=A.position[0],$[2*E+1]=A.position[1]}self.postMessage($.buffer,[$.buffer])}else{var G=new Float32Array;self.postMessage(G.buffer,[G.buffer])}}}}return B}),D("echarts/layout/WordCloudRectZero",["require"],function(){function $($){this.defaultOption={type:"RECT"},this._init($)}return $.prototype={RECT:"_calculateRect",_init:function($){this._initOption($),this._initCanvas()},_initOption:function($){for(k in $)this.defaultOption[k]=$[k]},_initCanvas:function(){var _=document.createElement("canvas");_.width=1,_.height=1;var $=Math.sqrt(_.getContext("2d").getImageData(0,0,1,1).data.length>>2);if(_.width=this.defaultOption.width,_.height=this.defaultOption.height,_.getContext)var A=_.getContext("2d");this.canvas=_,this.ctx=A,this.ratio=$},calculate:function(_,$){var B=this.defaultOption.type,A=this[B];this[A].call(this,_,$)},_calculateReturn:function(_,$,A){$.call(A,_)},_calculateRect:function(_,$){var C={},B=this.defaultOption.width>>5<<5,A=this.defaultOption.height;C.initarr=this._rectZeroArray(B*A),C.area=B*A,C.maxHit=A,C.maxWit=B,C.imgboard=this._rectBoard(B,A),this._calculateReturn(C,_,$)},_rectBoard:function(_,$){for(var C=[],B=0;$>B;B++)C.push({y:B,start:0,end:_});for(var A=[],B=0;_>B;B++)A.push({x:B,start:0,end:$});return{row:C,cloumn:A}},_rectZeroArray:function(_){for(var $=[],B=_,A=-1;++A<B;)$[A]=0;return $}},$}),D("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),$}),D("echarts/util/smartLogSteps",["require","./number"],function(c){function O($){return Y(),h=$||{},T(),e(),[d(),Y()][0]}function Y(){f=h=K=L=a=i=V=P=b=M=null}function T(){b=h.logLabelBase,null==b?(M="plain",b=10,L=_):(b=+b,1>b&&(b=10),M="exponent",L=g(b)),V=h.splitNumber,null==V&&(V=H);var A=parseFloat(h.dataMin),$=parseFloat(h.dataMax);isFinite(A)||isFinite($)?isFinite(A)?isFinite($)?A>$&&($=[A,A=$][0]):$=A:A=$:A=$=1,f=h.logPositive,null==f&&(f=$>0||0===A),a=f?A:-$,i=f?$:-A,E>a&&(a=E),E>i&&(i=E)}function e(){function E(){V>$&&(V=$);var A=D(X($/V)),_=C(X($/A)),J=A*_,H=(J-I)/2,E=D(X(N-H));Q(E-N)&&(E-=1),K=-E*L;for(var F=E;G>=F-A;F+=A)P.push(B(b,F))}function A(){for(var C=T(S,0),A=C+2;A>C&&H(C+1)+R(C+1)*F<N;)C++;for(var I=T(O,0),A=I-2;I>A&&H(I-1)+R(I-1)*F>G;)I--;K=-(H(C)*_+R(C)*W);for(var $=C;I>=$;$++){var D=H($),E=R($);P.push(B(10,D)*B(2,E))}}function T(_,$){return 3*_+$}function R($){return $-3*H($)}function H($){return D(X($/3))}P=[];var G=X(g(i)/L),N=X(g(a)/L),O=C(G),S=D(N),$=O-S,I=G-N;"exponent"===M?E():J>=$&&V>J?A():E()}function d(){for(var _=[],$=0,E=P.length;E>$;$++)_[$]=(f?1:-1)*P[$];!f&&_.reverse();var C=S(),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:R(),dataMappingMethods:C}}function R(){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 S(){var _=f,$=K;return{value2Coord:function(A){return null==A||isNaN(A)||!isFinite(A)?A:(A=parseFloat(A),isFinite(A)?_&&E>A?A=E:!_&&A>-E&&(A=-E):A=E,A=Z(A),(_?1:-1)*(g(A)+$))},coord2Value:function(C){return null==C||isNaN(C)||!isFinite(C)?C:(C=parseFloat(C),isFinite(C)||(C=E),_?B(A,C-$):-B(A,-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,h,V,K,a,i,P,I=c("./number"),G=Math,g=G.log,B=G.pow,Z=G.abs,C=G.ceil,D=G.floor,A=G.E,_=G.LN10,W=G.LN2,F=W/_,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}),D("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,C=$.height/2-10;if(_.moveTo(F,E),_.lineTo(F,E+C),_.moveTo(F+A,E),_.lineTo(F+A,E+C),_.moveTo(F,E+C/2),$.lineType&&"solid"!=$.lineType){if("dashed"==$.lineType||"dotted"==$.lineType){var D=($.lineWidth||1)*("dashed"==$.lineType?5:1);B(_,F,E+C/2,F+A,E+C/2,D)}}else _.lineTo(F+A,E+C/2)},brushSymbol:function(_,$){var G=$.y+$.height/4;_.save();for(var B,A=$.chainPoint,C=0,E=A.length;E>C;C++){if(B=A[C],"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),$}),D("zrender",["zrender/zrender"],function($){return $}),D("echarts",["echarts/echarts"],function($){return $});var C=$("zrender");C.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")},C.animation={Animation:$("zrender/animation/Animation"),Cip:$("zrender/animation/Clip"),easing:$("zrender/animation/easing")};var B=$("echarts");return B.config=$("echarts/config"),$("echarts/chart/bar"),$("echarts/chart/line"),$("echarts/chart/pie"),$("echarts/chart/radar"),$("echarts/chart/scatter"),$("echarts/chart/k"),$("echarts/chart/chord"),$("echarts/chart/force"),$("echarts/chart/gauge"),$("echarts/chart/funnel"),$("echarts/chart/eventRiver"),$("echarts/chart/venn"),$("echarts/chart/treemap"),$("echarts/chart/tree"),$("echarts/chart/wordCloud"),$("echarts/chart/heatmap"),_.echarts=B,_.zrender=C,B}(window)