(self.webpackChunk=self.webpackChunk||[]).push([[6411],{76411:function(Y,V,n){var T=n(3096);(function(){for(var M in T){if(T==null||!T.hasOwnProperty(M)||M==="default"||M==="__esModule")return;V[M]=T[M]}})();var L=n(13700);(function(){for(var M in L){if(L==null||!L.hasOwnProperty(M)||M==="default"||M==="__esModule")return;V[M]=L[M]}})(),n(72476),n(54023),n(84168),n(72586),n(43394),n(81931),n(13441),n(16557),n(70797),n(57495),n(75560),n(63662),n(47866),n(26678),n(56696),n(75230),n(97928),n(75822),n(4287),n(99434),n(24357),n(44189),n(47468),n(25957),n(12335),n(35584),n(13960),n(3068),n(11550),n(2090),n(98018),n(81584),n(84159),n(73546),n(49668),n(14680),n(2450),n(45003),n(34904),n(71142),n(32314),n(32922),n(48328),n(18427),n(85313),n(3646),n(11511),n(79200),n(99848)},33807:function(Y,V,n){var T=n(69008),L={};function M(){this._coordinateSystems=[]}M.prototype={constructor:M,create:function(C,D){var S=[];T.each(L,function(p,v){var t=p.create(C,D);S=S.concat(t||[])}),this._coordinateSystems=S},update:function(C,D){T.each(this._coordinateSystems,function(S){S.update&&S.update(C,D)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},M.register=function(C,D){L[C]=D},M.get=function(C){return L[C]};var w=M;Y.exports=w},6900:function(Y,V,n){var T=n(69008),L=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function M(C){T.each(L,function(D){this[D]=T.bind(C[D],C)},this)}var w=M;Y.exports=w},2442:function(Y,V,n){var T=n(3096),L=n(69008);function M(w,C){L.each(C,function(D){D.update="updateView",T.registerAction(D,function(S,p){var v={};return p.eachComponent({mainType:"series",subType:w,query:S},function(t){t[D.method]&&t[D.method](S.name,S.dataIndex);var s=t.getData();s.each(function(i){var a=s.getName(i);v[a]=t.isSelected(a)||!1})}),{name:S.name,selected:v,seriesId:S.seriesId}})})}Y.exports=M},37406:function(Y,V,n){var T=n(3096),L=n(69008),M=n(66710),w=M.updateCenterAndZoom;T.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(C,D){var S=C.componentType||"series";D.eachComponent({mainType:S,query:C},function(p){var v=p.coordinateSystem;if(v.type==="geo"){var t=w(v,C,p.get("scaleLimit"));p.setCenter&&p.setCenter(t.center),p.setZoom&&p.setZoom(t.zoom),S==="series"&&L.each(p.seriesGroup,function(s){s.setCenter(t.center),s.setZoom(t.zoom)})}})})},66710:function(Y,V){function n(T,L,M){var w=T.getZoom(),C=T.getCenter(),D=L.zoom,S=T.dataToPoint(C);if(L.dx!=null&&L.dy!=null){S[0]-=L.dx,S[1]-=L.dy;var C=T.pointToData(S);T.setCenter(C)}if(D!=null){if(M){var p=M.min||0,v=M.max||1/0;D=Math.max(Math.min(w*D,v),p)/w}T.scale[0]*=D,T.scale[1]*=D;var t=T.position,s=(L.originX-t[0])*(D-1),i=(L.originY-t[1])*(D-1);t[0]-=s,t[1]-=i,T.updateTransform();var C=T.pointToData(S);T.setCenter(C),T.setZoom(D*w)}return{center:T.getCenter(),zoom:T.getZoom()}}V.updateCenterAndZoom=n},84168:function(Y,V,n){var T=n(3096),L=n(69008),M=n(64816),w=M.layout,C=M.largeLayout;n(40753),n(53634),n(3359),n(47102),T.registerLayout(T.PRIORITY.VISUAL.LAYOUT,L.curry(w,"bar")),T.registerLayout(T.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,C),T.registerVisual({seriesType:"bar",reset:function(D){D.getData().setVisual("legendSymbol","roundRect")}})},53634:function(Y,V,n){var T=n(89301),L=T.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var M=this.get("progressiveThreshold"),w=this.get("largeThreshold");return w>M&&(M=w),M},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});Y.exports=L},3359:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(18993),D=n(55692),S=D.setLabel,p=n(24040),v=n(14534),t=n(60397),s=n(27796),i=n(83209),a=i.throttle,u=n(38797),e=u.createClipPath,o=n(79330),r=["itemStyle","barBorderWidth"],l=[0,0];w.extend(p.prototype,v);function h(U,H){var z=U.getArea&&U.getArea();if(U.type==="cartesian2d"){var B=U.getBaseAxis();if(B.type!=="category"||!B.onBand){var k=H.getLayout("bandWidth");B.isHorizontal()?(z.x-=k,z.width+=k*2):(z.y-=k,z.height+=k*2)}}return z}var f=M.extendChartView({type:"bar",render:function(U,H,z){this._updateDrawMode(U);var B=U.get("coordinateSystem");return(B==="cartesian2d"||B==="polar")&&(this._isLargeDraw?this._renderLarge(U,H,z):this._renderNormal(U,H,z)),this.group},incrementalPrepareRender:function(U,H,z){this._clear(),this._updateDrawMode(U)},incrementalRender:function(U,H,z,B){this._incrementalRenderLarge(U,H)},_updateDrawMode:function(U){var H=U.pipelineContext.large;(this._isLargeDraw==null||H^this._isLargeDraw)&&(this._isLargeDraw=H,this._clear())},_renderNormal:function(U,H,z){var B=this.group,k=U.getData(),Z=this._data,X=U.coordinateSystem,K=X.getBaseAxis(),Q;X.type==="cartesian2d"?Q=K.isHorizontal():X.type==="polar"&&(Q=K.dim==="angle");var J=U.isAnimationEnabled()?U:null,tt=U.get("clip",!0),q=h(X,k);B.removeClipPath();var rt=U.get("roundCap",!0),$=U.get("showBackground",!0),j=U.getModel("backgroundStyle"),st=j.get("barBorderRadius")||0,ot=[],vt=this._backgroundEls||[];k.diff(Z).add(function(ut){var gt=k.getItemModel(ut),Ct=m[X.type](k,ut,gt);if($){var bt=m[X.type](k,ut),et=W(X,Q,bt);et.useStyle(j.getBarItemStyle()),X.type==="cartesian2d"&&et.setShape("r",st),ot[ut]=et}if(k.hasValue(ut)){if(tt){var lt=A[X.type](q,Ct);if(lt){B.remove(ht);return}}var ht=x[X.type](ut,Ct,Q,J,!1,rt);k.setItemGraphicEl(ut,ht),B.add(ht),I(ht,k,ut,gt,Ct,U,Q,X.type==="polar")}}).update(function(ut,gt){var Ct=k.getItemModel(ut),bt=m[X.type](k,ut,Ct);if($){var et=vt[gt];et.useStyle(j.getBarItemStyle()),X.type==="cartesian2d"&&et.setShape("r",st),ot[ut]=et;var lt=m[X.type](k,ut),ht=F(Q,lt,X);C.updateProps(et,{shape:ht},J,ut)}var pt=Z.getItemGraphicEl(gt);if(!k.hasValue(ut)){B.remove(pt);return}if(tt){var mt=A[X.type](q,bt);if(mt){B.remove(pt);return}}pt?C.updateProps(pt,{shape:bt},J,ut):pt=x[X.type](ut,bt,Q,J,!0,rt),k.setItemGraphicEl(ut,pt),B.add(pt),I(pt,k,ut,Ct,bt,U,Q,X.type==="polar")}).remove(function(ut){var gt=Z.getItemGraphicEl(ut);X.type==="cartesian2d"?gt&&y(ut,J,gt):gt&&g(ut,J,gt)}).execute();var yt=this._backgroundGroup||(this._backgroundGroup=new s);yt.removeAll();for(var it=0;it0?1:-1,X=B.height>0?1:-1;return{x:B.x+Z*k/2,y:B.y+X*k/2,width:B.width-Z*k,height:B.height-X*k}},polar:function(U,H,z){var B=U.getItemLayout(H);return{cx:B.cx,cy:B.cy,r0:B.r0,r:B.r,startAngle:B.startAngle,endAngle:B.endAngle}}};function b(U){return U.startAngle!=null&&U.endAngle!=null&&U.startAngle===U.endAngle}function I(U,H,z,B,k,Z,X,K){var Q=H.getItemVisual(z,"color"),J=H.getItemVisual(z,"opacity"),tt=H.getVisual("borderColor"),q=B.getModel("itemStyle"),rt=B.getModel("emphasis.itemStyle").getBarItemStyle();K||U.setShape("r",q.get("barBorderRadius")||0),U.useStyle(w.defaults({stroke:b(k)?"none":tt,fill:b(k)?"none":Q,opacity:J},q.getBarItemStyle()));var $=B.getShallow("cursor");$&&U.attr("cursor",$);var j=X?k.height>0?"bottom":"top":k.width>0?"left":"right";K||S(U.style,rt,B,Q,Z,z,j),b(k)&&(rt.fill=rt.stroke="none"),C.setHoverStyle(U,rt)}function R(U,H){var z=U.get(r)||0,B=isNaN(H.width)?Number.MAX_VALUE:Math.abs(H.width),k=isNaN(H.height)?Number.MAX_VALUE:Math.abs(H.height);return Math.min(z,B,k)}var E=t.extend({type:"largeBar",shape:{points:[]},buildPath:function(U,H){for(var z=H.points,B=this.__startPoint,k=this.__baseDimIdx,Z=0;Z=0?z:null},30,!1);function N(U,H,z){var B=U.__baseDimIdx,k=1-B,Z=U.shape.points,X=U.__largeDataIndices,K=Math.abs(U.__barWidth/2),Q=U.__startPoint[k];l[0]=H,l[1]=z;for(var J=l[B],tt=l[1-B],q=J-K,rt=J+K,$=0,j=Z.length/2;$=q&&ot<=rt&&(Q<=vt?tt>=Q&&tt<=vt:tt>=vt&&tt<=Q))return X[$]}return-1}function _(U,H,z){var B=z.getVisual("borderColor")||z.getVisual("color"),k=H.getModel("itemStyle").getItemStyle(["color","borderColor"]);U.useStyle(k),U.style.fill=null,U.style.stroke=B,U.style.lineWidth=z.getLayout("barWidth")}function G(U,H,z){var B=H.get("borderColor")||H.get("color"),k=H.getItemStyle(["color","borderColor"]);U.useStyle(k),U.style.fill=null,U.style.stroke=B,U.style.lineWidth=z.getLayout("barWidth")}function F(U,H,z){var B,k=z.type==="polar";return k?B=z.getArea():B=z.grid.getRect(),k?{cx:B.cx,cy:B.cy,r0:U?B.r0:H.r0,r:U?B.r:H.r,startAngle:U?H.startAngle:0,endAngle:U?H.endAngle:Math.PI*2}:{x:U?H.x:B.x,y:U?B.y:H.y,width:U?H.width:B.width,height:U?B.height:H.height}}function W(U,H,z){var B=U.type==="polar"?C.Sector:C.Rect;return new B({shape:F(H,z,U),silent:!0,z2:0})}Y.exports=f},89301:function(Y,V,n){var T=n(38645),L=n(32977),M=T.extend({type:"series.__base_bar__",getInitialData:function(w,C){return L(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(w){var C=this.coordinateSystem;if(C){var D=C.dataToPoint(C.clampData(w)),S=this.getData(),p=S.getLayout("offset"),v=S.getLayout("size"),t=C.getBaseAxis().isHorizontal()?0:1;return D[t]+=p+v/2,D}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});Y.exports=M},59903:function(Y,V,n){var T=n(89301),L=T.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(w){return w.stack=null,L.superApply(this,"getInitialData",arguments)}}),M=L;Y.exports=M},31061:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(22868),C=w.createSymbol,D=n(86957),S=D.parsePercent,p=D.isNumeric,v=n(55692),t=v.setLabel,s=["itemStyle","borderWidth"],i=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],a=new M.Circle,u=T.extendChartView({type:"pictorialBar",render:function(U,H,z){var B=this.group,k=U.getData(),Z=this._data,X=U.coordinateSystem,K=X.getBaseAxis(),Q=!!K.isHorizontal(),J=X.grid.getRect(),tt={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:U,coordSys:X,coordSysExtent:[[J.x,J.x+J.width],[J.y,J.y+J.height]],isHorizontal:Q,valueDim:i[+Q],categoryDim:i[1-Q]};return k.diff(Z).add(function(q){if(k.hasValue(q)){var rt=g(k,q),$=e(k,q,rt,tt),j=R(k,tt,$);k.setItemGraphicEl(q,j),B.add(j),G(j,tt,$)}}).update(function(q,rt){var $=Z.getItemGraphicEl(rt);if(!k.hasValue(q)){B.remove($);return}var j=g(k,q),st=e(k,q,j,tt),ot=O(k,st);$&&ot!==$.__pictorialShapeStr&&(B.remove($),k.setItemGraphicEl(q,null),$=null),$?E($,tt,st):$=R(k,tt,st,!0),k.setItemGraphicEl(q,$),$.__pictorialSymbolMeta=st,B.add($),G($,tt,st)}).remove(function(q){var rt=Z.getItemGraphicEl(q);rt&&P(Z,q,rt.__pictorialSymbolMeta.animationModel,rt)}).execute(),this._data=k,this.group},dispose:L.noop,remove:function(U,H){var z=this.group,B=this._data;U.get("animation")?B&&B.eachItemGraphicEl(function(k){P(B,k.dataIndex,U,k)}):z.removeAll()}});function e(U,H,z,B){var k=U.getItemLayout(H),Z=z.get("symbolRepeat"),X=z.get("symbolClip"),K=z.get("symbolPosition")||"start",Q=z.get("symbolRotate"),J=(Q||0)*Math.PI/180||0,tt=z.get("symbolPatternSize")||2,q=z.isAnimationEnabled(),rt={dataIndex:H,layout:k,itemModel:z,symbolType:U.getItemVisual(H,"symbol")||"circle",color:U.getItemVisual(H,"color"),symbolClip:X,symbolRepeat:Z,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:tt,rotation:J,animationModel:q?z:null,hoverAnimation:q&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};o(z,Z,k,B,rt),l(U,H,k,Z,X,rt.boundingLength,rt.pxSign,tt,B,rt),h(z,rt.symbolScale,J,B,rt);var $=rt.symbolSize,j=z.get("symbolOffset");return L.isArray(j)&&(j=[S(j[0],$[0]),S(j[1],$[1])]),f(z,$,k,Z,X,j,K,rt.valueLineWidth,rt.boundingLength,rt.repeatCutLength,B,rt),rt}function o(U,H,z,B,k){var Z=B.valueDim,X=U.get("symbolBoundingData"),K=B.coordSys.getOtherAxis(B.coordSys.getBaseAxis()),Q=K.toGlobalCoord(K.dataToCoord(0)),J=1-+(z[Z.wh]<=0),tt;if(L.isArray(X)){var q=[r(K,X[0])-Q,r(K,X[1])-Q];q[1]0?1:tt<0?-1:0}function r(U,H){return U.toGlobalCoord(U.dataToCoord(U.scale.parse(H)))}function l(U,H,z,B,k,Z,X,K,Q,J){var tt=Q.valueDim,q=Q.categoryDim,rt=Math.abs(z[q.wh]),$=U.getItemVisual(H,"symbolSize");L.isArray($)?$=$.slice():($==null&&($="100%"),$=[$,$]),$[q.index]=S($[q.index],rt),$[tt.index]=S($[tt.index],B?rt:Math.abs(Z)),J.symbolSize=$;var j=J.symbolScale=[$[0]/K,$[1]/K];j[tt.index]*=(Q.isHorizontal?-1:1)*X}function h(U,H,z,B,k){var Z=U.get(s)||0;Z&&(a.attr({scale:H.slice(),rotation:z}),a.updateTransform(),Z/=a.getLineScale(),Z*=H[B.valueDim.index]),k.valueLineWidth=Z}function f(U,H,z,B,k,Z,X,K,Q,J,tt,q){var rt=tt.categoryDim,$=tt.valueDim,j=q.pxSign,st=Math.max(H[$.index]+K,0),ot=st;if(B){var vt=Math.abs(Q),yt=L.retrieve(U.get("symbolMargin"),"15%")+"",it=!1;yt.lastIndexOf("!")===yt.length-1&&(it=!0,yt=yt.slice(0,yt.length-1)),yt=S(yt,H[$.index]);var ut=Math.max(st+yt*2,0),gt=it?0:yt*2,Ct=p(B),bt=Ct?B:F((vt+gt)/ut),et=vt-bt*st;yt=et/2/(it?bt:bt-1),ut=st+yt*2,gt=it?0:yt*2,!Ct&&B!=="fixed"&&(bt=J?F((Math.abs(J)+gt)/ut):0),ot=bt*ut-gt,q.repeatTimes=bt,q.symbolMargin=yt}var lt=j*(ot/2),ht=q.pathPosition=[];ht[rt.index]=z[rt.wh]/2,ht[$.index]=X==="start"?lt:X==="end"?Q-lt:Q/2,Z&&(ht[0]+=Z[0],ht[1]+=Z[1]);var pt=q.bundlePosition=[];pt[rt.index]=z[rt.xy],pt[$.index]=z[$.xy];var mt=q.barRectShape=L.extend({},z);mt[$.wh]=j*Math.max(Math.abs(z[$.wh]),Math.abs(ht[$.index]+lt)),mt[rt.wh]=z[rt.wh];var ft=q.clipShape={};ft[rt.xy]=-z[rt.xy],ft[rt.wh]=tt.ecSize[rt.wh],ft[$.xy]=0,ft[$.wh]=z[$.wh]}function c(U){var H=U.symbolPatternSize,z=C(U.symbolType,-H/2,-H/2,H,H,U.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function d(U,H,z,B){var k=U.__pictorialBundle,Z=z.symbolSize,X=z.valueLineWidth,K=z.pathPosition,Q=H.valueDim,J=z.repeatTimes||0,tt=0,q=Z[H.valueDim.index]+X+z.symbolMargin*2;for(N(U,function(vt){vt.__pictorialAnimationIndex=tt,vt.__pictorialRepeatTimes=J,tt0:it<0)&&(ut=J-1-vt),yt[Q.index]=q*(ut-J/2+.5)+K[Q.index],{position:yt,scale:z.symbolScale.slice(),rotation:z.rotation}}function st(){N(U,function(vt){vt.trigger("emphasis")})}function ot(){N(U,function(vt){vt.trigger("normal")})}}function A(U,H,z,B){var k=U.__pictorialBundle,Z=U.__pictorialMainPath;Z?_(Z,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,B):(Z=U.__pictorialMainPath=c(z),k.add(Z),_(Z,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,B),Z.on("mouseover",X).on("mouseout",K)),I(Z,z);function X(){this.trigger("emphasis")}function K(){this.trigger("normal")}}function x(U,H,z){var B=L.extend({},H.barRectShape),k=U.__pictorialBarRect;k?_(k,null,{shape:B},H,z):(k=U.__pictorialBarRect=new M.Rect({z2:2,shape:B,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),U.add(k))}function y(U,H,z,B){if(z.symbolClip){var k=U.__pictorialClipPath,Z=L.extend({},z.clipShape),X=H.valueDim,K=z.animationModel,Q=z.dataIndex;if(k)M.updateProps(k,{shape:Z},K,Q);else{Z[X.wh]=0,k=new M.Rect({shape:Z}),U.__pictorialBundle.setClipPath(k),U.__pictorialClipPath=k;var J={};J[X.wh]=z.clipShape[X.wh],M[B?"updateProps":"initProps"](k,{shape:J},K,Q)}}}function g(U,H){var z=U.getItemModel(H);return z.getAnimationDelayParams=m,z.isAnimationEnabled=b,z}function m(U){return{index:U.__pictorialAnimationIndex,count:U.__pictorialRepeatTimes}}function b(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(U,H){U.off("emphasis").off("normal");var z=H.symbolScale.slice();H.hoverAnimation&&U.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function R(U,H,z,B){var k=new M.Group,Z=new M.Group;return k.add(Z),k.__pictorialBundle=Z,Z.attr("position",z.bundlePosition.slice()),z.symbolRepeat?d(k,H,z):A(k,H,z),x(k,z,B),y(k,H,z,B),k.__pictorialShapeStr=O(U,z),k.__pictorialSymbolMeta=z,k}function E(U,H,z){var B=z.animationModel,k=z.dataIndex,Z=U.__pictorialBundle;M.updateProps(Z,{position:z.bundlePosition.slice()},B,k),z.symbolRepeat?d(U,H,z,!0):A(U,H,z,!0),x(U,z,!0),y(U,H,z,!0)}function P(U,H,z,B){var k=B.__pictorialBarRect;k&&(k.style.text=null);var Z=[];N(B,function(X){Z.push(X)}),B.__pictorialMainPath&&Z.push(B.__pictorialMainPath),B.__pictorialClipPath&&(z=null),L.each(Z,function(X){M.updateProps(X,{scale:[0,0]},z,H,function(){B.parent&&B.parent.remove(B)})}),U.setItemGraphicEl(H,null)}function O(U,H){return[U.getItemVisual(H.dataIndex,"symbol")||"none",!!H.symbolRepeat,!!H.symbolClip].join(":")}function N(U,H,z){L.each(U.__pictorialBundle.children(),function(B){B!==U.__pictorialBarRect&&H.call(z,B)})}function _(U,H,z,B,k,Z){H&&U.attr(H),B.symbolClip&&!k?z&&U.attr(z):z&&M[k?"updateProps":"initProps"](U,z,B.animationModel,B.dataIndex,Z)}function G(U,H,z){var B=z.color,k=z.dataIndex,Z=z.itemModel,X=Z.getModel("itemStyle").getItemStyle(["color"]),K=Z.getModel("emphasis.itemStyle").getItemStyle(),Q=Z.getShallow("cursor");N(U,function(rt){rt.setColor(B),rt.setStyle(L.defaults({fill:B,opacity:z.opacity},X)),M.setHoverStyle(rt,K),Q&&(rt.cursor=Q),rt.z2=z.z2});var J={},tt=H.valueDim.posDesc[+(z.boundingLength>0)],q=U.__pictorialBarRect;t(q.style,J,Z,B,H.seriesModel,k,tt),M.setHoverStyle(q,J)}function F(U){var H=Math.round(U);return Math.abs(U-H)<1e-4?H:Math.ceil(U)}var W=u;Y.exports=W},14534:function(Y,V,n){var T=n(76282),L=T([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M={getBarItemStyle:function(w){var C=L(this,w);if(this.getBorderLineDash){var D=this.getBorderLineDash();D&&(C.lineDash=D)}return C}};Y.exports=M},55692:function(Y,V,n){var T=n(18993),L=n(38113),M=L.getDefaultLabel;function w(D,S,p,v,t,s,i){var a=p.getModel("label"),u=p.getModel("emphasis.label");T.setLabelStyle(D,S,a,u,{labelFetcher:t,labelDataIndex:s,defaultText:M(t.getData(),s),isRectText:!0,autoColor:v}),C(D),C(S)}function C(D,S){D.textPosition==="outside"&&(D.textPosition=S)}V.setLabel=w},56696:function(Y,V,n){var T=n(3096);n(3673),n(41831);var L=n(498),M=n(22303);T.registerVisual(L),T.registerLayout(M)},3673:function(Y,V,n){var T=n(69008),L=n(38645),M=n(45112),w=M.seriesModelMixin,C=L.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});T.mixin(C,w,!0);var D=C;Y.exports=D},41831:function(Y,V,n){var T=n(69008),L=n(68880),M=n(18993),w=n(60397),C=["itemStyle"],D=["emphasis","itemStyle"],S=L.extend({type:"boxplot",render:function(a,u,e){var o=a.getData(),r=this.group,l=this._data;this._data||r.removeAll();var h=a.get("layout")==="horizontal"?1:0;o.diff(l).add(function(f){if(o.hasValue(f)){var c=o.getItemLayout(f),d=v(c,o,f,h,!0);o.setItemGraphicEl(f,d),r.add(d)}}).update(function(f,c){var d=l.getItemGraphicEl(c);if(!o.hasValue(f)){r.remove(d);return}var A=o.getItemLayout(f);d?t(A,d,o,f):d=v(A,o,f,h),r.add(d),o.setItemGraphicEl(f,d)}).remove(function(f){var c=l.getItemGraphicEl(f);c&&r.remove(c)}).execute(),this._data=o},remove:function(a){var u=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(o){o&&u.remove(o)})},dispose:T.noop}),p=w.extend({type:"boxplotBoxPath",shape:{},buildPath:function(a,u){var e=u.points,o=0;for(a.moveTo(e[o][0],e[o][1]),o++;o<4;o++)a.lineTo(e[o][0],e[o][1]);for(a.closePath();o0?"P":"N",y=A.getVisual("borderColor"+x)||A.getVisual("color"+x),g=d.getModel(S).getItemStyle(v);c.useStyle(g),c.style.fill=null,c.style.stroke=y}var h=t;Y.exports=h},7898:function(Y,V,n){var T=n(18993),L=T.subPixelOptimize,M=n(13861),w=n(86957),C=w.parsePercent,D=n(69008),S=D.retrieve2,p=typeof Float32Array!="undefined"?Float32Array:Array,v={seriesType:"candlestick",plan:M(),reset:function(i){var a=i.coordinateSystem,u=i.getData(),e=s(i,u),o=0,r=1,l=["x","y"],h=u.mapDimension(l[o]),f=u.mapDimension(l[r],!0),c=f[0],d=f[1],A=f[2],x=f[3];if(u.setLayout({candleWidth:e,isSimpleBox:e<=1.3}),h==null||f.length<4)return;return{progress:i.pipelineContext.large?g:y};function y(m,b){for(var I;(I=m.next())!=null;){var R=b.get(h,I),E=b.get(c,I),P=b.get(d,I),O=b.get(A,I),N=b.get(x,I),_=Math.min(E,P),G=Math.max(E,P),F=B(_,R),W=B(G,R),U=B(O,R),H=B(N,R),z=[];k(z,W,0),k(z,F,1),z.push(X(H),X(W),X(U),X(F)),b.setItemLayout(I,{sign:t(b,I,E,P,d),initBaseline:E>P?W[r]:F[r],ends:z,brushRect:Z(O,N,R)})}function B(K,Q){var J=[];return J[o]=Q,J[r]=K,isNaN(Q)||isNaN(K)?[NaN,NaN]:a.dataToPoint(J)}function k(K,Q,J){var tt=Q.slice(),q=Q.slice();tt[o]=L(tt[o]+e/2,1,!1),q[o]=L(q[o]-e/2,1,!0),J?K.push(tt,q):K.push(q,tt)}function Z(K,Q,J){var tt=B(K,J),q=B(Q,J);return tt[o]-=e/2,q[o]-=e/2,{x:tt[0],y:tt[1],width:r?e:q[0]-tt[0],height:r?q[1]-tt[1]:e}}function X(K){return K[o]=L(K[o],1),K}}function g(m,b){for(var I=new p(m.count*4),R=0,E,P=[],O=[],N;(N=m.next())!=null;){var _=b.get(h,N),G=b.get(c,N),F=b.get(d,N),W=b.get(A,N),U=b.get(x,N);if(isNaN(_)||isNaN(W)||isNaN(U)){I[R++]=NaN,R+=3;continue}I[R++]=t(b,N,G,F,d),P[o]=_,P[r]=W,E=a.dataToPoint(P,null,O),I[R++]=E?E[0]:NaN,I[R++]=E?E[1]:NaN,P[r]=U,E=a.dataToPoint(P,null,O),I[R++]=E?E[1]:NaN}b.setLayout("largePoints",I)}}};function t(i,a,u,e,o){var r;return u>e?r=-1:u0?i.get(o,a-1)<=e?1:-1:1,r}function s(i,a){var u=i.getBaseAxis(),e,o=u.type==="category"?u.getBandWidth():(e=u.getExtent(),Math.abs(e[1]-e[0])/a.count()),r=C(S(i.get("barMaxWidth"),o),o),l=C(S(i.get("barMinWidth"),1),o),h=i.get("barWidth");return h!=null?C(h,o):Math.max(Math.min(o/2,r),l)}Y.exports=v},42688:function(Y,V,n){var T=n(13861),L=["itemStyle","borderColor"],M=["itemStyle","borderColor0"],w=["itemStyle","color"],C=["itemStyle","color0"],D={seriesType:"candlestick",plan:T(),performRawSeries:!0,reset:function(S,p){var v=S.getData();if(v.setVisual({legendSymbol:"roundRect",colorP:i(1,S),colorN:i(-1,S),borderColorP:a(1,S),borderColorN:a(-1,S)}),p.isSeriesFiltered(S))return;var t=S.pipelineContext.large;return!t&&{progress:s};function s(u,e){for(var o;(o=u.next())!=null;){var r=e.getItemModel(o),l=e.getItemLayout(o).sign;e.setItemVisual(o,{color:i(l,r),borderColor:a(l,r)})}}function i(u,e){return e.get(u>0?w:C)}function a(u,e){return e.get(u>0?L:M)}}};Y.exports=D},38368:function(Y,V,n){var T=n(69008);function L(M){!M||!T.isArray(M.series)||T.each(M.series,function(w){T.isObject(w)&&w.type==="k"&&(w.type="candlestick")})}Y.exports=L},47468:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(18993),C=n(38113),D=C.getDefaultLabel,S=n(32977),p=n(64816),v=p.getLayoutOnAxis,t=n(82383),s=n(38645),i=n(24040),a=n(68880),u=n(38797),e=u.createClipPath,o=n(40114),r=n(8058),l=n(66848),h=n(69171),f=n(41675),c=w.CACHED_LABEL_STYLE_PROPERTIES,d=["itemStyle"],A=["emphasis","itemStyle"],x=["label"],y=["emphasis","label"],g="e\0\0",m={cartesian2d:o,geo:r,singleAxis:l,polar:h,calendar:f};s.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(X,K){return S(this.getSource(),this)},getDataParams:function(X,K,Q){var J=s.prototype.getDataParams.apply(this,arguments);return Q&&(J.info=Q.info),J}}),a.extend({type:"custom",_data:null,render:function(X,K,Q,J){var tt=this._data,q=X.getData(),rt=this.group,$=E(X,q,K,Q);q.diff(tt).add(function(st){O(null,st,$(st,J),X,rt,q)}).update(function(st,ot){var vt=tt.getItemGraphicEl(ot);O(vt,st,$(st,J),X,rt,q)}).remove(function(st){var ot=tt.getItemGraphicEl(st);ot&&rt.remove(ot)}).execute();var j=X.get("clip",!0)?e(X.coordinateSystem,!1,X):null;j?rt.setClipPath(j):rt.removeClipPath(),this._data=q},incrementalPrepareRender:function(X,K,Q){this.group.removeAll(),this._data=null},incrementalRender:function(X,K,Q,J,tt){var q=K.getData(),rt=E(K,q,Q,J);function $(ot){ot.isGroup||(ot.incremental=!0,ot.useHoverLayer=!0)}for(var j=X.start;j=O&&(N===0?0:o[N-1][0]).4?"bottom":"middle",textAlign:H<-.4?"left":H>.4?"right":"center"},{autoColor:X}),silent:!0}))}if(b.get("show")&&U!==R){for(var K=0;K<=E;K++){var H=Math.cos(N),z=Math.sin(N),Q=new L.Line({shape:{x1:H*x+d,y1:z*x+A,x2:H*(x-O)+d,y2:z*(x-O)+A},silent:!0,style:W});W.stroke==="auto"&&Q.setStyle({stroke:o((U+K/E)/R)}),c.add(Q),N+=G}N-=G}else N+=_}},_renderPointer:function(a,u,e,o,r,l,h,f){var c=this.group,d=this._data;if(!a.get("pointer.show")){d&&d.eachItemGraphicEl(function(m){c.remove(m)});return}var A=[+a.get("min"),+a.get("max")],x=[l,h],y=a.getData(),g=y.mapDimension("value");y.diff(d).add(function(m){var b=new T({shape:{angle:l}});L.initProps(b,{shape:{angle:S(y.get(g,m),A,x,!0)}},a),c.add(b),y.setItemGraphicEl(m,b)}).update(function(m,b){var I=d.getItemGraphicEl(b);L.updateProps(I,{shape:{angle:S(y.get(g,m),A,x,!0)}},a),c.add(I),y.setItemGraphicEl(m,I)}).remove(function(m){var b=d.getItemGraphicEl(m);c.remove(b)}).execute(),y.eachItemGraphicEl(function(m,b){var I=y.getItemModel(b),R=I.getModel("pointer");m.setShape({x:r.cx,y:r.cy,width:C(R.get("width"),r.r),r:C(R.get("length"),r.r)}),m.useStyle(I.getModel("itemStyle").getItemStyle()),m.style.fill==="auto"&&m.setStyle("fill",o(S(y.get(g,b),A,[0,1],!0))),L.setHoverStyle(m,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=y},_renderTitle:function(a,u,e,o,r){var l=a.getData(),h=l.mapDimension("value"),f=a.getModel("title");if(f.get("show")){var c=f.get("offsetCenter"),d=r.cx+C(c[0],r.r),A=r.cy+C(c[1],r.r),x=+a.get("min"),y=+a.get("max"),g=a.getData().get(h,0),m=o(S(g,[x,y],[0,1],!0));this.group.add(new L.Text({silent:!0,style:L.setTextStyle({},f,{x:d,y:A,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(a,u,e,o,r){var l=a.getModel("detail"),h=+a.get("min"),f=+a.get("max");if(l.get("show")){var c=l.get("offsetCenter"),d=r.cx+C(c[0],r.r),A=r.cy+C(c[1],r.r),x=C(l.get("width"),r.r),y=C(l.get("height"),r.r),g=a.getData(),m=g.get(g.mapDimension("value"),0),b=o(S(m,[h,f],[0,1],!0));this.group.add(new L.Text({silent:!0,style:L.setTextStyle({},l,{x:d,y:A,text:v(m,l.get("formatter")),textWidth:isNaN(x)?null:x,textHeight:isNaN(y)?null:y,textAlign:"center",textVerticalAlign:"middle"},{autoColor:b,forceRich:!0})}))}}}),i=s;Y.exports=i},36131:function(Y,V,n){var T=n(60397),L=T.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(M,w){var C=Math.cos,D=Math.sin,S=w.r,p=w.width,v=w.angle,t=w.x-C(v)*p*(p>=S/3?1:2),s=w.y-D(v)*p*(p>=S/3?1:2);v=w.angle-Math.PI/2,M.moveTo(t,s),M.lineTo(w.x+C(v)*p,w.y+D(v)*p),M.lineTo(w.x+C(w.angle)*S,w.y+D(w.angle)*S),M.lineTo(w.x-C(v)*p,w.y-D(v)*p),M.lineTo(t,s)}});Y.exports=L},57495:function(Y,V,n){var T=n(3096);n(46349),n(32979),n(6458);var L=n(12301),M=n(11404),w=n(48468),C=n(62939),D=n(293),S=n(14146),p=n(21701),v=n(57186);T.registerProcessor(L),T.registerVisual(M("graph","circle",null)),T.registerVisual(w),T.registerVisual(C),T.registerLayout(D),T.registerLayout(T.PRIORITY.VISUAL.POST_CHART_LAYOUT,S),T.registerLayout(p),T.registerCoordinateSystem("graphView",{create:v})},46349:function(Y,V,n){var T=n(3096),L=n(39177),M=n(69008),w=n(90830),C=w.defaultEmphasis,D=n(24040),S=n(17010),p=S.encodeHTML,v=n(29306),t=n(50329),s=T.extendSeriesModel({type:"series.graph",init:function(a){s.superApply(this,"init",arguments);var u=this;function e(){return u._categoriesData}this.legendVisualProvider=new t(e,e),this.fillDataTextStyle(a.edges||a.links),this._updateCategoriesData()},mergeOption:function(a){s.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(a.edges||a.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(a){s.superApply(this,"mergeDefaultAndTheme",arguments),C(a,["edgeLabel"],["show"])},getInitialData:function(a,u){var e=a.edges||a.links||[],o=a.data||a.nodes||[],r=this;if(o&&e)return v(o,e,this,!0,l).data;function l(h,f){h.wrapMethod("getItemModel",function(g){var m=r._categoriesModels,b=g.getShallow("category"),I=m[b];return I&&(I.parentModel=g.parentModel,g.parentModel=I),g});var c=r.getModel("edgeLabel"),d=new D({label:c.option},c.parentModel,u),A=r.getModel("emphasis.edgeLabel"),x=new D({emphasis:{label:A.option}},A.parentModel,u);f.wrapMethod("getItemModel",function(g){return g.customizeGetParent(y),g});function y(g){return g=this.parsePath(g),g&&g[0]==="label"?d:g&&g[0]==="emphasis"&&g[1]==="label"?x:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(a,u,e){if(e==="edge"){var o=this.getData(),r=this.getDataParams(a,e),l=o.graph.getEdgeByIndex(a),h=o.getName(l.node1.dataIndex),f=o.getName(l.node2.dataIndex),c=[];return h!=null&&c.push(h),f!=null&&c.push(f),c=p(c.join(" > ")),r.value&&(c+=" : "+p(r.value)),c}else return s.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var a=M.map(this.option.categories||[],function(e){return e.value!=null?e:M.extend({value:0},e)}),u=new L(["value"],this);u.initData(a),this._categoriesData=u,this._categoriesModels=u.mapArray(function(e){return u.getItemModel(e,!0)})},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a},isAnimationEnabled:function(){return s.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),i=s;Y.exports=i},32979:function(Y,V,n){var T=n(3096),L=n(69008),M=n(38346),w=n(70562),C=n(38515),D=n(37419),S=n(18584),p=S.onIrrelevantElement,v=n(18993),t=n(76839),s=n(83972),i=s.getNodeGlobalScale,a="__focusNodeAdjacency",u="__unfocusNodeAdjacency",e=["itemStyle","opacity"],o=["lineStyle","opacity"];function r(c,d){var A=c.getVisual("opacity");return A!=null?A:c.getModel().get(d)}function l(c,d,A){var x=c.getGraphicEl(),y=r(c,d);A!=null&&(y==null&&(y=1),y*=A),x.downplay&&x.downplay(),x.traverse(function(g){if(!g.isGroup){var m=g.lineLabelOriginalOpacity;(m==null||A!=null)&&(m=y),g.setStyle("opacity",m)}})}function h(c,d){var A=r(c,d),x=c.getGraphicEl();x.traverse(function(y){!y.isGroup&&y.setStyle("opacity",A)}),x.highlight&&x.highlight()}var f=T.extendChartView({type:"graph",init:function(c,d){var A=new M,x=new w,y=this.group;this._controller=new C(d.getZr()),this._controllerHost={target:y},y.add(A.group),y.add(x.group),this._symbolDraw=A,this._lineDraw=x,this._firstRender=!0},render:function(c,d,A){var x=this,y=c.coordinateSystem;this._model=c;var g=this._symbolDraw,m=this._lineDraw,b=this.group;if(y.type==="view"){var I={position:y.position,scale:y.scale};this._firstRender?b.attr(I):v.updateProps(b,I,c)}t(c.getGraph(),i(c));var R=c.getData();g.updateData(R);var E=c.getEdgeData();m.updateData(E),this._updateNodeAndLinkScale(),this._updateController(c,d,A),clearTimeout(this._layoutTimeout);var P=c.forceLayout,O=c.get("force.layoutAnimation");P&&this._startForceLayoutIteration(P,O),R.eachItemGraphicEl(function(F,W){var U=R.getItemModel(W);F.off("drag").off("dragend");var H=U.get("draggable");H&&F.on("drag",function(){P&&(P.warmUp(),!this._layouting&&this._startForceLayoutIteration(P,O),P.setFixed(W),R.setItemLayout(W,F.position))},this).on("dragend",function(){P&&P.setUnfixed(W)},this),F.setDraggable(H&&P),F[a]&&F.off("mouseover",F[a]),F[u]&&F.off("mouseout",F[u]),U.get("focusNodeAdjacency")&&(F.on("mouseover",F[a]=function(){x._clearTimer(),A.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[u]=function(){x._dispatchUnfocus(A)}))},this),R.graph.eachEdge(function(F){var W=F.getGraphicEl();W[a]&&W.off("mouseover",W[a]),W[u]&&W.off("mouseout",W[u]),F.getModel().get("focusNodeAdjacency")&&(W.on("mouseover",W[a]=function(){x._clearTimer(),A.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,edgeDataIndex:F.dataIndex})}),W.on("mouseout",W[u]=function(){x._dispatchUnfocus(A)}))});var N=c.get("layout")==="circular"&&c.get("circular.rotateLabel"),_=R.getLayout("cx"),G=R.getLayout("cy");R.eachItemGraphicEl(function(F,W){var U=R.getItemModel(W),H=U.get("label.rotate")||0,z=F.getSymbolPath();if(N){var B=R.getItemLayout(W),k=Math.atan2(B[1]-G,B[0]-_);k<0&&(k=Math.PI*2+k);var Z=B[0]<_;Z&&(k=k-Math.PI);var X=Z?"left":"right";v.modifyLabelStyle(z,{textRotation:-k,textPosition:X,textOrigin:"center"},{textPosition:X})}else v.modifyLabelStyle(z,{textRotation:H*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(c,d){var A=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){A._unfocusDelayTimer=null,c.dispatchAction({type:"unfocusNodeAdjacency",seriesId:A._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(c,d,A,x){var y=c.getData(),g=y.graph,m=x.dataIndex,b=x.edgeDataIndex,I=g.getNodeByIndex(m),R=g.getEdgeByIndex(b);!I&&!R||(g.eachNode(function(E){l(E,e,.1)}),g.eachEdge(function(E){l(E,o,.1)}),I&&(h(I,e),L.each(I.edges,function(E){E.dataIndex<0||(h(E,o),h(E.node1,e),h(E.node2,e))})),R&&(h(R,o),h(R.node1,e),h(R.node2,e)))},unfocusNodeAdjacency:function(c,d,A,x){var y=c.getData().graph;y.eachNode(function(g){l(g,e)}),y.eachEdge(function(g){l(g,o)})},_startForceLayoutIteration:function(c,d){var A=this;(function x(){c.step(function(y){A.updateLayout(A._model),(A._layouting=!y)&&(d?A._layoutTimeout=setTimeout(x,16):x())})})()},_updateController:function(c,d,A){var x=this._controller,y=this._controllerHost,g=this.group;if(x.setPointerChecker(function(m,b,I){var R=g.getBoundingRect();return R.applyTransform(g.transform),R.contain(b,I)&&!p(m,A,c)}),c.coordinateSystem.type!=="view"){x.disable();return}x.enable(c.get("roam")),y.zoomLimit=c.get("scaleLimit"),y.zoom=c.coordinateSystem.getZoom(),x.off("pan").off("zoom").on("pan",function(m){D.updateViewOnPan(y,m.dx,m.dy),A.dispatchAction({seriesId:c.id,type:"graphRoam",dx:m.dx,dy:m.dy})}).on("zoom",function(m){D.updateViewOnZoom(y,m.scale,m.originX,m.originY),A.dispatchAction({seriesId:c.id,type:"graphRoam",zoom:m.scale,originX:m.originX,originY:m.originY}),this._updateNodeAndLinkScale(),t(c.getGraph(),i(c)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var c=this._model,d=c.getData(),A=i(c),x=[A,A];d.eachItemGraphicEl(function(y,g){y.attr("scale",x)})},updateLayout:function(c){t(c.getGraph(),i(c)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(c,d){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});Y.exports=f},76839:function(Y,V,n){var T=n(22576),L=n(47764),M=n(83972),w=M.getSymbolSize,C=[],D=[],S=[],p=T.quadraticAt,v=L.distSquare,t=Math.abs;function s(a,u,e){for(var o=a[0],r=a[1],l=a[2],h=1/0,f,c=e*e,d=.1,A=.1;A<=.9;A+=.1){C[0]=p(o[0],r[0],l[0],A),C[1]=p(o[1],r[1],l[1],A);var x=t(v(C,u)-c);x=0?f=f+d:f=f-d:m>=0?f=f-d:f=f+d}return f}function i(a,u){var e=[],o=T.quadraticSubdivide,r=[[],[],[]],l=[[],[]],h=[];u/=2,a.eachEdge(function(f,c){var d=f.getLayout(),A=f.getVisual("fromSymbol"),x=f.getVisual("toSymbol");d.__original||(d.__original=[L.clone(d[0]),L.clone(d[1])],d[2]&&d.__original.push(L.clone(d[2])));var y=d.__original;if(d[2]!=null){if(L.copy(r[0],y[0]),L.copy(r[1],y[2]),L.copy(r[2],y[1]),A&&A!=="none"){var g=w(f.node1),m=s(r,y[0],g*u);o(r[0][0],r[1][0],r[2][0],m,e),r[0][0]=e[3],r[1][0]=e[4],o(r[0][1],r[1][1],r[2][1],m,e),r[0][1]=e[3],r[1][1]=e[4]}if(x&&x!=="none"){var g=w(f.node2),m=s(r,y[1],g*u);o(r[0][0],r[1][0],r[2][0],m,e),r[1][0]=e[1],r[2][0]=e[2],o(r[0][1],r[1][1],r[2][1],m,e),r[1][1]=e[1],r[2][1]=e[2]}L.copy(d[0],r[0]),L.copy(d[1],r[2]),L.copy(d[2],r[1])}else{if(L.copy(l[0],y[0]),L.copy(l[1],y[1]),L.sub(h,l[1],l[0]),L.normalize(h,h),A&&A!=="none"){var g=w(f.node1);L.scaleAndAdd(l[0],l[0],h,g*u)}if(x&&x!=="none"){var g=w(f.node2);L.scaleAndAdd(l[1],l[1],h,-g*u)}L.copy(d[0],l[0]),L.copy(d[1],l[1])}})}Y.exports=i},12301:function(Y){function V(n){var T=n.findComponents({mainType:"legend"});!T||!T.length||n.eachSeriesByType("graph",function(L){var M=L.getCategoriesData(),w=L.getGraph(),C=w.data,D=M.mapArray(M.getName);C.filterSelf(function(S){var p=C.getItemModel(S),v=p.getShallow("category");if(v!=null){typeof v=="number"&&(v=D[v]);for(var t=0;t0){var P=t(A)?i:a;A>0&&(A=A*R+b),y[g++]=P[E],y[g++]=P[E+1],y[g++]=P[E+2],y[g++]=P[E+3]*A*256}else g+=4}return o.putImageData(x,0,0),e},_getBrush:function(){var C=this._brushCanvas||(this._brushCanvas=T.createCanvas()),D=this.pointSize+this.blurSize,S=D*2;C.width=S,C.height=S;var p=C.getContext("2d");return p.clearRect(0,0,S,S),p.shadowOffsetX=S,p.shadowBlur=this.blurSize,p.shadowColor="#000",p.beginPath(),p.arc(-D,D,this.pointSize,0,Math.PI*2,!0),p.closePath(),p.fill(),C},_getGradient:function(C,D,S){for(var p=this._gradientPixels,v=p[S]||(p[S]=new Uint8ClampedArray(256*4)),t=[0,0,0,0],s=0,i=0;i<256;i++)D[S](i/255,!0,t),v[s++]=t[0],v[s++]=t[1],v[s++]=t[2],v[s++]=t[3];return v}};var w=M;Y.exports=w},11226:function(Y,V,n){var T=n(38645),L=n(32977),M=n(33807),w=T.extend({type:"series.heatmap",getInitialData:function(C,D){return L(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var C=M.get(this.get("coordinateSystem"));if(C&&C.dimensions)return C.dimensions[0]==="lng"&&C.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});Y.exports=w},36684:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(18993),C=n(81311),D=n(69008);function S(s,i,a){var u=s[1]-s[0];i=D.map(i,function(r){return{interval:[(r.interval[0]-s[0])/u,(r.interval[1]-s[0])/u]}});var e=i.length,o=0;return function(r){for(var l=o;l=0;l--){var h=i[l].interval;if(h[0]<=r&&r<=h[1]){o=l;break}}return l>=0&&l=i[0]&&u<=i[1]}}function v(s){var i=s.dimensions;return i[0]==="lng"&&i[1]==="lat"}var t=M.extendChartView({type:"heatmap",render:function(s,i,a){var u;i.eachComponent("visualMap",function(o){o.eachTargetSeries(function(r){r===s&&(u=o)})}),this.group.removeAll(),this._incrementalDisplayable=null;var e=s.coordinateSystem;e.type==="cartesian2d"||e.type==="calendar"?this._renderOnCartesianAndCalendar(s,a,0,s.getData().count()):v(e)&&this._renderOnGeo(e,s,u,a)},incrementalPrepareRender:function(s,i,a){this.group.removeAll()},incrementalRender:function(s,i,a,u){var e=i.coordinateSystem;e&&this._renderOnCartesianAndCalendar(i,u,s.start,s.end,!0)},_renderOnCartesianAndCalendar:function(s,i,a,u,e){var o=s.coordinateSystem,r,l;if(o.type==="cartesian2d"){var h=o.getAxis("x"),f=o.getAxis("y");r=h.getBandWidth(),l=f.getBandWidth()}for(var c=this.group,d=s.getData(),A="itemStyle",x="emphasis.itemStyle",y="label",g="emphasis.label",m=s.getModel(A).getItemStyle(["color"]),b=s.getModel(x).getItemStyle(),I=s.getModel(y),R=s.getModel(g),E=o.type,P=E==="cartesian2d"?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],O=a;O0&&(r=this.getLineLength(u)/h*1e3),r!==this._period||l!==this._loop){u.stopAnimation();var d=f;c&&(d=f(a)),u.__t>0&&(d=-r*u.__t),u.__t=0;var A=u.animate("",l).when(r,{__t:1}).delay(d).during(function(){e.updateSymbolPosition(u)});l||A.done(function(){e.remove(u)}),A.start()}this._period=r,this._loop=l}},v.getLineLength=function(s){return D.dist(s.__p1,s.__cp1)+D.dist(s.__cp1,s.__p2)},v.updateAnimationPoints=function(s,i){s.__p1=i[0],s.__p2=i[1],s.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},v.updateData=function(s,i,a){this.childAt(0).updateData(s,i,a),this._updateEffectSymbol(s,i)},v.updateSymbolPosition=function(s){var i=s.__p1,a=s.__p2,u=s.__cp1,e=s.__t,o=s.position,r=[o[0],o[1]],l=S.quadraticAt,h=S.quadraticDerivativeAt;o[0]=l(i[0],u[0],a[0],e),o[1]=l(i[1],u[1],a[1],e);var f=h(i[0],u[0],a[0],e),c=h(i[1],u[1],a[1],e);if(s.rotation=-Math.atan2(c,f)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(s.__lastT!==void 0&&s.__lastT=0&&!(s[u]<=v);u--);u=Math.min(u,i-2)}else{for(var u=a;uv);u++);u=Math.min(u-1,i-2)}w.lerp(p.position,t[u],t[u+1],(v-s[u])/(s[u+1]-s[u]));var o=t[u+1][0]-t[u][0],r=t[u+1][1]-t[u][1];p.rotation=-Math.atan2(r,o)-Math.PI/2,this._lastFrame=u,this._lastFramePercent=v,p.ignore=!1}},L.inherits(C,M);var S=C;Y.exports=S},82760:function(Y,V,n){var T=n(69008),L=n(22868),M=L.createSymbol,w=n(18993),C=w.Group,D=n(86957),S=D.parsePercent,p=n(32427),v=3;function t(e){return T.isArray(e)||(e=[+e,+e]),e}function s(e,o){var r=o.rippleEffectColor||o.color;e.eachChild(function(l){l.attr({z:o.z,zlevel:o.zlevel,style:{stroke:o.brushType==="stroke"?r:null,fill:o.brushType==="fill"?r:null}})})}function i(e,o){C.call(this);var r=new p(e,o),l=new C;this.add(r),this.add(l),l.beforeUpdate=function(){this.attr(r.getScale())},this.updateData(e,o)}var a=i.prototype;a.stopEffectAnimation=function(){this.childAt(1).removeAll()},a.startEffectAnimation=function(e){for(var o=e.symbolType,r=e.color,l=this.childAt(1),h=0;h0){v.moveTo(s[a++],s[a++]);for(var e=1;e0){var f=(o+l)/2-(r-h)*i,c=(r+h)/2-(l-o)*i;v.quadraticCurveTo(f,c,l,h)}else v.lineTo(l,h)}},findDataIndex:function(v,t){var s=this.shape,i=s.segs,a=s.curveness;if(s.polyline)for(var u=0,e=0;e0)for(var r=i[e++],l=i[e++],h=1;h0){var d=(r+f)/2-(l-c)*a,A=(l+c)/2-(f-r)*a;if(w.containStroke(r,l,d,A,f,c))return u}else if(M.containStroke(r,l,f,c))return u;u++}return-1}});function D(){this.group=new T.Group}var S=D.prototype;S.isPersistent=function(){return!this._incremental},S.updateData=function(v){this.group.removeAll();var t=new C({rectHover:!0,cursor:"default"});t.setShape({segs:v.getLayout("linesPoints")}),this._setCommon(t,v),this.group.add(t),this._incremental=null},S.incrementalPrepareUpdate=function(v){this.group.removeAll(),this._clearIncremental(),v.count()>5e5?(this._incremental||(this._incremental=new L({silent:!0})),this.group.add(this._incremental)):this._incremental=null},S.incrementalUpdate=function(v,t){var s=new C;s.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(s,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=v.start,this.group.add(s))},S.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},S._setCommon=function(v,t,s){var i=t.hostModel;v.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),v.useStyle(i.getModel("lineStyle").getLineStyle()),v.style.strokeNoScale=!0;var a=t.getVisual("color");a&&v.setStyle("stroke",a),v.setStyle("fill"),s||(v.seriesIndex=i.seriesIndex,v.on("mousemove",function(u){v.dataIndex=null;var e=v.findDataIndex(u.offsetX,u.offsetY);e>0&&(v.dataIndex=e+v.__startIndex)}))},S._clearIncremental=function(){var v=this._incremental;v&&v.clearDisplaybles()};var p=D;Y.exports=p},15499:function(Y,V,n){var T=n(18993),L=n(22868),M=L.createSymbol,w=n(61465),C=4,D=T.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,s){var i=s.points,a=s.size,u=this.symbolProxy,e=u.shape,o=t.getContext?t.getContext():t,r=o&&a[0]=0;r--){var l=r*2,h=a[l]-e/2,f=a[l+1]-o/2;if(t>=h&&s>=f&&t<=h+e&&s<=f+o)return r}return-1}});function S(){this.group=new T.Group}var p=S.prototype;p.isPersistent=function(){return!this._incremental},p.updateData=function(t,s){this.group.removeAll();var i=new D({rectHover:!0,cursor:"default"});i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!1,s),this.group.add(i),this._incremental=null},p.updateLayout=function(t){if(!this._incremental){var s=t.getLayout("symbolPoints");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,u=i.startIndex*4*2;s=new Float32Array(s.buffer,u,a)}i.setShape("points",s)})}},p.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new w({silent:!0})),this.group.add(this._incremental)):this._incremental=null},p.incrementalUpdate=function(t,s,i){var a;this._incremental?(a=new D,this._incremental.addDisplayable(a,!0)):(a=new D({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),a.incremental=!0,this.group.add(a)),a.setShape({points:s.getLayout("symbolPoints")}),this._setCommon(a,s,!!this._incremental,i)},p._setCommon=function(t,s,i,a){var u=s.hostModel;a=a||{};var e=s.getVisual("symbolSize");t.setShape("size",e instanceof Array?e:[e,e]),t.softClipShape=a.clipShape||null,t.symbolProxy=M(s.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]=0&&(t.dataIndex=h+(t.startIndex||0))}))},p.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},p._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var v=S;Y.exports=v},85617:function(Y,V,n){var T=n(69008),L=n(47764),M=n(22868),w=n(46875),C=n(18993),D=n(86957),S=D.round,p=["fromSymbol","toSymbol"];function v(r){return"_"+r+"Type"}function t(r,l,h){var f=l.getItemVisual(h,"color"),c=l.getItemVisual(h,r),d=l.getItemVisual(h,r+"Size");if(!(!c||c==="none")){T.isArray(d)||(d=[d,d]);var A=M.createSymbol(c,-d[0]/2,-d[1]/2,d[0],d[1],f);return A.name=r,A}}function s(r){var l=new w({name:"line",subPixelOptimize:!0});return i(l.shape,r),l}function i(r,l){r.x1=l[0][0],r.y1=l[0][1],r.x2=l[1][0],r.y2=l[1][1],r.percent=1;var h=l[2];h?(r.cpx1=h[0],r.cpy1=h[1]):(r.cpx1=NaN,r.cpy1=NaN)}function a(){var r=this,l=r.childOfName("fromSymbol"),h=r.childOfName("toSymbol"),f=r.childOfName("label");if(!(!l&&!h&&f.ignore)){for(var c=1,d=this.parent;d;)d.scale&&(c/=d.scale[0]),d=d.parent;var A=r.childOfName("line");if(!(!this.__dirty&&!A.__dirty)){var x=A.shape.percent,y=A.pointAt(0),g=A.pointAt(x),m=L.sub([],g,y);if(L.normalize(m,m),l){l.attr("position",y);var b=A.tangentAt(0);l.attr("rotation",Math.PI/2-Math.atan2(b[1],b[0])),l.attr("scale",[c*x,c*x])}if(h){h.attr("position",g);var b=A.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(b[1],b[0])),h.attr("scale",[c*x,c*x])}if(!f.ignore){f.attr("position",g);var I,R,E,P,O=f.__labelDistance,N=O[0]*c,_=O[1]*c,G=x/2,b=A.tangentAt(G),F=[b[1],-b[0]],W=A.pointAt(G);F[1]>0&&(F[0]=-F[0],F[1]=-F[1]);var U=b[0]<0?-1:1;if(f.__position!=="start"&&f.__position!=="end"){var H=-Math.atan2(b[1],b[0]);g[0].8?"left":m[0]<-.8?"right":"center",E=m[1]>.8?"top":m[1]<-.8?"bottom":"middle";break;case"start":I=[-m[0]*N+y[0],-m[1]*_+y[1]],R=m[0]>.8?"right":m[0]<-.8?"left":"center",E=m[1]>.8?"bottom":m[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[N*U+y[0],y[1]+z],R=b[0]<0?"right":"left",P=[-N*U,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[W[0],W[1]+z],R="center",P=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-N*U+g[0],g[1]+z],R=b[0]>=0?"right":"left",P=[N*U,-z];break}f.attr({style:{textVerticalAlign:f.__verticalAlign||E,textAlign:f.__textAlign||R},position:I,scale:[c,c],origin:P})}}}}function u(r,l,h){C.Group.call(this),this._createLine(r,l,h)}var e=u.prototype;e.beforeUpdate=a,e._createLine=function(r,l,h){var f=r.hostModel,c=r.getItemLayout(l),d=s(c);d.shape.percent=0,C.initProps(d,{shape:{percent:1}},f,l),this.add(d);var A=new C.Text({name:"label",lineLabelOriginalOpacity:1});this.add(A),T.each(p,function(x){var y=t(x,r,l);this.add(y),this[v(x)]=r.getItemVisual(l,x)},this),this._updateCommonStl(r,l,h)},e.updateData=function(r,l,h){var f=r.hostModel,c=this.childOfName("line"),d=r.getItemLayout(l),A={shape:{}};i(A.shape,d),C.updateProps(c,A,f,l),T.each(p,function(x){var y=r.getItemVisual(l,x),g=v(x);if(this[g]!==y){this.remove(this.childOfName(x));var m=t(x,r,l);this.add(m)}this[g]=y},this),this._updateCommonStl(r,l,h)},e._updateCommonStl=function(r,l,h){var f=r.hostModel,c=this.childOfName("line"),d=h&&h.lineStyle,A=h&&h.hoverLineStyle,x=h&&h.labelModel,y=h&&h.hoverLabelModel;if(!h||r.hasItemOption){var g=r.getItemModel(l);d=g.getModel("lineStyle").getLineStyle(),A=g.getModel("emphasis.lineStyle").getLineStyle(),x=g.getModel("label"),y=g.getModel("emphasis.label")}var m=r.getItemVisual(l,"color"),b=T.retrieve3(r.getItemVisual(l,"opacity"),d.opacity,1);c.useStyle(T.defaults({strokeNoScale:!0,fill:"none",stroke:m,opacity:b},d)),c.hoverStyle=A,T.each(p,function(U){var H=this.childOfName(U);H&&(H.setColor(m),H.setStyle({opacity:b}))},this);var I=x.getShallow("show"),R=y.getShallow("show"),E=this.childOfName("label"),P,O;if((I||R)&&(P=m||"#000",O=f.getFormattedLabel(l,"normal",r.dataType),O==null)){var N=f.getRawValue(l);O=N==null?r.getName(l):isFinite(N)?S(N):N}var _=I?O:null,G=R?T.retrieve2(f.getFormattedLabel(l,"emphasis",r.dataType),O):null,F=E.style;if(_!=null||G!=null){C.setTextStyle(E.style,x,{text:_},{autoColor:P}),E.__textAlign=F.textAlign,E.__verticalAlign=F.textVerticalAlign,E.__position=x.get("position")||"middle";var W=x.get("distance");T.isArray(W)||(W=[W,W]),E.__labelDistance=W}G!=null?E.hoverStyle={text:G,textFill:y.getTextColor(!0),fontStyle:y.getShallow("fontStyle"),fontWeight:y.getShallow("fontWeight"),fontSize:y.getShallow("fontSize"),fontFamily:y.getShallow("fontFamily")}:E.hoverStyle={text:null},E.ignore=!I&&!R,C.setHoverStyle(this)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateLayout=function(r,l){this.setLinePoints(r.getItemLayout(l))},e.setLinePoints=function(r){var l=this.childOfName("line");i(l.shape,r),l.dirty()},T.inherits(u,C.Group);var o=u;Y.exports=o},70562:function(Y,V,n){var T=n(18993),L=n(85617);function M(i){this._ctor=i||L,this.group=new T.Group}var w=M.prototype;w.isPersistent=function(){return!0},w.updateData=function(i){var a=this,u=a.group,e=a._lineData;a._lineData=i,e||u.removeAll();var o=p(i);i.diff(e).add(function(r){C(a,i,r,o)}).update(function(r,l){D(a,e,i,l,r,o)}).remove(function(r){u.remove(e.getItemGraphicEl(r))}).execute()};function C(i,a,u,e){var o=a.getItemLayout(u);if(t(o)){var r=new i._ctor(a,u,e);a.setItemGraphicEl(u,r),i.group.add(r)}}function D(i,a,u,e,o,r){var l=a.getItemGraphicEl(e);if(!t(u.getItemLayout(o))){i.group.remove(l);return}l?l.updateData(u,o,r):l=new i._ctor(u,o,r),u.setItemGraphicEl(o,l),i.group.add(l)}w.updateLayout=function(){var i=this._lineData;i&&i.eachItemGraphicEl(function(a,u){a.updateLayout(i,u)},this)},w.incrementalPrepareUpdate=function(i){this._seriesScope=p(i),this._lineData=null,this.group.removeAll()};function S(i){return i.animators&&i.animators.length>0}w.incrementalUpdate=function(i,a){function u(l){!l.isGroup&&!S(l)&&(l.incremental=l.useHoverLayer=!0)}for(var e=i.start;e "+c)),l++)}var d=s.get("coordinateSystem"),A;if(d==="cartesian2d"||d==="polar")A=S(v,s);else{var x=D.get(d),y=x&&x.type!=="view"?x.dimensions||[]:[];T.indexOf(y,"value")<0&&y.concat(["value"]);var g=C(v,{coordDimensions:y});A=new L(g,s),A.initData(v)}var m=new L(["value"],s);return m.initData(r,o),a&&a(A,m),w({mainData:A,struct:u,structAttr:"graph",datas:{node:A,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}Y.exports=p},32977:function(Y,V,n){var T=n(69008),L=n(39177),M=n(34476),w=n(8326),C=w.SOURCE_FORMAT_ORIGINAL,D=n(28176),S=D.getDimensionTypeByAxis,p=n(90830),v=p.getDataItemValue,t=n(33807),s=n(28927),i=s.getCoordSysInfoBySeries,a=n(50751),u=n(22240),e=u.enableDataStack,o=n(67063),r=o.makeSeriesEncodeForAxisCoordSys;function l(d,A,x){x=x||{},a.isInstance(d)||(d=a.seriesDataToSource(d));var y=A.get("coordinateSystem"),g=t.get(y),m=i(A),b;m&&(b=T.map(m.coordSysDims,function(_){var G={name:_},F=m.axisMap.get(_);if(F){var W=F.get("type");G.type=S(W)}return G})),b||(b=g&&(g.getDimensionsInfo?g.getDimensionsInfo():g.dimensions.slice())||["x","y"]);var I=M(d,{coordDimensions:b,generateCoord:x.generateCoord,encodeDefaulter:x.useEncodeDefaulter?T.curry(r,b,A):null}),R,E;m&&T.each(I,function(_,G){var F=_.coordDim,W=m.categoryAxisMap.get(F);W&&(R==null&&(R=G),_.ordinalMeta=W.getOrdinalMeta()),_.otherDims.itemName!=null&&(E=!0)}),!E&&R!=null&&(I[R].otherDims.itemName=0);var P=e(A,I),O=new L(I,A);O.setCalculationInfo(P);var N=R!=null&&h(d)?function(_,G,F,W){return W===R?F:this.defaultDimValueGetter(_,G,F,W)}:null;return O.hasItemOption=!1,O.initData(d,null,N),O}function h(d){if(d.sourceFormat===C){var A=f(d.data||[]);return A!=null&&!T.isArray(v(A))}}function f(d){for(var A=0;A=0){var v=p.getData().tree.root,t=D.targetNode;if(typeof t=="string"&&(t=v.getNodeById(t)),t&&v.contains(t))return{node:t};var s=D.targetNodeId;if(s!=null&&(t=v.getNodeById(s)))return{node:t}}}function M(D){for(var S=[];D;)D=D.parentNode,D&&S.push(D);return S.reverse()}function w(D,S){var p=M(D);return T.indexOf(p,S)>=0}function C(D,S){for(var p=[];D;){var v=D.dataIndex;p.push({name:D.name,dataIndex:v,value:S.getRawValue(v)}),D=D.parentNode}return p.reverse(),p}V.retrieveTargetInfo=L,V.getPathToRoot=M,V.aboveViewRoot=w,V.wrapTreePathInfo=C},45112:function(Y,V,n){var T=n(60425),L=n(69008),M=n(28176),w=M.getDimensionTypeByAxis,C=n(67063),D=C.makeSeriesEncodeForAxisCoordSys,S={_baseAxisDim:null,getInitialData:function(p,v){var t,s=v.getComponent("xAxis",this.get("xAxisIndex")),i=v.getComponent("yAxis",this.get("yAxisIndex")),a=s.get("type"),u=i.get("type"),e;a==="category"?(p.layout="horizontal",t=s.getOrdinalMeta(),e=!0):u==="category"?(p.layout="vertical",t=i.getOrdinalMeta(),e=!0):p.layout=p.layout||"horizontal";var o=["x","y"],r=p.layout==="horizontal"?0:1,l=this._baseAxisDim=o[r],h=o[1-r],f=[s,i],c=f[r].get("type"),d=f[1-r].get("type"),A=p.data;if(A&&e){var x=[];L.each(A,function(m,b){var I;m.value&&L.isArray(m.value)?(I=m.value.slice(),m.value.unshift(b)):L.isArray(m)?(I=m.slice(),m.unshift(b)):I=m,x.push(I)}),p.data=x}var y=this.defaultValueDimensions,g=[{name:l,type:w(c),ordinalMeta:t,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:w(d),dimsDef:y.slice()}];return T(this,{coordDimensions:g,dimensionsCount:y.length+1,encodeDefaulter:L.curry(D,g,this)})},getBaseAxis:function(){var p=this._baseAxisDim;return this.ecModel.getComponent(p+"Axis",this.get(p+"AxisIndex")).axis}};V.seriesModelMixin=S},54023:function(Y,V,n){var T=n(3096);n(30399),n(49297);var L=n(11404),M=n(87984),w=n(70932);n(47102),T.registerVisual(L("line","circle","line")),T.registerLayout(M("line")),T.registerProcessor(T.PRIORITY.PROCESSOR.STATISTIC,w("line"))},30399:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(32977),w=n(38645),C=w.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(D,S){return M(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});Y.exports=C},49297:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(16254),C=w.fromPoints,D=n(38346),S=n(32427),p=n(93913),v=n(18993),t=n(90830),s=n(81158),i=s.Polyline,a=s.Polygon,u=n(68880),e=n(75518),o=e.prepareDataCoordInfo,r=e.getStackedOnPoint,l=n(38797),h=l.createGridClipPath,f=l.createPolarClipPath;function c(E,P){if(E.length===P.length){for(var O=0;O=0;G--){var F=O[G].dimension,W=E.dimensions[F],U=E.getDimensionInfo(W);if(N=U&&U.coordDim,N==="x"||N==="y"){_=O[G];break}}if(_){var H=P.getAxis(N),z=M.map(_.stops,function(tt){return{coord:H.toGlobalCoord(H.dataToCoord(tt.value)),color:tt.color}}),B=z.length,k=_.outerColors.slice();B&&z[0].coord>z[B-1].coord&&(z.reverse(),k.reverse());var Z=10,X=z[0].coord-Z,K=z[B-1].coord+Z,Q=K-X;if(Q<.001)return"transparent";M.each(z,function(tt){tt.offset=(tt.coord-X)/Q}),z.push({offset:B?z[B-1].offset:.5,color:k[1]||"transparent"}),z.unshift({offset:B?z[0].offset:.5,color:k[0]||"transparent"});var J=new v.LinearGradient(0,0,0,0,z,!0);return J[N]=X,J[N+"2"]=K,J}}}function m(E,P,O){var N=E.get("showAllSymbol"),_=N==="auto";if(!(N&&!_)){var G=O.getAxesByScale("ordinal")[0];if(G&&!(_&&b(G,P))){var F=P.mapDimension(G.dim),W={};return M.each(G.getViewLabels(),function(U){W[U.tickValue]=1}),function(U){return!W.hasOwnProperty(P.get(F,U))}}}}function b(E,P){var O=E.getExtent(),N=Math.abs(O[1]-O[0])/E.scale.count();isNaN(N)&&(N=0);for(var _=P.count(),G=Math.max(1,Math.round(_/5)),F=0;F<_;F+=G)if(S.getSymbolSize(P,F)[E.isHorizontal()?1:0]*1.5>N)return!1;return!0}function I(E,P,O){if(E.type==="cartesian2d"){var N=E.getBaseAxis().isHorizontal(),_=h(E,P,O);if(!O.get("clip",!0)){var G=_.shape,F=Math.max(G.width,G.height);N?(G.y-=F,G.height+=F*2):(G.x-=F,G.width+=F*2)}return _}else return f(E,P,O)}var R=u.extend({type:"line",init:function(){var E=new v.Group,P=new D;this.group.add(P.group),this._symbolDraw=P,this._lineGroup=E},render:function(E,P,O){var N=E.coordinateSystem,_=this.group,G=E.getData(),F=E.getModel("lineStyle"),W=E.getModel("areaStyle"),U=G.mapArray(G.getItemLayout),H=N.type==="polar",z=this._coordSys,B=this._symbolDraw,k=this._polyline,Z=this._polygon,X=this._lineGroup,K=E.get("animation"),Q=!W.isEmpty(),J=W.get("origin"),tt=o(N,G,J),q=x(N,G,tt),rt=E.get("showSymbol"),$=rt&&!H&&m(E,G,N),j=this._data;j&&j.eachItemGraphicEl(function(gt,Ct){gt.__temp&&(_.remove(gt),j.setItemGraphicEl(Ct,null))}),rt||B.remove(),_.add(X);var st=!H&&E.get("step"),ot;N&&N.getArea&&E.get("clip",!0)&&(ot=N.getArea(),ot.width!=null?(ot.x-=.1,ot.y-=.1,ot.width+=.2,ot.height+=.2):ot.r0&&(ot.r0-=.5,ot.r1+=.5)),this._clipShapeForSymbol=ot,k&&z.type===N.type&&st===this._step?(Q&&!Z?Z=this._newPolygon(U,q,N,K):Z&&!Q&&(X.remove(Z),Z=this._polygon=null),X.setClipPath(I(N,!1,E)),rt&&B.updateData(G,{isIgnore:$,clipShape:ot}),G.eachItemGraphicEl(function(gt){gt.stopAnimation(!0)}),(!c(this._stackedOnPoints,q)||!c(this._points,U))&&(K?this._updateAnimation(G,q,N,O,st,J):(st&&(U=y(U,N,st),q=y(q,N,st)),k.setShape({points:U}),Z&&Z.setShape({points:U,stackedOnPoints:q})))):(rt&&B.updateData(G,{isIgnore:$,clipShape:ot}),st&&(U=y(U,N,st),q=y(q,N,st)),k=this._newPolyline(U,N,K),Q&&(Z=this._newPolygon(U,q,N,K)),X.setClipPath(I(N,!0,E)));var vt=g(G,N)||G.getVisual("color");k.useStyle(M.defaults(F.getLineStyle(),{fill:"none",stroke:vt,lineJoin:"bevel"}));var yt=E.get("smooth");if(yt=A(E.get("smooth")),k.setShape({smooth:yt,smoothMonotone:E.get("smoothMonotone"),connectNulls:E.get("connectNulls")}),Z){var it=G.getCalculationInfo("stackedOnSeries"),ut=0;Z.useStyle(M.defaults(W.getAreaStyle(),{fill:vt,opacity:.7,lineJoin:"bevel"})),it&&(ut=A(it.get("smooth"))),Z.setShape({smooth:yt,stackedOnSmooth:ut,smoothMonotone:E.get("smoothMonotone"),connectNulls:E.get("connectNulls")})}this._data=G,this._coordSys=N,this._stackedOnPoints=q,this._points=U,this._step=st,this._valueOrigin=J},dispose:function(){},highlight:function(E,P,O,N){var _=E.getData(),G=t.queryDataIndex(_,N);if(!(G instanceof Array)&&G!=null&&G>=0){var F=_.getItemGraphicEl(G);if(!F){var W=_.getItemLayout(G);if(!W||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(W[0],W[1]))return;F=new S(_,G),F.position=W,F.setZ(E.get("zlevel"),E.get("z")),F.ignore=isNaN(W[0])||isNaN(W[1]),F.__temp=!0,_.setItemGraphicEl(G,F),F.stopSymbolAnimation(!0),this.group.add(F)}F.highlight()}else u.prototype.highlight.call(this,E,P,O,N)},downplay:function(E,P,O,N){var _=E.getData(),G=t.queryDataIndex(_,N);if(G!=null&&G>=0){var F=_.getItemGraphicEl(G);F&&(F.__temp?(_.setItemGraphicEl(G,null),this.group.remove(F)):F.downplay())}else u.prototype.downplay.call(this,E,P,O,N)},_newPolyline:function(E){var P=this._polyline;return P&&this._lineGroup.remove(P),P=new i({shape:{points:E},silent:!0,z2:10}),this._lineGroup.add(P),this._polyline=P,P},_newPolygon:function(E,P){var O=this._polygon;return O&&this._lineGroup.remove(O),O=new a({shape:{points:E,stackedOnPoints:P},silent:!0}),this._lineGroup.add(O),this._polygon=O,O},_updateAnimation:function(E,P,O,N,_,G){var F=this._polyline,W=this._polygon,U=E.hostModel,H=p(this._data,E,this._stackedOnPoints,P,this._coordSys,O,this._valueOrigin,G),z=H.current,B=H.stackedOnCurrent,k=H.next,Z=H.stackedOnNext;if(_&&(z=y(H.current,O,_),B=y(H.stackedOnCurrent,O,_),k=y(H.next,O,_),Z=y(H.stackedOnNext,O,_)),d(z,k)>3e3||W&&d(B,Z)>3e3){F.setShape({points:k}),W&&W.setShape({points:k,stackedOnPoints:Z});return}F.shape.__points=H.current,F.shape.points=z,v.updateProps(F,{shape:{points:k}},U),W&&(W.setShape({points:z,stackedOnPoints:B}),v.updateProps(W,{shape:{points:k,stackedOnPoints:Z}},U));for(var X=[],K=H.status,Q=0;Q0?t=s[0]:s[1]<0&&(t=s[1]),t}function S(p,v,t,s){var i=NaN;p.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),s)),isNaN(i)&&(i=p.valueStart);var a=p.baseDataOffset,u=[];return u[a]=t.get(p.baseDim,s),u[1-a]=i,v.dataToPoint(u)}V.prepareDataCoordInfo=C,V.getStackedOnPoint=S},93913:function(Y,V,n){var T=n(75518),L=T.prepareDataCoordInfo,M=T.getStackedOnPoint;function w(D,S){var p=[];return S.diff(D).add(function(v){p.push({cmd:"+",idx:v})}).update(function(v,t){p.push({cmd:"=",idx:t,idx1:v})}).remove(function(v){p.push({cmd:"-",idx:v})}).execute(),p}function C(D,S,p,v,t,s,i,a){for(var u=w(D,S),e=[],o=[],r=[],l=[],h=[],f=[],c=[],d=L(t,S,i),A=L(s,D,a),x=0;x=d||R<0)break;if(s(P)){if(b){R+=A;continue}break}if(R===f)l[A>0?"moveTo":"lineTo"](P[0],P[1]);else if(g>0){var O=h[I],N=m==="y"?1:0,_=(P[N]-O[N])*g;S(v,O),v[N]=O[N]+_,S(t,P),t[N]=P[N]-_,l.bezierCurveTo(v[0],v[1],t[0],t[1],P[0],P[1])}else l.lineTo(P[0],P[1]);I=R,R+=A}return E}function u(l,h,f,c,d,A,x,y,g,m,b){for(var I=0,R=f,E=0;E=d||R<0)break;if(s(P)){if(b){R+=A;continue}break}if(R===f)l[A>0?"moveTo":"lineTo"](P[0],P[1]),S(v,P);else if(g>0){var O=R+A,G=h[O];if(b)for(;G&&s(h[O]);)O+=A,G=h[O];var N=.5,_=h[I],G=h[O];if(!G||s(G))S(t,P);else{s(G)&&!b&&(G=P),L.sub(p,G,_);var F,W;if(m==="x"||m==="y"){var U=m==="x"?0:1;F=Math.abs(P[U]-_[U]),W=Math.abs(P[U]-G[U])}else F=L.dist(P,_),W=L.dist(P,G);N=W/(W+F),D(t,P,p,-g*(1-N))}w(v,v,y),C(v,v,x),w(t,t,y),C(t,t,x),l.bezierCurveTo(v[0],v[1],t[0],t[1],P[0],P[1]),D(v,P,p,g*N)}else l.lineTo(P[0],P[1]);I=R,R+=A}return E}function e(l,h){var f=[1/0,1/0],c=[-1/0,-1/0];if(h)for(var d=0;dc[0]&&(c[0]=A[0]),A[1]>c[1]&&(c[1]=A[1])}return{min:h?f:c,max:h?c:f}}var o=T.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:M(T.prototype.brush),buildPath:function(l,h){var f=h.points,c=0,d=f.length,A=e(f,h.smoothConstraint);if(h.connectNulls){for(;d>0&&s(f[d-1]);d--);for(;c0&&s(f[A-1]);A--);for(;dh}}return{flatCoordsOffset:new Uint32Array(f.buffer,0,A),flatCoords:c,count:x}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},getInitialData:function(r,l){var h=new w(["value"],this);return h.hasItemOption=!1,h.initData(r.data,[],function(f,c,d,A){if(f instanceof Array)return NaN;h.hasItemOption=!0;var x=f.value;if(x!=null)return x instanceof Array?x[A]:x}),h},formatTooltip:function(r){var l=this.getData(),h=l.getItemModel(r),f=h.get("name");if(f)return f;var c=h.get("fromName"),d=h.get("toName"),A=[];return c!=null&&A.push(c),d!=null&&A.push(d),t(A.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var r=this.option.progressive;return r==null?this.option.large?1e4:this.get("progressive"):r},getProgressiveThreshold:function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?2e4:this.get("progressiveThreshold"):r},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),o=e;Y.exports=o},338:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(70562),C=n(5186),D=n(85617),S=n(84700),p=n(75313),v=n(68918),t=n(25784),s=n(38797),i=s.createClipPath,a=M.extendChartView({type:"lines",init:function(){},render:function(u,e,o){var r=u.getData(),l=this._updateLineDraw(r,u),h=u.get("zlevel"),f=u.get("effect.trailLength"),c=o.getZr(),d=c.painter.getType()==="svg";d||c.painter.getLayer(h).clear(!0),this._lastZlevel!=null&&!d&&c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(u)&&f&&(d||c.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(f/10+.9,1),0)})),l.updateData(r);var A=u.get("clip",!0)&&i(u.coordinateSystem,!1,u);A?this.group.setClipPath(A):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(u,e,o){var r=u.getData(),l=this._updateLineDraw(r,u);l.incrementalPrepareUpdate(r),this._clearLayer(o),this._finished=!1},incrementalRender:function(u,e,o){this._lineDraw.incrementalUpdate(u,e.getData()),this._finished=u.end===e.getData().count()},updateTransform:function(u,e,o){var r=u.getData(),l=u.pipelineContext;if(!this._finished||l.large||l.progressiveRender)return{update:!0};var h=t.reset(u);h.progress&&h.progress({start:0,end:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(o)},_updateLineDraw:function(u,e){var o=this._lineDraw,r=this._showEffect(e),l=!!e.get("polyline"),h=e.pipelineContext,f=h.large;return(!o||r!==this._hasEffet||l!==this._isPolyline||f!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=f?new v:new w(l?r?p:S:r?C:D),this._hasEffet=r,this._isPolyline=l,this._isLargeDraw=f,this.group.removeAll()),this.group.add(o.group),o},_showEffect:function(u){return!!u.get("effect.show")},_clearLayer:function(u){var e=u.getZr(),o=e.painter.getType()==="svg";!o&&this._lastZlevel!=null&&e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(u,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});Y.exports=a},25784:function(Y,V,n){var T=n(13861),L={seriesType:"lines",plan:T(),reset:function(M){var w=M.coordinateSystem,C=M.get("polyline"),D=M.pipelineContext.large;function S(p,v){var t=[];if(D){var s,i=p.end-p.start;if(C){for(var a=0,u=p.start;u"+C(l+" : "+r)},getTooltipPosition:function(e){if(e!=null){var o=this.getData().getName(e),r=this.coordinateSystem,l=r.getRegion(o);return l&&r.dataToPoint(l.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});T.mixin(a,S);var u=a;Y.exports=u},22554:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(25344),C="__seriesMapHighDown",D="__seriesMapCallKey",S=T.extendChartView({type:"map",render:function(t,s,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var u=this.group;if(u.removeAll(),!t.getHostGeoModel()){if(a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var e=this._mapDraw;e&&u.add(e.group)}else if(t.needsDrawMap){var e=this._mapDraw||new w(i,!0);u.add(e.group),e.draw(t,s,i,this,a),this._mapDraw=e}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&s.getComponent("legend")&&this._renderSymbols(t,s,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,s,i){var a=t.originalData,u=this.group;a.each(a.mapDimension("value"),function(e,o){if(!isNaN(e)){var r=a.getItemLayout(o);if(!(!r||!r.point)){var l=r.point,h=r.offset,f=new M.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:l[0]+h*9,cy:l[1],r:3},silent:!0,z2:8+(h?0:M.Z2_EMPHASIS_LIFT+1)});if(!h){var c=t.mainSeries.getData(),d=a.getName(o),A=c.indexOfName(d),x=a.getItemModel(o),y=x.getModel("label"),g=x.getModel("emphasis.label"),m=c.getItemGraphicEl(A),b=L.retrieve2(t.getFormattedLabel(A,"normal"),d),I=L.retrieve2(t.getFormattedLabel(A,"emphasis"),b),R=m[C],E=Math.random();if(!R){R=m[C]={};var P=L.curry(p,!0),O=L.curry(p,!1);m.on("mouseover",P).on("mouseout",O).on("emphasis",P).on("normal",O)}m[D]=E,L.extend(R,{recordVersion:E,circle:f,labelModel:y,hoverLabelModel:g,emphasisText:I,normalText:b}),v(R,!1)}u.add(f)}}})}});function p(t){var s=this[C];s&&s.recordVersion===this[D]&&v(s,t)}function v(t,s){var i=t.circle,a=t.labelModel,u=t.hoverLabelModel,e=t.emphasisText,o=t.normalText;s?(i.style.extendFrom(M.setTextStyle({},u,{text:u.get("show")?e:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=M.Z2_EMPHASIS_LIFT):(M.setTextStyle(i.style,a,{text:a.get("show")?o:null,textPosition:a.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),i.__mapOriginalZ2!=null&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}Y.exports=S},50027:function(Y,V,n){var T=n(69008);function L(M){var w=[];T.each(M.series,function(C){C&&C.type==="map"&&(w.push(C),C.map=C.map||C.mapType,T.defaults(C,C.mapLocation))})}Y.exports=L},63730:function(Y,V,n){var T=n(69008);function L(w,C){var D={};return T.each(w,function(S){S.each(S.mapDimension("value"),function(p,v){var t="ec-"+S.getName(v);D[t]=D[t]||[],isNaN(p)||D[t].push(p)})}),w[0].map(w[0].mapDimension("value"),function(S,p){for(var v="ec-"+w[0].getName(p),t=0,s=1/0,i=-1/0,a=D[v].length,u=0;u0&&(l?h!=="scale":f!=="transition")){for(var A=u.getItemLayout(0),x=1;isNaN(A.startAngle)&&x=a.r0}}}),v=p;Y.exports=v},94034:function(Y,V,n){var T=n(63603),L=n(86957),M=L.parsePercent,w=Math.PI/180;function C(v,t,s,i,a,u,e,o,r,l){v.sort(function(I,R){return I.y-R.y});function h(I,R,E,P){for(var O=I;Or+e);O++)if(v[O].y+=E,O>I&&O+1v[O].y+v[O].height){f(O,E/2);return}f(R-1,E/2)}function f(I,R){for(var E=I;E>=0&&!(v[E].y-R0&&v[E].y>v[E-1].y+v[E-1].height));E--);}function c(I,R,E,P,O,N){for(var _=(N>0,R?Number.MAX_VALUE:0),G=0,F=I.length;G=_&&(z=_-10),!R&&z<=_&&(z=_+10),I[G].x=E+z*N,_=z}}for(var d=0,A,x=v.length,y=[],g=[],m=0;m=s?g.push(v[m]):y.push(v[m]);c(y,!1,t,s,i,a),c(g,!0,t,s,i,a)}function D(v,t,s,i,a,u,e,o){for(var r=[],l=[],h=Number.MAX_VALUE,f=-Number.MAX_VALUE,c=0;c0?"right":"left":_>0?"left":"right"}var q,rt=x.get("rotate");typeof rt=="number"?q=rt*(Math.PI/180):q=rt?_<0?-N+Math.PI:-N:0,h=!!q,d.label={x:F,y:W,position:y,height:B.height,len:P,len2:O,linePoints:U,textAlign:H,verticalAlign:"middle",rotation:q,inside:k,labelDistance:g,labelAlignTo:m,labelMargin:b,bleedMargin:I,textRect:B,text:z,font:R},k||o.push(d.label)}}),!h&&v.get("avoidLabelOverlap")&&D(o,r,l,t,s,i,a,u)}Y.exports=p},85884:function(Y,V,n){var T=n(86957),L=T.parsePercent,M=T.linearMap,w=n(7357),C=n(94034),D=n(69008),S=Math.PI*2,p=Math.PI/180;function v(s,i){return w.getLayoutRect(s.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function t(s,i,a,u){i.eachSeriesByType(s,function(e){var o=e.getData(),r=o.mapDimension("value"),l=v(e,a),h=e.get("center"),f=e.get("radius");D.isArray(f)||(f=[0,f]),D.isArray(h)||(h=[h,h]);var c=L(l.width,a.getWidth()),d=L(l.height,a.getHeight()),A=Math.min(c,d),x=L(h[0],c)+l.x,y=L(h[1],d)+l.y,g=L(f[0],A/2),m=L(f[1],A/2),b=-e.get("startAngle")*p,I=e.get("minAngle")*p,R=0;o.each(r,function(B){!isNaN(B)&&R++});var E=o.getSum(r),P=Math.PI/(E||R)*2,O=e.get("clockwise"),N=e.get("roseType"),_=e.get("stillShowZeroSum"),G=o.getDataExtent(r);G[0]=0;var F=S,W=0,U=b,H=O?1:-1;if(o.each(r,function(B,k){var Z;if(isNaN(B)){o.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:O,cx:x,cy:y,r0:g,r:N?NaN:m,viewRect:l});return}N!=="area"?Z=E===0&&_?P:B*P:Z=S/R,Z"+M.map(i,function(u,e){var o=t.get(t.mapDimension(u.dim),v);return C(u.name+" : "+o)}).join("
")},getTooltipPosition:function(v){if(v!=null){for(var t=this.getData(),s=this.coordinateSystem,i=t.getValues(M.map(s.dimensions,function(o){return t.mapDimension(o)}),v,!0),a=0,u=i.length;a=0&&(e[u[o].depth]=new C(u[o],this,s));if(a&&i){var r=L(a,i,this,!0,l);return r.data}function l(h,f){h.wrapMethod("getItemModel",function(c,d){return c.customizeGetParent(function(A){var x=this.parentModel,y=x.getData().getItemLayout(d).depth,g=x.levelModels[y];return g||this.parentModel}),c}),f.wrapMethod("getItemModel",function(c,d){return c.customizeGetParent(function(A){var x=this.parentModel,y=x.getGraph().getEdgeByIndex(d),g=y.node1.getLayout().depth,m=x.levelModels[g];return m||this.parentModel}),c})}},setNodePosition:function(t,s){var i=this.option.data[t];i.localX=s[0],i.localY=s[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,s,i){if(i==="edge"){var a=this.getDataParams(t,i),u=a.data,e=u.source+" -- "+u.target;return a.value&&(e+=" : "+a.value),w(e)}else if(i==="node"){var o=this.getGraph().getNodeByIndex(t),r=o.getLayout().value,l=this.getDataParams(t,i).data.name;if(r)var e=l+" : "+r;return w(e)}return p.superCall(this,"formatTooltip",t,s)},optionUpdated:function(){var t=this.option;t.focusNodeAdjacency===!0&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,s){var i=p.superCall(this,"getDataParams",t,s);if(i.value==null&&s==="node"){var a=this.getGraph().getNodeByIndex(t),u=a.getLayout().value;i.value=u}return i},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),v=p;Y.exports=v},9666:function(Y,V,n){var T=n(18993),L=n(3096),M=n(69008),w=["itemStyle","opacity"],C=["emphasis","itemStyle","opacity"],D=["lineStyle","opacity"],S=["emphasis","lineStyle","opacity"];function p(u,e){return u.getVisual("opacity")||u.getModel().get(e)}function v(u,e,o){var r=u.getGraphicEl(),l=p(u,e);o!=null&&(l==null&&(l=1),l*=o),r.downplay&&r.downplay(),r.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",l)})}function t(u,e){var o=p(u,e),r=u.getGraphicEl();r.traverse(function(l){l.type!=="group"&&l.setStyle("opacity",o)}),r.highlight&&r.highlight()}var s=T.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(u,e){var o=e.extent;u.moveTo(e.x1,e.y1),u.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),e.orient==="vertical"?(u.lineTo(e.x2+o,e.y2),u.bezierCurveTo(e.cpx2+o,e.cpy2,e.cpx1+o,e.cpy1,e.x1+o,e.y1)):(u.lineTo(e.x2,e.y2+o),u.bezierCurveTo(e.cpx2,e.cpy2+o,e.cpx1,e.cpy1+o,e.x1,e.y1+o)),u.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),i=L.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(u,e,o){var r=this,l=u.getGraph(),h=this.group,f=u.layoutInfo,c=f.width,d=f.height,A=u.getData(),x=u.getData("edge"),y=u.get("orient");this._model=u,h.removeAll(),h.attr("position",[f.x,f.y]),l.eachEdge(function(g){var m=new s;m.dataIndex=g.dataIndex,m.seriesIndex=u.seriesIndex,m.dataType="edge";var b=g.getModel("lineStyle"),I=b.get("curveness"),R=g.node1.getLayout(),E=g.node1.getModel(),P=E.get("localX"),O=E.get("localY"),N=g.node2.getLayout(),_=g.node2.getModel(),G=_.get("localX"),F=_.get("localY"),W=g.getLayout(),U,H,z,B,k,Z,X,K;switch(m.shape.extent=Math.max(1,W.dy),m.shape.orient=y,y==="vertical"?(U=(P!=null?P*c:R.x)+W.sy,H=(O!=null?O*d:R.y)+R.dy,z=(G!=null?G*c:N.x)+W.ty,B=F!=null?F*d:N.y,k=U,Z=H*(1-I)+B*I,X=z,K=H*I+B*(1-I)):(U=(P!=null?P*c:R.x)+R.dx,H=(O!=null?O*d:R.y)+W.sy,z=G!=null?G*c:N.x,B=(F!=null?F*d:N.y)+W.ty,k=U*(1-I)+z*I,Z=H,X=U*I+z*(1-I),K=B),m.setShape({x1:U,y1:H,x2:z,y2:B,cpx1:k,cpy1:Z,cpx2:X,cpy2:K}),m.setStyle(b.getItemStyle()),m.style.fill){case"source":m.style.fill=g.node1.getVisual("color");break;case"target":m.style.fill=g.node2.getVisual("color");break}T.setHoverStyle(m,g.getModel("emphasis.lineStyle").getItemStyle()),h.add(m),x.setItemGraphicEl(g.dataIndex,m)}),l.eachNode(function(g){var m=g.getLayout(),b=g.getModel(),I=b.get("localX"),R=b.get("localY"),E=b.getModel("label"),P=b.getModel("emphasis.label"),O=new T.Rect({shape:{x:I!=null?I*c:m.x,y:R!=null?R*d:m.y,width:m.dx,height:m.dy},style:b.getModel("itemStyle").getItemStyle()}),N=g.getModel("emphasis.itemStyle").getItemStyle();T.setLabelStyle(O.style,N,E,P,{labelFetcher:u,labelDataIndex:g.dataIndex,defaultText:g.id,isRectText:!0}),O.setStyle("fill",g.getVisual("color")),T.setHoverStyle(O,N),h.add(O),A.setItemGraphicEl(g.dataIndex,O),O.dataType="node"}),A.eachItemGraphicEl(function(g,m){var b=A.getItemModel(m);b.get("draggable")&&(g.drift=function(I,R){r._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=R,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:u.id,dataIndex:A.getRawIndex(m),localX:this.shape.x/c,localY:this.shape.y/d})},g.ondragend=function(){r._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move"),g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.focusNodeAdjHandler&&g.off("mouseover",g.focusNodeAdjHandler),g.unfocusNodeAdjHandler&&g.off("mouseout",g.unfocusNodeAdjHandler),b.get("focusNodeAdjacency")&&(g.on("mouseover",g.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,dataIndex:g.dataIndex}))}),g.on("mouseout",g.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(o)}))}),x.eachItemGraphicEl(function(g,m){var b=x.getItemModel(m);g.focusNodeAdjHandler&&g.off("mouseover",g.focusNodeAdjHandler),g.unfocusNodeAdjHandler&&g.off("mouseout",g.unfocusNodeAdjHandler),b.get("focusNodeAdjacency")&&(g.on("mouseover",g.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,edgeDataIndex:g.dataIndex}))}),g.on("mouseout",g.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(o)}))}),!this._data&&u.get("animation")&&h.setClipPath(a(h.getBoundingRect(),u,function(){h.removeClipPath()})),this._data=u.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(u){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){e._unfocusDelayTimer=null,u.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(u,e,o,r){var l=u.getData(),h=l.graph,f=r.dataIndex,c=l.getItemModel(f),d=r.edgeDataIndex;if(!(f==null&&d==null)){var A=h.getNodeByIndex(f),x=h.getEdgeByIndex(d);if(h.eachNode(function(g){v(g,w,.1)}),h.eachEdge(function(g){v(g,D,.1)}),A){t(A,C);var y=c.get("focusNodeAdjacency");y==="outEdges"?M.each(A.outEdges,function(g){g.dataIndex<0||(t(g,S),t(g.node2,C))}):y==="inEdges"?M.each(A.inEdges,function(g){g.dataIndex<0||(t(g,S),t(g.node1,C))}):y==="allEdges"&&M.each(A.edges,function(g){g.dataIndex<0||(t(g,S),g.node1!==A&&t(g.node1,C),g.node2!==A&&t(g.node2,C))})}x&&(t(x,S),t(x.node1,C),t(x.node2,C))}},unfocusNodeAdjacency:function(u,e,o,r){var l=u.getGraph();l.eachNode(function(h){v(h,w)}),l.eachEdge(function(h){v(h,D)})}});function a(u,e,o){var r=new T.Rect({shape:{x:u.x-10,y:u.y-10,width:0,height:u.height+20}});return T.initProps(r,{shape:{width:u.width+20}},e,o),r}Y.exports=i},52155:function(Y,V,n){var T=n(3096);n(18148),T.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(L,M){M.eachComponent({mainType:"series",subType:"sankey",query:L},function(w){w.setNodePosition(L.dataIndex,[L.localX,L.localY])})})},69946:function(Y,V,n){var T=n(7357),L=n(69008),M=n(90830),w=M.groupData;function C(b,I,R){b.eachSeriesByType("sankey",function(E){var P=E.get("nodeWidth"),O=E.get("nodeGap"),N=D(E,I);E.layoutInfo=N;var _=N.width,G=N.height,F=E.getGraph(),W=F.nodes,U=F.edges;p(W);var H=L.filter(W,function(Z){return Z.getLayout().value===0}),z=H.length!==0?0:E.get("layoutIterations"),B=E.get("orient"),k=E.get("nodeAlign");S(W,U,P,O,_,G,z,B,k)})}function D(b,I){return T.getLayoutRect(b.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function S(b,I,R,E,P,O,N,_,G){v(b,I,R,P,O,_,G),u(b,I,O,P,E,N,_),m(b,_)}function p(b){L.each(b,function(I){var R=y(I.outEdges,x),E=y(I.inEdges,x),P=I.getValue()||0,O=Math.max(R,E,P);I.setLayout({value:O},!0)})}function v(b,I,R,E,P,O,N){for(var _=[],G=[],F=[],W=[],U=0,$=0,H=0;H=0;X&&Z.depth>z&&(z=Z.depth),k.setLayout({depth:X?Z.depth:U},!0),O==="vertical"?k.setLayout({dy:R},!0):k.setLayout({dx:R},!0);for(var K=0;KU-1?z:U-1;N&&N!=="left"&&s(b,N,O,rt);var $=O==="vertical"?(P-R)/rt:(E-R)/rt;a(b,$,O)}function t(b){var I=b.hostGraph.data.getRawDataItem(b.dataIndex);return I.depth!=null&&I.depth>=0}function s(b,I,R,E){if(I==="right"){for(var P=[],O=b,N=0;O.length;){for(var _=0;_0;O--)G*=.99,l(_,G,N),r(_,P,R,E,N),g(_,G,N),r(_,P,R,E,N)}function e(b,I){var R=[],E=I==="vertical"?"y":"x",P=w(b,function(O){return O.getLayout()[E]});return P.keys.sort(function(O,N){return O-N}),L.each(P.keys,function(O){R.push(P.buckets.get(O))}),R}function o(b,I,R,E,P,O){var N=1/0;L.each(b,function(_){var G=_.length,F=0;L.each(_,function(U){F+=U.getLayout().value});var W=O==="vertical"?(E-(G-1)*P)/F:(R-(G-1)*P)/F;W0&&(_=G.getLayout()[O]+F,P==="vertical"?G.setLayout({x:_},!0):G.setLayout({y:_},!0)),W=G.getLayout()[O]+G.getLayout()[H]+I;var B=P==="vertical"?E:R;if(F=W-I-B,F>0)for(_=G.getLayout()[O]-F,P==="vertical"?G.setLayout({x:_},!0):G.setLayout({y:_},!0),W=_,z=U-2;z>=0;--z)G=N[z],F=G.getLayout()[O]+G.getLayout()[H]+I-W,F>0&&(_=G.getLayout()[O]-F,P==="vertical"?G.setLayout({x:_},!0):G.setLayout({y:_},!0)),W=G.getLayout()[O]})}function l(b,I,R){L.each(b.slice().reverse(),function(E){L.each(E,function(P){if(P.outEdges.length){var O=y(P.outEdges,h,R)/y(P.outEdges,x,R);if(isNaN(O)){var N=P.outEdges.length;O=N?y(P.outEdges,f,R)/N:0}if(R==="vertical"){var _=P.getLayout().x+(O-A(P,R))*I;P.setLayout({x:_},!0)}else{var G=P.getLayout().y+(O-A(P,R))*I;P.setLayout({y:G},!0)}}})})}function h(b,I){return A(b.node2,I)*b.getValue()}function f(b,I){return A(b.node2,I)}function c(b,I){return A(b.node1,I)*b.getValue()}function d(b,I){return A(b.node1,I)}function A(b,I){return I==="vertical"?b.getLayout().x+b.getLayout().dx/2:b.getLayout().y+b.getLayout().dy/2}function x(b){return b.getValue()}function y(b,I,R){for(var E=0,P=b.length,O=-1;++Ot&&(t=i)}),L.each(p,function(s){var i=new T({type:"color",mappingMethod:"linear",dataExtent:[v,t],visual:D.get("color")}),a=i.mapValueToVisual(s.getLayout().value),u=s.getModel().get("itemStyle.color");u!=null?s.setVisual("color",u):s.setVisual("color",a)})}})}Y.exports=M},43394:function(Y,V,n){var T=n(3096);n(94711),n(1150);var L=n(11404),M=n(87984);n(47102),T.registerVisual(L("scatter","circle")),T.registerLayout(M("scatter"))},94711:function(Y,V,n){var T=n(32977),L=n(38645),M=L.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(w,C){return T(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var w=this.option.progressive;return w==null?this.option.large?5e3:this.get("progressive"):w},getProgressiveThreshold:function(){var w=this.option.progressiveThreshold;return w==null?this.option.large?1e4:this.get("progressiveThreshold"):w},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});Y.exports=M},1150:function(Y,V,n){var T=n(3096),L=n(38346),M=n(15499),w=n(87984);T.extendChartView({type:"scatter",render:function(C,D,S){var p=C.getData(),v=this._updateSymbolDraw(p,C);v.updateData(p,{clipShape:this._getClipShape(C)}),this._finished=!0},incrementalPrepareRender:function(C,D,S){var p=C.getData(),v=this._updateSymbolDraw(p,C);v.incrementalPrepareUpdate(p),this._finished=!1},incrementalRender:function(C,D,S){this._symbolDraw.incrementalUpdate(C,D.getData(),{clipShape:this._getClipShape(D)}),this._finished=C.end===D.getData().count()},updateTransform:function(C,D,S){var p=C.getData();if(this.group.dirty(),!this._finished||p.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var v=w().reset(C);v.progress&&v.progress({start:0,end:p.count()},p),this._symbolDraw.updateLayout(p)},_getClipShape:function(C){var D=C.coordinateSystem,S=D&&D.getArea&&D.getArea();return C.get("clip",!0)?S:null},_updateSymbolDraw:function(C,D){var S=this._symbolDraw,p=D.pipelineContext,v=p.large;return(!S||v!==this._isLargeDraw)&&(S&&S.remove(),S=this._symbolDraw=v?new M:new L,this._isLargeDraw=v,this.group.removeAll()),this.group.add(S.group),S},remove:function(C,D){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},44189:function(Y,V,n){var T=n(3096),L=n(69008);n(58290),n(52637),n(50829);var M=n(22333),w=n(81005),C=n(22259);T.registerVisual(L.curry(M,"sunburst")),T.registerLayout(L.curry(w,"sunburst")),T.registerProcessor(L.curry(C,"sunburst"))},93645:function(Y,V,n){var T=n(69008),L=n(18993),M={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},w=2,C=4;function D(a,u,e){L.Group.call(this);var o=new L.Sector({z2:w});o.seriesIndex=u.seriesIndex;var r=new L.Text({z2:C,silent:a.getModel("label").get("silent")});this.add(o),this.add(r),this.updateData(!0,a,"normal",u,e);function l(){r.ignore=r.hoverIgnore}function h(){r.ignore=r.normalIgnore}this.on("emphasis",l).on("normal",h).on("mouseover",l).on("mouseout",h)}var S=D.prototype;S.updateData=function(a,u,e,o,r){this.node=u,u.piece=this,o=o||this._seriesModel,r=r||this._ecModel;var l=this.childAt(0);l.dataIndex=u.dataIndex;var h=u.getModel(),f=u.getLayout(),c=T.extend({},f);c.label=null;var d=v(u,o,r);i(u,o,d);var A=h.getModel("itemStyle").getItemStyle(),x;if(e==="normal")x=A;else{var y=h.getModel(e+".itemStyle").getItemStyle();x=T.merge(y,A)}x=T.defaults({lineJoin:"bevel",fill:x.fill||d},x),a?(l.setShape(c),l.shape.r=f.r0,L.updateProps(l,{shape:{r:f.r}},o,u.dataIndex),l.useStyle(x)):typeof x.fill=="object"&&x.fill.type||typeof l.style.fill=="object"&&l.style.fill.type?(L.updateProps(l,{shape:c},o),l.useStyle(x)):L.updateProps(l,{shape:c,style:x},o),this._updateLabel(o,d,e);var g=h.getShallow("cursor");if(g&&l.attr("cursor",g),a){var m=o.getShallow("highlightPolicy");this._initEvents(l,u,o,m)}this._seriesModel=o||this._seriesModel,this._ecModel=r||this._ecModel,L.setHoverStyle(this)},S.onEmphasis=function(a){var u=this;this.node.hostTree.root.eachNode(function(e){e.piece&&(u.node===e?e.piece.updateData(!1,e,"emphasis"):s(e,u.node,a)?e.piece.childAt(0).trigger("highlight"):a!==M.NONE&&e.piece.childAt(0).trigger("downplay"))})},S.onNormal=function(){this.node.hostTree.root.eachNode(function(a){a.piece&&a.piece.updateData(!1,a,"normal")})},S.onHighlight=function(){this.updateData(!1,this.node,"highlight")},S.onDownplay=function(){this.updateData(!1,this.node,"downplay")},S._updateLabel=function(a,u,e){var o=this.node.getModel(),r=o.getModel("label"),l=e==="normal"||e==="emphasis"?r:o.getModel(e+".label"),h=o.getModel("emphasis.label"),f=T.retrieve(a.getFormattedLabel(this.node.dataIndex,e,null,null,"label"),this.node.name);G("show")===!1&&(f="");var c=this.node.getLayout(),d=l.get("minAngle");d==null&&(d=r.get("minAngle")),d=d/180*Math.PI;var A=c.endAngle-c.startAngle;d!=null&&Math.abs(A)Math.PI/2?"right":"left"):!E||E==="center"?(b=(c.r+c.r0)/2,E="center"):E==="left"?(b=c.r0+R,y>Math.PI/2&&(E="right")):E==="right"&&(b=c.r-R,y>Math.PI/2&&(E="left")),x.attr("style",{text:f,textAlign:E,textVerticalAlign:G("verticalAlign")||"middle",opacity:G("opacity")});var P=b*g+c.cx,O=b*m+c.cy;x.attr("position",[P,O]);var N=G("rotate"),_=0;N==="radial"?(_=-y,_<-Math.PI/2&&(_+=Math.PI)):N==="tangential"?(_=Math.PI/2-y,_>Math.PI/2?_-=Math.PI:_<-Math.PI/2&&(_+=Math.PI)):typeof N=="number"&&(_=N*Math.PI/180),x.attr("rotation",_);function G(F){var W=l.get(F);return W==null?r.get(F):W}},S._initEvents=function(a,u,e,o){a.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,l=function(){r.onEmphasis(o)},h=function(){r.onNormal()},f=function(){r.onDownplay()},c=function(){r.onHighlight()};e.isAnimationEnabled()&&a.on("mouseover",l).on("mouseout",h).on("emphasis",l).on("normal",h).on("downplay",f).on("highlight",c)},T.inherits(D,L.Group);var p=D;function v(a,u,e){var o=a.getVisual("color"),r=a.getVisual("visualMeta");(!r||r.length===0)&&(o=null);var l=a.getModel("itemStyle").get("color");if(l)return l;if(o)return o;if(a.depth===0)return e.option.color[0];var h=e.option.color.length;return l=e.option.color[t(a)%h],l}function t(a){for(var u=a;u.depth>1;)u=u.parentNode;var e=a.getAncestors()[0];return T.indexOf(e.children,u)}function s(a,u,e){return e===M.NONE?!1:e===M.SELF?a===u:e===M.ANCESTOR?a===u||a.isAncestorOf(u):a===u||a.isDescendantOf(u)}function i(a,u,e){var o=u.getData();o.setItemVisual(a.dataIndex,"color",e)}Y.exports=p},58290:function(Y,V,n){var T=n(69008),L=n(38645),M=n(54327),w=n(22889),C=w.wrapTreePathInfo,D=L.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(p,v){var t={name:p.name,children:p.data};S(t);var s=p.levels||[],i={};return i.levels=s,M.createTree(t,this,i).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(p){var v=L.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(p);return v.treePathInfo=C(t,this),v},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(p){p?this._viewRoot=p:p=this._viewRoot;var v=this.getRawData().tree.root;(!p||p!==v&&!v.contains(p))&&(this._viewRoot=v)}});function S(p){var v=0;T.each(p.children,function(s){S(s);var i=s.value;T.isArray(i)&&(i=i[0]),v+=i});var t=p.value;T.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=v),t<0&&(t=0),T.isArray(p.value)?p.value[0]=t:p.value=t}Y.exports=D},52637:function(Y,V,n){var T=n(69008),L=n(68880),M=n(93645),w=n(82383),C=n(17010),D=C.windowOpen,S="sunburstRootToNode",p=L.extend({type:"sunburst",init:function(){},render:function(t,s,i,a){var u=this;this.seriesModel=t,this.api=i,this.ecModel=s;var e=t.getData(),o=e.tree.root,r=t.getViewRoot(),l=this.group,h=t.get("renderLabelForZeroData"),f=[];r.eachNode(function(b){f.push(b)});var c=this._oldChildren||[];if(x(f,c),m(o,r),a&&a.highlight&&a.highlight.piece){var d=t.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(d)}else if(a&&a.unhighlight){var A=this.virtualPiece;!A&&o.children.length&&(A=o.children[0].piece),A&&A.onNormal()}this._initEvents(),this._oldChildren=f;function x(b,I){if(b.length===0&&I.length===0)return;new w(I,b,R,R).add(E).update(E).remove(T.curry(E,null)).execute();function R(P){return P.getId()}function E(P,O){var N=P==null?null:b[P],_=O==null?null:I[O];y(N,_)}}function y(b,I){if(!h&&b&&!b.getValue()&&(b=null),b!==o&&I!==o){if(I&&I.piece)b?(I.piece.updateData(!1,b,"normal",t,s),e.setItemGraphicEl(b.dataIndex,I.piece)):g(I);else if(b){var R=new M(b,t,s);l.add(R),e.setItemGraphicEl(b.dataIndex,R)}}}function g(b){b&&b.piece&&(l.remove(b.piece),b.piece=null)}function m(b,I){if(I.depth>0){u.virtualPiece?u.virtualPiece.updateData(!1,b,"normal",t,s):(u.virtualPiece=new M(b,t,s),l.add(u.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var R=function(E){u._rootToNode(I.parentNode)};I.piece._onclickEvent=R,u.virtualPiece.on("click",R)}else u.virtualPiece&&(l.remove(u.virtualPiece),u.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var t=this,s=function(i){var a=!1,u=t.seriesModel.getViewRoot();u.eachNode(function(e){if(!a&&e.piece&&e.piece.childAt(0)===i.target){var o=e.getModel().get("nodeClick");if(o==="rootToNode")t._rootToNode(e);else if(o==="link"){var r=e.getModel(),l=r.get("link");if(l){var h=r.get("target",!0)||"_blank";D(l,h)}}a=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",s),this.group._onclickEvent=s},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:S,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,s){var i=s.getData(),a=i.getItemLayout(0);if(a){var u=t[0]-a.cx,e=t[1]-a.cy,o=Math.sqrt(u*u+e*e);return o<=a.r&&o>=a.r0}}}),v=p;Y.exports=v},50829:function(Y,V,n){var T=n(3096),L=n(22889),M="sunburstRootToNode";T.registerAction({type:M,update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"sunburst",query:D},p);function p(v,t){var s=L.retrieveTargetInfo(D,[M],v);if(s){var i=v.getViewRoot();i&&(D.direction=L.aboveViewRoot(i,s.node)?"rollUp":"drillDown"),v.resetViewRoot(s.node)}}});var w="sunburstHighlight";T.registerAction({type:w,update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"sunburst",query:D},p);function p(v,t){var s=L.retrieveTargetInfo(D,[w],v);s&&(D.highlight=s.node)}});var C="sunburstUnhighlight";T.registerAction({type:C,update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"sunburst",query:D},p);function p(v,t){D.unhighlight=!0}})},81005:function(Y,V,n){var T=n(86957),L=T.parsePercent,M=n(69008),w=Math.PI/180;function C(p,v,t,s){v.eachSeriesByType(p,function(i){var a=i.get("center"),u=i.get("radius");M.isArray(u)||(u=[0,u]),M.isArray(a)||(a=[a,a]);var e=t.getWidth(),o=t.getHeight(),r=Math.min(e,o),l=L(a[0],e),h=L(a[1],o),f=L(u[0],r/2),c=L(u[1],r/2),d=-i.get("startAngle")*w,A=i.get("minAngle")*w,x=i.getData().tree.root,y=i.getViewRoot(),g=y.depth,m=i.get("sort");m!=null&&D(y,m);var b=0;M.each(y.children,function(z){!isNaN(z.getValue())&&b++});var I=y.getValue(),R=Math.PI/(I||b)*2,E=y.depth>0,P=y.height-(E?-1:1),O=(c-f)/(P||1),N=i.get("clockwise"),_=i.get("stillShowZeroSum"),G=N?1:-1,F=function(z,B){if(z){var k=B;if(z!==x){var Z=z.getValue(),X=I===0&&_?R:Z*R;Xf&&(f=A,c=d)}for(var x=0;xs&&(s=i),v.push(i)}for(var o=0;os&&(s=l)}return a.y0=t,a.max=s,a}Y.exports=M},5965:function(Y,V,n){var T=n(69008),L=T.createHashMap;function M(w){w.eachSeriesByType("themeRiver",function(C){var D=C.getData(),S=C.getRawData(),p=C.get("color"),v=L();D.each(function(t){v.set(D.getRawIndex(t),t)}),S.each(function(t){var s=S.getName(t),i=p[(C.nameMap.get(s)-1)%p.length];S.setItemVisual(t,"color",i);var a=v.get(t);a!=null&&D.setItemVisual(a,"color",i)})})}Y.exports=M},16557:function(Y,V,n){var T=n(3096);n(83654),n(49936),n(48728);var L=n(11404),M=n(67367);T.registerVisual(L("tree","circle")),T.registerLayout(M)},83654:function(Y,V,n){var T=n(38645),L=n(54327),M=n(17010),w=M.encodeHTML,C=n(24040),D=T.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(S){var p={name:S.name,children:S.data},v=S.leaves||{},t=new C(v,this,this.ecModel),s=L.createTree(p,this,{},i);function i(o){o.wrapMethod("getItemModel",function(r,l){var h=s.getNodeByDataIndex(l);return(!h.children.length||!h.isExpand)&&(r.parentModel=t),r})}var a=0;s.eachNode("preorder",function(o){o.depth>a&&(a=o.depth)});var u=S.expandAndCollapse,e=u&&S.initialTreeDepth>=0?S.initialTreeDepth:a;return s.root.eachNode("preorder",function(o){var r=o.hostTree.data.getRawDataItem(o.dataIndex);o.isExpand=r&&r.collapsed!=null?!r.collapsed:o.depth<=e}),s.data},getOrient:function(){var S=this.get("orient");return S==="horizontal"?S="LR":S==="vertical"&&(S="TB"),S},setZoom:function(S){this.option.zoom=S},setCenter:function(S){this.option.center=S},formatTooltip:function(S){for(var p=this.getData().tree,v=p.root.children[0],t=p.getNodeByDataIndex(S),s=t.getValue(),i=t.name;t&&t!==v;)i=t.parentNode.name+"."+i,t=t.parentNode;return w(i+(isNaN(s)||s==null?"":" : "+s))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});Y.exports=D},49936:function(Y,V,n){var T=n(69008),L=n(18993),M=n(32427),w=n(8940),C=w.radialCoordinate,D=n(3096),S=n(16254),p=n(86990),v=n(37419),t=n(38515),s=n(18584),i=s.onIrrelevantElement,a=n(96311),u=a.__DEV__,e=n(86957),o=e.parsePercent,r=L.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(y,g){var m=g.childPoints,b=m.length,I=g.parentPoint,R=m[0],E=m[b-1];if(b===1){y.moveTo(I[0],I[1]),y.lineTo(R[0],R[1]);return}var P=g.orient,O=P==="TB"||P==="BT"?0:1,N=1-O,_=o(g.forkPosition,1),G=[];G[O]=I[O],G[N]=I[N]+(E[N]-I[N])*_,y.moveTo(I[0],I[1]),y.lineTo(G[0],G[1]),y.moveTo(R[0],R[1]),G[O]=R[O],y.lineTo(G[0],G[1]),G[O]=E[O],y.lineTo(G[0],G[1]),y.lineTo(E[0],E[1]);for(var F=1;Fk.x,K||(X=X-Math.PI));var J=K?"left":"right",tt=N.labelModel.get("rotate"),q=tt*(Math.PI/180);z.setStyle({textPosition:N.labelModel.get("position")||J,textRotation:tt==null?-X:q,textOrigin:"center",verticalAlign:"middle"})}d(I,P,_,m,U,W,H,b,N)}function d(y,g,m,b,I,R,E,P,O){var N=O.edgeShape,_=b.__edge;if(N==="curve")g.parentNode&&g.parentNode!==m&&(_||(_=b.__edge=new L.BezierCurve({shape:x(O,I,I),style:T.defaults({opacity:0,strokeNoScale:!0},O.lineStyle)})),L.updateProps(_,{shape:x(O,R,E),style:{opacity:1}},y));else if(N==="polyline"&&O.layout==="orthogonal"&&g!==m&&g.children&&g.children.length!==0&&g.isExpand===!0){for(var G=g.children,F=[],W=0;W=0;f--){var c=l[f];c.hierNode={defaultAncestor:null,ancestor:c,prelim:0,modifier:0,change:0,shift:0,i:f,thread:null},o.push(c)}}function M(e,o){var r=e.isExpand?e.children:[],l=e.parentNode.children,h=e.hierNode.i?l[e.hierNode.i-1]:null;if(r.length){p(e);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;h?(e.hierNode.prelim=h.hierNode.prelim+o(e,h),e.hierNode.modifier=e.hierNode.prelim-f):e.hierNode.prelim=f}else h&&(e.hierNode.prelim=h.hierNode.prelim+o(e,h));e.parentNode.hierNode.defaultAncestor=v(e,h,e.parentNode.hierNode.defaultAncestor||l[0],o)}function w(e){var o=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:o},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function C(e){return arguments.length?e:u}function D(e,o){var r={};return e-=Math.PI/2,r.x=o*Math.cos(e),r.y=o*Math.sin(e),r}function S(e,o){return T.getLayoutRect(e.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function p(e){for(var o=e.children,r=o.length,l=0,h=0;--r>=0;){var f=o[r];f.hierNode.prelim+=l,f.hierNode.modifier+=l,h+=f.hierNode.change,l+=f.hierNode.shift+h}}function v(e,o,r,l){if(o){for(var h=e,f=e,c=f.parentNode.children[0],d=o,A=h.hierNode.modifier,x=f.hierNode.modifier,y=c.hierNode.modifier,g=d.hierNode.modifier;d=t(d),f=s(f),d&&f;){h=t(h),c=s(c),h.hierNode.ancestor=e;var m=d.hierNode.prelim+g-f.hierNode.prelim-x+l(d,f);m>0&&(a(i(d,e,r),e,m),x+=m,A+=m),g+=d.hierNode.modifier,x+=f.hierNode.modifier,A+=h.hierNode.modifier,y+=c.hierNode.modifier}d&&!t(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=g-A),f&&!s(c)&&(c.hierNode.thread=f,c.hierNode.modifier+=x-y,r=e)}return r}function t(e){var o=e.children;return o.length&&e.isExpand?o[o.length-1]:e.hierNode.thread}function s(e){var o=e.children;return o.length&&e.isExpand?o[0]:e.hierNode.thread}function i(e,o,r){return e.hierNode.ancestor.parentNode===o.parentNode?e.hierNode.ancestor:r}function a(e,o,r){var l=r/(o.hierNode.i-e.hierNode.i);o.hierNode.change-=l,o.hierNode.shift+=r,o.hierNode.modifier+=r,o.hierNode.prelim+=r,e.hierNode.change+=l}function u(e,o){return e.parentNode===o.parentNode?1:2}V.init=L,V.firstWalk=M,V.secondWalk=w,V.separation=C,V.radialCoordinate=D,V.getViewRect=S},48311:function(Y,V){function n(L,M,w){for(var C=[L],D=[],S;S=C.pop();)if(D.push(S),S.isExpand){var p=S.children;if(p.length)for(var v=0;v=0;S--)w.push(D[S])}}V.eachAfter=n,V.eachBefore=T},48728:function(Y,V,n){var T=n(3096),L=n(66710),M=L.updateCenterAndZoom;T.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(w,C){C.eachComponent({mainType:"series",subType:"tree",query:w},function(D){var S=w.dataIndex,p=D.getData().tree,v=p.getNodeByDataIndex(S);v.isExpand=!v.isExpand})}),T.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(w,C){C.eachComponent({mainType:"series",subType:"tree",query:w},function(D){var S=D.coordinateSystem,p=M(S,w);D.setCenter&&D.setCenter(p.center),D.setZoom&&D.setZoom(p.zoom)})})},67367:function(Y,V,n){var T=n(48311),L=T.eachAfter,M=T.eachBefore,w=n(8940),C=w.init,D=w.firstWalk,S=w.secondWalk,p=w.separation,v=w.radialCoordinate,t=w.getViewRect;function s(a,u){a.eachSeriesByType("tree",function(e){i(e,u)})}function i(a,u){var e=t(a,u);a.layoutInfo=e;var o=a.get("layout"),r=0,l=0,h=null;o==="radial"?(r=2*Math.PI,l=Math.min(e.height,e.width)/2,h=p(function(P,O){return(P.parentNode===O.parentNode?1:2)/P.depth})):(r=e.width,l=e.height,h=p());var f=a.getData().tree.root,c=f.children[0];if(c){C(f),L(c,D,h),f.hierNode.modifier=-c.hierNode.prelim,M(c,S);var d=c,A=c,x=c;M(c,function(P){var O=P.getLayout().x;OA.getLayout().x&&(A=P),P.depth>x.depth&&(x=P)});var y=d===A?1:h(d,A)/2,g=y-d.getLayout().x,m=0,b=0,I=0,R=0;if(o==="radial")m=r/(A.getLayout().x+y+g),b=l/(x.depth-1||1),M(c,function(P){I=(P.getLayout().x+g)*m,R=(P.depth-1)*b;var O=v(I,R);P.setLayout({x:O.x,y:O.y,rawX:I,rawY:R},!0)});else{var E=a.getOrient();E==="RL"||E==="LR"?(b=l/(A.getLayout().x+y+g),m=r/(x.depth-1||1),M(c,function(P){R=(P.getLayout().x+g)*b,I=E==="LR"?(P.depth-1)*m:r-(P.depth-1)*m,P.setLayout({x:I,y:R},!0)})):(E==="TB"||E==="BT")&&(m=r/(A.getLayout().x+y+g),b=l/(x.depth-1||1),M(c,function(P){I=(P.getLayout().x+g)*m,R=E==="TB"?(P.depth-1)*b:l-(P.depth-1)*b,P.setLayout({x:I,y:R},!0)}))}}}Y.exports=s},70797:function(Y,V,n){var T=n(3096);n(49080),n(61511),n(35260);var L=n(81459),M=n(17606);T.registerVisual(L),T.registerLayout(M)},36938:function(Y,V,n){var T=n(18993),L=n(7357),M=n(69008),w=n(22889),C=w.wrapTreePathInfo,D=8,S=8,p=5;function v(a){this.group=new T.Group,a.add(this.group)}v.prototype={constructor:v,render:function(a,u,e,o){var r=a.getModel("breadcrumb"),l=this.group;if(l.removeAll(),!(!r.get("show")||!e)){var h=r.getModel("itemStyle"),f=h.getModel("textStyle"),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:u.getWidth(),height:u.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(e,c,f),this._renderContent(a,c,h,f,o),L.positionElement(l,c.pos,c.box)}},_prepare:function(a,u,e){for(var o=a;o;o=o.parentNode){var r=o.getModel().get("name"),l=e.getTextRect(r),h=Math.max(l.width+D*2,u.emptyItemWidth);u.totalWidth+=h+S,u.renderList.push({node:o,text:r,width:h})}},_renderContent:function(a,u,e,o,r){for(var l=0,h=u.emptyItemWidth,f=a.get("breadcrumb.height"),c=L.getAvailableSize(u.pos,u.box),d=u.totalWidth,A=u.renderList,x=A.length-1;x>=0;x--){var y=A[x],g=y.node,m=y.width,b=y.text;d>c.width&&(d-=m-h,m=h,b=null);var I=new T.Polygon({shape:{points:t(l,0,m,f,x===A.length-1,x===0)},style:M.defaults(e.getItemStyle(),{lineJoin:"bevel",text:b,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:M.curry(r,g)});this.group.add(I),s(I,a,g),l+=m+S}},remove:function(){this.group.removeAll()}};function t(a,u,e,o,r,l){var h=[[r?a:a-p,u],[a+e,u],[a+e,u+o],[r?a:a-p,u+o]];return!l&&h.splice(2,0,[a+e+p,u+o/2]),!r&&h.push([a,u+o/2]),h}function s(a,u,e){a.eventData={componentType:"series",componentSubType:"treemap",componentIndex:u.componentIndex,seriesIndex:u.componentIndex,seriesName:u.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&C(e,u)}}var i=v;Y.exports=i},49080:function(Y,V,n){var T=n(69008),L=n(38645),M=n(54327),w=n(24040),C=n(17010),D=C.encodeHTML,S=C.addCommas,p=n(22889),v=p.wrapTreePathInfo,t=L.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(a,u){var e={name:a.name,children:a.data};s(e);var o=a.levels||[];o=a.levels=i(o,u);var r=T.map(o||[],function(f){return new w(f,this,u)},this),l=M.createTree(e,this,null,h);function h(f){f.wrapMethod("getItemModel",function(c,d){var A=l.getNodeByDataIndex(d),x=r[A.depth];return x&&(c.parentModel=x),c})}return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(a){var u=this.getData(),e=this.getRawValue(a),o=T.isArray(e)?S(e[0]):S(e),r=u.getName(a);return D(r+": "+o)},getDataParams:function(a){var u=L.prototype.getDataParams.apply(this,arguments),e=this.getData().tree.getNodeByDataIndex(a);return u.treePathInfo=v(e,this),u},setLayoutInfo:function(a){this.layoutInfo=this.layoutInfo||{},T.extend(this.layoutInfo,a)},mapIdToIndex:function(a){var u=this._idIndexMap;u||(u=this._idIndexMap=T.createHashMap(),this._idIndexMapCount=0);var e=u.get(a);return e==null&&u.set(a,e=this._idIndexMapCount++),e},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(a){a?this._viewRoot=a:a=this._viewRoot;var u=this.getRawData().tree.root;(!a||a!==u&&!u.contains(a))&&(this._viewRoot=u)}});function s(a){var u=0;T.each(a.children,function(o){s(o);var r=o.value;T.isArray(r)&&(r=r[0]),u+=r});var e=a.value;T.isArray(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=u),e<0&&(e=0),T.isArray(a.value)?a.value[0]=e:a.value=e}function i(a,u){var e=u.get("color");if(e){a=a||[];var o;if(T.each(a,function(l){var h=new w(l),f=h.get("color");(h.get("itemStyle.color")||f&&f!=="none")&&(o=!0)}),!o){var r=a[0]||(a[0]={});r.color=e.slice()}return a}}Y.exports=t},61511:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(82383),C=n(22889),D=n(36938),S=n(38515),p=n(9806),v=n(26237),t=n(77550),s=n(76282),i=n(17010),a=i.windowOpen,u=L.bind,e=M.Group,o=M.Rect,r=L.each,l=3,h=["label"],f=["emphasis","label"],c=["upperLabel"],d=["emphasis","upperLabel"],A=10,x=1,y=2,g=s([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),m=function(P){var O=g(P);return O.stroke=O.fill=O.lineWidth=null,O},b=T.extendChartView({type:"treemap",init:function(P,O){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(P,O,N,_){var G=O.findComponents({mainType:"series",subType:"treemap",query:_});if(!(L.indexOf(G,P)<0)){this.seriesModel=P,this.api=N,this.ecModel=O;var F=["treemapZoomToNode","treemapRootToNode"],W=C.retrieveTargetInfo(_,F,P),U=_&&_.type,H=P.layoutInfo,z=!this._oldTree,B=this._storage,k=U==="treemapRootToNode"&&W&&B?{rootNodeGroup:B.nodeGroup[W.node.getRawIndex()],direction:_.direction}:null,Z=this._giveContainerGroup(H),X=this._doRender(Z,P,k);!z&&(!U||U==="treemapZoomToNode"||U==="treemapRootToNode")?this._doAnimation(Z,X,P,k):X.renderFinally(),this._resetController(N),this._renderBreadcrumb(P,N,W)}},_giveContainerGroup:function(P){var O=this._containerGroup;return O||(O=this._containerGroup=new e,this._initEvents(O),this.group.add(O)),O.attr("position",[P.x,P.y]),O},_doRender:function(P,O,N){var _=O.getData().tree,G=this._oldTree,F=I(),W=I(),U=this._storage,H=[],z=L.curry(R,O,W,U,N,F,H);k(_.root?[_.root]:[],G&&G.root?[G.root]:[],P,_===G||!G,0);var B=Z(U);return this._oldTree=_,this._storage=W,{lastsForAnimation:F,willDeleteEls:B,renderFinally:X};function k(K,Q,J,tt,q){tt?(Q=K,r(K,function(j,st){!j.isRemoved()&&$(st,st)})):new w(Q,K,rt,rt).add($).update($).remove(L.curry($,null)).execute();function rt(j){return j.getId()}function $(j,st){var ot=j!=null?K[j]:null,vt=st!=null?Q[st]:null,yt=z(ot,vt,J,q);yt&&k(ot&&ot.viewChildren||[],vt&&vt.viewChildren||[],yt,tt,q+1)}}function Z(K){var Q=I();return K&&r(K,function(J,tt){var q=Q[tt];r(J,function(rt){rt&&(q.push(rt),rt.__tmWillDelete=1)})}),Q}function X(){r(B,function(K){r(K,function(Q){Q.parent&&Q.parent.remove(Q)})}),r(H,function(K){K.invisible=!0,K.dirty()})}},_doAnimation:function(P,O,N,_){if(N.get("animation")){var G=N.get("animationDurationUpdate"),F=N.get("animationEasing"),W=t.createWrap();r(O.willDeleteEls,function(U,H){r(U,function(z,B){if(!z.invisible){var k=z.parent,Z;if(_&&_.direction==="drillDown")Z=k===_.rootNodeGroup?{shape:{x:0,y:0,width:k.__tmNodeWidth,height:k.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var X=0,K=0;k.__tmWillDelete||(X=k.__tmNodeWidth/2,K=k.__tmNodeHeight/2),Z=H==="nodeGroup"?{position:[X,K],style:{opacity:0}}:{shape:{x:X,y:K,width:0,height:0},style:{opacity:0}}}Z&&W.add(z,Z,G,F)}})}),r(this._storage,function(U,H){r(U,function(z,B){var k=O.lastsForAnimation[H][B],Z={};k&&(H==="nodeGroup"?k.old&&(Z.position=z.position.slice(),z.attr("position",k.old)):(k.old&&(Z.shape=L.extend({},z.shape),z.setShape(k.old)),k.fadein?(z.setStyle("opacity",0),Z.style={opacity:1}):z.style.opacity!==1&&(Z.style={opacity:1})),W.add(z,Z,G,F))})},this),this._state="animating",W.done(u(function(){this._state="ready",O.renderFinally()},this)).start()}},_resetController:function(P){var O=this._controller;O||(O=this._controller=new S(P.getZr()),O.enable(this.seriesModel.get("roam")),O.on("pan",u(this._onPan,this)),O.on("zoom",u(this._onZoom,this)));var N=new p(0,0,P.getWidth(),P.getHeight());O.setPointerChecker(function(_,G,F){return N.contain(G,F)})},_clearController:function(){var P=this._controller;P&&(P.dispose(),P=null)},_onPan:function(P){if(this._state!=="animating"&&(Math.abs(P.dx)>l||Math.abs(P.dy)>l)){var O=this.seriesModel.getData().tree.root;if(!O)return;var N=O.getLayout();if(!N)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:N.x+P.dx,y:N.y+P.dy,width:N.width,height:N.height}})}},_onZoom:function(P){var O=P.originX,N=P.originY;if(this._state!=="animating"){var _=this.seriesModel.getData().tree.root;if(!_)return;var G=_.getLayout();if(!G)return;var F=new p(G.x,G.y,G.width,G.height),W=this.seriesModel.layoutInfo;O-=W.x,N-=W.y;var U=v.create();v.translate(U,U,[-O,-N]),v.scale(U,U,[P.scale,P.scale]),v.translate(U,U,[O,N]),F.applyTransform(U),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(P){P.on("click",function(O){if(this._state==="ready"){var N=this.seriesModel.get("nodeClick",!0);if(N){var _=this.findTarget(O.offsetX,O.offsetY);if(_){var G=_.node;if(G.getLayout().isLeafRoot)this._rootToNode(_);else if(N==="zoomToNode")this._zoomToNode(_);else if(N==="link"){var F=G.hostTree.data.getItemModel(G.dataIndex),W=F.get("link",!0),U=F.get("target",!0)||"blank";W&&a(W,U)}}}}},this)},_renderBreadcrumb:function(P,O,N){N||(N=P.get("leafDepth",!0)!=null?{node:P.getViewRoot()}:this.findTarget(O.getWidth()/2,O.getHeight()/2),N||(N={node:P.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new D(this.group))).render(P,O,N.node,u(_,this));function _(G){this._state!=="animating"&&(C.aboveViewRoot(P.getViewRoot(),G)?this._rootToNode({node:G}):this._zoomToNode({node:G}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(P){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:P.node})},_rootToNode:function(P){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:P.node})},findTarget:function(P,O){var N,_=this.seriesModel.getViewRoot();return _.eachNode({attr:"viewChildren",order:"preorder"},function(G){var F=this._storage.background[G.getRawIndex()];if(F){var W=F.transformCoordToLocal(P,O),U=F.shape;if(U.x<=W[0]&&W[0]<=U.x+U.width&&U.y<=W[1]&&W[1]<=U.y+U.height)N={node:G,offsetX:W[0],offsetY:W[1]};else return!1}},this),N}});function I(){return{nodeGroup:[],background:[],content:[]}}function R(P,O,N,_,G,F,W,U,H,z){if(!W)return;var B=W.getLayout(),k=P.getData();if(k.setItemGraphicEl(W.dataIndex,null),!B||!B.isInView)return;var Z=B.width,X=B.height,K=B.borderWidth,Q=B.invisible,J=W.getRawIndex(),tt=U&&U.getRawIndex(),q=W.viewChildren,rt=B.upperHeight,$=q&&q.length,j=W.getModel("itemStyle"),st=W.getModel("emphasis.itemStyle"),ot=lt("nodeGroup",e);if(!ot)return;if(H.add(ot),ot.attr("position",[B.x||0,B.y||0]),ot.__tmNodeWidth=Z,ot.__tmNodeHeight=X,B.isAboveViewRoot)return ot;var vt=W.getModel(),yt=lt("background",o,z,x);if(yt&&ut(ot,yt,$&&B.upperLabelHeight),$)M.isHighDownDispatcher(ot)&&M.setAsHighDownDispatcher(ot,!1),yt&&(M.setAsHighDownDispatcher(yt,!0),k.setItemGraphicEl(W.dataIndex,yt));else{var it=lt("content",o,z,y);it&>(ot,it),yt&&M.isHighDownDispatcher(yt)&&M.setAsHighDownDispatcher(yt,!1),M.setAsHighDownDispatcher(ot,!0),k.setItemGraphicEl(W.dataIndex,ot)}return ot;function ut(mt,ft,xt){if(ft.dataIndex=W.dataIndex,ft.seriesIndex=P.seriesIndex,ft.setShape({x:0,y:0,width:Z,height:X}),Q)Ct(ft);else{ft.invisible=!1;var Mt=W.getVisual("borderColor",!0),Pt=st.get("borderColor"),Rt=m(j);Rt.fill=Mt;var Bt=g(st);if(Bt.fill=Pt,xt){var Vt=Z-2*K;bt(Rt,Bt,Mt,Vt,rt,{x:K,y:0,width:Vt,height:rt})}else Rt.text=Bt.text=null;ft.setStyle(Rt),M.setElementHoverStyle(ft,Bt)}mt.add(ft)}function gt(mt,ft){ft.dataIndex=W.dataIndex,ft.seriesIndex=P.seriesIndex;var xt=Math.max(Z-2*K,0),Mt=Math.max(X-2*K,0);if(ft.culling=!0,ft.setShape({x:K,y:K,width:xt,height:Mt}),Q)Ct(ft);else{ft.invisible=!1;var Pt=W.getVisual("color",!0),Rt=m(j);Rt.fill=Pt;var Bt=g(st);bt(Rt,Bt,Pt,xt,Mt),ft.setStyle(Rt),M.setElementHoverStyle(ft,Bt)}mt.add(ft)}function Ct(mt){!mt.invisible&&F.push(mt)}function bt(mt,ft,xt,Mt,Pt,Rt){var Bt=vt.get("name"),Vt=vt.getModel(Rt?c:h),Gt=vt.getModel(Rt?d:f),Ft=Vt.getShallow("show");M.setLabelStyle(mt,ft,Vt,Gt,{defaultText:Ft?Bt:null,autoColor:xt,isRectText:!0,labelFetcher:P,labelDataIndex:W.dataIndex,labelProp:Rt?"upperLabel":"label"}),et(mt,Rt,B),et(ft,Rt,B),Rt&&(mt.textRect=L.clone(Rt)),mt.truncate=Ft&&Vt.get("ellipsis")?{outerWidth:Mt,outerHeight:Pt,minChar:2}:null}function et(mt,ft,xt){var Mt=mt.text;if(!ft&&xt.isLeafRoot&&Mt!=null){var Pt=P.get("drillDownIcon",!0);mt.text=Pt?Pt+" "+Mt:Mt}}function lt(mt,ft,xt,Mt){var Pt=tt!=null&&N[mt][tt],Rt=G[mt];return Pt?(N[mt][tt]=null,ht(Rt,Pt,mt)):Q||(Pt=new ft({z:E(xt,Mt)}),Pt.__tmDepth=xt,Pt.__tmStorageName=mt,pt(Rt,Pt,mt)),O[mt][J]=Pt}function ht(mt,ft,xt){var Mt=mt[J]={};Mt.old=xt==="nodeGroup"?ft.position.slice():L.extend({},ft.shape)}function pt(mt,ft,xt){var Mt=mt[J]={},Pt=W.parentNode;if(Pt&&(!_||_.direction==="drillDown")){var Rt=0,Bt=0,Vt=G.background[Pt.getRawIndex()];!_&&Vt&&Vt.old&&(Rt=Vt.old.width,Bt=Vt.old.height),Mt.old=xt==="nodeGroup"?[0,Bt]:{x:Rt,y:Bt,width:0,height:0}}Mt.fadein=xt!=="nodeGroup"}}function E(P,O){var N=P*A+O;return(N-1)/N}Y.exports=b},35260:function(Y,V,n){for(var T=n(3096),L=n(22889),M=function(){},w=["treemapZoomToNode","treemapRender","treemapMove"],C=0;C=0;G--){var F=P[E==="asc"?N-G-1:G].getValue();F/R*I_[1]&&(_[1]=W)})}return{sum:E,dataExtent:_}}function d(b,I,R){for(var E=0,P=1/0,O=0,N,_=b.length;O<_;O++)N=b[O].getLayout().area,N&&(NE&&(E=N));var G=b.area*b.area,F=I*I*R;return G?p(F*E/G,G/(F*P)):1/0}function A(b,I,R,E,P){var O=I===R.width?0:1,N=1-O,_=["x","y"],G=["width","height"],F=R[_[O]],W=I?b.area/I:0;(P||W>R[G[N]])&&(W=R[G[N]]);for(var U=0,H=b.length;UC&&(F=C),O=_}F=h.length||E===h[E.depth]){var O=u(c,y,E,P,R,f);S(E,O,r,l,h,f)}})}}}function p(e,o,r,l){var h=M.extend({},o);return M.each(["color","colorAlpha","colorSaturation"],function(f){var c=e.get(f,!0);c==null&&r&&(c=r[f]),c==null&&(c=o[f]),c==null&&(c=l.get(f)),c!=null&&(h[f]=c)}),h}function v(e){var o=s(e,"color");if(o){var r=s(e,"colorAlpha"),l=s(e,"colorSaturation");return l&&(o=L.modifyHSL(o,null,null,l)),r&&(o=L.modifyAlpha(o,r)),o}}function t(e,o){return o!=null?L.modifyHSL(o,null,null,e):null}function s(e,o){var r=e[o];if(r!=null&&r!=="none")return r}function i(e,o,r,l,h,f){if(!(!f||!f.length)){var c=a(o,"color")||h.color!=null&&h.color!=="none"&&(a(o,"colorAlpha")||a(o,"colorSaturation"));if(c){var d=o.get("visualMin"),A=o.get("visualMax"),x=r.dataExtent.slice();d!=null&&dx[1]&&(x[1]=A);var y=o.get("colorMappingBy"),g={type:c.name,dataExtent:x,visual:c.range};g.type==="color"&&(y==="index"||y==="id")?(g.mappingMethod="category",g.loop=!0):g.mappingMethod="linear";var m=new T(g);return m.__drColorMappingBy=y,m}}}function a(e,o){var r=e.get(o);return w(r)&&r.length?{name:o,range:r}:null}function u(e,o,r,l,h,f){var c=M.extend({},o);if(h){var d=h.type,A=d==="color"&&h.__drColorMappingBy,x=A==="index"?l:A==="id"?f.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));c[d]=h.mapValueToVisual(x)}return c}Y.exports=D},2546:function(Y,V,n){n(49900),n(33e3)},2849:function(Y,V,n){n(75089),n(8698)},33e3:function(Y,V,n){var T=n(69008),L=n(18993),M=n(24040),w=n(68089),C=n(93570),D=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function S(s,i,a){i[1]>i[0]&&(i=i.slice().reverse());var u=s.coordToPoint([i[0],a]),e=s.coordToPoint([i[1],a]);return{x1:u[0],y1:u[1],x2:e[0],y2:e[1]}}function p(s){var i=s.getRadiusAxis();return i.inverse?0:1}function v(s){var i=s[0],a=s[s.length-1];i&&a&&Math.abs(Math.abs(i.coord-a.coord)-360)<1e-4&&s.pop()}var t=w.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(s,i){if(this.group.removeAll(),!!s.get("show")){var a=s.axis,u=a.polar,e=u.getRadiusAxis().getExtent(),o=a.getTicksCoords(),r=a.getMinorTicksCoords(),l=T.map(a.getViewLabels(),function(f){var f=T.clone(f);return f.coord=a.dataToCoord(f.tickValue),f});v(l),v(o),T.each(D,function(h){s.get(h+".show")&&(!a.scale.isBlank()||h==="axisLine")&&this["_"+h](s,u,o,r,e,l)},this)}},_axisLine:function(s,i,a,u,e){var o=s.getModel("axisLine.lineStyle"),r=p(i),l=r?0:1,h;e[l]===0?h=new L.Circle({shape:{cx:i.cx,cy:i.cy,r:e[r]},style:o.getLineStyle(),z2:1,silent:!0}):h=new L.Ring({shape:{cx:i.cx,cy:i.cy,r:e[r],r0:e[l]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(s,i,a,u,e){var o=s.getModel("axisTick"),r=(o.get("inside")?-1:1)*o.get("length"),l=e[p(i)],h=T.map(a,function(f){return new L.Line({shape:S(i,[l,l+r],f.coord)})});this.group.add(L.mergePath(h,{style:T.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:s.get("axisLine.lineStyle.color")})}))},_minorTick:function(s,i,a,u,e){if(u.length){for(var o=s.getModel("axisTick"),r=s.getModel("minorTick"),l=(o.get("inside")?-1:1)*r.get("length"),h=e[p(i)],f=[],c=0;cm?"left":"right",R=Math.abs(g[1]-b)/y<.3?"middle":g[1]>b?"top":"bottom";r&&r[x]&&r[x].textStyle&&(A=new M(r[x].textStyle,l,l.ecModel));var E=new L.Text({silent:C.isLabelSilent(s)});this.group.add(E),L.setTextStyle(E.style,A,{x:g[0],y:g[1],textFill:A.getTextColor()||s.get("axisLine.lineStyle.color"),text:c.formattedLabel,textAlign:I,textVerticalAlign:R}),f&&(E.eventData=C.makeAxisEventDataBase(s),E.eventData.targetType="axisLabel",E.eventData.value=c.rawLabel)},this)},_splitLine:function(s,i,a,u,e){var o=s.getModel("splitLine"),r=o.getModel("lineStyle"),l=r.get("color"),h=0;l=l instanceof Array?l:[l];for(var f=[],c=0;cB[1]?-1:1,Z=[W==="start"?B[0]-k*z:W==="end"?B[1]+k*z:(B[0]+B[1])/2,I(W)?_.labelOffset+U*z:0],X,K=G.get("nameRotate");K!=null&&(K=K*h/180);var Q;I(W)?X=A(_.rotation,K!=null?K:_.rotation,U):(X=x(_,W,K||0,B),Q=_.axisNameAvailableWidth,Q!=null&&(Q=Math.abs(Q/Math.sin(X.rotation)),!isFinite(Q)&&(Q=null)));var J=H.getFont(),tt=G.get("nameTruncate",!0)||{},q=tt.ellipsis,rt=L(_.nameTruncateMaxWidth,tt.maxWidth,Q),$=q!=null&&rt!=null?D.truncateText(F,rt,J,q,{minChar:2,placeholder:tt.placeholder}):F,j=G.get("tooltip",!0),st=G.mainType,ot={componentType:st,name:F,$vars:["name"]};ot[st+"Index"]=G.componentIndex;var vt=new S.Text({anid:"name",__fullText:F,__truncatedText:$,position:Z,rotation:X.rotation,silent:y(G),z2:1,tooltip:j&&j.show?w({content:F,formatter:function(){return F},formatterParams:ot},j):null});S.setTextStyle(vt.style,H,{text:$,textFont:J,textFill:H.getTextColor()||G.get("axisLine.lineStyle.color"),textAlign:H.get("align")||X.textAlign,textVerticalAlign:H.get("verticalAlign")||X.textVerticalAlign}),G.get("triggerEvent")&&(vt.eventData=d(G),vt.eventData.targetType="axisName",vt.eventData.name=F),this._dumbGroup.add(vt),vt.updateTransform(),this.group.add(vt),vt.decomposeTransform()}}},d=f.makeAxisEventDataBase=function(_){var G={componentType:_.mainType,componentIndex:_.componentIndex};return G[_.mainType+"Index"]=_.componentIndex,G},A=f.innerTextLayout=function(_,G,F){var W=s(G-_),U,H;return t(W)?(H=F>0?"top":"bottom",U="center"):t(W-h)?(H=F>0?"bottom":"top",U="center"):(H="middle",W>0&&W0?"right":"left":U=F>0?"left":"right"),{rotation:W,textAlign:U,textVerticalAlign:H}};function x(_,G,F,W){var U=s(F-_.rotation),H,z,B=W[0]>W[1],k=G==="start"&&!B||G!=="start"&&B;return t(U-h/2)?(z=k?"bottom":"top",H="center"):t(U-h*1.5)?(z=k?"top":"bottom",H="center"):(z="middle",Uh/2?H=k?"left":"right":H=k?"right":"left"),{rotation:U,textAlign:H,textVerticalAlign:z}}var y=f.isLabelSilent=function(_){var G=_.get("tooltip");return _.get("silent")||!(_.get("triggerEvent")||G&&G.show)};function g(_,G,F){if(!l(_.axis)){var W=_.get("axisLabel.showMinLabel"),U=_.get("axisLabel.showMaxLabel");G=G||[],F=F||[];var H=G[0],z=G[1],B=G[G.length-1],k=G[G.length-2],Z=F[0],X=F[1],K=F[F.length-1],Q=F[F.length-2];W===!1?(m(H),m(Z)):b(H,z)&&(W?(m(z),m(X)):(m(H),m(Z))),U===!1?(m(B),m(K)):b(k,B)&&(U?(m(k),m(Q)):(m(B),m(K)))}}function m(_){_&&(_.ignore=!0)}function b(_,G,F){var W=_&&_.getBoundingRect().clone(),U=G&&G.getBoundingRect().clone();if(!(!W||!U)){var H=u.identity([]);return u.rotate(H,H,-_.rotation),W.applyTransform(u.mul([],H,_.getLocalTransform())),U.applyTransform(u.mul([],H,G.getLocalTransform())),W.intersect(U)}}function I(_){return _==="middle"||_==="center"}function R(_,G,F,W,U){for(var H=[],z=[],B=[],k=0;k<_.length;k++){var Z=_[k].coord;z[0]=Z,z[1]=0,B[0]=Z,B[1]=F,G&&(o(z,z,G),o(B,B,G));var X=new S.Line({anid:U+"_"+_[k].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:B[0],y2:B[1]},style:W,z2:2,silent:!0});H.push(X)}return H}function E(_,G,F){var W=G.axis,U=G.getModel("axisTick");if(!(!U.get("show")||W.scale.isBlank())){for(var H=U.getModel("lineStyle"),z=F.tickDirection*U.get("length"),B=W.getTicksCoords(),k=R(B,_._transform,z,M(H.getLineStyle(),{stroke:G.get("axisLine.lineStyle.color")}),"ticks"),Z=0;Z=0)&&i({type:"updateAxisPointer",currTrigger:t,x:s&&s.offsetX,y:s&&s.offsetY})})},remove:function(C,D){L.unregister(D.getZr(),"axisPointer"),M.superApply(this._model,"remove",arguments)},dispose:function(C,D){L.unregister("axisPointer",D),M.superApply(this._model,"dispose",arguments)}}),w=M;Y.exports=w},37874:function(Y,V,n){var T=n(69008),L=n(77305),M=n(18993),w=n(9862),C=n(92462),D=n(83209),S=n(90830),p=S.makeInner,v=p(),t=T.clone,s=T.bind;function i(){}i.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(h,f,c,d){var A=f.get("value"),x=f.get("status");if(this._axisModel=h,this._axisPointerModel=f,this._api=c,!(!d&&this._lastValue===A&&this._lastStatus===x)){this._lastValue=A,this._lastStatus=x;var y=this._group,g=this._handle;if(!x||x==="hide"){y&&y.hide(),g&&g.hide();return}y&&y.show(),g&&g.show();var m={};this.makeElOption(m,A,h,f,c);var b=m.graphicKey;b!==this._lastGraphicKey&&this.clear(c),this._lastGraphicKey=b;var I=this._moveAnimation=this.determineAnimation(h,f);if(!y)y=this._group=new M.Group,this.createPointerEl(y,m,h,f),this.createLabelEl(y,m,h,f),c.getZr().add(y);else{var R=T.curry(a,f,I);this.updatePointerEl(y,m,R,f),this.updateLabelEl(y,m,R,f)}r(y,f,!0),this._renderHandle(A)}},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,f){var c=f.get("animation"),d=h.axis,A=d.type==="category",x=f.get("snap");if(!x&&!A)return!1;if(c==="auto"||c==null){var y=this.animationThreshold;if(A&&d.getBandWidth()>y)return!0;if(x){var g=w.getAxisInfo(h).seriesDataCount,m=d.getExtent();return Math.abs(m[0]-m[1])/g>y}return!1}return c===!0},makeElOption:function(h,f,c,d,A){},createPointerEl:function(h,f,c,d){var A=f.pointer;if(A){var x=v(h).pointerEl=new M[A.type](t(f.pointer));h.add(x)}},createLabelEl:function(h,f,c,d){if(f.label){var A=v(h).labelEl=new M.Rect(t(f.label));h.add(A),e(A,d)}},updatePointerEl:function(h,f,c){var d=v(h).pointerEl;d&&f.pointer&&(d.setStyle(f.pointer.style),c(d,{shape:f.pointer.shape}))},updateLabelEl:function(h,f,c,d){var A=v(h).labelEl;A&&(A.setStyle(f.label.style),c(A,{shape:f.label.shape,position:f.label.position}),e(A,d))},_renderHandle:function(h){if(!(this._dragging||!this.updateHandleTransform)){var f=this._axisPointerModel,c=this._api.getZr(),d=this._handle,A=f.getModel("handle"),x=f.get("status");if(!A.get("show")||!x||x==="hide"){d&&c.remove(d),this._handle=null;return}var y;this._handle||(y=!0,d=this._handle=M.createIcon(A.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(b){C.stop(b.event)},onmousedown:s(this._onHandleDragMove,this,0,0),drift:s(this._onHandleDragMove,this),ondragend:s(this._onHandleDragEnd,this)}),c.add(d)),r(d,f,!1);var g=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];d.setStyle(A.getItemStyle(null,g));var m=A.get("size");T.isArray(m)||(m=[m,m]),d.attr("scale",[m[0]/2,m[1]/2]),D.createOrUpdate(this,"_doDispatchAxisPointer",A.get("throttle")||0,"fixRate"),this._moveHandleToValue(h,y)}},_moveHandleToValue:function(h,f){a(this._axisPointerModel,!f&&this._moveAnimation,this._handle,o(this.getHandleTransform(h,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(h,f){var c=this._handle;if(c){this._dragging=!0;var d=this.updateHandleTransform(o(c),[h,f],this._axisModel,this._axisPointerModel);this._payloadInfo=d,c.stopAnimation(),c.attr(o(d)),v(c).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var h=this._handle;if(h){var f=this._payloadInfo,c=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:f.cursorPoint[0],y:f.cursorPoint[1],tooltipOption:f.tooltipOption,axesInfo:[{axisDim:c.axis.dim,axisIndex:c.componentIndex}]})}},_onHandleDragEnd:function(h){this._dragging=!1;var f=this._handle;if(f){var c=this._axisPointerModel.get("value");this._moveHandleToValue(c),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(h){this._lastValue=null,this._lastStatus=null;var f=h.getZr(),c=this._group,d=this._handle;f&&c&&(this._lastGraphicKey=null,c&&f.remove(c),d&&f.remove(d),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(h,f,c){return c=c||0,{x:h[c],y:h[1-c],width:f[c],height:f[1-c]}}},i.prototype.constructor=i;function a(h,f,c,d){u(v(c).lastProp,d)||(v(c).lastProp=d,f?M.updateProps(c,d,h):(c.stopAnimation(),c.attr(d)))}function u(h,f){if(T.isObject(h)&&T.isObject(f)){var c=!0;return T.each(f,function(d,A){c=c&&u(h[A],d)}),!!c}else return h===f}function e(h,f){h[f.get("label.show")?"show":"hide"]()}function o(h){return{position:h.position.slice(),rotation:h.rotation||0}}function r(h,f,c){var d=f.get("z"),A=f.get("zlevel");h&&h.traverse(function(x){x.type!=="group"&&(d!=null&&(x.z=d),A!=null&&(x.zlevel=A),x.silent=c)})}L.enableClassExtend(i);var l=i;Y.exports=l},77318:function(Y,V,n){var T=n(37874),L=n(23263),M=n(84106),w=n(68089),C=T.extend({makeElOption:function(t,s,i,a,u){var e=i.axis,o=e.grid,r=a.get("type"),l=D(o,e).getOtherAxis(e).getGlobalExtent(),h=e.toGlobalCoord(e.dataToCoord(s,!0));if(r&&r!=="none"){var f=L.buildElStyle(a),c=S[r](e,h,l);c.style=f,t.graphicKey=c.type,t.pointer=c}var d=M.layout(o.model,i);L.buildCartesianSingleLabelElOption(s,t,d,i,a,u)},getHandleTransform:function(t,s,i){var a=M.layout(s.axis.grid.model,s,{labelInside:!1});return a.labelMargin=i.get("handle.margin"),{position:L.getTransformedPosition(s.axis,t,a),rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,s,i,a){var u=i.axis,e=u.grid,o=u.getGlobalExtent(!0),r=D(e,u).getOtherAxis(u).getGlobalExtent(),l=u.dim==="x"?0:1,h=t.position;h[l]+=s[l],h[l]=Math.min(o[1],h[l]),h[l]=Math.max(o[0],h[l]);var f=(r[1]+r[0])/2,c=[f,f];c[l]=h[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:t.rotation,cursorPoint:c,tooltipOption:d[l]}}});function D(t,s){var i={};return i[s.dim+"AxisIndex"]=s.index,t.getCartesian(i)}var S={line:function(t,s,i){var a=L.makeLineShape([s,i[0]],[s,i[1]],p(t));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(t,s,i){var a=Math.max(1,t.getBandWidth()),u=i[1]-i[0];return{type:"Rect",shape:L.makeRectShape([s-a/2,i[0]],[a,u],p(t))}}};function p(t){return t.dim==="x"?0:1}w.registerAxisPointerClass("CartesianAxisPointer",C);var v=C;Y.exports=v},32641:function(Y,V,n){var T=n(17010),L=n(37874),M=n(18993),w=n(23263),C=n(26237),D=n(93570),S=n(68089),p=L.extend({makeElOption:function(i,a,u,e,o){var r=u.axis;r.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=r.polar,h=l.getOtherAxis(r),f=h.getExtent(),c;c=r["dataTo"+T.capitalFirst(r.dim)](a);var d=e.get("type");if(d&&d!=="none"){var A=w.buildElStyle(e),x=t[d](r,l,c,f,A);x.style=A,i.graphicKey=x.type,i.pointer=x}var y=e.get("label.margin"),g=v(a,u,e,l,y);w.buildLabelElOption(i,u,e,o,g)}});function v(i,a,u,e,o){var r=a.axis,l=r.dataToCoord(i),h=e.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var f=e.getRadiusAxis().getExtent(),c,d,A;if(r.dim==="radius"){var x=C.create();C.rotate(x,x,h),C.translate(x,x,[e.cx,e.cy]),c=M.applyTransform([l,-o],x);var y=a.getModel("axisLabel").get("rotate")||0,g=D.innerTextLayout(h,y*Math.PI/180,-1);d=g.textAlign,A=g.textVerticalAlign}else{var m=f[1];c=e.coordToPoint([m+o,l]);var b=e.cx,I=e.cy;d=Math.abs(c[0]-b)/m<.3?"center":c[0]>b?"left":"right",A=Math.abs(c[1]-I)/m<.3?"middle":c[1]>I?"top":"bottom"}return{position:c,align:d,verticalAlign:A}}var t={line:function(i,a,u,e,o){return i.dim==="angle"?{type:"Line",shape:w.makeLineShape(a.coordToPoint([e[0],u]),a.coordToPoint([e[1],u]))}:{type:"Circle",shape:{cx:a.cx,cy:a.cy,r:u}}},shadow:function(i,a,u,e,o){var r=Math.max(1,i.getBandWidth()),l=Math.PI/180;return i.dim==="angle"?{type:"Sector",shape:w.makeSectorShape(a.cx,a.cy,e[0],e[1],(-u-r/2)*l,(-u+r/2)*l)}:{type:"Sector",shape:w.makeSectorShape(a.cx,a.cy,u-r/2,u+r/2,0,Math.PI*2)}}};S.registerAxisPointerClass("PolarAxisPointer",p);var s=p;Y.exports=s},9242:function(Y,V,n){var T=n(37874),L=n(23263),M=n(76203),w=n(68089),C=["x","y"],D=["width","height"],S=T.extend({makeElOption:function(i,a,u,e,o){var r=u.axis,l=r.coordinateSystem,h=t(l,1-v(r)),f=l.dataToPoint(a)[0],c=e.get("type");if(c&&c!=="none"){var d=L.buildElStyle(e),A=p[c](r,f,h);A.style=d,i.graphicKey=A.type,i.pointer=A}var x=M.layout(u);L.buildCartesianSingleLabelElOption(a,i,x,u,e,o)},getHandleTransform:function(i,a,u){var e=M.layout(a,{labelInside:!1});return e.labelMargin=u.get("handle.margin"),{position:L.getTransformedPosition(a.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,a,u,e){var o=u.axis,r=o.coordinateSystem,l=v(o),h=t(r,l),f=i.position;f[l]+=a[l],f[l]=Math.min(h[1],f[l]),f[l]=Math.max(h[0],f[l]);var c=t(r,1-l),d=(c[1]+c[0])/2,A=[d,d];return A[l]=f[l],{position:f,rotation:i.rotation,cursorPoint:A,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(i,a,u){var e=L.makeLineShape([a,u[0]],[a,u[1]],v(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,a,u){var e=i.getBandWidth(),o=u[1]-u[0];return{type:"Rect",shape:L.makeRectShape([a-e/2,u[0]],[e,o],v(i))}}};function v(i){return i.isHorizontal()?0:1}function t(i,a){var u=i.getRect();return[u[C[a]],u[C[a]]+u[D[a]]]}w.registerAxisPointerClass("SingleAxisPointer",S);var s=S;Y.exports=s},15110:function(Y,V,n){var T=n(69008),L=n(90830),M=L.makeInner,w=n(9862),C=n(65881),D=T.each,S=T.curry,p=M();function v(f,c,d){var A=f.currTrigger,x=[f.x,f.y],y=f,g=f.dispatchAction||T.bind(d.dispatchAction,d),m=c.getComponent("axisPointer").coordSysAxesInfo;if(m){h(x)&&(x=C({seriesIndex:y.seriesIndex,dataIndex:y.dataIndex},c).point);var b=h(x),I=y.axesInfo,R=m.axesInfo,E=A==="leave"||h(x),P={},O={},N={list:[],map:{}},_={showPointer:S(i,O),showTooltip:S(a,N)};D(m.coordSysMap,function(F,W){var U=b||F.containPoint(x);D(m.coordSysAxesInfo[W],function(H,z){var B=H.axis,k=r(I,H);if(!E&&U&&(!I||k)){var Z=k&&k.value;Z==null&&!b&&(Z=B.pointToData(x)),Z!=null&&t(H,Z,_,!1,P)}})});var G={};return D(R,function(F,W){var U=F.linkGroup;U&&!O[W]&&D(U.axesInfo,function(H,z){var B=O[z];if(H!==F&&B){var k=B.value;U.mapper&&(k=F.axis.scale.parse(U.mapper(k,l(H),l(F)))),G[F.key]=k}})}),D(G,function(F,W){t(R[W],F,_,!0,P)}),u(O,R,P),e(N,x,f,g),o(R,g,d),P}}function t(f,c,d,A,x){var y=f.axis;if(!(y.scale.isBlank()||!y.containData(c))){if(!f.involveSeries){d.showPointer(f,c);return}var g=s(c,f),m=g.payloadBatch,b=g.snapToValue;m[0]&&x.seriesIndex==null&&T.extend(x,m[0]),!A&&f.snap&&y.containData(b)&&b!=null&&(c=b),d.showPointer(f,c,m,x),d.showTooltip(f,g,b)}}function s(f,c){var d=c.axis,A=d.dim,x=f,y=[],g=Number.MAX_VALUE,m=-1;return D(c.seriesModels,function(b,I){var R=b.getData().mapDimension(A,!0),E,P;if(b.getAxisTooltipData){var O=b.getAxisTooltipData(R,f,d);P=O.dataIndices,E=O.nestestValue}else{if(P=b.getData().indicesOfNearest(R[0],f,d.type==="category"?.5:null),!P.length)return;E=b.getData().get(R[0],P[0])}if(!(E==null||!isFinite(E))){var N=f-E,_=Math.abs(N);_<=g&&((_=0&&m<0)&&(g=_,m=N,x=E,y.length=0),D(P,function(G){y.push({seriesIndex:b.seriesIndex,dataIndexInside:G,dataIndex:b.getData().getRawIndex(G)})}))}}),{payloadBatch:y,snapToValue:x}}function i(f,c,d,A){f[c.key]={value:d,payloadBatch:A}}function a(f,c,d,A){var x=d.payloadBatch,y=c.axis,g=y.model,m=c.axisPointerModel;if(!(!c.triggerTooltip||!x.length)){var b=c.coordSys.model,I=w.makeKey(b),R=f.map[I];R||(R=f.map[I]={coordSysId:b.id,coordSysIndex:b.componentIndex,coordSysType:b.type,coordSysMainType:b.mainType,dataByAxis:[]},f.list.push(R)),R.dataByAxis.push({axisDim:y.dim,axisIndex:g.componentIndex,axisType:g.type,axisId:g.id,value:A,valueLabelOpt:{precision:m.get("label.precision"),formatter:m.get("label.formatter")},seriesDataIndices:x.slice()})}}function u(f,c,d){var A=d.axesInfo=[];D(c,function(x,y){var g=x.axisPointerModel.option,m=f[y];m?(!x.useHandle&&(g.status="show"),g.value=m.value,g.seriesDataIndices=(m.payloadBatch||[]).slice()):!x.useHandle&&(g.status="hide"),g.status==="show"&&A.push({axisDim:x.axis.dim,axisIndex:x.axis.model.componentIndex,value:g.value})})}function e(f,c,d,A){if(h(c)||!f.list.length){A({type:"hideTip"});return}var x=((f.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};A({type:"showTip",escapeConnect:!0,x:c[0],y:c[1],tooltipOption:d.tooltipOption,position:d.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:f.list})}function o(f,c,d){var A=d.getZr(),x="axisPointerLastHighlights",y=p(A)[x]||{},g=p(A)[x]={};D(f,function(I,R){var E=I.axisPointerModel.option;E.status==="show"&&D(E.seriesDataIndices,function(P){var O=P.seriesIndex+" | "+P.dataIndex;g[O]=P})});var m=[],b=[];T.each(y,function(I,R){!g[R]&&b.push(I)}),T.each(g,function(I,R){!y[R]&&m.push(I)}),b.length&&d.dispatchAction({type:"downplay",escapeConnect:!0,batch:b}),m.length&&d.dispatchAction({type:"highlight",escapeConnect:!0,batch:m})}function r(f,c){for(var d=0;d<(f||[]).length;d++){var A=f[d];if(c.axis.dim===A.axisDim&&c.axis.model.componentIndex===A.axisIndex)return A}}function l(f){var c=f.axis.model,d={},A=d.axisDim=f.axis.dim;return d.axisIndex=d[A+"AxisIndex"]=c.componentIndex,d.axisName=d[A+"AxisName"]=c.name,d.axisId=d[A+"AxisId"]=c.id,d}function h(f){return!f||f[0]==null||isNaN(f[0])||f[1]==null||isNaN(f[1])}Y.exports=v},65881:function(Y,V,n){var T=n(69008),L=n(90830);function M(w,C){var D=[],S=w.seriesIndex,p;if(S==null||!(p=C.getSeriesByIndex(S)))return{point:[]};var v=p.getData(),t=L.queryDataIndex(v,w);if(t==null||t<0||T.isArray(t))return{point:[]};var s=v.getItemGraphicEl(t),i=p.coordinateSystem;if(p.getTooltipPosition)D=p.getTooltipPosition(t)||[];else if(i&&i.dataToPoint)D=i.dataToPoint(v.getValues(T.map(i.dimensions,function(u){return v.mapDimension(u)}),t,!0))||[];else if(s){var a=s.getBoundingRect().clone();a.applyTransform(s.transform),D=[a.x+a.width/2,a.y+a.height/2]}return{point:D,el:s}}Y.exports=M},46243:function(Y,V,n){var T=n(69008),L=n(12973),M=n(90830),w=M.makeInner,C=w(),D=T.each;function S(u,e,o){if(!L.node){var r=e.getZr();C(r).records||(C(r).records={}),p(r,e);var l=C(r).records[u]||(C(r).records[u]={});l.handler=o}}function p(u,e){if(C(u).initialized)return;C(u).initialized=!0,o("click",T.curry(s,"click")),o("mousemove",T.curry(s,"mousemove")),o("globalout",t);function o(r,l){u.on(r,function(h){var f=i(e);D(C(u).records,function(c){c&&l(c,h,f.dispatchAction)}),v(f.pendings,e)})}}function v(u,e){var o=u.showTip.length,r=u.hideTip.length,l;o?l=u.showTip[o-1]:r&&(l=u.hideTip[r-1]),l&&(l.dispatchAction=null,e.dispatchAction(l))}function t(u,e,o){u.handler("leave",null,o)}function s(u,e,o,r){e.handler(u,o,r)}function i(u){var e={showTip:[],hideTip:[]},o=function(r){var l=e[r.type];l?l.push(r):(r.dispatchAction=o,u.dispatchAction(r))};return{dispatchAction:o,pendings:e}}function a(u,e){if(!L.node){var o=e.getZr(),r=(C(o).records||{})[u];r&&(C(o).records[u]=null)}}V.register=S,V.unregister=a},9862:function(Y,V,n){var T=n(69008),L=n(24040),M=T.each,w=T.curry;function C(o,r){var l={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return D(l,o,r),l.seriesInvolved&&p(l,o),l}function D(o,r,l){var h=r.getComponent("tooltip"),f=r.getComponent("axisPointer"),c=f.get("link",!0)||[],d=[];M(l.getCoordinateSystems(),function(A){if(!A.axisPointerEnabled)return;var x=e(A.model),y=o.coordSysAxesInfo[x]={};o.coordSysMap[x]=A;var g=A.model,m=g.getModel("tooltip",h);if(M(A.getAxes(),w(E,!1,null)),A.getTooltipAxes&&h&&m.get("show")){var b=m.get("trigger")==="axis",I=m.get("axisPointer.type")==="cross",R=A.getTooltipAxes(m.get("axisPointer.axis"));(b||I)&&M(R.baseAxes,w(E,I?"cross":!0,b)),I&&M(R.otherAxes,w(E,"cross",!1))}function E(P,O,N){var _=N.model.getModel("axisPointer",f),G=_.get("show");if(!(!G||G==="auto"&&!P&&!u(_))){O==null&&(O=_.get("triggerTooltip")),_=P?S(N,m,f,r,P,O):_;var F=_.get("snap"),W=e(N.model),U=O||F||N.type==="category",H=o.axesInfo[W]={key:W,axis:N,coordSys:A,axisPointerModel:_,triggerTooltip:O,involveSeries:U,snap:F,useHandle:u(_),seriesModels:[]};y[W]=H,o.seriesInvolved|=U;var z=v(c,N);if(z!=null){var B=d[z]||(d[z]={axesInfo:{}});B.axesInfo[W]=H,B.mapper=c[z].mapper,H.linkGroup=B}}}})}function S(o,r,l,h,f,c){var d=r.getModel("axisPointer"),A={};M(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(m){A[m]=T.clone(d.get(m))}),A.snap=o.type!=="category"&&!!c,d.get("type")==="cross"&&(A.type="line");var x=A.label||(A.label={});if(x.show==null&&(x.show=!1),f==="cross"){var y=d.get("label.show");if(x.show=y!=null?y:!0,!c){var g=A.lineStyle=d.get("crossStyle");g&&T.defaults(x,g.textStyle)}}return o.model.getModel("axisPointer",new L(A,l,h))}function p(o,r){r.eachSeries(function(l){var h=l.coordinateSystem,f=l.get("tooltip.trigger",!0),c=l.get("tooltip.show",!0);!h||f==="none"||f===!1||f==="item"||c===!1||l.get("axisPointer.show",!0)===!1||M(o.coordSysAxesInfo[e(h.model)],function(d){var A=d.axis;h.getAxis(A.dim)===A&&(d.seriesModels.push(l),d.seriesDataCount==null&&(d.seriesDataCount=0),d.seriesDataCount+=l.getData().count())})},this)}function v(o,r){for(var l=r.model,h=r.dim,f=0;f=0||o===r}function s(o){var r=i(o);if(r){var l=r.axisPointerModel,h=r.axis.scale,f=l.option,c=l.get("status"),d=l.get("value");d!=null&&(d=h.parse(d));var A=u(l);c==null&&(f.status=A?"show":"hide");var x=h.getExtent().slice();x[0]>x[1]&&x.reverse(),(d==null||d>x[1])&&(d=x[1]),dd[0][1]&&(d[0][1]=g[0]),g[1]d[1][1]&&(d[1][1]=g[1])}return d&&f(d)}};function f(c){return new M(c[0][0],c[1][0],c[0][1]-c[0][0],c[1][1]-c[1][0])}V.layoutCovers=i},11550:function(Y,V,n){n(29933),n(66619),n(62336)},62336:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(17010),C=n(86957),D={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},S={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},p=T.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(v,t,s){var i=this.group;i.removeAll();var a=v.coordinateSystem,u=a.getRangeInfo(),e=a.getOrient();this._renderDayRect(v,u,i),this._renderLines(v,u,e,i),this._renderYearText(v,u,e,i),this._renderMonthText(v,e,i),this._renderWeekText(v,u,e,i)},_renderDayRect:function(v,t,s){for(var i=v.coordinateSystem,a=v.getModel("itemStyle").getItemStyle(),u=i.getCellWidth(),e=i.getCellHeight(),o=t.start.time;o<=t.end.time;o=i.getNextNDay(o,1).time){var r=i.dataToRect([o],!1).tl,l=new M.Rect({shape:{x:r[0],y:r[1],width:u,height:e},cursor:"default",style:a});s.add(l)}},_renderLines:function(v,t,s,i){var a=this,u=v.coordinateSystem,e=v.getModel("splitLine.lineStyle").getLineStyle(),o=v.get("splitLine.show"),r=e.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,h=0;l.time<=t.end.time;h++){c(l.formatedDate),h===0&&(l=u.getDateInfo(t.start.y+"-"+t.start.m));var f=l.date;f.setMonth(f.getMonth()+1),l=u.getDateInfo(f)}c(u.getNextNDay(t.end.time,1).formatedDate);function c(d){a._firstDayOfMonth.push(u.getDateInfo(d)),a._firstDayPoints.push(u.dataToRect([d],!1).tl);var A=a._getLinePointsOfOneWeek(v,d,s);a._tlpoints.push(A[0]),a._blpoints.push(A[A.length-1]),o&&a._drawSplitline(A,e,i)}o&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,r,s),e,i),o&&this._drawSplitline(a._getEdgesPoints(a._blpoints,r,s),e,i)},_getEdgesPoints:function(v,t,s){var i=[v[0].slice(),v[v.length-1].slice()],a=s==="horizontal"?0:1;return i[0][a]=i[0][a]-t/2,i[1][a]=i[1][a]+t/2,i},_drawSplitline:function(v,t,s){var i=new M.Polyline({z2:20,shape:{points:v},style:t});s.add(i)},_getLinePointsOfOneWeek:function(v,t,s){var i=v.coordinateSystem;t=i.getDateInfo(t);for(var a=[],u=0;u<7;u++){var e=i.getNextNDay(t.time,u),o=i.dataToRect([e.time],!1);a[2*e.day]=o.tl,a[2*e.day+1]=o[s==="horizontal"?"bl":"tr"]}return a},_formatterLabel:function(v,t){return typeof v=="string"&&v?w.formatTplSimple(v,t):typeof v=="function"?v(t):t.nameMap},_yearTextPositionControl:function(v,t,s,i,a){t=t.slice();var u=["center","bottom"];i==="bottom"?(t[1]+=a,u=["center","top"]):i==="left"?t[0]-=a:i==="right"?(t[0]+=a,u=["center","top"]):t[1]-=a;var e=0;return(i==="left"||i==="right")&&(e=Math.PI/2),{rotation:e,position:t,style:{textAlign:u[0],textVerticalAlign:u[1]}}},_renderYearText:function(v,t,s,i){var a=v.getModel("yearLabel");if(a.get("show")){var u=a.get("margin"),e=a.get("position");e||(e=s!=="horizontal"?"top":"left");var o=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],r=(o[0][0]+o[1][0])/2,l=(o[0][1]+o[1][1])/2,h=s==="horizontal"?0:1,f={top:[r,o[h][1]],bottom:[r,o[1-h][1]],left:[o[1-h][0],l],right:[o[h][0],l]},c=t.start.y;+t.end.y>+t.start.y&&(c=c+"-"+t.end.y);var d=a.get("formatter"),A={start:t.start.y,end:t.end.y,nameMap:c},x=this._formatterLabel(d,A),y=new M.Text({z2:30});M.setTextStyle(y.style,a,{text:x}),y.attr(this._yearTextPositionControl(y,f[e],s,e,u)),i.add(y)}},_monthTextPositionControl:function(v,t,s,i,a){var u="left",e="top",o=v[0],r=v[1];return s==="horizontal"?(r=r+a,t&&(u="center"),i==="start"&&(e="bottom")):(o=o+a,t&&(e="middle"),i==="start"&&(u="right")),{x:o,y:r,textAlign:u,textVerticalAlign:e}},_renderMonthText:function(v,t,s){var i=v.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),u=i.get("margin"),e=i.get("position"),o=i.get("align"),r=[this._tlpoints,this._blpoints];L.isString(a)&&(a=D[a.toUpperCase()]||[]);var l=e==="start"?0:1,h=t==="horizontal"?0:1;u=e==="start"?-u:u;for(var f=o==="center",c=0;cl[1];if(I&&!R&&!E)return!0;I&&(g=!0),R&&(x=!0),E&&(y=!0)}return g&&x&&y}):C(d,function(A){if(r==="empty")f.setData(c=c.map(A,function(y){return h(y)?y:NaN}));else{var x={};x[A]=l,c.selectRange(x)}}),C(d,function(A){c.setApproximateExtent(l,A)}))});function h(f){return f>=l[0]&&f<=l[1]}}};function p(a,u,e){var o=[1/0,-1/0];return C(e,function(r){var l=r.getData();l&&C(l.mapDimension(u,!0),function(h){var f=l.getApproximateExtent(h);f[0]o[1]&&(o[1]=f[1])})}),o[1]0?0:NaN);var h=e.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?u[1]=h:r&&(u[1]=l>0?l-1:NaN),e.get("scale",!0)||(u[0]>0&&(u[0]=0),u[1]<0&&(u[1]=0)),u}function t(a,u){var e=a.getAxisModel(),o=a._percentWindow,r=a._valueWindow;if(o){var l=L.getPixelPrecision(r,[0,500]);l=Math.min(l,20);var h=u||o[0]===0&&o[1]===100;e.setRange(h?null:+r[0].toFixed(l),h?null:+r[1].toFixed(l))}}function s(a){var u=a._minMaxSpan={},e=a._dataZoomModel,o=a._dataExtent;C(["min","max"],function(r){var l=e.get(r+"Span"),h=e.get(r+"ValueSpan");h!=null&&(h=a.getAxisModel().axis.scale.parse(h)),h!=null?l=L.linearMap(o[0]+h,o,[0,100],!0):l!=null&&(h=L.linearMap(l,[0,100],o,!0)-o[0]),u[r+"Span"]=l,u[r+"ValueSpan"]=h})}var i=S;Y.exports=i},69391:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(12973),D=n(90830),S=n(14531),p=n(53126),v=w.each,t=S.eachAxisDim,s=M.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,o,r){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var l=i(e);this.settledOption=l,this.mergeDefaultAndTheme(e,r),this.doInit(l)},mergeOption:function(e){var o=i(e);w.merge(this.option,e,!0),w.merge(this.settledOption,o,!0),this.doInit(o)},doInit:function(e){var o=this.option;C.canvasSupported||(o.realtime=!1),this._setDefaultThrottle(e),a(this,e);var r=this.settledOption;v([["start","startValue"],["end","endValue"]],function(l,h){this._rangePropMode[h]==="value"&&(o[l[0]]=r[l[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(o,r,l,h){var f=this.dependentModels[o.axis][r],c=f.__dzAxisProxy||(f.__dzAxisProxy=new p(o.name,r,this,h));e[o.name+"_"+r]=c},this)},_resetTarget:function(){var e=this.option,o=this._judgeAutoMode();t(function(r){var l=r.axisIndex;e[l]=D.normalizeToArray(e[l])},this),o==="axisIndex"?this._autoSetAxisIndex():o==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,o=!1;t(function(l){e[l.axisIndex]!=null&&(o=!0)},this);var r=e.orient;if(r==null&&o)return"orient";if(!o)return r==null&&(e.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var e=!0,o=this.get("orient",!0),r=this.option,l=this.dependentModels;if(e){var h=o==="vertical"?"y":"x";l[h+"Axis"].length?(r[h+"AxisIndex"]=[0],e=!1):v(l.singleAxis,function(f){e&&f.get("orient",!0)===o&&(r.singleAxisIndex=[f.componentIndex],e=!1)})}e&&t(function(f){if(e){var c=[],d=this.dependentModels[f.axis];if(d.length&&!c.length)for(var A=0,x=d.length;A0?100:20}},getFirstTargetAxisModel:function(){var e;return t(function(o){if(e==null){var r=this.get(o.axisIndex);r.length&&(e=this.dependentModels[o.axis][r[0]])}},this),e},eachTargetAxis:function(e,o){var r=this.ecModel;t(function(l){v(this.get(l.axisIndex),function(h){e.call(o,l,h,this,r)},this)},this)},getAxisProxy:function(e,o){return this._axisProxies[e+"_"+o]},getAxisModel:function(e,o){var r=this.getAxisProxy(e,o);return r&&r.getAxisModel()},setRawRange:function(e){var o=this.option,r=this.settledOption;v([["start","startValue"],["end","endValue"]],function(l){(e[l[0]]!=null||e[l[1]]!=null)&&(o[l[0]]=r[l[0]]=e[l[0]],o[l[1]]=r[l[1]]=e[l[1]])},this),a(this,e)},setCalculatedRange:function(e){var o=this.option;v(["start","startValue","end","endValue"],function(r){o[r]=e[r]})},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,o){if(e==null&&o==null){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataValueWindow()}else return this.getAxisProxy(e,o).getDataValueWindow()},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var o=this._axisProxies;for(var r in o)if(o.hasOwnProperty(r)&&o[r].hostedBy(this))return o[r];for(var r in o)if(o.hasOwnProperty(r)&&!o[r].hostedBy(this))return o[r]},getRangePropMode:function(){return this._rangePropMode.slice()}});function i(e){var o={};return v(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(o[r]=e[r])}),o}function a(e,o){var r=e._rangePropMode,l=e.get("rangeMode");v([["start","startValue"],["end","endValue"]],function(h,f){var c=o[h[0]]!=null,d=o[h[1]]!=null;c&&!d?r[f]="percent":!c&&d?r[f]="value":l?r[f]=l[f]:c&&(r[f]="percent")})}var u=s;Y.exports=u},91615:function(Y,V,n){var T=n(36851),L=T.extend({type:"dataZoom",render:function(M,w,C,D){this.dataZoomModel=M,this.ecModel=w,this.api=C},getTargetCoordInfo:function(){var M=this.dataZoomModel,w=this.ecModel,C={};M.eachTargetAxis(function(S,p){var v=w.getComponent(S.axis,p);if(v){var t=v.getCoordSysModel();t&&D(t,v,C[t.mainType]||(C[t.mainType]=[]),t.componentIndex)}},this);function D(S,p,v,t){for(var s,i=0;i0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],f=Math.max(1/u.scale,0);o[0]=(o[0]-h)*f+h,o[1]=(o[1]-h)*f+h;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(M(0,o,[0,100],0,c.minSpan,c.maxSpan),this._range=o,e[0]!==o[0]||e[1]!==o[1])return o}},pan:p(function(s,i,a,u,e,o){var r=v[u]([o.oldX,o.oldY],[o.newX,o.newY],i,e,a);return r.signal*(s[1]-s[0])*r.pixel/r.pixelLength}),scrollMove:p(function(s,i,a,u,e,o){var r=v[u]([0,0],[o.scrollDelta,o.scrollDelta],i,e,a);return r.signal*(s[1]-s[0])*o.scrollDelta})};function p(s){return function(i,a,u,e){var o=this._range,r=o.slice(),l=i.axisModels[0];if(l){var h=s(r,l,i,a,u,e);if(M(h,r,[0,100],"all"),this._range=r,o[0]!==r[0]||o[1]!==r[1])return r}}}var v={grid:function(s,i,a,u,e){var o=a.axis,r={},l=e.model.coordinateSystem.getRect();return s=s||[0,0],o.dim==="x"?(r.pixel=i[0]-s[0],r.pixelLength=l.width,r.pixelStart=l.x,r.signal=o.inverse?1:-1):(r.pixel=i[1]-s[1],r.pixelLength=l.height,r.pixelStart=l.y,r.signal=o.inverse?-1:1),r},polar:function(s,i,a,u,e){var o=a.axis,r={},l=e.model.coordinateSystem,h=l.getRadiusAxis().getExtent(),f=l.getAngleAxis().getExtent();return s=s?l.pointToCoord(s):[0,0],i=l.pointToCoord(i),a.mainType==="radiusAxis"?(r.pixel=i[0]-s[0],r.pixelLength=h[1]-h[0],r.pixelStart=h[0],r.signal=o.inverse?1:-1):(r.pixel=i[1]-s[1],r.pixelLength=f[1]-f[0],r.pixelStart=f[0],r.signal=o.inverse?-1:1),r},singleAxis:function(s,i,a,u,e){var o=a.axis,r=e.model.coordinateSystem.getRect(),l={};return s=s||[0,0],o.orient==="horizontal"?(l.pixel=i[0]-s[0],l.pixelLength=r.width,l.pixelStart=r.x,l.signal=o.inverse?1:-1):(l.pixel=i[1]-s[1],l.pixelLength=r.height,l.pixelStart=r.y,l.signal=o.inverse?-1:1),l}},t=D;Y.exports=t},1445:function(Y,V,n){var T=n(69391),L=T.extend({type:"dataZoom.select"});Y.exports=L},63124:function(Y,V,n){var T=n(91615),L=T.extend({type:"dataZoom.select"});Y.exports=L},23291:function(Y,V,n){var T=n(69391),L=T.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),M=L;Y.exports=M},32079:function(Y,V,n){var T=n(69008),L=n(92462),M=n(18993),w=n(83209),C=n(91615),D=n(86957),S=n(7357),p=n(98810),v=M.Rect,t=D.linearMap,s=D.asc,i=T.bind,a=T.each,u=7,e=1,o=30,r="horizontal",l="vertical",h=5,f=["line","bar","candlestick","scatter"],c=C.extend({type:"dataZoom.slider",init:function(y,g){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=g},render:function(y,g,m,b){if(c.superApply(this,"render",arguments),w.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=y.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!b||b.type!=="dataZoom"||b.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){c.superApply(this,"remove",arguments),w.clear(this,"_dispatchZoomAction")},dispose:function(){c.superApply(this,"dispose",arguments),w.clear(this,"_dispatchZoomAction")},_buildView:function(){var y=this.group;y.removeAll(),this._resetLocation(),this._resetInterval();var g=this._displayables.barGroup=new M.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),y.add(g),this._positionGroup()},_resetLocation:function(){var y=this.dataZoomModel,g=this.api,m=this._findCoordRect(),b={width:g.getWidth(),height:g.getHeight()},I=this._orient===r?{right:b.width-m.x-m.width,top:b.height-o-u,width:m.width,height:o}:{right:u,top:m.y,width:o,height:m.height},R=S.getLayoutParams(y.option);T.each(["right","top","width","height"],function(P){R[P]==="ph"&&(R[P]=I[P])});var E=S.getLayoutRect(R,b,y.padding);this._location={x:E.x,y:E.y},this._size=[E.width,E.height],this._orient===l&&this._size.reverse()},_positionGroup:function(){var y=this.group,g=this._location,m=this._orient,b=this.dataZoomModel.getFirstTargetAxisModel(),I=b&&b.get("inverse"),R=this._displayables.barGroup,E=(this._dataShadowInfo||{}).otherAxisInverse;R.attr(m===r&&!I?{scale:E?[1,1]:[1,-1]}:m===r&&I?{scale:E?[-1,1]:[-1,-1]}:m===l&&!I?{scale:E?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:E?[-1,-1]:[-1,1],rotation:Math.PI/2});var P=y.getBoundingRect([R]);y.attr("position",[g.x-P.x,g.y-P.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var y=this.dataZoomModel,g=this._size,m=this._displayables.barGroup;m.add(new v({silent:!0,shape:{x:0,y:0,width:g[0],height:g[1]},style:{fill:y.get("backgroundColor")},z2:-40})),m.add(new v({shape:{x:0,y:0,width:g[0],height:g[1]},style:{fill:"transparent"},z2:0,onclick:T.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var y=this._dataShadowInfo=this._prepareDataShadowInfo();if(y){var g=this._size,m=y.series,b=m.getRawData(),I=m.getShadowDim?m.getShadowDim():y.otherDim;if(I!=null){var R=b.getDataExtent(I),E=(R[1]-R[0])*.3;R=[R[0]-E,R[1]+E];var P=[0,g[1]],O=[0,g[0]],N=[[g[0],0],[0,0]],_=[],G=O[1]/(b.count()-1),F=0,W=Math.round(b.count()/g[0]),U;b.each([I],function(z,B){if(W>0&&B%W){F+=G;return}var k=z==null||isNaN(z)||z==="",Z=k?0:t(z,R,P,!0);k&&!U&&B?(N.push([N[N.length-1][0],0]),_.push([_[_.length-1][0],0])):!k&&U&&(N.push([F,0]),_.push([F,0])),N.push([F,Z]),_.push([F,Z]),F+=G,U=k});var H=this.dataZoomModel;this._displayables.barGroup.add(new M.Polygon({shape:{points:N},style:T.defaults({fill:H.get("dataBackgroundColor")},H.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new M.Polyline({shape:{points:_},style:H.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var y=this.dataZoomModel,g=y.get("showDataShadow");if(g!==!1){var m,b=this.ecModel;return y.eachTargetAxis(function(I,R){var E=y.getAxisProxy(I.name,R).getTargetSeriesModels();T.each(E,function(P){if(!m&&!(g!==!0&&T.indexOf(f,P.get("type"))<0)){var O=b.getComponent(I.axis,R).axis,N=d(I.name),_,G=P.coordinateSystem;N!=null&&G.getOtherAxis&&(_=G.getOtherAxis(O).inverse),N=P.getData().mapDimension(N),m={thisAxis:O,series:P,thisDim:I.name,otherDim:N,otherAxisInverse:_}}},this)},this),m}},_renderHandle:function(){var y=this._displayables,g=y.handles=[],m=y.handleLabels=[],b=this._displayables.barGroup,I=this._size,R=this.dataZoomModel;b.add(y.filler=new v({draggable:!0,cursor:A(this._orient),drift:i(this._onDragMove,this,"all"),ondragstart:i(this._showDataInfo,this,!0),ondragend:i(this._onDragEnd,this),onmouseover:i(this._showDataInfo,this,!0),onmouseout:i(this._showDataInfo,this,!1),style:{fill:R.get("fillerColor"),textPosition:"inside"}})),b.add(new v({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:e,fill:"rgba(0,0,0,0)"}})),a([0,1],function(E){var P=M.createIcon(R.get("handleIcon"),{cursor:A(this._orient),draggable:!0,drift:i(this._onDragMove,this,E),ondragend:i(this._onDragEnd,this),onmouseover:i(this._showDataInfo,this,!0),onmouseout:i(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),O=P.getBoundingRect();this._handleHeight=D.parsePercent(R.get("handleSize"),this._size[1]),this._handleWidth=O.width/O.height*this._handleHeight,P.setStyle(R.getModel("handleStyle").getItemStyle());var N=R.get("handleColor");N!=null&&(P.style.fill=N),b.add(g[E]=P);var _=R.textStyleModel;this.group.add(m[E]=new M.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:_.getTextColor(),textFont:_.getFont()},z2:10}))},this)},_resetInterval:function(){var y=this._range=this.dataZoomModel.getPercentRange(),g=this._getViewExtent();this._handleEnds=[t(y[0],[0,100],g,!0),t(y[1],[0,100],g,!0)]},_updateInterval:function(y,g){var m=this.dataZoomModel,b=this._handleEnds,I=this._getViewExtent(),R=m.findRepresentativeAxisProxy().getMinMaxSpan(),E=[0,100];p(g,b,I,m.get("zoomLock")?"all":y,R.minSpan!=null?t(R.minSpan,E,I,!0):null,R.maxSpan!=null?t(R.maxSpan,E,I,!0):null);var P=this._range,O=this._range=s([t(b[0],I,E,!0),t(b[1],I,E,!0)]);return!P||P[0]!==O[0]||P[1]!==O[1]},_updateView:function(y){var g=this._displayables,m=this._handleEnds,b=s(m.slice()),I=this._size;a([0,1],function(R){var E=g.handles[R],P=this._handleHeight;E.attr({scale:[P/2,P/2],position:[m[R],I[1]/2-P/2]})},this),g.filler.setShape({x:b[0],y:0,width:b[1]-b[0],height:I[1]}),this._updateDataInfo(y)},_updateDataInfo:function(y){var g=this.dataZoomModel,m=this._displayables,b=m.handleLabels,I=this._orient,R=["",""];if(g.get("showDetail")){var E=g.findRepresentativeAxisProxy();if(E){var P=E.getAxisModel().axis,O=this._range,N=y?E.calculateDataWindow({start:O[0],end:O[1]}).valueWindow:E.getDataValueWindow();R=[this._formatLabel(N[0],P),this._formatLabel(N[1],P)]}}var _=s(this._handleEnds.slice());G.call(this,0),G.call(this,1);function G(F){var W=M.getTransform(m.handles[F].parent,this.group),U=M.transformDirection(F===0?"right":"left",W),H=this._handleWidth/2+h,z=M.applyTransform([_[F]+(F===0?-H:H),this._size[1]/2],W);b[F].setStyle({x:z[0],y:z[1],textVerticalAlign:I===r?"middle":U,textAlign:I===r?U:"center",text:R[F]})}},_formatLabel:function(y,g){var m=this.dataZoomModel,b=m.get("labelFormatter"),I=m.get("labelPrecision");(I==null||I==="auto")&&(I=g.getPixelPrecision());var R=y==null||isNaN(y)?"":g.type==="category"||g.type==="time"?g.scale.getLabel(Math.round(y)):y.toFixed(Math.min(I,20));return T.isFunction(b)?b(y,R):T.isString(b)?b.replace("{value}",R):R},_showDataInfo:function(y){y=this._dragging||y;var g=this._displayables.handleLabels;g[0].attr("invisible",!y),g[1].attr("invisible",!y)},_onDragMove:function(y,g,m,b){this._dragging=!0,L.stop(b.event);var I=this._displayables.barGroup.getLocalTransform(),R=M.applyTransform([g,m],I,!0),E=this._updateInterval(y,R[0]),P=this.dataZoomModel.get("realtime");this._updateView(!P),E&&P&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var y=this.dataZoomModel.get("realtime");!y&&this._dispatchZoomAction()},_onClickPanelClick:function(y){var g=this._size,m=this._displayables.barGroup.transformCoordToLocal(y.offsetX,y.offsetY);if(!(m[0]<0||m[0]>g[0]||m[1]<0||m[1]>g[1])){var b=this._handleEnds,I=(b[0]+b[1])/2,R=this._updateInterval("all",m[0]-I);this._updateView(),R&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var y=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:y[0],end:y[1]})},_findCoordRect:function(){var y;if(a(this.getTargetCoordInfo(),function(b){if(!y&&b.length){var I=b[0].model.coordinateSystem;y=I.getRect&&I.getRect()}}),!y){var g=this.api.getWidth(),m=this.api.getHeight();y={x:g*.2,y:m*.2,width:g*.6,height:m*.6}}return y}});function d(y){var g={x:"y",y:"x",radius:"angle",angle:"radius"};return g[y]}function A(y){return y==="vertical"?"ns-resize":"ew-resize"}var x=c;Y.exports=x},51323:function(Y,V,n){var T=n(3096),L=n(69008),M=n(14531);T.registerAction("dataZoom",function(w,C){var D=M.createLinkedNodesFinder(L.bind(C.eachComponent,C,"dataZoom"),M.eachAxisDim,function(p,v){return p.get(v.axisIndex)}),S=[];C.eachComponent({mainType:"dataZoom",query:w},function(p,v){S.push.apply(S,D(p).nodes)}),L.each(S,function(p,v){p.setRawRange({start:w.start,end:w.end,startValue:w.startValue,endValue:w.endValue})})})},77069:function(Y,V,n){var T=n(3096),L=n(69008),M=L.createHashMap,w=L.each;T.registerProcessor({getTargetSeries:function(C){var D=M();return C.eachComponent("dataZoom",function(S){S.eachTargetAxis(function(p,v,t){var s=t.getAxisProxy(p.name,v);w(s.getTargetSeriesModels(),function(i){D.set(i.uid,i)})})}),D},modifyOutputEnd:!0,overallReset:function(C,D){C.eachComponent("dataZoom",function(S){S.eachTargetAxis(function(p,v,t){t.getAxisProxy(p.name,v).reset(t,D)}),S.eachTargetAxis(function(p,v,t){t.getAxisProxy(p.name,v).filterData(t,D)})}),C.eachComponent("dataZoom",function(S){var p=S.findRepresentativeAxisProxy(),v=p.getDataPercentWindow(),t=p.getDataValueWindow();S.setCalculatedRange({start:v[0],end:v[1],startValue:t[0],endValue:t[1]})})}})},14531:function(Y,V,n){var T=n(69008),L=n(17010),M=["x","y","z","radius","angle","single"],w=["cartesian2d","polar","singleAxis"];function C(v){return T.indexOf(w,v)>=0}function D(v,t){v=v.slice();var s=T.map(v,L.capitalFirst);t=(t||[]).slice();var i=T.map(t,L.capitalFirst);return function(a,u){T.each(v,function(e,o){for(var r={name:e,capital:s[o]},l=0;l=0}function a(e,o){var r=!1;return t(function(l){T.each(s(e,l)||[],function(h){o.records[l.name][h]&&(r=!0)})}),r}function u(e,o){o.nodes.push(e),t(function(r){T.each(s(e,r)||[],function(l){o.records[r.name][l]=!0})})}}V.isCoordSupported=C,V.createNameEach=D,V.eachAxisDim=S,V.createLinkedNodesFinder=p},89345:function(Y,V,n){var T=n(69008),L=T.each,M="\0_ec_hist_store";function w(v,t){var s=p(v);L(t,function(i,a){for(var u=s.length-1;u>=0;u--){var e=s[u];if(e[a])break}if(u<0){var o=v.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var r=o.getPercentRange();s[0][a]={dataZoomId:a,start:r[0],end:r[1]}}}}),s.push(t)}function C(v){var t=p(v),s=t[t.length-1];t.length>1&&t.pop();var i={};return L(s,function(a,u){for(var e=t.length-1;e>=0;e--){var a=t[e][u];if(a){i[u]=a;break}}}),i}function D(v){v[M]=null}function S(v){return p(v).length}function p(v){var t=v[M];return t||(t=v[M]=[{}]),t}V.push=w,V.pop=C,V.clear=D,V.count=S},13185:function(Y,V,n){var T=n(69008),L=n(38515),M=n(83209),w="\0_ec_dataZoom_roams";function C(a,u){var e=p(a),o=u.dataZoomId,r=u.coordId;T.each(e,function(f,c){var d=f.dataZoomInfos;d[o]&&T.indexOf(u.allCoordIds,r)<0&&(delete d[o],f.count--)}),t(e);var l=e[r];l||(l=e[r]={coordId:r,dataZoomInfos:{},count:0},l.controller=v(a,l),l.dispatchAction=T.curry(s,a)),!l.dataZoomInfos[o]&&l.count++,l.dataZoomInfos[o]=u;var h=i(l.dataZoomInfos);l.controller.enable(h.controlType,h.opt),l.controller.setPointerChecker(u.containsPoint),M.createOrUpdate(l,"dispatchAction",u.dataZoomModel.get("throttle",!0),"fixRate")}function D(a,u){var e=p(a);T.each(e,function(o){o.controller.dispose();var r=o.dataZoomInfos;r[u]&&(delete r[u],o.count--)}),t(e)}function S(a){return a.type+"\0_"+a.id}function p(a){var u=a.getZr();return u[w]||(u[w]={})}function v(a,u){var e=new L(a.getZr());return T.each(["pan","zoom","scrollMove"],function(o){e.on(o,function(r){var l=[];T.each(u.dataZoomInfos,function(h){if(r.isAvailableBehavior(h.dataZoomModel.option)){var f=(h.getRange||{})[o],c=f&&f(u.controller,r);!h.dataZoomModel.get("disabled",!0)&&c&&l.push({dataZoomId:h.dataZoomId,start:c[0],end:c[1]})}}),l.length&&u.dispatchAction(l)})}),e}function t(a){T.each(a,function(u,e){u.count||(u.controller.dispose(),delete a[e])})}function s(a,u){a.dispatchAction({type:"dataZoom",batch:u})}function i(a){var u,e="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return T.each(a,function(l){var h=l.dataZoomModel,f=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;o[e+f]>o[e+u]&&(u=f),r&=h.get("preventDefaultMouseMove",!0)}),{controlType:u,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}V.register=C,V.unregister=D,V.generateCoordId=S},35190:function(Y,V,n){var T=n(16172);T.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},48328:function(Y,V,n){n(35190),n(69391),n(91615),n(35187),n(79226),n(77069),n(51323)},20393:function(Y,V,n){n(35190),n(69391),n(91615),n(1445),n(63124),n(77069),n(51323)},18427:function(Y,V,n){n(35190),n(69391),n(91615),n(23291),n(32079),n(77069),n(51323)},72476:function(Y,V,n){var T=n(16172),L=n(36851),M=n(67063),w=M.detectSourceFormat,C=n(8326),D=C.SERIES_LAYOUT_BY_COLUMN;T.extend({type:"dataset",defaultOption:{seriesLayoutBy:D,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){w(this)}}),L.extend({type:"dataset"})},35584:function(Y,V,n){var T=n(3096),L=n(69008);n(55550),n(91148),n(72621),n(37406);function M(w,C){C.update="updateView",T.registerAction(C,function(D,S){var p={};return S.eachComponent({mainType:"geo",query:D},function(v){v[w](D.name);var t=v.coordinateSystem;L.each(t.regions,function(s){p[s.name]=v.isSelected(s.name)||!1})}),{selected:p,name:D.name}})}M("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),M("select",{type:"geoSelect",event:"geoselected"}),M("unSelect",{type:"geoUnSelect",event:"geounselected"})},72621:function(Y,V,n){var T=n(25344),L=n(3096),M=L.extendComponentView({type:"geo",init:function(w,C){var D=new T(C,!0);this._mapDraw=D,this.group.add(D.group)},render:function(w,C,D,S){if(!(S&&S.type==="geoToggleSelect"&&S.from===this.uid)){var p=this._mapDraw;w.get("show")?p.draw(w,C,D,this,S):this._mapDraw.group.removeAll(),this.group.silent=w.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});Y.exports=M},2090:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(90830),D=n(18993),S=n(7357),p=n(86957),v=p.parsePercent,t={path:null,compoundPath:null,group:D.Group,image:D.Image,text:D.Text};M.registerPreprocessor(function(f){var c=f.graphic;w.isArray(c)?!c[0]||!c[0].elements?f.graphic=[{elements:c}]:f.graphic=[f.graphic[0]]:c&&!c.elements&&(f.graphic=[{elements:[c]}])});var s=M.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(f){var c=this.option.elements;this.option.elements=null,s.superApply(this,"mergeOption",arguments),this.option.elements=c},optionUpdated:function(f,c){var d=this.option,A=(c?d:f).elements,x=d.elements=c?[]:d.elements,y=[];this._flatten(A,y);var g=C.mappingToExists(x,y);C.makeIdAndName(g);var m=this._elOptionsToUpdate=[];w.each(g,function(I,R){var E=I.option;E&&(m.push(E),o(I,E),r(x,R,E),l(x[R],E))},this);for(var b=x.length-1;b>=0;b--)x[b]==null?x.splice(b,1):delete x[b].$action},_flatten:function(f,c,d){w.each(f,function(A){if(A){d&&(A.parentOption=d),c.push(A);var x=A.children;A.type==="group"&&x&&this._flatten(x,c,A),delete A.children}},this)},useElOptionsToUpdate:function(){var f=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,f}});M.extendComponentView({type:"graphic",init:function(f,c){this._elMap=w.createHashMap(),this._lastGraphicModel},render:function(f,c,d){f!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=f,this._updateElements(f),this._relocate(f,d)},_updateElements:function(f){var c=f.useElOptionsToUpdate();if(c){var d=this._elMap,A=this.group;w.each(c,function(x){var y=x.$action,g=x.id,m=d.get(g),b=x.parentId,I=b!=null?d.get(b):A,R=x.style;x.type==="text"&&R&&(x.hv&&x.hv[1]&&(R.textVerticalAlign=R.textBaseline=null),!R.hasOwnProperty("textFill")&&R.fill&&(R.textFill=R.fill),!R.hasOwnProperty("textStroke")&&R.stroke&&(R.textStroke=R.stroke));var E=u(x);!y||y==="merge"?m?m.attr(E):i(g,I,E,d):y==="replace"?(a(m,d),i(g,I,E,d)):y==="remove"&&a(m,d);var P=d.get(g);P&&(P.__ecGraphicWidthOption=x.width,P.__ecGraphicHeightOption=x.height,h(P,f,x))})}},_relocate:function(f,c){for(var d=f.option.elements,A=this.group,x=this._elMap,y=c.getWidth(),g=c.getHeight(),m=0;m=0;m--){var b=d[m],I=x.get(b.id);if(I){var R=I.parent,P=R===A?{width:y,height:g}:{width:R.__ecGraphicWidth,height:R.__ecGraphicHeight};S.positionElement(I,b,P,null,{hv:b.hv,boundingMode:b.bounding})}}},_clear:function(){var f=this._elMap;f.each(function(c){a(c,f)}),this._elMap=w.createHashMap()},dispose:function(){this._clear()}});function i(f,c,d,A){var x=d.type,y=t.hasOwnProperty(x)?t[x]:D.getShapeClass(x),g=new y(d);c.add(g),A.set(f,g),g.__ecGraphicId=f}function a(f,c){var d=f&&f.parent;d&&(f.type==="group"&&f.traverse(function(A){a(A,c)}),c.removeKey(f.__ecGraphicId),d.remove(f))}function u(f){return f=w.extend({},f),w.each(["id","parentId","$action","hv","bounding"].concat(S.LOCATION_PARAMS),function(c){delete f[c]}),f}function e(f,c){var d;return w.each(c,function(A){f[A]!=null&&f[A]!=="auto"&&(d=!0)}),d}function o(f,c){var d=f.exist;if(c.id=f.keyInfo.id,!c.type&&d&&(c.type=d.type),c.parentId==null){var A=c.parentOption;A?c.parentId=A.id:d&&(c.parentId=d.parentId)}c.parentOption=null}function r(f,c,d){var A=w.extend({},d),x=f[c],y=d.$action||"merge";y==="merge"?x?(w.merge(x,A,!0),S.mergeLayoutParam(x,A,{ignoreSize:!0}),S.copyLayoutParams(d,x)):f[c]=A:y==="replace"?f[c]=A:y==="remove"&&x&&(f[c]=null)}function l(f,c){f&&(f.hv=c.hv=[e(c,["left","right"]),e(c,["top","bottom"])],f.type==="group"&&(f.width==null&&(f.width=c.width=0),f.height==null&&(f.height=c.height=0)))}function h(f,c,d){var A=f.eventData;!f.silent&&!f.ignore&&!A&&(A=f.eventData={componentType:"graphic",componentIndex:c.componentIndex,name:f.name}),A&&(A.info=f.info)}},25957:function(Y,V,n){n(47102),n(77318),n(84159)},47102:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993);n(40753),n(2849),T.extendComponentView({type:"grid",render:function(w,C){this.group.removeAll(),w.get("show")&&this.group.add(new M.Rect({shape:w.coordinateSystem.getRect(),style:L.defaults({fill:w.get("backgroundColor")},w.getItemStyle()),silent:!0,z2:-1}))}}),T.registerPreprocessor(function(w){w.xAxis&&w.yAxis&&!w.grid&&(w.grid={})})},7430:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(37283),C=n(18993),D=n(80255),S=n(82383),p=M.curry,v=M.each,t=M.map,s=Math.min,i=Math.max,a=Math.pow,u=1e4,e=6,o=6,r="globalPan",l={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},f={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},c=0;function d(et){w.call(this),this._zr=et,this.group=new C.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+c++,this._handlers={},v(yt,function(lt,ht){this._handlers[ht]=M.bind(lt,this)},this)}d.prototype={constructor:d,enableBrush:function(et){return this._brushType&&x(this),et.brushType&&A(this,et),this},setPanels:function(et){if(et&&et.length){var lt=this._panels={};M.each(et,function(ht){lt[ht.panelId]=M.clone(ht)})}else this._panels=null;return this},mount:function(et){et=et||{},this._enableGlobalPan=et.enableGlobalPan;var lt=this.group;return this._zr.add(lt),lt.attr({position:et.position||[0,0],rotation:et.rotation||0,scale:et.scale||[1,1]}),this._transform=lt.getLocalTransform(),this},eachCover:function(et,lt){v(this._covers,et,lt)},updateCovers:function(et){et=M.map(et,function(Bt){return M.merge(M.clone(f),Bt,!0)});var lt="\0-brush-index-",ht=this._covers,pt=this._covers=[],mt=this,ft=this._creatingCover;return new S(ht,et,Mt,xt).add(Pt).update(Pt).remove(Rt).execute(),this;function xt(Bt,Vt){return(Bt.id!=null?Bt.id:lt+Vt)+"-"+Bt.brushType}function Mt(Bt,Vt){return xt(Bt.__brushOption,Vt)}function Pt(Bt,Vt){var Gt=et[Bt];if(Vt!=null&&ht[Vt]===ft)pt[Bt]=ht[Vt];else{var Ft=pt[Bt]=Vt!=null?(ht[Vt].__brushOption=Gt,ht[Vt]):b(mt,m(mt,Gt));E(mt,Ft)}}function Rt(Bt){ht[Bt]!==ft&&mt.group.remove(ht[Bt])}},unmount:function(){return this.enableBrush(!1),_(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},M.mixin(d,w);function A(et,lt){var ht=et._zr;et._enableGlobalPan||D.take(ht,r,et._uid),y(ht,et._handlers),et._brushType=lt.brushType,et._brushOption=M.merge(M.clone(f),lt,!0)}function x(et){var lt=et._zr;D.release(lt,r,et._uid),g(lt,et._handlers),et._brushType=et._brushOption=null}function y(et,lt){v(lt,function(ht,pt){et.on(pt,ht)})}function g(et,lt){v(lt,function(ht,pt){et.off(pt,ht)})}function m(et,lt){var ht=gt[lt.brushType].createCover(et,lt);return ht.__brushOption=lt,R(ht,lt),et.group.add(ht),ht}function b(et,lt){var ht=P(lt);return ht.endCreating&&(ht.endCreating(et,lt),R(lt,lt.__brushOption)),lt}function I(et,lt){var ht=lt.__brushOption;P(lt).updateCoverShape(et,lt,ht.range,ht)}function R(et,lt){var ht=lt.z;ht==null&&(ht=u),et.traverse(function(pt){pt.z=ht,pt.z2=ht})}function E(et,lt){P(lt).updateCommon(et,lt),I(et,lt)}function P(et){return gt[et.__brushOption.brushType]}function O(et,lt,ht){var pt=et._panels;if(!pt)return!0;var mt,ft=et._transform;return v(pt,function(xt){xt.isTargetByCursor(lt,ht,ft)&&(mt=xt)}),mt}function N(et,lt){var ht=et._panels;if(!ht)return!0;var pt=lt.__brushOption.panelId;return pt!=null?ht[pt]:!0}function _(et){var lt=et._covers,ht=lt.length;return v(lt,function(pt){et.group.remove(pt)},et),lt.length=0,!!ht}function G(et,lt){var ht=t(et._covers,function(pt){var mt=pt.__brushOption,ft=M.clone(mt.range);return{brushType:mt.brushType,panelId:mt.panelId,range:ft}});et.trigger("brush",ht,{isEnd:!!lt.isEnd,removeOnClick:!!lt.removeOnClick})}function F(et){var lt=et._track;if(!lt.length)return!1;var ht=lt[lt.length-1],pt=lt[0],mt=ht[0]-pt[0],ft=ht[1]-pt[1],xt=a(mt*mt+ft*ft,.5);return xt>e}function W(et){var lt=et.length-1;return lt<0&&(lt=0),[et[0],et[lt]]}function U(et,lt,ht,pt){var mt=new C.Group;return mt.add(new C.Rect({name:"main",style:k(ht),silent:!0,draggable:!0,cursor:"move",drift:p(et,lt,mt,"nswe"),ondragend:p(G,lt,{isEnd:!0})})),v(pt,function(ft){mt.add(new C.Rect({name:ft,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:p(et,lt,mt,ft),ondragend:p(G,lt,{isEnd:!0})}))}),mt}function H(et,lt,ht,pt){var mt=pt.brushStyle.lineWidth||0,ft=i(mt,o),xt=ht[0][0],Mt=ht[1][0],Pt=xt-mt/2,Rt=Mt-mt/2,Bt=ht[0][1],Vt=ht[1][1],Gt=Bt-ft+mt/2,Ft=Vt-ft+mt/2,Kt=Bt-xt,Qt=Vt-Mt,_t=Kt+mt,Yt=Qt+mt;B(et,lt,"main",xt,Mt,Kt,Qt),pt.transformable&&(B(et,lt,"w",Pt,Rt,ft,Yt),B(et,lt,"e",Gt,Rt,ft,Yt),B(et,lt,"n",Pt,Rt,_t,ft),B(et,lt,"s",Pt,Ft,_t,ft),B(et,lt,"nw",Pt,Rt,ft,ft),B(et,lt,"ne",Gt,Rt,ft,ft),B(et,lt,"sw",Pt,Ft,ft,ft),B(et,lt,"se",Gt,Ft,ft,ft))}function z(et,lt){var ht=lt.__brushOption,pt=ht.transformable,mt=lt.childAt(0);mt.useStyle(k(ht)),mt.attr({silent:!pt,cursor:pt?"move":"default"}),v(["w","e","n","s","se","sw","ne","nw"],function(ft){var xt=lt.childOfName(ft),Mt=K(et,ft);xt&&xt.attr({silent:!pt,invisible:!pt,cursor:pt?h[Mt]+"-resize":null})})}function B(et,lt,ht,pt,mt,ft,xt){var Mt=lt.childOfName(ht);Mt&&Mt.setShape(rt(q(et,lt,[[pt,mt],[pt+ft,mt+xt]])))}function k(et){return M.defaults({strokeNoScale:!0},et.brushStyle)}function Z(et,lt,ht,pt){var mt=[s(et,ht),s(lt,pt)],ft=[i(et,ht),i(lt,pt)];return[[mt[0],ft[0]],[mt[1],ft[1]]]}function X(et){return C.getTransform(et.group)}function K(et,lt){if(lt.length>1){lt=lt.split("");var ht=[K(et,lt[0]),K(et,lt[1])];return(ht[0]==="e"||ht[0]==="w")&&ht.reverse(),ht.join("")}else{var pt={w:"left",e:"right",n:"top",s:"bottom"},mt={left:"w",right:"e",top:"n",bottom:"s"},ht=C.transformDirection(pt[lt],X(et));return mt[ht]}}function Q(et,lt,ht,pt,mt,ft,xt,Mt){var Pt=pt.__brushOption,Rt=et(Pt.range),Bt=tt(ht,ft,xt);v(mt.split(""),function(Vt){var Gt=l[Vt];Rt[Gt[0]][Gt[1]]+=Bt[Gt[0]]}),Pt.range=lt(Z(Rt[0][0],Rt[1][0],Rt[0][1],Rt[1][1])),E(ht,pt),G(ht,{isEnd:!1})}function J(et,lt,ht,pt,mt){var ft=lt.__brushOption.range,xt=tt(et,ht,pt);v(ft,function(Mt){Mt[0]+=xt[0],Mt[1]+=xt[1]}),E(et,lt),G(et,{isEnd:!1})}function tt(et,lt,ht){var pt=et.group,mt=pt.transformCoordToLocal(lt,ht),ft=pt.transformCoordToLocal(0,0);return[mt[0]-ft[0],mt[1]-ft[1]]}function q(et,lt,ht){var pt=N(et,lt);return pt&&pt!==!0?pt.clipPath(ht,et._transform):M.clone(ht)}function rt(et){var lt=s(et[0][0],et[1][0]),ht=s(et[0][1],et[1][1]),pt=i(et[0][0],et[1][0]),mt=i(et[0][1],et[1][1]);return{x:lt,y:ht,width:pt-lt,height:mt-ht}}function $(et,lt,ht){if(!(!et._brushType||ut(et,lt))){var pt=et._zr,mt=et._covers,ft=O(et,lt,ht);if(!et._dragging)for(var xt=0;xtpt.getWidth()||ht<0||ht>pt.getHeight()}var gt={lineX:Ct(0),lineY:Ct(1),rect:{createCover:function(et,lt){return U(p(Q,function(ht){return ht},function(ht){return ht}),et,lt,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(et){var lt=W(et);return Z(lt[1][0],lt[1][1],lt[0][0],lt[0][1])},updateCoverShape:function(et,lt,ht,pt){H(et,lt,ht,pt)},updateCommon:z,contain:st},polygon:{createCover:function(et,lt){var ht=new C.Group;return ht.add(new C.Polyline({name:"main",style:k(lt),silent:!0})),ht},getCreatingRange:function(et){return et},endCreating:function(et,lt){lt.remove(lt.childAt(0)),lt.add(new C.Polygon({name:"main",draggable:!0,drift:p(J,et,lt),ondragend:p(G,et,{isEnd:!0})}))},updateCoverShape:function(et,lt,ht,pt){lt.childAt(0).setShape({points:q(et,lt,ht)})},updateCommon:z,contain:st}};function Ct(et){return{createCover:function(lt,ht){return U(p(Q,function(pt){var mt=[pt,[0,100]];return et&&mt.reverse(),mt},function(pt){return pt[et]}),lt,ht,[["w","e"],["n","s"]][et])},getCreatingRange:function(lt){var ht=W(lt),pt=s(ht[0][et],ht[1][et]),mt=i(ht[0][et],ht[1][et]);return[pt,mt]},updateCoverShape:function(lt,ht,pt,mt){var ft,xt=N(lt,ht);if(xt!==!0&&xt.getLinearBrushOtherExtent)ft=xt.getLinearBrushOtherExtent(et,lt._transform);else{var Mt=lt._zr;ft=[0,[Mt.getWidth(),Mt.getHeight()][1-et]]}var Pt=[pt,ft];et&&Pt.reverse(),H(lt,ht,Pt,mt)},updateCommon:z,contain:st}}var bt=d;Y.exports=bt},98582:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(18993),C=n(90830),D=n(20691),S=M.each,p=M.indexOf,v=M.curry,t=["dataToPoint","pointToData"],s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function i(g,m,b){var I=this._targetInfoList=[],R={},E=e(m,g);S(o,function(P,O){(!b||!b.include||p(b.include,O)>=0)&&P(E,I,R)})}var a=i.prototype;a.setOutputRanges=function(g,m){this.matchOutputRanges(g,m,function(b,I,R){if((b.coordRanges||(b.coordRanges=[])).push(I),!b.coordRange){b.coordRange=I;var E=h[b.brushType](0,R,I);b.__rangeOffset={offset:c[b.brushType](E.values,b.range,[1,1]),xyMinMax:E.xyMinMax}}})},a.matchOutputRanges=function(g,m,b){S(g,function(I){var R=this.findTargetInfo(I,m);R&&R!==!0&&M.each(R.coordSyses,function(E){var P=h[I.brushType](1,E,I.range);b(I,P.values,E,m)})},this)},a.setInputRanges=function(g,m){S(g,function(b){var I=this.findTargetInfo(b,m);if(b.range=b.range||[],I&&I!==!0){b.panelId=I.panelId;var R=h[b.brushType](0,I.coordSys,b.coordRange),E=b.__rangeOffset;b.range=E?c[b.brushType](R.values,E.offset,A(R.xyMinMax,E.xyMinMax)):R.values}},this)},a.makePanelOpts=function(g,m){return M.map(this._targetInfoList,function(b){var I=b.getPanelRect();return{panelId:b.panelId,defaultBrushType:m&&m(b),clipPath:D.makeRectPanelClipPath(I),isTargetByCursor:D.makeRectIsTargetByCursor(I,g,b.coordSysModel),getLinearBrushOtherExtent:D.makeLinearBrushOtherExtent(I)}})},a.controlSeries=function(g,m,b){var I=this.findTargetInfo(g,b);return I===!0||I&&p(I.coordSyses,m.coordinateSystem)>=0},a.findTargetInfo=function(g,m){for(var b=this._targetInfoList,I=e(m,g),R=0;Rg[1]&&g.reverse(),g}function e(g,m){return C.parseFinder(g,m,{includeMainTypes:s})}var o={grid:function(g,m){var b=g.xAxisModels,I=g.yAxisModels,R=g.gridModels,E=M.createHashMap(),P={},O={};!b&&!I&&!R||(S(b,function(N){var _=N.axis.grid.model;E.set(_.id,_),P[_.id]=!0}),S(I,function(N){var _=N.axis.grid.model;E.set(_.id,_),O[_.id]=!0}),S(R,function(N){E.set(N.id,N),P[N.id]=!0,O[N.id]=!0}),E.each(function(N){var _=N.coordinateSystem,G=[];S(_.getCartesians(),function(F,W){(p(b,F.getAxis("x").model)>=0||p(I,F.getAxis("y").model)>=0)&&G.push(F)}),m.push({panelId:"grid--"+N.id,gridModel:N,coordSysModel:N,coordSys:G[0],coordSyses:G,getPanelRect:l.grid,xAxisDeclared:P[N.id],yAxisDeclared:O[N.id]})}))},geo:function(g,m){S(g.geoModels,function(b){var I=b.coordinateSystem;m.push({panelId:"geo--"+b.id,geoModel:b,coordSysModel:b,coordSys:I,coordSyses:[I],getPanelRect:l.geo})})}},r=[function(g,m){var b=g.xAxisModel,I=g.yAxisModel,R=g.gridModel;return!R&&b&&(R=b.axis.grid.model),!R&&I&&(R=I.axis.grid.model),R&&R===m.gridModel},function(g,m){var b=g.geoModel;return b&&b===m.geoModel}],l={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var g=this.coordSys,m=g.getBoundingRect().clone();return m.applyTransform(w.getTransform(g)),m}},h={lineX:v(f,0),lineY:v(f,1),rect:function(g,m,b){var I=m[t[g]]([b[0][0],b[1][0]]),R=m[t[g]]([b[0][1],b[1][1]]),E=[u([I[0],R[0]]),u([I[1],R[1]])];return{values:E,xyMinMax:E}},polygon:function(g,m,b){var I=[[1/0,-1/0],[1/0,-1/0]],R=M.map(b,function(E){var P=m[t[g]](E);return I[0][0]=Math.min(I[0][0],P[0]),I[1][0]=Math.min(I[1][0],P[1]),I[0][1]=Math.max(I[0][1],P[0]),I[1][1]=Math.max(I[1][1],P[1]),P});return{values:R,xyMinMax:I}}};function f(g,m,b,I){var R=b.getAxis(["x","y"][g]),E=u(M.map([0,1],function(O){return m?R.coordToData(R.toLocalCoord(I[O])):R.toGlobalCoord(R.dataToCoord(I[O]))})),P=[];return P[g]=E,P[1-g]=[NaN,NaN],{values:E,xyMinMax:P}}var c={lineX:v(d,0),lineY:v(d,1),rect:function(g,m,b){return[[g[0][0]-b[0]*m[0][0],g[0][1]-b[0]*m[0][1]],[g[1][0]-b[1]*m[1][0],g[1][1]-b[1]*m[1][1]]]},polygon:function(g,m,b){return M.map(g,function(I,R){return[I[0]-b[0]*m[R][0],I[1]-b[1]*m[R][1]]})}};function d(g,m,b,I){return[m[0]-I[g]*b[0],m[1]-I[g]*b[1]]}function A(g,m){var b=x(g),I=x(m),R=[b[0]/I[0],b[1]/I[1]];return isNaN(R[0])&&(R[0]=1),isNaN(R[1])&&(R[1]=1),R}function x(g){return g?[g[0][1]-g[0][0],g[1][1]-g[1][0]]:[NaN,NaN]}var y=i;Y.exports=y},25344:function(Y,V,n){var T=n(69008),L=n(38515),M=n(37419),w=n(18584),C=w.onIrrelevantElement,D=n(18993),S=n(11954),p=n(58744),v=p.getUID,t=n(74330);function s(o){var r=o.getItemStyle(),l=o.get("areaColor");return l!=null&&(r.fill=l),r}function i(o,r,l,h,f){l.off("click"),l.off("mousedown"),r.get("selectedMode")&&(l.on("mousedown",function(){o._mouseDownFlag=!0}),l.on("click",function(c){if(o._mouseDownFlag){o._mouseDownFlag=!1;for(var d=c.target;!d.__regions;)d=d.parent;if(d){var A={type:(r.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:T.map(d.__regions,function(x){return{name:x.name,from:f.uid}})};A[r.mainType+"Id"]=r.id,h.dispatchAction(A),a(r,l)}}}))}function a(o,r){r.eachChild(function(l){T.each(l.__regions,function(h){l.trigger(o.isSelected(h.name)?"emphasis":"normal")})})}function u(o,r){var l=new D.Group;this.uid=v("ec_map_draw"),this._controller=new L(o.getZr()),this._controllerHost={target:r?l:null},this.group=l,this._updateGroup=r,this._mouseDownFlag,this._mapName,this._initialized,l.add(this._regionsGroup=new D.Group),l.add(this._backgroundGroup=new D.Group)}u.prototype={constructor:u,draw:function(o,r,l,h,f){var c=o.mainType==="geo",d=o.getData&&o.getData();c&&r.eachComponent({mainType:"series",subType:"map"},function(W){!d&&W.getHostGeoModel()===o&&(d=W.getData())});var A=o.coordinateSystem;this._updateBackground(A);var x=this._regionsGroup,y=this.group,g=A.getTransformInfo(),m=!x.childAt(0)||f,b;if(m)y.transform=g.roamTransform,y.decomposeTransform(),y.dirty();else{var I=new t;I.transform=g.roamTransform,I.decomposeTransform();var R={scale:I.scale,position:I.position};b=I.scale,D.updateProps(y,R,o)}var E=g.rawScale,P=g.rawPosition;x.removeAll();var O=["itemStyle"],N=["emphasis","itemStyle"],_=["label"],G=["emphasis","label"],F=T.createHashMap();T.each(A.regions,function(W){var U=F.get(W.name)||F.set(W.name,new D.Group),H=new D.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});U.add(H);var z=o.getRegionModel(W.name)||o,B=z.getModel(O),k=z.getModel(N),Z=s(B),X=s(k),K=z.getModel(_),Q=z.getModel(G),J;if(d){J=d.indexOfName(W.name);var tt=d.getItemVisual(J,"color",!0);tt&&(Z.fill=tt)}var q=function(gt){return[gt[0]*E[0]+P[0],gt[1]*E[1]+P[1]]};T.each(W.geometries,function(gt){if(gt.type==="polygon"){for(var Ct=[],bt=0;bt=0)&&(vt=o);var yt=new D.Text({position:q(W.center.slice()),scale:[1/y.scale[0],1/y.scale[1]],z2:10,silent:!0});if(D.setLabelStyle(yt.style,yt.hoverStyle={},K,Q,{labelFetcher:vt,labelDataIndex:ot,defaultText:W.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!m){var it=[1/b[0],1/b[1]];D.updateProps(yt,{scale:it},o)}U.add(yt)}if(d)d.setItemGraphicEl(J,U);else{var z=o.getRegionModel(W.name);H.eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:W.name,region:z&&z.option||{}}}var ut=U.__regions||(U.__regions=[]);ut.push(W),U.highDownSilentOnTouch=!!o.get("selectedMode"),D.setHoverStyle(U,X),x.add(U)}),this._updateController(o,r,l),i(this,o,x,l,h),a(o,x)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&S.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(o){var r=o.map;this._mapName!==r&&T.each(S.makeGraphic(r,this.uid),function(l){this._backgroundGroup.add(l)},this),this._mapName=r},_updateController:function(o,r,l){var h=o.coordinateSystem,f=this._controller,c=this._controllerHost;c.zoomLimit=o.get("scaleLimit"),c.zoom=h.getZoom(),f.enable(o.get("roam")||!1);var d=o.mainType;function A(){var x={type:"geoRoam",componentType:d};return x[d+"Id"]=o.id,x}f.off("pan").on("pan",function(x){this._mouseDownFlag=!1,M.updateViewOnPan(c,x.dx,x.dy),l.dispatchAction(T.extend(A(),{dx:x.dx,dy:x.dy}))},this),f.off("zoom").on("zoom",function(x){if(this._mouseDownFlag=!1,M.updateViewOnZoom(c,x.scale,x.originX,x.originY),l.dispatchAction(T.extend(A(),{zoom:x.scale,originX:x.originX,originY:x.originY})),this._updateGroup){var y=this.group.scale;this._regionsGroup.traverse(function(g){g.type==="text"&&g.attr("scale",[1/y[0],1/y[1]])})}},this),f.setPointerChecker(function(x,y,g){return h.getViewRectAfterRoam().contain(y,g)&&!C(x,l,o)})}};var e=u;Y.exports=e},38515:function(Y,V,n){var T=n(69008),L=n(37283),M=n(92462),w=n(80255);function C(e){this.pointerChecker,this._zr=e,this._opt={};var o=T.bind,r=o(D,this),l=o(S,this),h=o(p,this),f=o(v,this),c=o(t,this);L.call(this),this.setPointerChecker=function(d){this.pointerChecker=d},this.enable=function(d,A){this.disable(),this._opt=T.defaults(T.clone(A)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),d==null&&(d=!0),(d===!0||d==="move"||d==="pan")&&(e.on("mousedown",r),e.on("mousemove",l),e.on("mouseup",h)),(d===!0||d==="scale"||d==="zoom")&&(e.on("mousewheel",f),e.on("pinch",c))},this.disable=function(){e.off("mousedown",r),e.off("mousemove",l),e.off("mouseup",h),e.off("mousewheel",f),e.off("pinch",c)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}T.mixin(C,L);function D(e){if(!(M.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var o=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,o,r)&&(this._x=o,this._y=r,this._dragging=!0)}}function S(e){if(!(!this._dragging||!a("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||w.isTaken(this._zr,"globalPan"))){var o=e.offsetX,r=e.offsetY,l=this._x,h=this._y,f=o-l,c=r-h;this._x=o,this._y=r,this._opt.preventDefaultMouseMove&&M.stop(e.event),i(this,"pan","moveOnMouseMove",e,{dx:f,dy:c,oldX:l,oldY:h,newX:o,newY:r})}}function p(e){M.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function v(e){var o=a("zoomOnMouseWheel",e,this._opt),r=a("moveOnMouseWheel",e,this._opt),l=e.wheelDelta,h=Math.abs(l),f=e.offsetX,c=e.offsetY;if(!(l===0||!o&&!r)){if(o){var d=h>3?1.4:h>1?1.2:1.1,A=l>0?d:1/d;s(this,"zoom","zoomOnMouseWheel",e,{scale:A,originX:f,originY:c})}if(r){var x=Math.abs(l),y=(l>0?1:-1)*(x>3?.4:x>1?.15:.05);s(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:y,originX:f,originY:c})}}}function t(e){if(!w.isTaken(this._zr,"globalPan")){var o=e.pinchScale>1?1.1:1/1.1;s(this,"zoom",null,e,{scale:o,originX:e.pinchX,originY:e.pinchY})}}function s(e,o,r,l,h){e.pointerChecker&&e.pointerChecker(l,h.originX,h.originY)&&(M.stop(l.event),i(e,o,r,l,h))}function i(e,o,r,l,h){h.isAvailableBehavior=T.bind(a,null,r,l),e.trigger(o,h)}function a(e,o,r){var l=r[e];return!e||l&&(!T.isString(l)||o.event[l+"Key"])}var u=C;Y.exports=u},20691:function(Y,V,n){var T=n(9806),L=n(18584),M=L.onIrrelevantElement,w=n(18993);function C(v){return v=p(v),function(t,s){return w.clipPointsByRect(t,v)}}function D(v,t){return v=p(v),function(s){var i=t!=null?t:s,a=i?v.width:v.height,u=i?v.x:v.y;return[u,u+(a||0)]}}function S(v,t,s){return v=p(v),function(i,a,u){return v.contain(a[0],a[1])&&!M(i,t,s)}}function p(v){return T.create(v)}V.makeRectPanelClipPath=C,V.makeLinearBrushOtherExtent=D,V.makeRectIsTargetByCursor=S},18584:function(Y,V){var n={axisPointer:1,tooltip:1,brush:1};function T(L,M,w){var C=M.getComponentByElement(L.topTarget),D=C&&C.coordinateSystem;return C&&C!==w&&!n[C.mainType]&&D&&D.model!==w}V.onIrrelevantElement=T},80255:function(Y,V,n){var T=n(3096),L="\0_ec_interaction_mutex";function M(S,p,v){var t=D(S);t[p]=v}function w(S,p,v){var t=D(S),s=t[p];s===v&&(t[p]=null)}function C(S,p){return!!D(S)[p]}function D(S){return S[L]||(S[L]={})}T.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),V.take=M,V.release=w,V.isTaken=C},98449:function(Y,V,n){var T=n(7357),L=T.getLayoutRect,M=T.box,w=T.positionElement,C=n(17010),D=n(18993);function S(v,t,s){var i=t.getBoxLayoutParams(),a=t.get("padding"),u={width:s.getWidth(),height:s.getHeight()},e=L(i,u,a);M(t.get("orient"),v,t.get("itemGap"),e.width,e.height),w(v,i,u,a)}function p(a,t){var s=C.normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var a=new D.Rect({shape:{x:a.x-s[3],y:a.y-s[0],width:a.width+s[1]+s[3],height:a.height+s[0]+s[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return a}V.layout=S,V.makeBackground=p},37419:function(Y,V){function n(L,M,w){var C=L.target,D=C.position;D[0]+=M,D[1]+=w,C.dirty()}function T(L,M,w,C){var D=L.target,S=L.zoomLimit,p=D.position,v=D.scale,t=L.zoom=L.zoom||1;if(t*=M,S){var s=S.min||0,i=S.max||1/0;t=Math.max(Math.min(i,t),s)}var a=t/L.zoom;L.zoom=t,p[0]-=(w-p[0])*(a-1),p[1]-=(C-p[1])*(a-1),v[0]*=a,v[1]*=a,D.dirty()}V.updateViewOnPan=n,V.updateViewOnZoom=T},78240:function(Y,V,n){var T=n(69008),L={updateSelectedMap:function(M){this._targetList=T.isArray(M)?M.slice():[],this._selectTargetMap=T.reduce(M||[],function(w,C){return w.set(C.name,C),w},T.createHashMap())},select:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M),D=this.get("selectedMode");D==="single"&&this._selectTargetMap.each(function(S){S.selected=!1}),C&&(C.selected=!0)},unSelect:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M);C&&(C.selected=!1)},toggleSelected:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M);if(C!=null)return this[C.selected?"unSelect":"select"](M,w),C.selected},isSelected:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M);return C&&C.selected}};Y.exports=L},98810:function(Y){function V(L,M,w,C,D,S){L=L||0;var p=w[1]-w[0];if(D!=null&&(D=T(D,[0,p])),S!=null&&(S=Math.max(S,D!=null?D:0)),C==="all"){var v=Math.abs(M[1]-M[0]);v=T(v,[0,p]),D=S=T(v,[D,S]),C=0}M[0]=T(M[0],w),M[1]=T(M[1],w);var t=n(M,C);M[C]+=L;var s=D||0,i=w.slice();t.sign<0?i[0]+=s:i[1]-=s,M[C]=T(M[C],i);var a=n(M,C);D!=null&&(a.sign!==t.sign||a.spanS&&(M[1-C]=M[C]+a.sign*S),M}function n(L,M){var w=L[M]-L[1-M];return{span:Math.abs(w),sign:w>0?-1:w<0?1:M?-1:1}}function T(L,M){return Math.min(M[1]!=null?M[1]:1/0,Math.max(M[0]!=null?M[0]:-1/0,L))}Y.exports=V},32314:function(Y,V,n){var T=n(3096);n(80194),n(73120),n(71298);var L=n(19214),M=n(16172);T.registerProcessor(T.PRIORITY.PROCESSOR.SERIES_FILTER,L),M.registerSubTypeDefaulter("legend",function(){return"plain"})},80194:function(Y,V,n){var T=n(3096),L=n(69008),M=n(24040),w=n(90830),C=w.isNameSpecified,D=n(73315),S=D.legend.selector,p={all:{type:"all",title:L.clone(S.all)},inverse:{type:"inverse",title:L.clone(S.inverse)}},v=T.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(s,i,a){this.mergeDefaultAndTheme(s,a),s.selected=s.selected||{},this._updateSelector(s)},mergeOption:function(s){v.superCall(this,"mergeOption",s),this._updateSelector(s)},_updateSelector:function(s){var i=s.selector;i===!0&&(i=s.selector=["all","inverse"]),L.isArray(i)&&L.each(i,function(a,u){L.isString(a)&&(a={type:a}),i[u]=L.merge(a,p[a.type])})},optionUpdated:function(){this._updateData(this.ecModel);var s=this._data;if(s[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),t=v;Y.exports=t},71298:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(22868),D=C.createSymbol,S=n(18993),p=n(98449),v=p.makeBackground,t=n(7357),s=w.curry,i=w.each,a=S.Group,u=M.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new a),this._backgroundEl,this.group.add(this._selectorGroup=new a),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(h,f,c){var d=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!h.get("show",!0)){var A=h.get("align"),x=h.get("orient");(!A||A==="auto")&&(A=h.get("left")==="right"&&x==="vertical"?"right":"left");var y=h.get("selector",!0),g=h.get("selectorPosition",!0);y&&(!g||g==="auto")&&(g=x==="horizontal"?"end":"start"),this.renderInner(A,h,f,c,y,x,g);var m=h.getBoxLayoutParams(),b={width:c.getWidth(),height:c.getHeight()},I=h.get("padding"),R=t.getLayoutRect(m,b,I),E=this.layoutInner(h,A,R,d,y,g),P=t.getLayoutRect(w.defaults({width:E.width,height:E.height},m),b,I);this.group.attr("position",[P.x-E.x,P.y-E.y]),this.group.add(this._backgroundEl=v(E,h))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(h,f,c,d,A,x,y){var g=this.getContentGroup(),m=w.createHashMap(),b=f.get("selectedMode"),I=[];c.eachRawSeries(function(R){!R.get("legendHoverLink")&&I.push(R.id)}),i(f.getData(),function(R,E){var P=R.get("name");if(!this.newlineDisabled&&(P===""||P===` `)){g.add(new a({newline:!0}));return}var O=c.getSeriesByName(P)[0];if(!m.get(P))if(O){var N=O.getData(),_=N.getVisual("color"),G=N.getVisual("borderColor");typeof _=="function"&&(_=_(O.getDataParams(0))),typeof G=="function"&&(G=G(O.getDataParams(0)));var F=N.getVisual("legendSymbol")||"roundRect",W=N.getVisual("symbol"),U=this._createItem(P,E,R,f,F,W,h,_,G,b);U.on("click",s(o,P,null,d,I)).on("mouseover",s(r,O.name,null,d,I)).on("mouseout",s(l,O.name,null,d,I)),m.set(P,!0)}else c.eachRawSeries(function(H){if(!m.get(P)&&H.legendVisualProvider){var z=H.legendVisualProvider;if(!z.containName(P))return;var B=z.indexOfName(P),k=z.getItemVisual(B,"color"),Z=z.getItemVisual(B,"borderColor"),X="roundRect",K=this._createItem(P,E,R,f,X,null,h,k,Z,b);K.on("click",s(o,null,P,d,I)).on("mouseover",s(r,null,P,d,I)).on("mouseout",s(l,null,P,d,I)),m.set(P,!0)}},this)},this),A&&this._createSelector(A,f,d,x,y)},_createSelector:function(h,f,c,d,A){var x=this.getSelectorGroup();i(h,function(g){y(g)});function y(g){var m=g.type,b=new S.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){c.dispatchAction({type:m==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(b);var I=f.getModel("selectorLabel"),R=f.getModel("emphasis.selectorLabel");S.setLabelStyle(b.style,b.hoverStyle={},I,R,{defaultText:g.title,isRectText:!1}),S.setHoverStyle(b)}},_createItem:function(h,f,c,d,A,x,y,g,m,b){var I=d.get("itemWidth"),R=d.get("itemHeight"),E=d.get("inactiveColor"),P=d.get("inactiveBorderColor"),O=d.get("symbolKeepAspect"),N=d.getModel("itemStyle"),_=d.isSelected(h),G=new a,F=c.getModel("textStyle"),W=c.get("icon"),U=c.getModel("tooltip"),H=U.parentModel;A=W||A;var z=D(A,0,0,I,R,_?g:E,O==null?!0:O);if(G.add(e(z,A,N,m,P,_)),!W&&x&&(x!==A||x==="none")){var B=R*.8;x==="none"&&(x="circle");var k=D(x,(I-B)/2,(R-B)/2,B,B,_?g:E,O==null?!0:O);G.add(e(k,x,N,m,P,_))}var Z=y==="left"?I+5:-5,X=y,K=d.get("formatter"),Q=h;typeof K=="string"&&K?Q=K.replace("{name}",h!=null?h:""):typeof K=="function"&&(Q=K(h)),G.add(new S.Text({style:S.setTextStyle({},F,{text:Q,x:Z,y:R/2,textFill:_?F.getTextColor():E,textAlign:X,textVerticalAlign:"middle"})}));var J=new S.Rect({shape:G.getBoundingRect(),invisible:!0,tooltip:U.get("show")?w.extend({content:h,formatter:H.get("formatter",!0)||function(){return h},formatterParams:{componentType:"legend",legendIndex:d.componentIndex,name:h,$vars:["name"]}},U.option):null});return G.add(J),G.eachChild(function(tt){tt.silent=!0}),J.silent=!b,this.getContentGroup().add(G),S.setHoverStyle(G),G.__legendDataIndex=f,G},layoutInner:function(h,f,c,d,A,x){var y=this.getContentGroup(),g=this.getSelectorGroup();t.box(h.get("orient"),y,h.get("itemGap"),c.width,c.height);var m=y.getBoundingRect(),b=[-m.x,-m.y];if(A){t.box("horizontal",g,h.get("selectorItemGap",!0));var I=g.getBoundingRect(),R=[-I.x,-I.y],E=h.get("selectorButtonGap",!0),P=h.getOrient().index,O=P===0?"width":"height",N=P===0?"height":"width",_=P===0?"y":"x";x==="end"?R[P]+=m[O]+E:b[P]+=I[O]+E,R[1-P]+=m[N]/2-I[N]/2,g.attr("position",R),y.attr("position",b);var G={x:0,y:0};return G[O]=m[O]+E+I[O],G[N]=Math.max(m[N],I[N]),G[_]=Math.min(0,I[_]+R[1-P]),G}else return y.attr("position",b),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function e(h,f,c,d,A,x){var y;return f!=="line"&&f.indexOf("empty")<0?(y=c.getItemStyle(),h.style.stroke=d,x||(y.stroke=A)):y=c.getItemStyle(["borderWidth","borderColor"]),h.setStyle(y)}function o(h,f,c,d){l(h,f,c,d),c.dispatchAction({type:"legendToggleSelect",name:h!=null?h:f}),r(h,f,c,d)}function r(h,f,c,d){var A=c.getZr().storage.getDisplayList()[0];A&&A.useHoverLayer||c.dispatchAction({type:"highlight",seriesName:h,name:f,excludeSeriesId:d})}function l(h,f,c,d){var A=c.getZr().storage.getDisplayList()[0];A&&A.useHoverLayer||c.dispatchAction({type:"downplay",seriesName:h,name:f,excludeSeriesId:d})}Y.exports=u},54601:function(Y,V,n){var T=n(80194),L=n(7357),M=L.mergeLayoutParam,w=L.getLayoutParams,C=T.extend({type:"legend.scroll",setScrollDataIndex:function(p){this.option.scrollDataIndex=p},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(p,v,t,s){var i=w(p);C.superCall(this,"init",p,v,t,s),D(this,p,i)},mergeOption:function(p,v){C.superCall(this,"mergeOption",p,v),D(this,this.option,p)}});function D(p,v,t){var s=p.getOrient(),i=[1,1];i[s.index]=0,M(v,t,{type:"box",ignoreSize:i})}var S=C;Y.exports=S},3382:function(Y,V,n){var T=n(69008),L=n(18993),M=n(7357),w=n(71298),C=L.Group,D=["width","height"],S=["x","y"],p=w.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){p.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new C),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new C),this._showController},resetInner:function(){p.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,s,i,a,u,e,o){var r=this;p.superCall(this,"renderInner",t,s,i,a,u,e,o);var l=this._controllerGroup,h=s.get("pageIconSize",!0);T.isArray(h)||(h=[h,h]),c("pagePrev",0);var f=s.getModel("pageTextStyle");l.add(new L.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),c("pageNext",1);function c(d,A){var x=d+"DataIndex",y=L.createIcon(s.get("pageIcons",!0)[s.getOrient().name][A],{onclick:T.bind(r._pageGo,r,x,s,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=d,l.add(y)}},layoutInner:function(t,s,i,a,u,e){var o=this.getSelectorGroup(),r=t.getOrient().index,l=D[r],h=S[r],f=D[1-r],c=S[1-r];u&&M.box("horizontal",o,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),A=o.getBoundingRect(),x=[-A.x,-A.y],y=T.clone(i);u&&(y[l]=i[l]-A[l]-d);var g=this._layoutContentAndController(t,a,y,r,l,f,c);if(u){if(e==="end")x[r]+=g[l]+d;else{var m=A[l]+d;x[r]-=m,g[h]-=m}g[l]+=A[l]+d,x[1-r]+=g[c]+g[f]/2-A[f]/2,g[f]=Math.max(g[f],A[f]),g[c]=Math.min(g[c],A[c]+x[1-r]),o.attr("position",x)}return g},_layoutContentAndController:function(t,s,i,a,u,e,o){var r=this.getContentGroup(),l=this._containerGroup,h=this._controllerGroup;M.box(t.get("orient"),r,t.get("itemGap"),a?i.width:null,a?null:i.height),M.box("horizontal",h,t.get("pageButtonItemGap",!0));var f=r.getBoundingRect(),c=h.getBoundingRect(),d=this._showController=f[u]>i[u],A=[-f.x,-f.y];s||(A[a]=r.position[a]);var x=[0,0],y=[-c.x,-c.y],g=T.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);m==="end"?y[a]+=i[u]-c[u]:x[a]+=c[u]+g}y[1-a]+=f[e]/2-c[e]/2,r.attr("position",A),l.attr("position",x),h.attr("position",y);var b={x:0,y:0};if(b[u]=d?i[u]:f[u],b[e]=Math.max(f[e],c[e]),b[o]=Math.min(0,c[o]+y[1-a]),l.__rectSize=i[u],d){var I={x:0,y:0};I[u]=Math.max(i[u]-c[u]-g,0),I[e]=b[e],l.setClipPath(new L.Rect({shape:I})),l.__rectSize=I[u]}else h.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var R=this._getPageInfo(t);return R.pageIndex!=null&&L.updateProps(r,{position:R.contentPosition},d?t:!1),this._updatePageInfoView(t,R),b},_pageGo:function(t,s,i){var a=this._getPageInfo(s)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:s.id})},_updatePageInfoView:function(t,s){var i=this._controllerGroup;T.each(["pagePrev","pageNext"],function(l){var h=s[l+"DataIndex"]!=null,f=i.childOfName(l);f&&(f.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),f.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),u=t.get("pageFormatter"),e=s.pageIndex,o=e!=null?e+1:0,r=s.pageCount;a&&u&&a.setStyle("text",T.isString(u)?u.replace("{current}",o).replace("{total}",r):u({current:o,total:r}))},_getPageInfo:function(t){var s=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,u=t.getOrient().index,e=D[u],o=S[u],r=this._findTargetItemIndex(s),l=i.children(),h=l[r],f=l.length,c=f?1:0,d={contentPosition:i.position.slice(),pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var A=b(h);d.contentPosition[u]=-A.s;for(var x=r+1,y=A,g=A,m=null;x<=f;++x)m=b(l[x]),(!m&&g.e>y.s+a||m&&!I(m,y.s))&&(g.i>y.i?y=g:y=m,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),g=m;for(var x=r-1,y=A,g=A,m=null;x>=-1;--x)m=b(l[x]),(!m||!I(g,m.s))&&y.i=E&&R.s<=E+a}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var s,i=this.getContentGroup(),a;return i.eachChild(function(u,e){var o=u.__legendDataIndex;a==null&&o!=null&&(a=e),o===t&&(s=e)}),s!=null?s:a}}),v=p;Y.exports=v},73120:function(Y,V,n){var T=n(3096),L=n(69008);function M(w,C,D){var S={},p=w==="toggleSelected",v;return D.eachComponent("legend",function(t){p&&v!=null?t[v?"select":"unSelect"](C.name):w==="allSelect"||w==="inverseSelect"?t[w]():(t[w](C.name),v=t.isSelected(C.name));var s=t.getData();L.each(s,function(i){var a=i.get("name");if(!(a===` `||a==="")){var u=t.isSelected(a);S.hasOwnProperty(a)?S[a]=S[a]&&u:S[a]=u}})}),w==="allSelect"||w==="inverseSelect"?{selected:S}:{name:C.name,selected:S}}T.registerAction("legendToggleSelect","legendselectchanged",L.curry(M,"toggleSelected")),T.registerAction("legendAllSelect","legendselectall",L.curry(M,"allSelect")),T.registerAction("legendInverseSelect","legendinverseselect",L.curry(M,"inverseSelect")),T.registerAction("legendSelect","legendselected",L.curry(M,"select")),T.registerAction("legendUnSelect","legendunselected",L.curry(M,"unSelect"))},19214:function(Y){function V(n){var T=n.findComponents({mainType:"legend"});T&&T.length&&n.filterSeries(function(L){for(var M=0;M=0&&typeof A=="number"&&(A=+A.toFixed(Math.min(R,20))),b.coord[g]=I.coord[g]=A,h=[b,I,{type:c,valueIndex:h.valueIndex,value:A}]}return h=[w.dataTransform(o,h[0]),w.dataTransform(o,h[1]),T.extend({},h[2])],h[2].type=h[2].type||"",T.merge(h[2],h[0]),T.merge(h[2],h[1]),h};function t(o){return!isNaN(o)&&!isFinite(o)}function s(o,r,l,h){var f=1-o,c=h.dimensions[o];return t(r[f])&&t(l[f])&&r[o]===l[o]&&h.getAxis(c).containData(r[o])}function i(o,r){if(o.type==="cartesian2d"){var l=r[0].coord,h=r[1].coord;if(l&&h&&(s(1,l,h,o)||s(0,l,h,o)))return!0}return w.dataFilter(o,r[0])&&w.dataFilter(o,r[1])}function a(o,r,l,h,f){var c=h.coordinateSystem,d=o.getItemModel(r),A,x=M.parsePercent(d.get("x"),f.getWidth()),y=M.parsePercent(d.get("y"),f.getHeight());if(!isNaN(x)&&!isNaN(y))A=[x,y];else{if(h.getMarkerPosition)A=h.getMarkerPosition(o.getValues(o.dimensions,r));else{var g=c.dimensions,m=o.get(g[0],r),b=o.get(g[1],r);A=c.dataToPoint([m,b])}if(c.type==="cartesian2d"){var I=c.getAxis("x"),R=c.getAxis("y"),g=c.dimensions;t(o.get(g[0],r))?A[0]=I.toGlobalCoord(I.getExtent()[l?0:1]):t(o.get(g[1],r))&&(A[1]=R.toGlobalCoord(R.getExtent()[l?0:1]))}isNaN(x)||(A[0]=x),isNaN(y)||(A[1]=y)}o.setItemLayout(r,A)}var u=D.extend({type:"markLine",updateTransform:function(o,r,l){r.eachSeries(function(h){var f=h.markLineModel;if(f){var c=f.getData(),d=f.__from,A=f.__to;d.each(function(x){a(d,x,!0,h,l),a(A,x,!1,h,l)}),c.each(function(x){c.setItemLayout(x,[d.getItemLayout(x),A.getItemLayout(x)])}),this.markerGroupMap.get(h.id).updateLayout()}},this)},renderSeries:function(o,r,l,h){var f=o.coordinateSystem,c=o.id,d=o.getData(),A=this.markerGroupMap,x=A.get(c)||A.set(c,new C);this.group.add(x.group);var y=e(f,o,r),g=y.from,m=y.to,b=y.line;r.__from=g,r.__to=m,r.setData(b);var I=r.get("symbol"),R=r.get("symbolSize");T.isArray(I)||(I=[I,I]),typeof R=="number"&&(R=[R,R]),y.from.each(function(P){E(g,P,!0),E(m,P,!1)}),b.each(function(P){var O=b.getItemModel(P).get("lineStyle.color");b.setItemVisual(P,{color:O||g.getItemVisual(P,"color")}),b.setItemLayout(P,[g.getItemLayout(P),m.getItemLayout(P)]),b.setItemVisual(P,{fromSymbolSize:g.getItemVisual(P,"symbolSize"),fromSymbol:g.getItemVisual(P,"symbol"),toSymbolSize:m.getItemVisual(P,"symbolSize"),toSymbol:m.getItemVisual(P,"symbol")})}),x.updateData(b),y.line.eachItemGraphicEl(function(P,O){P.traverse(function(N){N.dataModel=r})});function E(P,O,N){var _=P.getItemModel(O);a(P,O,N,o,h),P.setItemVisual(O,{symbolSize:_.get("symbolSize")||R[N?0:1],symbol:_.get("symbol",!0)||I[N?0:1],color:_.get("itemStyle.color")||d.getVisual("color")})}x.__keep=!0,x.group.silent=r.get("silent")||o.get("silent")}});function e(o,r,l){var h;o?h=T.map(o&&o.dimensions,function(y){var g=r.getData().getDimensionInfo(r.getData().mapDimension(y))||{};return T.defaults({name:y},g)}):h=[{name:"value",type:"float"}];var f=new L(h,l),c=new L(h,l),d=new L([],l),A=T.map(l.get("data"),T.curry(v,r,o,l));o&&(A=T.filter(A,T.curry(i,o)));var x=o?w.dimValueGetter:function(y){return y.value};return f.initData(T.map(A,function(y){return y[0]}),null,x),c.initData(T.map(A,function(y){return y[1]}),null,x),d.initData(T.map(A,function(y){return y[2]})),d.hasItemOption=!0,{from:f,to:c,line:d}}Y.exports=u},81102:function(Y,V,n){var T=n(56079),L=T.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});Y.exports=L},14297:function(Y,V,n){var T=n(69008),L=n(38346),M=n(86957),w=n(39177),C=n(77783),D=n(24513);function S(t,s,i){var a=s.coordinateSystem;t.each(function(u){var e=t.getItemModel(u),o,r=M.parsePercent(e.get("x"),i.getWidth()),l=M.parsePercent(e.get("y"),i.getHeight());if(!isNaN(r)&&!isNaN(l))o=[r,l];else if(s.getMarkerPosition)o=s.getMarkerPosition(t.getValues(t.dimensions,u));else if(a){var h=t.get(a.dimensions[0],u),f=t.get(a.dimensions[1],u);o=a.dataToPoint([h,f])}isNaN(r)||(o[0]=r),isNaN(l)||(o[1]=l),t.setItemLayout(u,o)})}var p=D.extend({type:"markPoint",updateTransform:function(t,s,i){s.eachSeries(function(a){var u=a.markPointModel;u&&(S(u.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout(u))},this)},renderSeries:function(t,s,i,a){var u=t.coordinateSystem,e=t.id,o=t.getData(),r=this.markerGroupMap,l=r.get(e)||r.set(e,new L),h=v(u,t,s);s.setData(h),S(s.getData(),t,a),h.each(function(f){var c=h.getItemModel(f),d=c.getShallow("symbol"),A=c.getShallow("symbolSize"),x=T.isFunction(d),y=T.isFunction(A);if(x||y){var g=s.getRawValue(f),m=s.getDataParams(f);x&&(d=d(g,m)),y&&(A=A(g,m))}h.setItemVisual(f,{symbol:d,symbolSize:A,color:c.get("itemStyle.color")||o.getVisual("color")})}),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl(function(f){f.traverse(function(c){c.dataModel=s})}),l.__keep=!0,l.group.silent=s.get("silent")||t.get("silent")}});function v(t,s,i){var a;t?a=T.map(t&&t.dimensions,function(o){var r=s.getData().getDimensionInfo(s.getData().mapDimension(o))||{};return T.defaults({name:o},r)}):a=[{name:"value",type:"float"}];var u=new w(a,i),e=T.map(i.get("data"),T.curry(C.dataTransform,s));return t&&(e=T.filter(e,T.curry(C.dataFilter,t))),u.initData(e,null,t?C.dimValueGetter:function(o){return o.value}),u}Y.exports=p},56079:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(12973),D=n(90830),S=n(17010),p=n(64530),v=S.addCommas,t=S.encodeHTML;function s(u){D.defaultEmphasis(u,"label",["show"])}var i=M.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(u,e,o){this.mergeDefaultAndTheme(u,o),this._mergeOption(u,o,!1,!0)},isAnimationEnabled:function(){if(C.node)return!1;var u=this.__hostSeries;return this.getShallow("animation")&&u&&u.isAnimationEnabled()},mergeOption:function(u,e){this._mergeOption(u,e,!1,!1)},_mergeOption:function(u,e,o,r){var l=this.constructor,h=this.mainType+"Model";o||e.eachSeries(function(f){var c=f.get(this.mainType,!0),d=f[h];if(!c||!c.data){f[h]=null;return}d?d._mergeOption(c,e,!0):(r&&s(c),w.each(c.data,function(A){A instanceof Array?(s(A[0]),s(A[1])):s(A)}),d=new l(c,this,e),w.extend(d,{mainType:this.mainType,seriesIndex:f.seriesIndex,name:f.name,createdBySelf:!0}),d.__hostSeries=f),f[h]=d},this)},formatTooltip:function(u){var e=this.getData(),o=this.getRawValue(u),r=w.isArray(o)?w.map(o,v).join(", "):v(o),l=e.getName(u),h=t(this.name);return(o!=null||l)&&(h+="
"),l&&(h+=t(l),o!=null&&(h+=" : ")),o!=null&&(h+=t(r)),h},getData:function(){return this._data},setData:function(u){this._data=u}});w.mixin(i,p);var a=i;Y.exports=a},24513:function(Y,V,n){var T=n(3096),L=n(69008),M=T.extendComponentView({type:"marker",init:function(){this.markerGroupMap=L.createHashMap()},render:function(w,C,D){var S=this.markerGroupMap;S.each(function(v){v.__keep=!1});var p=this.type+"Model";C.eachSeries(function(v){var t=v[p];t&&this.renderSeries(v,t,C,D)},this),S.each(function(v){!v.__keep&&this.group.remove(v.group)},this)},renderSeries:function(){}});Y.exports=M},77783:function(Y,V,n){var T=n(69008),L=n(86957),M=n(22240),w=M.isDimensionStacked,C=T.indexOf;function D(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function S(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function p(r,l,h,f,c,d){var A=[],x=w(l,f),y=x?l.getCalculationInfo("stackResultDimension"):f,g=o(l,y,r),m=l.indicesOfNearest(y,g)[0];A[c]=l.get(h,m),A[d]=l.get(y,m);var b=l.get(f,m),I=L.getPrecision(l.get(f,m));return I=Math.min(I,20),I>=0&&(A[d]=+A[d].toFixed(I)),[A,b]}var v=T.curry,t={min:v(p,"min"),max:v(p,"max"),average:v(p,"average")};function s(r,l){var h=r.getData(),f=r.coordinateSystem;if(l&&!S(l)&&!T.isArray(l.coord)&&f){var c=f.dimensions,d=i(l,h,f,r);if(l=T.clone(l),l.type&&t[l.type]&&d.baseAxis&&d.valueAxis){var A=C(c,d.baseAxis.dim),x=C(c,d.valueAxis.dim),y=t[l.type](h,d.baseDataDim,d.valueDataDim,A,x);l.coord=y[0],l.value=y[1]}else{for(var g=[l.xAxis!=null?l.xAxis:l.radiusAxis,l.yAxis!=null?l.yAxis:l.angleAxis],m=0;m<2;m++)t[g[m]]&&(g[m]=o(h,h.mapDimension(c[m]),g[m]));l.coord=g}}return l}function i(r,l,h,f){var c={};return r.valueIndex!=null||r.valueDim!=null?(c.valueDataDim=r.valueIndex!=null?l.getDimension(r.valueIndex):r.valueDim,c.valueAxis=h.getAxis(a(f,c.valueDataDim)),c.baseAxis=h.getOtherAxis(c.valueAxis),c.baseDataDim=l.mapDimension(c.baseAxis.dim)):(c.baseAxis=f.getBaseAxis(),c.valueAxis=h.getOtherAxis(c.baseAxis),c.baseDataDim=l.mapDimension(c.baseAxis.dim),c.valueDataDim=l.mapDimension(c.valueAxis.dim)),c}function a(r,l){var h=r.getData(),f=h.dimensions;l=h.getDimension(l);for(var c=0;cC)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([p.offsetX,p.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(p){if(!(this._mouseDownPoint||!S(this,"mousemove"))){var v=this._model,t=v.coordinateSystem.getSlidedAxisExpandWindow([p.offsetX,p.offsetY]),s=t.behavior;s==="jump"&&this._throttledDispatchExpand.debounceNextCall(v.get("axisExpandDebounce")),this._throttledDispatchExpand(s==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:s==="jump"?null:!1})}}};function S(p,v){var t=p._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===v}T.registerPreprocessor(w)},30008:function(Y,V,n){n(3881),n(91872),n(69385)},12335:function(Y,V,n){var T=n(3096),L=n(69008),M=n(27116);n(49900),n(2546),n(74309),n(84159),n(32641),T.registerLayout(L.curry(M,"bar")),T.extendComponentView({type:"polar"})},99154:function(Y,V,n){n(37292),n(924),n(61747)},61747:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(93570),D=n(18993),S=["axisLine","axisTickLabel","axisName"],p=M.extendComponentView({type:"radar",render:function(v,t,s){var i=this.group;i.removeAll(),this._buildAxes(v),this._buildSplitLineAndArea(v)},_buildAxes:function(v){var t=v.coordinateSystem,s=t.getIndicatorAxes(),i=w.map(s,function(a){var u=new C(a.model,{position:[t.cx,t.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});w.each(i,function(a){w.each(S,a.add,a),this.group.add(a.getGroup())},this)},_buildSplitLineAndArea:function(v){var t=v.coordinateSystem,s=t.getIndicatorAxes();if(!s.length)return;var i=v.get("shape"),a=v.getModel("splitLine"),u=v.getModel("splitArea"),e=a.getModel("lineStyle"),o=u.getModel("areaStyle"),r=a.get("show"),l=u.get("show"),h=e.get("color"),f=o.get("color");h=w.isArray(h)?h:[h],f=w.isArray(f)?f:[f];var c=[],d=[];function A(G,F,W){var U=W%F.length;return G[U]=G[U]||[],U}if(i==="circle")for(var x=s[0].getTicksCoords(),y=t.cx,g=t.cy,m=0;m=0||x==="+"?"left":"right"},b={horizontal:x>=0||x==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:o/2},R=y==="vertical"?g.height:g.width,E=d.getModel("controlStyle"),P=E.get("show",!0),O=P?E.get("itemSize"):0,N=P?E.get("itemGap"):0,_=O+N,G=d.get("label.rotate")||0;G=G*o/180;var F,W,U,H,z=E.get("position",!0),B=P&&E.get("showPlayBtn",!0),k=P&&E.get("showPrevBtn",!0),Z=P&&E.get("showNextBtn",!0),X=0,K=R;return z==="left"||z==="bottom"?(B&&(F=[0,0],X+=_),k&&(W=[X,0],X+=_),Z&&(U=[K-O,0],K-=_)):(B&&(F=[K-O,0],K-=_),k&&(W=[0,0],X+=_),Z&&(U=[K-O,0],K-=_)),H=[X,K],d.get("inverse")&&H.reverse(),{viewRect:g,mainLength:R,orient:y,rotation:I[y],labelRotation:G,labelPosOpt:x,labelAlign:d.get("label.align")||m[y],labelBaseline:d.get("label.verticalAlign")||d.get("label.baseline")||b[y],playPosition:F,prevBtnPosition:W,nextBtnPosition:U,axisExtent:H,controlSize:O,controlGap:N}},_position:function(d,A){var x=this._mainGroup,y=this._labelGroup,g=d.viewRect;if(d.orient==="vertical"){var m=M.create(),b=g.x,I=g.y+g.height;M.translate(m,m,[-b,-I]),M.rotate(m,m,-o/2),M.translate(m,m,[b,I]),g=g.clone(),g.applyTransform(m)}var R=W(g),E=W(x.getBoundingRect()),P=W(y.getBoundingRect()),O=x.position,N=y.position;N[0]=O[0]=R[0][0];var _=d.labelPosOpt;if(isNaN(_)){var G=_==="+"?0:1;U(O,E,R,1,G),U(N,P,R,1,1-G)}else{var G=_>=0?0:1;U(O,E,R,1,G),N[1]=O[1]+_}x.attr("position",O),y.attr("position",N),x.rotation=y.rotation=d.rotation,F(x),F(y);function F(H){var z=H.position;H.origin=[R[0][0]-z[0],R[1][0]-z[1]]}function W(H){return[[H.x,H.x+H.width],[H.y,H.y+H.height]]}function U(H,z,B,k,Z){H[k]+=B[k][Z]-z[k][Z]}},_createAxis:function(d,A){var x=A.getData(),y=A.get("axisType"),g=t.createScaleByModel(A,y);g.getTicks=function(){return x.mapArray(["value"],function(I){return I})};var m=x.getDataExtent("value");g.setExtent(m[0],m[1]),g.niceTicks();var b=new S("value",g,d.axisExtent,y);return b.model=A,b},_createGroup:function(d){var A=this["_"+d]=new w.Group;return this.group.add(A),A},_renderAxisLine:function(d,A,x,y){var g=x.getExtent();y.get("lineStyle.show")&&A.add(new w.Line({shape:{x1:g[0],y1:0,x2:g[1],y2:0},style:T.extend({lineCap:"round"},y.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(d,A,x,y){var g=y.getData(),m=x.scale.getTicks();e(m,function(b){var I=x.dataToCoord(b),R=g.getItemModel(b),E=R.getModel("itemStyle"),P=R.getModel("emphasis.itemStyle"),O={position:[I,0],onclick:u(this._changeTimeline,this,b)},N=f(R,E,A,O);w.setHoverStyle(N,P.getItemStyle()),R.get("tooltip")?(N.dataIndex=b,N.dataModel=y):N.dataIndex=N.dataModel=null},this)},_renderAxisLabel:function(d,A,x,y){var g=x.getLabelModel();if(g.get("show")){var m=y.getData(),b=x.getViewLabels();e(b,function(I){var R=I.tickValue,E=m.getItemModel(R),P=E.getModel("label"),O=E.getModel("emphasis.label"),N=x.dataToCoord(I.tickValue),_=new w.Text({position:[N,0],rotation:d.labelRotation-d.rotation,onclick:u(this._changeTimeline,this,R),silent:!1});w.setTextStyle(_.style,P,{text:I.formattedLabel,textAlign:d.labelAlign,textVerticalAlign:d.labelBaseline}),A.add(_),w.setHoverStyle(_,w.setTextStyle({},O))},this)}},_renderControl:function(d,A,x,y){var g=d.controlSize,m=d.rotation,b=y.getModel("controlStyle").getItemStyle(),I=y.getModel("emphasis.controlStyle").getItemStyle(),R=[0,-g/2,g,g],E=y.getPlayState(),P=y.get("inverse",!0);O(d.nextBtnPosition,"controlStyle.nextIcon",u(this._changeTimeline,this,P?"-":"+")),O(d.prevBtnPosition,"controlStyle.prevIcon",u(this._changeTimeline,this,P?"+":"-")),O(d.playPosition,"controlStyle."+(E?"stopIcon":"playIcon"),u(this._handlePlayClick,this,!E),!0);function O(N,_,G,F){if(N){var W={position:N,origin:[g/2,0],rotation:F?-m:0,rectHover:!0,style:b,onclick:G},U=h(y,_,R,W);A.add(U),w.setHoverStyle(U,I)}}},_renderCurrentPointer:function(d,A,x,y){var g=y.getData(),m=y.getCurrentIndex(),b=g.getItemModel(m).getModel("checkpointStyle"),I=this,R={onCreate:function(E){E.draggable=!0,E.drift=u(I._handlePointerDrag,I),E.ondragend=u(I._handlePointerDragend,I),c(E,m,x,y,!0)},onUpdate:function(E){c(E,m,x,y)}};this._currentPointer=f(b,b,this._mainGroup,{},this._currentPointer,R)},_handlePlayClick:function(d){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:d,from:this.uid})},_handlePointerDrag:function(d,A,x){this._clearTimer(),this._pointerChangeTimeline([x.offsetX,x.offsetY])},_handlePointerDragend:function(d){this._pointerChangeTimeline([d.offsetX,d.offsetY],!0)},_pointerChangeTimeline:function(d,A){var x=this._toAxisCoord(d)[0],y=this._axis,g=s.asc(y.getExtent().slice());x>g[1]&&(x=g[1]),x=p&&(S=p-1),S<0&&(S=0)),this.option.currentIndex=S},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(S){this.option.autoPlay=!!S},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var S=this.option,p=S.data||[],v=S.axisType,t=this._names=[];if(v==="category"){var s=[];T.each(p,function(u,e){var o=w.getDataItemValue(u),r;T.isObject(u)?(r=T.clone(u),r.value=e):r=e,s.push(r),!T.isString(o)&&(o==null||isNaN(o))&&(o=""),t.push(o+"")}),p=s}var i={category:"ordinal",time:"time"}[v]||"number",a=this._data=new M([{name:"value",type:i}],this);a.initData(p,t)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),D=C;Y.exports=D},22472:function(Y,V,n){var T=n(36851),L=T.extend({type:"timeline"});Y.exports=L},39089:function(Y,V,n){var T=n(69008);function L(D){var S=D&&D.timeline;T.isArray(S)||(S=S?[S]:[]),T.each(S,function(p){p&&M(p)})}function M(D){var S=D.type,p={number:"value",time:"time"};if(p[S]&&(D.axisType=p[S],delete D.type),w(D),C(D,"controlPosition")){var v=D.controlStyle||(D.controlStyle={});C(v,"position")||(v.position=D.controlPosition),v.position==="none"&&!C(v,"show")&&(v.show=!1,delete v.position),delete D.controlPosition}T.each(D.data||[],function(t){T.isObject(t)&&!T.isArray(t)&&(!C(t,"value")&&C(t,"name")&&(t.value=t.name),w(t))})}function w(D){var S=D.itemStyle||(D.itemStyle={}),p=S.emphasis||(S.emphasis={}),v=D.label||D.label||{},t=v.normal||(v.normal={}),s={normal:1,emphasis:1};T.each(v,function(i,a){!s[a]&&!C(t,a)&&(t[a]=i)}),p.label&&!C(v,"emphasis")&&(v.emphasis=p.label,delete p.label)}function C(D,S){return D.hasOwnProperty(S)}Y.exports=L},42456:function(Y,V,n){var T=n(3096),L=n(69008);T.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(M,w){var C=w.getComponent("timeline");return C&&M.currentIndex!=null&&(C.setCurrentIndex(M.currentIndex),!C.get("loop",!0)&&C.isIndexMax()&&C.setPlayState(!1)),w.resetOption("timeline"),L.defaults({currentIndex:C.option.currentIndex},M)}),T.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(M,w){var C=w.getComponent("timeline");C&&M.playState!=null&&C.setPlayState(M.playState)})},63737:function(Y,V,n){var T=n(16172);T.registerSubTypeDefaulter("timeline",function(){return"slider"})},49668:function(Y,V,n){var T=n(69008),L=n(3096),M=n(18993),w=n(7357),C=w.getLayoutRect,D=n(17010),S=D.windowOpen;L.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),L.extendComponentView({type:"title",render:function(p,v,t){if(this.group.removeAll(),!!p.get("show")){var s=this.group,i=p.getModel("textStyle"),a=p.getModel("subtextStyle"),u=p.get("textAlign"),e=T.retrieve2(p.get("textBaseline"),p.get("textVerticalAlign")),o=new M.Text({style:M.setTextStyle({},i,{text:p.get("text"),textFill:i.getTextColor()},{disableBox:!0}),z2:10}),r=o.getBoundingRect(),l=p.get("subtext"),h=new M.Text({style:M.setTextStyle({},a,{text:l,textFill:a.getTextColor(),y:r.height+p.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),f=p.get("link"),c=p.get("sublink"),d=p.get("triggerEvent",!0);o.silent=!f&&!d,h.silent=!c&&!d,f&&o.on("click",function(){S(f,"_"+p.get("target"))}),c&&h.on("click",function(){S(f,"_"+p.get("subtarget"))}),o.eventData=h.eventData=d?{componentType:"title",componentIndex:p.componentIndex}:null,s.add(o),l&&s.add(h);var A=s.getBoundingRect(),x=p.getBoxLayoutParams();x.width=A.width,x.height=A.height;var y=C(x,{width:t.getWidth(),height:t.getHeight()},p.get("padding"));u||(u=p.get("left")||p.get("right"),u==="middle"&&(u="center"),u==="right"?y.x+=y.width:u==="center"&&(y.x+=y.width/2)),e||(e=p.get("top")||p.get("bottom"),e==="center"&&(e="middle"),e==="bottom"?y.y+=y.height:e==="middle"&&(y.y+=y.height/2),e=e||"top"),s.attr("position",[y.x,y.y]);var g={textAlign:u,textVerticalAlign:e};o.setStyle(g),h.setStyle(g),A=s.getBoundingRect();var m=y.margin,b=p.getItemStyle(["color","opacity"]);b.fill=p.get("backgroundColor");var I=new M.Rect({shape:{x:A.x-m[3],y:A.y-m[0],width:A.width+m[1]+m[3],height:A.height+m[0]+m[2],r:p.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});s.add(I)}}})},98018:function(Y,V,n){n(3212),n(69380),n(92957),n(41122),n(62232),n(89457),n(94638)},3212:function(Y,V,n){var T=n(3096),L=n(69008),M=n(34031),w=T.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){w.superApply(this,"optionUpdated",arguments),L.each(this.option.feature,function(D,S){var p=M.get(S);p&&L.merge(D,p.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),C=w;Y.exports=C},69380:function(Y,V,n){var T=n(3096),L=n(69008),M=n(63603),w=n(34031),C=n(18993),D=n(24040),S=n(82383),p=n(98449),v=T.extendComponentView({type:"toolbox",render:function(s,i,a,u){var e=this.group;if(e.removeAll(),!s.get("show"))return;var o=+s.get("itemSize"),r=s.get("feature")||{},l=this._features||(this._features={}),h=[];L.each(r,function(d,A){h.push(A)}),new S(this._featureNames||[],h).add(f).update(f).remove(L.curry(f,null)).execute(),this._featureNames=h;function f(d,A){var x=h[d],y=h[A],g=r[x],m=new D(g,s,s.ecModel),b;if(u&&u.newTitle!=null&&u.featureName===x&&(g.title=u.newTitle),x&&!y){if(t(x))b={model:m,onclick:m.option.onclick,featureName:x};else{var I=w.get(x);if(!I)return;b=new I(m,i,a)}l[x]=b}else{if(b=l[y],!b)return;b.model=m,b.ecModel=i,b.api=a}if(!x&&y){b.dispose&&b.dispose(i,a);return}if(!m.get("show")||b.unusable){b.remove&&b.remove(i,a);return}c(m,b,x),m.setIconStatus=function(R,E){var P=this.option,O=this.iconPaths;P.iconStatus=P.iconStatus||{},P.iconStatus[R]=E,O[R]&&O[R].trigger(E)},b.render&&b.render(m,i,a,u)}function c(d,A,x){var y=d.getModel("iconStyle"),g=d.getModel("emphasis.iconStyle"),m=A.getIcons?A.getIcons():d.get("icon"),b=d.get("title")||{};if(typeof m=="string"){var I=m,R=b;m={},b={},m[x]=I,b[x]=R}var E=d.iconPaths={};L.each(m,function(P,O){var N=C.createIcon(P,{},{x:-o/2,y:-o/2,width:o,height:o});N.setStyle(y.getItemStyle()),N.hoverStyle=g.getItemStyle(),N.setStyle({text:b[O],textAlign:g.get("textAlign"),textBorderRadius:g.get("textBorderRadius"),textPadding:g.get("textPadding"),textFill:null});var _=s.getModel("tooltip");_&&_.get("show")&&N.attr("tooltip",L.extend({content:b[O],formatter:_.get("formatter",!0)||function(){return b[O]},formatterParams:{componentType:"toolbox",name:O,title:b[O],$vars:["name","title"]},position:_.get("position",!0)||"bottom"},_.option)),C.setHoverStyle(N),s.get("showTitle")&&(N.__title=b[O],N.on("mouseover",function(){var G=g.getItemStyle(),F=s.get("orient")==="vertical"?s.get("right")==null?"right":"left":s.get("bottom")==null?"bottom":"top";N.setStyle({textFill:g.get("textFill")||G.fill||G.stroke||"#000",textBackgroundColor:g.get("textBackgroundColor"),textPosition:g.get("textPosition")||F})}).on("mouseout",function(){N.setStyle({textFill:null,textBackgroundColor:null})})),N.trigger(d.get("iconStatus."+O)||"normal"),e.add(N),N.on("click",L.bind(A.onclick,A,i,a,O)),E[O]=N})}p.layout(e,s,a),e.add(p.makeBackground(e.getBoundingRect(),s)),e.eachChild(function(d){var A=d.__title,x=d.hoverStyle;if(x&&A){var y=M.getBoundingRect(A,M.makeFont(x)),g=d.position[0]+e.position[0],m=d.position[1]+e.position[1]+o,b=!1;m+y.height>a.getHeight()&&(x.textPosition="top",b=!0);var I=b?-5-y.height:o+8;g+y.width/2>a.getWidth()?(x.textPosition=["100%",I],x.textAlign="right"):g-y.width/2<0&&(x.textPosition=[0,I],x.textAlign="left")}})},updateView:function(s,i,a,u){L.each(this._features,function(e){e.updateView&&e.updateView(e.model,i,a,u)})},remove:function(s,i){L.each(this._features,function(a){a.remove&&a.remove(s,i)}),this.group.removeAll()},dispose:function(s,i){L.each(this._features,function(a){a.dispose&&a.dispose(s,i)})}});function t(s){return s.indexOf("my")===0}Y.exports=v},85738:function(Y,V,n){var T=n(69008),L=n(34031),M=n(73315),w=M.toolbox.brush;function C(p,v,t){this.model=p,this.ecModel=v,this.api=t,this._brushType,this._brushMode}C.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:T.clone(w.title)};var D=C.prototype;D.render=D.updateView=function(p,v,t){var s,i,a;v.eachComponent({mainType:"brush"},function(u){s=u.brushType,i=u.brushOption.brushMode||"single",a|=u.areas.length}),this._brushType=s,this._brushMode=i,T.each(p.get("type",!0),function(u){p.setIconStatus(u,(u==="keep"?i==="multiple":u==="clear"?a:u===s)?"emphasis":"normal")})},D.getIcons=function(){var p=this.model,v=p.get("icon",!0),t={};return T.each(p.get("type",!0),function(s){v[s]&&(t[s]=v[s])}),t},D.onclick=function(p,v,t){var s=this._brushType,i=this._brushMode;t==="clear"?(v.dispatchAction({type:"axisAreaSelect",intervals:[]}),v.dispatchAction({type:"brush",command:"clear",areas:[]})):v.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:t==="keep"?s:s===t?!1:t,brushMode:t==="keep"?i==="multiple"?"single":"multiple":i}})},L.register("brush",C);var S=C;Y.exports=S},62232:function(Y,V,n){var T=n(3096),L=n(69008),M=n(92462),w=n(73315),C=n(34031),D=w.toolbox.dataView,S=new Array(60).join("-"),p=" ";function v(d){var A={},x=[],y=[];return d.eachRawSeries(function(g){var m=g.coordinateSystem;if(m&&(m.type==="cartesian2d"||m.type==="polar")){var b=m.getBaseAxis();if(b.type==="category"){var I=b.dim+"_"+b.index;A[I]||(A[I]={categoryAxis:b,valueAxis:m.getOtherAxis(b),series:[]},y.push({axisDim:b.dim,axisIndex:b.index})),A[I].series.push(g)}else x.push(g)}else x.push(g)}),{seriesGroupByCategoryAxis:A,other:x,meta:y}}function t(d){var A=[];return L.each(d,function(x,y){var g=x.categoryAxis,m=x.valueAxis,b=m.dim,I=[" "].concat(L.map(x.series,function(_){return _.name})),R=[g.model.getCategories()];L.each(x.series,function(_){R.push(_.getRawData().mapArray(b,function(G){return G}))});for(var E=[I.join(p)],P=0;P=0)return!0}var e=new RegExp("["+p+"]+","g");function o(d){for(var A=d.split(/\n+/g),x=a(A.shift()).split(e),y=[],g=L.map(x,function(R){return{name:R,data:[]}}),m=0;m1?"emphasis":"normal")}function r(h,f,c,d,A){var x=c._isZoomActive;d&&d.type==="takeGlobalCursor"&&(x=d.key==="dataZoomSelect"?d.dataZoomSelectActive:!1),c._isZoomActive=x,h.setIconStatus("zoom",x?"emphasis":"normal");var y=new w(e(h.option),f,{include:["grid"]});c._brushController.setPanels(y.makePanelOpts(A,function(g){return g.xAxisDeclared&&!g.yAxisDeclared?"lineX":!g.xAxisDeclared&&g.yAxisDeclared?"lineY":"rect"})).enableBrush(x?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}p.register("dataZoom",i),T.registerPreprocessor(function(h){if(!h)return;var f=h.dataZoom||(h.dataZoom=[]);L.isArray(f)||(h.dataZoom=f=[f]);var c=h.toolbox;if(c&&(L.isArray(c)&&(c=c[0]),c&&c.feature)){var d=c.feature.dataZoom;A("xAxis",d),A("yAxis",d)}function A(y,g){if(g){var m=y+"Index",b=g[m];b!=null&&b!=="all"&&!L.isArray(b)&&(b=b===!1||b==="none"?[]:[b]),x(y,function(I,R){if(!(b!=null&&b!=="all"&&L.indexOf(b,R)===-1)){var E={type:"select",$fromToolbox:!0,filterMode:g.filterMode||"filter",id:s+y+R};E[m]=R,f.push(E)}})}}function x(y,g){var m=h[y];L.isArray(m)||(m=m?[m]:[]),t(m,g)}});var l=i;Y.exports=l},41122:function(Y,V,n){var T=n(3096),L=n(69008),M=n(73315),w=n(34031),C=M.toolbox.magicType,D="__ec_magicType_stack__";function S(i){this.model=i}S.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:L.clone(C.title),option:{},seriesIndex:{}};var p=S.prototype;p.getIcons=function(){var i=this.model,a=i.get("icon"),u={};return L.each(i.get("type"),function(e){a[e]&&(u[e]=a[e])}),u};var v={line:function(i,a,u,e){if(i==="bar")return L.merge({id:a,type:"line",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},e.get("option.line")||{},!0)},bar:function(i,a,u,e){if(i==="line")return L.merge({id:a,type:"bar",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},e.get("option.bar")||{},!0)},stack:function(i,a,u,e){var o=u.get("stack")===D;if(i==="line"||i==="bar")return e.setIconStatus("stack",o?"normal":"emphasis"),L.merge({id:a,stack:o?"":D},e.get("option.stack")||{},!0)}},t=[["line","bar"],["stack"]];p.onclick=function(i,a,u){var e=this.model,o=e.get("seriesIndex."+u);if(v[u]){var r={series:[]},l=function(c){var d=c.subType,A=c.id,x=v[u](d,A,c,e);x&&(L.defaults(x,c.option),r.series.push(x));var y=c.coordinateSystem;if(y&&y.type==="cartesian2d"&&(u==="line"||u==="bar")){var g=y.getAxesByScale("ordinal")[0];if(g){var m=g.dim,b=m+"Axis",I=i.queryComponents({mainType:b,index:c.get(name+"Index"),id:c.get(name+"Id")})[0],R=I.componentIndex;r[b]=r[b]||[];for(var E=0;E<=R;E++)r[b][R]=r[b][R]||{};r[b][R].boundaryGap=u==="bar"}}};L.each(t,function(c){L.indexOf(c,u)>=0&&L.each(c,function(d){e.setIconStatus(d,"normal")})}),e.setIconStatus(u,"emphasis"),i.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var h;if(u==="stack"){var f=r.series&&r.series[0]&&r.series[0].stack===D;h=f?L.merge({stack:C.title.tiled},C.title):L.clone(C.title)}a.dispatchAction({type:"changeMagicType",currentType:u,newOption:r,newTitle:h,featureName:"magicType"})}},T.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(i,a){a.mergeOption(i.newOption)}),w.register("magicType",S);var s=S;Y.exports=s},94638:function(Y,V,n){var T=n(3096),L=n(89345),M=n(73315),w=n(34031),C=M.toolbox.restore;function D(v){this.model=v}D.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:C.title};var S=D.prototype;S.onclick=function(v,t,s){L.clear(v),t.dispatchAction({type:"restore",from:this.uid})},w.register("restore",D),T.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(v,t){t.resetOption("recreate")});var p=D;Y.exports=p},92957:function(Y,V,n){var T=n(12973),L=n(73315),M=n(34031),w=L.toolbox.saveAsImage;function C(p){this.model=p}C.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:w.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:w.lang.slice()},C.prototype.unusable=!T.canvasSupported;var D=C.prototype;D.onclick=function(p,v){var t=this.model,s=t.get("name")||p.get("title.0.text")||"echarts",i=v.getZr().painter.getType()==="svg",a=i?"svg":t.get("type",!0)||"png",u=v.getConnectedDataURL({type:a,backgroundColor:t.get("backgroundColor",!0)||p.get("backgroundColor")||"#fff",connectedBackgroundColor:t.get("connectedBackgroundColor"),excludeComponents:t.get("excludeComponents"),pixelRatio:t.get("pixelRatio")});if(typeof MouseEvent=="function"&&!T.browser.ie&&!T.browser.edge){var e=document.createElement("a");e.download=s+"."+a,e.target="_blank",e.href=u;var o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});e.dispatchEvent(o)}else if(window.navigator.msSaveOrOpenBlob){for(var r=atob(u.split(",")[1]),l=r.length,h=new Uint8Array(l);l--;)h[l]=r.charCodeAt(l);var f=new Blob([h]);window.navigator.msSaveOrOpenBlob(f,s+"."+a)}else{var c=t.get("lang"),d='',A=window.open();A.document.write(d)}},M.register("saveAsImage",C);var S=C;Y.exports=S},34031:function(Y,V){var n={};function T(M,w){n[M]=w}function L(M){return n[M]}V.register=T,V.get=L},81584:function(Y,V,n){var T=n(3096);n(84159),n(34513),n(75250),T.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),T.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},98306:function(Y,V,n){var T=n(69008),L=n(83720),M=n(92462),w=n(12513),C=n(12973),D=n(17010),S=T.each,p=D.toCamelCase,v=["","-webkit-","-moz-","-o-"],t="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function s(r){var l="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+r+"s "+l+",top "+r+"s "+l;return T.map(v,function(f){return f+"transition:"+h}).join(";")}function i(r){var l=[],h=r.get("fontSize"),f=r.getTextColor();return f&&l.push("color:"+f),l.push("font:"+r.getFont()),h&&l.push("line-height:"+Math.round(h*3/2)+"px"),S(["decoration","align"],function(c){var d=r.get(c);d&&l.push("text-"+c+":"+d)}),l.join(";")}function a(r){var l=[],h=r.get("transitionDuration"),f=r.get("backgroundColor"),c=r.getModel("textStyle"),d=r.get("padding");return h&&l.push(s(h)),f&&(C.canvasSupported?l.push("background-Color:"+f):(l.push("background-Color:#"+L.toHex(f)),l.push("filter:alpha(opacity=70)"))),S(["width","color","radius"],function(A){var x="border-"+A,y=p(x),g=r.get(y);g!=null&&l.push(x+":"+g+(A==="color"?"":"px"))}),l.push(i(c)),d!=null&&l.push("padding:"+D.normalizeCssArray(d).join("px ")+"px"),l.join(";")+";"}function u(r,l,h,f,c){var d=l&&l.painter;if(h){var A=d&&d.getViewportRoot();A&&w.transformLocalCoord(r,A,document.body,f,c)}else{r[0]=f,r[1]=c;var x=d&&d.getViewportRootOffset();x&&(r[0]+=x.offsetLeft,r[1]+=x.offsetTop)}}function e(r,l,h){if(C.wxa)return null;var f=document.createElement("div");f.domBelongToZr=!0,this.el=f;var c=this._zr=l.getZr(),d=this._appendToBody=h&&h.appendToBody;this._styleCoord=[0,0],u(this._styleCoord,c,d,l.getWidth()/2,l.getHeight()/2),d?document.body.appendChild(f):r.appendChild(f),this._container=r,this._show=!1,this._hideTimeout;var A=this;f.onmouseenter=function(){A._enterable&&(clearTimeout(A._hideTimeout),A._show=!0),A._inContent=!0},f.onmousemove=function(x){if(x=x||window.event,!A._enterable){var y=c.handler,g=c.painter.getViewportRoot();M.normalizeEvent(g,x,!0),y.dispatch("mousemove",x)}},f.onmouseleave=function(){A._enterable&&A._show&&A.hideLater(A._hideDelay),A._inContent=!1}}e.prototype={constructor:e,_enterable:!0,update:function(){var r=this._container,l=r.currentStyle||document.defaultView.getComputedStyle(r),h=r.style;h.position!=="absolute"&&l.position!=="absolute"&&(h.position="relative")},show:function(r){clearTimeout(this._hideTimeout);var l=this.el,h=this._styleCoord;l.style.cssText=t+a(r)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(r.get("extraCssText")||""),l.style.display=l.innerHTML?"block":"none",l.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(r){this.el.innerHTML=r==null?"":r},setEnterable:function(r){this._enterable=r},getSize:function(){var r=this.el;return[r.clientWidth,r.clientHeight]},moveTo:function(r,l){var h=this._styleCoord;u(h,this._zr,this._appendToBody,r,l);var f=this.el.style;f.left=h[0]+"px",f.top=h[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(r){this._show&&!(this._inContent&&this._enterable)&&(r?(this._hideDelay=r,this._show=!1,this._hideTimeout=setTimeout(T.bind(this.hide,this),r)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var r=this.el.clientWidth,l=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(r+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),l+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:r,height:l}}};var o=e;Y.exports=o},34513:function(Y,V,n){var T=n(3096),L=T.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});Y.exports=L},28817:function(Y,V,n){var T=n(69008),L=n(99999);function M(C){this._zr=C.getZr(),this._show=!1,this._hideTimeout}M.prototype={constructor:M,_enterable:!0,update:function(){},show:function(C){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(C,D,S){this.el&&this._zr.remove(this.el);for(var p={},v=C,t="{marker",s="|}",i=v.indexOf(t);i>=0;){var a=v.indexOf(s),u=v.substr(i+t.length,a-i-t.length);u.indexOf("sub")>-1?p["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:D[u],textOffset:[3,0]}:p["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:D[u]},v=v.substr(a+1),i=v.indexOf("{marker")}this.el=new L({style:{rich:p,text:C,textLineHeight:20,textBackgroundColor:S.get("backgroundColor"),textBorderRadius:S.get("borderRadius"),textFill:S.get("textStyle.color"),textPadding:S.get("padding")},z:S.get("z")}),this._zr.add(this.el);var e=this;this.el.on("mouseover",function(){e._enterable&&(clearTimeout(e._hideTimeout),e._show=!0),e._inContent=!0}),this.el.on("mouseout",function(){e._enterable&&e._show&&e.hideLater(e._hideDelay),e._inContent=!1})},setEnterable:function(C){this._enterable=C},getSize:function(){var C=this.el.getBoundingRect();return[C.width,C.height]},moveTo:function(C,D){this.el&&this.el.attr("position",[C,D])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(C){this._show&&!(this._inContent&&this._enterable)&&(C?(this._hideDelay=C,this._show=!1,this._hideTimeout=setTimeout(T.bind(this.hide,this),C)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var C=this.getSize();return{width:C[0],height:C[1]}}};var w=M;Y.exports=w},75250:function(Y,V,n){var T=n(3096),L=n(69008),M=n(12973),w=n(98306),C=n(28817),D=n(17010),S=n(86957),p=n(18993),v=n(65881),t=n(7357),s=n(24040),i=n(46243),a=n(44815),u=n(23263),e=n(90830),o=e.getTooltipRenderMode,r=L.bind,l=L.each,h=S.parsePercent,f=new p.Rect({shape:{x:-1,y:-1,width:2,height:2}}),c=T.extendComponentView({type:"tooltip",init:function(b,I){if(!M.node){var R=b.getComponent("tooltip"),E=R.get("renderMode");this._renderMode=o(E);var P;this._renderMode==="html"?(P=new w(I.getDom(),I,{appendToBody:R.get("appendToBody",!0)}),this._newLine="
"):(P=new C(I),this._newLine=` `),this._tooltipContent=P}},render:function(b,I,R){if(!M.node){this.group.removeAll(),this._tooltipModel=b,this._ecModel=I,this._api=R,this._lastDataByCoordSys=null,this._alwaysShowContent=b.get("alwaysShowContent");var E=this._tooltipContent;E.update(),E.setEnterable(b.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var b=this._tooltipModel,I=b.get("triggerOn");i.register("itemTooltip",this._api,r(function(R,E,P){I!=="none"&&(I.indexOf(R)>=0?this._tryShow(E,P):R==="leave"&&this._hide(P))},this))},_keepShow:function(){var b=this._tooltipModel,I=this._ecModel,R=this._api;if(this._lastX!=null&&this._lastY!=null&&b.get("triggerOn")!=="none"){var E=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!R.isDisposed()&&E.manuallyShowTip(b,I,R,{x:E._lastX,y:E._lastY})})}},manuallyShowTip:function(b,I,R,E){if(!(E.from===this.uid||M.node)){var P=A(E,R);this._ticket="";var O=E.dataByCoordSys;if(E.tooltip&&E.x!=null&&E.y!=null){var N=f;N.position=[E.x,E.y],N.update(),N.tooltip=E.tooltip,this._tryShow({offsetX:E.x,offsetY:E.y,target:N},P)}else if(O)this._tryShow({offsetX:E.x,offsetY:E.y,position:E.position,dataByCoordSys:E.dataByCoordSys,tooltipOption:E.tooltipOption},P);else if(E.seriesIndex!=null){if(this._manuallyAxisShowTip(b,I,R,E))return;var _=v(E,I),G=_.point[0],F=_.point[1];G!=null&&F!=null&&this._tryShow({offsetX:G,offsetY:F,position:E.position,target:_.el},P)}else E.x!=null&&E.y!=null&&(R.dispatchAction({type:"updateAxisPointer",x:E.x,y:E.y}),this._tryShow({offsetX:E.x,offsetY:E.y,position:E.position,target:R.getZr().findHover(E.x,E.y).target},P))}},manuallyHideTip:function(b,I,R,E){var P=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&P.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,E.from!==this.uid&&this._hide(A(E,R))},_manuallyAxisShowTip:function(F,I,R,E){var P=E.seriesIndex,O=E.dataIndex,N=I.getComponent("axisPointer").coordSysAxesInfo;if(!(P==null||O==null||N==null)){var _=I.getSeriesByIndex(P);if(_){var G=_.getData(),F=d([G.getItemModel(O),_,(_.coordinateSystem||{}).model,F]);if(F.get("trigger")==="axis")return R.dispatchAction({type:"updateAxisPointer",seriesIndex:P,dataIndex:O,position:E.position}),!0}}},_tryShow:function(b,I){var R=b.target,E=this._tooltipModel;if(E){this._lastX=b.offsetX,this._lastY=b.offsetY;var P=b.dataByCoordSys;P&&P.length?this._showAxisTooltip(P,b):R&&R.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(b,R,I)):R&&R.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(b,R,I)):(this._lastDataByCoordSys=null,this._hide(I))}},_showOrMove:function(b,I){var R=b.get("showDelay");I=L.bind(I,this),clearTimeout(this._showTimout),R>0?this._showTimout=setTimeout(I,R):I()},_showAxisTooltip:function(b,I){var R=this._ecModel,E=this._tooltipModel,P=[I.offsetX,I.offsetY],O=[],N=[],_=d([I.tooltipOption,E]),G=this._renderMode,F=this._newLine,W={};l(b,function(H){l(H.dataByAxis,function(z){var B=R.getComponent(z.axisDim+"Axis",z.axisIndex),k=z.value,Z=[];if(!(!B||k==null)){var X=u.getValueLabel(k,B.axis,R,z.seriesDataIndices,z.valueLabelOpt);L.each(z.seriesDataIndices,function(Q){var J=R.getSeriesByIndex(Q.seriesIndex),tt=Q.dataIndexInside,q=J&&J.getDataParams(tt);if(q.axisDim=z.axisDim,q.axisIndex=z.axisIndex,q.axisType=z.axisType,q.axisId=z.axisId,q.axisValue=a.getAxisRawValue(B.axis,k),q.axisValueLabel=X,q){N.push(q);var rt=J.formatTooltip(tt,!0,null,G),$;if(L.isObject(rt)){$=rt.html;var j=rt.markers;L.merge(W,j)}else $=rt;Z.push($)}});var K=X;G!=="html"?O.push(Z.join(F)):O.push((K?D.encodeHTML(K)+F:"")+Z.join(F))}})},this),O.reverse(),O=O.join(this._newLine+this._newLine);var U=I.position;this._showOrMove(_,function(){this._updateContentNotChangedOnAxis(b)?this._updatePosition(_,U,P[0],P[1],this._tooltipContent,N):this._showTooltipContent(_,O,N,Math.random(),P[0],P[1],U,void 0,W)})},_showSeriesItemTooltip:function(b,I,R){var E=this._ecModel,P=I.seriesIndex,O=E.getSeriesByIndex(P),N=I.dataModel||O,_=I.dataIndex,G=I.dataType,F=N.getData(G),W=d([F.getItemModel(_),N,O&&(O.coordinateSystem||{}).model,this._tooltipModel]),U=W.get("trigger");if(!(U!=null&&U!=="item")){var H=N.getDataParams(_,G),z=N.formatTooltip(_,!1,G,this._renderMode),B,k;L.isObject(z)?(B=z.html,k=z.markers):(B=z,k=null);var Z="item_"+N.name+"_"+_;this._showOrMove(W,function(){this._showTooltipContent(W,B,H,Z,b.offsetX,b.offsetY,b.position,b.target,k)}),R({type:"showTip",dataIndexInside:_,dataIndex:F.getRawIndex(_),seriesIndex:P,from:this.uid})}},_showComponentItemTooltip:function(b,I,R){var E=I.tooltip;if(typeof E=="string"){var P=E;E={content:P,formatter:P}}var O=new s(E,this._tooltipModel,this._ecModel),N=O.get("content"),_=Math.random();this._showOrMove(O,function(){this._showTooltipContent(O,N,O.get("formatterParams")||{},_,b.offsetX,b.offsetY,b.position,I)}),R({type:"showTip",from:this.uid})},_showTooltipContent:function(b,I,R,E,P,O,N,_,G){if(this._ticket="",!(!b.get("showContent")||!b.get("show"))){var F=this._tooltipContent,W=b.get("formatter");N=N||b.get("position");var U=I;if(W&&typeof W=="string")U=D.formatTpl(W,R,!0);else if(typeof W=="function"){var H=r(function(z,B){z===this._ticket&&(F.setContent(B,G,b),this._updatePosition(b,N,P,O,F,R,_))},this);this._ticket=E,U=W(R,E,H)}F.setContent(U,G,b),F.show(b),this._updatePosition(b,N,P,O,F,R,_)}},_updatePosition:function(b,I,R,E,P,O,N){var _=this._api.getWidth(),G=this._api.getHeight();I=I||b.get("position");var F=P.getSize(),W=b.get("align"),U=b.get("verticalAlign"),H=N&&N.getBoundingRect().clone();if(N&&H.applyTransform(N.transform),typeof I=="function"&&(I=I([R,E],O,P.el,H,{viewSize:[_,G],contentSize:F.slice()})),L.isArray(I))R=h(I[0],_),E=h(I[1],G);else if(L.isObject(I)){I.width=F[0],I.height=F[1];var z=t.getLayoutRect(I,{width:_,height:G});R=z.x,E=z.y,W=null,U=null}else if(typeof I=="string"&&N){var B=g(I,H,F);R=B[0],E=B[1]}else{var B=x(R,E,P,_,G,W?null:20,U?null:20);R=B[0],E=B[1]}if(W&&(R-=m(W)?F[0]/2:W==="right"?F[0]:0),U&&(E-=m(U)?F[1]/2:U==="bottom"?F[1]:0),b.get("confine")){var B=y(R,E,P,_,G);R=B[0],E=B[1]}P.moveTo(R,E)},_updateContentNotChangedOnAxis:function(b){var I=this._lastDataByCoordSys,R=!!I&&I.length===b.length;return R&&l(I,function(E,P){var O=E.dataByAxis||{},N=b[P]||{},_=N.dataByAxis||[];R&=O.length===_.length,R&&l(O,function(G,F){var W=_[F]||{},U=G.seriesDataIndices||[],H=W.seriesDataIndices||[];R&=G.value===W.value&&G.axisType===W.axisType&&G.axisId===W.axisId&&U.length===H.length,R&&l(U,function(z,B){var k=H[B];R&=z.seriesIndex===k.seriesIndex&&z.dataIndex===k.dataIndex})})}),this._lastDataByCoordSys=b,!!R},_hide:function(b){this._lastDataByCoordSys=null,b({type:"hideTip",from:this.uid})},dispose:function(b,I){M.node||(this._tooltipContent.dispose(),i.unregister("itemTooltip",I))}});function d(b){for(var I=b.pop();b.length;){var R=b.pop();R&&(s.isInstance(R)&&(R=R.get("tooltip",!0)),typeof R=="string"&&(R={formatter:R}),I=new s(R,I,I.ecModel))}return I}function A(b,I){return b.dispatchAction||L.bind(I.dispatchAction,I)}function x(b,I,R,E,P,O,N){var _=R.getOuterSize(),G=_.width,F=_.height;return O!=null&&(b+G+O>E?b-=G+O:b+=O),N!=null&&(I+F+N>P?I-=F+N:I+=N),[b,I]}function y(b,I,R,E,P){var O=R.getOuterSize(),N=O.width,_=O.height;return b=Math.min(b+N,E)-N,I=Math.min(I+_,P)-_,b=Math.max(b,0),I=Math.max(I,0),[b,I]}function g(b,I,R){var E=R[0],P=R[1],O=5,N=0,_=0,G=I.width,F=I.height;switch(b){case"inside":N=I.x+G/2-E/2,_=I.y+F/2-P/2;break;case"top":N=I.x+G/2-E/2,_=I.y-P-O;break;case"bottom":N=I.x+G/2-E/2,_=I.y+F+O;break;case"left":N=I.x-E-O,_=I.y+F/2-P/2;break;case"right":N=I.x+G+O,_=I.y+F/2-P/2}return[N,_]}function m(b){return b==="center"||b==="middle"}Y.exports=c},85313:function(Y,V,n){n(3646),n(11511)},74021:function(Y,V,n){var T=n(69008),L=n(27204),M=n(86957),w=[20,140],C=L.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(p,v){C.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){C.superApply(this,"resetItemSize",arguments);var p=this.itemSize;this._orient==="horizontal"&&p.reverse(),(p[0]==null||isNaN(p[0]))&&(p[0]=w[0]),(p[1]==null||isNaN(p[1]))&&(p[1]=w[1])},_resetRange:function(){var p=this.getExtent(),v=this.option.range;!v||v.auto?(p.auto=1,this.option.range=p):T.isArray(v)&&(v[0]>v[1]&&v.reverse(),v[0]=Math.max(v[0],p[0]),v[1]=Math.min(v[1],p[1]))},completeVisualOption:function(){L.prototype.completeVisualOption.apply(this,arguments),T.each(this.stateList,function(p){var v=this.option.controller[p].symbolSize;v&&v[0]!==v[1]&&(v[0]=0)},this)},setSelected:function(p){this.option.range=p.slice(),this._resetRange()},getSelected:function(){var p=this.getExtent(),v=M.asc((this.get("range")||[]).slice());return v[0]>p[1]&&(v[0]=p[1]),v[1]>p[1]&&(v[1]=p[1]),v[0]=t[1]||p<=v[1])?"inRange":"outOfRange"},findTargetDataIndices:function(p){var v=[];return this.eachTargetSeries(function(t){var s=[],i=t.getData();i.each(this.getDataDimension(i),function(a,u){p[0]<=a&&a<=p[1]&&s.push(u)},this),v.push({seriesId:t.id,dataIndex:s})},this),v},getVisualMeta:function(p){var v=D(this,"outOfRange",this.getExtent()),t=D(this,"inRange",this.option.range.slice()),s=[];function i(h,f){s.push({value:h,color:p(h,f)})}for(var a=0,u=0,e=t.length,o=v.length;ux[1])break;m.push({color:this.getControllerVisual(R,"color",y),offset:I/g})}return m.push({color:this.getControllerVisual(x[1],"color",y),offset:1}),m},_createBarPoints:function(x,y){var g=this.visualMapModel.itemSize;return[[g[0]-y[0],x[0]],[g[0],x[0]],[g[0],x[1]],[g[0]-y[1],x[1]]]},_createBarGroup:function(x){var y=this._orient,g=this.visualMapModel.get("inverse");return new C.Group(y==="horizontal"&&!g?{scale:x==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:y==="horizontal"&&g?{scale:x==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:y==="vertical"&&!g?{scale:x==="left"?[1,-1]:[-1,-1]}:{scale:x==="left"?[1,1]:[-1,1]})},_updateHandle:function(x,y){if(this._useHandle){var g=this._shapes,m=this.visualMapModel,b=g.handleThumbs,I=g.handleLabels;s([0,1],function(R){var E=b[R];E.setStyle("fill",y.handlesColor[R]),E.position[1]=x[R];var P=C.applyTransform(g.handleLabelPoints[R],C.getTransform(E,this.group));I[R].setStyle({x:P[0],y:P[1],text:m.formatValueText(this._dataInterval[R]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?R===0?"bottom":"top":"left",g.barGroup)})},this)}},_showIndicator:function(x,y,g,m){var b=this.visualMapModel,I=b.getExtent(),R=b.itemSize,E=[0,R[1]],P=t(x,I,E,!0),O=this._shapes,N=O.indicator;if(N){N.position[1]=P,N.attr("invisible",!1),N.setShape("points",h(!!g,m,P,R[1]));var _={convertOpacityToAlpha:!0},G=this.getControllerVisual(x,"color",_);N.setStyle("fill",G);var F=C.applyTransform(O.indicatorLabelPoint,C.getTransform(N,this.group)),W=O.indicatorLabel;W.attr("invisible",!1);var U=this._applyTransform("left",O.barGroup),H=this._orient;W.setStyle({text:(g||"")+b.formatValueText(y),textVerticalAlign:H==="horizontal"?U:"middle",textAlign:H==="horizontal"?"center":U,x:F[0],y:F[1]})}},_enableHoverLinkToSeries:function(){var x=this;this._shapes.barGroup.on("mousemove",function(y){if(x._hovering=!0,!x._dragging){var g=x.visualMapModel.itemSize,m=x._applyTransform([y.offsetX,y.offsetY],x._shapes.barGroup,!0,!0);m[1]=i(a(0,m[1]),g[1]),x._doHoverLinkToSeries(m[1],0<=m[0]&&m[0]<=g[0])}}).on("mouseout",function(){x._hovering=!1,!x._dragging&&x._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var x=this.api.getZr();this.visualMapModel.option.hoverLink?(x.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),x.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(x,y){var g=this.visualMapModel,m=g.itemSize;if(g.option.hoverLink){var b=[0,m[1]],I=g.getExtent();x=i(a(b[0],x),b[1]);var R=f(g,I,b),E=[x-R,x+R],P=t(x,b,I,!0),O=[t(E[0],b,I,!0),t(E[1],b,I,!0)];E[0]b[1]&&(O[1]=1/0),y&&(O[0]===-1/0?this._showIndicator(P,O[1],"< ",R):O[1]===1/0?this._showIndicator(P,O[0],"> ",R):this._showIndicator(P,P,"\u2248 ",R));var N=this._hoverLinkDataIndices,_=[];(y||c(g))&&(_=this._hoverLinkDataIndices=g.findTargetDataIndices(O));var G=v.compressBatches(N,_);this._dispatchHighDown("downplay",p.makeHighDownBatch(G[0],g)),this._dispatchHighDown("highlight",p.makeHighDownBatch(G[1],g))}},_hoverLinkFromSeriesMouseOver:function(x){var y=x.target,g=this.visualMapModel;if(!(!y||y.dataIndex==null)){var m=this.ecModel.getSeriesByIndex(y.seriesIndex);if(g.isTargetSeries(m)){var b=m.getData(y.dataType),I=b.get(g.getDataDimension(b),y.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)}}},_hideIndicator:function(){var x=this._shapes;x.indicator&&x.indicator.attr("invisible",!0),x.indicatorLabel&&x.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var x=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",p.makeHighDownBatch(x,this.visualMapModel)),x.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var x=this.api.getZr();x.off("mouseover",this._hoverLinkFromSeriesMouseOver),x.off("mouseout",this._hideIndicator)},_applyTransform:function(x,y,g,m){var b=C.getTransform(y,m?null:this.group);return C[T.isArray(x)?"applyTransform":"transformDirection"](x,b,g)},_dispatchHighDown:function(x,y){y&&y.length&&this.api.dispatchAction({type:x,batch:y})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function r(x,y,g,m){return new C.Polygon({shape:{points:x},draggable:!!g,cursor:y,drift:g,onmousemove:function(b){M.stop(b.event)},ondragend:m})}function l(x,y){return x===0?[[0,0],[y,0],[y,-y]]:[[0,0],[y,0],[y,y]]}function h(x,y,g,m){return x?[[0,-i(y,a(g,0))],[e,0],[0,i(y,a(m-g,0))]]:[[0,0],[5,-5],[5,5]]}function f(x,y,g){var m=u/2,b=x.get("hoverLinkDataSize");return b&&(m=t(b,y,g,!0)/2),m}function c(x){var y=x.get("hoverLinkOnHandle");return!!(y==null?x.get("realtime"):y)}function d(x){return x==="vertical"?"ns-resize":"ew-resize"}var A=o;Y.exports=A},85033:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(27204),C=n(5660),D=n(45645),S=n(86957),p=S.reformIntervals,v=w.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(a,u){v.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var e=this._mode=this._determineMode();t[this._mode].call(this),this._resetSelected(a,u);var o=this.option.categories;this.resetVisual(function(r,l){e==="categories"?(r.mappingMethod="category",r.categories=M.clone(o)):(r.dataExtent=this.getExtent(),r.mappingMethod="piecewise",r.pieceList=M.map(this._pieceList,function(f){var f=M.clone(f);return l!=="inRange"&&(f.visual=null),f}))})},completeVisualOption:function(){var a=this.option,u={},e=C.listVisualTypes(),o=this.isCategory();M.each(a.pieces,function(l){M.each(e,function(h){l.hasOwnProperty(h)&&(u[h]=1)})}),M.each(u,function(l,h){var f=0;M.each(this.stateList,function(c){f|=r(a,c,h)||r(a.target,c,h)},this),!f&&M.each(this.stateList,function(c){(a[c]||(a[c]={}))[h]=D.get(h,c==="inRange"?"active":"inactive",o)})},this);function r(l,h,f){return l&&l[h]&&(M.isObject(l[h])?l[h].hasOwnProperty(f):l[h]===f)}w.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(a,u){var e=this.option,o=this._pieceList,r=(u?e:a).selected||{};if(e.selected=r,M.each(o,function(h,f){var c=this.getSelectedMapKey(h);r.hasOwnProperty(c)||(r[c]=!0)},this),e.selectedMode==="single"){var l=!1;M.each(o,function(h,f){var c=this.getSelectedMapKey(h);r[c]&&(l?r[c]=!1:l=!0)},this)}},getSelectedMapKey:function(a){return this._mode==="categories"?a.value+"":a.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var a=this.option;return a.pieces&&a.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(a){this.option.selected=M.clone(a)},getValueState:function(a){var u=C.findPieceIndex(a,this._pieceList);return u!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[u])]?"inRange":"outOfRange"},findTargetDataIndices:function(a){var u=[];return this.eachTargetSeries(function(e){var o=[],r=e.getData();r.each(this.getDataDimension(r),function(l,h){var f=C.findPieceIndex(l,this._pieceList);f===a&&o.push(h)},this),u.push({seriesId:e.id,dataIndex:o})},this),u},getRepresentValue:function(a){var u;if(this.isCategory())u=a.value;else if(a.value!=null)u=a.value;else{var e=a.interval||[];u=e[0]===-1/0&&e[1]===1/0?0:(e[0]+e[1])/2}return u},getVisualMeta:function(a){if(this.isCategory())return;var u=[],e=[],o=this;function r(c,d){var A=o.getRepresentValue({interval:c});d||(d=o.getValueState(A));var x=a(A,d);c[0]===-1/0?e[0]=x:c[1]===1/0?e[1]=x:u.push({value:c[0],color:x},{value:c[1],color:x})}var l=this._pieceList.slice();if(!l.length)l.push({interval:[-1/0,1/0]});else{var h=l[0].interval[0];h!==-1/0&&l.unshift({interval:[-1/0,h]}),h=l[l.length-1].interval[1],h!==1/0&&l.push({interval:[h,1/0]})}var f=-1/0;return M.each(l,function(c){var d=c.interval;d&&(d[0]>f&&r([f,d[0]],"outOfRange"),r(d.slice()),f=d[1])},this),{stops:u,outerColors:e}}}),t={splitNumber:function(){var a=this.option,u=this._pieceList,e=Math.min(a.precision,20),o=this.getExtent(),r=a.splitNumber;r=Math.max(parseInt(r,10),1),a.splitNumber=r;for(var l=(o[1]-o[0])/r;+l.toFixed(e)!==l&&e<5;)e++;a.precision=e,l=+l.toFixed(e),a.minOpen&&u.push({interval:[-1/0,o[0]],close:[0,0]});for(var h=0,f=o[0];h","\u2265"][o[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,r)},this)}};function s(a,u){var e=a.inverse;(a.orient==="vertical"?!e:e)&&u.reverse()}var i=v;Y.exports=i},50767:function(Y,V,n){var T=n(69008),L=n(94404),M=n(18993),w=n(22868),C=w.createSymbol,D=n(7357),S=n(26135),p=L.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var s=this.visualMapModel,i=s.get("textGap"),a=s.textStyleModel,u=a.getFont(),e=a.getTextColor(),o=this._getItemAlign(),r=s.itemSize,l=this._getViewData(),h=l.endsText,f=T.retrieve(s.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],r,f,o),T.each(l.viewPieceList,c,this),h&&this._renderEndsText(t,h[1],r,f,o),D.box(s.get("orient"),t,s.get("itemGap")),this.renderBackground(t),this.positionGroup(t);function c(d){var A=d.piece,x=new M.Group;x.onclick=T.bind(this._onItemClick,this,A),this._enableHoverLink(x,d.indexInModelPieceList);var y=s.getRepresentValue(A);if(this._createItemSymbol(x,y,[0,0,r[0],r[1]]),f){var g=this.visualMapModel.getValueState(y);x.add(new M.Text({style:{x:o==="right"?-i:r[0]+i,y:r[1]/2,text:A.text,textVerticalAlign:"middle",textAlign:o,textFont:u,textFill:e,opacity:g==="outOfRange"?.5:1}}))}t.add(x)}},_enableHoverLink:function(t,s){t.on("mouseover",T.bind(i,this,"highlight")).on("mouseout",T.bind(i,this,"downplay"));function i(a){var u=this.visualMapModel;u.option.hoverLink&&this.api.dispatchAction({type:a,batch:S.makeHighDownBatch(u.findTargetDataIndices(s),u)})}},_getItemAlign:function(){var t=this.visualMapModel,s=t.option;if(s.orient==="vertical")return S.getItemAlign(t,this.api,t.itemSize);var i=s.align;return(!i||i==="auto")&&(i="left"),i},_renderEndsText:function(t,s,i,a,u){if(s){var e=new M.Group,o=this.visualMapModel.textStyleModel;e.add(new M.Text({style:{x:a?u==="right"?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:a?u:"center",text:s,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(e)}},_getViewData:function(){var t=this.visualMapModel,s=T.map(t.getPieceList(),function(e,o){return{piece:e,indexInModelPieceList:o}}),i=t.get("text"),a=t.get("orient"),u=t.get("inverse");return(a==="horizontal"?u:!u)?s.reverse():i&&(i=i.slice().reverse()),{viewPieceList:s,endsText:i}},_createItemSymbol:function(t,s,i){t.add(C(this.getControllerVisual(s,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(s,"color")))},_onItemClick:function(t){var s=this.visualMapModel,i=s.option,a=T.clone(i.selected),u=s.getSelectedMapKey(t);i.selectedMode==="single"?(a[u]=!0,T.each(a,function(e,o){a[o]=o===u})):a[u]=!a[u],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}}),v=p;Y.exports=v},27204:function(Y,V,n){var T=n(3096),L=n(69008),M=n(12973),w=n(45645),C=n(5660),D=n(75986),S=n(90830),p=n(86957),v=C.mapVisual,t=C.eachVisual,s=L.isArray,i=L.each,a=p.asc,u=p.linearMap,e=L.noop,o=T.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(l,h,f){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(l,f)},optionUpdated:function(l,h){var f=this.option;M.canvasSupported||(f.realtime=!1),!h&&D.replaceVisualOption(f,l,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(l){var h=this.stateList;l=L.bind(l,this),this.controllerVisuals=D.createVisualMappings(this.option.controller,h,l),this.targetVisuals=D.createVisualMappings(this.option.target,h,l)},getTargetSeriesIndices:function(){var l=this.option.seriesIndex,h=[];return l==null||l==="all"?this.ecModel.eachSeries(function(f,c){h.push(c)}):h=S.normalizeToArray(l),h},eachTargetSeries:function(l,h){L.each(this.getTargetSeriesIndices(),function(f){l.call(h,this.ecModel.getSeriesByIndex(f))},this)},isTargetSeries:function(l){var h=!1;return this.eachTargetSeries(function(f){f===l&&(h=!0)}),h},formatValueText:function(l,h,f){var c=this.option,d=c.precision,A=this.dataBound,x=c.formatter,y,g;if(f=f||["<",">"],L.isArray(l)&&(l=l.slice(),y=!0),g=h?l:y?[m(l[0]),m(l[1])]:m(l),L.isString(x))return x.replace("{value}",y?g[0]:g).replace("{value2}",y?g[1]:g);if(L.isFunction(x))return y?x(l[0],l[1]):x(l);if(y)return l[0]===A[0]?f[0]+" "+g[1]:l[1]===A[1]?f[1]+" "+g[0]:g[0]+" - "+g[1];return g;function m(b){return b===A[0]?"min":b===A[1]?"max":(+b).toFixed(Math.min(d,20))}},resetExtent:function(){var l=this.option,h=a([l.min,l.max]);this._dataExtent=h},getDataDimension:function(l){var h=this.option.dimension,f=l.dimensions;if(!(h==null&&!f.length)){if(h!=null)return l.getDimension(h);for(var c=l.dimensions,d=c.length-1;d>=0;d--){var A=c[d],x=l.getDimensionInfo(A);if(!x.isCalculationCoord)return A}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var l=this.ecModel,h=this.option,f={inRange:h.inRange,outOfRange:h.outOfRange},c=h.target||(h.target={}),d=h.controller||(h.controller={});L.merge(c,f),L.merge(d,f);var A=this.isCategory();x.call(this,c),x.call(this,d),y.call(this,c,"inRange","outOfRange"),g.call(this,d);function x(m){s(h.color)&&!m.inRange&&(m.inRange={color:h.color.slice().reverse()}),m.inRange=m.inRange||{color:l.get("gradientColor")},i(this.stateList,function(b){var I=m[b];if(L.isString(I)){var R=w.get(I,"active",A);R?(m[b]={},m[b][I]=R):delete m[b]}},this)}function y(m,b,I){var R=m[b],E=m[I];R&&!E&&(E=m[I]={},i(R,function(P,O){if(C.isValidType(O)){var N=w.get(O,"inactive",A);N!=null&&(E[O]=N,O==="color"&&!E.hasOwnProperty("opacity")&&!E.hasOwnProperty("colorAlpha")&&(E.opacity=[0,0]))}}))}function g(m){var b=(m.inRange||{}).symbol||(m.outOfRange||{}).symbol,I=(m.inRange||{}).symbolSize||(m.outOfRange||{}).symbolSize,R=this.get("inactiveColor");i(this.stateList,function(E){var P=this.itemSize,O=m[E];O||(O=m[E]={color:A?R:[R]}),O.symbol==null&&(O.symbol=b&&L.clone(b)||(A?"roundRect":["roundRect"])),O.symbolSize==null&&(O.symbolSize=I&&L.clone(I)||(A?P[0]:[P[0],P[0]])),O.symbol=v(O.symbol,function(G){return G==="none"||G==="square"?"roundRect":G});var N=O.symbolSize;if(N!=null){var _=-1/0;t(N,function(G){G>_&&(_=G)}),O.symbolSize=v(N,function(G){return u(G,[0,_],[0,P[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:e,getValueState:e,getVisualMeta:e}),r=o;Y.exports=r},94404:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(17010),C=n(7357),D=n(5660),S=T.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(p,v){this.ecModel=p,this.api=v,this.visualMapModel},render:function(p,v,t,s){if(this.visualMapModel=p,p.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(p){var v=this.visualMapModel,t=w.normalizeCssArray(v.get("padding")||0),s=p.getBoundingRect();p.add(new M.Rect({z2:-1,silent:!0,shape:{x:s.x-t[3],y:s.y-t[0],width:s.width+t[3]+t[1],height:s.height+t[0]+t[2]},style:{fill:v.get("backgroundColor"),stroke:v.get("borderColor"),lineWidth:v.get("borderWidth")}}))},getControllerVisual:function(p,v,t){t=t||{};var s=t.forceState,i=this.visualMapModel,a={};if(v==="symbol"&&(a.symbol=i.get("itemSymbol")),v==="color"){var u=i.get("contentColor");a.color=u}function e(h){return a[h]}function o(h,f){a[h]=f}var r=i.controllerVisuals[s||i.getValueState(p)],l=D.prepareVisualTypes(r);return L.each(l,function(h){var f=r[h];t.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",f=r.__alphaForOpacity),D.dependsOn(h,v)&&f&&f.applyVisual(p,e,o)}),a[v]},positionGroup:function(p){var v=this.visualMapModel,t=this.api;C.positionElement(p,v.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})},doRender:L.noop});Y.exports=S},26135:function(Y,V,n){var T=n(69008),L=n(7357),M=L.getLayoutRect;function w(D,S,p){var v=D.option,t=v.align;if(t!=null&&t!=="auto")return t;for(var s={width:S.getWidth(),height:S.getHeight()},i=v.orient==="horizontal"?1:0,a=[["left","right","width"],["top","bottom","height"]],u=a[i],e=[0,null,10],o={},r=0;r<3;r++)o[a[1-i][r]]=e[r],o[u[r]]=r===2?p[0]:v[u[r]];var l=[["x","width",3],["y","height",0]][i],h=M(o,s,v.padding);return u[(h.margin[l[2]]||0)+h[l[0]]+h[l[1]]*.50:L.splitNumber>0)||L.calculable)?"continuous":"piecewise"})},86053:function(Y,V,n){var T=n(3096),L=n(69008),M=n(75986),w=n(5660),C=T.PRIORITY.VISUAL.COMPONENT;T.registerVisual(C,{createOnAllSeries:!0,reset:function(S,p){var v=[];return p.eachComponent("visualMap",function(t){var s=S.pipelineContext;!t.isTargetSeries(S)||s&&s.large||v.push(M.incrementalApplyVisual(t.stateList,t.targetVisuals,L.bind(t.getValueState,t),t.getDataDimension(S.getData())))}),v}}),T.registerVisual(C,{createOnAllSeries:!0,reset:function(S,p){var v=S.getData(),t=[];p.eachComponent("visualMap",function(s){if(s.isTargetSeries(S)){var i=s.getVisualMeta(L.bind(D,null,S,s))||{stops:[],outerColors:[]},a=s.getDataDimension(v),u=v.getDimensionInfo(a);u!=null&&(i.dimension=u.index,t.push(i))}}),S.getData().setVisual("visualMeta",t)}});function D(S,p,v,t){for(var s=p.targetVisuals[t],i=w.prepareVisualTypes(s),a={color:S.getData().getVisual("color")},u=0,e=i.length;u=h&&r<=f},containData:function(r){return this.scale.contain(r)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(r){return D(r||this.scale.getExtent(),this._extent)},setExtent:function(r,l){var h=this._extent;h[0]=r,h[1]=l},dataToCoord:function(r,l){var h=this._extent,f=this.scale;return r=f.normalize(r),this.onBand&&f.type==="ordinal"&&(h=h.slice(),u(h,f.count())),C(r,i,h,l)},coordToData:function(r,l){var h=this._extent,f=this.scale;this.onBand&&f.type==="ordinal"&&(h=h.slice(),u(h,f.count()));var c=C(r,h,i,l);return this.scale.scale(c)},pointToData:function(r,l){},getTicksCoords:function(r){r=r||{};var l=r.tickModel||this.getTickModel(),h=v(this,l),f=h.ticks,c=M(f,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this),d=l.get("alignWithLabel");return e(this,c,d,r.clamp),c},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var r=this.model.getModel("minorTick"),l=r.get("splitNumber");l>0&&l<100||(l=5);var h=this.scale.getMinorTicks(l),f=M(h,function(c){return M(c,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this);return f},getViewLabels:function(){return t(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var r=this._extent,l=this.scale.getExtent(),h=l[1]-l[0]+(this.onBand?1:0);h===0&&(h=1);var f=Math.abs(r[1]-r[0]);return Math.abs(f)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return s(this)}};function u(r,l){var h=r[1]-r[0],f=l,c=h/f/2;r[0]+=c,r[1]-=c}function e(r,l,h,f){var c=l.length;if(!r.onBand||h||!c)return;var d=r.getExtent(),A,x;if(c===1)l[0].coord=d[0],A=l[1]={coord:d[0]};else{var y=l[c-1].tickValue-l[0].tickValue,g=(l[c-1].coord-l[0].coord)/y;L(l,function(R){R.coord-=g/2});var m=r.scale.getExtent();x=1+m[1]-l[c-1].tickValue,A={coord:l[c-1].coord+g*x},l.push(A)}var b=d[0]>d[1];I(l[0].coord,d[0])&&(f?l[0].coord=d[0]:l.shift()),f&&I(d[0],l[0].coord)&&l.unshift({coord:d[0]}),I(d[1],A.coord)&&(f?A.coord=d[1]:l.pop()),f&&I(A.coord,d[1])&&l.push({coord:d[1]});function I(R,E){return R=S(R),E=S(E),b?R>E:R0&&b>0&&!O&&(m=0),m<0&&b<0&&!N&&(b=0));var _=y.ecModel;if(_&&g==="time"){var G=v("bar",_),F;if(M.each(G,function(H){F|=H.getBaseAxis()===y.axis}),F){var W=t(G),U=u(m,b,y,W);m=U.min,b=U.max}}return{extent:[m,b],fixMin:O,fixMax:N}}function u(x,y,g,m){var b=g.axis.getExtent(),I=b[1]-b[0],R=s(m,g.axis);if(R===void 0)return{min:x,max:y};var E=1/0;M.each(R,function(F){E=Math.min(F.offset,E)});var P=-1/0;M.each(R,function(F){P=Math.max(F.offset+F.width,P)}),E=Math.abs(E),P=Math.abs(P);var O=E+P,N=y-x,_=1-(E+P)/I,G=N/_-N;return y+=G*(P/O),x-=G*(E/O),{min:x,max:y}}function e(x,y){var g=a(x,y),m=g.extent,b=y.get("splitNumber");x.type==="log"&&(x.base=y.get("logBase"));var I=x.type;x.setExtent(m[0],m[1]),x.niceExtent({splitNumber:b,fixMin:g.fixMin,fixMax:g.fixMax,minInterval:I==="interval"||I==="time"?y.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?y.get("maxInterval"):null});var R=y.get("interval");R!=null&&x.setInterval&&x.setInterval(R)}function o(x,y){if(y=y||x.get("type"),y)switch(y){case"category":return new w(x.getOrdinalMeta?x.getOrdinalMeta():x.getCategories(),[1/0,-1/0]);case"value":return new C;default:return(D.getClass(y)||C).create(x)}}function r(x){var y=x.scale.getExtent(),g=y[0],m=y[1];return!(g>0&&m>0||g<0&&m<0)}function l(x){var y=x.getLabelModel().get("formatter"),g=x.type==="category"?x.scale.getExtent()[0]:null;return typeof y=="string"?(y=function(m){return function(b){return b=x.scale.getLabel(b),m.replace("{value}",b!=null?b:"")}}(y),y):typeof y=="function"?function(m,b){return g!=null&&(b=m-g),y(h(x,m),b)}:function(m){return x.scale.getLabel(m)}}function h(x,y){return x.type==="category"?x.scale.getLabel(y):y}function f(x){var y=x.model,g=x.scale;if(!(!y.get("axisLabel.show")||g.isBlank())){var m=x.type==="category",b,I,R=g.getExtent();m?I=g.count():(b=g.getTicks(),I=b.length);var E=x.getLabelModel(),P=l(x),O,N=1;I>40&&(N=Math.ceil(I/40));for(var _=0;_40&&(E=Math.max(1,Math.floor(R/40)));for(var P=I[0],O=x.dataToCoord(P+1)-x.dataToCoord(P),N=Math.abs(O*Math.cos(m)),_=Math.abs(O*Math.sin(m)),G=0,F=0;P<=I[1];P+=E){var W=0,U=0,H=L.getBoundingRect(g(P),y.font,"center","top");W=H.width*1.3,U=H.height*1.3,G=Math.max(G,W,7),F=Math.max(F,U,7)}var z=G/N,B=F/_;isNaN(z)&&(z=1/0),isNaN(B)&&(B=1/0);var k=Math.max(0,Math.floor(Math.min(z,B))),Z=v(x.model),X=x.getExtent(),K=Z.lastAutoInterval,Q=Z.lastTickCount;return K!=null&&Q!=null&&Math.abs(K-k)<=1&&Math.abs(Q-R)<=1&&K>k&&Z.axisExtend0===X[0]&&Z.axisExtend1===X[1]?k=K:(Z.lastTickCount=R,Z.lastAutoInterval=k,Z.axisExtend0=X[0],Z.axisExtend1=X[1]),k}function c(x){var y=x.getLabelModel();return{axisRotate:x.getRotate?x.getRotate():x.isHorizontal&&!x.isHorizontal()?90:0,labelRotate:y.get("rotate")||0,font:y.getFont()}}function d(x,y,g){var m=D(x),b=x.scale,I=b.getExtent(),R=x.getLabelModel(),E=[],P=Math.max((y||0)+1,1),O=I[0],N=b.count();O!==0&&P>1&&N/P>2&&(O=Math.round(Math.ceil(O/P)*P));var _=p(x),G=R.get("showMinLabel")||_,F=R.get("showMaxLabel")||_;G&&O!==I[0]&&U(I[0]);for(var W=O;W<=I[1];W+=P)U(W);F&&W-P!==I[1]&&U(I[1]);function U(H){E.push(g?H:{formattedLabel:m(H),rawLabel:b.getLabel(H),tickValue:H})}return E}function A(x,y,g){var m=x.scale,b=D(x),I=[];return T.each(m.getTicks(),function(R){var E=m.getLabel(R);y(R,E)&&I.push(g?R:{formattedLabel:b(R),rawLabel:E,tickValue:R})}),I}V.createAxisLabels=t,V.createAxisTicks=s,V.calculateCategoryInterval=f},29933:function(Y,V,n){var T=n(69008),L=n(7357),M=n(86957),w=n(33807),C=864e5;function D(v,t,s){this._model=v}D.prototype={constructor:D,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(v){v=M.parseDate(v);var t=v.getFullYear(),s=v.getMonth()+1;s=s<10?"0"+s:s;var i=v.getDate();i=i<10?"0"+i:i;var a=v.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t,m:s,d:i,day:a,time:v.getTime(),formatedDate:t+"-"+s+"-"+i,date:v}},getNextNDay:function(v,t){return t=t||0,t===0?this.getDateInfo(v):(v=new Date(this.getDateInfo(v).time),v.setDate(v.getDate()+t),this.getDateInfo(v))},update:function(v,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var s=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.get("cellSize").slice(),u=this._model.getBoxLayoutParams(),e=this._orient==="horizontal"?[s,7]:[7,s];T.each([0,1],function(h){l(a,h)&&(u[i[h]]=a[h]*e[h])});var o={width:t.getWidth(),height:t.getHeight()},r=this._rect=L.getLayoutRect(u,o);T.each([0,1],function(h){l(a,h)||(a[h]=r[i[h]]/e[h])});function l(h,f){return h[f]!=null&&h[f]!=="auto"}this._sw=a[0],this._sh=a[1]},dataToPoint:function(v,t){T.isArray(v)&&(v=v[0]),t==null&&(t=!0);var s=this.getDateInfo(v),i=this._rangeInfo,a=s.formatedDate;if(t&&!(s.time>=i.start.time&&s.timeu.end.time&&v.reverse(),v},_getRangeInfo:function(v){v=[this.getDateInfo(v[0]),this.getDateInfo(v[1])];var t;v[0].time>v[1].time&&(t=!0,v.reverse());var s=Math.floor(v[1].time/C)-Math.floor(v[0].time/C)+1,i=new Date(v[0].time),a=i.getDate(),u=v[1].date.getDate();i.setDate(a+s-1);var e=i.getDate();if(e!==u)for(var o=i.getTime()-v[1].time>0?1:-1;(e=i.getDate())!==u&&(i.getTime()-v[1].time)*o>0;)s-=o,i.setDate(e-o);var r=Math.floor((s+v[0].day+6)/7),l=t?-r+1:r-1;return t&&v.reverse(),{range:[v[0].formatedDate,v[1].formatedDate],start:v[0],end:v[1],allDay:s,weeks:r,nthWeek:l,fweek:v[0].day,lweek:v[1].day}},_getDateByWeeksAndDay:function(v,t,s){var i=this._getRangeInfo(s);if(v>i.weeks||v===0&&ti.lweek)return!1;var a=(v-1)*7-i.fweek+t,u=new Date(i.start.time);return u.setDate(i.start.d+a),this.getDateInfo(u)}},D.dimensions=D.prototype.dimensions,D.getDimensionsInfo=D.prototype.getDimensionsInfo,D.create=function(v,t){var s=[];return v.eachComponent("calendar",function(i){var a=new D(i,v,t);s.push(a),i.coordinateSystem=a}),v.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=s[i.get("calendarIndex")||0])}),s};function S(v,t,s,i){var a=s.calendarModel,u=s.seriesModel,e=a?a.coordinateSystem:u?u.coordinateSystem:null;return e===this?e[v](i):null}w.register("calendar",D);var p=D;Y.exports=p},66619:function(Y,V,n){var T=n(69008),L=n(16172),M=n(7357),w=M.getLayoutParams,C=M.sizeCalculable,D=M.mergeLayoutParam,S=L.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,s,i,a){var u=w(t);S.superApply(this,"init",arguments),p(t,u)},mergeOption:function(t,s){S.superApply(this,"mergeOption",arguments),p(this.option,t)}});function p(t,s){var i=t.cellSize;T.isArray(i)?i.length===1&&(i[1]=i[0]):i=t.cellSize=[i,i];var a=T.map([0,1],function(u){return C(s,u)&&(i[u]="auto"),i[u]!=null&&i[u]!=="auto"});D(t,s,{type:"box",ignoreSize:a})}var v=S;Y.exports=v},41675:function(Y){function V(n){var T=n.getRect(),L=n.getRangeInfo();return{coordSys:{type:"calendar",x:T.x,y:T.y,width:T.width,height:T.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:L.start,end:L.end,weeks:L.weeks,dayCount:L.allDay}},api:{coord:function(M,w){return n.dataToPoint(M,w)}}}}Y.exports=V},74384:function(Y,V,n){var T=n(69008),L=n(97694),M=function(C,D,S,p,v){L.call(this,C,D,S),this.type=p||"value",this.position=v||"bottom"};M.prototype={constructor:M,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var C=this.position;return C==="top"||C==="bottom"},getGlobalExtent:function(C){var D=this.getExtent();return D[0]=this.toGlobalCoord(D[0]),D[1]=this.toGlobalCoord(D[1]),C&&D[0]>D[1]&&D.reverse(),D},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(C,D){return this.coordToData(this.toLocalCoord(C[this.dim==="x"?0:1]),D)},toLocalCoord:null,toGlobalCoord:null},T.inherits(M,L);var w=M;Y.exports=w},75089:function(Y,V,n){var T=n(69008),L=n(16172),M=n(12089),w=n(5270),C=L.extend({type:"cartesian2dAxis",axis:null,init:function(){C.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){C.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){C.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function D(v,t){return t.type||(t.data?"category":"value")}T.merge(C.prototype,w);var S={offset:0};M("x",C,D,S),M("y",C,D,S);var p=C;Y.exports=p},52281:function(Y,V,n){var T=n(69008);function L(C){return this._axes[C]}var M=function(C){this._axes={},this._dimList=[],this.name=C||""};M.prototype={constructor:M,type:"cartesian",getAxis:function(C){return this._axes[C]},getAxes:function(){return T.map(this._dimList,L,this)},getAxesByScale:function(C){return C=C.toLowerCase(),T.filter(this.getAxes(),function(D){return D.scale.type===C})},addAxis:function(C){var D=C.dim;this._axes[D]=C,this._dimList.push(D)},dataToCoord:function(C){return this._dataCoordConvert(C,"dataToCoord")},coordToData:function(C){return this._dataCoordConvert(C,"coordToData")},_dataCoordConvert:function(C,D){for(var S=this._dimList,p=C instanceof Array?[]:{},v=0;v1?(m.width=d,m.height=d/y):(m.height=d,m.width=d*y),m.y=c[1]-m.height/2,m.x=c[0]-m.width/2}else f=u.getBoxLayoutParams(),f.aspect=y,m=D.getLayoutRect(f,{width:A,height:x});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(u.get("center")),this.setZoom(u.get("zoom"))}function s(u,e){w.each(e.get("geoCoord"),function(o,r){u.addGeoCoord(r,o)})}var i={dimensions:C.prototype.dimensions,create:function(u,e){var o=[];u.eachComponent("geo",function(l,h){var f=l.get("map"),c=l.get("aspectScale"),d=!0,A=v.retrieveMap(f);A&&A[0]&&A[0].type==="svg"?(c==null&&(c=1),d=!1):c==null&&(c=.75);var x=new C(f+h,f,l.get("nameMap"),d);x.aspectScale=c,x.zoomLimit=l.get("scaleLimit"),o.push(x),s(x,l),l.coordinateSystem=x,x.model=l,x.resize=t,x.resize(l,e)}),u.eachSeries(function(l){var h=l.get("coordinateSystem");if(h==="geo"){var f=l.get("geoIndex")||0;l.coordinateSystem=o[f]}});var r={};return u.eachSeriesByType("map",function(l){if(!l.getHostGeoModel()){var h=l.getMapType();r[h]=r[h]||[],r[h].push(l)}}),w.each(r,function(l,h){var f=w.map(l,function(d){return d.get("nameMap")}),c=new C(h,h,w.mergeAll(f));c.zoomLimit=w.retrieve.apply(null,w.map(l,function(d){return d.get("scaleLimit")})),o.push(c),c.resize=t,c.aspectScale=l[0].get("aspectScale"),c.resize(l[0],e),w.each(l,function(d){d.coordinateSystem=c,s(c,d)})}),o},getFilledRegions:function(u,e,o){for(var r=(u||[]).slice(),l=w.createHashMap(),h=0;h>1^-(a&1),u=u>>1^-(u&1),a+=t,u+=s,t=a,s=u,v.push([a/p,u/p])}return v}function C(D,S){return M(D),T.map(T.filter(D.features,function(p){return p.geometry&&p.properties&&p.geometry.coordinates.length>0}),function(p){var v=p.properties,t=p.geometry,s=t.coordinates,i=[];t.type==="Polygon"&&i.push({type:"polygon",exterior:s[0],interiors:s.slice(1)}),t.type==="MultiPolygon"&&T.each(s,function(u){u[0]&&i.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})});var a=new L(v[S||"name"],i,v.cp);return a.properties=v,a})}Y.exports=C},8058:function(Y,V,n){var T=n(69008);function L(w,C){return C=C||[0,0],T.map([0,1],function(D){var S=C[D],p=w[D]/2,v=[],t=[];return v[D]=S-p,t[D]=S+p,v[1-D]=t[1-D]=C[1-D],Math.abs(this.dataToPoint(v)[D]-this.dataToPoint(t)[D])},this)}function M(w){var C=w.getBoundingRect();return{coordSys:{type:"geo",x:C.x,y:C.y,width:C.width,height:C.height,zoom:w.getZoom()},api:{coord:function(D){return w.dataToPoint(D)},size:T.bind(L,w)}}}Y.exports=M},97292:function(Y,V,n){var T=n(69008),L=n(16172),M=n(76282),w=n(12089),C=n(86957),D=n(5270),S=L.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return M([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(s){var i=this.activeIntervals=T.clone(s);if(i)for(var a=i.length-1;a>=0;a--)C.asc(i[a])},getActiveState:function(s){var i=this.activeIntervals;if(!i.length)return"normal";if(s==null||isNaN(s))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=s&&s<=a[1])return"active"}else for(var u=0,e=i.length;u=A&&g<=A+d.axisLength&&m>=x&&m<=x+d.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(c,d){d.eachSeries(function(A){if(c.contains(A,d)){var x=A.getData();v(this.dimensions,function(y){var g=this._axesMap.get(y);g.scale.unionExtentFromData(x,x.mapDimension(y)),w.niceScaleExtent(g.scale,g.model)},this)}},this)},resize:function(c,d){this._rect=M.getLayoutRect(c.getBoxLayoutParams(),{width:d.getWidth(),height:d.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var c=this._model,d=this._rect,A=["x","y"],x=["width","height"],y=c.get("layout"),g=y==="horizontal"?0:1,m=d[x[g]],b=[0,m],I=this.dimensions.length,R=r(c.get("axisExpandWidth"),b),E=r(c.get("axisExpandCount")||0,[0,I]),P=c.get("axisExpandable")&&I>3&&I>E&&E>1&&R>0&&m>0,O=c.get("axisExpandWindow"),N;if(O)N=r(O[1]-O[0],b),O[1]=O[0]+N;else{N=r(R*(E-1),b);var _=c.get("axisExpandCenter")||i(I/2);O=[R*_-N/2],O[1]=O[0]+N}var G=(m-N)/(I-E);G<3&&(G=0);var F=[i(u(O[0]/R,1))+1,a(u(O[1]/R,1))-1],W=G/R*O[0];return{layout:y,pixelDimIndex:g,layoutBase:d[A[g]],layoutLength:m,axisBase:d[A[1-g]],axisLength:d[x[1-g]],axisExpandable:P,axisExpandWidth:R,axisCollapseWidth:G,axisExpandWindow:O,axisCount:I,winInnerIndices:F,axisExpandWindow0Pos:W}},_layoutAxes:function(){var c=this._rect,d=this._axesMap,A=this.dimensions,x=this._makeLayoutInfo(),y=x.layout;d.each(function(g){var m=[0,x.axisLength],b=g.inverse?1:0;g.setExtent(m[b],m[1-b])}),v(A,function(g,m){var b=(x.axisExpandable?h:l)(m,x),I={horizontal:{x:b.position,y:x.axisLength},vertical:{x:0,y:b.position}},R={horizontal:e/2,vertical:0},E=[I[y].x+c.x,I[y].y+c.y],P=R[y],O=L.create();L.rotate(O,O,P),L.translate(O,O,E),this._axesLayout[g]={position:E,rotation:P,transform:O,axisNameAvailableWidth:b.axisNameAvailableWidth,axisLabelShow:b.axisLabelShow,nameTruncateMaxWidth:b.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(c){return this._axesMap.get(c)},dataToPoint:function(c,d){return this.axisCoordToPoint(this._axesMap.get(d).dataToCoord(c),d)},eachActiveState:function(c,d,A,x){A==null&&(A=0),x==null&&(x=c.count());var y=this._axesMap,g=this.dimensions,m=[],b=[];T.each(g,function(G){m.push(c.mapDimension(G)),b.push(y.get(G).model)});for(var I=this.hasAxisBrushed(),R=A;Ry*(1-E[0])?(I="jump",b=m-y*(1-E[2])):(b=m-y*E[1])>=0&&(b=m-y*(1-E[1]))<=0&&(b=0),b*=d.axisExpandWidth/R,b?p(b,x,g,"all"):I="none";else{var y=x[1]-x[0],O=g[1]*m/y;x=[s(0,O-y/2)],x[1]=t(g[1],x[0]+y),x[0]=x[1]-y}return{axisExpandWindow:x,behavior:I}}};function r(c,d){return t(s(c,d[0]),d[1])}function l(c,d){var A=d.layoutLength/(d.axisCount-1);return{position:A*c,axisNameAvailableWidth:A,axisLabelShow:!0}}function h(c,d){var A=d.layoutLength,x=d.axisExpandWidth,y=d.axisCount,g=d.axisCollapseWidth,m=d.winInnerIndices,b,I=g,R=!1,E;return cf?f=d:(c.lastTickCount=a,c.lastAutoInterval=f),f}},T.inherits(S,M);var p=S;Y.exports=p},98138:function(Y,V,n){var T=n(69008),L=n(16172),M=n(12089),w=n(5270),C=L.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});T.merge(C.prototype,w);var D={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function S(p,v){return v.type||(v.data?"category":"value")}M("angle",C,S,D.angle),M("radius",C,S,D.radius)},68338:function(Y,V,n){var T=n(14989),L=n(6797),M=function(C){this.name=C||"",this.cx=0,this.cy=0,this._radiusAxis=new T,this._angleAxis=new L,this._radiusAxis.polar=this._angleAxis.polar=this};M.prototype={type:"polar",axisPointerEnabled:!0,constructor:M,dimensions:["radius","angle"],model:null,containPoint:function(C){var D=this.pointToCoord(C);return this._radiusAxis.contain(D[0])&&this._angleAxis.contain(D[1])},containData:function(C){return this._radiusAxis.containData(C[0])&&this._angleAxis.containData(C[1])},getAxis:function(C){return this["_"+C+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(C){var D=[],S=this._angleAxis,p=this._radiusAxis;return S.scale.type===C&&D.push(S),p.scale.type===C&&D.push(p),D},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(C){var D=this._angleAxis;return C===D?this._radiusAxis:D},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(C){var D=C!=null&&C!=="auto"?this.getAxis(C):this.getBaseAxis();return{baseAxes:[D],otherAxes:[this.getOtherAxis(D)]}},dataToPoint:function(C,D){return this.coordToPoint([this._radiusAxis.dataToRadius(C[0],D),this._angleAxis.dataToAngle(C[1],D)])},pointToData:function(C,D){var S=this.pointToCoord(C);return[this._radiusAxis.radiusToData(S[0],D),this._angleAxis.angleToData(S[1],D)]},pointToCoord:function(C){var D=C[0]-this.cx,S=C[1]-this.cy,p=this.getAngleAxis(),v=p.getExtent(),t=Math.min(v[0],v[1]),s=Math.max(v[0],v[1]);p.inverse?t=s-360:s=t+360;var i=Math.sqrt(D*D+S*S);D/=i,S/=i;for(var a=Math.atan2(-S,D)/Math.PI*180,u=as;)a+=u*360;return[i,a]},coordToPoint:function(C){var D=C[0],S=C[1]/180*Math.PI,p=Math.cos(S)*D+this.cx,v=-Math.sin(S)*D+this.cy;return[p,v]},getArea:function(){var C=this.getAngleAxis(),D=this.getRadiusAxis(),S=D.getExtent().slice();S[0]>S[1]&&S.reverse();var p=C.getExtent(),v=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:S[0],r:S[1],startAngle:-p[0]*v,endAngle:-p[1]*v,clockwise:C.inverse,contain:function(t,s){var i=t-this.cx,a=s-this.cy,u=i*i+a*a,e=this.r,o=this.r0;return u<=e*e&&u>=o*o}}}};var w=M;Y.exports=w},15001:function(Y,V,n){var T=n(3096);n(98138);var L=T.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(M){var w,C=this.ecModel;return C.eachComponent(M,function(D){D.getCoordSysModel()===this&&(w=D)},this),w},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});Y.exports=L},14989:function(Y,V,n){var T=n(69008),L=n(97694);function M(C,D){L.call(this,"radius",C,D),this.type="category"}M.prototype={constructor:M,pointToData:function(C,D){return this.polar.pointToData(C,D)[this.dim==="radius"?0:1]},dataToRadius:L.prototype.dataToCoord,radiusToData:L.prototype.coordToData},T.inherits(M,L);var w=M;Y.exports=w},49900:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(68338),C=n(86957),D=C.parsePercent,S=n(44815),p=S.createScaleByModel,v=S.niceScaleExtent,t=n(33807),s=n(22240),i=s.getStackedDimension;n(15001);function a(r,l,h){var f=l.get("center"),c=h.getWidth(),d=h.getHeight();r.cx=D(f[0],c),r.cy=D(f[1],d);var A=r.getRadiusAxis(),x=Math.min(c,d)/2,y=l.get("radius");y==null?y=[0,"100%"]:M.isArray(y)||(y=[0,y]),y=[D(y[0],x),D(y[1],x)],A.inverse?A.setExtent(y[1],y[0]):A.setExtent(y[0],y[1])}function u(r,l){var h=this,f=h.getAngleAxis(),c=h.getRadiusAxis();if(f.scale.setExtent(1/0,-1/0),c.scale.setExtent(1/0,-1/0),r.eachSeries(function(x){if(x.coordinateSystem===h){var y=x.getData();M.each(y.mapDimension("radius",!0),function(g){c.scale.unionExtentFromData(y,i(y,g))}),M.each(y.mapDimension("angle",!0),function(g){f.scale.unionExtentFromData(y,i(y,g))})}}),v(f.scale,f.model),v(c.scale,c.model),f.type==="category"&&!f.onBand){var d=f.getExtent(),A=360/f.scale.count();f.inverse?d[1]+=A:d[1]-=A,f.setExtent(d[0],d[1])}}function e(r,l){if(r.type=l.get("type"),r.scale=p(l),r.onBand=l.get("boundaryGap")&&r.type==="category",r.inverse=l.get("inverse"),l.mainType==="angleAxis"){r.inverse^=l.get("clockwise");var h=l.get("startAngle");r.setExtent(h,h+(r.inverse?-360:360))}l.axis=r,r.model=l}var o={dimensions:w.prototype.dimensions,create:function(r,l){var h=[];return r.eachComponent("polar",function(f,c){var d=new w(c);d.update=u;var A=d.getRadiusAxis(),x=d.getAngleAxis(),y=f.findAxisModel("radiusAxis"),g=f.findAxisModel("angleAxis");e(A,y),e(x,g),a(d,f,l),h.push(d),f.coordinateSystem=d,d.model=f}),r.eachSeries(function(f){if(f.get("coordinateSystem")==="polar"){var c=r.queryComponents({mainType:"polar",index:f.get("polarIndex"),id:f.get("polarId")})[0];f.coordinateSystem=c.coordinateSystem}}),h}};t.register("polar",o)},69171:function(Y,V,n){var T=n(69008);function L(w,C){return T.map(["Radius","Angle"],function(D,S){var p=this["get"+D+"Axis"](),v=C[S],t=w[S]/2,s="dataTo"+D,i=p.type==="category"?p.getBandWidth():Math.abs(p[s](v-t)-p[s](v+t));return D==="Angle"&&(i=i*Math.PI/180),i},this)}function M(w){var C=w.getRadiusAxis(),D=w.getAngleAxis(),S=C.getExtent();return S[0]>S[1]&&S.reverse(),{coordSys:{type:"polar",cx:w.cx,cy:w.cy,r:S[1],r0:S[0]},api:{coord:T.bind(function(p){var v=C.dataToRadius(p[0]),t=D.dataToAngle(p[1]),s=w.coordToPoint([v,t]);return s.push(v,t*Math.PI/180),s}),size:T.bind(L,w)}}}Y.exports=M},20671:function(Y,V,n){var T=n(69008),L=n(97694);function M(C,D,S){L.call(this,C,D,S),this.type="value",this.angle=0,this.name="",this.model}T.inherits(M,L);var w=M;Y.exports=w},37292:function(Y,V,n){var T=n(69008),L=n(20671),M=n(48149),w=n(86957),C=n(44815),D=C.getScaleExtent,S=C.niceScaleExtent,p=n(33807),v=n(64763);function t(i,a,u){this._model=i,this.dimensions=[],this._indicatorAxes=T.map(i.getIndicatorModels(),function(e,o){var r="indicator_"+o,l=new L(r,e.get("axisType")==="log"?new v:new M);return l.name=e.get("name"),l.model=e,e.axis=l,this.dimensions.push(r),l},this),this.resize(i,u),this.cx,this.cy,this.r,this.r0,this.startAngle}t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(i,a){var u=this._indicatorAxes[a];return this.coordToPoint(u.dataToCoord(i),a)},t.prototype.coordToPoint=function(i,a){var u=this._indicatorAxes[a],e=u.angle,o=this.cx+i*Math.cos(e),r=this.cy-i*Math.sin(e);return[o,r]},t.prototype.pointToData=function(i){var a=i[0]-this.cx,u=i[1]-this.cy,e=Math.sqrt(a*a+u*u);a/=e,u/=e;for(var o=Math.atan2(-u,a),r=1/0,l,h=-1,f=0;ff[0]&&isFinite(m)&&isFinite(f[0]))}else{var b=d.getTicks().length-1;b>o&&(y=r(y));var g=Math.ceil(f[1]/y)*y,m=w.round(g-y*o);d.setExtent(m,g),d.setInterval(y)}})},t.dimensions=[],t.create=function(i,a){var u=[];return i.eachComponent("radar",function(e){var o=new t(e,i,a);u.push(o),e.coordinateSystem=o}),i.eachSeriesByType("radar",function(e){e.get("coordinateSystem")==="radar"&&(e.coordinateSystem=u[e.get("radarIndex")||0])}),u},p.register("radar",t);var s=t;Y.exports=s},924:function(Y,V,n){var T=n(3096),L=n(69008),M=n(61466),w=n(24040),C=n(5270),D=M.valueAxis;function S(t,s){return L.defaults({show:s},t)}var p=T.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),s=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),u=this.get("axisTick"),e=this.get("axisType"),o=this.get("axisLabel"),r=this.get("name"),l=this.get("name.show"),h=this.get("name.formatter"),f=this.get("nameGap"),c=this.get("triggerEvent"),d=L.map(this.get("indicator")||[],function(A){A.max!=null&&A.max>0&&!A.min?A.min=0:A.min!=null&&A.min<0&&!A.max&&(A.max=0);var x=r;if(A.color!=null&&(x=L.defaults({color:A.color},r)),A=L.merge(L.clone(A),{boundaryGap:t,splitNumber:s,scale:i,axisLine:a,axisTick:u,axisType:e,axisLabel:o,name:A.text,nameLocation:"end",nameGap:f,nameTextStyle:x,triggerEvent:c},!1),l||(A.name=""),typeof h=="string"){var y=A.name;A.name=h.replace("{value}",y!=null?y:"")}else typeof h=="function"&&(A.name=h(A.name,A));var g=L.extend(new w(A,null,this.ecModel),C);return g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this.getIndicatorModels=function(){return d}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:L.merge({lineStyle:{color:"#bbb"}},D.axisLine),axisLabel:S(D.axisLabel,!1),axisTick:S(D.axisTick,!1),axisType:"interval",splitLine:S(D.splitLine,!0),splitArea:S(D.splitArea,!0),indicator:[]}}),v=p;Y.exports=v},44526:function(Y,V,n){var T=n(69008),L=n(16172),M=n(12089),w=n(5270),C=L.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),D={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function S(v,t){return t.type||(t.data?"category":"value")}T.merge(C.prototype,w),M("single",C,S,D);var p=C;Y.exports=p},10018:function(Y,V,n){var T=n(7164),L=n(44815),M=n(7357),w=M.getLayoutRect,C=n(69008),D=C.each;function S(v,t,s){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(v,t,s),this.model=v}S.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:S,_init:function(v,t,s){var i=this.dimension,a=new T(i,L.createScaleByModel(v),[0,0],v.get("type"),v.get("position")),u=a.type==="category";a.onBand=u&&v.get("boundaryGap"),a.inverse=v.get("inverse"),a.orient=v.get("orient"),v.axis=a,a.model=v,a.coordinateSystem=this,this._axis=a},update:function(v,t){v.eachSeries(function(s){if(s.coordinateSystem===this){var i=s.getData();D(i.mapDimension(this.dimension,!0),function(a){this._axis.scale.unionExtentFromData(i,a)},this),L.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(v,t){this._rect=w({left:v.get("left"),top:v.get("top"),right:v.get("right"),bottom:v.get("bottom"),width:v.get("width"),height:v.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var v=this._rect,t=this._axis,s=t.isHorizontal(),i=s?[0,v.width]:[0,v.height],a=t.reverse?1:0;t.setExtent(i[a],i[1-a]),this._updateAxisTransform(t,s?v.x:v.y)},_updateAxisTransform:function(v,t){var s=v.getExtent(),i=s[0]+s[1],a=v.isHorizontal();v.toGlobalCoord=a?function(u){return u+t}:function(u){return i-u+t},v.toLocalCoord=a?function(u){return u-t}:function(u){return i-u+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(v){var t=this.getRect(),s=this.getAxis(),i=s.orient;return i==="horizontal"?s.contain(s.toLocalCoord(v[0]))&&v[1]>=t.y&&v[1]<=t.y+t.height:s.contain(s.toLocalCoord(v[1]))&&v[0]>=t.y&&v[0]<=t.y+t.height},pointToData:function(v){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(v[t.orient==="horizontal"?0:1]))]},dataToPoint:function(v){var t=this.getAxis(),s=this.getRect(),i=[],a=t.orient==="horizontal"?0:1;return v instanceof Array&&(v=v[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+v)),i[1-a]=a===0?s.y+s.height/2:s.x+s.width/2,i}};var p=S;Y.exports=p},7164:function(Y,V,n){var T=n(69008),L=n(97694),M=function(C,D,S,p,v){L.call(this,C,D,S),this.type=p||"value",this.position=v||"bottom",this.orient=null};M.prototype={constructor:M,model:null,isHorizontal:function(){var C=this.position;return C==="top"||C==="bottom"},pointToData:function(C,D){return this.coordinateSystem.pointToData(C,D)[0]},toGlobalCoord:null,toLocalCoord:null},T.inherits(M,L);var w=M;Y.exports=w},66848:function(Y,V,n){var T=n(69008);function L(w,C){var D=this.getAxis(),S=C instanceof Array?C[0]:C,p=(w instanceof Array?w[0]:w)/2;return D.type==="category"?D.getBandWidth():Math.abs(D.dataToCoord(S-p)-D.dataToCoord(S+p))}function M(w){var C=w.getRect();return{coordSys:{type:"singleAxis",x:C.x,y:C.y,width:C.width,height:C.height},api:{coord:function(D){return w.dataToPoint(D)},size:T.bind(L,w)}}}Y.exports=M},76203:function(Y,V,n){var T=n(69008);function L(M,w){w=w||{};var C=M.coordinateSystem,D=M.axis,S={},p=D.position,v=D.orient,t=C.getRect(),s=[t.x,t.x+t.width,t.y,t.y+t.height],i={horizontal:{top:s[2],bottom:s[3]},vertical:{left:s[0],right:s[1]}};S.position=[v==="vertical"?i.vertical[p]:s[0],v==="horizontal"?i.horizontal[p]:s[3]];var a={horizontal:0,vertical:1};S.rotation=Math.PI/2*a[v];var u={top:-1,bottom:1,right:1,left:-1};S.labelDirection=S.tickDirection=S.nameDirection=u[p],M.get("axisTick.inside")&&(S.tickDirection=-S.tickDirection),T.retrieve(w.labelInside,M.get("axisLabel.inside"))&&(S.labelDirection=-S.labelDirection);var e=w.rotate;return e==null&&(e=M.get("axisLabel.rotate")),S.labelRotation=p==="top"?-e:e,S.z2=1,S}V.layout=L},7797:function(Y,V,n){var T=n(10018),L=n(33807);function M(w,C){var D=[];return w.eachComponent("singleAxis",function(S,p){var v=new T(S,w,C);v.name="single_"+p,v.resize(S,C),S.coordinateSystem=v,D.push(v)}),w.eachSeries(function(S){if(S.get("coordinateSystem")==="singleAxis"){var p=w.queryComponents({mainType:"singleAxis",index:S.get("singleAxisIndex"),id:S.get("singleAxisId")})[0];S.coordinateSystem=p&&p.coordinateSystem}}),D}L.register("single",{create:M,dimensions:T.prototype.dimensions})},82383:function(Y){function V(M){return M}function n(M,w,C,D,S){this._old=M,this._new=w,this._oldKeyGetter=C||V,this._newKeyGetter=D||V,this.context=S}n.prototype={constructor:n,add:function(M){return this._add=M,this},update:function(M){return this._update=M,this},remove:function(M){return this._remove=M,this},execute:function(){var M=this._old,w=this._new,C={},D={},S=[],p=[],v;for(T(M,C,S,"_oldKeyGetter",this),T(w,D,p,"_newKeyGetter",this),v=0;v=0&&a.call(u,e[r],r)},p.eachEdge=function(a,u){for(var e=this.edges,o=e.length,r=0;r=0&&e[r].node1.dataIndex>=0&&e[r].node2.dataIndex>=0&&a.call(u,e[r],r)},p.breadthFirstTraverse=function(a,u,e,o){if(v.isInstance(u)||(u=this._nodesMap[D(u)]),!!u){for(var r=e==="out"?"outEdges":e==="in"?"inEdges":"edges",l=0;l=0&&f.node2.dataIndex>=0});for(var r=0,l=o.length;r=0&&this[a][u].setItemVisual(this.dataIndex,e,o)},getVisual:function(e,o){return this[a][u].getItemVisual(this.dataIndex,e,o)},setLayout:function(e,o){this.dataIndex>=0&&this[a][u].setItemLayout(this.dataIndex,e,o)},getLayout:function(){return this[a][u].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][u].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][u].getRawIndex(this.dataIndex)}}};M.mixin(v,s("hostGraph","data")),M.mixin(t,s("hostGraph","edgeData")),S.Node=v,S.Edge=t,C(v),C(t);var i=S;Y.exports=i},39177:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(24040),C=n(82383),D=n(50751),S=n(17751),p=S.defaultDimValueGetters,v=S.DefaultDataProvider,t=n(28176),s=t.summarizeDimensions,i=n(83250),a=M.isObject,u="undefined",e=-1,o="e\0\0",r={float:typeof Float64Array===u?Array:Float64Array,int:typeof Int32Array===u?Array:Int32Array,ordinal:Array,number:Array,time:Array},l=typeof Uint32Array===u?Array:Uint32Array,h=typeof Int32Array===u?Array:Int32Array,f=typeof Uint16Array===u?Array:Uint16Array;function c(z){return z._rawCount>65535?l:f}function d(z){var B=z.constructor;return B===Array?z.slice():new B(z)}var A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function y(z,B){M.each(A.concat(B.__wrappedMethods||[]),function(k){B.hasOwnProperty(k)&&(z[k]=B[k])}),z.__wrappedMethods=B.__wrappedMethods,M.each(x,function(k){z[k]=M.clone(B[k])}),z._calculationInfo=M.extend(B._calculationInfo)}var g=function(z,B){z=z||["x","y"];for(var k={},Z=[],X={},K=0;Kgt[1]&&(gt[1]=ut)}B&&(this._nameList[st]=B[ot])}this._rawCount=this._count=tt,this._extent={},I(this)},m._initDataFromProvider=function(z,B){if(!(z>=B)){for(var k=this._chunkSize,Z=this._rawData,X=this._storage,K=this.dimensions,Q=K.length,J=this._dimensionInfos,tt=this._nameList,q=this._idList,rt=this._rawExtent,$=this._nameRepeatCount={},j,st=this._chunkCount,ot=0;otht[1]&&(ht[1]=lt)}if(!Z.pure){var pt=tt[ut];if(it&&pt==null){if(it.name!=null)tt[ut]=pt=it.name;else if(j!=null){var mt=K[j],ft=X[mt][gt];if(ft){pt=ft[Ct];var xt=J[mt].ordinalMeta;xt&&xt.categories.length&&(pt=xt.categories[pt])}}}var Mt=it==null?null:it.id;Mt==null&&pt!=null&&($[pt]=$[pt]||0,Mt=pt,$[pt]>0&&(Mt+="__ec__"+$[pt]),$[pt]++),Mt!=null&&(q[ut]=Mt)}}!Z.persistent&&Z.clean&&Z.clean(),this._rawCount=this._count=B,this._extent={},I(this)}};function b(z,B,k,Z,X){var K=r[B.type],Q=Z-1,J=B.name,tt=z[J][Q];if(tt&&tt.length=0&&B=0&&BJ&&(J=q)}return K=[Q,J],this._extent[z]=K,K},m.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},m.setApproximateExtent=function(z,B){B=this.getDimension(B),this._approximateExtent[B]=z.slice()},m.getCalculationInfo=function(z){return this._calculationInfo[z]},m.setCalculationInfo=function(z,B){a(z)?M.extend(this._calculationInfo,z):this._calculationInfo[z]=B},m.getSum=function(z){var B=this._storage[z],k=0;if(B)for(var Z=0,X=this.count();Z=this._rawCount||z<0)return-1;if(!this._indices)return z;var B=this._indices,k=B[z];if(k!=null&&kz)X=K-1;else return K}return-1},m.indicesOfNearest=function(z,B,k){var Z=this._storage,X=Z[z],K=[];if(!X)return K;k==null&&(k=1/0);for(var Q=1/0,J=-1,tt=0,q=0,rt=this.count();q=0&&J<0)&&(Q=j,J=$,tt=0),$===J&&(K[tt++]=q))}return K.length=tt,K},m.getRawIndex=E;function E(z){return z}function P(z){return z=0?this._indices[z]:-1}m.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var B=[],k=0;k=q&&ut<=rt||isNaN(ut))&&(Q[J++]=j),j++}$=!0}else if(Z===2){for(var st=this._storage[tt],gt=this._storage[B[1]],Ct=z[B[1]][0],bt=z[B[1]][1],ot=0;ot=q&&ut<=rt||isNaN(ut))&&(lt>=Ct&<<=bt||isNaN(lt))&&(Q[J++]=j),j++}$=!0}}if(!$)if(Z===1)for(var it=0;it=q&&ut<=rt||isNaN(ut))&&(Q[J++]=ht)}else for(var it=0;itz[mt][1])&&(pt=!1)}pt&&(Q[J++]=this.getRawIndex(it))}return J=0?(X[J]=F(K[J]),Z._rawExtent[J]=W(),Z._extent[J]=null):X[J]=K[J])}return Z}function F(z){for(var B=new Array(z.length),k=0;kbt[1]&&(bt[1]=Ct)}}}return X},m.downSample=function(z,B,k,Z){for(var X=G(this,[z]),K=X._storage,Q=[],J=Math.floor(1/B),tt=K[z],q=this.count(),rt=this._chunkSize,$=X._rawExtent[z],j=new(c(this))(q),st=0,ot=0;otq-ot&&(J=q-ot,Q.length=J);for(var vt=0;vt$[1]&&($[1]=gt),j[st++]=Ct}return X._count=st,X._indices=j,X.getRawIndex=P,X},m.getItemModel=function(z){var B=this.hostModel;return new w(this.getRawDataItem(z),B,B&&B.ecModel)},m.diff=function(z){var B=this;return new C(z?z.getIndices():[],this.getIndices(),function(k){return O(z,k)},function(k){return O(B,k)})},m.getVisual=function(z){var B=this._visual;return B&&B[z]},m.setVisual=function(z,B){if(a(z)){for(var k in z)z.hasOwnProperty(k)&&this.setVisual(k,z[k]);return}this._visual=this._visual||{},this._visual[z]=B},m.setLayout=function(z,B){if(a(z)){for(var k in z)z.hasOwnProperty(k)&&this.setLayout(k,z[k]);return}this._layout[z]=B},m.getLayout=function(z){return this._layout[z]},m.getItemLayout=function(z){return this._itemLayouts[z]},m.setItemLayout=function(z,B,k){this._itemLayouts[z]=k?M.extend(this._itemLayouts[z]||{},B):B},m.clearItemLayouts=function(){this._itemLayouts.length=0},m.getItemVisual=function(z,B,k){var Z=this._itemVisuals[z],X=Z&&Z[B];return X==null&&!k?this.getVisual(B):X},m.setItemVisual=function(z,B,k){var Z=this._itemVisuals[z]||{},X=this.hasItemVisual;if(this._itemVisuals[z]=Z,a(B)){for(var K in B)B.hasOwnProperty(K)&&(Z[K]=B[K],X[K]=!0);return}Z[B]=k,X[B]=!0},m.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var U=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};m.setItemGraphicEl=function(z,B){var k=this.hostModel;B&&(B.dataIndex=z,B.dataType=this.dataType,B.seriesIndex=k&&k.seriesIndex,B.type==="group"&&B.traverse(U,B)),this._graphicEls[z]=B},m.getItemGraphicEl=function(z){return this._graphicEls[z]},m.eachItemGraphicEl=function(z,B){M.each(this._graphicEls,function(k,Z){k&&z&&z.call(B,k,Z)})},m.cloneShallow=function(z){if(!z){var B=M.map(this.dimensions,this.getDimensionInfo,this);z=new g(B,this.hostModel)}if(z._storage=this._storage,y(z,this),this._indices){var k=this._indices.constructor;z._indices=new k(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?P:E,z},m.wrapMethod=function(z,B){var k=this[z];typeof k=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var Z=k.apply(this,arguments);return B.apply(this,[Z].concat(M.slice(arguments)))})},m.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],m.CHANGABLE_METHODS=["filterSelf","selectRange"];var H=g;Y.exports=H},82139:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.isObject,w=T.map;function C(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}C.createByAxisModel=function(t){var s=t.option,i=s.data,a=i&&w(i,p);return new C({categories:a,needCollect:!a,deduplication:s.dedplication!==!1})};var D=C.prototype;D.getOrdinal=function(t){return S(this).get(t)},D.parseAndCollect=function(t){var s,i=this._needCollect;if(typeof t!="string"&&!i)return t;if(i&&!this._deduplication)return s=this.categories.length,this.categories[s]=t,s;var a=S(this);return s=a.get(t),s==null&&(i?(s=this.categories.length,this.categories[s]=t,a.set(t,s)):s=NaN),s};function S(t){return t._map||(t._map=L(t.categories))}function p(t){return M(t)&&t.value!=null?t.value:t+""}var v=C;Y.exports=v},50751:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.isTypedArray,w=n(77305),C=w.enableClassCheck,D=n(8326),S=D.SOURCE_FORMAT_ORIGINAL,p=D.SERIES_LAYOUT_BY_COLUMN,v=D.SOURCE_FORMAT_UNKNOWN,t=D.SOURCE_FORMAT_TYPED_ARRAY,s=D.SOURCE_FORMAT_KEYED_COLUMNS;function i(u){this.fromDataset=u.fromDataset,this.data=u.data||(u.sourceFormat===s?{}:[]),this.sourceFormat=u.sourceFormat||v,this.seriesLayoutBy=u.seriesLayoutBy||p,this.dimensionsDefine=u.dimensionsDefine,this.encodeDefine=u.encodeDefine&&L(u.encodeDefine),this.startIndex=u.startIndex||0,this.dimensionsDetectCount=u.dimensionsDetectCount}i.seriesDataToSource=function(u){return new i({data:u,sourceFormat:M(u)?t:S,fromDataset:!1})},C(i);var a=i;Y.exports=a},54327:function(Y,V,n){var T=n(69008),L=n(24040),M=n(6333),w=n(39177),C=n(34476),D=function(t,s){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=s};D.prototype={constructor:D,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,s,i){typeof t=="function"&&(i=s,s=t,t=null),t=t||{},T.isString(t)&&(t={order:t});var a=t.order||"preorder",u=this[t.attr||"children"],e;a==="preorder"&&(e=s.call(i,this));for(var o=0;!e&&os&&(s=a.height)}this.height=s+1},getNodeById:function(t){if(this.getId()===t)return this;for(var s=0,i=this.children,a=i.length;s=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,s)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var s=this.hostTree,i=s.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a?i.getModel(t,a.getModel(t)):i.getModel(t)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,s){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,s)},getVisual:function(t,s){return this.hostTree.data.getItemVisual(this.dataIndex,t,s)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var s=t.parentNode;s;){if(s===this)return!0;s=s.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}};function S(t,s){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=T.map(s||[],function(i){return new L(i,t,t.ecModel)})}S.prototype={constructor:S,type:"tree",eachNode:function(t,s,i){this.root.eachNode(t,s,i)},getNodeByDataIndex:function(t){var s=this.data.getRawIndex(t);return this._nodes[s]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,s=this._nodes,i=0,a=s.length;i0&&nt.unfinished);nt.unfinished||this._zr.flush()}}},vt.getDom=function(){return this._dom},vt.getZr=function(){return this._zr},vt.setOption=function(nt,dt,At){if(this._disposed){this.id;return}var wt;if(O(dt)&&(At=dt.lazyUpdate,wt=dt.silent,dt=dt.notMerge),this[q]=!0,!this._model||dt){var Lt=new i(this._api),It=this._theme,Et=this._model=new v;Et.scheduler=this._scheduler,Et.init(null,null,It,Lt)}this._model.setOption(nt,Jt),At?(this[rt]={silent:wt},this[q]=!1):(ut(this),it.update.call(this),this._zr.flush(),this[rt]=!1,this[q]=!1,et.call(this,wt),lt.call(this,wt))},vt.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},vt.getModel=function(){return this._model},vt.getOption=function(){return this._model&&this._model.getOption()},vt.getWidth=function(){return this._zr.getWidth()},vt.getHeight=function(){return this._zr.getHeight()},vt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},vt.getRenderedCanvas=function(nt){if(D.canvasSupported){nt=nt||{},nt.pixelRatio=nt.pixelRatio||1,nt.backgroundColor=nt.backgroundColor||this._model.get("backgroundColor");var dt=this._zr;return dt.painter.getRenderedCanvas(nt)}},vt.getSvgDataURL=function(){if(D.svgSupported){var nt=this._zr,dt=nt.storage.getDisplayList();return w.each(dt,function(At){At.stopAnimation(!0)}),nt.painter.toDataURL()}},vt.getDataURL=function(nt){if(this._disposed){this.id;return}nt=nt||{};var dt=nt.excludeComponents,At=this._model,wt=[],Lt=this;E(dt,function(Et){At.eachComponent({mainType:Et},function(zt){var Ot=Lt._componentsMap[zt.__viewId];Ot.group.ignore||(wt.push(Ot),Ot.group.ignore=!0)})});var It=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(nt).toDataURL("image/"+(nt&&nt.type||"png"));return E(wt,function(Et){Et.group.ignore=!1}),It},vt.getConnectedDataURL=function(nt){if(this._disposed){this.id;return}if(D.canvasSupported){var dt=nt.type==="svg",At=this.group,wt=Math.min,Lt=Math.max,It=1/0;if(ve[At]){var Et=It,zt=It,Ot=-It,Ht=-It,Ut=[],kt=nt&&nt.pixelRatio||1;w.each(se,function(fe,Te){if(fe.group===At){var De=dt?fe.getZr().painter.getSvgDom().innerHTML:fe.getRenderedCanvas(w.clone(nt)),xe=fe.getDom().getBoundingClientRect();Et=wt(xe.left,Et),zt=wt(xe.top,zt),Ot=Lt(xe.right,Ot),Ht=Lt(xe.bottom,Ht),Ut.push({dom:De,left:xe.left,top:xe.top})}}),Et*=kt,zt*=kt,Ot*=kt,Ht*=kt;var re=Ot-Et,ee=Ht-zt,ue=w.createCanvas(),ce=M.init(ue,{renderer:dt?"svg":"canvas"});if(ce.resize({width:re,height:ee}),dt){var Ae="";return E(Ut,function(fe){var Te=fe.left-Et,De=fe.top-zt;Ae+=''+fe.dom+""}),ce.painter.getSvgRoot().innerHTML=Ae,nt.connectedBackgroundColor&&ce.painter.setBackgroundColor(nt.connectedBackgroundColor),ce.refreshImmediately(),ce.painter.toDataURL()}else return nt.connectedBackgroundColor&&ce.add(new h.Rect({shape:{x:0,y:0,width:re,height:ee},style:{fill:nt.connectedBackgroundColor}})),E(Ut,function(fe){var Te=new h.Image({style:{x:fe.left*kt-Et,y:fe.top*kt-zt,image:fe.dom}});ce.add(Te)}),ce.refreshImmediately(),ue.toDataURL("image/"+(nt&&nt.type||"png"))}else return this.getDataURL(nt)}},vt.convertToPixel=w.curry(yt,"convertToPixel"),vt.convertFromPixel=w.curry(yt,"convertFromPixel");function yt(nt,dt,At){if(this._disposed){this.id;return}var wt=this._model,Lt=this._coordSysMgr.getCoordinateSystems(),It;dt=f.parseFinder(wt,dt);for(var Et=0;Et=0&&w.each(Lt,function(Et){var zt=Et.coordinateSystem;if(zt&&zt.containPoint)wt|=!!zt.containPoint(dt);else if(It==="seriesModels"){var Ot=this._chartsMap[Et.__viewId];Ot&&Ot.containPoint&&(wt|=Ot.containPoint(dt,Et))}},this)},this),!!wt},vt.getVisual=function(nt,dt){var At=this._model;nt=f.parseFinder(At,nt,{defaultMainType:"series"});var wt=nt.seriesModel,Lt=wt.getData(),It=nt.hasOwnProperty("dataIndexInside")?nt.dataIndexInside:nt.hasOwnProperty("dataIndex")?Lt.indexOfRawIndex(nt.dataIndex):null;return It!=null?Lt.getItemVisual(It,dt):Lt.getVisual(dt)},vt.getViewOfComponentModel=function(nt){return this._componentsMap[nt.__viewId]},vt.getViewOfSeriesModel=function(nt){return this._chartsMap[nt.__viewId]};var it={prepareAndUpdate:function(nt){ut(this),it.update.call(this,nt)},update:function(nt){var dt=this._model,At=this._api,wt=this._zr,Lt=this._coordSysMgr,It=this._scheduler;if(dt){It.restoreData(dt,nt),It.performSeriesTasks(dt),Lt.create(dt,At),It.performDataProcessorTasks(dt,nt),Ct(this,dt),Lt.update(dt,At),mt(dt),It.performVisualTasks(dt,nt),ft(this,dt,At,nt);var Et=dt.get("backgroundColor")||"transparent";if(D.canvasSupported)wt.setBackgroundColor(Et);else{var zt=C.parse(Et);Et=C.stringify(zt,"rgb"),zt[3]===0&&(Et="transparent")}Pt(dt,At)}},updateTransform:function(nt){var dt=this._model,At=this,wt=this._api;if(dt){var Lt=[];dt.eachComponent(function(Et,zt){var Ot=At.getViewOfComponentModel(zt);if(Ot&&Ot.__alive)if(Ot.updateTransform){var Ht=Ot.updateTransform(zt,dt,wt,nt);Ht&&Ht.update&&Lt.push(Ot)}else Lt.push(Ot)});var It=w.createHashMap();dt.eachSeries(function(Et){var zt=At._chartsMap[Et.__viewId];if(zt.updateTransform){var Ot=zt.updateTransform(Et,dt,wt,nt);Ot&&Ot.update&&It.set(Et.uid,1)}else It.set(Et.uid,1)}),mt(dt),this._scheduler.performVisualTasks(dt,nt,{setDirty:!0,dirtyMap:It}),Mt(At,dt,wt,nt,It),Pt(dt,this._api)}},updateView:function(nt){var dt=this._model;dt&&(l.markUpdateMethod(nt,"updateView"),mt(dt),this._scheduler.performVisualTasks(dt,nt,{setDirty:!0}),ft(this,this._model,this._api,nt),Pt(dt,this._api))},updateVisual:function(nt){it.update.call(this,nt)},updateLayout:function(nt){it.update.call(this,nt)}};function ut(nt){var dt=nt._model,At=nt._scheduler;At.restorePipelines(dt),At.prepareStageTasks(),pt(nt,"component",dt,At),pt(nt,"chart",dt,At),At.plan()}function gt(nt,dt,At,wt,Lt){var It=nt._model;if(!wt){E(nt._componentsViews.concat(nt._chartsViews),Ht);return}var Et={};Et[wt+"Id"]=At[wt+"Id"],Et[wt+"Index"]=At[wt+"Index"],Et[wt+"Name"]=At[wt+"Name"];var zt={mainType:wt,query:Et};Lt&&(zt.subType=Lt);var Ot=At.excludeSeriesId;Ot!=null&&(Ot=w.createHashMap(f.normalizeToArray(Ot))),It&&It.eachComponent(zt,function(Ut){(!Ot||Ot.get(Ut.id)==null)&&Ht(nt[wt==="series"?"_chartsMap":"_componentsMap"][Ut.__viewId])},nt);function Ht(Ut){Ut&&Ut.__alive&&Ut[dt]&&Ut[dt](Ut.__model,It,nt._api,At)}}vt.resize=function(nt){if(this._disposed){this.id;return}this._zr.resize(nt);var dt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!dt){var At=dt.resetOption("media"),wt=nt&&nt.silent;this[q]=!0,At&&ut(this),it.update.call(this),this[q]=!1,et.call(this,wt),lt.call(this,wt)}};function Ct(nt,dt){var At=nt._chartsMap,wt=nt._scheduler;dt.eachSeries(function(Lt){wt.updateStreamModes(Lt,At[Lt.__viewId])})}vt.showLoading=function(nt,dt){if(this._disposed){this.id;return}if(O(nt)&&(dt=nt,nt=""),nt=nt||"default",this.hideLoading(),!!he[nt]){var At=he[nt](this._api,dt),wt=this._zr;this._loadingFX=At,wt.add(At)}},vt.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},vt.makeActionFromEvent=function(nt){var dt=w.extend({},nt);return dt.type=Yt[nt.type],dt},vt.dispatchAction=function(nt,dt){if(this._disposed){this.id;return}if(O(dt)||(dt={silent:!!dt}),!!_t[nt.type]&&this._model){if(this[q]){this._pendingActions.push(nt);return}bt.call(this,nt,dt.silent),dt.flush?this._zr.flush(!0):dt.flush!==!1&&D.browser.weChat&&this._throttledZrFlush(),et.call(this,dt.silent),lt.call(this,dt.silent)}};function bt(nt,dt){var At=nt.type,wt=nt.escapeConnect,Lt=_t[At],It=Lt.actionInfo,Et=(It.update||"update").split(":"),zt=Et.pop();Et=Et[0]!=null&&N(Et[0]),this[q]=!0;var Ot=[nt],Ht=!1;nt.batch&&(Ht=!0,Ot=w.map(nt.batch,function(ee){return ee=w.defaults(w.extend({},ee),nt),ee.batch=null,ee}));var Ut=[],kt,re=At==="highlight"||At==="downplay";E(Ot,function(ee){kt=Lt.action(ee,this._model,this._api),kt=kt||w.extend({},ee),kt.type=It.event||kt.type,Ut.push(kt),re?gt(this,zt,ee,"series"):Et&>(this,zt,ee,Et.main,Et.sub)},this),zt!=="none"&&!re&&!Et&&(this[rt]?(ut(this),it.update.call(this,nt),this[rt]=!1):it[zt].call(this,nt)),Ht?kt={type:It.event||At,escapeConnect:wt,batch:Ut}:kt=Ut[0],this[q]=!1,!dt&&this._messageCenter.trigger(kt.type,kt)}function et(nt){for(var dt=this._pendingActions;dt.length;){var At=dt.shift();bt.call(this,At,nt)}}function lt(nt){!nt&&this.trigger("updated")}function ht(nt,dt){nt.on("rendered",function(){dt.trigger("rendered"),nt.animation.isFinished()&&!dt[rt]&&!dt._scheduler.unfinished&&!dt._pendingActions.length&&dt.trigger("finished")})}vt.appendData=function(nt){if(this._disposed){this.id;return}var dt=nt.seriesIndex,At=this.getModel(),wt=At.getSeriesByIndex(dt);wt.appendData(nt),this._scheduler.unfinished=!0},vt.on=j("on",!1),vt.off=j("off",!1),vt.one=j("one",!1);function pt(nt,dt,At,wt){for(var Lt=dt==="component",It=Lt?nt._componentsViews:nt._chartsViews,Et=Lt?nt._componentsMap:nt._chartsMap,zt=nt._zr,Ot=nt._api,Ht=0;Htdt.get("hoverLayerThreshold")&&!D.node&&dt.eachSeries(function(It){if(!It.preventUsingHoverLayer){var Et=nt._chartsMap[It.__viewId];Et.__alive&&Et.group.traverse(function(zt){zt.useHoverLayer=!0})}})}function Gt(nt,dt){var At=nt.get("blendMode")||null;dt.group.traverse(function(wt){wt.isGroup||wt.style.blend!==At&&wt.setStyle("blend",At),wt.eachPendingDisplayable&&wt.eachPendingDisplayable(function(Lt){Lt.setStyle("blend",At)})})}function Ft(nt,dt){var At=nt.get("z"),wt=nt.get("zlevel");dt.group.traverse(function(Lt){Lt.type!=="group"&&(At!=null&&(Lt.z=At),wt!=null&&(Lt.zlevel=wt))})}function Kt(nt){var dt=nt._coordSysMgr;return w.extend(new t(nt),{getCoordinateSystems:w.bind(dt.getCoordinateSystems,dt),getComponentByElement:function(At){for(;At;){var wt=At.__ecComponentInfo;if(wt!=null)return nt._model.getComponent(wt.mainType,wt.index);At=At.parent}}})}function Qt(){this.eventInfo}Qt.prototype={constructor:Qt,normalizeQuery:function(nt){var dt={},At={},wt={};if(w.isString(nt)){var Lt=N(nt);dt.mainType=Lt.main||null,dt.subType=Lt.sub||null}else{var It=["Index","Name","Id"],Et={name:1,dataIndex:1,dataType:1};w.each(nt,function(zt,Ot){for(var Ht=!1,Ut=0;Ut0&&re===Ot.length-kt.length){var ee=Ot.slice(0,re);ee!=="data"&&(dt.mainType=ee,dt[kt.toLowerCase()]=zt,Ht=!0)}}Et.hasOwnProperty(Ot)&&(At[Ot]=zt,Ht=!0),Ht||(wt[Ot]=zt)})}return{cptQuery:dt,dataQuery:At,otherQuery:wt}},filter:function(nt,dt,At){var wt=this.eventInfo;if(!wt)return!0;var Lt=wt.targetEl,It=wt.packedEvent,Et=wt.model,zt=wt.view;if(!Et||!zt)return!0;var Ot=dt.cptQuery,Ht=dt.dataQuery;return Ut(Ot,Et,"mainType")&&Ut(Ot,Et,"subType")&&Ut(Ot,Et,"index","componentIndex")&&Ut(Ot,Et,"name")&&Ut(Ot,Et,"id")&&Ut(Ht,It,"name")&&Ut(Ht,It,"dataIndex")&&Ut(Ht,It,"dataType")&&(!zt.filterForExposedEvent||zt.filterForExposedEvent(nt,dt.otherQuery,Lt,It));function Ut(kt,re,ee,ue){return kt[ee]==null||re[ue||ee]===kt[ee]}},afterTrigger:function(){this.eventInfo=null}};var _t={},Yt={},Zt=[],Jt=[],jt=[],qt=[],oe={},he={},se={},ve={},ae=new Date-0,te=new Date-0,ie="_echarts_instance_";function at(nt){var dt=0,At=1,wt=2,Lt="__connectUpdateStatus";function It(Et,zt){for(var Ot=0;Ot0&&(b=b===null?R:Math.min(b,R))}y[g]=b}}return y}function e(A){var x=u(A),y=[];return T.each(A,function(g){var m=g.coordinateSystem,b=m.getBaseAxis(),I=b.getExtent(),R;if(b.type==="category")R=b.getBandWidth();else if(b.type==="value"||b.type==="time"){var E=b.dim+"_"+b.index,P=x[E],O=Math.abs(I[1]-I[0]),N=b.scale.getExtent(),_=Math.abs(N[1]-N[0]);R=P?O/_*P:O}else{var G=g.getData();R=Math.abs(I[1]-I[0])/G.count()}var F=M(g.get("barWidth"),R),W=M(g.get("barMaxWidth"),R),U=M(g.get("barMinWidth")||1,R),H=g.get("barGap"),z=g.get("barCategoryGap");y.push({bandWidth:R,barWidth:F,barMaxWidth:W,barMinWidth:U,barGap:H,barCategoryGap:z,axisKey:s(b),stackId:t(g)})}),o(y)}function o(A){var x={};T.each(A,function(g,m){var b=g.axisKey,I=g.bandWidth,R=x[b]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},E=R.stacks;x[b]=R;var P=g.stackId;E[P]||R.autoWidthCount++,E[P]=E[P]||{width:0,maxWidth:0};var O=g.barWidth;O&&!E[P].width&&(E[P].width=O,O=Math.min(R.remainedWidth,O),R.remainedWidth-=O);var N=g.barMaxWidth;N&&(E[P].maxWidth=N);var _=g.barMinWidth;_&&(E[P].minWidth=_);var G=g.barGap;G!=null&&(R.gap=G);var F=g.barCategoryGap;F!=null&&(R.categoryGap=F)});var y={};return T.each(x,function(g,m){y[m]={};var b=g.stacks,I=g.bandWidth,R=M(g.categoryGap,I),E=M(g.gap,1),P=g.remainedWidth,O=g.autoWidthCount,N=(P-R)/(O+(O-1)*E);N=Math.max(N,0),T.each(b,function(W){var U=W.maxWidth,H=W.minWidth;if(W.width){var z=W.width;U&&(z=Math.min(z,U)),H&&(z=Math.max(z,H)),W.width=z,P-=z+E*z,O--}else{var z=N;U&&Uz&&(z=H),z!==N&&(W.width=z,P-=z+E*z,O--)}}),N=(P-R)/(O+(O-1)*E),N=Math.max(N,0);var _=0,G;T.each(b,function(W,U){W.width||(W.width=N),G=W,_+=W.width*(1+E)}),G&&(_-=G.width*E);var F=-_/2;T.each(b,function(W,U){y[m][U]=y[m][U]||{bandWidth:I,offset:F,width:W.width},F+=W.width*(1+E)})}),y}function r(A,x,y){if(A&&x){var g=A[s(x)];return g!=null&&y!=null&&(g=g[t(y)]),g}}function l(A,x){var y=a(A,x),g=e(y),m={},b={};T.each(y,function(I){var R=I.getData(),E=I.coordinateSystem,P=E.getBaseAxis(),O=t(I),N=g[s(P)][O],_=N.offset,G=N.width,F=E.getOtherAxis(P),W=I.get("barMinHeight")||0;m[O]=m[O]||[],b[O]=b[O]||[],R.setLayout({bandWidth:N.bandWidth,offset:_,size:G});for(var U=R.mapDimension(F.dim),H=R.mapDimension(P.dim),z=C(R,U),B=F.isHorizontal(),k=d(P,F,z),Z=0,X=R.count();Z=0?"p":"n",tt=k;z&&(m[O][Q]||(m[O][Q]={p:k,n:k}),tt=m[O][Q][J]);var q,rt,$,j;if(B){var st=E.dataToPoint([K,Q]);q=tt,rt=st[1]+_,$=st[0]-k,j=G,Math.abs($)p||(O=p),{progress:N};function N(_,G){for(var F=_.count,W=new v(F*2),U=new v(F*2),H=new v(F),z,B=[],k=[],Z=0,X=0;(z=_.next())!=null;)k[P]=G.get(I,z),k[1-P]=G.get(R,z),B=y.dataToPoint(k,null,B),U[Z]=E?g.x+g.width:B[0],W[Z++]=B[0],U[Z]=E?B[1]:g.y+g.height,W[Z++]=B[1],H[X++]=z;G.setLayout({largePoints:W,largeDataIndices:H,largeBackgroundPoints:U,barWidth:O,valueAxisStart:d(m,b,!1),backgroundStart:E?g.x:g.y,valueAxisHorizontal:E})}}};function f(A){return A.coordinateSystem&&A.coordinateSystem.type==="cartesian2d"}function c(A){return A.pipelineContext&&A.pipelineContext.large}function d(A,x,y){return x.toGlobalCoord(x.dataToCoord(x.type==="log"?1:0))}V.getLayoutOnAxis=i,V.prepareLayoutBarSeries=a,V.makeColumnLayout=e,V.retrieveColumnLayout=r,V.layout=l,V.largeLayout=h},27116:function(Y,V,n){var T=n(69008),L=n(86957),M=L.parsePercent,w=n(22240),C=w.isDimensionStacked;function D(s){return s.get("stack")||"__ec_stack_"+s.seriesIndex}function S(s,i){return i.dim+s.model.componentIndex}function p(s,i,a){var u={},e=v(T.filter(i.getSeriesByType(s),function(o){return!i.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));i.eachSeriesByType(s,function(o){if(o.coordinateSystem.type==="polar"){var r=o.getData(),l=o.coordinateSystem,h=l.getBaseAxis(),f=S(l,h),c=D(o),d=e[f][c],A=d.offset,x=d.width,y=l.getOtherAxis(h),g=o.coordinateSystem.cx,m=o.coordinateSystem.cy,b=o.get("barMinHeight")||0,I=o.get("barMinAngle")||0;u[c]=u[c]||[];for(var R=r.mapDimension(y.dim),E=r.mapDimension(h.dim),P=C(r,R),O=h.dim!=="radius"||!o.get("roundCap",!0),N=y.getExtent()[0],_=0,G=r.count();_=0?"p":"n",H=N;P&&(u[c][W]||(u[c][W]={p:N,n:N}),H=u[c][W][U]);var z,B,k,Z;if(y.dim==="radius"){var X=y.dataToRadius(F)-N,K=h.dataToAngle(W);Math.abs(X)=0;f--)h=T.merge(h,o[f],!0);e.defaultOption=h}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});C(i,{registerWhenExtend:!0}),M.enableSubTypeDefaulter(i),M.enableTopologicalTravel(i,a);function a(e){var o=[];return T.each(i.getClassesByMainType(e),function(r){o=o.concat(r.prototype.dependencies||[])}),o=T.map(o,function(r){return D(r).main}),e!=="dataset"&&T.indexOf(o,"dataset")<=0&&o.unshift("dataset"),o}T.mixin(i,t);var u=i;Y.exports=u},77265:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.each,C=M.filter,D=M.map,S=M.isArray,p=M.indexOf,v=M.isObject,t=M.isString,s=M.createHashMap,i=M.assert,a=M.clone,u=M.merge,e=M.extend,o=M.mixin,r=n(90830),l=n(24040),h=n(16172),f=n(82724),c=n(17948),d=n(67063),A=d.resetSourceDefaulter,x="\0_ec_inner",y=l.extend({init:function(_,G,F,W){F=F||{},this.option=null,this._theme=new l(F),this._optionManager=W},setOption:function(_,G){i(!(x in _),"please use chart.getOption()"),this._optionManager.setOption(_,G),this.resetOption(null)},resetOption:function(_){var G=!1,F=this._optionManager;if(!_||_==="recreate"){var W=F.mountOption(_==="recreate");!this.option||_==="recreate"?b.call(this,W):(this.restoreData(),this.mergeOption(W)),G=!0}if((_==="timeline"||_==="media")&&this.restoreData(),!_||_==="recreate"||_==="timeline"){var U=F.getTimelineOption(this);U&&(this.mergeOption(U),G=!0)}if(!_||_==="recreate"||_==="media"){var H=F.getMediaOption(this,this._api);H.length&&w(H,function(z){this.mergeOption(z,G=!0)},this)}return G},mergeOption:function(_){var G=this.option,F=this._componentsMap,W=[];A(this),w(_,function(H,z){H!=null&&(h.hasClass(z)?z&&W.push(z):G[z]=G[z]==null?a(H):u(G[z],H,!0))}),h.topologicalTravel(W,h.getAllClassMainTypes(),U,this);function U(H,z){var B=r.normalizeToArray(_[H]),k=r.mappingToExists(F.get(H),B);r.makeIdAndName(k),w(k,function(X,K){var Q=X.option;v(Q)&&(X.keyInfo.mainType=H,X.keyInfo.subType=R(H,Q,X.exist))});var Z=I(F,z);G[H]=[],F.set(H,[]),w(k,function(X,K){var Q=X.exist,J=X.option;if(i(v(J)||Q,"Empty component definition"),!J)Q.mergeOption({},this),Q.optionUpdated({},!1);else{var tt=h.getClass(H,X.keyInfo.subType,!0);if(Q&&Q.constructor===tt)Q.name=X.keyInfo.name,Q.mergeOption(J,this),Q.optionUpdated(J,!1);else{var q=e({dependentModels:Z,componentIndex:K},X.keyInfo);Q=new tt(J,this,this,q),e(Q,q),Q.init(J,this,this,q),Q.optionUpdated(null,!0)}}F.get(H)[K]=Q,G[H][K]=Q.option},this),H==="series"&&E(this,F.get("series"))}this._seriesIndicesMap=s(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var _=a(this.option);return w(_,function(G,F){if(h.hasClass(F)){for(var G=r.normalizeToArray(G),W=G.length-1;W>=0;W--)r.isIdInner(G[W])&&G.splice(W,1);_[F]=G}}),delete _[x],_},getTheme:function(){return this._theme},getComponent:function(_,G){var F=this._componentsMap.get(_);if(F)return F[G||0]},queryComponents:function(_){var G=_.mainType;if(!G)return[];var F=_.index,W=_.id,U=_.name,H=this._componentsMap.get(G);if(!H||!H.length)return[];var z;if(F!=null)S(F)||(F=[F]),z=C(D(F,function(Z){return H[Z]}),function(Z){return!!Z});else if(W!=null){var B=S(W);z=C(H,function(Z){return B&&p(W,Z.id)>=0||!B&&Z.id===W})}else if(U!=null){var k=S(U);z=C(H,function(Z){return k&&p(U,Z.name)>=0||!k&&Z.name===U})}else z=H.slice();return P(z,_)},findComponents:function(_){var G=_.query,F=_.mainType,W=H(G),U=W?this.queryComponents(W):this._componentsMap.get(F);return z(P(U,_));function H(B){var k=F+"Index",Z=F+"Id",X=F+"Name";return B&&(B[k]!=null||B[Z]!=null||B[X]!=null)?{mainType:F,index:B[k],id:B[Z],name:B[X]}:null}function z(B){return _.filter?C(B,_.filter):B}},eachComponent:function(_,G,F){var W=this._componentsMap;if(typeof _=="function")F=G,G=_,W.each(function(H,z){w(H,function(B,k){G.call(F,z,B,k)})});else if(t(_))w(W.get(_),G,F);else if(v(_)){var U=this.findComponents(_);w(U,G,F)}},getSeriesByName:function(_){var G=this._componentsMap.get("series");return C(G,function(F){return F.name===_})},getSeriesByIndex:function(_){return this._componentsMap.get("series")[_]},getSeriesByType:function(_){var G=this._componentsMap.get("series");return C(G,function(F){return F.subType===_})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(_,G){w(this._seriesIndices,function(F){var W=this._componentsMap.get("series")[F];_.call(G,W,F)},this)},eachRawSeries:function(_,G){w(this._componentsMap.get("series"),_,G)},eachSeriesByType:function(_,G,F){w(this._seriesIndices,function(W){var U=this._componentsMap.get("series")[W];U.subType===_&&G.call(F,U,W)},this)},eachRawSeriesByType:function(_,G,F){return w(this.getSeriesByType(_),G,F)},isSeriesFiltered:function(_){return this._seriesIndicesMap.get(_.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(_,G){var F=C(this._componentsMap.get("series"),_,G);E(this,F)},restoreData:function(_){var G=this._componentsMap;E(this,G.get("series"));var F=[];G.each(function(W,U){F.push(U)}),h.topologicalTravel(F,h.getAllClassMainTypes(),function(W,U){w(G.get(W),function(H){(W!=="series"||!g(H,_))&&H.restoreData()})})}});function g(_,G){if(G){var F=G.seiresIndex,W=G.seriesId,U=G.seriesName;return F!=null&&_.componentIndex!==F||W!=null&&_.id!==W||U!=null&&_.name!==U}}function m(_,G){var F=_.color&&!_.colorLayer;w(G,function(W,U){U==="colorLayer"&&F||h.hasClass(U)||(typeof W=="object"?_[U]=_[U]?u(_[U],W,!1):a(W):_[U]==null&&(_[U]=W))})}function b(_){_=_,this.option={},this.option[x]=1,this._componentsMap=s({series:[]}),this._seriesIndices,this._seriesIndicesMap,m(_,this._theme.option),u(_,f,!1),this.mergeOption(_)}function I(_,G){S(G)||(G=G?[G]:[]);var F={};return w(G,function(W){F[W]=(_.get(W)||[]).slice()}),F}function R(_,G,F){var W=G.type?G.type:F?F.subType:h.determineSubType(_,G);return W}function E(_,G){_._seriesIndicesMap=s(_._seriesIndices=D(G,function(F){return F.componentIndex})||[])}function P(_,G){return G.hasOwnProperty("subType")?C(_,function(F){return F.subType===G.subType}):_}function O(_){}o(y,c);var N=y;Y.exports=N},24040:function(Y,V,n){var T=n(69008),L=n(12973),M=n(90830),w=M.makeInner,C=n(77305),D=C.enableClassExtend,S=C.enableClassCheck,p=n(14870),v=n(72935),t=n(3596),s=n(24782),i=T.mixin,a=w();function u(l,h,f){this.parentModel=h,this.ecModel=f,this.option=l}u.prototype={constructor:u,init:null,mergeOption:function(l){T.merge(this.option,l,!0)},get:function(l,h){return l==null?this.option:e(this.option,this.parsePath(l),!h&&o(this,l))},getShallow:function(l,h){var f=this.option,c=f==null?f:f[l],d=!h&&o(this,l);return c==null&&d&&(c=d.getShallow(l)),c},getModel:function(l,h){var f=l==null?this.option:e(this.option,l=this.parsePath(l)),c;return h=h||(c=o(this,l))&&c.getModel(l),new u(f,h,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var l=this.constructor;return new l(T.clone(this.option))},setReadOnly:function(l){},parsePath:function(l){return typeof l=="string"&&(l=l.split(".")),l},customizeGetParent:function(l){a(this).getParent=l},isAnimationEnabled:function(){if(!L.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function e(l,h,f){for(var c=0;c=r:l==="max"?o<=r:o===r}function a(o,r){return o.join(",")===r.join(",")}function u(o,r){r=r||{},w(r,function(l,h){if(l!=null){var f=o[h];if(!M.hasClass(h))o[h]=S(f,l,!0);else{l=L.normalizeToArray(l),f=L.normalizeToArray(f);var c=L.mappingToExists(f,l);o[h]=D(c,function(d){return d.option&&d.exist?S(d.exist,d.option,!0):d.exist||d.option})}}})}var e=v;Y.exports=e},38645:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(12973),C=n(17010),D=C.formatTime,S=C.encodeHTML,p=C.addCommas,v=C.getTooltipMarker,t=n(90830),s=n(16172),i=n(17948),a=n(64530),u=n(7357),e=u.getLayoutParams,o=u.mergeLayoutParam,r=n(222),l=r.createTask,h=n(67063),f=h.prepareSource,c=h.getSource,d=n(17751),A=d.retrieveRawValue,x=t.makeInner(),y=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(_,G,F,W){this.seriesIndex=this.componentIndex,this.dataTask=l({count:b,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(_,F),f(this);var U=this.getInitialData(_,F);E(U,this),this.dataTask.context.data=U,x(this).dataBeforeProcessed=U,g(this)},mergeDefaultAndTheme:function(_,G){var F=this.layoutMode,W=F?e(_):{},U=this.subType;s.hasClass(U)&&(U+="Series"),M.merge(_,G.getTheme().get(this.subType)),M.merge(_,this.getDefaultOption()),t.defaultEmphasis(_,"label",["show"]),this.fillDataTextStyle(_.data),F&&o(_,W,F)},mergeOption:function(_,G){_=M.merge(this.option,_,!0),this.fillDataTextStyle(_.data);var F=this.layoutMode;F&&o(this.option,_,F),f(this);var W=this.getInitialData(_,G);E(W,this),this.dataTask.dirty(),this.dataTask.context.data=W,x(this).dataBeforeProcessed=W,g(this)},fillDataTextStyle:function(_){if(_&&!M.isTypedArray(_))for(var G=["show"],F=0;F<_.length;F++)_[F]&&_[F].label&&t.defaultEmphasis(_[F],"label",G)},getInitialData:function(){},appendData:function(_){var G=this.getRawData();G.appendData(_.data)},getData:function(_){var G=O(this);if(G){var F=G.context.data;return _==null?F:F.getLinkedData(_)}else return x(this).data},setData:function(_){var G=O(this);if(G){var F=G.context;F.data!==_&&G.modifyOutputEnd&&G.setOutputEnd(_.count()),F.outputData=_,G!==this.dataTask&&(F.data=_)}x(this).data=_},getSource:function(){return c(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var _=this.coordinateSystem;return _&&_.getBaseAxis&&_.getBaseAxis()},formatTooltip:function(_,G,F,W){var U=this;W=W||"html";var H=W==="html"?"
":` `,z=W==="richText",B={},k=0;function Z(gt){var Ct=M.reduce(gt,function(pt,mt,ft){var xt=K.getDimensionInfo(ft);return pt|=xt&&xt.tooltip!==!1&&xt.displayName!=null},0),bt=[];Q.length?M.each(Q,function(pt){et(A(K,_,pt),pt)}):M.each(gt,et);function et(pt,mt){var ft=K.getDimensionInfo(mt);if(!(!ft||ft.otherDims.tooltip===!1)){var xt=ft.type,Mt="sub"+U.seriesIndex+"at"+k,Pt=v({color:rt,type:"subItem",renderMode:W,markerId:Mt}),Rt=typeof Pt=="string"?Pt:Pt.content,Bt=(Ct?Rt+S(ft.displayName||"-")+": ":"")+S(xt==="ordinal"?pt+"":xt==="time"?G?"":D("yyyy/MM/dd hh:mm:ss",pt):p(pt));Bt&&bt.push(Bt),z&&(B[Mt]=rt,++k)}}var lt=Ct?z?` `:"
":"",ht=lt+bt.join(lt||", ");return{renderMode:W,content:ht,style:B}}function X(gt){return{renderMode:W,content:S(p(gt)),style:B}}var K=this.getData(),Q=K.mapDimension("defaultedTooltip",!0),J=Q.length,tt=this.getRawValue(_),q=M.isArray(tt),rt=K.getItemVisual(_,"color");M.isObject(rt)&&rt.colorStops&&(rt=(rt.colorStops[0]||{}).color),rt=rt||"transparent";var $=J>1||q&&!J?Z(tt):X(J?A(K,_,Q[0]):q?tt[0]:tt),j=$.content,st=U.seriesIndex+"at"+k,ot=v({color:rt,type:"item",renderMode:W,markerId:st});B[st]=rt,++k;var vt=K.getName(_),yt=this.name;t.isNameSpecified(this)||(yt=""),yt=yt?S(yt)+(G?": ":H):"";var it=typeof ot=="string"?ot:ot.content,ut=G?it+yt+j:yt+it+(vt?S(vt)+": "+j:j);return{html:ut,markers:B}},isAnimationEnabled:function(){if(w.node)return!1;var _=this.getShallow("animation");return _&&this.getData().count()>this.getShallow("animationThreshold")&&(_=!1),_},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(_,G,F){var W=this.ecModel,U=i.getColorFromPalette.call(this,_,G,F);return U||(U=W.getColorFromPalette(_,G,F)),U},coordDimToDataDim:function(_){return this.getRawData().mapDimension(_,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});M.mixin(y,a),M.mixin(y,i);function g(_){var G=_.name;t.isNameSpecified(_)||(_.name=m(_)||G)}function m(_){var G=_.getRawData(),F=G.mapDimension("seriesName",!0),W=[];return M.each(F,function(U){var H=G.getDimensionInfo(U);H.displayName&&W.push(H.displayName)}),W.join(" ")}function b(_){return _.model.getRawData().count()}function I(_){var G=_.model;return G.setData(G.getRawData().cloneShallow()),R}function R(_,G){G.outputData&&_.end>G.outputData.count()&&G.model.getRawData().cloneShallow(G.outputData)}function E(_,G){M.each(_.CHANGABLE_METHODS,function(F){_.wrapMethod(F,M.curry(P,G))})}function P(_){var G=O(_);G&&G.setOutputEnd(this.count())}function O(_){var G=(_.ecModel||{}).scheduler,F=G&&G.getPipeline(_.uid);if(F){var W=F.currentTask;if(W){var U=W.agentStubMap;U&&(W=U.get(_.uid))}return W}}var N=y;Y.exports=N},82724:function(Y){var V="";typeof navigator!="undefined"&&(V=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:V.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};Y.exports=n},72935:function(Y,V,n){var T=n(76282),L=T([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),M={getAreaStyle:function(w,C){return L(this,w,C)}};Y.exports=M},51483:function(Y){var V={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};Y.exports=V},17948:function(Y,V,n){var T=n(90830),L=T.makeInner,M=T.normalizeToArray,w=L();function C(S,p){for(var v=S.length,t=0;tp)return S[t];return S[v-1]}var D={clearColorPalette:function(){w(this).colorIdx=0,w(this).colorNameMap={}},getColorFromPalette:function(S,p,v){p=p||this;var t=w(p),s=t.colorIdx||0,i=t.colorNameMap=t.colorNameMap||{};if(i.hasOwnProperty(S))return i[S];var a=M(this.get("color",!0)),u=this.get("colorLayer",!0),e=v==null||!u?a:C(u,v);if(e=e||a,!(!e||!e.length)){var o=e[s];return S&&(i[S]=o),t.colorIdx=(s+1)%e.length,o}}};Y.exports=D},64530:function(Y,V,n){var T=n(17751),L=T.retrieveRawValue,M=n(17010),w=M.getTooltipMarker,C=M.formatTpl,D=n(90830),S=D.getTooltipRenderMode,p=/\{@(.+?)\}/g,v={getDataParams:function(t,s){var i=this.getData(s),a=this.getRawValue(t,s),u=i.getRawIndex(t),e=i.getName(t),o=i.getRawDataItem(t),r=i.getItemVisual(t,"color"),l=i.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),f=h&&h.get("renderMode"),c=S(f),d=this.mainType,A=d==="series",x=i.userOutput;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:A?this.subType:null,seriesIndex:this.seriesIndex,seriesId:A?this.id:null,seriesName:A?this.name:null,name:e,dataIndex:u,data:o,dataType:s,value:a,color:r,borderColor:l,dimensionNames:x?x.dimensionNames:null,encode:x?x.encode:null,marker:w({color:r,renderMode:c}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,s,i,a,u){s=s||"normal";var e=this.getData(i),o=e.getItemModel(t),r=this.getDataParams(t,i);a!=null&&r.value instanceof Array&&(r.value=r.value[a]);var l=o.get(s==="normal"?[u||"label","formatter"]:[s,u||"label","formatter"]);if(typeof l=="function")return r.status=s,r.dimensionIndex=a,l(r);if(typeof l=="string"){var h=C(l,r);return h.replace(p,function(f,c){var d=c.length;return c.charAt(0)==="["&&c.charAt(d-1)==="]"&&(c=+c.slice(1,d-1)),L(e,t,c)})}},getRawValue:function(t,s){return L(this.getData(s),t)},formatTooltip:function(){}};Y.exports=v},24782:function(Y,V,n){var T=n(76282),L=T([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),M={getItemStyle:function(w,C){var D=L(this,w,C),S=this.getBorderLineDash();return S&&(D.lineDash=S),D},getBorderLineDash:function(){var w=this.get("borderType");return w==="solid"||w==null?null:w==="dashed"?[5,5]:[1,1]}};Y.exports=M},14870:function(Y,V,n){var T=n(76282),L=T([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M={getLineStyle:function(w){var C=L(this,w);return C.lineDash=this.getLineDash(C.lineWidth),C},getLineDash:function(w){w==null&&(w=1);var C=this.get("type"),D=Math.max(w,2),S=w*4;return C==="solid"||C==null?!1:C==="dashed"?[S,S]:[D,D]}};Y.exports=M},76282:function(Y,V,n){var T=n(69008);function L(M){for(var w=0;w=0||S&&T.indexOf(S,t)<0)){var s=C.getShallow(t);s!=null&&(p[M[v][0]]=s)}}return p}}Y.exports=L},3596:function(Y,V,n){var T=n(63603),L=n(18993),M=["textStyle","color"],w={getTextColor:function(C){var D=this.ecModel;return this.getShallow("color")||(!C&&D?D.get(M):null)},getFont:function(){return L.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(C){return T.getBoundingRect(C,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};Y.exports=w},28927:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.createHashMap,C=M.retrieve,D=M.each;function S(s){this.coordSysName=s,this.coordSysDims=[],this.axisMap=w(),this.categoryAxisMap=w(),this.firstCategoryDimIndex=null}function p(s){var i=s.get("coordinateSystem"),a=new S(i),u=v[i];if(u)return u(s,a,a.axisMap,a.categoryAxisMap),a}var v={cartesian2d:function(s,i,a,u){var e=s.getReferringComponents("xAxis")[0],o=s.getReferringComponents("yAxis")[0];i.coordSysDims=["x","y"],a.set("x",e),a.set("y",o),t(e)&&(u.set("x",e),i.firstCategoryDimIndex=0),t(o)&&(u.set("y",o),i.firstCategoryDimIndex==null&(i.firstCategoryDimIndex=1))},singleAxis:function(s,i,a,u){var e=s.getReferringComponents("singleAxis")[0];i.coordSysDims=["single"],a.set("single",e),t(e)&&(u.set("single",e),i.firstCategoryDimIndex=0)},polar:function(s,i,a,u){var e=s.getReferringComponents("polar")[0],o=e.findAxisModel("radiusAxis"),r=e.findAxisModel("angleAxis");i.coordSysDims=["radius","angle"],a.set("radius",o),a.set("angle",r),t(o)&&(u.set("radius",o),i.firstCategoryDimIndex=0),t(r)&&(u.set("angle",r),i.firstCategoryDimIndex==null&&(i.firstCategoryDimIndex=1))},geo:function(s,i,a,u){i.coordSysDims=["lng","lat"]},parallel:function(s,i,a,u){var e=s.ecModel,o=e.getComponent("parallel",s.get("parallelIndex")),r=i.coordSysDims=o.dimensions.slice();D(o.parallelAxisIndex,function(l,h){var f=e.getComponent("parallelAxis",l),c=r[h];a.set(c,f),t(f)&&i.firstCategoryDimIndex==null&&(u.set(c,f),i.firstCategoryDimIndex=h)})}};function t(s){return s.get("type")==="category"}V.getCoordSysInfoBySeries=p},52375:function(Y,V,n){var T=n(69008),L=T.each,M=T.isArray,w=T.isObject,C=n(30090),D=n(90830),S=D.normalizeToArray;function p(u,e){e=e.split(",");for(var o=u,r=0;rM&&(M=L[w]);return isFinite(M)?M:NaN},min:function(L){for(var M=1/0,w=0;w1){var u;typeof S=="string"?u=V[S]:typeof S=="function"&&(u=S),u&&M.setData(D.downSample(D.mapDimension(t.dim),1/a,u,n))}}}}}Y.exports=T},61619:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.each;function w(D){var S=L();D.eachSeries(function(p){var v=p.get("stack");if(v){var t=S.get(v)||S.set(v,[]),s=p.getData(),i={stackResultDimension:s.getCalculationInfo("stackResultDimension"),stackedOverDimension:s.getCalculationInfo("stackedOverDimension"),stackedDimension:s.getCalculationInfo("stackedDimension"),stackedByDimension:s.getCalculationInfo("stackedByDimension"),isStackedByIndex:s.getCalculationInfo("isStackedByIndex"),data:s,seriesModel:p};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;t.length&&s.setCalculationInfo("stackedOnSeries",t[t.length-1].seriesModel),t.push(i)}}),S.each(C)}function C(D){M(D,function(S,p){var v=[],t=[NaN,NaN],s=[S.stackResultDimension,S.stackedOverDimension],i=S.data,a=S.isStackedByIndex,u=i.map(s,function(e,o,r){var l=i.get(S.stackedDimension,r);if(isNaN(l))return t;var h,f;a?f=i.getRawIndex(r):h=i.get(S.stackedByDimension,r);for(var c=NaN,d=p-1;d>=0;d--){var A=D[d];if(a||(f=A.data.rawIndexOf(A.stackedByDimension,h)),f>=0){var x=A.data.getByRawIndex(A.stackResultDimension,f);if(l>=0&&x>0||l<=0&&x<0){l+=x,c=x;break}}}return v[0]=l,v[1]=c,v});i.hostModel.setData(u),S.data=u})}Y.exports=w},48149:function(Y,V,n){var T=n(86957),L=n(17010),M=n(22510),w=n(74943),C=T.round,D=M.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(p,v){var t=this._extent;isNaN(p)||(t[0]=parseFloat(p)),isNaN(v)||(t[1]=parseFloat(v))},unionExtent:function(p){var v=this._extent;p[0]v[1]&&(v[1]=p[1]),D.prototype.setExtent.call(this,v[0],v[1])},getInterval:function(){return this._interval},setInterval:function(p){this._interval=p,this._niceExtent=this._extent.slice(),this._intervalPrecision=w.getIntervalPrecision(p)},getTicks:function(p){var v=this._interval,t=this._extent,s=this._niceExtent,i=this._intervalPrecision,a=[];if(!v)return a;var u=1e4;t[0]u)return[];var o=a.length?a[a.length-1]:s[1];return t[1]>o&&(p?a.push(C(o+v,i)):a.push(t[1])),a},getMinorTicks:function(p){for(var v=this.getTicks(!0),t=[],s=this.getExtent(),i=1;is[0]&&h0;)h*=10;var c=[M.round(t(r[0]/h)*h),M.round(v(r[1]/h)*h)];this._interval=h,this._niceExtent=c}},niceExtent:function(o){D.niceExtent.call(this,o);var r=this._originalScale;r.__fixMin=o.fixMin,r.__fixMax=o.fixMax}});T.each(["contain","normalize"],function(o){a.prototype[o]=function(r){return r=i(r)/i(this.base),C[o].call(this,r)}}),a.create=function(){return new a};function u(o,r){return p(o,S(r))}var e=a;Y.exports=e},43712:function(Y,V,n){var T=n(69008),L=n(22510),M=n(82139),w=L.prototype,C=L.extend({type:"ordinal",init:function(S,p){(!S||T.isArray(S))&&(S=new M({categories:S})),this._ordinalMeta=S,this._extent=p||[0,S.categories.length-1]},parse:function(S){return typeof S=="string"?this._ordinalMeta.getOrdinal(S):Math.round(S)},contain:function(S){return S=this.parse(S),w.contain.call(this,S)&&this._ordinalMeta.categories[S]!=null},normalize:function(S){return w.normalize.call(this,this.parse(S))},scale:function(S){return Math.round(w.scale.call(this,S))},getTicks:function(){for(var S=[],p=this._extent,v=p[0];v<=p[1];)S.push(v),v++;return S},getLabel:function(S){if(!this.isBlank())return this._ordinalMeta.categories[S]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(S,p){this.unionExtent(S.getApproximateExtent(p))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:T.noop,niceExtent:T.noop});C.create=function(){return new C};var D=C;Y.exports=D},22510:function(Y,V,n){var T=n(77305);function L(w){this._setting=w||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}L.prototype.parse=function(w){return w},L.prototype.getSetting=function(w){return this._setting[w]},L.prototype.contain=function(w){var C=this._extent;return w>=C[0]&&w<=C[1]},L.prototype.normalize=function(w){var C=this._extent;return C[1]===C[0]?.5:(w-C[0])/(C[1]-C[0])},L.prototype.scale=function(w){var C=this._extent;return w*(C[1]-C[0])+C[0]},L.prototype.unionExtent=function(w){var C=this._extent;w[0]C[1]&&(C[1]=w[1])},L.prototype.unionExtentFromData=function(w,C){this.unionExtent(w.getApproximateExtent(C))},L.prototype.getExtent=function(){return this._extent.slice()},L.prototype.setExtent=function(w,C){var D=this._extent;isNaN(w)||(D[0]=w),isNaN(C)||(D[1]=C)},L.prototype.isBlank=function(){return this._isBlank},L.prototype.setBlank=function(w){this._isBlank=w},L.prototype.getLabel=null,T.enableClassExtend(L),T.enableClassManagement(L,{registerWhenExtend:!0});var M=L;Y.exports=M},79262:function(Y,V,n){var T=n(69008),L=n(86957),M=n(17010),w=n(74943),C=n(48149),D=C.prototype,S=Math.ceil,p=Math.floor,v=1e3,t=v*60,s=t*60,i=s*24,a=function(r,l,h,f){for(;h>>1;r[c][1]h&&(d=h);var A=e.length,x=a(e,d,0,A),y=e[Math.min(x,A-1)],g=y[1];if(y[0]==="year"){var m=c/g,b=L.nice(m/r,!0);g*=b}var I=this.getSetting("useUTC")?0:new Date(+f[0]||+f[1]).getTimezoneOffset()*60*1e3,R=[Math.round(S((f[0]-I)/g)*g+I),Math.round(p((f[1]-I)/g)*g+I)];w.fixExtent(R,f),this._stepLvl=y,this._interval=g,this._niceExtent=R},parse:function(r){return+L.parseDate(r)}});T.each(["contain","normalize"],function(r){u.prototype[r]=function(l){return D[r].call(this,this.parse(l))}});var e=[["hh:mm:ss",v],["hh:mm:ss",v*5],["hh:mm:ss",v*10],["hh:mm:ss",v*15],["hh:mm:ss",v*30],[`hh:mm MM-dd`,t],[`hh:mm MM-dd`,t*5],[`hh:mm MM-dd`,t*10],[`hh:mm MM-dd`,t*15],[`hh:mm MM-dd`,t*30],[`hh:mm MM-dd`,s],[`hh:mm MM-dd`,s*2],[`hh:mm MM-dd`,s*6],[`hh:mm MM-dd`,s*12],[`MM-dd yyyy`,i],[`MM-dd yyyy`,i*2],[`MM-dd yyyy`,i*3],[`MM-dd yyyy`,i*4],[`MM-dd yyyy`,i*5],[`MM-dd yyyy`,i*6],["week",i*7],[`MM-dd yyyy`,i*10],["week",i*14],["week",i*21],["month",i*31],["week",i*42],["month",i*62],["week",i*70],["quarter",i*95],["month",i*31*4],["month",i*31*5],["half-year",i*380/2],["month",i*31*8],["month",i*31*10],["year",i*380]];u.create=function(r){return new u({useUTC:r.ecModel.get("useUTC")})};var o=u;Y.exports=o},74943:function(Y,V,n){var T=n(86957),L=T.round;function M(S,p,v,t){var s={},i=S[1]-S[0],a=s.interval=T.nice(i/p,!0);v!=null&&at&&(a=s.interval=t);var u=s.intervalPrecision=w(a),e=s.niceTickExtent=[L(Math.ceil(S[0]/a)*a,u),L(Math.floor(S[1]/a)*a,u)];return D(e,S),s}function w(S){return T.getPrecisionSafe(S)+2}function C(S,p,v){S[p]=Math.max(Math.min(S[p],v[1]),v[0])}function D(S,p){!isFinite(S[0])&&(S[0]=p[0]),!isFinite(S[1])&&(S[1]=p[1]),C(S,0,p),C(S,1,p),S[0]>S[1]&&(S[0]=S[1])}V.intervalScaleNiceTicks=M,V.getIntervalPrecision=w,V.fixExtent=D},69569:function(Y,V,n){var T=n(69008),L=T.each,M=T.map,w=T.isFunction,C=T.createHashMap,D=T.noop,S=n(222),p=S.createTask,v=n(58744),t=v.getUID,s=n(77265),i=n(6900),a=n(90830),u=a.normalizeToArray;function e(F,W,z,B){this.ecInstance=F,this.api=W,this.unfinished;var z=this._dataProcessorHandlers=z.slice(),B=this._visualHandlers=B.slice();this._allHandlers=z.concat(B),this._stageTaskMap=C()}var o=e.prototype;o.restoreData=function(F,W){F.restoreData(W),this._stageTaskMap.each(function(U){var H=U.overallTask;H&&H.dirty()})},o.getPerformArgs=function(F,W){if(F.__pipeline){var U=this._pipelineMap.get(F.__pipeline.id),H=U.context,z=!W&&U.progressiveEnabled&&(!H||H.progressiveRender)&&F.__idxInPipeline>U.blockIndex,B=z?U.step:null,k=H&&H.modDataCount,Z=k!=null?Math.ceil(k/B):null;return{step:B,modBy:Z,modDataCount:k}}},o.getPipeline=function(F){return this._pipelineMap.get(F)},o.updateStreamModes=function(F,W){var U=this._pipelineMap.get(F.uid),H=F.getData(),z=H.count(),B=U.progressiveEnabled&&W.incrementalPrepareRender&&z>=U.threshold,k=F.get("large")&&z>=F.get("largeThreshold"),Z=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=U.context={progressiveRender:B,modDataCount:Z,large:k}},o.restorePipelines=function(F){var W=this,U=W._pipelineMap=C();F.eachSeries(function(H){var z=H.getProgressive(),B=H.uid;U.set(B,{id:B,head:null,tail:null,threshold:H.getProgressiveThreshold(),progressiveEnabled:z&&!(H.preventIncremental&&H.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),R(W,H,H.dataTask)})},o.prepareStageTasks=function(){var F=this._stageTaskMap,W=this.ecInstance.getModel(),U=this.api;L(this._allHandlers,function(H){var z=F.get(H.uid)||F.set(H.uid,[]);H.reset&&h(this,H,z,W,U),H.overallReset&&f(this,H,z,W,U)},this)},o.prepareView=function(F,W,U,H){var z=F.renderTask,B=z.context;B.model=W,B.ecModel=U,B.api=H,z.__block=!F.incrementalPrepareRender,R(this,W,z)},o.performDataProcessorTasks=function(F,W){r(this,this._dataProcessorHandlers,F,W,{block:!0})},o.performVisualTasks=function(F,W,U){r(this,this._visualHandlers,F,W,U)};function r(F,W,U,H,z){z=z||{};var B;L(W,function(Z,X){if(!(z.visualType&&z.visualType!==Z.visualType)){var K=F._stageTaskMap.get(Z.uid),Q=K.seriesTaskMap,J=K.overallTask;if(J){var tt,q=J.agentStubMap;q.each(function($){k(z,$)&&($.dirty(),tt=!0)}),tt&&J.dirty(),l(J,H);var rt=F.getPerformArgs(J,z.block);q.each(function($){$.perform(rt)}),B|=J.perform(rt)}else Q&&Q.each(function($,j){k(z,$)&&$.dirty();var st=F.getPerformArgs($,z.block);st.skip=!Z.performRawSeries&&U.isSeriesFiltered($.context.model),l($,H),B|=$.perform(st)})}});function k(Z,X){return Z.setDirty&&(!Z.dirtyMap||Z.dirtyMap.get(X.__pipeline.id))}F.unfinished|=B}o.performSeriesTasks=function(F){var W;F.eachSeries(function(U){W|=U.dataTask.perform()}),this.unfinished|=W},o.plan=function(){this._pipelineMap.each(function(F){var W=F.tail;do{if(W.__block){F.blockIndex=W.__idxInPipeline;break}W=W.getUpstream()}while(W)})};var l=o.updatePayload=function(F,W){W!=="remain"&&(F.context.payload=W)};function h(F,W,U,H,z){var B=U.seriesTaskMap||(U.seriesTaskMap=C()),k=W.seriesType,Z=W.getTargetSeries;W.createOnAllSeries?H.eachRawSeries(X):k?H.eachRawSeriesByType(k,X):Z&&Z(H,z).each(X);function X(Q){var J=Q.uid,tt=B.get(J)||B.set(J,p({plan:y,reset:g,count:I}));tt.context={model:Q,ecModel:H,api:z,useClearVisual:W.isVisual&&!W.isLayout,plan:W.plan,reset:W.reset,scheduler:F},R(F,Q,tt)}var K=F._pipelineMap;B.each(function(Q,J){K.get(J)||(Q.dispose(),B.removeKey(J))})}function f(F,W,U,H,z){var B=U.overallTask=U.overallTask||p({reset:c});B.context={ecModel:H,api:z,overallReset:W.overallReset,scheduler:F};var k=B.agentStubMap=B.agentStubMap||C(),Z=W.seriesType,X=W.getTargetSeries,K=!0,Q=W.modifyOutputEnd;Z?H.eachRawSeriesByType(Z,J):X?X(H,z).each(J):(K=!1,L(H.getSeries(),J));function J(q){var rt=q.uid,$=k.get(rt);$||($=k.set(rt,p({reset:d,onDirty:x})),B.dirty()),$.context={model:q,overallProgress:K,modifyOutputEnd:Q},$.agent=B,$.__block=K,R(F,q,$)}var tt=F._pipelineMap;k.each(function(q,rt){tt.get(rt)||(q.dispose(),B.dirty(),k.removeKey(rt))})}function c(F){F.overallReset(F.ecModel,F.api,F.payload)}function d(F,W){return F.overallProgress&&A}function A(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function y(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function g(F){F.useClearVisual&&F.data.clearAllVisual();var W=F.resetDefines=u(F.reset(F.model,F.ecModel,F.api,F.payload));return W.length>1?M(W,function(U,H){return b(H)}):m}var m=b(0);function b(F){return function(W,U){var H=U.data,z=U.resetDefines[F];if(z&&z.dataEach)for(var B=W.start;B=1)&&(I=1),I}var d;(this._dirty||o==="reset")&&(this._dirty=!1,d=s(this,u)),this._modBy=h,this._modDataCount=f;var A=i&&i.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var x=this._dueIndex,y=Math.min(A!=null?this._dueIndex+A:1/0,this._dueEnd);if(!u&&(d||x1&&e>0?h:l}};return r;function l(){return a=i?null:f=0&&e.push(o)}),e}}V.getUID=C,V.enableSubTypeDefaulter=D,V.enableTopologicalTravel=S},17010:function(Y,V,n){var T=n(69008),L=n(63603),M=n(86957);function w(d){return isNaN(d)?"-":(d=(d+"").split("."),d[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(d.length>1?"."+d[1]:""))}function C(d,A){return d=(d||"").toLowerCase().replace(/-(.)/g,function(x,y){return y.toUpperCase()}),A&&d&&(d=d.charAt(0).toUpperCase()+d.slice(1)),d}var D=T.normalizeCssArray,S=/([&<>"'])/g,p={"&":"&","<":"<",">":">",'"':""","'":"'"};function v(d){return d==null?"":(d+"").replace(S,function(A,x){return p[x]})}var t=["a","b","c","d","e","f","g"],s=function(d,A){return"{"+d+(A==null?"":A)+"}"};function i(d,A,x){T.isArray(A)||(A=[A]);var y=A.length;if(!y)return"";for(var g=A[0].$vars||[],m=0;m':'':{renderMode:m,content:"{marker"+b+"|} ",style:{color:x}}:""}function e(d,A){return d+="","0000".substr(0,A-d.length)+d}function o(d,A,x){(d==="week"||d==="month"||d==="quarter"||d==="half-year"||d==="year")&&(d=`MM-dd yyyy`);var y=M.parseDate(A),g=x?"UTC":"",m=y["get"+g+"FullYear"](),b=y["get"+g+"Month"]()+1,I=y["get"+g+"Date"](),R=y["get"+g+"Hours"](),E=y["get"+g+"Minutes"](),P=y["get"+g+"Seconds"](),O=y["get"+g+"Milliseconds"]();return d=d.replace("MM",e(b,2)).replace("M",b).replace("yyyy",m).replace("yy",m%100).replace("dd",e(I,2)).replace("d",I).replace("hh",e(R,2)).replace("h",R).replace("mm",e(E,2)).replace("m",E).replace("ss",e(P,2)).replace("s",P).replace("SSS",e(O,3)),d}function r(d){return d&&d.charAt(0).toUpperCase()+d.substr(1)}var l=L.truncateText;function h(d){return L.getBoundingRect(d.text,d.font,d.textAlign,d.textVerticalAlign,d.textPadding,d.textLineHeight,d.rich,d.truncate)}function f(d,A,x,y,g,m,b,I){return L.getBoundingRect(d,A,x,y,g,I,m,b)}function c(d,A){if(A==="_blank"||A==="blank"){var x=window.open();x.opener=null,x.location=d}else window.open(d,A)}V.addCommas=w,V.toCamelCase=C,V.normalizeCssArray=D,V.encodeHTML=v,V.formatTpl=i,V.formatTplSimple=a,V.getTooltipMarker=u,V.formatTime=o,V.capitalFirst=r,V.truncateText=l,V.getTextBoundingRect=h,V.getTextRect=f,V.windowOpen=c},18993:function(Y,V,n){var T=n(69008),L=n(6226),M=n(83720),w=n(26237),C=n(47764),D=n(60397),S=n(74330),p=n(89444);V.Image=p;var v=n(27796);V.Group=v;var t=n(99999);V.Text=t;var s=n(67679);V.Circle=s;var i=n(63477);V.Sector=i;var a=n(71908);V.Ring=a;var u=n(66751);V.Polygon=u;var e=n(70391);V.Polyline=e;var o=n(74639);V.Rect=o;var r=n(330);V.Line=r;var l=n(53663);V.BezierCurve=l;var h=n(17745);V.Arc=h;var f=n(87500);V.CompoundPath=f;var c=n(57123);V.LinearGradient=c;var d=n(29683);V.RadialGradient=d;var A=n(9806);V.BoundingRect=A;var x=n(61465);V.IncrementalDisplayable=x;var y=n(26020),g=Math.max,m=Math.min,b={},I=1,R={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},E="emphasis",P="normal",O=1,N={},_={};function G(at){return D.extend(at)}function F(at,ct){return L.extendFromString(at,ct)}function W(at,ct){_[at]=ct}function U(at){if(_.hasOwnProperty(at))return _[at]}function H(at,ct,St,Tt){var Dt=L.createFromString(at,ct);return St&&(Tt==="center"&&(St=B(St,Dt.getBoundingRect())),Z(Dt,St)),Dt}function z(at,ct,St){var Tt=new p({style:{image:at,x:ct.x,y:ct.y,width:ct.width,height:ct.height},onload:function(Dt){if(St==="center"){var Nt={width:Dt.width,height:Dt.height};Tt.setStyle(B(ct,Nt))}}});return Tt}function B(at,ct){var St=ct.width/ct.height,Tt=at.height*St,Dt;Tt<=at.width?Dt=at.height:(Tt=at.width,Dt=Tt/St);var Nt=at.x+at.width/2,$t=at.y+at.height/2;return{x:Nt-Tt/2,y:$t-Dt/2,width:Tt,height:Dt}}var k=L.mergePath;function Z(at,ct){if(at.applyTransform){var St=at.getBoundingRect(),Tt=St.calculateTransform(ct);at.applyTransform(Tt)}}function X(at){return y.subPixelOptimizeLine(at.shape,at.shape,at.style),at}function K(at){return y.subPixelOptimizeRect(at.shape,at.shape,at.style),at}var Q=y.subPixelOptimize;function J(at){return at!=null&&at!=="none"}var tt=T.createHashMap(),q=0;function rt(at){if(typeof at!="string")return at;var ct=tt.get(at);return ct||(ct=M.lift(at,-.1),q<1e4&&(tt.set(at,ct),q++)),ct}function $(at){if(at.__hoverStlDirty){at.__hoverStlDirty=!1;var ct=at.__hoverStl;if(!ct){at.__cachedNormalStl=at.__cachedNormalZ2=null;return}var St=at.__cachedNormalStl={};at.__cachedNormalZ2=at.z2;var Tt=at.style;for(var Dt in ct)ct[Dt]!=null&&(St[Dt]=Tt[Dt]);St.fill=Tt.fill,St.stroke=Tt.stroke}}function j(at){var ct=at.__hoverStl;if(!(!ct||at.__highlighted)){var St=at.__zr,Tt=at.useHoverLayer&&St&&St.painter.type==="canvas";if(at.__highlighted=Tt?"layer":"plain",!(at.isGroup||!St&&at.useHoverLayer)){var Dt=at,Nt=at.style;Tt&&(Dt=St.addHover(at),Nt=Dt.style),Ft(Nt),Tt||$(Dt),Nt.extendFrom(ct),st(Nt,ct,"fill"),st(Nt,ct,"stroke"),Gt(Nt),Tt||(at.dirty(!1),at.z2+=I)}}}function st(at,ct,St){!J(ct[St])&&J(at[St])&&(at[St]=rt(at[St]))}function ot(at){var ct=at.__highlighted;if(ct&&(at.__highlighted=!1,!at.isGroup))if(ct==="layer")at.__zr&&at.__zr.removeHover(at);else{var St=at.style,Tt=at.__cachedNormalStl;Tt&&(Ft(St),at.setStyle(Tt),Gt(St));var Dt=at.__cachedNormalZ2;Dt!=null&&at.z2-Dt===I&&(at.z2=Dt)}}function vt(at,ct,St){var Tt=P,Dt=P,Nt;at.__highlighted&&(Tt=E,Nt=!0),ct(at,St),at.__highlighted&&(Dt=E,Nt=!0),at.isGroup&&at.traverse(function($t){!$t.isGroup&&ct($t,St)}),Nt&&at.__highDownOnUpdate&&at.__highDownOnUpdate(Tt,Dt)}function yt(at,ct){ct=at.__hoverStl=ct!==!1&&(at.hoverStyle||ct||{}),at.__hoverStlDirty=!0,at.__highlighted&&(at.__cachedNormalStl=null,ot(at),j(at))}function it(at){!bt(this,at)&&!this.__highByOuter&&vt(this,j)}function ut(at){!bt(this,at)&&!this.__highByOuter&&vt(this,ot)}function gt(at){this.__highByOuter|=1<<(at||0),vt(this,j)}function Ct(at){!(this.__highByOuter&=~(1<<(at||0)))&&vt(this,ot)}function bt(at,ct){return at.__highDownSilentOnTouch&&ct.zrByTouch}function et(at,ct){lt(at,!0),vt(at,yt,ct)}function lt(at,ct){var St=ct===!1;if(at.__highDownSilentOnTouch=at.highDownSilentOnTouch,at.__highDownOnUpdate=at.highDownOnUpdate,!St||at.__highDownDispatcher){var Tt=St?"off":"on";at[Tt]("mouseover",it)[Tt]("mouseout",ut),at[Tt]("emphasis",gt)[Tt]("normal",Ct),at.__highByOuter=at.__highByOuter||0,at.__highDownDispatcher=!St}}function ht(at){return!!(at&&at.__highDownDispatcher)}function pt(at){var ct=N[at];return ct==null&&O<=32&&(ct=N[at]=O++),ct}function mt(at,ct,St,Tt,Dt,Nt,$t){Dt=Dt||b;var Wt=Dt.labelFetcher,Xt=Dt.labelDataIndex,ne=Dt.labelDimIndex,le=Dt.labelProp,pe=St.getShallow("show"),de=Tt.getShallow("show"),ge;(pe||de)&&(Wt&&(ge=Wt.getFormattedLabel(Xt,"normal",null,ne,le)),ge==null&&(ge=T.isFunction(Dt.defaultText)?Dt.defaultText(Xt,Dt):Dt.defaultText));var me=pe?ge:null,ye=de?T.retrieve2(Wt?Wt.getFormattedLabel(Xt,"emphasis",null,ne,le):null,ge):null;(me!=null||ye!=null)&&(xt(at,St,Nt,Dt),xt(ct,Tt,$t,Dt,!0)),at.text=me,ct.text=ye}function ft(at,ct,St){var Tt=at.style;ct&&(Ft(Tt),at.setStyle(ct),Gt(Tt)),Tt=at.__hoverStl,St&&Tt&&(Ft(Tt),T.extend(Tt,St),Gt(Tt))}function xt(at,ct,St,Tt,Dt){return Pt(at,ct,Tt,Dt),St&&T.extend(at,St),at}function Mt(at,ct,St){var Tt={isRectText:!0},Dt;St===!1?Dt=!0:Tt.autoColor=St,Pt(at,ct,Tt,Dt)}function Pt(at,ct,St,Tt){if(St=St||b,St.isRectText){var Dt;St.getTextPosition?Dt=St.getTextPosition(ct,Tt):(Dt=ct.getShallow("position")||(Tt?null:"inside"),Dt==="outside"&&(Dt="top")),at.textPosition=Dt,at.textOffset=ct.getShallow("offset");var Nt=ct.getShallow("rotate");Nt!=null&&(Nt*=Math.PI/180),at.textRotation=Nt,at.textDistance=T.retrieve2(ct.getShallow("distance"),Tt?null:5)}var $t=ct.ecModel,Wt=$t&&$t.option.textStyle,Xt=Rt(ct),ne;if(Xt){ne={};for(var le in Xt)if(Xt.hasOwnProperty(le)){var pe=ct.getModel(["rich",le]);Bt(ne[le]={},pe,Wt,St,Tt)}}return at.rich=ne,Bt(at,ct,Wt,St,Tt,!0),St.forceRich&&!St.textStyle&&(St.textStyle={}),at}function Rt(at){for(var ct;at&&at!==at.ecModel;){var St=(at.option||b).rich;if(St){ct=ct||{};for(var Tt in St)St.hasOwnProperty(Tt)&&(ct[Tt]=1)}at=at.parentModel}return ct}function Bt(at,ct,St,Tt,Dt,Nt){St=!Dt&&St||b,at.textFill=Vt(ct.getShallow("color"),Tt)||St.color,at.textStroke=Vt(ct.getShallow("textBorderColor"),Tt)||St.textBorderColor,at.textStrokeWidth=T.retrieve2(ct.getShallow("textBorderWidth"),St.textBorderWidth),Dt||(Nt&&(at.insideRollbackOpt=Tt,Gt(at)),at.textFill==null&&(at.textFill=Tt.autoColor)),at.fontStyle=ct.getShallow("fontStyle")||St.fontStyle,at.fontWeight=ct.getShallow("fontWeight")||St.fontWeight,at.fontSize=ct.getShallow("fontSize")||St.fontSize,at.fontFamily=ct.getShallow("fontFamily")||St.fontFamily,at.textAlign=ct.getShallow("align"),at.textVerticalAlign=ct.getShallow("verticalAlign")||ct.getShallow("baseline"),at.textLineHeight=ct.getShallow("lineHeight"),at.textWidth=ct.getShallow("width"),at.textHeight=ct.getShallow("height"),at.textTag=ct.getShallow("tag"),(!Nt||!Tt.disableBox)&&(at.textBackgroundColor=Vt(ct.getShallow("backgroundColor"),Tt),at.textPadding=ct.getShallow("padding"),at.textBorderColor=Vt(ct.getShallow("borderColor"),Tt),at.textBorderWidth=ct.getShallow("borderWidth"),at.textBorderRadius=ct.getShallow("borderRadius"),at.textBoxShadowColor=ct.getShallow("shadowColor"),at.textBoxShadowBlur=ct.getShallow("shadowBlur"),at.textBoxShadowOffsetX=ct.getShallow("shadowOffsetX"),at.textBoxShadowOffsetY=ct.getShallow("shadowOffsetY")),at.textShadowColor=ct.getShallow("textShadowColor")||St.textShadowColor,at.textShadowBlur=ct.getShallow("textShadowBlur")||St.textShadowBlur,at.textShadowOffsetX=ct.getShallow("textShadowOffsetX")||St.textShadowOffsetX,at.textShadowOffsetY=ct.getShallow("textShadowOffsetY")||St.textShadowOffsetY}function Vt(at,ct){return at!=="auto"?at:ct&&ct.autoColor?ct.autoColor:null}function Gt(at){var ct=at.textPosition,St=at.insideRollbackOpt,Tt;if(St&&at.textFill==null){var Dt=St.autoColor,Nt=St.isRectText,$t=St.useInsideStyle,Wt=$t!==!1&&($t===!0||Nt&&ct&&typeof ct=="string"&&ct.indexOf("inside")>=0),Xt=!Wt&&Dt!=null;(Wt||Xt)&&(Tt={textFill:at.textFill,textStroke:at.textStroke,textStrokeWidth:at.textStrokeWidth}),Wt&&(at.textFill="#fff",at.textStroke==null&&(at.textStroke=Dt,at.textStrokeWidth==null&&(at.textStrokeWidth=2))),Xt&&(at.textFill=Dt)}at.insideRollback=Tt}function Ft(at){var ct=at.insideRollback;ct&&(at.textFill=ct.textFill,at.textStroke=ct.textStroke,at.textStrokeWidth=ct.textStrokeWidth,at.insideRollback=null)}function Kt(at,ct){var St=ct&&ct.getModel("textStyle");return T.trim([at.fontStyle||St&&St.getShallow("fontStyle")||"",at.fontWeight||St&&St.getShallow("fontWeight")||"",(at.fontSize||St&&St.getShallow("fontSize")||12)+"px",at.fontFamily||St&&St.getShallow("fontFamily")||"sans-serif"].join(" "))}function Qt(at,ct,St,Tt,Dt,Nt){typeof Dt=="function"&&(Nt=Dt,Dt=null);var $t=Tt&&Tt.isAnimationEnabled();if($t){var Wt=at?"Update":"",Xt=Tt.getShallow("animationDuration"+Wt),ne=Tt.getShallow("animationEasing"+Wt),le=Tt.getShallow("animationDelay"+Wt);typeof le=="function"&&(le=le(Dt,Tt.getAnimationDelayParams?Tt.getAnimationDelayParams(ct,Dt):null)),typeof Xt=="function"&&(Xt=Xt(Dt)),Xt>0?ct.animateTo(St,Xt,le||0,ne,Nt,!!Nt):(ct.stopAnimation(),ct.attr(St),Nt&&Nt())}else ct.stopAnimation(),ct.attr(St),Nt&&Nt()}function _t(at,ct,St,Tt,Dt){Qt(!0,at,ct,St,Tt,Dt)}function Yt(at,ct,St,Tt,Dt){Qt(!1,at,ct,St,Tt,Dt)}function Zt(at,ct){for(var St=w.identity([]);at&&at!==ct;)w.mul(St,at.getLocalTransform(),St),at=at.parent;return St}function Jt(at,ct,St){return ct&&!T.isArrayLike(ct)&&(ct=S.getLocalTransform(ct)),St&&(ct=w.invert([],ct)),C.applyTransform([],at,ct)}function jt(at,ct,St){var Tt=ct[4]===0||ct[5]===0||ct[0]===0?1:Math.abs(2*ct[4]/ct[0]),Dt=ct[4]===0||ct[5]===0||ct[2]===0?1:Math.abs(2*ct[4]/ct[2]),Nt=[at==="left"?-Tt:at==="right"?Tt:0,at==="top"?-Dt:at==="bottom"?Dt:0];return Nt=Jt(Nt,ct,St),Math.abs(Nt[0])>Math.abs(Nt[1])?Nt[0]>0?"right":"left":Nt[1]>0?"bottom":"top"}function qt(at,ct,St,Tt){if(!at||!ct)return;function Dt(Wt){var Xt={};return Wt.traverse(function(ne){!ne.isGroup&&ne.anid&&(Xt[ne.anid]=ne)}),Xt}function Nt(Wt){var Xt={position:C.clone(Wt.position),rotation:Wt.rotation};return Wt.shape&&(Xt.shape=T.extend({},Wt.shape)),Xt}var $t=Dt(at);ct.traverse(function(Wt){if(!Wt.isGroup&&Wt.anid){var Xt=$t[Wt.anid];if(Xt){var ne=Nt(Wt);Wt.attr(Nt(Xt)),_t(Wt,ne,St,Wt.dataIndex)}}})}function oe(at,ct){return T.map(at,function(St){var Tt=St[0];Tt=g(Tt,ct.x),Tt=m(Tt,ct.x+ct.width);var Dt=St[1];return Dt=g(Dt,ct.y),Dt=m(Dt,ct.y+ct.height),[Tt,Dt]})}function he(at,ct){var St=g(at.x,ct.x),Tt=m(at.x+at.width,ct.x+ct.width),Dt=g(at.y,ct.y),Nt=m(at.y+at.height,ct.y+ct.height);if(Tt>=St&&Nt>=Dt)return{x:St,y:Dt,width:Tt-St,height:Nt-Dt}}function se(at,ct,St){ct=T.extend({rectHover:!0},ct);var Tt=ct.style={strokeNoScale:!0};if(St=St||{x:-1,y:-1,width:2,height:2},at)return at.indexOf("image://")===0?(Tt.image=at.slice(8),T.defaults(Tt,St),new p(ct)):H(at.replace("path://",""),ct,St,"center")}function ve(at,ct,St,Tt,Dt){for(var Nt=0,$t=Dt[Dt.length-1];Nt1)return!1;var Se=te(ge,me,le,pe)/de;return!(Se<0||Se>1)}function te(at,ct,St,Tt){return at*Tt-St*ct}function ie(at){return at<=1e-6&&at>=-1e-6}W("circle",s),W("sector",i),W("ring",a),W("polygon",u),W("polyline",e),W("rect",o),W("line",r),W("bezierCurve",l),W("arc",h),V.Z2_EMPHASIS_LIFT=I,V.CACHED_LABEL_STYLE_PROPERTIES=R,V.extendShape=G,V.extendPath=F,V.registerShape=W,V.getShapeClass=U,V.makePath=H,V.makeImage=z,V.mergePath=k,V.resizePath=Z,V.subPixelOptimizeLine=X,V.subPixelOptimizeRect=K,V.subPixelOptimize=Q,V.setElementHoverStyle=yt,V.setHoverStyle=et,V.setAsHighDownDispatcher=lt,V.isHighDownDispatcher=ht,V.getHighlightDigit=pt,V.setLabelStyle=mt,V.modifyLabelStyle=ft,V.setTextStyle=xt,V.setText=Mt,V.getFont=Kt,V.updateProps=_t,V.initProps=Yt,V.getTransform=Zt,V.applyTransform=Jt,V.transformDirection=jt,V.groupTransition=qt,V.clipPointsByRect=oe,V.clipRectByRect=he,V.createIcon=se,V.linePolygonIntersect=ve,V.lineLineIntersect=ae},7357:function(Y,V,n){var T=n(69008),L=n(9806),M=n(86957),w=M.parsePercent,C=n(17010),D=T.each,S=["left","right","top","bottom","width","height"],p=[["width","left","right"],["height","top","bottom"]];function v(f,c,d,A,x){var y=0,g=0;A==null&&(A=1/0),x==null&&(x=1/0);var m=0;c.eachChild(function(b,I){var R=b.position,E=b.getBoundingRect(),P=c.childAt(I+1),O=P&&P.getBoundingRect(),N,_;if(f==="horizontal"){var G=E.width+(O?-O.x+E.x:0);N=y+G,N>A||b.newline?(y=0,N=G,g+=m+d,m=E.height):m=Math.max(m,E.height)}else{var F=E.height+(O?-O.y+E.y:0);_=g+F,_>x||b.newline?(y+=m+d,g=0,_=F,m=E.width):m=Math.max(m,E.width)}b.newline||(R[0]=y,R[1]=g,f==="horizontal"?y=N+d:g=_+d)})}var t=v,s=T.curry(v,"vertical"),i=T.curry(v,"horizontal");function a(f,c,d){var A=c.width,x=c.height,y=w(f.x,A),g=w(f.y,x),m=w(f.x2,A),b=w(f.y2,x);return(isNaN(y)||isNaN(parseFloat(f.x)))&&(y=0),(isNaN(m)||isNaN(parseFloat(f.x2)))&&(m=A),(isNaN(g)||isNaN(parseFloat(f.y)))&&(g=0),(isNaN(b)||isNaN(parseFloat(f.y2)))&&(b=x),d=C.normalizeCssArray(d||0),{width:Math.max(m-y-d[1]-d[3],0),height:Math.max(b-g-d[0]-d[2],0)}}function u(f,c,d){d=C.normalizeCssArray(d||0);var A=c.width,x=c.height,y=w(f.left,A),g=w(f.top,x),m=w(f.right,A),b=w(f.bottom,x),I=w(f.width,A),R=w(f.height,x),E=d[2]+d[0],P=d[1]+d[3],O=f.aspect;switch(isNaN(I)&&(I=A-m-P-y),isNaN(R)&&(R=x-b-E-g),O!=null&&(isNaN(I)&&isNaN(R)&&(O>A/x?I=A*.8:R=x*.8),isNaN(I)&&(I=O*R),isNaN(R)&&(R=I/O)),isNaN(y)&&(y=A-m-I-P),isNaN(g)&&(g=x-b-R-E),f.left||f.right){case"center":y=A/2-I/2-d[3];break;case"right":y=A-I-P;break}switch(f.top||f.bottom){case"middle":case"center":g=x/2-R/2-d[0];break;case"bottom":g=x-R-E;break}y=y||0,g=g||0,isNaN(I)&&(I=A-P-y-(m||0)),isNaN(R)&&(R=x-E-g-(b||0));var N=new L(y+d[3],g+d[0],I,R);return N.margin=d,N}function e(f,c,d,A,x){var y=!x||!x.hv||x.hv[0],g=!x||!x.hv||x.hv[1],m=x&&x.boundingMode||"all";if(!(!y&&!g)){var b;if(m==="raw")b=f.type==="group"?new L(0,0,+c.width||0,+c.height||0):f.getBoundingRect();else if(b=f.getBoundingRect(),f.needLocalTransform()){var I=f.getLocalTransform();b=b.clone(),b.applyTransform(I)}c=u(T.defaults({width:b.width,height:b.height},c),d,A);var R=f.position,E=y?c.x-b.x:0,P=g?c.y-b.y:0;f.attr("position",m==="raw"?[E,P]:[R[0]+E,R[1]+P])}}function o(f,c){return f[p[c][0]]!=null||f[p[c][1]]!=null&&f[p[c][2]]!=null}function r(f,c,d){!T.isObject(d)&&(d={});var A=d.ignoreSize;!T.isArray(A)&&(A=[A,A]);var x=g(p[0],0),y=g(p[1],1);I(p[0],f,x),I(p[1],f,y);function g(R,E){var P={},O=0,N={},_=0,G=2;if(D(R,function(U){N[U]=f[U]}),D(R,function(U){m(c,U)&&(P[U]=N[U]=c[U]),b(P,U)&&O++,b(N,U)&&_++}),A[E])return b(c,R[1])?N[R[2]]=null:b(c,R[2])&&(N[R[1]]=null),N;if(_===G||!O)return N;if(O>=G)return P;for(var F=0;F=b.length&&b.push({option:I})}}),b}function a(g){var m=T.createHashMap();M(g,function(b,I){var R=b.exist;R&&m.set(R.id,b)}),M(g,function(b,I){var R=b.option;T.assert(!R||R.id==null||!m.get(R.id)||m.get(R.id)===b,"id duplicates: "+(R&&R.id)),R&&R.id!=null&&m.set(R.id,b),!b.keyInfo&&(b.keyInfo={})}),M(g,function(b,I){var R=b.exist,E=b.option,P=b.keyInfo;if(w(E)){if(P.name=E.name!=null?E.name+"":R?R.name:D+I,R)P.id=R.id;else if(E.id!=null)P.id=E.id+"";else{var O=0;do P.id="\0"+P.name+"\0"+O++;while(m.get(P.id))}m.set(P.id,b)}})}function u(g){var m=g.name;return!!(m&&m.indexOf(D))}function e(g){return w(g)&&g.id&&(g.id+"").indexOf("\0_ec_\0")===0}function o(g,m){var b={},I={};return R(g||[],b),R(m||[],I,b),[E(b),E(I)];function R(P,O,N){for(var _=0,G=P.length;_0){if(A<=x[0])return y[0];if(A>=x[1])return y[1]}else{if(A>=x[0])return y[0];if(A<=x[1])return y[1]}else{if(A===x[0])return y[0];if(A===x[1])return y[1]}return(A-x[0])/m*b+y[0]}function C(A,x){switch(A){case"center":case"middle":A="50%";break;case"left":case"top":A="0%";break;case"right":case"bottom":A="100%";break}return typeof A=="string"?M(A).match(/%$/)?parseFloat(A)/100*x:parseFloat(A):A==null?NaN:+A}function D(A,x,y){return x==null&&(x=10),x=Math.min(Math.max(0,x),20),A=(+A).toFixed(x),y?A:+A}function S(A){return A.sort(function(x,y){return x-y}),A}function p(A){if(A=+A,isNaN(A))return 0;for(var x=1,y=0;Math.round(A*x)/x!==A;)x*=10,y++;return y}function v(A){var x=A.toString(),y=x.indexOf("e");if(y>0){var g=+x.slice(y+1);return g<0?-g:0}else{var m=x.indexOf(".");return m<0?0:x.length-1-m}}function t(A,x){var y=Math.log,g=Math.LN10,m=Math.floor(y(A[1]-A[0])/g),b=Math.round(y(Math.abs(x[1]-x[0]))/g),I=Math.min(Math.max(-m+b,0),20);return isFinite(I)?I:20}function s(A,x,y){if(!A[x])return 0;var g=T.reduce(A,function(F,W){return F+(isNaN(W)?0:W)},0);if(g===0)return 0;for(var m=Math.pow(10,y),b=T.map(A,function(F){return(isNaN(F)?0:F)/g*m*100}),I=m*100,R=T.map(b,function(F){return Math.floor(F)}),E=T.reduce(R,function(F,W){return F+W},0),P=T.map(b,function(F,W){return F-R[W]});EO&&(O=P[_],N=_);++R[N],P[N]=0,++E}return R[x]/m}var i=9007199254740991;function a(A){var x=Math.PI*2;return(A%x+x)%x}function u(A){return A>-L&&A=10&&x++,x}function h(A,x){var y=l(A),g=Math.pow(10,y),m=A/g,b;return x?m<1.5?b=1:m<2.5?b=2:m<4?b=3:m<7?b=5:b=10:m<1?b=1:m<2?b=2:m<3?b=3:m<5?b=5:b=10,A=b*g,y>=-20?+A.toFixed(y<0?-y:0):A}function f(A,x){var y=(A.length-1)*x+1,g=Math.floor(y),m=+A[g-1],b=y-g;return b?m+b*(A[g]-m):m}function c(A){A.sort(function(E,P){return R(E,P,0)?-1:1});for(var x=-1/0,y=1,g=0;g=0}V.linearMap=w,V.parsePercent=C,V.round=D,V.asc=S,V.getPrecision=p,V.getPrecisionSafe=v,V.getPixelPrecision=t,V.getPercentWithPrecision=s,V.MAX_SAFE_INTEGER=i,V.remRadian=a,V.isRadianAroundZero=u,V.parseDate=o,V.quantity=r,V.quantityExponent=l,V.nice=h,V.quantile=f,V.reformIntervals=c,V.isNumeric=d},79330:function(Y,V,n){var T=n(18993),L=T.extendShape,M=L({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(w,C){var D=C.cx,S=C.cy,p=Math.max(C.r0||0,0),v=Math.max(C.r,0),t=(v-p)*.5,s=p+t,i=C.startAngle,a=C.endAngle,u=C.clockwise,e=Math.cos(i),o=Math.sin(i),r=Math.cos(a),l=Math.sin(a),h=u?a-i=0?r():i=setTimeout(r,-a),t=v};return l.clear=function(){i&&(clearTimeout(i),i=null)},l.debounceNextCall=function(h){o=h},l}function w(D,S,p,v){var t=D[S];if(t){var s=t[n]||t,i=t[L],a=t[T];if(a!==p||i!==v){if(p==null||!v)return D[S]=s;t=D[S]=M(s,p,v==="debounce"),t[n]=s,t[L]=v,t[T]=p}return t}}function C(D,S){var p=D[S];p&&p[n]&&(D[S]=p[n])}V.throttle=M,V.createOrUpdate=w,V.clear=C},68880:function(Y,V,n){var T=n(69008),L=T.each,M=n(27796),w=n(58744),C=n(77305),D=n(90830),S=n(18993),p=n(222),v=p.createTask,t=n(13861),s=D.makeInner(),i=t();function a(){this.group=new M,this.uid=w.getUID("viewChart"),this.renderTask=v({plan:r,reset:l}),this.renderTask.context={view:this}}a.prototype={type:"chart",init:function(c,d){},render:function(c,d,A,x){},highlight:function(c,d,A,x){o(c.getData(),x,"emphasis")},downplay:function(c,d,A,x){o(c.getData(),x,"normal")},remove:function(c,d){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var u=a.prototype;u.updateView=u.updateLayout=u.updateVisual=function(c,d,A,x){this.render(c,d,A,x)};function e(c,d,A){if(c&&(c.trigger(d,A),c.isGroup&&!S.isHighDownDispatcher(c)))for(var x=0,y=c.childCount();x=0},this.indexOfName=function(M){var w=T();return w.indexOfName(M)},this.getItemVisual=function(M,w){var C=T();return C.getItemVisual(M,w)}}var n=V;Y.exports=n},5660:function(Y,V,n){var T=n(69008),L=n(83720),M=n(86957),w=M.linearMap,C=T.each,D=T.isObject,S=-1,p=function(x){var y=x.mappingMethod,g=x.type,m=this.option=T.clone(x);this.type=g,this.mappingMethod=y,this._normalizeData=c[y];var b=v[g];this.applyVisual=b.applyVisual,this.getColorMapper=b.getColorMapper,this._doMap=b._doMap[y],y==="piecewise"?(i(m),t(m)):y==="category"?m.categories?s(m):i(m,!0):(T.assert(y!=="linear"||m.dataExtent),i(m))};p.prototype={constructor:p,mapValueToVisual:function(x){var y=this._normalizeData(x);return this._doMap(y,x)},getNormalizer:function(){return T.bind(this._normalizeData,this)}};var v=p.visualHandlers={color:{applyVisual:e("color"),getColorMapper:function(){var x=this.option;return T.bind(x.mappingMethod==="category"?function(y,g){return!g&&(y=this._normalizeData(y)),o.call(this,y)}:function(y,g,m){var b=!!m;return!g&&(y=this._normalizeData(y)),m=L.fastLerp(y,x.parsedVisual,m),b?m:L.stringify(m,"rgba")},this)},_doMap:{linear:function(x){return L.stringify(L.fastLerp(x,this.option.parsedVisual),"rgba")},category:o,piecewise:function(x,y){var g=h.call(this,y);return g==null&&(g=L.stringify(L.fastLerp(x,this.option.parsedVisual),"rgba")),g},fixed:r}},colorHue:a(function(x,y){return L.modifyHSL(x,y)}),colorSaturation:a(function(x,y){return L.modifyHSL(x,null,y)}),colorLightness:a(function(x,y){return L.modifyHSL(x,null,null,y)}),colorAlpha:a(function(x,y){return L.modifyAlpha(x,y)}),opacity:{applyVisual:e("opacity"),_doMap:l([0,1])},liftZ:{applyVisual:e("liftZ"),_doMap:{linear:r,category:r,piecewise:r,fixed:r}},symbol:{applyVisual:function(x,y,g){var m=this.mapValueToVisual(x);if(T.isString(m))g("symbol",m);else if(D(m))for(var b in m)m.hasOwnProperty(b)&&g(b,m[b])},_doMap:{linear:u,category:o,piecewise:function(x,y){var g=h.call(this,y);return g==null&&(g=u.call(this,x)),g},fixed:r}},symbolSize:{applyVisual:e("symbolSize"),_doMap:l([0,1])}};function t(x){var y=x.pieceList;x.hasSpecialVisual=!1,T.each(y,function(g,m){g.originIndex=m,g.visual!=null&&(x.hasSpecialVisual=!0)})}function s(x){var y=x.categories,g=x.visual,m=x.categoryMap={};if(C(y,function(R,E){m[R]=E}),!T.isArray(g)){var b=[];T.isObject(g)?C(g,function(R,E){var P=m[E];b[P!=null?P:S]=R}):b[S]=g,g=f(x,b)}for(var I=y.length-1;I>=0;I--)g[I]==null&&(delete m[y[I]],y.pop())}function i(x,y){var g=x.visual,m=[];T.isObject(g)?C(g,function(I){m.push(I)}):g!=null&&m.push(g);var b={color:1,symbol:1};!y&&m.length===1&&!b.hasOwnProperty(x.type)&&(m[1]=m[0]),f(x,m)}function a(x){return{applyVisual:function(y,g,m){y=this.mapValueToVisual(y),m("color",x(g("color"),y))},_doMap:l([0,1])}}function u(x){var y=this.option.visual;return y[Math.round(w(x,[0,1],[0,y.length-1],!0))]||{}}function e(x){return function(y,g,m){m(x,this.mapValueToVisual(y))}}function o(x){var y=this.option.visual;return y[this.option.loop&&x!==S?x%y.length:x]}function r(){return this.option.visual[0]}function l(x){return{linear:function(y){return w(y,x,this.option.visual,!0)},category:o,piecewise:function(y,g){var m=h.call(this,g);return m==null&&(m=w(y,x,this.option.visual,!0)),m},fixed:r}}function h(x){var y=this.option,g=y.pieceList;if(y.hasSpecialVisual){var m=p.findPieceIndex(x,g),b=g[m];if(b&&b.visual)return b.visual[this.type]}}function f(x,y){return x.visual=y,x.type==="color"&&(x.parsedVisual=T.map(y,function(g){return L.parse(g)})),y}var c={linear:function(x){return w(x,this.option.dataExtent,[0,1],!0)},piecewise:function(x){var y=this.option.pieceList,g=p.findPieceIndex(x,y,!0);if(g!=null)return w(g,[0,y.length-1],[0,1],!0)},category:function(x){var y=this.option.categories?this.option.categoryMap[x]:x;return y==null?S:y},fixed:T.noop};p.listVisualTypes=function(){var x=[];return T.each(v,function(y,g){x.push(g)}),x},p.addVisualHandler=function(x,y){v[x]=y},p.isValidType=function(x){return v.hasOwnProperty(x)},p.eachVisual=function(x,y,g){T.isObject(x)?T.each(x,y,g):y.call(g,x)},p.mapVisual=function(x,y,g){var m,b=T.isArray(x)?[]:T.isObject(x)?{}:(m=!0,null);return p.eachVisual(x,function(I,R){var E=y.call(g,I,R);m?b=E:b[R]=E}),b},p.retrieveVisuals=function(x){var y={},g;return x&&C(v,function(m,b){x.hasOwnProperty(b)&&(y[b]=x[b],g=!0)}),g?y:null},p.prepareVisualTypes=function(x){if(D(x)){var y=[];C(x,function(g,m){y.push(m)}),x=y}else if(T.isArray(x))x=x.slice();else return[];return x.sort(function(g,m){return m==="color"&&g!=="color"&&g.indexOf("color")===0?1:-1}),x},p.dependsOn=function(x,y){return y==="color"?!!(x&&x.indexOf(y)===0):x===y},p.findPieceIndex=function(x,y,g){for(var m,b=1/0,I=0,R=y.length;I1?"series.multiple.prefix":"series.single.prefix";a+=r(l(o),{seriesCount:v}),S.eachSeries(function(c,d){if(d1?"multiple":"single")+".";A=l(x?y+"withName":y+"withoutName"),A=r(A,{seriesId:c.seriesIndex,seriesName:c.get("name"),seriesType:f(c.subType)});var g=c.getData();window.data=g,g.count()>t?A+=r(l("data.partialData"),{displayCnt:t}):A+=l("data.allData");for(var m=[],b=0;b=0;c--){var d;if(h[c]!==l&&!h[c].ignore&&(d=a(h[c],o,r))&&(!f.topTarget&&(f.topTarget=h[c]),d!==S)){f.target=h[c];break}}return f},processGesture:function(o,r){this._gestureMgr||(this._gestureMgr=new D);var l=this._gestureMgr;r==="start"&&l.clear();var h=l.recognize(o,this.findHover(o.zrX,o.zrY,null).target,this.proxy.dom);if(r==="end"&&l.clear(),h){var f=h.type;o.gestureEvent=f,this.dispatchToElement({target:h.target},f,h.event)}}},T.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){i.prototype[o]=function(r){var l=r.zrX,h=r.zrY,f=u(this,l,h),c,d;if((o!=="mouseup"||!f)&&(c=this.findHover(l,h),d=c.target),o==="mousedown")this._downEl=d,this._downPoint=[r.zrX,r.zrY],this._upEl=d;else if(o==="mouseup")this._upEl=d;else if(o==="click"){if(this._downEl!==this._upEl||!this._downPoint||L.dist(this._downPoint,[r.zrX,r.zrY])>4)return;this._downPoint=null}this.dispatchToElement(c,o,r)}});function a(o,r,l){if(o[o.rectHover?"rectContain":"contain"](r,l)){for(var h=o,f;h;){if(h.clipPath&&!h.clipPath.contain(r,l))return!1;h.silent&&(f=!0),h=h.parent}return f?S:!0}return!1}function u(o,r,l){var h=o.painter;return r<0||r>h.getWidth()||l<0||l>h.getHeight()}T.mixin(i,w),T.mixin(i,M);var e=i;Y.exports=e},12299:function(Y,V,n){var T=n(69008),L=n(69893),M=L.devicePixelRatio,w=n(7255),C=n(55620);function D(){return!1}function S(t,s,i){var a=T.createCanvas(),u=s.getWidth(),e=s.getHeight(),o=a.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=u+"px",o.height=e+"px",a.setAttribute("data-zr-dom-id",t)),a.width=u*i,a.height=e*i,a}var p=function(t,s,i){var a;i=i||M,typeof t=="string"?a=S(t,s,i):T.isObject(t)&&(a=t,t=a.id),this.id=t,this.dom=a;var u=a.style;u&&(a.onselectstart=D,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",u.padding=0,u.margin=0,u["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=s,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};p.prototype={constructor:p,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=S("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,s){var i=this.dpr,a=this.dom,u=a.style,e=this.domBack;u&&(u.width=t+"px",u.height=s+"px"),a.width=t*i,a.height=s*i,e&&(e.width=t*i,e.height=s*i,i!==1&&this.ctxBack.scale(i,i))},clear:function(t,o){var i=this.dom,a=this.ctx,u=i.width,e=i.height,o=o||this.clearColor,r=this.motionBlur&&!t,l=this.lastFrameAlpha,h=this.dpr;if(r&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,u/h,e/h)),a.clearRect(0,0,u,e),o&&o!=="transparent"){var f;o.colorStops?(f=o.__canvasGradient||w.getGradient(a,o,{x:0,y:0,width:u,height:e}),o.__canvasGradient=f):o.image&&(f=C.prototype.getCanvasPattern.call(o,a)),a.save(),a.fillStyle=f||o,a.fillRect(0,0,u,e),a.restore()}if(r){var c=this.domBack;a.save(),a.globalAlpha=l,a.drawImage(c,0,0,u,e),a.restore()}}};var v=p;Y.exports=v},44401:function(Y,V,n){var T=n(69893),L=T.devicePixelRatio,M=n(69008),w=n(32445),C=n(9806),D=n(78083),S=n(12299),p=n(52731),v=n(89444),t=n(12973),s=1e5,i=314159,a=.01,u=.001;function e(y){return parseInt(y,10)}function o(y){return y?y.__builtin__?!0:!(typeof y.resize!="function"||typeof y.refresh!="function"):!1}var r=new C(0,0,0,0),l=new C(0,0,0,0);function h(y,g,m){return r.copy(y.getBoundingRect()),y.transform&&r.applyTransform(y.transform),l.width=g,l.height=m,!r.intersect(l)}function f(y,g){if(y===g)return!1;if(!y||!g||y.length!==g.length)return!0;for(var m=0;m=0&&m.splice(b,1),y.__hoverMir=null},clearHover:function(y){for(var g=this._hoverElements,m=0;m15)break}}R.__drawIndex=H,R.__drawIndex0&&y>b[0]){for(E=0;Ey);E++);R=m[b[E]]}if(b.splice(E+1,0,y),m[y]=g,!g.virtual)if(R){var O=R.dom;O.nextSibling?P.insertBefore(g.dom,O.nextSibling):P.appendChild(g.dom)}else P.firstChild?P.insertBefore(g.dom,P.firstChild):P.appendChild(g.dom)},eachLayer:function(y,g){var m=this._zlevelList,b,I;for(I=0;I0?a:0),this._needsManuallyCompositing),O.__builtin__||w("ZLevel "+P+" has been used by unkown layer "+O.id),O!==I&&(O.__used=!0,O.__startIndex!==m&&(O.__dirty=!0),O.__startIndex=m,O.incremental?O.__drawIndex=-1:O.__drawIndex=m,g(m),I=O),b.__dirty&&(O.__dirty=!0,O.incremental&&O.__drawIndex<0&&(O.__drawIndex=m))}g(m),this.eachBuiltinLayer(function(N,_){!N.__used&&N.getElementCount()>0&&(N.__dirty=!0,N.__startIndex=N.__endIndex=N.__drawIndex=0),N.__dirty&&N.__drawIndex<0&&(N.__drawIndex=N.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(y){y.clear()},setBackgroundColor:function(y){this._backgroundColor=y},configLayer:function(y,g){if(g){var m=this._layerConfig;m[y]?M.merge(m[y],g,!0):m[y]=g;for(var b=0;b=0&&(this.delFromStorage(p),this._roots.splice(i,1),p instanceof M&&p.delChildrenFromStorage(this))},addToStorage:function(p){return p&&(p.__storage=this,p.dirty(!1)),this},delFromStorage:function(p){return p&&(p.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:C};var S=D;Y.exports=S},75113:function(Y,V,n){var T=n(69008),L=n(92462),M=L.Dispatcher,w=n(52731),C=n(91807),D=function(p){p=p||{},this.stage=p.stage||{},this.onframe=p.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,M.call(this)};D.prototype={constructor:D,addClip:function(p){this._clips.push(p)},addAnimator:function(p){p.animation=this;for(var v=p.getClips(),t=0;t=0&&this._clips.splice(v,1)},removeAnimator:function(p){for(var v=p.getClips(),t=0;t.5?d:c}function t(c,d,A,x,y){var g=c.length;if(y===1)for(var m=0;my;if(g)c.length=y;else for(var m=x;m=0&&!(F[it]<=yt);it--);it=Math.min(it,R-2)}else{for(it=X;ityt);it++);it=Math.min(it-1,R-2)}X=it,K=yt;var ut=F[it+1]-F[it];if(ut!==0)if(J=(yt-F[it])/ut,I)if(q=W[it],tt=W[it===0?it:it-1],rt=W[it>R-2?R-1:it+1],$=W[it>R-3?R-1:it+2],P)a(tt,q,rt,$,J,J*J,J*J*J,m(vt,y),_);else{var gt;if(O)gt=a(tt,q,rt,$,J,J*J,J*J*J,j,1),gt=o(j);else{if(N)return v(q,rt,J);gt=u(tt,q,rt,$,J,J*J,J*J*J)}b(vt,y,gt)}else if(P)t(W[it],W[it+1],J,m(vt,y),_);else{var gt;if(O)t(W[it],W[it+1],J,j,1),gt=o(j);else{if(N)return v(W[it],W[it+1],J);gt=p(W[it],W[it+1],J)}b(vt,y,gt)}},ot=new T({target:c._target,life:G,loop:c._loop,delay:c._delay,onframe:st,ondestroy:A});return d&&d!=="spline"&&(ot.easing=d),ot}}}var h=function(c,d,A,x){this._tracks={},this._target=c,this._loop=d||!1,this._getter=A||D,this._setter=x||S,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(c,d){var A=this._tracks;for(var x in d)if(d.hasOwnProperty(x)){if(!A[x]){A[x]=[];var y=this._getter(this._target,x);if(y==null)continue;c!==0&&A[x].push({time:0,value:e(y)})}A[x].push({time:c,value:d[x]})}return this},during:function(c){return this._onframeList.push(c),this},pause:function(){for(var c=0;cS||e+uv&&(v+=M);var r=Math.atan2(a,i);return r<0&&(r+=M),r>=p&&r<=v||r+M>=p&&r+M<=v}V.containStroke=w},73989:function(Y,V,n){var T=n(22576);function L(M,w,C,D,S,p,v,t,s,i,a){if(s===0)return!1;var u=s;if(a>w+u&&a>D+u&&a>p+u&&a>t+u||aM+u&&i>C+u&&i>S+u&&i>v+u||iL+p&&S>w+p||ST+p&&D>M+p||Dx&&P>g&&P>b&&P>R||P1&&o(),G=p.cubicAt(x,g,b,R,e[0]),_>1&&(F=p.cubicAt(x,g,b,R,e[1]))),_===2?Ux&&R>g&&R>b||R=0&&P<=1){for(var O=0,N=p.quadraticAt(x,g,b,P),_=0;_y||R<-y)return 0;var E=Math.sqrt(y*y-R*R);u[0]=-E,u[1]=E;var P=Math.abs(g-m);if(P<1e-4)return 0;if(P%s<1e-4){g=0,m=s;var O=b?1:-1;return I>=u[0]+A&&I<=u[1]+A?O:0}if(b){var E=g;g=S(m),m=S(E)}else g=S(g),m=S(m);g>m&&(m+=s);for(var N=0,_=0;_<2;_++){var G=u[_];if(G+A>I){var F=Math.atan2(R,G),O=b?1:-1;F<0&&(F=s+F),(F>=g&&F<=m||F+s>=g&&F+s<=m)&&(F>Math.PI/2&&F1&&(y||(b+=v(I,R,E,P,g,m))),O===1&&(I=A[O],R=A[O+1],E=I,P=R),N){case t.M:E=A[O++],P=A[O++],I=E,R=P;break;case t.L:if(y){if(L.containStroke(I,R,A[O],A[O+1],x,g,m))return!0}else b+=v(I,R,A[O],A[O+1],g,m)||0;I=A[O++],R=A[O++];break;case t.C:if(y){if(M.containStroke(I,R,A[O++],A[O++],A[O++],A[O++],A[O],A[O+1],x,g,m))return!0}else b+=r(I,R,A[O++],A[O++],A[O++],A[O++],A[O],A[O+1],g,m)||0;I=A[O++],R=A[O++];break;case t.Q:if(y){if(w.containStroke(I,R,A[O++],A[O++],A[O],A[O+1],x,g,m))return!0}else b+=l(I,R,A[O++],A[O++],A[O],A[O+1],g,m)||0;I=A[O++],R=A[O++];break;case t.A:var _=A[O++],G=A[O++],F=A[O++],W=A[O++],U=A[O++],H=A[O++];O+=1;var z=1-A[O++],X=Math.cos(U)*F+_,K=Math.sin(U)*W+G;O>1?b+=v(I,R,X,K,g,m):(E=X,P=K);var B=(g-_)*W/F+_;if(y){if(C.containStroke(_,G,W,U,U+H,z,x,B,m))return!0}else b+=h(_,G,W,U,U+H,z,B,m);I=Math.cos(U+H)*F+_,R=Math.sin(U+H)*W+G;break;case t.R:E=I=A[O++],P=R=A[O++];var k=A[O++],Z=A[O++],X=E+k,K=P+Z;if(y){if(L.containStroke(E,P,X,P,x,g,m)||L.containStroke(X,P,X,K,x,g,m)||L.containStroke(X,K,E,K,x,g,m)||L.containStroke(E,K,E,P,x,g,m))return!0}else b+=v(X,P,X,K,g,m),b+=v(E,K,E,P,g,m);break;case t.Z:if(y){if(L.containStroke(I,R,E,P,x,g,m))return!0}else b+=v(I,R,E,P,g,m);I=E,R=P;break}}return!y&&!a(R,P)&&(b+=v(I,R,E,P,g,m)||0),b!==0}function c(A,x,y){return f(A,0,!1,x,y)}function d(A,x,y,g){return f(A,x,!0,y,g)}V.contain=c,V.containStroke=d},59049:function(Y,V,n){var T=n(55041),L=1e-8;function M(C,D){return Math.abs(C-D)C+a&&i>S+a&&i>v+a||iw+a&&s>D+a&&s>p+a||ss&&(t=0,v={}),t++,v[G]=W,W}function r(N,_,G,F,W,U,H,z){return H?h(N,_,G,F,W,U,H,z):l(N,_,G,F,W,U,z)}function l(N,_,G,F,W,U,H){var z=R(N,_,W,U,H),B=o(N,_);W&&(B+=W[1]+W[3]);var k=z.outerHeight,Z=f(0,B,G),X=c(0,k,F),K=new T(Z,X,B,k);return K.lineHeight=z.lineHeight,K}function h(N,_,G,F,W,U,H,z){var B=E(N,{rich:H,truncate:z,font:_,textAlign:G,textPadding:W,textLineHeight:U}),k=B.outerWidth,Z=B.outerHeight,X=f(0,k,G),K=c(0,Z,F);return new T(X,K,k,Z)}function f(N,_,G){return G==="right"?N-=_:G==="center"&&(N-=_/2),N}function c(N,_,G){return G==="middle"?N-=_/2:G==="bottom"&&(N-=_),N}function d(N,_,G){var F=_.textPosition,W=_.textDistance,U=G.x,H=G.y;W=W||0;var z=G.height,B=G.width,k=z/2,Z="left",X="top";switch(F){case"left":U-=W,H+=k,Z="right",X="middle";break;case"right":U+=W+B,H+=k,X="middle";break;case"top":U+=B/2,H-=W,Z="center",X="bottom";break;case"bottom":U+=B/2,H+=z+W,Z="center";break;case"inside":U+=B/2,H+=k,Z="center",X="middle";break;case"insideLeft":U+=W,H+=k,X="middle";break;case"insideRight":U+=B-W,H+=k,Z="right",X="middle";break;case"insideTop":U+=B/2,H+=W,Z="center";break;case"insideBottom":U+=B/2,H+=z-W,Z="center",X="bottom";break;case"insideTopLeft":U+=W,H+=W;break;case"insideTopRight":U+=B-W,H+=W,Z="right";break;case"insideBottomLeft":U+=W,H+=z-W,X="bottom";break;case"insideBottomRight":U+=B-W,H+=z-W,Z="right",X="bottom";break}return N=N||{},N.x=U,N.y=H,N.textAlign=Z,N.textVerticalAlign=X,N}function A(N,_,G){var F={textPosition:N,textDistance:G};return d({},F,_)}function x(N,_,G,F,W){if(!_)return"";var U=(N+"").split(` `);W=y(_,G,F,W);for(var H=0,z=U.length;H=H;B++)z-=H;var k=o(W,_);return k>z&&(W="",k=0),z=N-k,F.ellipsis=W,F.ellipsisWidth=k,F.contentWidth=z,F.containerWidth=N,F}function g(N,_){var G=_.containerWidth,F=_.font,W=_.contentWidth;if(!G)return"";var U=o(N,F);if(U<=G)return N;for(var H=0;;H++){if(U<=W||H>=_.maxIterations){N+=_.ellipsis;break}var z=H===0?m(N,W,_.ascCharWidth,_.cnCharWidth):U>0?Math.floor(N.length*W/U):0;N=N.substr(0,z),U=o(N,F)}return N===""&&(N=_.placeholder),N}function m(N,_,G,F){for(var W=0,U=0,H=N.length;UZ)N="",H=[];else if(X!=null)for(var K=y(X-(G?G[1]+G[3]:0),_,W.ellipsis,{minChar:W.minChar,placeholder:W.placeholder}),Q=0,J=H.length;QF&&P(G,N.substring(F,U)),P(G,W[2],W[1]),F=i.lastIndex}FQ)return{lines:[],width:0,height:0};j.textWidth=o(j.text,vt);var it=st.textWidth,ut=it==null||it==="auto";if(typeof it=="string"&&it.charAt(it.length-1)==="%")j.percentWidth=it,k.push(j),it=0;else{if(ut){it=j.textWidth;var gt=st.textBackgroundColor,Ct=gt&>.image;Ct&&(Ct=L.findExistImage(Ct),L.isImageReady(Ct)&&(it=Math.max(it,Ct.width*yt/Ct.height)))}var bt=ot?ot[1]+ot[3]:0;it+=bt;var et=K!=null?K-rt:null;et!=null&&etT&&C>M||Cw?D:0}Y.exports=V},27796:function(Y,V,n){var T=n(69008),L=n(35165),M=n(9806),w=function(D){D=D||{},L.call(this,D);for(var S in D)D.hasOwnProperty(S)&&(this[S]=D[S]);this._children=[],this.__storage=null,this.__dirty=!0};w.prototype={constructor:w,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(D){return this._children[D]},childOfName:function(D){for(var S=this._children,p=0;p=0&&(p.splice(v,0,D),this._doAdd(D))}return this},_doAdd:function(D){D.parent&&D.parent.remove(D),D.parent=this;var S=this.__storage,p=this.__zr;S&&S!==D.__storage&&(S.addToStorage(D),D instanceof w&&D.addChildrenToStorage(S)),p&&p.refresh()},remove:function(D){var S=this.__zr,p=this.__storage,v=this._children,t=T.indexOf(v,D);return t<0?this:(v.splice(t,1),D.parent=null,p&&(p.delFromStorage(D),D instanceof w&&D.delChildrenFromStorage(p)),S&&S.refresh(),this)},removeAll:function(){var D=this._children,S=this.__storage,p,v;for(v=0;v=t.x&&p<=t.x+t.width&&v>=t.y&&v<=t.y+t.height},clone:function(){return new D(this.x,this.y,this.width,this.height)},copy:function(p){this.x=p.x,this.y=p.y,this.width=p.width,this.height=p.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},D.create=function(p){return new D(p.x,p.y,p.width,p.height)};var S=D;Y.exports=S},44420:function(Y,V,n){var T=n(92462),L=function(){this._track=[]};L.prototype={constructor:L,recognize:function(S,p,v){return this._doTrack(S,p,v),this._recognize(S)},clear:function(){return this._track.length=0,this},_doTrack:function(S,p,v){var t=S.touches;if(t){for(var s={points:[],touches:[],target:p,event:S},i=0,a=t.length;i1&&t&&t.length>1){var i=M(t)/M(s);!isFinite(i)&&(i=1),p.pinchScale=i;var a=w(t);return p.pinchX=a[0],p.pinchY=a[1],{type:"pinch",target:S[0].target,event:p}}}}},D=L;Y.exports=D},52498:function(Y){var V=function(){this.head=null,this.tail=null,this._len=0},n=V.prototype;n.insert=function(C){var D=new T(C);return this.insertEntry(D),D},n.insertEntry=function(C){this.head?(this.tail.next=C,C.prev=this.tail,C.next=null,this.tail=C):this.head=this.tail=C,this._len++},n.remove=function(C){var D=C.prev,S=C.next;D?D.next=S:this.head=S,S?S.prev=D:this.tail=D,C.next=C.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var T=function(C){this.value=C,this.next,this.prev},L=function(C){this._list=new V,this._map={},this._maxSize=C||10,this._lastRemovedEntry=null},M=L.prototype;M.put=function(C,D){var S=this._list,p=this._map,v=null;if(p[C]==null){var t=S.len(),s=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var i=S.head;S.remove(i),delete p[i.key],v=i.value,this._lastRemovedEntry=i}s?s.value=D:s=new T(D),s.key=C,S.insertEntry(s),p[C]=s}return v},M.get=function(C){var D=this._map[C],S=this._list;if(D!=null)return D!==S.tail&&(S.remove(D),S.insertEntry(D)),D.value},M.clear=function(){this._list.clear(),this._map={}};var w=L;Y.exports=w},94615:function(Y,V,n){var T=n(22576),L=n(47764),M=n(16254),w=n(9806),C=n(69893),D=C.devicePixelRatio,S={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},p=[],v=[],t=[],s=[],i=Math.min,a=Math.max,u=Math.cos,e=Math.sin,o=Math.sqrt,r=Math.abs,l=typeof Float32Array!="undefined",h=function(c){this._saveData=!c,this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(c,d,A){A=A||0,this._ux=r(A/D/c)||0,this._uy=r(A/D/d)||0},getContext:function(){return this._ctx},beginPath:function(c){return this._ctx=c,c&&c.beginPath(),c&&(this.dpr=c.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(c,d){return this.addData(S.M,c,d),this._ctx&&this._ctx.moveTo(c,d),this._x0=c,this._y0=d,this._xi=c,this._yi=d,this},lineTo:function(c,d){var A=r(c-this._xi)>this._ux||r(d-this._yi)>this._uy||this._len<5;return this.addData(S.L,c,d),this._ctx&&A&&(this._needsDash()?this._dashedLineTo(c,d):this._ctx.lineTo(c,d)),A&&(this._xi=c,this._yi=d),this},bezierCurveTo:function(c,d,A,x,y,g){return this.addData(S.C,c,d,A,x,y,g),this._ctx&&(this._needsDash()?this._dashedBezierTo(c,d,A,x,y,g):this._ctx.bezierCurveTo(c,d,A,x,y,g)),this._xi=y,this._yi=g,this},quadraticCurveTo:function(c,d,A,x){return this.addData(S.Q,c,d,A,x),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(c,d,A,x):this._ctx.quadraticCurveTo(c,d,A,x)),this._xi=A,this._yi=x,this},arc:function(c,d,A,x,y,g){return this.addData(S.A,c,d,A,A,x,y-x,0,g?0:1),this._ctx&&this._ctx.arc(c,d,A,x,y,g),this._xi=u(y)*A+c,this._yi=e(y)*A+d,this},arcTo:function(c,d,A,x,y){return this._ctx&&this._ctx.arcTo(c,d,A,x,y),this},rect:function(c,d,A,x){return this._ctx&&this._ctx.rect(c,d,A,x),this.addData(S.R,c,d,A,x),this},closePath:function(){this.addData(S.Z);var c=this._ctx,d=this._x0,A=this._y0;return c&&(this._needsDash()&&this._dashedLineTo(d,A),c.closePath()),this._xi=d,this._yi=A,this},fill:function(c){c&&c.fill(),this.toStatic()},stroke:function(c){c&&c.stroke(),this.toStatic()},setLineDash:function(c){if(c instanceof Array){this._lineDash=c,this._dashIdx=0;for(var d=0,A=0;Ad.length&&(this._expandData(),d=this.data);for(var A=0;A0&&P<=c||I<0&&P>=c||I===0&&(R>0&&O<=d||R<0&&O>=d);)G=this._dashIdx,N=y[G],P+=I*N,O+=R*N,this._dashIdx=(G+1)%_,!(I>0&&Pm||R>0&&Ob)&&g[G%2?"moveTo":"lineTo"](I>=0?i(P,c):a(P,c),R>=0?i(O,d):a(O,d));I=P-c,R=O-d,this._dashOffset=-o(I*I+R*R)},_dashedBezierTo:function(c,d,A,x,y,g){var m=this._dashSum,b=this._dashOffset,I=this._lineDash,R=this._ctx,E=this._xi,P=this._yi,O,N,_,G=T.cubicAt,F=0,W=this._dashIdx,U=I.length,H,z,B=0;for(b<0&&(b=m+b),b%=m,O=0;O<1;O+=.1)N=G(E,c,A,y,O+.1)-G(E,c,A,y,O),_=G(P,d,x,g,O+.1)-G(P,d,x,g,O),F+=o(N*N+_*_);for(;Wb));W++);for(O=(B-b)/F;O<=1;)H=G(E,c,A,y,O),z=G(P,d,x,g,O),W%2?R.moveTo(H,z):R.lineTo(H,z),O+=I[W]/F,W=(W+1)%U;W%2!==0&&R.lineTo(y,g),N=y-H,_=g-z,this._dashOffset=-o(N*N+_*_)},_dashedQuadraticTo:function(c,d,A,x){var y=A,g=x;A=(A+2*c)/3,x=(x+2*d)/3,c=(this._xi+2*c)/3,d=(this._yi+2*d)/3,this._dashedBezierTo(c,d,A,x,y,g)},toStatic:function(){var c=this.data;c instanceof Array&&(c.length=this._len,l&&(this.data=new Float32Array(c)))},getBoundingRect:function(){p[0]=p[1]=t[0]=t[1]=Number.MAX_VALUE,v[0]=v[1]=s[0]=s[1]=-Number.MAX_VALUE;for(var c=this.data,d=0,A=0,x=0,y=0,g=0;gI||r(b-g)>R||P===E-1)&&(c.lineTo(m,b),y=m,g=b);break;case S.C:c.bezierCurveTo(d[P++],d[P++],d[P++],d[P++],d[P++],d[P++]),y=d[P-2],g=d[P-1];break;case S.Q:c.quadraticCurveTo(d[P++],d[P++],d[P++],d[P++]),y=d[P-2],g=d[P-1];break;case S.A:var N=d[P++],_=d[P++],G=d[P++],F=d[P++],W=d[P++],U=d[P++],H=d[P++],z=d[P++],B=G>F?G:F,k=G>F?1:G/F,Z=G>F?F/G:1,X=Math.abs(G-F)>.001,K=W+U;X?(c.translate(N,_),c.rotate(H),c.scale(k,Z),c.arc(0,0,B,W,K,1-z),c.scale(1/k,1/Z),c.rotate(-H),c.translate(-N,-_)):c.arc(N,_,B,W,K,1-z),P===1&&(A=u(W)*G+N,x=e(W)*F+_),y=u(K)*G+N,g=e(K)*F+_;break;case S.R:A=y=d[P],x=g=d[P+1],c.rect(d[P++],d[P++],d[P++],d[P++]);break;case S.Z:c.closePath(),y=A,g=x}}}},h.CMD=S;var f=h;Y.exports=f},9262:function(Y){function V(){}V.prototype={diff:function(w,C,D){D||(D=function(l,h){return l===h}),this.equals=D;var S=this;w=w.slice(),C=C.slice();var p=C.length,v=w.length,t=1,s=p+v,i=[{newPos:-1,components:[]}],a=this.extractCommon(i[0],C,w,0);if(i[0].newPos+1>=p&&a+1>=v){for(var u=[],e=0;e=p&&d+1>=v)return n(S,h.components,C,w);i[l]=h}t++}for(;t<=s;){var r=o();if(r)return r}},pushComponent:function(w,C,D){var S=w[w.length-1];S&&S.added===C&&S.removed===D?w[w.length-1]={count:S.count+1,added:C,removed:D}:w.push({count:1,added:C,removed:D})},extractCommon:function(w,C,D,S){for(var p=C.length,v=D.length,t=w.newPos,s=t-S,i=0;t+11e-4){y[0]=l-f,y[1]=h-c,g[0]=l+f,g[1]=h+c;return}if(p[0]=D(d)*f+l,p[1]=C(d)*c+h,v[0]=D(A)*f+l,v[1]=C(A)*c+h,m(y,p,v),b(g,p,v),d=d%S,d<0&&(d=d+S),A=A%S,A<0&&(A=A+S),d>A&&!x?A+=S:dd&&(t[0]=D(E)*f+l,t[1]=C(E)*c+h,m(y,t,y),b(g,t,g))}V.fromPoints=s,V.fromLine=i,V.fromCubic=e,V.fromQuadratic=o,V.fromArc=r},22576:function(Y,V,n){var T=n(47764),L=T.create,M=T.distSquare,w=Math.pow,C=Math.sqrt,D=1e-8,S=1e-4,p=C(3),v=1/3,t=L(),s=L(),i=L();function a(m){return m>-D&&mD||m<-D}function e(m,b,I,R,E){var P=1-E;return P*P*(P*m+3*E*b)+E*E*(E*R+3*P*I)}function o(m,b,I,R,E){var P=1-E;return 3*(((b-m)*P+2*(I-b)*E)*P+(R-I)*E*E)}function r(m,b,I,R,E,P){var O=R+3*(b-I)-m,N=3*(I-b*2+m),_=3*(b-m),G=m-E,F=N*N-3*O*_,W=N*_-9*O*G,U=_*_-3*N*G,H=0;if(a(F)&&a(W))if(a(N))P[0]=0;else{var z=-_/N;z>=0&&z<=1&&(P[H++]=z)}else{var B=W*W-4*F*U;if(a(B)){var k=W/F,z=-N/O+k,Z=-k/2;z>=0&&z<=1&&(P[H++]=z),Z>=0&&Z<=1&&(P[H++]=Z)}else if(B>0){var X=C(B),K=F*N+1.5*O*(-W+X),Q=F*N+1.5*O*(-W-X);K<0?K=-w(-K,v):K=w(K,v),Q<0?Q=-w(-Q,v):Q=w(Q,v);var z=(-N-(K+Q))/(3*O);z>=0&&z<=1&&(P[H++]=z)}else{var J=(2*F*N-3*O*W)/(2*C(F*F*F)),tt=Math.acos(J)/3,q=C(F),rt=Math.cos(tt),z=(-N-2*q*rt)/(3*O),Z=(-N+q*(rt+p*Math.sin(tt)))/(3*O),$=(-N+q*(rt-p*Math.sin(tt)))/(3*O);z>=0&&z<=1&&(P[H++]=z),Z>=0&&Z<=1&&(P[H++]=Z),$>=0&&$<=1&&(P[H++]=$)}}return H}function l(m,b,I,R,E){var P=6*I-12*b+6*m,O=9*b+3*R-3*m-9*I,N=3*b-3*m,_=0;if(a(O)){if(u(P)){var G=-N/P;G>=0&&G<=1&&(E[_++]=G)}}else{var F=P*P-4*O*N;if(a(F))E[0]=-P/(2*O);else if(F>0){var W=C(F),G=(-P+W)/(2*O),U=(-P-W)/(2*O);G>=0&&G<=1&&(E[_++]=G),U>=0&&U<=1&&(E[_++]=U)}}return _}function h(m,b,I,R,E,P){var O=(b-m)*E+m,N=(I-b)*E+b,_=(R-I)*E+I,G=(N-O)*E+O,F=(_-N)*E+N,W=(F-G)*E+G;P[0]=m,P[1]=O,P[2]=G,P[3]=W,P[4]=W,P[5]=F,P[6]=_,P[7]=R}function f(m,b,I,R,E,P,O,N,_,G,F){var W,U=.005,H=1/0,z,B,k,Z;t[0]=_,t[1]=G;for(var X=0;X<1;X+=.05)s[0]=e(m,I,E,O,X),s[1]=e(b,R,P,N,X),k=M(t,s),k=0&&k=0&&G<=1&&(E[_++]=G)}}else{var F=O*O-4*P*N;if(a(F)){var G=-O/(2*P);G>=0&&G<=1&&(E[_++]=G)}else if(F>0){var W=C(F),G=(-O+W)/(2*P),U=(-O-W)/(2*P);G>=0&&G<=1&&(E[_++]=G),U>=0&&U<=1&&(E[_++]=U)}}return _}function x(m,b,I){var R=m+I-2*b;return R===0?.5:(m-b)/R}function y(m,b,I,R,E){var P=(b-m)*R+m,O=(I-b)*R+b,N=(O-P)*R+P;E[0]=m,E[1]=P,E[2]=N,E[3]=N,E[4]=O,E[5]=I}function g(m,b,I,R,E,P,O,N,_){var G,F=.005,W=1/0;t[0]=O,t[1]=N;for(var U=0;U<1;U+=.05){s[0]=c(m,I,E,U),s[1]=c(b,R,P,U);var H=M(t,s);H=0&&H>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[h]+":0",e[f]+":0",u[1-h]+":auto",e[1-f]+":auto",""].join("!important;"),s.appendChild(r),a.push(r)}return a}function v(s,i,a){for(var u=a?"invTrans":"trans",e=i[u],o=i.srcCoords,r=!0,l=[],h=[],f=0;f<4;f++){var c=s[f].getBoundingClientRect(),d=2*f,A=c.left,x=c.top;l.push(A,x),r=r&&o&&A===o[d]&&x===o[d+1],h.push(s[f].offsetLeft,s[f].offsetTop)}return r&&e?e:(i.srcCoords=l,i[u]=a?M(h,l):M(l,h))}function t(s){return s.nodeName.toUpperCase()==="CANVAS"}V.transformLocalCoord=D,V.transformCoordWithViewport=S,V.isCanvasEl=t},12973:function(Y){var V={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?V={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?V={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?V={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:V=T(navigator.userAgent);var n=V;function T(L){var M={},w={},C=L.match(/Firefox\/([\d.]+)/),D=L.match(/MSIE\s([\d.]+)/)||L.match(/Trident\/.+?rv:(([\d.]+))/),S=L.match(/Edge\/([\d.]+)/),p=/micromessenger/i.test(L);return C&&(w.firefox=!0,w.version=C[1]),D&&(w.ie=!0,w.version=D[1]),S&&(w.edge=!0,w.version=S[1]),p&&(w.weChat=!0),{browser:w,os:M,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!w.ie&&!w.edge,pointerEventsSupported:"onpointerdown"in window&&(w.edge||w.ie&&w.version>=11),domSupported:typeof document!="undefined"}}Y.exports=n},92462:function(Y,V,n){var T=n(37283);V.Dispatcher=T;var L=n(12973),M=n(12513),w=M.isCanvasEl,C=M.transformCoordWithViewport,D=typeof window!="undefined"&&!!window.addEventListener,S=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,p=[];function v(l,h,f,c){return f=f||{},c||!L.canvasSupported?t(l,h,f):L.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(f.zrX=h.layerX,f.zrY=h.layerY):h.offsetX!=null?(f.zrX=h.offsetX,f.zrY=h.offsetY):t(l,h,f),f}function t(l,h,f){if(L.domSupported&&l.getBoundingClientRect){var c=h.clientX,d=h.clientY;if(w(l)){var A=l.getBoundingClientRect();f.zrX=c-A.left,f.zrY=d-A.top;return}else if(C(p,l,c,d)){f.zrX=p[0],f.zrY=p[1];return}}f.zrX=f.zrY=0}function s(l){return l||window.event}function i(l,h,f){if(h=s(h),h.zrX!=null)return h;var c=h.type,d=c&&c.indexOf("touch")>=0;if(!d)v(l,h,h,f),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var A=c!=="touchend"?h.targetTouches[0]:h.changedTouches[0];A&&v(l,A,h,f)}var x=h.button;return h.which==null&&x!==void 0&&S.test(h.type)&&(h.which=x&1?1:x&2?3:x&4?2:0),h}function a(l,h,f,c){D?l.addEventListener(h,f,c):l.attachEvent("on"+h,f)}function u(l,h,f,c){D?l.removeEventListener(h,f,c):l.detachEvent("on"+h,f)}var e=D?function(l){l.preventDefault(),l.stopPropagation(),l.cancelBubble=!0}:function(l){l.returnValue=!1,l.cancelBubble=!0};function o(l){return l.which===2||l.which===3}function r(l){return l.which>1}V.clientToLocal=v,V.getNativeEvent=s,V.normalizeEvent=i,V.addEventListener=a,V.removeEventListener=u,V.stop=e,V.isMiddleOrRightButtonOnMouseUpDown=o,V.notLeftMouse=r},3702:function(Y,V){var n=Math.log(2);function T(M,w,C,D,S,p){var v=D+"-"+S,t=M.length;if(p.hasOwnProperty(v))return p[v];if(w===1){var s=Math.round(Math.log((1<=V;)s|=t&1,t>>=1;return t+s}function M(t,s,i,a){var u=s+1;if(u===i)return 1;if(a(t[u++],t[s])<0){for(;u=0;)u++;return u-s}function w(t,s,i){for(i--;s>>1,u(e,t[l])<0?r=l:o=l+1;var h=a-o;switch(h){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;h>0;)t[o+h]=t[o+h-1],h--}t[o]=e}}function D(t,s,i,a,u,e){var o=0,r=0,l=1;if(e(t,s[i+u])>0){for(r=a-u;l0;)o=l,l=(l<<1)+1,l<=0&&(l=r);l>r&&(l=r),o+=u,l+=u}else{for(r=u+1;lr&&(l=r);var h=o;o=u-l,l=u-h}for(o++;o>>1);e(t,s[i+f])>0?o=f+1:l=f}return l}function S(t,s,i,a,u,e){var o=0,r=0,l=1;if(e(t,s[i+u])<0){for(r=u+1;lr&&(l=r);var h=o;o=u-l,l=u-h}else{for(r=a-u;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=r);l>r&&(l=r),o+=u,l+=u}for(o++;o>>1);e(t,s[i+f])<0?l=f:o=f+1}return l}function p(t,s){var i=n,a=0,u=T,e=0,o,r,l=0;a=t.length,a<2*T&&(u=a>>>1);var h=[];e=a<120?5:a<1542?10:a<119151?19:40,o=[],r=[];function f(g,m){o[l]=g,r[l]=m,l+=1}function c(){for(;l>1;){var g=l-2;if(g>=1&&r[g-1]<=r[g]+r[g+1]||g>=2&&r[g-2]<=r[g]+r[g-1])r[g-1]r[g+1])break;A(g)}}function d(){for(;l>1;){var g=l-2;g>0&&r[g-1]=n||G>=n);if(F)break;N<0&&(N=0),N+=2}if(i=N,i<1&&(i=1),m===1){for(R=0;R=0;R--)t[_+R]=t[N+R];t[O]=h[P];return}for(var G=i;;){var F=0,W=0,U=!1;do if(s(h[P],t[E])<0){if(t[O--]=t[E--],F++,W=0,--m===0){U=!0;break}}else if(t[O--]=h[P--],W++,F=0,--I===1){U=!0;break}while((F|W)=0;R--)t[_+R]=t[N+R];if(m===0){U=!0;break}}if(t[O--]=h[P--],--I===1){U=!0;break}if(W=I-D(t[E],h,0,I,I-1,s),W!==0){for(O-=W,P-=W,I-=W,_=O+1,N=P+1,R=0;R=n||W>=n);if(U)break;G<0&&(G=0),G+=2}if(i=G,i<1&&(i=1),I===1){for(O-=m,E-=m,_=O+1,N=E+1,R=m-1;R>=0;R--)t[_+R]=t[N+R];t[O]=h[P]}else{if(I===0)throw new Error;for(N=O-(I-1),R=0;Rr&&(l=r),C(t,i,i+l,i+e,s),e=l}o.pushRun(i,e),o.mergeRuns(),u-=e,i+=e}while(u!==0);o.forceMergeRuns()}}Y.exports=v},69008:function(Y,V){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},T={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},L=Object.prototype.toString,M=Array.prototype,w=M.forEach,C=M.filter,D=M.slice,S=M.map,p=M.reduce,v={};function t($,j){$==="createCanvas"&&(r=null),v[$]=j}function s($){if($==null||typeof $!="object")return $;var j=$,st=L.call($);if(st==="[object Array]"){if(!Q($)){j=[];for(var ot=0,vt=$.length;ot1e-10&&(e.width+=o/r,e.height+=o/r,e.x-=o/r/2,e.y-=o/r/2)}return e}return s},contain:function(s,i){var a=this.transformCoordToLocal(s,i),u=this.getBoundingRect(),e=this.style;if(s=a[0],i=a[1],u.contain(s,i)){var o=this.path.data;if(e.hasStroke()){var r=e.lineWidth,l=e.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(e.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),w.containStroke(o,r/l,s,i)))return!0}if(e.hasFill())return w.contain(o,s,i)}return!1},dirty:function(s){s==null&&(s=!0),s&&(this.__dirtyPath=s,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(s){return this.animate("shape",s)},attrKV:function(s,i){s==="shape"?(this.setShape(i),this.__dirtyPath=!0,this._rect=null):T.prototype.attrKV.call(this,s,i)},setShape:function(s,i){var a=this.shape;if(a){if(L.isObject(s))for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u]);else a[s]=i;this.dirty(!0)}return this},getLineScale:function(){var s=this.transform;return s&&S(s[0]-1)>1e-10&&S(s[3]-1)>1e-10?Math.sqrt(S(s[0]*s[3]-s[2]*s[1])):1}},v.extend=function(s){var i=function(u){v.call(this,u),s.style&&this.style.extendFrom(s.style,!1);var e=s.shape;if(e){this.shape=this.shape||{};var o=this.shape;for(var r in e)!o.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(o[r]=e[r])}s.init&&s.init.call(this,u)};L.inherits(i,v);for(var a in s)a!=="style"&&a!=="shape"&&(i.prototype[a]=s[a]);return i},L.inherits(v,T);var t=v;Y.exports=t},55620:function(Y){var V=function(T,L){this.image=T,this.repeat=L,this.type="pattern"};V.prototype.getCanvasPattern=function(T){return T.createPattern(this.image,this.repeat||"repeat")};var n=V;Y.exports=n},29683:function(Y,V,n){var T=n(69008),L=n(9193),M=function(C,D,S,p,v){this.x=C==null?.5:C,this.y=D==null?.5:D,this.r=S==null?.5:S,this.type="radial",this.global=v||!1,L.call(this,p)};M.prototype={constructor:M},T.inherits(M,L);var w=M;Y.exports=w},7255:function(Y,V,n){var T=n(73238),L=n(23982),M=L.ContextCachedBy,w=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],C=function(i){this.extendFrom(i,!1)};function D(i,a,u){var e=a.x==null?0:a.x,o=a.x2==null?1:a.x2,r=a.y==null?0:a.y,l=a.y2==null?0:a.y2;a.global||(e=e*u.width+u.x,o=o*u.width+u.x,r=r*u.height+u.y,l=l*u.height+u.y),e=isNaN(e)?0:e,o=isNaN(o)?1:o,r=isNaN(r)?0:r,l=isNaN(l)?0:l;var h=i.createLinearGradient(e,r,o,l);return h}function S(i,a,u){var e=u.width,o=u.height,r=Math.min(e,o),l=a.x==null?.5:a.x,h=a.y==null?.5:a.y,f=a.r==null?.5:a.r;a.global||(l=l*e+u.x,h=h*o+u.y,f=f*r);var c=i.createRadialGradient(l,h,0,l,h,f);return c}C.prototype={constructor:C,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(i,a,u){var e=this,o=u&&u.style,r=!o||i.__attrCachedBy!==M.STYLE_BIND;i.__attrCachedBy=M.STYLE_BIND;for(var l=0;l0},extendFrom:function(i,a){if(i)for(var u in i)i.hasOwnProperty(u)&&(a===!0||(a===!1?!this.hasOwnProperty(u):i[u]!=null))&&(this[u]=i[u])},set:function(i,a){typeof i=="string"?this[i]=a:this.extendFrom(i,!0)},clone:function(){var i=new this.constructor;return i.extendFrom(this,!0),i},getGradient:function(i,a,u){for(var e=a.type==="radial"?S:D,o=e(i,a,u),r=a.colorStops,l=0;l=11?function(){var C=this.__clipPaths,D=this.style,S;if(C)for(var p=0;p=2){if(p&&p!=="spline"){var v=L(S,p,D,C.smoothConstraint);w.moveTo(S[0][0],S[0][1]);for(var t=S.length,s=0;s<(D?t:t-1);s++){var i=v[s*2],a=v[s*2+1],u=S[(s+1)%t];w.bezierCurveTo(i[0],i[1],a[0],a[1],u[0],u[1])}}else{p==="spline"&&(S=T(S,D)),w.moveTo(S[0][0],S[0][1]);for(var s=1,e=S.length;sC&&(i=p+v,p*=C/i,v*=C/i),t+s>C&&(i=t+s,t*=C/i,s*=C/i),v+t>D&&(i=v+t,v*=D/i,t*=D/i),p+s>D&&(i=p+s,p*=D/i,s*=D/i),T.moveTo(M+p,w),T.lineTo(M+C-v,w),v!==0&&T.arc(M+C-v,w+v,v,-Math.PI/2,0),T.lineTo(M+C,w+D-t),t!==0&&T.arc(M+C-t,w+D-t,t,0,Math.PI/2),T.lineTo(M+s,w+D),s!==0&&T.arc(M+s,w+D-s,s,Math.PI/2,Math.PI),T.lineTo(M,w+p),p!==0&&T.arc(M+p,w+p,p,Math.PI,Math.PI*1.5)}V.buildPath=n},78581:function(Y,V,n){var T=n(47764),L=T.min,M=T.max,w=T.scale,C=T.distance,D=T.add,S=T.clone,p=T.sub;function v(t,s,i,a){var u=[],e=[],o=[],r=[],l,h,f,c;if(a){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,A=t.length;dS-2?S-1:a+1],l=C[a>S-3?S-1:a+2]);var h=u*u,f=u*h;p.push([M(e[0],o[0],r[0],l[0],u,h,f),M(e[1],o[1],r[1],l[1],u,h,f)])}return p}Y.exports=w},26020:function(Y,V){var n=Math.round;function T(w,C,D){if(C){var S=C.x1,p=C.x2,v=C.y1,t=C.y2;w.x1=S,w.x2=p,w.y1=v,w.y2=t;var s=D&&D.lineWidth;s&&(n(S*2)===n(p*2)&&(w.x1=w.x2=M(S,s,!0)),n(v*2)===n(t*2)&&(w.y1=w.y2=M(v,s,!0)))}}function L(w,C,D){if(C){var S=C.x,p=C.y,v=C.width,t=C.height;w.x=S,w.y=p,w.width=v,w.height=t;var s=D&&D.lineWidth;s&&(w.x=M(S,s,!0),w.y=M(p,s,!0),w.width=Math.max(M(S+v,s,!1)-w.x,v===0?0:1),w.height=Math.max(M(p+t,s,!1)-w.y,t===0?0:1))}}function M(w,C,D){if(!C)return w;var S=n(w*2);return(S+n(C))%2===0?S/2:(S+(D?1:-1))/2}V.subPixelOptimizeLine=T,V.subPixelOptimizeRect=L,V.subPixelOptimize=M},53750:function(Y,V,n){var T=n(69008),L=T.retrieve2,M=T.retrieve3,w=T.each,C=T.normalizeCssArray,D=T.isString,S=T.isObject,p=n(63603),v=n(55099),t=n(33557),s=n(73238),i=n(23982),a=i.ContextCachedBy,u=i.WILL_BE_RESTORED,e=p.DEFAULT_FONT,o={left:1,right:1,center:1},r={top:1,bottom:1,middle:1},l=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},f={};function c(U){return d(U),w(U.rich,d),U}function d(U){if(U){U.font=p.makeFont(U);var H=U.textAlign;H==="middle"&&(H="center"),U.textAlign=H==null||o[H]?H:"left";var z=U.textVerticalAlign||U.textBaseline;z==="center"&&(z="middle"),U.textVerticalAlign=z==null||r[z]?z:"top";var B=U.textPadding;B&&(U.textPadding=C(U.textPadding))}}function A(U,H,z,B,k,Z){B.rich?y(U,H,z,B,k,Z):x(U,H,z,B,k,Z)}function x(U,H,z,B,k,Z){"use strict";var X=I(B),K,Q=!1,J=H.__attrCachedBy===a.PLAIN_TEXT;Z!==u?(Z&&(K=Z.style,Q=!X&&J&&K),H.__attrCachedBy=X?a.NONE:a.PLAIN_TEXT):J&&(H.__attrCachedBy=a.NONE);var tt=B.font||e;(!Q||tt!==(K.font||e))&&(H.font=tt);var q=U.__computedFont;U.__styleFont!==tt&&(U.__styleFont=tt,q=U.__computedFont=H.font);var rt=B.textPadding,$=B.textLineHeight,j=U.__textCotentBlock;(!j||U.__dirtyText)&&(j=U.__textCotentBlock=p.parsePlainText(z,q,rt,$,B.truncate));var st=j.outerHeight,ot=j.lines,vt=j.lineHeight,yt=P(f,U,B,k),it=yt.baseX,ut=yt.baseY,gt=yt.textAlign||"left",Ct=yt.textVerticalAlign;m(H,B,k,it,ut);var bt=p.adjustTextY(ut,st,Ct),et=it,lt=bt;if(X||rt){var ht=p.getWidth(z,q),pt=ht;rt&&(pt+=rt[1]+rt[3]);var mt=p.adjustTextX(it,pt,gt);X&&R(U,H,B,mt,bt,pt,st),rt&&(et=F(it,gt,rt),lt+=rt[0])}H.textAlign=gt,H.textBaseline="middle",H.globalAlpha=B.opacity||1;for(var ft=0;ft=0&&(ft=gt[mt],ft.textAlign==="right");)b(U,H,ft,B,bt,vt,pt,"right"),et-=ft.width,pt-=ft.width,mt--;for(ht+=(Z-(ht-ot)-(yt-pt)-et)/2;lt<=mt;)ft=gt[lt],b(U,H,ft,B,bt,vt,ht+ft.width/2,"center"),ht+=ft.width,lt++;vt+=bt}}function m(U,H,z,B,k){if(z&&H.textRotation){var Z=H.textOrigin;Z==="center"?(B=z.width/2+z.x,k=z.height/2+z.y):Z&&(B=Z[0]+z.x,k=Z[1]+z.y),U.translate(B,k),U.rotate(-H.textRotation),U.translate(-B,-k)}}function b(U,H,z,B,k,Z,X,K){var Q=B.rich[z.styleName]||{};Q.text=z.text;var J=z.textVerticalAlign,tt=Z+k/2;J==="top"?tt=Z+z.height/2:J==="bottom"&&(tt=Z+k-z.height/2),!z.isLineHolder&&I(Q)&&R(U,H,Q,K==="right"?X-z.width:K==="center"?X-z.width/2:X,tt-z.height/2,z.width,z.height);var q=z.textPadding;q&&(X=F(X,K,q),tt-=z.height/2-q[2]-z.textHeight/2),O(H,"shadowBlur",M(Q.textShadowBlur,B.textShadowBlur,0)),O(H,"shadowColor",Q.textShadowColor||B.textShadowColor||"transparent"),O(H,"shadowOffsetX",M(Q.textShadowOffsetX,B.textShadowOffsetX,0)),O(H,"shadowOffsetY",M(Q.textShadowOffsetY,B.textShadowOffsetY,0)),O(H,"textAlign",K),O(H,"textBaseline","middle"),O(H,"font",z.font||e);var rt=N(Q.textStroke||B.textStroke,j),$=_(Q.textFill||B.textFill),j=L(Q.textStrokeWidth,B.textStrokeWidth);rt&&(O(H,"lineWidth",j),O(H,"strokeStyle",rt),H.strokeText(z.text,X,tt)),$&&(O(H,"fillStyle",$),H.fillText(z.text,X,tt))}function I(U){return!!(U.textBackgroundColor||U.textBorderWidth&&U.textBorderColor)}function R(U,H,z,B,k,Z,X){var K=z.textBackgroundColor,Q=z.textBorderWidth,J=z.textBorderColor,tt=D(K);if(O(H,"shadowBlur",z.textBoxShadowBlur||0),O(H,"shadowColor",z.textBoxShadowColor||"transparent"),O(H,"shadowOffsetX",z.textBoxShadowOffsetX||0),O(H,"shadowOffsetY",z.textBoxShadowOffsetY||0),tt||Q&&J){H.beginPath();var q=z.textBorderRadius;q?v.buildPath(H,{x:B,y:k,width:Z,height:X,r:q}):H.rect(B,k,Z,X),H.closePath()}if(tt)if(O(H,"fillStyle",K),z.fillOpacity!=null){var rt=H.globalAlpha;H.globalAlpha=z.fillOpacity*z.opacity,H.fill(),H.globalAlpha=rt}else H.fill();else if(S(K)){var $=K.image;$=t.createOrUpdateImage($,null,U,E,K),$&&t.isImageReady($)&&H.drawImage($,B,k,Z,X)}if(Q&&J)if(O(H,"lineWidth",Q),O(H,"strokeStyle",J),z.strokeOpacity!=null){var rt=H.globalAlpha;H.globalAlpha=z.strokeOpacity*z.opacity,H.stroke(),H.globalAlpha=rt}else H.stroke()}function E(U,H){H.image=U}function P(U,H,z,B){var k=z.x||0,Z=z.y||0,X=z.textAlign,K=z.textVerticalAlign;if(B){var Q=z.textPosition;if(Q instanceof Array)k=B.x+G(Q[0],B.width),Z=B.y+G(Q[1],B.height);else{var J=H&&H.calculateTextPosition?H.calculateTextPosition(h,z,B):p.calculateTextPosition(h,z,B);k=J.x,Z=J.y,X=X||J.textAlign,K=K||J.textVerticalAlign}var tt=z.textOffset;tt&&(k+=tt[0],Z+=tt[1])}return U=U||{},U.baseX=k,U.baseY=Z,U.textAlign=X,U.textVerticalAlign=K,U}function O(U,H,z){return U[H]=s(U,H,z),U[H]}function N(U,H){return U==null||H<=0||U==="transparent"||U==="none"?null:U.image||U.colorStops?"#000":U}function _(U){return U==null||U==="none"?null:U.image||U.colorStops?"#000":U}function G(U,H){return typeof U=="string"?U.lastIndexOf("%")>=0?parseFloat(U)/100*H:parseFloat(U):U}function F(U,H,z){return H==="right"?U-z[1]:H==="center"?U+z[3]/2-z[1]/2:U+z[3]}function W(U,H){return U!=null&&(U||H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor||H.textPadding)}V.normalizeTextStyle=c,V.renderText=A,V.getBoxPosition=P,V.getStroke=N,V.getFill=_,V.parsePercent=G,V.needDrawText=W},40460:function(Y,V,n){var T=n(53750),L=n(9806),M=n(23982),w=M.WILL_BE_RESTORED,C=new L,D=function(){};D.prototype={constructor:D,drawRectText:function(p,v){var t=this.style;v=t.textRect||v,this.__dirty&&T.normalizeTextStyle(t,!0);var s=t.text;if(s!=null&&(s+=""),!!T.needDrawText(s,t)){p.save();var i=this.transform;t.transformText?this.setTransform(p):i&&(C.copy(v),C.applyTransform(i),v=C),T.renderText(this,p,s,t,v,w),p.restore()}}};var S=D;Y.exports=S},17745:function(Y,V,n){var T=n(60397),L=T.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(M,w){var C=w.cx,D=w.cy,S=Math.max(w.r,0),p=w.startAngle,v=w.endAngle,t=w.clockwise,s=Math.cos(p),i=Math.sin(p);M.moveTo(s*S+C,i*S+D),M.arc(C,D,S,p,v,!t)}});Y.exports=L},53663:function(Y,V,n){var T=n(60397),L=n(47764),M=n(22576),w=M.quadraticSubdivide,C=M.cubicSubdivide,D=M.quadraticAt,S=M.cubicAt,p=M.quadraticDerivativeAt,v=M.cubicDerivativeAt,t=[];function s(a,u,e){var o=a.cpx2,r=a.cpy2;return o===null||r===null?[(e?v:S)(a.x1,a.cpx1,a.cpx2,a.x2,u),(e?v:S)(a.y1,a.cpy1,a.cpy2,a.y2,u)]:[(e?p:D)(a.x1,a.cpx1,a.x2,u),(e?p:D)(a.y1,a.cpy1,a.y2,u)]}var i=T.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(a,u){var e=u.x1,o=u.y1,r=u.x2,l=u.y2,h=u.cpx1,f=u.cpy1,c=u.cpx2,d=u.cpy2,A=u.percent;A!==0&&(a.moveTo(e,o),c==null||d==null?(A<1&&(w(e,h,r,A,t),h=t[1],r=t[2],w(o,f,l,A,t),f=t[1],l=t[2]),a.quadraticCurveTo(h,f,r,l)):(A<1&&(C(e,h,c,r,A,t),h=t[1],c=t[2],r=t[3],C(o,f,d,l,A,t),f=t[1],d=t[2],l=t[3]),a.bezierCurveTo(h,f,c,d,r,l)))},pointAt:function(a){return s(this.shape,a,!1)},tangentAt:function(a){var u=s(this.shape,a,!0);return L.normalize(u,u)}});Y.exports=i},67679:function(Y,V,n){var T=n(60397),L=T.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(M,w,C){C&&M.moveTo(w.cx+w.r,w.cy),M.arc(w.cx,w.cy,w.r,0,Math.PI*2,!0)}});Y.exports=L},41422:function(Y,V,n){var T=n(60397),L=T.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(M,w){var C=.5522848,D=w.cx,S=w.cy,p=w.rx,v=w.ry,t=p*C,s=v*C;M.moveTo(D-p,S),M.bezierCurveTo(D-p,S-s,D-t,S-v,D,S-v),M.bezierCurveTo(D+t,S-v,D+p,S-s,D+p,S),M.bezierCurveTo(D+p,S+s,D+t,S+v,D,S+v),M.bezierCurveTo(D-t,S+v,D-p,S+s,D-p,S),M.closePath()}});Y.exports=L},330:function(Y,V,n){var T=n(60397),L=n(26020),M=L.subPixelOptimizeLine,w={},C=T.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(D,S){var p,v,t,s;this.subPixelOptimize?(M(w,S,this.style),p=w.x1,v=w.y1,t=w.x2,s=w.y2):(p=S.x1,v=S.y1,t=S.x2,s=S.y2);var i=S.percent;i!==0&&(D.moveTo(p,v),i<1&&(t=p*(1-i)+t*i,s=v*(1-i)+s*i),D.lineTo(t,s))},pointAt:function(D){var S=this.shape;return[S.x1*(1-D)+S.x2*D,S.y1*(1-D)+S.y2*D]}});Y.exports=C},66751:function(Y,V,n){var T=n(60397),L=n(1735),M=T.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(w,C){L.buildPath(w,C,!0)}});Y.exports=M},70391:function(Y,V,n){var T=n(60397),L=n(1735),M=T.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(w,C){L.buildPath(w,C,!1)}});Y.exports=M},74639:function(Y,V,n){var T=n(60397),L=n(55099),M=n(26020),w=M.subPixelOptimizeRect,C={},D=T.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(S,p){var v,t,s,i;this.subPixelOptimize?(w(C,p,this.style),v=C.x,t=C.y,s=C.width,i=C.height,C.r=p.r,p=C):(v=p.x,t=p.y,s=p.width,i=p.height),p.r?L.buildPath(S,p):S.rect(v,t,s,i),S.closePath()}});Y.exports=D},71908:function(Y,V,n){var T=n(60397),L=T.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(M,w){var C=w.cx,D=w.cy,S=Math.PI*2;M.moveTo(C+w.r,D),M.arc(C,D,w.r,0,S,!1),M.moveTo(C+w.r0,D),M.arc(C,D,w.r0,0,S,!0)}});Y.exports=L},63477:function(Y,V,n){var T=n(60397),L=n(33251),M=T.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:L(T.prototype.brush),buildPath:function(w,C){var D=C.cx,S=C.cy,p=Math.max(C.r0||0,0),v=Math.max(C.r,0),t=C.startAngle,s=C.endAngle,i=C.clockwise,a=Math.cos(t),u=Math.sin(t);w.moveTo(a*p+D,u*p+S),w.lineTo(a*v+D,u*v+S),w.arc(D,S,v,t,s,!i),w.lineTo(Math.cos(s)*p+D,Math.sin(s)*p+S),p!==0&&w.arc(D,S,p,s,t,i),w.closePath()}});Y.exports=M},69447:function(Y,V,n){var T=n(91807),L=n(32445),M=n(69008),w=M.isString,C=M.isFunction,D=M.isObject,S=M.isArrayLike,p=M.indexOf,v=function(){this.animators=[]};v.prototype={constructor:v,animate:function(u,e){var o,r=!1,l=this,h=this.__zr;if(u){var f=u.split("."),c=l;r=f[0]==="shape";for(var d=0,A=f.length;d0&&u.animate(e,!1).when(l==null?500:l,c).delay(h||0)}function i(u,e,o,r){if(!e)u.attr(o,r);else{var l={};l[e]={},l[e][o]=r,u.attr(l)}}var a=v;Y.exports=a},6947:function(Y){function V(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}V.prototype={constructor:V,_dragStart:function(L){for(var M=L.target;M&&!M.draggable;)M=M.parent;M&&(this._draggingTarget=M,M.dragging=!0,this._x=L.offsetX,this._y=L.offsetY,this.dispatchToElement(n(M,L),"dragstart",L.event))},_drag:function(L){var M=this._draggingTarget;if(M){var w=L.offsetX,C=L.offsetY,D=w-this._x,S=C-this._y;this._x=w,this._y=C,M.drift(D,S,L),this.dispatchToElement(n(M,L),"drag",L.event);var p=this.findHover(w,C,M).target,v=this._dropTarget;this._dropTarget=p,M!==p&&(v&&p!==v&&this.dispatchToElement(n(v,L),"dragleave",L.event),p&&p!==v&&this.dispatchToElement(n(p,L),"dragenter",L.event))}},_dragEnd:function(L){var M=this._draggingTarget;M&&(M.dragging=!1),this.dispatchToElement(n(M,L),"dragend",L.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,L),"drop",L.event),this._draggingTarget=null,this._dropTarget=null}};function n(L,M){return{target:L,topTarget:M&&M.topTarget}}var T=V;Y.exports=T},37283:function(Y){var V=Array.prototype.slice,n=function(w){this._$handlers={},this._$eventProcessor=w};n.prototype={constructor:n,one:function(w,C,D,S){return L(this,w,C,D,S,!0)},on:function(w,C,D,S){return L(this,w,C,D,S,!1)},isSilent:function(w){var C=this._$handlers;return!C[w]||!C[w].length},off:function(w,C){var D=this._$handlers;if(!w)return this._$handlers={},this;if(C){if(D[w]){for(var S=[],p=0,v=D[w].length;p3&&(S=V.call(S,1));for(var v=C.length,t=0;t4&&(S=V.call(S,1,S.length-1));for(var v=S[S.length-1],t=C.length,s=0;sw||i<-w}var D=function(i){i=i||{},i.position||(this.position=[0,0]),i.rotation==null&&(this.rotation=0),i.scale||(this.scale=[1,1]),this.origin=this.origin||null},S=D.prototype;S.transform=null,S.needLocalTransform=function(){return C(this.rotation)||C(this.position[0])||C(this.position[1])||C(this.scale[0]-1)||C(this.scale[1]-1)};var p=[];S.updateTransform=function(){var i=this.parent,a=i&&i.transform,u=this.needLocalTransform(),e=this.transform;if(!(u||a)){e&&M(e);return}e=e||T.create(),u?this.getLocalTransform(e):M(e),a&&(u?T.mul(e,i.transform,e):T.copy(e,i.transform)),this.transform=e;var o=this.globalScaleRatio;if(o!=null&&o!==1){this.getGlobalScale(p);var r=p[0]<0?-1:1,l=p[1]<0?-1:1,h=((p[0]-r)*o+r)/p[0]||0,f=((p[1]-l)*o+l)/p[1]||0;e[0]*=h,e[1]*=h,e[2]*=f,e[3]*=f}this.invTransform=this.invTransform||T.create(),T.invert(this.invTransform,e)},S.getLocalTransform=function(i){return D.getLocalTransform(this,i)},S.setTransform=function(i){var a=this.transform,u=i.dpr||1;a?i.setTransform(u*a[0],u*a[1],u*a[2],u*a[3],u*a[4],u*a[5]):i.setTransform(u,0,0,u,0,0)},S.restoreTransform=function(i){var a=i.dpr||1;i.setTransform(a,0,0,a,0,0)};var v=[],t=T.create();S.setLocalTransform=function(i){if(i){var a=i[0]*i[0]+i[1]*i[1],u=i[2]*i[2]+i[3]*i[3],e=this.position,o=this.scale;C(a-1)&&(a=Math.sqrt(a)),C(u-1)&&(u=Math.sqrt(u)),i[0]<0&&(a=-a),i[3]<0&&(u=-u),e[0]=i[4],e[1]=i[5],o[0]=a,o[1]=u,this.rotation=Math.atan2(-i[1]/u,i[0]/a)}},S.decomposeTransform=function(){if(this.transform){var i=this.parent,a=this.transform;i&&i.transform&&(T.mul(v,i.invTransform,a),a=v);var u=this.origin;u&&(u[0]||u[1])&&(t[4]=u[0],t[5]=u[1],T.mul(v,a,t),v[4]-=u[0],v[5]-=u[1],a=v),this.setLocalTransform(a)}},S.getGlobalScale=function(i){var a=this.transform;return i=i||[],a?(i[0]=Math.sqrt(a[0]*a[0]+a[1]*a[1]),i[1]=Math.sqrt(a[2]*a[2]+a[3]*a[3]),a[0]<0&&(i[0]=-i[0]),a[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},S.transformCoordToLocal=function(i,a){var u=[i,a],e=this.invTransform;return e&&L.applyTransform(u,u,e),u},S.transformCoordToGlobal=function(i,a){var u=[i,a],e=this.transform;return e&&L.applyTransform(u,u,e),u},D.getLocalTransform=function(i,a){a=a||[],M(a);var u=i.origin,e=i.scale||[1,1],o=i.rotation||0,r=i.position||[0,0];return u&&(a[4]-=u[0],a[5]-=u[1]),T.scale(a,a,e),o&&T.rotate(a,a,o),u&&(a[4]+=u[0],a[5]+=u[1]),a[4]+=r[0],a[5]+=r[1],a};var s=D;Y.exports=s},26919:function(Y,V,n){var T=n(87764),L=T.createElement,M=n(69008),w=n(32445),C=n(60397),D=n(89444),S=n(99999),p=n(9262),v=n(69377),t=n(17583),s=n(11209),i=n(96107),a=i.path,u=i.image,e=i.text;function o(m){return parseInt(m,10)}function r(m){return m instanceof C?a:m instanceof D?u:m instanceof S?e:a}function l(m,b){return b&&m&&b.parentNode!==m}function h(m,b,I){if(l(m,b)&&I){var R=I.nextSibling;R?m.insertBefore(b,R):m.appendChild(b)}}function f(m,b){if(l(m,b)){var I=m.firstChild;I?m.insertBefore(b,I):m.appendChild(b)}}function c(m,b){b&&m&&b.parentNode===m&&m.removeChild(b)}function d(m){return m.__textSvgEl}function A(m){return m.__svgEl}var x=function(m,b,I,R){this.root=m,this.storage=b,this._opts=I=M.extend({},I||{});var E=L("svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("version","1.1"),E.setAttribute("baseProfile","full"),E.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=L("g");E.appendChild(P);var O=L("g");E.appendChild(O),this.gradientManager=new v(R,O),this.clipPathManager=new t(R,O),this.shadowManager=new s(R,O);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=E,this._svgRoot=O,this._backgroundRoot=P,this._viewport=N,m.appendChild(N),N.appendChild(E),this.resize(I.width,I.height),this._visibleList=[]};x.prototype={constructor:x,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var m=this.getViewportRoot();if(m)return{offsetLeft:m.offsetLeft||0,offsetTop:m.offsetTop||0}},refresh:function(){var m=this.storage.getDisplayList(!0);this._paintList(m)},setBackgroundColor:function(m){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var b=L("rect");b.setAttribute("width",this.getWidth()),b.setAttribute("height",this.getHeight()),b.setAttribute("x",0),b.setAttribute("y",0),b.setAttribute("id",0),b.style.fill=m,this._backgroundRoot.appendChild(b),this._backgroundNode=b},_paintList:function(m){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var b=this._svgRoot,I=this._visibleList,R=m.length,E=[],P;for(P=0;P=0;--O)if(P[O]===E)return!0;return!1}),I}else return null;else return I[0]},resize:function(m,b){var I=this._viewport;I.style.display="none";var R=this._opts;if(m!=null&&(R.width=m),b!=null&&(R.height=b),m=this._getSize(0),b=this._getSize(1),I.style.display="",this._width!==m||this._height!==b){this._width=m,this._height=b;var E=I.style;E.width=m+"px",E.height=b+"px";var P=this._svgDom;P.setAttribute("width",m),P.setAttribute("height",b)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",m),this._backgroundNode.setAttribute("height",b))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(m){var b=this._opts,I=["width","height"][m],R=["clientWidth","clientHeight"][m],E=["paddingLeft","paddingTop"][m],P=["paddingRight","paddingBottom"][m];if(b[I]!=null&&b[I]!=="auto")return parseFloat(b[I]);var O=this.root,N=document.defaultView.getComputedStyle(O);return(O[R]||o(N[I])||o(O.style[I]))-(o(N[E])||0)-(o(N[P])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var m=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+m}};function y(m){return function(){w('In SVG mode painter not support method "'+m+'"')}}M.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(m){x.prototype[m]=y(m)});var g=x;Y.exports=g},87764:function(Y,V){var n="http://www.w3.org/2000/svg";function T(L){return document.createElementNS(n,L)}V.createElement=T},96107:function(Y,V,n){var T=n(87764),L=T.createElement,M=n(94615),w=n(9806),C=n(26237),D=n(63603),S=n(53750),p=n(99999),v=M.CMD,t=Array.prototype.join,s="none",i=Math.round,a=Math.sin,u=Math.cos,e=Math.PI,o=Math.PI*2,r=180/e,l=1e-4;function h(H){return i(H*1e4)/1e4}function f(H){return H-l}function c(H,z){var B=z?H.textFill:H.fill;return B!=null&&B!==s}function d(H,z){var B=z?H.textStroke:H.stroke;return B!=null&&B!==s}function A(H,z){z&&x(H,"transform","matrix("+t.call(z,",")+")")}function x(H,z,B){(!B||B.type!=="linear"&&B.type!=="radial")&&H.setAttribute(z,B)}function y(H,z,B){H.setAttributeNS("http://www.w3.org/1999/xlink",z,B)}function g(H,z,B,k){if(c(z,B)){var Z=B?z.textFill:z.fill;Z=Z==="transparent"?s:Z,x(H,"fill",Z),x(H,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else x(H,"fill",s);if(d(z,B)){var X=B?z.textStroke:z.stroke;X=X==="transparent"?s:X,x(H,"stroke",X);var K=B?z.textStrokeWidth:z.lineWidth,Q=!B&&z.strokeNoScale?k.getLineScale():1;x(H,"stroke-width",K/Q),x(H,"paint-order",B?"stroke":"fill"),x(H,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var J=z.lineDash;J?(x(H,"stroke-dasharray",z.lineDash.join(",")),x(H,"stroke-dashoffset",i(z.lineDashOffset||0))):x(H,"stroke-dasharray",""),z.lineCap&&x(H,"stroke-linecap",z.lineCap),z.lineJoin&&x(H,"stroke-linejoin",z.lineJoin),z.miterLimit&&x(H,"stroke-miterlimit",z.miterLimit)}else x(H,"stroke",s)}function m(H){for(var z=[],B=H.data,k=H.len(),Z=0;Z=o:-j>=o),it=j>0?j%o:j%o+o,ut=!1;yt?ut=!0:f(vt)?ut=!1:ut=it>=e==!!ot;var gt=h(J+q*u($)),Ct=h(tt+rt*a($));yt&&(ot?j=o-1e-4:j=-o+1e-4,ut=!0,Z===9&&z.push("M",gt,Ct));var bt=h(J+q*u($+j)),et=h(tt+rt*a($+j));z.push("A",h(q),h(rt),i(st*r),+ut,+ot,bt,et);break;case v.Z:K="Z";break;case v.R:var bt=h(B[Z++]),et=h(B[Z++]),lt=h(B[Z++]),ht=h(B[Z++]);z.push("M",bt,et,"L",bt+lt,et,"L",bt+lt,et+ht,"L",bt,et+ht,"L",bt,et);break}K&&z.push(K);for(var pt=0;ptmt){for(;ht0){var v=this.getDefs(!0),t=S[0],s,i,a=p?"_textDom":"_dom";t[a]?(i=t[a].getAttribute("id"),s=t[a],v.contains(s)||v.appendChild(s)):(i="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,s=this.createElement("clipPath"),s.setAttribute("id",i),v.appendChild(s),t[a]=s);var u=this.getSvgProxy(t);if(t.transform&&t.parent.invTransform&&!p){var e=Array.prototype.slice.call(t.transform);M.mul(t.transform,t.parent.invTransform,t.transform),u.brush(t),t.transform=e}else u.brush(t);var o=this.getSvgElement(t);s.innerHTML="",s.appendChild(o.cloneNode()),D.setAttribute("clip-path","url(#"+i+")"),S.length>1&&this.updateDom(s,S.slice(1),p)}else D&&D.setAttribute("clip-path","none")},w.prototype.markUsed=function(D){var S=this;D.__clipPaths&&L.each(D.__clipPaths,function(p){p._dom&&T.prototype.markUsed.call(S,p._dom),p._textDom&&T.prototype.markUsed.call(S,p._textDom)})};var C=w;Y.exports=C},97507:function(Y,V,n){var T=n(87764),L=T.createElement,M=n(69008),w=n(60397),C=n(89444),D=n(99999),S=n(96107),p=S.path,v=S.image,t=S.text,s="0",i="1";function a(e,o,r,l,h){this._zrId=e,this._svgRoot=o,this._tagNames=typeof r=="string"?[r]:r,this._markLabel=l,this._domName=h||"_dom",this.nextId=0}a.prototype.createElement=L,a.prototype.getDefs=function(e){var o=this._svgRoot,r=this._svgRoot.getElementsByTagName("defs");return r.length===0?e?(r=o.insertBefore(this.createElement("defs"),o.firstChild),r.contains||(r.contains=function(l){var h=r.children;if(!h)return!1;for(var f=h.length-1;f>=0;--f)if(h[f]===l)return!0;return!1}),r):null:r[0]},a.prototype.update=function(e,o){if(e){var r=this.getDefs(!1);if(e[this._domName]&&r.contains(e[this._domName]))typeof o=="function"&&o(e);else{var l=this.add(e);l&&(e[this._domName]=l)}}},a.prototype.addDom=function(e){var o=this.getDefs(!0);o.appendChild(e)},a.prototype.removeDom=function(e){var o=this.getDefs(!1);o&&e[this._domName]&&(o.removeChild(e[this._domName]),e[this._domName]=null)},a.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var o=[];return M.each(this._tagNames,function(r){var l=e.getElementsByTagName(r);o=o.concat([].slice.call(l))}),o},a.prototype.markAllUnused=function(){var e=this.getDoms(),o=this;M.each(e,function(r){r[o._markLabel]=s})},a.prototype.markUsed=function(e){e&&(e[this._markLabel]=i)},a.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var o=this.getDoms(),r=this;M.each(o,function(l){l[r._markLabel]!==i&&e.removeChild(l)})}},a.prototype.getSvgProxy=function(e){return e instanceof w?p:e instanceof C?v:e instanceof D?t:p},a.prototype.getTextSvgElement=function(e){return e.__textSvgEl},a.prototype.getSvgElement=function(e){return e.__svgEl};var u=a;Y.exports=u},69377:function(Y,V,n){var T=n(97507),L=n(69008),M=n(32445),w=n(83720);function C(S,p){T.call(this,S,p,["linearGradient","radialGradient"],"__gradient_in_use__")}L.inherits(C,T),C.prototype.addWithoutUpdate=function(S,p){if(p&&p.style){var v=this;L.each(["fill","stroke"],function(t){if(p.style[t]&&(p.style[t].type==="linear"||p.style[t].type==="radial")){var s=p.style[t],i=v.getDefs(!0),a;s._dom?(a=s._dom,i.contains(s._dom)||v.addDom(a)):a=v.add(s),v.markUsed(p);var u=a.getAttribute("id");S.setAttribute(t,"url(#"+u+")")}})}},C.prototype.add=function(S){var p;if(S.type==="linear")p=this.createElement("linearGradient");else if(S.type==="radial")p=this.createElement("radialGradient");else return M("Illegal gradient type."),null;return S.id=S.id||this.nextId++,p.setAttribute("id","zr"+this._zrId+"-gradient-"+S.id),this.updateDom(S,p),this.addDom(p),p},C.prototype.update=function(S){var p=this;T.prototype.update.call(this,S,function(){var v=S.type,t=S._dom.tagName;v==="linear"&&t==="linearGradient"||v==="radial"&&t==="radialGradient"?p.updateDom(S,S._dom):(p.removeDom(S),p.add(S))})},C.prototype.updateDom=function(S,p){if(S.type==="linear")p.setAttribute("x1",S.x),p.setAttribute("y1",S.y),p.setAttribute("x2",S.x2),p.setAttribute("y2",S.y2);else if(S.type==="radial")p.setAttribute("cx",S.x),p.setAttribute("cy",S.y),p.setAttribute("r",S.r);else{M("Illegal gradient type.");return}S.global?p.setAttribute("gradientUnits","userSpaceOnUse"):p.setAttribute("gradientUnits","objectBoundingBox"),p.innerHTML="";for(var v=S.colorStops,t=0,s=v.length;t-1)){var u=w.parse(a)[3],e=w.toHex(a);i.setAttribute("stop-color","#"+e),i.setAttribute("stop-opacity",u)}else i.setAttribute("stop-color",v[t].color);p.appendChild(i)}S._dom=p},C.prototype.markUsed=function(S){if(S.style){var p=S.style.fill;p&&p._dom&&T.prototype.markUsed.call(this,p._dom),p=S.style.stroke,p&&p._dom&&T.prototype.markUsed.call(this,p._dom)}};var D=C;Y.exports=D},11209:function(Y,V,n){var T=n(97507),L=n(69008);function M(D,S){T.call(this,D,S,["filter"],"__filter_in_use__","_shadowDom")}L.inherits(M,T),M.prototype.addWithoutUpdate=function(D,S){if(S&&w(S.style)){var p;if(S._shadowDom){p=S._shadowDom;var v=this.getDefs(!0);v.contains(S._shadowDom)||this.addDom(p)}else p=this.add(S);this.markUsed(S);var t=p.getAttribute("id");D.style.filter="url(#"+t+")"}},M.prototype.add=function(D){var S=this.createElement("filter");return D._shadowDomId=D._shadowDomId||this.nextId++,S.setAttribute("id","zr"+this._zrId+"-shadow-"+D._shadowDomId),this.updateDom(D,S),this.addDom(S),S},M.prototype.update=function(D,S){var p=S.style;if(w(p)){var v=this;T.prototype.update.call(this,S,function(){v.updateDom(S,S._shadowDom)})}else this.remove(D,S)},M.prototype.remove=function(D,S){S._shadowDomId!=null&&(this.removeDom(D),D.style.filter="")},M.prototype.updateDom=function(D,S){var p=S.getElementsByTagName("feDropShadow");p.length===0?p=this.createElement("feDropShadow"):p=p[0];var v=D.style,t=D.scale&&D.scale[0]||1,s=D.scale&&D.scale[1]||1,i,a,u,e;if(v.shadowBlur||v.shadowOffsetX||v.shadowOffsetY)i=v.shadowOffsetX||0,a=v.shadowOffsetY||0,u=v.shadowBlur,e=v.shadowColor;else if(v.textShadowBlur)i=v.textShadowOffsetX||0,a=v.textShadowOffsetY||0,u=v.textShadowBlur,e=v.textShadowColor;else{this.removeDom(S,v);return}p.setAttribute("dx",i/t),p.setAttribute("dy",a/s),p.setAttribute("flood-color",e);var o=u/2/t,r=u/2/s,l=o+" "+r;p.setAttribute("stdDeviation",l),S.setAttribute("x","-100%"),S.setAttribute("y","-100%"),S.setAttribute("width",Math.ceil(u/2*200)+"%"),S.setAttribute("height",Math.ceil(u/2*200)+"%"),S.appendChild(p),D._shadowDom=S},M.prototype.markUsed=function(D){D._shadowDom&&T.prototype.markUsed.call(this,D._shadowDom)};function w(D){return D&&(D.shadowBlur||D.shadowOffsetX||D.shadowOffsetY||D.textShadowBlur||D.textShadowOffsetX||D.textShadowOffsetY)}var C=M;Y.exports=C},99848:function(Y,V,n){n(96107);var T=n(8531),L=T.registerPainter,M=n(26919);L("svg",M)},83720:function(Y,V,n){var T=n(52498),L={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function M(m){return m=Math.round(m),m<0?0:m>255?255:m}function w(m){return m=Math.round(m),m<0?0:m>360?360:m}function C(m){return m<0?0:m>1?1:m}function D(m){return m.length&&m.charAt(m.length-1)==="%"?M(parseFloat(m)/100*255):M(parseInt(m,10))}function S(m){return m.length&&m.charAt(m.length-1)==="%"?C(parseFloat(m)/100):C(parseFloat(m))}function p(m,b,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?m+(b-m)*I*6:I*2<1?b:I*3<2?m+(b-m)*(2/3-I)*6:m}function v(m,b,I){return m+(b-m)*I}function t(m,b,I,R,E){return m[0]=b,m[1]=I,m[2]=R,m[3]=E,m}function s(m,b){return m[0]=b[0],m[1]=b[1],m[2]=b[2],m[3]=b[3],m}var i=new T(20),a=null;function u(m,b){a&&s(a,b),a=i.put(m,a||b.slice())}function e(m,b){if(m){b=b||[];var I=i.get(m);if(I)return s(b,I);m=m+"";var R=m.replace(/ /g,"").toLowerCase();if(R in L)return s(b,L[R]),u(m,b),b;if(R.charAt(0)==="#"){if(R.length===4){var E=parseInt(R.substr(1),16);if(!(E>=0&&E<=4095)){t(b,0,0,0,1);return}return t(b,(E&3840)>>4|(E&3840)>>8,E&240|(E&240)>>4,E&15|(E&15)<<4,1),u(m,b),b}else if(R.length===7){var E=parseInt(R.substr(1),16);if(!(E>=0&&E<=16777215)){t(b,0,0,0,1);return}return t(b,(E&16711680)>>16,(E&65280)>>8,E&255,1),u(m,b),b}return}var P=R.indexOf("("),O=R.indexOf(")");if(P!==-1&&O+1===R.length){var N=R.substr(0,P),_=R.substr(P+1,O-(P+1)).split(","),G=1;switch(N){case"rgba":if(_.length!==4){t(b,0,0,0,1);return}G=S(_.pop());case"rgb":if(_.length!==3){t(b,0,0,0,1);return}return t(b,D(_[0]),D(_[1]),D(_[2]),G),u(m,b),b;case"hsla":if(_.length!==4){t(b,0,0,0,1);return}return _[3]=S(_[3]),o(_,b),u(m,b),b;case"hsl":if(_.length!==3){t(b,0,0,0,1);return}return o(_,b),u(m,b),b;default:return}}t(b,0,0,0,1)}}function o(m,b){var I=(parseFloat(m[0])%360+360)%360/360,R=S(m[1]),E=S(m[2]),P=E<=.5?E*(R+1):E+R-E*R,O=E*2-P;return b=b||[],t(b,M(p(O,P,I+1/3)*255),M(p(O,P,I)*255),M(p(O,P,I-1/3)*255),1),m.length===4&&(b[3]=m[3]),b}function r(m){if(m){var b=m[0]/255,I=m[1]/255,R=m[2]/255,E=Math.min(b,I,R),P=Math.max(b,I,R),O=P-E,N=(P+E)/2,_,G;if(O===0)_=0,G=0;else{N<.5?G=O/(P+E):G=O/(2-P-E);var F=((P-b)/6+O/2)/O,W=((P-I)/6+O/2)/O,U=((P-R)/6+O/2)/O;b===P?_=U-W:I===P?_=1/3+F-U:R===P&&(_=2/3+W-F),_<0&&(_+=1),_>1&&(_-=1)}var H=[_*360,G,N];return m[3]!=null&&H.push(m[3]),H}}function l(m,b){var I=e(m);if(I){for(var R=0;R<3;R++)b<0?I[R]=I[R]*(1-b)|0:I[R]=(255-I[R])*b+I[R]|0,I[R]>255?I[R]=255:m[R]<0&&(I[R]=0);return g(I,I.length===4?"rgba":"rgb")}}function h(m){var b=e(m);if(b)return((1<<24)+(b[0]<<16)+(b[1]<<8)+ +b[2]).toString(16).slice(1)}function f(m,b,I){if(!(!(b&&b.length)||!(m>=0&&m<=1))){I=I||[];var R=m*(b.length-1),E=Math.floor(R),P=Math.ceil(R),O=b[E],N=b[P],_=R-E;return I[0]=M(v(O[0],N[0],_)),I[1]=M(v(O[1],N[1],_)),I[2]=M(v(O[2],N[2],_)),I[3]=C(v(O[3],N[3],_)),I}}var c=f;function d(m,b,I){if(!(!(b&&b.length)||!(m>=0&&m<=1))){var R=m*(b.length-1),E=Math.floor(R),P=Math.ceil(R),O=e(b[E]),N=e(b[P]),_=R-E,G=g([M(v(O[0],N[0],_)),M(v(O[1],N[1],_)),M(v(O[2],N[2],_)),C(v(O[3],N[3],_))],"rgba");return I?{color:G,leftIndex:E,rightIndex:P,value:R}:G}}var A=d;function x(m,b,I,R){if(m=e(m),m)return m=r(m),b!=null&&(m[0]=w(b)),I!=null&&(m[1]=S(I)),R!=null&&(m[2]=S(R)),g(o(m),"rgba")}function y(m,b){if(m=e(m),m&&b!=null)return m[3]=C(b),g(m,"rgba")}function g(m,b){if(!(!m||!m.length)){var I=m[0]+","+m[1]+","+m[2];return(b==="rgba"||b==="hsva"||b==="hsla")&&(I+=","+m[3]),b+"("+I+")"}}V.parse=e,V.lift=l,V.toHex=h,V.fastLerp=f,V.fastMapToColor=c,V.lerp=d,V.mapToColor=A,V.modifyHSL=x,V.modifyAlpha=y,V.stringify=g},74057:function(Y,V,n){var T=n(27796),L=n(89444),M=n(99999),w=n(67679),C=n(74639),D=n(41422),S=n(330),p=n(60397),v=n(66751),t=n(70391),s=n(57123),i=n(7255),a=n(26237),u=n(6226),e=u.createFromString,o=n(69008),r=o.isString,l=o.extend,h=o.defaults,f=o.trim,c=o.each,d=/[\s,]+/;function A(H){if(r(H)){var z=new DOMParser;H=z.parseFromString(H,"text/xml")}for(H.nodeType===9&&(H=H.firstChild);H.nodeName.toLowerCase()!=="svg"||H.nodeType!==1;)H=H.nextSibling;return H}function x(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}x.prototype.parse=function(H,z){z=z||{};var B=A(H);if(!B)throw new Error("Illegal svg");var k=new T;this._root=k;var Z=B.getAttribute("viewBox")||"",X=parseFloat(B.getAttribute("width")||z.width),K=parseFloat(B.getAttribute("height")||z.height);isNaN(X)&&(X=null),isNaN(K)&&(K=null),E(B,k,null,!0);for(var Q=B.firstChild;Q;)this._parseNode(Q,k),Q=Q.nextSibling;var J,tt;if(Z){var q=f(Z).split(d);q.length>=4&&(J={x:parseFloat(q[0]||0),y:parseFloat(q[1]||0),width:parseFloat(q[2]),height:parseFloat(q[3])})}if(J&&X!=null&&K!=null&&(tt=W(J,X,K),!z.ignoreViewBox)){var rt=k;k=new T,k.add(rt),rt.scale=tt.scale.slice(),rt.position=tt.position.slice()}return!z.ignoreRootClip&&X!=null&&K!=null&&k.setClipPath(new C({shape:{x:0,y:0,width:X,height:K}})),{root:k,width:X,height:K,viewBoxRect:J,viewBoxTransform:tt}},x.prototype._parseNode=function(H,z){var B=H.nodeName.toLowerCase();B==="defs"?this._isDefine=!0:B==="text"&&(this._isText=!0);var k;if(this._isDefine){var Z=g[B];if(Z){var X=Z.call(this,H),K=H.getAttribute("id");K&&(this._defs[K]=X)}}else{var Z=y[B];Z&&(k=Z.call(this,H,z),z.add(k))}for(var Q=H.firstChild;Q;)Q.nodeType===1&&this._parseNode(Q,k),Q.nodeType===3&&this._isText&&this._parseText(Q,k),Q=Q.nextSibling;B==="defs"?this._isDefine=!1:B==="text"&&(this._isText=!1)},x.prototype._parseText=function(H,z){if(H.nodeType===1){var B=H.getAttribute("dx")||0,k=H.getAttribute("dy")||0;this._textX+=parseFloat(B),this._textY+=parseFloat(k)}var Z=new M({style:{text:H.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});b(z,Z),E(H,Z,this._defs);var X=Z.style.fontSize;X&&X<9&&(Z.style.fontSize=9,Z.scale=Z.scale||[1,1],Z.scale[0]*=X/9,Z.scale[1]*=X/9);var K=Z.getBoundingRect();return this._textX+=K.width,z.add(Z),Z};var y={g:function(H,z){var B=new T;return b(z,B),E(H,B,this._defs),B},rect:function(H,z){var B=new C;return b(z,B),E(H,B,this._defs),B.setShape({x:parseFloat(H.getAttribute("x")||0),y:parseFloat(H.getAttribute("y")||0),width:parseFloat(H.getAttribute("width")||0),height:parseFloat(H.getAttribute("height")||0)}),B},circle:function(H,z){var B=new w;return b(z,B),E(H,B,this._defs),B.setShape({cx:parseFloat(H.getAttribute("cx")||0),cy:parseFloat(H.getAttribute("cy")||0),r:parseFloat(H.getAttribute("r")||0)}),B},line:function(H,z){var B=new S;return b(z,B),E(H,B,this._defs),B.setShape({x1:parseFloat(H.getAttribute("x1")||0),y1:parseFloat(H.getAttribute("y1")||0),x2:parseFloat(H.getAttribute("x2")||0),y2:parseFloat(H.getAttribute("y2")||0)}),B},ellipse:function(H,z){var B=new D;return b(z,B),E(H,B,this._defs),B.setShape({cx:parseFloat(H.getAttribute("cx")||0),cy:parseFloat(H.getAttribute("cy")||0),rx:parseFloat(H.getAttribute("rx")||0),ry:parseFloat(H.getAttribute("ry")||0)}),B},polygon:function(H,z){var B=H.getAttribute("points");B&&(B=I(B));var k=new v({shape:{points:B||[]}});return b(z,k),E(H,k,this._defs),k},polyline:function(H,z){var B=new p;b(z,B),E(H,B,this._defs);var k=H.getAttribute("points");k&&(k=I(k));var Z=new t({shape:{points:k||[]}});return Z},image:function(H,z){var B=new L;return b(z,B),E(H,B,this._defs),B.setStyle({image:H.getAttribute("xlink:href"),x:H.getAttribute("x"),y:H.getAttribute("y"),width:H.getAttribute("width"),height:H.getAttribute("height")}),B},text:function(H,z){var B=H.getAttribute("x")||0,k=H.getAttribute("y")||0,Z=H.getAttribute("dx")||0,X=H.getAttribute("dy")||0;this._textX=parseFloat(B)+parseFloat(Z),this._textY=parseFloat(k)+parseFloat(X);var K=new T;return b(z,K),E(H,K,this._defs),K},tspan:function(H,z){var B=H.getAttribute("x"),k=H.getAttribute("y");B!=null&&(this._textX=parseFloat(B)),k!=null&&(this._textY=parseFloat(k));var Z=H.getAttribute("dx")||0,X=H.getAttribute("dy")||0,K=new T;return b(z,K),E(H,K,this._defs),this._textX+=Z,this._textY+=X,K},path:function(H,z){var B=H.getAttribute("d")||"",k=e(B);return b(z,k),E(H,k,this._defs),k}},g={lineargradient:function(H){var z=parseInt(H.getAttribute("x1")||0,10),B=parseInt(H.getAttribute("y1")||0,10),k=parseInt(H.getAttribute("x2")||10,10),Z=parseInt(H.getAttribute("y2")||0,10),X=new s(z,B,k,Z);return m(H,X),X},radialgradient:function(H){}};function m(H,z){for(var B=H.firstChild;B;){if(B.nodeType===1){var k=B.getAttribute("offset");k.indexOf("%")>0?k=parseInt(k,10)/100:k?k=parseFloat(k):k=0;var Z=B.getAttribute("stop-color")||"#000000";z.addColorStop(k,Z)}B=B.nextSibling}}function b(H,z){H&&H.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),h(z.__inheritedStyle,H.__inheritedStyle))}function I(H){for(var z=f(H).split(d),B=[],k=0;k0;X-=2){var K=Z[X],Q=Z[X-1];switch(k=k||a.create(),Q){case"translate":K=f(K).split(d),a.translate(k,k,[parseFloat(K[0]),parseFloat(K[1]||0)]);break;case"scale":K=f(K).split(d),a.scale(k,k,[parseFloat(K[0]),parseFloat(K[1]||K[0])]);break;case"rotate":K=f(K).split(d),a.rotate(k,k,parseFloat(K[0]));break;case"skew":K=f(K).split(d),console.warn("Skew transform is not supported yet");break;case"matrix":var K=f(K).split(d);k[0]=parseFloat(K[0]),k[1]=parseFloat(K[1]),k[2]=parseFloat(K[2]),k[3]=parseFloat(K[3]),k[4]=parseFloat(K[4]),k[5]=parseFloat(K[5]);break}}z.setLocalTransform(k)}}var G=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(H){var z=H.getAttribute("style"),B={};if(!z)return B;var k={};G.lastIndex=0;for(var Z;(Z=G.exec(z))!=null;)k[Z[1]]=Z[2];for(var X in R)R.hasOwnProperty(X)&&k[X]!=null&&(B[R[X]]=k[X]);return B}function W(H,z,B){var k=z/H.width,Z=B/H.height,X=Math.min(k,Z),K=[X,X],Q=[-(H.x+H.width/2)*X+z/2,-(H.y+H.height/2)*X+B/2];return{scale:K,position:Q}}function U(H,z){var B=new x;return B.parse(H,z)}V.parseXML=A,V.makeViewBoxTransform=W,V.parseSVG=U},6226:function(Y,V,n){var T=n(60397),L=n(94615),M=n(79860),w=Math.sqrt,C=Math.sin,D=Math.cos,S=Math.PI,p=function(h){return Math.sqrt(h[0]*h[0]+h[1]*h[1])},v=function(h,f){return(h[0]*f[0]+h[1]*f[1])/(p(h)*p(f))},t=function(h,f){return(h[0]*f[1]1&&(y*=w(O),g*=w(O));var N=(A===x?-1:1)*w((y*y*(g*g)-y*y*(P*P)-g*g*(E*E))/(y*y*(P*P)+g*g*(E*E)))||0,_=N*y*P/g,G=N*-g*E/y,F=(h+c)/2+D(R)*_-C(R)*G,W=(f+d)/2+C(R)*_+D(R)*G,U=t([1,0],[(E-_)/y,(P-G)/g]),H=[(E-_)/y,(P-G)/g],z=[(-1*E-_)/y,(-1*P-G)/g],B=t(H,z);v(H,z)<=-1&&(B=S),v(H,z)>=1&&(B=0),x===0&&B>0&&(B=B-2*S),x===1&&B<0&&(B=B+2*S),I.addData(b,F,W,y,g,U,B,R,x)}var i=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,a=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(h){if(!h)return new L;for(var f=0,c=0,d=f,A=c,x,y=new L,g=L.CMD,m=h.match(i),b=0;b')}}catch(v){S=function(t){return C.createElement("<"+t+' xmlns="'+L+'" class="zrvml">')}}function p(){if(!(w||!C)){w=!0;var v=C.styleSheets;v.length<31?C.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):v[0].addRule(".zrvml","behavior:url(#default#VML)")}}V.doc=C,V.createNode=D,V.initVML=p},90906:function(Y,V,n){var T=n(12973),L=n(47764),M=L.applyTransform,w=n(9806),C=n(83720),D=n(63603),S=n(53750),p=n(40460),v=n(20168),t=n(89444),s=n(99999),i=n(60397),a=n(94615),u=n(9193),e=n(1105),o=a.CMD,r=Math.round,l=Math.sqrt,h=Math.abs,f=Math.cos,c=Math.sin,d=Math.max;if(!T.canvasSupported){var A=",",x="progid:DXImageTransform.Microsoft",y=21600,g=y/2,m=1e5,b=1e3,I=function(it){it.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",it.coordsize=y+","+y,it.coordorigin="0,0"},R=function(it){return String(it).replace(/&/g,"&").replace(/"/g,""")},E=function(it,ut,gt){return"rgb("+[it,ut,gt].join(",")+")"},P=function(it,ut){ut&&it&&ut.parentNode!==it&&it.appendChild(ut)},O=function(it,ut){ut&&it&&ut.parentNode===it&&it.removeChild(ut)},N=function(it,ut,gt){return(parseFloat(it)||0)*m+(parseFloat(ut)||0)*b+gt},_=S.parsePercent,G=function(it,ut,gt){var Ct=C.parse(ut);gt=+gt,isNaN(gt)&&(gt=1),Ct&&(it.color=E(Ct[0],Ct[1],Ct[2]),it.opacity=gt*Ct[3])},F=function(it){var ut=C.parse(it);return[E(ut[0],ut[1],ut[2]),ut[3]]},W=function(it,ut,gt){var Ct=ut.fill;if(Ct!=null)if(Ct instanceof u){var bt,et=0,lt=[0,0],ht=0,pt=1,mt=gt.getBoundingRect(),ft=mt.width,xt=mt.height;if(Ct.type==="linear"){bt="gradient";var Mt=gt.transform,Pt=[Ct.x*ft,Ct.y*xt],Rt=[Ct.x2*ft,Ct.y2*xt];Mt&&(M(Pt,Pt,Mt),M(Rt,Rt,Mt));var Bt=Rt[0]-Pt[0],Vt=Rt[1]-Pt[1];et=Math.atan2(Bt,Vt)*180/Math.PI,et<0&&(et+=360),et<1e-6&&(et=0)}else{bt="gradientradial";var Pt=[Ct.x*ft,Ct.y*xt],Mt=gt.transform,Gt=gt.scale,Ft=ft,Kt=xt;lt=[(Pt[0]-mt.x)/Ft,(Pt[1]-mt.y)/Kt],Mt&&M(Pt,Pt,Mt),Ft/=Gt[0]*y,Kt/=Gt[1]*y;var Qt=d(Ft,Kt);ht=2*0/Qt,pt=2*Ct.r/Qt-ht}var _t=Ct.colorStops.slice();_t.sort(function(te,ie){return te.offset-ie.offset});for(var Yt=_t.length,Zt=[],Jt=[],jt=0;jt=2){var he=Zt[0][0],se=Zt[1][0],ve=Zt[0][1]*ut.opacity,ae=Zt[1][1]*ut.opacity;it.type=bt,it.method="none",it.focus="100%",it.angle=et,it.color=he,it.color2=se,it.colors=Jt.join(","),it.opacity=ae,it.opacity2=ve}bt==="radial"&&(it.focusposition=lt.join(","))}else G(it,Ct,ut.opacity)},U=function(it,ut){ut.lineDash&&(it.dashstyle=ut.lineDash.join(" ")),ut.stroke!=null&&!(ut.stroke instanceof u)&&G(it,ut.stroke,ut.opacity)},H=function(it,ut,gt,Ct){var bt=ut==="fill",et=it.getElementsByTagName(ut)[0];gt[ut]!=null&>[ut]!=="none"&&(bt||!bt&>.lineWidth)?(it[bt?"filled":"stroked"]="true",gt[ut]instanceof u&&O(it,et),et||(et=e.createNode(ut)),bt?W(et,gt,Ct):U(et,gt),P(it,et)):(it[bt?"filled":"stroked"]="false",O(it,et))},z=[[],[],[]],B=function(it,ut){var gt=o.M,Ct=o.C,bt=o.L,et=o.A,lt=o.Q,ht=[],pt,mt,ft,xt,Mt,Pt,Rt=it.data,Bt=it.len();for(xt=0;xt.01?ae&&(te+=270/y):Math.abs(ie-qt)<1e-4?ae&&tejt?ct-=270/y:ct+=270/y:ae&&ieqt?at+=270/y:at-=270/y),ht.push(St,r(((jt-oe)*Yt+Qt)*y-g),A,r(((qt-he)*Zt+_t)*y-g),A,r(((jt+oe)*Yt+Qt)*y-g),A,r(((qt+he)*Zt+_t)*y-g),A,r((te*Yt+Qt)*y-g),A,r((ie*Zt+_t)*y-g),A,r((at*Yt+Qt)*y-g),A,r((ct*Zt+_t)*y-g)),Mt=at,Pt=ct;break;case o.R:var Tt=z[0],Dt=z[1];Tt[0]=Rt[xt++],Tt[1]=Rt[xt++],Dt[0]=Tt[0]+Rt[xt++],Dt[1]=Tt[1]+Rt[xt++],ut&&(M(Tt,Tt,ut),M(Dt,Dt,ut)),Tt[0]=r(Tt[0]*y-g),Dt[0]=r(Dt[0]*y-g),Tt[1]=r(Tt[1]*y-g),Dt[1]=r(Dt[1]*y-g),ht.push(" m ",Tt[0],A,Tt[1]," l ",Dt[0],A,Tt[1]," l ",Dt[0],A,Dt[1]," l ",Tt[0],A,Dt[1]);break;case o.Z:ht.push(" x ")}if(pt>0){ht.push(mt);for(var Nt=0;NtQ&&(K=0,X={});var gt=J.style,Ct;try{gt.font=it,Ct=gt.fontFamily.split(",")[0]}catch(bt){}ut={style:gt.fontStyle||Z,variant:gt.fontVariant||Z,weight:gt.fontWeight||Z,size:parseFloat(gt.fontSize||12)|0,family:Ct||"Microsoft YaHei"},X[it]=ut,K++}return ut},q;D.$override("measureText",function(it,ut){var gt=e.doc;q||(q=gt.createElement("div"),q.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",e.doc.body.appendChild(q));try{q.style.font=ut}catch(Ct){}return q.innerHTML="",q.appendChild(gt.createTextNode(it)),{width:q.offsetWidth}});for(var rt=new w,$=function(it,ut,gt,Ct){var bt=this.style;this.__dirty&&S.normalizeTextStyle(bt,!0);var et=bt.text;if(et!=null&&(et+=""),!!et){if(bt.rich){var lt=D.parseRichText(et,bt);et=[];for(var ht=0;ht