40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=Aw(n({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(m,y))),_=nd(e.model),S=e.getExtent(),C=_.lastAutoInterval,x=_.lastTickCount;return C!=null&&x!=null&&Math.abs(C-b)<=1&&Math.abs(x-o)<=1&&C>b&&_.axisExtent0===S[0]&&_.axisExtent1===S[1]?b=C:(_.lastTickCount=o,_.lastAutoInterval=b,_.axisExtent0=S[0],_.axisExtent1=S[1]),b}function tve(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function z3(e,t,n){var r=Zu(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=D3(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(n?g:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function V3(e,t,n){var r=e.scale,i=Zu(e),a=[];return X(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&a.push(n?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var VM=[0,1],H3=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return qO(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),HM(r,i.count())),Mi(t,VM,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),HM(r,i.count()));var a=Mi(t,r,VM,n);return this.scale.scale(a)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=qpe(this,n),i=r.ticks,a=Je(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return nve(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=Je(r,function(a){return Je(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Ype(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return eve(this)},e}();function HM(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function nve(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;X(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=fn(h),p=fn(p),f?h>p:h0){t=t/180*Math.PI,$o.fromArray(e[0]),cn.fromArray(e[1]),Nn.fromArray(e[2]),dt.sub(Bo,$o,cn),dt.sub(oa,Nn,cn);var n=Bo.len(),r=oa.len();if(!(n<.001||r<.001)){Bo.scale(1/n),oa.scale(1/r);var i=Bo.dot(oa),a=Math.cos(t);if(a1&&dt.copy(rr,Nn),rr.toArray(e[1])}}}}function lve(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,$o.fromArray(e[0]),cn.fromArray(e[1]),Nn.fromArray(e[2]),dt.sub(Bo,cn,$o),dt.sub(oa,Nn,cn);var r=Bo.len(),i=oa.len();if(!(r<.001||i<.001)){Bo.scale(1/r),oa.scale(1/i);var a=Bo.dot(t),o=Math.cos(n);if(a=l)dt.copy(rr,Nn);else{rr.scaleAndAdd(oa,s/Math.tan(Math.PI/2-c));var f=Nn.x!==cn.x?(rr.x-cn.x)/(Nn.x-cn.x):(rr.y-cn.y)/(Nn.y-cn.y);if(isNaN(f))return;f<0?dt.copy(rr,cn):f>1&&dt.copy(rr,Nn)}rr.toArray(e[1])}}}}function s0(e,t,n,r){var i=n==="normal",a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function uve(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=sv(r[0],r[1]),a=sv(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=cp([],r[1],r[0],o/i),l=cp([],r[1],r[2],o/a),u=cp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0){b(T*E,0,o);var M=T+C;M<0&&_(-M*E,1)}else _(-C*E,1)}}function b(C,x,E){C!==0&&(u=!0);for(var T=x;T0)for(var M=0;M0;M--){var H=E[M-1]*V;b(-H,M,o)}}}function S(C){var x=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),T=0;T0?b(E,0,T+1):b(-E,o-T-1,o),C-=E,C<=0)return}return u}function pve(e,t,n,r){return hve(e,"y","height",t,n)}function vve(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var n=new Pt(0,0,0,0);function r(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(hr);function ES(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Ru(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(" ")}var MS=function(e){at(t,e);function t(n,r,i,a){var o=e.call(this)||this;return o.updateData(n,r,i,a),o}return t.prototype._createSymbol=function(n,r,i,a,o){this.removeAll();var s=qa(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=mve,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mv(this.childAt(0))},t.prototype.downplay=function(){yv(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,a){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):kn(d,h,s,r),Hw(d)}if(this._updateCommon(n,r,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Xn(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,a,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||n.hasItemOption){var y=a&&a.itemModel?a.itemModel:n.getItemModel(r),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),p=b.get("disabled"),v=Od(y),g=b.getShallow("scale"),m=y.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=zN(n.getItemVisual(r,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var C=n.getItemVisual(r,"style"),x=C.fill;if(s instanceof Ca){var E=s.style;s.useStyle(Me({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},C))}else s.__isEmptyBrush?s.useStyle(Me({},C)):s.useStyle(C),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=n.getItemVisual(r,"liftZ"),M=this._z2;T!=null?M==null&&(this._z2=s.z2,s.z2+=T):M!=null&&(s.z2=M,this._z2=null);var I=o&&o.useNameLabel;Ld(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:R,inheritColor:x,defaultOpacity:C.opacity});function R(D){return I?n.getName(D):ES(n,D)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var V=s.ensureState("emphasis");V.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var H=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;V.scaleX=this._sizeX*H,V.scaleY=this._sizeY*H,this.setSymbolScale(1),ml(this,d,h,p)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var a=this.childAt(0),o=Ot(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&wv(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();wv(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Fde(n.getItemVisual(r,"symbolSize"))},t}(Sn);function mve(e,t){this.parent.drift(e,t)}function l0(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function WM(e){return e!=null&&!nt(e)&&(e={isIgnore:e}),e||{}}function UM(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Od(t),cursorStyle:t.get("cursor")}}var yve=function(){function e(t){this.group=new Sn,this._SymbolCtor=t||MS}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=WM(n);var r=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=UM(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};a||r.removeAll(),t.diff(a).add(function(f){var d=c(f);if(l0(t,d,f,n)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!l0(t,p,f,n)){r.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)r.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):kn(h,m,i)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var a=t._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=UM(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=WM(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?n=r[0]:r[1]<0&&(n=r[1]),n}function K3(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function _ve(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function wve(e,t,n,r,i,a,o,s){for(var l=_ve(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=G3(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b=i||v<0)break;if(ul(m,y)){if(l){v+=a;continue}break}if(v===n)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var b=m-u,_=y-c;if(b*b+_*_<.5){v+=a;continue}if(o>0){for(var S=v+a,C=t[S*2],x=t[S*2+1];C===m&&x===y&&g=r||ul(C,x))h=m,p=y;else{M=C-u,I=x-c;var H=m-u,D=C-m,k=y-c,O=x-y,L=void 0,N=void 0;if(s==="x"){L=Math.abs(H),N=Math.abs(D);var U=M>0?1:-1;h=m-U*L*o,p=y,R=m+U*N*o,V=y}else if(s==="y"){L=Math.abs(k),N=Math.abs(O);var q=I>0?1:-1;h=m,p=y-q*L*o,R=m,V=y+q*N*o}else L=Math.sqrt(H*H+k*k),N=Math.sqrt(D*D+O*O),T=N/(N+L),h=m-M*o*(1-T),p=y-I*o*(1-T),R=m+M*o*T,V=y+I*o*T,R=go(R,mo(C,m)),V=go(V,mo(x,y)),R=mo(R,go(C,m)),V=mo(V,go(x,y)),M=R-m,I=V-y,h=m-M*L/N,p=y-I*L/N,h=go(h,mo(u,m)),p=go(p,mo(c,y)),h=mo(h,go(u,m)),p=mo(p,go(c,y)),M=m-h,I=y-p,R=m+M*N/L,V=y+I*N/L}e.bezierCurveTo(f,d,h,p,m,y),f=R,d=V}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var j3=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Sve=function(e){at(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new j3},t.prototype.buildPath=function(n,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&ul(i[o*2-2],i[o*2-1]);o--);for(;a=0){var _=u?(p-l)*b+l:(h-s)*b+s;return u?[n,_]:[_,n]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var S=u?cv(s,h,v,m,n,c):cv(l,p,g,y,n,c);if(S>0)for(var C=0;C=0){var _=u?$n(l,p,g,y,x):$n(s,h,v,m,x);return u?[n,_]:[_,n]}}s=m,l=y;break}}},t}(Ht),Cve=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(j3),xve=function(e){at(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Cve},t.prototype.buildPath=function(n,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&ul(i[s*2-2],i[s*2-1]);s--);for(;ot){a?n.push(o(a,l,t)):i&&n.push(o(i,l,0),o(i,l,t));break}else i&&(n.push(o(i,l,0)),i=null),n.push(l),a=l}return n}function Ave(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(a){var l=t.getAxis(i),u=Je(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Mve(u,i==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";X(d,function(b){b.offset=(b.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new zw(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function kve(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(i&&Ive(a,t))){var o=t.mapDimension(a.dim),s={};return X(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Ive(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function Dve(e,t){return isNaN(e)||isNaN(t)}function Pve(e){for(var t=e.length/2;t>0&&Dve(e[t*2-2],e[t*2-1]);t--);return t-1}function qM(e,t){return[e[t*2],e[t*2+1]]}function Lve(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function X3(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Ot(p).seriesIndex=n.seriesIndex,ml(p,k,O,L);var U=YM(n.get("smooth")),q=n.get("smoothMonotone");if(p.setShape({smooth:U,smoothMonotone:q,connectNulls:x}),v){var Z=s.getCalculationInfo("stackedOnSeries"),B=0;v.useStyle(Rt(u.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Z&&(B=YM(Z.get("smooth"))),v.setShape({smooth:U,stackedOnSmooth:B,smoothMonotone:q,connectNulls:x}),Pu(v,n,"areaStyle"),Ot(v).seriesIndex=n.seriesIndex,ml(v,k,O,L)}var ae=this._changePolyState;s.eachItemGraphicEl(function(pe){pe&&(pe.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=c,this._step=M,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,p),v&&this.packEventData(n,v))},t.prototype.packEventData=function(n,r){Ot(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,a){var o=n.getData(),s=vl(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;u=new MS(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Zn.prototype.highlight.call(this,n,r,i,a)},t.prototype.downplay=function(n,r,i,a){var o=n.getData(),s=vl(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Zn.prototype.downplay.call(this,n,r,i,a)},t.prototype._changePolyState=function(n){var r=this._polygon;rE(this._polyline,n),r&&rE(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Sve({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new xve({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");ft(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ft(f)?f(null):f;n.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,b=void 0;if(i)if(o){var _=i,S=r.pointToCoord(g);a?(m=_.startAngle,y=_.endAngle,b=-S[1]/180*Math.PI):(m=_.r0,y=_.r,b=S[0])}else{var C=i;a?(m=C.x,y=C.x+C.width,b=h.x):(m=C.y+C.height,y=C.y,b=h.y)}var x=y===m?0:(b-m)/(y-m);l&&(x=1-x);var E=ft(f)?f(p):c*x+d,T=v.getSymbolPath(),M=T.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:E}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var a=n.getModel("endLabel");if(X3(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new hn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Pve(l);c>=0&&(Ld(s,Od(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?U3(o,h):ES(o,f)},enableTextSetter:!0},Ove(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,b=r.shape,_=y?m?b.x:b.y+b.height:m?b.x+b.width:b.y,S=(m?v:0)*(y?-1:1),C=(m?0:-v)*(y?-1:1),x=m?"x":"y",E=Lve(f,_,x),T=E.range,M=T[1]-T[0],I=void 0;if(M>=1){if(M>1&&!h){var R=qM(f,T[0]);u.attr({x:R[0]+S,y:R[1]+C}),o&&(I=d.getRawValue(T[0]))}else{var R=c.getPointOn(_,x);R&&u.attr({x:R[0]+S,y:R[1]+C});var V=d.getRawValue(T[0]),H=d.getRawValue(T[1]);o&&(I=iR(i,p,V,H,E.t))}a.lastFrameIndex=T[0]}else{var D=n===1||a.lastFrameIndex>0?T[0]:0,R=qM(f,D);o&&(I=d.getRawValue(D)),u.attr({x:R[0]+S,y:R[1]+C})}if(o){var k=Rd(u);typeof k.setLabelText=="function"&&k.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(n,r,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=wve(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(p=yo(d.stackedOnCurrent,d.current,i,o,l),h=yo(d.current,null,i,o,l),g=yo(d.stackedOnNext,d.next,i,o,l),v=yo(d.next,null,i,o,l)),jM(h,v)>3e3||c&&jM(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),kn(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),kn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],b=d.status,_=0;_t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var p=void 0;Ke(a)?p=$ve[a]:ft(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,Bve))}}}}}function Fve(e){e.registerChartView(Rve),e.registerSeriesModel(gve),e.registerLayout(Nve("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Z3("line"))}var C_=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return lm(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(n),s=a.dataToPoint(o);if(i)X(a.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var p=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&!v&&(g+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=x-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(hr);hr.registerClass(C_);var zve=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return lm(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=qR(C_.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},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(C_),Vve=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Rv=function(e){at(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Vve},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,i,a){if(this._isOrderChangedWithinSameData(n,r,i)){var o=this._dataSort(n,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,i){var a=r.baseAxis,o=this._dataSort(n,a,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Sv(a,n,Ot(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Zn),XM={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=c0(t.x,e.x),s=f0(t.x+t.width,i),l=c0(t.y,e.y),u=f0(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=f0(t.r,e.r),a=c0(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},ZM={cartesian2d:function(e,t,n,r,i,a,o,s,l){var u=new _n({shape:Me({},r),z2:1});if(u.__dataIndex=n,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,i,a,o,s,l){var u=!i&&l?Rv:Vi,c=new u({shape:r,z2:1});c.name="item";var f=J3(i);if(c.calculateTextPosition=Hve(f,{isRoundCap:u===Rv}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?r.r0:r.startAngle,p[h]=r[h],(s?kn:Xn)(c,{shape:p},a)}return c}};function Kve(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function JM(e,t,n,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?kn:Xn)(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?kn:Xn)(n,{shape:u},c,i)}function QM(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function qve(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function J3(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function tA(e,t,n,r,i,a,o,s){var l=t.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Hc(r.getModel("itemStyle"),c,!0);Me(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Od(r);Ld(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:ES(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=r.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,Wve(e,g==="outside"?h:g,J3(o),r.get(["label","rotate"]))}KR(v,p,a.getRawValue(n),function(y){return U3(t,y)});var m=r.getModel(["emphasis"]);ml(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Pu(e,r),qve(i)&&(e.style.fill="none",e.style.stroke="none",X(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Xve(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var Zve=function(){function e(){}return e}(),nA=function(e){at(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new Zve},t.prototype.buildPath=function(n,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function Jve(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function Q3(e,t,n){if(AS(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Qve(e,t,n){var r=e.type==="polar"?Vi:_n;return new r({shape:Q3(t,n,e),silent:!0,z2:0})}function ege(e){e.registerChartView(Gve),e.registerSeriesModel(zve),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ln(lpe,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,upe("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Z3("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var aA=Math.PI*2,Fh=Math.PI/180;function e4(e,t){return Lu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function t4(e,t){var n=e4(e,t),r=e.get("center"),i=e.get("radius");Ve(i)||(i=[0,i]);var a=yt(n.width,t.getWidth()),o=yt(n.height,t.getHeight()),s=Math.min(a,o),l=yt(i[0],s/2),u=yt(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else Ve(r)||(r=[r,r]),c=yt(r[0],a)+n.x,f=yt(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function tge(e,t,n){t.eachSeriesByType(e,function(r){var i=r.getData(),a=i.mapDimension("value"),o=e4(r,n),s=t4(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*Fh,h=r.get("endAngle"),p=r.get("padAngle")*Fh;h=h==="auto"?d-aA:-h*Fh;var v=r.get("minAngle")*Fh,g=v+p,m=0;i.each(a,function(O){!isNaN(O)&&m++});var y=i.getSum(a),b=Math.PI/(y||m)*2,_=r.get("clockwise"),S=r.get("roseType"),C=r.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var E=_?1:-1,T=[d,h],M=E*p/2;Rw(T,!_),d=T[0],h=T[1];var I=n4(r);I.startAngle=d,I.endAngle=h,I.clockwise=_;var R=Math.abs(h-d),V=R,H=0,D=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(O,L){var N;if(isNaN(O)){i.setItemLayout(L,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?N=y===0&&C?b:O*b:N=R/m,NN?(q=D+E*N/2,Z=q):(q=D+M,Z=U-M),i.setItemLayout(L,{angle:N,startAngle:q,endAngle:Z,clockwise:_,cx:l,cy:u,r0:f,r:S?Mi(O,x,[f,c]):c}),D=U}),Vn?m:g,S=Math.abs(b.label.y-n);if(S>=_.maxY){var C=b.label.x-t-b.len2*i,x=r+b.len,E=Math.abs(C)e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var v=r.getBoundingRect();a.width=v.width;var g=(r.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function d0(e){return e.position==="center"}function age(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get("minShowLabelAngle")||0)*rge,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function p(C){if(!C.ignore)return!0;for(var x in C.states)if(C.states[x].ignore===!1)return!0;return!1}t.each(function(C){var x=t.getItemGraphicEl(C),E=x.shape,T=x.getTextContent(),M=x.getTextGuideLine(),I=t.getItemModel(C),R=I.getModel("label"),V=R.get("position")||I.get(["emphasis","label","position"]),H=R.get("distanceToLabelLine"),D=R.get("alignTo"),k=yt(R.get("edgeDistance"),u),O=R.get("bleedMargin"),L=I.getModel("labelLine"),N=L.get("length");N=yt(N,u);var U=L.get("length2");if(U=yt(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Z>0?"left":"right"}var ee=Math.PI,fe=0,ve=R.get("rotate");if(Wt(ve))fe=ve*(ee/180);else if(V==="center")fe=0;else if(ve==="radial"||ve===!0){var Ee=Z<0?-q+ee:-q;fe=Ee}else if(ve==="tangential"&&V!=="outside"&&V!=="outer"){var Se=Math.atan2(Z,B);Se<0&&(Se=ee*2+Se);var Ce=B>0;Ce&&(Se=ee+Se),fe=Se-ee}if(a=!!fe,T.x=ae,T.y=pe,T.rotation=fe,T.setStyle({verticalAlign:"middle"}),ne){T.setStyle({align:te});var ke=T.states.select;ke&&(ke.x+=T.x,ke.y+=T.y)}else{var _e=T.getBoundingRect().clone();_e.applyTransform(T.getComputedTransform());var He=(T.style.margin||0)+2.1;_e.y-=He/2,_e.height+=He,n.push({label:T,labelLine:M,position:V,len:N,len2:U,minTurnAngle:L.get("minTurnAngle"),maxSurfaceAngle:L.get("maxSurfaceAngle"),surfaceNormal:new dt(Z,B),linePoints:se,textAlign:te,labelDistance:H,labelAlignTo:D,edgeDistance:k,bleedMargin:O,rect:_e,unconstrainedWidth:_e.width,labelStyleWidth:T.style.width})}x.setTextConfig({inside:ne})}}),!a&&e.get("avoidLabelOverlap")&&ige(n,r,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Zn);function i4(e,t,n){t=Ve(t)&&{coordDimensions:t}||Me({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=_S(r,t).dimensions,a=new bS(i,e);return a.initData(r,n),a}var lge=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}(),uge=gn(),cge=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new lge(Ut(this.getData,this),Ut(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return i4(this,{coordDimensions:["value"],encodeDefaulter:ln(Wce,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),i=uge(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),a=i.seats=XO(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=a[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){Kb(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(hr);function fge(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!(Wt(o)&&!isNaN(o)&&o<0)})}}}function dge(e){e.registerChartView(sge),e.registerSeriesModel(cge),Ede("pie",e.registerAction),e.registerLayout(ln(tge,"pie")),e.registerProcessor(nge("pie")),e.registerProcessor(fge("pie"))}var hge=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}($t),x_=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pi).models[0]},t.type="cartesian2dAxis",t}($t);mi(x_,P3);var a4={show:!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:"#6E7079",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,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},pge=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a4),kS=Dt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},a4),vge=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},kS),gge=Rt({logBase:10},kS);const mge={category:pge,value:kS,time:vge,log:gge};var yge={value:1,category:1,time:1,log:1};function sA(e,t,n,r){X(yge,function(i,a){var o=Dt(Dt({},mge[a],!0),r,!0),s=function(l){at(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Zf(this),h=d?tm(c):{},p=f.getTheme();Dt(c,p.get(a+"Axis")),Dt(c,this.getDefaultOption()),c.type=lA(c),d&&Ou(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=b_.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",lA)}function lA(e){return e.type||(e.data?"category":"value")}var bge=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Je(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),bn(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),T_=["x","y"];function uA(e){return e.type==="interval"||e.type==="time"}var _ge=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=T_,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!uA(n)||!uA(r))){var i=n.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Ed([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),a=this.dataToPoint(r),o=this.getArea(),s=new Pt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],o=n[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ur(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(n[0]),u=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return ur(i,n,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=o.coordToData(o.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,o=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-a+n,l=Math.max(i[0],i[1])-o+n;return new Pt(a,o,s,l)},t}(bge),wge=function(e){at(t,e);function t(n,r,i,a,o){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(H3);function E_(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Du(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function cA(e){return e.get("coordinateSystem")==="cartesian2d"}function fA(e){var t={xAxisModel:null,yAxisModel:null};return X(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,Pi).models[0];t[r]=a}),t}var h0=Math.log;function Sge(e,t,n){var r=Xu.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),l=k3(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=h0(e.base);u=[h0(u[0])/d,h0(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=i0(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=i0(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=fn(g-y),v<0&&u[0]>=0?(v=0,g=fn(y)):g>0&&u[1]<=0&&(g=0,v=-fn(y))}var b=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;r.setExtent.call(e,v+p*b,g+p*_),r.setInterval.call(e,p),(b||_)&&r.setNiceExtent.call(e,v+p,g-p)}var Cge=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=T_,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Qt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;__(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(w_(v,p),__(v)&&(s=h))}c.length&&(s||(s=c.pop(),w_(s.scale,s.model)),X(c,function(g){Sge(g.scale,g.model,s.scale)}))}}i(r.x),i(r.y);var a={};X(r.x,function(o){dA(r,"y",o,a)}),X(r.y,function(o){dA(r,"x",o,a)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),o=Lu(i,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(X(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Ape(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),X(this._coordsList,function(u){u.calcAffineTransform()});function l(){X(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),xge(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}nt(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Gf(i-Fo)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),pA={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ur(s,s,o),ur(l,l,o));var c=Me({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Hi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});qf(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Ke(d)&&(d=[d,d]),(Ke(h)||Wt(h))&&(h=[h,h]);var p=zN(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];X([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var b=qa(d[y],-v/2,-g/2,v,g,c.stroke,!0),_=m.r+m.offset,S=u?l:s;b.attr({rotation:m.rotate,x:S[0]+_*Math.cos(e.rotation),y:S[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabel:function(e,t,n,r){var i=Mge(n,r,t,e),a=kge(n,r,t,e);if(Ege(t,a,i),Age(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=dve(Je(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));vve(o)}},axisName:function(e,t,n,r){var i=Du(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,gA(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Fo/180);var p;gA(a)?d=Go.innerTextLayout(e.rotation,h??e.rotation,o):(d=Tge(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Du(e.nameTruncateMaxWidth,g.maxWidth,p),b=new hn({x:f[0],y:f[1],rotation:d.rotation,silent:Go.isLabelSilent(t),style:Li(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(jg({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var _=Go.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Ot(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Tge(e,t,n,r){var i=Iw(n-e),a,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Gf(i-Fo/2)?(o=l?"bottom":"top",a="center"):Gf(i-Fo*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iFo/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Ege(e,t,n){if(!D3(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(jr(a),jr(u)):vA(a,o)&&(r?(jr(o),jr(c)):(jr(a),jr(u))),i===!1?(jr(s),jr(f)):vA(l,s)&&(i?(jr(l),jr(d)):(jr(s),jr(f)))}}function jr(e){e&&(e.ignore=!0)}function vA(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=Td([]);return Pg(i,i,-e.rotation),n.applyTransform(Ho([],i,e.getLocalTransform())),r.applyTransform(Ho([],i,t.getLocalTransform())),n.intersect(r)}}function gA(e){return e==="middle"||e==="center"}function o4(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Rge(e){var t=IS(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=M_(n);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o=o/3?1:2),c=r.y-a(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+i(l)*s,r.y+a(l)*s),n.lineTo(r.x+i(r.angle)*o,r.y+a(r.angle)*o),n.lineTo(r.x-i(l)*s,r.y-a(l)*s),n.lineTo(u,c)},t}(Ht);function jge(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i),o=yt(n[0],t.getWidth()),s=yt(n[1],t.getHeight()),l=yt(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function zh(e,t){var n=e==null?"":e+"";return t&&(Ke(t)?n=t.replace("{value}",n):ft(t)&&(n=t(e))),n}var Yge=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this.group.removeAll();var a=n.get(["axisLine","lineStyle","color"]),o=jge(n,i);this._renderMain(n,r,i,a,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,i,a,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),h=d?Rv:Vi,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];Rw(m,!l),u=m[0],c=m[1];for(var y=c-u,b=u,_=[],S=0;p&&S=T&&(M===0?0:a[M-1][0])Math.PI/2&&(ae+=Math.PI)):B==="tangential"?ae=-E-Math.PI/2:Wt(B)&&(ae=B*Math.PI/180),ae===0?f.add(new hn({style:Li(b,{text:N,x:q,y:Z,verticalAlign:D<-.8?"top":D>.8?"bottom":"middle",align:H<-.4?"left":H>.4?"right":"center"},{inheritColor:U}),silent:!0})):f.add(new hn({style:Li(b,{text:N,x:q,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:q,originY:Z,rotation:ae}))}if(y.get("show")&&k!==_){var O=y.get("distance");O=O?O+c:c;for(var pe=0;pe<=S;pe++){H=Math.cos(E),D=Math.sin(E);var se=new Hi({shape:{x1:H*(p-O)+d,y1:D*(p-O)+h,x2:H*(p-x-O)+d,y2:D*(p-x-O)+h},silent:!0,style:R});R.stroke==="auto"&&se.setStyle({stroke:a((k+pe/S)/_)}),f.add(se),E+=M}E-=M}else E+=T}},t.prototype._renderPointer=function(n,r,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=n.get(["pointer","show"]),g=n.getModel("progress"),m=g.get("show"),y=n.getData(),b=y.mapDimension("value"),_=+n.get("min"),S=+n.get("max"),C=[_,S],x=[s,l];function E(M,I){var R=y.getItemModel(M),V=R.getModel("pointer"),H=yt(V.get("width"),o.r),D=yt(V.get("length"),o.r),k=n.get(["pointer","icon"]),O=V.get("offsetCenter"),L=yt(O[0],o.r),N=yt(O[1],o.r),U=V.get("keepAspect"),q;return k?q=qa(k,L-H/2,N-D,H,D,null,U):q=new Kge({shape:{angle:-Math.PI/2,width:H,r:D,x:L,y:N}}),q.rotation=-(I+Math.PI/2),q.x=o.cx,q.y=o.cy,q}function T(M,I){var R=g.get("roundCap"),V=R?Rv:Vi,H=g.get("overlap"),D=H?g.get("width"):c/y.count(),k=H?o.r-D:o.r-(M+1)*D,O=H?o.r:o.r-M*D,L=new V({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:O}});return H&&(L.z2=Mi(y.get(b,M),[_,S],[100,0],!0)),L}(m||v)&&(y.diff(d).add(function(M){var I=y.get(b,M);if(v){var R=E(M,s);Xn(R,{rotation:-((isNaN(+I)?x[0]:Mi(I,C,x,!0))+Math.PI/2)},n),f.add(R),y.setItemGraphicEl(M,R)}if(m){var V=T(M,s),H=g.get("clip");Xn(V,{shape:{endAngle:Mi(I,C,x,H)}},n),f.add(V),Xb(n.seriesIndex,y.dataType,M,V),p[M]=V}}).update(function(M,I){var R=y.get(b,M);if(v){var V=d.getItemGraphicEl(I),H=V?V.rotation:s,D=E(M,H);D.rotation=H,kn(D,{rotation:-((isNaN(+R)?x[0]:Mi(R,C,x,!0))+Math.PI/2)},n),f.add(D),y.setItemGraphicEl(M,D)}if(m){var k=h[I],O=k?k.shape.endAngle:s,L=T(M,O),N=g.get("clip");kn(L,{shape:{endAngle:Mi(R,C,x,N)}},n),f.add(L),Xb(n.seriesIndex,y.dataType,M,L),p[M]=L}}).execute(),y.each(function(M){var I=y.getItemModel(M),R=I.getModel("emphasis"),V=R.get("focus"),H=R.get("blurScope"),D=R.get("disabled");if(v){var k=y.getItemGraphicEl(M),O=y.getItemVisual(M,"style"),L=O.fill;if(k instanceof Ca){var N=k.style;k.useStyle(Me({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},O))}else k.useStyle(O),k.type!=="pointer"&&k.setColor(L);k.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",a(Mi(y.get(b,M),C,[0,1],!0))),k.z2EmphasisLift=0,Pu(k,I),ml(k,V,H,D)}if(m){var U=p[M];U.useStyle(y.getItemVisual(M,"style")),U.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Pu(U,I),ml(U,V,H,D)}}),this._progressEls=p)},t.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=qa(s,r.cx-o/2+yt(l[0],r.r),r.cy-o/2+yt(l[1],r.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,i,a,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new Sn,h=[],p=[],v=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new hn({silent:!0}),p[m]=new hn({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),b=l.get(u,m),_=new Sn,S=a(Mi(b,[c,f],[0,1],!0)),C=y.getModel("title");if(C.get("show")){var x=C.get("offsetCenter"),E=o.cx+yt(x[0],o.r),T=o.cy+yt(x[1],o.r),M=h[m];M.attr({z2:g?0:2,style:Li(C,{x:E,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),_.add(M)}var I=y.getModel("detail");if(I.get("show")){var R=I.get("offsetCenter"),V=o.cx+yt(R[0],o.r),H=o.cy+yt(R[1],o.r),D=yt(I.get("width"),o.r),k=yt(I.get("height"),o.r),O=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,M=p[m],L=I.get("formatter");M.attr({z2:g?0:2,style:Li(I,{x:V,y:H,text:zh(b,L),width:isNaN(D)?null:D,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),KR(M,{normal:I},b,function(U){return zh(U,L)}),v&&pce(M,m,l,n,{getFormattedLabel:function(U,q,Z,B,ae,pe){return zh(pe?pe.interpolatedValue:b,L)}}),_.add(M)}d.add(_)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Zn),qge=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return i4(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(hr);function Xge(e){e.registerChartView(Yge),e.registerSeriesModel(qge)}var Hs=gn(),bA=Et,g0=Ut,Zge=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var a=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Sn,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=ln(_A,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}SA(s,n,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,a=i.type==="category",o=n.get("snap");if(!o&&!a)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=IS(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,a){},e.prototype.createPointerEl=function(t,n,r,i){var a=n.pointer;if(a){var o=Hs(t).pointerEl=new cce[a.type](bA(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var a=Hs(t).labelEl=new hn(bA(n.label));t.add(a),wA(a,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Hs(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var a=Hs(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),wA(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Kg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){EO(u.event)},onmousedown:g0(this._onHandleDragMove,this,0,0),drift:g0(this._onHandleDragMove,this),ondragend:g0(this._onHandleDragEnd,this)}),r.add(i)),SA(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Ve(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,PN(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){_A(this._axisPointerModel,!n&&this._moveAnimation,this._handle,m0(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(m0(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(m0(i)),Hs(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),c_(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function _A(e,t,n,r){c4(Hs(n).lastProp,r)||(Hs(n).lastProp=r,t?kn(n,r,e):(n.stopAnimation(),n.attr(r)))}function c4(e,t){if(nt(e)&&nt(t)){var n=!0;return X(t,function(r,i){n=n&&c4(e[i],r)}),!!n}else return e===t}function wA(e,t){e[t.get(["label","show"])?"show":"hide"]()}function m0(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function SA(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function Jge(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Qge(e,t,n,r,i){var a=n.get("value"),o=f4(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=$d(s.get("padding")||0),u=s.getFont(),c=Aw(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),eme(f,d,h,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Li(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function eme(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function f4(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:xS(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};X(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ke(o)?a=o.replace("{value}",a):ft(o)&&(a=o(s))}return a}function d4(e,t,n){var r=Vo();return Pg(r,r,n.rotation),lv(r,r,n.position),Gw([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function tme(e,t,n,r,i,a){var o=Go.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Qge(t,r,i,a,{position:d4(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function nme(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function rme(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var ime=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=CA(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=Jge(a),h=ame[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=E_(l.model,i);tme(r,n,p,i,a,o)},t.prototype.getHandleTransform=function(n,r,i){var a=E_(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=d4(r.axis,n,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=CA(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(Zge);function CA(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ame={line:function(e,t,n){var r=nme([t,n[0]],[t,n[1]],xA(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:rme([t-r/2,n[0]],[r,i],xA(e))}}};function xA(e){return e.dim==="x"?0:1}var ome=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}($t),Va=gn(),sme=X;function h4(e,t,n){if(!ut.node){var r=t.getZr();Va(r).records||(Va(r).records={}),lme(r,t);var i=Va(r).records[e]||(Va(r).records[e]={});i.handler=n}}function lme(e,t){if(Va(e).initialized)return;Va(e).initialized=!0,n("click",ln(TA,"click")),n("mousemove",ln(TA,"mousemove")),n("globalout",cme);function n(r,i){e.on(r,function(a){var o=fme(t);sme(Va(e).records,function(s){s&&i(s,a,o.dispatchAction)}),ume(o.pendings,t)})}}function ume(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function cme(e,t,n){e.handler("leave",null,n)}function TA(e,t,n,r){t.handler(e,n,r)}function fme(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function k_(e,t){if(!ut.node){var n=t.getZr(),r=(Va(n).records||{})[e];r&&(Va(n).records[e]=null)}}var dme=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var a=r.getComponent("tooltip"),o=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";h4("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){k_("axisPointer",r)},t.prototype.dispose=function(n,r){k_("axisPointer",r)},t.type="axisPointer",t}(Vr);function p4(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=vl(a,e);if(o==null||o<0||Ve(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(a.getValues(Je(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var EA=gn();function hme(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ut(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){xp(i)&&(i=p4({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=xp(i),u=a.axesInfo,c=s.axesInfo,f=r==="leave"||xp(i),d={},h={},p={list:[],map:{}},v={showPointer:ln(vme,h),showTooltip:ln(gme,p)};X(s.coordSysMap,function(m,y){var b=l||m.containPoint(i);X(s.coordSysAxesInfo[y],function(_,S){var C=_.axis,x=_me(u,_);if(!f&&b&&(!u||x)){var E=x&&x.value;E==null&&!l&&(E=C.pointToData(i)),E!=null&&MA(_,E,v,!1,d)}})});var g={};return X(c,function(m,y){var b=m.linkGroup;b&&!h[y]&&X(b.axesInfo,function(_,S){var C=h[S];if(_!==m&&C){var x=C.value;b.mapper&&(x=m.axis.scale.parse(b.mapper(x,AA(_),AA(m)))),g[m.key]=x}})}),X(g,function(m,y){MA(c[y],m,v,!0,d)}),mme(h,c,d),yme(p,i,e,o),bme(c,o,n),d}}function MA(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=pme(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Me(i,s[0]),!r&&e.snap&&a.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function pme(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return X(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),X(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function vme(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function gme(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=rd(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function mme(e,t,n){var r=n.axesInfo=[];X(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function yme(e,t,n,r){if(xp(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function bme(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=EA(r)[i]||{},o=EA(r)[i]={};X(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&X(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];X(a,function(u,c){!o[c]&&l.push(u)}),X(o,function(u,c){!a[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function _me(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function AA(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function xp(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function v4(e){s4.registerAxisPointerClass("CartesianAxisPointer",ime),e.registerComponentModel(ome),e.registerComponentView(dme),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Ve(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Ige(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},hme)}function wme(e){Xa(Uge),Xa(v4)}function Sme(e,t){var n=$d(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new _n({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Cme=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}($t);function g4(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function m4(e){if(ut.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return''}function Ime(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=ut.transformSupported?","+DS+r:",left"+r+",top"+r),Eme+":"+i}function kA(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ut.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=ut.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+DS+":"+o+";":[["top",0],["left",0],[y4,o]]}function Dme(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=_t(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),X(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function Pme(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=IN(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(Ime(i,n)),a&&r.push("background-color:"+a),X(["width","color","radius"],function(h){var p="border-"+h,v=Qw(p),g=e.get(v);g!=null&&r.push(p+":"+g+(h==="color"?"":"px"))}),r.push(Dme(c)),f!=null&&r.push("padding:"+$d(f).join("px ")+"px"),r.join(";")+";"}function IA(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Toe(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Lme=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ut.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=n.appendTo,o=a&&(Ke(a)?document.querySelector(a):Iu(a)?a:ft(a)&&a(t.getDom()));IA(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(r),this._api=t,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Xr(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Tme(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=Mme+Pme(t,!this._firstShow,this._longHide)+kA(a[0],a[1],!0)+("border-color:"+yl(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ke(a)&&r.get("trigger")==="item"&&!g4(r)&&(s=kme(r,i,a)),Ke(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Ve(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(n,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||ut.node||!i.getDom())){var o=LA(a,i);this._ticket="";var s=a.dataByCoordSys,l=zme(a,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=Rme;c.x=a.x,c.y=a.y,c.update(),Ot(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var f=p4(a,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(LA(a,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=kc([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(i){var s=Ot(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Vc(i,function(c){if(Ot(c).dataIndex!=null)return l=c,!0;if(Ot(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Ut(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=kc([r.tooltipOption],a),l=this._renderMode,u=[],c=Qf("section",{blocks:[],noHeader:!0}),f=[],d=new Ky;X(n,function(y){X(y.dataByAxis,function(b){var _=i.getComponent(b.axisDim+"Axis",b.axisIndex),S=b.value;if(!(!_||S==null)){var C=f4(S,_.axis,i,b.seriesDataIndices,b.valueLabelOpt),x=Qf("section",{header:C,noHeader:!Di(C),sortBlocks:!0,blocks:[]});c.blocks.push(x),X(b.seriesDataIndices,function(E){var T=i.getSeriesByIndex(E.seriesIndex),M=E.dataIndexInside,I=T.getDataParams(M);if(!(I.dataIndex<0)){I.axisDim=b.axisDim,I.axisIndex=b.axisIndex,I.axisType=b.axisType,I.axisId=b.axisId,I.axisValue=xS(_.axis,{value:S}),I.axisValueLabel=C,I.marker=d.makeTooltipMarker("item",yl(I.color),l);var R=UE(T.formatTooltip(M,!0,null)),V=R.frag;if(V){var H=kc([T],a).get("valueFormatter");x.blocks.push(H?Me({valueFormatter:H},V):V)}R.text&&f.push(R.text),u.push(I)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,p=s.get("order"),v=qE(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?`
+`];function Qf(e,t){return t.type=e,t}function s_(e){return e.type==="section"}function MN(e){return s_(e)?Vfe:Hfe}function AN(e){if(s_(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return X(e.blocks,function(i){var a=AN(i);a>=t&&(t=a+ +(r&&(!a||s_(i)&&!i.noHeader)))}),t}return 0}function Vfe(e,t,n,r){var i=t.noHeader,a=Wfe(AN(t)),o=[],s=t.blocks||[];wa(!s||Ve(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Qo(u,l)){var c=new xfe(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}X(s,function(v,g){var m=t.valueFormatter,y=MN(v)(m?Me(Me({},e),{valueFormatter:m}):e,v,g>0?a.html:0,r);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):l_(r,o.join(""),i?n:a.html);if(i)return f;var d=i_(t.header,"ordinal",e.useUTC),h=EN(r,e.renderMode).nameStyle,p=TN(r);return e.renderMode==="richText"?kN(e,d,h)+a.richText+f:l_(r,''+ar(d)+"
"+f,n)}function Hfe(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(_){return _=Ve(_)?_:[_],Je(_,function(S,C){return i_(S,Ve(h)?h[C]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":i_(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),v=!s||!a,g=!s&&a,m=EN(r,i),y=m.nameStyle,b=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":kN(e,d,y))+(o?"":Kfe(e,p,v,g,b)):l_(r,(s?"":f)+(a?"":Ufe(d,!s,y))+(o?"":Gfe(p,v,g,b)),n)}}function qE(e,t,n,r,i,a){if(e){var o=MN(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Wfe(e){return{html:Ffe[e],richText:zfe[e]}}function l_(e,t,n){var r='',i="margin: "+n+"px 0 0",a=TN(e);return''+t+r+"
"}function Ufe(e,t,n){var r=t?"margin-left:2px":"";return''+ar(e)+""}function Gfe(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Ve(e)?e:[e],''+Je(e,function(o){return ar(o)}).join(" ")+""}function kN(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Kfe(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ve(t)?t.join(" "):t,a)}function jfe(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return yl(r)}function IN(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Ky=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QO()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,a=aN({color:n,type:t,renderMode:r,markerId:i});return Ke(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Ve(n)?X(n,function(a){return Me(r,a)}):Me(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function Yfe(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(n),l=Ve(s),u=jfe(t,n),c,f,d,h;if(o>1||l&&!o){var p=qfe(s,t,n,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=Ru(i,n,a[0]),f=v.type}else h=c=l?s[0]:s;var g=Pw(t),m=g&&t.name||"",y=i.getName(n),b=r?m:y;return Qf("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[Qf("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Di(b),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function qfe(e,t,n,r,i){var a=t.getData(),o=_a(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?X(r,function(f){c(Ru(a,n,f),f)}):X(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Qf("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ho=gn();function xh(e,t){return e.getName(t)||e.getId(t)}var Xfe="__universalTransitionEnabled",hr=function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=gf({count:Jfe,reset:Qfe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=ho(this).sourceManager=new $fe(this);a.prepareSource();var o=this.getInitialData(n,i);ZE(o,this),this.dataTask.context.data=o,ho(this).dataBeforeProcessed=o,XE(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Zf(this),a=i?tm(n):{},o=this.subType;$t.hasClass(o)&&(o+="Series"),Dt(n,r.getTheme().get(this.subType)),Dt(n,this.getDefaultOption()),Kb(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Ou(n,a,i)},t.prototype.mergeOption=function(n,r){n=Dt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Zf(this);i&&Ou(this.option,n,i);var a=ho(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(n,r);ZE(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ho(this).dataBeforeProcessed=o,XE(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!dr(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var a=this.ecModel,o=rS.prototype.getColorFromPalette.call(this,n,r,i);return o||(o=a.getColorFromPalette(n,r,i)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[xh(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Xfe])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){nt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return $t.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}($t);mi(hr,Sfe);mi(hr,rS);oR(hr,$t);function XE(e){var t=e.name;Pw(e)||(e.name=Zfe(e)||t)}function Zfe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return X(n,function(i){var a=t.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Jfe(e){return e.model.getRawData().count()}function Qfe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ede}function ede(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ZE(e,t){X(bO(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ln(tde,t))})}function tde(e,t){var n=u_(e);return n&&n.setOutputEnd((t||this).count()),t}function u_(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Vr=function(){function e(){this.group=new Sn,this.uid=Xg("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();Ow(Vr);Rg(Vr);function lS(){var e=gn();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&"reset"}}var DN=gn(),nde=lS(),Zn=function(){function e(){this.group=new Sn,this.uid=Xg("viewChart"),this.renderTask=gf({plan:rde,reset:ide}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&QE(a,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&QE(a,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){Yg(this.group,t)},e.markUpdateMethod=function(t,n){DN(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function JE(e,t,n){e&&Qb(e)&&(t==="emphasis"?mv:yv)(e,n)}function QE(e,t,n){var r=vl(e,t),i=t&&t.highlightKey!=null?Aue(t.highlightKey):null;r!=null?X(cr(r),function(a){JE(e.getItemGraphicEl(a),n,i)}):e.eachItemGraphicEl(function(a){JE(a,n,i)})}Ow(Zn);Rg(Zn);function rde(e){return nde(e.model)}function ide(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&DN(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,i),ade[l]}var ade={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ev="\0__throttleOriginMethod",eM="\0__throttleRate",tM="\0__throttleType";function am(e,t,n){var r,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function PN(e,t,n,r){var i=e[t];if(i){var a=i[Ev]||i,o=i[tM],s=i[eM];if(s!==n||o!==r){if(n==null)return e[t]=a;i=e[t]=am(a,n,r==="debounce"),i[Ev]=a,i[tM]=r,i[eM]=n}return i}}function c_(e,t){var n=e[t];n&&n[Ev]&&(n.clear&&n.clear(),e[t]=n[Ev])}var nM=gn(),rM={itemStyle:Yf(YR,!0),lineStyle:Yf(jR,!0)},ode={lineStyle:"stroke",itemStyle:"fill"};function LN(e,t){var n=e.visualStyleMapper||rM[t];return n||(console.warn("Unknown style type '"+t+"'."),rM.itemStyle)}function ON(e,t){var n=e.visualDrawType||ode[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var sde={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=LN(e,r),o=a(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=ON(e,r),u=o[l],c=ft(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ft(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ft(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=Me({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},_c=new Jt,lde={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=LN(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){_c.option=l[r];var u=i(_c),c=o.ensureUniqueItemVisual(s,"style");Me(c,u),_c.option.decal&&(o.setItemVisual(s,"decal",_c.option.decal),_c.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ude={performRawSeries:!0,overallReset:function(e){var t=wt();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=t.get(i);a||(a={},t.set(i,a)),nM(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),o=nM(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=ON(n,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();d[l]=n.getColorFromPalette(h,o,p)}})}})}},Th=Math.PI;function cde(e,t){t=t||{},Rt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Sn,r=new _n({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new hn({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new _n({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Pd({shape:{startAngle:-Th/2,endAngle:-Th/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Th*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Th*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var RN=function(){function e(t,n,r,i){this._stageTaskMap=wt(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=wt();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;X(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";wa(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var a=t.renderTask,o=a.context;o.model=n,o.ecModel=r,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var a=!1,o=this;X(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var a=this,o=n.seriesTaskMap,s=n.seriesTaskMap=wt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||gf({plan:vde,reset:gde,count:yde}));h.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var a=this,o=n.overallTask=n.overallTask||gf({reset:fde});o.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=wt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";wa(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,i).each(p):(f=!1,X(r.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,gf({reset:dde,onDirty:pde})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return ft(t)&&(t={overallReset:t,seriesType:bde(t)}),t.uid=Xg("stageHandler"),n&&(t.visualType=n),t},e}();function fde(e){e.overallReset(e.ecModel,e.api,e.payload)}function dde(e){return e.overallProgress&&hde}function hde(){this.agent.dirty(),this.getDownstream().dirty()}function pde(){this.agent&&this.agent.dirty()}function vde(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function gde(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Je(t,function(n,r){return NN(r)}):mde}var mde=NN(0);function NN(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(n.mainType=p,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.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,n.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),f_=["symbol","symbolSize","symbolRotate","symbolOffset"],sM=f_.concat(["symbolKeepAspect"]),Sde={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&Ys(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function h_(e,t,n){for(var r=t.type==="radial"?Vde(e,t,n):zde(e,t,n),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Wt(e)?[e]:Ve(e)?e:null}function VN(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Wde(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Je(n,function(a){return a/i}),r/=i)}return[n,r]}var Ude=new gl(!0);function Av(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function lM(e){return typeof e=="string"&&e!=="none"}function kv(e){var t=e.fill;return t!=null&&t!=="none"}function uM(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function cM(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function p_(e,t,n){var r=sR(t.image,t.__image,n);if(Ng(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*_O),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Gde(e,t,n,r){var i,a=Av(n),o=kv(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Ude,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0;(p||v)&&(C=t.getBoundingRect()),p&&(y=f?h_(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(b=f?h_(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(_=f||!t.__canvasFillPattern?p_(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=_),m&&(S=f||!t.__canvasStrokePattern?p_(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?e.fillStyle=y:g&&(_?e.fillStyle=_:o=!1),v?e.strokeStyle=b:m&&(S?e.strokeStyle=S:a=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var E,T;e.setLineDash&&n.lineDash&&(i=VN(t),E=i[0],T=i[1]);var M=!0;(u||f&Rc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),E&&(e.setLineDash(E),e.lineDashOffset=T),r||(n.strokeFirst?(a&&cM(e,n),o&&uM(e,n)):(o&&uM(e,n),a&&cM(e,n))),E&&e.setLineDash([])}function Kde(e,t,n){var r=t.__image=sR(n.image,t.__image,t,t.onload);if(!(!r||!Ng(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function jde(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||pl,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=VN(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Av(n)&&e.strokeText(i,n.x,n.y),kv(n)&&e.fillText(i,n.x,n.y)):(kv(n)&&e.fillText(i,n.x,n.y),Av(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var fM=["shadowBlur","shadowOffsetX","shadowOffsetY"],dM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function HN(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Cr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ol.opacity:o}(r||t.blend!==n.blend)&&(a||(Cr(e,i),a=!0),e.globalCompositeOperation=t.blend||ol.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[Hn]){if(this._disposed){this.id;return}var a,o,s;if(nt(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Hn]=!0,!this._model||r){var l=new tfe(this._api),u=this._theme,c=this._model=new iS;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},m_);var f={seriesTransition:s,optionChanged:!0};if(i)this[mr]={silent:a,updateParams:f},this[Hn]=!1,this.getZr().wakeUp();else{try{jl(this),po.update.call(this,null,f)}catch(d){throw this[mr]=null,this[Hn]=!1,d}this._ssr||this._zr.flush(),this[mr]=null,this[Hn]=!1,wc.call(this,a),Sc.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(ut.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return X(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],o=this;X(r,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return X(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Lv[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();X(ll,function(b,_){if(b.group===i){var S=r?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Et(n)),C=b.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),c=o(C.right,c),f=o(C.bottom,f),d.push({dom:S,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Ya.createCanvas(),m=Ub(g,{renderer:r?"svg":"canvas"});if(m.resize({width:p,height:v}),r){var y="";return X(d,function(b){var _=b.left-l,S=b.top-u;y+=''+b.dom+""}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new _n({shape:{x:0,y:0,width:p,height:v},style:{fill:n.connectedBackgroundColor}})),X(d,function(b){var _=new Ca({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});m.add(_)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Zy(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Zy(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,a,o=_y(i,n);return X(o,function(s,l){l.indexOf("Models")>=0&&X(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(r,u))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var i=this._model,a=_y(i,n,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?xde(s,l,r):Tde(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;X(yhe,function(r){var i=function(a){var o=n.getModel(),s=a.target,l,u=r==="globalout";if(u?l={}:s&&Vc(s,function(p){var v=Ot(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=Me({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),X(mf,function(r,i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),X(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),Mde(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&rR(this.getDom(),dS,"");var r=this,i=r._api,a=r._model;X(r._componentsViews,function(o){o.dispose(a,i)}),X(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete ll[r.id]},t.prototype.resize=function(n){if(!this[Hn]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[mr]&&(a==null&&(a=this[mr].silent),i=!0,this[mr]=null),this[Hn]=!0;try{i&&jl(this),po.update.call(this,{type:"resize",animation:Me({duration:0},n&&n.animation)})}catch(o){throw this[Hn]=!1,o}this[Hn]=!1,wc.call(this,a),Sc.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(nt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!y_[n]){var i=y_[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Me({},n);return r.type=mf[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(nt(r)||(r={silent:!!r}),!!Dv[n.type]&&this._model){if(this[Hn]){this._pendingActions.push(n);return}var i=r.silent;Qy.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&ut.browser.weChat&&this._throttledZrFlush(),wc.call(this,i),Sc.call(this,i)}},t.prototype.updateLabelLayout=function(){Ti.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){jl=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Xy(f,!0),Xy(f,!1),d.plan()},Xy=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,b=0;bd.get("hoverLayerThreshold")&&!ut.node&&!ut.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),b=0;b0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(hf(m))return;if(m instanceof Ht&&kue(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var b=m.getTextContent(),_=m.getTextGuideLine();b&&(b.stateTransition=g),_&&(_.stateTransition=g)}m.__dirty&&i(m)}})}TM=function(f){return new(function(d){at(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){mv(p,v),Kr(f)},h.prototype.leaveEmphasis=function(p,v){yv(p,v),Kr(f)},h.prototype.enterBlur=function(p){bue(p),Kr(f)},h.prototype.leaveBlur=function(p){_R(p),Kr(f)},h.prototype.enterSelect=function(p){wR(p),Kr(f)},h.prototype.leaveSelect=function(p){SR(p),Kr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(dN))(f)},i3=function(f){function d(h,p){for(var v=0;v=0)){MM.push(n);var a=RN.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function yS(e,t){y_[e]=t}function Mhe(e){dO({createCanvas:e})}function f3(e,t,n){var r=YN("registerMap");r&&r(e,t,n)}function Ahe(e){var t=YN("getMap");return t&&t(e)}var d3=Dfe;cs(cS,sde);cs(om,lde);cs(om,ude);cs(cS,Sde);cs(om,Cde);cs(ZN,the);vS(pN);gS(she,hfe);yS("default",cde);kl({type:sl,event:sl,update:sl},lr);kl({type:yp,event:yp,update:yp},lr);kl({type:cf,event:cf,update:cf},lr);kl({type:bp,event:bp,update:bp},lr);kl({type:ff,event:ff,update:ff},lr);pS("light",_de);pS("dark",FN);var khe={};function Cc(e){return e==null?0:e.length||1}function AM(e){return e}var Ihe=function(){function e(t,n,r,i,a,o){this._old=t,this._new=n,this._oldKeyGetter=r||AM,this._newKeyGetter=i||AM,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var o=0;o