(self.webpackChunk=self.webpackChunk||[]).push([[42441],{97774:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=Object.assign||function(t){for(var e=1;et&&(t=e),t},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}}});t.exports=i},3359:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(69008),a=n(18993),o=n(55692).setLabel,s=n(24040),l=n(14534),u=n(60397),c=n(27796),h=n(83209).throttle,d=n(38797).createClipPath,p=n(79330),f=["itemStyle","barBorderWidth"],g=[0,0];r.extend(s.prototype,l);var m=i.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),p=function(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,o);r.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],M=this._backgroundEls||[];o.diff(s).add((function(e){var n=o.getItemModel(e),s=S[l.type](o,e,n);if(g){var u=S[l.type](o,e),c=function(t,e,n){var i="polar"===t.type?a.Sector:a.Rect;return new i({shape:D(e,n,t),silent:!0,z2:0})}(l,i,u);c.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&c.setShape("r",v),y[e]=c}if(o.hasValue(e)){if(d)if(x[l.type](p,s))return void r.remove(b);var b=_[l.type](e,s,i,h,!1,f);o.setItemGraphicEl(e,b),r.add(b),I(b,o,e,n,s,t,i,"polar"===l.type)}})).update((function(e,n){var u=o.getItemModel(e),c=S[l.type](o,e,u);if(g){var b=M[n];b.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&b.setShape("r",v),y[e]=b;var w=S[l.type](o,e),T=D(i,w,l);a.updateProps(b,{shape:T},h,e)}var A=s.getItemGraphicEl(n);if(o.hasValue(e)){if(d)if(x[l.type](p,c))return void r.remove(A);A?a.updateProps(A,{shape:c},h,e):A=_[l.type](e,c,i,h,!0,f),o.setItemGraphicEl(e,A),r.add(A),I(A,o,e,u,c,t,i,"polar"===l.type)}else r.remove(A)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&b(t,h,e):e&&w(t,h,e)})).execute();var T=this._backgroundGroup||(this._backgroundGroup=new c);T.removeAll();for(var A=0;A0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function M(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function I(t,e,n,i,s,l,u,c){var h=e.getItemVisual(n,"color"),d=e.getItemVisual(n,"opacity"),p=e.getVisual("borderColor"),f=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();c||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(r.defaults({stroke:M(s)?"none":p,fill:M(s)?"none":h,opacity:d},f.getBarItemStyle()));var m=i.getShallow("cursor");m&&t.attr("cursor",m);var v=u?s.height>0?"bottom":"top":s.width>0?"left":"right";c||o(t.style,g,i,h,l,n,v),M(s)&&(g.fill=g.stroke="none"),a.setHoverStyle(t,g)}var T=u.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,a=0;a=h&&v<=d&&(l<=y?c>=l&&c<=y:c>=y&&c<=l))return o[p]}return-1}(this,t.offsetX,t.offsetY);this.dataIndex=e>=0?e:null}),30,!1);function D(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}t.exports=m},89301:function(t,e,n){var i=n(38645),r=n(32977),a=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+a/2,n}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:{}}});t.exports=a},59903:function(t,e,n){var i=n(89301).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(t){return t.stack=null,i.superApply(this,"getInitialData",arguments)}}),r=i;t.exports=r},31061:function(t,e,n){var i=n(3096),r=n(69008),a=n(18993),o=n(22868).createSymbol,s=n(86957),l=s.parsePercent,u=s.isNumeric,c=n(55692).setLabel,h=["itemStyle","borderWidth"],d=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],p=new a.Circle;function f(t,e,n,i){var a=t.getItemLayout(e),o=n.get("symbolRepeat"),s=n.get("symbolClip"),c=n.get("symbolPosition")||"start",d=(n.get("symbolRotate")||0)*Math.PI/180||0,f=n.get("symbolPatternSize")||2,m=n.isAnimationEnabled(),v={dataIndex:e,layout:a,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:d,animationModel:m?n:null,hoverAnimation:m&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,a){var o,s=i.valueDim,l=t.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(r.isArray(l)){var d=[g(u,l[0])-c,g(u,l[1])-c];d[1]0?1:o<0?-1:0}(n,o,a,i,v),function(t,e,n,i,a,o,s,u,c,h){var d=c.valueDim,p=c.categoryDim,f=Math.abs(n[p.wh]),g=t.getItemVisual(e,"symbolSize");r.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]);g[p.index]=l(g[p.index],f),g[d.index]=l(g[d.index],i?f:Math.abs(o)),h.symbolSize=g;var m=h.symbolScale=[g[0]/u,g[1]/u];m[d.index]*=(c.isHorizontal?-1:1)*s}(t,e,a,o,0,v.boundingLength,v.pxSign,f,i,v),function(t,e,n,i,r){var a=t.get(h)||0;a&&(p.attr({scale:e.slice(),rotation:n}),p.updateTransform(),a/=p.getLineScale(),a*=e[i.valueDim.index]);r.valueLineWidth=a}(n,v.symbolScale,d,i,v);var y=v.symbolSize,x=n.get("symbolOffset");return r.isArray(x)&&(x=[l(x[0],y[0]),l(x[1],y[1])]),function(t,e,n,i,a,o,s,c,h,d,p,f){var g=p.categoryDim,m=p.valueDim,v=f.pxSign,y=Math.max(e[m.index]+c,0),x=y;if(i){var _=Math.abs(h),b=r.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=l(b,e[m.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=u(i),T=I?i:P((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===i||(T=d?P((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var A=v*(x/2),C=f.pathPosition=[];C[g.index]=n[g.wh]/2,C[m.index]="start"===s?A:"end"===s?h-A:h/2,o&&(C[0]+=o[0],C[1]+=o[1]);var D=f.bundlePosition=[];D[g.index]=n[g.xy],D[m.index]=n[m.xy];var L=f.barRectShape=r.extend({},n);L[m.wh]=v*Math.max(Math.abs(n[m.wh]),Math.abs(C[m.index]+A)),L[g.wh]=n[g.wh];var k=f.clipShape={};k[g.xy]=-n[g.xy],k[g.wh]=p.ecSize[g.wh],k[m.xy]=0,k[m.wh]=n[m.wh]}(n,y,a,o,0,x,c,v.valueLineWidth,v.boundingLength,v.repeatCutLength,i,v),v}function g(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function m(t){var e=t.symbolPatternSize,n=o(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function v(t,e,n,i){var r=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+2*n.symbolMargin;for(C(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){C(t,(function(t){t.trigger("emphasis")}))}function v(){C(t,(function(t){t.trigger("normal")}))}}function y(t,e,n,i){var r=t.__pictorialBundle,a=t.__pictorialMainPath;a?D(a,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(a=t.__pictorialMainPath=m(n),r.add(a),D(a,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),a.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),M(a,n)}function x(t,e,n){var i=r.extend({},e.barRectShape),o=t.__pictorialBarRect;o?D(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new a.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function _(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,s=r.extend({},n.clipShape),l=e.valueDim,u=n.animationModel,c=n.dataIndex;if(o)a.updateProps(o,{shape:s},u,c);else{s[l.wh]=0,o=new a.Rect({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=n.clipShape[l.wh],a[i?"updateProps":"initProps"](o,{shape:h},u,c)}}}function b(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=w,n.isAnimationEnabled=S,n}function w(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function S(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function M(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function I(t,e,n,i){var r=new a.Group,o=new a.Group;return r.add(o),r.__pictorialBundle=o,o.attr("position",n.bundlePosition.slice()),n.symbolRepeat?v(r,e,n):y(r,0,n),x(r,n,i),_(r,e,n,i),r.__pictorialShapeStr=A(t,n),r.__pictorialSymbolMeta=n,r}function T(t,e,n,i){var o=i.__pictorialBarRect;o&&(o.style.text=null);var s=[];C(i,(function(t){s.push(t)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),r.each(s,(function(t){a.updateProps(t,{scale:[0,0]},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function A(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function C(t,e,n){r.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function D(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&a[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function L(t,e,n){var i=n.color,o=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),h=s.getShallow("cursor");C(t,(function(t){t.setColor(i),t.setStyle(r.defaults({fill:i,opacity:n.opacity},l)),a.setHoverStyle(t,u),h&&(t.cursor=h),t.z2=n.z2}));var d={},p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;c(f.style,d,s,i,e.seriesModel,o,p),a.setHoverStyle(f,d)}function P(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var k=i.extendChartView({type:"pictorialBar",render:function(t,e,n){var i=this.group,r=t.getData(),o=this._data,s=t.coordinateSystem,l=!!s.getBaseAxis().isHorizontal(),u=s.grid.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:d[+l],categoryDim:d[1-l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=b(r,t),n=f(r,t,e,c),a=I(r,c,n);r.setItemGraphicEl(t,a),i.add(a),L(a,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=b(r,t),l=f(r,t,s,c),u=A(r,l);n&&u!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;a.updateProps(o,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?v(t,e,n,!0):y(t,e,n,!0);x(t,n,!0),_(t,e,n,!0)}(n,c,l):n=I(r,c,l,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,i.add(n),L(n,c,l)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&T(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},dispose:r.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){T(i,e.dataIndex,t,e)})):n.removeAll()}});t.exports=k},14534:function(t,e,n){var i=n(76282)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(t){var e=i(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}};t.exports=r},55692:function(t,e,n){var i=n(18993),r=n(38113).getDefaultLabel;function a(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=function(t,e,n,o,s,l,u){var c=n.getModel("label"),h=n.getModel("emphasis.label");i.setLabelStyle(t,e,c,h,{labelFetcher:s,labelDataIndex:l,defaultText:r(s.getData(),l),isRectText:!0,autoColor:o}),a(t),a(e)}},56696:function(t,e,n){var i=n(3096);n(3673),n(41831);var r=n(498),a=n(22303);i.registerVisual(r),i.registerLayout(a)},3673:function(t,e,n){var i=n(69008),r=n(38645),a=n(45112).seriesModelMixin,o=r.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}});i.mixin(o,a,!0);var s=o;t.exports=s},41831:function(t,e,n){var i=n(69008),r=n(68880),a=n(18993),o=n(60397),s=["itemStyle"],l=["emphasis","itemStyle"],u=r.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===t.get("layout")?1:0;i.diff(a).add((function(t){if(i.hasValue(t)){var e=h(i.getItemLayout(t),i,t,o,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?d(s,n,i,t):n=h(s,i,t,o),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:i.noop}),c=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),o=n.getModel(l).getItemStyle(c);e.useStyle(o),e.style.fill=null,e.style.stroke=a}var _=h;t.exports=_},7898:function(t,e,n){var i=n(18993).subPixelOptimize,r=n(13861),a=n(86957).parsePercent,o=n(69008).retrieve2,s="undefined"!=typeof Float32Array?Float32Array:Array,l={seriesType:"candlestick",plan:r(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),s=a(o(t.get("barMaxWidth"),r),r),l=a(o(t.get("barMinWidth"),1),r),u=t.get("barWidth");return null!=u?a(u,r):Math.max(Math.min(r/2,s),l)}(t,n),l=["x","y"],c=n.mapDimension(l[0]),h=n.mapDimension(l[1],!0),d=h[0],p=h[1],f=h[2],g=h[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==c||h.length<4))return{progress:t.pipelineContext.large?function(t,n){var i,r,a=new s(4*t.count),o=0,l=[],h=[];for(;null!=(r=t.next());){var m=n.get(c,r),v=n.get(d,r),y=n.get(p,r),x=n.get(f,r),_=n.get(g,r);isNaN(m)||isNaN(x)||isNaN(_)?(a[o++]=NaN,o+=3):(a[o++]=u(n,r,v,y,p),l[0]=m,l[1]=x,i=e.dataToPoint(l,null,h),a[o++]=i?i[0]:NaN,a[o++]=i?i[1]:NaN,l[1]=_,i=e.dataToPoint(l,null,h),a[o++]=i?i[1]:NaN)}n.setLayout("largePoints",a)}:function(t,n){var a;for(;null!=(a=t.next());){var o=n.get(c,a),s=n.get(d,a),l=n.get(p,a),h=n.get(f,a),m=n.get(g,a),v=Math.min(s,l),y=Math.max(s,l),x=M(v,o),_=M(y,o),b=M(h,o),w=M(m,o),S=[];I(S,_,0),I(S,x,1),S.push(A(w),A(_),A(b),A(x)),n.setItemLayout(a,{sign:u(n,a,s,l,p),initBaseline:s>l?_[1]:x[1],ends:S,brushRect:T(h,m,o)})}function M(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var a=e.slice(),o=e.slice();a[0]=i(a[0]+r/2,1,!1),o[0]=i(o[0]-r/2,1,!0),n?t.push(a,o):t.push(o,a)}function T(t,e,n){var i=M(t,n),a=M(e,n);return i[0]-=r/2,a[0]-=r/2,{x:i[0],y:i[1],width:r,height:a[1]-i[1]}}function A(t){return t[0]=i(t[0],1),t}}}}};function u(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}t.exports=l},42688:function(t,e,n){var i=n(13861),r=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:i(),performRawSeries:!0,reset:function(t,e){if(t.getData().setVisual({legendSymbol:"roundRect",colorP:n(1,t),colorN:n(-1,t),borderColorP:i(1,t),borderColorN:i(-1,t)}),!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){var r;for(;null!=(r=t.next());){var a=e.getItemModel(r),o=e.getItemLayout(r).sign;e.setItemVisual(r,{color:n(o,a),borderColor:i(o,a)})}}};function n(t,e){return e.get(t>0?o:s)}function i(t,e){return e.get(t>0?r:a)}}};t.exports=l},38368:function(t,e,n){var i=n(69008);t.exports=function(t){t&&i.isArray(t.series)&&i.each(t.series,(function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}},47468:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(18993),a=n(38113).getDefaultLabel,o=n(32977),s=n(64816).getLayoutOnAxis,l=n(90515),u=n(38645),c=n(24040),h=n(68880),d=n(38797).createClipPath,p=n(40114),f=n(8058),g=n(66848),m=n(69171),v=n(41675),y=r.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],_=["emphasis","itemStyle"],b=["label"],w=["emphasis","label"],S={cartesian2d:p,geo:f,singleAxis:g,polar:m,calendar:v};function M(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function I(t,e,n,o){var l=t.get("renderItem"),u=t.coordinateSystem,c={};u&&(c=u.prepareCustoms?u.prepareCustoms():S[u.type](u));var h,d,p,f,g,m=i.defaults({getWidth:o.getWidth,getHeight:o.getHeight,getZr:o.getZr,getDevicePixelRatio:o.getDevicePixelRatio,value:function(t,n){return null==n&&(n=h),e.get(e.getDimension(t||0),n)},style:function(n,o){null==o&&(o=h),M(o);var s=d.getModel(x).getItemStyle();null!=g&&(s.fill=g);var l=e.getItemVisual(o,"opacity");null!=l&&(s.opacity=l);var u=n?P(n,p):p;return r.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?i.retrieve2(t.getFormattedLabel(o,"normal"),a(e,o)):null,n&&k(s,n),s},styleEmphasis:function(n,o){null==o&&(o=h),M(o);var s=d.getModel(_).getItemStyle(),l=n?P(n,f):f;return r.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?i.retrieve3(t.getFormattedLabel(o,"emphasis"),t.getFormattedLabel(o,"normal"),a(e,o)):null,n&&k(s,n),s},visual:function(t,n){return null==n&&(n=h),e.getItemVisual(n,t)},barLayout:function(t){if(u.getBaseAxis){var e=u.getBaseAxis();return s(i.defaults({axis:e},t),o)}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return r.getFont(t,n)}},c.api||{}),v={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:T(t.getData())},y=!0;return function(t,n){return h=t,y=!0,l&&l(i.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},v),m)};function M(t){null==t&&(t=h),y&&(d=e.getItemModel(t),p=d.getModel(b),f=d.getModel(w),g=e.getItemVisual(t,"color"),y=!1)}}function T(t){var e={};return i.each(t.dimensions,(function(n,i){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim;(e[a]=e[a]||[])[r.coordDimIndex]=i}})),e}function A(t,e,n,i,r,a){return(t=C(t,e,n,i,r,a,!0))&&a.setItemGraphicEl(e,t),t}function C(t,e,n,a,o,s,u){var c,h=!n,d=(n=n||{}).type,p=n.shape,f=n.style;if(t&&(h||null!=d&&d!==t.__customGraphicType||"path"===d&&((c=p)&&(c.hasOwnProperty("pathData")||c.hasOwnProperty("d")))&&E(p)!==t.__customPathData||"image"===d&&R(f,"image")&&f.image!==t.__customImagePath||"text"===d&&R(p,"text")&&f.text!==t.__customText)&&(o.remove(t),t=null),!h){var g=!t;return!t&&(t=function(t){var e,n=t.type;if("path"===n){var i=t.shape,a=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=E(i);(e=r.makePath(o,null,a,i.layout||"center")).__customPathData=o}else if("image"===n)(e=new r.Image({})).__customImagePath=t.style.image;else if("text"===n)(e=new r.Text({})).__customText=t.style.text;else if("group"===n)e=new r.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');e=new(r.getShapeClass(n))}return e.__customGraphicType=n,e.name=t.name,e}(n)),function(t,e,n,a,o,s,l){var u={},c=n.style||{};if(n.shape&&(u.shape=i.clone(n.shape)),n.position&&(u.position=n.position.slice()),n.scale&&(u.scale=n.scale.slice()),n.origin&&(u.origin=n.origin.slice()),n.rotation&&(u.rotation=n.rotation),"image"===t.type&&n.style){var h=u.style={};i.each(["x","y","width","height"],(function(e){M(e,h,c,t.style,s)}))}"text"===t.type&&n.style&&(h=u.style={},i.each(["x","y"],(function(e){M(e,h,c,t.style,s)})),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));if("group"!==t.type&&(t.useStyle(c),s)){t.style.opacity=0;var d=c.opacity;null==d&&(d=1),r.initProps(t,{style:{opacity:d}},a,e)}s?t.attr(u):r.updateProps(t,u,a,e),n.hasOwnProperty("z2")&&t.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&t.attr("silent",n.silent),n.hasOwnProperty("invisible")&&t.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&t.attr("ignore",n.ignore),n.hasOwnProperty("info")&&t.attr("info",n.info);var p=n.styleEmphasis;r.setElementHoverStyle(t,p),l&&r.setAsHighDownDispatcher(t,!1!==p)}(t,e,n,a,0,g,u),"group"===d&&function(t,e,n,i,r){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,u="byName"===s||n.diffChildrenByName,c=!1===s;if(!o&&!u&&!c)return;if(u)return h={oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,animatableModel:i,group:t,data:r},void new l(h.oldChildren,h.newChildren,D,D,h).add(L).update(L).remove(O).execute();var h;c&&t.removeAll();for(var d=0;d=t&&(0===e?0:i[e-1][0]).4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){P=Math.cos(I),k=Math.sin(I);var B=new r.Line({shape:{x1:P*g+p,y1:k*g+f,x2:P*(g-M)+p,y2:k*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&B.setStyle({stroke:i((L+z/w)/b)}),d.add(B),I+=A}I-=A}else I+=T}},_renderPointer:function(t,e,n,a,o,l,c,h){var d=this.group,p=this._data;if(t.get("pointer.show")){var f=[+t.get("min"),+t.get("max")],g=[l,c],m=t.getData(),v=m.mapDimension("value");m.diff(p).add((function(e){var n=new i({shape:{angle:l}});r.initProps(n,{shape:{angle:u(m.get(v,e),f,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)})).update((function(e,n){var i=p.getItemGraphicEl(n);r.updateProps(i,{shape:{angle:u(m.get(v,e),f,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)})).remove((function(t){var e=p.getItemGraphicEl(t);d.remove(e)})).execute(),m.eachItemGraphicEl((function(t,e){var n=m.getItemModel(e),i=n.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:s(i.get("width"),o.r),r:s(i.get("length"),o.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",a(u(m.get(v,e),f,[0,1],!0))),r.setHoverStyle(t,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else p&&p.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,e,n,i,a){var o=t.getData(),l=o.mapDimension("value"),c=t.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=a.cx+s(h[0],a.r),p=a.cy+s(h[1],a.r),f=+t.get("min"),g=+t.get("max"),m=t.getData().get(l,0),v=i(u(m,[f,g],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},c,{x:d,y:p,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,a){var o=t.getModel("detail"),l=+t.get("min"),h=+t.get("max");if(o.get("show")){var d=o.get("offsetCenter"),p=a.cx+s(d[0],a.r),f=a.cy+s(d[1],a.r),g=s(o.get("width"),a.r),m=s(o.get("height"),a.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),x=i(u(y,[l,h],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},o,{x:p,y:f,text:c(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}});t.exports=d},36131:function(t,e,n){var i=n(60397).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=r/3?1:2),l=e.y-i(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(o)*a,e.y+i(o)*a),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(o)*a,e.y-i(o)*a),t.lineTo(s,l)}});t.exports=i},57495:function(t,e,n){var i=n(3096);n(46349),n(32979),n(6458);var r=n(12301),a=n(11404),o=n(48468),s=n(62939),l=n(293),u=n(14146),c=n(21701),h=n(57186);i.registerProcessor(r),i.registerVisual(a("graph","circle",null)),i.registerVisual(o),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),i.registerLayout(c),i.registerCoordinateSystem("graphView",{create:h})},46349:function(t,e,n){var i=n(3096),r=n(39177),a=n(69008),o=n(90830).defaultEmphasis,s=n(24040),l=n(17010).encodeHTML,u=n(29306),c=n(50329),h=i.extendSeriesModel({type:"series.graph",init:function(t){h.superApply(this,"init",arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new c(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){h.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){h.superApply(this,"mergeDefaultAndTheme",arguments),o(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return u(i,n,this,!0,(function(t,n){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var i=r.getModel("edgeLabel"),a=new s({label:i.option},i.parentModel,e),o=r.getModel("emphasis.edgeLabel"),l=new s({emphasis:{label:o.option}},o.parentModel,e);function u(t){return(t=this.parsePath(t))&&"label"===t[0]?a:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}n.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(u),t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),u=[];return null!=o&&u.push(o),null!=s&&u.push(s),u=l(u.join(" > ")),r.value&&(u+=" : "+l(r.value)),u}return h.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=a.map(this.option.categories||[],(function(t){return null!=t.value?t:a.extend({value:0},t)})),e=new r(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return h.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&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}}}}),d=h;t.exports=d},32979:function(t,e,n){var i=n(3096),r=n(69008),a=n(38346),o=n(70562),s=n(38515),l=n(37419),u=n(18584).onIrrelevantElement,c=n(18993),h=n(76839),d=n(83972).getNodeGlobalScale,p="__focusNodeAdjacency",f="__unfocusNodeAdjacency",g=["itemStyle","opacity"],m=["lineStyle","opacity"];function v(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function y(t,e,n){var i=t.getGraphicEl(),r=v(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function x(t,e){var n=v(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var _=i.extendChartView({type:"graph",init:function(t,e){var n=new a,i=new o,r=this.group;this._controller=new s(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===r.type){var l={position:r.position,scale:r.scale};this._firstRender?s.attr(l):c.updateProps(s,l,t)}h(t.getGraph(),d(t));var u=t.getData();a.updateData(u);var g=t.getEdgeData();o.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var m=t.forceLayout,v=t.get("force.layoutAnimation");m&&this._startForceLayoutIteration(m,v),u.eachItemGraphicEl((function(e,r){var a=u.getItemModel(r);e.off("drag").off("dragend");var o=a.get("draggable");o&&e.on("drag",(function(){m&&(m.warmUp(),!this._layouting&&this._startForceLayoutIteration(m,v),m.setFixed(r),u.setItemLayout(r,e.position))}),this).on("dragend",(function(){m&&m.setUnfixed(r)}),this),e.setDraggable(o&&m),e[p]&&e.off("mouseover",e[p]),e[f]&&e.off("mouseout",e[f]),a.get("focusNodeAdjacency")&&(e.on("mouseover",e[p]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[f]=function(){i._dispatchUnfocus(n)}))}),this),u.graph.eachEdge((function(e){var r=e.getGraphicEl();r[p]&&r.off("mouseover",r[p]),r[f]&&r.off("mouseout",r[f]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[p]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[f]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=u.getLayout("cx"),_=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(y){var r=u.getItemLayout(e),a=Math.atan2(r[1]-_,r[0]-x);a<0&&(a=2*Math.PI+a);var o=r[0]=0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}t.exports=function(t,e){var n=[],o=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];e/=2,t.eachEdge((function(t,i){var c=t.getLayout(),h=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");c.__original||(c.__original=[r.clone(c[0]),r.clone(c[1])],c[2]&&c.__original.push(r.clone(c[2])));var f=c.__original;if(null!=c[2]){if(r.copy(s[0],f[0]),r.copy(s[1],f[2]),r.copy(s[2],f[1]),h&&"none"!==h){var g=a(t.node1),m=d(s,f[0],g*e);o(s[0][0],s[1][0],s[2][0],m,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],m,n),s[0][1]=n[3],s[1][1]=n[4]}if(p&&"none"!==p){g=a(t.node2),m=d(s,f[1],g*e);o(s[0][0],s[1][0],s[2][0],m,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],m,n),s[1][1]=n[1],s[2][1]=n[2]}r.copy(c[0],s[0]),r.copy(c[1],s[2]),r.copy(c[2],s[1])}else{if(r.copy(l[0],f[0]),r.copy(l[1],f[1]),r.sub(u,l[1],l[0]),r.normalize(u,u),h&&"none"!==h){g=a(t.node1);r.scaleAndAdd(l[0],l[0],u,g*e)}if(p&&"none"!==p){g=a(t.node2);r.scaleAndAdd(l[1],l[1],u,-g*e)}r.copy(c[0],l[0]),r.copy(c[1],l[1])}}))}},12301:function(t){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){"number"==typeof n&&(n=r[n]);for(var a=0;a0){var I=a(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return h.putImageData(y,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=i.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[n](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}};var a=r;t.exports=a},11226:function(t,e,n){var i=n(38645),r=n(32977),a=n(33807),o=i.extend({type:"series.heatmap",getInitialData:function(t,e){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=a.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=o},36684:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(18993),a=n(81311),o=n(69008);var s=i.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,a){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),h=u.getAxis("y");s=c.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(m),b=t.getModel(v),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=n;M=e[0]&&t<=e[1]}}(b,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=o.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,a=0;return function(t){for(var i=a;i=0;i--){var o;if((o=e[i].interval)[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&i0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=c;h&&(d=c(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var p=i.animate("",l).when(s,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(i)}));l||p.done((function(){r.remove(i)})),p.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return s.dist(t.__p1,t.__cp1)+s.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,a=t.position,o=[a[0],a[1]],u=l.quadraticAt,c=l.quadraticDerivativeAt;a[0]=u(e[0],i[0],n[0],r),a[1]=u(e[1],i[1],n[1],r);var h=c(e[0],i[0],n[0],r),d=c(e[1],i[1],n[1],r);if(t.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT=0&&!(i[s]<=e);s--);s=Math.min(s,r-2)}else{for(var s=a;se);s++);s=Math.min(s-1,r-2)}o.lerp(t.position,n[s],n[s+1],(e-i[s])/(i[s+1]-i[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},r.inherits(s,a);var u=s;t.exports=u},82760:function(t,e,n){var i=n(69008),r=n(22868).createSymbol,a=n(18993).Group,o=n(86957).parsePercent,s=n(32427);function l(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function u(t,e){a.call(this);var n=new s(t,e),i=new a;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var c=u.prototype;c.stopEffectAnimation=function(){this.childAt(1).removeAll()},c.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),a=0;a<3;a++){var o=r(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-a/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(o)}l(i,t)},c.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r0){t.moveTo(n[r++],n[r++]);for(var o=1;o0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var s=0,l=0;l0)for(var c=i[l++],h=i[l++],d=1;d0){var g=(c+p)/2-(h-f)*r,m=(h+f)/2-(p-c)*r;if(o.containStroke(c,h,g,m,p,f))return s}else if(a.containStroke(c,h,p,f))return s;s++}return-1}});function l(){this.group=new i.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new s({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var n=new s;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var c=l;t.exports=c},15499:function(t,e,n){var i=n(18993),r=n(22868).createSymbol,a=n(61465),o=i.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,a=r.shape;if(!((t.getContext?t.getContext():t)&&i[0]<4))for(var o=0;o=0;s--){var l=2*s,u=i[l]-a/2,c=i[l+1]-o/2;if(t>=u&&e>=c&&t<=u+a&&e<=c+o)return s}return-1}});function s(){this.group=new i.Group}var l=s.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(t,e){this.group.removeAll();var n=new o({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},l.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},l.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new o,this._incremental.addDisplayable(i,!0)):((i=new o({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},l._setCommon=function(t,e,n,i){var a=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=r(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var s=t.shape.size[0]<4;t.useStyle(a.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var l=e.getVisual("color");l&&t.setColor(l),n||(t.seriesIndex=a.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))})))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var u=s;t.exports=u},85617:function(t,e,n){var i=n(69008),r=n(47764),a=n(22868),o=n(46875),s=n(18993),l=n(86957).round,u=["fromSymbol","toSymbol"];function c(t){return"_"+t+"Type"}function h(t,e,n){var r=e.getItemVisual(n,"color"),o=e.getItemVisual(n,t),s=e.getItemVisual(n,t+"Size");if(o&&"none"!==o){i.isArray(s)||(s=[s,s]);var l=a.createSymbol(o,-s[0]/2,-s[1]/2,s[0],s[1],r);return l.name=t,l}}function d(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function p(t,e,n){s.Group.call(this),this._createLine(t,e,n)}var f=p.prototype;f.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.childOfName("label");if(e||n||!i.ignore){for(var a=1,o=this.parent;o;)o.scale&&(a/=o.scale[0]),o=o.parent;var s=t.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),c=s.pointAt(l),h=r.sub([],c,u);if(r.normalize(h,h),e){e.attr("position",u);var d=s.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[a*l,a*l])}if(n){n.attr("position",c);d=s.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),n.attr("scale",[a*l,a*l])}if(!i.ignore){var p,f,g,m;i.attr("position",c);var v=i.__labelDistance,y=v[0]*a,x=v[1]*a,_=l/2,b=[(d=s.tangentAt(_))[1],-d[0]],w=s.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var S,M=d[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var I=-Math.atan2(d[1],d[0]);c[0].8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":p=[-h[0]*y+u[0],-h[1]*x+u[1]],f=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[y*M+u[0],u[1]+S],f=d[0]<0?"right":"left",m=[-y*M,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[w[0],w[1]+S],f="center",m=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-y*M+c[0],c[1]+S],f=d[0]>=0?"right":"left",m=[y*M,-S]}i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||f},position:p,scale:[a,a],origin:m})}}}},f._createLine=function(t,e,n){var r=t.hostModel,a=function(t){var e=new o({name:"line",subPixelOptimize:!0});return d(e.shape,t),e}(t.getItemLayout(e));a.shape.percent=0,s.initProps(a,{shape:{percent:1}},r,e),this.add(a);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),i.each(u,(function(n){var i=h(n,t,e);this.add(i),this[c(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},f.updateData=function(t,e,n){var r=t.hostModel,a=this.childOfName("line"),o=t.getItemLayout(e),l={shape:{}};d(l.shape,o),s.updateProps(a,l,r,e),i.each(u,(function(n){var i=t.getItemVisual(e,n),r=c(n);if(this[r]!==i){this.remove(this.childOfName(n));var a=h(n,t,e);this.add(a)}this[r]=i}),this),this._updateCommonStl(t,e,n)},f._updateCommonStl=function(t,e,n){var r=t.hostModel,a=this.childOfName("line"),o=n&&n.lineStyle,c=n&&n.hoverLineStyle,h=n&&n.labelModel,d=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var p=t.getItemModel(e);o=p.getModel("lineStyle").getLineStyle(),c=p.getModel("emphasis.lineStyle").getLineStyle(),h=p.getModel("label"),d=p.getModel("emphasis.label")}var f=t.getItemVisual(e,"color"),g=i.retrieve3(t.getItemVisual(e,"opacity"),o.opacity,1);a.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:g},o)),a.hoverStyle=c,i.each(u,(function(t){var e=this.childOfName(t);e&&(e.setColor(f),e.setStyle({opacity:g}))}),this);var m,v,y=h.getShallow("show"),x=d.getShallow("show"),_=this.childOfName("label");if((y||x)&&(m=f||"#000",null==(v=r.getFormattedLabel(e,"normal",t.dataType)))){var b=r.getRawValue(e);v=null==b?t.getName(e):isFinite(b)?l(b):b}var w=y?v:null,S=x?i.retrieve2(r.getFormattedLabel(e,"emphasis",t.dataType),v):null,M=_.style;if(null!=w||null!=S){s.setTextStyle(_.style,h,{text:w},{autoColor:m}),_.__textAlign=M.textAlign,_.__verticalAlign=M.textVerticalAlign,_.__position=h.get("position")||"middle";var I=h.get("distance");i.isArray(I)||(I=[I,I]),_.__labelDistance=I}_.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!x,s.setHoverStyle(this)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},f.setLinePoints=function(t){var e=this.childOfName("line");d(e.shape,t),e.dirty()},i.inherits(p,s.Group);var g=p;t.exports=g},70562:function(t,e,n){var i=n(18993),r=n(85617);function a(t){this._ctor=t||r,this.group=new i.Group}var o=a.prototype;function s(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function l(t){return isNaN(t[0])||isNaN(t[1])}function u(t){return!l(t[0])&&!l(t[1])}o.isPersistent=function(){return!0},o.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=s(t);t.diff(i).add((function(n){!function(t,e,n,i){var r=e.getItemLayout(n);if(!u(r))return;var a=new t._ctor(e,n,i);e.setItemGraphicEl(n,a),t.group.add(a)}(e,t,n,r)})).update((function(n,a){!function(t,e,n,i,r,a){var o=e.getItemGraphicEl(i);if(!u(n.getItemLayout(r)))return void t.group.remove(o);o?o.updateData(n,r,a):o=new t._ctor(n,r,a);n.setItemGraphicEl(r,o),t.group.add(o)}(e,i,t,a,n,r)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},o.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},o.incrementalPrepareUpdate=function(t){this._seriesScope=s(t),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i "+x)),m++)}var _,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,n);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];i.indexOf(S,"value")<0&&S.concat(["value"]);var M=s(t,{coordDimensions:S});(_=new r(M,n)).initData(t)}var I=new r(["value"],n);return I.initData(g,f),h&&h(_,I),o({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:I},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},32977:function(t,e,n){var i=n(69008),r=n(39177),a=n(34476),o=n(8326).SOURCE_FORMAT_ORIGINAL,s=n(28176).getDimensionTypeByAxis,l=n(90830).getDataItemValue,u=n(33807),c=n(28927).getCoordSysInfoBySeries,h=n(50751),d=n(22240).enableDataStack,p=n(67063).makeSeriesEncodeForAxisCoordSys;var f=function(t,e,n){n=n||{},h.isInstance(t)||(t=h.seriesDataToSource(t));var f,g=e.get("coordinateSystem"),m=u.get(g),v=c(e);v&&(f=i.map(v.coordSysDims,(function(t){var e={name:t},n=v.axisMap.get(t);if(n){var i=n.get("type");e.type=s(i)}return e}))),f||(f=m&&(m.getDimensionsInfo?m.getDimensionsInfo():m.dimensions.slice())||["x","y"]);var y,x,_=a(t,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(p,f,e):null});v&&i.each(_,(function(t,e){var n=t.coordDim,i=v.categoryAxisMap.get(n);i&&(null==y&&(y=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(x=!0)})),x||null==y||(_[y].otherDims.itemName=0);var b=d(e,_),w=new r(_,e);w.setCalculationInfo(b);var S=null!=y&&function(t){if(t.sourceFormat===o){var e=function(t){var e=0;for(;e=0){var r=n.getData().tree.root,a=t.targetNode;if("string"==typeof a&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=t.targetNodeId;if(null!=o&&(a=r.getNodeById(o)))return{node:a}}},e.getPathToRoot=r,e.aboveViewRoot=function(t,e){var n=r(t);return i.indexOf(n,e)>=0},e.wrapTreePathInfo=function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}},45112:function(t,e,n){var i=n(60425),r=n(69008),a=n(28176).getDimensionTypeByAxis,o=n(67063).makeSeriesEncodeForAxisCoordSys,s={_baseAxisDim:null,getInitialData:function(t,e){var n,s,l=e.getComponent("xAxis",this.get("xAxisIndex")),u=e.getComponent("yAxis",this.get("yAxisIndex")),c=l.get("type"),h=u.get("type");"category"===c?(t.layout="horizontal",n=l.getOrdinalMeta(),s=!0):"category"===h?(t.layout="vertical",n=u.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var d=["x","y"],p="horizontal"===t.layout?0:1,f=this._baseAxisDim=d[p],g=d[1-p],m=[l,u],v=m[p].get("type"),y=m[1-p].get("type"),x=t.data;if(x&&s){var _=[];r.each(x,(function(t,e){var n;t.value&&r.isArray(t.value)?(n=t.value.slice(),t.value.unshift(e)):r.isArray(t)?(n=t.slice(),t.unshift(e)):n=t,_.push(n)})),t.data=_}var b=this.defaultValueDimensions,w=[{name:f,type:a(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:a(y),dimsDef:b.slice()}];return i(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:r.curry(o,w,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=s},54023:function(t,e,n){var i=n(3096);n(30399),n(51118);var r=n(11404),a=n(87984),o=n(70932);n(47102),i.registerVisual(r("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o("line"))},30399:function(t,e,n){n(96311).__DEV__;var i=n(32977),r=n(38645).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return i(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}});t.exports=r},51118:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(16254).fromPoints,a=n(38346),o=n(32427),s=n(35553),l=n(18993),u=n(90830),c=n(81158),h=c.Polyline,d=c.Polygon,p=n(68880),f=n(75518),g=f.prepareDataCoordInfo,m=f.getStackedOnPoint,v=n(38797),y=v.createGridClipPath,x=v.createPolarClipPath;function _(t,e){if(t.length===e.length){for(var n=0;ni)return!1;return!0}(s,e))){var l=e.mapDimension(s.dim),u={};return i.each(s.getViewLabels(),(function(t){u[t.tickValue]=1})),function(t){return!u.hasOwnProperty(e.get(l,t))}}}}function I(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=y(t,e,n);if(!n.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);i?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return x(t,e,n)}var T=p.extend({type:"line",init:function(){var t=new l.Group,e=new a;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var r=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=o.mapArray(o.getItemLayout),h="polar"===r.type,d=this._coordSys,p=this._symbolDraw,f=this._polyline,v=this._polygon,y=this._lineGroup,x=t.get("animation"),b=!u.isEmpty(),T=u.get("origin"),A=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,a=e.count();r=0;o--){var s=n[o].dimension,u=t.dimensions[s],c=t.getDimensionInfo(u);if("x"===(r=c&&c.coordDim)||"y"===r){a=n[o];break}}if(a){var h=e.getAxis(r),d=i.map(a.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=d[0].coord-10,m=d[p-1].coord+10,v=m-g;if(v<.001)return"transparent";i.each(d,(function(t){t.offset=(t.coord-g)/v})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var y=new l.LinearGradient(0,0,0,0,d,!0);return y[r]=g,y[r+"2"]=m,y}}}(o,r)||o.getVisual("color");f.useStyle(i.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var E=t.get("smooth");if(E=w(t.get("smooth")),f.setShape({smooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),v){var R=o.getCalculationInfo("stackedOnSeries"),N=0;v.useStyle(i.defaults(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),R&&(N=w(R.get("smooth"))),v.setShape({smooth:E,stackedOnSmooth:N,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=r,this._stackedOnPoints=A,this._points=c,this._step=k,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),a=u.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var l=r.getItemLayout(a);if(!l)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l[0],l[1]))return;(s=new o(r,a)).position=l,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else p.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),a=u.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else p.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new h({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new d({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,a){var o=this._polyline,u=this._polygon,c=t.hostModel,h=s(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),d=h.current,p=h.stackedOnCurrent,f=h.next,g=h.stackedOnNext;if(r&&(d=S(h.current,n,r),p=S(h.stackedOnCurrent,n,r),f=S(h.next,n,r),g=S(h.stackedOnNext,n,r)),b(d,f)>3e3||u&&b(p,g)>3e3)return o.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));o.shape.__points=h.current,o.shape.points=d,l.updateProps(o,{shape:{points:f}},c),u&&(u.setShape({points:d,stackedOnPoints:p}),l.updateProps(u,{shape:{points:f,stackedOnPoints:g}},c));for(var m=[],v=h.status,y=0;y0?n=i[0]:i[1]<0&&(n=i[1]);return n}(s,n),u=o.dim,c=s.dim,h=e.mapDimension(c),d=e.mapDimension(u),p="x"===c||"radius"===c?1:0,f=r(t.dimensions,(function(t){return e.mapDimension(t)})),g=e.getCalculationInfo("stackResultDimension");return(a|=i(e,f[0]))&&(f[0]=g),(a|=i(e,f[1]))&&(f[1]=g),{dataDimsForPoint:f,valueStart:l,valueAxisDim:c,baseAxisDim:u,stacked:!!a,valueDim:h,baseDim:d,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},e.getStackedOnPoint=function(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}},35553:function(t,e,n){var i=n(75518),r=i.prepareDataCoordInfo,a=i.getStackedOnPoint;t.exports=function(t,e,n,i,o,s,l,u){for(var c=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),h=[],d=[],p=[],f=[],g=[],m=[],v=[],y=r(o,e,l),x=r(s,t,u),_=0;_=r||m<0)break;if(p(y)){if(f){m+=a;continue}break}if(m===n)t[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],_="y"===c?1:0,b=(y[_]-x[_])*l;u(h,x),h[_]=x[_]+b,u(d,y),d[_]=y[_]-b,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=a}return v}function m(t,e,n,i,a,f,g,m,v,y,x){for(var _=0,b=n,w=0;w=a||b<0)break;if(p(S)){if(x){b+=f;continue}break}if(b===n)t[f>0?"moveTo":"lineTo"](S[0],S[1]),u(h,S);else if(v>0){var M=b+f,I=e[M];if(x)for(;I&&p(e[M]);)I=e[M+=f];var T=.5,A=e[_];if(!(I=e[M])||p(I))u(d,S);else{var C,D;if(p(I)&&!x&&(I=S),r.sub(c,I,A),"x"===y||"y"===y){var L="x"===y?0:1;C=Math.abs(S[L]-A[L]),D=Math.abs(S[L]-I[L])}else C=r.dist(S,A),D=r.dist(S,I);l(d,S,c,-v*(1-(T=D/(D+C))))}o(h,h,m),s(h,h,g),o(d,d,m),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,c,v*T)}else t.lineTo(S[0],S[1]);_=b,b+=f}return w}function v(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,a=v(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&p(n[r-1]);r--);for(;i0&&p(n[a-1]);a--);for(;r "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},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}}}),f=p;t.exports=f},338:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(70562),a=n(5186),o=n(85617),s=n(84700),l=n(75313),u=n(68918),c=n(25784),h=n(38797).createClipPath,d=i.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),a=t.get("zlevel"),o=t.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&h(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=c.reset(t);a.progress&&a.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,e){var n=this._lineDraw,i=this._showEffect(e),c=!!e.get("polyline"),h=e.pipelineContext.large;return n&&i===this._hasEffet&&c===this._isPolyline&&h===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=h?new u:new r(c?i?l:s:i?a:o),this._hasEffet=i,this._isPolyline=c,this._isLargeDraw=h,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=d},25784:function(t,e,n){var i={seriesType:"lines",plan:n(13861)(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,a){var o=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,c=r.start;c"+s(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},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"}});i.mixin(p,u);var f=p;t.exports=f},22554:function(t,e,n){var i=n(3096),r=n(69008),a=n(18993),o=n(25344),s="__seriesMapHighDown",l="__seriesMapCallKey",u=i.extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(a=this._mapDraw)&&r.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new o(n,!0);r.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},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,e,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var u=i.getItemLayout(n);if(u&&u.point){var d=u.point,p=u.offset,f=new a.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:a.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),m=i.getName(n),v=g.indexOfName(m),y=i.getItemModel(n),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(v),w=r.retrieve2(t.getFormattedLabel(v,"normal"),m),S=r.retrieve2(t.getFormattedLabel(v,"emphasis"),w),M=b[s],I=Math.random();if(!M){M=b[s]={};var T=r.curry(c,!0),A=r.curry(c,!1);b.on("mouseover",T).on("mouseout",A).on("emphasis",T).on("normal",A)}b[l]=I,r.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),h(M,!1)}o.add(f)}}}))}});function c(t){var e=this[s];e&&e.recordVersion===this[l]&&h(e,t)}function h(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,s=t.normalText;e?(n.style.extendFrom(a.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=a.Z2_EMPHASIS_LIFT):(a.setTextStyle(n.style,i,{text:i.get("show")?s:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}t.exports=u},50027:function(t,e,n){var i=n(69008);t.exports=function(t){var e=[];i.each(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,i.defaults(t,t.mapLocation))}))}},63730:function(t,e,n){var i=n(69008);t.exports=function(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),i.each(e,(function(t,e){for(var n,r,a,o=(n=i.map(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),a={},i.each(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);a[i]=a[i]||[],isNaN(e)||a[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var i="ec-"+n[0].getName(e),o=0,s=1/0,l=-1/0,u=a[i].length,c=0;c0&&(h?"scale"!==d:"transition"!==p)){for(var m=a.getItemLayout(0),v=1;isNaN(m.startAngle)&&v=n.r0}}});t.exports=c},94034:function(t,e,n){var i=n(63603),r=n(86957).parsePercent,a=Math.PI/180;function o(t,e,n,i,r,a,o,s,l,u){function c(e,n,i,r){for(var a=e;al+o);a++)if(t[a].y+=i,a>e&&a+1t[a].y+t[a].height)return void h(a,i/2);h(n-1,i/2)}function h(e,n){for(var i=e;i>=0&&!(t[i].y-n0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function d(t,e,n,i,r,a){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=n+d*a,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var p,f=0,g=t.length,m=[],v=[],y=0;y=n?v.push(t[y]):m.push(t[y]);d(m,!1,e,n,i,r),d(v,!0,e,n,i,r)}function s(t){return"center"===t.position}t.exports=function(t,e,n,l,u,c){var h,d,p=t.getData(),f=[],g=!1,m=(t.get("minShowLabelAngle")||0)*a;p.each((function(a){var o=p.getItemLayout(a),s=p.getItemModel(a),l=s.getModel("label"),c=l.get("position")||s.get("emphasis.label.position"),v=l.get("distanceToLabelLine"),y=l.get("alignTo"),x=r(l.get("margin"),n),_=l.get("bleedMargin"),b=l.getFont(),w=s.getModel("labelLine"),S=w.get("length");S=r(S,n);var M=w.get("length2");if(M=r(M,n),!(o.angle0?"right":"left":L>0?"left":"right"}var F=l.get("rotate");k="number"==typeof F?F*(Math.PI/180):F?L<0?-D+Math.PI:-D:0,g=!!k,o.label={x:I,y:T,position:c,height:E.height,len:S,len2:M,linePoints:A,textAlign:C,verticalAlign:"middle",rotation:k,inside:R,labelDistance:v,labelAlignTo:y,labelMargin:x,bleedMargin:_,textRect:E,text:O,font:b},R||f.push(o.label)}})),!g&&t.get("avoidLabelOverlap")&&function(t,e,n,r,a,l,u,c){for(var h=[],d=[],p=Number.MAX_VALUE,f=-Number.MAX_VALUE,g=0;g"+a.map(n,(function(n,i){var r=e.get(e.mapDimension(n.dim),t);return o(n.name+" : "+r)})).join("
")},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(a.map(n.dimensions,(function(t){return e.mapDimension(t)})),t,!0),r=0,o=i.length;r=0&&(s[a[l].depth]=new o(a[l],this,e));if(i&&n)return r(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth;return n.levelModels[i]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return n.levelModels[i]||this.parentModel})),t}))})).data},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getDataParams(t,n),r=i.data,o=r.source+" -- "+r.target;return i.value&&(o+=" : "+i.value),a(o)}if("node"===n){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,n).data.name;if(l)o=u+" : "+l;return a(o)}return s.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=s.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},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}})),l=s;t.exports=l},9666:function(t,e,n){var i=n(18993),r=n(3096),a=n(69008),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function h(t,e,n){var i=t.getGraphicEl(),r=c(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function d(t,e){var n=c(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var p=i.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),f=r.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,n){var r=this,a=t.getGraph(),o=this.group,s=t.layoutInfo,l=s.width,u=s.height,c=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.attr("position",[s.x,s.y]),a.eachEdge((function(e){var n=new p;n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var r,a,s,c,f,g,m,v,y=e.getModel("lineStyle"),x=y.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),A=I.get("localY"),C=e.getLayout();switch(n.shape.extent=Math.max(1,C.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*l:_.x)+C.sy,a=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+C.ty,f=r,g=a*(1-x)+(c=null!=A?A*u:M.y)*x,m=s,v=a*x+c*(1-x)):(r=(null!=w?w*l:_.x)+_.dx,a=(null!=S?S*u:_.y)+C.sy,f=r*(1-x)+(s=null!=T?T*l:M.x)*x,g=a,m=r*x+s*(1-x),v=c=(null!=A?A*u:M.y)+C.ty),n.setShape({x1:r,y1:a,x2:s,y2:c,cpx1:f,cpy1:g,cpx2:m,cpy2:v}),n.setStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color");break;case"target":n.style.fill=e.node2.getVisual("color")}i.setHoverStyle(n,e.getModel("emphasis.lineStyle").getItemStyle()),o.add(n),h.setItemGraphicEl(e.dataIndex,n)})),a.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),a=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new i.Rect({shape:{x:null!=a?a*l:n.x,y:null!=s?s*u:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle()}),f=e.getModel("emphasis.itemStyle").getItemStyle();i.setLabelStyle(p.style,f,h,d,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),p.setStyle("fill",e.getVisual("color")),i.setHoverStyle(p,f),o.add(p),c.setItemGraphicEl(e.dataIndex,p),p.dataType="node"})),c.eachItemGraphicEl((function(e,i){var a=c.getItemModel(i);a.get("draggable")&&(e.drift=function(e,a){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),h.eachItemGraphicEl((function(e,i){var a=h.getItemModel(i);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),!this._data&&t.get("animation")&&o.setClipPath(function(t,e,n){var r=new i.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return i.initProps(r,{shape:{width:t.width+20}},e,n),r}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,i){var r=t.getData(),c=r.graph,p=i.dataIndex,f=r.getItemModel(p),g=i.edgeDataIndex;if(null!=p||null!=g){var m=c.getNodeByIndex(p),v=c.getEdgeByIndex(g);if(c.eachNode((function(t){h(t,o,.1)})),c.eachEdge((function(t){h(t,l,.1)})),m){d(m,s);var y=f.get("focusNodeAdjacency");"outEdges"===y?a.each(m.outEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node2,s))})):"inEdges"===y?a.each(m.inEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node1,s))})):"allEdges"===y&&a.each(m.edges,(function(t){t.dataIndex<0||(d(t,u),t.node1!==m&&d(t.node1,s),t.node2!==m&&d(t.node2,s))}))}v&&(d(v,u),d(v.node1,s),d(v.node2,s))}},unfocusNodeAdjacency:function(t,e,n,i){var r=t.getGraph();r.eachNode((function(t){h(t,o)})),r.eachEdge((function(t){h(t,l)}))}});t.exports=f},52155:function(t,e,n){var i=n(3096);n(18148),i.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},69946:function(t,e,n){var i=n(7357),r=n(69008),a=n(90830).groupData;function o(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function s(t,e,n,i,a){var o="vertical"===a?"x":"y";r.each(t,(function(t){var r,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===a?"dx":"dy",d=0;d0&&(r=s.getLayout()[o]+l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===a?i:n))>0)for(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0),u=r,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[o]}))}function l(t,e,n){r.each(t.slice().reverse(),(function(t){r.each(t,(function(t){if(t.outEdges.length){var i=g(t.outEdges,u,n)/g(t.outEdges,f,n);if(isNaN(i)){var r=t.outEdges.length;i=r?g(t.outEdges,c,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-p(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-p(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function u(t,e){return p(t.node2,e)*t.getValue()}function c(t,e){return p(t.node2,e)}function h(t,e){return p(t.node1,e)*t.getValue()}function d(t,e){return p(t.node1,e)}function p(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function f(t){return t.getValue()}function g(t,e,n){for(var i=0,r=t.length,a=-1;++a=0;_&&x.depth>m&&(m=x.depth),y.setLayout({depth:_?x.depth:p},!0),"vertical"===s?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var b=0;bp-1?m:p-1;l&&"left"!==l&&function(t,e,n,i){if("right"===e){for(var a=[],s=t,l=0;s.length;){for(var u=0;u0;u--)l(h,d*=.99,c),s(h,o,n,i,c),m(h,d,c),s(h,o,n,i,c)}(t,e,c,u,i,h,d),function(t,e){var n="vertical"===e?"x":"y";r.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),r.each(t,(function(t){var e=0,n=0;r.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),r.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,d)}(v,y,n,u,h,d,0!==r.filter(v,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}},83977:function(t,e,n){var i=n(5660),r=n(69008);t.exports=function(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,a=-1/0;r.each(e,(function(t){var e=t.getLayout().value;ea&&(a=e)})),r.each(e,(function(e){var r=new i({type:"color",mappingMethod:"linear",dataExtent:[n,a],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get("itemStyle.color");null!=o?e.setVisual("color",o):e.setVisual("color",r)}))}}))}},43394:function(t,e,n){var i=n(3096);n(94711),n(1150);var r=n(11404),a=n(87984);n(47102),i.registerVisual(r("scatter","circle")),i.registerLayout(a("scatter"))},94711:function(t,e,n){var i=n(32977),r=n(38645).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});t.exports=r},1150:function(t,e,n){var i=n(3096),r=n(38346),a=n(15499),o=n(87984);i.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=o().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new a:new r,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},44189:function(t,e,n){var i=n(3096),r=n(69008);n(58290),n(52637),n(50829);var a=n(22333),o=n(81005),s=n(22259);i.registerVisual(r.curry(a,"sunburst")),i.registerLayout(r.curry(o,"sunburst")),i.registerProcessor(r.curry(s,"sunburst"))},93645:function(t,e,n){var i=n(69008),r=n(18993),a="none",o="ancestor",s="self";function l(t,e,n){r.Group.call(this);var i=new r.Sector({z2:2});i.seriesIndex=e.seriesIndex;var a=new r.Text({z2:4,silent:t.getModel("label").get("silent")});function o(){a.ignore=a.hoverIgnore}function s(){a.ignore=a.normalIgnore}this.add(i),this.add(a),this.updateData(!0,t,"normal",e,n),this.on("emphasis",o).on("normal",s).on("mouseover",o).on("mouseout",s)}var u=l.prototype;u.updateData=function(t,e,n,a,o){this.node=e,e.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var l=e.getModel(),u=e.getLayout(),c=i.extend({},u);c.label=null;var h=function(t,e,n){var r=t.getVisual("color"),a=t.getVisual("visualMeta");a&&0!==a.length||(r=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(r)return r;if(0===t.depth)return n.option.color[0];var s=n.option.color.length;o=n.option.color[function(t){var e=t;for(;e.depth>1;)e=e.parentNode;var n=t.getAncestors()[0];return i.indexOf(n.children,e)}(t)%s];return o}(e,0,o);!function(t,e,n){var i=e.getData();i.setItemVisual(t.dataIndex,"color",n)}(e,a,h);var d,p=l.getModel("itemStyle").getItemStyle();if("normal"===n)d=p;else{var f=l.getModel(n+".itemStyle").getItemStyle();d=i.merge(f,p)}d=i.defaults({lineJoin:"bevel",fill:d.fill||h},d),t?(s.setShape(c),s.shape.r=u.r0,r.updateProps(s,{shape:{r:u.r}},a,e.dataIndex),s.useStyle(d)):"object"==typeof d.fill&&d.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:c},a),s.useStyle(d)):r.updateProps(s,{shape:c,style:d},a),this._updateLabel(a,h,n);var g=l.getShallow("cursor");if(g&&s.attr("cursor",g),t){var m=a.getShallow("highlightPolicy");this._initEvents(s,e,a,m)}this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel,r.setHoverStyle(this)},u.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(n){var i,r,l;n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):(i=n,r=e.node,(l=t)!==a&&(l===s?i===r:l===o?i===r||i.isAncestorOf(r):i===r||i.isDescendantOf(r))?n.piece.childAt(0).trigger("highlight"):t!==a&&n.piece.childAt(0).trigger("downplay")))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(t,e,n){var a=this.node.getModel(),o=a.getModel("label"),s="normal"===n||"emphasis"===n?o:a.getModel(n+".label"),l=a.getModel("emphasis.label"),u=i.retrieve(t.getFormattedLabel(this.node.dataIndex,n,null,null,"label"),this.node.name);!1===I("show")&&(u="");var c=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var d=c.endAngle-c.startAngle;null!=h&&Math.abs(d)Math.PI/2?"right":"left"):_&&"center"!==_?"left"===_?(f=c.r0+x,g>Math.PI/2&&(_="right")):"right"===_&&(f=c.r-x,g>Math.PI/2&&(_="left")):(f=(c.r+c.r0)/2,_="center"),p.attr("style",{text:u,textAlign:_,textVerticalAlign:I("verticalAlign")||"middle",opacity:I("opacity")});var b=f*m+c.cx,w=f*v+c.cy;p.attr("position",[b,w]);var S=I("rotate"),M=0;function I(t){var e=s.get(t);return null==e?o.get(t):e}"radial"===S?(M=-g)<-Math.PI/2&&(M+=Math.PI):"tangential"===S?(M=Math.PI/2-g)>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI):"number"==typeof S&&(M=S*Math.PI/180),p.attr("rotation",M)},u._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,a=function(){r.onEmphasis(i)},o=function(){r.onNormal()};n.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",(function(){r.onDownplay()})).on("highlight",(function(){r.onHighlight()}))},i.inherits(l,r.Group);var c=l;t.exports=c},58290:function(t,e,n){var i=n(69008),r=n(38645),a=n(54327),o=n(22889).wrapTreePathInfo,s=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var n={name:t.name,children:t.data};l(n);var i=t.levels||[],r={};return r.levels=i,a.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=o(n,this),e},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(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function l(t){var e=0;i.each(t.children,(function(t){l(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}t.exports=s},52637:function(t,e,n){var i=n(69008),r=n(68880),a=n(93645),o=n(90515),s=n(17010).windowOpen,l=r.extend({type:"sunburst",init:function(){},render:function(t,e,n,r){var s=this;this.seriesModel=t,this.api=n,this.ecModel=e;var l=t.getData(),u=l.tree.root,c=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),p=[];c.eachNode((function(t){p.push(t)}));var f=this._oldChildren||[];if(function(n,r){if(0===n.length&&0===r.length)return;function s(t){return t.getId()}function c(i,o){!function(n,i){d||!n||n.getValue()||(n=null);if(n!==u&&i!==u)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",t,e),l.setItemGraphicEl(n.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(h.remove(t.piece),t.piece=null)}(i);else if(n){var r=new a(n,t,e);h.add(r),l.setItemGraphicEl(n.dataIndex,r)}}(null==i?null:n[i],null==o?null:r[o])}new o(r,n,s,s).add(c).update(c).remove(i.curry(c,null)).execute()}(p,f),function(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",t,e):(s.virtualPiece=new a(n,t,e),h.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var r=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}(u,c),r&&r.highlight&&r.highlight.piece){var g=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var m=this.virtualPiece;!m&&u.children.length&&(m=u.children[0].piece),m&&m.onNormal()}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var l=a.get("target",!0)||"_blank";s(o,l)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,a=Math.sqrt(i*i+r*r);return a<=n.r&&a>=n.r0}}});t.exports=l},50829:function(t,e,n){var i=n(3096),r=n(22889),a="sunburstRootToNode";i.registerAction({type:a,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=r.retrieveTargetInfo(t,[a],e);if(i){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}));var o="sunburstHighlight";i.registerAction({type:o,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=r.retrieveTargetInfo(t,[o],e);i&&(t.highlight=i.node)}))}));i.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){t.unhighlight=!0}))}))},81005:function(t,e,n){var i=n(86957).parsePercent,r=n(69008),a=Math.PI/180;function o(t,e){var n=t.children||[];t.children=function(t,e){if("function"==typeof e)return t.sort(e);var n="asc"===e;return t.sort((function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i}))}(n,e),n.length&&r.each(t.children,(function(t){o(t,e)}))}t.exports=function(t,e,n,s){e.eachSeriesByType(t,(function(t){var e=t.get("center"),s=t.get("radius");r.isArray(s)||(s=[0,s]),r.isArray(e)||(e=[e,e]);var l=n.getWidth(),u=n.getHeight(),c=Math.min(l,u),h=i(e[0],l),d=i(e[1],u),p=i(s[0],c/2),f=i(s[1],c/2),g=-t.get("startAngle")*a,m=t.get("minAngle")*a,v=t.getData().tree.root,y=t.getViewRoot(),x=y.depth,_=t.get("sort");null!=_&&o(y,_);var b=0;r.each(y.children,(function(t){!isNaN(t.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,M=y.depth>0,I=y.height-(M?-1:1),T=(f-p)/(I||1),A=t.get("clockwise"),C=t.get("stillShowZeroSum"),D=A?1:-1,L=function(t,e){if(t){var n=e;if(t!==v){var a=t.getValue(),o=0===w&&C?S:a*S;oa&&(a=u,o=s)}for(var c=0;ca&&(a=u),i.push(u)}for(var c=0;ca&&(a=d)}return o.y0=r,o.max=a,o}(u),h=c.y0,d=n/c.max,p=o.length,f=o[0].indices.length,g=0;gs&&(s=t.depth)}));var l=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:s;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.parentNode;return a(o+(isNaN(r)||null==r?"":" : "+r))},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}});t.exports=s},49936:function(t,e,n){var i=n(69008),r=n(18993),a=n(32427),o=n(8940).radialCoordinate,s=n(3096),l=n(16254),u=n(86990),c=n(37419),h=n(38515),d=n(18584).onIrrelevantElement,p=(n(96311).__DEV__,n(86957).parsePercent),f=r.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,a=n[0],o=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=p(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(o[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;dI.x)||(w-=Math.PI);var C=S?"left":"right",D=l.labelModel.get("rotate"),L=D*(Math.PI/180);b.setStyle({textPosition:l.labelModel.get("position")||C,textRotation:null==D?-w:L,textOrigin:"center",verticalAlign:"middle"})}!function(t,e,n,a,o,s,l,u,c){var h=c.edgeShape,d=a.__edge;if("curve"===h)e.parentNode&&e.parentNode!==n&&(d||(d=a.__edge=new r.BezierCurve({shape:_(c,o,o),style:i.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),r.updateProps(d,{shape:_(c,s,l),style:{opacity:1}},t));else if("polyline"===h&&"orthogonal"===c.layout&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var p=e.children,g=[],m=0;m=0;r--){var a=n[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(a)}},e.firstWalk=function(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,l=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,i=0,r=0;for(;--n>=0;){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}(t);var u=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;l?(t.hierNode.prelim=l.hierNode.prelim+e(t,l),t.hierNode.modifier=t.hierNode.prelim-u):t.hierNode.prelim=u}else l&&(t.hierNode.prelim=l.hierNode.prelim+e(t,l));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var l=t,u=t,c=u.parentNode.children[0],h=e,d=l.hierNode.modifier,p=u.hierNode.modifier,f=c.hierNode.modifier,g=h.hierNode.modifier;h=r(h),u=a(u),h&&u;){l=r(l),c=a(c),l.hierNode.ancestor=t;var m=h.hierNode.prelim+g-u.hierNode.prelim-p+i(h,u);m>0&&(s(o(h,t,n),t,m),p+=m,d+=m),g+=h.hierNode.modifier,p+=u.hierNode.modifier,d+=l.hierNode.modifier,f+=c.hierNode.modifier}h&&!r(l)&&(l.hierNode.thread=h,l.hierNode.modifier+=g-d),u&&!a(c)&&(c.hierNode.thread=u,c.hierNode.modifier+=p-f,n=t)}return n}(t,l,t.parentNode.hierNode.defaultAncestor||i[0],e)},e.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},e.separation=function(t){return arguments.length?t:l},e.radialCoordinate=function(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n},e.getViewRect=function(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}},48311:function(t,e){e.eachAfter=function(t,e,n){for(var i,r=[t],a=[];i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;a--)i.push(r[a])}}},48728:function(t,e,n){var i=n(3096),r=n(66710).updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,i=r(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},67367:function(t,e,n){var i=n(48311),r=i.eachAfter,a=i.eachBefore,o=n(8940),s=o.init,l=o.firstWalk,u=o.secondWalk,c=o.separation,h=o.radialCoordinate,d=o.getViewRect;t.exports=function(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=d(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,p=0,f=null;"radial"===i?(o=2*Math.PI,p=Math.min(n.height,n.width)/2,f=c((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,p=n.height,f=c());var g=t.getData().tree.root,m=g.children[0];if(m){s(g),r(m,l,f),g.hierNode.modifier=-m.hierNode.prelim,a(m,u);var v=m,y=m,x=m;a(m,(function(t){var e=t.getLayout().x;ey.getLayout().x&&(y=t),t.depth>x.depth&&(x=t)}));var _=v===y?1:f(v,y)/2,b=_-v.getLayout().x,w=0,S=0,M=0,I=0;if("radial"===i)w=o/(y.getLayout().x+_+b),S=p/(x.depth-1||1),a(m,(function(t){M=(t.getLayout().x+b)*w,I=(t.depth-1)*S;var e=h(M,I);t.setLayout({x:e.x,y:e.y,rawX:M,rawY:I},!0)}));else{var T=t.getOrient();"RL"===T||"LR"===T?(S=p/(y.getLayout().x+_+b),w=o/(x.depth-1||1),a(m,(function(t){I=(t.getLayout().x+b)*S,M="LR"===T?(t.depth-1)*w:o-(t.depth-1)*w,t.setLayout({x:M,y:I},!0)}))):"TB"!==T&&"BT"!==T||(w=o/(y.getLayout().x+_+b),S=p/(x.depth-1||1),a(m,(function(t){M=(t.getLayout().x+b)*w,I="TB"===T?(t.depth-1)*S:p-(t.depth-1)*S,t.setLayout({x:M,y:I},!0)})))}}}(t,e)}))}},70797:function(t,e,n){var i=n(3096);n(49080),n(61511),n(35260);var r=n(81459),a=n(17606);i.registerVisual(r),i.registerLayout(a)},36938:function(t,e,n){var i=n(18993),r=n(7357),a=n(69008),o=n(22889).wrapTreePathInfo;function s(t){this.group=new i.Group,t.add(this.group)}function l(t,e,n,i,r,a){var o=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!a&&o.splice(2,0,[t+n+5,e+i/2]),!r&&o.push([t,e+i/2]),o}function u(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&o(n,e)}}s.prototype={constructor:s,render:function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&n){var s=a.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,s,l,i),r.positionElement(o,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),a=n.getTextRect(r),o=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:i,text:r,width:o})}},_renderContent:function(t,e,n,o,s){for(var c=0,h=e.emptyItemWidth,d=t.get("breadcrumb.height"),p=r.getAvailableSize(e.pos,e.box),f=e.totalWidth,g=e.renderList,m=g.length-1;m>=0;m--){var v=g[m],y=v.node,x=v.width,_=v.text;f>p.width&&(f-=x-h,x=h,_=null);var b=new i.Polygon({shape:{points:l(c,0,x,d,m===g.length-1,0===m)},style:a.defaults(n.getItemStyle(),{lineJoin:"bevel",text:_,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:a.curry(s,y)});this.group.add(b),u(b,t,y),c+=x+8}},remove:function(){this.group.removeAll()}};var c=s;t.exports=c},49080:function(t,e,n){var i=n(69008),r=n(38645),a=n(54327),o=n(24040),s=n(17010),l=s.encodeHTML,u=s.addCommas,c=n(22889).wrapTreePathInfo,h=r.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:"▶",zoomToNodeRatio:.1024,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(t,e){var n={name:t.name,children:t.data};d(n);var r=t.levels||[];r=t.levels=function(t,e){var n,r=e.get("color");if(!r)return;if(t=t||[],i.each(t,(function(t){var e=new o(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)})),!n){(t[0]||(t[0]={})).color=r.slice()}return t}(r,e);var s=i.map(r||[],(function(t){return new o(t,this,e)}),this),l=a.createTree(n,this,null,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}));return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),r=i.isArray(n)?u(n[0]):u(n),a=e.getName(t);return l(a+": "+r)},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},i.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=i.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function d(t){var e=0;i.each(t.children,(function(t){d(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}t.exports=h},61511:function(t,e,n){var i=n(3096),r=n(69008),a=n(18993),o=n(90515),s=n(22889),l=n(36938),u=n(38515),c=n(9806),h=n(26237),d=n(77550),p=n(76282),f=n(17010).windowOpen,g=r.bind,m=a.Group,v=a.Rect,y=r.each,x=["label"],_=["emphasis","label"],b=["upperLabel"],w=["emphasis","upperLabel"],S=p([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M=function(t){var e=S(t);return e.stroke=e.fill=e.lineWidth=null,e},I=i.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,i){var a=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(r.indexOf(a,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=s.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],t),l=i&&i.type,u=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===l&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(u),f=this._doRender(p,t,d);c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?f.renderFinally():this._doAnimation(p,f,t,d),this._resetController(n),this._renderBreadcrumb(t,n,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,a=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]},u=this._storage,c=[],h=r.curry(T,e,l,u,n,s,c);!function t(e,n,i,a,s){a?(n=e,y(e,(function(t,e){!t.isRemoved()&&u(e,e)}))):new o(n,e,l,l).add(u).update(u).remove(r.curry(u,null)).execute();function l(t){return t.getId()}function u(r,o){var l=null!=r?e[r]:null,u=null!=o?n[o]:null,c=h(l,u,i,s);c&&t(l&&l.viewChildren||[],u&&u.viewChildren||[],c,a,s+1)}}(i.root?[i.root]:[],a&&a.root?[a.root]:[],t,i===a||!a,0);var d=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&y(t,(function(t,n){var i=e[n];y(t,(function(t){t&&(i.push(t),t.__tmWillDelete=1)}))})),e}(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:function(){y(d,(function(t){y(t,(function(t){t.parent&&t.parent.remove(t)}))})),y(c,(function(t){t.invisible=!0,t.dirty()}))}}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var a=n.get("animationDurationUpdate"),o=n.get("animationEasing"),s=d.createWrap();y(e.willDeleteEls,(function(t,e){y(t,(function(t,n){if(!t.invisible){var r,l=t.parent;if(i&&"drillDown"===i.direction)r=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,a,o)}}))})),y(this._storage,(function(t,n){y(t,(function(t,i){var l=e.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,a,o))}))}),this),this._state="animating",s.done(g((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new u(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var n=new c(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var a=new c(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;e-=o.x,n-=o.y;var s=h.create();h.translate(s,s,[-e,-n]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),a=r.get("link",!0),o=r.get("target",!0)||"blank";a&&f(a,o)}}}}}),this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(t,e,n.node,g((function(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n}});function T(t,e,n,i,o,s,l,u,c,h){if(l){var d=l.getLayout(),p=t.getData();if(p.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var f=d.width,g=d.height,y=d.borderWidth,I=d.invisible,T=l.getRawIndex(),C=u&&u.getRawIndex(),D=l.viewChildren,L=d.upperHeight,P=D&&D.length,k=l.getModel("itemStyle"),O=l.getModel("emphasis.itemStyle"),E=F("nodeGroup",m);if(E){if(c.add(E),E.attr("position",[d.x||0,d.y||0]),E.__tmNodeWidth=f,E.__tmNodeHeight=g,d.isAboveViewRoot)return E;var R=l.getModel(),N=F("background",v,h,1);if(N&&function(e,n,i){if(n.dataIndex=l.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:g}),I)B(n);else{n.invisible=!1;var r=l.getVisual("borderColor",!0),o=O.get("borderColor"),s=M(k);s.fill=r;var u=S(O);if(u.fill=o,i){var c=f-2*y;V(s,u,r,c,L,{x:y,y:0,width:c,height:L})}else s.text=u.text=null;n.setStyle(s),a.setElementHoverStyle(n,u)}e.add(n)}(E,N,P&&d.upperLabelHeight),P)a.isHighDownDispatcher(E)&&a.setAsHighDownDispatcher(E,!1),N&&(a.setAsHighDownDispatcher(N,!0),p.setItemGraphicEl(l.dataIndex,N));else{var z=F("content",v,h,2);z&&function(e,n){n.dataIndex=l.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(f-2*y,0),r=Math.max(g-2*y,0);if(n.culling=!0,n.setShape({x:y,y:y,width:i,height:r}),I)B(n);else{n.invisible=!1;var o=l.getVisual("color",!0),s=M(k);s.fill=o;var u=S(O);V(s,u,o,i,r),n.setStyle(s),a.setElementHoverStyle(n,u)}e.add(n)}(E,z),N&&a.isHighDownDispatcher(N)&&a.setAsHighDownDispatcher(N,!1),a.setAsHighDownDispatcher(E,!0),p.setItemGraphicEl(l.dataIndex,E)}return E}}}function B(t){!t.invisible&&s.push(t)}function V(e,n,i,o,s,u){var c=R.get("name"),h=R.getModel(u?b:x),p=R.getModel(u?w:_),f=h.getShallow("show");a.setLabelStyle(e,n,h,p,{defaultText:f?c:null,autoColor:i,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),G(e,u,d),G(n,u,d),u&&(e.textRect=r.clone(u)),e.truncate=f&&h.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function G(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+r:r}}function F(t,a,s,u){var c=null!=C&&n[t][C],h=o[t];return c?(n[t][C]=null,function(t,e,n){var i=t[T]={};i.old="nodeGroup"===n?e.position.slice():r.extend({},e.shape)}(h,c,t)):I||((c=new a({z:A(s,u)})).__tmDepth=s,c.__tmStorageName=t,function(t,e,n){var r=t[T]={},a=l.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,u=0,c=o.background[a.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,u=c.old.height),r.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}r.fadein="nodeGroup"!==n}(h,0,t)),e[t][T]=c}}function A(t,e){var n=10*t+e;return(n-1)/n}t.exports=I},35260:function(t,e,n){for(var i=n(3096),r=n(22889),a=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;ss&&(c=s),o=a}cs[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,s,l);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,i,r){if(!i)return n;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===i?o-l-1:l].getValue();u/n*er&&(r=i));var l=t.area*t.area,u=e*e*n;return l?c(u*r/l,l/(u*a)):1/0}function b(t,e,n,i,r){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],d=e?t.area/e:0;(r||d>n[l[o]])&&(d=n[l[o]]);for(var p=0,f=t.length;pc[1]&&(c[1]=u);var h=e.get("colorMappingBy"),p={type:s.name,dataExtent:c,visual:s.range};"color"!==p.type||"index"!==h&&"id"!==h?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new i(p);return f.__drColorMappingBy=h,f}(0,p,f,0,v,_);a.each(_,(function(t,e){if(t.depth>=l.length||t===l[t.depth]){var i=function(t,e,n,i,r,o){var s=a.extend({},e);if(r){var l=r.type,u="color"===l&&r.__drColorMappingBy,c="index"===u?i:"id"===u?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));s[l]=r.mapValueToVisual(c)}return s}(p,v,t,e,b,h);u(t,i,n,o,l,h)}}))}else g=c(v),t.setVisual("color",g)}}function c(t){var e=h(t,"color");if(e){var n=h(t,"colorAlpha"),i=h(t,"colorSaturation");return i&&(e=r.modifyHSL(e,null,null,i)),n&&(e=r.modifyAlpha(e,n)),e}}function h(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function d(t,e){var n=t.get(e);return o(n)&&n.length?{name:e,range:n}:null}t.exports=l},2546:function(t,e,n){n(49900),n(33e3)},2849:function(t,e,n){n(75089),n(8698)},33e3:function(t,e,n){var i=n(69008),r=n(18993),a=n(24040),o=n(68089),s=n(93570),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function c(t){return t.getRadiusAxis().inverse?0:1}function h(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var d=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,a=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=i.map(n.getViewLabels(),(function(t){return(t=i.clone(t)).coord=n.dataToCoord(t.tickValue),t}));h(u),h(o),i.each(l,(function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,o,s,a,u)}),this)}},_axisLine:function(t,e,n,i,a){var o,s=t.getModel("axisLine.lineStyle"),l=c(e),u=l?0:1;(o=0===a[u]?new r.Circle({shape:{cx:e.cx,cy:e.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new r.Ring({shape:{cx:e.cx,cy:e.cy,r:a[l],r0:a[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,a,o){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=o[c(e)],d=i.map(n,(function(t){return new r.Line({shape:u(e,[h,h+l],t.coord)})}));this.group.add(r.mergePath(d,{style:i.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,n,a,o){if(a.length){for(var s=t.getModel("axisTick"),l=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=o[c(e)],p=[],f=0;fv?"left":"right",_=Math.abs(m[1]-y)/g<.3?"middle":m[1]>y?"top":"bottom";h&&h[u]&&h[u].textStyle&&(o=new a(h[u].textStyle,d,d.ecModel));var b=new r.Text({silent:s.isLabelSilent(t)});this.group.add(b),r.setTextStyle(b.style,o,{x:m[0],y:m[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=s.makeAxisEventDataBase(t),b.eventData.targetType="axisLabel",b.eventData.value=n.rawLabel)}),this)},_splitLine:function(t,e,n,a,o){var s=t.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var h=[],d=0;dg[1]?-1:1,v=["start"===s?g[0]-m*f:"end"===s?g[1]+m*f:(g[0]+g[1])/2,T(s)?t.labelOffset+c*f:0],x=e.get("nameRotate");null!=x&&(x=x*y/180),T(s)?i=w(t.rotation,null!=x?x:t.rotation,c):(i=function(t,e,n,i){var r,a,o=p(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;d(o-y/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*y)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*y&&o>y/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:a}}(t,s,x||0,g),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var _=h.getFont(),M=e.get("nameTruncate",!0)||{},I=M.ellipsis,A=r(t.nameTruncateMaxWidth,M.maxWidth,a),C=null!=I&&null!=A?l.truncateText(n,A,_,I,{minChar:2,placeholder:M.placeholder}):n,D=e.get("tooltip",!0),L=e.mainType,P={componentType:L,name:n,$vars:["name"]};P[L+"Index"]=e.componentIndex;var k=new u.Text({anid:"name",__fullText:n,__truncatedText:C,position:v,rotation:i.rotation,silent:S(e),z2:1,tooltip:D&&D.show?o({content:n,formatter:function(){return n},formatterParams:P},D):null});u.setTextStyle(k.style,h,{text:C,textFont:_,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||i.textAlign,textVerticalAlign:h.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(k.eventData=b(e),k.eventData.targetType="axisName",k.eventData.name=n),this._dumbGroup.add(k),k.updateTransform(),this.group.add(k),k.decomposeTransform()}}},b=x.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},w=x.innerTextLayout=function(t,e,n){var i,r,a=p(e-t);return d(a)?(r=n>0?"top":"bottom",i="center"):d(a-y)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}};var S=x.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function M(t){t&&(t.ignore=!0)}function I(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var a=g.identity([]);return g.rotate(a,a,-t.rotation),i.applyTransform(g.mul([],a,t.getLocalTransform())),r.applyTransform(g.mul([],a,e.getLocalTransform())),i.intersect(r)}}function T(t){return"middle"===t||"center"===t}function A(t,e,n,i,r){for(var a=[],o=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},37874:function(t,e,n){var i=n(69008),r=n(77305),a=n(18993),o=n(9862),s=n(92462),l=n(83209),u=(0,n(90830).makeInner)(),c=i.clone,h=i.bind;function d(){}function p(t,e,n,i){f(u(n).lastProp,i)||(u(n).lastProp=i,e?a.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function f(t,e){if(i.isObject(t)&&i.isObject(e)){var n=!0;return i.each(e,(function(e,i){n=n&&f(t[i],e)})),!!n}return t===e}function g(t,e){t[e.get("label.show")?"show":"hide"]()}function m(t){return{position:t.position.slice(),rotation:t.rotation||0}}function v(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}d.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,t,e,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=i.curry(p,e,d);this.updatePointerEl(l,c,f,e),this.updateLabelEl(l,c,f,e)}else l=this._group=new a.Group,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),n.getZr().add(l);v(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=u(t).pointerEl=new a[r.type](c(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=u(t).labelEl=new a.Rect(c(e.label));t.add(r),g(r,i)}},updatePointerEl:function(t,e,n){var i=u(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=u(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),g(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,u=n.getModel("handle"),c=n.get("status");if(!u.get("show")||!c||"hide"===c)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),r.add(o)),v(o,n,!1);o.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=u.get("size");i.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){p(this._axisPointerModel,!e&&this._moveAnimation,this._handle,m(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(m(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(m(i)),u(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},d.prototype.constructor=d,r.enableClassExtend(d);var y=d;t.exports=y},77318:function(t,e,n){var i=n(37874),r=n(23263),a=n(84106),o=n(68089),s=i.extend({makeElOption:function(t,e,n,i,o){var s=n.axis,c=s.grid,h=i.get("type"),d=l(c,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var f=r.buildElStyle(i),g=u[h](s,p,d);g.style=f,t.graphicKey=g.type,t.pointer=g}var m=a.layout(c.model,n);r.buildCartesianSingleLabelElOption(e,t,m,n,i,o)},getHandleTransform:function(t,e,n){var i=a.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(o[1],c[u]),c[u]=Math.max(o[0],c[u]);var h=(s[1]+s[0])/2,d=[h,h];d[u]=c[u];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}}});function l(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var u={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:r.makeLineShape([e,n[0]],[e,n[1]],c(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,a],c(t))}}};function c(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;t.exports=h},32641:function(t,e,n){var i=n(17010),r=n(37874),a=n(18993),o=n(23263),s=n(26237),l=n(93570),u=n(68089),c=r.extend({makeElOption:function(t,e,n,r,u){var c=n.axis;"angle"===c.dim&&(this.animationThreshold=Math.PI/18);var d,p=c.polar,f=p.getOtherAxis(c).getExtent();d=c["dataTo"+i.capitalFirst(c.dim)](e);var g=r.get("type");if(g&&"none"!==g){var m=o.buildElStyle(r),v=h[g](c,p,d,f,m);v.style=m,t.graphicKey=v.type,t.pointer=v}var y=function(t,e,n,i,r){var o=e.axis,u=o.dataToCoord(t),c=i.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,p,f=i.getRadiusAxis().getExtent();if("radius"===o.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[i.cx,i.cy]),h=a.applyTransform([u,-r],g);var m=e.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];h=i.coordToPoint([y+r,u]);var x=i.cx,_=i.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",p=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:p}}(e,n,0,p,r.get("label.margin"));o.buildLabelElOption(t,n,r,u,y)}});var h={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:o.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var d=c;t.exports=d},9242:function(t,e,n){var i=n(37874),r=n(23263),a=n(76203),o=n(68089),s=["x","y"],l=["width","height"],u=i.extend({makeElOption:function(t,e,n,i,o){var s=n.axis,l=s.coordinateSystem,u=d(l,1-h(s)),p=l.dataToPoint(e)[0],f=i.get("type");if(f&&"none"!==f){var g=r.buildElStyle(i),m=c[f](s,p,u);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=a.layout(n);r.buildCartesianSingleLabelElOption(e,t,v,n,i,o)},getHandleTransform:function(t,e,n){var i=a.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,a=r.coordinateSystem,o=h(r),s=d(a,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=d(a,1-o),c=(u[1]+u[0])/2,p=[c,c];return p[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:r.makeLineShape([e,n[0]],[e,n[1]],h(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,a],h(t))}}};function h(t){return t.isHorizontal()?0:1}function d(t,e){var n=t.getRect();return[n[s[e]],n[s[e]]+n[l[e]]]}o.registerAxisPointerClass("SingleAxisPointer",u);var p=u;t.exports=p},15110:function(t,e,n){var i=n(69008),r=n(90830).makeInner,a=n(9862),o=n(65881),s=i.each,l=i.curry,u=r();function c(t,e,n,r,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var l=function(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,l=-1;return s(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,n);h=p.dataIndices,c=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=o&&((g=0&&l<0)&&(o=g,l=f,r=c,a.length=0),s(h,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}(e,t),u=l.payloadBatch,c=l.snapToValue;u[0]&&null==a.seriesIndex&&i.extend(a,u[0]),!r&&t.snap&&o.containData(c)&&null!=c&&(e=c),n.showPointer(t,e,u,a),n.showTooltip(t,l,c)}else n.showPointer(t,e)}function h(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function d(t,e,n,i){var r=n.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var u=e.coordSys.model,c=a.makeKey(u),h=t.map[c];h||(h=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function p(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function f(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,n){var r=t.currTrigger,a=[t.x,t.y],g=t,m=t.dispatchAction||i.bind(n.dispatchAction,n),v=e.getComponent("axisPointer").coordSysAxesInfo;if(v){f(a)&&(a=o({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var y=f(a),x=g.axesInfo,_=v.axesInfo,b="leave"===r||f(a),w={},S={},M={list:[],map:{}},I={showPointer:l(h,S),showTooltip:l(d,M)};s(v.coordSysMap,(function(t,e){var n=y||t.containPoint(a);s(v.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(x,t);if(!b&&n&&(!x||r)){var o=r&&r.value;null!=o||y||(o=i.pointToData(a)),null!=o&&c(t,o,I,!1,w)}}))}));var T={};return s(_,(function(t,e){var n=t.linkGroup;n&&!S[e]&&s(n.axesInfo,(function(e,i){var r=S[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,p(e),p(t)))),T[t.key]=a}}))})),s(T,(function(t,e){c(_[e],t,I,!0,w)})),function(t,e,n){var i=n.axesInfo=[];s(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(S,_,w),function(t,e,n,i){if(f(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(M,a,t,m),function(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",o=u(r)[a]||{},l=u(r)[a]={};s(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&s(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;l[e]=t}))}));var c=[],h=[];i.each(o,(function(t,e){!l[e]&&h.push(t)})),i.each(l,(function(t,e){!o[e]&&c.push(t)})),h.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),c.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}(_,0,n),w}}},65881:function(t,e,n){var i=n(69008),r=n(90830);t.exports=function(t,e){var n,a=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var s=n.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)a=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)a=c.dataToPoint(s.getValues(i.map(c.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),a=[h.x+h.width/2,h.y+h.height/2]}return{point:a,el:u}}},46243:function(t,e,n){var i=n(69008),r=n(12973),a=(0,n(90830).makeInner)(),o=i.each;function s(t,e,n){t.handler("leave",null,n)}function l(t,e,n,i){e.handler(t,n,i)}e.register=function(t,e,n){if(!r.node){var u=e.getZr();a(u).records||(a(u).records={}),function(t,e){if(a(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);o(a(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}a(t).initialized=!0,n("click",i.curry(l,"click")),n("mousemove",i.curry(l,"mousemove")),n("globalout",s)}(u,e),(a(u).records[t]||(a(u).records[t]={})).handler=n}},e.unregister=function(t,e){if(!r.node){var n=e.getZr();(a(n).records||{})[t]&&(a(n).records[t]=null)}}},9862:function(t,e,n){var i=n(69008),r=n(24040),a=i.each,o=i.curry;function s(t,e){return"all"===t||i.isArray(t)&&i.indexOf(t,e)>=0||t===e}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[c(t)]}function u(t){return!!t.get("handle.show")}function c(t){return t.type+"||"+t.id}e.collect=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var l=e.getComponent("tooltip"),h=e.getComponent("axisPointer"),d=h.get("link",!0)||[],p=[];a(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var f=c(n.model),g=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=n;var m=n.model.getModel("tooltip",l);if(a(n.getAxes(),o(_,!1,null)),n.getTooltipAxes&&l&&m.get("show")){var v="axis"===m.get("trigger"),y="cross"===m.get("axisPointer.type"),x=n.getTooltipAxes(m.get("axisPointer.axis"));(v||y)&&a(x.baseAxes,o(_,!y||"cross",v)),y&&a(x.otherAxes,o(_,"cross",!1))}}function _(o,l,f){var v=f.model.getModel("axisPointer",h),y=v.get("show");if(y&&("auto"!==y||o||u(v))){null==l&&(l=v.get("triggerTooltip")),v=o?function(t,e,n,o,s,l){var u=e.getModel("axisPointer"),c={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){c[t]=i.clone(u.get(t))})),c.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=u.get("label.show");if(h.show=null==d||d,!l){var p=c.lineStyle=u.get("crossStyle");p&&i.defaults(h,p.textStyle)}}return t.model.getModel("axisPointer",new r(c,n,o))}(f,m,h,e,o,l):v;var x=v.get("snap"),_=c(f.model),b=l||x||"category"===f.type,w=t.axesInfo[_]={key:_,axis:f,coordSys:n,axisPointerModel:v,triggerTooltip:l,involveSeries:b,snap:x,useHandle:u(v),seriesModels:[]};g[_]=w,t.seriesInvolved|=b;var S=function(t,e){for(var n=e.model,i=e.dim,r=0;rc[1]&&c.reverse(),(null==o||o>c[1])&&(o=c[1]),oe[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&x(e)}};function x(t){return new a(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}e.layoutCovers=f},11550:function(t,e,n){n(29933),n(66619),n(62336)},62336:function(t,e,n){var i=n(3096),r=n(69008),a=n(18993),o=n(17010),s=n(86957),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,o,i),this._renderWeekText(t,a,o,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=e.start.time;l<=e.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,c=new a.Rect({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:r});n.add(c)}},_renderLines:function(t,e,n,i){var r=this,a=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new a.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],a=0;a<7;a++){var o=i.getNextNDay(e.time,a),s=i.dataToRect([o.time],!1);r[2*o.day]=s.tl,r[2*o.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var a=["center","bottom"];"bottom"===i?(e[1]+=r,a=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,a=["center","top"]):e[1]-=r;var o=0;return"left"!==i&&"right"!==i||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,h="horizontal"===n?0:1,d={top:[u,l[h][1]],bottom:[u,l[1-h][1]],left:[l[1-h][0],c],right:[l[h][0],c]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},m=this._formatterLabel(f,g),v=new a.Text({z2:30});a.setTextStyle(v.style,r,{text:m}),v.attr(this._yearTextPositionControl(v,d[s],n,s,o)),i.add(v)}},_monthTextPositionControl:function(t,e,n,i,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(a="center"),"start"===i&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),s=i.get("margin"),u=i.get("position"),c=i.get("align"),h=[this._tlpoints,this._blpoints];r.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===e?0:1;s="start"===u?-s:s;for(var f="center"===c,g=0;gi[1]&&(i[1]=e[1])}))})),i[1]0?0:NaN);var o=n.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:r&&(e[1]=a>0?a-1:NaN);n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,i),i}(this,this._dimName,e),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;s(["min","max"],(function(a){var o=n.get(a+"Span"),s=n.get(a+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?o=r.linearMap(i[0]+s,i,[0,100],!0):null!=o&&(s=r.linearMap(o,[0,100],i,!0)-i[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=s}))}(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,c(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,c(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&s(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,o,s=0;sa[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(n=!0),h&&(r=!0)}return o&&n&&r})):s(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}})),s(i,(function(t){e.setApproximateExtent(a,t)})))}))}}};var h=u;t.exports=h},69391:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(69008),a=n(12973),o=n(90830),s=n(14531),l=n(53126),u=r.each,c=s.eachAxisDim;function h(t){var e={};return u(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function d(t,e){var n=t._rangePropMode,i=t.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(t,r){var a=null!=e[t[0]],o=null!=e[t[1]];a&&!o?n[r]="percent":!a&&o?n[r]="value":i?n[r]=i[r]:a&&(n[r]="percent")}))}var p=i.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(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=h(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=h(t);r.merge(this.option,t,!0),r.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;a.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),d(this,t);var n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,i,r){var a=this.dependentModels[e.axis][n],o=a.__dzAxisProxy||(a.__dzAxisProxy=new l(e.name,n,this,r));t[e.name+"_"+n]=o}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();c((function(e){var n=e.axisIndex;t[n]=o.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;c((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var a="vertical"===e?"y":"x";i[a+"Axis"].length?(n[a+"AxisIndex"]=[0],t=!1):u(i.singleAxis,(function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)}))}t&&c((function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var a=0,o=r.length;a0?100:20}},getFirstTargetAxisModel:function(){var t;return c((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;c((function(i){u(this.get(i.axisIndex),(function(r){t.call(e,i,r,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),d(this,t)},setCalculatedRange:function(t){var e=this.option;u(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});t.exports=p},91615:function(t,e,n){var i=n(36851).extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis((function(t,i){var r=e.getComponent(t.axis,i);if(r){var a=r.getCoordSysModel();a&&function(t,e,n,i){for(var r,a=0;a0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-u)*c+u,o[1]=(o[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return a(0,o,[0,100],0,d.minSpan,d.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:c((function(t,e,n,i,r,a){var o=h[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:c((function(t,e,n,i,r,a){return h[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,n).signal*(t[1]-t[0])*a.scrollDelta}))};function c(t){return function(e,n,i,r){var o=this._range,s=o.slice(),l=e.axisModels[0];if(l){var u=t(s,l,e,n,i,r);return a(u,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},d=l;t.exports=d},1445:function(t,e,n){var i=n(69391).extend({type:"dataZoom.select"});t.exports=i},63124:function(t,e,n){var i=n(91615).extend({type:"dataZoom.select"});t.exports=i},23291:function(t,e,n){var i=n(69391).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"}}});t.exports=i},32079:function(t,e,n){var i=n(69008),r=n(92462),a=n(18993),o=n(83209),s=n(91615),l=n(86957),u=n(7357),c=n(98810),h=a.Rect,d=l.linearMap,p=l.asc,f=i.bind,g=i.each,m="horizontal",v="vertical",y=["line","bar","candlestick","scatter"],x=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){x.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){x.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new a.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},a=this._orient===m?{right:r.width-n.x-n.width,top:r.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=u.getLayoutParams(t.option);i.each(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=a[t])}));var s=u.getLayoutRect(o,r,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===v&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==m||r?n===m&&r?{scale:o?[-1,1]:[-1,-1]}:n!==v||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,r=n.getRawData(),o=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=o){var s=r.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,e[1]],h=[0,e[0]],p=[[e[0],0],[0,0]],f=[],g=h[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([o],(function(t,e){if(v>0&&e%v)m+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:d(t,s,c,!0);n&&!u&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&u&&(p.push([m,0]),f.push([m,0])),p.push([m,i]),f.push([m,i]),m+=g,u=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new a.Polygon({shape:{points:p},style:i.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new a.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(a,o){var s=t.getAxisProxy(a.name,o).getTargetSeriesModels();i.each(s,(function(t){if(!(n||!0!==e&&i.indexOf(y,t.get("type"))<0)){var s,l=r.getComponent(a.axis,o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[a.name],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),n={thisAxis:l,series:t,thisDim:a.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(t.filler=new h({draggable:!0,cursor:_(this._orient),drift:f(this._onDragMove,this,"all"),ondragstart:f(this._showDataInfo,this,!0),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),i.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(t){var r=a.createIcon(o.get("handleIcon"),{cursor:_(this._orient),draggable:!0,drift:f(this._onDragMove,this,t),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=r.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var u=o.get("handleColor");null!=u&&(r.style.fill=u),i.add(e[t]=r);var c=o.textStyleModel;this.group.add(n[t]=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:c.getTextColor(),textFont:c.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];c(e,i,r,n.get("zoomLock")?"all":t,null!=a.minSpan?d(a.minSpan,o,r,!0):null,null!=a.maxSpan?d(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=p([d(i[0],r,o,!0),d(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=p(n.slice()),r=this._size;g([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scale:[a/2,a/2],position:[n[t],r[1]/2-a/2]})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=p(this._handleEnds.slice());function d(t){var e=a.getTransform(n.handles[t].parent,this.group),s=a.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+5,u=a.applyTransform([h[t]+(0===t?-l:l),this._size[1]/2],e);i[t].setStyle({x:u[0],y:u[1],textVerticalAlign:r===m?"middle":s,textAlign:r===m?s:"center",text:o[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),a=n.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return i.isFunction(r)?r(t,o):i.isString(r)?r.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n,i){this._dragging=!0,r.stop(i.event);var o=this._displayables.barGroup.getLocalTransform(),s=a.applyTransform([e,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}})),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function _(t){return"vertical"===t?"ns-resize":"ew-resize"}var b=x;t.exports=b},51323:function(t,e,n){var i=n(3096),r=n(69008),a=n(14531);i.registerAction("dataZoom",(function(t,e){var n=a.createLinkedNodesFinder(r.bind(e.eachComponent,e,"dataZoom"),a.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),i=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){i.push.apply(i,n(t).nodes)})),r.each(i,(function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},77069:function(t,e,n){var i=n(3096),r=n(69008),a=r.createHashMap,o=r.each;i.registerProcessor({getTargetSeries:function(t){var e=a();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){var r=i.getAxisProxy(t.name,n);o(r.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).reset(i,e)})),t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).filterData(i,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}))}})},14531:function(t,e,n){var i=n(69008),r=n(17010),a=["cartesian2d","polar","singleAxis"];function o(t,e){t=t.slice();var n=i.map(t,r.capitalFirst);e=(e||[]).slice();var a=i.map(e,r.capitalFirst);return function(r,o){i.each(t,(function(t,i){for(var s={name:t,capital:n[i]},l=0;l=0},e.createNameEach=o,e.eachAxisDim=s,e.createLinkedNodesFinder=function(t,e,n){return function(a){var o,s={nodes:[],records:{}};if(e((function(t){s.records[t.name]={}})),!a)return s;r(a,s);do{o=!1,t(l)}while(o);function l(t){!function(t,e){return i.indexOf(e.nodes,t)>=0}(t,s)&&function(t,r){var a=!1;return e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]&&(a=!0)}))})),a}(t,s)&&(r(t,s),o=!0)}return s};function r(t,r){r.nodes.push(t),e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]=!0}))}))}}},8338:function(t,e,n){var i=n(69008).each,r="\0_ec_hist_store";function a(t){var e=t[r];return e||(e=t[r]=[{}]),e}e.push=function(t,e){var n=a(t);i(e,(function(e,i){for(var r=n.length-1;r>=0;r--){if(n[r][i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var o=a.getPercentRange();n[0][i]={dataZoomId:i,start:o[0],end:o[1]}}}})),n.push(e)},e.pop=function(t){var e=a(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return i(n,(function(t,n){for(var i=e.length-1;i>=0;i--){if(t=e[i][n]){r[n]=t;break}}})),r},e.clear=function(t){t[r]=null},e.count=function(t){return a(t).length}},13185:function(t,e,n){var i=n(69008),r=n(38515),a=n(83209),o="\0_ec_dataZoom_roams";function s(t){var e=t.getZr();return e[o]||(e[o]={})}function l(t){i.each(t,(function(e,n){e.count||(e.controller.dispose(),delete t[n])}))}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}e.register=function(t,e){var n=s(t),o=e.dataZoomId,c=e.coordId;i.each(n,(function(t,n){var r=t.dataZoomInfos;r[o]&&i.indexOf(e.allCoordIds,c)<0&&(delete r[o],t.count--)})),l(n);var h=n[c];h||((h=n[c]={coordId:c,dataZoomInfos:{},count:0}).controller=function(t,e){var n=new r(t.getZr());return i.each(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(n){var r=[];i.each(e.dataZoomInfos,(function(i){if(n.isAvailableBehavior(i.dataZoomModel.option)){var a=(i.getRange||{})[t],o=a&&a(e.controller,n);!i.dataZoomModel.get("disabled",!0)&&o&&r.push({dataZoomId:i.dataZoomId,start:o[0],end:o[1]})}})),r.length&&e.dispatchAction(r)}))})),n}(t,h),h.dispatchAction=i.curry(u,t)),!h.dataZoomInfos[o]&&h.count++,h.dataZoomInfos[o]=e;var d,p,f,g,m,v=(d=h.dataZoomInfos,f="type_",g={type_true:2,type_move:1,type_false:0,type_undefined:-1},m=!0,i.each(d,(function(t){var e=t.dataZoomModel,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");g[f+n]>g[f+p]&&(p=n),m&=e.get("preventDefaultMouseMove",!0)})),{controlType:p,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!m}});h.controller.enable(v.controlType,v.opt),h.controller.setPointerChecker(e.containsPoint),a.createOrUpdate(h,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")},e.unregister=function(t,e){var n=s(t);i.each(n,(function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)})),l(n)},e.generateCoordId=function(t){return t.type+"\0_"+t.id}},35190:function(t,e,n){n(16172).registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},48328:function(t,e,n){n(35190),n(69391),n(91615),n(35187),n(79226),n(77069),n(51323)},20393:function(t,e,n){n(35190),n(69391),n(91615),n(1445),n(63124),n(77069),n(51323)},18427:function(t,e,n){n(35190),n(69391),n(91615),n(23291),n(32079),n(77069),n(51323)},72476:function(t,e,n){var i=n(16172),r=n(36851),a=n(67063).detectSourceFormat,o=n(8326).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),r.extend({type:"dataset"})},24514:function(t,e,n){var i=n(3096),r=n(69008);function a(t,e){e.update="updateView",i.registerAction(e,(function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var a=n.coordinateSystem;r.each(a.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}))})),{selected:i,name:e.name}}))}n(55550),n(91148),n(72621),n(37406),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},72621:function(t,e,n){var i=n(25344),r=n(3096).extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=r},2090:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(69008),a=n(90830),o=n(18993),s=n(7357),l=n(86957).parsePercent,u={path:null,compoundPath:null,group:o.Group,image:o.Image,text:o.Text};i.registerPreprocessor((function(t){var e=t.graphic;r.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var c=i.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,c.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,i=(e?n:t).elements,o=n.elements=e?[]:n.elements,l=[];this._flatten(i,l);var u=a.mappingToExists(o,l);a.makeIdAndName(u);var c=this._elOptionsToUpdate=[];r.each(u,(function(t,e){var n=t.option;n&&(c.push(n),function(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=r.extend({},n),a=t[e],o=n.$action||"merge";"merge"===o?a?(r.merge(a,i,!0),s.mergeLayoutParam(a,i,{ignoreSize:!0}),s.copyLayoutParams(n,a)):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&a&&(t[e]=null)}(o,e,n),function(t,e){if(!t)return;t.hv=e.hv=[p(e,["left","right"]),p(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0))}(o[e],n))}),this);for(var h=o.length-1;h>=0;h--)null==o[h]?o.splice(h,1):delete o[h].$action},_flatten:function(t,e,n){r.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function h(t,e,n,i){var r=n.type,a=new(u.hasOwnProperty(r)?u[r]:o.getShapeClass(r))(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function d(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){d(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function p(t,e){var n;return r.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}i.extendComponentView({type:"graphic",init:function(t,e){this._elMap=r.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;r.each(e,(function(e){var a=e.$action,o=e.id,l=n.get(o),u=e.parentId,c=null!=u?n.get(u):i,p=e.style;"text"===e.type&&p&&(e.hv&&e.hv[1]&&(p.textVerticalAlign=p.textBaseline=null),!p.hasOwnProperty("textFill")&&p.fill&&(p.textFill=p.fill),!p.hasOwnProperty("textStroke")&&p.stroke&&(p.textStroke=p.stroke));var f=function(t){return t=r.extend({},t),r.each(["id","parentId","$action","hv","bounding"].concat(s.LOCATION_PARAMS),(function(e){delete t[e]})),t}(e);a&&"merge"!==a?"replace"===a?(d(l,n),h(o,c,f,n)):"remove"===a&&d(l,n):l?l.attr(f):h(o,c,f,n);var g=n.get(o);g&&(g.__ecGraphicWidthOption=e.width,g.__ecGraphicHeightOption=e.height,function(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});i&&(i.info=t.info)}(g,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,a=e.getWidth(),o=e.getHeight(),u=0;u=0;u--){var d;c=n[u];if(d=r.get(c.id)){var p,f=(p=d.parent)===i?{width:a,height:o}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};s.positionElement(d,c,f,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){d(e,t)})),this._elMap=r.createHashMap()},dispose:function(){this._clear()}})},25957:function(t,e,n){n(47102),n(77318),n(84159)},47102:function(t,e,n){var i=n(3096),r=n(69008),a=n(18993);n(40753),n(2849),i.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},7430:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(37283),a=n(18993),o=n(80255),s=n(90515),l=i.curry,u=i.each,c=i.map,h=Math.min,d=Math.max,p=Math.pow,f="globalPan",g={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},y=0;function x(t){r.call(this),this._zr=t,this.group=new a.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+y++,this._handlers={},u(j,(function(t,e){this._handlers[e]=i.bind(t,this)}),this)}function _(t,e){var n=X[e.brushType].createCover(t,e);return n.__brushOption=e,S(n,e),t.group.add(n),n}function b(t,e){var n=I(e);return n.endCreating&&(n.endCreating(t,e),S(e,e.__brushOption)),e}function w(t,e){var n=e.__brushOption;I(e).updateCoverShape(t,e,n.range,n)}function S(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function M(t,e){I(e).updateCommon(t,e),w(t,e)}function I(t){return X[t.__brushOption.brushType]}function T(t,e,n){var i,r=t._panels;if(!r)return!0;var a=t._transform;return u(r,(function(t){t.isTargetByCursor(e,n,a)&&(i=t)})),i}function A(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function C(t){var e=t._covers,n=e.length;return u(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function D(t,e){var n=c(t._covers,(function(t){var e=t.__brushOption,n=i.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function L(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function P(t,e,n,i){var r=new a.Group;return r.add(new a.Rect({name:"main",style:R(n),silent:!0,draggable:!0,cursor:"move",drift:l(t,e,r,"nswe"),ondragend:l(D,e,{isEnd:!0})})),u(i,(function(n){r.add(new a.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(t,e,r,n),ondragend:l(D,e,{isEnd:!0})}))})),r}function k(t,e,n,i){var r=i.brushStyle.lineWidth||0,a=d(r,6),o=n[0][0],s=n[1][0],l=o-r/2,u=s-r/2,c=n[0][1],h=n[1][1],p=c-a+r/2,f=h-a+r/2,g=c-o,m=h-s,v=g+r,y=m+r;E(t,e,"main",o,s,g,m),i.transformable&&(E(t,e,"w",l,u,a,y),E(t,e,"e",p,u,a,y),E(t,e,"n",l,u,v,a),E(t,e,"s",l,f,v,a),E(t,e,"nw",l,u,a,a),E(t,e,"ne",p,u,a,a),E(t,e,"sw",l,f,a,a),E(t,e,"se",p,f,a,a))}function O(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(R(n)),r.attr({silent:!i,cursor:i?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=e.childOfName(n),a=z(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?m[a]+"-resize":null})}))}function E(t,e,n,i,r,a,o){var s,l,u,c,p,f=e.childOfName(n);f&&f.setShape((s=F(t,e,[[i,r],[i+a,r+o]]),l=h(s[0][0],s[1][0]),u=h(s[0][1],s[1][1]),c=d(s[0][0],s[1][0]),p=d(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:p-u}))}function R(t){return i.defaults({strokeNoScale:!0},t.brushStyle)}function N(t,e,n,i){var r=[h(t,n),h(e,i)],a=[d(t,n),d(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function z(t,e){if(e.length>1)return("e"===(n=[z(t,(e=e.split(""))[0]),z(t,e[1])])[0]||"w"===n[0])&&n.reverse(),n.join("");var n=a.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return a.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function B(t,e,n,i,r,a,o,s){var l=i.__brushOption,c=t(l.range),h=G(n,a,o);u(r.split(""),(function(t){var e=g[t];c[e[0]][e[1]]+=h[e[0]]})),l.range=e(N(c[0][0],c[1][0],c[0][1],c[1][1])),M(n,i),D(n,{isEnd:!1})}function V(t,e,n,i,r){var a=e.__brushOption.range,o=G(t,n,i);u(a,(function(t){t[0]+=o[0],t[1]+=o[1]})),M(t,e),D(t,{isEnd:!1})}function G(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function F(t,e,n){var r=A(t,e);return r&&!0!==r?r.clipPath(n,t._transform):i.clone(n)}function H(t){var e=t.event;e.preventDefault&&e.preventDefault()}function W(t,e,n){return t.childOfName("main").contain(e,n)}function U(t,e,n,r){var a,o=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1];return p(r*r+a*a,.5)>6}(t)||o){if(s&&!o){"single"===l.brushMode&&C(t);var u=i.clone(l);u.brushType=Z(u.brushType,s),u.panelId=!0===s?null:s.panelId,o=t._creatingCover=_(t,u),t._covers.push(o)}if(o){var c=X[Z(t._brushType,s)];o.__brushOption.range=c.getCreatingRange(F(t,o,t._track)),r&&(b(t,o),c.updateCommon(t,o)),w(t,o),a={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&T(t,e,n)&&C(t)&&(a={isEnd:r,removeOnClick:!0});return a}function Z(t,e){return"auto"===t?e.defaultBrushType:t}x.prototype={constructor:x,enableBrush:function(t){var e,n;return this._brushType&&(n=(e=this)._zr,o.release(n,f,e._uid),function(t,e){u(e,(function(e,n){t.off(n,e)}))}(n,e._handlers),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||o.take(n,f,t._uid);(function(t,e){u(e,(function(e,n){t.on(n,e)}))})(n,t._handlers),t._brushType=e.brushType,t._brushOption=i.merge(i.clone(v),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};i.each(t,(function(t){e[t.panelId]=i.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){u(this._covers,t,e)},updateCovers:function(t){t=i.map(t,(function(t){return i.merge(i.clone(v),t,!0)}));var e=this._covers,n=this._covers=[],r=this,a=this._creatingCover;return new s(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(l).update(l).remove((function(t){e[t]!==a&&r.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function l(i,o){var s=t[i];if(null!=o&&e[o]===a)n[i]=e[o];else{var l=n[i]=null!=o?(e[o].__brushOption=s,e[o]):b(r,_(r,s));M(r,l)}}},unmount:function(){return this.enableBrush(!1),C(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},i.mixin(x,r);var j={mousedown:function(t){if(this._dragging)Y(this,t);else if(!t.target||!t.target.draggable){H(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e)){var i=t._zr,r=t._covers,a=T(t,e,n);if(!t._dragging)for(var o=0;o=0)&&t(a,i,r)}))}var p=d.prototype;function f(t){return t[0]>t[1]&&t.reverse(),t}function g(t,e){return a.parseFinder(t,e,{includeMainTypes:h})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=x[t.brushType](0,n,e);t.__rangeOffset={offset:b[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}))},p.matchOutputRanges=function(t,e,n){s(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&i.each(r.coordSyses,(function(i){var r=x[t.brushType](1,i,t.range);n(t,r.values,i,e)}))}),this)},p.setInputRanges=function(t,e){s(t,(function(t){var n,i,r,a,o,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=x[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?b[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=S(n),a=S(i),o=[r[0]/a[0],r[1]/a[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}}),this)},p.makePanelOpts=function(t,e){return i.map(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:o.makeRectPanelClipPath(i),isTargetByCursor:o.makeRectIsTargetByCursor(i,t,n.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(i)}}))},p.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&l(i.coordSyses,e.coordinateSystem)>=0},p.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=g(e,t),r=0;r=0||l(r,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:y.grid,xAxisDeclared:u[t.id],yAxisDeclared:c[t.id]})})))},geo:function(t,e){s(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:y.geo})}))}},v=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],y={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(r.getTransform(t)),e}},x={lineX:u(_,0),lineY:u(_,1),rect:function(t,e,n){var i=e[c[t]]([n[0][0],n[1][0]]),r=e[c[t]]([n[0][1],n[1][1]]),a=[f([i[0],r[0]]),f([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:i.map(n,(function(n){var i=e[c[t]](n);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i})),xyMinMax:r}}};function _(t,e,n,r){var a=n.getAxis(["x","y"][t]),o=f(i.map([0,1],(function(t){return e?a.coordToData(a.toLocalCoord(r[t])):a.toGlobalCoord(a.dataToCoord(r[t]))}))),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}var b={lineX:u(w,0),lineY:u(w,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return i.map(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function w(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function S(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var M=d;t.exports=M},25344:function(t,e,n){var i=n(69008),r=n(38515),a=n(37419),o=n(18584).onIrrelevantElement,s=n(18993),l=n(11954),u=n(58744).getUID,c=n(74330);function h(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function d(t,e){e.eachChild((function(e){i.each(e.__regions,(function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")}))}))}function p(t,e){var n=new s.Group;this.uid=u("ec_map_draw"),this._controller=new r(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new s.Group),n.add(this._backgroundGroup=new s.Group)}p.prototype={constructor:p,draw:function(t,e,n,r,a){var o="geo"===t.mainType,l=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){l||e.getHostGeoModel()!==t||(l=e.getData())}));var u=t.coordinateSystem;this._updateBackground(u);var p,f=this._regionsGroup,g=this.group,m=u.getTransformInfo(),v=!f.childAt(0)||a;if(v)g.transform=m.roamTransform,g.decomposeTransform(),g.dirty();else{var y=new c;y.transform=m.roamTransform,y.decomposeTransform();var x={scale:y.scale,position:y.position};p=y.scale,s.updateProps(g,x,t)}var _=m.rawScale,b=m.rawPosition;f.removeAll();var w=["itemStyle"],S=["emphasis","itemStyle"],M=["label"],I=["emphasis","label"],T=i.createHashMap();i.each(u.regions,(function(e){var n=T.get(e.name)||T.set(e.name,new s.Group),r=new s.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(r);var a,u=(z=t.getRegionModel(e.name)||t).getModel(w),c=z.getModel(S),d=h(u),m=h(c),y=z.getModel(M),x=z.getModel(I);if(l){a=l.indexOfName(e.name);var A=l.getItemVisual(a,"color",!0);A&&(d.fill=A)}var C=function(t){return[t[0]*_[0]+b[0],t[1]*_[1]+b[1]]};i.each(e.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n=0)&&(O=t);var R=new s.Text({position:C(e.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(s.setLabelStyle(R.style,R.hoverStyle={},y,x,{labelFetcher:O,labelDataIndex:E,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!v){var N=[1/p[0],1/p[1]];s.updateProps(R,{scale:N},t)}n.add(R)}if(l)l.setItemGraphicEl(a,n);else{var z=t.getRegionModel(e.name);r.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:z&&z.option||{}}}(n.__regions||(n.__regions=[])).push(e),n.highDownSilentOnTouch=!!t.get("selectedMode"),s.setHoverStyle(n,m),f.add(n)})),this._updateController(t,e,n),function(t,e,n,r,a){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",(function(){t._mouseDownFlag=!0})),n.on("click",(function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=o.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:i.map(s.__regions,(function(t){return{name:t.name,from:a.uid}}))};l[e.mainType+"Id"]=e.id,r.dispatchAction(l),d(e,n)}}})))}(this,t,f,n,r),d(t,f)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&l.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&i.each(l.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,n){var r=t.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=r.getZoom(),s.enable(t.get("roam")||!1);var u=t.mainType;function c(){var e={type:"geoRoam",componentType:u};return e[u+"Id"]=t.id,e}s.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,a.updateViewOnPan(l,t.dx,t.dy),n.dispatchAction(i.extend(c(),{dx:t.dx,dy:t.dy}))}),this),s.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,a.updateViewOnZoom(l,t.scale,t.originX,t.originY),n.dispatchAction(i.extend(c(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),s.setPointerChecker((function(e,i,a){return r.getViewRectAfterRoam().contain(i,a)&&!o(e,n,t)}))}};var f=p;t.exports=f},38515:function(t,e,n){var i=n(69008),r=n(37283),a=n(92462),o=n(80255);function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=i.bind,n=e(l,this),a=e(u,this),o=e(c,this),s=e(h,this),p=e(d,this);r.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=i.defaults(i.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",a),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",p))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(t){if(!(a.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function u(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,s=e-i,l=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&a.stop(t.event),f(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:r,newX:e,newY:n})}}function c(t){a.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),n=g("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),a=t.offsetX,o=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;p(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:a,originY:o})}if(n){var l=Math.abs(i);p(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:o})}}}function d(t){o.isTaken(this._zr,"globalPan")||p(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function p(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(a.stop(i.event),f(t,e,n,i,r))}function f(t,e,n,r,a){a.isAvailableBehavior=i.bind(g,null,n,r),t.trigger(e,a)}function g(t,e,n){var r=n[t];return!t||r&&(!i.isString(r)||e.event[r+"Key"])}i.mixin(s,r);var m=s;t.exports=m},20691:function(t,e,n){var i=n(9806),r=n(18584).onIrrelevantElement,a=n(18993);function o(t){return i.create(t)}e.makeRectPanelClipPath=function(t){return t=o(t),function(e,n){return a.clipPointsByRect(e,t)}},e.makeLinearBrushOtherExtent=function(t,e){return t=o(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(r||0)]}},e.makeRectIsTargetByCursor=function(t,e,n){return t=o(t),function(i,a,o){return t.contain(a[0],a[1])&&!r(i,e,n)}}},18584:function(t,e){var n={axisPointer:1,tooltip:1,brush:1};e.onIrrelevantElement=function(t,e,i){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==i&&!n[r.mainType]&&a&&a.model!==i}},80255:function(t,e,n){var i=n(3096),r="\0_ec_interaction_mutex";function a(t){return t[r]||(t[r]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=function(t,e,n){a(t)[e]=n},e.release=function(t,e,n){var i=a(t);i[e]===n&&(i[e]=null)},e.isTaken=function(t,e){return!!a(t)[e]}},98449:function(t,e,n){var i=n(7357),r=i.getLayoutRect,a=i.box,o=i.positionElement,s=n(17010),l=n(18993);e.layout=function(t,e,n){var i=e.getBoxLayoutParams(),s=e.get("padding"),l={width:n.getWidth(),height:n.getHeight()},u=r(i,l,s);a(e.get("orient"),t,e.get("itemGap"),u.width,u.height),o(t,i,l,s)},e.makeBackground=function(t,e){var n=s.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new l.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}},37419:function(t,e){e.updateViewOnPan=function(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()},e.updateViewOnZoom=function(t,e,n,i){var r=t.target,a=t.zoomLimit,o=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,c=a.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,o[0]-=(n-o[0])*(h-1),o[1]-=(i-o[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}},78240:function(t,e,n){var i=n(69008),r={updateSelectedMap:function(t){this._targetList=i.isArray(t)?t.slice():[],this._selectTargetMap=i.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),i.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};t.exports=r},98810:function(t){function e(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function n(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=function(t,i,r,a,o,s){t=t||0;var l=r[1]-r[0];if(null!=o&&(o=n(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===a){var u=Math.abs(i[1]-i[0]);u=n(u,[0,l]),o=s=n(u,[o,s]),a=0}i[0]=n(i[0],r),i[1]=n(i[1],r);var c=e(i,a);i[a]+=t;var h=o||0,d=r.slice();c.sign<0?d[0]+=h:d[1]-=h,i[a]=n(i[a],d);var p=e(i,a);return null!=o&&(p.sign!==c.sign||p.spans&&(i[1-a]=i[a]+p.sign*s),i}},32314:function(t,e,n){var i=n(3096);n(80194),n(73120),n(71298);var r=n(19214),a=n(16172);i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,r),a.registerSubTypeDefaulter("legend",(function(){return"plain"}))},80194:function(t,e,n){var i=n(3096),r=n(69008),a=n(24040),o=n(90830).isNameSpecified,s=n(73315).legend.selector,l={all:{type:"all",title:r.clone(s.all)},inverse:{type:"inverse",title:r.clone(s.inverse)}},u=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),r.isArray(e)&&r.each(e,(function(t,n){r.isString(t)&&(t={type:t}),e[n]=r.merge(t,l[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},getOrient:function(){return"vertical"===this.get("orient")?{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}}}),c=u;t.exports=c},71298:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(69008),a=n(22868).createSymbol,o=n(18993),s=n(98449).makeBackground,l=n(7357),u=r.curry,c=r.each,h=o.Group,d=i.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new h),this._backgroundEl,this.group.add(this._selectorGroup=new h),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var a=t.get("align"),o=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===o?"right":"left");var u=t.get("selector",!0),c=t.get("selectorPosition",!0);!u||c&&"auto"!==c||(c="horizontal"===o?"end":"start"),this.renderInner(a,t,e,n,u,o,c);var h=t.getBoxLayoutParams(),d={width:n.getWidth(),height:n.getHeight()},p=t.get("padding"),f=l.getLayoutRect(h,d,p),g=this.layoutInner(t,a,f,i,u,c),m=l.getLayoutRect(r.defaults({width:g.width,height:g.height},h),d,p);this.group.attr("position",[m.x-g.x,m.y-g.y]),this.group.add(this._backgroundEl=s(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,i,a,o,s){var l=this.getContentGroup(),d=r.createHashMap(),p=e.get("selectedMode"),v=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&v.push(t.id)})),c(e.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=n.getSeriesByName(o)[0];if(!d.get(o))if(s){var c=s.getData(),y=c.getVisual("color"),x=c.getVisual("borderColor");"function"==typeof y&&(y=y(s.getDataParams(0))),"function"==typeof x&&(x=x(s.getDataParams(0)));var _=c.getVisual("legendSymbol")||"roundRect",b=c.getVisual("symbol");this._createItem(o,a,r,e,_,b,t,y,x,p).on("click",u(f,o,null,i,v)).on("mouseover",u(g,s.name,null,i,v)).on("mouseout",u(m,s.name,null,i,v)),d.set(o,!0)}else n.eachRawSeries((function(n){if(!d.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),c=s.getItemVisual(l,"color"),h=s.getItemVisual(l,"borderColor");this._createItem(o,a,r,e,"roundRect",null,t,c,h,p).on("click",u(f,null,o,i,v)).on("mouseover",u(g,null,o,i,v)).on("mouseout",u(m,null,o,i,v)),d.set(o,!0)}}),this)}else l.add(new h({newline:!0}))}),this),a&&this._createSelector(a,e,i,o,s)},_createSelector:function(t,e,n,i,r){var a=this.getSelectorGroup();c(t,(function(t){!function(t){var i=t.type,r=new o.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var s=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");o.setLabelStyle(r.style,r.hoverStyle={},s,l,{defaultText:t.title,isRectText:!1}),o.setHoverStyle(r)}(t)}))},_createItem:function(t,e,n,i,s,l,u,c,d,f){var g=i.get("itemWidth"),m=i.get("itemHeight"),v=i.get("inactiveColor"),y=i.get("inactiveBorderColor"),x=i.get("symbolKeepAspect"),_=i.getModel("itemStyle"),b=i.isSelected(t),w=new h,S=n.getModel("textStyle"),M=n.get("icon"),I=n.getModel("tooltip"),T=I.parentModel,A=a(s=M||s,0,0,g,m,b?c:v,null==x||x);if(w.add(p(A,s,_,d,y,b)),!M&&l&&(l!==s||"none"===l)){var C=.8*m;"none"===l&&(l="circle");var D=a(l,(g-C)/2,(m-C)/2,C,C,b?c:v,null==x||x);w.add(p(D,l,_,d,y,b))}var L="left"===u?g+5:-5,P=u,k=i.get("formatter"),O=t;"string"==typeof k&&k?O=k.replace("{name}",null!=t?t:""):"function"==typeof k&&(O=k(t)),w.add(new o.Text({style:o.setTextStyle({},S,{text:O,x:L,y:m/2,textFill:b?S.getTextColor():v,textAlign:P,textVerticalAlign:"middle"})}));var E=new o.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:I.get("show")?r.extend({content:t,formatter:T.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},I.option):null});return w.add(E),w.eachChild((function(t){t.silent=!0})),E.silent=!f,this.getContentGroup().add(w),o.setHoverStyle(w),w.__legendDataIndex=e,w},layoutInner:function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();l.box(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var u=o.getBoundingRect(),c=[-u.x,-u.y];if(r){l.box("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),d=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,g=0===f?"width":"height",m=0===f?"height":"width",v=0===f?"y":"x";"end"===a?d[f]+=u[g]+p:c[f]+=h[g]+p,d[1-f]+=u[m]/2-h[m]/2,s.attr("position",d),o.attr("position",c);var y={x:0,y:0};return y[g]=u[g]+p+h[g],y[m]=Math.max(u[m],h[m]),y[v]=Math.min(0,h[v]+d[1-f]),y}return o.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function p(t,e,n,i,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=n.getItemStyle(),t.style.stroke=i,a||(o.stroke=r)):o=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function f(t,e,n,i){m(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),g(t,e,n,i)}function g(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function m(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}t.exports=d},54601:function(t,e,n){var i=n(80194),r=n(7357),a=r.mergeLayoutParam,o=r.getLayoutParams,s=i.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},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(t,e,n,i){var r=o(t);s.superCall(this,"init",t,e,n,i),l(this,t,r)},mergeOption:function(t,e){s.superCall(this,"mergeOption",t,e),l(this,this.option,t)}});function l(t,e,n){var i=[1,1];i[t.getOrient().index]=0,a(e,n,{type:"box",ignoreSize:i})}var u=s;t.exports=u},3382:function(t,e,n){var i=n(69008),r=n(18993),a=n(7357),o=n(71298),s=r.Group,l=["width","height"],u=["x","y"],c=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,a,o,s,l){var u=this;c.superCall(this,"renderInner",t,e,n,a,o,s,l);var h=this._controllerGroup,d=e.get("pageIconSize",!0);i.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=e.getModel("pageTextStyle");function f(t,n){var o=t+"DataIndex",s=r.createIcon(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:i.bind(u._pageGo,u,o,e,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=t,h.add(s)}h.add(new r.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(t,e,n,r,o,s){var c=this.getSelectorGroup(),h=t.getOrient().index,d=l[h],p=u[h],f=l[1-h],g=u[1-h];o&&a.box("horizontal",c,t.get("selectorItemGap",!0));var m=t.get("selectorButtonGap",!0),v=c.getBoundingRect(),y=[-v.x,-v.y],x=i.clone(n);o&&(x[d]=n[d]-v[d]-m);var _=this._layoutContentAndController(t,r,x,h,d,f,g);if(o){if("end"===s)y[h]+=_[d]+m;else{var b=v[d]+m;y[h]-=b,_[p]-=b}_[d]+=v[d]+m,y[1-h]+=_[g]+_[f]/2-v[f]/2,_[f]=Math.max(_[f],v[f]),_[g]=Math.min(_[g],v[g]+y[1-h]),c.attr("position",y)}return _},_layoutContentAndController:function(t,e,n,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;a.box(t.get("orient"),c,t.get("itemGap"),o?n.width:null,o?null:n.height),a.box("horizontal",d,t.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>n[s],m=[-p.x,-p.y];e||(m[o]=c.position[o]);var v=[0,0],y=[-f.x,-f.y],x=i.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));g&&("end"===t.get("pageButtonPosition",!0)?y[o]+=n[s]-f[s]:v[o]+=f[s]+x);y[1-o]+=p[l]/2-f[l]/2,c.attr("position",m),h.attr("position",v),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?n[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-o]),h.__rectSize=n[s],g){var b={x:0,y:0};b[s]=Math.max(n[s]-f[s]-x,0),b[l]=_[l],h.setClipPath(new r.Rect({shape:b})),h.__rectSize=b[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&r.updateProps(c,{position:w.contentPosition},!!g&&t),this._updatePageInfoView(t,w),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var r=n.childOfName("pageText"),a=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,l=e.pageCount;r&&a&&r.setStyle("text",i.isString(a)?a.replace("{current}",s).replace("{total}",l):a({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=l[r],o=u[r],s=this._findTargetItemIndex(e),c=n.children(),h=c[s],d=c.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=_(h);f.contentPosition[r]=-g.s;for(var m=s+1,v=g,y=g,x=null;m<=d;++m)(!(x=_(c[m]))&&y.e>v.s+i||x&&!b(x,v.s))&&(v=y.i>v.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount),y=x;for(m=s-1,v=g,y=g,x=null;m>=-1;--m)(x=_(c[m]))&&b(y,x.s)||!(v.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)})),null!=e?e:n):0;var e,n}}),h=c;t.exports=h},73120:function(t,e,n){var i=n(3096),r=n(69008);function a(t,e,n){var i,a={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&i:a[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:a}:{name:e.name,selected:a}}i.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),i.registerAction("legendSelect","legendselected",r.curry(a,"select")),i.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},19214:function(t){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n=0&&"number"==typeof c&&(c=+c.toFixed(Math.min(v,20))),g.coord[p]=m.coord[p]=c,r=[g,m,{type:s,valueIndex:r.valueIndex,value:c}]}return(r=[o.dataTransform(t,r[0]),o.dataTransform(t,r[1]),i.extend({},r[2])])[2].type=r[2].type||"",i.merge(r[2],r[0]),i.merge(r[2],r[1]),r};function h(t){return!isNaN(t)&&!isFinite(t)}function d(t,e,n,i){var r=1-t,a=i.dimensions[t];return h(e[r])&&h(n[r])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function p(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(d(1,n,i,t)||d(0,n,i,t)))return!0}return o.dataFilter(t,e[0])&&o.dataFilter(t,e[1])}function f(t,e,n,i,r){var o,s=i.coordinateSystem,l=t.getItemModel(e),u=a.parsePercent(l.get("x"),r.getWidth()),c=a.parsePercent(l.get("y"),r.getHeight());if(isNaN(u)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);o=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=s.dimensions;h(t.get(d[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):h(t.get(d[1],e))&&(o[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];t.setItemLayout(e,o)}var g=l.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,a=e.__to;r.each((function(e){f(r,e,!0,t,n),f(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,n,a){var l=t.coordinateSystem,u=t.id,h=t.getData(),d=this.markerGroupMap,g=d.get(u)||d.set(u,new s);this.group.add(g.group);var m=function(t,e,n){var a;a=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var s=new r(a,n),l=new r(a,n),u=new r([],n),h=i.map(n.get("data"),i.curry(c,e,t,n));t&&(h=i.filter(h,i.curry(p,t)));var d=t?o.dimValueGetter:function(t){return t.value};return s.initData(i.map(h,(function(t){return t[0]})),null,d),l.initData(i.map(h,(function(t){return t[1]})),null,d),u.initData(i.map(h,(function(t){return t[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}(l,t,e),v=m.from,y=m.to,x=m.line;e.__from=v,e.__to=y,e.setData(x);var _=e.get("symbol"),b=e.get("symbolSize");function w(e,n,i){var r=e.getItemModel(n);f(e,n,i,t,a),e.setItemVisual(n,{symbolSize:r.get("symbolSize")||b[i?0:1],symbol:r.get("symbol",!0)||_[i?0:1],color:r.get("itemStyle.color")||h.getVisual("color")})}i.isArray(_)||(_=[_,_]),"number"==typeof b&&(b=[b,b]),m.from.each((function(t){w(v,t,!0),w(y,t,!1)})),x.each((function(t){var e=x.getItemModel(t).get("lineStyle.color");x.setItemVisual(t,{color:e||v.getItemVisual(t,"color")}),x.setItemLayout(t,[v.getItemLayout(t),y.getItemLayout(t)]),x.setItemVisual(t,{fromSymbolSize:v.getItemVisual(t,"symbolSize"),fromSymbol:v.getItemVisual(t,"symbol"),toSymbolSize:y.getItemVisual(t,"symbolSize"),toSymbol:y.getItemVisual(t,"symbol")})})),g.updateData(x),m.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){t.dataModel=e}))})),g.__keep=!0,g.group.silent=e.get("silent")||t.get("silent")}});t.exports=g},81102:function(t,e,n){var i=n(23826).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}}}});t.exports=i},14297:function(t,e,n){var i=n(69008),r=n(38346),a=n(86957),o=n(39177),s=n(77783);function l(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,s=t.getItemModel(r),l=a.parsePercent(s.get("x"),n.getWidth()),u=a.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(r,o)}))}var u=n(24513).extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markPointModel;e&&(l(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,n,a){var u=t.coordinateSystem,c=t.id,h=t.getData(),d=this.markerGroupMap,p=d.get(c)||d.set(c,new r),f=function(t,e,n){var r;r=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var a=new o(r,n),l=i.map(n.get("data"),i.curry(s.dataTransform,e));t&&(l=i.filter(l,i.curry(s.dataFilter,t)));return a.initData(l,null,t?s.dimValueGetter:function(t){return t.value}),a}(u,t,e);e.setData(f),l(e.getData(),t,a),f.each((function(t){var n=f.getItemModel(t),r=n.getShallow("symbol"),a=n.getShallow("symbolSize"),o=i.isFunction(r),s=i.isFunction(a);if(o||s){var l=e.getRawValue(t),u=e.getDataParams(t);o&&(r=r(l,u)),s&&(a=a(l,u))}f.setItemVisual(t,{symbol:r,symbolSize:a,color:n.get("itemStyle.color")||h.getVisual("color")})})),p.updateData(f),this.group.add(p.group),f.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),p.__keep=!0,p.group.silent=e.get("silent")||t.get("silent")}});t.exports=u},23826:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(69008),a=n(12973),o=n(90830),s=n(17010),l=n(64530),u=s.addCommas,c=s.encodeHTML;function h(t){o.defaultEmphasis(t,"label",["show"])}var d=i.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},isAnimationEnabled:function(){if(a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,n,i){var a=this.constructor,o=this.mainType+"Model";n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),s=t[o];n&&n.data?(s?s._mergeOption(n,e,!0):(i&&h(n),r.each(n.data,(function(t){t instanceof Array?(h(t[0]),h(t[1])):h(t)})),s=new a(n,this,e),r.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[o]=s):t[o]=null}),this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=r.isArray(n)?r.map(n,u).join(", "):u(n),a=e.getName(t),o=c(this.name);return(null!=n||a)&&(o+="
"),a&&(o+=c(a),null!=n&&(o+=" : ")),null!=n&&(o+=c(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});r.mixin(d,l);var p=d;t.exports=p},24513:function(t,e,n){var i=n(3096),r=n(69008),a=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each((function(t){t.__keep=!1}));var r=this.type+"Model";e.eachSeries((function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)}),this),i.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=a},77783:function(t,e,n){var i=n(69008),r=n(86957),a=n(22240).isDimensionStacked,o=i.indexOf;function s(t,e,n,i,o,s){var l=[],u=a(e,i)?e.getCalculationInfo("stackResultDimension"):i,c=h(e,u,t),d=e.indicesOfNearest(u,c)[0];l[o]=e.get(n,d),l[s]=e.get(u,d);var p=e.get(i,d),f=r.getPrecision(e.get(i,d));return(f=Math.min(f,20))>=0&&(l[s]=+l[s].toFixed(f)),[l,p]}var l=i.curry,u={min:l(s,"min"),max:l(s,"max"),average:l(s,"average")};function c(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&l(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function l(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}i.registerPreprocessor(o)},30008:function(t,e,n){n(3881),n(91872),n(69385)},12335:function(t,e,n){var i=n(3096),r=n(69008),a=n(27116);n(49900),n(2546),n(74309),n(84159),n(32641),i.registerLayout(r.curry(a,"bar")),i.extendComponentView({type:"polar"})},99154:function(t,e,n){n(37292),n(924),n(61747)},61747:function(t,e,n){n(96311).__DEV__;var i=n(3096),r=n(69008),a=n(93570),o=n(18993),s=["axisLine","axisTickLabel","axisName"],l=i.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=r.map(n,(function(t){return new a(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));r.each(i,(function(t){r.each(s,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),h=s.get("show"),d=l.get("color"),p=u.get("color");d=r.isArray(d)?d:[d],p=r.isArray(p)?p:[p];var f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:m/2},p="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),g=f.get("show",!0),v=g?f.get("itemSize"):0,y=g?f.get("itemGap"):0,x=v+y,_=t.get("label.rotate")||0;_=_*m/180;var b=f.get("position",!0),w=g&&f.get("showPlayBtn",!0),S=g&&f.get("showPrevBtn",!0),M=g&&f.get("showNextBtn",!0),I=0,T=p;return"left"===b||"bottom"===b?(w&&(a=[0,0],I+=x),S&&(o=[I,0],I+=x),M&&(l=[T-v,0],T-=x)):(w&&(a=[T-v,0],T-=x),S&&(o=[0,0],I+=x),M&&(l=[T-v,0],T-=x)),u=[I,T],t.get("inverse")&&u.reverse(),{viewRect:r,mainLength:p,orient:i,rotation:d[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||c[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:a,prevBtnPosition:o,nextBtnPosition:l,axisExtent:u,controlSize:v,controlGap:y}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=a.create(),s=r.x,l=r.y+r.height;a.translate(o,o,[-s,-l]),a.rotate(o,o,-m/2),a.translate(o,o,[s,l]),(r=r.clone()).applyTransform(o)}var u=y(r),c=y(n.getBoundingRect()),h=y(i.getBoundingRect()),d=n.position,p=i.position;p[0]=d[0]=u[0][0];var f,g=t.labelPosOpt;isNaN(g)?(x(d,c,u,1,f="+"===g?0:1),x(p,h,u,1,1-f)):(x(d,c,u,1,f=g>=0?0:1),p[1]=d[1]+g);function v(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.attr("position",d),i.attr("position",p),n.rotation=i.rotation=t.rotation,v(n),v(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=h.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.niceTicks();var o=new u("value",r,t.axisExtent,i);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new o.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,r){var a=n.getExtent();r.get("lineStyle.show")&&e.add(new o.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:i.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),a=n.scale.getTicks();g(a,(function(t){var a=n.dataToCoord(t),s=r.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[a,0],onclick:f(this._changeTimeline,this,t)},h=y(s,l,e,c);o.setHoverStyle(h,u.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,i){if(n.getLabelModel().get("show")){var r=i.getData(),a=n.getViewLabels();g(a,(function(i){var a=i.tickValue,s=r.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=n.dataToCoord(i.tickValue),h=new o.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:f(this._changeTimeline,this,a),silent:!1});o.setTextStyle(h.style,l,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),o.setHoverStyle(h,o.setTextStyle({},u))}),this)}},_renderControl:function(t,e,n,a){var s=t.controlSize,l=t.rotation,u=a.getModel("controlStyle").getItemStyle(),c=a.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-s/2,s,s],d=a.getPlayState(),p=a.get("inverse",!0);function g(t,n,d,p){if(t){var f=function(t,e,n,a){var s=o.makePath(t.get(e).replace(/^path:\/\//,""),i.clone(a||{}),new r(n[0],n[1],n[2],n[3]),"center");return s}(a,n,h,{position:t,origin:[s/2,0],rotation:p?-l:0,rectHover:!0,style:u,onclick:d});e.add(f),o.setHoverStyle(f,c)}}g(t.nextBtnPosition,"controlStyle.nextIcon",f(this._changeTimeline,this,p?"-":"+")),g(t.prevBtnPosition,"controlStyle.prevIcon",f(this._changeTimeline,this,p?"+":"-")),g(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),f(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=f(s._handlePointerDrag,s),t.ondragend=f(s._handlePointerDragend,s),x(t,a,n,i,!0)},onUpdate:function(t){x(t,a,n,i)}};this._currentPointer=y(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=d.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,r=this._names=[];if("category"===n){var s=[];i.each(e,(function(t,e){var n,a=o.getDataItemValue(t);i.isObject(t)?(n=i.clone(t)).value=e:n=e,s.push(n),i.isString(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")})),e=s}var l={category:"ordinal",time:"time"}[n]||"number";(this._data=new a([{name:"value",type:l}],this)).initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},22472:function(t,e,n){var i=n(36851).extend({type:"timeline"});t.exports=i},39089:function(t,e,n){var i=n(69008);function r(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},o=r.normal||(r.normal={}),s={normal:1,emphasis:1};i.each(r,(function(t,e){s[e]||a(o,e)||(o[e]=t)})),n.label&&!a(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function a(t,e){return t.hasOwnProperty(e)}t.exports=function(t){var e=t&&t.timeline;i.isArray(e)||(e=e?[e]:[]),i.each(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(r(t),a(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});a(o,"position")||(o.position=t.controlPosition),"none"!==o.position||a(o,"show")||(o.show=!1,delete o.position),delete t.controlPosition}i.each(t.data||[],(function(t){i.isObject(t)&&!i.isArray(t)&&(!a(t,"value")&&a(t,"name")&&(t.value=t.name),r(t))}))}(t)}))}},42456:function(t,e,n){var i=n(3096),r=n(69008);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},t)})),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))},63737:function(t,e,n){n(16172).registerSubTypeDefaulter("timeline",(function(){return"slider"}))},49668:function(t,e,n){var i=n(69008),r=n(3096),a=n(18993),o=n(7357).getLayoutRect,s=n(17010).windowOpen;r.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"}}}),r.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,l=t.getModel("textStyle"),u=t.getModel("subtextStyle"),c=t.get("textAlign"),h=i.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),d=new a.Text({style:a.setTextStyle({},l,{text:t.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=t.get("subtext"),g=new a.Text({style:a.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=t.get("link"),v=t.get("sublink"),y=t.get("triggerEvent",!0);d.silent=!m&&!y,g.silent=!v&&!y,m&&d.on("click",(function(){s(m,"_"+t.get("target"))})),v&&g.on("click",(function(){s(m,"_"+t.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(d),f&&r.add(g);var x=r.getBoundingRect(),_=t.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=o(_,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));c||("middle"===(c=t.get("left")||t.get("right"))&&(c="center"),"right"===c?b.x+=b.width:"center"===c&&(b.x+=b.width/2)),h||("center"===(h=t.get("top")||t.get("bottom"))&&(h="middle"),"bottom"===h?b.y+=b.height:"middle"===h&&(b.y+=b.height/2),h=h||"top"),r.attr("position",[b.x,b.y]);var w={textAlign:c,textVerticalAlign:h};d.setStyle(w),g.setStyle(w),x=r.getBoundingRect();var S=b.margin,M=t.getItemStyle(["color","opacity"]);M.fill=t.get("backgroundColor");var I=new a.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:t.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});r.add(I)}}})},98018:function(t,e,n){n(3212),n(69380),n(92957),n(41122),n(62232),n(89457),n(94638)},3212:function(t,e,n){var i=n(3096),r=n(69008),a=n(34031),o=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(t,e){var n=a.get(e);n&&r.merge(t,n.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}}}),s=o;t.exports=s},69380:function(t,e,n){var i=n(3096),r=n(69008),a=n(63603),o=n(34031),s=n(18993),l=n(24040),u=n(90515),c=n(98449),h=i.extendComponentView({type:"toolbox",render:function(t,e,n,i){var h=this.group;if(h.removeAll(),t.get("show")){var d=+t.get("itemSize"),p=t.get("feature")||{},f=this._features||(this._features={}),g=[];r.each(p,(function(t,e){g.push(e)})),new u(this._featureNames||[],g).add(m).update(m).remove(r.curry(m,null)).execute(),this._featureNames=g,c.layout(h,t,n),h.add(c.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=a.getBoundingRect(e,a.makeFont(i)),o=t.position[0]+h.position[0],s=!1;t.position[1]+h.position[1]+d+r.height>n.getHeight()&&(i.textPosition="top",s=!0);var l=s?-5-r.height:d+8;o+r.width/2>n.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}}))}function m(a,u){var c,m=g[a],v=g[u],y=p[m],x=new l(y,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===m&&(y.title=i.newTitle),m&&!v){if(function(t){return 0===t.indexOf("my")}(m))c={model:x,onclick:x.option.onclick,featureName:m};else{var _=o.get(m);if(!_)return;c=new _(x,e,n)}f[m]=c}else{if(!(c=f[v]))return;c.model=x,c.ecModel=e,c.api=n}m||!v?x.get("show")&&!c.unusable?(!function(i,a,o){var l=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),c=a.getIcons?a.getIcons():i.get("icon"),p=i.get("title")||{};if("string"==typeof c){var f=c,g=p;p={},(c={})[o]=f,p[o]=g}var m=i.iconPaths={};r.each(c,(function(o,c){var f=s.createIcon(o,{},{x:-d/2,y:-d/2,width:d,height:d});f.setStyle(l.getItemStyle()),f.hoverStyle=u.getItemStyle(),f.setStyle({text:p[c],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",r.extend({content:p[c],formatter:g.get("formatter",!0)||function(){return p[c]},formatterParams:{componentType:"toolbox",name:c,title:p[c],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(f),t.get("showTitle")&&(f.__title=p[c],f.on("mouseover",(function(){var e=u.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:u.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(i.get("iconStatus."+c)||"normal"),h.add(f),f.on("click",r.bind(a.onclick,a,e,n,c)),m[c]=f}))}(x,c,m),x.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},c.render&&c.render(x,e,n,i)):c.remove&&c.remove(e,n):c.dispose&&c.dispose(e,n)}},updateView:function(t,e,n,i){r.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,n,i)}))},remove:function(t,e){r.each(this._features,(function(n){n.remove&&n.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){r.each(this._features,(function(n){n.dispose&&n.dispose(t,e)}))}});t.exports=h},85738:function(t,e,n){var i=n(69008),r=n(34031),a=n(73315).toolbox.brush;function o(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}o.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:i.clone(a.title)};var s=o.prototype;s.render=s.updateView=function(t,e,n){var r,a,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,a=t.brushOption.brushMode||"single",o|=t.areas.length})),this._brushType=r,this._brushMode=a,i.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?o:e===r)?"emphasis":"normal")}))},s.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return i.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},s.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",o);var l=o;t.exports=l},62232:function(t,e,n){var i=n(3096),r=n(69008),a=n(92462),o=n(73315),s=n(34031),l=o.toolbox.dataView,u=new Array(60).join("-"),c="\t";function h(t){return r.map(t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o=0)return!0}(t)){var a=function(t){for(var e=t.split(/\n+/g),n=d(e.shift()).split(p),i=[],a=r.map(n,(function(t){return{name:t,data:[]}})),o=0;o1?"emphasis":"normal")}(t,e)},f.onclick=function(t,e,n){g[n].call(this)},f.remove=function(t,e){this._brushController.unmount()},f.dispose=function(t,e){this._brushController.dispose()};var g={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function m(t){var e={};return r.each(["xAxisIndex","yAxisIndex"],(function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])})),e}f._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new o(m(this.model.option),i,{include:["grid"]}).matchOutputRanges(t,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),s.push(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var a=e.getAxis(t),o=a.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,o,i),u=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=l(0,r.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},f._dispatchZoomAction=function(t){var e=[];d(t,(function(t,n){e.push(r.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},c.register("dataZoom",p),i.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);r.isArray(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(r.isArray(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;a("xAxis",i),a("yAxis",i)}}function a(n,i){if(i){var a=n+"Index",o=i[a];null==o||"all"===o||r.isArray(o)||(o=!1===o||"none"===o?[]:[o]),function(e,n){var i=t[e];r.isArray(i)||(i=i?[i]:[]);d(i,n)}(n,(function(t,s){if(null==o||"all"===o||-1!==r.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:"\0_ec_\0toolbox-dataZoom_"+n+s};l[a]=s,e.push(l)}}))}}}));var v=p;t.exports=v},41122:function(t,e,n){var i=n(3096),r=n(69008),a=n(73315),o=n(34031),s=a.toolbox.magicType,l="__ec_magicType_stack__";function u(t){this.model=t}u.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:r.clone(s.title),option:{},seriesIndex:{}};var c=u.prototype;c.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return r.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n};var h={line:function(t,e,n,i){if("bar"===t)return r.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return r.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){var a=n.get("stack")===l;if("line"===t||"bar"===t)return i.setIconStatus("stack",a?"normal":"emphasis"),r.merge({id:e,stack:a?"":l},i.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];c.onclick=function(t,e,n){var i=this.model,a=i.get("seriesIndex."+n);if(h[n]){var o,u={series:[]};if(r.each(d,(function(t){r.indexOf(t,n)>=0&&r.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(e){var a=e.subType,o=e.id,s=h[n](a,o,e,i);s&&(r.defaults(s,e.option),u.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var c=l.getAxesByScale("ordinal")[0];if(c){var d=c.dim+"Axis",p=t.queryComponents({mainType:d,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;u[d]=u[d]||[];for(var f=0;f<=p;f++)u[d][p]=u[d][p]||{};u[d][p].boundaryGap="bar"===n}}})),"stack"===n)o=u.series&&u.series[0]&&u.series[0].stack===l?r.merge({stack:s.title.tiled},s.title):r.clone(s.title);e.dispatchAction({type:"changeMagicType",currentType:n,newOption:u,newTitle:o,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),o.register("magicType",u);var p=u;t.exports=p},94638:function(t,e,n){var i=n(3096),r=n(8338),a=n(73315),o=n(34031),s=a.toolbox.restore;function l(t){this.model=t}l.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:s.title},l.prototype.onclick=function(t,e,n){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var u=l;t.exports=u},92957:function(t,e,n){var i=n(12973),r=n(73315),a=n(34031),o=r.toolbox.saveAsImage;function s(t){this.model=t}s.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:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!i.canvasSupported,s.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",a="svg"===e.getZr().painter.getType()?"svg":n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(o.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var c=new Blob([u]);window.navigator.msSaveOrOpenBlob(c,r+"."+a)}else{var h=n.get("lang"),d='';window.open().document.write(d)}else{var p=document.createElement("a");p.download=r+"."+a,p.target="_blank",p.href=o;var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},a.register("saveAsImage",s);var l=s;t.exports=l},34031:function(t,e){var n={};e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]}},81584:function(t,e,n){var i=n(3096);n(84159),n(34513),n(75250),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},98306:function(t,e,n){var i=n(69008),r=n(83720),a=n(92462),o=n(12513),s=n(12973),l=n(17010),u=i.each,c=l.toCamelCase,h=["","-webkit-","-moz-","-o-"];function d(t){var e,n,a,o=[],d=t.get("transitionDuration"),p=t.get("backgroundColor"),f=t.getModel("textStyle"),g=t.get("padding");return d&&o.push((a="left "+(e=d)+"s "+(n="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+n,i.map(h,(function(t){return t+"transition:"+a})).join(";"))),p&&(s.canvasSupported?o.push("background-Color:"+p):(o.push("background-Color:#"+r.toHex(p)),o.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(e){var n="border-"+e,i=c(n),r=t.get(i);null!=r&&o.push(n+":"+r+("color"===e?"":"px"))})),o.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),u(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(f)),null!=g&&o.push("padding:"+l.normalizeCssArray(g).join("px ")+"px"),o.join(";")+";"}function p(t,e,n,i,r){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,i,r)}else{t[0]=i,t[1]=r;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}}function f(t,e,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0],p(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=r.handler,n=r.painter.getViewportRoot();a.normalizeEvent(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+d(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;p(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var g=f;t.exports=g},34513:function(t,e,n){var i=n(3096).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}}});t.exports=i},28817:function(t,e,n){var i=n(69008),r=n(99999);function a(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}a.prototype={constructor:a,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},a=t,o="{marker",s=a.indexOf(o);s>=0;){var l=a.indexOf("|}"),u=a.substr(s+o.length,l-s-o.length);u.indexOf("sub")>-1?i["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:i["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},s=(a=a.substr(l+1)).indexOf("{marker")}this.el=new r({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var c=this;this.el.on("mouseover",(function(){c._enterable&&(clearTimeout(c._hideTimeout),c._show=!0),c._inContent=!0})),this.el.on("mouseout",(function(){c._enterable&&c._show&&c.hideLater(c._hideDelay),c._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=a;t.exports=o},75250:function(t,e,n){var i=n(3096),r=n(69008),a=n(12973),o=n(98306),s=n(28817),l=n(17010),u=n(86957),c=n(18993),h=n(65881),d=n(7357),p=n(24040),f=n(46243),g=n(44815),m=n(23263),v=n(90830).getTooltipRenderMode,y=r.bind,x=r.each,_=u.parsePercent,b=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),w=i.extendComponentView({type:"tooltip",init:function(t,e){if(!a.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=v(r),"html"===this._renderMode?(n=new o(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="
"):(n=new s(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!a.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");f.register("itemTooltip",this._api,y((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!a.node){var r=M(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=b;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=h(i,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(M(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s)if("axis"===(t=S([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],u=S([e.tooltipOption,i]),c=this._renderMode,h=this._newLine,d={};x(t,(function(t){x(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,a=[];if(e&&null!=i){var u=m.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(o){var l=n.getSeriesByIndex(o.seriesIndex),h=o.dataIndexInside,p=l&&l.getDataParams(h);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=g.getAxisRawValue(e.axis,i),p.axisValueLabel=u,p){s.push(p);var f,m=l.formatTooltip(h,!0,null,c);if(r.isObject(m)){f=m.html;var v=m.markers;r.merge(d,v)}else f=m;a.push(f)}}));var p=u;"html"!==c?o.push(a.join(h)):o.push((p?l.encodeHTML(p)+h:"")+a.join(h))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var p=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,p,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(u,o,s,Math.random(),a[0],a[1],p,void 0,d)}))},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,a=e.seriesIndex,o=i.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,c=s.getData(u),h=S([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),m=s.formatTooltip(l,!1,u,this._renderMode);r.isObject(m)?(p=m.html,f=m.markers):(p=m,f=null);var v="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,p,g,v,t.offsetX,t.offsetY,t.position,t.target,f)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){i={content:i,formatter:i}}var r=new p(i,this._tooltipModel,this._ecModel),a=r.get("content"),o=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var d=e;if(h&&"string"==typeof h)d=l.formatTpl(h,n,!0);else if("function"==typeof h){var p=y((function(e,i){e===this._ticket&&(c.setContent(i,u,t),this._updatePosition(t,o,r,a,c,n,s))}),this);this._ticket=i,d=h(n,i,p)}c.setContent(d,u,t),c.show(t),this._updatePosition(t,o,r,a,c,n,s)}},_updatePosition:function(t,e,n,i,a,o,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=a.getSize(),h=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof e&&(e=e([n,i],o,a.el,f,{viewSize:[l,u],contentSize:c.slice()})),r.isArray(e))n=_(e[0],l),i=_(e[1],u);else if(r.isObject(e)){e.width=c[0],e.height=c[1];var g=d.getLayoutRect(e,{width:l,height:u});n=g.x,i=g.y,h=null,p=null}else if("string"==typeof e&&s){var m=function(t,e,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-i/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-i/2,s=e.y+u+a;break;case"left":o=e.x-i-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}(e,f,c);n=m[0],i=m[1]}else{m=function(t,e,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,u=s.height;null!=a&&(t+l+a>i?t-=l+a:t+=a);null!=o&&(e+u+o>r?e-=u+o:e+=o);return[t,e]}(n,i,a,l,u,h?null:20,p?null:20);n=m[0],i=m[1]}if(h&&(n-=I(h)?c[0]/2:"right"===h?c[0]:0),p&&(i-=I(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")){m=function(t,e,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,a,l,u);n=m[0],i=m[1]}a.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&x(e,(function(e,i){var r=e.dataByAxis||{},a=(t[i]||{}).dataByAxis||[];(n&=r.length===a.length)&&x(r,(function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length)&&x(r,(function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){a.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",e))}});function S(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(p.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new p(n,e,e.ecModel))}return e}function M(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function I(t){return"center"===t||"middle"===t}t.exports=w},85313:function(t,e,n){n(3646),n(11511)},74021:function(t,e,n){var i=n(69008),r=n(27204),a=n(86957),o=[20,140],s=r.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(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=o[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=o[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,o=0,s=n.length,u=e.length;ot[1])break;n.push({color:this.getControllerVisual(a,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,a=n.handleLabels;p([0,1],(function(o){var l=r[o];l.setStyle("fill",e.handlesColor[o]),l.position[1]=t[o];var u=s.applyTransform(n.handleLabelPoints[o],s.getTransform(l,this.group));a[o].setStyle({x:u[0],y:u[1],text:i.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],u=d(t,a,l,!0),c=this._shapes,h=c.indicator;if(h){h.position[1]=u,h.attr("invisible",!1),h.setShape("points",function(t,e,n,i){return t?[[0,-f(e,g(n,0))],[6,0],[0,f(e,g(i-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,i,u,o[1]));var p=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",p);var m=s.applyTransform(c.indicatorLabelPoint,s.getTransform(h,this.group)),v=c.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",c.barGroup),x=this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=f(g(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],a=n.getExtent();t=f(g(r[0],t),r[1]);var o=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=d(r,e,n,!0)/2);return i}(n,a,r),s=[t-o,t+o],l=d(t,r,a,!0),u=[d(s[0],r,a,!0),d(s[1],r,a,!0)];s[0]r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var p=this._hoverLinkDataIndices,m=[];(e||y(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var v=h.compressBatches(p,m);this._dispatchHighDown("downplay",c.makeHighDownBatch(v[0],n)),this._dispatchHighDown("highlight",c.makeHighDownBatch(v[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),a=r.get(n.getDataDimension(r),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,r){var a=s.getTransform(e,r?null:this.group);return s[i.isArray(t)?"applyTransform":"transformDirection"](t,a,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function v(t,e,n,i){return new s.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){a.stop(t.event)},ondragend:i})}function y(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function x(t){return"vertical"===t?"ns-resize":"ew-resize"}var _=m;t.exports=_},85033:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(27204),a=n(5660),o=n(45645),s=n(86957).reformIntervals,l=r.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(t,e){l.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();u[this._mode].call(this),this._resetSelected(t,e);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=i.clone(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=i.map(this._pieceList,(function(t){t=i.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},n=a.listVisualTypes(),s=this.isCategory();function l(t,e,n){return t&&t[e]&&(i.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}i.each(t.pieces,(function(t){i.each(n,(function(n){t.hasOwnProperty(n)&&(e[n]=1)}))})),i.each(e,(function(e,n){var r=0;i.each(this.stateList,(function(e){r|=l(t,e,n)||l(t.target,e,n)}),this),!r&&i.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=o.get(n,"inRange"===e?"active":"inactive",s)}))}),this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,r=this._pieceList,a=(e?n:t).selected||{};if(n.selected=a,i.each(r,(function(t,e){var n=this.getSelectedMapKey(t);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var o=!1;i.each(r,(function(t,e){var n=this.getSelectedMapKey(t);a[n]&&(o?a[n]=!1:o=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=i.clone(t)},getValueState:function(t){var e=a.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){a.findPieceIndex(e,this._pieceList)===t&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],r=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),(o=a[a.length-1].interval[1])!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return i.each(a,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:n}}function l(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=t(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}}}),u={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(r[1]-r[0])/a;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var l=0,u=r[0];l","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function c(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var h=l;t.exports=h},50767:function(t,e,n){var i=n(69008),r=n(94404),a=n(18993),o=n(22868).createSymbol,s=n(7357),l=n(26135),u=r.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,o=r.getFont(),l=r.getTextColor(),u=this._getItemAlign(),c=e.itemSize,h=this._getViewData(),d=h.endsText,p=i.retrieve(e.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],c,p,u),i.each(h.viewPieceList,(function(r){var s=r.piece,h=new a.Group;h.onclick=i.bind(this._onItemClick,this,s),this._enableHoverLink(h,r.indexInModelPieceList);var d=e.getRepresentValue(s);if(this._createItemSymbol(h,d,[0,0,c[0],c[1]]),p){var f=this.visualMapModel.getValueState(d);h.add(new a.Text({style:{x:"right"===u?-n:c[0]+n,y:c[1]/2,text:s.text,textVerticalAlign:"middle",textAlign:u,textFont:o,textFill:l,opacity:"outOfRange"===f?.5:1}}))}t.add(h)}),this),d&&this._renderEndsText(t,d[1],c,p,u),s.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.makeHighDownBatch(n.findTargetDataIndices(e),n)})}t.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var o=new a.Group,s=this.visualMapModel.textStyleModel;o.add(new a.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),a=t.get("inverse");return("horizontal"===r?a:!a)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(o(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,r=i.clone(n.selected),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[a]=!0,i.each(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});t.exports=u},27204:function(t,e,n){var i=n(3096),r=n(69008),a=n(12973),o=n(45645),s=n(5660),l=n(75986),u=n(90830),c=n(86957),h=s.mapVisual,d=s.eachVisual,p=r.isArray,f=r.each,g=c.asc,m=c.linearMap,v=r.noop,y=i.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(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;a.canvasSupported||(n.realtime=!1),!e&&l.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=u.normalizeToArray(t),e},eachTargetSeries:function(t,e){r.each(this.getTargetSeriesIndices(),(function(n){t.call(e,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},formatValueText:function(t,e,n){var i,a,o=this.option,s=o.precision,l=this.dataBound,u=o.formatter;return n=n||["<",">"],r.isArray(t)&&(t=t.slice(),i=!0),a=e?t:i?[c(t[0]),c(t[1])]:c(t),r.isString(u)?u.replace("{value}",i?a[0]:a).replace("{value2}",i?a[1]:a):r.isFunction(u)?i?u(t[0],t[1]):u(t):i?t[0]===l[0]?n[0]+" "+a[1]:t[1]===l[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a;function c(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var a=i[r];if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),a=e.controller||(e.controller={});r.merge(i,n),r.merge(a,n);var l=this.isCategory();function u(n){p(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},f(this.stateList,(function(t){var e=n[t];if(r.isString(e)){var i=o.get(e,"active",l);i?(n[t]={},n[t][e]=i):delete n[t]}}),this)}u.call(this,i),u.call(this,a),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},f(i,(function(t,e){if(s.isValidType(e)){var n=o.get(e,"inactive",l);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");f(this.stateList,(function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:l?i:[i]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(l?o[0]:[o[0],o[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var c=-1/0;d(u,(function(t){t>c&&(c=t)})),s.symbolSize=h(u,(function(t){return m(t,[0,c],[0,o[0]],!0)}))}}),this)}.call(this,a)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v});t.exports=y},94404:function(t,e,n){var i=n(3096),r=n(69008),a=n(18993),o=n(17010),s=n(7357),l=n(5660),u=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,n=o.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new a.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){var i=(n=n||{}).forceState,a=this.visualMapModel,o={};if("symbol"===e&&(o.symbol=a.get("itemSymbol")),"color"===e){var s=a.get("contentColor");o.color=s}function u(t){return o[t]}function c(t,e){o[t]=e}var h=a.controllerVisuals[i||a.getValueState(t)],d=l.prepareVisualTypes(h);return r.each(d,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),l.dependsOn(i,e)&&r&&r.applyVisual(t,u,c)})),o[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:r.noop});t.exports=u},26135:function(t,e,n){var i=n(69008),r=n(7357).getLayoutRect;e.getItemAlign=function(t,e,n){var i=t.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?n[0]:i[u[d]];var p=[["x","width",3],["y","height",0]][s],f=r(h,o,i.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*o[p[1]]?0:1]},e.makeHighDownBatch=function(t,e){return i.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},96288:function(t,e,n){var i=n(69008),r=i.each;function a(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=function(t){var e=t&&t.visualMap;i.isArray(e)||(e=e?[e]:[]),r(e,(function(t){if(t){a(t,"splitList")&&!a(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&i.isArray(e)&&r(e,(function(t){i.isObject(t)&&(a(t,"start")&&!a(t,"min")&&(t.min=t.start),a(t,"end")&&!a(t,"max")&&(t.max=t.end))}))}}))}},82546:function(t,e,n){n(16172).registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},86053:function(t,e,n){var i=n(3096),r=n(69008),a=n(75986),o=n(5660),s=i.PRIORITY.VISUAL.COMPONENT;function l(t,e,n,i){for(var r=e.targetVisuals[i],a=o.prepareVisualTypes(r),s={color:t.getData().getVisual("color")},l=0,u=a.length;l=n&&t<=i},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&m(n=n.slice(),i.count()),s(t,f,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&m(n=n.slice(),i.count());var r=s(t,n,f,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=h(this,e).ticks,i=a(n,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,n,i){var a=e.length;if(!t.onBand||n||!a)return;var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;r(e,(function(t){t.coord-=h/2})),s=1+t.scale.getExtent()[1]-e[a-1].tickValue,o={coord:e[a-1].coord+h*s},e.push(o)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift());i&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]});p(l[1],o.coord)&&(i?o.coord=l[1]:e.pop());i&&p(o.coord,l[1])&&e.push({coord:l[1]});function p(t,e){return t=u(t),e=u(e),d?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return a(e,(function(t){return a(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return p(this)}};var v=g;t.exports=v},86990:function(t,e,n){var i=n(69008),r=n(47764),a=n(26237),o=n(9806),s=n(74330),l=r.applyTransform;function u(){s.call(this)}function c(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(t,e,n,i){var r=n.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[t](i):null}i.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new o(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new o(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new o(t,e,n,i)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),a=this.getZoom();i=r.applyTransform([],i,t),n=r.applyTransform([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[a,a],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),a.copy(this.transform||(this.transform=[]),e.transform||a.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],a.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?i.slice(t):a.create(),rawScale:i.slice(e.scale),rawPosition:i.slice(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?l(n,t,i):r.copy(n,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},i.mixin(c,s);var d=c;t.exports=d},61466:function(t,e,n){var i=n(69008),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},a={};a.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),a.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=i.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;t.exports=o},44815:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(43712),a=n(48149),o=n(22510),s=n(86957),l=n(64816),u=l.prepareLayoutBarSeries,c=l.makeColumnLayout,h=l.retrieveColumnLayout,d=n(9806);function p(t,e){var n,r,a,o=t.type,l=e.getMin(),d=e.getMax(),p=t.getExtent();"ordinal"===o?n=e.getCategories().length:(r=e.get("boundaryGap"),i.isArray(r)||(r=[r||0,r||0]),"boolean"==typeof r[0]&&(r=[0,0]),r[0]=s.parsePercent(r[0],1),r[1]=s.parsePercent(r[1],1),a=p[1]-p[0]||Math.abs(p[0])),"dataMin"===l?l=p[0]:"function"==typeof l&&(l=l({min:p[0],max:p[1]})),"dataMax"===d?d=p[1]:"function"==typeof d&&(d=d({min:p[0],max:p[1]}));var f=null!=l,g=null!=d;null==l&&(l="ordinal"===o?n?0:NaN:p[0]-r[0]*a),null==d&&(d="ordinal"===o?n?n-1:NaN:p[1]+r[1]*a),(null==l||!isFinite(l))&&(l=NaN),(null==d||!isFinite(d))&&(d=NaN),t.setBlank(i.eqNaN(l)||i.eqNaN(d)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(l>0&&d>0&&!f&&(l=0),l<0&&d<0&&!g&&(d=0));var m=e.ecModel;if(m&&"time"===o){var v,y=u("bar",m);if(i.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var x=c(y),_=function(t,e,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],s=h(r,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;i.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;i.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=e-t,p=d/(1-(l+u)/o)-d;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}(l,d,e,x);l=_.min,d=_.max}}return{extent:[l,d],fixMin:f,fixMax:g}}function f(t){var e,n=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(e,r){return null!=i&&(r=e-i),n(g(t,e),r)}:function(e){return t.scale.getLabel(e)}}function g(t,e){return"category"===t.type?t.scale.getLabel(e):e}function m(t){var e=t.get("interval");return null==e?"auto":e}n(79262),n(64763),e.getScaleExtent=p,e.niceScaleExtent=function(t,e){var n=p(t,e),i=n.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(o.getClass(e)||a).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},e.makeLabelFormatter=f,e.getAxisRawValue=g,e.estimateLabelUnionRect=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===t.type,o=n.getExtent();r=a?n.count():(i=n.getTicks()).length;var s,l,u,c,h,p,g,m,v,y=t.getLabelModel(),x=f(t),_=1;r>40&&(_=Math.ceil(r/40));for(var b=0;b1&&d/c>2&&(h=Math.round(Math.ceil(h/c)*c));var p=u(t),f=o.get("showMinLabel")||p,g=o.get("showMaxLabel")||p;f&&h!==a[0]&&v(a[0]);for(var m=h;m<=a[1];m+=c)v(m);function v(t){l.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&m-c!==a[1]&&v(a[1]),l}function m(t,e,n){var r=t.scale,a=s(t),o=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t);e(t,i)&&o.push(n?t:{formattedLabel:a(t),rawLabel:i,tickValue:t})})),o}e.createAxisLabels=function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=h(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=s(t);return{labels:i.map(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}(t)},e.createAxisTicks=function(t,e){return"category"===t.type?function(t,e){var n,r,a=d(t,"ticks"),o=l(e),s=p(a,o);if(s)return s;e.get("show")&&!t.scale.isBlank()||(n=[]);if(i.isFunction(o))n=m(t,o,!0);else if("auto"===o){var u=h(t,t.getLabelModel());r=u.labelCategoryInterval,n=i.map(u.labels,(function(t){return t.tickValue}))}else n=g(t,r=o,!0);return f(a,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=s(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),l=a.count();if(o[1]-o[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var h=o[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,m=0;h<=o[1];h+=u){var v,y,x=r.getBoundingRect(n(h),e.font,"center","top");v=1.3*x.width,y=1.3*x.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var _=g/p,b=m/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),S=c(t.model),M=t.getExtent(),I=S.lastAutoInterval,T=S.lastTickCount;return null!=I&&null!=T&&Math.abs(I-w)<=1&&Math.abs(T-l)<=1&&I>w&&S.axisExtend0===M[0]&&S.axisExtend1===M[1]?w=I:(S.lastTickCount=l,S.lastAutoInterval=w,S.axisExtend0=M[0],S.axisExtend1=M[1]),w}},29933:function(t,e,n){var i=n(69008),r=n(7357),a=n(86957),o=n(33807),s=864e5;function l(t,e,n){this._model=t}function u(t,e,n,i){var r=n.calendarModel,a=n.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem:null;return o===this?o[t](i):null}l.prototype={constructor:l,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(t){var e=(t=a.parseDate(t)).getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var r=t.getDay();return{y:e,m:n,d:i,day:r=Math.abs((r+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){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 n=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];i.each([0,1],(function(t){h(o,t)&&(s[a[t]]=o[t]*l[t])}));var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=r.getLayoutRect(s,u);function h(t,e){return null!=t[e]&&"auto"!==t[e]}i.each([0,1],(function(t){h(o,t)||(o[t]=c[a[t]]/l[t])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){i.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,i=new Date(t[0].time),r=i.getDate(),a=t[1].date.getDate();i.setDate(r+n-1);var o=i.getDate();if(o!==a)for(var l=i.getTime()-t[1].time>0?1:-1;(o=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(o-l);var u=Math.floor((n+t[0].day+6)/7),c=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(i.start.d+r),this.getDateInfo(a)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(i){var r=new l(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},o.register("calendar",l);var c=l;t.exports=c},66619:function(t,e,n){var i=n(69008),r=n(16172),a=n(7357),o=a.getLayoutParams,s=a.sizeCalculable,l=a.mergeLayoutParam,u=r.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,e,n,i){var r=o(t);u.superApply(this,"init",arguments),c(t,r)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),c(this.option,t)}});function c(t,e){var n=t.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var r=i.map([0,1],(function(t){return s(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));l(t,e,{type:"box",ignoreSize:r})}var h=u;t.exports=h},41675:function(t){t.exports=function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}},74384:function(t,e,n){var i=n(69008),r=n(97694),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,r);var o=a;t.exports=o},75089:function(t,e,n){var i=n(69008),r=n(16172),a=n(12089),o=n(5270),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,o);var u={offset:0};a("x",s,l,u),a("y",s,l,u);var c=s;t.exports=c},52281:function(t,e,n){var i=n(69008);function r(t){return this._axes[t]}var a=function(t){this._axes={},this._dimList=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r1?(g.width=c,g.height=c/p):(g.height=c,g.width=c*p),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else(a=t.getBoxLayoutParams()).aspect=p,g=o.getLayoutRect(a,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function h(t,e){r.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var d={dimensions:a.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",(function(t,i){var r=t.get("map"),o=t.get("aspectScale"),s=!0,l=u.retrieveMap(r);l&&l[0]&&"svg"===l[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var d=new a(r+i,r,t.get("nameMap"),s);d.aspectScale=o,d.zoomLimit=t.get("scaleLimit"),n.push(d),h(d,t),t.coordinateSystem=d,d.model=t,d.resize=c,d.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),r.each(i,(function(t,i){var o=r.map(t,(function(t){return t.get("nameMap")})),s=new a(i,i,r.mergeAll(o));s.zoomLimit=r.retrieve.apply(null,r.map(t,(function(t){return t.get("scaleLimit")}))),n.push(s),s.resize=c,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),r.each(t,(function(t){t.coordinateSystem=s,h(s,t)}))})),n},getFilledRegions:function(t,e,n){for(var i=(t||[]).slice(),a=r.createHashMap(),o=0;o>1^-(1&s),l=l>>1^-(1&l),r=s+=r,a=l+=a,i.push([s/n,l/n])}return i}t.exports=function(t,e){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i0})),(function(t){var n=t.properties,a=t.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&i.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(n[e||"name"],s,n.cp);return l.properties=n,l}))}},8058:function(t,e,n){var i=n(69008);function r(t,e){return e=e||[0,0],i.map([0,1],(function(n){var i=e[n],r=t[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}t.exports=function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}},97292:function(t,e,n){var i=n(69008),r=n(16172),a=n(76282),o=n(12089),s=n(86957),l=n(5270),u=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;n>=0;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i=n&&a<=n+e.axisLength&&o>=i&&o<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),o.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=n[r[o]],l=[0,s],u=this.dimensions.length,c=x(e.get("axisExpandWidth"),l),h=x(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=x(p[1]-p[0],l),p[1]=p[0]+t):(t=x(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||f(u/2))-t/2])[1]=p[0]+t);var v=(s-t)/(u-h);v<3&&(v=0);var y=[f(m(p[0]/c,1))+1,g(m(p[1]/c,1))-1],_=v/c*p[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:v,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:_}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),h(n,(function(e,n){var o=(i.axisExpandable?b:_)(n,i),s={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},u=[s[a].x+t.x,s[a].y+t.y],c=l[a],h=r.create();r.rotate(h,h,c),r.translate(h,h,u),this._axesLayout[e]={position:u,rotation:c,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];i.each(o,(function(e){s.push(t.mapDimension(e)),l.push(a.get(e).model)}));for(var u=this.hasAxisBrushed(),c=n;cr*(1-h[0])?(l="jump",o=s-r*(1-h[2])):(o=s-r*h[1])>=0&&(o=s-r*(1-h[1]))<=0&&(o=0),(o*=e.axisExpandWidth/u)?c(o,i,a,"all"):l="none";else{r=i[1]-i[0];(i=[p(0,a[1]*s/r-r/2)])[1]=d(a[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:l}}};var w=y;t.exports=w},96709:function(t,e,n){var i=n(69008),r=n(97694),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.axisIndex=a};a.prototype={constructor:a,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(a,r);var o=a;t.exports=o},19061:function(t,e,n){var i=n(69008),r=n(16172);n(97292);var a=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))}});t.exports=a},3881:function(t,e,n){var i=n(42044);n(33807).register("parallel",{create:function(t,e){var n=[];return t.eachComponent("parallel",(function(r,a){var o=new i(r,t,e);o.name="parallel_"+a,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}})},98700:function(t,e,n){var i=n(69008),r=n(90830);t.exports=function(t){!function(t){if(t.parallel)return;var e=!1;i.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=r.normalizeToArray(t.parallelAxis);i.each(e,(function(e){if(i.isObject(e)){var n=e.parallelIndex||0,a=r.normalizeToArray(t.parallel)[n];a&&a.parallelAxisDefault&&i.merge(e,a.parallelAxisDefault,!1)}}))}(t)}},6797:function(t,e,n){var i=n(69008),r=n(63603),a=n(97694),o=(0,n(90830).makeInner)();function s(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}s.prototype={constructor:s,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=r.getBoundingRect(s,e.getFont(),"center","top"),h=Math.max(c.height,7)/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),p=o(t.model),f=p.lastAutoInterval,g=p.lastTickCount;return null!=f&&null!=g&&Math.abs(f-d)<=1&&Math.abs(g-a)<=1&&f>d?d=f:(p.lastTickCount=a,p.lastAutoInterval=d),d}},i.inherits(s,a);var l=s;t.exports=l},98138:function(t,e,n){var i=n(69008),r=n(16172),a=n(12089),o=n(5270),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,o);var l={splitNumber:5};function u(t,e){return e.type||(e.data?"category":"value")}a("angle",s,u,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),a("radius",s,u,l)},68338:function(t,e,n){var i=n(14989),r=n(6797),a=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};a.prototype={type:"polar",axisPointerEnabled:!0,constructor:a,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=lo;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}}};var o=a;t.exports=o},15001:function(t,e,n){var i=n(3096);n(98138);var r=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},14989:function(t,e,n){var i=n(69008),r=n(97694);function a(t,e){r.call(this,"radius",t,e),this.type="category"}a.prototype={constructor:a,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(a,r);var o=a;t.exports=o},49900:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(68338),a=n(86957).parsePercent,o=n(44815),s=o.createScaleByModel,l=o.niceScaleExtent,u=n(33807),c=n(22240).getStackedDimension;function h(t,e){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();i.each(e.mapDimension("radius",!0),(function(t){a.scale.unionExtentFromData(e,c(e,t))})),i.each(e.mapDimension("angle",!0),(function(t){r.scale.unionExtentFromData(e,c(e,t))}))}})),l(r.scale,r.model),l(a.scale,a.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),s=360/r.scale.count();r.inverse?o[1]+=s:o[1]-=s,r.setExtent(o[0],o[1])}}function d(t,e){if(t.type=e.get("type"),t.scale=s(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}n(15001);var p={dimensions:r.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,o){var s=new r(o);s.update=h;var l=s.getRadiusAxis(),u=s.getAngleAxis(),c=t.findAxisModel("radiusAxis"),p=t.findAxisModel("angleAxis");d(l,c),d(u,p),function(t,e,n){var r=e.get("center"),o=n.getWidth(),s=n.getHeight();t.cx=a(r[0],o),t.cy=a(r[1],s);var l=t.getRadiusAxis(),u=Math.min(o,s)/2,c=e.get("radius");null==c?c=[0,"100%"]:i.isArray(c)||(c=[0,c]),c=[a(c[0],u),a(c[1],u)],l.inverse?l.setExtent(c[1],c[0]):l.setExtent(c[0],c[1])}(s,t,e),n.push(s),t.coordinateSystem=s,s.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}};u.register("polar",p)},69171:function(t,e,n){var i=n(69008);function r(t,e){return i.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),a=e[i],o=t[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](a-o)-r[s](a+o));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}t.exports=function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:a[1],r0:a[0]},api:{coord:i.bind((function(i){var r=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o})),size:i.bind(r,t)}}}},20671:function(t,e,n){var i=n(69008),r=n(97694);function a(t,e,n){r.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(a,r);var o=a;t.exports=o},37292:function(t,e,n){var i=n(69008),r=n(20671),a=n(48149),o=n(86957),s=n(44815),l=s.getScaleExtent,u=s.niceScaleExtent,c=n(33807),h=n(64763);function d(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=i.map(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new r(n,"log"===t.get("axisType")?new h:new a);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},d.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},d.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,a=Math.atan2(-n,e),o=1/0,s=-1,l=0;ln[0]&&isFinite(f)&&isFinite(n[0]))}else{r.getTicks().length-1>a&&(d=s(d));var p=Math.ceil(n[1]/d)*d,f=o.round(p-d*a);r.setExtent(f,p),r.setInterval(d)}}))},d.dimensions=[],d.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new d(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},c.register("radar",d);var p=d;t.exports=p},924:function(t,e,n){var i=n(3096),r=n(69008),a=n(61466),o=n(24040),s=n(5270),l=a.valueAxis;function u(t,e){return r.defaults({show:e},t)}var c=i.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=r.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var m=c;if(null!=g.color&&(m=r.defaults({color:g.color},c)),g=r.merge(r.clone(g),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:a,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:f},!1),h||(g.name=""),"string"==typeof d){var v=g.name;g.name=d.replace("{value}",null!=v?v:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=r.extend(new o(g,null,this.ecModel),s);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},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:r.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),axisType:"interval",splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}});t.exports=c},44526:function(t,e,n){var i=n(69008),r=n(16172),a=n(12089),o=n(5270),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});i.merge(s.prototype,o),a("single",s,(function(t,e){return e.type||(e.data?"category":"value")}),{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}}});var l=s;t.exports=l},10018:function(t,e,n){var i=n(7164),r=n(44815),a=n(7357).getLayoutRect,o=n(69008).each;function s(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(t,e,n){var a=this.dimension,o=new i(a,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===o.type;o.onBand=s&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();o(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=a({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var l=s;t.exports=l},7164:function(t,e,n){var i=n(69008),r=n(97694),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom",this.orient=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(a,r);var o=a;t.exports=o},66848:function(t,e,n){var i=n(69008);function r(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}t.exports=function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}},76203:function(t,e,n){var i=n(69008);e.layout=function(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,a={},o=r.position,s=r.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};a.position=["vertical"===s?c.vertical[o]:u[0],"horizontal"===s?c.horizontal[o]:u[3]],a.rotation=Math.PI/2*{horizontal:0,vertical:1}[s],a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),i.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return null==h&&(h=t.get("axisLabel.rotate")),a.labelRotation="top"===o?-h:h,a.z2=1,a}},7797:function(t,e,n){var i=n(10018);n(33807).register("single",{create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,a){var o=new i(r,t,e);o.name="single_"+a,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}})),n},dimensions:i.prototype.dimensions})},90515:function(t){function e(t){return t}function n(t,n,i,r,a){this._old=t,this._new=n,this._oldKeyGetter=i||e,this._newKeyGetter=r||e,this.context=a}function i(t,e,n,i,r){for(var a=0;a=0&&t.call(e,n[r],r)},s.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},s.breadthFirstTraverse=function(t,e,n,i){if(l.isInstance(e)||(e=this._nodesMap[a(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,a=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};i.mixin(l,c("hostGraph","data")),i.mixin(u,c("hostGraph","edgeData")),o.Node=l,o.Edge=u,r(l),r(u);var h=o;t.exports=h},39177:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=n(24040),a=n(90515),o=n(50751),s=n(17751),l=s.defaultDimValueGetters,u=s.DefaultDataProvider,c=n(28176).summarizeDimensions,h=n(83250),d=i.isObject,p="undefined",f={float:typeof Float64Array===p?Array:Float64Array,int:typeof Int32Array===p?Array:Int32Array,ordinal:Array,number:Array,time:Array},g=typeof Uint32Array===p?Array:Uint32Array,m=typeof Int32Array===p?Array:Int32Array,v=typeof Uint16Array===p?Array:Uint16Array;function y(t){return t._rawCount>65535?g:v}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],_=["_extent","_approximateExtent","_rawExtent"];function b(t,e){i.each(x.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,i.each(_,(function(n){t[n]=i.clone(e[n])})),t._calculationInfo=i.extend(e._calculationInfo)}var w=function(t,e){t=t||["x","y"];for(var n={},r=[],a={},o=0;o=0?this._indices[t]:-1}function D(t,e){var n=t._idList[e];return null==n&&(n=T(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n}function L(t){return i.isArray(t)||(t=[t]),t}function P(t,e){var n=t.dimensions,r=new w(i.map(n,t.getDimensionInfo,t),t.hostModel);b(r,t);for(var a=r._storage={},o=t._storage,s=0;s=0?(a[l]=k(o[l]),r._rawExtent[l]=O(),r._extent[l]=null):a[l]=o[l])}return r}function k(t){for(var e,n,i=new Array(t.length),r=0;rx[1]&&(x[1]=y)}e&&(this._nameList[d]=e[p])}this._rawCount=this._count=l,this._extent={},I(this)},S._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=0;fT[1]&&(T[1]=S)}if(!r.pure){var A=u[v];if(m&&null==A)if(null!=m.name)u[v]=A=m.name;else if(null!=n){var C=o[n],D=a[C][y];if(D){A=D[x];var L=l[C].ordinalMeta;L&&L.categories.length&&(A=L.categories[A])}}var P=null==m?null:m.id;null==P&&null!=A&&(d[A]=d[A]||0,P=A,d[A]>0&&(P+="__ec__"+d[A]),d[A]++),null!=P&&(c[v]=P)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},I(this)}},S.count=function(){return this._count},S.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&eo&&(o=l)}return i=[a,o],this._extent[t]=i,i},S.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},S.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},S.getCalculationInfo=function(t){return this._calculationInfo[t]},S.setCalculationInfo=function(t,e){d(t)?i.extend(this._calculationInfo,t):this._calculationInfo[t]=e},S.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return a;r=a-1}}return-1},S.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=1/0,a=-1,o=0,s=0,l=this.count();s=0&&a<0)&&(r=c,a=u,o=0),u===a&&(i[o++]=s))}return i.length=o,i},S.getRawIndex=A,S.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=l&&w<=u||isNaN(w))&&(a[o++]=h),h++}c=!0}else if(2===i){d=this._storage[s];var v=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p=l&&w<=u||isNaN(w))&&(S>=x&&S<=_||isNaN(S))&&(a[o++]=h),h++}}c=!0}}if(!c)if(1===i)for(m=0;m=l&&w<=u||isNaN(w))&&(a[o++]=M)}else for(m=0;mt[T][1])&&(I=!1)}I&&(a[o++]=this.getRawIndex(m))}return ow[1]&&(w[1]=b)}}}return a},S.downSample=function(t,e,n,i){for(var r=P(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=this._chunkSize,h=r._rawExtent[t],d=new(y(this))(u),p=0,f=0;fu-f&&(s=u-f,o.length=s);for(var g=0;gh[1]&&(h[1]=_),d[p++]=b}return r._count=p,r._indices=d,r.getRawIndex=C,r},S.getItemModel=function(t){var e=this.hostModel;return new r(this.getRawDataItem(t),e,e&&e.ecModel)},S.diff=function(t){var e=this;return new a(t?t.getIndices():[],this.getIndices(),(function(e){return D(t,e)}),(function(t){return D(e,t)}))},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.setVisual=function(t,e){if(d(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},S.setLayout=function(t,e){if(d(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?i.extend(this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},S.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,d(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],r[a]=!0);else i[e]=n,r[e]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var E=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};S.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(E,e)),this._graphicEls[t]=e},S.getItemGraphicEl=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){i.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},S.cloneShallow=function(t){if(!t){var e=i.map(this.dimensions,this.getDimensionInfo,this);t=new w(e,this.hostModel)}if(t._storage=this._storage,b(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?C:A,t},S.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(i.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var R=w;t.exports=R},82139:function(t,e,n){var i=n(69008),r=i.createHashMap,a=i.isObject,o=i.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&o(n,c);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=r(t.categories))}function c(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=u(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var h=s;t.exports=h},50751:function(t,e,n){var i=n(69008),r=i.createHashMap,a=i.isTypedArray,o=n(77305).enableClassCheck,s=n(8326),l=s.SOURCE_FORMAT_ORIGINAL,u=s.SERIES_LAYOUT_BY_COLUMN,c=s.SOURCE_FORMAT_UNKNOWN,h=s.SOURCE_FORMAT_TYPED_ARRAY,d=s.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===d?{}:[]),this.sourceFormat=t.sourceFormat||c,this.seriesLayoutBy=t.seriesLayoutBy||u,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:a(t)?h:l,fromDataset:!1})},o(p);var f=p;t.exports=f},54327:function(t,e,n){var i=n(69008),r=n(24040),a=n(6333),o=n(39177),s=n(34476),l=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function u(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=i.map(e||[],(function(e){return new r(e,t,t.ecModel)}))}l.prototype={constructor:l,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),t=t||{},i.isString(t)&&(t={order:t});var r,a=t.order||"preorder",o=this[t.attr||"children"];"preorder"===a&&(r=e.call(n,this));for(var s=0;!r&&se&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree.data.getItemModel(this.dataIndex),n=this.getLevelModel();return n?e.getModel(t,n.getModel(t)):e.getModel(t)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},u.prototype={constructor:u,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n0&&t.unfinished);t.unfinished||this._zr.flush()}}},F.getDom=function(){return this._dom},F.getZr=function(){return this._zr},F.setOption=function(t,e,n){if(this._disposed)this.id;else{var i;if(k(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[R]=!0,!this._model||e){var r=new d(this._api),a=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,st),n?(this[N]={silent:i},this[R]=!1):(U(this),W.update.call(this),this._zr.flush(),this[N]=!1,this[R]=!1,X.call(this,i),q.call(this,i))}},F.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},F.getModel=function(){return this._model},F.getOption=function(){return this._model&&this._model.getOption()},F.getWidth=function(){return this._zr.getWidth()},F.getHeight=function(){return this._zr.getHeight()},F.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},F.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},F.getSvgDataURL=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return r.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},F.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;L(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(i,(function(t){t.group.ignore=!1})),a}this.id},F.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(o.canvasSupported){var e="svg"===t.type,n=this.group,a=Math.min,s=Math.max,l=1/0;if(pt[n]){var u=l,c=l,h=-1/0,d=-1/0,p=[],f=t&&t.pixelRatio||1;r.each(dt,(function(i,o){if(i.group===n){var l=e?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(r.clone(t)),f=i.getDom().getBoundingClientRect();u=a(f.left,u),c=a(f.top,c),h=s(f.right,h),d=s(f.bottom,d),p.push({dom:l,left:f.left,top:f.top})}}));var g=(h*=f)-(u*=f),m=(d*=f)-(c*=f),v=r.createCanvas(),y=i.init(v,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:m}),e){var _="";return L(p,(function(t){var e=t.left-u,n=t.top-c;_+=''+t.dom+""})),y.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new x.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:t.connectedBackgroundColor}})),L(p,(function(t){var e=new x.Image({style:{x:t.left*f-u,y:t.top*f-c,image:t.dom}});y.add(e)})),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},F.convertToPixel=r.curry(H,"convertToPixel"),F.convertFromPixel=r.curry(H,"convertFromPixel"),F.containPixel=function(t,e){if(!this._disposed){var n,i=this._model;return t=_.parseFinder(i,t),r.each(t,(function(t,i){i.indexOf("Models")>=0&&r.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}}),this)}),this),!!n}this.id},F.getVisual=function(t,e){var n=this._model,i=(t=_.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},F.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},F.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var W={prepareAndUpdate:function(t){U(this),W.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),r.create(e,n),s.performDataProcessorTasks(e,t),j(this,e),r.update(e,n),$(e),s.performVisualTasks(e,t),J(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(o.canvasSupported)i.setBackgroundColor(l);else{var u=a.parse(l);l=a.stringify(u,"rgb"),0===u[3]&&(l="transparent")}tt(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var a=[];e.eachComponent((function(r,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();e.eachSeries((function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),$(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Q(n,e,i,t,o),tt(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),$(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),J(this,this._model,this._api,t),tt(e,this._api))},updateVisual:function(t){W.update.call(this,t)},updateLayout:function(t){W.update.call(this,t)}};function U(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),K(t,"component",e,n),K(t,"chart",e,n),n.plan()}function Z(t,e,n,i,a){var o=t._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};a&&(l.subType=a);var u=n.excludeSeriesId;null!=u&&(u=r.createHashMap(_.normalizeToArray(u))),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else L(t._componentsViews.concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function j(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function Y(t,e){var n=t.type,i=t.escapeConnect,a=rt[n],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&O(s[0]),this[R]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=r.map(t.batch,(function(e){return(e=r.defaults(r.extend({},e),t)).batch=null,e})));var h,d=[],p="highlight"===n||"downplay"===n;L(u,(function(t){(h=(h=a.action(t,this._model,this._api))||r.extend({},t)).type=o.event||h.type,d.push(h),p?Z(this,l,t,"series"):s&&Z(this,l,t,s.main,s.sub)}),this),"none"===l||p||s||(this[N]?(U(this),W.update.call(this,t),this[N]=!1):W[l].call(this,t)),h=c?{type:o.event||n,escapeConnect:i,batch:d}:d[0],this[R]=!1,!e&&this._messageCenter.trigger(h.type,h)}function X(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Y.call(this,n,t)}}function q(t){!t&&this.trigger("updated")}function K(t,e,n,i){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get("hoverLayerThreshold")&&!o.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),S(t._zr.dom,e)}function tt(t,e){L(lt,(function(n){n(t,e)}))}F.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[R]=!0,n&&U(this),W.update.call(this),this[R]=!1,X.call(this,i),q.call(this,i)}}},F.showLoading=function(t,e){if(this._disposed)this.id;else if(k(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ht[t]){var n=ht[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},F.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},F.makeActionFromEvent=function(t){var e=r.extend({},t);return e.type=at[t.type],e},F.dispatchAction=function(t,e){this._disposed?this.id:(k(e)||(e={silent:!!e}),rt[t.type]&&this._model&&(this[R]?this._pendingActions.push(t):(Y.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),X.call(this,e.silent),q.call(this,e.silent))))},F.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},F.on=B("on",!1),F.off=B("off",!1),F.one=B("one",!1);var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function nt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function it(){this.eventInfo}F._initEvents=function(){L(et,(function(t){var e=function(e){var n,i=this.getModel(),a=e.target;if("globalout"===t)n={};else if(a&&null!=a.dataIndex){var o=a.dataModel||i.getSeriesByIndex(a.seriesIndex);n=o&&o.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(n=r.extend({},a.eventData));if(n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:n,model:u,view:c},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),L(at,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},F.isDisposed=function(){return this._disposed},F.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},F.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,_.setAttribute(this.getDom(),mt,"");var t=this._api,e=this._model;L(this._componentsViews,(function(n){n.dispose(e,t)})),L(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete dt[this.id]}},r.mixin(G,l),it.prototype={constructor:it,normalizeQuery:function(t){var e={},n={},i={};if(r.isString(t)){var a=O(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var a=!1,l=0;l0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(n[r]=t,a=!0),a||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function c(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var rt={},at={},ot=[],st=[],lt=[],ut=[],ct={},ht={},dt={},pt={},ft=new Date-0,gt=new Date-0,mt="_echarts_instance_";function vt(t){pt[t]=!1}var yt=vt;function xt(t){return dt[_.getAttribute(t,mt)]}function _t(t,e){ct[t]=e}function bt(t){st.push(t)}function wt(t,e){It(ot,t,e,1e3)}function St(t,e,n){"function"==typeof e&&(n=e,e="");var i=k(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,D(z.test(i)&&z.test(e)),rt[i]||(rt[i]={action:n,actionInfo:t}),at[e]=i}function Mt(t,e){It(ut,t,e,3e3,"visual")}function It(t,e,n,i,r){(P(e)||k(e))&&(n=e,e=i);var a=I.wrapStageHandler(n,r);return a.__prio=e,a.__raw=n,t.push(a),a}function Tt(t,e){ht[t]=e}Mt(2e3,w),bt(p),wt(900,f),Tt("default",M),St({type:"highlight",event:"highlight",update:"highlight"},r.noop),St({type:"downplay",event:"downplay",update:"downplay"},r.noop),_t("light",T),_t("dark",A);e.version="4.8.0",e.dependencies={zrender:"4.3.1"},e.PRIORITY=E,e.init=function(t,e,n){var i=xt(t);if(i)return i;var r=new G(t,e,n);return r.id="ec_"+ft++,dt[r.id]=r,_.setAttribute(t,mt,r.id),function(t){var e="__connectUpdateStatus";function n(t,n){for(var i=0;i0&&(o=null===o?l:Math.min(o,l))}n[r]=o}}return n}(t),n=[];return i.each(t,(function(t){var i,a=t.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],h=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=l?h/p*l:h}else{var f=t.getData();i=Math.abs(o[1]-o[0])/f.count()}var g=r(t.get("barWidth"),i),m=r(t.get("barMaxWidth"),i),v=r(t.get("barMinWidth")||1,i),y=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:x,axisKey:c(a),stackId:u(t)})})),p(n)}function p(t){var e={};i.each(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,a=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[i]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var c=t.barMinWidth;c&&(o[s].minWidth=c);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return i.each(e,(function(t,e){n[e]={};var a=t.stacks,o=t.bandWidth,s=r(t.categoryGap,o),l=r(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),i.each(a,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;i.each(a,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;i.each(a,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function f(t,e,n){if(t&&e){var i=t[c(e)];return null!=i&&null!=n&&(i=i[u(n)]),i}}var g={seriesType:"bar",plan:o(),reset:function(t){if(m(t)&&v(t)){var e=t.getData(),n=t.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),a=n.getOtherAxis(r),o=e.mapDimension(a.dim),s=e.mapDimension(r.dim),u=a.isHorizontal(),c=u?0:1,h=f(d([t]),r,t).width;return h>.5||(h=.5),{progress:function(t,e){var d,p=t.count,f=new l(2*p),g=new l(2*p),m=new l(p),v=[],x=[],_=0,b=0;for(;null!=(d=t.next());)x[c]=e.get(o,d),x[1-c]=e.get(s,d),v=n.dataToPoint(x,null,v),g[_]=u?i.x+i.width:v[0],f[_++]=v[0],g[_]=u?v[1]:i.y+i.height,f[_++]=v[1],m[b++]=d;e.setLayout({largePoints:f,largeDataIndices:m,largeBackgroundPoints:g,barWidth:h,valueAxisStart:y(r,a,!1),backgroundStart:u?i.x:i.y,valueAxisHorizontal:u})}}}}};function m(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function v(t){return t.pipelineContext&&t.pipelineContext.large}function y(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=function(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o=0?"p":"n",k=b;if(x&&(o[l][L]||(o[l][L]={p:b,n:b}),k=o[l][L][P]),_)M=k,I=(C=n.dataToPoint([D,L]))[1]+d,T=C[0]-b,A=p,Math.abs(T)=0?"p":"n",O=S;if(b&&(l[c][P]||(l[c][P]={p:S,n:S}),O=l[c][P][k]),"radius"===f.dim){var E=f.dataToRadius(L)-S,R=i.dataToAngle(P);Math.abs(E)=0;o--)a=i.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});s(p,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(p),a.enableTopologicalTravel(p,(function(t){var e=[];i.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=i.map(e,(function(t){return l(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),i.mixin(p,h);var f=p;t.exports=f},77265:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=i.each,a=i.filter,o=i.map,s=i.isArray,l=i.indexOf,u=i.isObject,c=i.isString,h=i.createHashMap,d=i.assert,p=i.clone,f=i.merge,g=i.extend,m=i.mixin,v=n(90830),y=n(24040),x=n(16172),_=n(82724),b=n(17948),w=n(67063).resetSourceDefaulter,S="\0_ec_inner",M=y.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new y(n),this._optionManager=i},setOption:function(t,e){d(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):I.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&r(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,n=this._componentsMap,i=[];w(this),r(t,(function(t,n){null!=t&&(x.hasClass(n)?n&&i.push(n):e[n]=null==e[n]?p(t):f(e[n],t,!0))})),x.topologicalTravel(i,x.getAllClassMainTypes(),(function(i,a){var o=v.normalizeToArray(t[i]),l=v.mappingToExists(n.get(i),o);v.makeIdAndName(l),r(l,(function(t,e){var n=t.option;u(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=function(t,e,n){var i=e.type?e.type:n?n.subType:x.determineSubType(t,e);return i}(i,n,t.exist))}));var c=function(t,e){s(e)||(e=e?[e]:[]);var n={};return r(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}(n,a);e[i]=[],n.set(i,[]),r(l,(function(t,r){var a=t.exist,o=t.option;if(d(u(o)||a,"Empty component definition"),o){var s=x.getClass(i,t.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var l=g({dependentModels:c,componentIndex:r},t.keyInfo);a=new s(o,this,this,l),g(a,l),a.init(o,this,this,l),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(i)[r]=a,e[i][r]=a.option}),this),"series"===i&&T(this,n.get("series"))}),this),this._seriesIndicesMap=h(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return r(t,(function(e,n){if(x.hasClass(n)){for(var i=(e=v.normalizeToArray(e)).length-1;i>=0;i--)v.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,u=t.name,c=this._componentsMap.get(e);if(!c||!c.length)return[];if(null!=i)s(i)||(i=[i]),n=a(o(i,(function(t){return c[t]})),(function(t){return!!t}));else if(null!=r){var h=s(r);n=a(c,(function(t){return h&&l(r,t.id)>=0||!h&&t.id===r}))}else if(null!=u){var d=s(u);n=a(c,(function(t){return d&&l(u,t.name)>=0||!d&&t.name===u}))}else n=c.slice();return A(n,t)},findComponents:function(t){var e,n,i,r,o,s=t.query,l=t.mainType,u=(n=l+"Index",i=l+"Id",r=l+"Name",!(e=s)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:l,index:e[n],id:e[i],name:e[r]}),c=u?this.queryComponents(u):this._componentsMap.get(l);return o=A(c,t),t.filter?a(o,t.filter):o},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each((function(t,i){r(t,(function(t,r){e.call(n,i,t,r)}))}));else if(c(t))r(i.get(t),e,n);else if(u(t)){var a=this.findComponents(t);r(a,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){r(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},eachRawSeries:function(t,e){r(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){r(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},eachRawSeriesByType:function(t,e,n){return r(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){T(this,a(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;T(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),x.topologicalTravel(n,x.getAllClassMainTypes(),(function(n,i){r(e.get(n),(function(e){("series"!==n||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()}))}))}});function I(t){var e,n,i;this.option={},this.option[S]=1,this._componentsMap=h({series:[]}),this._seriesIndices,this._seriesIndicesMap,e=t,n=this._theme.option,i=e.color&&!e.colorLayer,r(n,(function(t,n){"colorLayer"===n&&i||x.hasClass(n)||("object"==typeof t?e[n]=e[n]?f(e[n],t,!1):p(t):null==e[n]&&(e[n]=t))})),f(t,_,!1),this.mergeOption(t)}function T(t,e){t._seriesIndicesMap=h(t._seriesIndices=o(e,(function(t){return t.componentIndex}))||[])}function A(t,e){return e.hasOwnProperty("subType")?a(t,(function(t){return t.subType===e.subType})):t}m(M,b);var C=M;t.exports=C},24040:function(t,e,n){var i=n(69008),r=n(12973),a=n(90830).makeInner,o=n(77305),s=o.enableClassExtend,l=o.enableClassCheck,u=n(14870),c=n(72935),h=n(3596),d=n(24782),p=i.mixin,f=a();function g(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function m(t,e,n){for(var i=0;i=e:"max"===n?t<=e:t===e})(r[o],t,i)||(a=!1)}})),a}h.prototype={constructor:h,setOption:function(t,e){t&&i.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&i.isTypedArray(t.data)&&i.setAsPrimitive(t.data)})),t=s(t);var n,c,h=this._optionBackup,p=d.call(this,t,e,!h);this._newBaseOption=p.baseOption,h?(n=h.baseOption,c=p.baseOption,o(c=c||{},(function(t,e){if(null!=t){var i=n[e];if(a.hasClass(e)){t=r.normalizeToArray(t),i=r.normalizeToArray(i);var o=r.mappingToExists(i,t);n[e]=l(o,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else n[e]=u(i,t,!0)}})),p.timelineOptions.length&&(h.timelineOptions=p.timelineOptions),p.mediaList.length&&(h.mediaList=p.mediaList),p.mediaDefault&&(h.mediaDefault=p.mediaDefault)):this._optionBackup=p},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=s(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,u=[],c=[];if(!a.length&&!o)return c;for(var h=0,d=a.length;h":"\n",d="richText"===r,p={},f=0;function g(t){return{renderMode:r,content:s(l(t)),style:p}}var m=this.getData(),v=m.mapDimension("defaultedTooltip",!0),y=v.length,x=this.getRawValue(t),_=i.isArray(x),w=m.getItemVisual(t,"color");i.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=y>1||_&&!y?function(n){var c=i.reduce(n,(function(t,e,n){var i=m.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),h=[];function g(t,n){var i=m.getDimensionInfo(n);if(i&&!1!==i.otherDims.tooltip){var g=i.type,v="sub"+a.seriesIndex+"at"+f,y=u({color:w,type:"subItem",renderMode:r,markerId:v}),x="string"==typeof y?y:y.content,_=(c?x+s(i.displayName||"-")+": ":"")+s("ordinal"===g?t+"":"time"===g?e?"":o("yyyy/MM/dd hh:mm:ss",t):l(t));_&&h.push(_),d&&(p[v]=w,++f)}}v.length?i.each(v,(function(e){g(b(m,t,e),e)})):i.each(n,g);var y=c?d?"\n":"
":"",x=y+h.join(y||", ");return{renderMode:r,content:x,style:p}}(x):g(y?b(m,t,v[0]):_?x[0]:x),M=S.content,I=a.seriesIndex+"at"+f,T=u({color:w,type:"item",renderMode:r,markerId:I});p[I]=w,++f;var A=m.getName(t),C=this.name;c.isNameSpecified(this)||(C=""),C=C?s(C)+(e?": ":h):"";var D="string"==typeof T?T:T.content;return{html:e?D+C+M:C+D+(A?s(A)+": "+M:M),markers:p}},isAnimationEnabled:function(){if(r.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=d.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function M(t){var e=t.name;c.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),r=[];return i.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function I(t){return t.model.getRawData().count()}function T(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),A}function A(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function C(t,e){i.each(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,i.curry(D,e))}))}function D(t){var e=L(t);e&&e.setOutputEnd(this.count())}function L(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}i.mixin(S,p),i.mixin(S,d);var P=S;t.exports=P},82724:function(t){var e="";"undefined"!=typeof navigator&&(e=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:e.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};t.exports=n},72935:function(t,e,n){var i=n(76282)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(t,e){return i(this,t,e)}};t.exports=r},51483:function(t){t.exports={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")}}}},17948:function(t,e,n){var i=n(90830),r=i.makeInner,a=i.normalizeToArray,o=r();var s={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i=o(e=e||this),r=i.colorIdx||0,s=i.colorNameMap=i.colorNameMap||{};if(s.hasOwnProperty(t))return s[t];var l=a(this.get("color",!0)),u=this.get("colorLayer",!0),c=null!=n&&u?function(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}(u,n):l;if((c=c||l)&&c.length){var h=c[r];return t&&(s[t]=h),i.colorIdx=(r+1)%c.length,h}}};t.exports=s},64530:function(t,e,n){var i=n(17751).retrieveRawValue,r=n(17010),a=r.getTooltipMarker,o=r.formatTpl,s=n(90830).getTooltipRenderMode,l=/\{@(.+?)\}/g,u={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),l=n.getRawDataItem(t),u=n.getItemVisual(t,"color"),c=n.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),p=s(d),f=this.mainType,g="series"===f,m=n.userOutput;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:r,data:l,dataType:e,value:i,color:u,borderColor:c,dimensionNames:m?m.dimensionNames:null,encode:m?m.encode:null,marker:a({color:u,renderMode:p}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,r,a){e=e||"normal";var s=this.getData(n),u=s.getItemModel(t),c=this.getDataParams(t,n);null!=r&&c.value instanceof Array&&(c.value=c.value[r]);var h=u.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);return"function"==typeof h?(c.status=e,c.dimensionIndex=r,h(c)):"string"==typeof h?o(h,c).replace(l,(function(e,n){var r=n.length;return"["===n.charAt(0)&&"]"===n.charAt(r-1)&&(n=+n.slice(1,r-1)),i(s,t,n)})):void 0},getRawValue:function(t,e){return i(this.getData(e),t)},formatTooltip:function(){}};t.exports=u},24782:function(t,e,n){var i=n(76282)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(t,e){var n=i(this,t,e),r=this.getBorderLineDash();return r&&(n.lineDash=r),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=r},14870:function(t,e,n){var i=n(76282)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(t){var e=i(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[i,i]:[n,n])}};t.exports=r},76282:function(t,e,n){var i=n(69008);t.exports=function(t){for(var e=0;e=0||r&&i.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}},3596:function(t,e,n){var i=n(63603),r=n(18993),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},28927:function(t,e,n){n(96311).__DEV__;var i=n(69008),r=i.createHashMap,a=(i.retrieve,i.each);function o(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=r(),this.categoryAxisMap=r(),this.firstCategoryDimIndex=null}var s={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),l(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),l(a)&&(i.set("y",a),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),l(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),l(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),l(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();a(o.parallelAxisIndex,(function(t,a){var o=r.getComponent("parallelAxis",t),u=s[a];n.set(u,o),l(o)&&null==e.firstCategoryDimIndex&&(i.set(u,o),e.firstCategoryDimIndex=a)}))}};function l(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=function(t){var e=t.get("coordinateSystem"),n=new o(e),i=s[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}},5932:function(t,e,n){var i=n(69008),r=i.each,a=i.isArray,o=i.isObject,s=n(30090),l=n(90830).normalizeToArray;function u(t){r(c,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var c=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(t,e){s(t,e),t.series=l(t.series),r(t.series,(function(t){if(o(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=function(t,e){e=e.split(",");for(var n=t,i=0;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n1)"string"==typeof o?l=e[o]:"function"==typeof o&&(l=o),l&&t.setData(a.downSample(a.mapDimension(c.dim),1/p,l,n))}}}}},61619:function(t,e,n){var i=n(69008),r=i.createHashMap,a=i.each;function o(t){a(t,(function(e,n){var i=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,(function(a,l,u){var c,h,d=o.get(e.stackedDimension,u);if(isNaN(d))return r;s?h=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var p=NaN,f=n-1;f>=0;f--){var g=t[f];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,p=m;break}}}return i[0]=d,i[1]=p,i}));o.hostModel.setData(l),e.data=l}))}t.exports=function(t){var e=r();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),e.each(o)}},48149:function(t,e,n){var i=n(86957),r=n(17010),a=n(22510),o=n(74943),s=i.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;n[0]1e4)return[];var l=a.length?a[a.length-1]:i[1];return n[1]>l&&(t?a.push(s(l+e,r)):a.push(n[1])),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),a=1;ar[0]&&h0;)i*=10;var r=[a.round(d(e[0]/i)*i),a.round(h(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return c(t,u(e))}i.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=f(e)/f(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},43712:function(t,e,n){var i=n(69008),r=n(22510),a=n(82139),o=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new a({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s};var l=s;t.exports=l},22510:function(t,e,n){var i=n(77305);function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},79262:function(t,e,n){var i=n(69008),r=n(86957),a=n(17010),o=n(74943),s=n(48149),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=6e4,p=36e5,f=864e5,g=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return a.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=f,e[1]+=f),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-f}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=r.round(c(e[0]/i)*i)),t.fixMax||(e[1]=r.round(u(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,a=i[1]-i[0],s=a/t;null!=e&&sn&&(s=n);var l=m.length,h=function(t,e,n,i){for(;n>>1;t[r][1]t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,n,o){var l={},u=t[1]-t[0],c=l.interval=i.nice(u/e,!0);null!=n&&co&&(c=l.interval=o);var h=l.intervalPrecision=a(c);return s(l.niceTickExtent=[r(Math.ceil(t[0]/c)*c,h),r(Math.floor(t[1]/c)*c,h)],t),l},e.getIntervalPrecision=a,e.fixExtent=s},69569:function(t,e,n){var i=n(69008),r=i.each,a=i.map,o=i.isFunction,s=i.createHashMap,l=i.noop,u=n(222).createTask,c=n(58744).getUID,h=n(77265),d=n(6900),p=n(90830).normalizeToArray;function f(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=s()}var g=f.prototype;function m(t,e,n,i,a){var o;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{},r(e,(function(e,r){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(a,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),v(c,i);var p=t.getPerformArgs(c,a.block);d.each((function(t){t.perform(p)})),o|=c.perform(p)}else u&&u.each((function(r,l){s(a,r)&&r.dirty();var u=t.getPerformArgs(r,a.block);u.skip=!e.performRawSeries&&n.isSeriesFiltered(r.context.model),v(r,i),o|=r.perform(u)}))}})),t.unfinished|=o}g.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},g.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,a=i&&i.modDataCount;return{step:r,modBy:null!=a?Math.ceil(a/r):null,modDataCount:a}}},g.getPipeline=function(t){return this._pipelineMap.get(t)},g.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:o,large:a}},g.restorePipelines=function(t){var e=this,n=e._pipelineMap=s();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),A(e,t,t.dataTask)}))},g.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,(function(i){var a=t.get(i.uid)||t.set(i.uid,[]);i.reset&&function(t,e,n,i,r){var a=n.seriesTaskMap||(n.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(c):o?i.eachRawSeriesByType(o,c):l&&l(i,r).each(c);function c(n){var o=n.uid,s=a.get(o)||a.set(o,u({plan:w,reset:S,count:T}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},A(t,n,s)}var h=t._pipelineMap;a.each((function(t,e){h.get(e)||(t.dispose(),a.removeKey(e))}))}(this,i,a,e,n),i.overallReset&&function(t,e,n,i,a){var o=n.overallTask=n.overallTask||u({reset:y});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),c=e.seriesType,h=e.getTargetSeries,d=!0,p=e.modifyOutputEnd;c?i.eachRawSeriesByType(c,f):h?h(i,a).each(f):(d=!1,r(i.getSeries(),f));function f(e){var n=e.uid,i=l.get(n);i||(i=l.set(n,u({reset:x,onDirty:b})),o.dirty()),i.context={model:e,overallProgress:d,modifyOutputEnd:p},i.agent=o,i.__block=d,A(t,e,i)}var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}(this,i,a,e,n)}),this)},g.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,A(this,e,r)},g.performDataProcessorTasks=function(t,e){m(this,this._dataProcessorHandlers,t,e,{block:!0})},g.performVisualTasks=function(t,e,n){m(this,this._visualHandlers,t,e,n)},g.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},g.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var v=g.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function y(t){t.overallReset(t.ecModel,t.api,t.payload)}function x(t,e){return t.overallProgress&&_}function _(){this.agent.dirty(),this.getDownstream().dirty()}function b(){this.agent&&this.agent.dirty()}function w(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function S(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=p(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,(function(t,e){return I(e)})):M}var M=I(0);function I(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a=1)&&(t=1),t}s===c&&u===h||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),r(n)&&!n.length&&(n=null));t._progress=n,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),i}(this,i)),this._modBy=c,this._modDataCount=h;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,g=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(o||f1&&i>0?s:o}};return a;function o(){return e=t?null:a=0&&n.push(t)})),n}(s.originalDeps=e(o),t);s.entryCount=l.length,0===s.entryCount&&a.push(o),i.each(l,(function(t){i.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(r,t);i.indexOf(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:a}}(r),l=s.graph,u=s.noEntryList,c={};for(i.each(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(a.call(o,h,d.originalDeps.slice()),delete c[h]),i.each(d.successor,p?g:f)}i.each(c,(function(){throw new Error("Circle dependency may exists")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}},17010:function(t,e,n){var i=n(69008),r=n(63603),a=n(86957);var o=i.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"};function u(t){return null==t?"":(t+"").replace(s,(function(t,e){return l[e]}))}var c=["a","b","c","d","e","f","g"],h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e){return"0000".substr(0,e-(t+="").length)+t}var p=r.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=o,e.encodeHTML=u,e.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o':'':{renderMode:a,content:"{marker"+o+"|} ",style:{color:n}}:""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=a.parseDate(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),u=i["get"+r+"Hours"](),c=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),p=i["get"+r+"Milliseconds"]();return t=t.replace("MM",d(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",d(l,2)).replace("d",l).replace("hh",d(u,2)).replace("h",u).replace("mm",d(c,2)).replace("m",c).replace("ss",d(h,2)).replace("s",h).replace("SSS",d(p,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=p,e.getTextBoundingRect=function(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,n,i,a,o,s,l){return r.getBoundingRect(t,e,n,i,a,l,o,s)},e.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location=t}else window.open(t,e)}},18993:function(t,e,n){var i=n(69008),r=n(6226),a=n(83720),o=n(26237),s=n(47764),l=n(60397),u=n(74330),c=n(89444);e.Image=c;var h=n(27796);e.Group=h;var d=n(99999);e.Text=d;var p=n(67679);e.Circle=p;var f=n(63477);e.Sector=f;var g=n(71908);e.Ring=g;var m=n(66751);e.Polygon=m;var v=n(70391);e.Polyline=v;var y=n(74639);e.Rect=y;var x=n(330);e.Line=x;var _=n(53663);e.BezierCurve=_;var b=n(17745);e.Arc=b;var w=n(87500);e.CompoundPath=w;var S=n(57123);e.LinearGradient=S;var M=n(29683);e.RadialGradient=M;var I=n(9806);e.BoundingRect=I;var T=n(61465);e.IncrementalDisplayable=T;var A=n(26020),C=Math.max,D=Math.min,L={},P="emphasis",k="normal",O=1,E={},R={};function N(t,e){R[t]=e}function z(t,e,n,i){var a=r.createFromString(t,e);return n&&("center"===i&&(n=B(n,a.getBoundingRect())),G(a,n)),a}function B(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var V=r.mergePath;function G(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var F=A.subPixelOptimize;function H(t){return null!=t&&"none"!==t}var W=i.createHashMap(),U=0;function Z(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,a=t.style;i&&(a=(r=n.addHover(t)).style),st(a),i||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(r),a.extendFrom(e),j(a,e,"fill"),j(a,e,"stroke"),ot(a),i||(t.dirty(!1),t.z2+=1)}}}function j(t,e,n){!H(e[n])&&H(t[n])&&(t[n]=function(t){if("string"!=typeof t)return t;var e=W.get(t);return e||(e=a.lift(t,-.1),U<1e4&&(W.set(t,e),U++)),e}(t[n]))}function Y(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(st(n),t.setStyle(i),ot(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r==1&&(t.z2=r)}}function X(t,e,n){var i,r=k,a=k;t.__highlighted&&(r=P,i=!0),e(t,n),t.__highlighted&&(a=P,i=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,n)})),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function q(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,Y(t),Z(t))}function K(t){!tt(this,t)&&!this.__highByOuter&&X(this,Z)}function $(t){!tt(this,t)&&!this.__highByOuter&&X(this,Y)}function J(t){this.__highByOuter|=1<<(t||0),X(this,Z)}function Q(t){!(this.__highByOuter&=~(1<<(t||0)))&&X(this,Y)}function tt(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function et(t,e){var n=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",K)[i]("mouseout",$),t[i]("emphasis",J)[i]("normal",Q),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function nt(t,e,n,r,a){return it(t,e,r,a),n&&i.extend(t,n),t}function it(t,e,n,r){if((n=n||L).isRectText){var a;n.getTextPosition?a=n.getTextPosition(e,r):"outside"===(a=e.getShallow("position")||(r?null:"inside"))&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=i.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||L).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}(e);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);rt(s[h]={},d,u,n,r)}return t.rich=s,rt(t,e,u,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function rt(t,e,n,r,a,o){n=!a&&n||L,t.textFill=at(e.getShallow("color"),r)||n.color,t.textStroke=at(e.getShallow("textBorderColor"),r)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),a||(o&&(t.insideRollbackOpt=r,ot(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=at(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=at(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function at(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function ot(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=!1!==o&&(!0===o||a&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function st(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function lt(t,e,n,i,r,a){if("function"==typeof r&&(a=r,r=null),i&&i.isAnimationEnabled()){var o=t?"Update":"",s=i.getShallow("animationDuration"+o),l=i.getShallow("animationEasing"+o),u=i.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function ut(t,e,n,i,r){lt(!0,t,e,n,i,r)}function ct(t,e,n){return e&&!i.isArrayLike(e)&&(e=u.getLocalTransform(e)),n&&(e=o.invert([],e)),s.applyTransform([],t,e)}function ht(t,e,n,i,r,a,o,s){var l,u=n-t,c=i-e,h=o-r,d=s-a,p=dt(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-a,m=dt(f,g,u,c)/p;if(m<0||m>1)return!1;var v=dt(f,g,h,d)/p;return!(v<0||v>1)}function dt(t,e,n,i){return t*i-n*e}N("circle",p),N("sector",f),N("ring",g),N("polygon",m),N("polyline",v),N("rect",y),N("line",x),N("bezierCurve",_),N("arc",b),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return r.extendFromString(t,e)},e.registerShape=N,e.getShapeClass=function(t){if(R.hasOwnProperty(t))return R[t]},e.makePath=z,e.makeImage=function(t,e,n){var i=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(B(e,r))}}});return i},e.mergePath=V,e.resizePath=G,e.subPixelOptimizeLine=function(t){return A.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return A.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=F,e.setElementHoverStyle=q,e.setHoverStyle=function(t,e){et(t,!0),X(t,q,e)},e.setAsHighDownDispatcher=et,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=E[t];return null==e&&O<=32&&(e=E[t]=O++),e},e.setLabelStyle=function(t,e,n,r,a,o,s){var l,u=(a=a||L).labelFetcher,c=a.labelDataIndex,h=a.labelDimIndex,d=a.labelProp,p=n.getShallow("show"),f=r.getShallow("show");(p||f)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h,d)),null==l&&(l=i.isFunction(a.defaultText)?a.defaultText(c,a):a.defaultText));var g=p?l:null,m=f?i.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h,d):null,l):null;null==g&&null==m||(nt(t,n,o,a),nt(e,r,s,a,!0)),t.text=g,e.text=m},e.modifyLabelStyle=function(t,e,n){var r=t.style;e&&(st(r),t.setStyle(e),ot(r)),r=t.__hoverStl,n&&r&&(st(r),i.extend(r,n),ot(r))},e.setTextStyle=nt,e.setText=function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,it(t,e,r,i)},e.getFont=function(t,e){var n=e&&e.getModel("textStyle");return i.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=ut,e.initProps=function(t,e,n,i,r){lt(!1,t,e,n,i,r)},e.getTransform=function(t,e){for(var n=o.identity([]);t&&t!==e;)o.mul(n,t.getLocalTransform(),n),t=t.parent;return n},e.applyTransform=ct,e.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=ct(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},e.groupTransition=function(t,e,n,r){if(t&&e){var a,o=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=l(t);t.attr(l(e)),ut(t,i,n,t.dataIndex)}}}))}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return i.map(t,(function(t){var n=t[0];n=C(n,e.x),n=D(n,e.x+e.width);var i=t[1];return i=C(i,e.y),[n,i=D(i,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var n=C(t.x,e.x),i=D(t.x+t.width,e.x+e.width),r=C(t.y,e.y),a=D(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}},e.createIcon=function(t,e,n){var r=(e=i.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),i.defaults(r,n),new c(e)):z(t.replace("path://",""),e,n,"center")},e.linePolygonIntersect=function(t,e,n,i,r){for(var a=0,o=r[r.length-1];ai||l.newline?(a=0,c=m,o+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);(h=o+v)>r||l.newline?(a+=s+n,o=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+n:o=h+n)}))}var h=c,d=i.curry(c,"vertical"),p=i.curry(c,"horizontal");function f(t,e,n){n=o.normalizeCssArray(n||0);var i=e.width,s=e.height,l=a(t.left,i),u=a(t.top,s),c=a(t.right,i),h=a(t.bottom,s),d=a(t.width,i),p=a(t.height,s),f=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=s-h-f-u),null!=m&&(isNaN(d)&&isNaN(p)&&(m>i/s?d=.8*i:p=.8*s),isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-p-f),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-p/2-n[0];break;case"bottom":u=s-p-f}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=s-f-u-(h||0));var v=new r(l+n[3],u+n[0],d,p);return v.margin=n,v}function g(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=h,e.vbox=d,e.hbox=p,e.getAvailableSize=function(t,e,n){var i=e.width,r=e.height,s=a(t.x,i),l=a(t.y,r),u=a(t.x2,i),c=a(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}},e.getLayoutRect=f,e.positionElement=function(t,e,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(c=c.clone()).applyTransform(h)}e=f(i.defaults({width:c.width,height:c.height},e),n,a);var d=t.position,p=s?e.x-c.x:0,g=l?e.y-c.y:0;t.attr("position","raw"===u?[p,g]:[d[0]+p,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=l(u[0],0),o=l(u[1],1);function l(n,i){var a={},o=0,l={},u=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(a[t]=l[t]=e[t]),h(a,t)&&o++,h(l,t)&&u++})),r[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var d=0;d=n.length&&n.push({option:t})}})),n},e.makeIdAndName=function(t){var e=i.createHashMap();a(t,(function(t,n){var i=t.exist;i&&e.set(i.id,t)})),a(t,(function(t,n){var r=t.option;i.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,n){var i=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":i?i.name:l+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf(l))},e.isIdInner=c,e.compressBatches=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i=10&&e++,e}e.linearMap=function(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var r=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var a=Math.pow(10,n),o=i.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=i.map(o,(function(t){return Math.floor(t)})),u=i.reduce(l,(function(t,e){return t+e}),0),c=i.map(o,(function(t,e){return t-l[e]}));uh&&(h=c[p],d=p);++l[d],c[d]=0,++u}return l[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t=-20?+t.toFixed(n<0?-n:0):t},e.quantile=function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r},e.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0}},79330:function(t,e,n){var i=(0,n(18993).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,o,-Math.PI+l,l,!c)),t.arc(n,i,a,l,u,!c),t.moveTo(p*a+n,f*a+i),t.arc(p*s+n,f*s+i,o,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(n,i,r,u,l,c),t.moveTo(h*r+n,f*r+i)),t.closePath()}});t.exports=i},22868:function(t,e,n){var i=n(69008),r=n(18993),a=n(9806),o=n(63603).calculateTextPosition,s=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),l=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),p=.6*o,f=.7*o;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),c=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),h={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:l,pin:u,arrow:c,triangle:s},d={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},p={};i.each(h,(function(t,e){p[e]=new t}));var f=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=o(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=p[i];r||(r=p[i="rect"]),d[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function g(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,n,i,o,s,l){var u,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,n,i,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,n,i,o),l?"center":"cover"):new f({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=c,u.setColor=g,u.setColor(s),u}},83209:function(t,e){var n="\0__throttleOriginMethod",i="\0__throttleRate",r="\0__throttleType";function a(t,e,n){var i,r,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(a,o||[])}e=e||0;var d=function(){i=(new Date).getTime(),a=this,o=arguments;var t=s||e,d=s||n;s=null,r=i-(d?l:u)-t,clearTimeout(c),d?c=setTimeout(h,t):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}e.throttle=a,e.createOrUpdate=function(t,e,o,s){var l=t[e];if(l){var u=l[n]||l,c=l[r];if(l[i]!==o||c!==s){if(null==o||!s)return t[e]=u;(l=t[e]=a(u,o,"debounce"===s))[n]=u,l[r]=s,l[i]=o}return l}},e.clear=function(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])}},68880:function(t,e,n){var i=n(69008).each,r=n(27796),a=n(58744),o=n(77305),s=n(90830),l=n(18993),u=n(222).createTask,c=n(13861),h=s.makeInner(),d=c();function p(){this.group=new r,this.uid=a.getUID("viewChart"),this.renderTask=u({plan:v,reset:y}),this.renderTask.context={view:this}}p.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){m(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){m(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var f=p.prototype;function g(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!l.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,n){return t().getItemVisual(e,n)}};t.exports=e},5660:function(t,e,n){var i=n(69008),r=n(83720),a=n(86957).linearMap,o=i.each,s=i.isObject,l=-1,u=function(t){var e=t.mappingMethod,n=t.type,r=this.option=i.clone(t);this.type=n,this.mappingMethod=e,this._normalizeData=_[e];var a=c[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._doMap=a._doMap[e],"piecewise"===e?(h(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,i.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===e?r.categories?function(t){var e=t.categories,n=t.visual,r=t.categoryMap={};if(o(e,(function(t,e){r[t]=e})),!i.isArray(n)){var a=[];i.isObject(n)?o(n,(function(t,e){var n=r[e];a[null!=n?n:l]=t})):a[-1]=n,n=x(t,a)}for(var s=e.length-1;s>=0;s--)null==n[s]&&(delete r[e[s]],e.pop())}(r):h(r,!0):(i.assert("linear"!==e||r.dataExtent),h(r))};u.prototype={constructor:u,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return i.bind(this._normalizeData,this)}};var c=u.visualHandlers={color:{applyVisual:f("color"),getColorMapper:function(){var t=this.option;return i.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),g.call(this,t)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=r.fastLerp(e,t.parsedVisual,i),a?i:r.stringify(i,"rgba")},this)},_doMap:{linear:function(t){return r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")},category:g,piecewise:function(t,e){var n=y.call(this,e);return null==n&&(n=r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:m}},colorHue:d((function(t,e){return r.modifyHSL(t,e)})),colorSaturation:d((function(t,e){return r.modifyHSL(t,null,e)})),colorLightness:d((function(t,e){return r.modifyHSL(t,null,null,e)})),colorAlpha:d((function(t,e){return r.modifyAlpha(t,e)})),opacity:{applyVisual:f("opacity"),_doMap:v([0,1])},liftZ:{applyVisual:f("liftZ"),_doMap:{linear:m,category:m,piecewise:m,fixed:m}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);if(i.isString(r))n("symbol",r);else if(s(r))for(var a in r)r.hasOwnProperty(a)&&n(a,r[a])},_doMap:{linear:p,category:g,piecewise:function(t,e){var n=y.call(this,e);return null==n&&(n=p.call(this,t)),n},fixed:m}},symbolSize:{applyVisual:f("symbolSize"),_doMap:v([0,1])}};function h(t,e){var n=t.visual,r=[];i.isObject(n)?o(n,(function(t){r.push(t)})):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),x(t,r)}function d(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:v([0,1])}}function p(t){var e=this.option.visual;return e[Math.round(a(t,[0,1],[0,e.length-1],!0))]||{}}function f(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function g(t){var e=this.option.visual;return e[this.option.loop&&t!==l?t%e.length:t]}function m(){return this.option.visual[0]}function v(t){return{linear:function(e){return a(e,t,this.option.visual,!0)},category:g,piecewise:function(e,n){var i=y.call(this,n);return null==i&&(i=a(e,t,this.option.visual,!0)),i},fixed:m}}function y(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[u.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function x(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=i.map(e,(function(t){return r.parse(t)}))),e}var _={linear:function(t){return a(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=u.findPieceIndex(t,e,!0);if(null!=n)return a(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?l:e},fixed:i.noop};function b(t,e,n){return t?e<=n:e1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:o}),e.eachSeries((function(t,e){if(e1?"multiple":"single")+".";n=p(n=f(i?s+"withName":s+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(y=t.subType,r.series.typeNames[y]||"自定义图")});var u=t.getData();window.data=u,u.count()>l?n+=p(f("data.partialData"),{displayCnt:l}):n+=f("data.allData");for(var h=[],g=0;g1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,a=new Array(r),o=0;oi.getWidth()||n<0||n>i.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(d,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=g(this,e,n),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=i?{x:e,y:n}:this.findHover(e,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,a=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:c}}(e,t,n);i&&(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(e,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=f(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==u)){r.target=i[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){p.prototype[t]=function(e){var n,i,a=e.zrX,o=e.zrY,s=g(this,a,o);if("mouseup"===t&&s||(i=(n=this.findHover(a,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),i.mixin(p,o),i.mixin(p,a);var m=p;t.exports=m},12299:function(t,e,n){var i=n(69008),r=n(69893).devicePixelRatio,a=n(7255),o=n(55620);function s(){return!1}function l(t,e,n){var r=i.createCanvas(),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=o*n,r}var u=function(t,e,n){var a;n=n||r,"string"==typeof t?a=l(t,e,n):i.isObject(t)&&(t=(a=t).id),this.id=t,this.dom=a;var o=a.style;o&&(a.onselectstart=s,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o.padding=0,o.margin=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__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=l("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n,i=this.dom,r=this.ctx,s=i.width,l=i.height,u=(e=e||this.clearColor,this.motionBlur&&!t),c=this.lastFrameAlpha,h=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h)),r.clearRect(0,0,s,l),e&&"transparent"!==e)&&(e.colorStops?(n=e.__canvasGradient||a.getGradient(r,e,{x:0,y:0,width:s,height:l}),e.__canvasGradient=n):e.image&&(n=o.prototype.getCanvasPattern.call(e,r)),r.save(),r.fillStyle=n||e,r.fillRect(0,0,s,l),r.restore());if(u){var d=this.domBack;r.save(),r.globalAlpha=c,r.drawImage(d,0,0,s,l),r.restore()}}};var c=u;t.exports=c},44401:function(t,e,n){var i=n(69893).devicePixelRatio,r=n(69008),a=n(32445),o=n(9806),s=n(78083),l=n(12299),u=n(52731),c=n(89444),h=n(12973),d=1e5,p=314159,f=.01;function g(t){return parseInt(t,10)}var m=new o(0,0,0,0),v=new o(0,0,0,0);var y=function(t,e,n){this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i,this._singleCanvas=a,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],u=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,a){var c=t.width,h=t.height;null!=n.width&&(c=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,t.width=c*this.dpr,t.height=h*this.dpr,this._width=c,this._height=h;var d=new l(t,this,this.dpr);d.__builtin__=!0,d.initContext(),u[314159]=d,d.zlevel=p,s.push(p),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}l.__drawIndex=v,l.__drawIndex0&&t>i[0]){for(s=0;st);s++);o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else a("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i0?f:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+l.id),l!==r&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,e(n),r=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}e(n),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;for(var i=0;i=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},75113:function(t,e,n){var i=n(69008),r=n(92462).Dispatcher,a=n(52731),o=n(91807),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n.5?e:t}function h(t,e,n,i,r){var a=t.length;if(1===r)for(var o=0;or)t.length=r;else for(var a=i;a=0&&!(A[n]<=e);n--);n=Math.min(n,_-2)}else{for(n=G;n<_&&!(A[n]>e);n++);n=Math.min(n-1,_-2)}G=n,F=e;var i=A[n+1]-A[n];if(0!==i)if(R=(e-A[n])/i,x)if(z=C[n],N=C[0===n?n:n-1],B=C[n>_-2?_-1:n+1],V=C[n>_-3?_-1:n+2],S)f(N,z,B,V,R,R*R,R*R*R,m(t,s),T);else{if(M)r=f(N,z,B,V,R,R*R,R*R*R,H,1),r=v(H);else{if(I)return c(z,B,R);r=g(N,z,B,V,R,R*R,R*R*R)}y(t,s,r)}else if(S)h(C[n],C[n+1],R,m(t,s),T);else{var r;if(M)h(C[n],C[n+1],R,H,1),r=v(H);else{if(I)return c(C[n],C[n+1],R);r=u(C[n],C[n+1],R)}y(t,s,r)}},ondestroy:n});return e&&"spline"!==e&&(W.easing=e),W}}}var x=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||s,this._setter=i||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:m(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;tn||d+ho&&(o+=r);var f=Math.atan2(c,u);return f<0&&(f+=r),f>=a&&f<=o||f+r>=a&&f+r<=o}},73989:function(t,e,n){var i=n(22576);e.containStroke=function(t,e,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;return!(h>e+d&&h>r+d&&h>o+d&&h>l+d||ht+d&&c>n+d&&c>a+d&&c>s+d||ce+s&&o>i+s||ot+s&&a>n+s||ae&&c>i&&c>a&&c>s||c1&&(h=void 0,h=f[0],f[0]=f[1],f[1]=h),g=u.cubicAt(e,i,a,s,f[0]),y>1&&(m=u.cubicAt(e,i,a,s,f[1]))),2===y?_e&&s>i&&s>a||s=0&&c<=1){for(var h=0,d=u.quadraticAt(e,i,a,c),f=0;fn||s<-n)return 0;var u=Math.sqrt(n*n-s*s);p[0]=-u,p[1]=u;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c%d<1e-4){i=0,r=d;var h=a?1:-1;return o>=p[0]+t&&o<=p[1]+t?h:0}if(a){u=i;i=l(r),r=l(u)}else i=l(i),r=l(r);i>r&&(r+=d);for(var f=0,g=0;g<2;g++){var m=p[g];if(m+t>o){var v=Math.atan2(s,m);h=a?1:-1;v<0&&(v=d+v),(v>=i&&v<=r||v+d>=i&&v+d<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),f+=h)}}return f}function y(t,e,n,i,l){for(var u,d,p=0,f=0,y=0,x=0,_=0,b=0;b1&&(n||(p+=c(f,y,x,_,i,l))),1===b&&(x=f=t[b],_=y=t[b+1]),w){case h.M:f=x=t[b++],y=_=t[b++];break;case h.L:if(n){if(r.containStroke(f,y,t[b],t[b+1],e,i,l))return!0}else p+=c(f,y,t[b],t[b+1],i,l)||0;f=t[b++],y=t[b++];break;case h.C:if(n){if(a.containStroke(f,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],e,i,l))return!0}else p+=g(f,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],i,l)||0;f=t[b++],y=t[b++];break;case h.Q:if(n){if(o.containStroke(f,y,t[b++],t[b++],t[b],t[b+1],e,i,l))return!0}else p+=m(f,y,t[b++],t[b++],t[b],t[b+1],i,l)||0;f=t[b++],y=t[b++];break;case h.A:var S=t[b++],M=t[b++],I=t[b++],T=t[b++],A=t[b++],C=t[b++];b+=1;var D=1-t[b++],L=Math.cos(A)*I+S,P=Math.sin(A)*T+M;b>1?p+=c(f,y,L,P,i,l):(x=L,_=P);var k=(i-S)*T/I+S;if(n){if(s.containStroke(S,M,T,A,A+C,D,e,k,l))return!0}else p+=v(S,M,T,A,A+C,D,k,l);f=Math.cos(A+C)*I+S,y=Math.sin(A+C)*T+M;break;case h.R:x=f=t[b++],_=y=t[b++];L=x+t[b++],P=_+t[b++];if(n){if(r.containStroke(x,_,L,_,e,i,l)||r.containStroke(L,_,L,P,e,i,l)||r.containStroke(L,P,x,P,e,i,l)||r.containStroke(x,P,x,_,e,i,l))return!0}else p+=c(L,_,L,P,i,l),p+=c(x,P,x,_,i,l);break;case h.Z:if(n){if(r.containStroke(f,y,x,_,e,i,l))return!0}else p+=c(f,y,x,_,i,l);f=x,y=_}}return n||(u=y,d=_,Math.abs(u-d)<1e-4)||(p+=c(f,y,x,_,i,l)||0),0!==p}e.contain=function(t,e,n){return y(t,0,!1,e,n)},e.containStroke=function(t,e,n,i){return y(t,e,!0,n,i)}},59049:function(t,e,n){var i=n(55041);function r(t,e){return Math.abs(t-e)<1e-8}e.contain=function(t,e,n){var a=0,o=t[0];if(!o)return!1;for(var s=1;se+c&&u>r+c&&u>o+c||ut+c&&l>n+c&&l>a+c||l5e3&&(d=0,h={}),d++,h[n]=r,r}function v(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function y(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function x(t,e,n){var i=e.textPosition,r=e.textDistance,a=n.x,o=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,c="left",h="top";switch(i){case"left":a-=r,o+=u,c="right",h="middle";break;case"right":a+=r+l,o+=u,h="middle";break;case"top":a+=l/2,o-=r,c="center",h="bottom";break;case"bottom":a+=l/2,o+=s+r,c="center";break;case"inside":a+=l/2,o+=u,c="center",h="middle";break;case"insideLeft":a+=r,o+=u,h="middle";break;case"insideRight":a+=l-r,o+=u,c="right",h="middle";break;case"insideTop":a+=l/2,o+=r,c="center";break;case"insideBottom":a+=l/2,o+=s-r,c="center",h="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,c="right";break;case"insideBottomLeft":a+=r,o+=s-r,h="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,c="right",h="bottom"}return(t=t||{}).x=a,t.y=o,t.textAlign=c,t.textVerticalAlign=h,t}function _(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=b(e,n,i,r);for(var o=0,s=a.length;o=a;u++)o-=a;var c=m(n,e);return c>o&&(n="",c=0),o=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=o,i.containerWidth=t,i}function w(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=m(t,i);if(a<=n)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?S(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;a=m(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function S(t,e,n,i){for(var r=0,a=0,o=t.length;ah)t="",o=[];else if(null!=d)for(var p=b(d-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,g=o.length;fa&&C(n,t.substring(a,o)),C(n,i[2],i[1]),a=p.lastIndex}ay)return{lines:[],width:0,height:0};z.textWidth=m(z.text,D);var P=T.textWidth,k=null==P||"auto"===P;if("string"==typeof P&&"%"===P.charAt(P.length-1))z.percentWidth=P,d.push(z),P=0;else{if(k){P=z.textWidth;var O=T.textBackgroundColor,E=O&&O.image;E&&(E=r.findExistImage(E),r.isImageReady(E)&&(P=Math.max(P,E.width*L/E.height)))}var R=A?A[1]+A[3]:0;P+=R;var N=null!=v?v-S:null;null!=N&&Ne&&a>i||ar?o:0}},27796:function(t,e,n){var i=n(69008),r=n(35165),a=n(9806),o=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,a=i.indexOf(r,t);return a<0||(r.splice(a,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(t){return new d(t.x,t.y,t.width,t.height)};var p=d;t.exports=p},44420:function(t,e,n){var i=n(92462),r=function(){this._track=[]};function a(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}r.prototype={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o1&&r&&r.length>1){var s=a(r)/a(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},s=r;t.exports=s},52498:function(t){var e=function(){this.head=null,this.tail=null,this._len=0},n=e.prototype;n.insert=function(t){var e=new i(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new e,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},a=r.prototype;a.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},a.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}};var o=r;t.exports=o},94615:function(t,e,n){var i=n(22576),r=n(47764),a=n(16254),o=n(9806),s=n(69893).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],p=Math.min,f=Math.max,g=Math.cos,m=Math.sin,v=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=y(n/s/t)||0,this._uy=y(n/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(l.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(l.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=g(r)*n+t,this._yi=m(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&g<=t||c<0&&g>=t||0===c&&(h>0&&m<=e||h<0&&m>=e);)g+=c*(n=o[i=this._dashIdx]),m+=h*n,this._dashIdx=(i+1)%y,c>0&&gl||h>0&&mu||s[i%2?"moveTo":"lineTo"](c>=0?p(g,t):f(g,t),h>=0?p(m,e):f(m,e));c=g-t,h=m-e,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(t,e,n,r,a,o){var s,l,u,c,h,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,y=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=f.length,S=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=x(m,t,n,a,s+.1)-x(m,t,n,a,s),u=x(y,e,r,o,s+.1)-x(y,e,r,o,s),_+=v(l*l+u*u);for(;bp);b++);for(s=(S-p)/_;s<=1;)c=x(m,t,n,a,s),h=x(y,e,r,o,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=f[b]/_,b=(b+1)%w;b%2!=0&&g.lineTo(a,o),l=a-c,u=o-h,this._dashOffset=-v(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,p=0;pu||y(o-r)>c||d===h-1)&&(t.lineTo(a,o),i=a,r=o);break;case l.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case l.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case l.A:var f=s[d++],v=s[d++],x=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],I=x>_?x:_,T=x>_?1:x/_,A=x>_?_/x:1,C=b+w;Math.abs(x-_)>.001?(t.translate(f,v),t.rotate(S),t.scale(T,A),t.arc(0,0,I,b,C,1-M),t.scale(1/T,1/A),t.rotate(-S),t.translate(-f,-v)):t.arc(f,v,I,b,C,1-M),1===d&&(e=g(b)*x+f,n=m(b)*_+v),i=g(C)*x+f,r=m(C)*_+v;break;case l.R:e=i=s[d],n=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:t.closePath(),i=e,r=n}}}},_.CMD=l;var b=_;t.exports=b},9262:function(t){function e(){}function n(t,e,n,i){for(var r=0,a=e.length,o=0,s=0;r=a&&c+1>=o){for(var h=[],d=0;d=a&&d+1>=o)return n(r,l.components,e,t);u[i]=l}else u[i]=void 0}var g;s++}for(;s<=l;){var f=p();if(f)return f}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,a=n.length,o=t.newPos,s=o-i,l=0;o+11e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=l(a)*n+t,c[1]=s(a)*r+e,h[0]=l(o)*n+t,h[1]=s(o)*r+e,m(f,c,h),v(g,c,h),(a%=u)<0&&(a+=u),(o%=u)<0&&(o+=u),a>o&&!p?o+=u:aa&&(d[0]=l(_)*n+t,d[1]=s(_)*r+e,m(f,d,f),v(g,d,g))}},22576:function(t,e,n){var i=n(47764),r=i.create,a=i.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,c=s(3),h=1/3,d=r(),p=r(),f=r();function g(t){return t>-1e-8&&tl||t<-1e-8}function v(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function y(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}e.cubicAt=v,e.cubicDerivativeAt=function(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)},e.cubicRootAt=function(t,e,n,i,r,a){var l=i+3*(e-n)-t,u=3*(n-2*e+t),d=3*(e-t),p=t-r,f=u*u-3*l*d,m=u*d-9*l*p,v=d*d-3*u*p,y=0;if(g(f)&&g(m)){if(g(u))a[0]=0;else(D=-d/u)>=0&&D<=1&&(a[y++]=D)}else{var x=m*m-4*f*v;if(g(x)){var _=m/f,b=-_/2;(D=-u/l+_)>=0&&D<=1&&(a[y++]=D),b>=0&&b<=1&&(a[y++]=b)}else if(x>0){var w=s(x),S=f*u+1.5*l*(-m+w),M=f*u+1.5*l*(-m-w);(D=(-u-((S=S<0?-o(-S,h):o(S,h))+(M=M<0?-o(-M,h):o(M,h))))/(3*l))>=0&&D<=1&&(a[y++]=D)}else{var I=(2*f*u-3*l*m)/(2*s(f*f*f)),T=Math.acos(I)/3,A=s(f),C=Math.cos(T),D=(-u-2*A*C)/(3*l),L=(b=(-u+A*(C+c*Math.sin(T)))/(3*l),(-u+A*(C-c*Math.sin(T)))/(3*l));D>=0&&D<=1&&(a[y++]=D),b>=0&&b<=1&&(a[y++]=b),L>=0&&L<=1&&(a[y++]=L)}}return y},e.cubicExtrema=function(t,e,n,i,r){var a=6*n-12*e+6*t,o=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(g(o)){if(m(a))(h=-l/a)>=0&&h<=1&&(r[u++]=h)}else{var c=a*a-4*o*l;if(g(c))r[0]=-a/(2*o);else if(c>0){var h,d=s(c),p=(-a-d)/(2*o);(h=(-a+d)/(2*o))>=0&&h<=1&&(r[u++]=h),p>=0&&p<=1&&(r[u++]=p)}}return u},e.cubicSubdivide=function(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=i},e.cubicProjectPoint=function(t,e,n,i,r,o,l,c,h,g,m){var y,x,_,b,w,S=.005,M=1/0;d[0]=h,d[1]=g;for(var I=0;I<1;I+=.05)p[0]=v(t,n,r,l,I),p[1]=v(e,i,o,c,I),(b=a(d,p))=0&&b=0&&h<=1&&(r[u++]=h)}else{var c=o*o-4*a*l;if(g(c))(h=-o/(2*a))>=0&&h<=1&&(r[u++]=h);else if(c>0){var h,d=s(c),p=(-o-d)/(2*a);(h=(-o+d)/(2*a))>=0&&h<=1&&(r[u++]=h),p>=0&&p<=1&&(r[u++]=p)}}return u},e.quadraticExtremum=function(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i},e.quadraticSubdivide=function(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n},e.quadraticProjectPoint=function(t,e,n,i,r,o,l,c,h){var g,m=.005,v=1/0;d[0]=l,d[1]=c;for(var x=0;x<1;x+=.05){p[0]=y(t,n,r,x),p[1]=y(e,i,o,x),(S=a(d,p))=0&&S>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}(e,u),h=function(t,e,n){for(var i=n?"invTrans":"trans",a=e[i],o=e.srcCoords,s=!0,l=[],u=[],c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,p=h.left,f=h.top;l.push(p,f),s=s&&o&&p===o[d]&&f===o[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return s&&a?a:(e.srcCoords=l,e[i]=n?r(u,l):r(l,u))}(c,u,s);if(h)return h(t,n,o),!0}return!1}function l(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,n,i,r){return s(o,e,i,r,!0)&&s(t,n,o[0],o[1])},e.transformCoordWithViewport=s,e.isCanvasEl=l},12973:function(t){var e="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);a&&(n.edge=!0,n.version=a[1]);o&&(n.weChat=!0);return{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=e},92462:function(t,e,n){var i=n(37283);e.Dispatcher=i;var r=n(12973),a=n(12513),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!=typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function h(t,e,n,i){return n=n||{},i||!r.canvasSupported?d(t,e,n):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):d(t,e,n),n}function d(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return n.zrX=i-l.left,void(n.zrY=a-l.top)}if(s(c,t,i,a))return n.zrX=c[0],void(n.zrY=c[1])}n.zrX=n.zrY=0}function p(t){return t||window.event}var f=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=h,e.getNativeEvent=p,e.normalizeEvent=function(t,e,n){if(null!=(e=p(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&h(t,r,e,n)}else h(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&u.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e},e.addEventListener=function(t,e,n,i){l?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n,i){l?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)},e.stop=f,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},3702:function(t,e){var n=Math.log(2);function i(t,e,r,a,o,s){var l=a+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<=0;)r++;return r-e}function n(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=a:s=a+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function i(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){for(s=i-r;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o>>1);a(t,e[n+c])>0?o=c+1:l=c}return l}function r(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o>>1);a(t,e[n+c])<0?l=c:o=c+1}return l}function a(t,e){var n,a,o,s=7,l=0;n=t.length;var u=[];function c(n){var c=a[n],h=o[n],d=a[n+1],p=o[n+1];o[n]=h+p,n===l-3&&(a[n+1]=a[n+2],o[n+1]=o[n+2]),l--;var f=r(t[d],t,c,h,0,e);c+=f,0!==(h-=f)&&0!==(p=i(t[c+h-1],t,d,p,p-1,e))&&(h<=p?function(n,a,o,l){var c=0;for(c=0;c=7||g>=7);if(m)break;v<0&&(v=0),v+=2}if((s=v)<1&&(s=1),1===a){for(c=0;c=0;c--)t[g+c]=t[f+c];return void(t[p]=u[d])}var m=s;for(;;){var v=0,y=0,x=!1;do{if(e(u[d],t[h])<0){if(t[p--]=t[h--],v++,y=0,0==--a){x=!0;break}}else if(t[p--]=u[d--],y++,v=0,1==--l){x=!0;break}}while((v|y)=0;c--)t[g+c]=t[f+c];if(0===a){x=!0;break}}if(t[p--]=u[d--],1==--l){x=!0;break}if(0!==(y=l-i(t[h],u,0,l,l-1,e))){for(l-=y,g=(p-=y)+1,f=(d-=y)+1,c=0;c=7||y>=7);if(x)break;m<0&&(m=0),m+=2}(s=m)<1&&(s=1);if(1===l){for(g=(p-=a)+1,f=(h-=a)+1,c=a-1;c>=0;c--)t[g+c]=t[f+c];t[p]=u[d]}else{if(0===l)throw new Error;for(f=p-(l-1),c=0;c1;){var t=l-2;if(t>=1&&o[t-1]<=o[t]+o[t+1]||t>=2&&o[t-2]<=o[t]+o[t-1])o[t-1]o[t+1])break;c(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&o[t-1]=32;)e|=1&t,t>>=1;return t+e}(s);do{if((l=e(t,r,o,i))c&&(h=c),n(t,r,r+h,r+l,i),l=h}u.pushRun(r,l),u.mergeRuns(),s-=l,r+=l}while(0!==s);u.forceMergeRuns()}}}},69008:function(t,e){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},i={"[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},r=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,u=a.map,c=a.reduce,h={};function d(t){if(null==t||"object"!=typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!M(t)){e=[];for(var o=0,s=t.length;o1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},c.extend=function(t){var e=function(e){c.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in r.inherits(e,c),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(c,i);var h=c;t.exports=h},55620:function(t){var e=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};e.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=e;t.exports=n},29683:function(t,e,n){var i=n(69008),r=n(9193),a=function(t,e,n,i,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,r.call(this,i)};a.prototype={constructor:a},i.inherits(a,r);var o=a;t.exports=o},7255:function(t,e,n){var i=n(73238),r=n(23982).ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t,!1)};function s(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o,t.createLinearGradient(i,a,r,o)}function l(t,e,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*i+n.x,s=s*r+n.y,l*=a),t.createRadialGradient(o,s,0,o,s,l)}o.prototype={constructor:o,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(t,e,n){var o=this,s=n&&n.style,l=!s||t.__attrCachedBy!==r.STYLE_BIND;t.__attrCachedBy=r.STYLE_BIND;for(var u=0;u0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=("radial"===e.type?l:s)(t,e,n),r=e.colorStops,a=0;a=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var a=0;a=2){if(o&&"spline"!==o){var s=r(a,o,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=i(a,n)),t.moveTo(a[0][0],a[0][1]);u=1;for(var p=a.length;uu&&(n*=u/(o=n+i),i*=u/o),r+a>u&&(r*=u/(o=r+a),a*=u/o),i+r>c&&(i*=c/(o=i+r),r*=c/o),n+a>c&&(n*=c/(o=n+a),a*=c/o),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}},78581:function(t,e,n){var i=n(47764),r=i.min,a=i.max,o=i.scale,s=i.distance,l=i.add,u=i.clone,c=i.sub;t.exports=function(t,e,n,i){var h,d,p,f,g=[],m=[],v=[],y=[];if(i){p=[1/0,1/0],f=[-1/0,-1/0];for(var x=0,_=t.length;x<_;x++)r(p,p,t[x]),a(f,f,t[x]);r(p,p,i[0]),a(f,f,i[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(n)h=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(u(t[x]));continue}h=t[x-1],d=t[x+1]}c(m,d,h),o(m,m,e);var w=s(b,h),S=s(b,d),M=w+S;0!==M&&(w/=M,S/=M),o(v,m,-w),o(y,m,S);var I=l([],b,v),T=l([],b,y);i&&(a(I,I,p),r(I,I,f),a(T,T,p),r(T,T,f)),g.push(I),g.push(T)}return n&&g.push(g.shift()),g}},15842:function(t,e,n){var i=n(47764).distance;function r(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}t.exports=function(t,e){for(var n=t.length,a=[],o=0,s=1;sn-2?n-1:p+1],h=t[p>n-3?n-1:p+2]);var m=f*f,v=f*m;a.push([r(u[0],g[0],c[0],h[0],f,m,v),r(u[1],g[1],c[1],h[1],f,m,v)])}return a}},26020:function(t,e){var n=Math.round;function i(t,e,i){if(!e)return t;var r=n(2*t);return(r+n(e))%2==0?r/2:(r+(i?1:-1))/2}e.subPixelOptimizeLine=function(t,e,r){if(e){var a=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=a,t.x2=o,t.y1=s,t.y2=l;var u=r&&r.lineWidth;u&&(n(2*a)===n(2*o)&&(t.x1=t.x2=i(a,u,!0)),n(2*s)===n(2*l)&&(t.y1=t.y2=i(s,u,!0)))}},e.subPixelOptimizeRect=function(t,e,n){if(e){var r=e.x,a=e.y,o=e.width,s=e.height;t.x=r,t.y=a,t.width=o,t.height=s;var l=n&&n.lineWidth;l&&(t.x=i(r,l,!0),t.y=i(a,l,!0),t.width=Math.max(i(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(i(a+s,l,!1)-t.y,0===s?0:1))}},e.subPixelOptimize=i},60523:function(t,e,n){var i=n(69008),r=i.retrieve2,a=i.retrieve3,o=i.each,s=i.normalizeCssArray,l=i.isString,u=i.isObject,c=n(63603),h=n(55099),d=n(33557),p=n(73238),f=n(23982),g=f.ContextCachedBy,m=f.WILL_BE_RESTORED,v=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(t){if(t){t.font=c.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||x[n]?n:"top",t.textPadding&&(t.textPadding=s(t.textPadding))}}function M(t,e,n,i,r){if(n&&e.textRotation){var a=e.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function I(t,e,n,i,o,s,l,u){var c=i.rich[n.styleName]||{};c.text=n.text;var h=n.textVerticalAlign,d=s+o/2;"top"===h?d=s+n.height/2:"bottom"===h&&(d=s+o-n.height/2),!n.isLineHolder&&T(c)&&A(t,e,c,"right"===u?l-n.width:"center"===u?l-n.width/2:l,d-n.height/2,n.width,n.height);var p=n.textPadding;p&&(l=E(l,u,p),d-=n.height/2-p[2]-n.textHeight/2),L(e,"shadowBlur",a(c.textShadowBlur,i.textShadowBlur,0)),L(e,"shadowColor",c.textShadowColor||i.textShadowColor||"transparent"),L(e,"shadowOffsetX",a(c.textShadowOffsetX,i.textShadowOffsetX,0)),L(e,"shadowOffsetY",a(c.textShadowOffsetY,i.textShadowOffsetY,0)),L(e,"textAlign",u),L(e,"textBaseline","middle"),L(e,"font",n.font||v);var f=P(c.textStroke||i.textStroke,m),g=k(c.textFill||i.textFill),m=r(c.textStrokeWidth,i.textStrokeWidth);f&&(L(e,"lineWidth",m),L(e,"strokeStyle",f),e.strokeText(n.text,l,d)),g&&(L(e,"fillStyle",g),e.fillText(n.text,l,d))}function T(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function A(t,e,n,i,r,a,o){var s=n.textBackgroundColor,c=n.textBorderWidth,p=n.textBorderColor,f=l(s);if(L(e,"shadowBlur",n.textBoxShadowBlur||0),L(e,"shadowColor",n.textBoxShadowColor||"transparent"),L(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),L(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),f||c&&p){e.beginPath();var g=n.textBorderRadius;g?h.buildPath(e,{x:i,y:r,width:a,height:o,r:g}):e.rect(i,r,a,o),e.closePath()}if(f)if(L(e,"fillStyle",s),null!=n.fillOpacity){var m=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(u(s)){var v=s.image;(v=d.createOrUpdateImage(v,null,t,C,s))&&d.isImageReady(v)&&e.drawImage(v,i,r,a,o)}if(c&&p)if(L(e,"lineWidth",c),L(e,"strokeStyle",p),null!=n.strokeOpacity){m=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function C(t,e){e.image=t}function D(t,e,n,i){var r=n.x||0,a=n.y||0,o=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+O(l[0],i.width),a=i.y+O(l[1],i.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(b,n,i):c.calculateTextPosition(b,n,i);r=u.x,a=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var h=n.textOffset;h&&(r+=h[0],a+=h[1])}return(t=t||{}).baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function L(t,e,n){return t[e]=p(t,e,n),t[e]}function P(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function k(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function O(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function E(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}e.normalizeTextStyle=function(t){return S(t),o(t.rich,S),t},e.renderText=function(t,e,n,i,r,a){i.rich?function(t,e,n,i,r,a){a!==m&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=c.parseRichText(n,i));!function(t,e,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=D(w,t,i,r),h=u.baseX,d=u.baseY,p=u.textAlign,f=u.textVerticalAlign;M(e,i,r,h,d);var g=c.adjustTextX(h,o,p),m=c.adjustTextY(d,s,f),v=g,y=m;l&&(v+=l[3],y+=l[0]);var x=v+a;T(i)&&A(t,e,i,g,m,o,s);for(var _=0;_=0&&"right"===(b=C[N]).textAlign;)I(t,e,b,i,P,y,R,"right"),k-=b.width,R-=b.width,N--;for(E+=(a-(E-v)-(x-R)-k)/2;O<=N;)I(t,e,b=C[O],i,P,y,E+b.width/2,"center"),E+=b.width,O++;y+=P}}(t,e,o,i,r)}(t,e,n,i,r,a):function(t,e,n,i,r,a){"use strict";var o,s=T(i),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;a!==m?(a&&(o=a.style,l=!s&&u&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var h=i.font||v;l&&h===(o.font||v)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var f=i.textPadding,y=i.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=c.parsePlainText(n,d,f,y,i.truncate));var b=x.outerHeight,S=x.lines,I=x.lineHeight,C=D(w,t,i,r),L=C.baseX,O=C.baseY,R=C.textAlign||"left",N=C.textVerticalAlign;M(e,i,r,L,O);var z=c.adjustTextY(O,b,N),B=L,V=z;if(s||f){var G=c.getWidth(n,d);f&&(G+=f[1]+f[3]);var F=c.adjustTextX(L,G,R);s&&A(t,e,i,F,z,G,b),f&&(B=E(L,R,f),V+=f[0])}e.textAlign=R,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var H=0;H<_.length;H++){var W=_[H],U=W[0],Z=W[1],j=i[U];l&&j===o[U]||(e[Z]=p(e,Z,j||W[2]))}V+=I/2;var Y=i.textStrokeWidth,X=l?o.textStrokeWidth:null,q=!l||Y!==X,K=!l||q||i.textStroke!==o.textStroke,$=P(i.textStroke,Y),J=k(i.textFill);$&&(q&&(e.lineWidth=Y),K&&(e.strokeStyle=$));J&&(l&&i.textFill===o.textFill||(e.fillStyle=J));if(1===S.length)$&&e.strokeText(S[0],B,V),J&&e.fillText(S[0],B,V);else for(H=0;H0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function f(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}h.prototype={constructor:h,animate:function(t,e){var n,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;a="shape"===l[0];for(var h=0,d=l.length;h3&&(r=e.call(r,1));for(var o=n.length,s=0;s4&&(r=e.call(r,1,r.length-1));for(var o=r[r.length-1],s=n.length,l=0;lo||t<-5e-5}var l=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var c=[];u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;if(n||e){r=r||i.create(),n?this.getLocalTransform(r):a(r),e&&(n?i.mul(r,t.transform,r):i.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,u=((c[0]-s)*o+s)/c[0]||0,h=((c[1]-l)*o+l)/c[1]||0;r[0]*=u,r[1]*=u,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&a(r)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],d=i.create();u.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(h,t.invTransform,e),e=h);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],i.mul(h,e,d),h[4]-=n[0],h[5]-=n[1],e=h),this.setLocalTransform(e)}},u.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},u.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){a(e=e||[]);var n=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,r),o&&i.rotate(e,e,o),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e};var p=l;t.exports=p},26919:function(t,e,n){var i=n(87764).createElement,r=n(69008),a=n(32445),o=n(60397),s=n(89444),l=n(99999),u=n(9262),c=n(69377),h=n(17583),d=n(11209),p=n(96107),f=p.path,g=p.image,m=p.text;function v(t){return parseInt(t,10)}function y(t,e){return e&&t&&e.parentNode!==t}function x(t,e,n){if(y(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function _(t,e){if(y(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function b(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function w(t){return t.__textSvgEl}function S(t){return t.__svgEl}var M=function(t,e,n,a){this.root=t,this.storage=e,this._opts=n=r.extend({},n||{});var o=i("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=i("g");o.appendChild(s);var l=i("g");o.appendChild(l),this.gradientManager=new c(a,l),this.clipPathManager=new h(a,l),this.shadowManager=new d(a,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=u,t.appendChild(u),u.appendChild(o),this.resize(n.width,n.height),this._visibleList=[]};M.prototype={constructor:M,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=i("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n,i=this._svgRoot,r=this._visibleList,a=t.length,c=[];for(e=0;e=0;--i)if(n[i]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var a=this._svgDom;a.setAttribute("width",t),a.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||v(s[n])||v(o.style[n]))-(v(s[r])||0)-(v(s[a])||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(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"))}},r.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){var e;M.prototype[t]=(e=t,function(){a('In SVG mode painter not support method "'+e+'"')})}));var I=M;t.exports=I},87764:function(t,e){e.createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},96107:function(t,e,n){var i=n(87764).createElement,r=n(94615),a=n(9806),o=n(26237),s=n(63603),l=n(60523),u=n(99999),c=r.CMD,h=Array.prototype.join,d="none",p=Math.round,f=Math.sin,g=Math.cos,m=Math.PI,v=2*Math.PI,y=180/m,x=1e-4;function _(t){return p(1e4*t)/1e4}function b(t){return t-1e-4}function w(t,e){e&&S(t,"transform","matrix("+h.call(e,",")+")")}function S(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function M(t,e,n,i){if(function(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==d}(e,n)){var r=n?e.textFill:e.fill;S(t,"fill",r="transparent"===r?d:r),S(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else S(t,"fill",d);if(function(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==d}(e,n)){var a=n?e.textStroke:e.stroke;S(t,"stroke",a="transparent"===a?d:a),S(t,"stroke-width",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?i.getLineScale():1)),S(t,"paint-order",n?"stroke":"fill"),S(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(S(t,"stroke-dasharray",e.lineDash.join(",")),S(t,"stroke-dashoffset",p(e.lineDashOffset||0))):S(t,"stroke-dasharray",""),e.lineCap&&S(t,"stroke-linecap",e.lineCap),e.lineJoin&&S(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&S(t,"stroke-miterlimit",e.miterLimit)}else S(t,"stroke",d)}var I={};I.brush=function(t){var e=t.style,n=t.__svgEl;n||(n=i("path"),t.__svgEl=n),t.path||t.createPathProxy();var r=t.path;if(t.__dirtyPath){r.beginPath(),r.subPixelOptimize=!1,t.buildPath(r,t.shape),t.__dirtyPath=!1;var a=function(t){for(var e=[],n=t.data,i=t.len(),r=0;r=v:-x>=v),T=x>0?x%v:x%v+v,A=!1;A=!!I||!b(M)&&T>=m==!!S;var C=_(s+u*g(d)),D=_(l+h*f(d));I&&(x=S?v-1e-4:1e-4-v,A=!0,9===r&&e.push("M",C,D));var L=_(s+u*g(d+x)),P=_(l+h*f(d+x));e.push("A",_(u),_(h),p(w*y),+A,+S,L,P);break;case c.Z:a="Z";break;case c.R:L=_(n[r++]),P=_(n[r++]);var k=_(n[r++]),O=_(n[r++]);e.push("M",L,P,"L",L+k,P,"L",L+k,P+O,"L",L,P+O,"L",L,P)}a&&e.push(a);for(var E=0;Ez){for(;R0){var i,r,o=this.getDefs(!0),s=e[0],l=n?"_textDom":"_dom";s[l]?(r=s[l].getAttribute("id"),i=s[l],o.contains(i)||o.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",r),o.appendChild(i),s[l]=i);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var c=Array.prototype.slice.call(s.transform);a.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);i.innerHTML="",i.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},o.prototype.markUsed=function(t){var e=this;t.__clipPaths&&r.each(t.__clipPaths,(function(t){t._dom&&i.prototype.markUsed.call(e,t._dom),t._textDom&&i.prototype.markUsed.call(e,t._textDom)}))};var s=o;t.exports=s},97507:function(t,e,n){var i=n(87764).createElement,r=n(69008),a=n(60397),o=n(89444),s=n(99999),l=n(96107),u=l.path,c=l.image,h=l.text;function d(t,e,n,i,r){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,this._domName=r||"_dom",this.nextId=0}d.prototype.createElement=i,d.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?t?((n=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},d.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},d.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},d.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},d.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return r.each(this._tagNames,(function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))})),e},d.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;r.each(t,(function(t){t[e._markLabel]="0"}))},d.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},d.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;r.each(e,(function(e){"1"!==e[n._markLabel]&&t.removeChild(e)}))}},d.prototype.getSvgProxy=function(t){return t instanceof a?u:t instanceof o?c:t instanceof s?h:u},d.prototype.getTextSvgElement=function(t){return t.__textSvgEl},d.prototype.getSvgElement=function(t){return t.__svgEl};var p=d;t.exports=p},69377:function(t,e,n){var i=n(97507),r=n(69008),a=n(32445),o=n(83720);function s(t,e){i.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}r.inherits(s,i),s.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;r.each(["fill","stroke"],(function(i){if(e.style[i]&&("linear"===e.style[i].type||"radial"===e.style[i].type)){var r,a=e.style[i],o=n.getDefs(!0);a._dom?(r=a._dom,o.contains(a._dom)||n.addDom(r)):r=n.add(a),n.markUsed(e);var s=r.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}}))}},s.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return a("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t){var e=this;i.prototype.update.call(this,t,(function(){var n=t.type,i=t._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},s.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void a("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){return t+(e-t)*n}function h(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i(20),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function m(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);var i,a=(t+="").replace(/ /g,"").toLowerCase();if(a in r)return d(e,r[a]),g(t,e),e;if("#"===a.charAt(0))return 4===a.length?(i=parseInt(a.substr(1),16))>=0&&i<=4095?(h(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),g(t,e),e):void h(e,0,0,0,1):7===a.length?(i=parseInt(a.substr(1),16))>=0&&i<=16777215?(h(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),g(t,e),e):void h(e,0,0,0,1):void 0;var o=a.indexOf("("),u=a.indexOf(")");if(-1!==o&&u+1===a.length){var c=a.substr(0,o),f=a.substr(o+1,u-(o+1)).split(","),m=1;switch(c){case"rgba":if(4!==f.length)return void h(e,0,0,0,1);m=l(f.pop());case"rgb":return 3!==f.length?void h(e,0,0,0,1):(h(e,s(f[0]),s(f[1]),s(f[2]),m),g(t,e),e);case"hsla":return 4!==f.length?void h(e,0,0,0,1):(f[3]=l(f[3]),v(f,e),g(t,e),e);case"hsl":return 3!==f.length?void h(e,0,0,0,1):(v(f,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return h(e=e||[],a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],h=i-r;return n[0]=a(c(l[0],u[0],h)),n[1]=a(c(l[1],u[1],h)),n[2]=a(c(l[2],u[2],h)),n[3]=o(c(l[3],u[3],h)),n}}var x=y;function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),h=i-r,d=w([a(c(l[0],u[0],h)),a(c(l[1],u[1],h)),a(c(l[2],u[2],h)),o(c(l[3],u[3],h))],"rgba");return n?{color:d,leftIndex:r,rightIndex:s,value:i}:d}}var b=_;function w(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=m,e.lift=function(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return w(n,4===n.length?"rgba":"rgb")}},e.toHex=function(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=x,e.lerp=_,e.mapToColor=b,e.modifyHSL=function(t,e,n,i){if(t=m(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(t[1]=l(n)),null!=i&&(t[2]=l(i)),w(v(t),"rgba");var r},e.modifyAlpha=function(t,e){if((t=m(t))&&null!=e)return t[3]=o(e),w(t,"rgba")},e.stringify=w},74057:function(t,e,n){var i=n(27796),r=n(89444),a=n(99999),o=n(67679),s=n(74639),l=n(41422),u=n(330),c=n(60397),h=n(66751),d=n(70391),p=n(57123),f=n(7255),g=n(26237),m=n(6226).createFromString,v=n(69008),y=v.isString,x=v.extend,_=v.defaults,b=v.trim,w=v.each,S=/[\s,]+/;function M(t){y(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function I(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}I.prototype.parse=function(t,e){e=e||{};var n=M(t);if(!n)throw new Error("Illegal svg");var r=new i;this._root=r;var a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),P(n,r,null,!0);for(var u,c,h=n.firstChild;h;)this._parseNode(h,r),h=h.nextSibling;if(a){var d=b(a).split(S);d.length>=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=o&&null!=l&&(c=N(u,o,l),!e.ignoreViewBox)){var p=r;(r=new i).add(p),p.scale=c.scale.slice(),p.position=c.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:u,viewBoxTransform:c}},I.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(i=A[r]){var a=i.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else(i=T[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},I.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});C(e,r),P(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var T={g:function(t,e){var n=new i;return C(e,n),P(t,n,this._defs),n},rect:function(t,e){var n=new s;return C(e,n),P(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new o;return C(e,n),P(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new u;return C(e,n),P(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new l;return C(e,n),P(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=D(n));var i=new h({shape:{points:n||[]}});return C(e,i),P(t,i,this._defs),i},polyline:function(t,e){var n=new c;C(e,n),P(t,n,this._defs);var i=t.getAttribute("points");return i&&(i=D(i)),new d({shape:{points:i||[]}})},image:function(t,e){var n=new r;return C(e,n),P(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new i;return C(e,s),P(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new i;return C(e,s),P(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var n=t.getAttribute("d")||"",i=m(n);return C(e,i),P(t,i,this._defs),i}},A={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new p(e,n,i,r);return function(t,e){var n=t.firstChild;for(;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}(t,a),a},radialgradient:function(t){}};function C(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_(e.__inheritedStyle,t.__inheritedStyle))}function D(t){for(var e=b(t).split(S),n=[],i=0;i0;a-=2){var o=r[a],s=r[a-1];switch(i=i||g.create(),s){case"translate":o=b(o).split(S),g.translate(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=b(o).split(S),g.scale(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=b(o).split(S),g.rotate(i,i,parseFloat(o[0]));break;case"skew":o=b(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=b(o).split(S);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5])}}e.setLocalTransform(i)}}(t,e),x(r,function(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};R.lastIndex=0;for(;null!=(i=R.exec(e));)r[i[1]]=i[2];for(var a in L)L.hasOwnProperty(a)&&null!=r[a]&&(n[L[a]]=r[a]);return n}(t)),!i))for(var o in L)if(L.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(r[L[o]]=s)}var l=a?"textFill":"fill",u=a?"textStroke":"stroke";e.style=e.style||new f;var c=e.style;null!=r.fill&&c.set(l,O(r.fill,n)),null!=r.stroke&&c.set(u,O(r.stroke,n)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&c.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&c.set(t,r[t])})),r.lineDash&&(e.style.lineDash=b(r.lineDash).split(S)),c[u]&&"none"!==c[u]&&(e[u]=!0),e.__inheritedStyle=r}var k=/url\(\s*#(.*?)\)/;function O(t,e){var n=e&&t&&t.match(k);return n?e[b(n[1])]:t}var E=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var R=/([^\s:;]+)\s*:\s*([^:;]+)/g;function N(t,e,n){var i=e/t.width,r=n/t.height,a=Math.min(i,r);return{scale:[a,a],position:[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+n/2]}}e.parseXML=M,e.makeViewBoxTransform=N,e.parseSVG=function(t,e){return(new I).parse(t,e)}},6226:function(t,e,n){var i=n(60397),r=n(94615),a=n(79860),o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},h=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(c(t)*c(e))},d=function(t,e){return(t[0]*e[1]1&&(c*=o(_),p*=o(_));var b=(r===a?-1:1)*o((c*c*(p*p)-c*c*(x*x)-p*p*(y*y))/(c*c*(x*x)+p*p*(y*y)))||0,w=b*c*x/p,S=b*-p*y/c,M=(t+n)/2+l(v)*w-s(v)*S,I=(e+i)/2+s(v)*w+l(v)*S,T=d([1,0],[(y-w)/c,(x-S)/p]),A=[(y-w)/c,(x-S)/p],C=[(-1*y-w)/c,(-1*x-S)/p],D=d(A,C);h(A,C)<=-1&&(D=u),h(A,C)>=1&&(D=0),0===a&&D>0&&(D-=2*u),1===a&&D<0&&(D+=2*u),m.addData(g,M,I,c,p,T,D,v,a)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t,e){var n=function(t){if(!t)return new r;for(var e,n=0,i=0,a=n,o=i,s=new r,l=r.CMD,u=t.match(f),c=0;c')}}catch(t){i=function(t){return l.createElement("<"+t+' xmlns="'+a+'" class="zrvml">')}}e.doc=l,e.createNode=function(t){return i(t)},e.initVML=function(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},90906:function(t,e,n){var i=n(12973),r=n(47764).applyTransform,a=n(9806),o=n(83720),s=n(63603),l=n(60523),u=n(40460),c=n(20168),h=n(89444),d=n(99999),p=n(60397),f=n(94615),g=n(9193),m=n(1105),v=f.CMD,y=Math.round,x=Math.sqrt,_=Math.abs,b=Math.cos,w=Math.sin,S=Math.max;if(!i.canvasSupported){var M=",",I="progid:DXImageTransform.Microsoft",T=21600,A=T/2,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},D=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},L=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},P=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},k=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},O=l.parsePercent,E=function(t,e,n){var i=o.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=D(i[0],i[1],i[2]),t.opacity=n*i[3])},R=function(t,e,n,i){var a="fill"===e,s=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(a||!a&&n.lineWidth)?(t[a?"filled":"stroked"]="true",n[e]instanceof g&&P(t,s),s||(s=m.createNode(e)),a?function(t,e,n){var i,a,s=e.fill;if(null!=s)if(s instanceof g){var l,u=0,c=[0,0],h=0,d=1,p=n.getBoundingRect(),f=p.width,m=p.height;if("linear"===s.type){l="gradient";var v=n.transform,y=[s.x*f,s.y*m],x=[s.x2*f,s.y2*m];v&&(r(y,y,v),r(x,x,v));var _=x[0]-y[0],b=x[1]-y[1];(u=180*Math.atan2(_,b)/Math.PI)<0&&(u+=360),u<1e-6&&(u=0)}else{l="gradientradial",y=[s.x*f,s.y*m],v=n.transform;var w=n.scale,M=f,I=m;c=[(y[0]-p.x)/M,(y[1]-p.y)/I],v&&r(y,y,v),M/=w[0]*T,I/=w[1]*T;var A=S(M,I);h=0/A,d=2*s.r/A-h}var C=s.colorStops.slice();C.sort((function(t,e){return t.offset-e.offset}));for(var L=C.length,P=[],k=[],O=0;O=2){var z=P[0][0],B=P[1][0],V=P[0][1]*e.opacity,G=P[1][1]*e.opacity;t.type=l,t.method="none",t.focus="100%",t.angle=u,t.color=z,t.color2=B,t.colors=k.join(","),t.opacity=G,t.opacity2=V}"radial"===l&&(t.focusposition=c.join(","))}else E(t,s,e.opacity)}(s,n,i):function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof g||E(t,e.stroke,e.opacity)}(s,n),L(t,s)):(t[a?"filled":"stroked"]="false",P(t,s))},N=[[],[],[]];p.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=m.createNode("shape"),C(n),this._vmlEl=n),R(n,"fill",e,this),R(n,"stroke",e,this);var i=this.transform,a=null!=i,o=n.getElementsByTagName("stroke")[0];if(o){var s=e.lineWidth;if(a&&!e.strokeNoScale){var l=i[0]*i[3]-i[1]*i[2];s*=x(_(l))}o.weight=s+"px"}var u=this.path||(this.path=new f);this.__dirtyPath&&(u.beginPath(),u.subPixelOptimize=!1,this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),n.path=function(t,e){var n,i,a,o,s,l,u=v.M,c=v.C,h=v.L,d=v.A,p=v.Q,f=[],g=t.data,m=t.len();for(o=0;o.01?W&&(U+=270/T):Math.abs(Z-B)<1e-4?W&&Uz?C-=270/T:C+=270/T:W&&ZB?I+=270/T:I-=270/T),f.push(j,y(((z-V)*O+P)*T-A),M,y(((B-G)*E+k)*T-A),M,y(((z+V)*O+P)*T-A),M,y(((B+G)*E+k)*T-A),M,y((U*O+P)*T-A),M,y((Z*E+k)*T-A),M,y((I*O+P)*T-A),M,y((C*E+k)*T-A)),s=I,l=C;break;case v.R:var Y=N[0],X=N[1];Y[0]=g[o++],Y[1]=g[o++],X[0]=Y[0]+g[o++],X[1]=Y[1]+g[o++],e&&(r(Y,Y,e),r(X,X,e)),Y[0]=y(Y[0]*T-A),X[0]=y(X[0]*T-A),Y[1]=y(Y[1]*T-A),X[1]=y(X[1]*T-A),f.push(" m ",Y[0],M,Y[1]," l ",X[0],M,Y[1]," l ",X[0],M,X[1]," l ",Y[0],M,X[1]);break;case v.Z:f.push(" x ")}if(n>0){f.push(i);for(var q=0;q100&&(G=0,V={});var n,i=F.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||B,variant:i.fontVariant||B,weight:i.fontWeight||B,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},V[t]=e,G++}return e}(a.font),b=_.style+" "+_.variant+" "+_.weight+" "+_.size+'px "'+_.family+'"';n=n||s.getBoundingRect(o,b,v,x,a.textPadding,a.textLineHeight);var w=this.transform;if(w&&!i&&(H.copy(e),H.applyTransform(w),e=H),i)f=e.x,g=e.y;else{var S=a.textPosition;if(S instanceof Array)f=e.x+O(S[0],e.width),g=e.y+O(S[1],e.height),v=v||"left";else{var I=this.calculateTextPosition?this.calculateTextPosition({},a,e):s.calculateTextPosition({},a,e);f=I.x,g=I.y,v=v||I.textAlign,x=x||I.textVerticalAlign}}f=s.adjustTextX(f,n.width,v),g=s.adjustTextY(g,n.height,x),g+=n.height/2;var T,A,D,P=m.createNode,E=this._textVmlEl;E?A=(T=(D=E.firstChild).nextSibling).nextSibling:(E=P("line"),T=P("path"),A=P("textpath"),D=P("skew"),A.style["v-text-align"]="left",C(E),T.textpathok=!0,A.on=!0,E.from="0 0",E.to="1000 0.05",L(E,D),L(E,T),L(E,A),this._textVmlEl=E);var N=[f,g],z=E.style;w&&i?(r(N,N,w),D.on=!0,D.matrix=w[0].toFixed(3)+M+w[2].toFixed(3)+M+w[1].toFixed(3)+M+w[3].toFixed(3)+",0,0",D.offset=(y(N[0])||0)+","+(y(N[1])||0),D.origin="0 0",z.left="0px",z.top="0px"):(D.on=!1,z.left=y(f)+"px",z.top=y(g)+"px"),A.string=String(o).replace(/&/g,"&").replace(/"/g,""");try{A.style.font=b}catch(t){}R(E,"fill",{fill:a.textFill,opacity:a.opacity},this),R(E,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash||null},this),E.style.zIndex=k(this.zlevel,this.z,this.z2),L(t,E)}},U=function(t){P(t,this._textVmlEl),this._textVmlEl=null},Z=function(t){L(t,this._textVmlEl)},j=[u,c,h,p,d],Y=0;Y